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
30fd566eeba4f85089625e5ab044fc54b1700f65
3,004
/* * 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 ...
31.291667
92
0.734687
3278d648813aeec78aa434b5a66db4d559448d31
611
package com.journaldev.jsf.beans; import javax.faces.bean.ManagedBean; import javax.faces.bean.ManagedProperty; import javax.faces.bean.RequestScoped; @ManagedBean(name = "carnav", eager = true) @RequestScoped public class CarNav { @ManagedProperty(value = "#{param.pid}") private String pid; public String showPa...
16.972222
43
0.659574
58f3b7524a206f9367fd5448aa601952e20801af
13,731
package ch.usi.dag.disl.classparser; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.Set; import org.objectweb.asm.Opcodes; import org.objectweb.asm.Type; import org.objectweb.asm.tree.AbstractInsnNode; import org.objectweb.asm.tree.AnnotationNode; import org.objectweb.asm....
33.654412
90
0.571553
739ed92d46b46d9736c2fe79a732bfef0670edb7
2,140
package com.oop.paint; import java.awt.Dimension; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JMenu; import javax.swing.JMenuBar; import javax.swing.JMenuItem; public class MenuBar extends PaintArea{ public JMenuBar menuBarMaker() { ...
34.516129
104
0.690187
a2b0087e8e6809c69158839879483ebc1b18d5ff
665
package it.besmart.ocppLib.enumeration; public enum ProtocolVersion { // implemented protocols received in the Sec-Websocket-Protocol in the opening Handshake OCPPJ16("OCPPJ16"), OCPPS16("OCPPS16"), OCPP15("OCPP15"), OCPP20("OCPP20"); private String value; public String getValue() { ...
20.78125
92
0.639098
6d7c6f4ba65c47c04ac6226eb3d569e847f8c942
5,277
package top.viewv.model.symmetric; import javafx.concurrent.Task; import org.bouncycastle.jce.provider.BouncyCastleProvider; import javax.crypto.Cipher; import javax.crypto.CipherOutputStream; import javax.crypto.SecretKey; import javax.crypto.spec.IvParameterSpec; import java.io.FileInputStream; import java.io.FileO...
29.480447
127
0.556756
c2b3cc3918994433d957c94a3cb36e3ee5d1c07e
1,567
package com.kinglozzer.silverstripe.inspections; import com.intellij.codeInsight.intention.impl.BaseIntentionAction; import com.intellij.openapi.editor.Document; import com.intellij.openapi.editor.Editor; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.TextRange; import com.intellij.psi.P...
34.065217
97
0.724314
1c6fe03b34d99396ef0e9c317d2af88f9cc25fae
7,684
package io.papermc.hangar.config; import com.fasterxml.jackson.databind.AnnotationIntrospector; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.module.paramnames.ParameterNamesAnnotationIntrospector; import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.L...
46.289157
279
0.759761
8fa99e05341dbe0d822939c17b31791e51c94d3e
820
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package net.sf.mmm.orient.data.bean.api; import net.sf.mmm.orient.api.bean.Vertex; import net.sf.mmm.property.api.lang.StringProperty; /** * This is the abstract base class for a {@link Ve...
29.285714
110
0.681707
59ac19b335d96b0dcc57b0cdf4f14a3bc05c770a
27,066
/* * Copyright 2014 Midokura SARL * * 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...
40.63964
90
0.616456
2250077bd8e9cf2f025ac9ce606d0252a52c711c
4,850
/* * Copyright 2017 David Tesler * * 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...
40.082645
113
0.620206
d2f34c3b91060aafb3104e6443c69ef5a1b36d36
1,637
package cn.wizzer.app.out.modules.models; import cn.wizzer.framework.base.model.BaseModel; import org.nutz.dao.entity.annotation.*; import org.nutz.dao.interceptor.annotation.PrevInsert; import java.io.Serializable; /** * Created by Wizzer on 2016/7/31. */ @Table("sys_route") public class Sys_route extends BaseMod...
20.209877
66
0.621258
2856813beb57a74e394675c10ee952274ef1c02b
10,175
package com.github.nagyesta.lowkeyvault.model.v7_2.key.constants; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonValue; import com.github.nagyesta.lowkeyvault.model.v7_2.key.request.JsonWebKeyImportRequest; import com...
33.692053
135
0.601179
feb4f2563470e6bc53bc4b24fd6c1493e953e7e9
1,879
package io.openim.android.demo.ui.login; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import io.openim.android.demo.R; import io.openim.android.demo.databinding.ActivityRegisterBinding; import io.openim.android.ouicore.base.BaseActivity; public class RegisterActivity exten...
31.316667
104
0.664715
bacb6b12e296312e5c47bff78f4cbc2cd8eab15b
2,237
package com.example.doubanmovie.main; import android.content.Context; import android.support.annotation.Nullable; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.chad.library.adapter.base.BaseQuickAdapter; import com.chad.library.adapter.base.BaseViewHolder; import com.example.doubanmovie...
29.434211
98
0.605722
33957cccb9857d112b9f79fa4d6c1556ddea26a4
64
package com.alberto.playground; public class JavaFormatter { }
12.8
31
0.796875
797717d4089e93fa49b5a8a16aa9ef04b23ebd82
2,284
package com.github.ahapxor.utils; import com.github.ahapxor.BaseTestCase; import com.github.ahapxor.dtos.DecisionDto; import com.github.ahapxor.dtos.PurchaseDto; import com.github.ahapxor.entities.Decision; import com.github.ahapxor.entities.Purchase; import com.github.ahapxor.utils.ConverterBuilder; import org.junit....
35.6875
105
0.770578
ab8a2e4232d57d23e72ea370e6503b7f3c56d503
21,759
package com.lachesis.mnis.core.nursing; import java.util.ArrayList; import java.util.Calendar; import java.util.Collections; import java.util.Comparator; import java.util.Date; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.slf4j.Logger; i...
31.173352
99
0.730824
8d322d127f0c80e274a6bbe8dc55e1100d0c7b77
3,209
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.network.v2020_07_01.implementation; import com.m...
30.855769
209
0.706139
68ea90ba95e818331e795c597ff48335f4ebdb86
608
public class UniformRandomNumbers { public static void main(String[] args) { double n1 = Math.random(); double n2 = Math.random(); double n3 = Math.random(); double n4 = Math.random(); double n5 = Math.random(); double avg = (n1 + n2 + n3 + n4 + n5) / 5; doub...
32
79
0.544408
02ba4a6dc4fe41407296d233da56a38ab6c42c2c
2,312
package org.agentspace.console; import java.lang.reflect.*; import java.util.StringTokenizer; public class Command { public static void perform (String command) { StringTokenizer st = new StringTokenizer(command, " "); if (!st.hasMoreTokens()) return; String className = st.nextToken(); int a...
35.030303
127
0.647491
0423cf671e85d138fd4e4a7cbf8300a148a31bb8
6,380
package Handler; import Requests.Request; import Responses.*; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import java.net.*; /** * used to send requests to the server */ public class Sender { private static String log; ...
33.403141
103
0.559718
2b86a626e9ea6d416d31ec14966056f2f7f9eb26
1,996
package com.pchudzik.springmock.infrastructure.definition.registry; import com.pchudzik.springmock.infrastructure.MockConstants; import com.pchudzik.springmock.infrastructure.definition.DoubleDefinition; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.Objects; imp...
25.589744
98
0.741984
77cc2cf8af0d2e88b62aaefa4dc84d3479c83920
2,545
package org.springframework.samples.petclinic.bdd.stepdefinitions; import org.junit.Assert; import org.openqa.selenium.Alert; import org.openqa.selenium.By; import org.springframework.boot.web.server.LocalServerPort; import io.cucumber.java.en.Then; import io.cucumber.java.en.When; import lombok.extern.jav...
36.357143
217
0.686444
8c29e4e5048bcc1f9575a18cae7fb08bd94270b1
408
package com.ai.dao; import com.ai.domain.bo.AuthUserRole; import org.springframework.dao.DataAccessException; import java.util.List; public interface AuthUserRoleDao extends AuthUserRoleMapper{ int deleteByUniqueKey(AuthUserRole record) throws DataAccessException; int deleteByUserId(String userId)throws D...
27.2
74
0.823529
2ea42f7459420178a0e812e050da5cfd4f8168cf
2,128
package br.com.itau.cartaobrancoproposta.model; import br.com.itau.cartaobrancoproposta.error.ApiErrorException; import br.com.itau.cartaobrancoproposta.validator.CpfOuCnpj; import br.com.itau.cartaobrancoproposta.validator.VerificaPropostaMesmoSolicitante; import org.springframework.http.HttpStatus; import javax.val...
29.555556
134
0.704887
65a9574a52659049464d8c9402311fd770a8a354
9,124
/** * This software was developed and / or modified by Raytheon Company, * pursuant to Contract DG133W-05-CQ-1067 with the US Government. * * U.S. EXPORT CONTROLLED TECHNICAL DATA * This software product contains export-restricted data whose * export/transfer/disclosure is restricted by U.S. law. Dissemination ...
38.991453
118
0.603573
5c27ff6d39ffedeedc2eb177504a3a37fc8c059c
755
package edu.utexas.tacc.tapis.jobs.monitors.commands; public interface JobMonitorCommand { /** Return the command used to monitor remote job execution. * This command is must be valid while the job is queued or * running on the remote system, but may not return results * after the remote job comp...
32.826087
64
0.684768
4ccbbf2a5bfc0004b595d479c1714ce1f7714fba
940
package org.jruby.ir.passes; import java.util.Arrays; import java.util.List; import org.jruby.ir.IRScope; import org.jruby.ir.dataflow.analyses.UnboxableOpsAnalysisProblem; public class UnboxingPass extends CompilerPass { public static List<Class<? extends CompilerPass>> DEPENDENCIES = Arrays.<Class<? extends Com...
27.647059
160
0.697872
1062a977138aeaba47beef8705561741f26d225e
2,420
package E09RegularExpressions; import java.util.Map; import java.util.Scanner; import java.util.TreeMap; import java.util.regex.Matcher; import java.util.regex.Pattern; public class E04StarEnigma { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); Pa...
40.333333
162
0.558678
fa1019f5803ed2be068f8f743696b41822e77003
473
package com.github.lopoha.coboltruffle.parser.heap; // todo: position // todo: base parser exception class CobolVariableSizeMismatch extends RuntimeException { public CobolVariableSizeMismatch(String variableName, int expectedSize, int childrenSize) { super( String.format( "The variable %s wa...
33.785714
93
0.689218
a1f7b40bc925d7e4722022af79e76b9c2126d4c1
1,232
package com.itjing.service.Impl; import com.itjing.dao.FriendLinkDao; import com.itjing.entity.FriendLink; import com.itjing.service.FriendLinkService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * @Description: 友链业务层接口实现类...
23.692308
70
0.737825
3a48567608363a3c3a39db29eaefb085b0638b35
352
package com.oreilly.rxjava.ch2; import java.math.BigInteger; import java.util.Iterator; class NaturalNumbersIterator implements Iterator<BigInteger> { private BigInteger current = BigInteger.ZERO; public boolean hasNext() { return true; } @Override public BigInteger next() { current = current.add(BigInteg...
17.6
62
0.755682
3f4b7df0d206563593b29c96f67e2ab539c11ad3
24,591
/*L * Copyright Georgetown University, Washington University. * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/cab2b/LICENSE.txt for details. */ package edu.wustl.common.util; import java.io.IOException; import java.io.ObjectInputStream; import java.io.Serializ...
36.110132
201
0.582042
369dbcb14f0979e3ecd5e8370f96256401ebcf17
3,140
/* * Copyright 2020 ViiSE. * * 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...
39.746835
142
0.743631
0e988390cbffdb631b2375681081cedfd76c487d
388
package com.curso.examen01; import java.io.IOException; public class Q39 { void e() throws ArrayIndexOutOfBoundsException, ExceptionInInitializerError, IOException, NullPointerException, NumberFormatException {} } /* A. ArrayIndexOutOfBoundsException B. ExceptionInInitializerError C. java.io.IOExcept...
22.823529
81
0.78866
df069abc6b932ad087fc3fc2b004c8843a1bc03b
803
package io.leego.rpa.entity; import jakarta.persistence.Column; import jakarta.persistence.Entity; import jakarta.persistence.Table; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.experimental.FieldNameConstants; /** * @author Lee...
24.333333
48
0.770859
92799cde63a817b80c33b238452e04fff4e03c96
24,069
/* * 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 ...
43.445848
171
0.708796
141df97cf2c21590e7b4c9c920daee8cd80c0d9b
121
/** * Created by https://github.com/kuangcp * 测试基本的数据类型 * @author kuangcp * @date 18-4-4 上午11:31 */ package syntax;
17.285714
40
0.652893
7c4906c55851630b1a448fe55e1ce0734c58b20b
2,315
/******************************************************************************* * Copyright 2002-2016 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 * ...
36.171875
88
0.72311
5d170f6f17d13d3a32698180ba406b3068f40946
1,059
package software.plusminus.generator.java; import model.RootClass; import org.junit.Test; import software.plusminus.generator.java.model.TestModel; import software.plusminus.generator.java.model.suffix.PackageWithSuffix; import static software.plusminus.check.Checks.check; public class StandardJavaPackageResolverTes...
34.16129
93
0.725212
55e93e0c098f14bff012ca1381516c2ae030a15c
578
package testBase; import io.restassured.RestAssured; import io.restassured.response.Response; import io.restassured.specification.RequestSpecification; import org.junit.Before; public class BasePage { public static RequestSpecification httpRequest; public static Response response; public static final Strin...
25.130435
106
0.778547
b5a3d36f27e35d2f70cbabb7e5a14dce68f35359
1,870
// Copyright (C) 2014 Guibing Guo // // This file is part of LibRec. // // LibRec 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 3 of the License, or // (at your option) any later vers...
24.933333
121
0.649733
86881d047ee0fb5119b725deec673271d0752a54
1,481
package com.chutneytesting.admin.infra.storage; import static com.chutneytesting.admin.infra.storage.JsonHomePageRepository.HOME_PAGE_NAME; import static org.assertj.core.api.Assertions.assertThat; import java.io.IOException; import java.io.OutputStream; import java.nio.file.Files; import java.nio.file.Path; import j...
32.911111
105
0.725186
67736ca4c9787a850409d5b4bdf9fcf3d950dc61
319
package AncapLibrary.Packet; import AncapLibrary.Player.PacketReceiveable; public class AncapPacket { private Sendable[] sendables; public void sendTo(PacketReceiveable packetReceiveable) { for (Sendable sendable : this.sendables) { sendable.sendTo(packetReceiveable); } } }
21.266667
61
0.705329
185205e8bdbb3f9d22759fd509720ad2552342e9
7,705
package org.springframework.roo.addon.layers.repository.jpa.addon.finder.parser; import java.util.ArrayList; import java.util.Arrays; import java.util.Calendar; import java.util.Collection; import java.util.Collections; import java.util.Date; import java.util.List; import org.apache.commons.lang3.ClassUtils; import o...
30.215686
115
0.668657
0e9f1fe2a827412c8f037424833dbcae2a92e614
1,160
package com.alphania.budgetjet; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Brand { @SerializedName("id") @Expose private String id; @SerializedName("name") @Expose private String name; @SerializedName("productCount") @Ex...
18.125
64
0.589655
5ee538a19b3893fdc27fc6f717fd317a5207eb37
1,367
package com.thanple.thinking.designpatterns.behavior; /* * 迭代子模式 * */ interface Collection{ public IteratorInter iterator(); public Object get(int i); public int size(); } interface IteratorInter{ public Object previous(); public Object next(); public boolean hasNext(); public Object first(); } class MyItera...
17.303797
53
0.682516
90a368479a92d7d1b03fb6e7faf58e6da485c3d6
107
package com.alphamedia.rutilahu.api; public interface ProgressListener { void transferred(long num); }
21.4
36
0.785047
b9c475fd514b684b50c3fd386d9aedca431a0b1a
764
package net.unicon.cas.mfa.web.support; import org.jasig.cas.authentication.principal.WebApplicationService; import javax.servlet.http.HttpServletRequest; /** * Strategy interface for verifying requested mfa authentication methods. * * @author Dmitriy Kopylenko * @author Unicon inc. */ public interface Authenti...
30.56
133
0.768325
c5fd61127703876d93e1e48916eff4d17766fbbc
2,509
package com.nortal.spring.cw.core.web.component.element; import com.nortal.spring.cw.core.web.component.BaseElement; import com.nortal.spring.cw.core.web.component.ElementPath; import com.nortal.spring.cw.core.web.component.Hierarchical; import com.nortal.spring.cw.core.web.component.composite.Component; import com.no...
27.571429
139
0.707055
82eaf50d61a773977a0cf0e1884703987d2729d2
948
public final class C { @kotlin.jvm.JvmOverloads @org.jetbrains.annotations.NotNull public final java.lang.String foo(@org.jetbrains.annotations.NotNull java.lang.String o, @org.jetbrains.annotations.NotNull java.lang.String o1, @org.jetbrains.annotations.NotNull java.lang.String o3, @org.jetbrains.annotatio...
63.2
285
0.75211
01898d869d86fe0df65edb7cae0ca3a7c1646e1a
1,016
package oop.chiff.javapetrinets; import java.io.File; import java.io.StringReader; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; class XmlReader { private Document petrinet; XmlReader(File file) throws JAXBException { JAXBContext jContext...
28.222222
71
0.67815
77cd175e1ab4594c91eb9cf7577e90faa9fa5be7
405
package simulal._estrategiaDeOrdenacao; import simulal._animais.Animal; import java.util.Comparator; public class OrdenaAnimalPorPeso implements Comparator<Animal> { @Override public int compare(Animal o1, Animal o2) { if (o1.getPeso() > o2.getPeso()) { return 1; } else if (o1.get...
22.5
64
0.612346
1a6fcdf9036e3043ecade9f2ee231f2414af19f8
4,978
package salsa.corpora.elements; import java.util.ArrayList; import salsa.corpora.noelement.Id; /** * Represents a 'frame' section in a SalsaXML corpus. * * @author Fabian Shirokov * */ public class Frame { private Id id; private String name; private String source; private String us...
20.235772
91
0.590599
e2b89bfd8f5c8ba80c69fe17d51ae168116236d3
111
package com.example.accessingdatamysql.models.enums; public enum ProductStatus { ACTIVE, DEACTIVE }
12.333333
52
0.747748
7283083fb81c307af6129b25801fc7bc9bf4ef15
1,024
package cc.dc.lock; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.ReentrantLock; public class ResourceLock { private int size = 0; private ReentrantLock lock = new ReentrantLock(); private Condition condition = lock.newCondition(); public void add() throws Interrup...
24.380952
81
0.526367
bd194d8298f9f4a229854f4e7e7ad538b451ecf9
203
package victor.training.rx.sample.opp2; import rx.Single; public class TourInfoRepository { public Single<TourInfo> getTourByPK(LocationId locationId, TourId fromString) { return null; } }
20.3
82
0.753695
0d8899f73c5f19d61d5a9905211610db7ef3bc00
4,469
/* * Copyright (c) 2008-2013 Haulmont. All rights reserved. * Use is subject to license terms, see http://www.cuba-platform.com/license for details. */ package com.haulmont.cuba.core.sys.jpql.model; import com.haulmont.cuba.core.sys.jpql.InferredType; import java.util.*; /** * User: Alex Chevelev ...
36.631148
117
0.650481
acac0c2fecef489937b01425a05061285c3d4dc6
1,048
package net.minestom.server.entity.metadata.minecart; import net.minestom.server.chat.ColoredText; import net.minestom.server.chat.JsonMessage; import net.minestom.server.entity.Entity; import net.minestom.server.entity.Metadata; import org.jetbrains.annotations.NotNull; public class CommandBlockMinecartMeta extends ...
26.871795
89
0.705153
bef2e9ab7df693e54e204bace53b38c4452fe3aa
43,856
/* * Copyright (C) 2012 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...
40.457565
100
0.582474
bac176c9911d729f926b3c6af4e61911d2cf5532
1,484
package org.oddjob.arooa.design.designer; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import org.oddjob.arooa.design.DesignComponent; import org.oddjob.arooa.design.actions.EditActionsContributor; import org.oddjob.arooa.parsing.CutAndPasteSupport; /** * Adds enabled/d...
26.035088
95
0.712938
3fcaed6d92d563ab66bc8941857d292e3652b454
403
package org.narrative.config; import org.narrative.network.customizations.narrative.service.mapper.NicheMapper; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; /** * Minimal Spring config to bootstrap mappers for testing */ @Configuration @Co...
31
81
0.831266
7334fbb08ffee9c3583d791c0eceb7b6ec523cce
915
import java.io.*; import java.util.*; public class FileDriver { public FileDriver() { } // returns an array of strings from the file public String[] getStringArray(String fileName) { ArrayList<String> fileArray = new ArrayList<String>(); String[] strArray = null; try { BufferedReader in = new Buffered...
18.3
68
0.646995
bfe110886da7fcf21471ee3acad0087c97e75d48
244
package com.autoStock.types.basic; /** * @author Kevin Kowalewski * */ public class MutableBoolean { public boolean value; public MutableBoolean(){ value = false; } public MutableBoolean(boolean value){ this.value = value; } }
13.555556
38
0.692623
befecf4c41388648f28f0db441e9abe8ee971cd1
36,995
/** * 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...
43.472385
134
0.739019
bcd8919d9329a16b86a92793e5b5225a78cb7a4a
1,086
package com.affinda.api.client.models; import com.azure.core.annotation.Fluent; import com.fasterxml.jackson.annotation.JsonProperty; /** The PathsCoo0XpIndexNameDocumentsPostResponses201ContentApplicationJsonSchema model. */ @Fluent public final class PathsCoo0XpIndexNameDocumentsPostResponses201ContentApplicationJs...
31.028571
115
0.731123
9851d58cc99b96b8d8c5d2bf7e42c16f574fd0b8
308
package com.hanigone.hanigone.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import com.hanigone.hanigone.service.HService; @Controller public class HController { @Autowired private HService hService; }
18.117647
63
0.775974
bc92103e82088366146677cffc8dcef447681f7a
467
package all_problems; public class P1828_QueriesOnNumberOfPointsInsideACircle { public int[] countPoints(int[][] points, int[][] queries) { int n = queries.length; int[] ans = new int[n]; for (int i = 0; i < n; ++i) { int x = queries[i][0], y = queries[i][1], r2 = queries[i][2] * queries[i][2]; ...
29.1875
83
0.507495
9d0e1c83ef8f54e58ea5bd7c97bd06883ec69cae
4,999
package io.spaship.operator.rest; import io.quarkus.test.junit.QuarkusTest; import io.restassured.http.ContentType; import io.spaship.operator.controller.OperatorService; import io.spaship.operator.crd.Website; import io.spaship.operator.openshift.OperatorServiceTest; import org.junit.jupiter.api.Test; import java.ut...
43.469565
165
0.617724
f3424009cdac899c57979f9b67b56abb09a0544a
4,343
package br.com.caelum.iogi.vraptor; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.equalTo; import static org.hamcrest.Matchers.is; import java.lang.reflect.Type; import java.util.List; import org.junit.Test; import br.com.caelum.iogi.Iogi; import br.com.caelum.iogi.fixture...
35.598361
141
0.673037
472b28f0937db26c9c6a2e32d38a38f270839738
1,029
package io.socket.socketio.server; import io.socket.parser.Packet; public final class SocketIoAdapterImpl extends SocketIoAdapter { SocketIoAdapterImpl(SocketIoNamespace namespace) { super(namespace); } @Override public void broadcast(Packet packet, String[] rooms) throws IllegalArgumentExce...
27.078947
116
0.724976
b1801efdbf37cb7718efd8e23aea3d487b8db934
373
package com.tdd.blog.website.dao; import com.tdd.blog.website.modal.Vo.TConsume; import org.apache.ibatis.annotations.Param; import java.util.List; /** * @author Tdd * */ public interface TConsumeMapper { Integer saveTconsume(@Param("tConsume") TConsume tConsume); List<TConsume> tConsumeList(@Param("page")...
26.642857
97
0.745308
4ef52015c8dac7fdc3e3c770cb547e01b334cb45
271
package com.sohu.cache.init; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; /** * Created by yijunzhang on 14-9-25. */ public class AsyncLoad { protected ExecutorService executorService = Executors.newCachedThreadPool(); }
18.066667
80
0.767528
516ac63659909b7083ef1f58ed83c4ecb61cecc9
1,956
/** * Copyright (c) 2013-Now http://jeesite.com All rights reserved. */ package com.jeesite.modules.sz.service; import java.util.List; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import com.jeesite.common.entity.Page; import com.jeesite.common.ser...
25.736842
130
0.791411
083d216384e6bc5d35f270f5fc53e93a3c013180
3,531
package stream.collectors; import org.junit.Test; import stream.util.Dish; import stream.util.Menu; import java.util.Comparator; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.stream.Collectors; /** * @author zhangyupeng * @date 2018/9/11 */ public class GroupingByTest { ...
46.460526
212
0.365052
a7f8c0055d1c8604197ef777119b1c2ed0aaa451
5,746
/** * */ package org.activejpa.enhancer; import java.io.Serializable; import java.lang.instrument.ClassFileTransformer; import java.lang.instrument.Instrumentation; import java.util.HashSet; import java.util.List; import java.util.Set; import javax.persistence.Entity; import org.activejpa.entity.Filter; import or...
48.694915
185
0.729551
b389dc0628d3fd8a8984b5920715f660f9813425
2,710
/** * Yobi, Project Hosting SW * * Copyright 2014 NAVER Corp. * http://yobi.io * * @Author Yi EungJun * * 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/l...
25.809524
88
0.628413
f6b7395f87d2759c39c6055fb1663233f5bbbd2d
2,213
/* * Copyright 2016-2020 The OpenZipkin Authors * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
38.155172
100
0.755535
f8b404ff7aa73e7810f0ec4dbbcb92d6dfab2bad
699
package org.apache.fineract.cn.stellarbridge.service.internal.federation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; @Component public class StellarAddressResolver { private final ExternalFederationService externalFederationService; @Autowired ...
31.772727
91
0.834049
bfac2d8bd394209ca82057389b380b17d06c25ab
2,208
package no.nav.foreldrepenger.abakus.app.tjenester; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import javax.ws.rs.core.Response; import org.junit.jupiter.api.BeforeEach; import org...
34.5
104
0.766304
6d2bfdd22e88e6fce57b6c569f8bee9a1a3e7eea
4,055
package reflection; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; /** * 反射:运行期做一些事情 * <p/> * Created by Tikitoo on 2015/12/7. */ public class ReflectionDemo { public...
28.758865
89
0.578545
9fb672e0ee4eb09abab1052a462a46ceda187317
4,309
package org.fluentjava.iwant.eclipsesettings; import java.io.File; import java.io.PrintWriter; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import java.util.SortedSet; import java.util.TreeSet; import o...
26.763975
77
0.732653
326c3d4ed9463d37c4cab1c0c7bbd3ca4fc16ecd
11,770
package de.afarber.testscroll2; import java.util.ArrayList; import java.util.Random; import android.content.Context; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.drawable.Drawable; import android.util.AttributeSet; import android.util.Log; import android.view.Gest...
32.070845
132
0.516143
76cb69a308b01c074bf16d705d09b8b9959eeafd
1,966
package net.sf.regadb.db; import java.util.HashSet; import java.util.Set; /** * DrugClass generated by hbm2java */ public class DrugClass implements java.io.Serializable { private Integer drugClassIi; private int version; private String classId; private String className; private Integer re...
22.089888
74
0.666836
4beb6c6d52e44bf4397b375c1e3c389602e02bc4
4,091
/* * Copyright 2019 EIS Ltd and/or one of its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ...
39.336538
109
0.701784
87a5664983fe991580e307480b111e1a1dcf964e
1,636
package graphs.algos; import java.util.LinkedList; import java.util.Queue; import graphs.graph.Graph; import graphs.linkedlistgraph.LinkedListGraph; import graphs.linkedlistgraph.LinkedListVertex; public class Planar5Orienter { /** * Pre-condition: g is planar, all edges in g are undirected (maybe not ...
28.701754
98
0.575183
0c7915834302b74fa60fef7581cc78653bcbe720
1,382
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
30.711111
84
0.722865
926d574cd69fb5c2b468c4dce17e2404b946d50b
3,892
/* * JasperReports - Free Java Reporting Library. * Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program is part of JasperReports. * * J...
25.109677
88
0.748201
b04bcce08d7512b4a162c3bebce97b91bfe7d581
1,326
package com.example.demo.Movie; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.web.bind.annotation.GetMapping; import java.util.ArrayList; import java.util.List; import java.util.Optional; @Service public class MovieService { ...
29.466667
69
0.674208
7b56001e5761473a78381deb8f70208a47c859df
649
package it.zero11.vaadin.course.components; import com.vaadin.flow.component.Component; import com.vaadin.flow.component.Tag; import com.vaadin.flow.component.dependency.JsModule; import com.vaadin.flow.component.dependency.NpmPackage; @Tag("google-chart") @NpmPackage(value = "@google-web-components/google-chart", ve...
29.5
77
0.765794
945954cc41b17ee233e702a16fb5d1b4be40dc1f
904
package pack; public class Programmer { //public String nickName = "천재"; public String nickName; //초기갑은 null //private int age = 0; private int age; //초기값은 0 String spec = "자바 전문가"; public static String motto = "빠지자"; public final double PI = 3.14; //final 붙인 건 대문자로 쓰자. public final static String ...
22.04878
76
0.615044
2cffa169e0bf62566f9764726071920d227bf84e
1,510
/* 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 not use ...
29.607843
79
0.724503
c43ac8f021b83620054d67be98955245491a225a
1,143
// // ======================================================================== // Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // https://www.eclipse.org/...
30.078947
77
0.63692
a691498a6b60a68dfcbe742338d47d970e68b241
10,108
package io.github.htools.io.struct; import io.github.htools.io.EOCException; import io.github.htools.lib.Log; /** * Provides streamed data access by iterative read/write actions of records/rows * that consists of some defined structure. * <p> * @author jeroen */ public abstract class StructuredStream { pub...
27.026738
124
0.549861
6effb69bdf62598146117d83ac81d368264f8eb2
2,992
/* Soubor je ulozen v kodovani UTF-8. * Kontrola kódování: Příliš žluťoučký kůň úpěl ďábelské ódy. */ package logika; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; /******************************************************************************* * Tes...
27.703704
80
0.559826
270af76ab4bb9a75b3f609a17be436f03962f062
16,261
package io.github.wztlei.wathub.ui.modules.base; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.annotation.TargetApi; import android.app.Activity; import android.content.Context; import android.os.AsyncTask; import android.os.Build; import android.os.Bundle; import ...
32.784274
123
0.625054
9417416e2beda797e7bea2b4aa2fcdf08dbb716c
945
package players; /** * Knight class that extends the parent class Player * @author Jhakon * */ public class Knight extends Player { private static final int MAX_FATIGUE = 25; private static final int MAX_STEPS = 2; /** * Knight method with parameter name, steps, max fatigue, and max steps in that order * @param...
20.106383
85
0.679365
9ec8b4dfafa3c97b58d3d768289e6dbde420b7c1
49,726
// // This file is auto-generated. Please don't modify it! // package org.opencv.objdetect; import java.util.ArrayList; import java.util.List; import org.opencv.core.Mat; import org.opencv.core.MatOfDouble; import org.opencv.core.MatOfFloat; import org.opencv.core.MatOfPoint; import org.opencv.core.MatOfRect; import o...
32.996682
103
0.693219
aaa8d5bb20d4ac07145e83fdd070ffa03294e822
294
package validation.constraints.NotFullBlank.testFields; import validation.constraints.NotFullBlank.annotations.NotFullBlank; public class HalfBlanksTest { @NotFullBlank private String valid="a"; @NotFullBlank private String invalid=" "; public HalfBlanksTest() {} }
21
68
0.748299