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 |
|---|---|---|---|---|---|
84b3a6e2d81aa2f115579ec257ab467faf841a60 | 315 | package net.minecraftforge.accesstransformer.testJar;
@SuppressWarnings("unused")
public class ATTestClass {
private final String finalPrivateField = "EMPTY";
private String privateField = "EMPTY";
private void privateMethod() {
}
public void otherMethod() {
privateMethod();
}
}
| 21 | 53 | 0.698413 |
dfbd28f1821b9b84f852e946ff29468a9180b6a6 | 20,480 | /* Copyright (c) 2015-2016 Boundless and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Distribution License v1.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/org/documents/edl-v10.html
*
* Cont... | 35.679443 | 100 | 0.593018 |
e7841d24177633324f8309e26f582e67409b8daf | 2,655 | /*
* Hibernate, Relational Persistence for Idiomatic Java
*
* License: GNU Lesser General Public License (LGPL), version 2.1 or later.
* See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
package org.hibernate.dialect;
import java.sql.Types;
import org.hibernate.dialec... | 29.5 | 102 | 0.744256 |
a60092d71bcc99a2a25984ada38a7e9f99186c66 | 18,037 | /*
* Copyright © 2020 LambdAurora <aurora42lambda@gmail.com>
*
* This file is part of LambdaControls.
*
* Licensed under the MIT license. For more information,
* see the LICENSE file.
*/
package me.lambdaurora.lambdacontrols.client.gui;
import me.lambdaurora.lambdacontrols.ControlsMode;
import me.lambdaurora.l... | 61.770548 | 255 | 0.67234 |
96ab5e16c7aa2f4d8c60d8aac164f54818a8af99 | 25,437 | package coffeeshop.ejb;
import coffeeshop.entity.Category;
import coffeeshop.entity.Image;
import coffeeshop.entity.Ingredient;
import coffeeshop.entity.IngredientCategory;
import coffeeshop.entity.Nutrition;
import coffeeshop.entity.Product;
import coffeeshop.entity.SeasonSpecial;
import coffeeshop.entity.Store;
impo... | 59.155814 | 262 | 0.702166 |
42645e0a132dacfd7a70aff34bd0439565516611 | 5,630 | /*
* XML Type: SecurityPrincipal
* Namespace: http://schemas.microsoft.com/crm/2006/CoreTypes
* Java type: com.microsoft.schemas.crm._2006.coretypes.SecurityPrincipal
*
* Automatically generated - do not modify.
*/
package com.microsoft.schemas.crm._2006.coretypes.impl;
/**
* An XML SecurityPrincipal(@... | 34.329268 | 168 | 0.581883 |
ba9bfa689845ce8e514edfa9345618d6f7dec5cf | 3,744 | /*
* Copyright 2019-2022 The Polypheny 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 applicable law or... | 34.990654 | 126 | 0.707799 |
b3d26b062d0a5196490664010026a3cddd99b150 | 10,582 | /*
* Copyright 2015 Open Networking Laboratory
*
* 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 la... | 34.695082 | 117 | 0.58127 |
da51b39358de0e42356cf8344e7911e9ff5ac0c2 | 213 | package cn.medemede.leecode.demos;
public interface ThreadPool {
void execute(Runnable job);
void addWorksNum(int num);
void removeWorksNum(int num);
void shutDown();
int getJobSize();
}
| 14.2 | 34 | 0.685446 |
b61d07abc4767c65793db5cede25abf167d39d70 | 1,274 | package com.bah.ode.filter;
import java.util.List;
import com.bah.ode.model.HasKey;
import com.bah.ode.model.OdeFilterable;
import com.bah.ode.model.OdeMetadata;
import com.bah.ode.model.OdeRoadSegment;
public class KeyFilter extends BaseFilter {
private List<OdeRoadSegment> segments;
public KeyFilter() ... | 25.48 | 89 | 0.610675 |
bb861d0390373bf5ba335d833e0764387f670d86 | 648 | package com.wy.netty.chat.model;
public interface ResultCode {
/**
* 成功
*/
int SUCCESS = 0;
/**
* 找不到命令
*/
int NO_INVOKER = 1;
/**
* 参数异常
*/
int AGRUMENT_ERROR = 2;
/**
* 未知异常
*/
int UNKOWN_EXCEPTION = 3;
/**
* 玩家名或密码不能为空
*/
int PLAYERNAME_NULL = 4;
/**
* 玩家名已使用
*/
int PLAYER_... | 9.391304 | 32 | 0.516975 |
02438070666eaf800582c93e7b7f13ba28f5e456 | 1,142 | package org.spring.seek.domain;
import java.util.List;
import org.springframework.data.util.Streamable;
/**
* The result of a {@link SeekRequest}. Contains class holding the records retrieved from the
* database.
*
* @author Elliot Ball
*/
public interface SeekResult<T> {
/**
* Returns the content of the S... | 25.954545 | 95 | 0.686515 |
2e86b40c95c7d13b348431c7ef9c743c0b72d5ed | 371 | package io.github.forezp.netty.rpc.core.monitor.warm;
/**
* Email miles02@163.com
*
* @author fangzhipeng
* create 2018-06-22
**/
public class TimeoutEvent extends Event {
private String messageId;
public String getMessageId() {
return messageId;
}
public void setMessageId(String messag... | 17.666667 | 53 | 0.668464 |
dcf831638d7393a04665a8e9aa4f777da503c566 | 1,083 | package jp.westbrook.android.testappjava;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
public class MainActivity extends AppCompatActivity {
@Override
prot... | 27.075 | 77 | 0.697138 |
7f9d106ec44fd5e8e3a3bd1ac173aa833baf596a | 218 | package com.talmacel.iosif.wearebase.models;
import java.io.Serializable;
/**
* Created by Iosif on 18/03/2018.
*/
public class UrlData implements Serializable {
public String url;
public String website;
} | 18.166667 | 46 | 0.733945 |
c2dca799545acb5921f5b8b59db0f9fdce9ab1c3 | 1,854 | package com.intuit.wasabi.api;
import com.intuit.wasabi.authenticationobjects.UserInfo.Username;
import com.intuit.wasabi.email.EmailLinksList;
import com.intuit.wasabi.email.EmailService;
import com.intuit.wasabi.experimentobjects.Application;
import org.eclipse.jetty.http.HttpStatus;
import org.junit.Before;
import ... | 35.653846 | 139 | 0.730852 |
6b9f494992f809de7f095670fc560658a33efe16 | 2,514 | /*
* Copyright (c) 2015 EMC Corporation
* All Rights Reserved
*/
package com.emc.storageos.volumecontroller.impl.smis;
import java.net.URI;
import java.util.List;
import com.emc.storageos.db.client.model.StorageSystem;
import com.emc.storageos.exceptions.DeviceControllerException;
import com.emc.storageos.volumeco... | 47.433962 | 135 | 0.806683 |
065758cfd6b9915e06c063f66d823f3eb38d0df8 | 4,491 | package org.mockito_inside;
import lombok.SneakyThrows;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.InOrder;
import org.mockito_inside_prod.VeryComplexObject;
import org.mockito_inside_prod.VeryDifficultToCreateService;
import java.util.Objects;
import static org.assertj.... | 27.552147 | 98 | 0.676019 |
43753192607f73594a8cc76e87ca51e197959671 | 2,357 | package baekjoon;
import java.io.*;
import java.util.*;
// @author : blog.naver.com/kerochuu
// @date : 2021. 6. 28.
public class 문명 {
private static class Node {
int x, y;
Node(int x, int y) {
this.x = x;
this.y = y;
}
}
static int N, K, count = 1, T = 0;
static int[][] map;
... | 21.427273 | 78 | 0.523123 |
8219cf645b4a695cfbad2b211609dcedc85de825 | 1,667 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.subsystems;
import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.Ne... | 29.767857 | 126 | 0.762448 |
56f6c33a82057d752ded4f07690619f30de71ef2 | 394 | package org.talend.daikon.annotation;
import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;
/**
* A marker to check if annotation has default value or not
* @see Call#service()
*/
public abstract class DefaultHystrixCommand extends HystrixCommand {
protected DefaultHys... | 24.625 | 68 | 0.766497 |
e9a7c06f2d69e6579c3e1a0db54c05838d5f4c7e | 6,144 | package com.google.mu.util.stream;
import static com.google.mu.util.stream.Cases.TinyContainer.toTinyContainer;
import static com.google.mu.util.stream.Cases.onlyElement;
import static com.google.mu.util.stream.Cases.onlyElements;
import static com.google.mu.util.stream.Cases.cases;
import static com.google.mu.util.st... | 43.574468 | 118 | 0.664388 |
e2bdc6f6f3a65e8977f52329d2dd2b34ab686ef4 | 1,222 | package com.purbon.kafka.streams.config;
import com.purbon.kafka.streams.config.schema.Ssl;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import java.util.HashMap;
import java.util.Map;
... | 35.941176 | 101 | 0.711129 |
b8a794c143f9b32b139c65854597760217068590 | 7,200 | /**
* Copyright 2015-2016 Red Hat, Inc, and individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... | 37.305699 | 108 | 0.591667 |
758ed74ab5bc649b81deb792717e96126ff7ea9f | 2,261 | package domts.level1.core;
import org.w3c.dom.*;
import java.util.*;
import org.junit.jupiter.api.*;
import static org.junit.jupiter.api.Assertions.*;
/**
* Appends a document fragment containing a CDATASection to an attribute.
* @author Curt Arnold
* @see <a href="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/lev... | 33.25 | 178 | 0.710305 |
ccbf7f1a036c0fb2f8d9b0d3cd895c93edc50fad | 1,190 | package liquibase.ext.maxdb.sqlgenerator;
import liquibase.database.Database;
import liquibase.ext.maxdb.database.MaxDBDatabase;
import liquibase.sql.Sql;
import liquibase.sql.UnparsedSql;
import liquibase.sqlgenerator.SqlGeneratorChain;
import liquibase.sqlgenerator.core.DropForeignKeyConstraintGenerator;
import liqu... | 44.074074 | 311 | 0.805882 |
0b9a33584f2f78195e8f5b1a65e39c5f69fab4bc | 3,982 | package com.sts.travlan;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.b... | 27.846154 | 92 | 0.716474 |
3173de49ce9958455efc869fc50a3111b90e54bc | 3,434 | // Copyright 2020 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.components.messages;
import android.animation.Animator;
import org.chromium.base.Callback;
import org.chromium.base.supplier.Suppli... | 42.395062 | 100 | 0.754222 |
cce1b7aa311b95054aa4157dbb0540ce670d28f4 | 4,361 | package com.userfront.domain.tennis;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.userfront.domain.User;
import javax.persistence.*;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Entity
public class Tournoi {
@Id
@GeneratedValue(stra... | 25.804734 | 188 | 0.640908 |
0a2fdb8fbf22a295fdc2592e750fb11b322d38ad | 556 | public class rotateArray {
class Solution {
public void rotate(int[] nums, int k) {
k %= nums.length;
k--;
reverse(nums, 0, nums.length-1);
reverse(nums, 0, k);
reverse(nums, k+1, nums.length-1);
}
void reverse(int[] arr, int i, in... | 22.24 | 47 | 0.352518 |
314e6024666ea17f56519acd6cf0a6b291aeb68a | 5,668 | /*
* 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 ... | 30.804348 | 111 | 0.635321 |
ab508d3fd3a05ae6ea2e4408bd174b47bb8a684c | 251 | package org.jiuwo.ratel.contract;
import java.util.List;
import lombok.Getter;
import lombok.Setter;
/**
* @author Steven Han
*/
@Getter
@Setter
public class TestData {
/**
* 需要测试的接口列表
*/
private List<ApiDetail> testDataList;
} | 13.210526 | 41 | 0.673307 |
886d1e907a2319b1b7315aa8784482fcd89e01aa | 430 | package com.lsh.wms.core.dao.csi;
import com.lsh.wms.core.dao.MyBatisRepository;
import com.lsh.wms.model.csi.CsiSku;
import java.util.List;
import java.util.Map;
@MyBatisRepository
public interface CsiSkuDao {
void insert(CsiSku csiSku);
void update(CsiSku csiSku);
CsiSku getCsiSkuById(Integer id);
Int... | 19.545455 | 59 | 0.755814 |
42b7af8b54e9b2d85a483bdb56f99dd2700b5892 | 317 | package br.puc.pss.INF2125T2.repository;
import java.util.List;
import br.puc.pss.INF2125T2.model.Aluno;
import br.puc.pss.INF2125T2.model.enumeration.TipoDeAluno;
public interface AlunoRepository {
public void saveAluno(Aluno aluno);
public Aluno findAlunoById(int id);
public List<Aluno> getAllAlunos();
} | 19.8125 | 58 | 0.788644 |
429fd0374c54a39b1a8bec03f4eac1c753dce96a | 1,035 | package com.schening.phoenix.security.web.impl;
import com.schening.phoenix.security.po.OrderPO;
import com.schening.phoenix.security.web.LoginResource;
import com.schening.phoenix.security.web.OrderResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Path... | 25.875 | 62 | 0.723671 |
cff044b8490f1966005fe91f533adf3dad461c01 | 5,088 | package ee.ioc.cs.vsle.vclass;
/*-
* #%L
* CoCoViLa
* %%
* Copyright (C) 2003 - 2017 Institute of Cybernetics at Tallinn University of Technology
* %%
* 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 ... | 36.342857 | 90 | 0.680621 |
49e55b8a5b4c652097c306dbd161d940387df197 | 595 | package io.github.froger.mahmoud.ui.activity;
import android.net.Uri;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import com.google.firebase.storage.StorageReference;
/**
* Created by Moustafa on 12/15/2017.
*/
public class Post {
private static... | 27.045455 | 95 | 0.789916 |
dfa72524e65a405cc6c5d853c9c2ab9ce92d77e2 | 30,672 | /*
Derby - Class org.apache.derby.impl.sql.compile.LikeEscapeOperatorNode
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 fi... | 35.013699 | 89 | 0.55699 |
887a19f2b2817f74c1cdb109cb8425d5bc3591e1 | 12,452 | /*
* Copyright 2015 Jim Alexander, Aesthetic Software, Inc. (jhaood@gmail.com)
* Apache Version 2 license: http://www.apache.org/licenses/LICENSE-2.0
*/
package com.aestheticsw.jobkeywords.service.termextractor.repository;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
im... | 38.9125 | 126 | 0.617411 |
7e79c26e389e3d267e6f5cb00588b6e3def2fffe | 528 | package com.kenshine.dwr;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
/**
* @author :kenshine
* @date :Created in 2021/11/26 22:09
* @description:DwrApp
* @modified By:
* @ver... | 25.142857 | 68 | 0.751894 |
1a9803691471d0b9be1e59e3ee59e335e23e2376 | 439 | /* Copyright 2010, 2017, Oracle and/or its affiliates. All rights reserved. */
package demo.controller;
import oracle.adf.controller.v2.context.LifecycleContext;
import oracle.adf.controller.v2.lifecycle.PageController;
public class PageLoadExamplePageController extends PageController {
public PageLoadExamplePage... | 36.583333 | 78 | 0.783599 |
6857cc21d2ef74ee7cf5b03c68ce9f135661f3de | 936 | // By Iacon1
// Created 09/12/2021
//
package GameEngine;
public class Point2D implements Cloneable
{
public int x;
public int y;
public Point2D(int x, int y)
{
this.x = x;
this.y = y;
}
public Point2D add(Point2D delta)
{
return new Point2D(this.x + delta.x, this.y + delta.y);
}
public Point2D mul... | 16.714286 | 57 | 0.637821 |
7dd2213d8af4aabff42ff730dc3515bb4d249f50 | 6,545 | package lexxzone.fightx.models;
/**
* Created by Alex Dvoryaninov on 10.02.18
*/
public class Fighter {
private String name;
private String fighterClass; // unused
private int power; // unused
private int dexterity; // unused
private int strength; // unused
private int hp;
private int... | 27.733051 | 116 | 0.560581 |
1b3e40c3b786d92b77e697a2c47bc02e90bdb1c6 | 2,583 | package com.wangsong.system.controller;
import java.util.HashMap;
import java.util.Map;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.Reques... | 26.357143 | 80 | 0.773906 |
8d5ce13ca646d8ea7cdf5ca93e38309084482f54 | 1,723 | /*******************************************************************************
*
* Copyright FUJITSU LIMITED 2017
*
* Author: Mani Afschar ... | 38.288889 | 83 | 0.42484 |
c82dddc5a2c4d877a9f1d9d256184c5938c40885 | 4,306 | package io.cucumber.junit.platform.engine;
import io.cucumber.core.plugin.Options;
import io.cucumber.core.snippets.SnippetType;
import org.junit.jupiter.api.Test;
import java.net.URI;
import static java.util.Arrays.asList;
import static java.util.Collections.singletonList;
import static java.util.stream.Collectors.... | 35.586777 | 157 | 0.677427 |
52741fff2b09d47eb0e831c55dd4cb66a0a2ecad | 1,021 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: metadata.proto
package com.samsung.sds.brightics.common.network.proto.metadata;
public interface ResultDataMessageOrBuilder extends
// @@protoc_insertion_point(interface_extends:com.samsung.sds.brightics.common.network.proto.metadata.ResultDat... | 31.90625 | 124 | 0.719882 |
f113002ca1855a36ec4804925bfa1f04279f3186 | 7,431 | package com.homeaway.dto;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationFeature;
imp... | 40.82967 | 139 | 0.61701 |
eaeff234520c7eaca238640fee83cacd97a3233a | 477 | package me.yoerger.geoff.edu.progClass.mod6;
import java.util.HashMap;
import java.util.Map;
public final class MovieUserManager {
private static Map<String, MovieUser> Usermap;
public MovieUserManager() {
Usermap = new HashMap<>();
}
public boolean newUser(String name, MovieUser user) {
if (Usermap.conta... | 19.08 | 54 | 0.716981 |
7e9296d6121285fe169f626d44286ab79c97f96f | 4,553 | package gui.Manager;
import javax.swing.*;
import bankATM.*;
import bankATM.Currency;
import database.*;
import manager.*;
import transaction.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.SQLException;
import java.sql.Date;
import java.util.*;
public class ManageTransactions {
p... | 27.427711 | 85 | 0.669009 |
c9233c197970ecc7c7a20cf00a6b3532b3d8d7b8 | 809 | package generics.E02;
class Holder4<T>{
private T a,b,c;
public Holder4(T a,T b,T c){
this.a = a;
this.b = b;
this.c = c;
}
public void setA(T a){ this.a = a;}
public void setB(T b){ this.b = b;}
public void setC(T c){ this.c = c;}
public T getA(){ return a;}
public T getB(){ return b;}
public T getC()... | 14.981481 | 56 | 0.506799 |
07279aa9d19acdbd4df985e4799cc029714bd19e | 2,670 | /*
* Copyright (C) 2015-2019 Fabrice Bouyé
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
package api.web.gw2.mapping.v2.tokeninfo;
import api.web.gw2.mapping.core.EnumValueFactory;
import java.util.stream.IntS... | 28.404255 | 128 | 0.584644 |
a2aa94a0583a4ad07d8a04842feb088897c695ff | 2,553 | package io.vertx.up.media.parse;
import io.vertx.core.Vertx;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.eventbus.EventBus;
import io.vertx.core.http.HttpServerRequest;
import io.vertx.core.http.HttpServerResponse;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;
import io.vertx.... | 37.544118 | 94 | 0.61653 |
5eaaf73a2a4e9b26a102778a6cfc697f0384e5d7 | 2,371 | /*
* Copyright 2001-2013 Aspose Pty Ltd. All Rights Reserved.
*
* This file is part of Aspose.Slides. The source code in this file
* is only intended as a supplement to the documentation, and is provided
* "as is", without warranty of any kind, either expressed or implied.
*/
package com.aspose.tasks.examples.Pro... | 33.394366 | 112 | 0.688739 |
6ae73b1651fd14332454207121e81bec89bd0d01 | 1,568 | package com.ehensin.pt;
import java.io.Serializable;
import java.util.List;
import com.ehensin.pt.config.Task;
/**
* 发送给压力发生器generator运行时的参数
* */
public class RuntimeParameter implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
/*运行时间周期,分为单位*/
int span;
/*多少时间定期汇总运行时数... | 18.666667 | 55 | 0.670281 |
dc44c2de2895d11bddcc25a9d4a837222080dd1a | 1,397 | package com.jungdam.album.application;
import com.jungdam.album.domain.Album;
import com.jungdam.album.infrastructure.AlbumRepository;
import com.jungdam.error.dto.ErrorMessage;
import com.jungdam.error.exception.common.NotExistException;
import com.jungdam.member.domain.Member;
import com.jungdam.participant.domain.P... | 31.75 | 95 | 0.758769 |
7e44139b38502efccf01d09131465446bb494b4b | 641 | package com.skynet.infrastructure;
import org.springframework.util.ResourceUtils;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Collections;
import java.util.List;
public class FileSensitiveWordsProvider implements SensitiveWordsProvider {
private String filePath;... | 24.653846 | 75 | 0.730109 |
18ab97fcb6022894af0dd3d49a8c96b75155a703 | 1,306 | package com.stevekung.indicatia.utils.forge;
import com.stevekung.indicatia.config.IndicatiaConfig;
public class PlatformConfigImpl
{
public static boolean getOldArmorRender()
{
return IndicatiaConfig.GENERAL.enableOldArmorRender.get();
}
public static boolean getBlockHitAnimation()
{
... | 25.607843 | 79 | 0.715161 |
b3e55da435e32b9c83fe39eb3224af8610c2f069 | 2,224 | package com.commands.sub;
import com.SMPFactions;
import com.factions.Faction;
import com.factions.FactionManager;
import com.players.FactionMember;
import com.players.FactionRole;
import org.bukkit.OfflinePlayer;
import org.bukkit.entity.Player;
public class DemoteFaction {
public static void runSubCommand(Playe... | 44.48 | 125 | 0.531475 |
4f059f301dc635bb6029884e8af3dc17d717929b | 4,202 | package com.movietrailer.core.services.impl;
import com.movietrailer.core.models.ImdbDataModel;
import com.movietrailer.core.models.MovieData;
import com.movietrailer.core.restclient.RestApiClient;
import com.movietrailer.core.restclient.RestInterceptor;
import com.movietrailer.core.services.EHCacheService;
import com... | 35.310924 | 110 | 0.665873 |
67a39e1f557343bf355ff1bab99de47ab89bc702 | 5,086 | package com.raoulvdberge.refinedstorage.apiimpl.network.node;
import com.raoulvdberge.refinedstorage.RS;
import com.raoulvdberge.refinedstorage.RSItems;
import com.raoulvdberge.refinedstorage.api.network.INetwork;
import com.raoulvdberge.refinedstorage.api.network.security.ISecurityCard;
import com.raoulvdberge.refine... | 29.398844 | 151 | 0.668109 |
a3121ffdb0da70c53fe325338760af4359c8ea69 | 5,745 | /*
* Copyright 2012 Splunk, 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... | 28.869347 | 81 | 0.615492 |
3b5755618aa73f6f920c8826b164ece081621b82 | 2,202 | package com.vladsch.flexmark.ext.attributes;
import com.vladsch.flexmark.util.misc.CharPredicate;
import org.jetbrains.annotations.NotNull;
import static com.vladsch.flexmark.util.sequence.SequenceUtils.containsAny;
public enum AttributeValueQuotes {
AS_IS,
NO_QUOTES_SINGLE_PREFERRED,
NO_QUOTES_DOUBLE_PR... | 33.876923 | 103 | 0.540418 |
0f18cd82c3d2ee55045a5f25d538a47482c72aef | 2,974 | /**
* Copyright © 2008-2019, Province of British Columbia
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 34.988235 | 91 | 0.761264 |
8a0a99e86cbfdc15830352b62198e330618e5ad2 | 70,237 | package gregtech;
import forestry.api.recipes.ICentrifugeRecipe;
import forestry.api.recipes.ISqueezerRecipe;
import forestry.api.recipes.RecipeManagers;
import gregtech.api.GregTech_API;
import gregtech.api.enchants.Enchantment_EnderDamage;
import gregtech.api.enchants.Enchantment_Radioactivity;
import gregte... | 63.562896 | 856 | 0.655452 |
11bdf84de3190c314ce3672d7af39063349bdd2e | 508 | package com.askjeffreyliu.teslaapi.room.dao;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import com.askjeffreyliu.teslaapi.model.Vehicle;
import java.util.List;
@Dao
public interface VehicleDao {
@Insert
void insert(Vehicle roomVe... | 19.538462 | 66 | 0.753937 |
5a8dffea2558d91c7d120c64a58f30dfb75bd81b | 2,935 | /*
* 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 com.ibm.drl.hbcp.api;
/**
* This class encodes the format of the JSON object returned via the REST APIs
* for information ex... | 27.175926 | 124 | 0.536627 |
eda7a9885f6ec14f981ab82e25abc9cc4ffa1fa9 | 2,740 | /*
* Copyright 2012, Moshe Waisberg
*
* 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... | 28.541667 | 114 | 0.645985 |
ae9b010ccefaac0357b81aa0f75453dde76d6356 | 4,429 | package com.lingnan.convertor;
import com.lingnan.kv.BaseDimension;
import com.lingnan.kv.CommDimension;
import com.lingnan.kv.ContactDimension;
import com.lingnan.kv.DateDimension;
import com.lingnan.util.JDBCUtil;
import com.lingnan.util.LRUCache;
import java.sql.Connection;
import java.sql.PreparedStatement;
impor... | 36.908333 | 116 | 0.667419 |
cee25b60dd7359a06f60d80de93432292e5091c5 | 4,076 | package com.thebluealliance.androidclient.notifications;
import android.app.Notification;
import android.content.Context;
import android.content.Intent;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import com.thebluealliance.androidclient.DefaultTestRunner;
import com.thebluealliance.... | 39.960784 | 125 | 0.766928 |
30f17a71d83654c0bf8e214d51491441853fbae8 | 1,612 | /*
* Copyright 2010 bufferings[at]gmail.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 applica... | 31.607843 | 73 | 0.717742 |
1db6a5a24498d3fdbe7c8f850085a7dabda96eb4 | 299 | package uk.nhs.nhsbsa.research.userresearchapp.forms;
@SuppressWarnings("serial")
public class ScreeningPurchasedDurationPPC extends AbstractForm {
private int duration;
public int getDuration() {
return duration;
}
public void setDuration(int duration) {
this.duration = duration;
}
}
| 18.6875 | 65 | 0.772575 |
036ba48fc778c5058411c76f29454e21cdc9383e | 1,887 | package perobobbot.oauth.tools;
import lombok.NonNull;
import perobobbot.data.service.BotService;
import perobobbot.data.service.ClientService;
import perobobbot.data.service.OAuthService;
import perobobbot.lang.Platform;
import perobobbot.oauth.ApiToken;
import perobobbot.oauth.OAuthRequirement;
import perobobbot.oau... | 28.590909 | 95 | 0.686804 |
f8f9137a713de70f0b9a34a9ac50e4a30f7b4f4e | 30,150 | package com.glyart.asql.common.database;
import com.glyart.asql.common.context.ASQLContext;
import com.glyart.asql.common.defaults.DefaultBatchSetter;
import com.glyart.asql.common.defaults.DefaultCreator;
import com.glyart.asql.common.defaults.DefaultExtractor;
import com.glyart.asql.common.defaults.DefaultSetter;
im... | 50.25 | 198 | 0.676119 |
968aebab92b8fb1e26f60f34681b8fb00f7033fe | 325 | package br.com.fiap.fiapBlood.service;
import br.com.fiap.fiapBlood.dto.geographic.GeographicPointsDTO;
public interface GeoLocationService {
GeographicPointsDTO getGeographicCoordinates(String street, String district, String city);
Double calculateDistance(double lat1, double lon1, double lat2, double lon2)... | 29.545455 | 94 | 0.809231 |
295ecd3c814460035cc3894fa221619dd3de6c03 | 363 | package androidx.core.os;
import android.content.res.Configuration;
import androidx.annotation.NonNull;
public final class ConfigurationCompat {
private ConfigurationCompat() {
}
@NonNull
public static LocaleListCompat getLocales(@NonNull Configuration configuration) {
return LocaleListCompat... | 24.2 | 85 | 0.760331 |
f7d3699bbfc3b1ea9750aedd63e8a5096aaec451 | 1,916 | /*
* Copyright 2016 qyh.me
*
* 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... | 18.970297 | 75 | 0.719207 |
b186386dc767a48083c48e45faf483fc98ce28f8 | 933 | package mayfly.sys.module.sys.controller.vo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import mayfly.core.util.TreeUtils;
import java.util.List;
import java.util.Objects;
/**
* @author meilin.huang
* @version 1.0
* @date 2019-07-27 21:55
*/
@Getter
@Setter
@ToString
public class Resourc... | 16.368421 | 65 | 0.660236 |
acff5b8b4a19b1b56597763d10b77f0187160773 | 881 | package cla.edg.project.yourong.events;
import cla.edg.eventscript.EventScript;
public class YourongProjectBook extends BaseYourongEventScript{
private static final EventScript SCRIPT = $("yourong project book")
/**
* 开始: 由某个用户提交一个项目申请
*/
.on_event("confirm project book").with("yourong book")
.comm... | 27.53125 | 89 | 0.707151 |
0a3ad3cbbbfb76ae8c3d1a5e4b041f84a56187af | 83 | @NonNullApi
package dev.morphia.experimental;
import com.mongodb.lang.NonNullApi;
| 16.6 | 35 | 0.831325 |
4f5da61d96c0978ef9d78feb3387bb29743ad822 | 4,711 | package com.letv.mobile.core.time;
import android.support.v4.media.TransportMediator;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
@Deprecated
public class SntpClient {
private static final int NTP_MODE_CLIENT = 3;
private static final int NTP_PACKET_SIZE = 48;
... | 35.689394 | 125 | 0.570367 |
332433069c51492074454dad5c00812624a23681 | 899 | package com.hibo.cms.quartz.util.tigger;
import java.util.HashMap;
import java.util.Map;
/**
* <p>标题:</p>
* <p>功能: </p>
* <p>版权: Copyright © 2015 HIBO</p>
* <p>公司: 北京瀚铂科技有限公司</p>
* <p>创建日期:2015年9月7日 下午1:41:36</p>
* <p>类全名:com.hibo.cms.quartz.util.tigger.TiggerStaticValue</p>
* 作者:周雷
* 初审:
* 复审:
*/
public c... | 23.657895 | 79 | 0.661846 |
30707d68ec67567e78d3f1a0129d65b5006f9e02 | 7,483 | package info.loenwind.mves.api.simple;
import info.loenwind.mves.MvesMod;
import info.loenwind.mves.api.IEnergyAcceptor;
import info.loenwind.mves.api.IEnergyOffer;
import info.loenwind.mves.api.IEnergyStack;
import info.loenwind.mves.api.IEnergySupplier;
import info.loenwind.mves.api.IEnergyTransporter;
import java.... | 36.149758 | 129 | 0.682213 |
7d53af63f68616bd7b59ce27d3ddddbfc9042654 | 3,421 | /*
* Copyright (C) 2019 StarChart-Labs@github.com Authors
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
package org.starchartlabs.flare.plugins.test.model;
import java.util.Optional;
import org.starchartlabs.flare.plugins.model.Creden... | 34.908163 | 100 | 0.718796 |
a41b7392582eed53a4ffd8094bbcc799ec7c5a91 | 4,366 | /*
* 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 ... | 37.316239 | 112 | 0.65552 |
3d5436ece55ce8de5f86dd477409871b5525cb19 | 4,614 | package field;
import com.trident.crypto.field.exception.MultiplicativeGroupException;
import com.trident.crypto.field.operator.FiniteFieldElementArithmetics;
import java.math.BigInteger;
import java.util.Random;
import junit.framework.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Te... | 38.773109 | 160 | 0.669484 |
2e16abcaaa276e4b9d31b23d2d388442976d0788 | 1,798 | package com.mastercard.fld.api.manage;
import java.io.IOException;
import com.mastercard.fld.api.fld.ApiCallback;
import com.mastercard.fld.api.fld.ApiException;
import com.mastercard.fld.api.fld.api.ConfirmedFraudManagementApi;
import com.mastercard.fld.api.fld.model.FraudDeleteAndConfirm;
import com.mastercard.fld.... | 33.924528 | 100 | 0.784205 |
d6321b53cfe1fadd096aaef68776c06b34946019 | 27,895 | /*
*
* Copyright 2018 Robert Winkler
*
* 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 la... | 62.126949 | 231 | 0.687865 |
2b8de85d94701f97249c5467b0a4e32585a7642a | 30,771 | /**
* Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
package com.suboat.contrib.rpc.wallet;
@SuppressWarnings({ "cast", "rawtypes", "serial", "unchecked", "unused" })
/**
* 特定参数: 解冻一笔流水 有效条件: 必填项必填
*/
public class ArgUnfreeze imple... | 27.49866 | 151 | 0.693835 |
e780ee78c50ce4c317cbbfb8965cccaecd0cec68 | 4,061 | package com.powerdata.openpa.impl;
/*
* Copyright (c) 2016, PowerData Corporation, Incremental Systems Corporation
* All rights reserved.
* Licensed under the BSD-3 Clause License.
* See full license at https://powerdata.github.io/openpa/LICENSE.md
*/
import com.powerdata.openpa.Bus;
import com.powerdata.openpa.... | 21.041451 | 97 | 0.719773 |
ea61673291a7fc499f5075171b903856ac163341 | 5,707 | /*
* The MIT License (MIT)
*
* Copyright (c) 2014 University of Manchester
*
* 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 right... | 22.380392 | 80 | 0.705274 |
2471889fe14e1ac2d1a8db6913d90ce86ed2e371 | 996 | package io.reactivex.internal.disposables;
import io.reactivex.disposables.Disposable;
import io.reactivex.exceptions.Exceptions;
import io.reactivex.functions.Cancellable;
import io.reactivex.plugins.RxJavaPlugins;
import java.util.concurrent.atomic.AtomicReference;
public final class CancellableDisposable extends A... | 29.294118 | 101 | 0.623494 |
22b04c4c554c5dd7d60567aa68f7bc1ec1cbcb1b | 6,796 | package com.soaer.mqtt;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import java.security.Unrecover... | 30.890909 | 115 | 0.629488 |
51b26ecffa1b944e89e262dc52f8807bb18b4eb8 | 1,402 | package de.unistuttgart.ims.coref.annotator.action;
import java.awt.event.ActionEvent;
import java.io.File;
import javax.swing.Action;
import javax.swing.SwingUtilities;
import org.eclipse.collections.api.list.ImmutableList;
import org.eclipse.collections.impl.factory.Lists;
import org.kordamp.ikonli.materialdesign.... | 29.208333 | 108 | 0.772468 |
9bef65d2e515e183226ece64e23019155e310ebc | 1,010 | // Generated by xsd compiler for android/java
// DO NOT CHANGE!
package com.ebay.trading.api;
import java.io.Serializable;
import com.leansoft.nano.annotation.*;
import java.util.List;
import java.util.Date;
/**
*
* Defines the options available for an automated listing rule that
* keeps a minimum number of items... | 22.444444 | 79 | 0.744554 |
0a0cf21d67046b19ba5fbdc34c6c6dfbfce2cd76 | 1,512 | package com.github.seanyinx.testbed.spring;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.Optional;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import o... | 27 | 66 | 0.76455 |
06b628ec1d59e2eb22ee1b7a51a418370e0e1e22 | 6,192 | /**
* @author alexanderweiss
* @date 19.11.2015
*/
package com.github.alexanderwe.bananaj.model.report;
import java.time.LocalDateTime;
import org.json.JSONObject;
import com.github.alexanderwe.bananaj.model.MailchimpObject;
import com.github.alexanderwe.bananaj.model.campaign.Bounce;
import com.github.alexanderw... | 26.016807 | 113 | 0.707526 |
cd407796b4f927a2f07f1fc67f59c5be8c7a1482 | 4,150 | package jetbrains.mps.lang.quotation.scripts;
/*Generated by MPS */
import jetbrains.mps.lang.script.runtime.BaseMigrationScript;
import jetbrains.mps.lang.script.runtime.AbstractMigrationRefactoring;
import org.jetbrains.mps.openapi.language.SAbstractConcept;
import org.jetbrains.mps.openapi.model.SNode;
import jetb... | 56.849315 | 325 | 0.801446 |
dc5c14e502237d79b953c6844a9cb8f83afc2ee7 | 164 | package software.amazon.athena.workgroup;
class Configuration extends BaseConfiguration {
public Configuration() {
super("aws-athena-workgroup.json");
}
}
| 20.5 | 47 | 0.756098 |
9608b1ad5428a26aa03916775474bb58aafff586 | 1,330 | package test.modules.main;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.TimeUnit;
public class FutureTest {
public static void main(String[] args) {
completableTestBasic();
completableTestApply();
}
private static void completableTestApply() {
CompletableFuture<Str... | 24.181818 | 79 | 0.621053 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.