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
49b965b1e01ae130ad8b358318e696c6da2ddb61
2,369
package org.gusdb.wdk.model.user.dataset; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import org.gusdb.wdk.model.WdkModel; import org.gusdb.wdk.model.WdkModelBase; import org.gusdb.wdk.model.WdkModelException; public class UserDatasetTypeHandlerPlugin extends WdkModelBas...
34.838235
162
0.736598
44db12d01c5bee1f79020cbaf25bbc987624bc70
878
package prune.feature.csv; import java.io.File; import java.io.IOException; import net.sf.javaml.core.Dataset; import net.sf.javaml.featureselection.ranking.RecursiveFeatureEliminationSVM; import net.sf.javaml.featureselection.scoring.GainRatio; import net.sf.javaml.tools.data.FileHandler; public class RankFeature {...
28.322581
127
0.676538
69208059b694699518a42e8a301d23eafc933de6
6,112
package com.example.todolist.ui.fragment; import android.app.AlarmManager; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.app.PendingIntent; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.S...
35.534884
176
0.661976
7ba4b928b62a52470d620fbfa490f06e486275cc
9,047
package net.herit.iot.onem2m.test; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import net.herit.iot.message.onem2m.format.Enums.CONTENT_TYPE; import net.herit.i...
37.077869
234
0.700453
1f5e9c69609d99a1902d29d4b0e817359fa591d1
1,920
package kassandraApp; import org.salespointframework.core.DataInitializer; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import kassandraApp.model.AudioGuide; import kassandraApp.model.EventCatalog; import kassandraApp.model.GreatHall; import kassandra...
43.636364
141
0.754688
1aea0d8b0b2b99b4b05c366c0084370b6da65e46
928
/* * Copyright (c) 2010-2017, sikuli.org, sikulix.com - MIT license */ package org.jdesktop.swingx.tips; import org.jdesktop.swingx.tips.TipOfTheDayModel.Tip; /** * Default {@link org.jdesktop.swingx.tips.TipOfTheDayModel.Tip} implementation.<br> * * @author <a href="mailto:fred@L2FProd.com">Frederic Lavigne</a>...
18.196078
84
0.615302
eef1ada79e433330fd47070b6221cf0df4c2aeed
561
package concurrency_patterns; import org.junit.jupiter.api.Test; public class TestLeaderFollower { @Test void test_single_thread_server() throws Exception { SingleThreadServer sts = new SingleThreadServer(); sts.start(); } @Test void test_half_sync_half_async_server() throws Exception { HalfSyncHalfAsync...
22.44
65
0.768271
1009bb1732531f9edcaa8e6c1f1be25657f553bc
278
package com.thaiopensource.xml.dtd.om; public abstract class EnumGroupMember { public static final int ENUM_VALUE = 0; public static final int ENUM_GROUP_REF = 1; public abstract int getType(); public abstract void accept(EnumGroupVisitor visitor) throws Exception; }
27.8
73
0.784173
7daf380e9aedd150dafde60643e6491a45dc132b
1,123
package com.optimaize.wanakana; /** * Converts Katakana syllables to Hiragana. * The conversion is 1:1. */ public class KatakanaToHiraganaConverter implements Converter { private KatakanaToHiraganaConverter() { } private static final KatakanaToHiraganaConverter INSTANCE = new KatakanaToHiraganaConvert...
26.116279
98
0.627783
f0f017a4a5ab93072095c065368127cb007a3e09
214
package com.kadia.kblogserber.mapper; import com.kadia.kblogserber.entity.Info; import org.springframework.data.jpa.repository.JpaRepository; public interface InfoMapper extends JpaRepository<Info, Integer> { }
23.777778
66
0.827103
0e115f18f3987e76008d3457b90108110eaa59b8
114
/** * Classes and packages related to the {@link jr.dungeon.Dungeon} - all gameplay code. */ package jr.dungeon;
28.5
86
0.710526
6d38ebf97e3b5502ee9701dedaafe0ea0ea5ad4c
1,047
package org.infinispan.protostream.types.protobuf; import org.infinispan.protostream.GeneratedSchema; import org.infinispan.protostream.annotations.AutoProtoSchemaBuilder; import org.infinispan.protostream.annotations.ProtoFactory; import org.infinispan.protostream.annotations.ProtoField; /** * @author anistor@redha...
24.348837
69
0.680993
7d7fbfd879ad1ab1b9484223c52648b68aa297ed
841
package org.apache.http.conn; import java.io.IOException; import java.net.InetSocketAddress; import org.apache.http.HttpHost; import org.apache.http.config.SocketConfig; import org.apache.http.protocol.HttpContext; public interface HttpClientConnectionOperator { void connect(ManagedHttpClientConnection paramManaged...
44.263158
238
0.819263
89a493deae023d0e3fde16f092f9c99c9c0b9db3
119
package ru.otus.auth; public interface ClientAuthService { boolean authenticate(String login, String password); }
19.833333
56
0.781513
96422ea3ee16c83569cf7c9dda4f7be91af741ee
16,290
package green_green_avk.ptyprocess; import android.annotation.TargetApi; import android.os.Build; import android.os.ParcelFileDescriptor; import android.support.annotation.Keep; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.system.ErrnoException; import android.s...
33.9375
99
0.631062
7cc8a4581e78023922190d26e6374f2dc2cd8192
1,850
/* * Copyright 2019 * heaven7(donshine723@gmail.com) * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
30.327869
94
0.655676
7e5350e2dd3fe166fd2bb455fd919b3b5f2a9c1f
1,637
package ox.softeng.metadatacatalogue.test.restapi.service; import static org.junit.Assert.assertTrue; import org.flywaydb.test.annotation.FlywayTest; import org.junit.Test; import com.fasterxml.jackson.databind.JsonNode; import ox.softeng.metadatacatalogue.api.ClassifierApi; import ox.softeng.metadatacatalogue.doma...
27.283333
104
0.770312
501e8de0cfdcf702c0010fe36d91de924c00d1b1
1,137
package com.appdirect.challenge.domain.appdirect; public class Marketplace { private String partner; private String baseUrl; public String getPartner() { return partner; } public void setPartner(String partner) { this.partner = partner; } public String getBaseUrl() { return baseUrl; } public void ...
22.74
73
0.652595
9a8e1bacd876949016af0453039586e172d063fa
1,182
package io.github.ulisse1996.jaorm.integration.test.projection; import io.github.ulisse1996.jaorm.annotation.Column; import io.github.ulisse1996.jaorm.annotation.Converter; import io.github.ulisse1996.jaorm.annotation.Projection; import io.github.ulisse1996.jaorm.entity.converter.BooleanIntConverter; import java.math...
20.37931
71
0.664975
555434837c82efa3f1c4f126e288bbf188c49f53
1,426
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.config.subscription; import org.junit.Test; import java.io.File; import java.io.IOException; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; impor...
30.340426
118
0.676718
e48fea15b7f2748ee33dcc87e7ba56df58a946da
151
package org.dase.ecii.core; public enum ECIIVersion { /** * */ V0, /** * */ V1, /** * */ V2 }
7.947368
27
0.324503
494b24828a6f50f3e08be0a1652db9a7c5a13caf
1,739
package net.astercrono.pcsetup.dataaccess.hibernate; import java.util.Date; import javax.persistence.NoResultException; import javax.persistence.Query; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Repository; import net.ast...
25.955224
69
0.765957
118cd256ddccb06830821cd0ab1cef2e88ccb030
2,895
/* * ImageCarousel.java * * Created on April 12, 2007, 2:45 PM * * Copyright 2006-2007 Nigel Hughes * * 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/ * li...
33.275862
117
0.648705
8e7b5b24805bf303fc91b5af18b113f4d69be7a5
1,539
package com.xtech.sunshine_tutorial; import android.content.SharedPreferences; import android.content.SharedPreferences.OnSharedPreferenceChangeListener; import android.os.Bundle; import android.preference.Preference; import android.preference.PreferenceActivity; import android.util.Log; public class SettingsActivity...
30.78
102
0.688759
7742bf79575f71499d9f1f19c642c87b7ad6152b
2,810
package party.dabble.redstonemod.util; import java.util.HashMap; import org.apache.logging.log4j.LogManager; import net.minecraft.util.BlockPos; import net.minecraft.world.World; public class PowerLookup { private static HashMap<BlockPos, Byte> powerMap_Overworld = new HashMap<BlockPos, Byte>(); private static Ha...
31.573034
114
0.696441
19fa63c18106b022061065bdb7179fa04e59ec77
257
package designModel.creation.abstractFactory.products; /** * @author masuo * @data 2021/9/6 10:21 * @Description */ public class GeliWM extends WM{ @Override void wash() { System.out.println("This is a GEli washing machine!"); } }
17.133333
62
0.653696
4c4e94b7f89c9823ee7d664d9408a6c161b4294f
4,158
package com.umapathi.greeshma.todoapplication; import android.app.IntentService; import android.app.NotificationManager; import android.app.Service; import android.net.ConnectivityManager; import android.os.IBinder; import android.os.PowerManager; import android.content.Intent; import android.content.Context; import ...
34.363636
128
0.675325
41427d18f78ee1b07d8994bfc5519dd4747cf5f0
3,676
/* * Copyright 2017 Gabor Varadi * * 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...
28.71875
117
0.637922
c61fb956b90fda6c8e2473bf89d56cbf691b2cd2
6,625
/* Copyright 2021 Adobe. All rights reserved. This file is licensed to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ...
40.396341
130
0.641358
6191e664d90b7d702e0cb06a19074736d33c5d1c
139
//compile errors package p; class A { void m() { /*[*/ final int /*]*/ i = 0; List l; } ; }
9.266667
23
0.338129
3729cdb7b2e315b8e54dea56bdf60c5c96ffd765
1,376
/* * Copyright 2010 Internet Archive * * 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 t...
24.571429
70
0.639535
7e3a807c8fc8bdef73b05523332466e65296a308
3,567
package in.co.itlabs.ui.components; import java.util.Locale; import com.vaadin.flow.component.ComponentEvent; import com.vaadin.flow.component.ComponentEventListener; import com.vaadin.flow.component.button.Button; import com.vaadin.flow.component.button.ButtonVariant; import com.vaadin.flow.component.datepic...
28.309524
100
0.743762
5ac1a7781bb5f0136186fa08f1c1208cfc2c0831
229
package com.corejava.assignment.threads; public class PrintMachineSR extends Thread { Printer printer; PrintMachineSR(Printer printer) { this.printer=printer; } @Override public void run() { printer.print(); } }
12.722222
42
0.724891
74942ed8500e81702cd85398a0e34105ab35d60d
584
package com.github.ftrossbach.kiqr.client.service; import com.github.ftrossbach.kiqr.commons.config.querymodel.requests.Window; import org.apache.kafka.common.serialization.Serde; import java.util.Map; import java.util.Optional; /** * Created by ftr on 10/03/2017. */ public interface SpecificBlockingKiqrClient<K,V>...
22.461538
76
0.726027
73af0a055e303829b4baf2659091d4f94a9d546d
19,214
/* * * 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"); y...
42.228571
168
0.676226
efaaf2ce026c4fd495bf406d9ef441f7332e0ccf
571
package com.maxmind.minfraud.request; import com.maxmind.minfraud.request.Shipping.Builder; import com.maxmind.minfraud.request.Shipping.DeliverySpeed; import org.junit.Test; import static org.junit.Assert.assertEquals; public class ShippingTest extends AbstractLocationTest { Builder builder() { return ...
28.55
85
0.747811
1bc3038cc57d7403ed28d51e18d31896a60b47a0
1,754
package com.hncboy; /** * @author hncboy * @date 2019/12/9 10:24 * @description 1013.将数组分成和相等的三个部分 * <p> * 给定一个整数数组 A,只有我们可以将其划分为三个和相等的非空部分时才返回 true,否则返回 false。 * 形式上,如果我们可以找出索引 i+1 < j 且满足  * (A[0] + A[1] + ... + A[i] == A[i+1] + A[i+2] + ... + A[j-1] == A[j] + A[j-1] + ... + A[A.length - 1])  * 就可以将数组三等分。 *...
28.290323
105
0.488597
bcacb6def7254644c09d9105fce48726b45983e5
3,139
/* * MIT License * * Copyright (c) 2019 everythingbest * * 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, m...
36.5
160
0.747372
c34cd0ea6ddc269aff15891f132874967fa31049
284
package com.nvinas.hnews.ui.comments; import dagger.Binds; import dagger.Module; /** * Created by nvinas on 10/02/2018. */ @Module public abstract class CommentsModule { @Binds abstract CommentsContract.Presenter commentsPresenter(CommentsPresenter commentsPresenter); }
18.933333
95
0.771127
779e76bd073ff26e22bb832d731c79645912cfd2
1,882
package com.entity; import javax.persistence.*; import java.util.Date; @Entity @Table(name = "cloudplateform_exam") public class Exam { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "id", columnDefinition = "int(11)") private Long id; @Column(name = "user_id", columnDefi...
20.456522
67
0.611052
6c9a9e8e222f855b9e71d6251c9c8b3b42fb9635
19,672
/* * Originally based on io.realm.RealmBaseAdapter * ============================================= * Copyright 2014 Realm 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 * * htt...
38.87747
100
0.553172
765eb42020cd4d1ea35c9100f75fb81c67fd569a
1,160
package com.seal.websocker.controller; import com.seal.websocker.model.RequestMessage; import com.seal.websocker.model.ResponseMessage; import org.springframework.messaging.handler.annotation.MessageMapping; import org.springframework.messaging.simp.SimpMessagingTemplate; import org.springframework.stereotype.Controll...
34.117647
89
0.757759
b54c7f47bb420b3763418883bd7e9f38578bd43c
390
package com.lenovo.compass; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import springfox.documentation.oas.annotations.EnableOpenApi; @SpringBootApplication @EnableOpenApi public class CompassApplication { public static void main(String[] a...
24.375
68
0.833333
88793e1d51442dc8e2663c28bbf52de185f454e8
5,005
/* * 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.security.action.interceptor; import org.apach...
56.235955
138
0.656943
9b6ff498fda5b1b0702c610cf918ac67cc7507b2
1,243
package simulations; import cells.Cell; import cells.ParameterBundle; import grids.AbstractGrid; import javafx.scene.layout.Pane; /** * Generic Simulation -- handles most cases where cells don't move * * Holds a grid of cells * * Depends on Cell, AbstractGrid, Pane, ParameterBundle * * @author Ian Eldridge-...
20.048387
67
0.706356
f037d70654377b4c1c97c71a724d93933f7c49e0
19,836
/* * Copyright 2014 Google 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 by applic...
36
100
0.722928
17163abd244e6ae60dc07d63162e066652eb21ea
328
package com.tqmars.requisition.domain.Specification; /** * 与规约类型 * @author jjh * @param <T> * 满足规约的对象 * @date 2015-12-16 16:54 * */ public class AndSpecification<T> extends CompositeSpecification<T>{ public AndSpecification(ISpecification<T> left, ISpecification<T> right,Class<T> t) { super(left, right,t)...
18.222222
86
0.70122
fd4059759d258d232695ef3dfe73901c3c46b370
6,217
package org.main.smartmirror.smartmirror; import android.content.Context; import android.net.nsd.NsdManager; import android.net.nsd.NsdServiceInfo; import android.provider.Settings; import android.util.Log; /** * NsdHelper provides support for registering the device via NetworkServiceDiscovery */ public class NsdH...
34.538889
115
0.641467
3d9a393f1a3a19788707444435f4a13159bde5fb
568
package com.alibaba.alink.operator.batch.dataproc.format; import com.alibaba.alink.operator.common.dataproc.format.FormatType; import com.alibaba.alink.params.dataproc.format.KvToColumnsParams; import org.apache.flink.ml.api.misc.param.Params; public class KvToColumnsBatchOp extends BaseFormatTransBatchOp<KvToColumn...
29.894737
82
0.774648
480d4dff5acb68aa4d84fa0a626b1dd2999ddfe3
1,121
package com.android.task2.ui.base; import androidx.databinding.ObservableBoolean; import androidx.lifecycle.ViewModel; import java.lang.ref.WeakReference; import io.reactivex.disposables.CompositeDisposable; public abstract class BaseViewModel<N> extends ViewModel { private CompositeDisposable mCompositeDisp...
22.42
78
0.708296
2962adbe9822901ec78cd419ac645bd90ab5cdc1
7,219
package python; import cutcode.BlockCodeCompilerErrorException; import cutcode.LogicalBlock; import cutcode.GraphicalBlock; import javafx.geometry.Insets; import javafx.geometry.Point2D; import javafx.scene.Node; import javafx.scene.control.Label; import javafx.scene.layout.*; import javafx.scene.paint.Color; import c...
33.267281
113
0.715196
c3b9236d852b25d13e7ac30e3e1d2492042d7332
357
package it.lisik.itunesreceiptvalidator; public enum Environment { PRODUCTION("https://buy.itunes.apple.com"), SANDBOX("https://sandbox.itunes.apple.com"); private final String serviceUrl; Environment(String serviceUrl) { this.serviceUrl = serviceUrl; } public String getServiceUrl() ...
21
48
0.677871
d9fd20bab4154246446cb081fc753a3aa710b79c
633
package com.yin.springboot.user.center.mapper; import com.yin.springboot.user.center.domain.TbPermission; import java.util.List; import org.apache.ibatis.annotations.Param; import tk.mybatis.mapper.common.Mapper; import tk.mybatis.mapper.common.MySqlMapper; public interface TbPermissionMapper extends Mapper<TbPermiss...
35.166667
93
0.794629
eafffea76597872b120d1d562cdcc6ac3da7533a
846
package org.narrative.network.shared.services; import org.narrative.network.core.cluster.partition.HighPriorityRunnable; import org.narrative.network.core.cluster.partition.PartitionGroup; /** * Created by IntelliJ IDEA. * User: jonmark * Date: 5/9/16 * Time: 3:26 PM */ public interface DelayedResultRunnable ext...
33.84
134
0.736407
113c8bee349f8f2691f81c23a1fa5a1455e55aa4
327
package net.optifine.entity.model.anim; public class Constant implements IExpression { private float value; public Constant(float value) { this.value = value; } public float eval() { return this.value; } public String toString() { return "" + this.value; ...
14.863636
44
0.590214
05b03665e8903fd8baed2e3d0df6edf3e2569c02
1,130
package ru.job4j.chess.firuges.black; import org.junit.Test; import ru.job4j.chess.firuges.Cell; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertThat; public class BishopBlackTest { @Test public void truePosition() { BishopBlac...
28.25
63
0.655752
5b5fb32020a7803c6e4d2960c80ae45f26ac1028
7,968
package org.camunda.demo.camel; import java.util.Properties; import org.apache.camel.Exchange; import org.apache.camel.Processor; import org.apache.camel.builder.RouteBuilder; import org.apache.camel.converter.jaxb.JaxbDataFormat; import static org.camunda.bpm.camel.component.CamundaBpmConstants.*; import org.camunda...
47.712575
116
0.642947
ed259830505f3f5ed3193e8513b6d976ba2feb32
339
package com.profittracker; import net.runelite.client.RuneLite; import net.runelite.client.externalplugins.ExternalPluginManager; public class ProfitTrackerTest { public static void main(String[] args) throws Exception { ExternalPluginManager.loadBuiltin(ProfitTrackerPlugin.class); RuneLite.m...
22.6
69
0.761062
774c54888539b9f8981aec97c246716f0fcef7cf
504
package day06; /** * @ClassName Solution * @Author zhanghaorui * @Date 2021/5/31 1:51 下午 * @Description * 给你一个整数 n,请你判断该整数是否是 2 的幂次方。如果是,返回 true ;否则,返回 false 。 * * 如果存在一个整数 x 使得 n == 2x ,则认为 n 是 2 的幂次方。 * * 来源:力扣(LeetCode) * 链接:https://leetcode-cn.com/problems/power-...
21
77
0.569444
0134ecd25e00ae615fca7d4a8bf6714ada381fa6
3,282
/* * This file is part of Nucleus, licensed under the MIT License (MIT). See the LICENSE.txt file * at the root of this project for more details. */ package io.github.nucleuspowered.nucleus.core.services.impl.placeholder.standard; import io.github.nucleuspowered.nucleus.core.services.interfaces.IPlayerDisplayNameSe...
40.518519
135
0.693784
45ac34a223a080ecf2bd3e4260391e6fd853c96f
1,120
import java.nio.charset.Charset; import java.nio.file.*; import java.util.stream.*; class DataSource { void go() throws Exception { Path file = Paths.get("data1000.csv"); try (Stream<String> lines = Files.lines(file, Charset.defaultCharset())) { lines.forEachOrdered(System.out::printl...
23.829787
82
0.600893
a543e858e923c62b990b906b150cb3bfa6617307
1,025
// Copyright Eagle Legacy Modernization LLC, 2010-date // Original author: Steven A. O'Hara, Sep 1, 2011 package com.eagle.programmar.CMD.Statements; import com.eagle.programmar.CMD.Terminals.CMD_Argument; import com.eagle.programmar.CMD.Terminals.CMD_Keyword; import com.eagle.tokens.TokenChooser; import com.eagle.to...
30.147059
72
0.788293
d8a72e438d1021117445414ef062fae6a76b9e81
861
package msifeed.mc.core; import cpw.mods.fml.relauncher.IFMLLoadingPlugin; import java.util.Map; @IFMLLoadingPlugin.DependsOn("forge") @IFMLLoadingPlugin.TransformerExclusions({"msifeed.mc.core"}) public class MoreCorePlugin implements IFMLLoadingPlugin { static boolean isDevEnv = false; @Override publi...
22.076923
70
0.666667
150a7c5a5fb158e7d44be635e17698382ac069fb
4,051
package nachos.threads; import nachos.machine.Machine; public class RoundRobinSchedulerTest { public static void runTest() { System.out.println("###############################"); System.out.println("## RoundRobin testing begins ##"); System.out.println("###############################"); /* Run a...
26.651316
70
0.609232
2360d857594f340f4645f02de109e559017e8db6
3,057
/* * The MIT License (MIT) * Copyright (c) 2017 Nicholas Wright * http://opensource.org/licenses/MIT */ package com.github.dozedoff.commonj.string; import static org.hamcrest.CoreMatchers.is; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertThat; import org.junit.BeforeClass; import...
22.644444
69
0.706248
d1b29f32d980a4a56aeb8e5c2595bbb4a54dbc84
446
package org.sana.android.procedure; /** * An Exception to throw when parsing a Procedure declared in text form. * * @author Sana Development Team * */ public class ProcedureParseException extends Exception { private static final long serialVersionUID = 1L; /** * A new Exception with a message. ...
22.3
72
0.659193
98e8e8fcea9f535f0d2dc6bdb086189488c0c05d
1,661
package io.github.zero88.qwe.iot.connector.bacnet.mixin.adjuster; import org.junit.Assert; import org.junit.Test; import com.serotonin.bacnet4j.type.constructed.PriorityArray; import com.serotonin.bacnet4j.type.constructed.PriorityValue; import com.serotonin.bacnet4j.type.enumerated.AbortReason; import com.serotonin....
41.525
98
0.751957
f5399a9bbc87dbfc5bd5599baad57214d4c98c16
1,824
/* Copyright 2020 The FedLearn Authors. 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 by applicable law or agreed to...
26.057143
89
0.662829
736ff4f6e41637c4c3135fe6da2e296bc6a52efb
8,366
/****************************************************************** * File: BaseAction.java * Created by: Dave Reynolds * Created on: 20 Apr 2014 * * (c) Copyright 2014, Epimorphics Limited * *****************************************************************/ package com.epimorphics.appbase.tasks.impl;...
30.532847
115
0.607698
4c03a2cb980198eb0261afda9079733af93d7311
471
package lucius.justtest.java.concurrency.chapter2.lock.exp1; /** * Created by Lucius on 8/8/18. */ public class Main { public static void main(String[] args) { PrintQueue printQueue = new PrintQueue(); Thread[] thread = new Thread[10]; for (int i = 0; i < 10; i++) { thread[i...
22.428571
71
0.528662
8c033c2bf9ba4eb0dae5b9a5846ab9ecc6836325
587
/** * This is interface was provided by UMUC as part of their * CMSC451 course. * * Credit goes to them, apart from the noted modifcations below. */ public interface SortInterface { public void recursiveSort(int[] list); public void iterativeSort(int[] list); // public int getCount(); /** *...
25.521739
72
0.67632
ddb2ecabd5a3e0d863bc39e4e97a420612ac5918
1,145
/** * * Write a function to find the longest common prefix string amongst an array of strings. * * @author Lisong Guo <lisong.guo@me.com> * @date Jan 1, 2015 * */ public class LongestCommonPrefix { public String longestCommonPrefix(String[] strs) { if(strs == null || strs.length == 0){ retur...
19.083333
89
0.520524
0bb48f41dc47ddfc14edd37a9fbc17e3001e5cc5
798
// 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 org.jetbrains.jps.intellilang.model; import org.jetbrains.annotations.NotNull; import org.jetbrains.jps.model.JpsGlobal; import org.jetbrains.jps.service.JpsServiceManage...
39.9
140
0.815789
1495fdaa115edd3c86290a2986768453c190af0f
23,943
/* * 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.902332
138
0.610366
bbb57441fd10c3fbf78143a51d40edecb8955f41
18,128
package com.team3.bra; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.graphics.Color; import android.graphics.PorterDuff; import android.os.Bundle; import android.support.v4.content.ContextCompat; import android.view.Gravity; import android.view.View...
37.300412
185
0.588372
b3cfbc97d156b7e2c75359fa0ff89a77ca867df4
1,356
package com.fasterxml.jackson.failing; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.databind.ObjectMapper; // Not sure if this is valid, but for what it's worth, shows // the thing wrt [databind#1311]. May be removed if we ca...
34.769231
102
0.65413
7f62819fd3c652ebc6c6907b1f7d55a4740e4f5e
4,779
/** The MIT License (MIT) Copyright (c) 2010-2021 head systems, ltd 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 u...
29.68323
137
0.626909
95668033b6aa37a212cd6dbf77b2d1a033f9f5de
567
package org.apache.spark.sql.execution.columnar; public class CachedRDDBuilder$ extends scala.runtime.AbstractFunction5<java.lang.Object, java.lang.Object, org.apache.spark.storage.StorageLevel, org.apache.spark.sql.execution.SparkPlan, scala.Option<java.lang.String>, org.apache.spark.sql.execution.columnar.CachedRDDB...
63
310
0.784832
ba81b197da130819cae90a1caa65a7a566884bf8
4,416
/******************************************************************************* * Caleydo - Visualization for Molecular Biology - http://caleydo.org * Copyright (c) The Caleydo Team. All rights reserved. * Licensed under the new BSD license, available at http://caleydo.org/license *********************************...
32.955224
80
0.572464
5708c74385526d94d520847302ff2bbc0c2cc951
5,612
/* * Copyright (c) 2017 Carbon Security Ltd. <opensource@carbonsecurity.co.uk> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS...
36.206452
127
0.738418
6f8b85a8a7c95ec93a1211c9c3113ac68c57b55b
1,136
package com.github.ysl3000.twitchapi.impl; import com.github.ysl3000.twitchapi.api.StreamResponse; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.client.HttpClientBuilder; import org.json.simple.parser.ParseExcep...
29.128205
123
0.753521
432e86448e9426342750d483a413c1ad1d8c9ad7
3,119
/* * USE - UML based specification environment * Copyright (C) 1999-2010 Mark Richters, University of Bremen * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * Li...
32.489583
95
0.74992
5a658524225a40d1b93177ed4a86ecfe74f5ad17
976
package de.justsoftware.toolbox.mybatis; import javax.annotation.Nonnull; import javax.annotation.ParametersAreNonnullByDefault; /** * enum for easy accessing the used jdbc driver */ @ParametersAreNonnullByDefault public enum SupportedJdbcDriver { POSTGRES("org.postgresql.Driver"), ORACLE("oracle.j...
24.4
96
0.673156
874b041657bedb254aae602f16c6dd3e9818cb6f
2,334
/* * Copyright (c) 2005 Biomatters LTD. All Rights Reserved. */ package org.virion.jam.framework; import javax.swing.*; import java.awt.event.KeyEvent; /** * @author rambaut * Date: Dec 26, 2004 * Time: 11:01:06 AM */ public class DefaultFileMenuFactory implements MenuFactory { private final b...
25.369565
89
0.718509
9d980e9f69eeba32612f19225357b8fc284f8d60
2,942
package org.carlspring.maven.littleproxy.mojo; import java.io.IOException; import org.apache.http.HttpHost; import org.apache.http.auth.AuthScope; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.client.CredentialsProvider; import org.apache.http.client.config.RequestConfig; import org....
35.02381
116
0.680489
5204a20449f7f80e69d6020b6edfe6504963867b
1,979
package org.sql.assistant.select.join; import org.sql.assistant.common.SqlProvider; import org.sql.assistant.common.column.Column; import org.sql.assistant.common.condition.Condition; /** * @author menfre */ public interface Join extends SqlProvider { /** * 左链接 * * @param join 待链接对象 * @...
20.402062
82
0.561395
7a986b67023562d1afc3ab043b404453b8f8695d
95
package me.qinmian.emun; public enum DataType { String,Date,Number,Boolean,Link,None; }
15.833333
39
0.726316
60cea5a846beab8170040bfaf18066cd3741240d
14,474
package cn.taroco.common.redis.template; import cn.hutool.core.collection.CollUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.data.redis.connection.RedisClusterNode; import org.springframework.data.redis.connection.RedisConnectionFactory; import org.springframework.data.redis.connection.RedisServerC...
28.324853
126
0.579522
6e16565fc9669302843cce470b081a3a735c3eb6
553
package com.easy.restful.activiti.service; import com.easy.restful.activiti.model.Historic; import com.easy.restful.activiti.model.Task; import java.util.List; /** * 流程历史活动记录 * * @author tengchong * @date 2020/5/7 */ public interface HistoricService { /** * 查询 * * @param processInstanceId 流程实...
17.83871
52
0.64557
eb71920202ba46b2485826d84b499548b574b0b9
3,929
/* * Copyright (c) 2017 sadikovi * * 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, modify, merge, publish, d...
38.519608
99
0.702723
6faf15a3bf92c0b1778731737728befdd2fb8427
2,323
package com.varone.web.vo; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class TasksVO { private int index; private int id; private int attempt; private String launchTime; private String finishTime; private String status; private String duration; private String locality; private Str...
19.521008
48
0.72062
db872bdd75ac41609383292104161bf5686794ee
654
package com.uuhnaut69.cdc.constant; /** * @author uuhnaut * @project mall */ public class CDCTableConstant { public static final String PRODUCT_TABLE = "product"; public static final String USER_TABLE = "users"; public static final String USER_PRODUCT_TABLE = "user_product"; public static final ...
23.357143
75
0.7263
ae4eff84bf225a6e7cf43ecac50698430daa1b13
2,344
package com.qxy.common.Do; import org.springframework.beans.BeansException; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.config.BeanPostProcessor; import java.util.Date; /** * @Author:qxy * @Date:2020/4/7 9:41 */ public class StudentDo implements Initializing...
20.561404
102
0.65785
203527abcd1cbb50dd6cc132bb3872895be7b588
801
package com.zhongyp.concurrency.thread.latchcyclicbarrier.latch; import java.util.concurrent.*; /** * project: demo * author: zhongyp * date: 2018/3/29 * mail: zhongyp001@163.com */ public class Test { public static void main(String[] args){ Executor executor = new ThreadPoolExecutor(0, Integer.MA...
24.272727
129
0.667915
d5f386730134347fdc45ec6400941ed3b14f058c
2,258
package io.resys.thena.docdb.spi.pgsql; /*- * #%L * thena-docdb-mongo * %% * Copyright (C) 2021 Copyright 2021 ReSys OÜ * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
32.257143
93
0.745793
f42a9c53a6b589e3c4c75b4d77f8e8633a5fc69b
1,693
/* Generated by camel build tools - do NOT edit this file! */ package org.apache.camel.component.mybatis; import org.apache.camel.CamelContext; import org.apache.camel.spi.GeneratedPropertyConfigurer; import org.apache.camel.support.component.PropertyConfigurerSupport; /** * Generated by camel build tools - do NOT e...
48.371429
142
0.744241
63295438fc1465736f0546503c150c9214981d7f
1,509
/* * Copyright 2008-2009 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 ap...
26.473684
75
0.646786
52544cb69e881e8fe9564ff2c934e5dde78bd34d
31,439
/* * Tencent is pleased to support the open source community by making Tinker available. * * Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except in * compliance with the License. You may obtain a ...
45.89635
174
0.576895
1cc5765fe523f360e33214dde63e053023d70db9
1,583
package com.librarymanagement.application.backend.controller; import com.librarymanagement.application.backend.dto.Member; import com.librarymanagement.application.backend.service.MemberService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java...
32.306122
84
0.723942
4b21b09b164629c711724e2a33fa21660f0b120d
5,057
package org.netlight.encoding; import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufUtil; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.ByteToMessageDecoder; import io.netty.handler.codec.CorruptedFrameException; import io.netty.handler.codec.TooLongFrameException; import java....
34.401361
132
0.528179