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 |
|---|---|---|---|---|---|
364556b276663e0ef5b4cf7c303d1e8960b11387 | 314 | package ntut.csie.accountManagementService.useCase.login;
import ntut.csie.accountManagementService.useCase.Input;
public interface LoginInput extends Input {
public String getUsername();
public void setUsername(String username);
public String getPassword();
public void setPassword(String password);
}
| 20.933333 | 57 | 0.808917 |
a94f7964b8d8ef28edfc5f5bf572671b4d99679b | 1,749 | package kg.apc.perfmon.metrics.jmx;
import org.apache.jorphan.logging.LoggingManager;
import org.apache.log.Logger;
import javax.management.MBeanServerConnection;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import javax... | 37.212766 | 97 | 0.692396 |
fe4e3ac5c8ae60170b5587ec7c07cfeb4cabae63 | 1,539 | package comp346pa3s2020;
public class Producer extends Thread {
private int[] buffer;
private int index = 0;
private double q = 0;
private Semaphore mutex;
private Semaphore full;
private Semaphore empty;
public Producer(int[] buffer, double q, Semaphore mutex, Semaphore full, Semaphore empty) {
this.buffer =... | 30.176471 | 101 | 0.578947 |
3b2fcfd4c2c2ad0cc9e70f1f3e3a80d377eb2ae8 | 815 | package com.thinkgem.jeesite.common.commonPay.pay.unionpay.config;
import com.thinkgem.jeesite.common.commonPay.pay.unionpay.sdk.SDKConfig;
import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpServlet;
public class InitAcpConfig extends HttpServlet imp... | 27.166667 | 93 | 0.712883 |
4a67db7bfa9a90f1bf4522a91d22982f1574e5b1 | 2,375 | package ro.pub.cs.systems.pdsd.practicaltest01;
import android.content.Intent;
import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
public class Practi... | 32.094595 | 80 | 0.626105 |
afa5c15b381d0ef9cdd3117111379373368690eb | 2,335 | package top.littlerich.virtuallocation.base;
import android.app.Activity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import top.littlerich.virtuallocation.view.CustomProgressDialog;
/**
* Created by x... | 24.322917 | 78 | 0.629122 |
db63a1514e9ade11f83af724737992c0e13f0708 | 10,287 | /*
* Sakuli - Testing and Monitoring-Tool for Websites and common UIs.
*
* Copyright 2013 - 2015 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
*
* ... | 30.891892 | 147 | 0.598231 |
266342920ef0c71e03744f19238dcceefe4d5e2f | 453 | package daggerok.config;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Data
@Component
@ConfigurationProperties(prefix = "boot-reactive-backend")
public class ReactiveBackendConfig {
String ip;
Integer port;
Str... | 19.695652 | 75 | 0.783664 |
704acc233a114e3e6a1035bc5554e79eda558a88 | 10,362 | package com.melissadata.personatorworld.model;
import java.util.ArrayList;
import java.util.List;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
public class PersonatorWorldOptions {
private final StringProperty optionCorrectFirstName;
private final StringProp... | 33.533981 | 88 | 0.704111 |
1c63e0fa85c1debb836268183cdc4b7acc0ecd1a | 2,683 | package ibm.wjx.osserver.web.controller;
import ibm.wjx.osserver.manager.PodNetworkManager;
import ibm.wjx.osserver.pojo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
imp... | 37.788732 | 122 | 0.723071 |
f9608b5dc93b49cc09d8888932f1cb7ff77f5dbf | 1,554 | package mage.cards.w;
import mage.abilities.costs.common.SacrificeTargetCost;
import mage.abilities.effects.common.turn.AddExtraTurnTargetEffect;
import mage.abilities.keyword.BuybackAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
impor... | 33.06383 | 188 | 0.741956 |
5289b8ed8f19ca7e85606163da85935ee8e26ce8 | 80 | package lara;
class F
{
void test1()
{
System.out.println("test1");
}
}
| 8 | 30 | 0.5875 |
9f782fa9f50f49c2f85b457b7dec1463eeb45330 | 1,002 | package com.stylefeng.guns.rest.modular.order.util;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.parser.Feature;
import org.springframework.core.io.ClassPathResource;
import java.io.IOException;
import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;
public class MyJsonUti... | 33.4 | 93 | 0.596806 |
658c1f09046c4818461974d593b354b984040549 | 6,199 | package com.github.dockerjava.core.command;
import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.isEmptyOrNullString;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.equalTo;
import java.io.IOException;
import java.io.InputStream;
import java.lang.refle... | 40.253247 | 122 | 0.683336 |
a92981b4e6bfbbeddffda00d8057e5f9c82e5bc9 | 3,893 | /*
* Copyright 2005-2010 Ignis Software Tools Ltd. All rights reserved.
*/
package jsystem.treeui;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.logging.Level;
import java.util.logging.Logger;
i... | 23.883436 | 81 | 0.73234 |
476c541980679ce66db2468c72742e3def77e99d | 84 | package com.ubuntuvim.spring.autowire;
public interface Fruit {
void eatable();
}
| 14 | 38 | 0.761905 |
716236bf5e9ed61cffb22e372bca668a30202ccb | 12,597 | /*
* Copyright 2017 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 34.512329 | 100 | 0.669763 |
771b776934580b9ac90cf10f8cf7db03887a7efc | 416 | package tihkoff.taxi.dto;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import java.util.List;
@Getter
@Setter
@NoArgsConstructor
public class RateEntityDTO {
private Long id;
@No... | 16 | 50 | 0.766827 |
73f6b3622d769810acf409e5b279f716c78b9e91 | 3,691 | /*
Copyright 2014 OPM.gov
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... | 26.177305 | 105 | 0.619615 |
f2df769d81d73fc21a7fa88f1c954a2699f7d002 | 2,160 | package com.dao;
import java.util.List;
import java.util.Set;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import or... | 24.269663 | 81 | 0.747222 |
e9e62b9bf3c11bc4ad1d55d12b2a2f355225ddf6 | 15,698 | /**
* BOSSWebServiceSoapImplServiceMessageReceiverInOut.java
*
* This file was auto-generated from WSDL
* by the Apache Axis2 version: 1.6.3 Built on : Jun 27, 2015 (11:17:49 BST)
*/
package com.sysway.outwardtps.service.cfocn;
/**
* BOSSWebServiceSoapImplServiceMessageReceiverInOut message receiver
*/
publi... | 48.006116 | 157 | 0.619633 |
92020c994c20c66f7f2a88bcfd16122f3d388b1c | 3,797 | package com.candybar.dev.licenses;
import candybar.lib.items.InAppBilling;
public class License {
/*
* License Checker
* private static final boolean ENABLE_LICENSE_CHECKER = true; --> enabled
* Change to private static final boolean ENABLE_LICENSE_CHECKER = false; if you want to disable it
*... | 34.518182 | 114 | 0.647617 |
4cc82025988a202308abb6af97975c988d01fdc7 | 10,660 | package slimeknights.tconstruct.gadgets.block;
import com.google.common.collect.ImmutableList;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.BlockFaceShape;
i... | 33.734177 | 192 | 0.72955 |
c5770f64684b06d854ce0c90f306e8a2620be4b0 | 2,316 | package com.healthy.gym.trainings.component;
import io.jsonwebtoken.SignatureAlgorithm;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.sprin... | 33.565217 | 97 | 0.74266 |
957c1995163a784b9f426ed834141517b7572bb1 | 151 | package org.frankframework.frankdoc.testtarget.examples.config.children2;
public class Level2 extends Level1 {
public void registerC(C child) {
}
}
| 21.571429 | 73 | 0.794702 |
c10a984ff8e83aa81ac479728e5bb33f7fabb82b | 1,161 | package com.ifsaid.shark.mapper;
import com.ifsaid.shark.common.mapper.BaseMapper;
import com.ifsaid.shark.entity.Relation;
import com.ifsaid.shark.entity.SysUser;
import java.util.List;
import java.util.Set;
/**
* All rights Reserved, Designed By www.ifsaid.com
* <p>
* 用户 Mapper 接口
* </p>
*
* @author Wang Che... | 21.109091 | 69 | 0.625323 |
78e7c5ce0c013de57c8eb2455d2b9cbb359f746e | 1,468 | package com.philihp.weblabora.model.building;
import static com.philihp.weblabora.model.TerrainTypeEnum.COAST;
import static com.philihp.weblabora.model.TerrainTypeEnum.HILLSIDE;
import static com.philihp.weblabora.model.TerrainTypeEnum.PLAINS;
import java.util.EnumSet;
import com.philihp.weblabora.model.Board;
impo... | 31.234043 | 75 | 0.735695 |
2568dda3fd780c2ec8130126159b1fc39ed909ce | 3,920 | package edu.umass.ciir.proteus.athena.experiment;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import static org.junit.Assert.*;
public class DateRerankerTest {
private static ScoredDate mk(double score, int year) { return new ScoredDate(0, score, year); }
... | 26.666667 | 97 | 0.592602 |
f34759e55d36c0f5a8b4150167377e81ce443d16 | 1,951 | package models.tarot;
import org.junit.Test;
import java.util.HashSet;
import java.util.Stack;
import static models.tarot.MajorArcanaCardTest.assertAllMajorArcanaCardsArePresent;
import static models.tarot.MinorArcanaCardTest.assertAllMinorArcanaCardsArePresent;
import static org.junit.Assert.assertEquals;
import st... | 30.484375 | 88 | 0.750384 |
9222a650e00968174a7f5865496ec43f3f645105 | 5,863 | /*
* Copyright (C) 2011 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 ... | 36.874214 | 103 | 0.711069 |
b56468c77853ee0a293694abfc7fdebbd524ba79 | 1,867 | package br.com.techHouse.zmed.to;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class FiltroTO<T> {
private Integer inicio;
private Integer tamanho;
private Integer totalRegistros;
private String ordenacao;
private String campoOrdenacao;
private Date dataInicio;
private Date... | 17.613208 | 56 | 0.714515 |
282a9b70371e1fb8c84da60fc0bc4d11f81e1c73 | 1,235 | package com.mojota.succulent.entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* App信息,升级用
*
* @author jamie
* @date 18-12-14
*/
@Entity
@Table(name = "app_info")
@JsonI... | 18.712121 | 53 | 0.676113 |
2f405d1380bac74e9d8b2ae132c36edfa75add23 | 1,253 | package com.yun.feign.client.service;
import com.yun.bean.result.Result;
import com.yun.feign.client.service.impl.FeignAuthInfoServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.HttpHeaders;
import org.springframework.stereotype.Component;
import org.springframework.we... | 35.8 | 86 | 0.710295 |
1439ab48ecae2bc31a8d63dc052b95de07d46f16 | 647 | package com.qijianguo.design.pattern.proxy.remote.v2.server;
public class SoldOutState implements State {
private transient StateMachine stateMachine;
public SoldOutState(StateMachine stateMachine) {
this.stateMachine = stateMachine;
}
@Override
public void insertQuarter() {
Syst... | 20.870968 | 60 | 0.646059 |
0896dcbece5b02328147be50b0ab338f7c421aef | 1,480 | /*******************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2014,2015,2016 by Peter Pilgrim, Milton Keynes, P.E.A.T LTD
*
* All rights reserved. This program and the accompanying materials
* are made available under ... | 32.173913 | 81 | 0.579054 |
aa0dd03ead68e0156b992e409236762eb7a76961 | 2,496 | package de.felixbruns.jotify.media;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import de.felixbruns.jotify.util.SpotifyChecksum;
import de.felixbruns.jotify.util.XMLElement;
public class PlaylistContainer implements Iterable<Playlist> {
public static final PlaylistContainer EMPTY ... | 24.96 | 99 | 0.703926 |
cede0dcd2838e0aaad21348f1e94e94dd250f027 | 1,397 | package com.kbhit.orangebox.trading.dbsetup.builders;
import com.kbhit.orangebox.trading.domain.BidderId;
import com.ninja_squad.dbsetup.operation.Operation;
import java.util.TreeMap;
import static com.kbhit.orangebox.trading.dbsetup.tables.BidderTable.*;
import static com.ninja_squad.dbsetup.Operations.insertInto;
... | 30.369565 | 91 | 0.707946 |
21ee0d088073eec6e012cf0a1e00a12575316017 | 5,382 | //
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//
package com.bstek.urule.builder;
import com.bstek.urule.exception.RuleException;
import com.bstek.urule.model.decisiontree.ActionTreeNode;
import com.bstek.urule.model.decisiontree.ConditionTreeNode;
import com.bs... | 34.722581 | 96 | 0.55667 |
0f0babd6cdd58c8f3411b086da79477f2b3dea37 | 3,071 | /*
* The MIT License (MIT)
*
* Copyright (c) Despector <https://despector.voxelgenesis.com>
* Copyright (c) contributors
*
* 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 rest... | 40.407895 | 88 | 0.637252 |
1f3b438aeb9f06e8fb55d802cf12915c632e8106 | 641 | package com.easynetcn.data.algorithms.practice.chapter01;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;
public class DateTemperatureGroupingComparator extends WritableComparator {
public DateTemperatureGroupingComparator() {
super(DateTemperaturePair.class, true);... | 32.05 | 92 | 0.829953 |
f70f026d9a484614109e5f1ba7847dfc1b620671 | 5,024 | package edu.buaa.sei.datamodel;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
impor... | 28.224719 | 95 | 0.659833 |
486dc4757c88d510c0f5c4f6c11711abca563016 | 171 | package com.srp.carwash.ui.home;
import com.srp.carwash.data.model.api.MatchesModel;
public interface OnMatchesListener {
void onMatch(MatchesModel matchesModel);
}
| 21.375 | 51 | 0.795322 |
f4680d41d8b175869e314c359276005828a1c1ff | 1,504 | /*
* Copyright (C) Schweizerische Bundesbahnen SBB, 2017.
*/
package ch.sbb.perma.serializers;
import com.google.common.collect.ImmutableCollection;
/**
* Serialize a immutable collection as value. Each item is serialized using the given item serializer.
*
* @author u206123 (Florian Seidl)
* @since 1.0, 2017.
... | 33.422222 | 125 | 0.700798 |
db24e2a39ad64d72166f6b7f0a098f5dea2c3402 | 1,798 | package de.jofre.visual.support;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.faces.context.ExternalC... | 27.661538 | 76 | 0.727475 |
2970cf75a2b6204309714b6b93637a9f31eb87c7 | 8,993 | /*
* Copyright 2001-2009 Stephen Colebourne
*
* 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... | 32.821168 | 120 | 0.61748 |
04e751baad88f41aaf56d7bbb53ae7f589a12bbc | 397 | package org.ms2ms.runner;
import org.expasy.mzjava.core.ms.Tolerance;
/**
* Created with IntelliJ IDEA.
* User: wyu
* Date: 7/23/14
* Time: 9:33 PM
* To change this template use File | Settings | File Templates.
*/
public class LcMsAligner extends Aligner
{
public LcMsAligner(String[] cols, T... | 18.045455 | 77 | 0.642317 |
ea99267f9b0f1da0ca20c8835b72242b2209e526 | 177 | package com.zou.designPattern.create.abstractFactory;
import com.zou.designPattern.entity.Fruit;
public interface AbstractFactory {
Fruit getFruit();
Bag getBag();
}
| 17.7 | 53 | 0.762712 |
402f6611b60eb4eeb0bf363ab00935d49a3bc005 | 1,080 | package com.project.communication.capitalization;
import com.project.communication.common.LoggerFactoryV2;
import com.project.communication.common.LoggerV2;
import com.project.communication.obj.ProtocolConfig;
import java.net.ServerSocket;
import java.net.Socket;
public class SingleThreadedCapitalizationServer {
... | 40 | 111 | 0.689815 |
c62f3c82bc365fb9db8481a2d201c21fd2c0cff3 | 7,024 | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.media.router.cast;
import android.net.Uri;
import android.support.v7.media.MediaRouteSelector;
import com.google.and... | 34.945274 | 99 | 0.678388 |
8cc7c844e7f11bae5254921f3c1c42597fa4ffa4 | 1,040 | package com.test.thread;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
/**
* 测试捕获线程池异常
*/
public class ThreadExceptionTest {
public static void main(String[] args) th... | 28.888889 | 104 | 0.628846 |
a0662cc3147baf47639dc6834ebc84f220eeb597 | 32,993 | package org.irods.jargon.rest.commands.user;
import java.net.URLEncoder;
import java.util.Properties;
import junit.framework.Assert;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.HttpDelete;
import org.apache.http.client.methods.HttpPut;
import org.apac... | 35.476344 | 96 | 0.786894 |
8ca5101e4f10bfd0929ac006a175f3d12f354657 | 11,809 | /*
* Licensed to Crate.io GmbH ("Crate") under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership. Crate licenses
* this file to you under the Apache License, Version 2.0 (the "License");
* you may not use this f... | 44.063433 | 120 | 0.516555 |
e34f93314cdbbdc36ae2d797db0b82fe72863eba | 282 | package com.leafCat.common.util;
public class StaticStringUtil {
//Login String
public static String USER_NOT_EXIST = "NE";
public static String USER_LOCKED = "LO";
public static String USER_PASSWORD_ERR = "PE";
public static String USER_LOGIN_SUCCESS = "SU";
}
| 23.5 | 49 | 0.72695 |
115cd5f5b4f3671934b2f6cc26d7e28052b7e83a | 516 | package by.itacademi.hotel.web.command;
import by.itacademi.hotel.web.command.impl.Close;
import by.itacademi.hotel.web.command.impl.Guest;
import by.itacademi.hotel.web.command.impl.Login;
public class CommandChooser {
public static Action perForAction(ActionType actionT){
Action action= null;
switch(a... | 14.333333 | 55 | 0.674419 |
e6794d1a344524475330dd2f7ae70ebd45a23366 | 4,211 | package Vinetalk;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
import java.util.List;
import java.util.Arrays;
import com.sun.jna.Memory;
import com.sun.jna.Native;
public class VineBuffer extends Structure
{
public Pointer user_buffer;
public long user_buffer_size;
public Pointer vine_data;
private O... | 23.137363 | 84 | 0.692235 |
cb4fb871ae204ef30da2bf571849df825a375f1e | 869 | package org.bukkit.event.vehicle;
import org.bukkit.Location;
import org.bukkit.entity.Vehicle;
import org.bukkit.event.HandlerList;
/**
* Raised when a vehicle moves.
*/
public class VehicleMoveEvent extends VehicleEvent {
private static final HandlerList handlers = new HandlerList();
private final Location from... | 18.104167 | 89 | 0.706559 |
4f45b91576e462324a0eb675671dfc9208abe2d3 | 1,178 | package com.power.doc.model.postman.request.header;
/**
* @author xingzi
*/
public class HeaderBean {
private String key;
private String value;
private String type;
private boolean disabled;
private String name;
private String description;
public HeaderBean() {
this.type = "text... | 17.58209 | 52 | 0.588285 |
6a05f17f6d35764a8a8af4ab3a134871ec124bbc | 3,012 | /*******************************************************************************
* Copyright (c) 2017 James Mover Zhou
*
* 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://ww... | 29.529412 | 84 | 0.52656 |
c9217d250aac14955011167cddf33a9b2635668b | 294 | package com.rainng.massproxy.models.constant;
/**
* 快速测试状态
*/
public class FastTestStatus {
/**
* 可用
*/
public static final int OK = 1;
/**
* 需要进一步校验
*/
public static final int NEXT = 2;
/**
* 不可用
*/
public static final int BAD = 3;
}
| 13.363636 | 45 | 0.52381 |
7b366942b67901450b2c0fbdfbea3d78f21a72cd | 1,138 | /**
* @ServerInit.java
* @author sodaChen E-mail:asframe@qq.com
* @version 1.0
* <br>Copyright (C)
* <br>This program is protected by copyright laws.
* <br>Program Name:KeepArea
* <br>Date:2020/2/22
*/
package com.asframe.mvc;
import com.asframe.server.IServerContext;
import com.asframe.mvc.cmd.HttpJsonCmdPro... | 22.313725 | 71 | 0.681019 |
b8d5c80f8f5e125c607eb72cfa51f8e57db734df | 3,267 | package com.github.tadukoo.database.mysql.syntax.statement;
/**
* SQL Statement is a class used to create a MySQL Statement
*
* @author Logan Ferree (Tadukoo)
* @version Alpha v.0.3
*/
public class SQLStatement{
/**
* A builder class used to start building a SQL Statement. The following options are available... | 26.136 | 96 | 0.621977 |
60e2c6b2e8b18c0b349e15ce3f1f34fd7dfee512 | 331 | package com.ashik.moviemela;
import com.squareup.moshi.Json;
import java.util.List;
public class VideoWrapper {
@Json(name = "results")
private List<Video> videos;
public List<Video> getVideos() {
return videos;
}
public void setVideos(List<Video> videos) {
this.videos = videos... | 15.761905 | 47 | 0.646526 |
af85b7fb69b1598243aa3b9f584751d7ac1210c9 | 3,430 | package psidev.psi.mi.jami.utils.comparator.participant;
import psidev.psi.mi.jami.model.CausalRelationship;
import psidev.psi.mi.jami.model.CvTerm;
import psidev.psi.mi.jami.model.Entity;
import java.util.Comparator;
/**
* Basic comparator for CausalRelationship
*
* It will first compare the relationType using A... | 35 | 134 | 0.681924 |
1e53b9214e89bb75bc7b644cab2ed449b943ea88 | 1,619 | package org.swtk.common.framework.type;
public enum Alpha {
A("a", 'a'),
B("b", 'b'),
C("c", 'c'),
D("d", 'd'),
E("e", 'e'),
F("f", 'f'),
G("g", 'g'),
H("h", 'h'),
I("i", 'i'),
J("j", 'j'),
K("k", 'k'),
L("l", 'l'),
M("m", 'm'),
N("n", 'n'),
O("o", 'o'),
P("p", 'p'),
Q("q", 'q'),
R(... | 13.056452 | 59 | 0.535516 |
e880afd03cdcb335c977ccc099ff6edd0b34b7ef | 1,592 | package Accounts;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import Database.Database;
public class Konti {
ArrayList<KreditaKonts> kd = new ArrayList<KreditaKonts>();
ArrayList<AlgasKonts> ak = new ArrayList<AlgasKonts>();
ArrayList<NoguldijumaKonts> nk = new ... | 24.492308 | 100 | 0.67902 |
5a9c3d2fe61ace64001d05ff991b4a20616f2b39 | 5,486 | package mooklabs.nausicaamod.inventorytab;
import java.lang.ref.WeakReference;
import java.util.Random;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;
import mooklabs.laputamod.LapMain;
import net.minecraft.entity.Entity;
import net.minecraft.entity.Entity.EnumEntitySize;
import net.minecraft.e... | 28.133333 | 104 | 0.743347 |
e1d6a915acf9e6198a67918d4347fcd502e190c9 | 9,527 | package com.curtisnewbie.dao;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Types;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import com.curtisnewbie.model.Student;
import com.curtisnewbie.util.LoggerProducer;
import com.c... | 36.783784 | 134 | 0.561352 |
5d2f6c26c78f9518b4ffba5b1af35e01fbead26c | 5,215 | package com.hubspot.singularity.runner.base.shared;
import com.google.common.collect.Sets;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.ProcessBuilder.Redirect;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Collec... | 28.653846 | 88 | 0.680537 |
c66b4647f88d4bb81f4ef366b3c208670f5d7685 | 5,136 | /*
* 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 distributed under t... | 38.616541 | 182 | 0.719626 |
11f4675a875f808e536dd5487d06830d9743da67 | 160 | package com.example.javalib;
/**
* log工具类
* @author chenjianyu
*/
public class Logger {
void log(String msg){
System.out.println(msg);
}
} | 12.307692 | 32 | 0.6125 |
e18caf2ce55f530c3e795a8ea40b27fefac88d6c | 295 | package rpc;
public class RpcException extends RuntimeException{
private static final long serialVersionUID = 6238589897120159526L;
public RpcException(){
super();
}
public RpcException(String message){
super(message);
}
public RpcException(Throwable thr){
super(thr);
}
}
| 14.75 | 67 | 0.738983 |
c1b86a6ba59d6ee4c4a9d57cc2841c52f8031d0f | 2,598 | package com.example.xyzreader.ui;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.support.v4.app.ActivityOptionsCompat;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;... | 35.108108 | 98 | 0.700539 |
a481c0652d4da67442e9a1fa9b0de33ed25133d1 | 853 | package org.zerozill.muldijson.parser;
import com.eclipsesource.json.Json;
import com.eclipsesource.json.JsonValue;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
public class MinimalJsonParser extends AbstractJsonParser {
public MinimalJsonParser() {
this.parserType = Parsers.MIN... | 23.694444 | 70 | 0.68347 |
4d59a66b070fc6ed1cbd30c47f3fffeecaeff620 | 562 | package foundation.omni.rpc;
import org.bitcoinj.core.Address;
import org.bitcoinj.core.Sha256Hash;
import org.consensusj.jsonrpc.JsonRpcException;
import java.io.IOException;
/**
* Methods needed to support {@link foundation.omni.rpc.test.OmniTestClientMethods} interface.
*/
public interface OmniClientRawTxSuppor... | 35.125 | 130 | 0.820285 |
7f62b1811c07a93d02391fc24564834d96f737fd | 1,591 | package com.xh.demo.controller;
import java.util.List;
import com.xh.demo.domain.vo.ApiResult;
import lombok.extern.slf4j.Slf4j;
import com.xh.demo.domain.po.Oauth2UserInfo;
import com.xh.demo.service.Oauth2UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.b... | 25.66129 | 75 | 0.683218 |
6c7a3fbbd5c61a47415b63a935f99719c507f745 | 2,132 | /*-
* Copyright (C) 2011, 2017 Oracle and/or its affiliates. All rights reserved.
*
* This file was distributed by Oracle as part of a version of Oracle NoSQL
* Database made available at:
*
* http://www.oracle.com/technetwork/database/database-technologies/nosqldb/downloads/index.html
*
* Please see the LICENS... | 31.352941 | 96 | 0.70122 |
b5948a1f41bc8d4a56d4c482c8fee33215d8d3b9 | 3,005 | package com.didichuxing.daedalus.service.dispatcher;
import com.didichuxing.daedalus.common.ErrorCode;
import com.didichuxing.daedalus.common.enums.ClusterEnum;
import com.didichuxing.daedalus.common.enums.ExecTypeEnum;
import com.didichuxing.daedalus.dal.LogDal;
import com.didichuxing.daedalus.dal.PipelineDal;
import... | 39.025974 | 113 | 0.742762 |
6142e728fcfdf2b3bb60f455cb4ee655c99526d8 | 6,726 | package bo.user.jdbc;
import java.sql.SQLException;
import java.text.MessageFormat;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang3.StringUtils;
import com.github.ddth.commons.utils.DPathUtils;
import com.github.ddth.dao.jdbc.BaseJdbcDao;
import bo.user.IUserDao;
import bo.user.UserBo;
... | 33.63 | 100 | 0.576123 |
61e3b55c6b660a8ecdd285b2ceda0cb2a25833ac | 565 | package dav.mod.objects.blocks.tree;
import java.util.Random;
import net.minecraft.block.trees.Tree;
import net.minecraft.world.gen.feature.BaseTreeFeatureConfig;
import net.minecraft.world.gen.feature.ConfiguredFeature;
public class CustomTree extends Tree{
private ConfiguredFeature<BaseTreeFeatureConfig, ?> Tre... | 25.681818 | 107 | 0.79646 |
8fce23fc31c5b4545bca4f60b1143b89797ca2b1 | 779 | import java.util.HashMap;
import java.util.Map;
public class MarathonUsingHashMap implements Marathon {
@Override
public String findPersonWhoCantFinish(String[] participant, String[] completion) {
Map<String, Integer> map = new HashMap<>();
for (String name :
participant) {
... | 25.129032 | 86 | 0.499358 |
4da818141334cab88c12f227f1a96fab624484a3 | 9,816 | package com.linkedin.util;
import com.linkedin.util.clock.Clock;
import java.util.concurrent.atomic.AtomicLong;
import org.slf4j.Logger;
import org.slf4j.Marker;
/**
* Simple logger wrapper to provide rate limiting of log messages. The rate is controlled by the duration,
* ie how often (in millisecond) the message... | 17.497326 | 106 | 0.620212 |
82f3217ea1651d8fdd9ed9f53a537997cee3c89f | 446 | package org.example.employee_performance_review_api.domain.model.employee.enums;
public enum Team {
MIDMANAGE("Middle Management"),
PUBLICREL("Public Relationships"),
QUALASSUR("Quality Assurance"),
SALESFLOR("Sales Floor"),
SENMANAGE("Senior Management"),
TECHSUPPT("Technical Support");
private final S... | 20.272727 | 80 | 0.715247 |
ccf9ee650a77565bb29d6ccbcad71aea1a30f4a6 | 3,359 | package nl.hinttech.hsleiden.pi.util;
import nl.hinttech.hsleiden.pi.beans.ContentDocument;
import nl.hinttech.hsleiden.pi.beans.ImageGalleryDocument;
import nl.hinttech.hsleiden.pi.beans.Minor;
import nl.hinttech.hsleiden.pi.beans.MinutesDocument;
import org.hippoecm.hst.content.beans.standard.HippoAsset;
import org... | 37.741573 | 97 | 0.736231 |
1de1aa4cbbb1a4eedc13df7c1dff454d239b5f0b | 2,815 | import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class VisualPresentacio {
private JTextArea compressorDescompressorPROP2019TextArea;
private JTextArea escullLaFuncionalitatQueTextArea;
private JButton descomprimirButton;
private JButton sort... | 34.753086 | 81 | 0.588277 |
b46b8e36cc8c9e82dc8f69be35e93a0d49bd4c07 | 1,215 | /*
* Copyright 2002-2016 Jalal Kiswani.
*
* 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... | 31.153846 | 76 | 0.734979 |
e1be541aedef59141ac18d2fcebf42762e77b317 | 1,138 | package app.sctp.targeting.viewmodels;
import android.app.Application;
import androidx.annotation.NonNull;
import java.util.List;
import app.sctp.persistence.BaseViewModel;
import app.sctp.persistence.ObservableDatabaseCall;
import app.sctp.targeting.models.GeoLocation;
import app.sctp.targeting.models.LocationType... | 31.611111 | 100 | 0.792619 |
724a49c31e1499420d570470931e4204ad88076b | 1,176 | /**
*
* Class TransitionFactory$Class.java
*
* Generated by KMFStudio at 09 March 2004 11:42:36
* Visit http://www.cs.ukc.ac.uk/kmf
*
*/
package edoc.ECA.CCA;
public class TransitionFactory$Class
extends edoc.EdocFactory$Class
implements TransitionFactory
{
/** Default factory constructor */
public Tran... | 24.5 | 76 | 0.721939 |
80c36b73c958963e14ec56f53916840c5b199e73 | 2,547 | package org.camunda.platform.runtime.example;
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;
import com.mashape.unirest.http.exceptions.UnirestException;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.impl.client.HttpClients;
import org.camunda.bpm.client... | 40.428571 | 159 | 0.571653 |
59a49cbc8beea5cca9f75f72d1f6faa3ca00c2e5 | 173 | package promise.model.function;
import promise.model.List;
/**
* Created on 7/5/18 by yoctopus.
*/
public interface ReduceFunction<K, T> {
K reduce(List<T> list);
}
| 15.727273 | 39 | 0.687861 |
d5f99030851a03b6b23449f92c86274ded3db3a3 | 711 | package book.chapter05.$5_4_2;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.concurrent.CountDownLatch;
public class Recipes_NoLock {
public static void main(String[] args) throws Exception {
final CountDownLatch down = new CountDownLatch(1);
for(int i = 0; i < 10; i++){
... | 27.346154 | 66 | 0.610408 |
8001c41afa3482f5f25be9bf77411b1eb95490d7 | 2,976 | package com.nitya.accounter.web.client.core.reports;
import java.io.Serializable;
import com.google.gwt.user.client.rpc.IsSerializable;
import com.nitya.accounter.web.client.core.ClientFinanceDate;
public class ReverseChargeListDetail extends BaseReport implements
IsSerializable, Serializable {
/**
*
*/
pr... | 15.663158 | 66 | 0.644489 |
7d9171a2de79976642a16c7090ec23bba7b9d3ad | 516 | package io.seata.samples.integration.storage;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@SpringBootApplication
... | 27.157895 | 78 | 0.829457 |
daabd0694086304bc70075c38951525603a7f1f8 | 9,372 | package bin;
import bin.BattleElements.Attacks.*;
import bin.BattleElements.Enemy;
import bin.BattleElements.Item;
import bin.BattleElements.Weapon;
import bin.Events.*;
import bin.OverWorldElements.WorldMap;
import javax.swing.*;
import java.awt.*;
import java.io.*;
import java.util.ArrayList;
import java.util.Hash... | 43.18894 | 143 | 0.580666 |
2f01b44b678f5b3ee6fcc319bfefaaa0bf8d9dee | 2,918 | /*
* Copyright 2019 Insurance Australia Group Limited
*
* 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 r... | 20.124138 | 132 | 0.683687 |
3d211bdba2746c325bf4e429a4157981cbb663f3 | 834 | /**
*
*/
package hu.hw.cloud.client.fro.config.hotel;
import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;
import hu.hw.cloud.client.fro.browser.hotel.HotelBrowserModule;
import hu.hw.cloud.client.fro.browser.marketgroup.MarketGroupBrowserModule;
import hu.hw.cloud.client.fro.browser.room.RoomBrowserModu... | 27.8 | 101 | 0.793765 |
5ed31c6125ef13f16b139e917b2f97273405ac5d | 2,696 | package br.com.negocieweb.dashboard.operation;
import java.security.Principal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapp... | 43.483871 | 108 | 0.715875 |
f39ae1cffef4573e9bd2d513fb4f2e4ebba3e69a | 1,448 | package io.searchbox.core;
import com.github.tlrx.elasticsearch.test.annotations.ElasticsearchNode;
import com.github.tlrx.elasticsearch.test.support.junit.runners.ElasticsearchRunner;
import io.searchbox.Action;
import io.searchbox.client.JestResult;
import io.searchbox.common.AbstractIntegrationTest;
import org.juni... | 30.166667 | 102 | 0.703039 |
6d2fd8379713939e5ab3e8513a572636965bccff | 13,077 | package com.lorengie.Interface;
/*
* 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.
*/
/**
*
* @author ASUS_
*/
public class IntDeliveryRegister extends javax.swing.JFrame {
/**
... | 52.308 | 174 | 0.644261 |
3f6f7519655462eade2e8aca0926a88e06a3f7bc | 643 |
package com.jfixby.scarabei.red.desktop.test;
import com.jfixby.scarabei.api.log.L;
import com.jfixby.scarabei.api.sys.Sys;
import com.jfixby.scarabei.red.desktop.ScarabeiDesktop;
public class ThreadJoinTest {
public static void main (final String[] args) {
ScarabeiDesktop.deploy();
final Object l... | 17.861111 | 56 | 0.586314 |
e44c515689040e9d5d5fd804dd5b0b42e45cb51d | 1,271 | package io.wizzie.normalizer.base.utils;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
public class ConversionUtilsUnitTest {
@Test
public void conversionFromStringToLongObjectIsCorrectTest() {
String number = "1234567890";
as... | 24.921569 | 76 | 0.703383 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.