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
521f6def5ee7b98916cdd4a6991f62920f21c74e
319
package com.multi.thread.chapter6.section1.example1; /** * @Description * @Author dongzonglei * @Date 2018/12/23 上午10:45 */ public class MyObject { private static MyObject myObject = new MyObject(); private MyObject() { } public static MyObject getInstance() { return myObject; } }
15.95
54
0.658307
aa95e908245dc40960b653898b50684df685db52
4,679
package com.whoyao.venue; import java.io.File; import java.util.ArrayList; import org.taptwo.widget.CircleFlowIndicator; import org.taptwo.widget.ViewFlow; import com.whoyao.AppContext; import com.whoyao.R; import com.whoyao.activity.BasicActivity; import com.whoyao.model.EventPhotoModel; import com.whoyao.venue.engi...
35.180451
108
0.743108
6867e312b49033c9cf6ea51f84ebf7015bba026c
6,603
package com.fijosilo.ecommerce.authentication; import com.fijosilo.ecommerce.KeyValueMap; import org.junit.jupiter.api.*; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.web.client.TestRestTemplate; import org....
39.777108
115
0.6806
272b749700e144ba2f30658516d9ac80a833d387
3,647
package org.usfirst.frc.team3499.robot; /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility changing wiring, makes checking * the wiring easier and significantly reduces the number of magic numbers * floating around. */ public class Ro...
30.647059
80
0.656978
75ea5dd1c43eb346b7fd0a19e6203e9e08dfbea0
973
package algorithms.cutthesticks; import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; class Solution { public static void main(String[] args) { List<Integer> sticks = readInput(); while (sticks.size() > 0) { System.out.println(sticks.size()...
24.325
74
0.656732
57bbd632540bb56c170856c41b2259c2225b667c
379
package io.quarkus.rest.client.reactive.error.clientexceptionmapper; import java.util.concurrent.atomic.AtomicInteger; public class DummyException2 extends RuntimeException { static final AtomicInteger executionCount = new AtomicInteger(0); public DummyException2() { executionCount.incrementAndGet()...
27.071429
69
0.76781
f7e56bf36ecab31d23206a573b7e93eccb3e96f2
162
package com.github.osphuhula.gitrepositorygenerator.beans; public interface Team { String getOrganization(); String getName(); String getDescription(); }
13.5
58
0.771605
99b55f300f64231c2d3e2b6125ddfadebab054d1
901
package org.deletethis.hardcode.objects; import java.util.Collection; public interface NodeDefinition { Class<?> getType(); CodeGenerator getConstructionStrategy(); Collection<NodeParameter> getParameters(); /** * Returns list of checked exceptions constructor can throw. Statement will be wrappe...
32.178571
117
0.691454
dea28409ac0afef2f630b6e0be0a255b6b4deed2
8,565
/* * Fixture Monkey * * Copyright (c) 2021-present NAVER Corp. * * 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 requir...
29.332192
103
0.695038
4c6ce8404ac0104a65d428a49ca7b761233e676b
1,980
package com.yuxie.demo; import lombok.Data; /** * @author by 心涯 * @package com.yuxie.demo * @classname RequestLimiter * @description 请求限流器,限制某个时间区间内允许的最大请求数 * @date 2019/12/3 10:33 */ @Data public class RequestLimiter { /** * 节点 用于维护链表 */ @Data static class Node { /** * 时...
21.290323
73
0.518182
97bd26ba6cfb795b8959740b50807a8969699551
4,655
/* * Copyright 2006-2009, 2017, 2020 United States Government, as represented by the * Administrator of the National Aeronautics and Space Administration. * All rights reserved. * * The NASA World Wind Java (WWJ) platform is licensed under the Apache License, * Version 2.0 (the "License"); you may not use this f...
33.25
120
0.686574
9671ecb6135498e4fa45559451512d16b6624881
236
package fr.jeudelavie.controleur; import fr.jeudelavie.vue.FenetrePrincipale; public class Lanceur { /** * @param args */ public static void main(final String[] args) { FenetrePrincipale.getInstance().nouvellePartie(); } }
15.733333
51
0.724576
60573d0b3781725e4a3ac88cf8797cab0441653a
3,835
package org.riverframework.wrapper.org.openntf.domino; import org.openntf.domino.Base; import org.openntf.domino.ViewColumn; import org.riverframework.River; import org.riverframework.wrapper.Document; import org.riverframework.wrapper.DocumentIterator; import org.riverframework.wrapper.View; class DefaultView extend...
30.19685
149
0.74837
eba64e1306881e41f118ddd5afb88441ff3df943
1,333
package gov.tubitak.xoola.core; import gov.tubitak.xoola.transport.Invocation; import java.util.Properties; import gov.tubitak.xoola.exception.XCommunicationException; import gov.tubitak.xoola.tcpcom.connmanager.client.NettyClient; import gov.tubitak.xoola.transport.Invocation; import gov.tubitak.xoola.util.ObjectUtil...
26.66
99
0.754689
44f23d7aa05e3a2b9749d38626eda2b20cc0b568
1,326
package io.github.jiezhi.lc; import java.util.List; import java.util.stream.Collectors; /** * CREATED AT: 2022/3/7 * <p> * PROJECT: LCOF-Java * <p> * https://github.com/Jiezhi/LCOF-Java * <p> * Difficulty: * <p> * SEE: * <p> * DES: * <p> */ public class LC2193 { /** * 执行用时:22 ms, 在所有 Java 提交中击败了...
22.1
94
0.463801
aeefedc97c766525b03127360308a8d81c211713
12,926
/* * Copyright (C) 2015 Baidu, Inc. All Rights Reserved. */ package online.himakeit.baidumapdemo; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Color; import android.os...
41.034921
136
0.660761
2cf5248cd058536e24d094352541b81b1821dff9
143
package me.vmamakers.practice; public class VeggiePizza implements Pizza { @Override public String getType() { return "Veggie"; } }
13
43
0.713287
3e8077ab1a213fa82588dc42075b1ad30adf0400
573
package com.faxi.cloudmall.coupon.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.faxi.cloudmall.coupon.entity.SeckillSkuNotice; import com.faxi.cloudmall.coupon.mapper.SeckillSkuNoticeMapper; import com.faxi.cloudmall.coupon.service.SeckillSkuNoticeService; import org.spri...
30.157895
139
0.827225
3e35898a08282eb3991e960a172bb9ccf3793269
25,626
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ package com.microsoft.azure.management.sql.implementation; import com.microsoft.azure.management.apigeneration.LangDefinition; import com.microsoft.azu...
38.70997
186
0.694061
7fb18f48f5fd7abc978a43834a71c2fa4bd4335e
4,485
package com.bct.gpstracker.pojo; import java.io.Serializable; import android.content.Context; import org.json.JSONArray; import org.json.JSONObject; import com.bct.gpstracker.common.CommonRestPath; import com.bct.gpstracker.inter.BctClientCallback; import com.bct.gpstracker.util.BctClient; import com.bct.gpstracker...
25.628571
137
0.589075
57aeca5355397f5e74c4f4490bd230c1eb0c321d
997
package js.converter; import js.lang.BugError; /** * Character values converter. * * @author Iulian Rotaru * @version final */ @SuppressWarnings("unchecked") final class CharactersConverter implements Converter { /** Package default constructor. */ CharactersConverter() { } /** * Return ...
26.236842
95
0.689067
6bc47563c6543ccf354940ccf2d4b5bd7665461e
2,679
/* * 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 ma...
37.208333
96
0.637925
a36ebcde57594f644713a2480148bd3f047c14cc
4,834
package com.kakao.adt.test.worker; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicBoolean; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.kakao....
33.569444
145
0.544683
aca47c7fd518237232652b6427fc1a6199bfbda5
815
package net; import cc.novoline.utils.Timer; public class alj { private static int b; public static void a(Timer var0) { var0.reset(); } public static double b(Timer var0) { return var0.getLastDelay(); } public static boolean a(Timer var0, double var1) { return var0.delay(var1);...
15.673077
53
0.561963
9419312b7cdeeb1dfd36916cd2531756fab16c26
1,104
package mage.cards.m; import java.util.UUID; import mage.MageInt; import mage.abilities.keyword.FlyingAbility; import mage.abilities.keyword.HasteAbility; import mage.abilities.keyword.VigilanceAbility; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Su...
24.533333
77
0.682065
67a654f5f85e42fe216041d8a91b2da3bb0fa249
5,124
/* * Copyright 2020 Red Hat, Inc. and/or its affiliates. * * 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...
45.345133
138
0.695355
6d693fce3a1b694deebb95061869cf3d898edc09
192
package com.palscash.wallet.database.common.exception; @SuppressWarnings("serial") public class WalletException extends Exception { public WalletException(String msg) { super(msg); } }
17.454545
54
0.776042
9e1909e0566e07667c9987345c6696f572d7f968
5,744
/* * BSD 2-Clause License * * Copyright (c) 2020,2022, Vladimír Ulman * All rights reserved. * * 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...
43.18797
109
0.705084
14ed5de16363dac2794d5815ad48d7a1c244fb87
3,447
package com.xmobileapp.cammonitor.core; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.net.URLConnection; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; i...
26.72093
95
0.696258
8357ada197bfae466d145717d133b6f7cc223943
1,144
package com.evangel.redis; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import redis.clients.jedis.ShardedJedis; import redis.clients.jedis.ShardedJedisPool; @Repository("redisDataSource") pub...
27.238095
72
0.787587
408c337405034316abf7b5b58c8eee25454af589
4,426
package de.geeksfactory.opacclient.apis; import org.json.JSONException; import org.json.JSONObject; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import java.util.ArrayList; import java.util.Collection; import java.util.List; import de.geeksfactory.opacclient.network...
37.508475
100
0.639629
0122af5d479b407f1f2b04dc53f2de8db872854d
1,294
/* * Derived from Example/Tutorial Play-Rest-Security * (https://github.com/jamesward/play-rest-security) * by James Ward */ package controllers.security; import models.User; import play.mvc.Http; import play.mvc.Http.Context; import play.mvc.Result; import play.mvc.Security; import views.html.index; import views.h...
29.409091
103
0.659969
3d75ba893dcd4c68e1bb458bb7d148bd3ff9fa8c
359
package com.cqx.uboost; import org.springframework.context.annotation.Configuration; /** * @desc: * @version: 1.0.0 * @author: cqx * @Date: 2019/9/8 */ @Configuration //@ConditionalOnClass(Feign.class) //@EnableConfigurationProperties({ FeignClientProperties.class, // FeignHttpClientProperties.class }) pu...
21.117647
63
0.740947
b3d494c971ad6eab4e40d5cdcd8f8efbbde7cb2c
1,621
package myapp.lenovo.viewpager.dialog; import android.app.Dialog; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import myapp.lenovo.viewpager.R; /** * Created by Lenovo on 20...
27.948276
70
0.726712
c2762dcdf8dd9128909801462ee5eec427b6e1d2
870
package com.github.privacystreams.commons.time; import com.github.privacystreams.commons.ItemFunction; import com.github.privacystreams.core.Item; import com.github.privacystreams.core.UQI; import com.github.privacystreams.utils.Assertions; /** * Created by yuanchun on 28/12/2016. * Process the location field in an...
30
83
0.752874
c4d8917c3143aed4a7266345ecdd8f724662a256
754
package org.observertc.observer.sources; import jakarta.inject.Inject; import jakarta.inject.Singleton; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; @Singleton public class SampleSources { private static final Logger logger = ...
24.322581
132
0.748011
bbaf2744d96dc6ad00a9222d50c7839450081c9c
1,297
package goplaces.models; /** * This object is used as an exchange message between SelectWaypointsResource the background task boxrouteworker. */ import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annota...
21.616667
113
0.748651
78bce8479507d76ed9402f42a83c9b0bc4d90481
2,114
package com.xiaoliu.learn.client; import com.xiaoliu.learn.entity.User; import com.xiaoliu.learn.service.UserServiceApi; import feign.hystrix.FallbackFactory; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.stereotype.Component; import java.util.ArrayList; import java.util.Date; imp...
29.774648
113
0.59035
933c17324240c0e62a5407f062d53c38387ef34e
887
// Java implementation of simple // algorithm to find smaller // element on left side import java.io.*; class GFG { // Prints smaller elements on // left side of every element static void printPrevSmaller( int []arr, int n) { // Always print empty or '_' // for first element System.out.print( "_, " )...
7.270492
40
0.553551
98f3c66fc35cfcee6c96ff3f2cf29bd892e62093
3,090
package com.huanmedia.videochat.common.service.socket; import android.util.Log; import com.google.gson.Gson; import com.huanmedia.ilibray.utils.GsonUtils; import com.orhanobut.logger.Logger; import org.java_websocket.client.WebSocketClient; import org.java_websocket.drafts.Draft; import org.java_websocket.handshake....
27.837838
114
0.6411
b5fc9b174cbb19973fd28e221e01c6ec32edf54d
4,367
/* * (C) Copyright 2011 Nuxeo SA (http://nuxeo.com/) and others. * * 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 require...
35.217742
115
0.634532
d03b00bcfc85a9821b983f5dea75a47604c399d2
4,040
/* * Copyright (C) 2019 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...
34.827586
98
0.699257
c3a6418e93c2215dcd7bebd67c74bbd09498e049
13,380
package org.cowjumping.guiUtils; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.cowjumping.FitsUtils.ImageContainer; import org.cowjumping.FitsUtils.odiCentroidSupport; import javax.swing.*; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.Mous...
24.505495
88
0.676682
ff12b07636aea8eaf5965fbc100a9cfb0de28326
6,690
package hu.akarnokd.reactive; import java.util.concurrent.*; import java.util.concurrent.atomic.*; import hu.akarnokd.reactive4java.util.Functions; import io.reactivex.disposables.*; import io.reactivex.internal.util.OpenHashSet; import rx.internal.util.RxThreadFactory; public final class SingleResourceScheduler ext...
27.759336
103
0.456951
cd5affa36d69f4ef1636198a1eeb5b252148d050
2,385
package com.aiit.byh.service.common.utils.compress; import com.github.junrar.Archive; import com.github.junrar.exception.RarException; import com.github.junrar.rarfile.FileHeader; import org.apache.commons.lang3.StringUtils; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import ...
31.8
117
0.543396
a247fa099682bb8d4e39e28aa04f2ba2e63f90f8
693
package ai.datagym.application.labelIteration.models.viewModels.geometry; public class PointPojoViewModel { private String id; private Double x; private Double y; public PointPojoViewModel() { } public PointPojoViewModel(String id, Double x, Double y) { this.id = id; this.x = ...
16.902439
73
0.55267
a71f7a1a744cf96fbbb5429756c11f1008d731d1
33,534
/* * 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 * distribut...
36.569248
132
0.572404
abbd8b5aad14e9a26d8d37e169f5cfaf618bc021
3,431
package uk.co.omegaprime.mdbi; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.function.*; /** * A convenience wrapper around the {@link Reads#list(Collection)} functionality that avoids you having to track column indexes. * <p> * <pre> * RowReadBuilder rrb = RowRe...
30.90991
153
0.640921
6885aae82a684eb22388de31eb971ed083539e91
973
package me.stuarthicks.xquery; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; import javax.xml.transform.stream.StreamSource; import org.apache.commons.io.IOUtils; import org.junit.Before; import org.junit.Test; public class ResourceURIResolverTest { private static fina...
26.297297
97
0.717369
b9889342d35d5ea40a0868722e5f2498340fee24
340
package base; import global.wrappers.BinaryFileWrapper; import global.wrappers.DirectoryWrapper; import global.wrappers.FileWrapper; /** * Created by Arsen on 11.09.2016. */ public interface ElementVisitor { void visit(DirectoryWrapper wrapper); void visit(FileWrapper wrapper); void visit(BinaryFileW...
17.894737
42
0.764706
1073b2ecd8b450674ade497daeedf238d77715c2
4,340
package com.crowdin.cli.commands.actions; import com.crowdin.cli.client.ProjectClient; import com.crowdin.cli.commands.NewAction; import com.crowdin.cli.commands.Outputter; import com.crowdin.cli.commands.functionality.RequestBuilder; import com.crowdin.cli.properties.ProjectProperties; import com.crowdin.client.core....
40.943396
154
0.665668
2da99ee57da941ca11335a5ddd9c4f082449f7a6
1,379
/* * 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.358974
78
0.741842
092e633f2fcb588ea93dcd72f1ff57ba1e8e4b13
3,250
package com.ibyte.framework.support; import com.ibyte.common.constant.NamingConstant; import com.ibyte.framework.meta.MetaEntity; import com.ibyte.framework.meta.MetaModule; import com.ibyte.framework.support.domain.MetaEntityImpl; import com.ibyte.framework.support.domain.MetaModuleImpl; import java.util.Collections...
26.639344
88
0.572308
44bbd5e0bb8ddb765c43cf85ddc74172b185f57f
262
package com.unidev.parsers.model; /** * Parser service implementation. */ public interface Parser { /** * Parser id. */ String parserId(); /** * Process request. */ ParserResponse process(ParserRequest parserRequest); }
13.789474
56
0.60687
364cc952f6a6b5bbef296d09913b245efd03ebdb
2,828
/** * Copyright [2013] Gaurav Gupta * * 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 a...
35.35
102
0.728076
b5f6446534dd2fe7e00d2262f796f6276094897d
10,848
// Generated by OABuilder package com.cdi.model.oa; import java.util.logging.*; import java.sql.*; import com.viaoa.object.*; import com.viaoa.hub.*; import com.viaoa.util.*; import com.viaoa.annotation.*; import com.cdi.delegate.oa.*; import com.cdi.model.oa.filter.*; import com.cdi.model.oa.propertypath.*; import c...
36.897959
126
0.663072
6bf4bcf3f29100ca9157fa15450911e9cd1bffc2
1,861
/** * 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 ...
31.542373
80
0.732939
fdf12a7146d272cbe31e3b4410fbff67c8dda443
97
package fr.lteconsulting.hexa.databinding.test.dto; public class B { public String firstName; }
16.166667
51
0.793814
6c429b7f5712a58e35ea44c3b7fcad62d95dcdce
617
package inc.troll.hydra.modules.discord.commands; public class HelpCommand implements ICommand { @Override public void handle(CommandContext ctx) { ctx.getChannel() .sendMessage("use:\n") .append("* `.play <YouTube link>` - plays song of given YouTube link\n") .appe...
22.851852
84
0.572123
767ee041e33eda7ef47ede91a8f6c7c4ba453088
713
package br.com.onebr.controller.response; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; @Data @Builder @NoArgsConstructor @AllArgsConstructor public class ContributorsRes { ...
20.371429
53
0.726508
6a87aaf6cab546486c8cb47020dae136a9f5714d
659
package com.test.filter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; /** * 禁用缓存: 以下三种都可以禁用缓存 */ public class NoCacheFilter extends HttpFilter{ @Override publ...
28.652174
140
0.748103
08f0b559bdd36a6ac1954ab53332350eed9bc00d
295
package it.unitn.web.centodiciotto.persistence.dao; import it.unitn.web.centodiciotto.persistence.base.DAO; import it.unitn.web.centodiciotto.persistence.entities.ExamType; /** * DAO interface for a {@link ExamType} entity. */ public interface ExamTypeDAO extends DAO<ExamType, Integer> { }
26.818182
64
0.786441
83b79f563a2272308e986899cf32e57af4d22ec5
8,054
package org.infinispan.remoting.inboundhandler; import static org.infinispan.factories.KnownComponentNames.REMOTE_COMMAND_EXECUTOR; import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionException; import java.util.concurrent.ExecutorService; import org.infinispan.IllegalLifecycleStateE...
43.069519
120
0.733549
1c4677a9d1356100e50112ca64aac4605a36002c
1,564
package edu.neu.cs6510.dto; import org.junit.Assert; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import java.util.List; import edu.neu.cs6510.model.Location; import edu.neu.cs6510.model.LookUpData; import edu.neu.cs6510.model.primeKey.LookUpPK; import static org.junit.Assert.*; publ...
25.225806
78
0.737212
417928e8b9d4dd0d0d10763659bcef55084bbd2c
195
package fr.flavi1.gravitree.Tools; import java.util.Random; /** * Created by Flavien on 20/06/2015. */ public class Randomizer { public static Random random = new Random(); }
16.25
48
0.661538
e4ac42afeed1bcfa16e119f27e8c12a8a87198e0
375
package xyz.guqing.app.dao.message; import xyz.guqing.app.bean.entity.message.MessageTemplate; import xyz.guqing.app.dao.BaseRepository; import java.util.List; public interface MessagetemplateRepository extends BaseRepository<MessageTemplate,Long> { MessageTemplate findByCode(String code); List<MessageTem...
23.4375
89
0.816
efb53f5cd5f2a3ae7bf7f4f4586ce136251ddf54
56
package sample.ifs; public interface IResult { }
9.333333
27
0.678571
867da3d518c5f67e020d08bdadd1bc7f9fffa31e
1,086
package Comparisons; import Model.Result; import Model.TestBase; import org.apache.commons.text.similarity.JaroWinklerSimilarity; import java.util.List; public class JaroWinklerComparison extends BaseComparison{ private final JaroWinklerSimilarity jaroWinklerSimilarity; public JaroWinklerComparison() { ...
25.857143
82
0.710866
e245c4f5c502db9eafb25e54769318c4d8f96fce
2,091
package ch.hslu.hashTabelle; import java.util.Arrays; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; public class HashTable<E> implements HashArrayInterface<Integer> { static private final Logger LOG = LogManager.getLogger(HashTable.class); Integer[] hashArray = new Integer[1...
18.837838
112
0.565758
1c0defe46f0edc0f16c9bbb6af3ac8929e30925e
445
package com.dandelion.communication.me.router; import androidx.fragment.app.Fragment; import com.alibaba.android.arouter.launcher.ARouter; /** * 我的组件服务工具类 * 其他组件使用此类,即可跳转我的组件相关页面、调用故事组件服务 * Created by lin.wang on 2021/6/24. */ public class MeServiceUtil { public static Fragment navigateMePage(){ retur...
23.421053
52
0.696629
72a08dbc7dc15c18716d68f8a6d00e53a511cd56
1,989
/** * Copyright 2014-2019 the original author or authors. * * <p>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 * * <p>http://www.apache.org/licenses/LICENSE-2.0 * * <p>Unless required by ...
32.606557
99
0.695324
2b542fc9f3409b3c3957f396b3b730b587b7ed2c
1,665
/* * 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 ...
34.6875
76
0.741141
d37c15e7f9b707292b55a2a09bb64d0186831fed
869
package yuku.alkitab.base.util; import android.os.Environment; import java.io.File; public class AddonManager { public static final String TAG = AddonManager.class.getSimpleName(); public static String getYesPath() { return new File(Environment.getExternalStorageDirectory(), "bible/yes").getAbsolutePath(); } ...
22.868421
92
0.706559
96535cd363293a8393a09b1040ef7dcc1737262b
9,883
package de.uniks.networkparser.test; import org.junit.Assert; import org.junit.Test; import de.uniks.networkparser.graph.Clazz; import de.uniks.networkparser.graph.DataType; import de.uniks.networkparser.graph.GraphList; import de.uniks.networkparser.graph.Method; import de.uniks.networkparser.graph.MethodSet; import...
45.127854
132
0.762825
bfd3e3975aefbffe2b64132fab1442289fd664e8
5,312
/* * Copyright 2014 Guillaume Masclet <guillaume.masclet@yahoo.fr>. * * 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 re...
31.808383
98
0.655685
cd9a401c6a012ef7dbb2666de8cc02035c4f4c85
2,116
package ponyquest.sprites; import java.awt.*; import pwnee.image.*; import pwnee.sprites.Sprite; import ponyquest.PonyMain; import ponyquest.maps.Layer; /** * Any kind of sprite that resides in a Layer in an AreaMap. This class * provides support for maintaining the sprite's layer state and moving the sprite * ...
25.804878
101
0.66966
3b4c34ab0e8bd75bc1e6711334ccf533fdb7d082
4,899
class B { } class y { } class y2RkIk_qA0 { public static void GDnvQQ (String[] isTR9tUY) { { void _JMTw; uiUDY().n(); void[][] AlPtscOSo4; boolean oQ3TYh2L6HqY; M7s6dBOPY[] e2k; int ZESWYO8; yz_8[][] KnVSw3G; ...
34.744681
227
0.482956
8565376af8bdfd65056586b49751fe42a99dc63d
1,386
/* * Copyright 2017 dmfs GmbH * * * 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...
29.489362
159
0.683983
f9f19238372a60803121eb0900d0a8c77954d210
656
package com.czechyuan.imageedit; import android.graphics.Bitmap; public interface GraffitiListener { /** * 保存图片 * * @param bitmap 涂鸦后的图片 * @param bitmapEraser 橡皮擦底图 */ void onSaved(Bitmap bitmap, Bitmap bitmapEraser); /** * 出错 * * @param i * @param msg...
16.820513
81
0.591463
33144ffcb22c1f07469e40c542ac4918b1127c2e
2,452
package medical.monitor; import android.content.Intent; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.android.my...
29.190476
104
0.61093
cdfbe408d241dcdd148e79b066603e55c2951f3e
191
package io.clickhandler.web.reactGwt.client.event; import jsinterop.annotations.JsFunction; /** * */ @JsFunction public interface FocusEventHandler { void handle(FocusEvent event); }
15.916667
50
0.764398
5d5b2abbef6fc30afd0690b367b5ac7431ceb20d
1,027
package com.eligible.exception; import lombok.Getter; /** * Invalid or Incomplete request exception. */ public class InvalidRequestException extends EligibleException { private static final long serialVersionUID = 1L; /** * Param name. */ @Getter private final String param; /** ...
20.137255
79
0.618306
cff3416e629543836c85fe676cea1c67d66f9721
8,330
/* * Copyright (c) 2005 Sun Microsystems, Inc. All Rights Reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * - Redistribution of source code must retain the above copyright * notice, this list of ...
48.430233
76
0.597599
c460f316a427f3c8cf7b27f2f268d1eb880e7b64
4,263
/* * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
40.6
143
0.685902
0240ed6d93b4355f47b4b1fbc550b2b4e1650100
2,145
package seleniumBasics; import io.github.bonigarcia.wdm.WebDriverManager; import java.lang.Thread; import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; public class ElementVisibilityTest { public static void main(...
38.303571
134
0.719347
87fdc7649231cd7a5383db6bdeb17c846e5db143
3,610
/** * Copyright 2012 Cloudera Inc. * * 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, ...
34.056604
128
0.740443
96b2326e3175925817bf1f137caf8287fe613e9d
3,442
/* * Copyright (c) 2017-2021 Hugo Dupanloup (Yeregorix) * * 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, mo...
28.92437
81
0.738524
ee0296590db005ff362b2b3fccecd4812546546b
1,133
package com.wym.springboot01.ESbean; import org.springframework.data.elasticsearch.annotations.Document; import java.io.Serializable; /** * * @author yongmao.wu * */ @Document(indexName = "testgoods",type = "goods") //indexName索引名称 可以理解为数据库名 必须为小写 不然会报org.elasticsearch.indices.InvalidIndexNameException异常 //type...
19.877193
89
0.647838
ef3f759a91e01e897e51f3a30bd90f7d680076b4
543
package com.mkmonkey.sell.service; import com.mkmonkey.sell.Bo.ProductCategory; import com.mkmonkey.sell.dto.CartDTO; import java.util.List; /** * @Class Name: ProductCategoryService * @Description: TODO * @Company bgy: MK monkey * @create: 2018-01-25 20:23 **/ public interface ProductCategoryService { Pro...
23.608696
79
0.764273
576b66bd24332946dc8681a30f278a3a255e4626
1,482
package com.hjq.http.model; import com.hjq.http.EasyConfig; import java.util.HashMap; import java.util.Set; /** * author : Android 轮子哥 * github : https://github.com/getActivity/EasyHttp * time : 2019/07/20 * desc : 请求参数封装 */ public final class HttpParams { private HashMap<Str...
23.903226
84
0.544534
3b0bf15c933ca4e7dafadaa80b995af97f624bbc
10,241
package com.benefitj.mybatisplus.aop; import com.alibaba.fastjson.JSON; import com.benefitj.core.EventLoop; import com.benefitj.core.TimeUtils; import com.benefitj.core.local.LocalCache; import com.benefitj.core.local.LocalCacheFactory; import com.benefitj.mybatisplus.controller.vo.HttpResult; import com.benefitj.myb...
27.164456
100
0.657065
6d5a7091b91bfce87dead1d0545429aff473582a
1,601
// Copyright (c) 2003-2012, Jodd Team (jodd.org). All Rights Reserved. package jodd.typeconverter; import jodd.typeconverter.impl.IntegerArrayConverter; import org.junit.Test; import static jodd.typeconverter.TypeConverterTestHelper.*; import static org.junit.Assert.assertEquals; import static org.junit.Ass...
37.232558
114
0.709557
2c1cef4e7bc44c213d5d824f9837ca9f97d5d4dc
3,097
package com.winterwell.bob.tasks; import java.io.File; import java.util.ArrayList; import java.util.List; import com.winterwell.bob.Bob; import com.winterwell.bob.BobConfig; import com.winterwell.bob.BuildTask; import com.winterwell.utils.StrUtils; import com.winterwell.utils.io.FileUtils; import com.winterwell.utils...
26.245763
133
0.682273
92d89a0a04819f7031666a7b8db1964ddf487b6a
2,888
/* * Copyright 2021 - 2022 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
43.757576
186
0.74446
81714c7542a370a96f8baa7c0bf1ef41e41749eb
3,633
package edu.ucla.cs.process.extension; import java.io.File; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.HashSet; import java.util.Map; import org.apache.commons.lang3.tuple.MutablePair; import edu.ucla.cs.mine.ExtendedPatternMiner; import edu.ucla.cs.model.A...
31.051282
103
0.645472
ae284687d197870dea669cb8e1f5956c709198b0
2,035
/* * Copyright (C) 2020 Wigo Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
33.916667
180
0.608845
90b1182bd4de6456920f4d854e79284aae3ed56f
14,309
/* * Copyright 2020-2021 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ package com.google.cloud.healthcare.fdamystudies.common; import static com.github.tomakehurst.wiremock.client.WireMock.postR...
38.568733
100
0.756657
d5dfe9ef2235769485e81c18895fc7ea98dbc231
3,381
/** * */ package com.inc.user.controller; import javax.servlet.http.HttpServletRequest; import org.springframework.security.core.Authentication; import org.springframework.security.core.context.SecurityContextHolder; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org....
29.146552
95
0.713398
acb5046f608e405c64d727547034bc0195197b21
7,262
package org.wso2.developerstudio.eclipse.capp.maven.utils; import java.io.File; import java.util.HashMap; import java.util.Map; import org.apache.maven.model.Parent; import org.apache.maven.model.Repository; import org.apache.maven.project.MavenProject; import org.eclipse.core.resources.IProject; import org.eclipse.c...
47.776316
223
0.809694
634b61936bd4732accd7f6f0f8b0d67750433c92
4,700
package de.fraunhofer.iem.secucheck.InternalFluentTQL.ValidCases.tests; import de.fraunhofer.iem.secucheck.InternalFluentTQL.dsl.MethodSet; import de.fraunhofer.iem.secucheck.InternalFluentTQL.dsl.QueriesSet; import de.fraunhofer.iem.secucheck.InternalFluentTQL.fluentInterface.FluentTQLSpecification; import de.fraunho...
45.631068
115
0.628723