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
91aede57883e3241ecd65e42a07b02a554538947
555
package dderrien.common.model; import com.googlecode.objectify.annotation.Cache; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Index; @Entity @Cache @Index public class User extends AbstractBase<User> { String name; String email; public String getName() { ...
19.137931
50
0.672072
f43ea63cd8092b9ea9b9996a61cc3af041449970
759
package com.github.supermanhub.spring_boot_quick_start.integration.base; import org.junit.Ignore; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.SpringBootTest.WebEnvironment; import org.springframework.test.context.junit4.Spri...
31.625
75
0.807642
1d20a90a5809710d8270a8dc88b0c40eef9e5c5f
973
package fr.trxyy.alternative.alternative_api.assets; import java.util.HashSet; import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; /** * @author Trxyy */ public class AssetIndex { /** * The default asset name */ public static final String DEFAULT_ASSET_NAME = "legacy"; /** * The obj...
18.018519
58
0.678314
40788fecd5183763b1bfab085475b5432daede8c
674
package frc.robot.auto; import edu.wpi.first.wpilibj2.command.InstantCommand; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import edu.wpi.first.wpilibj2.command.WaitCommand; import frc.robot.intake.IntakeSubsystem; public class ExtakeBall extends SequentialCommandGroup { private final double EXTA...
33.7
93
0.744807
513c1673fdce7ce1810172ebd70456b153fccabb
3,780
package com.acgist.snail.context; import java.net.InetSocketAddress; import java.nio.channels.DatagramChannel; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import...
23.04878
85
0.707672
2e716c304abe091fb73d84b2885878845eb74fd3
815
package com.oven.filter; import javax.servlet.*; import javax.servlet.annotation.WebFilter; import java.io.IOException; @WebFilter(filterName = "myFilter", urlPatterns = "/test/*") public class MyFilter implements Filter { @Override public void init(FilterConfig filterConfig) { System.out.println("初始...
27.166667
152
0.679755
ebfd86366b4c56dfdb5f7a90c5bc633ce549a8d3
1,656
package com.dianping.zebra.shard.api; import java.util.HashMap; import java.util.List; import java.util.Map; public class ShardDataSourceHelper { private static final ThreadLocal<ShardParamsHolder> SHARD_PARAMS = new ThreadLocal<ShardParamsHolder>(){ protected ShardParamsHolder initialValue() { return new S...
28.067797
111
0.783213
8cdcd0b6152ec10f98e71c544ccf88c39a1200d2
1,855
package com.qlm.similitude.lsh.measure; import java.io.*; import java.util.*; import java.util.stream.Collectors; public class GenerateTruth { @SuppressWarnings("ResultOfMethodCallIgnored") public static void main(String[] args) { String sentencesFile = args[0]; String outFile = args[1]; Double minJa...
34.351852
151
0.656604
48d6fa2e9c7b723c8e51b189669db60f6853a312
22,039
package computing.corona.mobile.cov_erage; import androidx.appcompat.app.AppCompatActivity; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Color; import android.icu.text.SimpleDateFormat; import android.net.ParseException; import android.os.AsyncTask; import android....
39.853526
117
0.60334
0297d711f55cccb5e2076afbc41cd6f5e69c7fcd
1,378
package com.vo; import java.io.Serializable; import java.util.List; /** * @Description: 部门管理 * @Date: 2018.1.30 * @author lv * @version 1.0 */ public class Department implements Serializable { private int department_id; // 部门ID private int area_id; // 区域id private String department_name; // 部门名称 private Str...
19.138889
71
0.743106
36982c85fab53cbf3e928b568838e1cc7fe9f359
5,584
package org.folio.circulation.infrastructure.storage; import static java.util.concurrent.CompletableFuture.completedFuture; import static org.folio.circulation.support.Result.failed; import static org.folio.circulation.support.Result.succeeded; import static org.folio.circulation.support.results.CommonFailures.failedD...
41.362963
111
0.773281
261f49139286dd8cf5959976f5222032bfe54e7c
2,701
/* * Copyright (C) 2017 The LineageOS Project * Copyright (C) 2010 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/licen...
33.7625
98
0.612366
8a32b78daa79d3c3b67ebc7308a000b7c8177097
5,108
/* Reads lines from a tree of nested include (text) files @(#) $Id: NestedLineReader.java 9 2008-09-05 05:21:15Z gfis $ 2007-12-04: copied from program/ProgramTransformer -> generalized scanner 2007-10-29, Georg Fischer: extracted from JavaTransformer */ /* * Copyright 2006 Dr. Georg Fischer <punctu...
35.72028
104
0.587314
d012a25b4187b7e2b87a6184330da00f6ab744e7
1,429
package com.coroptis.jblinktree.store; /* * #%L * jblinktree * %% * Copyright (C) 2015 coroptis * %% * 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/lic...
25.517857
80
0.63261
943fc820c7ef15bbf0ad18fb584e464aa80cb179
1,327
package io.fairspace.saturn.services.metadata.validation; import io.fairspace.saturn.vocabulary.FS; import org.apache.jena.rdf.model.Model; import org.apache.jena.vocabulary.RDF; import org.apache.jena.vocabulary.RDFS; public class UniqueLabelValidator implements MetadataRequestValidator { @Override public vo...
47.392857
116
0.601356
db8337090e006da5aa0128357969c22b4523b9a8
1,869
package com.migibert.kheo.core.plugin.os; import java.util.ArrayList; import java.util.List; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.migibert.kheo.core.ServerEvent; import com.migibert.kheo.core.plugin.AbstractEventGenerator; public class OsEventGenerator extends AbstractEventGenerator<O...
39.765957
146
0.762975
72117bca11491b01246595f1b27ecb17f37051fc
5,514
package subway.domain; import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException; import static org.assertj.core.api.Assertions.assertThatNoException; import static subway.message.ErrorMessage.LINE_INVALID_NAME_LENGTH; import static subwa...
38.291667
81
0.699855
cce1146701769dac0b9837d333e14b0c89dc5c2e
1,209
package seedu.address.commons.core; /** * Container for user visible messages. */ public class Messages { public static final String MESSAGE_UNKNOWN_COMMAND = "Unknown command"; public static final String MESSAGE_INVALID_COMMAND_FORMAT = "Invalid command format! \n%1$s"; public static final String MESSA...
60.45
117
0.791563
5ad8bdf1dd605e1e9d7f7d7ae0760dd7aecd08bd
3,684
package cellsociety_team17; import java.util.List; import javafx.scene.shape.Shape; import javafx.event.EventHandler; import javafx.scene.input.MouseEvent; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; public abstract class Cell { protected static final Color[] STATE_COLORS = { Color.WHITE,...
22.463415
136
0.663409
641fee83e494ecf8481f216c38ee906bfed9c181
3,550
/* * Copyright (c) 2014, 2020 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: ...
32.87037
79
0.584225
10764b87cea5b59164efeab05565e735acd0f39e
2,289
package com.test; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.BenchmarkMode; import org.openjdk.jmh.annotations.Fork; import org.openjdk.jmh.annotations.Measurement; import org.openjdk.jmh.annotations.Mode; import org.openjdk.jmh.annotations.OutputTimeUnit; import org.openjdk.jmh.a...
27.25
118
0.633901
b7a79fac524e1f54f4abfcd1b2cc1c00b1c87bdf
1,533
package lark.core.lang; import lark.core.enums.BaseEnum; /** * @author cuigh */ public class BusinessException extends RuntimeException implements Error { protected int code; protected String detail; public BusinessException() { super(); } public BusinessException(int code) { ...
19.909091
84
0.598174
7fd201be93f6adbdd57d6ba9269599f4e3b9ec27
1,216
/* Copyright (C) 2004 Versant Inc. http://www.db4o.com */ package com.db4o.cs.internal; import com.db4o.cs.internal.messages.*; import com.db4o.foundation.*; class BlobProcessor implements Runnable { private ClientObjectContainer stream; private Queue4 queue = new NonblockingQueue(); private boolean ...
19.612903
68
0.643092
3e8f9e16931ec3c10b71b46a90b46ddf496030ed
4,930
/* * This file is generated by jOOQ. */ package com.sourceclear.agile.piplanning.service.jooq.tables; import com.sourceclear.agile.piplanning.service.jooq.Agile; import com.sourceclear.agile.piplanning.service.jooq.Indexes; import com.sourceclear.agile.piplanning.service.jooq.Keys; import com.sourceclear.agile.pipl...
28.830409
199
0.660243
f83078a6912980099a3115726da1b7c7bd73a7ed
1,392
package seedu.address.model.timetable; import java.util.HashMap; import java.util.Map; public class LessonTypeMapping { private static LessonTypeMapping mapping = null; private Map<String, String> lessonTypeMap; // Obtained data from "https://github.com/nusmodifications/nusmods/blob/8e76af2e407f602dcecab...
35.692308
149
0.658764
7fc04355171328591eeba3510438a232b855c0c1
1,249
package com.buraktuysuz.secondhomework.entityService; import com.buraktuysuz.secondhomework.dao.UserDao; import com.buraktuysuz.secondhomework.entity.User; import org.springframework.stereotype.Service; import java.util.List; import java.util.Optional; @Service public class UserEntityService { private UserDao u...
22.709091
71
0.655725
06406667256f25598552c4561efa3cd1f4cfa0cf
3,434
package com.someoneice.partyrecipes.Block; import net.minecraft.core.BlockPos; import net.minecraft.core.Direction; import net.minecraft.sounds.SoundEvents; import net.minecraft.sounds.SoundSource; import net.minecraft.world.InteractionHand; import net.minecraft.world.InteractionResult; import net.minecraft.world.ent...
44.025641
229
0.746069
39bde49a9af1461e3b16533415a59f6c4d0fb9c9
15,609
/* * Copyright (C) 2018 Seoul National University * * 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...
44.853448
119
0.544494
5176ca826af62d0dc44b6235fed4f685bbbbc49e
1,320
package gui; import javax.swing.*; import java.awt.*; public class FriendListPanel extends JPanel { private final JPanel friendsPanel; private final JButton btRefresh; public FriendListPanel() { setLayout(new BorderLayout()); var btContainer = new JPanel(); btRefresh = new JButto...
26.938776
81
0.656061
0718ca62125197457ac511d6261f3b41b1cb13b4
1,319
<#include "/macro.include"/> <#include "/java_copyright.include"> <#assign className = table.className> <#assign classNameLower = className?uncap_first> <#list table.pkColumns as column> <#assign pkJavaType = column.javaType> </#list> package ${basepackage}.domain; import javax.persistence.Column; import javax.persist...
24.425926
93
0.686884
516b09fd1c001a7e9866a399f59b52a8778078b3
1,236
/* * Copyright (c) 2020 L3Harris Technologies */ package com.l3harris.swim.outputs.database; import com.l3harris.swim.outputs.Output; import com.mongodb.MongoClient; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoDatabase; import com.typesafe.config.Config; import org.bson.Document; import...
28.090909
78
0.723301
67ceade7de0b8d6d989ccfb46946205bc5a0faa3
2,952
package com.pg85.otg.util.gen; import com.pg85.otg.constants.Constants; import com.pg85.otg.util.ChunkCoordinate; public class DecorationArea { // Anything that uses decoration bounds should be using the methods in this class. // TODO: Refactor this, change the decorated area from 2x2 to 3x3 chunks and // remove ...
27.849057
95
0.751016
7aec8b45a0eaf63f29d813b51346e4d0434e68f7
34,693
/** * 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 m...
42.620393
105
0.609748
a13898b13a742893ccdb97b922d0090ad406f0c5
2,939
/* * ====================================================================== * PrintViewOperationsVisitor.java: Visit components and retrieve a * summary of performance and cost of system operations .. * * Modified by: Mark Austin June, 2012 * ===============================...
31.945652
88
0.474651
a23bbb24f25e15d3428db096d217f8d06b10ede8
1,562
package ch.uzh.ifi.hase.soprafs21.GameEntities.Movement; import ch.uzh.ifi.hase.soprafs21.GameEntities.Players.Player; import ch.uzh.ifi.hase.soprafs21.GameEntities.TicketWallet.Ticket; import ch.uzh.ifi.hase.soprafs21.network.Station; import javax.persistence.*; @Entity @Table(name = "MOVE") public class Move { ...
19.772152
66
0.637644
6bc3399b71bbf58e07e18d410ecc9c25421b6755
17,744
package controllers.publix; import daos.common.ComponentResultDao; import daos.common.StudyResultDao; import exceptions.publix.ForbiddenNonLinearFlowException; import exceptions.publix.ForbiddenReloadException; import exceptions.publix.PublixException; import general.common.Common; import general.common.StudyLogger; i...
49.983099
120
0.699842
3aca9008a7dcceda1388ce2b96ee6b77c4122384
6,581
package com.wepay.zktools.zookeeper; import com.wepay.zktools.zookeeper.internal.ZooKeeperClientImpl; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.data.ACL; import org.apache.zookeeper.data.Stat; import java.io.Closeable; import java.util.List; impor...
38.261628
155
0.701717
4185c265a9ddfe041da8422d13a800b1a390ee36
1,117
package osp.leobert.utils.mocker.notation; import java.lang.annotation.Retention; import java.lang.annotation.Target; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.RetentionPolicy.RUNTIME; /** * <p><b>Package:</b> osp.leobert.utils.mocker.notation </p> * <p><b>P...
31.027778
92
0.692927
a99fde3781481d881814ebdf3e9395e77711a742
2,785
package tech.pcloud.configure.center.server.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*; import tecp.pcloud.configure.center.core.model.po.Profile; import tecp.pcloud.configure.center.core.model.p...
42.846154
119
0.770557
4bafdecc229ce36a99255c630e8369d3d2c83de9
1,019
package com.mcxiv.logger.formatted; import com.mcxiv.logger.util.ByteConsumer; import com.mcxiv.logger.util.StringsConsumer; import java.io.OutputStream; import java.io.PrintStream; abstract class Logger_StreamDependencyAdder extends Logger_LevelDependencyAdder { protected StringsConsumer writer; public Lo...
24.853659
83
0.633955
c4ce42a823f13a1502f3a2faa74190e5b114a176
1,976
package com.louis.kitty.dbms.service; import java.util.List; import java.util.Map; import com.louis.kitty.dbms.exception.DAOException; import com.louis.kitty.dbms.model.Column; import com.louis.kitty.dbms.model.ForeignKey; import com.louis.kitty.dbms.model.Index; import com.louis.kitty.dbms.model.PrimaryKey; import c...
21.247312
83
0.652834
2f7e42af41468418e6c9c8c0a8308c3026637f5d
3,309
/* * Copyright 2015-2016 OpenCB * * 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 ...
29.810811
129
0.651859
efa182f77e60b60e698d28a80a5bfd8a167fa376
476
package com.moxi.hyblog.admin.annotion.AvoidRepeatableCommit; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 避免重复提交 * */ /** * @author hzh * @since 2020-08-07 */ @Target(ElementType.METHOD) @R...
19.833333
61
0.735294
87d0eba050c1fdcd8321aaead863013526b0aa5b
11,248
package com.lotaris.jee.validation.preprocessing; import com.lotaris.jee.validation.preprocessing.IPreprocessingConfig; import com.lotaris.jee.validation.preprocessing.IPreprocessor; import com.lotaris.jee.validation.preprocessing.ApiPreprocessingContext; import com.lotaris.jee.test.utils.PreprossessingAnswers; import...
36.75817
144
0.778894
6bd0618904d4b5409da9911a070ee6c533873dad
27,605
/* * The Alluxio Open Foundation licenses this work under the Apache License, version 2.0 * (the "License"). You may not use this work except in compliance with the License, which is * available at www.apache.org/licenses/LICENSE-2.0 * * This software is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDI...
37.103495
100
0.703315
f32c16697b9719604e3544d494636ee305ed2d21
1,262
package lab3_sebastianramirezdiegovarela; public class Persona { private String nombre,apellido; private int años_profesional,salario; public Persona() { } public Persona(String nombre, String apellido, int años_profesional, int salario) { this.nombre = nombre; this.apellido = ape...
22.945455
153
0.628368
fd931136702e2e470676c1fbfa7c771495fdfe23
959
package com.wulai.knowledge; import com.WulaiClient; import com.exceptions.ClientException; import com.exceptions.ServerException; import com.module.response.knowledge.KnowledgeItemsList; import org.apache.http.client.methods.CloseableHttpResponse; import java.util.HashMap; public class QueryKnowledgeItemsList { ...
29.060606
108
0.734098
29936504dd000108a0e9231d83bf5bcdbd913f2c
218
package com.katsuraf.demoarchitecture.ui.view; import java.util.List; public interface IKeywordsView extends ILoadDataView { void showKeywords(List<String> keywords); void showKeywordsView(boolean isShow); }
24.222222
54
0.793578
085fbb71938431a03cbf6c8cbcded9cfe6739f59
379
package org.ormfux.common.db.generators; /** * A generator that does nothing but throwing an Exception. */ public final class NoValueGenerator implements ValueGenerator<Void> { /** * @throws UnsupportedOperationException */ @Override public Void generate(final Object previousValue) { ...
22.294118
69
0.693931
3d31e66b1af73a7ad99ed8cfa93929acdc20125a
4,444
package org.openecomp.sdc.be.servlets; import com.jcabi.aspects.Loggable; import io.swagger.annotations.*; import org.openecomp.sdc.be.components.upgrade.UpgradeBusinessLogic; import org.openecomp.sdc.be.components.upgrade.UpgradeRequest; import org.openecomp.sdc.be.components.upgrade.UpgradeStatus; import org.openeco...
49.377778
257
0.710396
146a9c7b38a48ba42683c9fb3df814d6d7b555fb
4,367
package com.base12innovations.android.fireroad.activity; import android.content.ContentResolver; import android.content.DialogInterface; import android.content.Intent; import android.net.Uri; import android.support.v7.app.AlertDialog; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import c...
39.342342
119
0.569041
6f798fa23007e36deca680ae91a3a5e6d09c251b
600
package org.springframework.boot.test.mock.mockito.example; /** * Example bean for mocking tests that calls {@link ExampleGenericService}. * * @author Phillip Webb */ public class ExampleGenericStringServiceCaller { private final ExampleGenericService<String> stringService; public ExampleGenericStringService...
21.428571
75
0.771667
97415748e722f1c4a02e1d2e7a85de510e3a5a25
612
package com.jamieswhiteshirt.clothesline.api; import net.minecraft.world.World; import net.minecraftforge.fml.common.eventhandler.Event; public class NetworkManagerCreatedEvent extends Event { private final World world; private final INetworkManager networkManager; public NetworkManagerCreatedEv...
26.608696
85
0.70915
a18589d8644a43a88a7d0e4c4361e6a1b361a9fc
457
package bence.prognyelvek.transition.conditions; import bence.prognyelvek.contexts.ContextView; public class DeterministicCondition<T, O> extends AbstractCondition<T, O> { private final boolean result; public DeterministicCondition(final String name, final boolean result) { super(name); this...
24.052632
76
0.713348
bfef7117154a6136f8962cc61ca1410825d28266
7,078
/* * MIT License * * Copyright (c) 2021 Imanity * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, ...
33.386792
124
0.675615
b08d6824e517c0380954663fb0ce0c05f8cddb29
44,440
/** * Copyright (c) 2016-present, RxJava 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 required by applicable l...
33.139448
123
0.573087
16fd2f6019180a39ccf04d503d3f7b9c79c88fa0
1,748
package org.n52.emodnet.eurofleets.feeder.model; import com.fasterxml.jackson.annotation.JsonGetter; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonSetter; import com.fasterxml.jackson.annotation.JsonSubTypes; import ...
29.627119
76
0.739703
754d2f27601e8803571ef1364c3968b70c2b6cc4
631
package lunch.finance.psd2.product.client; import lunch.finance.psd2.product.Product; import lunch.finance.psd2.product.ProductCache; import lunch.finance.psd2.product.ProductFeignConfiguration; import org.springframework.cloud.netflix.feign.FeignClient; import org.springframework.web.bind.annotation.RequestMapping; ...
37.117647
128
0.812995
f795fe52fbbe5bcd91a643df9af2f2e5262c1462
5,828
/* * @(#)LocaleServiceProvider.java 1.4 06/04/21 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package java.util.spi; import java.util.Locale; /** * <p> * This is the super class of all the locale sensitive service provider ...
50.241379
92
0.742622
483533418658eea10b9d0961bd2a26064a786b7f
3,781
import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.util.ArrayList; import java.util.Base64; import java.util.Collections; public class TXTScan { Double precursor; //Precursor mass of isolated ion String file; //Filename int scanNum; //Number of scan boolean centroided; //Boolean if...
25.721088
86
0.672309
63ebd43d1d716ae863c7e76357328be72f4fa434
596
/* * Created on 04-Nov-2005 Authored by pickardt TODO New class comments */ package uk.co.bluegecko.core.swing.table.rendering; /** * Hint for row height. */ public class RowHeightHint extends RenderingHint< Integer > { private static final long serialVersionUID = 3896501292335647864L; /** * ...
20.551724
71
0.645973
04fa20e5818c92fb2152de753e05156eaf7b6a8a
455
package com.gildedrose; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.assertEquals; @RunWith(Mockito.class) public class GildedRoseTest { @Mock @Test public void foo() { Item[] items = new Item[] { new Item("Doomhammer", 0, 0) }; G...
21.666667
68
0.624176
60312386486d8b8109051ade82c416c86567f0fc
275
package io.upit.guice.security; import io.upit.security.AuthorizationException; import org.aopalliance.intercept.MethodInvocation; public interface MethodAuthorizer { void authorizeMethodInvocation(MethodInvocation methodInvocation) throws AuthorizationException; }
22.916667
100
0.847273
4a417bb2c9ae4cbede2cb567f2e4264340524874
6,023
/* * Copyright 2016 sadikovi * * 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 ...
35.639053
75
0.686037
50cb19bd8250fd4fc5229e00dee1035f226b3296
2,283
/* * @(#)Receipt.java 1.00 7 Oct 2016 * * Copyright (c) 2016 Michele Antonaci * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitati...
28.5375
89
0.733684
00160ad97860d2f1ab5474ba91a326ebdd85a7ff
4,435
package com.prowidesoftware.swift.model.mx.dic; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.XmlType; import org.apache.commons.lang3.build...
23.844086
89
0.607441
87777c6cdce2141d34b9f386034dc33486bf74ad
5,435
package it.fdepedis.quakereport.utils; import android.content.Context; import android.content.SharedPreferences; import android.net.Uri; import android.preference.PreferenceManager; import android.util.Log; import java.net.MalformedURLException; import java.net.URL; import java.text.DecimalFormat; import java.text.Si...
37.743056
150
0.649678
b8003e63bc43efa2fdc8822540ffdc0d7f34d00f
270
package com.tvd12.ezyfoxserver.controller; import com.tvd12.ezyfoxserver.context.EzyZoneContext; import com.tvd12.ezyfoxserver.request.EzyStreamingRequest; public interface EzyStreamingController extends EzyController<EzyZoneContext, EzyStreamingRequest> { }
30
68
0.837037
96200b0a128e6434fc35cfa15cd1adada9a17308
181
package org.codelabor.example.validation.dao; import org.codelabor.example.validation.dto.PersonDto; public interface PersonDao { int insertPerson(PersonDto personDto); }
22.625
55
0.790055
f5a217caec1bb39c875bd03ac6c7c57d2c23b5c6
689
package net.brutus5000.deltaforge.api.dto; import com.github.jasminb.jsonapi.annotations.Id; import com.github.jasminb.jsonapi.annotations.Type; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import java.time.OffsetDateTime; import static net.brutus5000.deltaforge.api.dto.TagAssignmentD...
25.518519
75
0.769231
3222e7e36724152d028dd6179f31175e4d0feaf1
715
package com.fsmflying.study.quickstart2021; import org.junit.Test; import java.io.FileNotFoundException; import static org.junit.Assert.assertTrue; /** * Unit test for simple App. */ public class PathUtilsTest { /** * Rigorous Test :-) */ @Test public void shouldAnswerWithTrue() { as...
22.34375
77
0.634965
714ce7c8b827ecd0af7c360e7abf9f76a8b738f9
1,620
package com.github.aspect; import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; /** * before(前置通知): 在方法开始执行前执行 * after(后置通知): 在方法执行后执行 * afterRe...
27.457627
89
0.666667
5101413372708e7dfbb101622462a83589100dbe
2,394
package com.iovation.launchkey.sdk.integration.steps; import com.google.inject.Inject; import com.iovation.launchkey.sdk.domain.DirectoryUserTotp; import com.iovation.launchkey.sdk.integration.managers.DirectoryTotpManager; import io.cucumber.java.en.Given; import io.cucumber.java.en.Then; import io.cucumber.java.en.W...
39.245902
97
0.75188
30b1794d897450865fb7093777d7f8a3f0f5e62a
855
package org.bayofmany.jsonschema.compiler; import java.net.URI; import java.net.URISyntaxException; public class Util { public static String upperCaseFirst(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1); } public static URI uri(String value) { try { ...
25.909091
72
0.573099
6dc4df069ac80fb700d213a588e24cdc924702aa
1,057
package seedu.address.logic.commands; import static seedu.address.logic.commands.EmployeeCommandTestUtil.assertCommandSuccess; import static seedu.address.logic.commands.ResetEmployeeSortCommand.SHOWING_RESET_MESSAGE; import static seedu.address.testutil.TypicalEmployees.getTypicalRhrhEmployees; import org.junit.jupi...
39.148148
106
0.812677
83d78d0d3fa5ae94aa2484ed55444093e5929d71
349
package com.lf.gmall.wms.mapper; import com.lf.gmall.wms.entity.WareSkuEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 商品库存 * * @author lf * @email lf@atguigu.com * @date 2021-04-01 20:33:08 */ @Mapper public interface WareSkuMapper extends Bas...
19.388889
66
0.747851
1983aeb1269b3b837e25ebcf7d367e725474ace1
787
package com.base.nguyencse.java.network.api; import com.base.nguyencse.java.network.ApiCall; import com.base.nguyencse.java.network.ApiCallback; import com.base.nguyencse.java.network.ApiClient; import com.base.nguyencse.java.network.BaseNetworkApi; import com.base.nguyencse.java.network.response.DummyResponse; publi...
28.107143
79
0.734435
92c665d63ec001cd09f26baad336ae7c9414f05c
1,652
package com.msdemo.v2.common.dtx.lock; import java.util.List; import com.msdemo.v2.common.exception.TransException; import com.msdemo.v2.common.lock.model.ResourceLock.LockLevel; public interface ITxnLockAgent { default void lock(String locker,String[] resourceIds,LockLevel level,int timeout){ for (String key:...
33.714286
108
0.788741
32de67d7f30c129c0ade44567a21d82bc6b05f4c
2,016
package com.pard.modules.sys.controller; import com.pard.common.controller.GenericController; import com.pard.common.utils.StringUtils; import com.pard.modules.sys.entity.Area; import com.pard.modules.sys.entity.Office; import com.pard.modules.sys.service.OfficeService; import org.springframework.beans.factory.annotat...
34.169492
92
0.663194
feb569373505fa5552862dcc941fcd8042c68c6d
548
package testjava; import static org.junit.Assert.*; import org.junit.Test; import org.uqbarproject.jpa.java8.extras.WithGlobalEntityManager; import org.uqbarproject.jpa.java8.extras.test.AbstractPersistenceTest; public class ContextTest extends AbstractPersistenceTest implements WithGlobalEntityManager { @Test...
21.076923
93
0.781022
0ca8ca572212b39d83615fdf5da4d77c4a18e56c
644
package net.oswin.exercises.oop.inheritance; /** * Треугольник */ public class Triangle extends Shape { private int side1; private int side2; private double angle; public Triangle(int side1, int side2, double angle) { this.side1 = side1; this.side2 = side2; this.angle = angle...
23.851852
136
0.608696
f39afe8468f315c8987ca5150f48909791cac39c
1,122
package com.santiagolizardo.jerba.utilities; import java.util.HashMap; import java.util.Map; import java.util.logging.Logger; import javax.cache.Cache; import javax.cache.CacheException; import javax.cache.CacheFactory; import javax.cache.CacheManager; import com.google.appengine.api.memcache.jsr107cache.GCacheFacto...
22.44
75
0.746881
eb4240072a143a16fad2d9414cc4006d27b584ba
3,610
/* * Copyright 2017 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 appli...
32.818182
126
0.633795
c19eb69cc6cd174e383bc9490421319163b6dc0a
1,566
package com.markly.config; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHan...
32.625
127
0.653257
34f1d788377b37b59a9a78d7b56e0177d359ba75
201
package com.chdlsp.alice.interfaces.vo; import lombok.*; @Builder @NoArgsConstructor @AllArgsConstructor @Data public class KakaoUserInfoVO { String id; String email; String nickname; }
13.4
39
0.746269
db65a097fe25929b70f2e52be5707f666a8f7953
2,877
package mb.spoofax.lwb.eclipse.dynamicloading; import mb.cfg.CompileLanguageInput; import mb.cfg.CompileLanguageInputCustomizer; import mb.cfg.CompileLanguageSpecificationInputBuilder; import mb.cfg.CompileLanguageSpecificationShared; import mb.spoofax.compiler.adapter.AdapterProject; import mb.spoofax.compiler.adapte...
39.958333
120
0.78415
78cd8212b6ba387066a9feef7a8fe19aee8a97cd
4,355
package com.pj.squashrestapp.dto.scoreboard; import com.pj.squashrestapp.dto.BonusPointsAggregatedForSeason; import com.pj.squashrestapp.dto.PlayerDto; import com.pj.squashrestapp.util.RoundingUtil; import java.math.BigDecimal; import java.util.Comparator; import java.util.HashMap; import java.util.Map; import java.ut...
36.90678
100
0.779334
e34cfee577540e587fb2a77a6746608f853875a3
706
package com.movit.rwe.modules.bi.base.entity.hive; /** * * @Project : az-rwe-bi-web * @Title : TherapeuticArea.java * @Package com.movit.rwe.common.entity * @Description : 治疗领域 * @author Yuri.Zheng * @email Yuri.Zheng@movit-tech.com * @date 2016年3月1日 下午1:45:14 * */ public class TherapeuticArea { private...
14.708333
50
0.664306
f0217bde60b32576a658627023a4b4c3cfea079c
1,290
import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedGetter; import net.runelite.mapping.ObfuscatedName; import net.runelite.mapping.ObfuscatedSignature; @ObfuscatedName("iz") @Implements("HorizontalAlignment") public enum HorizontalAlignment implements Enum...
20.15625
55
0.720155
76dcfef8ed8848f7f65304e0efb2210f4a4d3566
820
package com.leyou.user.api; import com.leyou.user.pojo.User; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; //@FeignClient(val...
34.166667
62
0.74878
1dc2501fca4ec5f2dd35cf14d12b3c6401d7f276
1,036
/* * Copyright (c) 2020. 代码由Cyberhan编写,不保证其准确性,仅供参考。 * 注意:代码不可进行商业用途,本项目遵寻Apache 2.0开源协议。 * 本人有权对开源协议进行修改和更换。 */ package cn.hselfweb.webpub.webpubmiddleware.utils; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.springframework.http.HttpEntity; import org.springframe...
25.9
63
0.706564
2a14ccd10897a6aabd6da09ffd0545750c2d2327
1,332
package org.bukkit.block.data.type; import org.bukkit.block.BlockFace; import org.bukkit.block.data.Waterlogged; import org.jetbrains.annotations.NotNull; /** * This class encompasses the 'north', 'east', 'south', 'west', height flags * which are used to set the height of a wall. * * 'up' denotes whether the well...
20.8125
76
0.555556
987346983ca6bd94ac7cf0c702373d0920fa1fd4
1,147
package forms; import java.security.NoSuchAlgorithmException; import com.avaje.ebean.Model.Finder; import models.User; import play.data.validation.Constraints; /** * Formのコンストラクタに渡されると、実際にフォームをPOSTする前に、 * このvalidate()メソッドを実行し、ユーザ/パスワードの組み合わせが正しいかどうかを判断してくれる * * @author yu-yama * */ public class LoginForm { ...
20.854545
114
0.74891
e9930cded1ae361bddf01a16629355b30f4e2363
2,292
/* * (C) Copyright 2020 Nuxeo (http://nuxeo.com/) and others. * * 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 b...
38.2
112
0.688045
cf05e641cad1737d98ec6c45c1ea38bc0ac041e9
396
package com.esceer.sdw.repository; import com.esceer.sdw.model.Sensor; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; import java.util.Optional; @Repository public interface SensorRepository extends MongoRepository<Sensor, String> { Optional...
24.75
75
0.813131
f4d4ed0326f0742815de8d6f23af34f1ed4259b8
5,099
package com.leetcode.service.impl; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.leetcode.common.PageReqBody; import com.leetcode.model.discuss.DiscussTopics; import com.leetcode.model.discuss.Topic; import com.leetcode.model.discuss.TopicReqBody; import com.leetcode.model.respon...
41.455285
97
0.705432
12b80c84c45d8d157b0f95e04999f5a81417e6cd
814
public class codigodelpseudocodigo { public static void main(String[] args){ //Inicio //0) Creación de Variables //tipo nombre; int areadelcuadrado; int ladoadelcuadrado; //1) Leemos el tamaño del valor de lado A del cuadrado ladoadelcuadrado=3; //2) T...
31.307692
87
0.608108
b6c26e454d53d3ab3bfc64c94dca40b80ca2908a
2,743
/* * Copyright 2016 The Error Prone 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 ...
29.494624
100
0.693766
de109c2c4d3b82be18855a0aa4a320db41f1a46a
168
package ru.doublebyte.trendingstream; import org.junit.jupiter.api.Test; public class ApplicationTest { @Test public void main() throws Exception { } }
14
41
0.714286
057ec1a6783327045aefa09d58f75e2466c67c5d
6,956
package com.starlight.intrepid; import com.logicartisan.common.core.thread.SharedThreadPool; import com.starlight.intrepid.auth.ConnectionArgs; import com.starlight.intrepid.auth.UserContextInfo; import com.starlight.intrepid.exception.IntrepidRuntimeException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; ...
25.955224
90
0.716647