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
646ebbf3f913f47776262ee289ebcfa3b8319ed2
24,115
package com.github.jeffnelson.jackson.patch; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.patch; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import ...
43.139535
145
0.648849
219f29ccb44204803239ce9641f14a2bd9f016b3
10,007
package uk.co.terminological.rjava.plugin; import static org.twdata.maven.mojoexecutor.MojoExecutor.artifactId; import static org.twdata.maven.mojoexecutor.MojoExecutor.configuration; import static org.twdata.maven.mojoexecutor.MojoExecutor.element; import static org.twdata.maven.mojoexecutor.MojoExecutor.executeMojo; ...
34.506897
184
0.703308
fee8551d48ab95c0ab32692b133ddcd496772965
133
package com.wya.uikit.pickerview.WheelView.interfaces; /** */ public interface IPickerViewData { String getPickerViewText(); }
16.625
54
0.75188
817053a726977c6ff8bf7e6fe2cb6adc28d61395
1,278
/* * Copyright 2017 Observational Health Data Sciences and Informatics * 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 * * ...
31.170732
98
0.723787
997bd8a07b574568bbc8e0364c3c119a5e4537be
810
package org.edi.initialfantasy.service; import org.edi.freamwork.data.IResult; import org.edi.freamwork.data.Result; import org.edi.freamwork.exception.AuthrizationException; import org.glassfish.jersey.server.JSONP; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.Quer...
26.129032
78
0.749383
993f2dda1ef9fa9259131367a9e5fb8dcbdb4050
1,957
package k35_ch03; /** * 소프트웨어코딩_3강 - p21 실습 코드 실행해보기 * * # 수수료 포함 환전 계산(3) * * @author KOPO35 */ public class K35_ex11 { public static void main(String[] args) { int k35_myWon = 1000000; // 환전할 내 돈 double k35_moneyEx = 1238.21; // 미화 환율 double k35_commision = 0.003; // 환전 수수료 비율 double k3...
44.477273
127
0.562596
c35b297a9d0851fba973690bcb638747d9eacafb
1,872
/* * Copyright 2000-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...
29.714286
119
0.744124
31ee2570ef384aa13b1adfdb716e56db650d4f5c
1,294
/** * Copyright 2010-2011 Hannes Niederhausen, Topic Maps Lab * * 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 ...
29.409091
88
0.764297
cae5bd6fb95f55103d91a22ef1a646e6ed1ba1d8
63,006
/* * Copyright (c) 2010 Brigham Young University * * This file is part of the BYU RapidSmith Tools. * * BYU RapidSmith Tools is free software: you may redistribute it * and/or modify it under the terms of the GNU General Public License * as published by the Free Software Foundation, either version 2 of * t...
41.588119
160
0.489461
c1bbad3b59c41295b97a2b96e0b467c44bdd0655
6,023
package edu.berkeley.nlp.parser; import edu.berkeley.nlp.ling.Tree; import edu.berkeley.nlp.ling.Trees; import java.util.*; import java.io.PrintWriter; import java.io.StringReader; /** * Evaluates precision and recall for English Penn Treebank parse trees. NOTE: Unlike the standard evaluation, multiplicity over ea...
31.7
278
0.627594
4f6f1991924015355447d8e5a677a8af89c914fc
1,355
package leet; import static org.junit.Assert.assertSame; import org.junit.Test; public class MonotonicArray_896 { public static void main(String[] args) { // TODO Auto-generated method stub } public boolean isMonotonic(int[] A) { if( A.length == 0 || A.length == 1) return true; int i...
22.583333
46
0.556458
120cf732e61a98e596b1f858e4d1d8894d7a8fa8
624
package pagefactory.mobile.pages.main; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import ru.sbtqa.tag.pagefactory.mobile.MobilePage; import ru.sbtqa.tag.pagefactory.annotations.ElementTitle; import ru.sbtqa.tag.pagefactory.annotations.PageEntry; import ru.sbtqa.tag.pagefactory.ut...
29.714286
63
0.769231
718f1c3512b9ee7a22b7d0c653001faec84c24f9
850
import java.util.Scanner; public class Test { public static void main(String[] args) { Scanner in=new Scanner(System.in); Singlylist<String> numlist = new Singlylist<>(); numlist.addfirst("ali"); numlist.addlast("hell"); System.out.println("Size of list=" + numlist...
30.357143
64
0.552941
3b0d517d11f9365533fb0061e7b1bc3d654bf3ad
220
package First_Lab; /** * Created by ${* Osama Abo Adel *} on 1/19/2022. */ public class Exercise1 { public static void main(String[] args) { System.out.println("Hello Data Structure"); } }
20
52
0.590909
a8ce74d13dd7199404bda30dfd4688ce031338f8
17,024
/* * Copyright 2021 The RoboZonky Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ...
47.95493
115
0.682213
dc2002666a42dbb0cccba359f78ebae21013ce04
1,115
/******************************************************************************* * Copyright (c) 2000, 2006 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution...
38.448276
97
0.620628
0d2555a518ab54ab20b50810acd5d0944f12b362
454
package org.parchmentmc.feather.util; import org.checkerframework.checker.nullness.qual.NonNull; /** * Represents an object that can be converted into an immutable. * * @param <I> The type that implements this interface. */ public interface HasImmutable<I extends HasImmutable<I>> { /** * Creates an immu...
22.7
64
0.693833
9b83107f25658dd1ffb616a7e4db416ead491dfa
1,947
/* * Licensed to the University Corporation for Advanced Internet Development, * Inc. (UCAID) under one or more contributor license agreements. See the * NOTICE file distributed with this work for additional information regarding * copyright ownership. The UCAID licenses this file to You under the Apache * Lic...
36.055556
92
0.726246
7e4e4a09a244d3255cba2d2da5f797f9967a6781
2,158
/** * ESUP-Portail eCandidat - Copyright (c) 2016 ESUP-Portail consortium * * * 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 * ...
28.773333
76
0.741427
44fb141f79d12a39e98d32d18dd78ebe168ec574
1,041
package oneproblemeveryday; import java.util.HashSet; import java.util.Set; // leetcode 947 移除最多的同行或者同列石头 // 0 <= stones[i][j] < 10000 public class RemoveStones { private int[] fa = new int[20001]; Set<Integer> res = new HashSet<>(); public int removeStones(int[][] stones) { int len = stones.le...
18.263158
52
0.497598
62fae232dcb86e7b8238fb0be0d3106b7dc2a3e4
2,680
package com.softwear.webapp5.security; import java.security.SecureRandom; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.authentication...
42.539683
107
0.738433
60879e4e4de69eb459c650c354d2b8ee6a24fd32
659
package com.jt.web.util; import com.jt.web.pojo.User; /** * 在当前线程内部实现数据的共享. * 说明:在一个方法的执行,就是一个线程.从Controller-Service-Mapper-映射文件. * 使用ThreadLocal可以在任何地点,获取线程内的数据.这样的方式就是ThreadLocal实现数据共享. * @author Administrator * */ public class UserThreadLocal { /** * 1.初始化ThreadLocal对象 * ThreadLocal<T> ...
21.258065
71
0.698027
388d4702414efbfa4581101a7bb97cb3dece840c
1,502
package rxdemo.prescription.validation; import org.apache.commons.lang3.StringUtils; import rxdemo.prescription.Prescription; import java.util.List; public class RequiredRxFieldsValidationRule implements IRxValidationRule { @Override public RxValidationResult validateAgainstRule(Prescription rx) { RxVal...
34.930233
120
0.731025
fca942458023e06ec742039949a782cf15681d01
7,299
/* * Copyright 2017-2021 original authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
36.863636
137
0.70859
646a83dea980b2dda3f9e218b80b1d5b443e38ab
1,889
//CHECKSTYLE:OFF package hudson.plugins.tfs.rm; import java.util.HashMap; import java.util.Map; /** * @author Ankit Goyal */ public class ModifiedBy { private String id; private String displayName; private String uniqueName; private String url; private String imageUrl; private final Map<Str...
17.654206
91
0.557967
c70321437b8d441376910cdde2359c26aa90a002
2,577
/** * Copyright (C) 2013 HalZhang */ package com.halzhang.android.startupnews.data.entity; import java.io.Serializable; /** * StartupNews * <p> * 评论 * </p> * * @author <a href="http://weibo.com/halzhang">Hal</a> * @version Mar 7, 2013 */ public class SNComment implements Serializable { /** * ...
19.522727
95
0.612728
310ffe28896b27581e0c31337e34eeb594f65ed3
1,586
package com.foxinmy.weixin4j.qy.token; import com.alibaba.fastjson.JSONObject; import com.foxinmy.weixin4j.exception.WeixinException; import com.foxinmy.weixin4j.http.weixin.WeixinResponse; import com.foxinmy.weixin4j.model.Token; import com.foxinmy.weixin4j.qy.type.URLConsts; import com.foxinmy.weixin4j.token.TokenCr...
28.321429
140
0.730139
102ec2d72efae35f526c92994b2222309e3b690b
848
package io.digitalbits.sdk; /** * AccountRequiresMemoException is thrown when a transaction is trying to submit an operation to an * account which requires a memo. */ public class AccountRequiresMemoException extends Exception { private final String accountId; private final int operationIndex; /** ...
28.266667
99
0.705189
e227e21f4f17a033cfab0b2d0b4b151ae6d6eb2a
2,554
package Tetrahydrocannabinol.Excalibur.account; import Tetrahydrocannabinol.Excalibur.service.LocalAccountProvider; import com.google.common.base.Stopwatch; import org.ctoolkit.restapi.client.RestFacade; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Nonnull; import javax.in...
30.047059
103
0.616288
21b991b0866d0aef3056326c169f952ef81132a1
11,080
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ package im.actor.core.modules.contacts; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.HashSet; import java.util.List; ...
30.273224
131
0.516155
58bfe48416c307d1af9b0e26354765a1137113e2
1,294
/* * #%L * fujion * %% * Copyright (C) 2021 Fujion Framework * %% * 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 requ...
27.531915
82
0.688563
b775ecaf71a45617f41f8673ad5916ba081ef552
330
import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; class Exercise_5_9 { public static void main(String[] args) { List<Integer> list = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); System.out.println(list.stream().filter(e -> e % 2 == 0).collect(Collectors.toList()));...
25.384615
94
0.642424
1150598e1b9d7f4ec7a08af41c75a53c94320120
1,299
package net.minecraft.src; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; public class Packet5PlayerInventory extends Packet { public int entityID; public int slot; public int itemID; public int itemDamage; public Packet5PlayerInventory() { } ...
25.470588
75
0.632025
33cffc5cea29c0e07b02f564043f02f3410242d0
842
// Copyright © 2011-2012, Esko Luontola <www.orfjackal.net> // This software is released under the Apache License 2.0. // The license text is at http://www.apache.org/licenses/LICENSE-2.0 package fi.jumi.actors.listeners; /** * Gets notified about uncaught exceptions thrown by actors. * * @see PrintStreamFailureLo...
33.68
118
0.723278
2ea8b892fdb3b8c1e9edfd19820ead5d4c45650e
1,543
package test.com.bitdubai.fermat_cry_plugin.layer.crypto_router.incoming_crypto.developer.bitdubai.version_1.structure.IncomingCryptoMonitorAgent; import com.bitdubai.fermat_bch_api.layer.crypto_vault.bitcoin_vault.CryptoVaultManager; import com.bitdubai.fermat_cry_plugin.layer.crypto_router.incoming_crypto.developer....
37.634146
146
0.819183
193e0fa5425936d89219639abcd8f332e1b0c7e9
5,207
package l2f.gameserver.network.clientpackets; import l2f.commons.util.Rnd; import l2f.commons.configuration.Config; import l2f.gameserver.data.xml.holder.ItemHolder; import l2f.gameserver.data.xml.holder.RecipeHolder; import l2f.gameserver.model.Player; import l2f.gameserver.model.Recipe; import l2f.gameserver.model.R...
30.629412
173
0.730363
c654955758776f57ff91688d5e7a58bb8665d15f
2,585
// Generated from graphql_java_gen gem with template Tuery.java.erb package com.contentbig.kgdatalake.graphql.generated; import com.shopify.graphql.support.Arguments; import com.shopify.graphql.support.Tuery; /** * */ public class AddFollowerRolePayloadTuery extends Tuery<AddFollowerRolePayloadTuery> { AddFoll...
25.097087
132
0.579497
58b7a7dbb8aa9066b25737faafbe9d812904b929
3,877
package jp.ikota.drive.ui.basicimagelist; import android.app.Activity; import android.content.Intent; import android.support.test.runner.AndroidJUnit4; import com.google.gson.Gson; import org.junit.Test; import org.junit.runner.RunWith; import java.util.HashMap; import jp.ikota.cappuchino.Cappuchino; import jp.iko...
35.898148
114
0.632706
57e3d65d07b98a5c2b69bcd85da15cafa2772025
1,444
package com.lt.commonutils.http; import java.util.HashMap; import java.util.Map; public class ResponseUtil { /** * 返回method */ public static Map<String, Object> getRespMap(Integer resCode, String message, RequestHead header, Object obj) { // header ResponseHead respHead = new Respon...
28.88
115
0.610803
0130b5a328f15be49d98de4938df6ca6827b71b8
6,199
/** * Copyright (C) 2019-2020 Expedia, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or ag...
45.580882
172
0.677206
67a2cd199dd886f33dc7c325cbe4c2b1b3f52992
3,499
package zielu.gittoolbox.tag; import com.google.common.base.Preconditions; import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.progress.ProgressIndicator; import com.intellij.openapi.project.Project; import git4idea.GitUtil; import git4idea.commands.Git; import git4idea.commands.GitComma...
38.877778
115
0.751643
1e576639ec860dfaf02f22dbf30a1ddd4ea46b40
9,370
/* * Copyright (c) 2008-2016 Haulmont. * * 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 agr...
37.330677
227
0.560939
133dd9874ad6fe367f86bcd3f520ceab0866efe3
818
package com.altarosprojects.seriesanimes.utils; public class CardSeries { private String title; private String description; private String serieImage; private int votes; private boolean isSaved; public CardSeries(String title, String description, String serieImage, int votes, boolean isSaved){...
20.974359
103
0.634474
066516240dbfdfa548231f7f57dfce4962e42a28
2,212
/* * Copyright (c) Juergen Melzer * * 2013. */ package com.jmelzer.myttr.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; import com.jmelzer.myttr.Constants; import java.util.ArrayList; import java.util.Li...
30.722222
133
0.672242
aa8253922f767aecbd2773006d96b62c94c23730
185
public class HelloJava { public static void main(String[] args) { System.out.println("Hello World - Java"); System.out.println("DevLec JavaCampus"); } }
20.555556
51
0.605405
8ab40c699f1bbe7196828821053b2c047d6c105c
4,115
/* * Copyright (c) 2015 Spotify AB. * * 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,...
39.567308
95
0.671446
1a20a9309ac9306ad361e6ddbf8a52d8d2b96345
868
package sample; import static org.hamcrest.CoreMatchers.*; import static org.junit.Assert.*; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.Application; import org.glassfish.jersey.server.ResourceConfig; import org.glassfish.jersey.test.JerseyTest; import org.j...
21.7
69
0.654378
91e79aa970b44d16b1260dd26393230631a05fcd
2,483
package org.whitesource.agent; import org.junit.Assert; import org.junit.Test; import org.whitesource.agent.dependency.resolver.npm.TestHelper; import org.whitesource.fs.CommandLineArgs; import org.whitesource.fs.ComponentScan; import java.io.File; import java.nio.file.Paths; import java.util.ArrayList; import java.u...
42.810345
140
0.605316
f030ca1409edc87f0930fb3af48f08168f950804
1,065
package org.neptuneclub.abilities.service.sub; import me.yushust.inject.InjectAll; import org.bukkit.Bukkit; import org.bukkit.event.Listener; import org.neptuneclub.abilities.Abilities; import org.neptuneclub.abilities.api.service.IService; import org.neptuneclub.abilities.listener.JoinPlayerEvent; import java.util....
25.97561
62
0.638498
386839e6a5da614b3a4ce09c389c9f4479384d57
1,238
package edu.towson.cis.cosc603.project2.monopoly; // TODO: Auto-generated Javadoc /** * The Class MoneyCard. */ public class MoneyCard extends Card { /** The amount. */ private int amount; /** The card type. */ private int cardType; /** The label. */ private String label; ...
23.358491
72
0.605816
22b7786a86dd6e8d70b7a171492be6427f19031c
2,394
package net.azagwen.accessible_dev_blocks.option; import net.azagwen.accessible_dev_blocks.option.AdbGameOptions; import net.azagwen.accessible_dev_blocks.option.AdbOption; import net.azagwen.accessible_dev_blocks.screen.widget.AdbOptionButtonWidget; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment...
35.731343
150
0.726399
827e6fbf4ce197f230b128028662184e6a5b8d3a
2,522
// // ======================================================================== // Copyright (c) 1995-2016 Mort Bay Consulting Pty. Ltd. // ------------------------------------------------------------------------ // All rights reserved. This program and the accompanying materials // are made available under the ter...
36.550725
100
0.573751
d78f3398608eb2302055627c5d4763f2bac002f9
1,549
package cc.ssnoodles.util; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; import java.util.Properties; /** * Filename: ProUtil * Description: 配置工具 * Copyright: Copyright (c)2016 * * @author: ssnoodles * @version: 1.0 Create at: 2017-01-05 22:56 * <p/...
24.587302
90
0.551969
b7ea5159d9d647b0b9d084d54e897448aa90026d
758
package uk.ac.ucl.excites.sapelli.shared.io.text; import java.io.IOException; import static uk.ac.ucl.excites.sapelli.shared.io.text.CharsetHelpers.CMMBPC_PROPERTIES_FILE_NAME; import static uk.ac.ucl.excites.sapelli.shared.io.text.CharsetHelpers.PROPERTIES_FILE_EXTENSION; /** * @author mstevens */ public class Ge...
30.32
140
0.717678
5ab565cbce3d83351c9d46b895ea0094cfc605ad
1,229
package com.elex.oa.controller.project; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.elex.oa.entity.Project; import com.elex.oa.entity.project.ProjectAmend; import com.elex.oa.entity.project.ProjectInfor; import com.elex.oa.service.project.ProjectInforService; import com.elex.oa...
32.342105
93
0.781937
79853f3f9b7e22360aee3d2c5642174ea4a612b8
121
public class NBTTagCompound$1 { // Failed to decompile, took too long to decompile: net/minecraft/nbt/NBTTagCompound$1 }
40.333333
87
0.785124
bc397433c0c689e2e9074fbf7a3ee693c065ac9e
802
package algs.coding_jam; /** * todo implement * @author Serj Sintsov */ public class IsPrime { public static boolean bruteIsPrime(int p) { if (p <= 1) return false; for (int i = 2; i < p/2; i++) if (p % i == 0) return false; return true; } ...
18.227273
66
0.372818
429b5540f57ddf8712ffcf9eb49fa8f515fefa0b
33,393
import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("jn") @Implements("ServerPacket") public class ServerPacket { @ObfuscatedName("c") @Ob...
32.263768
402
0.683766
35ed9eff4f39d9776b4428e8d01cd6e1d2a92370
262
package LifeExpectancyPkj; import processing.core.PApplet; public class TestMain { public static void main(String[] args) { // to open as Applicaiton of processing not Applet PApplet.main(new String[]{"LifeExpectancyPkj.LifeExpectancyMap"}); } }
20.153846
70
0.740458
55d5ce563fda558e9dec492d41e74564274609c5
1,194
package nl.m4jit.tradetoday.domainlogic.nhcjobs; import nl.m4jit.framework.ValidationException; import nl.m4jit.tradetoday.dataaccess.nhcjobs.*; public class NHCJobTypeModule { private final NHCJobTypeTable table; private static NHCJobTypeModule instance; private NHCJobTypeModule(){ ta...
22.528302
61
0.556114
ad72e88919684d1ef947e4aca2443a988c53bfac
2,444
package behavioural.memento; import java.util.ArrayDeque; import java.util.Deque; public class Exercise { public static void main(String[] args) { Document document = new Document(); HistoryDocument history = new HistoryDocument(); document.setContent("Hello"); history.push(documen...
26.857143
73
0.607201
a2c0ab72baa236c6885ae8a175ba693dd032f9b7
82
package com.apollo.factory; public class ConcreteProduct1 implements Product { }
16.4
50
0.817073
9e151ec2dab39f50ef031c278f667b92834d4288
2,531
package net.gminerz.gmos.menu.manager; import net.gminerz.gmos.account.Account; import net.gminerz.gmos.account.AccountManager; import net.gminerz.gmos.main.GMOS; import net.gminerz.gmos.menu.Menu; import net.gminerz.gmos.menu.PageElement; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import org.bukkit.ev...
32.87013
98
0.64599
ad28a31447a6b01aaef842e4b2e2c40a57aaee43
16,807
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/...
49.432353
123
0.734158
270f005d0ae3ed2f21363b7a9717d4ffd537774d
704
package org.antlr.intellij.plugin.psi; import com.intellij.lang.ASTNode; import com.intellij.psi.util.PsiTreeUtil; import org.antlr.intellij.plugin.ANTLRv4TokenType; import org.antlr.intellij.plugin.parser.ANTLRv4TokenTypes; import org.jetbrains.annotations.NotNull; public class ParserRuleSpecNode extends RuleSpecNod...
24.275862
87
0.78125
248815568d4b424e03130a546f6537e097829b44
5,137
package west.unikoblenz.beseppi.resultformats; import org.json.simple.JSONArray; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; impo...
34.47651
75
0.723769
78b4ec128b0ab863d0060aff60c4726061c48538
704
package com.yf.exam.modules.exam.service; import com.baomidou.mybatisplus.extension.service.IService; import com.yf.exam.modules.exam.dto.ext.ExamRepoExtDTO; import com.yf.exam.modules.exam.entity.ExamRepo; import java.util.List; /** * <p> * 考试题库业务类 * </p> * * @author 聪明笨狗 * @since 2020-09-05 11:14 */ public interfa...
17.170732
61
0.639205
959835a1cf63081bab434e052a2e281db04cb488
1,480
package io.yodo.pragphil.web; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.format.FormatterRegistry; import org.springframework.web.servlet.confi...
36.097561
89
0.791892
414097f87e75eb48bbd312b3fd42910388ac2ff6
9,306
/* * Copyright 2018 B2i Healthcare Pte Ltd, http://b2i.sg * * 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 ...
41.36
177
0.764668
baf4a9f1e9cc1edafe9d1622142d0105070aa4e2
26,229
package cal.bkup.impls; import cal.bkup.Util; import cal.bkup.types.BackupReport; import cal.bkup.types.IndexFormat; import cal.bkup.types.Sha256AndSize; import cal.bkup.types.StorageCostModel; import cal.bkup.types.SystemId; import cal.prim.MalformedDataException; import cal.prim.NoValue; import cal.prim.Pair; import...
38.857778
268
0.657059
cee091748b70cbecad6a36491bf7b499df71bf96
1,629
package org.vromero.gist.mojo; import junit.framework.Assert; import org.apache.maven.plugin.MojoExecutionException; import org.junit.Before; import org.junit.Test; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.vromero.gist.snippet.SnippetExtractor; import o...
26.704918
79
0.718846
07d73e90313b2639d50418c90f543ba27d1f2358
2,532
/* * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for * additional information regarding copyright ownership. * * The Apereo Foundation licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may...
29.788235
88
0.725118
ce28260c9f8ad0cb3d91640e3a2e610179ea059b
344
package org.bc.asn1.x509.qualified; import org.bc.asn1.ASN1ObjectIdentifier; public interface RFC3739QCObjectIdentifiers { ASN1ObjectIdentifier id_qcs = new ASN1ObjectIdentifier("1.3.6.1.5.5.7.11"); ASN1ObjectIdentifier id_qcs_pkixQCSyntax_v1 = id_qcs.branch("1"); ASN1ObjectIdentifier id_qcs_pkixQCSyntax_v2 ...
34.4
78
0.793605
51c506eea186da79134e4b86804fb927dbd24e44
940
package cn.openadr.domain; import cn.openadr.jackson.EnumeratedDeserializer; /** * 读数类型 */ public enum ReadingType implements EnumeratedType { /** * 示值 */ DIRECT_READ("Direct_Read"), /** * 净值 */ NET("Net"), /** * 分配 */ ALLOCATED("Allocated"), /** * 估计 */ ESTIMATED("Estimated"), /** * 合计 ...
11.898734
79
0.571277
bccefc2c0a2e55761f968025b0323eb8f11b8c86
5,481
package com.onnoa.security.jwt.login.config.security; import com.onnoa.security.jwt.login.config.security.service.UserDetailsServiceImpl; import com.onnoa.security.jwt.login.service.UmsAdminService; import com.onnoa.security.jwt.login.service.UmsPermissionService; import org.springframework.beans.factory.annotation.Au...
39.717391
125
0.706988
3024b84287b4dbb12c0d4c34ac3667e3df4d1ece
4,553
package com.rrkj.flour.utils.common; import java.io.UnsupportedEncodingException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.SecureRandom; import java.security.spec.InvalidKeySpecException; import javax.crypto.BadPaddingException; import javax.crypto....
24.610811
105
0.671865
30ca1ca577d8efe30dceaa914fc06b896f38d8cf
753
/*=====================================================*/ /* Project Title: Legends: Heroes and Monster */ /* Course Name: GRS CS611 */ /* Semester: Spring '21 */ /* Project Author: Victor Vicente */ /*============================...
27.888889
78
0.463479
7c7cb3d9e9c7b5f531e3af4aa69cc90084f5e647
70
package com.dimdol.example; public enum T { XZY_USER; }
8.75
28
0.6
0d567c09cbbd3b3b687d692c15152da7713fbfdd
3,304
package com.intellij.jira.ui.dialog; import com.intellij.jira.settings.ChangelistSettings; import com.intellij.jira.settings.ChangelistState; import com.intellij.jira.settings.editor.ChangelistSettingsEditor; import com.intellij.jira.settings.editor.CustomChangelistSettingsEditor; import com.intellij.jira.settings.edi...
37.977011
93
0.714891
9fea74b6cb7a2ffc364b802a94ee551e2f1aca67
1,064
package de.melsicon.kafka.sensors.type.avro.logicaltypes; import java.time.Instant; public final class InstantMicroHelper { private static final long MICROS_PER_SECOND = 1_000_000L; private static final long NANOS_PER_MICROS = 1_000L; private InstantMicroHelper() {} public static Instant micros2Instant(long...
31.294118
80
0.736842
b821662b0a7fb74094f51302c844530715198a27
3,625
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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...
29
98
0.669241
acc128a613e7675fc89a6cd63ea449910f91d2d5
1,393
/* * Copyright (c) terms as published in http://waffle.codehaus.org/license.html */ package org.codehaus.waffle.validation; /** * ErrorMessage associated to field validations. * * @author Mauro Talevi */ public class FieldErrorMessage extends AbstractErrorMessage { private String name; ...
23.216667
91
0.580761
0b69c2c480465affaf62542420f7860b9616c3f6
900
package com.rainbowluigi.soulmagic.util; import com.rainbowluigi.soulmagic.soultype.ModSoulTypes; import com.rainbowluigi.soulmagic.soultype.SoulType; import net.minecraft.item.ItemStack; import net.minecraft.nbt.CompoundTag; public class SoulQuiverHelper { public static SoulType getSoulType(ItemStack stack) { /...
29.032258
72
0.74
51ac6465da52ff5ede06e31e53ac959173d21a9f
648
package com.tom.util; import net.minecraft.item.ItemStack; public class ItemStackComparator { private final ItemStack is; public ItemStackComparator(ItemStack is) { this.is = is; } @Override public boolean equals(Object other) { if (other != null) { if (other instanceof ItemStack) { ItemStack r = (I...
25.92
86
0.723765
10a8a6487b81bac7c1632c0d048811cafcc0f252
1,470
package com.tsuiraku.hospmanage.model; import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; /** * <p> * Schedule * </p> * * @author qy */ @Data @Api...
21.617647
54
0.743537
522713ddc7d9f3128c4bbb1274b08af1529823d7
6,226
package vn.uiza.core.utilities; import android.app.Activity; import android.content.ContentUris; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import vn.uiza.R; import vn.uiza.core.common.Constants; import vn.uiza.core.exception.UZExce...
41.231788
141
0.665114
f4995af6d5a3a4a0b771f2a3bd4387b3d7a6ee54
10,837
package com.ngsky.tools.expandjpa; import com.ngsky.tools.exception.ForbiddenException; import com.ngsky.tools.exception.ParamErrorException; import com.ngsky.tools.parameter.Operator; import com.ngsky.tools.parameter.Predicate; import org.apache.commons.lang3.StringUtils; import org.hibernate.query.internal.NativeQue...
36.860544
142
0.637354
942ef8dc69b0ad1ab63ce8b8577e294fdd1b412b
6,880
/* * Copyright (c) 2008-2018, 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 ...
37.595628
114
0.670349
b6ae902d2ffa33490ce7b93aa4551737842796d5
3,890
/* * Copyright 2015 recommenders.net. * * 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 agr...
38.514851
144
0.60874
2e3693a577a7194c83eeeccfa4d2c3f75e65624b
1,722
package com.zhang.nong.doctor.activity; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ImageButton; import android.widget.ImageView; import android.widget.TextView; import com.zhang.nong.R; import com.zhang.nong.doctor.com.java.beans.User; public class DemandManActiv...
28.7
89
0.692799
cf922460fe0268844784b533584fc4c43b1b4eb0
3,176
package com.gmail.maxsvynarchuk.persistence.connection; import com.gmail.maxsvynarchuk.persistence.transaction.Transaction; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.sql.DataSource; import java.io.PrintWriter; import java.sql.Connection; import java.sql.SQLException; import java.sql.SQLFea...
32.080808
94
0.710957
08adab01eff44cdd14c5826e62e7d5b70edd80e7
8,236
/********************************************************************************** * $URL: $ * $Id: $ *********************************************************************************** * * Copyright (c) 2006, 2007, 2008 The Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (th...
36.604444
124
0.715153
604274e63fad6c72110f00db6735676b0fb22509
215
package de.upb.s2cx.event; public class OptionalOmitEvent implements IBufferedEvent { public OptionalOmitEvent() { super(); } @Override public void fire(IEventHandler exec) { exec.onOptionalOmit(); } }
14.333333
58
0.734884
79c1e977109667bb6277e72241228a870a5b2040
731
package com.aware.phone.ui.qrcode; import com.google.android.gms.vision.MultiProcessor; import com.google.android.gms.vision.Tracker; import com.google.android.gms.vision.barcode.Barcode; /** * Created by denzil on 27/10/15. */ public class BarcodeTrackerFactory implements MultiProcessor.Factory<Barcode> { publ...
31.782609
88
0.770178
2d3f002e7d2a3db5b81fcd255ded5e9215b3aefb
700
package ru.sort; import org.junit.Test; import ru.job4j.sort.User; import ru.job4j.sort.SortUser; import java.util.*; import static org.hamcrest.Matchers.*; import static org.junit.Assert.assertThat; public class SortUserTest { @Test public void whenUsersSortedByAgeInAscendingOrder() { SortUser sortUs...
29.166667
91
0.68
412377c5c6559f2d41c7b352ea4be4dea876c43e
526
package com.github.dadiyang.httpinvoker.util; /** * @author dadiyang * @since 2019-06-12 */ public class ObjectUtils { private ObjectUtils() { throw new UnsupportedOperationException("utils should not be initialized!"); } public static boolean equals(Object a, Object b) { return (a == b...
23.909091
84
0.619772
fb040acde387a536efa1b7a0b1f6f6146d73062c
905
package seedu.address.logic.commands; import seedu.address.model.Model; import seedu.address.model.filter.TaskPredicate; /** * Lists all tasks that matches a certain {@link TaskPredicate} */ public class ListCommand implements Command { private static final String MSG_LIST_ALL = "Listing all tasks."; priva...
31.206897
126
0.691713
3ee6f7af6c55a5fa54caba6214b6ee78d3d435e0
2,414
package com.thesis.inesc; import com.google.gson.Gson; import com.thesis.inesc.Utilities.FilesUtilities; import com.thesis.inesc.kademliadht.dht.KadContent; import com.thesis.inesc.kademliadht.node.KademliaId; /** * * @author Marcelo Silva * @created 03/03/2020 */ public class DHTAdapted implements K...
20.457627
77
0.577465
8fba271b30ae3788c1f83b27f65081e7786dfd5a
1,019
package com.example.orderservice.dto.response; import java.time.Instant; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.List; import com.example.orderservice.dto.Card; import com.example.orderservice.entity.OrderItem; import com.example.orderservice.entity.OrderShippingAddress; import l...
26.128205
60
0.795878
51dcd73bc7011760c566cae7ef7dbc965a687ad0
2,085
package cn.cuilan.base.cache.interceptor; import cn.cuilan.base.cache.Caches; import cn.cuilan.base.cache.LocalCache; import cn.cuilan.base.cache.core.CacheGetContext; import cn.cuilan.base.cache.core.CacheInterceptor; import cn.cuilan.base.cache.event.CacheEventEnum; import cn.cuilan.base.cache.utils.CollectionUtils;...
34.180328
119
0.6494