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 |
|---|---|---|---|---|---|
177cecd1987a36fa7c2c09170c37b139e869eed3 | 835 | package example;
//public class MyThread implements Runnable {
// @Override
// public void run() {
// System.out.println(Thread.currentThread().getName());
// }
//}
public class MyThread extends Thread{
@Override
public void run() {
synchronized (MyThread.class){
try {
... | 24.558824 | 69 | 0.584431 |
357b490904ca7fcc94db51b51586846f62954eb4 | 7,755 | package com.game;
import com.messages.PlayerStatus;
import com.server.EachConnection;
import com.server.ServerState;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.util.*;
public class GameRoom {
// assuming there are up t... | 26.02349 | 93 | 0.57795 |
d2758e53ac440c95485b981120819018755ac477 | 272 | package com.entropyshift.user.constants;
/**
* Created by chaitanya.m on 2/21/17.
*/
public enum UserValidationErrorCodeDescriptors
{
UNDEFINED,
USER_ID_NOT_AVAILABLE_FOR_REGISTRATION,
EMAIL_ADDRESS_ALREADY_REGISTERED,
CONFIRM_PASSWORD_DOES_NOT_MATCH
}
| 20.923077 | 46 | 0.790441 |
613ee5ad2538b460c1ca7c63027701aeccae5f41 | 14,169 | /*
* Copyright (C) 2013 readyState Software Ltd
*
* 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 ... | 40.13881 | 143 | 0.641118 |
09bb9fb5056a71b378141da7544e9209c45d0e71 | 210 | package sgf.gateway.integration.metrics.tds.transformer;
import sgf.gateway.service.metrics.FileDownloadDetails;
public interface LogEntryTransformer {
FileDownloadDetails transform(String tdsMetrics);
}
| 26.25 | 56 | 0.838095 |
bfa3dd01dd02f2b44bfc7ffd2b7c9e7689accae1 | 4,358 | package com.credibledoc.combiner.log.buffered;
import com.credibledoc.combiner.exception.CombinerRuntimeException;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Enumeration;
/**
* Provides concatenated streams from
* the {@link #enumeration} field.
*
* @... | 29.646259 | 84 | 0.596374 |
7c5364954564666e283cc63378687fe6662fb573 | 26,681 | /**
* Copyright (C) 2012 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.analytics.financial.credit.indexcreditdefaultswap.definition;
import org.testng.annotations.Test;
import org.threeten.bp.ZonedDateTime;
import com.opengamma.... | 62.631455 | 170 | 0.707507 |
21024066cbe1bec8c2fc3e34e6fc820b2e61e14b | 1,205 | package de.coaster.music.commands;
import com.sedmelluq.discord.lavaplayer.player.AudioPlayer;
import de.coaster.DiscordTutorial;
import de.coaster.commands.types.ServerCommand;
import de.coaster.music.MusicController;
import de.coaster.music.MusicUtil;
import net.dv8tion.jda.api.entities.GuildVoiceState;
import net.... | 33.472222 | 113 | 0.771784 |
ddf3e0548cc92dd05facdf3ebd3215ac90a19a9b | 1,236 | package co.edu.icesi.nextfruit.modules.persistence;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
/**
* This class represents an XML element of type Colour.
* @a... | 17.408451 | 67 | 0.644013 |
72f55b2fa8f56e5173c8acd9baf014864e0cb665 | 712 | package FrontController;
import java.io.Serializable;
public class FrontController implements Serializable {
private Dispatcher dispatcher;
public FrontController(){
dispatcher=new Dispatcher();
}
public boolean isAuthenticUser() {
System.out.println("======== 使用FrontController前端控制... | 22.25 | 74 | 0.63764 |
2e0c604aef6203973fbfd24f79be7b47a8eec725 | 995 | package com.lmk.core.commons.test;
import org.junit.jupiter.api.Test;
import com.lmk.core.commons.jwt.JwtUtils;
import com.lmk.core.commons.jwt.support.Token;
/**
* JWT 令牌测试
* @author LaoMake
* @email laomake@hotmail.com
*/
public class JwtTest {
@Test
public void testGetToken(){
String secret = ... | 28.428571 | 241 | 0.698492 |
089915e7f1d0cb0ba374d09eedc5500d3861ed68 | 1,197 | package com.freekai.beanpp;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.beans.factory.BeanFactoryAware;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.core.Ordered;
import org.springfram... | 27.837209 | 100 | 0.790309 |
41ad33bfc85818fc3e265b68fc16635c365f5ea8 | 2,959 | package cn.com.pyc.reader.music;
import java.util.Observable;
import java.util.Observer;
import com.qlk.util.global.GlobalObserver;
import cn.com.pyc.global.ObTag;
import cn.com.pyc.pbb.reader.R;
import android.app.Notification;
import android.app.Notification.Builder;
import android.app.NotificationManager... | 22.761538 | 84 | 0.698209 |
7efc67ac59e016f9b1f43eb0881d70094a3c4ea5 | 11,905 | package cs490.cal_o_meter.ui.home;
import android.content.Intent;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.Base64;
import androi... | 42.978339 | 113 | 0.549265 |
05cff64f4d9f5c8ca99dd0a7f835483cca524a6c | 943 | package com.smaato.soma.p236a;
import android.content.Intent;
import com.smaato.soma.C12398ha;
/* renamed from: com.smaato.soma.a.k */
/* compiled from: AbstractBannerPackage */
class C12122k extends C12398ha<Void> {
/* renamed from: a */
final /* synthetic */ C12123l f38012a;
C12122k(C12123l this$3) {
... | 31.433333 | 124 | 0.653234 |
f47a4f69811cb0829caebf8e5ab4d91f53fd597a | 686 | package com.majeur.psclient.util.html;
import android.view.View;
import androidx.annotation.NonNull;
import com.majeur.psclient.service.ShowdownService;
import com.majeur.psclient.ui.MainActivity;
public class UsernameSpan extends ClickableSpan {
private final String mUsername;
public UsernameSpan(String us... | 28.583333 | 82 | 0.718659 |
2abdfaf2d2665bb1f696e962c351ab569772c81e | 5,332 | package centralserver.protocols;
import centralserver.processing.report.Report;
import centralserver.processing.report.ReportError;
import centralserver.processing.report.ReportOk;
import centralserver.processing.request.RequestToWS;
/**
* Protocol beteween CS-WS, creates de messages to be sent and
* confirms the p... | 43 | 140 | 0.513503 |
2a06ca71aa1fea505770ca1acb7d5e8a128a35a1 | 512 | package gridscheduler.model;
/**
*
* The NodeStatus enumeration expresses that state of a node. It can be available, busy or down.
* When a node is <i>idle</i>, there is no job running at that node. If there is a job running at the node, its
* status is <i>busy</i>, indicating that it cannot accept another... | 24.380952 | 116 | 0.65625 |
2cc101bd2029ffba3e20d9ddd1b1779e3a627519 | 2,980 | package com.example.richtext;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Bundle;
import android.support.annotation.AttrRes;
import android.support.annotation.IdRes;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import and... | 38.701299 | 93 | 0.616443 |
34d8e1e5c072357338f4ea7ac9eae75594f5683a | 1,072 | package com.tianshuo.thread.d2;
/**
* @ClassName : InterrupterTest
* @Description : 测试线程打断方法
* @Author : tianshuo
* @Date: 2020-08-08 17:00
*/
public class InterrupterTest {
public static void main(String[] args) {
Thread t1 = new Thread(() -> {
try {
Thread.sleep(1000);... | 19.490909 | 57 | 0.481343 |
cf11e77fb7606e00377bdd8ede723bf49b333d2d | 2,818 | /**
* Copyright (c) 2013 Egor Pushkin. All rights reserved.
*
* 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 without restriction, including without limitation the rights
* to use, cop... | 46.196721 | 94 | 0.745209 |
f90a0ef9f75ec9a42d036d6bc11ccc01dc0989cb | 460 | package org.pzy.opensource.okhttp.domain.bo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import java.io.Serializable;
/**
* @author 潘志勇
* @date 2019-01-15
*/
@Setter
@Getter
@ToString
public class DownloadFileInfo implements Serializable {
private static final long serialVersionUID = ... | 16.428571 | 71 | 0.682609 |
906e87188a50004b684b20ec347f63d87bf71ccb | 319 | package com.angkorteam.fintech.helper;
import com.angkorteam.fintech.IMifos;
import io.github.openunirest.http.JsonNode;
public class FixedHelper {
public static JsonNode create(IMifos session, JsonNode object) {
return Helper.performServerPost(session, "/api/v1/fixeddepositproducts", object);
}
}
| 24.538462 | 89 | 0.76489 |
5f5b1a2bf639d224c53e031471f93cae337fdbe9 | 3,706 | /*
* Copyright Terracotta, 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 required by applicable law or agreed to ... | 29.648 | 117 | 0.674312 |
6ea16da247d6dc24f3d392677e3e8a81f95c8fc5 | 386 | package kaiju.tools.ghihorn.hornifer.horn;
import ghidra.program.model.address.Address;
/**
* Interface for arguments
*/
public interface GhiHornArgument<T> {
/**
*
* @return the start
*/
public T getStart();
/**
*
* @return the end
*/
public T getEnd();
public ... | 15.44 | 44 | 0.606218 |
8bacc3391e09891d798b2c1bad96c5b99ea9b135 | 3,738 | /*
* Copyright (C) 2015 Andriy Druk
*
* 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... | 30.390244 | 125 | 0.700107 |
712d834e67e4b7a9000e244ea60d2297a5d08931 | 5,724 | package cn.org.atool.fluent.mybatis.generator.shared2.dm;
import org.test4j.hamcrest.matcher.modes.EqMode;
import org.test4j.module.database.IDatabase;
import org.test4j.module.database.annotations.ColumnDef;
import org.test4j.module.database.annotations.ScriptTable;
import org.test4j.tools.datagen.DataMap;
import org... | 26.5 | 130 | 0.682565 |
79515d3ec35fbf9ca552bf93c37a141a5dc3ab90 | 2,063 | package cc.springcloud.hazelcast.discovery.consul;
import com.hazelcast.config.properties.PropertyDefinition;
import com.hazelcast.logging.ILogger;
import com.hazelcast.spi.discovery.DiscoveryNode;
import com.hazelcast.spi.discovery.DiscoveryStrategy;
import com.hazelcast.spi.discovery.DiscoveryStrategyFactory;
impor... | 40.45098 | 112 | 0.813379 |
aa7691d40eb4138f12e2ba11009760c3f2417777 | 108 | package fruta;
public class Pera extends Fruta {
public Pera(int peso) {
super(Color.VERDE, peso);
}
}
| 13.5 | 33 | 0.694444 |
7b0c19d332bbba0f01be3d4e1c4d83baf1a8eec7 | 5,522 | package com.mthree.bsm.repository;
import com.mthree.bsm.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.IncorrectResultSizeDataAccessException;
import org.springframework.http.ResponseEntity;
import org.springframework.jdbc.core.JdbcTemplate;
import org.sprin... | 36.328947 | 119 | 0.615538 |
fc8b73d9f8a27e0b7a1e4ee13faf2d662e72be6c | 12,859 | package org.terraform.utils.version;
import java.lang.reflect.Method;
import java.util.HashMap;
import java.util.Random;
import org.apache.commons.lang.StringUtils;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.block.Biome;
import org.bukkit.block.BlockFace;
import org.bukkit.block.data.Bloc... | 42.160656 | 132 | 0.746326 |
6e6e46973ac8fc7d1a23cf2c9f6664bed708d448 | 1,098 | package com.hjwylde.qux.tree;
import static com.google.common.base.Preconditions.checkNotNull;
import static java.util.Arrays.asList;
import com.hjwylde.qux.util.Attribute;
import com.google.common.collect.ImmutableList;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
/**
* TODO: D... | 23.869565 | 85 | 0.699454 |
6e0b8db80c11b3fddc3df108e679bc37360676c4 | 2,135 | package com.core.ui.dialogs;
import com.core.Controller;
import com.core.data.CoreNode;
import com.core.ui.Toast;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXTextArea;
import com.jfoenix.controls.JFXTextField;
import javafx.concurrent.Task;
import javafx.fxml.FXML;
import javafx.stage.Modalit... | 29.246575 | 97 | 0.662763 |
6dae0166b66fc884f5c6d9e3dcce5b67630320cd | 176 | package com.stp.stayzilla.constants;
/**
* Created by Santhosh on 01-02-2015.
*/
public interface AppConstants {
public static String RESPONSE_KEY = "response_key";
}
| 16 | 55 | 0.721591 |
de69449bee0c2760cce211ab1374050947129779 | 543 | package com.platform.mvc.image;
import com.jfinal.log.Log;
import com.jfinal.render.Render;
import com.platform.annotation.Controller;
import com.platform.beetl.render.MyCaptchaRender;
import com.platform.mvc.base.BaseController;
/**
* 验证码
* @author 董华健
*/
@Controller("/platform/authImg")
public class AuthImgContr... | 20.111111 | 68 | 0.758748 |
4771ca5c8f0de68062b9e00830412d2bb961245b | 3,223 | package uk.ac.ebi.interpro.scan.management.model.implementations.stepInstanceCreation.nucleotide;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Required;
import uk.ac.ebi.interpro.scan.management.model.StepInstance;
import uk.ac.ebi.interpro.scan.management.model.implementations.R... | 29.568807 | 121 | 0.699969 |
dce5699616da69e9ca2e40f6c0376220c2bc1cd4 | 1,848 | package dotcpp_2;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* @author: afuya
* @program: BiShiLianXi
* @date: 2021/6/5 3:15 下午
*/
public class T_1186 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while (sc.hasNext()) {
... | 31.322034 | 84 | 0.371212 |
fb1def3b1e4450cb9a6545a78bae630c45f958f9 | 7,898 | package co.tinode.tindroid;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.View;
import and... | 39.293532 | 119 | 0.606229 |
3256b78a0e31e165da61c093ff65a1752c71d764 | 3,452 | package com.nway.spring.jdbc.bean.processor;
import java.sql.ResultSet;
import java.sql.SQLException;
public abstract class RowMapper<T> {
public abstract T mapRow(ResultSet rs) throws SQLException;
protected Boolean getBoolean(ResultSet rs, int columnIndex) throws SQLException {
boolean val = rs.ge... | 32.87619 | 94 | 0.648899 |
03464f4b461f4b15417d1eb0a3647eb9cf76d065 | 8,389 | package com.mob.ums.gui.themes.defaultt.components;
import android.content.Context;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import com.mob.MobSDK;
import com.mob.jimu.gui... | 30.394928 | 106 | 0.69019 |
fe3c951d360467d695225cfb4e1299af84390952 | 1,418 | package com.p2pgate.bank_gate.rest.domain.gateways.bin;
/**
* Created by OAKutsenko on 07.04.2017.
*/
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Jso... | 20.257143 | 58 | 0.632581 |
bbd6dd02261829c9de87c0849cc0cfa16c95c52c | 2,088 | package com.lqb.ctci;
/**
*
*
* 有数量不限的硬币,币值为25分、10分、5分和1分,请编写代码计算n分有几种表示法。
*
* 给定一个int n,请返回n分有几种表示法。保证n小于等于100000,为了防止溢出,请将答案Mod 1000000007。
*
* 测试样例:
* 6
* 返回:2
*
* @author:JackBauer
* @date:2016年9月23日 下午4:06:28
*/
public class Coins_CountWays {
public static void main(String[] args) {
Coins_Co... | 17.546218 | 74 | 0.602969 |
abddc41c7a50f757d56d0ac50ed27a65f4ca61c0 | 3,383 | package com.qa.HWA.persistance.domain;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.validation.constraints.Max;... | 24.338129 | 91 | 0.70204 |
16ad3dfa7764caa7275ac614e7c07336600b1844 | 70 | package com.quasartec.apis.ABM.agents;
public class Resource {
}
| 14 | 39 | 0.728571 |
1df952d75b99cfbb2a588afca0ac083bc957ab6c | 1,390 | /**
* Copyright (C) 2014 Esup Portail http://www.esup-portail.org
* @Author (C) 2012 Julien Gribonvald <julien.gribonvald@recia.fr>
*
* 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
* ... | 32.325581 | 75 | 0.764748 |
a83978a2db29db725fbe023ddd27676d9bbfc69a | 854 | package com.flexible.order.testhelper.EntityBuilder;
import java.util.HashSet;
import java.util.Set;
import com.flexible.order.domain.report.Report;
import com.flexible.order.domain.report.ReportItem;
public abstract class ReportBuilder<BEAN extends Report, BUILDER extends Builder<BEAN>> implements Builder<B... | 28.466667 | 114 | 0.750585 |
40ff37ad407c178733188622a5d77d64eb562c19 | 92 | package compiler;
public class ProgramText {
public ProgramText(String txt) {
}
}
| 11.5 | 36 | 0.684783 |
c15c49361a4715849a98c2663aaecdc31ba8b3ba | 2,729 | /*
* Copyright 2016 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 applica... | 38.985714 | 120 | 0.763283 |
41798dea636a235a6ec1a11e6d63bba15fb7fb94 | 730 | package shapes;
import javafx.scene.shape.Polygon;
public class TriangleCreator {
public static final int VERTEX_NUM = 6;
public static final double RATIO_TRIANGLE_HEIGHT = Math.sqrt(3)/2;
private Polygon myTriangle;
public TriangleCreator(double leftCornX, double leftCornY, double sideLength, int di... | 30.416667 | 106 | 0.657534 |
c161c3ae28610626b257fd7e867b5f7105e22c7c | 462 | package com.app.sumup.payment.domain.model.receipt;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class MerchantData {
@SerializedName("merchant_profile")
private MerchantProfile merchantProfile;
public MerchantProfile getMerchantProfile() {
return merchantPr... | 20.086957 | 69 | 0.751082 |
3547ebbb5ad4aa425a69019cb249fca39b0e15f5 | 2,206 | package io.github.boavenn.selfimprovementhelper.auth.token;
import io.github.boavenn.selfimprovementhelper.auth.exception.ExpiredTokenException;
import io.github.boavenn.selfimprovementhelper.auth.exception.InvalidTokenException;
import io.github.boavenn.selfimprovementhelper.auth.user.AppUser;
import lombok.RequiredA... | 35.015873 | 84 | 0.719402 |
3d33398642e4d198c56161fac50ec3bd03460e1d | 740 | package Algorithms;
public class ReverseInt {
public static int reverseInt(int num){
int reverse = 0;
while(num != 0){
int tail = num % 10;
int newNum = reverse * 10 + tail;
if((newNum - tail)/10 != reverse){
return 0;
}
r... | 26.428571 | 71 | 0.485135 |
14a0fd67d125e9ef6850d63fba256de6e8f05e10 | 179 | package com.github.hypsynz.naturalmouse.api;
/**
* Use to observe mouse movement in MouseMotion
*/
public interface MouseMotionObserver {
void observe(int xPos, int yPos);
}
| 19.888889 | 47 | 0.75419 |
93c025f8ce22bd13a69d3d42d02a8f161df436f1 | 3,887 | /* L2jFrozen Project - www.l2jfrozen.com
*
* 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 2, or (at your option)
* any later version.
*
* This program is distributed in ... | 29.007463 | 120 | 0.734757 |
7093a44359427d7099722e36ca58a04b3229bb63 | 526 | package com.saucesubfresh.starter.oauth.authentication;
import com.saucesubfresh.starter.oauth.domain.UserDetails;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @author : lijunping
* @weixin : ilwq18242076871
* Description: 认证实体类
*/
@Dat... | 21.916667 | 69 | 0.804183 |
19e49b97cc5e52c3bfc5ed15b83fd78be186e346 | 8,035 | /*
package com.hass.ali.doctorsapp;
import android.support.design.widget.TabLayout;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.... | 34.337607 | 130 | 0.648662 |
e216f8354d182c7a3c931f524fa8f8b459358f29 | 4,689 | package biweekly.io.scribe.property;
import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import javax.xml.transform.OutputKeys;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.xml.sax.SAXException;
import biweekly.ICalDataType;
import biw... | 33.733813 | 132 | 0.743016 |
62190b4fa760986471c271e9fb6df6599d14bb67 | 6,872 | package org.unichain.core.actuator;
import com.google.common.math.LongMath;
import com.google.protobuf.Any;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import lombok.extern.slf4j.Slf4j;
import lombok.val;
import lombok.var;
import org.springframework.util.Assert;
i... | 40.662722 | 163 | 0.724825 |
493fe96d2281516db1d8f0dd1957714bfc159faa | 954 | package com.massivecraft.factions.commands.towny;
public class TownyUtil {
static String formatTitle(String title) {
String line = ".oOo.__________________________________________________.oOo.";
int pivot = line.length() / 2;
String center = ".[ §e" + title + "§6" + " ].";
String ou... | 30.774194 | 101 | 0.530398 |
57392e847e7be1e8956ff55c678923807432eb4e | 3,316 | // ============================================================================
//
// Copyright (C) 2006-2018 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 39.47619 | 128 | 0.675814 |
64cf113231e689b4844113267aaacfe4422e2dbe | 4,482 | import oop.ex3.spaceship.ItemFactory;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.util.Arrays;
import java.util.concurrent.locks.Lock;
public class SpaceshipTest {
/**
* Spaceship object
*/
private static Spaceship spaceship;
/**
* Current class for... | 29.103896 | 100 | 0.579429 |
1acc8655e0205942caf3a83d288d8f8f13c45cc3 | 1,148 | package com.github.sparkzxl.oauth.infrastructure.config;
import org.springframework.security.config.annotation.SecurityConfigurerAdapter;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFil... | 33.764706 | 114 | 0.81446 |
882bf0ba3f0f6f80cce5942fe8a9b965545f8af0 | 3,616 | package site.iway.androidhelpers;
import android.app.DownloadManager;
import android.app.DownloadManager.Query;
import android.app.DownloadManager.Request;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.databa... | 45.2 | 114 | 0.629701 |
f4a36576d84cdee7c435e6fc5e734c79fe41f829 | 915 | package org.bsc.confluence.rest.scrollversions.model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class S... | 26.142857 | 62 | 0.808743 |
35febb1e9e1b11a7c7750040d08160784e8fbb2e | 2,864 | package org.springframework.samples.petclinic.service;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.samples.petclinic.model.Ingrediente;
i... | 30.795699 | 100 | 0.758031 |
08a2b2a32244298dfba5c9422068a3fb3e3b2ebc | 5,947 | //
// ========================================================================
// Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others.
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// https://www.eclipse.org/... | 34.178161 | 218 | 0.669581 |
a0fc5551774fff039688c0a9a477d14434d39854 | 1,079 | package com.nidong.shop.shoppingMall.biz.suanfa;
/**
* 给定一个数组,将数组中的元素向右移动 k 个位置,其中 k 是非负数。
*
* 示例 1:
*
* 输入: [1,2,3,4,5,6,7] 和 k = 3
* 输出: [5,6,7,1,2,3,4]
* 解释:
* 向右旋转 1 步: [7,1,2,3,4,5,6]
* 向右旋转 2 步: [6,7,1,2,3,4,5]
* 向右旋转 3 步: [5,6,7,1,2,3,4]
* 示例 2:
*
* 输入: [-1,-100,3,99] 和 k = 2
* 输出: [3,99,-1,-100]
... | 20.75 | 51 | 0.492122 |
d78b73799aefb4e10733a359a87f78ed3d4d1f70 | 33,284 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.fasterxml.jackson.databind.deser.std;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
import com.fa... | 37.865757 | 139 | 0.558497 |
c845c98d7913f2ecba5a9a3411bac4dd3dbe2535 | 3,084 | /*
* Copyright 2016 Red Hat, Inc. and/or its affiliates.
*
* 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 app... | 37.609756 | 98 | 0.64786 |
5ccecddafb6d01446e2ea97fbabd39d358408412 | 1,587 | package com.sgcharts.beanvalidationexample.chapter12.booleancomposition;
import org.junit.BeforeClass;
import org.junit.Test;
import javax.validation.ConstraintViolation;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;
import java.util.Set;
import stat... | 28.339286 | 81 | 0.770636 |
cf4388d65a22aaefbdb1473f980545007e31aeca | 242 | /**
*
*/
package com.photo.pgm.core.vo;
import com.photo.bas.core.utils.PageInfo;
import com.photo.pgm.core.model.CostCenter;
/**
* @author FengYu
*
*/
public class CostCenterQueryInfo extends PageInfo<CostCenter> {
}
| 15.125 | 64 | 0.665289 |
8d983461d7453d62b506362ee590e574f68c2842 | 10,944 | /*
* Copyright (c) 2009, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... | 33.264438 | 123 | 0.59311 |
36525c9e3c9e3e12416daed91919c1b21ec6d389 | 1,597 | package counter;
public interface Queue<E> {
/**
* Inserts the specified element into this queue if it is possible to do
* so immediately without violating capacity restrictions.
* When using a capacity-restricted queue, this method is generally
* preferable to {@link #add}, which can fail to inse... | 34.717391 | 77 | 0.64809 |
fac5df3e398788489bda38a1baad9034d5972205 | 1,112 | package com.mvp4g.example.client.main.view;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.user.client.ui.Anchor;
import com.google.gwt.user.client.ui.DecoratedPopupPanel;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;
import com.mvp4g.exampl... | 25.860465 | 88 | 0.730216 |
15f4aa28bd6e8f2d8a1438c7190a2d90b4da847e | 9,088 | /*
* Copyright (c) 2008-2013, Hazelcast, Inc. 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 ... | 31.017065 | 111 | 0.52971 |
883a2ea92156c2260f02c327c4cfd21d1919e14d | 4,138 | package com.cykj.pos.domain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cykj.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableI... | 17.028807 | 59 | 0.570324 |
5bd55f5b88531e2070d9255a5b695fb8d04a6be7 | 4,574 | package crazypants.enderio.base.power.forge.tile;
import java.util.EnumMap;
import java.util.WeakHashMap;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import crazypants.enderio.base.EnderIO;
import crazypants.enderio.base.config.config.DiagnosticsConfig;
import net.minecraft.tileentity.TileEnti... | 35.734375 | 154 | 0.698951 |
d757c4a15802ff3afcad70eeebf415b59db877cb | 279 | package org.infinispan.notifications;
/**
* A filter for keys.
*
* @author Manik Surtani
* @since 6.0
*/
public interface KeyFilter<K> {
/**
* @param key key to test
* @return true if the given key is accepted by this filter.
*/
boolean accept(K key);
}
| 16.411765 | 63 | 0.630824 |
bd8432119bf2aeef67ac43effe9dc539afcd599d | 1,296 | /* ###
* IP: GHIDRA
* REVIEWED: YES
*
* 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 ag... | 28.173913 | 92 | 0.727623 |
fafc591b1a4e4265e2f5f6d73574f1e995634f18 | 2,114 | // Copyright (C) 2017 The Android Open Source Project
//
// 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 ... | 31.088235 | 75 | 0.750237 |
8cf4f9f7231e3e5e117743b037514aca0cc5c04d | 1,184 | package com.gildedrose;
import static org.junit.Assert.*;
import org.junit.Test;
import org.junit.Before;
public class ItemTest {
private Item itemWithSellIn, itemZeroSellIn;
@Before
public void setUp() {
itemWithSellIn = new Item("foo", 4, 4);
itemZeroSellIn = new Item("foo", 0, 4);
... | 21.142857 | 62 | 0.622466 |
938a009c787fbb998e74e2b385766bbc3e22712e | 3,275 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License;
* you may not use this file except in compliance with the Elastic License.
*/
package org.elasticsearch.xpack.core.slm;
import org.elasticsearch.common.io... | 47.463768 | 129 | 0.660458 |
f56b5edf40cf6f42008d2320ef85e14a54b010f3 | 10,345 | package com.ambit.otgorithm.views;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.Color;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import and... | 42.747934 | 207 | 0.556501 |
e4f5d0af398aa415e665b6a21b51d84ad211bc0f | 275 | package com.github.davidmoten.security;
public final class InputTooLongException extends IllegalArgumentException {
private static final long serialVersionUID = -6268604494805242633L;
public InputTooLongException(String message) {
super(message);
}
}
| 22.916667 | 75 | 0.770909 |
48bfc4824b349867e9f16e9d82085f14e3c4b079 | 6,259 | package net.xpece.android.widget;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.support.annotation.IntDef;
import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
i... | 37.255952 | 148 | 0.637162 |
0efaa3137c8c3eaad2aac6183a8192542407a9ad | 2,194 | /**
* Created by inpwt on 27/01/2016.
*
* Control types - see https://msdn.microsoft.com/en-us/library/windows/desktop/ee671198(v=vs.85).aspx
*/
public final class ControlType {
public static final int Button = 50000;
public static final int Calendar = 50001;
public static final int CheckBox ... | 44.77551 | 102 | 0.657703 |
82ce69e8c87095329c3a5414d3fed6cb96e41282 | 499 | package pers.ervin.mq.config;
import org.springframework.amqp.core.DirectExchange;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
// @Configuration
public class CommonConfig {
@Bean
public DirectExchange simple... | 26.263158 | 60 | 0.741483 |
8dba26b12ff4f53b707f9bca2d7f8b95f0e4f272 | 9,222 | /**
* Copyright (c) 2014-2017, FrontEndART Software Ltd.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright
* notice, thi... | 43.5 | 110 | 0.697896 |
94acd61b8557b352e727dc0eb2c14487aa1f52d8 | 616 | package com.jtj.cloud.schedule;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation... | 25.666667 | 66 | 0.814935 |
ebeafe75e4ee41a09306bb2baaca6f6ce8424ab8 | 4,187 | package org.siouan.frontendgradleplugin.infrastructure.gradle;
import static java.util.Arrays.asList;
import static java.util.Collections.emptySet;
import static java.util.Collections.singletonMap;
import static java.util.stream.Collectors.toCollection;
import static org.assertj.core.api.Assertions.assertThat;
import ... | 42.72449 | 114 | 0.752806 |
ab3149996986f1afcfa5a66e41fbd02f09851b6a | 689 | package Basics;
public class evenDigits {
public static void main(String[] args) {
int arr[] = { 88, 88782, 542, 23, -444 };
int numCount = 0;
for (int i = 0; i < arr.length; i++) {
if (isEven(arr[i])) {
numCount++;
}
}
System.out.print... | 22.966667 | 52 | 0.426705 |
df9569cbba4efabe514efed6fe4eaadb2bed2647 | 424 | package edu.monash.fit2099.demo.conwayslife;
import edu.monash.fit2099.engine.Ground;
import edu.monash.fit2099.engine.Location;
public class Tree extends Ground {
private int age = 0;
public Tree() {
super('+');
addCapability(Status.ALIVE);
}
@Override
public void tick(Location location) {
super.tick(lo... | 16.307692 | 44 | 0.67217 |
ab8f174a3b723753fd4fae09ea679314db36af71 | 217 | public class MyTimer {
private final long start;
public MyTimer() {
start = System.currentTimeMillis();
}
public long getElapsed() {
return System.currentTimeMillis() - start;
}
} | 19.727273 | 50 | 0.617512 |
8ff5e4310a738a67c98d9ed2559ab8dd5da5ed0f | 4,764 | package org.apache.spark.sql.execution.streaming;
/**
* Used to write log files that represent batch commit points in structured streaming.
* A commit log file will be written immediately after the successful completion of a
* batch, and before processing the next batch. Here is an execution summary:
* - trigger ba... | 83.578947 | 170 | 0.755877 |
54040fbf529d801210561edb68bb2a2da0ee5a14 | 16,494 | package cn.ffcs.wisdom.city.datamgr;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import an... | 25.852665 | 96 | 0.671032 |
9e1d7d7fe00445744865c4d640b43d0bd3da2752 | 2,342 | package servlet;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import bean.User;
... | 28.91358 | 104 | 0.715628 |
d23ef4bc7f9453152829f8983297c6e3652b3c7c | 6,713 | /* 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 agreed to in writing, software
* distributed... | 36.286486 | 124 | 0.71518 |
8bd04e022688ec1ce1616f9a572825606a0e6a6d | 2,423 | package com.talexframe.frame.core.modules.network.interceptor.request;
import com.talexframe.frame.core.modules.event.events.request.PostHandleRequest;
import com.talexframe.frame.core.modules.event.events.request.PreHandleRequest;
import com.talexframe.frame.core.modules.event.events.request.RequestAfterCompletion;
i... | 33.191781 | 129 | 0.768469 |
f3946c3b2e5b03fbcbefc19ca81f6428639a4d29 | 2,487 | /*
* Copyright (C) 2012 Intel Corporation
* All rights reserved.
*/
package com.intel.mtwilson.setup.cmd;
import com.intel.mtwilson.ms.common.MSConfig;
import com.intel.dcsg.cpg.console.Command;
import com.intel.mtwilson.setup.SetupContext;
import com.intel.mtwilson.setup.SetupException;
import com.intel.mtwilson.s... | 37.119403 | 204 | 0.637314 |
f46c84bb5dcdeec85c17036535fba095a75c2dec | 531 | package de.quinscape.automaton.runtime.data;
import de.quinscape.automaton.runtime.AutomatonException;
public class RuntimeQueryException
extends AutomatonException
{
private static final long serialVersionUID = -8711428861270106099L;
public RuntimeQueryException(String message)
{
super(mess... | 18.964286 | 71 | 0.711864 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.