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
c491d43fc3d561ab6679f9a27117f236ddc7b23f
630
package re.agiledesign.mp2.internal.expressions; import java.util.List; import re.agiledesign.mp2.internal.Scope; import re.agiledesign.mp2.util.AssertUtil; public class SequenceExpression extends Expression { private final List<Expression> mExpressions; public SequenceExpression(final List<Expression> ...
23.333333
66
0.739683
b494c09f209bd6eaa2c958a7e040401e5a651752
1,452
package com.giraone.testdata.fields; public class FieldConstants { public static final String id = "id"; public static final String index = "index"; public static final String givenName = "givenName"; public static final String surname = "surname"; public static final String gender = "gender"; ...
44
86
0.742424
b16b5cff1bf87792ed275c17af4620d365a33200
551
package com.commit451.reptar.retrofit; import com.commit451.reptar.Optional; import java.io.IOException; import okhttp3.ResponseBody; import retrofit2.Converter; final class OptionalConverter<T> implements Converter<ResponseBody, Optional<T>> { private final Converter<ResponseBody, T> delegate; OptionalConv...
29
82
0.753176
8bfa1a7c38a87cf98728df71cbe5fcb587e25a74
10,547
/* * Copyright 2015-2020 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
39.8
146
0.65393
e039202a376f3f0215a3aee9c59cd261327d7472
2,012
package net.minecraft.src.packet; // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) braces deadcode import net.minecraft.src.network.NetHandler; import java.io.*; public class Packet27 extends Packet { public Pac...
23.952381
85
0.684891
4579835434f2aa18830dbe3dcb9bffd9c3f28388
742
package pedrocoelho.javamslearning.msscbrewer.domain; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import pedrocoelho.javamslearning.msscbrewer.web.model.v2.BeerStyleEnum; import javax.validation.constraints.NotBlank; import javax.validation.constraints...
20.611111
72
0.787062
c55c4cec429edd0aff81e0a8831e50886ac0bb46
1,276
package com.zy.service; import com.zy.pojo.User; import com.zy.pojo.UserRole; import com.zy.pojo.UserRoleRelation; import org.apache.ibatis.annotations.Param; import java.util.List; public interface UserService { public List<User> getAllUser(User user); public User hasUser(String username); public Use...
17.013333
67
0.576019
8587af8e15e6601b6e3bcce461adf969d0c99cfd
3,642
/* * Copyright 2013-2016 Sergey Ignatov, Alexander Zolotov, Florin Patan * * 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 req...
46.101266
139
0.715815
813ddf7319e1b3ec5dae6ed6f1d381e9994b0df2
77
package org.example.autonamed; public interface AutoB2 { String who(); }
11
30
0.727273
4471563aa9bc7aa7b8ad4c5501ecafe9e565523f
400
package io.fysus.elo.domain; import java.util.Map; import lombok.Builder; import lombok.Getter; @Builder @Getter public class DetailPlayerInformation { private String id; private String name; private int ranking; private long numberWins; private long numberLosses; private Map<Player, Long> ...
18.181818
53
0.75
03a585b36e9f18f41afeb340d6847b22f7d9a299
15,099
package org.netlib.lapack; import org.netlib.blas.Dcopy; import org.netlib.blas.Dgemm; import org.netlib.blas.Drot; import org.netlib.err.Xerbla; import org.netlib.util.Util; import org.netlib.util.doubleW; import org.netlib.util.intW; public final class Dlalsd { public static void dlalsd(String paramString, int pa...
48.085987
892
0.585867
00d21c75f0f810a3465fda3c92da0a2682955924
2,210
import com.haulmont.cuba.core.global.Configuration; import com.haulmont.cuba.core.global.GlobalConfig; import com.haulmont.cuba.gui.components.AbstractWindow; import com.haulmont.cuba.gui.components.Component; import com.haulmont.cuba.gui.components.DataGrid; import com.haulmont.cuba.gui.components.LookupField; import ...
38.77193
104
0.643891
a446edae522523765e6d416bc6d8abf9135f68d1
252
package com.ianprime0509.jsonrecipe.server.entities; import lombok.Data; import lombok.NonNull; /** A single step in the preparation of a recipe. */ @Data public class Direction { /** The text of the direction. */ @NonNull private String text; }
21
52
0.738095
7e07450c8b5b8e512dc27f3177fd2b186f339189
1,585
/* * 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 curvesdo.properties; import java.awt.Color; import java.util.List; /** * * @author mohamednagy */ public class Curve { ...
24.015152
79
0.635331
4009254e8728819ceeb17a9ab8a008ef3c98f2e7
2,967
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * C E D A R * S O L U T I O N S "Software done right." * S O F T W A R E * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Copyright (c) 2013 Kenneth J. Pronovici. *...
35.321429
95
0.601281
735e2ffd3fd1a1a41617302287048ddbbf3cccaf
1,308
package rpg_lab.models; import rpg_lab.models.contracts.Item; import rpg_lab.models.contracts.Target; import java.util.List; import java.util.Random; public class Dummy implements Target { private int health; private int experience; private List<Item> possibleLoot; public Dummy(int health, int expe...
22.947368
78
0.58792
cd2041c4e0c39c458f911d8d65e6ff40810277bd
73,880
/** * Copyright (c) 2012-2013, Daniele Codecasa <codecasa.job@gmail.com>, * Models and Algorithms for Data & Text Mining (MAD) laboratory of * Milano-Bicocca University, and all the CTBNCToolkit contributors * that will follow. * All rights reserved. * * @author Daniele Codecasa and all the CTBNCToolkit contribu...
40.195865
251
0.688698
a6df60509a8b6bf73efbb43e812fc1c68f56c56c
9,986
package org.smartregister.adapter; import org.junit.Before; import org.junit.Test; import org.powermock.reflect.Whitebox; import org.smartregister.BaseUnitTest; import org.smartregister.cursoradapter.SmartRegisterQueryBuilder; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.assertEq...
44.382222
257
0.666633
df32180295e6d0db53673eabc7c041b63d8e871b
1,095
package com.pf.system.model.entity; import com.baomidou.mybatisplus.annotation.TableId; import com.pf.base.BaseEntity; import io.swagger.annotations.ApiModel; import lombok.*; import java.io.Serializable; import java.time.LocalDateTime; /** * <p> * * </p> * * @author pf * @since 2021-10-14 */ @Data @Builder ...
16.590909
62
0.725114
5e9b745d315e0a253ddc3d611da9fe5f62ae2bb7
1,580
/* * Copyright 2015 Hippo B.V. (http://www.onehippo.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 applic...
28.727273
105
0.701266
aa4a5e9575b68bad7cf2cf582707ae707a777cd3
1,147
package test; import datos.PersonaJDBC; import domain.Persona; import java.util.List; public class ManejoPersonas { public static void main(String[] args) { PersonaJDBC personaJDBC = new PersonaJDBC(); List<Persona> personas = personaJDBC.select(); for(Persona perso...
26.674419
54
0.570183
34a7891a352954c19895b86e66ad77278c19bedc
11,070
package com.cvte.tv.api; import android.content.Context; import android.content.Intent; import android.util.Log; import android.widget.Toast; import com.cvte.tv.api.at.api.SysAPI; import com.cvte.tv.api.impl.C0118R; import com.cvte.tv.tvwebclient.WebProxyConstant; import com.cvte.tv.util.FileUtils; import com.google.g...
51.971831
225
0.644264
bfaa147549f91d4327bac09b97be669f9b02f9d4
500
package com.ana.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import com.ana.domain.RomVO; public interface RomMapper { // 숙소 상세페이지: 검색 옵션에 맞는 객실 목록 불러오기 public List<RomVO> getAll(String acmNum); // 숙소 상세페이지: 숙소별 객실 목록 불러오기 public List<RomVO> getList(@Param("acmNum") String acmN...
19.230769
92
0.724
2905c8411048d61ea95d2bebfda34f2638bf7d15
1,770
package com.cnit355.rr; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.EditText; import android.widget.Toast; public class Login extends AppCompatActivity { EditText user; EditText password; DBHelp...
31.052632
91
0.658192
21d24814ca6196640574b1d5342088f22f5dec75
457
package eu.sanjin.kurelic.cbc.repo.entity; import javax.persistence.metamodel.SingularAttribute; import javax.persistence.metamodel.StaticMetamodel; import java.time.LocalDate; @StaticMetamodel(Traffic.class) public class Traffic_ { public static volatile SingularAttribute<Traffic, Integer> id; public static...
30.466667
79
0.818381
c190a152c5764bac981fc4a0cb886164fed884d1
14,041
package com.simplelibrary.utils; import android.annotation.SuppressLint; import android.content.ContentUris; import android.content.ContentValues; import android.content.Context; import android.content.Intent; import android.database.Cursor; import android.graphics.Color; import android.net.Uri; import android.os.Buil...
37.744624
138
0.549818
2d88d683e9f79fd674ea53a75d03792786c0b541
1,197
package io.quarkus.redis.devservices.it; import java.util.Arrays; import javax.inject.Inject; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import io.quarkus.redis.client.RedisClient; import io.quarkus.r...
27.837209
90
0.756057
d18d68f7df72a6fa10506342c7e208a27f9a12b5
1,986
package com.wordnik.swagger.models.auth; import java.util.*; public class OAuth2Definition implements SecuritySchemeDefinition { private String type = "oauth2"; private String authorizationUrl; private String tokenUrl; private String flow; private Map<String, String> scopes; public OAuth2Definition () { ...
24.825
80
0.707956
5a66cba348f66ff24a556195ff8fc9b5edb6923b
2,655
/* * Copyright 2014 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 applicabl...
27.947368
80
0.5371
6902fd49dd4949adc010e90b070aef10ad3db952
505
package com.inmobi.rendering.mraid; import com.inmobi.commons.core.p221d.C10657c; /* renamed from: com.inmobi.rendering.mraid.d */ /* compiled from: MraidJsDao */ public final class C10780d { /* renamed from: a */ public C10657c f32940a = C10657c.m34974b("mraid_js_store"); /* renamed from: a */ publ...
28.055556
84
0.693069
9e7b2bfdaf53c3f53e86934dd99f53b45db42f65
2,000
package com.plugins.infotip; import com.intellij.icons.AllIcons; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnActionEvent; import com.intellij.openapi.project.Project; import com.intellij.openapi.ui.Messages; import com.intellij.psi.xml.XmlFile; import org.jetbrains.ann...
35.714286
132
0.6565
bc169c783eaed98836eeaf584cccfa9a5f9dcb2c
3,261
package io.fno.BeSocial; import java.io.BufferedReader; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URI; import java.net.URL; import java.net.URLEncoder; import java.util.ArrayList; import java.util.List; import java.util.Date; import java.util.Locale; import java.text.SimpleDa...
36.233333
123
0.59583
60fcb68a1e60dc04f9d8a0b7f16c89c35d59ceb3
1,163
package src.SetsAndMapsExercise; import java.util.*; public class LogsAggregator { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int inputLines = Integer.parseInt(scanner.nextLine()); TreeMap<String, TreeSet<String>> userAndIp = new TreeMap<>(); ...
34.205882
102
0.564918
7451084a7c1851e0466f48c30f34a4fbc47d1ad8
331
package com.project.library.exception.rental; public class BookNotFoundException extends RuntimeException{ public BookNotFoundException(String msg, Throwable t){ super(msg,t); } public BookNotFoundException(String msg){ super(msg); } public BookNotFoundException(){ super(...
19.470588
60
0.679758
bbf23adad2f37ff93bced5802bdc30f637b980a4
4,259
package net.glasslauncher.legacy.util; import net.glasslauncher.common.CommonConfig; import net.glasslauncher.common.FileUtils; import net.glasslauncher.legacy.Config; import net.glasslauncher.legacy.Main; import java.io.File; import java.nio.file.StandardCopyOption; import java.util.ArrayList; import java.util.List;...
34.072
140
0.563043
11458c95a2b7240c3b53accb5ea8a024de021482
2,072
package com.tomclaw.sfn; public class ProgressBar { private String fileName; private long fileSize; private long totalRead; private int percent; private static final char[] trailer = new char[42]; private static final char[] progress = new char[22]; public void setupBar(String fileName, l...
28.383562
69
0.436776
2b978b252d576ec7fb36b75efd48d552eee24204
3,655
package io.kestra.plugin.singer.targets; import com.google.common.collect.ImmutableMap; import com.google.common.io.CharStreams; import io.kestra.core.runners.RunContext; import io.kestra.core.runners.RunContextFactory; import io.kestra.core.utils.IdUtils; import io.kestra.core.utils.TestsUtils; import io.kestra.plugi...
40.611111
143
0.661286
246f870b75b0369863423930dec09deb39c2ba59
284
package com.Part_I; public class SumOfDigits { public static void main(String[] args) { int n=3524; System.out.println(sum(n)); } private static int sum(int n) { if(n==0){ return 0; } return (n%10)+sum(n/10); } }
16.705882
44
0.510563
f879ef670c78c83414ebba96c2304717574502ba
10,169
/*- * Copyright (C) 2002, 2017, Oracle and/or its affiliates. All rights reserved. * * This file was distributed by Oracle as part of a version of Oracle Berkeley * DB Java Edition made available at: * * http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html * * Please ...
32.28254
99
0.575868
807f4226a4f7d9ba136818d88853d433bdd03a87
523
/* * 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 se.kth.karamel.backend.machines; import java.io.IOException; import se.kth.karamel.common.exception.KaramelException; /** * ...
24.904762
97
0.76673
b8570c03a9e02283729afa473d479b9d3dcc36e9
1,158
package com.wangqing.chilemeserver.web.api; import com.wangqing.chilemeserver.object.ao.CommonResult; import com.wangqing.chilemeserver.service.MessageService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpEntity; import org.springframework.http.HttpStatus; import o...
28.95
113
0.728843
6e1be00a498ccbd0125b29bbd42cade4861acaa8
122
package com.designpattern.gof.creational.ext.simplefactory; /** * */ public interface Product { void operation(); }
15.25
59
0.713115
6e9d9a593b1b405bf796b937563f60201beb1825
319
package com.tybest.tcc.bean; public interface BeanFactory { /** * 获取Bean实例 * @param clazz * @param <T> * @return */ <T> T getBean(Class<T> clazz); /** * 判断是否是factory * @param clazz * @param <T> * @return */ <T> boolean isFactoryOf(Class<T> clazz); }
15.190476
44
0.510972
259ce45abcd683cb83656a538e8c37307b048ed5
221
package Triangles; public class Triangel { public static double bisektris (double b, double c, double alfa) { double p = 2 * b * c * Math.cos (alfa / 2); double bis = p / (b + c); return bis; } }
18.416667
66
0.58371
737e4cede06e6eb9c717e78a9c14ff2eae8ba099
2,987
/* * Copyright (c) 2014 RONDHUIT Co.,Ltd. * * 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 appli...
22.125926
104
0.667225
a53e7cced950e7e8c10345fc94a6f93e5a538b39
1,183
package cn.hikyson.android.godeye.okhttp; import androidx.annotation.Keep; import java.io.Serializable; import java.util.Map; @Keep public class HttpResponse implements Serializable { public String protocol; public int code; public String message; public Map<String, String> headers; public String...
28.853659
93
0.534235
1f9b828b5b3d1593e89871f048256e24fc22e0be
1,135
package cn.lijunhaoit.myblog.entity; import java.util.Date; /** * 文章内容 */ public class BlogFile { /** * 唯一ID */ private String uuid; /** * 标题 */ private String title; /** * 内容 */ private String content; /** * 富文本内容 */ private String content...
14.934211
52
0.552423
2a6e7a58da3e0bed8bcabd9ac1e8686443345526
461
package com.yunus.serialize; /** * 序列化方式抽象类 * * @author gaoyunfeng */ public abstract class BaseSerializer { /** * 序列化 * * @param obj 序列化类 * @param <T> 泛型 * @return */ public abstract <T> byte[] serialize(T obj); /** * 反序列化 * * @param bytes 二进制数组 * @pa...
15.366667
73
0.527115
553b38814c0a7a6338c599b6d6b546ea4569bbbf
404
package cn.com.smart.web.controller.base; import org.springframework.beans.factory.annotation.Autowired; import cn.com.smart.web.upload.AttachmentUploadHandler; /** * 上传附件 * @author lmq * @version 1.0 2015年8月30日 * @since 1.0 * */ public abstract class AttachmentUploadController extends UploadContr...
20.2
76
0.74505
bba8ef068e02f47ea3b6fa7ced7c283db9c1d5de
435
package com.vutbr.feec.cviceni7; import java.util.ArrayList; import java.util.List; public class Database { List<Student> database = new ArrayList<Student>(); public void vypis() { for (int i = 0; i < database.size(); i++) { System.out.println(database.get(i)); } } public boolean erase(String email) { ...
16.111111
51
0.657471
cf07e9583d20323bd22013e6c1ffcaab962b35c7
227
public abstract interface SteuerungInterface { public abstract int getMin(); public abstract int getMax(); public abstract int getWert(); public abstract void rauf(); public abstract void runter(); }
28.375
47
0.69163
9cc4e82f090761583cbf417fe5b875cf3147a015
35,852
package cn.jsprun.struts.foreg.actions; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Locale; import java.util.Map; import java.util.Set; import java.util.TreeMap; import java.util.Map.Entry; import javax.servlet.Se...
49.794444
538
0.655249
63dee3a363e1529f59b4cef788a9ca743b77bccf
7,306
package com.sourcegraph.permission; import com.atlassian.bitbucket.permission.Permission; import com.atlassian.bitbucket.repository.Repository; import com.atlassian.bitbucket.repository.RepositorySearchRequest; import com.atlassian.bitbucket.repository.RepositoryService; import com.atlassian.bitbucket.user.*; import c...
43.488095
188
0.691076
164245760c0f99b1a6053fac154a2e7a4f339765
678
package frc.robot.commands; import edu.wpi.first.wpilibj.command.Command; import static frc.robot.HAL.limelight; public class SetPipeline extends Command { int pipeline; public SetPipeline(int pipeline) { this.pipeline = pipeline; } @Override protected void initialize() { ...
15.767442
45
0.60767
42ff5641cd8047aac539991841eb31db3b3ddd23
6,270
package com.kcr.main.ui.fragment; import android.content.Intent; import android.os.Bundle; import android.support.v4.app.ActivityOptionsCompat; import android.support.v4.util.Pair; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.View; import android.widget.ImageView; impor...
34.450549
166
0.634131
28c07077995ee60aa3350ca99fa1e54afb037ff3
2,074
/* * Copyright (C) 2020 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
34.566667
76
0.67406
caee7019c207cd6d4196495d7bbc9fa412e154ae
1,334
package com.wulai.scene; import com.WulaiClient; import com.exceptions.ClientException; import com.exceptions.ServerException; import com.module.response.scene.IntentStatus; import org.apache.http.client.methods.CloseableHttpResponse; import java.util.HashMap; public class UpdateIntentStatus { private boolean st...
25.169811
111
0.698651
7f980f34b36a8cfc15113b33f8e2816a84f4f3fd
3,681
package com.figtreelake.util.time.duration; import com.figtreelake.util.time.TimeUtilRuntimeException; import java.time.Duration; import java.util.ArrayList; import java.util.List; import java.util.Objects; /** * A series of handy methods which helps working with {@link Duration} objects. * * @see <a href="http://...
30.421488
100
0.700081
7ec4d6ca23467e8950eba9b93c667caf6dd405d4
6,076
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. You may obtain a copy of the License at * * http://www.apache.org...
34.522727
132
0.667215
10ba0ddfa99b1aabf2b5d0d56cce644d1cdd5ba9
1,122
package com.lframework.xingyun.sc.service.stock; import com.lframework.starter.mybatis.service.BaseMpService; import com.lframework.xingyun.sc.entity.ProductLotStock; import com.lframework.xingyun.sc.vo.stock.lot.AddProductLotStockVo; import java.util.List; public interface IProductLotStockService extends BaseMpServi...
20.035714
89
0.676471
dd3c16739e41bb2d898508feaffe6b08544767a1
588
package com.kevin.generics.spike; import java.util.HashMap; import java.util.Map; /** * Created by kevinlanaghan on 1/23/17. */ public class Repo { private Map<Class<?>, Object> values = new HashMap<Class<?>, Object>(); public <T> void put(Class<T> inKey, Object inValue) { if (inV...
17.818182
59
0.573129
6780831babd5327c1a2355d703f77d62104e6cce
1,214
package org.codefilarete.tool.function; import java.io.Serializable; import java.util.Objects; import java.util.function.Function; /** * @author Guillaume Mary */ @FunctionalInterface public interface SerializableThrowingFunction<T, R, E extends Throwable> extends Serializable { /** * Applies this function to ...
29.609756
124
0.714992
31ec9c6fb75fb042ae039d2aac73801cc1e6016f
1,739
/** * Copyright (c) 2009-2010 TIBCO Software Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
27.171875
83
0.718229
96a29b206a996b3d3476a475a2d213f86d6512f5
22,072
package hospelhornbg_svproject; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStream; import java.net.URL; import java.nio.file.Files; import java.nio.file.Paths; import java.util....
31.087324
183
0.702157
0a07c89d17f3e3278cb25c7021245c32fe763fe0
513
public float nextFloat() { float result, div; byte c; result = 0; div = 1; c = (byte) read(); while (c <= ' ') c = (byte) read(); boolean isNegative = (c == '-'); if (isNegative) c = (byte) read(); do { result = result * 10 + c - '0'; } while ((c = (byte) read()) ...
27
89
0.423002
023fabce170c41ef5096f44048a2e8c56b3851ba
5,792
/** * 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...
29.252525
85
0.680249
1954db01c385bdd15f29eee94fa6e1b1a06933a4
713
/* */ package com.infinityraider.agricraft.api.v1.seed; import javax.annotation.Nullable; /** * * */ public interface IAgriSeedAcceptor { /** * Determines if a seed is valid for this specific instance. * * @param seed the seed to validate for the instance. * @return if the seed is valid f...
23.766667
99
0.667602
08b6209d0ae556862143d5c2d23a67db0bea5dee
5,662
/* * 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 * distr...
20.816176
88
0.68633
bac832a851901c815f8318e7906804525995c50f
2,000
package edu.ifes.ci.si.les.ats.model; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import j...
28.571429
97
0.7745
4370773f863304f3559702c6173249a90e89a258
1,139
package frc.robot.commands; import java.util.function.DoubleSupplier; import edu.wpi.first.wpilibj2.command.CommandBase; import frc.robot.subsystems.DriveTrain; public class DriveCommand extends CommandBase { DriveTrain m_driveTrain; DoubleSupplier m_throttle; DoubleSupplier m_turn; public DriveCommand(Dri...
25.886364
92
0.740123
9b82f8ace125ec21de7c8cdbb53c842a6484a7e6
3,089
/******************************************************************************* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright (c) 2014,2015 by Peter Pilgrim, Milton Keynes, P.E.A.T LTD * * All rights reserved. This program and the accompanying materials * are made available under the t...
25.528926
84
0.555196
8ee7e1ba72debc2e0fb54a8d87f0e4c7cd623567
278
package covid19.backend.Repository.Covid19; import covid19.backend.Models.MongoDB.MongoNationLatestData; import org.springframework.data.mongodb.repository.MongoRepository; public interface NationLatestMongoRepository extends MongoRepository<MongoNationLatestData,String> { }
34.75
100
0.874101
7a74255c169edfd9c510f3c69ef0387ce3d5c6e5
569
package com.thinkgem.jeesite.modules.asmt.dao; import java.util.List; import org.springframework.stereotype.Repository; import com.thinkgem.jeesite.common.persistence.BaseDao; import com.thinkgem.jeesite.common.persistence.Parameter; import com.thinkgem.jeesite.modules.asmt.entity.RuleUser; /** * 规则用户DAO接口 * @aut...
24.73913
89
0.780316
9f3db970f21edff2c973faa0d901c60164aca407
966
package com.zbest.queue.disruptor; import com.lmax.disruptor.dsl.Disruptor; import com.zbest.queue.bus.OrderHandler; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; import javax.annotation.PostCo...
22.465116
62
0.698758
50d1835e2886c79472bdae3d106e50bb3d530fc2
702
package com.fun.uncle.decorator.business.decorator; import com.fun.uncle.decorator.business.OrderDetail; import java.math.BigDecimal; /** * @Description: 计算支付金额的抽象类 * @Author: Summer * @DateTime: 2021/9/1 10:31 上午 * @Version: 0.0.1-SNAPSHOT */ public abstract class BaseCountDecorator implements IBaseCount { ...
22.645161
64
0.689459
d477ace052a2a105f7809643173832206f418a3e
1,723
package com.pivotal.pxf.plugins.avro_custom; import java.io.IOException; import org.apache.avro.Schema; import org.apache.avro.generic.GenericRecord; import org.apache.avro.mapred.AvroInputFormat; import org.apache.avro.mapred.AvroJob; import org.apache.avro.mapred.AvroRecordReader; import org.apache.avro.mapred.Avro...
33.784314
117
0.791642
5328d909464ebe74c2ecd9ccd633e1397b090304
637
package com.pcs.service.crud; import com.pcs.entity.Servico; import com.pcs.service.repository.ServicoRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import java.util.Date; @Component public class ServicoCrud { @Autowired private Se...
25.48
77
0.747253
16ee9119d89585a34d195de9ba0654b3e6903b26
5,352
/* * Copyright (c) 2014 Intellectual Reserve, 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 *...
24.438356
224
0.713939
83622f2d91cdd45ab7f1b1aaf4da95e7d77df412
128
package br.com.demo; public class Re implements Nota { @Override public String simbolo() { return "D"; } }
14.222222
33
0.601563
20522c70c5b94607f84191dd1f4eab149fb2eaa5
878
package com.interviewBitScaler.Lecture2_Arrays2; public class A5_SumOFAllSubMatrix { static int matrixSum(int A[][]) { int n = A.length; int sum = 0; for (int i = 0; i < n; i++) { for (int j = 0; j < n; j++) { // Number of ways to choose ...
24.388889
59
0.422551
eccae0a8a371dc0fca3932dfb3ffccb951c98a62
236
package com.microchip.mplab.nbide.embedded.arduino.importer; public class NativeProcessFailureException extends RuntimeException { public NativeProcessFailureException( String message ) { super(message); } }
21.454545
69
0.741525
ddebb29417a5ff8fafbba14055d94d4f2e60efb9
3,278
package com.jarvis.cache.lock; import java.util.HashMap; import java.util.Map; import com.jarvis.cache.to.RedisLockInfo; /** * 基于Redis实现分布式锁 * * @author jiayu.qiu */ public abstract class AbstractRedisLock implements ILock { private static final ThreadLocal<Map<String, RedisLockInfo>> LOCK_START_TIME = new...
26.224
130
0.561623
ff79dd47adf653e417cb12c5c201d40ab167c4df
3,350
/* * 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 * "Lic...
33.5
126
0.642388
33ad6b1b27ac42bde4defee71a707767c1adceef
2,193
package com.cts.training.dao.impl; import java.util.List; import org.hibernate.HibernateException; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transaction; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.st...
25.5
83
0.713178
878d8bd1a775a2339280f99db9a056e71cf9ba82
300
package com.elvin.pattern.pattern.builder; import lombok.Builder; import lombok.Data; /** * @author : Haifeng Pang. * @version 0.1 : LoanOrderBasicInfoDTO v0.1 2018/5/23 17:00 By Haifeng Pang. * @description : */ @Data @Builder public class LoanOrderBasicInfoDTO { private String price; }
17.647059
77
0.723333
ff64500e5caaf4ff1d58f76e3ea5ef26cd7a6821
869
package com.yzy.demo.concurrent.thread; import java.util.concurrent.BrokenBarrierException; import java.util.concurrent.CyclicBarrier; /** * @author young * @date 2019/8/7 15:24 */ public class CyclicBarrierTest2 { static class A implements Runnable{ @Override public void run() { S...
24.828571
96
0.606444
f375bcab382e553b8f887aa63479f8573ea5c420
2,031
package com.sevak_avet.dao.impl; import com.sevak_avet.dao.AntiSpamDao; import com.sevak_avet.domain.AntiSpam; import com.sevak_avet.domain.User; import org.hibernate.Query; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.springframework.beans.factory.annotation.Autowired; import org.spri...
27.08
84
0.682915
8d9a43023b6b7f9f00d564ebcfd0c8900dcb5975
3,696
/** * Licensed to Apereo under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright ownership. Apereo * licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use * this file except in compli...
41.066667
138
0.747024
5b7481562e7a2b2c6b713a6e750151d0cfaac06b
1,323
package io.github.espresso4j.jettino; import io.github.espresso4j.espresso.Espresso; import io.github.espresso4j.espresso.Response; import io.github.espresso4j.servleto.ServletRequestFactory; import io.github.espresso4j.servleto.ServletResponseFactory; import org.eclipse.jetty.server.Request; import org.eclipse.jetty....
34.815789
122
0.746032
20867cb19e39a8ab39177bf229739cf7c526335d
1,294
package cd.go.artifact.model; import java.util.Objects; import javax.json.Json; import javax.json.JsonObject; import javax.json.JsonObjectBuilder; import javax.json.JsonValue; import cd.go.artifact.util.JsonBuilder; /** * The {@link FetchConfig} get plan config for WebDAV. * * <pre> * { * "fetch_artifact_c...
19.029412
59
0.641422
a5fd87d0c75403aae94bae7bf1604a13b4fffa8e
1,414
package org.haoxd.spring.beans.factory; import org.springframework.beans.factory.DisposableBean; import org.springframework.beans.factory.InitializingBean; import javax.annotation.PostConstruct; import javax.annotation.PreDestroy; /** * @Description: 默认 实现 * @Author: haoxd * @Version: 1.0 */ public class Default...
23.966102
92
0.698727
5541f9f81f31d210d15db12b5f169c7131869e23
2,348
/* * Copyright (C) 2015 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
33.542857
89
0.678876
38d72baa1f720fab6fac259d220d73d097c096da
701
package jadx.tests.integration.generics; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.containsString; import org.junit.jupiter.api.Test; import jadx.core.dex.nodes.ClassNode; import jadx.tests.api.IntegrationTest; public class TestGenerics7 extends IntegrationTest { pub...
20.028571
61
0.724679
ac9daddf8cfc92839d642d02021698f36fbb7562
428
package org.apereo.cas.adaptors.yubikey; import org.junit.Test; import static org.junit.Assert.*; /** * This is {@link DenyAllYubiKeyAccountValidatorTests}. * * @author Misagh Moayyed * @since 5.3.0 */ public class DenyAllYubiKeyAccountValidatorTests { @Test public void verifyAction() { final va...
21.4
59
0.698598
bad8d94873553aa4788d5c65308a3c1f20317157
5,075
package apps.threedmanipulation.scene; import java.net.URL; import org.llama.jmf.JMFVideoImage; import synergynetframework.appsystem.contentsystem.ContentSystem; import synergynetframework.appsystem.contentsystem.items.VideoPlayer; import com.jme.bounding.BoundingBox; import com.jme.image.Texture; import...
27.884615
72
0.672906
a276f0629accb7a54476f16f02f32488980a65ea
5,480
package com.webcheckers.appl; import com.webcheckers.model.Game; import com.webcheckers.ui.pageroutes.PostLoginRoute; import java.util.*; import java.util.logging.Logger; /** * The main application layer of the web server. * Contains all essential side wide information and functions * Contains all players and gam...
30.614525
134
0.618066
353407b58df680b77e42abc534cef1f3fe309b84
2,357
package ca.nicbo.invadedlandsevents.api.event; import ca.nicbo.invadedlandsevents.api.permission.EventPermission; import org.jetbrains.annotations.NotNull; /** * The different {@link Event} types. * * @author Nicbo */ public enum EventType { BRACKETS_1V1("1v1 Brackets", "brackets1v1", EventPermission.HOST_BRA...
34.15942
100
0.699194
2235744ee046cdda82479ccfe4f2846bbf5d6aae
2,419
package hudson.plugins.hadoop; import java.io.IOException; import java.io.Serializable; import java.net.URISyntaxException; import javax.ws.rs.core.Response; import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.StaplerRequest; import hudson.Extension; import hudson.Launcher; import hudson.mod...
24.683673
97
0.76974
d3da6daa132d25f967bf5e72bef543762044fb8e
4,223
/* * Copyright © 2018 Mercateo AG (http://www.mercateo.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 ...
30.381295
99
0.63462
1b269674132a5c848d39a35abcc50ec7ac6a948f
386
package com.vilkg.framework.core.drivers.factory; import com.vilkg.framework.core.enums.Browser; import org.openqa.selenium.WebDriver; /** * Created by vilkg on 10/2/2017. */ public class LocalDriverFactory extends DriverFactory { public static WebDriver initDriver(final Browser browser) { WebDriver dri...
24.125
63
0.735751