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 |
|---|---|---|---|---|---|
3ef4083b6abb16a7ed2d2cf74a732be6d9c0c643 | 1,376 | package com.coy.l2cache.util.pool;
import org.slf4j.MDC;
import java.util.Map;
import java.util.concurrent.ForkJoinTask;
import java.util.concurrent.atomic.AtomicReference;
/**
* @author chenck
* @date 2021/5/11 16:56
* @see https://stackoverflow.com/questions/36026402/how-to-use-mdc-with-forkjoinpool
*/
public ... | 24.571429 | 85 | 0.639535 |
4dc05377249a536f0c2067b93657e40f39d294cb | 287 | package io.github.daniloarcidiacono.typescriptmapper.core;
import io.github.daniloarcidiacono.typescriptmapper.core.builder.FluentConfigurer;
import java.net.URI;
@FunctionalInterface
public interface TestCase {
void configure(final FluentConfigurer configurer, final URI uri);
}
| 26.090909 | 82 | 0.832753 |
a8247c6b05f787cd9551cd9e6d28147ddd696f3b | 5,335 | /*
*************************************************************************
* The contents of this file are subject to the Openbravo Public License
* Version 1.1 (the "License"), being the Mozilla Public License
* Version 1.1 with a permitted attribution clause; you may not use this
* file except in... | 35.805369 | 100 | 0.706279 |
c1fcf3839d14a2cdc963266ecdd1ed70137f94ac | 3,798 | package com.shizhefei.test.controllers.task;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import com.google.gson.Gson;
import com.shizhefei.task.Code;
import c... | 36.519231 | 121 | 0.627435 |
7bbb1c563612c99103d799157d00eebdf31aae3d | 1,063 | package com.web.curation.model.DTO;
import static com.querydsl.core.types.PathMetadataFactory.*;
import com.querydsl.core.types.dsl.*;
import com.querydsl.core.types.PathMetadata;
import javax.annotation.Generated;
import com.querydsl.core.types.Path;
/**
* QHashtag is a Querydsl query type for Hashtag
*/
@Gener... | 25.309524 | 72 | 0.725306 |
4d4c502922d6308ce335ecfa419cfc675877937e | 2,454 | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
package org.rocksdb;
/**
* <p>An iterator that y... | 37.181818 | 87 | 0.699674 |
33e4098f537129ad84eef6b8547d027b5a9089da | 793 | package com.sequenceiq.mock.clouderamanager.v31.controller;
import javax.inject.Inject;
import javax.validation.Valid;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import com.sequenceiq.mock.clouderamanager.base.ParcelsResourceOperation;
import com.sequenceiq.mock... | 33.041667 | 111 | 0.825977 |
8989acfc9fc206bd0455b4b295665fa29bec9587 | 613 | package com.qunar.qchat.utils;
import javax.servlet.http.HttpServletRequest;
/**
* Created by qitmac000378 on 17/5/25.
*/
public class HttpRequestUtil {
public static String getIpAddr(HttpServletRequest request) {
if (request.getHeader("x-forwarded-for") == null) {
return request.getRemoteAd... | 24.52 | 66 | 0.637847 |
c82a009be9e2905ca573ad1426a0473567e8e27c | 141 | package ru.bclib.interfaces;
import ru.bclib.client.render.ERenderLayer;
public interface IRenderTyped {
ERenderLayer getRenderLayer();
}
| 17.625 | 43 | 0.808511 |
0babb0be4c8f22299a8f74a1e23ef897faa03259 | 280 | package com.winningsmiledental;
public class NoRecordsRetrievedException extends JDentProException {
public NoRecordsRetrievedException(String message) {
super(message);
}
public NoRecordsRetrievedException(String message, Throwable e) {
super(message, e);
}
} | 25.454545 | 69 | 0.775 |
65d05fc9b0646dd820756ed1479136948154171e | 2,142 | package com.sequenceiq.periscope.utils;
import java.util.List;
import java.util.regex.Pattern;
import org.junit.Test;
import com.openpojo.reflection.PojoClass;
import com.openpojo.reflection.PojoClassFilter;
import com.openpojo.reflection.impl.PojoClassFactory;
import com.openpojo.validation.Validator;
import com.op... | 39.666667 | 105 | 0.732493 |
cba68bb58d529bd1464dbc5aabf257d03430e5b0 | 3,908 | /*
* Copyright Bruce Liang (ldcsaa@gmail.com)
*
* Version : JessMA 3.4.1
* Author : Bruce Liang
* Website : http://www.jessma.org
* Project : http://www.oschina.net/p/portal-basic
* Blog : http://www.cnblogs.com/ldcsaa
* WeiBo : http://weibo.com/u/1402935851
* QQ Group : 75375912
*
* Licensed under the Apac... | 27.328671 | 124 | 0.635363 |
c3eaf7cee8c7169883dc24f9bd4d7915ad940f35 | 375 | package com.wang.es.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @description: es 数据对象
* @date: 2020/11/22 22:20
* @author: wei·man cui
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class User implements Serializable {
... | 15.625 | 43 | 0.744 |
0ea87586d9ef80d7b849af78fd81e78648b61501 | 897 | package com.composer.midi;
import java.util.*;
import java.io.File;
import javax.sound.midi.*;
/**
* Created by hgminh95 on 11/01/16
*/
public class MidiFile {
private List<MidiTrack> tracks;
public static MidiFile fromFile(String path) throws Exception {
return new MidiFile(path);
}
pub... | 20.386364 | 67 | 0.616499 |
9cfcac4c768d369de0db16922d5d6e4659607eb1 | 2,545 | package onethreeseven.roi.algorithm;
import onethreeseven.roi.model.MiningCell;
import onethreeseven.roi.model.RoI;
import onethreeseven.roi.model.RoIMiningSpace;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
/**
* The expansive algorithm keeps expanding so long as the neighbours are... | 37.426471 | 126 | 0.595678 |
3264fdd223794bb63e07454dfba867750c206365 | 561 | package com.navishka.ecommerce.dao;
import com.navishka.ecommerce.entity.State;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.web.bind.annotati... | 35.0625 | 76 | 0.827094 |
4be14520e06f79e5b4aaff8abcda10c9e0b785ed | 3,246 | /*
* 文 件 名: BrandServiceImpl.java
* 版 权: Copyright 2016 咪咕互动娱乐有限公司, All rights reserved
* 描 述: <描述>
* 版 本: <版本号>
* 创 建 人: daijunmin
* 创建时间: 2018年6月24日
*/
package com.pinyougou.sellergoods.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annot... | 23.693431 | 81 | 0.606285 |
24cf9a60332b5fdd47756fdc4b21532c6a585206 | 3,992 | package net.minecraft.entity.ai;
import net.minecraft.enchantment.EnchantmentHelper;
import net.minecraft.entity.Entity;
import net.minecraft.entity.effect.EntityLightningBolt;
import net.minecraft.entity.monster.EntitySkeleton;
import net.minecraft.entity.passive.AbstractHorse;
import net.minecraft.entity.passive.Ent... | 53.945946 | 297 | 0.792585 |
397a0b1c79e994f2574af22ee9538342b47f6277 | 14,094 | package pl.umk.mat.imare.reco;
import java.awt.EventQueue;
import java.util.ArrayList;
import pl.umk.mat.imare.io.Wave;
import pl.umk.mat.imare.reco.internal.*;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import java.util.Map.Entry;
import java.util.TreeMap;
import java.util.Vector;
... | 33.557143 | 136 | 0.617993 |
c3fda0a4566ea7edfc470783d554cfca18edc014 | 1,742 | package br.senac.pi4.ProjetoIntegrador.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraint... | 22.921053 | 84 | 0.662457 |
abf1132e2af6e1088de45f11fb26d7be3094d4fd | 1,185 | /*
*
*/
package de.github.yfons.rapidfx.examples.HelloWorld;
import de.github.yfons.rapidfx.premade.UI.ContainerFactory;
import de.github.yfons.rapidfx.premade.UI.elements.BorderPaneContainer;
import de.github.yfons.rapidfx.premade.UI.elements.PaneContainer;
import javafx.application.Application;
import javafx.scen... | 22.788462 | 83 | 0.712236 |
2e5c426c9be29b88d471c01ec5108a88ff862cd6 | 177 | package us.jsy.redact;
import us.jsy.redact.RedactJackson;
public class RedactString extends RedactJackson {
public RedactString(String pii) {
super(pii);
}
}
| 17.7 | 49 | 0.711864 |
68b65e6a6da2b9ab5d13bf8e5a9df727d6577b82 | 5,292 | /**
* Copyright (c) 2018 Chiral Behaviors, LLC, all rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless req... | 32.869565 | 85 | 0.596183 |
00f6a5652c404462ee4b7982ba73cc672b11cf4d | 4,169 | /*
* 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 de.up.ling.irtg.codec;
import de.up.ling.irtg.algebra.ParserException;
import de.up.ling.irtg.algebra.graph.GraphNode;
import ... | 42.540816 | 162 | 0.60782 |
1425fdb88df7e5460698bcb83d13f2798edf9e50 | 17,389 | /*
* Copyright (C) 2018-2021 Lightbend Inc. <https://www.lightbend.com>
*/
package jdocs.akka.persistence.typed;
import akka.actor.typed.ActorRef;
import akka.actor.typed.Behavior;
import akka.actor.typed.SupervisorStrategy;
import akka.actor.typed.javadsl.ActorContext;
import akka.actor.typed.javadsl.Behaviors;
im... | 27.777955 | 99 | 0.62229 |
14c46cb62b3695a2e8bfd58c7ad4027e125cff36 | 7,158 | package de.tum.in.www1.artemis.web.rest.lecture;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import javax.ws.rs.BadRequestException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Va... | 47.092105 | 161 | 0.718497 |
244c3ecd375c18d19f7c86df4a34ac026a363ae6 | 228 | package org.fairy.packet.wrapper.client;
public interface CPacketRotation extends CPacketFlying {
float getYaw();
float getPitch();
@Override
default String getFancyName() {
return "Rotation";
}
}
| 17.538462 | 56 | 0.679825 |
f5d7317526efbed82cf101163b84a089e941b148 | 2,378 | package me.deecaad.weaponmechanics.weapon.reload.ammo;
import me.deecaad.weaponmechanics.wrappers.PlayerWrapper;
import org.bukkit.entity.Player;
import org.bukkit.inventory.ItemStack;
public class ExperienceAmmo implements IAmmoType {
// Defined in ammo types list
private String ammoName;
private Strin... | 32.135135 | 116 | 0.691337 |
6738842e37c8422848258874ebc35da4325c49a3 | 624 | package com.speedment.common.mutablestream.action;
import com.speedment.common.mutablestream.internal.action.FilterActionImpl;
import java.util.function.Predicate;
import com.speedment.common.mutablestream.HasNext;
import java.util.stream.Stream;
/**
*
* @param <T> the filtered type
*
* @author Emil Forslund
... | 27.130435 | 92 | 0.708333 |
a86c1e3068458b8f2aa680a4086316c0cf1b45f9 | 690 | package _002WarningLevels;
import java.util.ArrayList;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: LAPD
* Date: 18.7.2018 г.
* Time: 09:44 ч.
*/
public class Logger {
private Enum importanceLevel;
private List<Message> log;
public Logger(String importanceLevel) {
log = ne... | 21.5625 | 70 | 0.627536 |
d20c51b67af6931f697d16e0c2f8a581aec410c8 | 1,472 | /*
* Copyright 2022 ProximaX Limited. All rights reserved.
* Use of this source code is governed by the Apache 2.0
* license that can be found in the LICENSE file.
*/
package io.proximax.sdk.model.lock;
import static io.proximax.sdk.utils.dto.UInt64Utils.toBigInt;
import io.proximax.sdk.gen.model.HashLockWithMeta;... | 31.319149 | 147 | 0.649457 |
a1142ddf1bbc47d5609138519cd5cf215a13ed39 | 10,305 | /*
Copyright 2015, Google 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 law or agreed to in wr... | 45.597345 | 125 | 0.581077 |
fe5210f22979b843ad803fadce9656f79961370d | 7,337 | package cmpe.sjsu.food4u;
import android.content.Intent;
import android.net.Uri;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view... | 37.243655 | 128 | 0.602017 |
dbdecf7d7828eb67cc90b06bd54e55dc48049186 | 1,396 | /*
* Copyright 2019 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 37.72973 | 106 | 0.744269 |
756a3358e61cc5ec9779ee27be3846e46235e197 | 2,315 | package us.careydevelopment.api.google.datastore;
import com.google.api.client.auth.oauth2.StoredCredential;
import com.google.api.client.util.store.DataStore;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
im... | 47.244898 | 149 | 0.798704 |
bdf34ea277f23dbaaf81c84689b1da2eee85e6a2 | 1,665 | package com.comeon.android.db_accessing;
import com.comeon.android.R;
import com.comeon.android.db.UserInfo;
import com.comeon.android.util.LogUtil;
import com.comeon.android.util.Utilities;
import org.litepal.LitePal;
import java.util.Date;
import java.util.List;
/**
* 用户基本信息数据表接口实现类
*/
public class UserInfoDaoI... | 30.272727 | 112 | 0.681682 |
af8c93c6eb3b42980122ef17fa66a1bdab113fe6 | 1,024,109 | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest41 {
public static boolean debug = false;
@Test
public void test20501() throws Throwable {
if (debug)
System.out.for... | 65.084779 | 153 | 0.742699 |
f2bc26325107451e0e84d8ef5787edc33a4fdda8 | 2,843 | /*
* Digital Invisible Ink Toolkit
* Copyright (C) 2005 K. Hempstalk
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your o... | 28.717172 | 74 | 0.664439 |
215b5c1ba585f4186959f351ef49f19ba89533c6 | 2,886 | package com.marchnetworks.command.common.device.data;
import com.marchnetworks.command.common.transport.data.Pair;
import javax.xml.bind.annotation.XmlElement;
public class AudioOutputView implements DeviceOutputView
{
private String audioOutputId;
private String name;
private AudioOutputType type;
private Strin... | 19.5 | 249 | 0.752599 |
db33e107b130c44343eba76525355737cf45dd05 | 2,439 | package io.stargate.microb.chars;
import java.util.List;
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.... | 29.035714 | 102 | 0.599426 |
ef0530bd1342a0aaaef252b254f6e92b92d37d77 | 6,205 | ////////////////////////////////////////////////////////////////////////////////
// checkstyle: Checks Java source code for adherence to a set of rules.
// Copyright (C) 2001-2015 the original author or authors.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU ... | 34.472222 | 83 | 0.6361 |
369c577c74fc84da67722272e2cd9494d8f4826f | 1,388 | /**
* This program was created with the purpose of seeing the skills that the
* programmer in question has, non-profit, for Stackbuilders Company.
*
* PeakNPlaque Predictor / Pico y Placa Predictor stackbuilders 2020 (c)
*
* @author Solange Pico
*/
package peaknplaque;
import java.util.Scanner;
/**... | 29.531915 | 75 | 0.559798 |
9fd8954e62e095d0a3fb4774db20f8234cdcd5e1 | 1,268 | package be.sgerard.i18n.model.repository.persistence;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotNull;
import java.util.Objects;
import java.util.regex.Pattern;
/**
* Git {@link BaseGitRepositoryEntity repository}.
*
* @author Sebastien... | 22.245614 | 103 | 0.678233 |
5d1e4dd5444c0378774a7571a2d366fd36713478 | 739 | /*
* 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 n4_ex_frameworks;
/**
*
* @author Valon
*/
public class PartialInsertionSort {
public static void sortPar... | 23.83871 | 80 | 0.541272 |
d8a598e59ab85537926c008ac48da36dcd526e9a | 1,586 | /*
* Copyright 2019 wjybxx
*
* 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... | 24.78125 | 76 | 0.660782 |
1a3b81bde60c5204f27e9d56097fb35af8ac96f8 | 4,980 | /*
* 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... | 39.212598 | 99 | 0.698193 |
cdf11f9f9c6c27ede622816a028d70a8f556c4fa | 1,064 | package cn.medemede.leecode;
/**
* 剑指 Offer 46. 把数字翻译成字符串
*/
public class TranslateNum {
// 递归
public int translateNum(int num) {
if (num < 10) {
return 1;
}
int tmp = num % 100;
if (tmp > 9 && tmp < 26) {
return translateNum(num / 10) + translateNum(n... | 21.714286 | 78 | 0.383459 |
aabfbed29f53674e3ce88758f940f95c2859c6be | 24,861 | /*
* Copyright (C) 2017 dubenju@126.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agree... | 33.148 | 90 | 0.667954 |
2f680693f30b4e53bd6072a3742cd3ad9b2b5408 | 1,421 | package frc.robot.biblioteca;
import edu.wpi.first.wpilibj.Encoder;
public class HuskyEncoder extends AnalogIn{
private int m_port1;
private int m_port2;
private Encoder m_encoder;
public HuskyEncoder(int port1, int port2, double distancePerPulse) {
super(-1, 1);
m_port1 = port1;
... | 26.314815 | 72 | 0.622801 |
b1c850a48aa17d78194fcf4f4a7827e47550c044 | 1,603 | /*
* Copyright 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 "license" ... | 33.395833 | 76 | 0.69058 |
6cd77d94581c6acfe2e5d481ef95f42736676cec | 89 | package com.mrcoder.sbmmultidbxmldruidatomikos.service;
public class TeacherService {
}
| 17.8 | 55 | 0.842697 |
031c3695d6e5aaf3afb0d39d78b66990916ea8bc | 434 | package io.vertx.examples.resteasy.helloworld;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.core.Response;
@Path("/")
public class HelloWorldService {
@GET
@Path("/{name:.*}")
public Response doGet(@PathParam("name") String name) {
if (name == null || na... | 22.842105 | 64 | 0.658986 |
e6c65204fa3100b48ad1287037cddf8b4236b47e | 2,086 | package org.trimou.lambda.i18n;
import java.util.ResourceBundle;
import org.trimou.engine.MustacheEngine;
import org.trimou.engine.MustacheEngineBuilder;
import org.trimou.engine.MustacheEngineBuilder.EngineBuiltCallback;
import org.trimou.engine.locale.LocaleSupport;
import org.trimou.engine.resolver.i18n.ResourceBu... | 26.075 | 95 | 0.692234 |
a5aac748e24580d6eebd5e36bc4ac42af355d712 | 21,266 | package com.github.pires.obd.reader.activity;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.bluetooth.BluetoothAdapter;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
i... | 34.862295 | 142 | 0.627763 |
52b4f1d583a797a60603c757ba2a739ce5976d98 | 3,611 | package seedu.address.storage;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import seedu.address.commons.exceptions.IllegalValueException;
import seedu.address.model.diet.DietPlan;
import seedu.address.model.food.Food;
import seedu.... | 36.846939 | 119 | 0.648851 |
ce187b0b770fcc41c57851997aaed6145a869ec2 | 332 | package com.google.android.gms.measurement.internal;
import com.google.android.gms.internal.measurement.zzjy;
final /* synthetic */ class zzcb implements zzdv {
static final zzdv zzji = new zzcb();
private zzcb() {
}
public final Object get() {
return Boolean.valueOf(zzjy.zzyz());... | 22.133333 | 57 | 0.64759 |
205b3a46000de6b5fcf69b440c48819fd93d6748 | 165 | package io.quarkus.qe.core;
import io.quarkus.test.junit.NativeImageTest;
@NativeImageTest
public class NativeFallbackResourceIT extends FallbackResourceTest {
}
| 18.333333 | 68 | 0.836364 |
95986cd02a34fc8c64ba2dc91aa7528236e44546 | 217 | package com.frugalbin.inventory.airline.models.connections;
import com.frugalbin.inventory.airline.models.AirlineConnectionDetails;
public class QPXConnectionDetails //extends AirlineConnectionDetails
{
}
| 24.111111 | 72 | 0.820276 |
dfd30626002b90b72c8b17e4e343696622328ce3 | 1,260 | package com.baeldung.order;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import java.util.List;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org... | 32.307692 | 80 | 0.789683 |
6d30667bd96b01a4818c6ca5ab6ea2f69bf3efb7 | 3,406 | package com.github.jhorology.bitwig.rpc.test;
// jdk
import java.util.Arrays;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
import java.util.stream.Stream;
// dependencies
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class TestImpl implements Test {
private static final ... | 23.013514 | 80 | 0.567234 |
12017490be3c82558d01fbe7e0bc481adf2f793f | 2,283 | /*
* Copyright 2012 JBoss 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 law or agreed to in ... | 34.590909 | 90 | 0.711345 |
8af46a670700276eed35395b788bbcbdace1bae7 | 4,114 | /*
* FindBugs - Find Bugs in Java programs
* Copyright (C) 2003-2008 University of Maryland
*
* Author: Graham Allan
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* v... | 34.571429 | 101 | 0.721439 |
db977d5fed5b16daeddb7027047f19dc1eabb788 | 6,776 | package com.github.tkshio.jgammon.gammon.director;
import com.github.tkshio.jgammon.common.context.GameContextHandler;
import com.github.tkshio.jgammon.common.context.GameContextHandler.TebanContextHandler;
import com.github.tkshio.jgammon.common.director.*;
import com.github.tkshio.jgammon.common.utils.RWTuple;
impor... | 34.395939 | 105 | 0.598436 |
575f0453ed787f2664bcaeb9aa6e623efc885c26 | 132 | package cz.mendelu.xmarik.train_manager.events;
public class StoredServersReloadEvent {
public StoredServersReloadEvent() {}
}
| 22 | 47 | 0.80303 |
dffded4580561383a394420232a7183ef2be3902 | 1,494 | package com.tony.billing.response.costrecord;
import com.tony.billing.dto.CostRecordDTO;
import com.tony.billing.response.BaseResponse;
import java.util.List;
/**
* @author jiangwj20966 on 2017/6/2.
*/
public class CostRecordPageResponse extends BaseResponse {
private List<CostRecordDTO> costRecordList;
pr... | 22.298507 | 71 | 0.676707 |
8d260947738b697d6ec4782f2a708223b900383a | 5,925 | ////////////////////////////////////////////////////////////////////////
/*
File: PoliticalOverlay.java
Author: Peter Hollemans
Date: 2004/03/26
CoastWatch Software Library and Utilities
Copyright (c) 2004 National Oceanic and Atmospheric Administration
All rights reserved.
Developed by: CoastWa... | 27.054795 | 72 | 0.561181 |
d704c80c37e430535685bb868cfdaa587ac9cb72 | 2,479 | package com.elcom.myelcom.view.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.elcom.myelcom.R;
import com.elcom.myelcom.util.Consts;
import com.elcom.myelcom.util.PermissionsChecker;
import com.elcom.mye... | 32.618421 | 95 | 0.694232 |
b82db05c591c567e60c53053bb8beb4984aceabe | 18,648 | package org.ovirt.engine.extension.aaa.jdbc.core;
import java.io.IOException;
import java.security.GeneralSecurityException;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.List;
import java.util.Observable;
import java.util.Observer;
... | 36.280156 | 124 | 0.533462 |
55cd999aac6125ab899c7ba80beefa88e5bcfec3 | 2,608 | package com.module.tencentliteavrtc.ui.videocall.videolayout;
import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.FrameLayout;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.mod... | 28.659341 | 111 | 0.691718 |
8653832321494d24c0952b051c6a443ae619e214 | 694 | package com.algaworks.algafood.domain.model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
@Data
@Entity
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
@Table(name="tb_group")
public class Group {
@Id
@GeneratedValue(str... | 24.785714 | 83 | 0.737752 |
8726b24f6bdb8e1d8074b43e8cf2a7d13d557763 | 2,085 | package com.app.inventorysystemapp.controller.mapper;
import com.app.inventorysystemapp.controller.dto.DeletedProductDto;
import com.app.inventorysystemapp.controller.dto.ProductDto;
import com.app.inventorysystemapp.model.DeletedProduct;
import com.app.inventorysystemapp.model.Product;
import org.springframework.data... | 35.338983 | 97 | 0.713669 |
a849512a65dd458071dc684241e924dd45d53df5 | 544 | package com.rate.rateserv.controller.api;
import com.rate.rateserv.dto.RateDto;
import com.rate.rateserv.dto.enums.Categories;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@RestCon... | 32 | 161 | 0.794118 |
f5a2b50a99537f3c2d340c37456eb81525912899 | 250 | package io.antoniodvr.blockchain.business.model;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class MoneyTransaction extends Transaction {
private String sender;
private String receiver;
private Double amount;
}
| 16.666667 | 51 | 0.776 |
1e8a63c08de799b516fdc8028216122d16b60091 | 3,340 | package tehnut.lib.mc.util;
import com.google.common.cache.Cache;
import com.google.common.cache.CacheBuilder;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import net.mine... | 33.069307 | 139 | 0.61497 |
ea6f7926c165b13ff93d6b9c3617508865b8359c | 4,171 | /*
* This file is generated by jOOQ.
*/
package ch.fhnw.speech_collection_app.jooq.tables.pojos;
import java.io.Serializable;
import java.sql.Timestamp;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
@SuppressWarnings({ "all", "unchecked", "rawtypes" })
public class Source... | 24.109827 | 60 | 0.60585 |
1b7a5326e5bd30af6d8a05eb9213b1d680ab2c97 | 1,767 | package com.alibaba.datax.plugin.rdbms.util;
import com.alibaba.fastjson.JSONObject;
import java.util.ArrayList;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public final class TableExpandUtil {
// schema.table[0-2]more
// 1 2 3 4 5
public static Pattern pattern = Pat... | 29.949153 | 95 | 0.568761 |
225c8baa797aedf62e0d2ccb07352863ade5a2ec | 7,191 | /*
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")... | 41.327586 | 139 | 0.623279 |
0a1daeacfe5d102da074588dc7d857bef6404ce9 | 5,665 | package org.jabref.gui.push;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
import javafx.beans.property.ObjectProperty;
import org.jabref.gui.DialogService;
import org.jabref.gui.JabRefExecutorService;
import org.jabref.gui.icon.IconTheme;
import org.jabref.gui.icon.JabRefIcon;
impor... | 41.350365 | 150 | 0.60053 |
728e2bf73ae5f0e6a85c110e2aafd1a8746116d4 | 6,244 | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in ... | 30.458537 | 97 | 0.667201 |
eb22481e584fe3c1dcee415baf6ac12e2869f60e | 12,038 | package si.unilj.fri.vss.aps2.seminar1;
import java.io.StringReader;
import java.util.Iterator;
import org.junit.Test;
import org.junit.Assert;
public class IQFitInputReaderTest {
/*
"c Y 2 3 111011" +
"l Y 2 3 101011" +
"b G 2 3 101111" +
"t G 2 3 011101" +
"d P 2 3 011111" +
"j P 2 3 ... | 37.61875 | 76 | 0.588054 |
83e21bc887c5e8e302360a00da01a8c24a6e6b47 | 6,465 | package com.salesmanager.shop.store.api.v1.shoppingCart;
import javax.inject.Inject;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import o... | 34.572193 | 272 | 0.743233 |
bb121dc1944ad99dc16c0b86daa2ec8ef6906f67 | 1,953 | /**
* Copyright (C) 2014 - present McLeod Moores Software Limited. All rights reserved.
*/
package com.mcleodmoores.integration.adapter;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import java.util.HashSet;
import java.util.Set;
import org.joda.time.LocalDate;
import o... | 31.5 | 89 | 0.657962 |
bd848853d222c62270286d6b1dc366fae75e55b8 | 952 | package leafcom.dao;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import leafcom.vo.ReportVO;
import leafcom.vo.ItemVO;
import leafcom.vo.OrderVO;
public interface AdminDAO {
// 전체 상품 리스트 개수 구하기
public int getItemCnt(int categoryId);
// 상품 카테고리 이름 맵
public HashMap<Integer, Str... | 19.833333 | 74 | 0.735294 |
ad71fcba5ca8e5f053326ad3e6eab0c6526400b4 | 2,234 | package org.lah.AnimalBreeding.service.impl;
import org.lah.AnimalBreeding.domain.NewAnimal;
import org.lah.AnimalBreeding.domain.PageInfo;
import org.lah.AnimalBreeding.mapper.NewAnimalMapper;
import org.lah.AnimalBreeding.service.NewAnimalService;
import org.springframework.beans.factory.annotation.Autowired;
impor... | 32.852941 | 138 | 0.704566 |
86cb0cefaaef3623d922c9aba36d45943d7de576 | 1,686 | package burlap.oomdp.singleagent.pomdp.beliefstate;
import burlap.oomdp.core.states.State;
import java.util.List;
/**
* An interface to be used by {@link BeliefState} implementations that also can enumerate
* the set of states that have probability mass. The probability mass of a state is specified by the
* {@lin... | 32.423077 | 185 | 0.736655 |
39d10a712a75c44454f9c3d3a9ac468c7024f103 | 1,207 | package rpg_lab;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
public class DummyTest {
private static final int HEALTH = 10;
private static final int EXPERIENCE = 20;
private static final int ATTACK_POINTS = 5;
private Dummy aliveDummy;
private Dummy deadDum... | 23.211538 | 69 | 0.695112 |
40d62a1f831265d0a558eed32af7b3b77b6eb7c3 | 1,329 | class Grandparent {
int a = 10;
Grandparent() {
}
// Grandparent(String msg) {
// System.out.println("This is the Grandparent class. " + msg);
// }
void run() {
System.out.println("I am from the 60s");
}
}
class Parent extends Grandparent {
int b = 20;
Parent() {
... | 17.038462 | 67 | 0.504138 |
90c808c2674d5b6e39f95450377ae18b6cda707d | 2,783 | package IO;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.util.Random;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertTrue;
class S... | 32.741176 | 119 | 0.528207 |
6075b9355e529e5dc23d7d1b1e52e7b87abd4797 | 888 | package com.indy.labs.android.BleEventAdapter.events;
import android.bluetooth.BluetoothGatt;
public class GattConnectionStateChangedEvent {
private final BluetoothGatt mGatt;
private final int mStatus;
private final int mNewState;
public GattConnectionStateChangedEvent(BluetoothGatt gatt, int stat... | 22.2 | 101 | 0.615991 |
6dd956c65d5259176a98f17fc334f3b1da7de2c1 | 986 | package org.wololo.flatgeobuf.generated;
// automatically generated by the FlatBuffers compiler, do not modify
public final class ColumnType {
private ColumnType() { }
public static final byte Byte = 0;
public static final byte UByte = 1;
public static final byte Bool = 2;
public static final byte Short = 3;... | 36.518519 | 178 | 0.69574 |
484dccf866888e62968745eaf5c86df9e196161c | 610 | package kr.lul.kobalttown.document.dto;
import kr.lul.kobalttown.account.dto.AccountSimpleDto;
import static java.lang.String.format;
import static kr.lul.common.util.Texts.singleQuote;
/**
* @author justburrow
* @since 2020/03/07
*/
public class NoteSimpleDto extends AbstractNoteDto<AccountSimpleDto> {
public ... | 24.4 | 95 | 0.727869 |
2f63fd47efb4df8df071ab50c39890f2659da641 | 2,860 | package com.fasterxml.jackson.core.read;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonToken;
public class NextNameParserTest
extends com.fasterxml.jackson.core.BaseTest
{
public void testBasicNextNameWithReader() throws Exception
{
_testBasicNextName(MODE_REA... | 36.202532 | 92 | 0.666084 |
a5860efdfaec5f4704f68f44053613b4e1cc0a9e | 305 | package fr.lukam.bot.api.repositories;
import fr.lukam.bot.api.entities.interfaces.events.Listener;
import java.util.List;
public interface ListenersRepository {
void registerListeners(List<Listener> listeners);
List<Listener> getListeners();
Listener getListenerByName(String name);
}
| 19.0625 | 60 | 0.77377 |
2d9117bb426c6d11389d3768bf7c2902707e28d6 | 271 | package org.example.authorize.app.principal;
import org.example.authorize.entity.Principal;
import org.springframework.data.jpa.repository.JpaRepository;
/**
* Principal Repository.
*/
public interface PrincipalRepository extends JpaRepository<Principal, String> {
}
| 24.636364 | 79 | 0.811808 |
5567a753ec048ef88b43fc34687394514bfa949a | 4,010 | /*
* Copyright (c) 2009-2021, Yegor Bugayenko
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met: 1) Redistributions of source code must retain the above
* copyright notice, this list of cond... | 30.610687 | 73 | 0.654613 |
68a4c31a9d31029999d73e8020ef717d93ddd4b2 | 20,641 | package xworker.io.netty.handlers.http.full;
import static io.netty.handler.codec.http.HttpVersion.HTTP_1_1;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;
import java.util.ArrayList;
import java.util.List;
im... | 37.734918 | 142 | 0.691827 |
1a85f78e2e0262e7e08f56b6af225e6d2c3872ca | 9,357 | /*
* Copyright 2020 LINE Corporation
*
* LINE Corporation licenses this file to you under the Apache License,
* version 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless r... | 47.497462 | 112 | 0.652346 |
542c49cf75c38051bb8cfa16675162fecf5dee17 | 266 | package com.example.orders.repository;
import com.example.orders.models.Customer;
import org.springframework.data.jpa.repository.JpaRepository;
public interface CustomerRepository extends JpaRepository<Customer, Long> {
Customer findByCustname(String name);
}
| 29.555556 | 75 | 0.827068 |
6b74db1e8cc98a6c7ce3ec8443f451d7ee9cff5f | 2,941 | package bapspatil.steamahead.adapters;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.load.resource.dr... | 34.6 | 119 | 0.716763 |
a85cd429070511fb235fde8b20aa8e4bc7c8a039 | 388 | package uk.offtopica.moneropool.api.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class MinerStats {
@JsonProperty("first_seen")
private LocalDateTime createdAt;
@JsonProperty("estimated_hashrate")
private Long hashrate;... | 20.421053 | 53 | 0.765464 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.