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
c4f94911c7d4516acc2cce0f1ca1661acdb90938
1,900
/* * 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 org.femass.model; import java.util.ArrayList; import java.util.List; import java.util.Objects; /** * * @author enzoappi */...
20.430108
79
0.572105
3a1373b549589890acf43555a9e01b08f32b562d
2,014
package com.mohadian; import java.util.Stack; public class RemoveAdjacentDuplicatesString { public String removeDuplicatesUsingStack(String s) { StringBuffer res = new StringBuffer(); Stack<Character> stack = new Stack(); for (int i = 0; i < s.length(); i++) { Character ch = ...
30.515152
82
0.437934
2bf7dac7474f7fd09b69ceaacf7be2b48935afa4
894
/* * Copyright 2019 LinkedIn Corp. 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 applicab...
26.294118
75
0.720358
06312a94e9e495ff772f71535fb33e076922139a
391
package edu.harvard.iq.dataverse.api.dto; /** * * @author mderuijter */ public class LicenseDTO { String name; String uri; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getUri() { return uri; }...
14.481481
41
0.56266
7b8fdf02e1e94192cac3c9957f57df29be696297
1,184
package top.sstime.server; import java.io.IOException; import java.io.OutputStream; import java.net.ServerSocket; import java.net.Socket; import java.nio.charset.Charset; /** * @author chenwei * @date 2019年6月19日 * @descriptions 未使用netty的阻塞网络编程 */ public class PlainOioServer { public static void server(int port...
21.527273
63
0.615709
e9df8122d10553b28389bd6bcf05e95a9513690b
4,409
package com.ibm.sbt.opensocial.domino.oauth; import java.util.Map; import java.util.logging.Level; import org.apache.shindig.common.crypto.BlobCrypter; import org.apache.shindig.common.crypto.BlobCrypterException; import org.apache.shindig.gadgets.oauth2.OAuth2CallbackState; import com.google.common.base.Objects; im...
27.216049
133
0.718303
bc51846d37dc2fbc416c70987d8738eb48ac3db1
1,246
/* * Copyright 2020 Wuyi Chen. * * 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 i...
23.961538
75
0.721509
94d1d5a97968c8fa54f674891996d0e0f68c0164
3,521
/* * Copyright (c) 2002-2012 Alibaba Group Holding Limited. * 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/LICENS...
35.21
118
0.680488
6475c33343a69425518598f720191f362073eba7
1,812
/* (c) British Telecommunications plc, 2010, All Rights Reserved */ package com.bt.pi.ops.website; import java.util.Collection; import javax.ws.rs.Path; import javax.ws.rs.ext.Provider; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.context.Application...
32.357143
100
0.695916
d856257cb1143cb1d6693c10660106dcaf64a56b
2,496
/** * Copyright (C) 2014-2018 LinkedIn Corp. (pinot-core@linkedin.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 * * Unle...
36.173913
112
0.794071
e80327f606c5924870cc71f7fbd819abacd160e1
8,708
package org.talend.dataprofiler.core.migration.impl; import java.util.Date; import org.talend.cwm.helper.TaggedValueHelper; import org.talend.dataprofiler.core.migration.AbstractWorksapceUpdateTask; import org.talend.dataprofiler.core.migration.helper.IndicatorDefinitionFileHelper; import org.talend.dataquality.indic...
51.526627
156
0.708544
f2fff2378aa4a608c9ceafd7d52b3258aa70a379
502
class Solution { public boolean isPerfectSquare(int num) { if (num < 2) return true; int L = 2; int R = num; long square; int mid; while (L <= R) { mid = (L + R) / 2; square = (long) mid * mid; if ((int) square == num) ...
22.818182
45
0.366534
8b2084a11c9f7ef0fe7c7740ca168066866adbdf
555
package com.gEmbedded.api.device.gpio.pin; import com.gEmbedded.api.device.gpio.listener.EventListener; import java.util.Optional; public interface PWMPin { PWMPin getInstanceIfExist(PinNumber pinNumber); PinType getPinType(); PWMType getPWMType(); PinNumber getPinNumber(); PinFunction getPi...
19.821429
76
0.762162
e348493b466bab2fe73e3fb69c189990fb73f0cd
3,406
/* * @(#)DependencyFigure.java * * Copyright (c) 1996-2010 by the original authors of JHotDraw and all its * contributors. All rights reserved. * * You may not use, copy or modify this file, except in compliance with the * license agreement you entered into with the copyright holders. For details * see accompa...
28.864407
77
0.643277
68f7fa229581dbcb506ff655904c8c3fb1df868c
615
package ru.job4j.storage; import org.junit.Test; import static org.hamcrest.Matchers.is; import static org.junit.Assert.assertThat; public class UserStorageTest { private UserStorage stoge = new UserStorage(); @Test public void whenTryToUseStorageThenUseItWell() { assertThat(stoge....
29.285714
66
0.652033
a6058d366142ee7bfd3f6f0e8ddc184fa6b501dd
2,534
/* Copyright (c) 2013 OpenPlans. All rights reserved. * This code is licensed under the GNU GPL 2.0 license, available at the root * application directory. */ package org.geogit.rest.repository; import static org.geogit.rest.repository.RESTUtils.getGeogit; import java.io.IOException; import java.io.InputStream; ...
34.712329
154
0.669298
ee57cae50fce108040f2b85e624095fdc1a52bfb
2,257
/* * Copyright 2019 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...
41.796296
99
0.758972
f0cec376a6e5bbd749ab90c5d8cdc1f1929d6997
27,961
package com.dtrules.compiler.excel.util; import java.awt.font.FontRenderContext; import java.awt.font.LineBreakMeasurer; import java.awt.font.TextAttribute; import java.io.FileOutputStream; import java.text.AttributedString; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util...
36.598168
116
0.521834
8e2ab36d5f410bef68a5aa534b36994137a4c001
705
package io.pivotal.beach.tokyo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import java.util.List; @Repository public class DatabaseRestaurantRepository implements RestaurantRepository { privat...
29.375
79
0.739007
5ef720ac9f8aafd02abfb05a81931f37777c39bb
4,889
package com.company; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; import java.util.Scanner; public class fileConverter { //constructor method, calls method depending on what type of file we want to convert to public void fileConvert(String file, String da...
39.112
125
0.54142
d65f26322780c508c0f7d2c72e43d988d27d09cd
2,382
package cn.enjoy.zk; import org.I0Itec.zkclient.IZkDataListener; import java.util.Collections; import java.util.List; import java.util.concurrent.CountDownLatch; public class ZookeeperDistrbuteLock2 extends ZookeeperAbstractLock { private CountDownLatch countDownLatch = null; private String beforePath;//当前请...
29.04878
89
0.611671
e35ac398c4e93d2f21e6e15a365c04de12d3d67f
5,347
package com.cognition.android.mailboxapp.models; import com.google.api.services.gmail.model.MessagePart; import com.raizlabs.android.dbflow.annotation.ColumnIgnore; import com.raizlabs.android.dbflow.annotation.PrimaryKey; import com.raizlabs.android.dbflow.annotation.Table; import com.raizlabs.android.dbflow.structur...
24.415525
216
0.628951
de9fa48c8a3aeb3994b7568a65dfd7fbf12d5215
2,480
package com.github.q115.goalie_android; /* * Copyright 2017 Qi Li * * 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 requi...
46.792453
118
0.746774
20f256401c9500a215701dca2556ce60363f3f6c
18,581
/* * Copyright 2018 Key Bridge. * * 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...
32.258681
262
0.752973
93799d49c1b001bf54eaf799026fb34651b5192e
7,247
/* * 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 ...
45.29375
104
0.716986
8e2c05907c6e51f96679d2b57a90f86dc1eb6153
4,522
/* * Copyright 2019 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 applicab...
31.622378
117
0.606369
801cf2e3c81b6e7e0d4200be13d02e83b72dc158
146
package com.ycb.mobliesafe.bean; /** * Created by where on 2016/4/10. */ public class Virus { public String md5; public String desc; }
14.6
33
0.664384
6a9546edb25560cf8c17075465f674d8881da527
2,422
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distribut...
33.638889
96
0.727911
a0c6693c8fbb88030ae7f16df1ac4f514cea4b35
1,021
package com.findjob.findjobgradle.domain; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.Setter; import javax.persistence.*; import java.time.LocalDateTime; @Entity @EqualsAndHashCode(of = "id") @Getter @Setter @Table(name = "JOB_DETAILS") pub...
20.836735
103
0.6905
745747f44a4e3d93da8e550c7ca5209e63371437
6,219
/* * 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 co.edu.uniandes.csw.sierra.test.logic; import co.edu.uniandes.csw.sierra.ejb.MedioDePagoLogic; import co.edu.uniandes.csw.sier...
34.938202
91
0.664737
d8776aef7af8fa4b4839550740186f2f7aed0351
887
package com.showka.service.query.u08; import org.junit.Test; import org.springframework.beans.factory.annotation.Autowired; import com.showka.common.PersistenceTestCase; import com.showka.entity.JNyukinFBFurikomi; public class NyukinFBFurikomiQueryImplTest extends PersistenceTestCase { @Autowired priva...
27.71875
84
0.740699
9fb65c077983b6ad0d8dd99494c554f070d34cbf
9,857
package dao; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.scene.control.Alert; import model.Movie; import model.Session; import util.ConnectionFactory; import util.Utils; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; impor...
37.479087
143
0.516587
834543e44d42c7d1ec0d7d2348a03b6f6b0a2503
369
package com.app.notebook.controller; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** notebook-api Created by Catalin on 10/21/2020 */ @RestController @RequiredArgsConstructor @RequestMapping(path =...
30.75
62
0.821138
2c59e4ddb97041d364e5685f5dbae747802f1a86
1,213
package org.ainlolcat.idea.plugin.openshift.client.impl; import org.ainlolcat.idea.plugin.openshift.client.OSEntity; import org.ainlolcat.idea.plugin.openshift.client.OpenshiftClient; import org.ainlolcat.idea.plugin.openshift.client.OpenshiftClientFactory; import org.ainlolcat.idea.plugin.openshift.client.https.Https...
35.676471
98
0.732069
7d058e0a1b11743b33d72d9d6fc03f1e88b0816f
24,200
package com.cloudoa.framework.form.web; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.PrintWriter; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.Enumeration; import java.util.HashMap; import java.util.Iterator; i...
34.620887
359
0.622066
bcde469c48a2d20ccf98758e6e3878c656f91ebe
881
package eu.suhajko.command.processor; import eu.suhajko.movie.movieplayer.exception.MovieWebException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import java.io.IOException; /** * Created by marek.melis on 4/10/17. */ @Component public class BashComma...
26.69697
90
0.694665
36f8869c5bf4699950b29c1f576b2d1e60280c43
318
package phasicj.agent.instr.test.class_data.simple; public class SynchBlock { private static final int NUM_LOOPS = 5; public static void main(String[] args) { for (int idx = 0; idx < NUM_LOOPS; idx++) { synchronized (SynchBlock.class) { System.out.println("Hello, world!"); } } } }
22.714286
51
0.641509
523e3cad4a6c9f1e97cddd7bf39ad70fad85753e
5,489
import java.util.Scanner; public class Main { private static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { boolean playnewround; System.out.print("Name des ersten Spielers: "); String name1 = scanner.next(); System.out.print("Name des zwei...
42.223077
115
0.456185
30ae5c853855deb0ed43740ca62b03c4606cc92d
479
package com.thomaskuenneth.farbfolge; enum Farbe { ROT(0xff800000, 0xffff0000), GELB(0xff808000, 0xffffff00), GRUEN(0xff008000, 0xff00ff00), BLAU(0xff000080, 0xff0000ff); private int farbeDunkel; private int farbeHell; Farbe(int dunkel, int hell) { farbeDunkel = dunkel; f...
18.423077
37
0.636743
6c125ca9a3080fc52bc1b407dd208c4829514219
1,302
package br.lostpets.project.repository; import static org.junit.Assert.assertEquals; import javax.transaction.Transactional; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.s...
27.702128
115
0.771889
b0e989a1e41942d474d2866791054f0d756a0f6a
179
package com.andrey7mel.testrx.other; public class TestConst { public static final String TEST_OWNER = "TEST_OWNER"; public static final String TEST_REPO = "TEST_REPO"; }
25.571429
57
0.75419
8fdde0a5e9c7d56b818d154d4afdbe714c8555e4
542
package com.yukong.panda.gateway; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.zuul.EnableZuulProxy; import org.springframework.context.annotation.ComponentScan; @ComponentScan({"com.yukong.panda.commo...
30.111111
71
0.830258
81d902d89150d2db1bfa89ffff61aa3b9b076e19
453
package uk.gov.pay.connector.events.model.charge; import uk.gov.pay.connector.events.eventdetails.charge.RefundAvailabilityUpdatedEventDetails; import java.time.ZonedDateTime; public class RefundAvailabilityUpdated extends PaymentEvent { public RefundAvailabilityUpdated(String resourceExternalId, RefundAvailabi...
34.846154
142
0.83223
9ebf03bbe91b3be26febc2debce30b2ebc7c4897
2,475
// This file contains material supporting section 10.9 of the textbook: // "Object Oriented Software Engineering" and is issued under the open-source // license found at www.lloseng.com /* * SimpleClient.java 2001-02-08 * * Copyright (c) 2001 Robert Laganiere and Timothy C. Lethbridge. * All Rights Reserved. * ...
25
77
0.697778
2388c33907b0f01abd73c3957e61a0c5c7f00d83
1,044
/* ******************************************************************* * Copyright (c) 1999-2001 Xerox Corporation, * 2002 Palo Alto Research Center, Incorporated (PARC). * All rights reserved. * This program and the accompanying materials are made available * under the terms of the Eclipse Public...
34.8
71
0.651341
ee7ad25be08ad95eda70e3f1ea2678e46dfff098
2,254
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
35.21875
107
0.713842
cb8cd0b3f332f772510a5acd9234bca831fdd2ae
159
package com.zandero.rest.test.data; public class Token { public final String token; public Token(String token) { this.token = token; } }
15.9
35
0.647799
92bcb6949d5843e59afbc2c973a221a53793e560
3,099
package com.norswap.nanoeth.trees.verkle; import com.norswap.nanoeth.crypto.Crypto; import com.norswap.nanoeth.crypto.Curve; import com.norswap.nanoeth.utils.Randomness; import org.bouncycastle.math.ec.ECPoint; import java.math.BigInteger; public class Test { // ---------------------------------------------------...
41.878378
100
0.515005
04fef33ea815302a6a0d78a94d76be41949e059c
2,498
package com.atguigu.gmall.index.utils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.data.redis.core.script.DefaultRedisScript; import org.springframework.stereotype.Component; import java.util.Arrays; @Compon...
41.633333
143
0.592474
cfbcc48f7fd934435fa8ad12a9b0a3fa4fcea2b2
19,270
/* * 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 ...
40.398323
115
0.672548
8a00eff1a729dc38ec4284c9332964cd1b15e44c
775
package javajdk.logging.tyz.use; import java.util.logging.Level; import java.util.logging.Logger; public class JDKLoggerTest { //private static Logger logger = Logger.getLogger("com.bes.logging"); public static void main(String argv[]) { // Log a FINEtracing message System.setProperty("java.util.logging.config...
26.724138
88
0.709677
bd66f7f1058ac8ed8ce4efbac51cb474916eb292
4,468
package org.nikkii.embedhttp.impl; import org.nikkii.embedhttp.util.HttpUtil; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Represents an Http request * * @author Nikki */ public class HttpRequest { /** * The session which constructed this request ...
17.872
102
0.649731
4119641a4717ab0ecd044a4987ffe859144690fb
261
package observer; public class BObServer extends ObServer { public BObServer(Subject subject) { this.subject = subject; subject.register(this); } @Override public void update() { System.out.println("BObServer state : " + subject.getState()); } }
16.3125
64
0.708812
0479f8780c79331f9ea1b9e85876a3dc3abde196
447
package com.android.wm.shell.common.annotations; import java.lang.annotation.Documented; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import javax.inject.Qualifier; /** Annotates a method or qualifies a provider that runs on the Shell anim...
29.8
89
0.825503
4fa8260fd9de41f2e3cd662e452ecdd82c7e5cd0
1,498
/** * * Copyright 2020, Optimizely and 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/LICENSE-2.0 * * Unless r...
24.16129
78
0.640187
ee180603707298d12628aba45b52dfce6ea0d7f7
133
package actors; public class ChooseBeerProtocol { public static class QueryLcbo { // is this really necessary? } }
14.777778
36
0.669173
eeaf889907be9f32b0d943cd6e40bb0ed9d2a1c6
1,154
package org.synyx.urlaubsverwaltung.security; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; impor...
28.146341
89
0.72617
2f63d8ebaa6064ac36b2b591a985023320ab6328
766
package com.twu.biblioteca.core; /** * @Author Joker * @Description * @Date Create in 下午4:04 2018/4/26 */ public class Book { private final String name; private final String author; private final int year; public Book(String name, String author, int year) { this.name = name; this.a...
19.15
55
0.503916
beedd3ec467fad233f7941b78793c217d0822cad
713
package Sorting; public class SelectionSort { static void selectionSort(int arr[]) { for (int i=0;i< arr.length;i++) { int minindex=i; int temp; for (int j=i+1;j< arr.length;j++) { if(arr[j]<arr[minindex]) ...
23
46
0.402525
dd15f18c803cf198524fd99e3a954468a5ffea00
345
package edu.columbia.psl.cc.pojo; public class MultiNewArrayNode extends InstNode{ private String desc; private int dim; public void setDesc(String desc) { this.desc = desc; } public String getDesc() { return this.desc; } public void setDim(int dim) { this.dim = dim; } public int getDim() { ...
13.269231
48
0.672464
348daa8e7777192571207133d72da3ca86c69a3f
4,673
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) AutoRest Code Generator. package com.azure.management.vanilla.network.models; import com.azure.core.annotation.Fluent; import com.azure.core.annotation.JsonFlatten; import com.azure.core....
30.94702
116
0.684999
b521de1420a0aea7a5c310b58d025b19e13d7f3d
497
package com.atguigu.gmall.pms.service; import com.baomidou.mybatisplus.extension.service.IService; import com.atguigu.gmall.common.bean.PageResultVo; import com.atguigu.gmall.common.bean.PageParamVo; import com.atguigu.gmall.pms.entity.SpuDescEntity; import java.util.Map; /** * spu信息介绍 * * @author daruange * @em...
22.590909
65
0.778672
5547a910b3928726f2e2ba315cb88da72e85dbf3
41,878
/******************************************************************************* * Copyright 2012 Geoscience Australia * * 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://ww...
32.43842
138
0.716152
89c368d54043ad57fc9e3aaee10e31c03c827ab6
1,393
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: security.proto package trinsic.okapi.security; public interface CreateOberonTokenRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:okapi.security.CreateOberonTokenRequest) com.google.protobuf.MessageOrBuilder { /** ...
23.610169
90
0.640345
dac52332700931dcfb6de6f13a8eac23434f7608
562
package com.leeup.javase.day24.threadMethod; public class Demo2_CurrentThread { public static void main(String[] args) { new Thread() { public void run() { System.out.println(this.getName()+"////aaaa"); } }.start();; new Thread( new Runnable() { @Override public void run() { /...
20.071429
69
0.631673
fc9b6d39af044ad6b243301e7eb1c4ef17a46a6e
583
package org.min.watergap.common.thread; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; /** * 线程工厂 * * @Create by metaX.h on 2022/3/13 11:28 */ public class CustomThreadFactory implements ThreadFactory { private String groupName; private AtomicInteger nextId ...
22.423077
64
0.715266
5d6125b3eff61cca0af44aae19f39e33392147bd
2,321
/* * Copyright 2016 Goldman Sachs. * * 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 ...
32.690141
133
0.642826
fa94c7841c3674b56cc78368f89af1da233cb07a
1,468
package com.seedfinding.mcfeature.loot; import com.seedfinding.mccore.version.MCVersion; import com.seedfinding.mcfeature.loot.function.LootFunction; import com.seedfinding.mcfeature.loot.item.ItemStack; import java.util.Collection; import java.util.function.Consumer; import java.util.function.Function; public abstr...
30.583333
90
0.775204
cfcd710eb38ce89076f305ad3da84b128100a1c3
6,883
/* *A simple GUI for the Ski score Calculator *that was built for EOX. It provides a graphical *way of selecting input files and * some basic functionality buttons * * @author Konstantinos Peratinos */ package Ski; import java.awt.Container; import java.awt.EventQueue; import java.awt.Font; import java.awt.ev...
37.407609
128
0.748947
8526c5c320c0a9a157c465709b46a23b98ca1cbb
1,508
package org.example; import org.apache.pulsar.client.api.*; import java.util.concurrent.ExecutionException; public class SimpleConsumer { public static String PULSAR_URL = "{{ pulsar_url }}"; public static String PULSAR_JWT = "{{ pulsar_jwt }}"; public static String PULSAR_TOPIC = "persistent://{{pulsar_...
36.780488
106
0.56366
ca17165c5ad02bd276e94dc4cebc9f7af6cb18dd
397
package ru.trickyfoxy.lab2.Attacks; import ru.ifmo.se.pokemon.*; public class LowSweep extends PhysicalMove { public LowSweep() { super(Type.FIGHTING, 65, 100); } @Override protected String describe() { return "uses Low Sweep"; } protected void applyOppEffects(Pokemon pokemon...
20.894737
64
0.649874
9e1b24519f4fd768a85ebbed2152c7cc9b349a20
891
/* * Copyright 2008-2013 Exigen Insurance Solutions, Inc. All Rights Reserved. * */ package com.exigeninsurance.x4j.analytic.xlsx.core.node; import java.util.List; import org.apache.poi.xssf.usermodel.XSSFSheet; import com.exigeninsurance.x4j.analytic.xlsx.transform.MergedRegion; import com.exigen...
24.75
77
0.69248
ddd1d6a2a26549ea691d19cc8379b0d4f5a0f77f
114
package com.dharma.patterns.di.withdi.service; public interface Service { void send(String msg, String rec); }
16.285714
46
0.763158
2a3e82ab800deebc25fed37febb891a738dccb82
442
package com.company; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Paths; import java.io.Reader; import java.io.Writer; public class Helper { public static Reader openReader(String name) throws IOException{ return Files.newBufferedReader(Paths.get(name)); } public s...
24.555556
68
0.739819
da0d82e4ebb728fbc766ce810b1228ecb3ce2d80
553
package factory; /** * @author Khalid Elshafie <abolkog@gmail.com> * @created 08/03/2018. */ public class EnemyFactory { public static final int BIRD = 1; public static final int TURTLE = 2; public static final int DINOSAUR = 3; public static Enemy createEnemy(int id) { switch (id) { ...
22.12
46
0.544304
f7cef56401a31d12d3576337c932d0aebe2daf67
3,367
package com.sciatta.netty.example.echo.nio; import lombok.extern.slf4j.Slf4j; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.ByteBuffer; import java.nio.channels.*; import java.nio.charset.StandardCharsets; import java.util.Iterator; import java.util.Set; /** * Created by yangxiaoyu ...
30.609091
95
0.57529
f9c931b749efceca3b808914477676f1874a6c62
1,295
package baavgai.textgame.framework; // our natural language processor is dumb as dirt // we just care about verb - noun pairs public final class UserAction { public final String verb, noun; public UserAction(String verb, String noun) { this.verb = verb; this.noun = noun; } private boolean isMatch(String s,...
35.972222
79
0.693436
f4eb81361e2b4c8f3882df6d7e3ac1b63e3b3bb1
589
package no.ssb.dc.api; import java.util.function.Consumer; public class PositionObserver { private final Consumer<Integer> expectedCallback; private final Consumer<Integer> completedCallback; public PositionObserver(Consumer<Integer> expectedCallback, Consumer<Integer> completedCallback) { this....
25.608696
102
0.726655
2738d01e6341cef44de671ee4610088148d60378
3,375
/******************************************************************************* * Copyright (c) 2000, 2011 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...
26.162791
89
0.570074
69fc969be5f288d1f29cbd1cd076a2ccf70bc67a
7,402
package bookmark; import com.google.gson.Gson; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; /** * Represents a single bookmark. The object contains a list of Field objects * corresponding to the fiel...
30.460905
103
0.584572
5ef3fc83e7611dffc05bfb64d4e657bee08b48ce
1,044
import java.util.Scanner; public class J3From1987 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String n = sc.nextLine(); int temp = Integer.parseInt(n) + 1; n = Integer.toString(temp); boolean found = false; if (temp < 10) { ...
29.828571
84
0.396552
8e9e7b8e906aa572c6edc36e9e73b310b47e9e07
3,138
/** * 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...
30.173077
90
0.709688
11d3811f130d1983078a39554813f002edd5b150
114
package com.discount.domain.enums; public enum CustomerType { EMPLOYEE, AFFILIATE, CUSTOMER }
14.25
35
0.666667
b5c94915b81ca444e9363d0befe69464a137f41d
96
package io.sunshower.common.configuration; public interface ValueHolder { String value(); }
13.714286
42
0.770833
128eada611157065bbd3733dcc5c05ba30bde1b3
132
package todolist.entity; import javax.persistence.*; @Entity @Table(name = "tasks") public class Task { //TODO:Implement me... }
13.2
27
0.704545
18e17cd72de5e51e5aade307a7673ccc82b45cd7
200
package ru.job4j.calculator.loop; public class Factorial { public int calc(int n) { int res=1; for(int i=1;i<=n;i++){ res=res*i; } return res; } }
16.666667
33
0.495
354a0d28378cc9bacd67579e3cb6990561705769
1,164
package io.quarkus.test.junit.mockito.internal; import io.quarkus.test.junit.QuarkusMock; import io.quarkus.test.junit.callback.QuarkusTestBeforeEachCallback; import io.quarkus.test.junit.callback.QuarkusTestMethodContext; public class SetMockitoMockAsBeanMockCallback implements QuarkusTestBeforeEachCallback { @...
46.56
137
0.721649
17ce1c8aa54edfcd60707c6eb3c2e8f355a7dc25
7,511
package common; import java.io.Serializable; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Map.Entry; public class ChangeLog implements Serializable { public static final int CHANGE_ADD = 1; public static final int CHANGE_ADDNEW = 2; pub...
26.447183
112
0.49088
e7858f66571f2fc2ef957f87f839a42f0ddd2c3e
495
package main; import lexicalAnalyzer.LexicalAnalyzer; import java.io.*; public class Main { public static void main(String[] args) { /*if(args.length == 0) { System.out.println("입력받은 파일이 없습니다."); System.exit(0); }*/ File file = new File("C:\\Users\\tony1\\Deskto...
23.571429
150
0.638384
b8d2d953702cfd2e1802b6098e807b8977864953
2,650
package com.gooroomee.api.comment; import com.fasterxml.jackson.core.JsonProcessingException; import com.gooroomee.api.post.detail.PostDetailService; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; impo...
40.769231
108
0.723019
246c9d9a5a37552f16dc0a200f3526f09fa5aaba
1,234
package app.roana0229.org.android_screentracker_sample; import android.content.Context; import android.content.Intent; import app.roana0229.org.android_screentracker_sample.activity.CompleteActivity; import app.roana0229.org.android_screentracker_sample.activity.DetailActivity; import app.roana0229.org.android_screen...
30.85
80
0.753647
7b477667b47b0427dd6206430b8fab48fa3b1664
1,957
package evemanutool.gui.general.tabel; import java.awt.BorderLayout; import java.util.Collection; import javax.swing.JComponent; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTable; import javax.swing.RowSorter; import javax.swing.SwingConstants; import javax.swing.table.Ta...
28.779412
124
0.744507
93747a6bf2c34f7dbbaa4e603fb28fad75561bfa
2,049
package cluedo.model; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.imageio.ImageIO; import cluedo.model.CluedoGame.Weapon; /** * A game token displayed on the board to represent a weapon. * @author Maria * ...
20.088235
68
0.647633
5546cba6634563dd2afec7a36321643e6f40bcdb
1,205
package stu.napls.clouderweb.model; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.LastModifiedDate; import org.springframework.data.jpa.domain.support.AuditingEntityListener; import stu.napls.cl...
25.104167
87
0.7361
4bd53bb58138ff3e1986cbf70ce2f102383e0901
2,434
package com.company.models; import java.sql.Timestamp; public class Participant { private Long id_user; private Long id_category; private String description; private Timestamp show_start_time; private Timestamp show_end_time; private String attached_file; private boolean is_accepted; ...
30.425
114
0.658998
f6cf31d9f6f0cfb91e19e7597c81f5d9b95438d0
7,978
package gnu.text; import java.util.ArrayList; import java.util.HashMap; import java.util.Vector; public class Options { public static final int BOOLEAN_OPTION = 1; public static final int STRING_OPTION = 2; public static final String UNKNOWN = "unknown option name"; OptionInfo first; HashMap<Strin...
31.042802
133
0.533592
b07b94fc1805dc30162e3d0f8613af9c45b2824c
188
package l2f.gameserver.listener.actor.player; import l2f.gameserver.listener.PlayerListener; public interface OnAnswerListener extends PlayerListener { void sayYes(); void sayNo(); }
17.090909
56
0.803191
4792dcd9e65400ef6fa0645d580af75cbaf09a5f
1,940
package com.example.icard.model.dto; import java.math.BigDecimal; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import io.swagger.annotations.ApiModel; import com.fasterxml.jackson.annotation.JsonProperty; @JsonInclude(Include.NON_NULL) @ApiModel(...
20.208333
105
0.756186
283602c5da8d541ff23697116c8bc1936219342f
469
package de.digitalcollections.model.identifiable.entity; /** All entity types cudami can handle */ public enum EntityType { AGENT, ARTICLE, AUDIO, BOOK, COLLECTION, CORPORATE_BODY, DIGITAL_OBJECT, ENTITY, EVENT, EXPRESSION, FAMILY, GEOLOCATION, HEADWORD_ENTRY, IMAGE, ITEM, MANIFESTATION...
13.4
56
0.678038
2716b78cdacdb418dd2696643d6ff5e30e5047db
1,020
package me.jrubio.todo.List; import me.jrubio.todo.model.Entity.Todo; /** * Example To.Do list app using MVP pattern. * Using android-support-v7 to support old Android versions. * * @author Jose I. Rubio (@joseirs) * */ public interface IListPresenter { /** * Refresh data in view layer */ voi...
18.545455
75
0.593137