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
c68b70b789571261b5b5714d49d90a66aa516e7a
3,050
package com.binlee.pluginization.util; import android.content.Context; import android.util.Log; import java.lang.reflect.Array; import dalvik.system.DexClassLoader; /** * Created on 20-10-30. * * @author binli */ public final class DexMerger { private static final String TAG = "DexMerger"; private Dex...
32.105263
95
0.558689
8ea996a10908a9669c25e61cba0c543c1c7b0c64
707
/** * Copyright (c) 2009-2011, The HATS Consortium. All rights reserved. * This file is licensed under the terms of the Modified BSD License. */ package org.abs_models.backend.java.lib.runtime; import org.abs_models.backend.java.lib.types.ABSBool; public abstract class ABSExpGuard extends ABSGuard { public ...
21.424242
70
0.647808
8692bf4e28214f10df777e899c2f0d134eba53c9
2,742
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.codeInspection; import com.intellij.codeInsight.intention.HighPriorityAction; import com.intellij.openapi.project.Project; import com.intellij.psi.*; import ...
34.708861
140
0.776441
0813194c9909c48851426a1d30a6157f20b85156
1,273
package com.app.shakealertla.Utils; import android.animation.AnimatorSet; import android.animation.ObjectAnimator; import android.view.animation.OvershootInterpolator; import com.github.clans.fab.FloatingActionMenu; public class AnimUtils { // Colworx : Floating menu button Animation in Recent Earthquakes screen...
38.575758
118
0.739199
3446227997b548d21ab06f3d9a53ce73623144f9
15,421
package redis.clients.jedis.modules.json; import static org.junit.Assert.*; import static redis.clients.jedis.json.Path.ROOT_PATH; import static redis.clients.jedis.modules.json.JsonObjects.*; import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonObject; import java.util.Collection...
36.629454
110
0.665456
64265f544e9e45ea6012afb072e4de7969827ece
37,932
/* * 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 ...
38.666667
155
0.650902
9a9815ab61ba49343914060bff68c6f53dd13dc9
1,124
package p005cm.aptoide.p006pt.store.view; import android.content.res.Resources; import android.view.View; import android.view.View.OnClickListener; /* renamed from: cm.aptoide.pt.store.view.u */ /* compiled from: lambda */ public final /* synthetic */ class C5090u implements OnClickListener { /* renamed from: a ...
29.578947
130
0.66548
45725ad68e908c2d71ba7d4e7c175e562e794356
6,248
/******************************************************************************* * Copyright 2013 Analog Devices, 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:/...
24.030769
115
0.704866
fb79bfe02c56fa19420ce5cc24cf58de91108db1
2,306
package org.onetwo.common.jackson; import java.io.Serializable; import java.util.List; import com.google.common.collect.Lists; @SuppressWarnings("serial") public class StoreDetailVo implements Serializable { Long storeId; String storeName; String logoUrl; Double distance; String address; Doub...
17.603053
65
0.71856
cf49b6df5728cf1af8840b4dda1002d65691de49
1,172
package org.minima.system.commands.network; import org.minima.database.MinimaDB; import org.minima.system.Main; import org.minima.system.commands.Command; import org.minima.system.params.GeneralParams; import org.minima.utils.json.JSONObject; public class rpc extends Command { public rpc() { super("rpc","[enable:...
22.980392
114
0.698805
4d4397980b553e895c06303ad4a11c25d74d34a6
219
package net.vinote.smartboot.shared.converter; /** * 转换接口 * * @author Seer * @version Convert.java, v 0.1 2015年12月3日 下午8:18:55 Seer Exp. */ public interface Convert<T, S> { public T convert(S s); }
16.846154
63
0.634703
c62d3ae01d0cb8a0de78f9db51c26af371e1bb57
3,377
package ch.giesserei.imp; import java.io.FileInputStream; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Shee...
31.858491
112
0.551081
294cf164bbab80a9201287569a8bb5b432088ead
1,762
/* ================================================================== * Eniware Open Source:Nikolai Manchev * Apache License 2.0 * ================================================================== */ package org.eniware.central.datum.domain; import org.joda.time.LocalDate; import org.joda.time.LocalDateTime; i...
21.228916
79
0.646992
2971d1663a8f44a7028fd60fa1c6432b0f1849bc
3,003
/*- * #%L * IO Tesler - Workflow API * %% * Copyright (C) 2018 - 2019 Tesler Contributors * %% * 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/...
41.136986
141
0.763237
29a8873198f379ce854a987de343e767b196ab10
1,564
package com.wxw.cloud.service.impl; import com.wxw.cloud.dao.OrderDao; import com.wxw.cloud.domain.Order; import com.wxw.cloud.service.AccountService; import com.wxw.cloud.service.OrderService; import com.wxw.cloud.service.StorageService; import io.seata.spring.annotation.GlobalTransactional; import lombok.extern.slf4...
26.066667
81
0.661765
5f2cbb57765ae02f00536a869c0a4dae300086c6
385
/* * Copyright OpenSearch Contributors * SPDX-License-Identifier: Apache-2.0 */ package org.opensearch.sql.legacy.expression.core.builder; import java.util.List; import org.opensearch.sql.legacy.expression.core.Expression; /** * The definition of the {@link Expression} builder. */ public interface ExpressionBu...
21.388889
60
0.763636
70f6d87da0a231c3faa2bbe65cb6198645e009f6
839
package com.jiehe.demo.sort; import java.util.Arrays; /** * 冒泡排序,时间复杂度O(N^2),空间复杂度1. * <p>从左到右不断交换相邻逆序的元素,在一轮的循环之后,可以让未排序的最大元素上浮到右侧。</p> */ public class BubbleSort<T extends Comparable<T>> extends AbstractSort<T> { @Override public void sort(T[] arr) { boolean isSorted = false; for (int i = arr.length...
24.676471
79
0.576877
f78739674da593b6092024529f1e5dee39efec4f
291
package com.st.preload.disk; import java.io.File; /** * Unlimited version of {@link IDiskUsage}. * * @author Alexey Danilov (danikula@gmail.com). */ public class UnlimitedDiskUsage implements IDiskUsage { @Override public void touch(File file) { // do nothing } }
17.117647
55
0.670103
dbd9cd52ce32cf21977d90c9aced8a8d9a8b2f1b
434
/******************************************************* * Copyright 2018 jpcode * contact http://www.jpcode.net/ * * --- solid * ********************************************************/ package net.jpcode.solid.service; import java.util.List; import net.jpcode.solid.model.TaskInfo; /** * @author: billy z...
18.083333
58
0.513825
be7834a2aac9dc9b1abe4feae74a78bfb0a859ba
3,704
package de.baltic_online.base.swing; import javax.swing.JComboBox; import javax.swing.JTextField; import javax.swing.event.DocumentListener; import javax.swing.text.Document; import de.baltic_online.base.swing.plaf.basic.DocumentComboBoxEditor; /** * Diese Klasse stellt eine gewöhnliche JComboBox dar, wobei jedoch d...
29.870968
79
0.721382
2ba0e81abba2c1090b8c4bc5992ab7e91ae26d2c
1,250
/** */ package es.udima.cesarlaso.tfm.communications.tests; import es.udima.cesarlaso.tfm.communications.ServiceNotification; import junit.framework.TestCase; /** * <!-- begin-user-doc --> * A test case for the model object '<em><b>Service Notification</b></em>'. * <!-- end-user-doc --> * @generated */ public ...
22.321429
75
0.6576
9c3457ae5e88f13c59c23e38bd08929b9d67ab6a
617
package io.github.czerepko; import io.github.czerepko.i18n.translation.FileTranslationExecutor; public class I18nExample { private I18nExample() { } public static void main(String[] args) { if (args.length < 1) { System.out.println("No arguments provided! Template file paths should b...
30.85
110
0.659643
2db42b7fb31b38966c885ae223c6a92882b0eec3
1,673
/** * SequestPepxmlDownloadAction.java * @author Vagisha Sharma * Apr 13, 2009 * @version 1.0 */ package org.yeastrc.www.project.experiment; import java.util.List; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apac...
29.875
81
0.714286
ef0e9b443178c4e4f8822d6427ce5dc43311516b
10,878
/* * Copyright (c) 2008-2016, 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.06383
85
0.628608
0fd485312af6f124f8908bbfbffdde19e32080ce
316
package it.polito.s234844.thesis.db; public class TestDAO { public static void main(String[] args) { OrdersDAO dao = new OrdersDAO(); System.out.println(dao.loadOrders()+"\n\n\n"); System.out.println(dao.loadCustomers()+"\n\n\n"); System.out.println(dao.loadParts()+"\n\n\n"); } }
19.75
52
0.632911
f9888b9700db77a6dd162b6398caf7452732c113
1,050
public class Main { public static void main(String[] args) { Course mat = new Course("Math", "MAT101", "MAT"); Course fizik = new Course("Physics", "PHY101", "PHY"); Course kimya = new Course("Chemistry", "CHEM101", "CHEM"); Teacher t1 = new Teacher("John Steinbeck", "90550000000",...
35
99
0.591429
fa3293b373775c5c1631eee415931faef9f9ecab
5,984
package com.example.android.actionbarcompat.listpopupmenu; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.util.Log; import android.view.MenuItem; import android.view.View; import android.view.WindowManager; //impor...
36.487805
100
0.591076
8394b5e4fb08759798af65efd5532918bcfc6b4c
1,165
package com.redhat.bpm.remotemonitoring.scheduler.service.jolokia.properties; import org.apache.commons.configuration.Configuration; import org.apache.commons.configuration.ConfigurationException; import org.apache.commons.configuration.PropertiesConfiguration; import org.apache.commons.lang3.StringUtils; import java...
36.40625
91
0.733047
5900760e574de600465648f47d8c519646f561b2
1,217
import java.util.*; public class SortTest { public static void main(String[] args) { Random rng = new Random(); List<Integer> arrayList = new ArrayList<Integer>(); long before = System.nanoTime(); for(int i=0; i<50001; i++){ arrayList.add(rng.nextInt(50001)); } System.out.println(System.nanoTime()-befo...
33.805556
83
0.692687
3c625e4bed8c1a7d9578e5ef44470db59098be6e
2,633
package org.apache.maven.doxia; /* * 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, Ver...
36.068493
105
0.717812
34b16ae071d3607be9be769e382a6708abc555f6
2,015
/* * 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 com.auctiontory.model.entity; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Embedd...
23.988095
118
0.62928
6510262ddb93d08b6c4aeb9bb2129396e5a1bf85
1,042
package org.spideruci.tacoco; import java.io.File; import java.util.ArrayList; import java.util.Scanner; public class AnalysisOptions { public static final String CP_ARG = "-cp:"; public static final String AGENT = "analysis.agent"; public static final String AGENT_ARGS = "analysis.agent.args"; public static fina...
23.681818
69
0.693858
c07fd252890664cc2785b64543d5ac2be9c6be48
4,304
// By Iacon1 // Created 04/22/2021 // Just some misc. util functions package Utils; import java.awt.FileDialog; import java.awt.Image; import java.awt.Toolkit; import java.io.File; import java.io.FileWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Scanner; import javax.swing.JFrame; pub...
25.467456
120
0.682156
37a4d90507a6037847e76035e89b29be9709e75f
192
package com.task.payoneer.network.model; import java.util.List; import lombok.Getter; import lombok.Setter; @Getter @Setter public class Networks{ private List<ApplicableItem> applicable; }
19.2
41
0.802083
0f4394db8858433038e92f9f4b0f258543244841
1,470
package com.smt.kata.object; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.jupiter.api.Test; /**************************************************************************** * <b>Title</b>: LambdaExpressionsTest.java * <b>Project</b>: SMT-Kata * <b>Descriptio...
25.789474
97
0.627891
227d4902ff811cfc9b53483294b9814b684165e9
2,255
/* * 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 ...
32.214286
114
0.686918
4108c13c90303b9010bcc94448af5bfac49b1bcd
1,347
import static org.junit.Assert.*; public class ATriangleTest { private void checkClassification(int[][] triangles, int expectedResult) { for (int[] triangle: triangles) { int triangleType = ATriangle.classifyTriangle(triangle[0], triangle[1], triangle[2]); assertEquals(expectedResu...
37.416667
101
0.636971
097da5c588ab178b45b38ada9d0452a53fbbc659
1,582
package cresla.entities.reactors; import java.lang.reflect.Field; import java.util.LinkedList; import cresla.interfaces.AbsorbingModule; import cresla.interfaces.Container; import cresla.interfaces.EnergyModule; import cresla.interfaces.Module; import cresla.interfaces.Reactor; public abstract class AbstractReactor ...
23.61194
84
0.764855
445bf820e3f6b530f03fe76007b9cd21d44f57a8
6,157
package com.kk.demo; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.FrameLayout; import android.widget.LinearLayout; import com.kk.control.DraggableLinearLayoutTouchListener; /** * Created by xj on 13-7-18. */ public class MainActivity extends Activity { ...
41.046667
208
0.645931
70de0117e7442d40ddd013f1abdb5990eede4d0b
510
package com.systemorderproducer.aplicatiton.core.configuration; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import org.springframework.util.ErrorHandler; @Component public class JmsErrorHandler implements ErrorHandler { private static final Logger LOG...
30
88
0.784314
8dbd6935fa65f4cb4a30eab3f56266a054f4a8d0
7,360
package ferramong.pay.controllers; import ferramong.pay.entities.Payment; import ferramong.pay.models.payment.CreditCardPayment; import ferramong.pay.models.payment.CreditoolsPayment; import ferramong.pay.models.payment.DebitCardPayment; import ferramong.pay.models.payment.MoneyPayment; import ferramong.pay.services.W...
35.215311
180
0.599049
674dbe5ad0067dc2fe7efc49aa34413426c6d62a
1,912
package com.thesis.webapi.services.impl; import com.thesis.webapi.dtos.ReportCreateDto; import com.thesis.webapi.entities.Report; import com.thesis.webapi.repositories.ReportRepository; import com.thesis.webapi.services.ReportService; import org.springframework.beans.factory.annotation.Autowired; import org.springfram...
34.763636
102
0.757322
ffcadc7f3f670cdecc35d70de17240db25b1843b
349
package org.stepic.droid.web; import org.stepic.droid.model.Meta; import org.stepic.droid.model.Unit; import java.util.List; public class UnitStepicResponse extends StepicResponseBase { List<Unit> units; public UnitStepicResponse(Meta meta) { super(meta); } public List<Unit> getUnits() { ...
17.45
60
0.690544
b6baf502f1aa97c1af2e66dd560ae8ac3d600e3e
4,216
package git.jbredwards.njarm.client.jei; import com.google.common.base.Stopwatch; import com.google.common.collect.ImmutableList; import git.jbredwards.njarm.Main; import git.jbredwards.njarm.common.Constants; import git.jbredwards.njarm.common.init.ModItems; import git.jbredwards.njarm.common.init.ModTags; import mez...
39.773585
177
0.67149
f0e97b72fc9a8b75b1a4bfba82335934b35eaee7
372
package rv_msgs; public interface JointVelocity extends org.ros.internal.message.Message { static final java.lang.String _TYPE = "rv_msgs/JointVelocity"; static final java.lang.String _DEFINITION = "float64[] joints\n"; static final boolean _IS_SERVICE = false; static final boolean _IS_ACTION = false; double...
33.818182
73
0.760753
047be3849b64d60dd11f149d980c79759fbd6c2c
763
package project.client; import java.io.DataInputStream; public class MessageReceiverFactory { private final DataInputStream in; private final String downloadPath; private static final String FILE_TYPE = "file"; private static final String CHAT_TYPE = "message"; public MessageReceiverFactory(...
28.259259
76
0.668414
c229537b3ac41ae716475c718d89839c5fc72d85
428
package com.rootrl.androidsamples.Banner; import android.view.View; /** * Description: * Data:5/10/2018-10:01 AM * * @author yanzhiwen */ public abstract class BannerAdapter { /** * 根据位置获取ViewPager的子View * * @param position * @return */ public abstract View getView(int position, ...
15.851852
65
0.602804
28fbdc20c6b4fb18c85f8b20626cc8db48a71f5c
419
package org.phoenix.leetcode.challenges; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; class Problem08_ShiftingLettersTest { private final Problem08_ShiftingLetters test = new Problem08_ShiftingLetters(); @Test void shiftingLetters() { int[] shi...
26.1875
83
0.720764
df99e2b39ff36ff4fa848c8c96e723aa7ed0a46a
1,291
package com.enioka.scanner.camera; import android.graphics.ImageFormat; import android.graphics.Point; import android.graphics.Rect; import android.graphics.YuvImage; import android.os.AsyncTask; import java.io.ByteArrayOutputStream; /** * Convert Yuv Image format used in preview to Jpeg */ public class ConvertPre...
27.468085
108
0.685515
09cf10d8cfb1094726bbb21fa46bf97afe4cbc15
2,465
package sw.laux.Studentrack.presentation.WebShell; import sw.laux.Studentrack.persistence.entities.Grade; import sw.laux.Studentrack.persistence.entities.Module; import sw.laux.Studentrack.persistence.entities.TimeDuration; // Plain, simple object as container for statistics results in the frontend public class Modul...
29.345238
90
0.745233
c2d3049c24a3ef209ce20c4b8041e58ca3844069
4,964
package tech.sosa.ingweb.infrastructure.persistence.director; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList; import java.util.Collection; import tech.sosa.ingweb.application.director.service...
30.832298
118
0.73751
25ae72054f204fbe57cc38dc411eb54f34e5a648
1,959
// Generated code from Butter Knife. Do not modify! package com.codepath.apps.twitter.activities; import android.view.View; import butterknife.ButterKnife.Finder; import butterknife.ButterKnife.ViewBinder; public class ProfileActivity$$ViewBinder<T extends com.codepath.apps.twitter.activities.ProfileActivity> impleme...
52.945946
131
0.755998
5047327da96e8b6d101dbc8db7a8686ec436752f
429
class Solution { public int XXX(int m, int n) { // dp代表当前位置的路线数 // 初始化0行0列防止越界 int[][] dp=new int[m+1][n+1]; // 初始化起点 dp[1][1]=1; for(int i=1;i<=m;i++){ for(int j=1;j<=n;j++){ if(i==1&&j==1) { continue; ...
20.428571
47
0.328671
27f21d520a8f61ebfd8d13830d3be1fe8759609a
5,248
package com.zw.platform.repository.modules; import com.zw.app.entity.appOCR.PersonnelIdentityInfoUploadEntity; import com.zw.platform.domain.basicinfo.Personnel; import com.zw.platform.domain.basicinfo.form.PersonnelForm; import com.zw.platform.domain.basicinfo.query.PersonnelQuery; import com.zw.platform.domain.infoc...
24.523364
116
0.634527
dd1a974848cc130be06e3013b8d20a6774762513
2,616
package com.heaven7.databinding.core.listener; import android.text.Editable; import android.text.TextWatcher; /** * Created by heaven7 on 2015/11/21. */ public class TextWatcherImpl extends ListenerImplContext implements TextWatcher{ public static class BeforeTextChangeImpl extends TextWatcherImpl{ @Ov...
31.518072
122
0.543578
b031b63eb560f5ff4286b52bd1cfa27db5729fbc
446
package co.ommu.mlibjogja.components; public class Utility { public static String baseURL = "http://mlib.bpadjogja.info"; public static String bookSearchPathURL = "/book/search/keyword"; public static String bookDetailPathURL = "/book/search/view"; public static String mediaPathURL = "/public"; pub...
44.6
130
0.746637
db9f2b70add8484b6156a29c873642debac584cc
5,857
// 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 com.appboy.ui.inappmessage.factories; import android.content.res.Resources; import android.view.animation.AlphaAnimation; import android.view.anim...
44.371212
130
0.621308
542addfabb7deb06b64528910d77aced0b90c86a
1,031
package fr.ph1lou.werewolfapi.role.interfaces; import fr.ph1lou.werewolfapi.enums.Camp; import fr.ph1lou.werewolfapi.player.interfaces.IPlayerWW; import org.bukkit.event.Listener; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.UUID; public interface IRole exten...
17.775862
65
0.70999
5815130f096d7c9e21b309069320038df17f2cf1
2,648
/* * Copyright 2019 Jonathan West * * 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 ...
27.873684
102
0.726964
94bc80d7cd600225ff57562fc2329a255ee85933
2,727
/* * Copyright (c) 2002, 2003, 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.701493
79
0.737074
4a386380de85d81ad698254df2b33d0fba5ea6d8
3,750
/** * Leetcode - Algorithm - * Definition for singly-linked list with a random pointer. * class RandomListNode { * int label; * RandomListNode next, random; * RandomListNode(int x) { this.label = x; } * }; */ package com.ciaoshen.leetcode; import java.util.*; import com.ciaoshen.leetcode.myUtils.Ran...
37.128713
103
0.540267
700cf4cd23c5b2f0a857b2f486d01bbe67660fa0
18,154
/* * Copyright MapStruct Authors. * * Licensed under the Apache License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0 */ package org.mapstruct.ap.internal.model; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.lang.model.type.Ty...
43.744578
120
0.614245
4082338f6c7fc323069bcbc4cc2a84067fe94cc3
2,384
__________________________________________________________________________________________________ sample 45 ms submission class PeekingIterator implements Iterator<Integer> { Integer temp; Iterator<Integer> iterator; public PeekingIterator(Iterator<Integer> iterator) { // initialize any member h...
26.488889
98
0.630872
28a0ab0c6a971f2ddf814e240f871f3755d79702
1,228
package com.leetcode; import java.util.HashMap; import java.util.Map; /** * 1207. Unique Number of Occurrences * https://leetcode.com/problems/unique-number-of-occurrences/ * * Given an array of integers arr, write a function that returns true * if and only if the number of occurrences of each value in the array...
24.56
81
0.604235
892d8f746d06190550fce900e5a60ce21b1a6ca9
6,835
package org.sagebionetworks.repo.model.message; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.sql.Timestamp; import java.util.ArrayList; import java.util.List; import org.jun...
32.240566
82
0.76635
811bf61a1d3f2ae37d7058b07fa4c9198d79e708
264
package com.intellij.lang.jsgraphql.ide.project.graphqlconfig.model; /** * graphql-config security config */ public class GraphQLConfigSecurity { public GraphQLConfigCertificate clientCertificate; public GraphQLConfigCertificate clientCertificateKey; }
26.4
68
0.814394
0ece69193f3321c6f191d4dfce012091f16e4367
3,701
package main; import java.util.HashSet; import java.util.Set; public class PriorityQueue { private java.util.PriorityQueue<QueueEntry> data; private Set<Integer> containedIndices; private Set<Integer> blackList; /** * Creates an empty PriorityQueue. */ public PriorityQueue() { data = ...
23.573248
82
0.618752
2704402afa428036ce24d0aba4cc7747eb91a3b9
309
package cn.zhuoqianmingyue.aop.helloworld; import java.text.SimpleDateFormat; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class CloseAdvice { private static final Logger log = LoggerFactory.getLogger(OpenAdvice.class); public void close() { log.info("关门....."); } }
22.071429
78
0.724919
fb29d84d02e98c8abe0d1c4d27b96207899a8228
1,025
package com.springcloud.filter; import com.netflix.zuul.ZuulFilter; import com.netflix.zuul.context.RequestContext; import com.netflix.zuul.exception.ZuulException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; public class FeignZuulFilter extends ZuulFilter {...
23.837209
130
0.69561
3e147559476bb59e6090abb6d0b1d6a80e8aa081
7,213
package com.semanadeeletronica.destincompleto; import android.app.Activity; import android.os.AsyncTask; import android.os.Bundle; import android.util.Log; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.AdapterView; import android.widget.ListView; import android...
37.567708
130
0.648829
20b954fb5b69b7a8f1cba04d7777e7365a604066
2,094
package models.extend; class ParentClass { private String privateField = "父类变量--private"; /* friendly */String friendlyField = "父类变量--friendly"; protected String protectedField = "父类变量--protected"; public String publicField = "父类变量--public"; // private的变量无法直接访问,因此我们给他增加了一个访问方法 public String...
32.71875
75
0.683381
c022bfd061e449b91fd8a7d3c1e5ac3d45507d0b
3,865
/* * Copyright 2019 Ivan Pekov (MrIvanPlays) * Copyright 2019 contributors * 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...
39.845361
104
0.600517
a5cf8de026046a0ca963c93b5b9291911c37e298
600
package jRAT.moduleAuxiliary; import java.io.File; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import org.jnativehook.DefaultLibraryLocator; public class ModuleKeyloggerCustomLibraryLocator extends DefaultLibraryLocator { private static String libraryPath; public stati...
23.076923
80
0.703333
a4b8033b303fbb13b4956b6d89de584ca6b1bed4
557
package com.davidche.appfabric.uaa.model.payload; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Data; import javax.validation.constraints.NotBlank; @Data @Schema(name = "Token refresh Request", description = "The jwt token refresh request payload") public class TokenRefreshRequest { @NotBlank...
30.944444
107
0.759425
e2bf6accc9d3ff0dbf1ddfc4d8a14350138390f5
345
package com.windchat.im.business.bean; import java.lang.annotation.Documented; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; /** * customized annotation * * @author Librena * @since 2020-10-20 */ @Retention(RetentionPolicy.RUNTIME) @Documented public @interface ApiActions { ...
17.25
44
0.75942
4054a7c4beea457b255888cc28b0b85983c23524
3,365
package mockzebra; import java.io.IOException; import java.net.ServerSocket; import static com.esotericsoftware.minlog.Log.*; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileOutputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import ...
23.047945
115
0.661516
2cb8c2b8c4b981a1f8d9e89cb924f2766cd98e74
248
package com.majoapps.propertyfinderdailyscan.utils; public interface IServiceHelper { String callHTTPService(String endpoint, HttpMethod method, String json, Boolean basic, String authorization) throws Exception ; }
35.428571
90
0.733871
f4d0a9a1b04f8002b5b7fc62d8f0a75c34813f56
47,011
/******************************************************************************* * Copyright (c) 2000, 2012 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, an...
36.190146
204
0.672204
0c9cc57824f41759ec113c0be8b55026572c82aa
392
package com.frankdevhub.site.entities; import java.util.Properties; @SuppressWarnings("all") public class ConfigProperties extends Properties { public synchronized ConfigProperties setProperty(String key, String value) { super.setProperty(key, value); return this; } public synchronized ConfigProperties put(O...
21.777778
77
0.770408
a123ed13f37bf867b3e70176e27f509cdb156739
5,434
/* * Licensed to the Netuno.org under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The Netuno.org licenses this file to You under the Apache License, Version * 2.0 (the "License"); you may not use this fil...
35.986755
195
0.701509
3c75eaaff68651289441072307d32291e6bc6511
1,868
/* * Copyright 2021. Santanu Sinha * * 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 w...
37.36
129
0.690578
511ebba29276a3c4d79c41c744c96082bb683e3a
1,815
package com.lovi.puppy.core; import org.apache.log4j.Logger; import com.lovi.puppy.core.async.AsyncExecutor; import com.lovi.puppy.core.web.HttpResponse; import com.lovi.puppy.core.web.HttpServer; import com.lovi.puppy.core.web.RequestMapper; import com.lovi.puppy.core.web.enums.HttpMethod; import junit.framework.Test...
22.974684
70
0.661157
660da5b5159f252f5bcb8f0ab0f87aae9ee70d35
8,470
package org.oliot.khronos.persistent; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.bson.BsonValue; import org.oliot.khronos.common.ExceptionFactory; import org.oliot.khronos.common.Tokens; /** * @author Marko A. Rodriguez (http:/...
31.486989
109
0.683471
60e3fbb73b4e4914627db02070b51d7ba0e2ffb7
1,166
package vulc.luag.gfx.gui; public class GUITextBox extends GUILabel { public static final int ALL_TEXT = 0; public static final int DEC_ONLY = 1; public static final int HEX_ONLY = 2; public int acceptedText = ALL_TEXT; public int nChars = -1; public GUITextBox(int x, int y, int w, int h) { super(x, y, w, h...
22.423077
69
0.578045
becee333fbdb27dd7e78e6fc07b78e7bcb758e55
1,970
/* ### * IP: GHIDRA * * 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 writin...
34.561404
134
0.785279
9a7a660da59f0d77ad5623c40d65fe500fee373b
7,179
package lab08.search; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.util.*; /** * This class represents a searchable list of keywords. Each search returns a * list of PageInfo objects representing all of the web pages that are * associated with the keywords that were searched fo...
33.863208
105
0.706784
e67ce3ca99d3d1c19328f750f4656400382cf15f
8,534
package com.pvsagar.smartlockscreen.baseclasses; import android.content.ContentValues; import android.util.Log; import com.pvsagar.smartlockscreen.backend_helpers.Utility; /** * Created by aravind on 5/8/14. * * Abstract class for Environment Variables. Each variable will extend it and use it accordingly */ publ...
34.97541
114
0.632412
11c258d830c9060ac1cb4ccefb281d5294da333d
1,463
package com.ksr.webapp.mes.base.company; import com.ksr.webapp.common.util.CommonUtils; import com.ksr.webapp.common.vo.VMap; import com.ksr.webapp.mes.common.CommonDAO; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction....
29.857143
145
0.732741
5b7deb87e63394ed4ea9cd6f3b9d5a06324537a9
359
package com.alstom.reflection; import java.lang.reflect.Method; public class App { public static void main(String[] args) throws ClassNotFoundException { Class<?> cls = Class.forName("com.alstom.reflection.CTwo"); Method[] methods = cls.getMethods(); for (Method method : methods) { System.out.pri...
22.4375
72
0.682451
dac10035ab4e649ad126e48055e89955f5fef62b
11,827
package com.xianglesong.logs.logback; import java.net.InetAddress; import java.net.UnknownHostException; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Map.Entry;...
30.560724
100
0.532764
69051ec9fc340f09b7ed85b17750dc78059bcfa2
19,525
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: BceTrack.proto package com.xinqihd.sns.gameserver.proto; public final class XinqiBceTrack { private XinqiBceTrack() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public interface Bce...
35.694698
139
0.642663
187db02b7a5a6431c8c4ee09e6a6656a67ae7362
2,586
package agency.tango.viking.processor.module; import com.squareup.javapoet.AnnotationSpec; import com.squareup.javapoet.MethodSpec; import com.squareup.javapoet.ParameterSpec; import com.squareup.javapoet.TypeSpec; import javax.annotation.processing.ProcessingEnvironment; import javax.inject.Named; import javax.lang.m...
36.422535
100
0.766435
14f105f0a6f90d8553c8a1105803072c04599190
1,352
package net.querz.mcaselector.filter; public abstract class IntFilter extends NumberFilter<Integer> { protected int value; public IntFilter(FilterType type, Operator operator, Comparator comparator, int value) { super(type, operator, comparator); this.value = value; setRawValue(value + ""); } @Override p...
18.026667
89
0.670118
f62d000c2ad2297543a84722eb2d7e05f28c314c
2,401
package network; import java.util.Map; import bean.DataInfo; import bean.Movie; import bean.NewTop; import okhttp3.ResponseBody; import retrofit2.Call; import retrofit2.Response; import retrofit2.http.GET; import retrofit2.http.Path; import retrofit2.http.Query; import retrofit2.http.QueryMap; import rx.Observable; ...
25.817204
88
0.575177
0578bc9856a1cd8404956a4d398ebf84bd6d8f9c
802
package com.example.currentnews.ui.sources; import android.app.Application; import androidx.annotation.NonNull; import androidx.lifecycle.AndroidViewModel; import androidx.lifecycle.LiveData; import com.example.currentnews.data.NewsRepository; import com.example.currentnews.models.Source; import com.example.currentn...
30.846154
94
0.796758
51c1cd33dcdc83bed062ea213983e7291aa109d8
2,260
package com.twu.biblioteca.models; import com.twu.biblioteca.models.Book; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class BookTest { private Book book; @Before public void onBefore(){ book = generateBook(); } @Test public void TestBoo...
25.977011
79
0.642478
cba5922eff359802fcfd4ede7aac0f3d38bc7b1c
195
package com.lidong.spring.pratice2; public class UserDao { public UserDao() { // TODO Auto-generated constructor stub } public void login() { System.out.println("UserDao login"); } }
13.928571
41
0.697436
9a246da404611b8283f56a69afdb7bd92e1a75a0
7,735
package de.thro.inf.vv.MarketingService; import com.google.gson.Gson; import com.rabbitmq.client.DeliverCallback; import de.thro.inf.vv.OAService.RabbitMQConnection.MQConnection; import de.thro.inf.vv.OAService.customer.Customer; import de.thro.inf.vv.core.Queues; import org.springframework.http.*; import org....
44.97093
163
0.657014
b326d3f7d06376226430ed789dd7ab99c7bc85ef
278
package com.codurance.training.tasks; public class AddProjectCommand extends Command { public AddProjectCommand(NodeType nodeType, ProjectName projectName) { super(CommandAction.ADD, nodeType, projectName); } @Override public void execute() { } }
21.384615
74
0.719424
64282b2ce2b2e7cfdc7184e8a8f5d12cd68a55bc
5,547
package biweekly.io.scribe.property; import biweekly.ICalDataType; import biweekly.ICalVersion; import biweekly.io.ParseContext; import biweekly.io.WriteContext; import biweekly.io.json.JCalValue; import biweekly.io.xml.XCalElement; import biweekly.parameter.Encoding; import biweekly.parameter.ICalParameters;...
31.517045
115
0.723454