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 |
|---|---|---|---|---|---|
21a39f09488d8d7f12b3e26f64aff5dbe172f20f | 967 | package com.pig.easy.bpm.api.dto.response;
import com.pig.easy.bpm.auth.dto.response.FileTemplateDTO;
import com.pig.easy.bpm.auth.dto.response.UserDTO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.util.List;
import java.util.Map;
/**
... | 21.021739 | 71 | 0.764219 |
8bd92e91f2f8aa9a2f0f6f1c8606ae4552b90b77 | 5,541 | package commom;
import implementations.dm_kernel.MessageBoolImpl;
import implementations.dm_kernel.MessageClassImpl;
import implementations.dm_kernel.MessageCommonsImpl;
import implementations.dm_kernel.MessageControlImpl;
import implementations.dm_kernel.MessageGenericImpl;
import implementations.dm_kernel.MessageGet... | 39.021127 | 73 | 0.758166 |
568599a166331321b14538ab42a00dbd3219e899 | 656 | package ai.h2o.automl.preprocessing;
import ai.h2o.automl.AutoML;
import water.Iced;
public class PreprocessingStepDefinition extends Iced<PreprocessingStepDefinition> {
public enum Type {
TargetEncoding
}
Type _type;
public PreprocessingStepDefinition() { /* for reflection */ }
pu... | 22.62069 | 84 | 0.641768 |
5d041cacd1911fc8d0d2dd791ab5f7436ec7fae6 | 10,003 | package com.vladmihalcea.book.hpjp.hibernate.fetching;
import com.vladmihalcea.book.hpjp.hibernate.identifier.Identifiable;
import com.vladmihalcea.book.hpjp.util.AbstractTest;
import com.vladmihalcea.book.hpjp.util.providers.Database;
import org.hibernate.query.NativeQuery;
import org.hibernate.transform.BasicTransfo... | 30.220544 | 107 | 0.506748 |
879661de3a481b1dddb3878f4583ae5f0a71afa9 | 1,500 | package com.liaierto.beanImpl;
import java.util.Hashtable;
import com.liaierto.bean.IQueryDB;
public class TQueryDB implements IQueryDB{
private String[] mSelectFields = null;
private String[] mTableNames = null;
private Hashtable mWhereSql = new Hashtable();
private St... | 19.736842 | 61 | 0.607333 |
2600270154bd5ccdb9badfde89889a5e47202b2e | 3,718 | /**
* 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
* distribu... | 37.938776 | 116 | 0.690694 |
473bb2e08b103dbaf69b85c67cafc14c85d9176c | 9,427 | /*
* Copyright © 2015 Cask Data, 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 t... | 42.084821 | 120 | 0.72409 |
44d83ebad42b49d660b29106a160877eb5378636 | 3,761 | /*
* Copyright 2016 Crown Copyright
*
* 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... | 36.163462 | 109 | 0.687051 |
9c23e3991cca8cb080f4602ccd4d24d31189c0c4 | 480 | package lumien.randomthings.potion.effects;
import java.awt.Color;
import lumien.randomthings.potion.PotionBase;
import net.minecraft.util.ResourceLocation;
public class EffectCollapse extends PotionBase
{
public EffectCollapse()
{
super("collapse", false, Color.PINK.getRGB());
this.setIcon(new ResourceLoca... | 20 | 87 | 0.764583 |
d1ecb301311792d11ad98d98a8f11819c5aa726f | 6,602 | /* Copyright (C) 2016-2019 0nse, Andreas Shimokawa, Carsten Pfeiffer,
Daniele Gobbetti, Sebastian Kranz
This file is part of Gadgetbridge.
Gadgetbridge is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Soft... | 37.942529 | 113 | 0.72372 |
35185418aab4962b92e337882e85fa85bf19cbf7 | 911 | package edu.bc.base;
import java.util.ArrayList;
import java.util.List;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
@Component
@Scope(value = "singleton")
public class CoreApp {
private List<Transaction> tranList;
public CoreApp() {
System.out.println("... | 21.186047 | 102 | 0.722283 |
78fca6dcc7c1e98b7e4b0a20939abc6b5e6f837a | 88,200 | /*******************************************************************************
* Copyright 2016 Antoine Nicolas SAMAHA
*
* 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
*
* ... | 33.02134 | 195 | 0.669943 |
bf14f7b3e652c019bb0a0a334401330b8dc4edc3 | 2,602 | import java.io.*;
// import ANTLR's runtime libraries
import org.antlr.v4.runtime.*;
public class TVL_Parser
{
public static void main(String[] args) throws Exception
{
System.out.println("*************************************************************************");
System.out.println("TVL to Feathe... | 26.824742 | 99 | 0.603382 |
57f99c55ba6449aa50641ae0d45356d41889ba58 | 6,823 | package quicknote;
import java.util.ArrayList;
import java.util.List;
import quicknote.storage.QuickNote;
import quicknote.storage.QuickNoteDynamoDbClient;
import quicknote.storage.QuickNoteUserDataItem;
import com.amazon.speech.slu.Intent;
import com.amazon.speech.speechlet.Session;
import com.amazonaws.services.dy... | 31.442396 | 130 | 0.671845 |
c2d54cd60dbdaab005de18e56acc1372fdf421af | 9,342 | /*
* Copyright 2002-2018 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 33.010601 | 110 | 0.7614 |
6b4704d2998cafc3ee0995d011e4dea7177f5d60 | 34,417 | package edu.usfca.dataflow.jobs1;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Se... | 49.952104 | 120 | 0.628933 |
02acb4f5199333e64aa1a382b361b0c78be75253 | 3,743 | /*
* Copyright (C) 2011 Everit Kft. (http://www.everit.org)
*
* 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... | 33.123894 | 99 | 0.697569 |
011df0d5d910e4a4d22a3df70b71c4b3c656ef7d | 8,972 | /*
* Copyright 2008-2009 MOPAS(Ministry of Public Administration and Security).
*
* 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... | 28.392405 | 80 | 0.578578 |
26c42c39dbe860832023fd444391aa5c68ed4da8 | 545 | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner input=new Scanner(System.in);
int k,i=1,total=0,count = 0,result;
System.out.print("Bir sayi giriniz: ");
k=input.nextInt();
while (i<=k){
if (i%3==0&&i%4==0){
... | 17.03125 | 52 | 0.46789 |
680d1514028e2c9e6eaaeafc852f3dde8ebf2c82 | 1,338 | package com.nchroniaris.ASC.client.model;
import com.nchroniaris.ASC.client.multiplexer.TerminalMultiplexer;
import com.nchroniaris.ASC.util.model.GameServer;
import java.time.LocalTime;
/**
* This is a small class that specializes an ExecuteFileEvent object. When we KNOW that a particular GameServer has to be star... | 43.16129 | 267 | 0.751868 |
4a99cf83c28b8a1e9e861bf2ef405a610eed33c2 | 2,575 | package unisannino.denenderman;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.passive.EntityChicken;
import net.minecraft.entity.passive.EntityWolf;
import net.minecraft.entity.play... | 29.94186 | 208 | 0.646602 |
7b9a9a8a0fc7ef26f325503e87f8cb6e9dc4c548 | 809 | import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* The test class CargoTest.
*
* @author Joseph Teddick
* @author Garrett Rademacher
* @version 5/7/2017
*/
public class CargoTest
{
/** Tests to make sure the Cargo returns the correct ... | 21.289474 | 67 | 0.566131 |
1665280a6a5409a569ef766570eda5586534879a | 939 | package softuni.jsonprocessing.model.dto.export.query2;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class UserExportDto {
@Expose
private String firstName;
@Expose
private String lastName;
@Expose
@SerializedNam... | 20.413043 | 68 | 0.680511 |
eef40e3cdbd7535e50a5ae1685f900ed8332b307 | 709 | package com.guojianyiliao.eryitianshi.Utils.db;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
/**
* Created by Administrator on 2016/11/4 0004.
*/
public class HomeDoctorHelper extends SQLiteOpenHelper {
public HomeDoctorHelper(Co... | 28.36 | 148 | 0.739069 |
edbaeff31d15a59e281a389c8113c07378ce3739 | 314 | package tech.teslex.telegroo.telegram.api.methods.interfaces;
import tech.teslex.telegroo.telegram.api.methods.objects.GetFile;
import java.util.Map;
import java.util.function.Consumer;
public interface GetFileMethod<R> {
R getFile(Map data);
R getFile(GetFile data);
R getFile(Consumer<GetFile> data);
}
| 19.625 | 65 | 0.783439 |
e0d30bcfcec0f48fa35df8b8864aeddc4588d825 | 140 | package org.latheild.apiutils.constant;
public interface URLRequestSetting {
String PRODUCE_JSON = "application/json;Charset=UTF-8";
}
| 23.333333 | 59 | 0.785714 |
2a0c810000a2d50216d5bd2ee93fb64759b25318 | 3,194 | /**
*
* Process Editor - Petri net Package
*
* (C) 2008,2009 Frank Puhlmann
*
* http://frapu.net
*
*/
package net.frapu.code.visualization.petrinets;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.Shape;
import ... | 26.180328 | 96 | 0.600501 |
2350234ad14db7f99f531b5d626668d71cbe5523 | 586 | package be.henallux.ig3.javaB3.InsideOut.dataAccess.repository;
import be.henallux.ig3.javaB3.InsideOut.dataAccess.entity.TranslationCategoryEntity;
import be.henallux.ig3.javaB3.InsideOut.dataAccess.entity.TranslationCategoryId;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.... | 41.857143 | 110 | 0.865188 |
4c1885d53c0aebeb914c2d07c4cfd11e8d2f6dd6 | 6,194 | /*
* 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 ... | 39.202532 | 140 | 0.649661 |
7fc86d2bbab4a75b76f1e60f2ebeefa105bcba77 | 223 | package com.pragmatic.apprat.repositories;
import com.pragmatic.apprat.domain.Server;
import org.springframework.data.repository.CrudRepository;
public interface ServerRepository extends CrudRepository <Server, Long> {
}
| 27.875 | 73 | 0.838565 |
62a6c64ec4d2d8f0a456ae0173d15873291aac28 | 2,271 | /*
* Copyright (c) 2013-2015 Frank de Jonge
*
* 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, copy, modify, merge,... | 29.881579 | 82 | 0.748129 |
0987b42f3c5b9f6d15b8774bf8d6a37c314ab98d | 1,999 | /*
* Copyright 2013 - 2019 The Original 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 b... | 26.653333 | 82 | 0.701351 |
d113d849e0676181f80fbd620e1e130b4e301967 | 8,492 | package com.proyecto.flowmanagement.ui.views.forms;
import com.proyecto.flowmanagement.backend.persistence.entity.Groups;
import com.proyecto.flowmanagement.backend.persistence.entity.OperationParameter;
import com.proyecto.flowmanagement.backend.persistence.entity.OptionValue;
import com.proyecto.flowmanagement.backe... | 35.236515 | 120 | 0.650848 |
7d84fe20e207d6eb252b75d98bc35c8b93caa514 | 3,224 | package org.drools.clp.valuehandlers;
import java.math.BigDecimal;
import java.math.BigInteger;
import org.drools.base.SimpleValueType;
import org.drools.clp.ExecutionContext;
import org.drools.clp.ValueHandler;
public class DoubleValueHandler implements ValueHandler {
private double doubleValue;
public... | 31.920792 | 115 | 0.681452 |
8d358fcea4b6b49a066bb041760802e08dc684b9 | 1,128 | package com.halo.blog.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* ... | 17.625 | 55 | 0.634752 |
1c5b350e8af63323190a0793a9824056f5d479fc | 15,374 | /**
* Copyright 2012 Twitter, 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 i... | 40.779841 | 174 | 0.705477 |
ab8285d10ef65e712acdfe0ba2de1ed139e9b4dc | 652 | package com.sin.orb.security;
import org.springframework.security.core.GrantedAuthority;
/**
* Constants describing user roles
*/
public enum Role implements GrantedAuthority {
/**
* Default role that all users have
*/
USER("ROLE_USER");
private final String name;
/**
* Name of the ... | 21.733333 | 93 | 0.633436 |
f9fb4545a305bfb1653e5b534000905527d45b32 | 1,112 | package com.stackroute.controller;
import com.stackroute.model.Node;
import com.stackroute.service.MovieService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframe... | 34.75 | 107 | 0.776079 |
c3baed1d5b74fb69024fc5b5fa3c6139a18c16f1 | 2,455 | package org.squonk.core.dataset.service;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
*
* @author timbo
*/
public class SimpleFileCacheService {
... | 27.277778 | 95 | 0.590631 |
6a79646a0770cc23a26981300ada65dbe4dc69f4 | 1,344 | package org.gjt.plane.test;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
public class Animation {
//上一帧播放时间
private long mLastPlayTime=0;
//播放当前帧的ID
private int mPlayID = 0;
//动画frame数量
private int mFrameCount =0;
//用于储存动画资源图片
private Bitmap[] mFrameBitmap;
... | 20.059701 | 78 | 0.674107 |
74748a650a7bb106cecf750b34ff5a8f40478785 | 2,861 | /*
Copyright (c) 2011, 2012 Parjanya Mudunuri
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, copy, modify, merge, publish, dis... | 29.802083 | 111 | 0.698357 |
e6247f95ba380318017b183d20e230ac503bf8fd | 1,305 | package cz.muni.fi.hrm.entity.partials;
import cz.muni.fi.hrm.entity.RefCurve;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.... | 23.303571 | 108 | 0.698084 |
47eab99feffb55341411dc2e8984995e69c8329b | 591 | package com.softicar.platform.db.runtime.table.logic;
import com.softicar.platform.db.runtime.table.row.IDbTableRow;
public class DbTableRowInvalidator<R extends IDbTableRow<R, P>, P> {
private final R row;
public DbTableRowInvalidator(R row) {
this.row = row;
}
public void invalidate() {
setInvalidatedF... | 19.7 | 68 | 0.752961 |
60f4983be5c7012a76d2efabe236a73a65fd537d | 2,729 | package com.carrotsearch.randomizedtesting.contracts;
import java.util.ArrayList;
import java.util.List;
import org.assertj.core.api.Assertions;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;
import org.junit.Test;
import org.junit.ru... | 23.938596 | 77 | 0.650421 |
605a944bd29702c4055fc6fb1472492b9eb0103d | 107,730 | // @generated
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: javacd/resources/proto/javacd.proto
package com.facebook.buck.javacd.model;
/**
* Protobuf type {@code javacd.api.v1.OutputPathsValue}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:OutputPathsValue.java.pb.me... | 37.720588 | 235 | 0.651833 |
c9ed60cd65efa9f660d2502296e63f0f8792ecb8 | 2,659 | package dev.vality.shumway.dao;
import dev.vality.shumway.domain.Account;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.NestedRuntimeException;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.NamedPa... | 40.287879 | 109 | 0.669049 |
5e467bd9daba3837267355bdfb65eafeacd4c751 | 98 | package lib.attributes;
public class RequiredAttributeConstraint extends AttributeConstraint {
}
| 19.6 | 70 | 0.857143 |
8ab955c137e4c82b45087c185c3624b47c9b31c0 | 857 | package com.xbruce.structural.bridge.rocket;
import com.xbruce.structural.bridge.engine.EngineImplementor;
/**
* @ClassName: HeavyerRocket
* @Description: 重型火箭
* @Author xbruce | xbruce121@163.com
* @date 3/7/21 6:29 PM
* @Version 1.0
*/
public class HeavyerRocket extends AbstractRocket {
/**
* 初始化时需要... | 23.162162 | 83 | 0.646441 |
43df3466b1a5ef436fb413aaf631f9acb9704c46 | 4,609 | package pokerai.game.eval;
import com.biotools.meerkat.Hand;
import pokerai.game.eval.alberta.HandEvaluatorAlberta;
import pokerai.game.eval.indiana.HandEvaluator;
import pokerai.game.eval.indiana.FastHandEvaluator;
import pokerai.game.eval.spears.SevenCardEvaluator;
import pokerai.game.eval.spears2p2.StateTableEvalua... | 40.787611 | 128 | 0.629421 |
320b6cf1d9c77270adf558461dcfed500c0bfafa | 17,392 | package com.jd.blockchain.peer;
import java.io.File;
import java.io.InputStream;
import java.net.URLClassLoader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import com.jd.blockchain.ledger.ConsensusReconfigOperation;
import com.jd.blockchain.ledger.HashAlgorithmUp... | 42.627451 | 127 | 0.811638 |
4c26c402c1057e1eb0f12e3a204d29da8253faa9 | 5,146 | // @formatter:off
/**
*
* This file is part of streaming pool (http://www.streamingpool.org).
*
* Copyright (c) 2017-present, CERN. 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 cop... | 36.757143 | 119 | 0.732414 |
838efce2b1830608abfa876f2c6db6c94bafec3f | 2,716 | package iamutkarshtiwari.github.io.ananas.editimage.adapter;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import iamutkarshtiw... | 32.722892 | 121 | 0.695876 |
0f3cad2a7f9b046f0891120d3359dbdb4f6caeef | 1,100 | import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Solution {
static void separateNumbers(String s) {
for(int i=1;i<=s.length()/2;i++){
String first = s.substring(0,i);
... | 26.829268 | 66 | 0.499091 |
ff75b223776ea2dc5fd885ee20045a1be9e69c61 | 3,825 | package pokecube.core.world.dimensions.secretpower;
import java.util.Set;
import javax.annotation.Nullable;
import com.google.common.collect.Sets;
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
import net.minecraft.nbt.NBTTagCompound;
public class SecretBaseManager
{
public static class ... | 28.977273 | 119 | 0.50902 |
d53d750eeee0a57e4deac26b8293a3c20dcef298 | 13,250 | /*
* This file is part of the COASTAL tool, https://deepseaplatform.github.io/coastal/
*
* Copyright (c) 2019-2020, Computer Science, Stellenbosch University.
* All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licen... | 28.867102 | 103 | 0.617811 |
f946ca74c039ce0509a1b51049d246bd4f7bef80 | 6,498 | package org.apache.maven.plugin.registry;
/*
* 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 Li... | 36.1 | 136 | 0.622191 |
d2e45ef36bd899b9c8729ff2d38139cbe4f2e1ee | 773 | package com.chenxushao.java.concurrent.basis.interrupts.interrupted;
import com.chenxushao.java.concurrent.util.ThreadUtil;
import java.util.concurrent.TimeUnit;
/**
* 使用Thread.interrupted()返回当前线程的中断状态,同时清除中断标识,注意是当前线程.
*/
public class InterruptedMethodDemo2 {
public static void main(String[] args) throws Excepti... | 21.472222 | 68 | 0.693402 |
0b996c656797d224fc306b1df889660e0ddb2028 | 4,881 | import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
public class NQueen
{
private static final int SIZE = 8; // Board Size/No. of Queens.
private static final int MAX_POP = 16; // Maximum population.
private static final int MAX_GEN = 5000; // Maximum generations.
... | 19.922449 | 76 | 0.597214 |
3b09655ee1860915f6b5932f50661cb84a536170 | 1,564 | package online.meinkraft.customvillagertrades.gui.button;
import java.util.List;
import org.bukkit.Material;
import org.bukkit.entity.Player;
import org.bukkit.event.Event.Result;
import org.bukkit.event.inventory.InventoryClickEvent;
import online.meinkraft.customvillagertrades.gui.page.Page;
import onlin... | 25.225806 | 75 | 0.645141 |
f63874a48b44fa56789d4b1700958cdda08d7662 | 1,690 | package io.quarkus.mongodb.panache.runtime;
import java.text.SimpleDateFormat;
import java.time.Instant;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;
import java.util.Date;
final class CommonQueryBinder {
static final String I... | 36.73913 | 119 | 0.64142 |
80f52a587558e423de5d59cddd696aac6a1b5ba3 | 2,140 | package com.dragovorn.manipulator.command;
import com.dragovorn.manipulator.command.console.CommandConsole;
import com.dragovorn.manipulator.command.executor.CommandExecutor;
import com.dragovorn.manipulator.command.game.CommandGame;
import com.tngtech.java.junit.dataprovider.DataProvider;
import com.tngtech.java.juni... | 27.435897 | 83 | 0.626636 |
b62cffa113839f5975f8a4fef33d46c82e9f1c6f | 6,486 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2012, Red Hat, Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* unde... | 49.51145 | 201 | 0.703053 |
c7009099c44cf60e0d7e4e780c898ef33f1faab4 | 1,388 | package de.fraunhofer.fokus.oefit.particity.model.impl;
import com.liferay.portal.kernel.exception.SystemException;
import de.fraunhofer.fokus.oefit.particity.model.AHCatEntries;
import de.fraunhofer.fokus.oefit.particity.service.AHCatEntriesLocalServiceUtil;
/**
* The extended model base implementation for the AHC... | 38.555556 | 198 | 0.743516 |
9e9f23a2b4765dc59868bc81a4a1e9429f510782 | 1,174 | package com.google.android.gms.internal.ads;
import java.nio.ByteBuffer;
import java.security.GeneralSecurityException;
import java.security.interfaces.ECPublicKey;
public final class zzayp implements zzauf {
private static final byte[] zzdhv = new byte[0];
private final String zzdne;
private final byte[]... | 37.870968 | 126 | 0.683986 |
6c9939cb9c644c61d0889f311c75afb3024a9440 | 6,402 | /*
* 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")... | 42.966443 | 188 | 0.725086 |
e534445db68457cecce8b1603fead4a6b281f4c0 | 1,392 | /*
*
*
* Copyright 2017 Symphony Communication Services, LLC.
*
* Licensed to The Symphony Software Foundation (SSF) 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... | 29.617021 | 63 | 0.755029 |
c89f08cf128676bc75f14359b49f250841bf27f8 | 231 | package com.nhisyamj.mongo;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class EmployeeVM {
private String empId;
private String empName;
private String empRank;
private String department;
}
| 16.5 | 30 | 0.748918 |
769b5757ab6436cf13dcea39a56339d3b586b9e9 | 19,190 | /*
* #%L
* ACS AEM Commons Bundle
* %%
* Copyright (C) 2015 Adobe
* %%
* 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... | 40.570825 | 161 | 0.67061 |
2855af3f98be057582a6530b576389edcfb56bf1 | 271 | package com.smart.quant.handler;
import com.smart.quant.model.CtpMessage;
public interface CtpResponseHandler {
/**
* 消息处理接口 处理jni层返回的消息
* @param message 消息封装
* @return true -继续由下一个handler处理当前消息,false -终止处理当前消息
*/
boolean handleMessage(CtpMessage message);
}
| 20.846154 | 53 | 0.760148 |
a22b423c560e51259e22bfb5919f3bed24e07e86 | 1,634 | package tech.fantasy.apidoc.processor.swagger;
import com.google.common.collect.Lists;
import tech.fantasy.apidoc.annotations.AnnotationParser;
import tech.fantasy.apidoc.model.ApiDocMethodModel;
import tech.fantasy.apidoc.model.ApiDocModelInterface;
import tech.fantasy.apidoc.model.ApiDocReturnModel;
import tech.fant... | 33.346939 | 79 | 0.709302 |
95b039070208adaa853a7c00ec2eb6f4ce9f31f9 | 8,111 | /*
* 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... | 45.824859 | 188 | 0.703489 |
b127e37786eb7b28a7701620888306bc02c3bae2 | 77 | /**
* Spring MVC REST controllers.
*/
package com.hustack.sample.web.rest;
| 15.4 | 36 | 0.701299 |
bc27841da58102076ca72aa3ea003acf8bcbdc99 | 431 | package io.tiledb.java.api;
import io.tiledb.libtiledb.SWIGTYPE_p_p_tiledb_filter_t;
import io.tiledb.libtiledb.tiledb_filter_type_t;
public class ByteShuffleFilter extends Filter {
public ByteShuffleFilter(Context ctx) throws TileDBError {
super(ctx, tiledb_filter_type_t.TILEDB_FILTER_BYTESHUFFLE);
}
pro... | 26.9375 | 83 | 0.807425 |
2fc00aa4d43ecdde3362004d8fdf194334cde054 | 28,933 | /*
* Copyright (c) 2010-2015 Pivotal Software, 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 req... | 43.508271 | 125 | 0.660353 |
0a61fbaf2abec9f2cb20b4f865cfff62ebd16dcf | 4,889 | package com.zhu8fei.easytest.spring.mybatis;
import com.alibaba.fastjson.JSON;
import com.zhu8fei.easytest.core.BaseJunitTest;
import com.zhu8fei.easytest.core.bean.DataSetBean;
import com.zhu8fei.easytest.core.bean.SimpleTable;
import com.zhu8fei.easytest.core.data.SimpleAbstractProcessor;
import com.zhu8fei.easytest... | 43.651786 | 118 | 0.618531 |
2925b6ebc22a286d3cde107a8f9ffed2768acf4a | 3,456 | package com.sjl.bookmark.entity.zhuishu.table;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import java.io.Serializable;
/**
* 书的章节链接(作为下载的进度数据)
* 同时作为网络章节和本地章节 (... | 19.748571 | 127 | 0.574074 |
88ff0da35a4e234954784d4f98bf453bfabb1c23 | 6,305 | package fr.bretzel.bcore.utils;
import fr.bretzel.bcore.BCore;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.NoSuchE... | 30.3125 | 113 | 0.575575 |
2a4d17dfcbfb1636bf4932495519749484ef19c3 | 357 | /*
* Copyright (c) 2020, Board of Trustees of the University of Iowa
* All rights reserved.
*
* Licensed under the BSD 3-Clause License. See LICENSE in the project root for license information.
*/
package edu.uiowa.cs.clc.kind2.results;
/**
* The bool type for kind2
*/
public class Bool extends Type
{
public... | 17.85 | 100 | 0.680672 |
f4b784c43beec508cb8d566a126b63bf70d1e8d5 | 937 | package com.devcivil.alarm_app.alarmserver.updator;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.devcivil.alarm_app.alarmserver.AlarmService;
import com.devcivil.alarm_app.alarmserver.auth.AuthTokenHolder;
import com.devcivil.alarm_app.alarmserver... | 30.225806 | 69 | 0.717182 |
8dbe573f0674f3ea3f34386b3e0f71f8385b5d04 | 2,272 | package com.gempukku.swccgo.logic.modifiers;
import com.gempukku.swccgo.common.Filterable;
import com.gempukku.swccgo.game.PhysicalCard;
import com.gempukku.swccgo.game.state.GameState;
import com.gempukku.swccgo.logic.conditions.Condition;
import com.gempukku.swccgo.logic.timing.GuiUtils;
/**
* A modifier that rese... | 40.571429 | 150 | 0.726673 |
4797812d0ab71ca87f7da27af5be5caefa31976c | 2,432 | package ru.ydn.orienteer.components.table;
import org.apache.wicket.extensions.markup.html.repeater.data.grid.ICellPopulator;
import org.apache.wicket.extensions.markup.html.repeater.data.table.AbstractColumn;
import org.apache.wicket.extensions.markup.html.repeater.data.table.PropertyColumn;
import org.apache.wicket.... | 32.864865 | 94 | 0.789885 |
8971bb55d0f1155e86ebcfceb4de1c0fb3b20816 | 49,485 | /**
* 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
* "Li... | 42.367295 | 374 | 0.616025 |
039241d8b1c7d86b47cb19b6d397c75f669d9645 | 10,506 | /*
* The MIT License (MIT)
*
* Copyright (c) 2020 TileDB, Inc.
*
* 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,... | 33.037736 | 116 | 0.679992 |
96c6d71691e86e598427072b8da21f4f76747df6 | 4,077 | package com.robinhowlett.chartparser.charts.pdf;
import com.robinhowlett.chartparser.exceptions.ChartParserException;
import org.junit.Test;
import java.util.ArrayList;
import java.util.List;
import static org.hamcrest.Matchers.empty;
import static org.hamcrest.Matchers.equalTo;
import static org.junit.Assert.asser... | 43.37234 | 97 | 0.644346 |
16b5bbfa8b0b9e6de67aa35eaac817e68ebc324b | 1,487 | package net.fishtron.eva.multi.operators;
import net.fishtron.eva.IndivGenerator;
import net.fishtron.types.Type;
import net.fishtron.trees.AppTree;
import net.fishtron.gen.Gen;
import net.fishtron.eva.simple.AppTreeIndivGenerator;
import net.fishtron.eva.multi.AppTreeMI;
import net.fishtron.utils.F;
import org.json.J... | 30.979167 | 157 | 0.723605 |
c7a93366fcd725ff7dcac3de6bf411ea18dd7050 | 384 | package com.github.progtechteam.socialnetwork.services.model.get;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* @author Evgenii Puliaev
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class UserProfileGetDto extends UserGetDto {
private Integer friends;
private Integer subscribers;
pr... | 20.210526 | 65 | 0.776042 |
780009df883cf1f52d4dc5dedc46f10ed67926f1 | 2,011 | package com.desertkun.brainout.data.components;
import com.desertkun.brainout.BrainOutClient;
import com.desertkun.brainout.content.components.AmbientSoundComponent;
import com.desertkun.brainout.content.effect.Effect;
import com.desertkun.brainout.content.effect.SoundEffect;
import com.desertkun.brainout.data.active.... | 23.114943 | 100 | 0.613625 |
7520a93e7c10d352a31f56fd3216cbca96992abc | 1,338 | /*
* Copyright (C) 2018 The Astarte 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 applicable law o... | 31.857143 | 95 | 0.696562 |
8e711a1e6944600d452d5ec25f14f7011b3e0800 | 162 | package com.anber.mapper;
import com.anber.my.mapper.MyMapper;
import com.anber.pojo.ItemsSpec;
public interface ItemsSpecMapper extends MyMapper<ItemsSpec> {
} | 23.142857 | 62 | 0.814815 |
237958e88c5fcbd68523a151ea5ea6ae87539613 | 3,231 | /*******************************************************************************
* Copyright 2014 Katja Hahn
*
* 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.o... | 24.853846 | 80 | 0.547818 |
1e4000f1b250b7ee0a5c2d9eb1757b498faec41c | 3,707 | package com.twu.biblioteca.GUI;
import com.twu.biblioteca.basicModel.ProductionList;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
/**
* Created by Peizhen Zheng on 2016/4/21.
*/
public class ProductionListPanel extends JPanel {
private JTable... | 37.444444 | 108 | 0.647963 |
28f4cea02dbfed59a3e4eb6bce48bf0b5ed89072 | 548 | package ml.kmeans;
import java.util.List;
public class KMeansResult
{
// assignemnt if trainingData to centroid index
// e.g. assignment(3) = 5 means training example three is assigned to
// centroid 5
public List<Integer> assignemnts;
// the final centroid vectors
public List<double[]> centroids;
// the ov... | 19.571429 | 83 | 0.722628 |
4e7b16176eca214a9eea712dbd3af9998db22a4b | 296 | package com.agontuk.RNFusedLocation;
public interface LocationProvider {
void getCurrentLocation(LocationOptions locationOptions);
boolean onActivityResult(int requestCode, int resultCode);
void requestLocationUpdates(LocationOptions locationOptions);
void removeLocationUpdates();
}
| 24.666667 | 63 | 0.831081 |
46bf9f8aabd2ec585357783f1ddf57ed385c71d3 | 530 | package net.avicus.dragoman.format;
import net.avicus.dragoman.Localizable;
import net.avicus.dragoman.TranslationBundle;
import java.util.Locale;
public class LocalizedString implements Localizable {
private final TranslationBundle bundle;
private final String key;
public LocalizedString(TranslationBun... | 24.090909 | 66 | 0.726415 |
80462a50f07c61064ca19560b215fce551896c5d | 3,526 | /**
* This software is written by arcus(x) GmbH and subject
* to a contract between arcus(x) and its customer.
*
* This software stays property of arcus(x) unless differing
* arrangements between arcus(x) and its customer apply.
*
* arcus(x) GmbH
* Bergiusstrasse 27
* D-22765 Hamburg, Germany
*
* Tel.: +49... | 17.542289 | 77 | 0.661089 |
077eb64f3cba96f5b4bab3ddf0f3da06348a26cd | 3,564 | /**
* 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
* distribu... | 43.463415 | 118 | 0.703984 |
228e643a7129da53188a6ba2d07ba7fb7eea6ba8 | 13,215 | /*
* Copyright 2020-2022 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 33.711735 | 145 | 0.743776 |
938276474bf09c0686c545b742ff5386b7c35956 | 2,767 | /*
* Copyright 2018-2022 adorsys GmbH & Co KG
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or (at
* your option) any later version. This progra... | 29.752688 | 79 | 0.696061 |
4d2d654a4c00f68424a9283ab24f368c27a5d09d | 4,783 | package io.microvibe.booster.commons.utils;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.nio.charset.Charset;
public class IOUtils extends org.apache.commons.io.IOUtils {
private static final int EOF = -1;
private static final int DEFAULT_BUFFER_SIZE = 1024 * 4;
public stati... | 27.176136 | 96 | 0.700397 |
f716ea4ca7369ff373268aa9896841d222cf5605 | 489 | package com.bjpowernode.tag.vo.easyui;
/**
*
* @author
*
*/
public class ColumnValue {
private String name;
private String text;
private String value;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getText() {
return text;
}
publ... | 13.216216 | 38 | 0.658487 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.