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 |
|---|---|---|---|---|---|
a4091d166b9d85dbf1e32a83f0f696e9e14b572a | 1,349 | package org.princehouse.mica.base.simple;
import java.lang.reflect.Field;
import java.util.Collection;
import org.princehouse.mica.base.model.Protocol;
import org.princehouse.mica.base.net.model.Address;
import org.princehouse.mica.util.Distribution;
class UniformRandomCollectionFieldSelector extends Selector {
pr... | 26.98 | 81 | 0.704967 |
558bf8f02a3b475a4e29bc315ae208b9ab9ce10e | 405 | /**
* @Author LengYun
* @Since 2022/01/13 14:28
* @Description
*/
package com.iuaenasong.oj.common.exception;
import lombok.Data;
@Data
public class SubmitError extends Exception {
private String stdout;
private String stderr;
public SubmitError(String message, String stdout, String stderr) {
... | 19.285714 | 70 | 0.671605 |
457a84937a22e54d21a183e72622628d6d41a4d5 | 10,934 | /*
* Copyright 2015 The Energy Detective. All Rights Reserved.
*/
package com.ted.commander.server.restServices;
import com.ted.commander.common.model.VirtualECC;
import com.ted.commander.server.model.CommanderUser;
import com.ted.commander.server.model.alexa.AlexaRequest;
import com.ted.commander.server.model.ale... | 42.544747 | 158 | 0.52762 |
ce06344d99f1e800127ceecff71cc4ae9be84749 | 1,906 | package com.akshay.filenet;
import com.filenet.api.constants.RefreshMode;
import com.filenet.api.core.Document;
import com.filenet.api.core.Factory;
import com.filenet.api.core.ObjectStore;
import com.filenet.api.engine.EventActionHandler;
import com.filenet.api.events.ObjectChangeEvent;
import com.filenet.api.excepti... | 31.245902 | 78 | 0.755509 |
09ff2a22db34a4f8aa38ac2177f9cd84eb6d25a0 | 2,060 | /**
* Mad-Advertisement
* Copyright (C) 2011-2013 Thorsten Marx <thmarx@gmx.net>
*
* 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... | 34.915254 | 118 | 0.716505 |
214b6f620e93df35b1e35f8d57104b3a572ed30a | 1,612 | package com.devipriya.reportcard.adapters;
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.devipriya.reportcard.R;
impo... | 34.297872 | 108 | 0.706576 |
d8fd0aee4f8d89c759e1f77cc4dc7760e7013db7 | 6,857 | package fr.lirmm.graphik.defeasible.tools.benchmark;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;
import java.util.LinkedList;
import java.util.List;
import com.beust.jcommander.IStringConverter;
import com.beust.jcommander.JCommander;
import com.beust.jcommander... | 42.067485 | 156 | 0.74187 |
ee4e1cceaf0c251703b4d6573c9b086a2d40ad5d | 6,594 | package com.code.server.game.poker.doudizhu;
import com.code.server.constant.exception.DataNotFoundException;
import com.code.server.constant.response.ErrorCode;
import com.code.server.constant.response.IfaceRoomVo;
import com.code.server.constant.response.ResponseVo;
import com.code.server.constant.response.RoomDoud... | 34.52356 | 130 | 0.659387 |
704542d7b58d40d9e0b1d4dfaafa1f6a5013d838 | 1,348 | package bigdata;
import org.apache.commons.io.FileUtils;
import java.io.File;
import java.io.IOException;
/**
* 数据模型类,请基于此类扩充完成数据模型类
*/
public class DataModel {
private String filePath;
private boolean isStruct;//是否结构化数据
private String columnSplit;//结构化数据间隔符
private String lineSplit;//换行符
private String... | 18.216216 | 93 | 0.660237 |
78a46d1a1050ae231dad98fdeaca27ea0c217e6d | 881 | /*******************************************************************************
* Copyright (C) 2019 Vulcalien
* This code or part of it is licensed under MIT License by Vulcalien
******************************************************************************/
package vulc.ld44.animation;
import vulc.ld44.level.ent... | 22.589744 | 80 | 0.527809 |
78263722387cb5f8d4bc43637e7770c55674b8e6 | 1,371 | package com.ghost.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ghost.domain.Memory;
import com.ghost.mapper.MemoryMapper;
import com.ghost.service.MemoryService;
@Service
public cla... | 22.47541 | 70 | 0.792852 |
4b5532029df235c8509f998039d76b89ccde08c0 | 1,663 | /*
* Copyright 2013, Unitils.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
*
* Unless required by applicable law or... | 36.152174 | 134 | 0.761275 |
e5de7acd10ca67f6d51a96f18d1b0705e30c8920 | 121 | package entity.tile;
public class Grassland extends Grass {
public Grassland() {
super(Tile.COLOR_GRASSLAND);
}
}
| 13.444444 | 38 | 0.727273 |
eef62d5d706252ae8fcd3bde2547a5fc5da04c4e | 869 | package com.maven.service;
import org.springframework.stereotype.Service;
import com.maven.base.dao.DataSource;
import com.maven.base.service.BaseServcie;
import com.maven.entity.PlatformApiOutput;
@Service
public interface PlatformApiOutputService extends BaseServcie<PlatformApiOutput>{
/**
* 获取接口配置通过品牌编码
* ... | 20.690476 | 91 | 0.758343 |
227ca36e70c600b87a267c2b0342f9fecdaf3a9b | 2,720 | package havis.middleware.tdt;
import java.util.Collection;
import java.util.LinkedHashMap;
/**
* The header entry for one scheme of the EPCglobal Tag Data Translation (TDS)
* specification. (For more information see Document EPCglobal Tag Data
* Translation (TDT) 1.4, Ratified Standard, June 10,2009. Lates... | 23.247863 | 80 | 0.672426 |
c533fa934c3ce660ddb4fb18a0d08ff9d48e625c | 597 | package Readers;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
import java.net.URL;
public class Reader {
protected URL url;
protected String corpus; // the output string of the reader
protected boolean doneProcessing = false;
public Reader(URL url) {
this.url = url... | 19.9 | 70 | 0.664992 |
0f1c10225647070f7eda48f0099b807b3214544b | 3,650 | package gui;
import app.AppCore;
import errorHandler.Handler;
import gui.table.TableModel;
import lombok.Data;
import observer.Notification;
import observer.Subscriber;
import observer.enums.NotificationCode;
import queryBuilder.Query;
import resource.data.Row;
import javax.swing.*;
import java.awt.*;
import java.uti... | 28.515625 | 79 | 0.598904 |
b1d1039f0401f644443f3a0096725571963b773c | 3,708 | package com.example.demogateway.config;
import com.alibaba.fastjson.JSONObject;
import org.springframework.http.*;
import org.springframework.util.StringUtils;
import org.springframework.web.client.RestTemplate;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
/**
* Created by Ad... | 37.08 | 108 | 0.62945 |
05260e07c48cf69465ea1531567fd31789f768b3 | 1,803 | package com.github.sandor_balazs.nosql_java.domain;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.*;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import java.util.Objects;
/**
* A ProjectRegion.
*/
@Entity... | 20.258427 | 61 | 0.612313 |
5d495f9576b977788c7c3888f7b0f335496d1b69 | 9,532 | package org.apache.cordova.dgram;
import android.util.Log;
import android.util.SparseArray;
import org.apache.cordova.CallbackContext;
import org.apache.cordova.CordovaPlugin;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.IOException;
import java.io.PrintWriter;... | 40.389831 | 169 | 0.537872 |
9e1f6b85ce390903f484419bdde66e938fb58a96 | 14,271 | /*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 37.854111 | 100 | 0.607946 |
15ad8f3f13299c5732d6e4765c8adf39549228b5 | 588 | package com.puppet.pcore.parser.model;
import com.puppet.pcore.PN;
import com.puppet.pcore.impl.pn.LiteralPN;
public class QualifiedName extends Positioned implements NameExpression {
public final String name;
public QualifiedName(String name, Locator locator, int offset, int length) {
super(locator, offset, len... | 21 | 77 | 0.727891 |
4da2d1aacd5be6100b17b1b92b8d022842251f78 | 16,332 | /**
* 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 ... | 56.317241 | 135 | 0.690485 |
f835621492b1ef650952982abedc8ba9c7238e10 | 1,470 | package at.petrak.hexcasting.client.shader;
import at.petrak.hexcasting.mixin.accessor.client.AccessorCompositeRenderType;
import at.petrak.hexcasting.mixin.accessor.client.AccessorEmptyTextureStateShard;
import at.petrak.hexcasting.mixin.accessor.client.AccessorRenderStateShard;
import com.mojang.blaze3d.vertex.Verte... | 44.545455 | 134 | 0.821769 |
f789e8a194ffe99432a299bb9c30a52679894e37 | 2,220 | package com.remondis.limbus.engine;
import com.remondis.limbus.engine.api.DefaultComponents;
import com.remondis.limbus.engine.api.DefaultComponentsConsumer;
import com.remondis.limbus.engine.api.EmptySharedClasspathProvider;
import com.remondis.limbus.engine.api.LogTarget;
import com.remondis.limbus.engine.api.Shared... | 37.627119 | 112 | 0.740541 |
2e7c4e81764b5ecb69815b3820c43967c28b9931 | 2,108 | package com.ruoyi.setting.service.impl;
import com.ruoyi.setting.domain.LsSystemSeo;
import com.ruoyi.setting.mapper.LsSystemSeoMapper;
import com.ruoyi.setting.service.ILsSystemSeoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import or... | 23.164835 | 95 | 0.676945 |
faffee730851e53ff37d57839249b395fe8bf5a1 | 1,956 | package org.apache.poi.ss.formula.atp;
import java.util.Calendar;
import java.util.regex.Pattern;
import org.apache.poi.ss.formula.eval.ErrorEval;
import org.apache.poi.ss.formula.eval.EvaluationException;
import org.apache.poi.util.LocaleUtil;
public class DateParser {
public static Calendar parseDate(String str... | 33.152542 | 105 | 0.567996 |
d487666e74c8e5f192cbf0e24dbb659571ae6fe9 | 1,016 | package com.movify.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.movify.dao.IRoleDao;
import com.movify.entity.Role;
import com.movify.entity.User;
import com.movify.service.IRoleServ... | 21.617021 | 62 | 0.75 |
981a3a4eccb4ae2eb5d1b2e981ce6d9b429fc59a | 188 | package es.webbeta.serializer;
public interface ILogger {
enum Level {
ERROR
}
Level getLevel();
void setLevel(Level level);
void error(String message);
}
| 12.533333 | 31 | 0.632979 |
d8f8cf179fb967540b229e0712471cdc477e31b0 | 34,950 | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2017.08.... | 35.554425 | 137 | 0.63671 |
9296c764e2fd27c24cc635ca344d875e0f6e9d18 | 3,424 | package org.firstinspires.ftc.teamcode.attachment;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.Gamepad;
import com.qualcomm.robotcore.hardware.HardwareMap;
import org.apache.commons.math3.linear.MatrixUtils;
import org.apache.commons.math3.linear.RealMatrix;
import org.first... | 43.897436 | 187 | 0.69597 |
4e92683834350c8313e1ce4b427d0960dc15ac9d | 7,707 | package net.chenxiy.bilimusic.view;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.databinding.DataBindingUtil;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.O... | 35.191781 | 154 | 0.689503 |
cf02d6b678c4c1caccdb5cfcaa0c2388c21d180b | 4,119 | package com.allen.library;
import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;
import com.allen.library.constant.SPKeys;
import com.allen.library.download.DownloadRetrofit;
import com.allen.library.http.GlobalRxHttp;
import com.allen.library.http.SingleRxHttp;
impor... | 22.38587 | 115 | 0.605001 |
7b8c1cbda57ef1a1e77227be782a28f73a1002e1 | 2,477 | package br.com.catbag.giffluxsample.matchers;
import android.graphics.drawable.ColorDrawable;
import android.os.IBinder;
import android.support.test.espresso.Root;
import android.support.test.espresso.matcher.BoundedMatcher;
import android.support.test.internal.util.Checks;
import android.view.View;
import android.vie... | 33.931507 | 87 | 0.621316 |
b974ad9f83d05636b2a599a70b73a28708a296d2 | 880 | package xyz.klenkiven.kmall.seckill.config;
import org.redisson.Redisson;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration... | 26.666667 | 86 | 0.714773 |
dddd227d74a8aa13f3aff8a4613c9a26e9ec2b54 | 591 | package com.loeyae.cloud.task.enums;
/**
* JobStatus.
*
* @date: 2020-08-18
* @version: 1.0
* @author: zhangyi07@beyondsoft.com
*/
public enum JobStatus {
INIT(0, "初始化"),
ACTIVE(1, "激活"),
PAUSED(2, "激活"),
CANCEL(3, "取消")
;
private final int code;
private final String msg;
JobS... | 14.775 | 37 | 0.539763 |
2312a131deb2075dc17c5381abe6b8d17372b7c0 | 408 | package com.lizij;
import android.app.Application;
import android.content.Context;
/**
* @author lizijian
*/
public class MyApplication extends Application {
private Context context;
@Override
public void onCreate() {
super.onCreate();
}
@Override
protected void attachBaseContext... | 16.32 | 52 | 0.664216 |
b3f366cdbce4e4040019e93ea1d0694220f2c232 | 51 | import java.util.Scanner;
public class Main {
}
| 7.285714 | 25 | 0.705882 |
07ff915ce79f42b78450f24efc76facab5bb31e9 | 2,943 | package Benchmark.Ingestion;
import Benchmark.CSVLogger;
import Benchmark.Config.ConfigFile;
import Benchmark.DateCommunication;
import Benchmark.Generator.GeneratedData.GeneratedAccessPoint;
import Benchmark.Generator.DataGenerator;
import Benchmark.Generator.Targets.ITarget;
import Benchmark.Generator.Targets.MultiT... | 33.827586 | 124 | 0.69351 |
29bb266a469e0ab202dd9b2bf583284ecc3b2194 | 803 | package com.google.refine.model.metadata.validator.checks;
import java.util.List;
import org.json.JSONObject;
import com.google.refine.model.Cell;
import com.google.refine.model.Project;
import io.frictionlessdata.tableschema.Field;
public class EnumerableConstraint extends AbstractValidator {
private List<Obj... | 28.678571 | 90 | 0.714819 |
3ff6ed56a5264434882973c27b76b84a833b589b | 519 | package com.ghostflow.services;
import com.ghostflow.database.Employees;
import com.ghostflow.database.postgres.entities.UserEntity;
import org.springframework.security.core.userdetails.UserDetailsService;
public interface UserService extends UserDetailsService {
void create(String email, String name, String pass... | 32.4375 | 82 | 0.801541 |
52631fba9ca4495c7874fd6820e00494ae68e2c0 | 4,316 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.javaagent.bootstrap;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.ref.WeakReference;
import java.net.URISyntaxException;
i... | 30.181818 | 90 | 0.699722 |
e97d85904a6651c03810043ad10d2e5a1c559e41 | 3,580 | package datanapps.multiviewrecyclelistsample.simple;
import android.graphics.Color;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
impo... | 36.161616 | 168 | 0.704469 |
132a6c6aaf9c79d3faf4382c80a8e3942cc4bb3f | 245 | /**
* The base package of Speedment. Only the most commonly used classes reside
* directly in this package. This includes the {@link Speedment} interface and
* the top interfaces of the generated files.
*/
package com.speedment.runtime.core; | 40.833333 | 78 | 0.763265 |
90e82509db76d3164eb7968ccf8239a388c9d181 | 2,868 | /*
* Copyright 2018 VMware, 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | 38.24 | 166 | 0.746165 |
b75eb8ef1a197dc2d4ee457defddaeed732d9203 | 16,445 | package main.com.twitchcm.api;
import main.com.twitchcm.clipslog.FetchFileLog;
import main.com.twitchcm.enums.AuthJsonEnum;
import main.com.twitchcm.enums.ClipsJsonEnum;
import main.com.twitchcm.enums.DataSourceEnum;
import main.com.twitchcm.enums.VerboseEnum;
import main.com.twitchcm.filter.FetchClipsFilter;
import m... | 35.518359 | 130 | 0.58723 |
fd86865c71741130da49147213ec39765d33b527 | 218 | package ua.ikonovalov.tracker.templates;
/**
* Created by Strong on 11.11.18.
*/
public class CopyAction extends TemplateAction {
@Override
void start() {
}
@Override
void finish() {
}
}
| 12.111111 | 48 | 0.619266 |
de8e70ed0715bbce16f690dd6937cc82a49343cd | 2,425 | /**
* 值对象是非常重要的DDD部件。它用来度量和描述事物,可以非常容易地使用值对象
* <p>
* 来进行创建、测试、使用、优化和维护。
* <p>
* 我们应当尽量使用值对象来建模而不是实体对象,即便一个领域概念必须建模成
* 实体,但在设计时也应该更偏向于将其作为值对象容器,而不是子实体容器。
* </p>
* <p>
* 值对象有以下特征:
* <ul>
* <li>度量或描述了领域中某件的东西的概念,比如一个人的年龄、名字。</li>
* <li>
* 不可变,创建之后便不再改变。
* 详情参考{@link cn.xialugui.id... | 31.089744 | 171 | 0.663918 |
970da058521048f94353c71e40cc401a5226bd03 | 211 | package com.reporting.mocks.process.intraday;
public enum IntradayEventType {
Market("Market"),
Trade("Trade");
String name;
IntradayEventType(String name) {
this.name = name;
}
}
| 16.230769 | 45 | 0.649289 |
b9ef52e592f9f6b4768e2fbd3755c44c99a1708d | 5,939 | package robotx.opmodes.autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.Servo;
import robotx.modules.DuckRotation;
import robotx.modules.IntakeSyste... | 34.935294 | 126 | 0.632093 |
974b788810d120f836d2a385adfe2ed88d7d5499 | 692 | package com.example.todobulgaria.models.entities;
import com.example.todobulgaria.models.BaseEntity;
import com.example.todobulgaria.models.enums.CategoryEnum;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;
import java.io.Serial... | 23.066667 | 72 | 0.751445 |
328601ea4c398e067990b9f522f2eb228387af57 | 1,293 | package org.razertory.javacodelab.tree;
import org.razertory.javacodelab.TreeNode;
/**
* @author springchan
* @date 2019/2/4
* @description
**/
public class TreeHelper {
/**
* 固定的二叉树:
* 1
* / \
* 5 8
* / \ /
* 7 9 3
* -------------... | 23.944444 | 98 | 0.489559 |
a8867636cd70f398fd842b1cd04e2c01f0dfcef0 | 6,729 | package org.firstinspires.ftc.teamcode.meets.league3;
import com.qualcomm.hardware.bosch.BNO055IMU;
import com.qualcomm.hardware.rev.Rev2mDistanceSensor;
import com.qualcomm.robotcore.hardware.DistanceSensor;
import com.qualcomm.robotcore.util.ElapsedTime;
import com.qualcomm.robotcore.hardware.CRServo;
import com.qua... | 33.477612 | 100 | 0.730718 |
a2aad6bbc26ac15a8374ee713121aa1285a64326 | 347 | package me.michidk.simpletwitterbotapi.filters;
import twitter4j.Status;
/**
* Created by Michael Lohr on 19.09.2016.
*/
public abstract class Filter {
/***
* Filters a tweet
* @param tweet the tweet to be filtered
* @return true if the tweet should be filtered
*/
public abstract boolea... | 19.277778 | 51 | 0.677233 |
1e9a495ab6740fa6183b50e066babf443cd75a6a | 546 | package io.quarkus.arc.profile;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* When applied to a bean class or producer method (or field), the bean will only be enabled
* if the Quarkus build time... | 30.333333 | 92 | 0.783883 |
e61ceca5cd72c60839e8e3ae5e48b9e93c3bd34b | 307 | package core.ast.util;
import com.intellij.psi.PsiExpression;
import com.intellij.psi.PsiLiteralExpression;
public class InstanceOfLiteral implements ExpressionInstanceChecker {
public boolean instanceOf(PsiExpression expression) {
return expression instanceof PsiLiteralExpression;
}
}
| 23.615385 | 70 | 0.801303 |
e960c028331578e0270fa05a3380a61afe35a145 | 1,920 | package com.mockcompany.webapp.service;
import java.util.List;
import java.util.ArrayList;
import java.util.stream.Collectors;
import org.springframework.stereotype.Service;
import com.mockcompany.webapp.model.ProductItem;
import com.mockcompany.webapp.data.ProductItemRepository;
import org.springframework.beans.facto... | 32.542373 | 151 | 0.715104 |
ddc1081e46bec480c9b6bc173bd872a074d6368b | 6,455 | /*
* Copyright 2020 ThoughtWorks, 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 agr... | 31.183575 | 150 | 0.635631 |
7c2d56360433dfdf294b1f2509e7d1e7678b45b1 | 4,310 | package com.ridi.books.viewer.reader.bom.engine;
import android.util.Log;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
public class Reader {
private static final String TAG = "Reader";
private String text;
... | 22.331606 | 105 | 0.520418 |
9cabfb18d8a10c371e0c3923799657e6728565d1 | 8,521 | package com.tw.pkg.version;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.*;
/**
* @author mrumpf
*/
public class VersionTest {
@Test
public void testEmpty... | 31.327206 | 173 | 0.544537 |
f33e6555821bfe9dcbccafa30453f196adfe55c9 | 650 |
package org.apache.rocketmq.common.protocol.body;
import java.util.HashSet;
import java.util.Set;
import org.apache.rocketmq.remoting.protocol.RemotingSerializable;
public class TopicList extends RemotingSerializable {
private Set<String> topicList = new HashSet<String>();
private String brokerAddr;
pub... | 23.214286 | 66 | 0.704615 |
ced892200335942859c3e6dfd062ed6522115e11 | 2,377 | package com.example.thrift;
import com.example.thrift.config.ServiceConfigurationConstants;
import com.example.thrift.hello.Hello;
import com.example.thrift.protocol.TDivisionByZeroException;
import com.example.thrift.tutorial.Calculator;
import com.example.thrift.tutorial.Operation;
import com.example.thrift.tutorial... | 39.616667 | 119 | 0.73496 |
d0d7d5e2261582e5485a2d60a3736bbf3e4943ae | 2,438 | package com.nullptr.one.net;
import com.android.volley.AuthFailureError;
import com.android.volley.Request.Method;
import com.android.volley.Response.ErrorListener;
import com.android.volley.Response.Listener;
import com.android.volley.VolleyError;
import com.android.volley.toolbox.StringRequest;
import com.nullptr.on... | 33.39726 | 106 | 0.606235 |
b6873284e53d58c82fdefc3f73fca3dff9b9ac9f | 858 | package com.scs.simple2dgameframework.graphics;
import java.awt.geom.Point2D;
import java.awt.image.BufferedImage;
import com.scs.simple2dgameframework.Simple2DGameFramework;
public class Sprite {
public BufferedImage img;
private Simple2DGameFramework game;
public Point2D.Float pos = new Point2D.Float();
publ... | 20.428571 | 88 | 0.724942 |
a13944c419851601b0424ae44aa7662b494786a0 | 4,658 | package com.bfsi.mfi.service.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfra... | 27.4 | 112 | 0.74474 |
1b2123d9568de40468b681a2ed745ef4ac32615f | 956 | package io.bit3.jsass.function;
import io.bit3.jsass.type.SassList;
import io.bit3.jsass.type.SassValue;
/**
* Wraps a java function as libsass function and pass the arguments through.
*/
public class FunctionWrapper {
/**
* The original function declaration, that is created by the factory.
*/
private fi... | 21.244444 | 76 | 0.687238 |
3dca5fbc346bdf031166613806951f9d229dfa82 | 3,719 | package com.huang.notetool.quote;
import com.huang.notetool.frame.progress.ShowProcess;
import javax.swing.*;
import java.io.IOException;
public class closeway {
public closeway() {
JOptionPane.showMessageDialog(null, "部分未收录,只需要输入路径下的.exe文件名字即可");
String close1 = JOptionPane.showInputDialog(null,... | 59.031746 | 255 | 0.587524 |
8f6c19265d129f5f51d1a16541735d0d88a9fe8b | 12,897 | package com.werkhaizer.anjo;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.graphics.drawable.ColorDrawable;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.VibrationEffect;
import andr... | 39.200608 | 142 | 0.602776 |
35a3c237a88f60d12b9803240a78517a0ca1dcb0 | 1,509 | package com.workflowfm.composer.edit.graph;
import com.workflowfm.composer.edit.UndoableSessionEdit;
import com.workflowfm.composer.exceptions.ExceptionHandler;
import com.workflowfm.composer.processes.ui.ProcessGraph;
import com.workflowfm.composer.session.CompositionSession;
public abstract class UndoableGraphEdit ... | 22.863636 | 138 | 0.742876 |
66a7e60f48a62d6e891f406dc23242ddad9bd050 | 403 | package com.moon.data.manager;
import com.moon.data.Record;
import com.moon.data.accessor.BaseAccessor;
import com.moon.data.accessor.DataAccessor;
/**
* 文档参考{@link com.moon.data.accessor.BaseAccessor}和{@link DataAccessor}
*
* @author moonsky
* @see com.moon.data.accessor.BaseAccessor
* @see DataAccessor
*/
pub... | 26.866667 | 85 | 0.759305 |
27a4fb6877504232f114a920a05236e7438605e6 | 4,134 | package de.kopis.timeclicker.model;
import java.time.Duration;
import java.time.temporal.ChronoUnit;
import java.util.Calendar;
import java.util.Date;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.fail;
public class MonthlyTimeSumTest extends AbstractTimeEntryTes... | 34.165289 | 130 | 0.711901 |
7d9648a241a3d1a171a8e5d3a4e958e29a504337 | 355 | package youyihj.zenutils.api.command;
import net.minecraft.command.ICommand;
import stanhebben.zenscript.annotations.ZenMethod;
/**
* @author youyihj
*/
@SuppressWarnings("unused")
public interface IZenCommand extends ICommand {
@ZenMethod
default void register() {
ZenCommandRegistrar.zenCommandMap.... | 22.1875 | 68 | 0.743662 |
a599e7e9795e87cd228165830189ac213abb3a41 | 234 | package com.maiko.estruturadados.vetor.teste;
import com.maiko.estruturadados.vetor.Vetor;
public class Aula3 {
public static void main(String[] args) {
Vetor vetor = new Vetor(5);
vetor.adiciona("elemento 1");
}
}
| 14.625 | 45 | 0.700855 |
ebfa0104a1616c8efb0f4332dd7202ca26ed8f3b | 19,342 | /**
*/
package apshardwareoptions.util;
import apshardwareoptions.*;
import apsoptions.APSReqOption;
import de.uka.ipd.sdq.identifier.Identifier;
import options.Option;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import relations.Alterna... | 40.464435 | 118 | 0.715283 |
a6f99e3e15126dbf282de7a9ff90b4cd8267edd8 | 2,389 | package wb.t20181115;
import java.util.ArrayList;
import java.util.List;
import charlotte.tools.BinTools;
import charlotte.tools.SecurityTools;
import charlotte.tools.StringTools;
public class Test0001 {
public static void main(String[] args) {
try {
test01();
test02();
System.out.println("OK!");
}
... | 24.377551 | 108 | 0.623273 |
aa439a4ded5a21dcfd1b0cdd740846adc4bf7684 | 2,456 | package com.lachesis.mnisqm.module.research.domain;
public class ResearchPaper {
private Long seqId;
private String deptCode;
private String paperName;
private String author;
private String publictionName;
private String publictionNo;
private Integer wordsNumber;
private String ... | 19.806452 | 58 | 0.646987 |
42763e919227b79c585a959d67fbe36674fbdc6a | 2,436 | /*********************************************
* Concurrent Socket Server
*
* ServerMessage.java
* Connection messages and server errors
* @author Ethan Hannen
* @author Douglas McBride
**********************************************/
import java.util.concurrent.locks.ReentrantLock;
class Colors
{
public static fin... | 25.113402 | 94 | 0.612479 |
e847fa6feb6011cdc0391730640c66893ad0e1ac | 668 | package com.ceiba.obra.servicio;
import com.ceiba.obra.puerto.repositorio.RepositorioObra;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
class ServicioEliminarObraTest {
@Test
@DisplayName("Deberia eliminar la obra llamando al repositorio")
void ... | 29.043478 | 94 | 0.770958 |
8d7411cb3159431c73524a73caead836b7cd9b7f | 2,081 | package org.talend.camel.designer.migration;
import java.util.Date;
import java.util.GregorianCalendar;
import org.eclipse.emf.common.util.EList;
import org.talend.commons.exception.PersistenceException;
import org.talend.designer.core.model.utils.emf.talendfile.ElementParameterType;
import org.talend.designer.core.m... | 35.87931 | 152 | 0.636233 |
f10ea660fc6268e87d424006e0490ab85d94460c | 2,501 | package com.adintellig.ella.model.zookeeper;
import java.sql.Timestamp;
import java.util.List;
public class Quorum {
private String host;
private String version;
private int latencyMin;
private int latencyMax;
private int latencyAvg;
private long received;
private long sent;
private int outstanding;
private ... | 18.255474 | 67 | 0.688525 |
4730f965bdcf02ee2e6118a02005d3769f63a541 | 936 | package com.sinosteel.framework.system.basic.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Select;
import com.sinosteel.framework.system.basic.domain.Organizatio... | 33.428571 | 79 | 0.771368 |
3e24fedf11572f605260446b3c3c37c253d2e62c | 3,934 | package com.agateownz.testapplication.activities;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
imp... | 35.125 | 115 | 0.697509 |
2a47f9611390e7cad4a2ea58ec57f07ac7b11d5a | 2,502 | package org.johnnei.javatorrent.internal.utp.stream;
import java.nio.ByteBuffer;
import org.junit.jupiter.api.Test;
import org.johnnei.javatorrent.internal.utp.protocol.packet.Payload;
import org.johnnei.javatorrent.internal.utp.protocol.packet.UtpHeader;
import org.johnnei.javatorrent.internal.utp.protocol.packet.U... | 47.207547 | 141 | 0.752198 |
75b0d8ec19488463a18ab2912629396e152afdfb | 314 | package husaccttest.analyse.csharp;
import husaccttest.analyse.csharp.benchmark.BenchmarkTestSuite;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import org.junit.runners.Suite.SuiteClasses;
@RunWith(Suite.class)
@SuiteClasses({
BenchmarkTestSuite.class
})
public class CSharpTestSuite {
}
| 20.933333 | 63 | 0.818471 |
3af16803b6f541bac025fe9ffea26d78fdddd1a1 | 962 | //
// Decompiled by Procyon v0.5.30
//
package com.bdoemu.gameserver.model.items.templates;
import java.sql.ResultSet;
import java.sql.SQLException;
public class ItemChangeT {
private int fromItemId;
private int fromEnchantLevel;
private int toItemId;
private int toEnchantLevel;
private int typ... | 23.463415 | 64 | 0.66632 |
b922d6c054e953156cb2b2eb6cb90547993d90a9 | 1,402 | package uk.gov.hmcts.reform.sscs.ccd.presubmit.writefinaldecision.gen;
import java.util.Arrays;
import org.junit.Assert;
import org.junit.Test;
import uk.gov.hmcts.reform.sscs.ccd.presubmit.writefinaldecision.gen.scenarios.GenScenario;
import uk.gov.hmcts.reform.sscs.model.docassembly.WriteFinalDecisionTemplateBody;
... | 40.057143 | 97 | 0.670471 |
e16323c037fd59dfa4dcdebd9c430d6cd998fa8c | 212 | package org.cytoscape.cyndex2.internal.util;
public class ServerUtil {
public static final String getDisplayUsernameHTML(final String username) {
return username != null ? username : "<i>anonymous</i>";
}
}
| 26.5 | 75 | 0.754717 |
365d00b2aa8acb558b14f5a18d32695c0c1ac984 | 229 | package seleniumeasy.action;
import net.serenitybdd.core.steps.UIInteractionSteps;
public class NavigateAction extends UIInteractionSteps {
public void to(FormPage formPage){
openPageNamed(formPage.name());
}
}
| 22.9 | 56 | 0.764192 |
4da6c18e193fdfa79b64838b1ee680d57caa337b | 5,033 | /*
* This file is part of Industrial Foregoing.
*
* Copyright 2021, Buuz135
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in the
* Software without restriction, including without limitation the righ... | 49.831683 | 224 | 0.7425 |
57db98d840fa173e31db3f342676b0329ad0f2a5 | 3,360 | package org.povworld.collection.mutable;
import javax.annotation.Nullable;
import javax.annotation.concurrent.NotThreadSafe;
import org.povworld.collection.IndexedSet;
import org.povworld.collection.common.AbstractCollectionBuilder;
import org.povworld.collection.common.PreConditions;
/**
* A generic ordered set of... | 27.540984 | 102 | 0.586607 |
6846ac6489410bdd1a278b204381dd8081d49a99 | 607 | package practice.pingpong;
import java.awt.*;
public class Ball {
private Position position;
private int d;
private Color color;
public Ball(Position position, int d, Color color) {
this.position = position;
this.d = d;
this.color = color;
}
public void move(int dx, i... | 18.393939 | 56 | 0.571664 |
c1fb45cf1aa2d4f5683286bc7179726f217fb45e | 476 | package com.github.rxyor.carp.ums.application.command.role;
import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
/**
*<p>
*
*</p>
*
* @author liuyang
* @date 2020/2/19 周三 01:20:00
* @since 1.0.0
*/
@AllArgsConstructor
@Data
public class Allo... | 17 | 59 | 0.705882 |
39d1103b6d8866747e32b869eb06c9b1a4d1da29 | 1,133 | /*
* Copyright (c) 2018-2020 ActionTech.
* License: http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0 or higher.
*/
package com.actionsky.txle.cache;
import net.sf.ehcache.CacheManager;
import org.springframework.cache.ehcache.EhCacheCacheManager;
import org.springframework.cache.ehcache.EhCacheManager... | 31.472222 | 94 | 0.772286 |
302164f50f0adee8f5c2cb39f9a08f7782d57f2e | 3,624 | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.accessservices.glossaryview.server.service;
import org.odpi.openmetadata.accessservices.glossaryview.rest.GlossaryViewEntityDetailResponse;
/**
* Server-side implementation of the Glossar... | 41.655172 | 137 | 0.69702 |
d008f2245be64a4191ada61cd02b23db704c3aee | 1,075 | package edu.matkosoric.date.time.mutations;
/*
* Code examples for Oracle Certified Professional (OCP) Exam 1Z0-819
* Java 11 SE, 2021.
* Created by © Matko Soric.
*/
import java.time.LocalDate;
import java.time.Month;
public class Mutating {
// demonstration of changes on LocalDate object
public stati... | 28.289474 | 79 | 0.67907 |
4d86c0c21e3170d25e5edc2c00a61402bb5bfaa1 | 15,093 | package trrakee.pnavw.ui.activity;
import android.Manifest;
import android.annotation.TargetApi;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import andro... | 36.02148 | 124 | 0.631551 |
c3f6fb1f8e9ddc76f04ed9f131bc036b51d837e1 | 621 | package com.wjiec.tinder.springinaction.di;
import com.wjiec.tinder.springinaction.di.knight.BraveKnight;
import com.wjiec.tinder.springinaction.di.knight.Knight;
import com.wjiec.tinder.springinaction.di.quest.Quest;
import com.wjiec.tinder.springinaction.di.quest.SlayDragonQuest;
import org.springframework.context.a... | 25.875 | 64 | 0.761675 |
d203c31aa526b8042447035cce511e379aa98ecf | 1,891 | package com.doodlemobile.mobilesafe.receiver;
import android.app.admin.DevicePolicyManager;
import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.media.MediaPlayer;
import android.telephony.SmsMessage;
import com.d... | 30.5 | 72 | 0.728186 |
211a8567e839fc325e118670b6ea560809d86aee | 2,109 | package cn.home.modules.webmvc.exception;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springfram... | 29.704225 | 111 | 0.742058 |
1765daa65097f0fda2872afdfc5b94c3c4307661 | 4,955 | package edu.uw.tacoma.piggy.model.dao;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import java.util.ArrayList;
import edu.uw.tacoma.piggy.PiggyUtilities;
import edu.uw.tacoma.piggy.model.entity.TaskMemberEntity;
... | 28.153409 | 85 | 0.668819 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.