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 |
|---|---|---|---|---|---|
fed8e25db2f7b032827db28ef4da8196edbd51d2 | 2,006 | package mage.cards.g;
import java.util.UUID;
import mage.abilities.Mode;
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldWithCounterTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import ma... | 37.849057 | 143 | 0.76321 |
6b5c080ea850a2202ff89d1de6f3ab2f25fcb58e | 293 | package com.loginsignup.repository;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import com.loginsignup.models.UserModel;
@Repository
public interface UserRepository extends MongoRepository<UserModel, String> {
} | 26.636364 | 76 | 0.83959 |
9be1f40448f9ec7a7a238225c65f3602a39e7315 | 1,493 | package org.qw3rtrun.aub.engine;
import org.hamcrest.BaseMatcher;
import org.hamcrest.Description;
import org.hamcrest.Factory;
import org.hamcrest.Matcher;
import org.qw3rtrun.aub.engine.vectmath.Near;
import static java.lang.Float.max;
import static java.lang.Math.abs;
public class Matchers {
public static fi... | 28.169811 | 88 | 0.600804 |
bebbb026d4a29fa6d1ea8bc9111622a9071bbcd2 | 3,744 | import com.badlogic.gdx.graphics.Color;
class Java2 {
public static final Color CLEAR = <weak_warning descr="#00000000">new Color(0.0F, 0.0F, 0.0F, 0.0F)</weak_warning>;
public static final Color BLACK = <weak_warning descr="#000000ff">new Color(0.0F, 0.0F, 0.0F, 1.0F)</weak_warning>;
public static final Color ... | 93.6 | 119 | 0.754541 |
2e96672bb08cb4bebe372d89d09c4cdf028a37b2 | 1,155 | package eu.fbk.iv4xr.mbt.efsm;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.lang3.SerializationUtils;
import eu.fbk.iv4xr.mbt.efsm.exp.Var;
import eu.fbk.iv4xr.mbt.efsm.exp.VarSet;
public class EFSMParameter implements Cloneable, Serializable {
/**
*
*/
private static final... | 18.046875 | 68 | 0.679654 |
bc33d149747d866c56b4451f09d524067f019072 | 1,860 | package com.harpz.androidvalidator.testValidator;
import android.support.design.widget.TextInputLayout;
import android.widget.EditText;
/**
* Created by Neha Thakur on 9/4/2017.
*/
public class PasswordTest {
public boolean checkValid(final EditText ePassword, final String message, final TextInputLayout til... | 24.155844 | 105 | 0.466667 |
92103197b7552672edd7b663061fb99306002553 | 3,747 | package com.labdogstudio.tutorial.tut3;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Input.Keys;
import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.InputMultiplexer;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.GL20;
import com.badlogic.... | 29.046512 | 89 | 0.728316 |
e45d343654a8ba3ab6ed7d885dba8aa149e7e415 | 328 | package kr.geun.o.app.bbs.repository;
import kr.geun.o.app.bbs.model.BbsCategoryEntity;
/**
* 카테고리 Repo
*
* @author akageun
*/
public interface BbsCategoryRepoDsl {
/**
* 추가
*
* @param param
*/
void add(BbsCategoryEntity param);
/**
* 수정
*
* @param param
*/
void update(BbsCategoryEntity pa... | 12.615385 | 49 | 0.640244 |
8f00702d76c6a933072849e0f3456133da32b224 | 586 | package com.ervin.IO;
import java.io.*;
import java.nio.charset.StandardCharsets;
public class OutputStreamTest {
public static void main(String[] args) throws IOException {
// 输出流文件
ByteArrayOutputStream output = new ByteArrayOutputStream();
output.write("Hello ".getBytes(StandardCharsets.... | 34.470588 | 73 | 0.674061 |
42a09ff5b5c898dfaf6ae91d30c296eeb083859e | 12,336 | package net.osmand.plus.osmedit;
import android.annotation.TargetApi;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import ... | 35.653179 | 158 | 0.766537 |
7ff7288264becab816eb517fed60228711016324 | 1,335 | package org.talend.components.processing.limit;
import static java.util.Arrays.asList;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.talend.sdk.component.runtime.manager.chain.Job.components;
import javax.json.JsonBuilderFactory;
import javax.json.JsonObject;
import org.junit.jupiter... | 37.083333 | 127 | 0.725094 |
5adc0130a025b157af8fd7bdbf61ca80a3bc4517 | 1,388 | /*
* Copyright 2003-2013 JetBrains s.r.o.
*
* 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 agre... | 33.853659 | 75 | 0.766571 |
84dc7b5c2d01b8b5d7e30325cbb298a4708394f9 | 2,990 | /**
*
* Copyright 2020 paolo mococci
*
* 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 agre... | 38.831169 | 88 | 0.80903 |
d020b6e92242082dd573ff733a95ee98fc440896 | 639 | package edu.howest.breakout.client.render;
import edu.howest.breakout.game.entity.Entity;
import java.awt.*;
import java.awt.geom.Rectangle2D;
/**
* Created by thomas on 05/11/2014.
*/
public class RenderBlock implements Render {
private Rectangle2D block;
public RenderBlock() {
this.block = new ... | 20.612903 | 92 | 0.655712 |
041c3fa1faf268176ba3022ad4abe2e9c042461f | 1,978 | package hope;
import java.util.ArrayList;
final class ActorCollector {
private ArrayList<String> actorLevels = new ArrayList<String>();
private ArrayList<ArrayList<Actor>> actorLists = new ArrayList<ArrayList<Actor>>();
private boolean isFrozen = false;
void freeze() {
isFrozen = true;
}
ActorCollector() ... | 21.268817 | 84 | 0.688069 |
acc110ac201d2567b43b1b0bda974f9ecef14835 | 150 | package me.bc56.tuna.events;
import me.bc56.tuna.events.type.Event;
public interface EventReceiver {
<E extends Event> void enqueue(E event);
}
| 18.75 | 44 | 0.746667 |
00a6ef812ec1d081dbc11a28673b26f96fa46203 | 368 | package com.psygate.minecraft.spigot.gauntlet.connection.packets.wrappers.v1_8_R3;
//Gauntlet generated interface class.
public interface IPacketPlayOutTransactionWrapper extends com.psygate.minecraft.spigot.gauntlet.connection.packets.IPacketWrapper {
int getA();
void setA(int param);
short getB();
void setB(short par... | 36.8 | 131 | 0.820652 |
fda3a325d32c1676d0c94a8172d0c020db075b6e | 172 | package com.growingwiththeweb.sorting;
public class QuicksortTest extends BaseSortTest {
protected void sort(Integer[] array) {
Quicksort.sort(array);
}
}
| 21.5 | 49 | 0.72093 |
306b35e2b41168ea99379207682c173a3b962f12 | 536 | package cz.cvut.fel.ida.logic.constructs.template.transforming;
import cz.cvut.fel.ida.logic.constructs.example.QueryAtom;
import cz.cvut.fel.ida.logic.constructs.template.Template;
import cz.cvut.fel.ida.setup.Settings;
/**
* Created by gusta on 14.3.17.
*/
public interface TemplateReducing {
<T extends Templa... | 29.777778 | 68 | 0.753731 |
43bea848bf36fa7fd823158cd2d6f3e30f745bb0 | 6,249 | package ru.shutoff.cgstarter;
import android.content.Context;
import android.location.Location;
import android.location.LocationListener;
import android.location.LocationManager;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import java.util.Date;
public class GpsActivity extends ActionB... | 32.21134 | 112 | 0.609858 |
05c7bf2ef9cedbc4856eb4559decd7fb44cf15eb | 7,052 | /* Copyright © 2015 Matthew Champion
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the follow... | 41 | 89 | 0.704481 |
72afbd00300feb05aac47f82887992893976c10e | 1,251 | package com.huuu.web.system.response;
import com.huuu.base.response.BaseResponse;
import com.huuu.system.enums.UserState;
import lombok.Getter;
import lombok.Setter;
import org.apache.commons.lang3.StringUtils;
import java.time.LocalDate;
import java.time.LocalDateTime;
/**
* @author chenzhenhu
*/
@Getter
@Setter
... | 22.339286 | 75 | 0.638689 |
d28d88230b0d5549cacd1f6459be911138a839de | 1,458 | package com.google.smartmessage.bean;
import android.database.Cursor;
/**
* ============================================================
* Copyright:Google有限公司版权所有 (c) 2017
* Author: 陈冠杰
* Email: 815712739@qq.com
* GitHub: https://github.com/JackChen1999
* 博客: http://blog.csdn.net/axi295309066
* 微博: ... | 22.090909 | 63 | 0.620713 |
735cc8f74874e2039194e385ae13062bb35bbdfa | 553 | package com.ezlinker.app.common.exception;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
/**
* ezlinker
*
* @author wangwenhai
* @description Token引起的异常
* @create 2019-11-20 22:46
**/
@ResponseStatus(value = HttpStatus.UNAUTHORIZED, reason = "Token异常... | 24.043478 | 73 | 0.734177 |
92facb4c9fa27ef11aa538ce483091c1abf75294 | 676 | package edu.usc.ict.nl.nlu.nlp4j.parserservice;
import javax.ws.rs.client.ClientBuilder;
import org.json.JSONException;
import org.json.JSONObject;
public class Client {
public static JSONObject parse(String target,String sentence) throws JSONException {
String responseEntity = ClientBuilder.newClient... | 32.190476 | 104 | 0.730769 |
1bba5bca25a190b3e67a88ed967974899c982f9e | 95 | package pojogen;
public class MainClass {
public static void main(String[] argv) {
}
}
| 10.555556 | 41 | 0.673684 |
2b56cca578143ec706c260d6d2939a5864163447 | 729 | package jopenvr;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.Arrays;
import java.util.List;
public class VREvent_Ipd_t extends Structure
{
public float ipdMeters;
public VREvent_Ipd_t()
{
}
protected List<String> getFieldOrder()
{
return Arrays.asList("... | 18.692308 | 102 | 0.680384 |
3fb0b84449ce43de620b54e28dece99bcd21bf36 | 3,958 | /*
* This file is part of Flicklib.
*
* Copyright (C) Zsombor Gegesy
*
* 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 requ... | 45.494253 | 118 | 0.707933 |
3c58edf82372f8e8ce27c6f52b7d1e022f3b52e1 | 27,774 | /*
* Apache License
* Version 2.0, January 2004
* http://www.apache.org/licenses/
*
* TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
*
* 1. Definitions.
*
* "License" shall mean the terms and condition... | 44.941748 | 249 | 0.622273 |
7a8b8469a3ea2ca57cb83db90f5ae0e14a858521 | 10,516 | package com.bulletphysics.dynamics;
import com.bulletphysics.BulletGlobals;
import com.bulletphysics.MotionState;
import com.bulletphysics.Transform;
import com.bulletphysics.collision.broadphase.BroadPhaseProxy;
import com.bulletphysics.collision.dispatch.CollisionFlags;
import com.bulletphysics.collision.dispatch.Co... | 36.898246 | 222 | 0.657474 |
e2e03688edfab6b6abe542a960c8aeda6c644258 | 493 | package net.openhft.chronicle.queue.impl.single.stress;
import org.junit.Test;
public class RollCycleMultiThreadStressPretouchTest extends RollCycleMultiThreadStressTest {
public RollCycleMultiThreadStressPretouchTest() {
super(StressTestType.PRETOUCH);
}
@Test
public void stress() throws Ex... | 25.947368 | 92 | 0.730223 |
ef525a04a7d3ae1cb90cf018fc4f6fe825801f69 | 532 | package com.zel.common.enums;
/**
* 展会状态
*
* @author andy
*/
public enum ExhibitionStatus
{
SAVE(1, "保存"),
PROSPECT(2, "勘展"),
ARRANGE(3, "布展"),
REVOKE(4, "撤展"),
END(5,"结束");
private final int code;
private final String info;
ExhibitionStatus(int code, String inf... | 14 | 44 | 0.488722 |
b3ffa90720d04cac0d098a14a5e3ecf7ed12e7b5 | 477 | package javaFundamentalsCorePlatform.basicConcepts.collections.comparison;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.TreeSet;
import java.util.stream.Collectors;
import... | 23.85 | 85 | 0.78826 |
f091294bd7cf71c0a44388b7895ab00421d87c06 | 2,110 | package gash.clock;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
public class VectorClock {
/** behavior of touch() if the node is not already part of the vector clock */
private boolean failOnUknown = false;
private List<ClockEntry> vector = Colle... | 21.530612 | 93 | 0.669668 |
606000ec99d2edbe62b4346592e8d3949e16f15b | 1,192 | package com.syntifi.near.api.rpc.model.contract;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.syntifi.near.api.common.model.common.EncodedHash;
import com.syntifi.near.api.rpc.json.s... | 25.361702 | 68 | 0.779362 |
4a093474d99406acde3d4169a8537511e09dc0dd | 1,668 | package modelo;
public class Vendedor {
private Integer idVendedor;
private String cui;
private String nombre;
private String telefono;
private String estado;
private String usuario;
private String password;
public Vendedor() {
}
public Vendedor(Integer idVendedor, String cu... | 19.857143 | 133 | 0.607314 |
1a59064b275bab3aa35ff7ed35153b9675ab40d3 | 1,121 | package bruteForce;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class BAEKJOON_7568 {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in... | 28.74359 | 81 | 0.487957 |
4da4b3a90d26e6f77615ce4c03c01f2b3d800c9e | 4,653 | package io.airlift.command.model;
import com.google.common.base.Function;
import com.google.common.collect.ImmutableList;
import io.airlift.command.Accessor;
import io.airlift.command.Group;
import java.util.List;
public class CommandMetadata
{
private final String name;
private final String description;
... | 27.862275 | 129 | 0.603697 |
0afaa1b5ed03836fe55c382a6a10cf81e0d8d18f | 356 | package com.snowman.touristspot.exception;
public class BadRequestException extends RuntimeException {
private static final long serialVersionUID = 5904867277110967104L;
public BadRequestException(String message) {
super(message);
}
public BadRequestException(String message, Throwable cause) {
... | 23.733333 | 67 | 0.75 |
612ce98e022b95bae2dc1a740ee191edc5ae7da3 | 252 | package cn.haohaoli.book.headfirst.factory.version6.ingredent.impl;
import cn.haohaoli.book.headfirst.factory.version6.ingredent.Dough;
/**
* 厚皮比萨面团
* @author LiWenHao
* @date 2019-04-28 21:12
*/
public class ThickCrustDough implements Dough {
}
| 21 | 67 | 0.765873 |
59f1fd5539840296db0e3ad41a770b59b69cc266 | 2,433 | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distrib... | 30.797468 | 107 | 0.736128 |
131b26714072ef41488c57e6ced1c3c6ea982bde | 1,353 | package com.proposta.propostaservice.proposta;
import java.math.BigDecimal;
public class PropostaResponse {
private Long id;
private String nome;
private BigDecimal salario;
private StatusProposta status;
private String email;
private String endereco;
private String cartao;
public Lon... | 21.47619 | 66 | 0.610495 |
18bb7f1b377c664a5646a5dbfcc4c15bb8ae415f | 2,060 | package net.gangelov.transporter.network.protocol;
import net.gangelov.ProgressTracker;
import net.gangelov.StreamPipe;
import net.gangelov.Streams;
import net.gangelov.transporter.network.protocol.packets.FileRequestPacket;
import java.io.*;
import java.net.Socket;
import java.net.SocketException;
import java.nio.ch... | 30.746269 | 96 | 0.650485 |
f3461d2dbc52889c45c9753d5d099186a3abbf5c | 1,687 | /*
* 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 st.jigasoft.dbutil.view;
import java.awt.Component;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector... | 24.1 | 85 | 0.671606 |
369e9f275135624a29aa5c1ff5ce3e38dae11d81 | 6,309 | /** Notice of modification as required by the LGPL
* This file was modified by Gemstone Systems Inc. on
* $Date$
**/
package com.gemstone.org.jgroups.persistence;
/**
* @author Mandar Shinde
* This class is the factory to get access to any DB based or file based
* implementation. None of the implementations sh... | 30.331731 | 126 | 0.644952 |
858c8c8ed0919b2ce6845f974fe187f0559fb1a0 | 3,573 | /*
* Copyright (c) 2014, Klaus Hauschild All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice, this list of conditions an... | 50.323944 | 120 | 0.725441 |
b33ae87c3e3e02506c26d228ae0213e4f1ab5aa0 | 1,305 | package me.yarinlevi.qskywars.games;
import me.yarinlevi.minigameframework.MinigameFramework;
import me.yarinlevi.minigameframework.arena.Arena;
import me.yarinlevi.minigameframework.exceptions.ArenaNotExistException;
import me.yarinlevi.minigameframework.exceptions.NoArenaAvailable;
import me.yarinlevi.minigameframew... | 33.461538 | 94 | 0.682759 |
6c2bf6e13a1f535191004fcd6cd9f04f647262ad | 1,023 | package com.jsong.oom.heap;
import net.sf.cglib.proxy.Enhancer;
import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;
import java.lang.reflect.Method;
/**
* Function:方法区内存溢出
* 1.8之后修改为元数据区
*
* CGLIB基于ASM实现。提供比反射更为强大的动态特性。使用CGLIB可以非常方便的实现的动态代理。
*
* @href https://www.cnblogs.com/shi... | 26.921053 | 126 | 0.626588 |
3905afa89b55093c7439c18845ba09a13a8eb80f | 686 | package online.minipixel.smp.WarpSystem;
import online.minipixel.smp.Main;
import org.bukkit.Location;
public class WarpManager {
public static Location getWarp(String name) {
return Main.getWarps().getConfiguration().getLocation(name);
}
public static void createWarp(String name, L... | 24.5 | 71 | 0.597668 |
44dcf3a98a199972c307a8f4550e93cce30350d8 | 2,664 | /*
* MIT License
*
* Copyright (c) 2021 Demeng Chen
*
* 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, modi... | 39.761194 | 88 | 0.716592 |
0ffbf8dcaef0527d4584a769879fac3ea707a118 | 1,514 | // "Fix all 'Loop can be collapsed with Stream API' problems in file" "true"
import java.util.*;
import java.util.stream.Collectors;
class Test {
List<String> test(String[] list) {
return Arrays.stream(list).filter(s -> !s.isEmpty()).collect(Collectors.toUnmodifiableList());
}
Collection<String> test2(Str... | 42.055556 | 152 | 0.671731 |
f7c7ba072b676dbaa8cf1d65ecfbf7a575b803c0 | 849 | package slack.android.api.webapi.params;
import java.util.HashMap;
import java.util.Map;
/**
* Set a list of optional params to use in a slack web api methods.
*/
public abstract class Params {
private Map<String, String> params;
public Params(){
params = new HashMap<>();
}
public Map<Stri... | 19.295455 | 67 | 0.557126 |
0b59a311e79ca39dcf777f59d2797b375506b0f4 | 1,545 | package interviewquestions;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
/... | 26.186441 | 120 | 0.720388 |
4efd565e6d1f222ab946d670469c7adab0619a0c | 420 | package backend.food.repository;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import backend.food.domain.Tag;
@Repository
@Transactional
public interface Tag... | 23.333333 | 68 | 0.833333 |
5414ef0741a963849447a97caf00d1cdc0b9ee6b | 4,602 | package com.zeligsoft.domain.omg.ccm.api.CCM_Implementation.impl;
import com.zeligsoft.base.zdl.staticapi.util.ZDLFactoryRegistry;
import com.zeligsoft.domain.omg.ccm.api.CCM_Implementation.MonolithicImplementation;
import com.zeligsoft.domain.zml.api.ZML_Component.impl.StructuralRealizationImplementation;
import co... | 29.883117 | 91 | 0.737288 |
4d4eed98132a8262ec17acc71bd6af2c8905646b | 5,745 | package customSynTool;
import java.util.concurrent.FutureTask;
import java.util.concurrent.Semaphore;
import java.util.concurrent.locks.AbstractQueuedSynchronizer;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
/**
* ... | 30.558511 | 79 | 0.536641 |
0a97c9feb0dcfadb2413428590f57232580bce9b | 1,177 | package com.mingchao.snsspider.qq.model;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import com.google.common.hash.Funnel;
import com.google.common.hash.PrimitiveSink;
import com.mingchao.snsspider.model.IdAble;
/**
... | 19.949153 | 63 | 0.735769 |
acb03fae58fba7b2a8c11092158daf64b8496c3f | 2,888 | package com.nitorcreations.willow.metrics;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.SortedMap;
import java.util.TreeMap;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.search.SearchH... | 33.581395 | 107 | 0.681094 |
1025cf3f2274bc01755fe4488c417d0addd98052 | 844 | package com.heyi.UniversityNews.Utils;
import android.content.Context;
import android.view.View;
import android.view.animation.AlphaAnimation;
/**
* Created by heyi on 2017/1/7.
*/
public class AnimationUtils {
private AnimationUtils(){}
public static void showAndHidden( View target, long time){
Al... | 25.575758 | 62 | 0.671801 |
0d377e5cf5655714b97435d4715966e3dd248184 | 4,968 | /*
* MIT License
*
* Copyright (c) 2018 Kirill
*
* 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,... | 27.910112 | 86 | 0.513486 |
eedd28845ef1d8ab7c26a5177ba532a6c81dfc4d | 342 | package io.cscanner.core.rule.firewall;
import io.cscanner.core.test.engine.CloudProvider;
import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
public interface FirewallCloudProvider<CONFIGURATIONTYPE, CONNECTIONTYPE extends FirewallConnection> extends CloudProvider<CONFIGURATIONTYPE... | 34.2 | 159 | 0.871345 |
69c3aa2ae16236553f6a2c587db6926abef4b315 | 3,202 | package net.avcompris.tools.diagrammer;
import static com.google.common.base.Preconditions.checkNotNull;
import static org.apache.commons.lang3.StringUtils.substringBeforeLast;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.io.File;
import java.lang.reflect.Modifie... | 25.212598 | 78 | 0.749844 |
c8eddfbd18691e2e6ce495192940a5e8df1585b3 | 2,738 | /*
* 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 ... | 39.681159 | 105 | 0.735208 |
cea4bedfb089546c19cb6f267c4b6cd1a36e58ba | 13,191 | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 44.414141 | 194 | 0.65757 |
d6443c3a9d56d4ec8c8e987681511ccb3025b13a | 134 | package com.darly.im.ui.chatting;
public class GlobalConstant {
public static final int ACTIVITY_FOR_RESULT_VIDEORECORD=0x9;
}
| 14.888889 | 61 | 0.791045 |
e551e70c583f416d9bd27671daa3cd412aee4160 | 1,531 | package net.rubenmartinez.cbcc.logparsing.components.impl;
import net.rubenmartinez.cbcc.logparsing.components.LogLineParser;
import net.rubenmartinez.cbcc.domain.ConnectionLogLine;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
@Component
public class BasicL... | 40.289474 | 301 | 0.728282 |
aaad5a65fe01bf6733071f120e8fa27e30bdb1bf | 1,251 | /*
Copyright 2021 aholinch
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
... | 20.85 | 80 | 0.696243 |
c41a5c61278c0f96e1d2d14076dc12ffe91bb9b8 | 1,889 | package syncAssit.semaphore2More;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* Created by Yao on 2015/8/27.
*/
public class Printer {
private int iCnt= 3;
private boolean[] printe... | 26.605634 | 105 | 0.528851 |
5337730cc84bf8bdbce7cd0411dd3aea13d05db0 | 300 | package by.babroval.bike.utils;
import java.math.BigDecimal;
import java.math.RoundingMode;
public class CurrencyUtils {
public static BigDecimal roundNumber(final BigDecimal number, final boolean isFloor) {
return number.setScale(2, isFloor ? RoundingMode.FLOOR : RoundingMode.CEILING);
}
}
| 23.076923 | 87 | 0.79 |
65c8292cac5c7638198b6601c744bab7e6048ba7 | 1,056 | package com.yy.admin.service;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yy.admin.dao.RoleMapper;
import com.yy.admin.entity.Role;
import org.springframework.stereotype.Service;
import org.springframework.util.Assert... | 25.756098 | 67 | 0.668561 |
eef1cec12568d6d4c78cb6dfdec807fcf2b931bd | 3,189 | package com.taobao.tddl.repo.mysql.spi;
import java.sql.SQLException;
import com.taobao.tddl.executor.common.ExecutionContext;
import com.taobao.tddl.executor.cursor.ICursorMeta;
import com.taobao.tddl.executor.cursor.ISchematicCursor;
import com.taobao.tddl.executor.record.CloneableRecord;
import com.taobao.tddl.exe... | 20.707792 | 124 | 0.587645 |
a29ecee0b2fda8664498dca50f3f290430d0f3ea | 2,525 | package graphql.scalar;
import graphql.Internal;
import graphql.language.IntValue;
import graphql.schema.Coercing;
import graphql.schema.CoercingParseLiteralException;
import graphql.schema.CoercingParseValueException;
import graphql.schema.CoercingSerializeException;
import java.math.BigDecimal;
import java.math.Big... | 31.5625 | 101 | 0.598416 |
5f8e8e2352574457a76532a8fa1bc7c80fad1e79 | 843 | package LeetCode.无法归类;
import java.util.*;
/**
* @Author Aqinn
* @Date 2021/4/21 8:14 上午
*/
public class 存在重复元素 {
/**
* 题目描述:
* 给定一个整数数组,判断是否存在重复元素。
* 如果存在一值在数组中出现至少两次,函数返回 true 。如果数组中每个元素都不相同,则返回 false 。
* <p>
* 输入: [1,1,1,3,3,4,3,2,4,2]
* 输出: true
*
* 来源:力扣(LeetCode)
... | 20.560976 | 61 | 0.492289 |
d2ebdecd8a0f9ce96485531aae29739dcc459402 | 2,903 | package com.bytx.admin.controller;
import com.bytx.admin.entity.Media;
import com.bytx.admin.service.CompanyMediaPersistenceService;
import com.bytx.admin.service.MediaQueryService;
import com.bytx.admin.util.SFTPUtil;
import org.apache.commons.io.FileUtils;
import org.springframework.beans.factory.annotation.Autowire... | 33.755814 | 123 | 0.675853 |
6fcd54f7b5efd3fbb431252d9f37d1e46f1b5df8 | 14,608 | /*
* Isilon SDK
* Isilon SDK - Language bindings for the OneFS API
*
* OpenAPI spec version: 5
* Contact: sdk@isilon.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.... | 25.142857 | 120 | 0.621166 |
2a3017d393583ce17b5f4575e9f3b4b7aabbee27 | 3,927 | /**
* Copyright (C) 2010-18 diirt developers. See COPYRIGHT.TXT
* All rights reserved. Use is subject to license terms. See LICENSE.TXT
*/
package org.diirt.util.config;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java... | 33.564103 | 163 | 0.638146 |
1b94c5ac9ebda846f942649ff63e8e318024dc9f | 297 | package de.gothaer.application;
import de.gothaer.geometrie.Kreis;
import de.gothaer.geometrie.Punkt;
public class PunktTest {
public static void main(String[] args) {
Object o;
Punkt p;
Kreis k;
o = new Kreis();
System.out.println(o.toString());
}
}
| 14.142857 | 42 | 0.632997 |
9a9ff2a4686e2438a7338928b3c60f9c48e9f9ba | 285 | /*
* Author: jianqing
* Date: Jun 4, 2021
* Description: This document is created for
*/
package com.vocab85.icy.network;
/**
*
* @author jianqing
*/
public interface ProgressListener
{
public void onSuccess(int id);
public void onFailure(int id, Exception ex);
}
| 15.833333 | 48 | 0.673684 |
8c58fc2db1a415d11bffe38b1784c823943a795c | 85,507 | /***************************************
* Copyright (c) Intalio, Inc 2010
*
* 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 righ... | 50.806298 | 258 | 0.631375 |
d62096b6eb5f5b4fde3e00d238aefba92d0db695 | 3,016 | package uk.gov.pay.connector.model.domain;
import uk.gov.pay.connector.charge.model.domain.ChargeEntity;
import uk.gov.pay.connector.gatewayaccount.model.GatewayAccountEntity;
import uk.gov.pay.connector.refund.model.domain.RefundEntity;
import uk.gov.pay.connector.refund.model.domain.RefundStatus;
import java.time.Z... | 33.511111 | 120 | 0.729111 |
13e258db975aae356e1db6b0bb6a290f36ada361 | 654 | /*******************************************************************************
* Copyright Duke Comprehensive Cancer Center and SemanticBits
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/c3pr/LICENSE.txt for details.
**********************************************... | 40.875 | 81 | 0.577982 |
46ac0e6900835dea38e0a5d2b78caae89ac9e909 | 15,697 | package me.gorgeousone.netherview.listeners;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.ProtocolManager;
import com.comphenix.protocol.events.ListenerPriority;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.e... | 35.116331 | 134 | 0.731477 |
a314f272029b849da6f754030c8f9c0900080ae3 | 6,924 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-257
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012... | 24.728571 | 126 | 0.572068 |
ce9da79dea7771eb0e72917daf54920c6a0820fa | 204 | package cn.lite.flow.executor.common.exception;
/**
* rpc调用异常
*/
public class ExecutorRpcRuntimeException extends RuntimeException {
public ExecutorRpcRuntimeException(String msg) {super(msg);}
}
| 20.4 | 67 | 0.77451 |
63ac01ce3ad1993a39664c2cbdacf0b0d024300b | 381 | package com.example.test.java;
/**
* Created by cosmin on 1/22/17.
*/
public class B {
public int x;
public B(int x) {
this.x = x;
}
public static void swap(B b1, B b2) {
B aux = b1;
b1 = b2;
b2 = aux;
}
public static void swapCorrect(B b1, B b2) {
int ... | 17.318182 | 48 | 0.475066 |
c8f6626709f4f36edd4415d7da78bdad261a09d5 | 371 | package com.github.knightliao.middle.http.common.service.loadbalance;
import java.util.List;
import com.github.knightliao.middle.http.common.service.server.helper.server.ServerStatus;
/**
* @author knightliao
* @email knightliao@gmail.com
* @date 2021/8/23 11:49
*/
public interface ILoadBalancer {
ServerSta... | 23.1875 | 90 | 0.77628 |
b55d6e71d5950dbc2435cdccb159b0fcfd06718b | 379 | package com.luv2code.springdemo;
public class TrackCoach implements Coach {
private Fortune fortune;
public TrackCoach(Fortune fortune) {
this.fortune = fortune;
}
public TrackCoach() {
}
@Override
public String getDailyWorkout() {
return "Run a hard 5k";
}
@Override
public String getFortune() {
r... | 10.828571 | 45 | 0.693931 |
cff4b49fb2d0404976f3305c0a9c9f3f4aebaa23 | 3,891 | package com.dell.doradus.spider3;
import java.util.HashSet;
import java.util.Set;
import com.dell.doradus.common.ApplicationDefinition;
import com.dell.doradus.common.FieldDefinition;
import com.dell.doradus.common.TableDefinition;
import com.dell.doradus.common.Utils;
import com.dell.doradus.logservice.pattern.Patte... | 34.741071 | 113 | 0.593421 |
2bf4a07296de00d749ffe71d8c5312deb3625ecc | 1,667 | package arc.math.geom;
/**
* A Segment is a line in 3-space having a staring and an ending position.
* @author mzechner
*/
public class Segment{
/** the starting position **/
public final Vec3 a = new Vec3();
/** the ending position **/
public final Vec3 b = new Vec3();
/**
* Constructs a ... | 26.887097 | 79 | 0.579484 |
a7aa98c1bf51098aa5ace4d59afb87d13310b764 | 3,406 | <%#
Copyright 2013-2017 the original author or authors from the JBooter project.
This file is part of the JBooter project, see https://jbooter.github.io/
for more information.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may... | 40.070588 | 138 | 0.767763 |
8d9d6efe971ec4cfd8a3fe14042938cc15561b1f | 2,756 | package svenhjol.charm.module;
import net.minecraft.sound.SoundEvents;
import net.minecraft.util.Identifier;
import net.minecraft.village.VillagerProfession;
import net.minecraft.world.poi.PointOfInterestType;
import svenhjol.charm.Charm;
import svenhjol.charm.village.BeekeeperTradeOffers;
import svenhjol.charm.event.... | 54.039216 | 129 | 0.772134 |
8a3e0b658d8e0342473105cd869fa38a413060ca | 3,234 | package org.infinispan.api.annotations.indexing;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.hibernate.search.... | 35.538462 | 136 | 0.729437 |
cf92589c3fbf728e7685fe2b26c972d7073ab001 | 5,762 | /*******************************************************************************
* Copyright (c) 2010 Actuate Corporation.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is availabl... | 23.908714 | 93 | 0.656543 |
3d9aef06a1feb8e25be31a62fadf4dc673a9bd6b | 31,412 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: resources.proto
package counters.minter.grpc.client;
/**
* Protobuf type {@code api_pb.FrozenAllRequest}
*/
public final class FrozenAllRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message... | 31.761375 | 126 | 0.654495 |
02b403812bca89dfd97135a2a3a840bb3aea2aca | 2,096 | package com.leammin.leetcode.medium;
import com.leammin.leetcode.util.AbstractTest;
import com.leammin.leetcode.util.ExpectedTestcase;
import com.leammin.leetcode.util.Testsuite;
/**
* @author Leammin
* @date 2020-03-15
*/
class MaxAreaOfIslandTest extends AbstractTest<MaxAreaOfIsland> {
@Override
protecte... | 45.565217 | 76 | 0.354485 |
1e0188b3bcfe7ac4a6f5b435ebae85cc0cd2e85a | 983 | package Easy.E301_400;
/**
* Given a positive integer num, write a function which returns True if num is a perfect square else False.
* https://leetcode.com/submissions/detail/187746270/
* 此题关键为将int转化为long然后二分
* Created by liuxiang on 2018/11/6.
*/
public class E367_Valid_Perfect_Square {
public static void m... | 25.868421 | 107 | 0.525941 |
87d8f4d988102285e85ca9a115a4f01d9980fb26 | 13,174 | /*
* OpenRemote, the Home of the Digital Home.
* Copyright 2008-2012, OpenRemote Inc.
*
* See the contributors.txt file in the distribution for a
* full listing of individual contributors.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Pub... | 30.637209 | 99 | 0.62927 |
9562755ec380575be85542cb9c7b76c3040c2ce7 | 506 | package com.daiwj.invoker.demo.okhttp.extra;
import java.io.IOException;
import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;
public class TestRequestInterceptor implements Interceptor {
@Override
public Response intercept(Chain chain) throws IOException {
Request oldRequest ... | 23 | 63 | 0.727273 |
64e7d8f79445aaaf284cd0942ce74c369f70e0c3 | 1,351 | /*============================================================* /
* UPI: enau831 *
* ID: 768485633 *
* NAME: Etienne Naude *
* ... | 40.939394 | 101 | 0.427831 |
0b56c56bb7d7688a976a640aa520ce2acf1eba97 | 730 | class Solution {
public String XXX(String[] strs) {
// 默认前缀
String prefix = strs[0];
String pubPrefix = "";
// 按前缀顺序匹配
for (int i = 0; i < prefix.length(); i++) {
char c = prefix.charAt(i);
boolean flag = false;
for (int j = 0; j < strs.len... | 27.037037 | 70 | 0.394521 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.