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
414e71c49bb918050a2844b8f1749f471e0e3c28
1,707
package mcjty.theoneprobe.apiimpl.elements; import io.netty.buffer.ByteBuf; import mcjty.theoneprobe.api.IElement; import mcjty.theoneprobe.api.IItemStyle; import mcjty.theoneprobe.apiimpl.TheOneProbeImp; import mcjty.theoneprobe.apiimpl.client.ElementItemStackRender; import mcjty.theoneprobe.apiimpl.styles.ItemStyle;...
26.261538
68
0.646749
379898db1f6703286ea6159d06d6b2e00d614269
654
package sh.okx.rankup.messages; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import sh.okx.rankup.ranks.Rank; public interface MessageBuilder { MessageBuilder replaceKey(String key, Object value); MessageBuilder replacePlayer(CommandSender sender); MessageBuilder replaceRank(Rank ra...
25.153846
64
0.779817
b522f4228cb9059676f41ac01aeb833e85121529
4,917
package net.opengis.gml; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlElementDecl; import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; /** * This object contains factory methods for each * Java content interface and Java element interface * generated in the...
29.620482
129
0.645719
3d254166d6e3e45b99c3df6451c597dc04f20ac2
3,791
package com.tokbox.android.accpack.textchat; import androidx.annotation.NonNull; import androidx.recyclerview.widget.AsyncListDiffer; import androidx.recyclerview.widget.DiffUtil; import androidx.recyclerview.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGro...
35.429907
115
0.652071
705b3297c477e775a86d7c6ee1768cbdfc1ec880
2,372
/* * 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 ...
35.939394
103
0.72597
4bf33b15ffe0c50d74b869828789fa5e24463b1b
2,435
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.searchlib.expression; import com.yahoo.vespa.objects.Deserializer; import com.yahoo.vespa.objects.ObjectVisitor; import com.yahoo.vespa.objects.Serializer; /** * This is an integer bucket value ...
23.640777
104
0.592197
4bc3b22924950f4838d8aac5b88d249c01af83c6
5,290
package org.applesline.mini.dubbo.transporter.netty; import com.google.inject.Inject; import io.netty.bootstrap.Bootstrap; import io.netty.channel.*; import io.netty.channel.nio.NioEventLoopGroup; import io.netty.channel.socket.SocketChannel; import io.netty.channel.socket.nio.NioSocketChannel; import io.netty...
43.719008
142
0.660113
ebd781247c3f81137f4ec28ebaf2176e62dd17f2
5,436
package com.doctordark.hcf.listener; import com.doctordark.hcf.HCF; import com.doctordark.hcf.timer.PlayerTimer; import com.doctordark.hcf.util.DurationFormatter; import gnu.trove.map.TObjectLongMap; import gnu.trove.map.hash.TObjectLongHashMap; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukki...
41.181818
177
0.648639
a743e233753b66e32c40b235048aa4dcce069987
1,395
// Vector3f.java // // Copyright (C) 1999 Takashi Yukawa // // This java source file conforms // GNU GENERAL PUBLIC LICENSE Version 2. // // Author: Takashi Yukawa <yukawa@jc.akeihou-u.ac.jp> // Created: Jan.17, 1999 package vecmath; //import java.text.*; public class Vector3f { public float x; pu...
20.514706
56
0.587097
4f69e1abdf91de982869a873be8acc4e13392814
1,483
/** * Copyright (c) 2009-2016, Data Geekery GmbH (http://www.datageekery.com) * 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/license...
27.462963
98
0.668914
7d831ec869339a9c8046b403801df62ef3094a43
2,710
package io.ernesto.hn; import org.junit.Test; import java.util.concurrent.*; import static junit.framework.TestCase.assertNull; import static org.junit.Assert.assertTrue; public class FetcherTests { private long maxTimeout = 10000; private String baseUrl = "https://hacker-news.firebaseio.com/v0/"; @Tes...
29.456522
81
0.564207
f82719862673585704ea4b70b26495a0efe60c99
1,359
package org.sagebionetworks.repo.model.table; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import org.junit.jupiter.api.Test; public class TableConstantsTest { private...
25.641509
126
0.743929
61ece842beee87670bee07b1ed7b9ffe5ae4be33
858
/* Copyright 2018 Khizar Heyat Khan (khizakhan8@gmail.com) Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed ...
30.642857
88
0.786713
b065392391aff935046718a562ad17abf43d5cba
3,293
/* * Copyright 2008 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by appl...
42.217949
223
0.764045
195a8c924e47e7640f064906e193f34f0bc0b115
917
/** * Copyright (c) 2009 - 2011 AppWork UG(haftungsbeschränkt) <e-mail@appwork.org> * * This file is part of org.appwork.utils.net.httpconnection * * This software is licensed under the Artistic License 2.0, * see the LICENSE file or http://www.opensource.org/licenses/artistic-license-2.0.php * for details */...
22.365854
86
0.676118
b58fb8693519780ac992b9618c45ba0a1fc85258
1,115
package org.kakara.core.common.command; import org.jetbrains.annotations.NotNull; import org.kakara.core.common.mod.LoadStage; import java.util.Set; public interface CommandManager extends LoadStage { /** * Executes a command. * <b>Do not include command prefix</b> * * @param command command ...
24.23913
80
0.656502
26ecfbd3be60b91089e38eb2af93853a141b7bea
281
package com.iyzis.core.domain.enums; public enum PaymentVendor { IYZICO("IYZICO"); private String vendorName; PaymentVendor(String vendorName) { this.vendorName = vendorName; } public String getVendorName() { return this.vendorName; } }
17.5625
38
0.661922
055faf2a17db1fb22e8445b051bca025f4746d1d
495
package com.mercadopago.uicontrollers.reviewandconfirm; import com.mercadopago.model.PaymentMethod; import com.mercadopago.model.PaymentMethodSearchItem; import com.mercadopago.uicontrollers.CustomViewController; import java.math.BigDecimal; /** * Created by vaserber on 11/7/16. */ public interface ReviewPaymentV...
30.9375
124
0.838384
bcc114a0362ebc69fdc86e4f974c5c74be4daf5b
377
package com.hotbitmapgg.ohmybilibili.model; import java.util.ArrayList; public class UserFans { public int code; public ArrayList<FansInfo> list; public class FansInfo { public int addtime; public int attentioned; public String face; public int fid; pub...
13
43
0.6313
85849f19012ee97cc20173c9be81d6bd302513cf
4,883
/* * $Id$ * * 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 * "Lice...
36.17037
81
0.679705
925745dc3e2e89028408712318bc3da530345cc4
1,666
package com.github.fwi.yapool; import static org.junit.Assert.*; import java.util.concurrent.CountDownLatch; import com.github.fwi.yapool.PoolEvent; import com.github.fwi.yapool.listener.PoolEventQueue; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class TestBasicPool { p...
31.433962
115
0.727491
2903b64f42fc909ef516e2a87a0e00f7c5a83873
3,744
package javafx.apktools.model; import javafx.apktools.model.config.Channel; import javafx.apktools.model.config.Person; import javafx.apktools.model.config.Product; import javafx.apktools.model.manifest.Manifest; import javafx.apktools.model.resource.Resource; import org.dom4j.Document; import org.dom4j.DocumentExcept...
33.132743
114
0.586806
0c0e6076f222154852831897bd3348976b07ac89
1,782
// Copyright 2020 Goldman Sachs // // 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 ...
36.367347
89
0.761504
d4308f1e63eabb0b82e68a7e4e22ee0aa355166b
1,470
package rpg_tests; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import rpg_lab.Dummy; import rpg_lab.interfaces.Weapon; import java.util.ArrayList; public class DummyTests { private static final int INITIAL_DUMMY_HEALTH = 20; private static final int INITIAL_DUMMY_EXPERIENCE = 20;...
28.269231
104
0.70068
e1dfbfe7df2bc8688dc5ee1b667bb0c3e768c2f3
543
/* * This file is part of the Wildfire Chat package. * (c) Heavyrain2012 <heavyrain.lee@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ package io.moquette.persistence; import java.io.Serializable; public class UserCli...
24.681818
74
0.723757
855a6f9b1cfd106d9b8f2a877e7a6b4759fa10aa
591,528
import org.junit.FixMethodOrder; import org.junit.Test; import org.junit.runners.MethodSorters; @FixMethodOrder(MethodSorters.NAME_ASCENDING) public class ErrorTest0 { public static boolean debug = false; @Test public void test0001() throws Throwable { if (debug) System.out.format("%n...
67.680549
235
0.716769
e5543072cbfe2f19f6379b1f431f144f1e63ff6f
8,802
package me.jmchen.hackernewsreader; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteStatement; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatA...
38.269565
120
0.573052
9512933965eca7d9f732bef085d1e6cedc84d4fa
148
package io.github.jaychoufans.service; public interface VaptchaCheckService { boolean vaptchaCheck(String token, String ip) throws Exception; }
18.5
64
0.810811
314070df038bf41e6525637ac1c3975e77c2b195
13,036
/* * Copyright 2008-2017 Wells Burke * * 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...
24.736243
106
0.54127
1c1eac2ed376ef5f2cb62587f3ed20dbdad81479
9,395
/* * Copyright ConsenSys Software Inc., 2022 * * 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...
37.730924
118
0.688026
f07bcb9b2f1404c0dd2753702c7943e3ffa3d94e
933
package com.thesis.webapi.dtos; import javax.validation.constraints.NotNull; import java.util.UUID; public class SettingsUpdateDto { @NotNull(message = "City id cannot be null.") private UUID cityId; private Double basePrice; private Double intervalPrice; private Integer intervalTime; pri...
18.294118
49
0.667738
970957ab446a74bd6814585170d2830de14a1f84
1,156
//package com.justmall.search.config; // //import org.springframework.context.annotation.Bean; //import org.springframework.context.annotation.Configuration; //import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer; //import org.springframework.data.redis.serializer.RedisSerializer; //impor...
32.111111
86
0.769031
d46a42844857bce1b9f1df878b89ba372dec6fe0
1,440
package group.spart.abl.ui; import java.util.ArrayList; import android.widget.ListView; import group.spart.abl.app.R; /** * * @author megre * @email renhao.x@seu.edu.cn * @version created on: Jan 2, 2021 12:37:22 AM */ public class DisplayList { private final ListView fListView; private final TextViewAd...
21.176471
76
0.727083
99448bed3d0832f8ed4ebc95d788a2fd21be005f
926
package com.ameya.servicediscovery.client; import org.apache.zookeeper.WatchedEvent; import org.apache.zookeeper.Watcher; import org.apache.zookeeper.ZooKeeper; import java.io.IOException; import java.util.concurrent.CountDownLatch; public class ZKConnection { private ZooKeeper zooKeeper; CountDownLatch cou...
28.060606
94
0.668467
40dbf8f2b98c31d9b4f3897d7db4897f5f509fa5
1,346
package com.embracon.model; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.Id; import javax.persistence.OneToOne; import javax.persistence.Table; import com.fasterxml.jackson.annotation.JsonIgnore; @Entity @Table(name = "usuarios") pu...
16.617284
95
0.719168
08f299a5b5c08af76f80cc2c7022d392c8d3c9f9
1,492
/* * Copyright (c) 2013 The Johns Hopkins University/Applied Physics Laboratory * All rights reserved. * * This material may be used, modified, or reproduced by or for the U.S. * Government pursuant to the rights granted under the clauses at * DFARS 252.227-7013/7014 or FAR 52.227-14. ...
39.263158
96
0.735255
5c3f02744218ff3a3cdafe139ea3de0d4b277438
617
package fx.rich.text.keyboard.navigation; import java.util.Arrays; import fx.rich.text.GenericStyledArea; class Utils { static int entityStart(int entityIndex, String[] array) { return (entityIndex == 0) ? 0 : Arrays.stream(array) .map(String::length) .limit(entityIndex) ...
26.826087
90
0.63047
790f6a9cbe22ecae5e617586323e7b7f22c1cbc6
2,733
package enemeez.simplefarming.block.growable; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.BushBlock; import net.minecraft.block.IGrowable; import net.minecraft.state.IntegerProperty; import net.minecraft.state.StateContainer; import net.minecraft.state.properties...
34.594937
154
0.717892
dba2bb27cd03ca91883a37271f73fc6328abbd75
447
package com.palyrobotics.frc2017.robot.team254.lib.util; import java.util.HashMap; import java.util.Set; public class StateHolder { private HashMap<String, Object> states = new HashMap<String, Object>(); public void put(String key, Object value) { states.put(key, value); } public Object get(...
21.285714
75
0.655481
3e4fdb4c026e7d60c158b7b5faf9d2066b0f810e
6,757
package com.ccaaii.shenghuotong; import java.util.ArrayList; import java.util.List; import android.content.Intent; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.view.PagerAdapter; import android.support.v4.view.ViewPager; import android.support.v4.view.ViewPager.OnPageC...
29.89823
123
0.690987
c41ecc50c71842742525889af107baf79e024e53
5,749
/** * Copyright (c) 2013 by chenyiming. */ package com.future.dconf.web.controller; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.lang.StringUtils; import org.slf4j.Logge...
34.842424
123
0.727605
0e661f5bac25009489a58501e0a9c24c28d91b4d
12,207
/*L * Copyright SAIC * Copyright SAIC-Frederick * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/camod/LICENSE.txt for details. */ /** * * $Id: TransplantationAction.java,v 1.3 2009-03-25 16:24:58 pandyas Exp $ * * $Log: not supported by cvs2svn $ * Revision 1....
43.596429
166
0.615712
6eb0fc1e7845c9ae3c65eba049f73a2ccf96df95
441
/* * Copyright 2015-2020 uuzu.com All right reserved. */ package com.mob.thor.rpc.common.bytecode; /** * @author zxc Dec 31, 2015 6:23:20 PM */ public class NoSuchMethodException extends RuntimeException { private static final long serialVersionUID = -2725364246023268766L; public NoSuchMethod...
21
72
0.653061
17c09eaf0100a37f0b7ef9564de8f8df39e46a76
2,861
package io.mercury.common.thread; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.LockSupport; import javax.annotation.Nonnull; import org.slf4j.Logger; import io.mercury.common.log.Log4j2LoggerFactory; public final class SleepSupport { private SleepSupport() { } private static final L...
23.45082
107
0.676686
7d4dae7e80d5436e093fee234c4aff45b9f0b74e
384
package no.unit.nva.doi.requests.exception; import nva.commons.exceptions.ApiGatewayException; import org.apache.http.HttpStatus; public class NotAuthorizedException extends ApiGatewayException { public NotAuthorizedException(String message) { super(message); } @Override protected Integer st...
22.588235
65
0.747396
7df2162b6dc7cb40c9c000d2b1bf8bec585ecdc4
1,175
package com.marklogic.appdeployer.command.tasks; import org.junit.Test; import com.marklogic.appdeployer.command.AbstractManageResourceTest; import com.marklogic.appdeployer.command.Command; import com.marklogic.mgmt.ResourceManager; import com.marklogic.mgmt.tasks.TaskManager; import com.marklogic.rest.util.Resource...
28.658537
112
0.711489
4ba60bfbbedf354023a297137a6d548f6f60f50c
1,583
package carage.engine.matrix; // Normal Matrix = Transponierte und invertierte (Reihenfolge egal) ModelView Matrix! @SuppressWarnings("serial") public class NormalMatrix extends RenderMatrix { public static final String DEFAULT_NAME = "normalMatrix"; private ModelViewMatrix modelViewMatrix = null; public Nor...
26.383333
97
0.751105
df564df98ec3ebe6aec8f847c55300cb64e87707
1,769
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.aad.webapp.jackson; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.Map; ...
30.5
115
0.638779
f81a214c96f6a92086e34eee6b2bb989274296d2
64,535
/** * 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.812986
107
0.633207
ef9526c670934d5b25c9ceffdd0ab8190fc088a2
6,328
package com.minelittlepony.client.render.entity.npc; import it.unimi.dsi.fastutil.ints.Int2ObjectMap; import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap; import it.unimi.dsi.fastutil.objects.Object2ObjectMap; import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap; import net.minecraft.client.MinecraftClien...
47.939394
153
0.70591
ed9b112aa4fc07f989b5e017fdc82f844cf0ce7f
229
package com.gdxsoft.easyweb.utils.Mail; public interface IDKIMCanonicalization { public String getType(); public String canonicalizeHeader(String name, String value); public String canonicalizeBody(String body); }
22.9
62
0.772926
026724eafa4795eb92e9318f22bab4159e3ba772
5,347
package com.zakrywilson.astro.tle; import java.math.BigDecimal; import java.math.RoundingMode; import java.text.DecimalFormat; import java.util.Calendar; import java.util.TimeZone; import java.util.concurrent.atomic.AtomicReference; /** * A thread-safe epoch utility class for handling conversions between the TLE epo...
36.128378
99
0.680382
cafffc91f0449ae35f7fdeaebd042c5fdcdc48f7
6,879
/** * 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 m...
30.986486
99
0.65809
b0e579e56b76d1d842724fbad93b7ea81178b435
705
package com.worker.util.database; import java.util.Arrays; import java.util.List; import com.google.gson.Gson; import com.worker.models.Manitas; import com.worker.models.Mensaje; import com.worker.models.Usuario; public class JsonParser { private static Gson gson = new Gson(); private JsonParser() { } pub...
21.363636
63
0.733333
4d81f5cabc968afebe890712d411e2d87d68a01d
2,597
package com.example.ccshop.web; import com.example.ccshop.domain.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import com.example.ccshop.domain.User; import ja...
28.538462
92
0.634578
46209bbbb3d5e36e56befe9a1d7b4198fd6fc96d
10,834
/** * 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...
37.230241
99
0.670297
2af8a442cf1ff6c61554f1f4279768601d0ffaff
19,483
package com.tank.actor.vehicles; import java.util.ArrayList; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.math.Polygon; import com.badlogic.gdx.math.Vector2; import com.tank.ac...
32.689597
142
0.661089
f9022e49c64264de87697b2f19e67afea75fab58
3,055
package com.cyberlink.cosmetic.action.backend.v2.user; import java.security.NoSuchAlgorithmException; import java.security.spec.InvalidKeySpecException; import java.util.List; import com.cyberlink.cosmetic.action.backend.AbstractAction; import com.cyberlink.cosmetic.error.ErrorDef; import com.cyberlink.cosmetic.error...
32.157895
78
0.732897
ee302dfc6344b4eacd734e65dd6cca320425db62
4,676
/* * Copyright 2015 the original author or authors. * @https://github.com/scouter-project/scouter * * 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...
36.53125
161
0.711933
410abe23c384559001962e068b6229d7326cce9d
711
package com.codeborne.selenide; import javax.annotation.CheckReturnValue; import javax.annotation.Nonnull; import javax.annotation.ParametersAreNonnullByDefault; /** * Authentication schemes. * * @see <a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication#Authentication_schemes">Web HTTP referen...
21.545455
128
0.73699
4dafedec2b8a9d92f827bd716db14fe9c69e3d60
2,464
/** * Copyright (c) 2013, impossibl.com * 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 notice, * this list of cond...
39.741935
78
0.769481
1e47ac768f4cec9474607c47fee2cfb88c890423
2,864
package io.g740.components.uid; import io.g740.commons.types.Manager; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.Date; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; /** * UID生成器,适用于: * 1) 一种服务,一个实例,一个数据库; */ @Manager public class SingleInstanceUidGenerator { ...
34.506024
107
0.569483
bcbd827d24a9de5b7594b0f976accbaa4bdfc74b
4,791
/* * ========================================================================== * Copyright (C) 2019-2021 HCL America, Inc. ( http://www.hcl.com/ ) * All rights reserved. * ========================================================================== * Licensed under the Apache License, Ve...
32.371622
99
0.673763
2d6026a624d5833d459e6802a801121ad40113f8
677
package com.sns.invest.comment.bo; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.sns.invest.comment.dao.CommentDAO; import com.sns.invest.post.model.Comment; @Service public class CommentBO { @Autowired private Com...
24.178571
98
0.791728
f5d9c8072c6e11daef7643af6c1c9a52a75fc10d
253
package com.vlados.exception.store_exc; import com.vlados.exception.StoreException; public class CantDeleteBecauseOfOrderException extends StoreException { public CantDeleteBecauseOfOrderException(String message) { super(message); } }
25.3
71
0.794466
41562be9f04b7867373d7d1ad5f2cfbd3e51372b
733
package ru.soknight.packetinventoryapi.listener.event.window; import org.bukkit.entity.Player; import ru.soknight.packetinventoryapi.container.Container; import ru.soknight.packetinventoryapi.event.window.WindowCloseEvent; import ru.soknight.packetinventoryapi.item.update.content.ContentUpdateRequest; import ru.soknig...
36.65
149
0.791269
ee0ad61783d562f4aef25d53d26e5c7e75e0fdd4
1,707
/* * Licensed to Julian Hyde under one or more contributor license * agreements. See the NOTICE file distributed with this work * for additional information regarding copyright ownership. * Julian Hyde licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this * file ...
32.207547
78
0.742238
f7c71860fdaf3cc3503e0b72969f7ad61deecd6c
4,345
package ir.sk.algorithm.tree; import ir.sk.algorithm.stack.parsing.Expression; import ir.sk.helper.complexity.SpaceComplexity; import ir.sk.helper.complexity.TimeComplexity; import java.util.Stack; /** * The expression tree is a binary tree in which each internal node corresponds * to the operator and each leaf no...
28.966667
123
0.561105
0c0905b36c65e3602aca7a4b6a3efdfc1a570860
902
package com.mixbook.springmvc.DAO; import java.util.List; import javax.persistence.PersistenceException; import com.mixbook.springmvc.Exceptions.NoDataWasChangedException; import com.mixbook.springmvc.Exceptions.ReviewOwnRecipeException; import com.mixbook.springmvc.Models.Recipe; import com.mixbook.springmvc.Models...
34.692308
139
0.859202
934a3bae1b23f3c00d6cbfdeb5f6cba5f72b3696
2,098
/* * Copyright (C) 2012 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
35.559322
100
0.689704
7c424769d2d4fd4618ce5d3f4b6c21e421e0e1e7
5,907
/** * KartMatch: StartActivity.java * * First activity visible when loading the application. This is basically where the user enter the number of pilots in the competition, * and the maximum number of cars (which is distinct from the actual number of cars actually used during a race, the maximum number * of ...
31.92973
137
0.618757
afb653bb791ca6e9ccb466128515660066f97755
182
package com.appleframework.jms.core.utils; import java.util.UUID; public class UuidUtils { public static String genUUID() { return UUID.randomUUID().toString(); } }
15.166667
42
0.697802
83136584715664b2c3244b498e825dc603f628eb
1,460
package org.nkjmlab.util.nlp.tfidf; import static org.assertj.core.api.Assertions.*; import org.junit.jupiter.api.Test; class DocumentTest { private static final org.apache.logging.log4j.Logger log = org.apache.logging.log4j.LogManager.getLogger(); @Test void testDocument1() { DocumentFa...
31.73913
100
0.654795
816fd6f44f34d66fa96005cecd0aa1b22ae1daac
1,175
package eapli.base.teammanagement.domain; import org.junit.Test; import static org.junit.Assert.*; public class EquipaTypeTest { private static final Designacao DESIGNACAO_TIPO_EQUIPA = Designacao.valueOf("Tipo de Equipa 1"); private static final Cor AZUL = Cor.valueOf("Azul"); private static final Equi...
25.543478
100
0.664681
e3271f2210b7b3016b5492398728c07361cb35c1
660
package com.learning.container; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.xml.XmlBeanFactory; import org.springframework.core.io.ClassPathResource; import org.springframework.core.io.Resource; import com.learning.Employee; public class EmployeeContainer { publi...
33
93
0.751515
06857197a6408e10db9b04d87294ecb95b0d852b
8,492
package org.tap4j.plugin; import java.io.PrintStream; import java.util.Collections; import java.util.List; import org.tap4j.plugin.model.CheckResult; import org.tap4j.plugin.model.CheckResultEnum; import org.tap4j.plugin.model.CheckStrictness; import org.tap4j.plugin.model.CheckType; import org.tap4j.plugin.model.Nod...
39.497674
166
0.685233
1195267fdd02f303d4c5004843de9389a3789c55
6,523
package biz.golek.whattodofordinner.database.entities; import java.util.List; import biz.golek.whattodofordinner.database.DaoSession; import de.greenrobot.dao.DaoException; import biz.golek.whattodofordinner.database.DinnerDao; import biz.golek.whattodofordinner.database.DinnerIngredientDao; import biz.golek.whattodo...
31.360577
182
0.641269
b3b7f000f9f610e7553a85d39482e819defb3ab2
5,285
package xm.math.sort.extsort; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.Random; /** * Purely informational so use at your own risk, it is not optimi...
29.691011
79
0.504636
a8c10744a7d84bb0163ece860178007d9cbeabe6
429
package com.david.ds.teles.framework.client; import java.util.concurrent.CompletionStage; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import org.eclipse.microprofile.rest.client.inject.RegisterRestClient; @Path("/{cep}/json/") @RegisterRestClient(configKey = "viacep-api") ...
28.6
71
0.759907
a814e773071ba39948d31b066bab4450dfe45dee
7,452
package com.young.android.bleproject; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.app.Service; import android.bluetooth.BluetoothDevice; import android.content.Intent; import android.content.res.Resources; import android.os.Binder; import an...
32.828194
115
0.638084
82b1265ff4afa74a439921308256ea413546d9cb
5,839
package de.uni.bielefeld.sc.hterhors.psink.scio.tools.latex; import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; im...
35.387879
163
0.65268
a0e19ca1ef889cb6e2d2b70a843b75ff044ba81a
1,190
package org.jsonku.core.jsonvalue; import java.util.Objects; public class JSONBoolean extends JSONValue{ private String stringValue; private boolean literalValue; public JSONBoolean(String stringValue) { this.stringValue = stringValue; this.literalValue = (stringValue.equals("true"))...
24.285714
71
0.621849
2529b9bc1c07b49e168590ccf6155b147001da46
2,157
package net.control; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class LoginProc_v1 extends HttpServlet { //결과확인 //http://loc...
26.304878
72
0.64905
f149cbfd1bf0604831f348be60c10eced83e93a0
2,831
package com.hsiao.springboot.jersey.model; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.io.Serializable; import java.util.Date; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.EntityListeners; import javax.persistence.GeneratedValue; import javax....
26.707547
80
0.719534
308a17c718a51bef264daffd334b906314ca8d84
1,621
package com.riaancornelius.flux.ui.issue; import android.database.DataSetObserver; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.ListAdapter; import android.widget.TextView; import com.riaancornelius.flux.R; import...
27.474576
98
0.698334
1c1c70abf9eda311f2058ef193db8ac466a260c8
26,675
package com.facebook.react.views.textinput; import android.content.Context; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.Typeface; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Bundle; import android.text.Editable; import android.text.Span...
35.661765
155
0.61477
5224925605b1c7ea6e363afc3d958c5cebebe0f9
12,870
package org.multibit.hd.ui.views.components; import org.multibit.hd.brit.core.seed_phrase.SeedPhraseGenerator; import org.multibit.hd.ui.views.components.confirm_password.ConfirmPasswordModel; import org.multibit.hd.ui.views.components.confirm_password.ConfirmPasswordView; import org.multibit.hd.ui.views.components.di...
37.964602
160
0.757653
5b37f70e86cd4a49d22c7e2cb080a342ca4b38df
770
package com.github.shuaidd.dto.oa.formcontrol; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.StringJoiner; /** * 描述 数字控件 * * @author ddshuai * date 2021-07-16 14:25 **/ public class NumberFormControl implements ApplyFormControl { @JsonProperty("new_number") private String numbe...
20.263158
89
0.618182
4b5b492e639158542da3baf5cf0becc5efa4a7f8
1,202
package com.yourtion.leetcode.easy.c0874; import java.util.HashSet; import java.util.Set; /** * 874. 模拟行走机器人 * * @author Yourtion * @link https://leetcode-cn.com/problems/walking-robot-simulation/ */ public class Solution { public int robotSim(int[] commands, int[][] obstacles) { Set<String> set = ne...
27.318182
67
0.368552
47c252371ba57d8905bab47dd98de82335bfb5fd
3,866
package sunmi.sunmidesign; import android.app.Activity; import android.graphics.Color; import android.os.Bundle; import android.view.View; import android.widget.TextView; import java.util.ArrayList; import java.util.List; import sunmi.sunmiui.viewgraoup.TabViewPager; /** * 项目名称:SunmiDesign * 类描述: * 创建人:Abtswiath...
33.912281
95
0.532592
ad2a13cbb53d6041899e7080e2d29de058c980f6
3,425
/* * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: ...
28.305785
78
0.673285
5728988c00aea5c3b7b52d240aa2677c2279c0ba
1,114
/** * This software is licensed under the MIT license. * If you wish to modify this software please give credit and link to the git: https://github.com/Moudoux/OTIRC. */ package com.opentexon.Server.Server.Commands; import com.opentexon.Server.Main.Main; import com.opentexon.Server.Server.User; import com.o...
27.170732
113
0.67325
26347d0e924ad3a890fa6dd432b0d24d1ad60509
1,920
package be.ac.ulb.infof307.g01.client.model.map; import be.ac.ulb.infof307.g01.common.model.CoordinateSendableModel; import be.ac.ulb.infof307.g01.common.model.PokemonSendableModel; import java.sql.Timestamp; import org.junit.Test; import org.junit.Before; import static junit.framework.TestCase.assertEquals; public...
31.47541
108
0.697917
ab49838a892972ab1c92b7fa1374ab163067b646
1,974
package ca.as1; import org.joda.time.LocalDate; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Map; import java.util.UUID; /** * Created by Aaron Phili...
29.462687
78
0.672746
b0ad49ef1a23c2493aca0fea1d699c553ba4736e
1,138
package com.spbsu.flamestream.runtime.config; import com.spbsu.flamestream.core.graph.HashGroup; import java.util.Map; public class ComputationProps { private final int maxElementsInGraph; private final boolean barrierIsDisabled; private final long defaultMinimalTime; private final Map<String, HashGroup> has...
23.708333
50
0.710896
9ca8abac0da3419305a59f95551f3a161f46be64
3,469
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.modules.fun.commands; import io.github.nucleuspowered.nucleus.modules.fun.FunPermissions; import io.github.nucleuspowered.nucl...
51.014706
130
0.763044
f74e3ae5c09a29e0f8b424d71fd71747d89948dd
1,128
package de.shogundb.authentication; import de.shogundb.domain.user.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userdetails.UserDetailsService; import org.springframework.securit...
41.777778
143
0.79078
df5ef5190cd6f3b67f2f794d24cb13f89c690c76
429
package com.roberto.cotaeasy.repository; import com.roberto.cotaeasy.domain.entities.Cotacao; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import java.util.LinkedList; @Repository public interface CotacaoRepository extends JpaRepository<Cotacao, Long...
30.642857
73
0.829837
4a229066533c9340d5a8ea2721765a39fcca27dd
3,045
package com.gamaset.sonicbot.collector.schedule; import java.time.LocalDate; import java.time.format.DateTimeFormatter; import java.util.Objects; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.scheduling.ann...
29.852941
140
0.732348
74c40b27c209652307483d966d4f0292d605e238
712
package org.slf4j.log4j12; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import java.util.Random; import org.apache.log4j.MDC; import org.apache.log4j.MDCFriend; import org.junit.Test; public class MDCFriendTest { private static Random random = new Random(); int di...
21.575758
50
0.641854