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
76b3abc176acb281444554b16e41cb1c54e41218
4,957
package com.leocardz.primitive.recursive; /** * Created by leocardz on 17/06/15. */ public class PrimitiveRecursive { public static void main(String[] args) { System.out.println("sum(10, 9) = " + sum(10, 9)); System.out.println("mult(10, 9) = " + mult(10, 9)); System.out.println("suc(10)...
23.717703
87
0.418398
025918d26bff2a81876369b9e016f995830f244d
12,079
package stexfires.io; import stexfires.core.TextRecord; import stexfires.core.TextRecordStreams; import stexfires.core.consumer.ConsumerException; import stexfires.core.consumer.LoggerConsumer; import stexfires.core.consumer.RecordConsumer; import stexfires.core.consumer.UncheckedConsumerException; import stexfires.co...
38.104101
116
0.668019
c5649f58af3126096bbb269520da18fae7fb9073
31,438
package com.infilos.utils.stream; import org.junit.Before; import org.junit.Test; import java.util.*; import java.util.concurrent.ForkJoinPool; import java.util.concurrent.ForkJoinWorkerThread; import java.util.concurrent.atomic.AtomicReference; import java.util.function.*; import java.util.stream.DoubleStream; impor...
34.097614
113
0.669954
183320392c9ab9de10ce553209033cd6b96c730a
1,279
package com.app.gamaacademy.cabrasdoagrest.bankline.test.builders; import com.app.gamaacademy.cabrasdoagrest.bankline.dtos.PlanoContaDTO; import com.app.gamaacademy.cabrasdoagrest.bankline.models.PlanoConta; import com.app.gamaacademy.cabrasdoagrest.bankline.models.TipoOperacao; import com.app.gamaacademy.cabrasdoagre...
25.58
75
0.71853
581b05588ca2c7e349bef5a65adb1cb184439bc3
1,225
package com.leetcode.test; import java.util.Arrays; import java.util.HashMap; /* * Given an array of integers, find two numbers such that they * add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than in...
29.878049
84
0.609796
015ca210db0b338d530ba2f90a6e41aaf46fab68
2,772
/* * Copyright (c) 2020, Jonathan Revusky revusky@freemarker.es * * 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, this * list of con...
40.173913
83
0.730519
b1226fb719510fb47bdcbde98a1ff075e1671d89
1,213
package com.acgist.bean; import java.util.List; /** * 任务结果 */ public class TaskFollow { private String value; private Long times; public TaskFollow() { } public TaskFollow(String value, Long times) { this.value = value; this.times = times; } private void addTimes(Long times) { this.times += times; ...
15.35443
82
0.62737
ef5133c8ec1b42e869fd9c5b5cbb78ef78a606e0
452
package be.arcadeboard.api.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * GameControls * <p> * Created by maxim on 15-Jan-17. */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementT...
19.652174
44
0.712389
db12609a4b476ad27d8471fe453d358908894793
215
package com.example.java.overig.annotations; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; @Retention(RetentionPolicy.RUNTIME) public @interface Roles { Role[] value(); }
21.5
44
0.790698
5152ec8d8acb8dca7fcd576dd842d6aa47a94ad4
464
package com.tag.your.stars.security.event; import com.tag.your.stars.user.model.User; import lombok.Getter; import org.springframework.context.ApplicationEvent; @Getter public class LoginOrRegisterEvent extends ApplicationEvent { private static final long serialVersionUID = -8053143381029977953L; private fina...
25.777778
71
0.756466
f5ac4357ee9cfedc4d14547fdd007d6a8fba33de
397
package play.learn.java.design.adapter; public class AdapterPatternDemo { public static void main(String[] args) { AudioPlayer audioPlayer = new AudioPlayer(); audioPlayer.play("mp3", "Ghosts.mp3"); audioPlayer.play("mp3", "Dangerous.mp3"); audioPlayer.play("mp4", "You are not alone.mp4"); audioPlayer.p...
24.8125
51
0.692695
7f5a0a7f81c71f96c00605a6d716dcfe31735a93
4,500
package controller; public class C_Calibration { final int ITERATIONS = 10; final int STEPCOUNT = 10; private int mNumberOfSensors; private int mCount; private SingleCalibration[] mCalibrations; public C_Calibration(int pNumberOfSensors) { mNumberOfSensors = pNumberOfSensors; mCalibrations = new SingleCa...
19.565217
90
0.593111
3c197964670274407a1dfad46c22a6fff969b09a
3,232
package com.ibercivis.interfungi.clases; import android.content.Context; import android.content.ContextWrapper; import android.os.Build; import android.text.Html; import android.text.method.LinkMovementMethod; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.Vi...
34.382979
127
0.698948
708ca3e35bdfff55f8b0fc40d79141a1a2ddfac0
2,152
/* * Copyright to 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 applicabl...
38.428571
113
0.691914
c44ccd6992151576f1bcb93e9da0b34b4bf13e70
204
package models; public class Logs { private String logtext; public String getLogtext() { return logtext; } public void setLogtext(String logtext) { this.logtext = logtext; } }
14.571429
42
0.656863
0e2a7821eeb7009a6d513681b59ac7e33ad8dba6
2,647
package com.github.hps.bean; import com.github.hps.util.StringUtils; import lombok.Data; import java.io.Serializable; import java.util.List; /** * 员工考试题目信息 * Created by whatlookingfor-Jonathan on 16/1/22 11:53. */ @Data public class EmployeeExamD implements Serializable { private static final long serialVers...
20.361538
71
0.604836
a1256cab9ade76777f2a244d4cb842b9461e52d2
3,532
/* *- @TestCaseID:maple/runtime/rc/function/FinalizerRef.java *- @TestCaseName:MyselfClassName *- @RequirementName:[运行时需求]支持自动内存管理 *- @Condition: no *- @Brief:functionTest * -#step1: 创建弱引用,确认创建成功,释放强引用。 * -#step2: 创建5个线程调用finalize。 * -#step3: 调用Runtime.getRuntime().gc()进行垃圾回收。 * -#step4: 重复步骤1~2。 *- @...
26.757576
68
0.610419
169073aac5374995fbbd0c139fad410f728eaab8
321
package de.lehmannet.om.ui.i18n; import java.util.ResourceBundle; public interface TextManager { String getString(String key); String getCurrentLanguage(); void useLanguage(String isoKey); /** * To remove after refactor all textbundles */ @Deprecated ResourceBundle getBundle(); ...
16.894737
47
0.694704
db3c4e41b433a3980c8a3a6f8eae2f53fa2f0ddf
266
package de.uni_leipzig.crypto_news_docs.model.assets.currency.crypto; import java.io.Serializable; import java.util.Date; class TimeSeriesValueCompositeId implements Serializable { private Double value; private Date date; private Long cryptoCurrencyPriceId; }
22.166667
69
0.830827
d5025d60ca75028025ce7371fa43b1069c6e2b29
418
package com.chen.f.admin.configuration.security; import org.springframework.security.config.annotation.web.builders.HttpSecurity; /** * @author chen * @since 2019/7/29 16:42. */ @FunctionalInterface public interface HttpSecurityCustomizer { /** * Customize the {@link HttpSecurity}. * * @param ht...
23.222222
80
0.72488
ff6b83cc3b8c3039e42c4e438e1ea6a16e5f8a34
385
package xsbti.compile; import java.io.File; import xsbti.Logger; /** * Interface to a Java compiler. */ public interface JavaCompiler { /** Compiles Java sources using the provided classpath, output directory, and additional options. * Output should be sent to the provided logger.*/ void compile(File[] sources, F...
25.666667
98
0.748052
0453752c1d9bb8a5f1892cd669bbd89488c3bd50
600
package com.example.designpattern.structuralpattern.facadepattern; public class ShopKeeper { private MobileShop iphone; private MobileShop samsung; private MobileShop blackberry; public ShopKeeper(){ iphone= new Iphone(); samsung=new Samsung(); blackberry=new Blackberry(); ...
20.689655
66
0.621667
0a380882cde3b1156681698cd4de9563d746229d
1,619
package br.com.globaldev.smartbuy; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.MenuItem; import android.view.View; import android.widget.EditText; import android.widget.Toast; public class Login extends AppCompa...
31.745098
141
0.647313
08ce9defc562050b90d97a4315a2b328a99b87db
2,007
package com.ilscipio.scipio.cms.template; import java.util.Map; import org.ofbiz.base.util.Debug; import org.ofbiz.base.util.UtilValidate; import org.ofbiz.entity.Delegator; import org.ofbiz.service.DispatchContext; import org.ofbiz.service.ServiceUtil; import com.ilscipio.scipio.cms.CmsServiceUtil; import com.ilsci...
36.490909
128
0.690583
ea4c64cfce9dc0846f037f446fd4de2b94fad5a9
2,085
package com.jx.intelligent.adapter.jxAdapter; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.jx.intelligent.R; import com.jx.intelligent.result.HomeWaterResult; import c...
26.0625
112
0.672422
2127ec9db7c51baa3dc263e747f6d3eb48e607d7
799
package io.github.vpday.bingwallpaper.bootstrap; import com.hellokaton.blade.Blade; import com.hellokaton.blade.mvc.BladeConst; import com.hellokaton.blade.security.csrf.CsrfMiddleware; /** * @author vpday * @date 2019/1/7 */ public final class ApplicationLoader { private ApplicationLoader() { } publ...
26.633333
112
0.69587
5df4e9c77b9e68357f6031a7af86ba0cdacd2563
1,734
package com.bazaarvoice.emodb.web.resources.blob; import com.bazaarvoice.emodb.blob.api.RangeSpecification; import com.bazaarvoice.emodb.blob.api.RangeSpecifications; import io.dropwizard.jersey.params.AbstractParam; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Parses an HTTP "Range" header...
38.533333
118
0.643599
a512edc8e040cbbe5c08d7407ca8621ac50c3b27
1,509
package com.biskot.infra.gateway; import com.biskot.domain.model.Product; import com.biskot.domain.service.NotFoundException; import com.biskot.infra.mock.ProductMockServer; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springf...
38.692308
94
0.782638
b43e0e62a5f6206aff788a378cbcee4ac7c92a03
273
package ex10; import java.time.Year; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @NoArgsConstructor @AllArgsConstructor @Data public class LegoSet { private String number; private Year year; private int pieces; }
14.368421
33
0.772894
c90d941738b0b73e91e32472504309ba1bb2de18
1,181
package br.com.sis.converter; import java.io.Serializable; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.convert.Converter; import javax.faces.convert.FacesConverter; import javax.inject.Inject; import org.apache.commons.lang3.StringUtils; import br.com.sis.en...
26.840909
87
0.778154
d54ff17cc2313a1256d490601c64236fa265d89f
412
package sch.frog.calculator.compile.lexical.exception; import sch.frog.calculator.compile.exception.CompileException; /** * 未识别的token异常 */ public class UnrecognizedTokenException extends CompileException { private static final long serialVersionUID = 1L; public UnrecognizedTokenException(char ch, int posi...
25.75
75
0.735437
84856216e8e333b3d2d27e485abd0c6fe815089a
804
package org.gateway.domain.event; import org.gateway.domain.model.Product; import org.gateway.domain.model.StoreInfos; public class GatewayEventAddProductInStore implements GatewayEvent { private StoreInfos storeInfos; private Product product; public GatewayEventAddProductInStore() { } public ...
22.333333
82
0.700249
d10ef33221117095de30674bb98d553137245eb6
2,182
package com.haglind.cl.web.rest.dto; import java.time.ZonedDateTime; import javax.validation.constraints.*; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import java.util.Objects; /** * A DTO for the Log entity. */ public class LogDTO implements Serializable { private Long id; ...
20.018349
59
0.578827
0891f3dc64e82c28d8e464f46d3d3faf5fa14ea8
3,172
package com.ctrip.zeus.service.model.grammar; import com.ctrip.zeus.util.BytesUtils; /** * Created by zhoumy on 2015/6/23. */ public class Tokenizer { private byte[] data; private int index; public Tokenizer(byte[] data) { this.data = data; index = 0; } public String getStringT...
28.070796
81
0.411728
84d911e2ab45d6c629c82f3d3d7417fb395e8406
9,151
package com.nobullet.algo; import java.util.Iterator; import java.util.Objects; import java.util.Set; /** * Item in the Knapsack: value and weight. */ public class KnapsackItem implements Comparable<KnapsackItem> { final int value; final int weight; final String description; /** * Constructs item from ...
25.705056
134
0.626489
6edfb86d845c67aa4f73219c0885dcc3538a7957
4,964
package com.pushtorefresh.storio3.sample.db; import android.content.Context; import android.database.sqlite.SQLiteOpenHelper; import androidx.annotation.NonNull; import com.pushtorefresh.storio3.sample.db.entities.Tweet; import com.pushtorefresh.storio3.sample.db.entities.TweetSQLiteTypeMapping; import com.pushtorefr...
55.775281
126
0.773167
01d11a29c6ccd321d2640ec55f54da563f427441
1,424
/* * 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 under t...
38.486486
127
0.760534
22d298a69c49f6dfc22fc96e932d3ecea214a963
380
package io.turntabl.test; import io.turntabl.main.Deck; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; public class DeckTest { Deck deck = new Deck(); @Test void testNumberOfCardsInADeck() { assertEquals(52, (int) deck.getNumberOfCards...
18.095238
61
0.639474
8868a26e0ae6ea82ae6ccb39207b76b19103d9b6
18,298
package com.mapbox.mapboxsdk.views.safecanvas; import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.DrawFilter; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Picture; import android.graphics.PorterDuff.Mode; import android.graphics.Rect; impor...
31.119048
100
0.634386
6037d4495678b61238d2ebe1784b63d2f31e04de
293
package lv.kid.vermut.intellij.yaml.psi; import com.intellij.psi.NavigatablePsiElement; /** * parent for all elements, or those which don't need a special class */ public interface NeonPsiElement extends NavigatablePsiElement { // public abstract List<NeonPsiElement> getNeonChildren(); }
26.636364
69
0.788396
3c7cb485a753b48b47ce1daa3cdeb8c5f343a3ff
1,939
/* * 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.254545
95
0.747292
fc87d9a90380a352ccd2983156867e06c6ebbcae
2,509
package it.unibz.inf.ontop.cli; import com.github.rvesse.airline.Cli; import com.github.rvesse.airline.builder.CliBuilder; import com.github.rvesse.airline.parser.errors.*; public class Ontop { public static void main(String... args) { Cli<OntopCommand> ontopCommandCLI = getOntopCommandCLI(); ...
35.842857
118
0.540454
5bcb8f5bfb8e68311fb713c3bf8e1773e7eb3ec7
268
package com.microservice.payments.api.models; import com.microservice.payments.api.models.db.TransactionEntity; import org.springframework.data.jpa.repository.JpaRepository; public interface TransactionRepository extends JpaRepository<TransactionEntity, String> { }
33.5
89
0.854478
db1b43f909db14859700fbe79b721d53e6c0a87e
1,522
/** * Licensed to Apereo under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Apereo licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file * except in ...
35.395349
84
0.746386
e255da342164273c75ce184a8f280dc6289fce55
133
/** * 保存各式各样的非业务代码 * * @author Ternence * @version 1.0 * @since 2018/8/25 15:00 */ package com.ternence.springboot.docker.misc;
16.625
44
0.669173
3e5a48123cd46d3822b623a64a0f86ce2b2fad38
244
package org.kie.api.runtime; import org.kie.api.KieBase; public interface KieRuntimeBuilder { KieBase getKieBase(); KieBase getKieBase(String name); KieSession newKieSession(); KieSession newKieSession(String sessionName); }
20.333333
49
0.754098
b829236e15be130af19bd467b3c232c12afad857
2,777
/* * Copyright 2003-2017 JetBrains s.r.o. * * 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...
42.075758
151
0.744328
04119dc398f91cc73d5fde4410803a0524edaeb7
2,423
package org.dominokit.domino.client.commons.extensions; import org.dominokit.domino.api.client.extension.DominoEventsListenersRepository; import org.dominokit.domino.api.shared.extension.DominoEventListener; import org.dominokit.domino.api.shared.extension.DominoEvent; import java.util.*; import java.util.stream.Coll...
37.276923
153
0.720594
7ca5ba6d394d135edcdae747ff29d82ecfb3c209
717
/* * Created by IntelliJ IDEA. * User: kinabalu * Date: Jul 4, 2009 * Time: 10:06:29 AM */ package com.mysticcoders.mysticpaste.model; import java.io.Serializable; public class LanguageSyntax implements Serializable { private static final long serialVersionUID = 1L; private String language; private ...
20.485714
72
0.64993
14264398bdd0150f50a664970528967775da4f01
154
package Adapter; public class Bank extends Dollar implements RMB { @Override public int getRMB(int dollar) { return dollar * 7; } }
15.4
49
0.649351
97144f78bfb134e4298b5a28b8ac49abda4fb362
139
package com.example.deepamgoel.newsy.util; public abstract class Constants { public static final String DATABASE_NAME = "newsy-db"; }
23.166667
58
0.769784
694475c5af3fc4ea9ec05de80271904d561e520c
2,370
package fr.ign.validator.cnig.sup; import static org.junit.Assert.assertEquals; import java.io.File; import java.util.List; import org.junit.Before; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TemporaryFolder; import fr.ign.validator.cnig.sup.DatabaseSUP.AssietteSup; import fr.ign.validator...
32.027027
111
0.723207
6c45e63f8972eaf08d755b85e3e3c49d2ec94d33
1,613
/* * Copyright (c) 2017 Darshan Parajuli */ package jshellsession; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; public class Config { String[] mShellCommand; Map<String, String> mEnv; Set<Integer> mSuccessExitValues; boolean mRedirectErrorStream; ...
22.402778
76
0.597024
7651a79f5281515201d2f00f397f02ae8d61db00
279
package hahaha.lalala.inheri1; public class Cat { String name; int age; public Cat(){} public Cat(String name,int age){ this.age = age; this.name = name; } public void show(){ System.out.println("名字是:"+name+",年龄是:"+age); } }
17.4375
52
0.555556
ed202362922e197b487f6edddbd38052d18aa6a6
19,861
package com.park.dao; import org.slf4j.Logger;import org.slf4j.LoggerFactory; import java.util.*; import java.sql.*; import org.springframework.jdbc.core.*; import org.springframework.jdbc.core.namedparam.*; import org.springframework.jdbc.support.*; import com.park.bean.*; import org.springframework.stereotype.Repos...
41.900844
447
0.592115
a31a245d5066129d14c5b5f64c95c0690d2c3e4a
2,531
package javawocc.ast; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; import javawocc.model.Environment; import javawocc.tokenizer.Token; import javawocc.tokenizer.Token.TokenType; class ASTNodeTest { protected NumberLiteral number(String str) { return new NumberL...
33.302632
79
0.702094
016127f7e1c3214ba7138728380ad9de470be364
1,623
package io.automatiko.engine.workflow.process.core.impl; import io.automatiko.engine.api.definition.process.Node; import io.automatiko.engine.workflow.base.core.Context; import io.automatiko.engine.workflow.process.core.NodeContainer; import java.util.HashMap; import java.util.Map; /** * */ public class NodeCont...
22.541667
75
0.706716
03274516e80acfdffe4521d0c94790e931364f46
3,984
package com.mattprecious.swirl; import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.AnimatedVectorDrawable; import android.graphics.drawable.Drawable; import android.os.Build; import android.support.annotation.DrawableRes; import ...
29.080292
100
0.65261
15ce4e6c675be9daa2d36eabb5a4b683538ed4e3
14,514
package com.concur.babel.processor; import static org.easymock.EasyMock.*; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import java.util.Date; import java.util.HashMap; import java.util.Map; import com.concur.babel.transport.ser...
38.094488
128
0.777939
05ef017950dc69d8a14040a6e742b5ca33dd1802
1,509
/* * 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 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
38.692308
138
0.700464
aa44efe852201f3a4eb221bbfc607365db4a5809
126
class C { //keep me String s = String.format(""" the text\n block lin<caret>e2 %d%d to be""", 1, 2); }
18
32
0.492063
1f1d1d8de191e421df70e35a008ac543debd9fe9
1,460
package net.minecraft.world.entity.animal.horse; import javax.annotation.Nullable; import net.minecraft.server.level.ServerLevel; import net.minecraft.sounds.SoundEvent; import net.minecraft.sounds.SoundEvents; import net.minecraft.world.damagesource.DamageSource; import net.minecraft.world.entity.AgeableMob; import n...
29.795918
118
0.745205
269ea04c0ea3628fdb9654ca94bc7031a7dd2c80
454
/* * Copyright © 2022 JINSPIRED B.V. */ package io.modulis.gauges.spi.alpha; import io.humainary.gauges.spi.GaugesProvider; import io.humainary.spi.Providers.Factory; /** * The SPI provider factory implementation of {@link GaugesProvider}. * * @author wlouth * @since 1.0 */ public final class ProviderFactory...
15.655172
69
0.698238
980915a6b7cb442ddfe3b9b95aaa3fcb1129b6a2
1,414
package com.ruiec.web.dto; import java.io.Serializable; import java.util.List; import java.util.Map; /** * 封装任务列表dto * @author Senghor<br> * @date 2018年1月12日 下午4:17:38 */ public class TaskListDTO implements Serializable{ /** */ private static final long serialVersionUID = 2225011960855605137L; /** 任务id */ pr...
20.794118
67
0.707921
cce0ef55d3217dac8798c79fae5ff6f59606c0ac
655
import java.awt.List; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.Queue; import java.util.Set; import java.util.HashSet; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; public class Solution { // ...
21.833333
44
0.551145
18e549ae582488072bad24b8e6fd9e14a251c137
2,354
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package uk.trainwatch.web.svgmap.tpnm; import java.io.IOException; import java.util.Map; import java.util.regex.Matcher; import java.u...
33.15493
117
0.486831
4245b7c36c7cbccae5ef83dbdb6d3e32333d34b4
2,404
package io.github.eggohito.eggolib.condition.item; import io.github.apace100.apoli.power.factory.condition.ConditionFactory; import io.github.apace100.calio.data.SerializableData; import io.github.eggohito.eggolib.Eggolib; import io.github.eggohito.eggolib.data.EggolibDataTypes; import io.github.eggohito.eggolib.util....
34.342857
94
0.588602
46af90a67cc02dc033d1e82359712f43837c8929
2,377
package de.adrodoc55.minecraft.coordinate; import static com.google.common.base.CaseFormat.LOWER_CAMEL; import static com.google.common.base.CaseFormat.UPPER_UNDERSCORE; import static com.google.common.base.Preconditions.checkNotNull; import com.google.common.collect.ImmutableList; import com.google.common.collect.Im...
26.120879
89
0.699621
6b8375423e093ae825d6ee713fa7f1fce22ffb1e
3,212
package org.societies.thirdpartyservices.networking.model; import java.util.ArrayList; import java.util.List; import org.societies.api.ext3p.networking.Education; import org.societies.api.ext3p.networking.Employment; public class ProfileForm { String name; String email; String homelocation; St...
23.792593
72
0.722603
d813ab56ba3765462a37f55a72fdef0538090173
2,462
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
25.645833
81
0.729488
6a5d812b7bf7410c8640219330db50c6b6fdfdde
6,689
/* * Copyright (c) 2016-2017, Numdata BV, The Netherlands. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * not...
42.878205
153
0.718194
f3b705b0b1f66c0da18b9704bae0e81e13a63569
1,660
package data_svc.entities; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.PrePersist; import javax.validation.constraints.NotNull; import java.util.Date; import java.util.UUID; @Entity public class PathLocation { @Id @GeneratedVa...
20.493827
101
0.642169
0fcca92114fce565fdd9fe5016a682b7b8f877da
4,284
package com.berp.mrp.dao; import java.util.Calendar; import java.util.Date; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.berp.core.entity.User; import com.berp.framework.hibernate3.Finder; import com.berp.framework.h...
26.444444
141
0.70028
4bdd6edfd7ca079e0920ccea49a0a5adb3a5fe7c
392
package com.taptrack.tcmptappy2.commandfamilies.type4.commands; import org.junit.Test; import static org.junit.Assert.*; public class GetType4LibraryVersionCommandTest { @Test public void testGetCommandCode() throws Exception { GetType4LibraryVersionCommand command = new GetType4LibraryVersionComman...
26.133333
84
0.765306
4dbbe0e5d2592c023ef05dc6b1f44ffdb938e737
7,083
/** * * Copyright (c) 2017 Yoshio Terada * * 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, p...
40.942197
114
0.68262
0cf7cb88f5bf4482e1e56dd2b02e03e20d144226
519
package com.squarespace.cldr.dates; public enum DateTimeField { YEAR, MONTH, DAY, AM_PM, HOUR, MINUTE, SECOND ; public static DateTimeField fromString(String string) { switch (string) { case "y": return YEAR; case "M": return MONTH; case "d": return DA...
14.416667
57
0.514451
03d49947ed3c29551f619c4a02e1edf6e6b71cc2
1,477
package seedu.address.ui; import static guitests.guihandles.WebViewUtil.waitUntilBrowserLoaded; import static org.junit.Assert.assertEquals; import static seedu.address.ui.GraphPanel.DEFAULT_PAGE; import java.net.URL; import java.util.ArrayList; import org.junit.Before; import org.junit.Test; import guitests.guihan...
30.770833
78
0.739336
382a25a08b873b0e05c616b9b3698221418935f4
12,083
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /****************************************************************** VOITURE.CPP Implémentation de la classe 'Voiture' et 'par' Version utilisant le type 'DOUBLE' ( 64 bits) Sources: Sciences & Vie n° 765, 776, 785...
34.229462
175
0.629976
f11797bb99c582035979145d3a8eca58874de13b
59
package edu.spaceshuttle.model; public class Category { }
11.8
31
0.779661
c2b801433642b808b67b2cfa1ecdcd961687ee5a
2,985
/* * Copyright 2012-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
33.166667
81
0.768844
5d5d4f16a309982a59407933b6fc23dc93e5292b
22,199
/*- * #%L * Genome Damage and Stability Centre SMLM ImageJ Plugins * * Software for single molecule localisation microscopy (SMLM) * %% * Copyright (C) 2011 - 2020 Alex Herbert * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as ...
25.723059
99
0.64584
587232cde14193799c19ed1f4f1affb4be83bc2c
14,349
/* * Copyright 2013-2014 CarCV Development Team * * 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...
36.234848
120
0.663321
129727c8aced268858d305c3a61658c45a58e894
320
/* * Copyright 2015 Yahoo Inc. * Licensed under the terms of the Apache 2 license. Please see LICENSE file in the project root for terms. */ package com.yahoo.validatar; import com.yahoo.validatar.common.Helpable; public class FakeTestClass implements Helpable { @Override public void printHelp() { } }
22.857143
107
0.734375
18589631117090fb9d17069bf67d2d9f84b7dd6b
1,546
package cool.arch.whaleunit.runtime.binder; /* * #%L WhaleUnit - Runtime %% Copyright (C) 2015 - 2016 CoolArch %% 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 owner...
37.707317
95
0.778784
8340d1d1caa58cdbe3123b2cb9c6a978bf75c4f1
1,516
package com.example.weixin1; import com.example.weixin1.domain.InMessage; import com.example.weixin1.service.JsonRedisSerializer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import...
33.688889
78
0.812005
5557a242d0053805411ef49676c242ae5898a642
1,652
package sensor; import core.Sensor; import edu.wpi.first.wpilibj.DriverStation; import event.events.BatteryVoltageEvent; import event.listeners.BatteryVoltageListener; import java.util.Enumeration; import java.util.Vector; /** * A battery sensor that retrieves main battery voltage from the analog sidecar. * * @aut...
26.645161
81
0.685835
386cfee4a432ca35ea4fd5d040a26090e2d73af7
8,542
//,temp,MapredLocalTask.java,164,368,temp,MapRedTask.java,93,334 //,3 public class xxx { private int executeInChildVM() { // execute in child jvm try { // generate the cmd line to run in the child jvm String hiveJar = conf.getJar(); String hadoopExec = conf.getVar(HiveConf.ConfVars.HADOOPBI...
40.67619
150
0.639663
edacf5eb08afa7ca167774833dd691c801041e6d
2,905
package com.ternsip.glade.universe.entities.impl; import com.ternsip.glade.common.events.base.Callback; import com.ternsip.glade.common.events.network.OnClientConnect; import com.ternsip.glade.common.events.network.OnClientDisconnect; import com.ternsip.glade.network.Connection; import com.ternsip.glade.universe.entit...
42.720588
138
0.785198
149bbd84fb582e36ae016b2db28f8f93b37046e4
518
package iterative_improvement; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; import java.util.List; import main.Config; import main.NextGenConfig; public class IterativeImprovementOperatorClusteringInsideFamily extends IterativeImprovementOperator { @Override public List<String> opera...
27.263158
165
0.826255
9d8e888fdc33cc4ab929fa2e5b0637fba57a7432
2,656
/** * Copyright 2014 Internet2 * * 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...
31.619048
89
0.691265
cb1b479336c39be7650aa446ec400b1109bd012c
7,168
/* * Copyright 2012 Guido Steinacker * * 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...
42.666667
113
0.659877
0c9c4db1fc6cee5c4486820980c3b0bce4a4c35e
1,429
package com.cga.Spcell.service; import java.util.List; import javax.transaction.Transactional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.cga.Spcell.dao.TerminalDao; import com.cga.Spcell.model.Terminal; @Service("terminalService") @Trans...
23.048387
62
0.784465
6b96bde1fcaf8cc222e82d1e09fc44b751648bfa
2,375
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.code.base.expression; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import net.sf....
27.616279
145
0.722947
785a29980ccf23f7a45a38883395f6cee3b4501e
18,463
package com.betfair.publicapi.types.global.v3; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlSeeAlso; import javax.xml.bind.annotation.Xm...
24.81586
136
0.564426
b3febc5cb3c64c8273652116bf225d0bb1a4a395
2,672
package de.openknowledge.reactive.json; import javax.json.stream.JsonParsingException; import java.util.ArrayDeque; import java.util.Deque; import de.openknowledge.reactive.commons.AbstractSimpleProcessor; public class JsonArrayProcessor extends AbstractSimpleProcessor<JsonToken, String> { private State state = S...
32.987654
125
0.627246
c7ff5ee45f9d3f90356372d2181cfcae188e11e3
7,077
package org.clever.security.service; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.clever.common.exception.BusinessException; import org.clever.common.util...
47.496644
165
0.729546
22f87662cc3523f8104e59a7ce296676e89934e6
1,040
package com.ggr.leecode.util; /** * @author : gr * @date : 2019/11/8 10:23 * 实现一个 MajorityChecker 的类,它应该具有下述几个 API: * * MajorityChecker(int[] arr) 会用给定的数组 arr 来构造一个 MajorityChecker 的实例。 * int query(int left, int right, int threshold) 有这么几个参数: * 0 <= left <= right < arr.length 表示数组 arr 的子数组的长度。 * 2 * threshold ...
26.666667
106
0.651923
cf6f295564561293f05be12980c0fcfe2665ae1f
1,821
package com.alibaba.alink.common.lazy.fake_lazy_operators; import org.apache.flink.api.common.functions.MapFunction; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.api.java.DataSet; import org.apache.flink.ml.api.misc.param.Params; import org.apache.flink.table.api.Table; import o...
28.453125
88
0.769357
53c91a727a9800704954d7f2529ed8ef8bbe376a
468
package com.huatuo.bean; import java.util.ArrayList; /** * 获取时间轴内容列表 ,包括秒杀活动,活动专题,广告表,推荐服务 * */ public class SecKillSpecialListItemBean { // ID 专题ID ANS 64 M 专题ID // name 专题名称 ANS 64 M 专题名称 // icon 专题Icon ANS 256 M 专题图片 // minPrice 最低价格 ANS 64 M 最低价格 // stock 库存 N 64 M 库存 public String ID = "";//专题ID public Str...
22.285714
45
0.675214
3ec72a3e6f4b88dd013149d8e37e0219129895e6
1,827
package com.akso.java9; import org.junit.Test; import java.util.*; public class CollectionMapTest { /** * 创建一个只读特点的集合 JDK 8 及以前的做法 , case1 */ @Test public void test1() { List<String> list = Arrays.asList("hello", "hi", "how are you", "what is up", "how is going"); // 调用Collecti...
29.467742
114
0.546798