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 |
|---|---|---|---|---|---|
ef71068ea10835127557d46f3a7cc2b66b35ce4a | 165 | package com.minimal.common.sdk.sequence;
/**
* ID生成器
* @author wubin
*
*/
public interface IdGenerator {
/**
* 获取新的ID
* @return ID
*/
long nextId();
}
| 10.3125 | 40 | 0.606061 |
ac4d6955c5b8595ac8384ae260a728b1ec648d08 | 1,681 | package date;
import java.time.LocalDate;
import java.time.temporal.TemporalAdjusters;
/**
* Created by Junior on 17/06/2020.
*/
public class LocalDateExample {
public static void main(String[] args ){
LocalDate localDate = LocalDate.now();
System.out.println(localDate);
System.out.pr... | 36.543478 | 100 | 0.66508 |
616890571a33d54bcc9742fb7bf7e2ac62d67b28 | 3,948 | /*
* Copyright (c) 2010-2016 Dmytro Pishchukhin (http://knowhowlab.org)
*
* 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
*
* Unl... | 33.457627 | 93 | 0.679331 |
fcd0f66e1f068cd82446b6de4653bf48f27305db | 1,079 | /*
* Copyright (c) 2018. paascloud.net All Rights Reserved.
* 项目名称:paascloud快速搭建企业级分布式微服务平台
* 类名称:OrderItemVo.java
* 创建人:刘兆明
* 联系方式:paascloud.net@gmail.com
* 开源地址: https://github.com/paascloud
* 博客地址: http://blog.paascloud.net
* 项目官网: http://paascloud.net
*/
package com.jemmy.apis.omc.model.vo;
import com.fa... | 22.957447 | 68 | 0.76089 |
885ea4e44747c3592795dcd6041e1325a1ea2aae | 656 | package com.item.ag;
import junit.framework.TestCase;
import java.lang.ref.PhantomReference;
import java.lang.ref.ReferenceQueue;
// https://stackoverflow.com/questions/11397522/when-to-use-weak-and-phantom-references-in-java
public class ConceptPhantomReference extends TestCase {
public static void testPhantomR... | 26.24 | 99 | 0.742378 |
a014e981867cf6b1aaaf1730fcfe3c0cc35c5048 | 345 | package edu.vcu.cyber.dashboard.util;
import org.graphstream.graph.Graph;
import java.io.File;
public class GraphFileUtil
{
/**
* Saves a graph, including all attributes and positions to
* the specified file to be used again later
*/
public static void saveGraph(Graph graph, File outputFile)
{
//TODO: ne... | 17.25 | 60 | 0.736232 |
97b2a95ea7b00d75a46ec7929a5637026a9ed9c8 | 1,334 | package com.liurui.rabbitmq.message.producer;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.util.Assert;
import java.util.Map;
import java.util.Objects;
/**
* @author liu-rui
* @date 2019-08-27 16:48
* @description
*/
@Slf4j
public class MessageProducerImpl i... | 28.382979 | 76 | 0.663418 |
4ff49497149c0f28395f7b331fbdfa0ffbc2550c | 5,042 | package com.oc.hawk.container.runtime.port.driven.facade;
import com.google.common.collect.Maps;
import com.oc.hawk.container.api.command.CreateRuntimeInfoSpecCommand;
import com.oc.hawk.container.api.command.StopRuntimeInfoCommand;
import com.oc.hawk.container.api.event.ContainerDomainEventType;
import com.oc.hawk.co... | 44.619469 | 159 | 0.767751 |
d88c9e261f8ee37e49961087ccdc3312bb70922d | 5,664 | package core;
import SportPlanner.*;
import java.util.Date;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
public class TrainingDay {
private String date; // dd.mm.yyyy
private FitnessTraining fitnessTraining;
private DistanceTraining distanceTraining;
public TrainingDay() {
}
... | 32.930233 | 112 | 0.650071 |
67580f1df4cd591e84419e188ae30eceda79db03 | 982 | package com.zoromatic.timetable;
import java.util.Locale;
import android.app.Application;
import android.content.res.Resources;
import android.util.DisplayMetrics;
public class ZoromaticTimetableApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
String lan... | 28.882353 | 72 | 0.639511 |
5437d794c6ba9736337731fc12e15c04272d8045 | 11,545 | package com.xueyi.common.core.utils;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.xueyi.common.core.constant.basic.BaseConstants;
import com.xueyi.common.core.exception.base.BaseException;
import java.io.Serializable;
import java.lang... | 34.879154 | 175 | 0.537375 |
6b137180628c8505eba209dd7d02de28d7f2e7ed | 470 | package com.jzy.model.dto.search;
import lombok.Data;
import java.io.Serializable;
/**
* @author JinZhiyun
* @ClassName SearchCondition
* @Description 查询的的条件
* @Date 2019/7/25 9:12
* @Version 1.0
**/
@Data
public class SearchCondition implements Serializable {
private static final long serialVersionUID = 8... | 16.785714 | 70 | 0.670213 |
014fc9e5a34de7f9f0f8ff6c292b81dbe4a55695 | 216 | package cn.bootx.goods.mq;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
/**
* 消息发送器
* @author xxm
* @date 2021/4/22
*/
@Slf4j
@RequiredArgsConstructor
public class MessageSender {
}
| 14.4 | 38 | 0.74537 |
3e19b3472ac7fee8a8bd65f27f97cf581f416f04 | 1,995 | package at.ac.tuwien.big.xmlintelledit.intelledit.test;
import org.eclipse.emf.ecore.EClassifier;
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.emf.mwe.utils.StandaloneSetup;
import org.eclipse.ocl.ParserException;
import org.eclipse.ocl.ecore.OCL;
import ... | 33.813559 | 105 | 0.803008 |
9157d601432bb3e3d08cc18475722acda3deb48d | 2,505 | package com.server.Puzzle.domain.user.service.Impl;
import com.server.Puzzle.domain.user.domain.User;
import com.server.Puzzle.domain.user.domain.UserLanguage;
import com.server.Puzzle.domain.user.dto.UserUpdateDto;
import com.server.Puzzle.domain.user.repository.UserLanguageRepository;
import com.server.Puzzle.domain... | 33.851351 | 75 | 0.707784 |
53e9bcfc4d31c2cfaed0ff532af9a6fe6357ca90 | 2,480 | /**
* Copyright (c) 2020, Alexander Kapralov
*/
package ru.capralow.dt.coverage.internal.ui.annotation;
import org.eclipse.jface.text.Position;
import org.eclipse.jface.text.source.Annotation;
import org.eclipse.osgi.util.NLS;
import org.jacoco.core.analysis.ICounter;
import org.jacoco.core.analysis.ILine;
import r... | 29.879518 | 120 | 0.672581 |
5667018b6ecda7ff312e5d73aa775d3384493e69 | 141 | package com.chess.game;
public enum PieceStatus {
INVALID_MOVE,
ONE_MOVE,
TAKES,
CASTLING,
PROMOTION,
EN_PASSANT,
}
| 12.818182 | 25 | 0.652482 |
58cab0b5d8cf541917af46b8fe3354e584791309 | 4,605 | package cn.krait.nabo.behavior;
import android.animation.Animator;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.view.animation.AccelerateDecelerateInterpolator;
import androidx.annotation.NonNull;
import androidx.coordinatorlayout.widget.CoordinatorLayout;... | 36.547619 | 215 | 0.633008 |
0d2e56cec286bb64336e59e46e8585c8a3097751 | 1,045 | package me.dablakbandit.dabcore.utils;
import java.util.concurrent.atomic.AtomicBoolean;
public class MemoryUtil {
private static AtomicBoolean memory = new AtomicBoolean(false);
public static boolean isMemoryFree(){
return !memory.get();
}
public static boolean isMemoryLimited(... | 26.125 | 67 | 0.607656 |
5ddf349401d6f1e9d2d5c98cf04b009e65a9afae | 2,174 | package net.bolbat.kit.config;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import org.configureme.annotations.DontConfigure;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* {@link Configuration} abstract functionality.
*
* @author Alexandr B... | 22.183673 | 114 | 0.698712 |
eec55a7ccaae2e76ac2fe97c63ae20f7d67af4b8 | 797 | package com.bnp.paribas.app.model;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@Builder
@EqualsAndHashCode
@Data
@Embeddable
... | 20.435897 | 68 | 0.760351 |
113fc13c5ad658dd6e2c1ca0ded7833076cbcd4d | 13,756 | /*
* Copyright 2015-2016 The OpenDCT Authors. 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... | 47.930314 | 163 | 0.643646 |
32633fd3f862f045c5db5afc575ff274a6bcdcb6 | 2,247 | package com.seek.hrm.api;
import android.content.Intent;
import android.util.Log;
import android.widget.Toast;
import com.seek.hrm.Activities.LoginActivity;
import com.seek.hrm.Activities.MainActivity;
import com.seek.hrm.Network.IDataResultCallback;
import com.seek.hrm.Network.IResultCallback;
import com.seek.hrm.Ne... | 34.569231 | 111 | 0.660881 |
eb07b5faab4d41c9a9651021932d86b1120315af | 3,817 | /**
* Copyright (c) Orange. All Rights Reserved.
* <p>
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.orange.lo.sample.sigfox2lo;
import static com.orange.lo.sdk.rest.devicemanagement.Inventory.XCONNECTOR_DEVICES_PREFIX;
... | 39.760417 | 161 | 0.751375 |
f63865446a009da44d7073c9a53e145f9e75b939 | 3,077 | //
// This file was generated by the Eclipse Implementation of JAXB, v3.0.1
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2021.07.26 at 12:23:07 PM YEKT
//
package com.sankdev.edbind;
import jakarta.xml.bind.... | 24.228346 | 106 | 0.59441 |
8ff949baaa11e767f4890d085b91cfd8e637dc38 | 19,095 | /*! ******************************************************************************
*
* Pentaho Data Integration
*
* Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com
*
*******************************************************************************
*
* Licensed under the Apache License, Version... | 39.290123 | 115 | 0.692694 |
b6ec64a6754e21592384efd17492871e116fea95 | 6,019 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.spaceship;
import com.jme3.app.SimpleApplication;
import com.jme3.asset.AssetManager;
import com.jme3.export.InputCapsule;
import com.jme3.export.JmeExporter;
import com.jme3.export.JmeImporter;
import com.j... | 32.711957 | 132 | 0.604585 |
3cb32fe9e2e87d600681573c36c8cef607505e9a | 10,378 | package org.hswebframework.iot.interaction.vertx.client;
import com.alibaba.fastjson.JSON;
import io.vertx.core.Vertx;
import io.vertx.core.eventbus.MessageConsumer;
import io.vertx.core.eventbus.ReplyException;
import io.vertx.core.eventbus.ReplyFailure;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
i... | 39.015038 | 131 | 0.533725 |
7efb1c4888e6a5a61ff64df4f280615767118fdf | 1,323 | package ie.gmit.sw.ds.server;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* This class contains methods to return a List of files in a folder.
* @author RnDMizeD
* @version 1.0
*/
public class FolderReader {
private String path;
/**
* Construct a FolderReader for gi... | 22.05 | 70 | 0.619048 |
993908890f6f8114073f8f1c9aa6402b1869f199 | 793 | package com.iniesta.ditoolfx.core;
import io.micronaut.context.BeanContext;
import javafx.fxml.FXMLLoader;
import javax.inject.Singleton;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.net.URL;
@Singleton
public class LoaderFXMLFactory {
private final BeanCon... | 22.027778 | 60 | 0.740227 |
fd54769584e01c4d5356bd3d014baa6c8e60fdc7 | 1,266 | /*
Project Termux UX
Package java.com.pomaretta.termux.Menu
Version 1.0
Author Carlos Pomares
Date 2021-03-18
DESCRIPTION
*/
package com.github.pomaretta.termux.Menu;
import java.io.BufferedReader;
import com.github.pomaretta.termux.Command.DefaultCom... | 22.607143 | 134 | 0.64218 |
db9f99681886fc4c63bd078649943c237cd189c5 | 1,126 | /*
* Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.glass.ui.gtk;
import com.sun.glass.ui.Clipboard;
import com.sun.glass.ui.SystemClipboar... | 16.80597 | 96 | 0.666963 |
046237aa23e8c16d735ae88a1e99a92be176b3cf | 3,115 | package utils;
public class MessageTools {
public static byte[] copyOf(byte[] message) {
if (message==null) return null;
byte[] copy = new byte[message.length];
for (int i = 0; i < message.length; i++) {
copy[i] = message[i];
}
return copy;
}
public static boolean equal(byte[] a, byte[] b) {
... | 28.577982 | 154 | 0.570144 |
d2010e8eb121a2621933a38a68780d17c0f48b4e | 1,669 | package netty.tomcat.servlet;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.HttpRequest;
import io.netty.handler.codec.http.QueryStringDecoder;
import io.netty.util.CharsetUtil;
import java.net.URLDecoder;
import java.util.List;
import java.util.Map;
/**
* @author: 程序员七哥
* @date... | 24.544118 | 100 | 0.666866 |
b2b60a3289b2cddedab669b0d1c28e89bf7cd969 | 1,203 | package net.floodlightcontroller.hand;
import org.restlet.resource.Get;
import org.restlet.resource.ServerResource;
/**
*
* @author wallnerryan
*
*/
public class HANDResource extends ServerResource {
@Get("json")
public Object handleRequest(){
IHANDService hand = (IHANDService)getContext().getAttributes()... | 22.277778 | 75 | 0.652535 |
1ea782e6ce4aa83054a2b8671e1918734efab952 | 2,839 | /*===========================================================================
* Licensed Materials - Property of IBM
* "Restricted Materials of IBM"
*
* IBM SDK, Java(tm) Technology Edition, v8
* (C) Copyright IBM Corp. 2002, 2013. All Rights Reserved
*
* US Government Users Restricted Rights - Use, duplication... | 23.857143 | 80 | 0.569567 |
6184dea85bc5d9f4f4fe47e22f4a459d896ef2cb | 875 | package com.bbstone.comm.model;
import com.bbstone.comm.dto.req.AuthStartReq;
import lombok.Data;
@Data
public class ServerAuthInfo {
private AuthStartReq authStartReq;
// md5(connInfo.ip+connInfo.port+connInfo.username)
private String connId;
// R2: server generated random code
private String srvRand;
... | 21.875 | 95 | 0.745143 |
d8f34c07f1995393ff30a6a92cd03234635b03f7 | 2,469 | package dsn.dev.java;
import java.util.Iterator;
import java.util.Map.Entry;
import java.util.concurrent.*;
import java.util.concurrent.locks.*;
public class Serverlet extends Clientlet
{
public Serverlet(String name, int task_bucket_count)
{
super(task_bucket_count);
_name = name;
lock =... | 27.433333 | 108 | 0.703524 |
42b6fcf2077c62a60a7b0f4fa721c1ac34b45894 | 1,093 | package io.codegen.gwt.jsonoverlay.processor.builder;
import java.util.List;
import java.util.Map;
import java.util.function.Consumer;
import java.util.stream.Collectors;
import javax.lang.model.element.AnnotationValue;
import javax.lang.model.element.TypeElement;
import javax.lang.model.util.SimpleAnnotationValueVis... | 32.147059 | 101 | 0.741995 |
49246e6f5e56ee609c78d1504e937d86f65147cf | 5,910 | package tests.broskiclan.bcutil;
import lombok.SneakyThrows;
import org.apache.commons.codec.binary.Hex;
import org.broskiclan.bcutil.io.CFiles;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import javax.crypto.Cipher;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import j... | 51.391304 | 272 | 0.596616 |
668be491d3c9bd0dfce4095e6127d88901c92a3a | 396 | package class11;
public class Tecnico extends Aluno {
private int registroProfissional;
public void praticar() {
System.out.println("Praticando seus conhecimentos!");
}
public int getRegistroProfissional() {
return registroProfissional;
}
public void setRegistroProfissional(int registroP... | 20.842105 | 65 | 0.739899 |
ea77e6910171c676b4377882ec7bbe71de4ec8ec | 1,770 | package edu.ifes.ci.si.les.scl.models;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
imp... | 30.517241 | 150 | 0.735593 |
c403b8cc4358115f91f078e4755d4031224aa40e | 9,701 | package de.mindyourbyte.alphalapse;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.KeyEvent;
import android.widget.Button;
import com.sony.scalar.sysutil.ScalarInput;
public class NonTouchNumberPicker extends Button {
public... | 35.92963 | 118 | 0.609628 |
08d53e48f299bd621b4a2c54b4060c6d60c9a868 | 3,107 | /*
* Copyright 2018 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 43.760563 | 104 | 0.621178 |
7386626cb412667bc879752eaf709001767beba2 | 1,143 | package io.gameoftrades.model.markt.actie;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
public class VerkoopActieTest extends AbstractActieTest {
@Test
public void zouMoetenKunnenVerkopen() {
... | 35.71875 | 87 | 0.698163 |
522d87cb3b5f9d8b6519e9f185f750dcaccbc7e1 | 7,100 | /*
BinderConnection.java
Copyright (c) 2017 NTT DOCOMO,INC.
Released under the MIT license
http://opensource.org/licenses/mit-license.php
*/
package org.deviceconnect.android.manager.core.plugin;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.co... | 34.634146 | 118 | 0.58831 |
1ac4f3743e576e708868812ebfc00257741863e8 | 1,257 | package me.burninghandsapp.familyportal.repositories;
import me.burninghandsapp.familyportal.models.BlogPostRatings;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.ste... | 50.28 | 122 | 0.797932 |
6bf00d4e53f9c483af51fdee3b2394a34e2e4200 | 411 | package com.atguigu.gmall.oms.mapper;
import com.atguigu.gmall.oms.entity.OrderOperateHistoryEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
/**
* 订单操作历史记录
*
* @author liuxiaofeng
* @email xfliu@atguigu.com
* @date 2020-04-23 14:24:54
*/
@Mapper
publ... | 22.833333 | 90 | 0.785888 |
8a27dc0d9de0576d1643920364fe3c3b80883bd4 | 673 | package com.mshams.cs.problems.legacy;
public class Operations extends Problem {
public int negate(int n) {
int sign = n > 0 ? -1 : 1;
int neg = 0;
while (n > 0) {
neg += sign;
n += sign;
}
return neg;
}
public int subtract(int a, int b) {
return a + negate(b);
}
public... | 14.955556 | 48 | 0.444279 |
2187f9b8151fe92acf0434c1832f1b05979fb147 | 15,614 | /*
* Copyright 2013 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 applicable l... | 36.143519 | 126 | 0.661009 |
9b9fd2671f372edad2dd78297f46bfcc1ace79f0 | 3,033 | //View.java
//(C) Joseph Mack 2011, jmack (at) wm7d (dot) net, released under GPL v3 (or any later version)
//inspired by Joseph Bergin's MVC gui at http://csis.pace.edu/~bergin/mvc/mvcgui.html
//View is an Observer
import java.awt.Button;
import java.awt.Panel;
import java.awt.Frame;
import java.awt.TextF... | 32.612903 | 113 | 0.676558 |
4c50ee15cec4a4910e07eb9400db9ce56afc868b | 4,388 | package com.exasol.projectkeeper.validators.dependencies;
import static com.exasol.projectkeeper.shared.dependencies.ProjectDependency.Type.*;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import org.apache.maven.model.*;
import org.apache.maven.project.MavenProject;
impo... | 41.396226 | 116 | 0.668186 |
2c7ab45efae0bf60096dd5464b0191d2f18b84e7 | 3,116 | package com.team766.hal.mock;
import com.team766.hal.AnalogInputReader;
import com.team766.hal.CANSpeedController;
import com.team766.hal.CameraInterface;
import com.team766.hal.CameraReader;
import com.team766.hal.Clock;
import com.team766.hal.DigitalInputReader;
import com.team766.hal.EncoderReader;
import ... | 25.540984 | 82 | 0.717908 |
4f8c88d2f55562c5cb94386fe8485fb6593367a3 | 7,363 | package org.robolectric.res;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.nio.file.FileSto... | 27.371747 | 95 | 0.659785 |
1cc4c42fa1a82aaa3affc9b8bddaf0a8d40cb375 | 1,848 | package c.t;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.os.Build;
import java.util.ArrayList;
class a {
/* renamed from: c.t.a$a reason: collision with other inner class name */
interface AbstractC0062a {
void onAnimationPause(Animator animato... | 32.421053 | 87 | 0.59145 |
5580eb0f1ebd1de2198103aeae507b1b98362a82 | 1,414 | package quickcarpet.mixin.fabricApi;
import net.fabricmc.fabric.impl.registry.sync.RegistrySyncManager;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.inject... | 41.588235 | 113 | 0.739745 |
883c2e1691019a48c831bf2cb14a1415be669b9c | 2,661 | /*
* Copyright 2000-2017 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... | 40.318182 | 144 | 0.753476 |
49997f3b43b4d3b318167a39ffdae91a9bd6e7aa | 1,791 | package org.zv.fintrack.support;
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import junit.framework.TestCase;
import org.dbunit.dataset.IDataSet;
import org.dbunit.dataset.xml.XmlDataSet;
import org.dbunit.IDatabaseTester;
import org.dbunit.JndiDatabaseTester;... | 24.202703 | 102 | 0.704076 |
c1b4638c5dc7531c463d968f572d7fa3dc4f954b | 12,370 | /*******************************************************************************
* Copyright (c) 2007, 2018 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribu... | 29.312796 | 104 | 0.702506 |
a2b20a26e6f50d19b05678dac371ad3cecf32d46 | 144 | package spoon.test.refactoring.parameter.testclasses;
public interface IFaceT {
@TestHierarchy("R_method1")
void method1(Double p1);
}
| 20.571429 | 54 | 0.756944 |
3ddc7d11738521b157ecc5a0fcd6c3ec11c121c1 | 1,335 | package io.github.selcukes.extent.report.tests.steps;
import io.cucumber.java.*;
import io.github.selcukes.commons.logging.Logger;
import io.github.selcukes.commons.logging.LoggerFactory;
import static io.github.selcukes.extent.report.Reporter.getReport;
public class ReporterHooks {
Logger logger = LoggerFactory... | 32.560976 | 85 | 0.686891 |
fa8a67fbc374abfe584b01005ae67a6174a93e28 | 3,383 | package org.bf2.admin.kafka.systemtest.json;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.vertx.core.buffer.Buffer;
import org.bf2.admin... | 34.171717 | 152 | 0.65031 |
241133c8026e88e233426b9346405d8ef5e6fb8b | 1,010 | package com.simplegame.server.bus.swap;
import com.simplegame.core.message.Message;
import com.simplegame.server.executor.Route;
import com.simplegame.server.message.IRouteHelper;
/**
*
* @Author zeusgooogle@gmail.com
* @sine 2015年6月19日 下午6:18:36
*
*/
public class BusRouteHelper implements IRouteHelper {
... | 24.047619 | 53 | 0.573267 |
c54be1751f75471507495fdeedd8b7f772080e49 | 2,233 | package com.github.qq120011676.ladybird.web.date.autoconfigure;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix = "ladybird.request-date")
public class RequestDateFormatProperties {
/**
* 解析Date时间格式
*/
private Stri... | 20.3 | 75 | 0.633229 |
350b65ac8f43f4b5eadc99d7e29e0d6969fca53e | 337 | package org.apache.spark.streaming.receiver;
public class StopReceiver$ implements org.apache.spark.streaming.receiver.ReceiverMessage {
/**
* Static reference to the singleton instance of this Scala object.
*/
public static final StopReceiver$ MODULE$ = null;
public StopReceiver$ () { throw new Runtime... | 37.444444 | 92 | 0.747774 |
90c5ac9b0f4087a42b3a108a10337a881e4997ed | 3,328 | package com.company;
import java.time.format.DateTimeFormatter;
import java.util.Scanner;
import java.time.LocalDateTime;
public class Menu {
DateTimeFormatter dtf = DateTimeFormatter.ofPattern("HH:mm:ss");
double Deuda =0;
Scanner sc = new Scanner(System.in);
Capacidadprestar cp = new Capacida... | 51.2 | 130 | 0.507212 |
7c6053552baf5648cf641d8a6eb436d18bb66d16 | 188 | package github_day01;
/**
* Created by wangyuhao on 2017/6/13.
*/
public class HelloGit {
public static void main(String... args) {
System.out.println("hello git");
}
}
| 17.090909 | 45 | 0.632979 |
91a5730326b7646a1b458fe8886c20bf28a00af3 | 95,711 | /*
* This file was automatically generated by EvoSuite
* Sat Nov 07 20:19:07 GMT 2020
*/
package org.objectweb.asm.jip;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import org.evosuite.runtime.EvoRunner;
import org.evosuite.runtime.EvoRunnerParameters... | 37.097287 | 226 | 0.652652 |
e89f124c648bb648d137f4f2bdff43cf615a0f99 | 646 | package com.platform.weixinUtils.message.req;
/**
* 图片的实体类
*/
public class Image {
//图片链接(由系统生成)
private String PicUrl;
//图片消息媒体id,可以调用多媒体文件下载接口拉取数据。
private String MediaId;
//消息id,64位整型
private long MsgId;
public String getPicUrl() {
return PicUrl;
}
public void setP... | 16.15 | 45 | 0.592879 |
3d5758b2161824e27f74775d4501b4001fb7611e | 1,474 | package com.zyw.horrarndoo.yizhi.adapter;
import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseViewHolder;
import com.zyw.horrarndoo.sdk.utils.StringUtils;
import com.zyw.horr... | 29.48 | 96 | 0.686567 |
74fd60b405df8f7d7bdb603fe2d701c7cedfeaac | 915 | /*
* Copyright (c) 2022 Airbyte, Inc., all rights reserved.
*/
package io.airbyte.oauth.flows.google;
import io.airbyte.oauth.BaseOAuthFlow;
import io.airbyte.oauth.flows.BaseOAuthFlowTest;
import java.util.List;
public class GoogleSearchConsoleOAuthFlowTest extends BaseOAuthFlowTest {
@Override
protected Bas... | 31.551724 | 283 | 0.785792 |
913db7dcb59c99fde70a87137f9c23b6fddd7afe | 3,191 | package com.ergonautics.ergonautics.storage;
import com.ergonautics.ergonautics.models.Board;
import com.ergonautics.ergonautics.models.SerializableBoardWrapper;
import com.ergonautics.ergonautics.models.SerializableWrapper;
import com.ergonautics.ergonautics.models.SerializeableRealmListWrapper;
import java.io.ByteA... | 30.682692 | 84 | 0.591351 |
d516d916f664812033f440cd543383154c6b8762 | 3,555 | package javaCourse.addressbook.tests;
/**
* Created by Nadejda.Fedorova on 12.06.2016.
*/
import javaCourse.addressbook.model.ContactData;
import javaCourse.addressbook.model.Contacts;
import javaCourse.addressbook.model.GroupData;
import javaCourse.addressbook.model.Groups;
import org.testng.Assert;
i... | 39.5 | 103 | 0.698172 |
59f9f632ba59f1c4ddbdefa995fea2a99433a20d | 577 | package com.sdl.ecommerce.odata.client;
import com.sdl.ecommerce.api.LocalizationService;
import org.springframework.stereotype.Component;
import java.net.URI;
import java.util.Map;
/**
* TestLocalizationService
*
* @author nic
*/
public class TestLocalizationService implements LocalizationService {
@Overri... | 18.03125 | 69 | 0.694974 |
8ec91859e18236fba4cfc40d28723f98982751e4 | 1,650 | package fr.jmini.eadoc.converter;
import java.util.Collections;
import org.asciidoctor.ast.StructuralNode;
import org.junit.Test;
import fr.jmini.asciidoctorj.converter.code.CodeTestingUtility;
import fr.jmini.eadoc.EStructuralNode;
import fr.jmini.eadoc.EadocFactory;
public class EadocCodeGeneratorStructuralNodeTe... | 35.869565 | 90 | 0.725455 |
0341420802698c4b1654153bede47627613b6456 | 3,288 | package me.crespel.karaplan.config;
import java.lang.reflect.Type;
import java.security.Principal;
import java.util.List;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.Ordered;
import org.springframework.data.d... | 33.55102 | 147 | 0.759428 |
26229d37c5a409bae26aff0b618a3f6fde7d5aea | 175 | package conf;
import org.springframework.context.annotation.Configuration;
@Configuration
public class WebMvcConfig extends CoreWebMvcConfig {
// Docker specific
}
| 19.444444 | 61 | 0.788571 |
61dc5d29403d98c957e2e14f14624450f323bd94 | 7,880 | package us.ihmc.robotics.math.trajectories;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertSame;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.junit.After;
import org.junit.Before;
import org.ju... | 40.618557 | 157 | 0.754315 |
cff7309c05cd003c0c1ca751145d814fb79c13d8 | 2,767 | package top.lizhistudio.androidlua;
import top.lizhistudio.androidlua.exception.LuaTypeError;
public interface LuaContext {
int MAX_STACK = 1000000;
int REGISTRY_INDEX = -1001000;
int REGISTRY_INDEX_MAIN_THREAD = 1;
int REGISTRY_INDEX_GLOBALS = 2;
int MULTI_RESULT = -1;
long toPointer(int in... | 28.234694 | 103 | 0.599566 |
7508afa85f8d2083db827c1eb6bcaa780312a3e0 | 140 | package dev.fiki.forgehax.api.cmd.listener;
public class Listeners {
public static IOnUpdate onUpdate(IOnUpdate o) {
return o;
}
}
| 17.5 | 49 | 0.728571 |
558817a4713500abcb67ca3fd7beea2a52d29e02 | 3,629 | /*
*
* * Copyright 2010-2016 OrientDB LTD (info(-at-)orientdb.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... | 26.107914 | 130 | 0.64205 |
7e25730032a7116097bb1487ff3df7525d71f724 | 1,502 | package com.wgmc.whattobuy.adapter;
import android.content.Context;
import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.wgmc.whattobuy.R;
import com.wgmc.w... | 31.957447 | 123 | 0.745672 |
a05fabfa94e5a58622d1c85eebcf90b5e8937ce3 | 1,376 | package com.google.android.gms.location.places.internal;
import com.google.android.gms.common.api.GoogleApiClient;
import com.google.android.gms.common.api.PendingResult;
import com.google.android.gms.common.data.DataHolder;
import com.google.android.gms.location.places.PlacePhotoMetadata;
import com.google.android.gm... | 31.272727 | 106 | 0.710756 |
abe36d946d6dd81056c22cbf1db34557ee18d32e | 1,288 | package com.malin.learnfragment.fragment;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageButton;
import android.widget.Toast;
import com.malin.learnfragment.R;
public class TitleFragment ex... | 24.769231 | 116 | 0.666925 |
f813c4e831360f86c74d5722702e3d87363b1a53 | 686 | package com.jaquadro.minecraft.gardencontainers.item;
import com.jaquadro.minecraft.gardencontainers.block.BlockMediumPot;
import net.minecraft.block.Block;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.item.ItemMultiTexture;
public class ItemMediumPot extends ItemMultiTexture
{
... | 29.826087 | 68 | 0.740525 |
18d0b1e06d5bed441b1a43bed9a01c18a159e3d0 | 2,023 | /*
* This class is distributed as part of the Botania Mod.
* Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*/
package vazkii.botania.data.util;
import com.google.common.collect.Immutabl... | 34.87931 | 160 | 0.762234 |
dda99fb47f61171386026856ca62949a99a94ca2 | 1,767 | package com.github.jinahya.assertj.validation;
/*-
* #%L
* assertj-bean-validation-generic
* %%
* Copyright (C) 2021 Jinahya, 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
... | 33.980769 | 115 | 0.697793 |
9eaf7e9a7be25aa3467eb996fe4726bf1d2ce5ff | 6,792 | package snake.multi.net;
import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Print... | 26.325581 | 75 | 0.673587 |
e12b6c45cab8fbe4edfaa14db3a760f0945f05d9 | 3,340 | /*
* Copyright (c) 2008-2021, Hazelcast, 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 ... | 41.75 | 101 | 0.713473 |
6fd0c4e4e19848f7a2b6ed67bd957da0f04fb65e | 650 | package com.novoda.magicmirror.settings;
import android.preference.PreferenceActivity;
import com.novoda.magicmirror.R;
import java.util.Arrays;
import java.util.List;
public class SettingsActivity extends PreferenceActivity {
private static final List<String> PREFERENCE_FRAGMENTS = Arrays.asList(
... | 23.214286 | 75 | 0.746154 |
e44b20e28d5ec7fb9d31c126d05cc9819a32ad8f | 3,342 | package se.sundsvall.disturbance.service.message.util;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.List;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import generated.se.sundsvall.messaging.Se... | 33.42 | 129 | 0.763914 |
8d85dc53602b625869441e3f3d23ab692f56f04c | 15,890 | package com.example.administrator.ustc_health;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothManager;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
im... | 36.69746 | 105 | 0.609377 |
4a02bd97a194e0a77b5bee686bd8016ea6a4026f | 732 | package nam.ui.userInterface;
import java.io.Serializable;
import javax.enterprise.context.SessionScoped;
import javax.inject.Inject;
import javax.inject.Named;
import nam.ui.UserInterface;
import nam.ui.design.AbstractEventManager;
import nam.ui.design.SelectionContext;
@SessionScoped
@Named("userInterfaceEventMa... | 22.181818 | 108 | 0.811475 |
d06382443bfe8063edaf8dbff4b98f53269ffff7 | 1,103 | package com.seezoon.dao.modules.sys.entity;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;
import com.seezoon.dao.framework.entity.PageCondition;
import com.seezoon.dao.framework.sort.annotation.SortField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
... | 21.627451 | 93 | 0.67815 |
42a7148aa486b9662ca9f63078ba81ba2736918d | 549 | package cn.xiaowenjie.beans;
import lombok.Data;
/**
* Created by Administrator on 2020/4/29.
* <p>
* by author wz
* <p>
* cn.xiaowenjie.beans
*/
@Data
public class PageObject {
private int pageNo;
private int pageSize;
private int schoolId;
public int getPageNo() {
return pageNo;
... | 15.685714 | 43 | 0.613843 |
4f897e333ca235ed826f66269572f9b39dec4b9d | 5,636 | package ethos.model.players.skills.crafting;
import java.util.HashMap;
import java.util.Map;
import ethos.model.players.Player;
import ethos.model.players.mode.ModeType;
public class Enchantment {
private static final Enchantment SINGLETON = new Enchantment();
private Enchantment() {
}
public enum Enchant {
... | 24.828194 | 122 | 0.655962 |
105e7758f5031b5085a9fbf7b7f12a400fa5bef5 | 4,607 | /*
* This code / file / algorithm is completely free to use and modify as necessary.
* Any attribution is welcome and highly appriciated.
*/
package io.onclave.nsga.ii.api;
import io.onclave.nsga.ii.interfaces.IObjectiveFunction;
import io.onclave.nsga.ii.objectivefunction.SCH_1;
import io.onclave.nsga.ii.objective... | 30.509934 | 104 | 0.648578 |
3b18c3bc093a7a48f953112fe8db8b6f2ac7a2f7 | 1,537 | package Customers;
import java.util.Scanner;
public class LegalPerson extends Customer
{
private String name;
private String registrationCode; // cod caen
private String bankAccount; // cui
public LegalPerson(String email,Address address, String name, String registrationCode, String bankAccount)
... | 30.137255 | 110 | 0.612882 |
ceef20963ae2dde0fee4993ab99665348f70c900 | 4,290 | /*
* Copyright (c) 2015-2016 William Bittle http://www.praisenter.org/
* 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 abov... | 42.058824 | 223 | 0.7669 |
d793cb9268d975f9e5e6663be316e20ead79cbb0 | 675 | package de.bitsharesmunich.adapters;
import com.google.common.primitives.UnsignedLong;
import java.util.Comparator;
import de.bitsharesmunich.database.HistoricalTransferEntry;
/**
* Created by nelson on 12/14/16.
*/
public class TransferAmountComparator implements Comparator<HistoricalTransferEntry> {
@Over... | 30.681818 | 105 | 0.774815 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.