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
c147c1f400e32b282b1c485158c7e99ad587b122
418
package com.usthe.bootshiro.dao; import com.usthe.bootshiro.domain.bo.AuthOperationLog; import org.springframework.dao.DataAccessException; import java.util.List; /* * * @Author tomsun28 * @Description * @Date 8:28 2018/4/22 */ public interface AuthOperationLogMapper { List<AuthOperationLog> selectOperatio...
22
82
0.782297
39719e4d1820ae77f5ad6cd4fb00b22c39f5217d
3,445
package com.laomei.sis; import org.apache.kafka.connect.sink.SinkRecord; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.util.CollectionUtils; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.concurrent.atomic.At...
33.77451
126
0.634833
b72dec0990c3bf2bd825886bf8b43fa9f38c673f
443
package babylisp.values; import javax.annotation.Nonnull; public abstract class SimpleValue extends Value { public SimpleValue(@Nonnull ValueType type) { super(type); if (type.category() != ValueCategory.VC_simple) throw new IllegalStateException(); } @Override public Simp...
20.136364
55
0.638826
8fca8f5677207ae544b59fdb514dceec398bb4f0
3,259
package com.comb.dataset; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.dom4j.Document; import org.dom4j.DocumentException; import org.dom4j.Element; import org.dom4j.io.SAXReader; import com.comb....
25.460938
76
0.666769
5767d18cad7352da96667874fbe177aef50882c2
1,305
package leetcode; public class DFS_100 { class Solution { public boolean isSameTree(TreeNode p, TreeNode q) { if(p==null&&q==null){ return true; } else if(p==null||q==null){ return false; } else if(p.left==null){ ...
26.1
82
0.30728
2ea13f70cc182cb6ecd31d5b7ab6314b546451ca
1,876
package au.com.centrumsystems.hudson.plugin.buildpipeline.testsupport; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import java.net.URL; import static au.com.centrumsystems.hudson.plugin.buildpipeline.testsupport.TestUtils.elementIsPresent; import static...
30.258065
103
0.715885
77bf0f08673bf14a626e670de89c92cd8624a74a
4,929
package org.apache.commons.io.output; import java.io.IOException; import java.io.OutputStream; import java.io.Writer; import java.nio.ByteBuffer; import java.nio.CharBuffer; import java.nio.charset.Charset; import java.nio.charset.CharsetDecoder; import java.nio.charset.CoderResult; import java.nio.charset.CodingError...
35.978102
226
0.627308
1832b01ea0e1be6614f69d858c6459bf31642a33
920
package com.feedzai.openml.h2o.algos.mocks; import water.api.API; import water.api.schemas3.ModelParametersSchemaV3; /** * Mocked class that extends {@link water.bindings.pojos.ModelParametersSchemaV3} having a private static field named * {@code fields}. * * @author Miguel Cruz (miguel.cruz@feedzai.com) * @sinc...
25.555556
117
0.627174
e16a9d59d64820b2747189eba162962bf9c891ad
88,263
/* * Copyright 2019 Coordinador Electrico Nacional * * 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 applicab...
45.009179
154
0.541677
b95b4f1447c5db3a99d15066c5af124799030c28
867
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package edu.eci.arsw.mouseutils; import java.math.BigInteger; /** * * @author hcadavid */ public class MathTools { public boo...
20.642857
79
0.522491
b0dfa5674e956373403ee86b33fa0966fb9b368e
3,697
/* * Orika - simpler, better and faster Java bean mapping * * Copyright (C) 2011-2013 Orika authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apach...
26.407143
86
0.705166
eb839e4815d622d2e0a5ffe2a27afb569685da26
4,809
/* * Copyright (C) 2019 Intel Corporation * SPDX-License-Identifier: BSD-3-Clause */ package com.intel.dcsg.cpg.http; import java.io.UnsupportedEncodingException; import java.net.URL; import java.net.URLDecoder; import java.net.URLEncoder; import java.nio.charset.Charset; import java.util.ArrayList; import java.uti...
32.938356
169
0.599917
b1e6feba2f47cb3256c12941b5ee52f820591f68
1,156
package org.cloudfoundry.credhub.helper; import org.cloudfoundry.credhub.util.CurrentTimeProvider; import org.bouncycastle.jce.provider.BouncyCastleProvider; import java.security.Security; import java.time.Instant; import java.util.Calendar; import java.util.Optional; import java.util.TimeZone; import java.util.funct...
30.421053
104
0.782872
fc7472515091d06020f0435c3c488e71cb392c7b
2,850
package org.deviceconnect.android.uiapp.utils; import android.content.Context; import android.content.SharedPreferences; import org.deviceconnect.android.uiapp.R; public final class Settings { private SharedPreferences mPreferences; private Context mContext; private static Settings mInstance; publ...
28.5
100
0.639298
1b3fe603eb3fcd98cb56ad52ac5170655319a182
11,926
package me.htrewrite.client.util; import static org.lwjgl.opengl.GL11.*; import me.htrewrite.client.Wrapper; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.Tessellator; import net.mine...
51.627706
146
0.670552
ae404c173eb86f42cd9e2f338f352225afd65fdb
4,295
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed u...
24.97093
118
0.734808
91a9be7b96b9144b10f6d0f12b3f556ac0b15dd5
143
package com.mapbox.services.android.navigation.v5.navigation; public interface NavigationEventListener { void onRunning(boolean running); }
23.833333
61
0.825175
9d79b0f4b060bd6ad4fe8cac65ac7d8c3d83d155
1,293
package frodez.config.swagger.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 成功返回参数 * @author Frodez * @date 2019-12-05 */ @Docum...
19.892308
95
0.643465
1d3bd6eeec2ed0b22d5c9e6a1e0ae01b7c3f53b5
1,116
package com.onevgo.leetcode; import java.util.ArrayList; import java.util.Arrays; import java.util.List; public class Ex40CombinationSum2 { public List<List<Integer>> combinationSum2(int[] candidates, int target) { // 回溯算法 Arrays.sort(candidates); List<List<Integer>> lists = new ArrayList<...
27.9
115
0.549283
0916bc6704d8682638ef25ee8c42e67fff607308
803
package io.redskap.swagger.brake.report.json; import java.util.Map; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Componen...
28.678571
91
0.73599
f2f7bd2ab077e2683bf061fad2668bf7900cc54a
35,767
/** * CadastrarCPFRequest.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package _59._12._54._201.WS; public class CadastrarCPFRequest implements java.io.Serializable { private java.lang.String autenticacao; private...
33.117593
109
0.5828
27cc54a2912ec62890c1b77522cd1a89f613b551
1,695
package me.kahlil.scene; import static com.google.common.base.Preconditions.checkArgument; import me.kahlil.config.JavaStyle; import me.kahlil.graphics.MutableColor; import org.immutables.value.Value.Check; import org.immutables.value.Value.Default; import org.immutables.value.Value.Immutable; /** A representation o...
30.818182
100
0.687906
79d96d0317640cd8051eca7db9340896428c17da
675
package com.destiny.cat.mq; import lombok.extern.slf4j.Slf4j; import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyContext; import org.apache.rocketmq.client.consumer.listener.ConsumeConcurrentlyStatus; import org.apache.rocketmq.client.consumer.listener.MessageListenerConcurrently; import org.apach...
24.107143
109
0.805926
1072127de03e2beb954a68c5d9c0c66ad58160cd
557
package patterns.behavior.state.stateaction; /** * Context. * * @author Maxim Vanny * @version 5.0 * @since 10/14/2019 */ class Context { /** * field state. */ private State state; /** * Constructor. */ Context() { this.state = null; } /** * Getter. ...
13.585366
44
0.48474
e5329bc11b10fd45578687c11e2d9bbe6fd5ed0e
1,547
package com.goertek.commonlib.custom.widget; import android.graphics.drawable.Drawable; /** * 功能列表 * * @author: ww * @version: 1.0.0 * @since: 2019/07/23 */ public class WidgetOptionBean { private static final String TAG = "WidgetOptionBean"; private String content; private Drawable icon; pri...
19.582278
63
0.548158
8373b381f06c20d84091ae039ff967bad193effc
334
package com.wildox.calculator; /** * Created by Sujay on 21/02/18. * operates +-/*%^ */ public abstract class Operator implements Entities { public abstract int getPriority(); public abstract double operateOn(double operand1, double operand2); @Override public int occupiedLength() { retu...
17.578947
71
0.670659
ec72cb3aa8c5d890db57816d9d61419c58976e99
6,849
package io.catvision.appl; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.core.app.ActivityCompat; import androidx.fragment.app.Fragment; import com.gith...
33.086957
217
0.739524
cf22929e5252a51fd8ea2150ea0cb450e9f2161f
129
package thinking.in.spring.boot.samples.spring.application.model; public class Male { public Male(Person person) { } }
16.125
65
0.72093
bdfa0ee3baa67f561a0dda3ed6f44fcd368fef78
7,944
package com.example.todoapp.tasks; import android.support.test.InstrumentationRegistry; import android.support.test.filters.LargeTest; import android.support.test.rule.ActivityTestRule; import android.support.test.runner.AndroidJUnit4; import android.text.TextUtils; import android.view.View; import android.widget.List...
38.376812
105
0.694109
d40990d614b124dc8018b28f945e2bed16397ec7
4,429
/* * Copyright (c) 2008-2021, 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 ...
33.052239
116
0.660646
878f783829e66b9baaf5e8834e71e92ccbefa0c2
18,655
/* Copyright 2013 by Victor Jatoba Licensed under the Academic Free License version 3.0 */ package ec.app.aspga; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.Vector; import ec.EvolutionState; import ec.app.aspga.bean.AspgaContext; import ec.app.aspga.bean.Subject...
32.108434
155
0.676977
881871c885512c879acdc19328e67396da04e510
2,689
package com.bitmovin.api.sdk.model; import java.util.Objects; import java.util.Arrays; import com.bitmovin.api.sdk.model.BitmovinResource; import com.bitmovin.api.sdk.model.InputPath; import com.bitmovin.api.sdk.model.SmpteTimecodeFlavor; import java.util.Date; import java.util.List; import java.util.Map; import com.f...
25.130841
102
0.686872
f66321b1d6747f4fc3977dd177ffd35218269b6e
7,300
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package androidx.work; import androidx.work.impl.utils.futures.SettableFuture; import kotlin.Unit; import kotlin.coroutines.Continuation; import kotlin.co...
38.829787
114
0.592055
f426db29ad9e253aa301c5e7e379c28bb6a85c8a
3,884
package com.rzspider.project.blog.blognotice.controller; import java.util.List; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework....
29.648855
86
0.771885
3a30b0fe9457edb38d943ecc2205ebb24186b4f7
3,020
/** * Copyright (c) 2012, Ben Fortuna * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * o Redistributions of source code must retain the above copyright * notice, this list of condit...
43.142857
106
0.753311
fb3f0720a6f322ce6bbe3955e13b00fea9d4cf4c
502
package lib.ui; import io.appium.java_client.AppiumDriver; import org.openqa.selenium.By; public class NavigationUI extends MainPageObject{ private static final String MY_LISTS_LINK = "//android.widget.FrameLayout[@content-desc='My lists']"; public NavigationUI(AppiumDriver driver) { super(dri...
23.904762
77
0.695219
bf296442c460377b51742141a5131ac1907bcf75
2,203
import com.gembox.examples.Util; import com.gembox.spreadsheet.*; import java.time.LocalDateTime; import java.util.Random; class Program { private static final String resourcesFolder = Util.resourcesFolder(); public static void main(String[] args) throws java.io.IOException { // If using Professional...
43.196078
132
0.654562
77e99d7c5b840473135dd9a29bcbee62e01ba39c
2,569
package com.android.wcf.helper.typeadapters; import android.util.Log; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonParseException; import com.google.gson.JsonPrimitive; import com.google.gson.JsonSerializatio...
37.779412
140
0.658622
4b90071e6099e5e8003651ee2686c925a92c9396
2,135
package com.ysir.yutao.product.controller; import java.util.Arrays; import java.util.Map; import com.ysir.yutao.common.utils.PageUtils; import com.ysir.yutao.common.utils.ResponseResult; import com.ysir.yutao.product.entity.SpuInfoDescEntity; import com.ysir.yutao.product.service.SpuInfoDescService; import org.spring...
25.117647
77
0.717096
c59f1c95576b5b818a663813217beacf67c75f6e
76
package model.commands.OtherCommands; public class MakeUserInstruction { }
15.2
37
0.828947
062417a33fd0abcab1440ea194d2a6f8b28e33c8
5,538
package schach.gui.menu; import java.util.Optional; import javafx.geometry.HPos; import javafx.geometry.Insets; import javafx.geometry.Pos; import javafx.geometry.VPos; import javafx.scene.control.Alert; import javafx.scene.control.ButtonType; import javafx.scene.control.Label; import javafx.scene.control.Slider; imp...
33.768293
117
0.729144
99849e5655e30f72d8af680c373fcdf6487636fb
1,582
package udesk.udeskasr.activity; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import android.view.inputmethod.InputMethodManager; import android.widget.EditT...
28.763636
92
0.641593
b2763e1b3cf00a4273d7659bfe8f26b2c330b895
2,302
package com.rvandoosselaer.blocks; import com.rvandoosselaer.blocks.serialize.BlockDefinition; import com.rvandoosselaer.blocks.serialize.BlockFactory; import org.junit.jupiter.api.Test; import java.util.ArrayList; import java.util.Collection; import java.util.List; import static org.junit.jupiter.api.Assertions.ass...
35.415385
162
0.714596
b2542f32b30243f31b4788dafb28a4580ba2a07a
315
package com.andronov.subsystems; import com.andronov.Customer; import javax.ejb.Stateless; @Stateless public class CreditRatingService { public boolean checkCustomerRating(Customer customer) { Integer rating = 900; // Connect to external credit reference agency return rating > 700; } }
21
76
0.736508
83ad3ade1f831af5a2381aaceaee66bb50920cc6
2,258
package io.vandam.dbdeploy.sql.db2_400.sql_generation; import io.vandam.dbdeploy.databasestructure.Database; import io.vandam.dbdeploy.databasestructure.Index; import io.vandam.dbdeploy.databasestructure.Table; import java.util.ArrayList; import java.util.Collection; import static io.vandam.dbdeploy.sql.db2_400.sql_...
40.321429
104
0.571302
4e904212521ff0962eacb5961c7fb0c8bc6f8bfd
2,415
package fr.noalegeek.pepite_dor_bot.commands; import com.jagrosh.jdautilities.command.Command; import com.jagrosh.jdautilities.command.CommandEvent; import fr.noalegeek.pepite_dor_bot.enums.CommandCategories; import fr.noalegeek.pepite_dor_bot.utils.helpers.MessageHelper; import java.util.Locale; public class Invite...
50.3125
175
0.627743
6782590c9e8b77c9155b68ec9e84f037e3b5a496
2,629
package net.minecraft.block; import java.util.Random; import net.minecraft.entity.Entity; import net.minecraft.entity.LivingEntity; import net.minecraft.particles.ParticleTypes; import net.minecraft.potion.Effect; import net.minecraft.potion.EffectInstance; import net.minecraft.potion.Effects; import net.minecraft.uti...
42.403226
207
0.715862
99238c0d3212f5732aa0794ea680aa98f1a9a0af
5,333
/* * 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 a...
43.008065
157
0.739546
c8385b59f59644b79ede540eecc5794581d27a2a
6,085
package io.openems.edge.meter.virtual.symmetric.add; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CopyOnWriteArrayList; import org.osgi.service.component.ComponentContext; import org.osgi.service.component.annotations.Activate; import org.osgi.service.component.annotations.Component;...
38.757962
135
0.798192
b11afb2ce8939fd9b83d1fc8dca9e652cb700c9e
5,928
/* * This file is generated by jOOQ. */ package org.blackdread.sqltojava.jooq.tables; import javax.annotation.Generated; import org.blackdread.sqltojava.jooq.InformationSchema; import org.blackdread.sqltojava.jooq.tables.records.InnodbTablesRecord; import org.jooq.Field; import org.jooq.ForeignKey; import org.jooq...
34.870588
258
0.691464
3bce675cd50c9e4c5c6de010a3a2e3d1e713b5ca
155
package br.com.megasena.co; import javax.faces.bean.ManagedBean; @ManagedBean public class CoIndex { public String inicializa() { return ""; } }
10.333333
36
0.709677
9aee28231f0f71a402298b9a2d14510f170d0bef
1,626
package com.bytehonor.sdk.intent.human.model; import java.util.HashSet; import java.util.Set; public class IntentRequest { private long ts; private String query; private String uuid; private String app; private Set<String> words; private IntentSession session; public IntentRequest()...
19.129412
79
0.597786
6670b27303b3a3e2a71136ac865144747a29293f
186
package com.base.lib.interfaces; import android.content.res.Configuration; public interface ConfigChangedListener { public void onConfigurationChanged(Configuration newConfig); }
20.666667
64
0.822581
15578cfb2c7a0241ca8a76d9c988e7d89d133bd2
1,003
package com.example.security; import com.example.entity.Result; import com.fasterxml.jackson.databind.ObjectMapper; import org.springframework.security.core.AuthenticationException; import org.springframework.security.web.AuthenticationEntryPoint; import org.springframework.stereotype.Component; import javax.servlet....
40.12
152
0.79661
cb5e351981cfa8990b77e48f07ecafaad2987299
841
package io.yooseongc.kma; import org.gdal.gdal.Dataset; import org.gdal.gdal.gdal; public class GdalRegisterTest { private static final String path = "C:/Users/user/data/"; public static void main(String[] args) { gdal.AllRegister(); System.out.println(gdal.VersionInfo()); //Dataset data = gdal.Open(path +...
22.131579
111
0.678954
a670a0f111ee127379ee210dabef372dbfac9bbe
2,428
//Chapter6 - Exercise P6.2 //http://math.hws.edu/eck/cs124/javanotes4/c5/s3.html public class Card { private String card1; private String card2; public Card (String letterCard1, String letterCard2) { card1 = letterCard1; card2 = letterCard2; } public String getDescription1() { String c = " "; if (card1....
22.072727
58
0.631796
7f5ae8bb74e661fbfb06e3506e362157609cd017
1,992
package com.alibaba.csp.ahas.sentinel.cluster; import java.util.List; import com.alibaba.csp.ahas.sentinel.cluster.entity.ClusterGroupEntity; import com.alibaba.csp.ahas.sentinel.util.MachineUtils; import com.alibaba.csp.sentinel.cluster.server.config.ClusterServerConfigManager; import com.alibaba.csp.sentinel.cluste...
41.5
118
0.705823
5748bd5a96bf62b77326b72f7d9ba77d742c4ff6
1,743
package heavenchess.ai; import java.util.Iterator; import heavenchess.movement.*; import heavenchess.board.Chessboard; import heavenchess.board.ChessboardState; // todo: add the filter to exclude attackable moves public class AllPossibleMoveProvider implements MoveProvider, Iterator<Move> { private final MoveEnum...
30.578947
104
0.591509
4a02eff9411018a9680681b7fc18d4408711c4b2
2,701
/* * Copyright 2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
29.043011
99
0.652351
8a58dc9ba343abf81a3fc2041f2690dbddff1888
4,200
package com.airbnb.epoxy; import com.squareup.javapoet.ClassName; import java.util.List; import javax.lang.model.element.Element; import javax.lang.model.element.PackageElement; import javax.lang.model.util.Elements; import javax.lang.model.util.Types; class DataBindingModuleLookup { private final Elements eleme...
34.146341
100
0.684048
721efe33772d4f3b46f1d4a85c6912bbdf42fd81
327
package com.wbm.plugin.util.data.json; import java.io.Serializable; public interface JsonDataMember extends Serializable { // 데이터 주기: 각 메소드에서 Gson으로 String을 원하는 데이터 타입으로 변환시켜서 사용해야 함 public Object getData(); // 데이터 받아오기 public void distributeData(String jsonString); // 확장자까지 .json 붙이기 public String getFileNam...
21.8
60
0.75841
e3a155f3c82aad799a8633ee5cc7a0720b8a2563
3,090
package io.debezium.connector.postgresql.snapshot.partial.filters.handlers; import io.debezium.connector.postgresql.snapshot.partial.filters.FilterHandler; import io.debezium.connector.postgresql.snapshot.partial.filters.threaded.SnapshotFilterManager; import io.debezium.connector.postgresql.snapshot.partial.filters.t...
41.756757
114
0.718447
1504922919f536be18509025509c39fd0d908790
4,933
/* * Copyright (C) 2007 The Guava Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
34.02069
93
0.702615
e356fd8d17cd532a8a68b1d48fbf870071eca916
710
package me.hypherionmc.storagedrawers.util; import net.minecraft.item.ItemStack; import javax.annotation.Nonnull; public class ItemStackMatcher { public static ItemStackMatcher EMPTY = new ItemStackMatcher(ItemStack.EMPTY); @Nonnull protected ItemStack stack; public ItemStackMatcher (@Nonnull ItemS...
24.482759
96
0.708451
c152b04856fabefaaa2ec2eff27e96aabb78e7dd
1,990
package org.leo.im.store.dao.impl; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import org.leo.im.model.File; import org.leo.im.store.connection.ConnectionProvider; import org.leo.im.store.dao.BaseDAO; import org.leo.im.store.dao.FileDAO; import org.leo.im.store.excepti...
30.615385
142
0.6
622f81f3bf275b790af66c8890b3687711cb52d6
1,906
package engine.components; import java.awt.Color; import java.awt.Graphics; import java.util.ArrayList; import javax.swing.JComponent; import engine.pieces.Piece; public class Square extends JComponent { private int y; // this will be which row the square is in private int x; // this will be which column the sq...
23.825
94
0.677859
acd370d609eb62145d18fce4b869b35709b2aab3
4,116
/* * The MIT License * * Copyright 2021 Thomas Lehmann. * * 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...
42.43299
96
0.697279
ce02b5733dd31453e08f34b74a904458b20f766d
19,097
/* * Copyright 2019-2020 Jeff Hain * * 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 ...
33.56239
115
0.455831
64d8bdf4b984d78c245862bbd0365aba99324b3c
3,260
// FCMOD package net.minecraft.src; public class FCEntityWitch extends EntityWitch { private static final int[] m_itemDrops = new int[] { FCBetterThanWolves.fcItemWitchWart.itemID, Item.glassBottle.itemID, Item.stick.itemID }; public FCEntityWitch( World world ) { ...
27.863248
128
0.546626
3a918fbf96083ce79deffffbf00855b5df9235f4
2,297
package urender.demo.editor; import java.awt.image.BufferedImage; import javax.swing.ImageIcon; import urender.api.UTextureFormat; import urender.api.UTextureSwizzleChannel; import urender.api.UTextureType; import urender.engine.UTexture; import urender.engine.UTexture2D; import urender.g3dio.generic.IIOTextureLoader;...
22.519608
92
0.659121
4f24a9c904707792c987982c0a1ec37c97c1ace0
3,901
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See License.txt in the repository root. package com.microsoft.tfs.client.common.ui.framework.validation; import org.eclipse.jface.util.Geometry; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ControlAdapter; import org.ecli...
34.522124
109
0.642143
64026a2c00cda1005814b3602b990a63fc92bf9f
10,581
/*********************************************************************************************************************** * Copyright (C) 2010-2014 by the Stratosphere project (http://stratosphere.eu) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
36.867596
120
0.733296
64a467132f74c8631eb854cc038e8ca8d9fcfe36
93
package cz.epptec.decision.model; public class ExampleRuleOutput { private int price; }
15.5
33
0.763441
f8cbc9d7057a095f2d2daa36b7d153a9a8b43ec7
2,081
package com.lothrazar.cyclic.util; import com.lothrazar.cyclic.capability.wrappers.SpongeBlockWrapper; import net.minecraft.block.Block; import net.minecraft.block.BlockState; import net.minecraft.block.IBucketPickupHandler; import net.minecraft.block.SpongeBlock; import net.minecraft.block.WetSpongeBlock; import net....
40.803922
121
0.791446
e02c5367db7e606c74caaba37259650fb86c05fe
472
import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; class SolutionTest { @Test void sample() { assertEquals(0, CountingDuplicates.duplicateCount("abcde")); assertEquals(1, CountingDuplicates.duplicateCount("abcdea")); assertEquals(1, CountingDuplicates.dupli...
33.714286
115
0.737288
466a025ff777fad2574afdcc06293672ead5196f
4,110
package com.idata.mq.base.properties; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component public class AmpMdmProperties { @Value("${mdm.device.online.queue.name}") private String deviceOnlineQueueName; @Value("${mdm.device.online.routing...
28.943662
88
0.734063
e6a59db436f52a2e27e0cc4a796de11e45b8302b
765
package sqlchart; public class DataSource { public final String name; public final String url; public final int poolSize; public volatile boolean alive; public volatile Table[] tables; public final KeyDesc[] keyDescs = null; public final Descriptor[] descriptors = null; public final ChartSeries[] cha...
23.90625
61
0.688889
255d63346af371fb06d870c903f49717ca33c5d6
754
package priv.jesse.mall.service; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import org.springframework.data.repository.query.Param; import priv.jesse.mall.entity.Aboutus; import priv.jesse.mall.entity.Product; import priv.jesse.mall.entity.SmsRecord; import java.uti...
16.755556
65
0.649867
f895a90821ba16e07594766b1c2382374c1a023b
1,154
package com.sarinsa.starvingtotem.common.core.registry; import com.sarinsa.starvingtotem.common.core.StarvingTotem; import com.sarinsa.starvingtotem.common.effect.BitterCurseEffect; import com.sarinsa.starvingtotem.common.effect.SweetBlessingEffect; import net.minecraft.potion.Effect; import net.minecraft.potion.Effec...
42.740741
155
0.811092
0fde127f6345db8753d9b91685dec75e8ce62553
1,188
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.sql.querydsl.container; import java.util.Obje...
26.4
79
0.643098
c3755b28464ce242f468f2227e56f7af5340dbdf
25,235
package net.sanmuyao.core.util; import java.sql.Timestamp; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.List; import java.util.Locale; ...
23.606174
127
0.641569
4405375b8e3fafc360483711ac93882e7bd891a8
2,424
package xyz.zpayh.ageraView.click; import android.os.Looper; import android.support.annotation.NonNull; import android.view.View; import com.google.android.agera.Observable; import com.google.android.agera.Updatable; import java.util.concurrent.Executor; import static com.google.android.agera.Preconditions.checkNot...
24.989691
89
0.67038
0644896647953e3c8ecd4d9c28743d72e7e1bae6
2,511
package ca.quadrilateral.jobsmarts.mail; import java.util.Collection; import java.util.stream.Collectors; import javax.enterprise.event.Observes; import javax.inject.Inject; import javax.mail.MessagingException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.stringtemplate.v4.ST; import org.stri...
36.926471
112
0.637196
2c7cd939e1aa876cd152ffeeeea12421e4024e51
750
class Solution { public String[] findRestaurant(String[] list1, String[] list2) { String[] temp = new String[1005]; Map<String, Integer> pos = new HashMap<>(); int Min = 2000, sz = 0; for (int i = 0; i < list1.length; i++) { pos.put(list1[i], i); } for (in...
32.608696
68
0.393333
31b2d03a5bc357bccc877f6909571ba35309fdaf
16,629
package datawave.query.jexl; import java.util.Collection; import java.util.Map; import java.util.Set; import datawave.query.attributes.ValueTuple; import datawave.query.jexl.nodes.TreeHashNode; import datawave.query.jexl.visitors.TreeHashVisitor; import org.apache.commons.jexl2.Interpreter; import org.apache.commons....
41.88665
159
0.598773
a14828f74adb8faa10b19d7c2be006ef860c14f3
1,042
package polsl.pblserverapp.model; import lombok.Data; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import java.util.List; @Data public class Task { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long taskId; private St...
27.421053
68
0.586372
6df1cbe515486f268bc795ed8d8f806c7ed32edf
535
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ import javax.swing.*; import java.awt.*; /** * * @author kuda */ public class ImageBackgroundPanel extends JPanel{ priv...
25.47619
80
0.685981
c66041888ed9a63857405d9da47170868165fac4
772
package com.mowen.designpattern.proxy; import java.rmi.Naming; import java.rmi.RemoteException; import java.rmi.registry.LocateRegistry; /** * Created by mowen on 4/10/16. */ public class GumballMachineTestDrive { public static void main(String[] args) { try { LocateRegistry.createRegistry(...
28.592593
119
0.665803
d6127aa3ada9b87a34f9846d926b10dfe80d0813
1,404
package com.dexburger.configurations; import java.util.Collections; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import com.google.common.base.Predicates; import springfox.documentation.b...
35.1
88
0.794872
a00a40908709358bd324e8b5da9a409a754db4df
2,401
package com.xt.leetcode; import java.util.*; /** * 5.最长回文子串 * 给你一个字符串 s,找到 s 中最长的回文子串。 * done * 时间复杂度O(n*log(n)) */ public class Solution5 { HashMap<Integer, List<Integer>> indexMap = new HashMap<>(); String reverseStr = ""; String str = ""; public String longestPalindrome(String s) { c...
31.592105
113
0.491045
67c4bca5e35eb3d96928c12a3386cdd57296dd25
34,706
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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...
15.063368
813
0.809053
cbf3625bc22f6c4d8a79f2623f73cc9a3238d57e
2,199
package com.github.mickroll.maven.dependency_duplicator_plugin.it; import static org.assertj.core.api.Assertions.assertThat; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util...
34.904762
126
0.655298
09ba68219e5a410233e1ec07beb14f4fc6b202dc
3,660
/* * Anserini: A Lucene toolkit for replicable information retrieval research * * 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 * * Unles...
31.016949
90
0.694536
a2b3e710816615ba6549879658dcd967226454fb
9,914
/* * 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 ...
39.656
165
0.700525
203748dad461b7147fb76f25834399ff131ff86e
2,485
package edu.mit.mitmobile2; import java.util.HashMap; import android.content.res.Configuration; import android.os.Bundle; import android.view.View; public abstract class CategoryNewModuleActivity extends NewModuleActivity implements OnMITMenuItemListener { MITPopupSecondaryTitleBar mSecondaryTitleBar; HashMap<Str...
27.921348
108
0.772233
4fa7db89ee209e03d16753d401c0a0654ed8f684
4,350
package net.runelite.client.plugins.templetrekking; import com.google.inject.Provides; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.inject.Inject; import lombok.Getter; import lombok.extern.slf4j.Slf4j; import net.runelite.api....
29.591837
104
0.729425
e31c7094cac8937f574962e26461767cda8cdf7c
1,909
/** * 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...
30.301587
80
0.72132
6182d075f9fe4f60691cd125c2483f4fe0a10333
2,841
/* * Copyright 2014 KonradOliwer. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
40.014085
111
0.680746
76b8cd005e8b8309acf549d57a9f48637b08110b
5,887
/* * Copyright (c) 2009 Haefelinger IT * * 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 ...
24.839662
80
0.588415
bef8043d60544c2e0ad0e083f213180145d29830
2,000
package com.chason.base.relearning.jmh; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.results.RunResult; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; import org.openjdk.jmh.runner.options.OptionsBuilder; import java....
29.850746
92
0.6975