hexsha stringlengths 40 40 | size int64 8 1.04M | content stringlengths 8 1.04M | avg_line_length float64 2.24 100 | max_line_length int64 4 1k | alphanum_fraction float64 0.25 0.97 |
|---|---|---|---|---|---|
809f0ba9e9401f5e313bf6bd9bf5396328043e0a | 601 | package org.innovateuk.ifs.invite.resource;
import org.innovateuk.ifs.commons.resource.PageResource;
import java.util.List;
/**
* Resource encapsulating a pageable list of {@link AssessorCreatedInviteResource}s.
*/
public class AssessorCreatedInvitePageResource extends PageResource<AssessorCreatedInviteResource> {... | 31.631579 | 149 | 0.790349 |
3dbb11bddd0f754883b2b4be4a09a5b63f6592fa | 1,918 | /*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 21.076923 | 79 | 0.576121 |
12884f37ab06971b44fbe1ed27766a6730ac23f8 | 2,734 | package net.minecraft.src;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.IOException;
public class McRegionChunkLoader implements IChunkLoader {
private final File worldFolder;
public McRegionChunkLoader(File var1) {
this.worldFolder = var1;
... | 39.057143 | 210 | 0.598025 |
d8c178252031ff6936c0f840595a70555ff6e5e5 | 785 | package ua.com.nc.nctrainingproject.persistance.dao.postgre.queries;
public class AdminRightsQuery {
public static final String TABLE_NAME = "adminrights";
public static final String ADMIN_ID = "admin_id";
public static final String RIGHT_ID = "right_id";
public static final String GET_ADMIN_ID_BY_RIGHT_ID = "SE... | 43.611111 | 111 | 0.680255 |
ec0458a7bf89ca25eb6bbc78cb3d3e09a0c2fbb2 | 151 | package edu.slu.parks.healthwatch.history;
/**
* Created by okori on 14-Nov-16.
*/
public enum ViewType {
DAY,
WEEK,
MONTH,
YEAR
}
| 11.615385 | 42 | 0.615894 |
ae10a778c1a4fad32ca9cb6646e7afa1e898cd4a | 1,737 |
package com.logicaldoc.enterprise.webservice.soap.endpoint;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
impor... | 30.473684 | 164 | 0.694876 |
29829782a51cef5e3cf35491fb1726bf8743c683 | 840 | package com.joe.nio.buffer;
import java.nio.ByteBuffer;
/**
* ByteBuffer 支持类型化的 put 和 get
* put 放入的是什么数据类型,get 就应该使用相应的数据类型来取出,否则可能有 BufferUnderflowException 异常
*
* @author ckh
* @create 10/22/20 2:53 PM
*/
public class NIOByteBufferPutGet {
public static void main(String[] args) {
ByteBuffer byteBu... | 26.25 | 71 | 0.665476 |
56a49b68612484d0c5e251607d8ebc65e34c46d6 | 853 | package pubsub.subscriber;
import pubsub.service.PubSubService;
/**
* SubscriberImpl class extends Subscriber and implements the abstract methods mentioned above.
* @author luiz
*
*/
public class SubscriberImpl extends Subscriber {
//Add subscriber with PubSubService for a topic
@Override
public void addSubsc... | 25.088235 | 95 | 0.798359 |
99b1c431002e8b92429f7de93ecc510b6922611c | 2,027 | package eu.fox7.rexp.isc.cnfa.core;
import eu.fox7.rexp.data.Symbol;
import eu.fox7.rexp.isc.cnfa.guard.Guard;
import eu.fox7.rexp.isc.cnfa.update.Update;
import eu.fox7.rexp.tree.nfa.lw.NfaState;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.LinkedHashSet;
import java.util.M... | 30.712121 | 106 | 0.710903 |
4eef55adbf873ae6ab9fc4bd1036521460a16443 | 12,344 | /*
* Copyright 2002-2013 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 39.819355 | 168 | 0.683571 |
ed1f84aff9d91bcf9aafb00d99dc5f1e10738134 | 20,303 | /*
* Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
*
* This software is open source.
* See the bottom of this file for the licence.
*
* $Id: ResourcePanel.java,v 1.1.1.1 2001/05/22 08:13:01 jstrachan Exp $
*/
package org.dom4j.visdom.util;
import org.dom4j.visdom.util.Log;
import org.d... | 29.901325 | 80 | 0.490174 |
4beacf8ee3fc80c0d81b3baaaee6cdbb21197dc7 | 8,597 | /**
* Created by Y1475945.
*/
import java.util.ArrayList;
public abstract class Lifeform extends Env_Entity
{
private static ArrayList<Env_Entity> worldInhabitants = new ArrayList<>();
protected static ArrayList<Lifeform> deadBirds = new ArrayList<>();
private ArrayList<Env_Entity> myNeighbours = new A... | 28.279605 | 119 | 0.543096 |
7245e9bfccdba079e286d3d613067369febae1d5 | 821 | package io.nixer.nixerplugin.core.detection.events.elastic;
import io.searchbox.client.JestClient;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import ... | 41.05 | 108 | 0.828258 |
0aaadaad08d61605fbe2a08bd849e062f39709da | 3,136 | /*
* This file is part of the L2JServer project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This pr... | 24.888889 | 89 | 0.69324 |
8a925b66664209c34131cbc37ea3d9dc714c564a | 3,188 | /*Copyright (C) 2018 Roland Hauser, <sourcepond@gmail.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agree... | 43.081081 | 157 | 0.764743 |
44399e6c6dd2fe5a699cebbdc21cca83196b887a | 863 | import java.util.Scanner;
public class P6_Combinations_with_Repetition {
public static String[] elements;
public static String[] kSlots;
public static int k;
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
elements = scanner.nextLine().split("\\s+");... | 26.151515 | 60 | 0.563152 |
92cf5cfbf634d78c9406ae1fcc6c8de71227bfaa | 358 | import no.ssb.rawdata.api.RawdataClientInitializer;
module no.ssb.lds.server {
requires no.ssb.lds.core;
requires no.ssb.config;
requires org.slf4j;
requires org.apache.commons.logging; // needed to use the solr search provider
requires no.ssb.rawdata.api;
requires no.ssb.service.provider.api;
... | 27.538462 | 82 | 0.740223 |
84ff6cf6225ddf397eee5cc6698c4078ff332574 | 4,446 | /*
Copyright 2020-2021. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Un... | 42.75 | 162 | 0.728295 |
3f8fcf1cee6c4e0db2e5ec3c09498bc1a3b5795d | 2,901 | package ch.zhaw.securitylab.DIMBA.networking;
import ch.zhaw.securitylab.DIMBA.DIMBA;
import ch.zhaw.securitylab.DIMBA.data.metasettings.Metasettings;
import ch.zhaw.securitylab.DIMBA.networking.listeners.ConnectionListener;
import com.android.volley.DefaultRetryPolicy;
import com.android.volley.NetworkResponse;
impo... | 27.367925 | 111 | 0.669769 |
7de56e842761df1676010e451b0b69694df3d621 | 494 | package dev.jlarsen.authserverdemo.exceptions;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* Throw and render a view with error locally, since there is an issue with the redirect_uri
*/
@ResponseStatus(value= HttpStatus.BAD_REQUEST)
public class Red... | 30.875 | 92 | 0.785425 |
a3a59d2f4c72f13c11cfe95c1e93236c73af2192 | 1,966 | package me.mckoxu.mckrtp.listeners;
import me.mckoxu.mckrtp.MCKRTp;
import me.mckoxu.mckrtp.utils.CoordinateUtil;
import me.mckoxu.mckrtp.utils.RandomUtil;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.block.Block;
import org.bukkit.configuration.ConfigurationSe... | 43.688889 | 316 | 0.618515 |
8be5f3a65a627ec68de4347fb9cde84fae61272d | 4,151 | package com.sngur.learnkhasi.roomdb;
import android.content.Context;
import com.sngur.learnkhasi.model.room.Editors;
import com.sngur.learnkhasi.model.room.FavoriteWord;
import com.sngur.learnkhasi.model.room.StoredEnglishWord;
import com.sngur.learnkhasi.model.room.StoredKhasiWord;
import com.sngur.learnkhasi.model.... | 44.634409 | 258 | 0.738376 |
3188b8523fd596634c43858908e34405e7322263 | 120 | package dne.eiim.xjam;
public class SystemOut extends PrintStreamOut {
public SystemOut() {
super(System.out);
}
}
| 15 | 47 | 0.733333 |
28647cd8373d80f53341106753d92f0b557288e8 | 1,652 | package net.zephyrizing.http_server;
import java.nio.ByteBuffer;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import net.zephyrizing.http_server.HttpRequest.Method;
public class RequestBuilder {
private static final String CONTENT_LENGTH_HEADER = "Content-Length";
private Method m... | 24.656716 | 99 | 0.637409 |
4b9baec742835f2e2949cc45eab281300d2394b2 | 2,612 | package org.conqueror.drone.task;
import akka.actor.ActorRef;
import akka.actor.Cancellable;
import akka.event.LoggingAdapter;
import org.conqueror.common.utils.file.FileUtils;
import org.conqueror.drone.config.CrawlConfig;
import org.conqueror.drone.data.url.URLInfo;
import org.conqueror.drone.selenium.webdriver.WebB... | 42.819672 | 193 | 0.686064 |
e462daeb2f6ab44be3a05c97ddeece30487a09a9 | 15,490 | /**
* Copyright 2015 , University of Rochester Medical Center
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR CO... | 31.104418 | 134 | 0.436862 |
c8096e8af514a1ed04899988a279653b849b093d | 750 | package Builder;
/**
* Created by wlp on 2018/5/22.
* 商品
*/
public class Computer {
private String cpu;
private String amr;
private String sd;
@Override
public String toString() {
return "Computer{" +
"cpu='" + cpu + '\'' +
", amr='" + amr + '\'' +
... | 16.304348 | 40 | 0.454667 |
d5267bb6bcd222d729ba9ca299b351a35c7789b6 | 1,957 | package com.puresoltechnologies.javafx.charts.dialogs;
import java.util.List;
import com.puresoltechnologies.javafx.charts.ChartView;
import com.puresoltechnologies.javafx.charts.plots.Plot;
import javafx.scene.control.ButtonType;
import javafx.scene.control.Dialog;
import javafx.scene.control.DialogPane;
import jav... | 27.957143 | 82 | 0.746551 |
d1f9fa60780c75a71d7fb5a051d2be94da6f4133 | 605 | package com.generator.dao;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 公共DAO接口
* @param <T>
*/
public interface AbstrctDao <T>{
void insert(T t)throws Exception;
void update(T t)throws Exception;
void delete(@Param("key") String ukfield, @Param("value")Object v... | 31.842105 | 96 | 0.690909 |
5acc61a32d98aa478c766d47747ea1e8c613e52c | 10,231 | /**
* created by ozkh on 10/11/2015.
* acknowledgements to below:
* http://www.mkyong.com/java/javamail-api-sending-email-via-gmail-smtp-example/
* http://www.tutorialspoint.com/java/java_sending_email.htm
* https://www.youtube.com/watch?v=glewfpkid74
* and any other online source that i have missed out (hopefull... | 43.53617 | 115 | 0.69309 |
072d91aaa13d9a8e73251f4d2eed98e391d794cb | 1,359 | package packt.java9.by.example.mybusiness.productinformation;
import java.net.URI;
public class ProductInformation {
private String id;
private String title;
private String description;
private final double size[] = new double[3];
private double weight;
public void setId(String id) {
... | 22.65 | 94 | 0.637233 |
71a8c641934984f7baa3686ce221938c6ff4460c | 896 | package com.mm.tnxrs.common.model.base;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.IBean;
/**
* Generated by JFinal, do not modify this file.
*/
@SuppressWarnings("serial")
public abstract class BaseAuthCode<M extends BaseAuthCode<M>> extends Model<M> implements IBean {
pub... | 19.911111 | 97 | 0.705357 |
16a3fdcdb0f00dc7559a2790864162318ef15333 | 784 | package useful;
import common.Util;
import us.codecraft.webmagic.selector.Html;
public class TraceHTMLTag {
public static void main(final String[] args) {
final String s = "<span class=\"titleLabel\" style=\"line-height: 16px\"> 企业年报信息 </span></div> </td> </tr> </table> </div> <div> <table class=\"tableIn... | 43.555556 | 369 | 0.605867 |
dbd1ed0240d8e938dc15077b7400b60fb3da1c6f | 972 | package com.desertkun.brainout.content;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonValue;
import com.desertkun.brainout.content.effect.EffectSet;
import com.desertkun.brainout.reflection.Reflect;
import com.desertkun.brainout.reflection.ReflectAl... | 20.680851 | 55 | 0.657407 |
603295579725d935f4a9aa0153c9e6ff8f8c27a5 | 1,395 | package it.progess.core.pojo;
import it.progess.core.vo.Ivo;
import it.progess.core.vo.PaymentSolution;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Ent... | 24.051724 | 58 | 0.754122 |
d467e5bc99d3129b381c654e414fe9b7118b4b49 | 3,413 | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... | 41.621951 | 141 | 0.733372 |
7cb2c82b17295798c3730b3f26f4db29e57aacdb | 31,363 | /**
* JUunit tests for the Scanner for the class project in COP5556 Programming Language Principles
* at the University of Florida, Spring 2018.
* <p>
* This software is solely for the educational benefit of students
* enrolled in the course during the Spring 2018 semester.
* <p>
* This software, and any ... | 31.175944 | 114 | 0.556962 |
90a36eb558fc2bb200446fad71c215edb9b9209f | 389 | package nl.vs.fuse.demo.configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.Configuration;
/**
* This empty class only loads the imported bean configuration file into the application context
*/
@Configuration
@ImportResource("classpath:spring/u... | 27.785714 | 97 | 0.822622 |
14fe1de43394bdd4339b874467e622eac19f01ca | 823 | package de.unipaderborn.visuflow.debug.handlers;
import java.util.Collections;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;
import org.osgi.service.event.Event;
import org.osgi.service.event.EventAdmin;
import de.unipaderborn.visuflow.VisuflowConstant... | 31.653846 | 115 | 0.793439 |
9922656bc22f33c5ffa24b1f676e39ff416cb101 | 1,962 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 40.040816 | 79 | 0.766565 |
c409ecfdf9fd6841454989db14217a43248023bb | 512 | package com.livebet.domain.operation;
@Deprecated
public class ChangeQuotesResponse implements GenericResponse {
/**
*
*/
private static final long serialVersionUID = -3660256240475168010L;
private boolean result;
private String cause;
public boolean isResult() {
return result;
}
pub... | 16.516129 | 69 | 0.681641 |
fd2488378d3d62c7e1e828b77ecde0b6de4d368d | 4,466 | package edu.ucdenver.ccp.datasource.fileparsers.obo;
/*
* #%L
* Colorado Computational Pharmacology's common module
* %%
* Copyright (C) 2012 - 2015 Regents of the University of Colorado
* %%
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the fol... | 34.620155 | 105 | 0.734438 |
2ed69acf1de2cdc7539dd75d42a85ef61a138e85 | 557 | package mat;
/**
* Created by Mateusz on 21.05.2017.
*/
enum Direction {
UP {
@Override
Direction opposite() {
return DOWN;
}
},
DOWN {
@Override
Direction opposite() {
return UP;
}
},
LEFT {
@Ove... | 15.472222 | 37 | 0.409336 |
f15dda8b03166255b1f70429defa73a3c303b069 | 6,710 | /*
PROJECT GOALS
-Use Parse to set up a backend that will allow users to authenticate
-Utilize Parse server to store user data and post data in a database
-Develop an app that will allow users to (1) create new account, (2) log in/out (3) create a post
-Use the camera API to allow users to take/upload photos with their... | 43.290323 | 129 | 0.604769 |
e2e3bbcf04415acb6f3d8987b47f82a11dddbf44 | 1,476 | package com.github.vanroy.springdata.jest.mapper;
import com.github.vanroy.springdata.jest.exception.JestElasticsearchException;
import com.google.gson.JsonPrimitive;
import io.searchbox.action.Action;
import io.searchbox.client.JestResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Default imple... | 29.52 | 190 | 0.747967 |
9204f5ddbb22d7e06dca0ad3671c8bd9d8f638dd | 1,309 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.senac.tads4.dsw.servletjsp.servlet;
import br.senac.tads4.dsw.servletjsp.modelo.Pessoa;
import br.senac.tads4.dsw.s... | 34.447368 | 91 | 0.75783 |
ee058881c3d4c60eb8457d78da37bca1ed05068f | 982 | Check if a LinkedList is palindrome or not.
Given the head of a singly linked list, return true if it is a palindrome.
/*
Example 1:
Input: head = [1,2,2,1]
Output: true
Example 2:
Input: head = [1,2]
Output: false
*/
Method 1: Brute Force
Time Complexity : O(n)
Space Complexity: O(n)
Code:
static boolean... | 19.64 | 86 | 0.53666 |
4aaed2d9456de9de36e976483c06a99f367aaec8 | 6,093 | package edu.kit.exp.server.structure;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.sql.SQLException;
import edu.kit.exp.server.communication.ClientDataPropertiesMessage;
import edu.kit.exp.server.com... | 35.017241 | 209 | 0.787133 |
5ade0ceb13037823185e1fc6de3d2fdea380914b | 1,434 | package com.coinninja.coinkeeper.service.client.model;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.MatcherAssert.assertThat;
public class CNDeviceTest {
@Test
public void convert_string_to_DevicePlatform_enum_for_android_test() {
CNDevice cnDevi... | 28.117647 | 78 | 0.711994 |
37491c42add288fcb26b0e785fd612fe257f3d76 | 483 | public VanillaTaxes implements FriendlyIRS {
public double taxPerson(Person p) {return 1;}
public double taxCompany(Company c){
double total = 0;
for (int i = 0; i < c.getSize(); i++)
total += c.getEmployee(i).accept(this);
return total;
}
public double taxRegion(R... | 25.421053 | 51 | 0.556936 |
a45b7a55c1a2ac51e1f1f0430e68743975632ac6 | 157 | package com.test.dynamic_proxy_hook.static_proxy;
/**
* Created by wzc on 2017/6/12.
*/
public interface Shopping {
String doShopping(long money);
}
| 15.7 | 49 | 0.719745 |
05bbaf38d79724ec1b7cda8ba62c754c69606966 | 2,286 | package timing.ukulele.service.auth.token;
import org.springframework.security.oauth2.common.DefaultOAuth2AccessToken;
import org.springframework.security.oauth2.common.OAuth2AccessToken;
import org.springframework.security.oauth2.provider.OAuth2Authentication;
import org.springframework.security.oauth2.provider.token... | 34.636364 | 117 | 0.725722 |
cb78f6e1d21cd75a9afd9e899ee97aee28eba49f | 644 | package com.github.thomasfischl.eurydome.backend.dal;
import org.springframework.stereotype.Service;
import com.github.thomasfischl.eurydome.backend.model.DOService;
import com.mongodb.BasicDBObject;
@Service
public class ServiceDataStore extends AbstractDataStore<DOService> {
@Override
protected String getColl... | 22.206897 | 68 | 0.768634 |
862fbfec516f3237318063bad729ee35826811b7 | 224 | package com.systemmeltdown.robotlib.sensors;
import edu.wpi.first.wpilibj.Sendable;
/**
* Base Sensor Class
*
* This is the base class for all kinds of sensors
*/
public abstract class Sensor implements Sendable {
}
| 17.230769 | 50 | 0.745536 |
344585259e38e067bdcf5f96d036a6fdf6445f56 | 2,512 | package biggerfish.ai;
import cage.core.scene.Node;
import cage.core.scene.SceneManager;
import cage.core.scene.SceneNode;
import org.joml.Random;
import org.joml.Vector3f;
import org.joml.Vector3fc;
public class AISchoolNode extends SceneNode {
private Vector3f origin;
private float originRadius... | 25.896907 | 181 | 0.625796 |
99aba4053af8e0f1a40c9f7b00670c38e6af0156 | 539 | package io.verticle.kubernetes.authgateway.route;
import org.springframework.cloud.gateway.route.Route;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.stereotype.Component;
import reactor.core.publisher.Flux;
@Component
public class RuntimeRouteLocator implements RouteLocator ... | 23.434783 | 60 | 0.74397 |
0b9b37ae12bc0bec6132d7e831223533f53799bc | 999 | package it.univpm.mobile_programming_project.utils.picker;
import androidx.annotation.NonNull;
import androidx.fragment.app.DialogFragment;
import android.app.Dialog;
import android.app.TimePickerDialog;
import android.os.Bundle;
import android.text.format.DateFormat;
import java.util.Calendar;
import it.univpm.mob... | 31.21875 | 158 | 0.775776 |
f45bd6652d2c4a43a4653977af25997920a9cac6 | 15,720 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 37.879518 | 95 | 0.685433 |
5ec273453b21a138337a6bed23ea7d7cc7299942 | 1,841 | package airhacks;
import software.constructs.Construct;
import java.util.Map;
import software.amazon.awscdk.CfnOutput;
import software.amazon.awscdk.Duration;
import software.amazon.awscdk.Stack;
import software.amazon.awscdk.StackProps;
import software.amazon.awscdk.services.lambda.Code;
import software.amazon.awsc... | 39.170213 | 176 | 0.708311 |
ac4fc8a229fae01555f5d4b8b8443c8e3002ae49 | 282 | package de.maikmerten.spitools;
/**
*
* @author maik
*/
public interface SPIConnection {
public void select();
public void deselect();
public void sendByte(int b);
public int receiveByte();
public int sendReceiveByte(int b);
public void receiveBytes(byte[] buf);
}
| 14.842105 | 38 | 0.702128 |
99f46696803274210ff25ba573ad310782e9758a | 2,282 | package br.com.application.name.mobile.bean.enums;
import java.io.IOException;
import java.util.Scanner;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.DesiredCapabilities;
import br.com.application.name.mobile.interfaces.WebMobileApplication;
import io... | 28.17284 | 111 | 0.746713 |
2659fed31b979019d9760c8010b2ddfc29a01ec3 | 34,222 | package nl.pim16aap2.armoredElytra.util;
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 Hex_27
* Copyright (c) 2020 Crypto Morin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software ... | 33.984111 | 123 | 0.603501 |
ceac4a446ba7196e6b5b85f552baf4ee7853b2c2 | 5,863 | package com.example.zqf.store.Activity_Home;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.view.Menu;
import android.view.MenuItem;
... | 34.28655 | 95 | 0.571892 |
a8ebf2a115f97d6dbbe5d59abc88917ae8d4c250 | 4,690 | package uk.gov.pay.connector.gateway.epdq;
import com.google.common.collect.ImmutableMap;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.junit.MockitoJUnitRunner;
import uk.gov.pay.connector.refund.model.domain.RefundStatus;
import java.util.Optional;
import stati... | 39.411765 | 115 | 0.724307 |
029d7e2a5c502831169143af67b844619edb06c3 | 307 | package com.github.tony19.example.customappender;
/**
* Sample configuration that takes an integer capacity setting
*/
public class Config {
private int capacity;
public void setCapacity(int capacity) {
this.capacity = capacity;
}
public int getCapacity() {
return this.capacity;
}
}
| 18.058824 | 62 | 0.716612 |
1871a4112bf7f2fa11775bdf6b956547eec3e136 | 1,674 | package protomoto.ast;
import org.jparsec.Parser;
import org.jparsec.Parsers;
import org.jparsec.Scanners;
import org.jparsec.Terminals;
public class ASTParser<T> {
private static final Terminals OPERATORS = Terminals.operators("(", ")");
private static final Parser<Void> IGNORED = Parsers.or(Scanners.JAVA_LI... | 47.828571 | 197 | 0.693548 |
6f830caf1ef14e5757c71dbd47c1efe27e00d1df | 24,610 | package com.vitco.app.layout.content.mainview;
import com.jidesoft.action.CommandMenuBar;
import com.threed.jpct.Config;
import com.threed.jpct.Object3D;
import com.threed.jpct.SimpleVector;
import com.threed.jpct.util.Light;
import com.vitco.app.core.CameraChangeListener;
import com.vitco.app.core.EngineInteractionPr... | 40.476974 | 145 | 0.543072 |
71be827cbf27991e99b512c30500430b25eeafc2 | 593 | package com.createchance.imageeditor.drawers;
import com.createchance.imageeditor.shaders.DirectionalWarpTransShader;
/**
* Directional warp transition drawer.
*
* @author createchance
* @date 2018/12/31
*/
public class DirectionalWarpTransDrawer extends AbstractTransDrawer {
@Override
protected void get... | 28.238095 | 101 | 0.767285 |
98b2bb24776388913273b82cc0cde443d79cfb55 | 3,432 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | 35.381443 | 113 | 0.678904 |
1406a49bffe1f4d63f69e10fe4e5c16bce4209fb | 4,786 | /*
* @(#)ObjectKey.java
* Copyright © 2021 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.collection;
import org.jhotdraw8.annotation.NonNull;
import org.jhotdraw8.annotation.Nullable;
import org.jhotdraw8.reflect.TypeToken;
import java.lang.reflect.Type;
import java.util.Objects;
... | 29.54321 | 150 | 0.637484 |
54fd9e7cd004189c2c9d7f0ff0b874ac32f9220e | 10,783 | package algebra.curves.barreto_naehrig;
import algebra.fields.*;
import java.math.BigInteger;
public interface BNFields {
/* Scalar field Fr */
public abstract class BNFr<BNFrT extends BNFr<BNFrT>>
extends AbstractFieldElementExpanded<BNFrT> {
public abstract Fp element();
public abstract BNFrT ze... | 25.431604 | 93 | 0.642215 |
cbd355925aa68e8003dcb096bae41ed87e7dd182 | 1,363 | package designpattern.creational;
import java.util.*;
import designpattern.util.BasedPattern;
public class Prototype implements BasedPattern {
@Override
public void TestPattern() {
Car bmw = new Car();
Car benz = new Car();
Cars cars = new Cars();
cars.addPrototype("BMW", bmw);
cars.addPrototype("BENS",... | 23.101695 | 68 | 0.680117 |
dc29561d84e8881d276245e1821e6c0f553d2e53 | 3,621 | package com.phoenix.phoenixtales.rise.client.screen;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
import com.phoenix.phoenixtales.core.PhoenixTales;
import com.phoenix.phoenixtales.rise.block.blocks.alloyfactory.AlloyContainer;
import com.phoenix.phoenixtales.rise.block... | 38.521277 | 189 | 0.639602 |
a64e6a5a3c9370c4c2e575b53915b01c930f90a1 | 2,025 | package by.andd3dfx.configs;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.messa... | 38.207547 | 91 | 0.766914 |
c580efee7e245fb75f4d9653330b2337c3754cd8 | 1,961 | /**
* Copyright (C) 2002 Mike Hummel (mh@mhus.de)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 23.345238 | 75 | 0.607853 |
e15c8060a031e69ad4f0f5f088d43565ae4e1ae4 | 786 | package org.develop.algorithm;
/**
* Hello world!
* @author
*/
public class App {
public boolean isPalindrome(String args){
if(null==args || args.length()==0){
return true;
}
StringBuilder newStr = new StringBuilder();
char[] charStr = args.toCharArray();
for ... | 24.5625 | 71 | 0.477099 |
f31aaedfcef1a0e117d21417950ef571c01d262f | 5,137 | package me.miles.matthew.SolitaireAnim;
import java.awt.Dimension;
import java.awt.Graphics2D;
import java.awt.geom.Point2D;
import java.awt.image.BufferedImage;
import java.io.InputStream;
import java.util.Random;
import javax.imageio.ImageIO;
public class Card {
private Point2D.Double position;
... | 32.308176 | 118 | 0.559471 |
92089e43c98247148eeaa226d1abed1bd061b2f6 | 4,786 | /*
* Copyright 2017 The Bazel Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 40.559322 | 99 | 0.763477 |
da0e577efc791adde0e0d122aded4c08ec44c894 | 1,236 | package sketch.util.fcns;
import java.util.Vector;
/**
* map values from one iterator to another.
*
* @author gatoatigrado (nicholas tung) [email: ntung at ntung]
* @license This file is licensed under BSD license, available at
* http://creativecommons.org/licenses/BSD/. While not required, if you make... | 30.146341 | 85 | 0.610032 |
c02aa3f513caab2fed1a22fd9bed1e5cc392ec8a | 1,975 | package org.rcsb.cif.binary.data;
import org.rcsb.cif.binary.encoding.ByteArrayEncoding;
import org.rcsb.cif.binary.encoding.Encoding;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Deque;
/**
* An array of floating point numbers using 3... | 26.333333 | 87 | 0.639494 |
ecb26eb480abe0163c3b922a5787adbe0bec8e0a | 290 | package br.com.eng_software.loja.dao;
import org.springframework.data.repository.CrudRepository;
import br.com.eng_software.loja.model.Usuario;
public interface UsuarioDAO extends CrudRepository<Usuario, Integer> {
public Usuario findByUsernameOrEmail(String username, String email);
}
| 29 | 70 | 0.831034 |
8b61d3cdfe7dfa41d2f63c4b4b85e3a10ca21891 | 3,714 | package com.qh.system.controller;
import com.github.pagehelper.PageInfo;
import com.qh.common.annotation.OperationLog;
import com.qh.common.util.PageResultBean;
import com.qh.common.util.ResultBean;
import com.qh.common.validate.groups.Create;
import com.qh.system.model.User;
import com.qh.system.service.RoleService;
... | 33.763636 | 132 | 0.683091 |
324686eca9586a6c3e4bb0f3c2d78846ad249302 | 1,169 | package ratelimit;
/**
* 平滑突发
*
* @author zhaoxuyang
*/
public class SmoothBursty extends SmoothRateLimiter {
/**
* 在RateLimiter未使用时,最多存储几秒的令牌
*/
final double maxBurstSeconds;
/**
* @param stopwatch guava中的一个时钟类实例,会通过这个来计算时间及令牌
* @param maxBurstSeconds 在ReteLimiter未使用时,最多保存几秒的令牌,默... | 24.87234 | 78 | 0.639863 |
13350315d50b0b8179639b1a8e86c0cc14593f64 | 3,038 | package ru.otus.appcontainer;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import ru.otus.appcontainer.api.AppComponent;
import ru.otus.appcontainer.api.AppComponentsContainer;
import ru.otus.appcontainer.api.AppComponentsContainerConfig;
import java.lang.reflect.InvocationTargetException;
import jav... | 38.948718 | 117 | 0.623766 |
76594c7bbb98a926b97e5ff82202bca845f943d5 | 2,355 | package com.exasol.adapter.document.documentfetcher.files.segmentation;
import static com.exasol.adapter.document.documentfetcher.files.segmentation.FileSegmentDescription.ENTIRE_FILE;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.*;
import static org.mockito.Mockito.mock;
im... | 44.433962 | 112 | 0.740552 |
bf7eb4e15706015d45f0516338cdf23415ea270d | 1,045 | package projects.displaynet.nodes.messages;
import projects.defaultProject.nodes.nodeImplementations.BinarySearchTreeLayer;
import sinalgo.nodes.messages.Message;
/**
* RPCMessage
*/
public class RPCMessage extends Message {
private String command;
private BinarySearchTreeLayer node;
private int value;
pu... | 18.660714 | 79 | 0.691866 |
2e7824cc4d9ceeeb44027568c99f73d95cf32f2d | 810 | package team.fjut.cf.pojo.po;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
/**
* @author axiang [2020/4/29]
*/
@Data
@Table(name = "t_spider_get_problem_info")
public class S... | 22.5 | 75 | 0.744444 |
3e7375c6d35cde9d71e2ece12947c05513cca8ec | 270 | package org.snomed.heathanalytics.store;
import org.snomed.heathanalytics.domain.Patient;
import org.springframework.data.elasticsearch.repository.ElasticsearchCrudRepository;
public interface PatientRepository extends ElasticsearchCrudRepository<Patient, String> {
}
| 33.75 | 89 | 0.866667 |
90aa838ef1645f27408c9a97975b3a261cc890bb | 3,654 | package nl.uva.larissa.json.model;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.UUID;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.ValidationException;
import javax.validation.Validator;
import org.apache.abdera.... | 23.273885 | 71 | 0.72879 |
d72aac3d361f22e5873e959287083dcf273045d7 | 3,503 | package com.test;
import javax.imageio.ImageIO;
import javax.servlet.ServletException;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Base64;
import java.util.Random;
/**
* @author zhangbo
*/
public class ValidationCode {
... | 26.141791 | 93 | 0.544391 |
9051c1a4afd6674b832db020dadd9529cdb65ef8 | 3,636 | /*
* Copyright (C) 2019 - 2020 Rabobank Nederland
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 37.484536 | 103 | 0.638339 |
21225711aa73988682a1a7656062f12ef6575f48 | 3,062 | /*
* Copyright (c) 2015-2022, Oracle and/or its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... | 30.62 | 80 | 0.60516 |
9a05c847b25880838cbfbb0044e09e61c0a5581b | 661 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package lk.ijse.gymmanagementsystem.business.custom;
import java.util.ArrayList;
import lk.ijse.gymmanagementsystem.business.SuperBO;
... | 31.47619 | 80 | 0.795764 |
275c5f1e506ffb357c9749526add20e4dd2b1196 | 2,624 | package com.notably.model.userpref;
import static java.util.Objects.requireNonNull;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.Objects;
import com.notably.commons.GuiSettings;
/**
* Represents User's preferences.
*/
public class UserPrefModelImpl implements UserPrefModel {
private... | 25.980198 | 77 | 0.661585 |
2076845b5a74a200c0629218d4d76e7f187dbec4 | 795 | package tpsql.test.junit.mysql;
import org.junit.Before;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;
import tpsql.sql.config.IDbConfig;
import tpsql.sql.config.IDbConfigFactory;
import tpsql.test.util.DbCo... | 31.8 | 114 | 0.783648 |
53a7168cfa85778e0a8acf52db04e0bce5ebc94e | 2,894 | package org.spincast.tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertNull;
import java.util.List;
import java.util.Map;
import org.junit.Test;
import org.spincast.core.exchange.DefaultRequestContext;
import org.spincast.core.routi... | 38.586667 | 112 | 0.638563 |
0866b4e61e7e72e56bb096ded1d2020a600f8d2c | 6,139 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 30.391089 | 126 | 0.68187 |
a85d770f3dc2413a5dbc7357e89448d82ff483a8 | 4,148 | package webservice.client.IPGU02;
import com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl;
import exception.ElkServiceException;
import org.apache.log4j.Logger;
import org.junit.BeforeClass;
import org.junit.Test;
import webservice.MyServiceLogHandler;
import webservice.client.IPGUElkSubscribe... | 37.035714 | 108 | 0.676471 |
093478c46912a15dab9b8aa2325d3e89ec27ae7e | 770 | package com.flair.bi.domain.value;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import com.fasterxml.jackson.annotation.JsonTypeName;
@Entity
@DiscriminatorValue(value = "DECIMAL")
@JsonTypeName(value = "DECIMAL")
public class DecimalValue extends Val... | 20.263158 | 53 | 0.745455 |
6148012c4fea8c8581c544676fbf539698068c7b | 288 | package in.techware.lataxidriverapp.listeners;
/**
* Created by Jemsheer K D on 29 November, 2016.
* Package com.company.sample.listeners
* Project Telugu Catholic Matrimony
*/
public interface ProgressListener {
void update(long bytesRead, long contentLength, boolean done);
}
| 24 | 66 | 0.763889 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.