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 |
|---|---|---|---|---|---|
2282dd003a473d9f490856f0578704a529b1d6ba | 2,453 | package com.yixin.tinode.thread;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadFactory;
import java.util.concu... | 28.523256 | 112 | 0.567876 |
4446ef9259e3d3debefab2c8af092aa1301ae9c0 | 144 | package compropagosdk.factory.models;
public class GenericError {
public String type;
public int code;
public String message;
}
| 13.090909 | 37 | 0.722222 |
10ba7f205f3ad9c1ba0f48224a5bfca8cdde6a9e | 11,871 | package io.ebeaninternal.server.persist;
import io.ebeaninternal.api.SpiTransaction;
import io.ebeaninternal.server.core.PersistRequest;
import io.ebeaninternal.server.core.PersistRequestBean;
import io.ebeaninternal.server.core.PersistRequestUpdateSql;
import io.ebeaninternal.server.deploy.BeanDescriptor;
import jav... | 28.743341 | 122 | 0.673574 |
2a2e0dd04646408a93fa78946269d60de182e9ce | 2,987 | package com.example.registerservice;
import com.example.registerservice.outlet.dao.es.PatientEsDao;
import com.example.registerservice.outlet.dao.es.po.PatientEsPo;
import com.example.registerservice.outlet.dao.mysql.PatientMysqlDao;
import com.example.registerservice.outlet.dao.mysql.po.PatientMysqlPo;
import com.ex... | 32.11828 | 81 | 0.649146 |
f55f371695ada7ee695adc82598da0682ce19a41 | 1,050 | package com.sigmundgranaas.forgero.core.property;
import com.sigmundgranaas.forgero.core.property.active.ActivePropertyBuilder;
import com.sigmundgranaas.forgero.core.property.attribute.AttributeBuilder;
import com.sigmundgranaas.forgero.core.property.passive.PassivePropertyBuilder;
import java.util.ArrayList;
import... | 40.384615 | 131 | 0.731429 |
ef93859535bf21f5668ced8220262067e41a8b32 | 800 | package ar.edu.unlam.tallerweb1.apuestacampeon;
import ar.edu.unlam.tallerweb1.dao.Dao;
import org.hibernate.Transaction;
import org.hibernate.criterion.Restrictions;
import org.springframework.stereotype.Repository;
@Repository
public class ApuestaCampeonDao extends Dao {
public ApuestaCampeon obtenerApuestaCamp... | 33.333333 | 71 | 0.71 |
318a763c1bb769c9681498e592bd77eca7570075 | 652 | package com.ooooo;
class Solution1 {
public int[] dailyTemperatures(int[] T) {
int[] ans = new int[T.length];
for (int i = 0; i < T.length; i++) {
for (int j = i + 1; j < T.length; j++) {
if (T[j] > T[i]) {
ans[i] = j - i;
break;
}
}
}
return ans;
... | 21.032258 | 52 | 0.493865 |
a60d447565bce7ff230649be7a4182d144f35e4b | 19,099 | /*
* BioJava development code
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. If you do not have a copy,
* see:
*
* http://www.gnu.org/copyleft/lesser.html
*
* Copyright for t... | 34.662432 | 122 | 0.581287 |
fc788c5ac182b016178388e6fb8964274e18a046 | 428 | package pl.noip.piekaa.bondaruktuiwaniuk2.services;
import org.junit.Before;
import org.junit.Test;
import java.util.List;
import pl.noip.piekaa.bondaruktuiwaniuk2.Consts;
import pl.noip.piekaa.bondaruktuiwaniuk2.model.Message;
import pl.noip.piekaa.bondaruktuiwaniuk2.networking.PiekaJsonRestClient;
import static o... | 21.4 | 72 | 0.803738 |
fe72bacc195d19083e7bf70d4c2d07dd0be3c721 | 1,419 | /*
* ============LICENSE_START===================================================
* Copyright (c) 2018 Amdocs
* ============================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Li... | 30.847826 | 79 | 0.620155 |
eee96e895a4832088b09a3e6d597494c5bf1c0ab | 1,082 | package euler.p056;
import java.math.BigInteger;
/**
* A googol (10^100) is a massive number: one followed by one-hundred zeros; 100^(100) is almost unimaginably large: one
* followed by two-hundred zeros. Despite their size, the sum of the digits in each number is only 1.
*
* Considering natural numbers of the ... | 30.914286 | 120 | 0.613678 |
30fda7dd1b2c2929a4a630525b94e81516b81c81 | 1,300 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.batch.models;
import com.azure.core.http.HttpHeaders;
import com.azure.core.http.HttpRequest;
import com.azure.core.http.rest.Re... | 38.235294 | 112 | 0.732308 |
8f59778a779d5374b918e706951fe2b418e97d72 | 300 | package io.renren.modules.api.dao;
import io.renren.modules.api.entity.MacPosEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
*
*
* @author chenshun
* @email sunlightcs@gmail.com
* @date 2018-12-28 16:27:32
*/
public interface MacPosDao extends BaseMapper<MacPosEntity> {
}
| 18.75 | 61 | 0.74 |
22e796701db02a1ffd6a7c8218366dc713e49948 | 1,181 | package org.infinispan.marshall.protostream.impl;
import org.infinispan.protostream.BaseMarshaller;
import org.infinispan.protostream.FileDescriptorSource;
import org.infinispan.protostream.ImmutableSerializationContext;
import org.infinispan.protostream.SerializationContext;
import org.infinispan.protostream.Serializ... | 32.805556 | 120 | 0.81287 |
6dd211d6865ec4c1cc06401b580dd34bb443fb24 | 7,144 | /*
* 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 ... | 42.023529 | 101 | 0.633679 |
be9e5655af569a9670655fbb6a7dea9239cadea2 | 552 | package com.telerikacademy.socialnetwork;
//import com.telerikacademy.socialnetwork.storage.StorageProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
@Spri... | 32.470588 | 81 | 0.847826 |
7a6e3a88e1edee04ef1dab4c5f1057b96f8b4360 | 2,779 | /*
* Copyright © 2015 <code@io7m.com> http://io7m.com
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND ... | 21.542636 | 79 | 0.688377 |
79ed87f13e5652cf146d841d73c2af189e6ce61e | 14,181 | package org.imdea.vcd.queue;
import org.imdea.vcd.queue.box.CommittedQueueBox;
import com.google.protobuf.ByteString;
import org.imdea.vcd.Generator;
import org.imdea.vcd.pb.Proto.Message;
import org.imdea.vcd.queue.clock.Clock;
import org.imdea.vcd.queue.clock.Dot;
import org.imdea.vcd.queue.clock.MaxInt;
import org.... | 30.694805 | 120 | 0.552218 |
307cc379dc426bd8578bfbcb655d1e6fd3bdf1c8 | 2,509 | package com.xiaopo.flying.layoutmaster.refer;
import com.android.ddmlib.Client;
import com.android.layoutinspector.model.ClientWindow;
import com.android.tools.idea.editors.layoutInspector.WindowPickerDialog;
import com.intellij.openapi.progress.ProgressIndicator;
import com.intellij.openapi.progress.Task;
import com.... | 32.166667 | 92 | 0.698685 |
514ab5c0dacf59c389c643545ff47be48d5f4699 | 363 | public class MethodDemo
{
public static int displayMessage()
{
System.out.println("Hello Method");
//square(5);
return 7;
}
public void square(int a)
{
System.out.println(a*a);
}
public static void main(String arg[])
{
//MethodDemo md = new MethodDemo();
System.out.println(displayMessage());
... | 15.782609 | 40 | 0.633609 |
0f8700c492579695fc64a2ad9e00b4cd0d09b632 | 1,980 | package com.amyliascarlet.jsontest.bvt.issue_2200;
import com.amyliascarlet.lib.json.JSON;
import junit.framework.TestCase;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.Calendar;
public class Issue2260 extends TestCase {
public void test_for_issue() throws Exception {
... | 30 | 59 | 0.619697 |
7d7cf77b37920631217b6702cd348fed81e33285 | 746 | package org.chmoder.atwdpc;
import android.content.Context;
import android.net.wifi.WifiInfo;
import android.net.wifi.WifiManager;
/**
* Created by tcross on 5/28/2017.
*/
public class WIFIManager {
Context mContext;
WifiManager mainWifi;
public WIFIManager(Context context) {
this.mContext = c... | 24.866667 | 81 | 0.687668 |
d288d792aa03f35ab65400b5d6299a9c9502c6f2 | 257 | package com.bresan.learning.filemanager.callback;
import com.bresan.learning.filemanager.model.Item;
import java.util.List;
/**
* Created by rodrigobresan on 4/27/16.
*/
public interface OnLoadDoneCallback {
void onLoadDone(List<Item> itemList);
}
| 19.769231 | 50 | 0.762646 |
b0f620235f78f2f5d5412de71b5acbe5d8480054 | 6,554 | package com.sequenceiq.cloudbreak.audit.converter.rest;
import static com.sequenceiq.cloudbreak.audit.converter.EventDataExtractor.CLUSTER_CRN;
import static com.sequenceiq.cloudbreak.audit.converter.EventDataExtractor.CLUSTER_NAME;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.j... | 50.030534 | 138 | 0.729783 |
d597de1e736c58125b1f78ed76aaf33b9298c7c9 | 1,098 | //pascal's triangle
import java.io.*;
class Pascal
{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
public void triangle()throws IOException
{
int i,n,j,up=0,lft=0,s=0,r=0,c=0;
System.out.println("enter no. of rows");
n=Integer.parseInt(br.readLine());
int a[][]=new int[n][n];
a... | 21.115385 | 72 | 0.35337 |
32b0a5803c640b3e2d32031fd119aef3d1fa4d1d | 283 | package baseball;
public class Application {
public static void main(String[] args) {
//TODO: 숫자 야구 게임 구현
int nextRound;
do {
BaseballGame.Round();
nextRound = BaseballGame.NextRound();
} while(nextRound == 1);
}
} | 17.6875 | 49 | 0.547703 |
678804ea1c2830cb3f26b4d66932cca41cb1f699 | 1,470 | package org.apache.hop.history;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
/**
* This class allows you to describe the state of objects like loaded files, windows and so on
*/
public class AuditState {
// The name of the parent (filename, window name, ...)
private String name;
... | 19.6 | 94 | 0.614286 |
a34a330e5baa34f2d5e1f5062d7293d53084ade9 | 1,825 | package org.dominokit.domino.gwt.client.events;
import org.dominokit.domino.api.client.ClientApp;
import org.dominokit.domino.api.client.events.Event;
import org.dominokit.domino.api.client.events.EventProcessor;
import org.dominokit.domino.api.client.events.EventsBus;
import org.dominokit.domino.api.client.request.Se... | 32.589286 | 99 | 0.743562 |
405f733b9ff8d5b3b86711013844606a60e604c8 | 442 | package com.monoya.my.cake.web.admin.test;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* 测试单元测试是否生效
*/
public class JunitTest {
@Before
public void before(){
System.out.println("before test------>");
}
@Test
public void junitTest(){
System.out.pri... | 17 | 49 | 0.595023 |
09e9e1459415229e48c3ba1453a2df83769f0f5a | 18,002 | package RussiaBlocksGame;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.border.EtchedBorder;
public class RussiaBlocksGame extends JFrame {
public final static int PER_LINE_SCORE = 100;
/**
* 积多少分以后能升级
*/
public final stat... | 29.367047 | 109 | 0.485002 |
7f1c42c0bc0a85da0e07b99df525e4e5215916f4 | 264 | package emulatorinterface;
public class SynchType {
public SynchType(int thread, long time, long value) {
super();
this.thread = thread;
this.time = time;
this.encoding = value;
}
int thread;
long time;
long encoding; // same as in Encoding.java
}
| 16.5 | 54 | 0.69697 |
5db165527e2b1db246766ade8f6b6dd2c4e4403e | 947 | package com.fearlessspider.god.db;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
import java.util.Date;
@Entity(tableName = "exercises")
public class Exercise {
@PrimaryKey
@NonNull
@ColumnInfo(name = "id")
private ... | 18.568627 | 67 | 0.646251 |
cb2e54a068cd96b81fa631582b4ed191e811e443 | 1,085 | package ru.job4j.condition;
/**
* Max
*
* @author Niyaz Fazlyev
* @since 10.06.2019
*/
public class Max {
/**
* Максимум двух чисел.
* @param first Первое число.
* @param second Второе число.
* @return Максимум двух чисел.
*/
public int max(int first, int second) {
return ... | 21.7 | 66 | 0.529032 |
a64f5edc9f41676d6f7a0ffb985dca720d8dfece | 15,880 | import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
/**
*
* @author Mikhail Shipilin
*/
public class ExperimentHandler {
private final String[] PARAMETERS = { "PHOTONENERGY",
... | 49.012346 | 137 | 0.565554 |
d74e136f5f3ae78cce927fd571bebbb3ec04c9eb | 1,256 | package carpetfixes.mixins.coreSystemFixes.TreeLogic;
import carpetfixes.CarpetFixesInit;
import carpetfixes.CarpetFixesSettings;
import net.minecraft.util.math.BlockBox;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.shape.VoxelSet;
import net.minecraft.world.WorldAccess;
import net.minecraft.worl... | 39.25 | 180 | 0.781051 |
adc66eb42a9cafa229b8ecf116f5729fba4d40a0 | 1,622 | package selectorSpecificity.tuples;
import java.util.Objects;
public class SpecificityData {
public final double idsCount;
public final double classesCount;
public final double elementsCount;
public final double validRestCount;
public SpecificityData() {
this(0.0, 0.0, 0.0, 0.0);
}
... | 32.44 | 111 | 0.614673 |
6c15b522ecaa04f39a6b0624ea5866d6906a82cb | 5,425 | package com.inicu.models;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
public class PatientChartData {
private PatientChartVitalObject patientChartVitalObject;
private PatientChartVentilatorObject patientChartVentilatorObject;
private Patien... | 32.291667 | 117 | 0.770507 |
139e7559e55c58fbec424979a568e130117fbe75 | 715 | package io.mykit.concurrent.blockingqueue.linked;
import java.util.concurrent.LinkedBlockingQueue;
public class TicketProducer implements Runnable {
private LinkedBlockingQueue queue;
private boolean running;
public TicketProducer(LinkedBlockingQueue queue) {
this.queue = queue;
running = true;
}
publi... | 18.815789 | 52 | 0.696503 |
c328f581ac74bfb6cda472570aa4ce7d186de1ff | 3,495 | /*******************************************************************************
* Copyright (C) 2018 Joao Sousa
*
* 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, in... | 32.06422 | 80 | 0.644349 |
f13811895406773d5c96dc59979646fe9885a8cd | 4,710 | /*
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
* or more contributor license agreements. Licensed under the Elastic License
* 2.0; you may not use this file except in compliance with the Elastic License
* 2.0.
*/
package org.elasticsearch.xpack.security.authc.saml;
import org.e... | 46.176471 | 118 | 0.687261 |
b45fbac5e21032e73f0e6c921361a0fc2d4af688 | 896 | package com.example.socialnetworkingapp.model.comment;
import com.example.socialnetworkingapp.model.bio.Bio;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import java.util.List;
import java.util.Optional;
public interface CommentRepositor... | 37.333333 | 83 | 0.731027 |
ea5edd5cce7ea55d1c31c52668ec23c90ee9d4eb | 6,485 | package org.kuali.coeus.propdev.impl.lock;
import org.apache.commons.lang3.StringUtils;
import org.kuali.coeus.common.budget.framework.core.Budget;
import org.kuali.coeus.propdev.impl.budget.ProposalDevelopmentBudgetExt;
import org.kuali.coeus.propdev.impl.core.ProposalDevelopmentDocument;
import org.kuali.coeus.sys.f... | 45.034722 | 149 | 0.742483 |
e51d7f7a9825314b4b2c5d38a7308012784ac22b | 316 | package com.aroids101;
import java.util.Scanner;
// Created by Eli on 3/6/17.
class Menu
{
boolean continue_game()
{
Scanner reader = new Scanner(System.in);
System.out.print("Enter 1 to play, 2 to exit: ");
String input = reader.next();
return input.equals("1");
}
}
| 17.555556 | 57 | 0.601266 |
b233baf00472e84583a1a4aedef598bc30e34b51 | 759 | package sk.rxjrest.common;
import java.math.BigDecimal;
import java.text.DecimalFormat;
import java.text.ParseException;
public class BigDecimalUtils {
/**
* Converting String into BigDecimal
* @param stringBigDecimal is any string
* @return BigDecimal or null if that string is not number
*/
public static... | 19.973684 | 81 | 0.70751 |
b5ea453e9ffe4b93df8b3ec327313031d6e1b1f3 | 1,164 | package wtvindonesia.application.com.model;
import java.io.Serializable;
public class voucher implements Serializable {
private static final long serialVersionUID = 1L;
private String kode, tipe_voucher, jenis_voucher;
private double nominal;
public voucher(String kode, double nominal, String tipe_v... | 23.28 | 92 | 0.664089 |
9a39ae214c3830687256955a02a65f884dac037c | 1,705 | package uk.gov.companieshouse.document.generator.company.report.mapping.mappers.insolvency;
import org.mapstruct.AfterMapping;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.MappingTarget;
import org.mapstruct.Mappings;
import org.springframework.web.context.annotation.RequestScope;
i... | 36.276596 | 122 | 0.763636 |
062c88a8e0faad20c614e6fe7e019bdfdfe17d6f | 1,672 | package org.openbakery.racecontrol.plugin.penalty.web;
import java.util.List;
import org.apache.wicket.request.mapper.parameter.PageParameters;
import org.apache.wicket.markup.html.form.Form;
import org.openbakery.racecontrol.data.Driver;
import org.openbakery.racecontrol.plugin.penalty.data.Penalty;
import org.openb... | 28.827586 | 75 | 0.788876 |
ec379cfa7aa8203902a2dd3dc25c830577a49abf | 1,718 | package com.ccc.oa.websocket;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.lang.NonNull;
import org.springframework.messaging.Message;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.simp.stomp.StompCommand;
import org.springframework.mes... | 40.904762 | 109 | 0.675204 |
ceefb20a478a0844a39f970de2686a9878e10cf7 | 31,758 | /*
See the NOTICE file distributed with this work for additional
information regarding copyright ownership.
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.... | 24.695179 | 112 | 0.68345 |
15a7b586a58ace6c13b5d9e7060d6e549910e7e1 | 7,071 | /*
* Copyright (c) 2008-2019, 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 ... | 39.949153 | 151 | 0.689011 |
0829226f2c93879163b8ef03b88ec2d4706661ac | 834 | package game.rain.entity;
import game.rain.graphics.Sprite;
public abstract class Mob extends Entity {
protected Sprite sprite;
protected int dir = 0;
protected boolean moving = false;
protected boolean walking = false;
public void move(int xa, int ya) {
if (xa != 0 && ya != 0) {
move(xa, 0);
move(0, ... | 17.375 | 60 | 0.555156 |
16832a29b7f7c8226a2740ff6a2eb336eff81747 | 4,533 | /*
The MIT License (MIT)
Copyright (c) 2017 Giacomo Marciani and Michele Porretta
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 r... | 34.082707 | 110 | 0.713214 |
5d615528a5145af92f0ad541231e0f416ca92248 | 1,633 | /*
* Copyright 2011 Kevin Seim
*
* 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 agre... | 29.160714 | 102 | 0.647275 |
88b1571a015335b66d82b8de1ae90900fa42de5c | 626 | package com.acgist.snail.net;
import java.nio.ByteBuffer;
import com.acgist.snail.context.exception.NetException;
/**
* <p>加密消息代理接口</p>
*
* @author acgist
*/
public interface IMessageEncryptSender extends IMessageSender {
/**
* <p>消息加密发送</p>
*
* @param buffer 消息内容
*
* @throws NetException 网络异常
*... | 17.388889 | 70 | 0.683706 |
7bffd5cb9011c239ca1a7a2027e9730384f1f1f9 | 4,101 | package com.icthh.xm.ms.otp.repository;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.icthh.xm.ms.otp.OtpApp;
import com.icthh.xm.ms.otp.config.Constants;
import com.icthh.xm.ms.otp.config.SecurityBeanOverrideConfiguration;
import com.icthh.xm.ms.otp.config.tenant.Web... | 39.815534 | 108 | 0.760546 |
556ae4377cb40a277dca44cfab36be527e1db51f | 3,086 | package core;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.entities.Member;
import net.dv8tion.jda.core.entities.TextChannel;
import net.dv8tion.jda.core.entities.User;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
import utils.MSGS;
import utils.STATICS;
import java.awt.*;... | 40.077922 | 214 | 0.635126 |
7456801ad309d6011242ce6d4f0b729dbcc1c2c4 | 769 | package com.distributedDL.streaming.models.consumer;
import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.annotation.Js... | 26.517241 | 98 | 0.825748 |
39c89a04698c3b8d73bcf179c42c3eee06068dc6 | 1,147 | package com.facebook.common.references;
import java.lang.ref.SoftReference;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
public class OOMSoftReference<T>
{
SoftReference<T> softRef1 = null;
SoftReference<T> softRef2 = null;
SoftReference<T> softRef3 = null;
public void clear()
{
... | 21.641509 | 129 | 0.634699 |
8593b4f4eb16e36695ef62ee3a7820bfd5c9f78c | 851 | package com.izerofx.wenku.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;
import com.izerofx.wenku.domain.DocFileInfo;
/**
*
* 类名称:DocFileInfoDao<br>
* 类描述:文档文件信息数据访问接口<br>
* 创建人:qinjiaxue<... | 23 | 92 | 0.695652 |
bd2f844579c01aaa15eeb973e6cd58c71ed3730d | 14,671 | /*
* Microsoft JDBC Driver for SQL Server Copyright(c) Microsoft Corporation All rights reserved. This program is made
* available under the terms of the MIT License. See the LICENSE file in the project root for more information.
*/
package com.microsoft.sqlserver.jdbc.resiliency;
import java.lang.reflect.F... | 37.236041 | 121 | 0.544339 |
8e16d98996c6bcd263580202ef6ccf92d6dd7058 | 3,624 | package org.innovateuk.ifs.interview.model;
import org.apache.commons.lang3.StringUtils;
import org.innovateuk.ifs.competition.resource.CompetitionResource;
import org.innovateuk.ifs.competition.service.CompetitionRestService;
import org.innovateuk.ifs.interview.form.InterviewApplicationSendForm;
import org.innovateuk... | 50.333333 | 173 | 0.768764 |
2accc841b749c613dfffb373f8aa52a948520943 | 1,114 | package example;
import org.bouncycastle.crypto.params.Ed25519PrivateKeyParameters;
import com.diem.*;
import com.diem.jsonrpc.JsonRpc.Account;
import java.security.SecureRandom;
/**
* GetAccountInfoExample demonstrates the required operation to retrieve account information from the Libra blockchain
*/
public clas... | 33.757576 | 118 | 0.723519 |
1ef46c06a2e5143546f01eb25f80a0729cfcfa6c | 6,634 | package com.yugabyte.yw.commissioner;
import akka.actor.ActorSystem;
import akka.actor.Scheduler;
import com.google.common.annotations.VisibleForTesting;
import com.yugabyte.yw.common.config.RuntimeConfigFactory;
import com.yugabyte.yw.models.Customer;
import com.yugabyte.yw.models.CustomerTask;
import io.prometheus.c... | 37.061453 | 100 | 0.726711 |
450659768fb2069aeee8ca44c18cfb46710779a0 | 13,975 | package com.info.ghiny.examsystem.manager;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Handler;
import com.info.ghiny.examsystem.PopUpLogin;
import com.info.ghiny.examsystem.database.ExternalDbLoader;
i... | 36.018041 | 100 | 0.640358 |
bc869c68c3b8dc1ff41b37b7ed1bcc66568f0cf0 | 3,181 | /*
* Copyright 2018 Confluent Inc.
*
* Licensed under the Confluent Community License (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.confluent.io/confluent-community-license
*
* Unless required by applicable law or a... | 33.484211 | 87 | 0.732788 |
7d448cd2f465d6cd98eb9090188229fc3892b51e | 800 | package com.github.jinahya.prisonersdilemma.strategy;
import com.github.jinahya.prisonersdilemma.Decision;
/**
* A strategy of always {@link Decision#C cooperates}.
*
* @author Jin Kwon <onacit_at_gmail.com>
* @see AlwaysDefect
*/
public final class AlwaysCooperate extends FixedDecision {
private stat... | 22.857143 | 78 | 0.66875 |
75cc6550bf19028d5140f9904fd91b7385b6ceef | 3,851 | package org.firstinspires.ftc.teamcode.Autonomous;
import android.view.View;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcom... | 36.67619 | 114 | 0.662425 |
bc62c21e179ce176b507d6ae78665d639b188b34 | 1,427 | package com.fasterxml.jackson.databind.deser.filter;
import java.util.Collections;
import java.util.Map;
import com.fasterxml.jackson.core.*;
import com.fasterxml.jackson.core.filter.FilteringParserDelegate;
import com.fasterxml.jackson.core.filter.TokenFilter;
import com.fasterxml.jackson.databind.*;
public class P... | 33.97619 | 85 | 0.622985 |
0241f016d11e587fbe3ca8dfd00934437c8c05fb | 1,503 | /**
* 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.785714 | 107 | 0.765802 |
f0759ecdcc3a2aecaaca9ee663baca1a43162333 | 802 | package org.siy.shop.wechat.controller;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.siy.common.controlle... | 29.703704 | 71 | 0.793017 |
8592b589bbfdc34b84b26b71f596b14c41a976f7 | 2,802 |
package mage.cards.h;
import java.util.Optional;
import java.util.UUID;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ContinuousRuleModifyingEffectImpl;
import mage.abilities.mana.ActivatedManaAbilityImpl;
import mage.cards.CardI... | 31.483146 | 153 | 0.658458 |
76cbab6cfa2b620217fe7538d2f095a38dc5dcae | 4,330 | /*
* Copyright (c) 2016, BlackyPaw
* All rights reserved.
*
* This code is licensed under a BSD 3-Clause license. For further license details view the LICENSE file in the root folder of this source tree.
*/
package com.blackypaw.mc.i18n;
import com.blackypaw.mc.i18n.config.PluginConfig;
import net.md_5.bungee.ap... | 31.151079 | 165 | 0.705774 |
763eb7f28d5769619b51160a03a296ee28f09a19 | 347 | package com.trio.breakFast.dao.impl;
import com.trio.breakFast.dao.Tac_applicantsDao;
import com.trio.breakFast.model.Tac_applicants;
import org.springframework.stereotype.Repository;
/**
* Created by ienovo on 2016/10/26.
*/
@Repository
public class Tac_applicantsDaoImpl extends BaseDaoImpl<Tac_applicants> implem... | 24.785714 | 101 | 0.815562 |
7fa064fc615a54a005a032ef98e5c22368d9dbf6 | 9,646 | /*
* 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 not ... | 43.45045 | 108 | 0.72683 |
0ed9378e2140c9f3ca0cc77ec21f74073e541963 | 3,052 | package net.minecraft.network.play.server;
import java.io.IOException;
import net.minecraft.entity.player.PlayerCapabilities;
import net.minecraft.network.Packet;
import net.minecraft.network.PacketBuffer;
import net.minecraft.network.play.INetHandlerPlayClient;
public class SPacketPlayerAbilities implements Packet<... | 28 | 85 | 0.668087 |
cc8fe5d38cde57fad5033d1df99600a6fbbcfabd | 3,932 | package net.sourceforge.mayfly.datastore.constraint;
import junit.framework.TestCase;
import net.sourceforge.mayfly.MayflyException;
import net.sourceforge.mayfly.datastore.DataStore;
import net.sourceforge.mayfly.datastore.LongCell;
import net.sourceforge.mayfly.datastore.Row;
import net.sourceforge.mayfly.datastore... | 38.930693 | 107 | 0.609105 |
74ed81b11e8b478fed1d1f886b7b31330c68d9a4 | 15,890 | /*
* Copyright 2017-2022 Amazon.com, Inc. 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. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | 38.474576 | 180 | 0.678288 |
5182e74ebc4e5c749c8d9f7d128e81326045b1ef | 916 | package leetcode_problems.medium;
import java.util.LinkedList;
import java.util.Queue;
public class DeepestLeavesSum_1302 {
public int deepestLeavesSum(TreeNode root) {
if (root == null) return 0;
Queue<TreeNode> queue = new LinkedList<>();
queue.add(root);
int deepLeavesSum = ro... | 23.487179 | 62 | 0.522926 |
45e06449f0b1bd672fb22f2ac7fd925e7aeae472 | 661 | package org.ohdsi.webapi.generationcache;
import org.ohdsi.webapi.source.Source;
public interface GenerationCacheService {
String getDesignHash(CacheableGenerationType type, String design);
GenerationCache getCacheOrEraseInvalid(CacheableGenerationType type, String designHash, Integer sourceId);
Integer ... | 47.214286 | 126 | 0.833585 |
4bdadfee4b13daca8d181e84ebb8a77446745635 | 648 | package nextstep.auth.unit;
import nextstep.auth.authentication.AuthenticationInterceptor;
import nextstep.auth.authentication.UserDetailsService;
import nextstep.auth.context.Authentication;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class EmptyAuthentication... | 34.105263 | 126 | 0.83179 |
2f6d3ddd594b5164eb7ed8f1ebcf475a9c81c8bd | 901 | package com.gioov.nimrod.user.service;
import com.gioov.nimrod.common.easyui.Pagination;
import com.gioov.nimrod.user.entity.UserRoleEntity;
import java.util.List;
/**
* @author godcheese [godcheese@outlook.com]
* @date 2018-02-22
*/
public interface UserRoleService {
/**
* 新增用户角色
* @param userRoleE... | 23.710526 | 75 | 0.681465 |
7d5a967126c8f90b68966c8957f10e08048d1cb0 | 1,106 | package com.sca.registroatividades.model;
import java.util.List;
import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Professor {
@Id
@GeneratedValue
private Long... | 16.507463 | 71 | 0.719711 |
9ba12f522bc6a8d15a984e4a6cb8483370eacb43 | 2,077 | /**
* 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... | 38.462963 | 101 | 0.726047 |
016eac7d534789921e4e1587cede17271b78de14 | 1,996 | /*
* 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")... | 31.68254 | 98 | 0.707916 |
6401fda4df750e4ee760466e808adf5f28b7da31 | 9,769 | /*
* This file is part of Sponge, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... | 45.226852 | 187 | 0.720442 |
aad904a6df937bcfc3a2670056354572b94d5cfe | 2,702 | package io.renren.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.dao.TrainingDao;
import io.renren.entity.MoveSetEntity;
import io.renren.entity.TrainingEntity;
import io.renren.service.MoveInstanceS... | 35.552632 | 353 | 0.728719 |
1e7f3496aaeb75008328b350b087626ad0d8d27e | 21,338 | package org.batfish.job;
import com.google.common.annotations.VisibleForTesting;
import com.google.common.base.Strings;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Multimap;
import io.opentracing.References;
import io.opentracing.Scope;
import io.opentracing.Span;
import io.opentrac... | 38.585895 | 100 | 0.658871 |
6d4ad0b7e289a02e051cf35b9d1fa9b8c6b07596 | 2,556 | package de.gurkenlabs.litiengine.environment.tilemap.xml;
import java.awt.Color;
import java.awt.Dimension;
import java.io.File;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.Xm... | 22.619469 | 145 | 0.675274 |
d7b3d21f2568d112116f215ebba8ca7f2ce844ec | 240 | // Inner classes
// Not going to bother but you can nest classes
// equals() methods are there too
// enum is a constant container
public enum Color {
RED, BLUE, GREEN;
}
// That's it with this tutorial, focusing on android apps only now | 26.666667 | 66 | 0.725 |
9ba7a8a30c2fbf9b2150470307ae1edfcc9066aa | 9,513 | /**
* Copyright 2014 Justin Santa Barbara
* Copyright 2013 David Rusek <dave dot rusek at gmail dot 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/lice... | 29.543478 | 118 | 0.727321 |
52008849ef740dc393bca4ddc28025f94ed28255 | 3,781 | package org.regadou.jhux.sys;
import java.io.IOException;
import java.util.Enumeration;
import java.util.Properties;
import javax.servlet.Servlet;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.Se... | 36.009524 | 127 | 0.711188 |
42af24119a1a551df334fdc1e6fad2885d07c55f | 2,916 | /*
* K-scope
* Copyright 2012-2013 RIKEN, Japan
*
* 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 ... | 34.714286 | 75 | 0.667353 |
0cfaf56a7c12d35fa8e997948e2ffed4f8b4c3c2 | 595 | package ie.gmit.ds.model;
import java.io.Serializable;
public class Customer implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
private int id;
private String firstname;
private String lastname;
public int getId() {
return id;
}
public void setId(int id) {
this.id = ... | 17 | 49 | 0.705882 |
aee69c1caaa0bf9ba222560f034824b137e62767 | 3,648 | package com.swak.redis;
import java.util.Map;
import java.util.concurrent.CompletionStage;
/**
* 异步操作命令
*
* @author lifeng
* @date 2020年8月19日 下午4:47:59
*/
public interface RedisAsyncCommands<K, V> {
/**
* ttl
*
* @param key
* @return
*/
CompletionStage<Long> ttl(String key);
/**
* get
*
*... | 14.592 | 103 | 0.573465 |
728accc7485dc4e948b0402ea0e8c9d88d5d2ca2 | 2,429 | package io.quarkus.ext.querydsl.demo;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
import com.querydsl.sql.ColumnMetadata;
import io.quarkus.ext.q... | 36.253731 | 120 | 0.714697 |
8661f0ff1453b2d0d21c858c3916b5bd75b33cb7 | 345 | package cn.waitwalker.flutter_socket_plugin.jt808_sdk.oksocket.interfaces.common_interfacies.server;
import cn.waitwalker.flutter_socket_plugin.jt808_sdk.oksocket.core.iocore.interfaces.IIOCoreOptions;
public interface IServerManagerPrivate<E extends IIOCoreOptions> extends IServerManager<E> {
void initServerPr... | 34.5 | 100 | 0.855072 |
124c998a87ab979d104f667d015521708e621a08 | 982 | package javaAdvanced.streamFilesAndDirectories.lab;
import java.io.*;
import java.util.Collections;
import java.util.List;
import java.util.stream.Collectors;
public class Task6 {
public static void main(String[] args) throws IOException {
String path = "C:\\Users\\Lubo\\IdeaProjects\\javaAdvanced\\src\... | 36.37037 | 223 | 0.714868 |
2cb128051955c71508e9475fffd5dbad49a18690 | 2,596 | package com.cwc.mylibrary.takephoto.model;
import android.app.Activity;
import android.net.Uri;
import com.cwc.mylibrary.takephoto.uitl.TImageFiles;
import com.cwc.mylibrary.takephoto.uitl.TUtils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
/**
* Author: JPH
* Date: 2016/8/11 17:01... | 28.217391 | 119 | 0.649076 |
bf8eb7e121c8eeb814c6d92c59aa1c6eaa35e8dc | 5,339 | /*
* Created on Feb 9, 2004
*
* To change the template for this generated file go to
* Window>Preferences>Java>Code Generation>Code and Comments
*/
package edu.rosehulman.soar.wizards;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.layout.*;
import... | 24.948598 | 88 | 0.669226 |
c986c487b4a56474f0de9723437335ccaffc575e | 909 | import java.io.*;
public class magic
{
public static void main(String args[]) throws IOException
{
BufferedReader br = new BufferedReader (new InputStreamReader(System.in));
System.out.println("ENTER THE NUMBER TO BE CHECKED ::");
int a = Integer.parseInt(br.readLine());
... | 30.3 | 118 | 0.370737 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.