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 |
|---|---|---|---|---|---|
32add08fd299a2f631054585019c5d3437eb2e27 | 683 | package generated;
import java.util.*;
import recaf.core.cps.StmtJavaCPS;
public class TestFor_noBreak {
private StmtJavaCPS<Integer> alg = new StmtJavaCPS<Integer>() {};
Integer meth() {
return (Integer )alg.Method(alg.Decl(() -> 0, (recaf.core.Ref<Integer > sum) -> {return alg.Decl(() -> Arrays.asList(1,2... | 42.6875 | 364 | 0.644217 |
95912731245e164ecf7b231b688a82eebb31f98a | 1,011 | /*
* 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 demo;
import java.util.Map;
import java.util.stream.Stream;
/**
*
* @author hantsy
*/
public class StreamSample {
pub... | 26.605263 | 82 | 0.55094 |
3dc3871177d5ca7cb1e5292e70b31a27bff2182f | 6,547 | /*
* Copyright (c) 2015-2019 Rocket Partners, LLC
* https://github.com/inversion-api
*
* 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
*
... | 25.474708 | 126 | 0.559493 |
8610cc35e761a68ff102d50ff6455128cb837830 | 1,547 | package pw.cdmi.msm.geo.repositories.jpa;
import org.springframework.data.mongodb.repository.Query;
import org.springframework.data.repository.query.Param;
import pw.cdmi.msm.geo.model.entity.Town;
import pw.cdmi.msm.geo.repositories.TownRepository;
public interface JpaTownRepository extends TownRepository {... | 39.666667 | 98 | 0.710407 |
7af86df8f3bb5e02e90ef7d9ffc8ec62b42631e8 | 3,470 | /*
* The MIT License
*
* Copyright (c) 2016 Steven G. Brown
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, co... | 36.914894 | 100 | 0.7317 |
ebe569da62596914683aff5aca865a284be94327 | 1,312 | package frc.robot;
import java.beans.Encoder;
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
public class Dashboard {
public Dashboard() {
display();
}
public void display() {
intakeInfo();
feederInfo();
climberInfo();
shooterInfo();
visionI... | 25.230769 | 87 | 0.63872 |
ac27434d479a32cb28042b8a4bc61b26529cf2da | 732 | package in.hocg.sso2.server.sample;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UsernameNotFoundException;
import org.springframework.stereotype.Component;
import java.util.Collections... | 29.28 | 113 | 0.795082 |
1c43a38f52e48fd6419ee38758fa406ec571bb96 | 12,870 | package ch.ahdis.matchbox.provider;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.util.concurrent.atomic.AtomicLong;
import org.hl7.fhir.convertors.VersionConvert... | 35.163934 | 153 | 0.714219 |
03c77cf2787ea5a03dc2a5b059e19978d878d38e | 1,905 | package org.dstadler.poi.fuzz;
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.LogManager;
import org.... | 32.288136 | 118 | 0.753806 |
34cff48a1b19c17ea954306d41c05ff9c9f10bb4 | 1,640 | package com.mvp;
import android.os.Handler;
import android.os.Looper;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.Executors;
public abstract class MvpPresenterFactory<V extends MvpView, T extends MvpPresenter<V>> implements IMvpPresenterFactor... | 37.272727 | 127 | 0.64878 |
018c8e96c593ca0fc28ce79e7ed8414b3cfc2454 | 1,489 | package com.deadmandungeons.deadmanplugin.command;
import org.bukkit.command.CommandSender;
/**
* This interface defines a Command. Each Command must be registered through the plugin's {@link DeadmanExecutor} instance.
* A standard Command must also define a {@link CommandInfo} annotation which tells the executor t... | 53.178571 | 125 | 0.751511 |
0d822755efa9f1d5aebe2713502a8882b6e95969 | 1,713 | /**
* Copyright 2011, Big Switch Networks, Inc.
* Originally created by David Erickson, Stanford University
*
* 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:/... | 31.145455 | 78 | 0.649737 |
07b566f4e46c1cbf36ed1f56ba08a30a141d1cca | 1,905 | package io.searchbox.cluster;
import com.google.common.collect.ImmutableMap;
import io.searchbox.client.JestResult;
import io.searchbox.common.AbstractIntegrationTest;
import io.searchbox.indices.reindex.Reindex;
import org.elasticsearch.index.reindex.ReindexPlugin;
import org.elasticsearch.plugins.Plugin;
import org.... | 38.1 | 107 | 0.730184 |
8d009a3a3b1f2d7c4968f932d56412b8d3a36691 | 8,653 | package org.sagebionetworks.bridge.models.upload;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertNull;
import static org.testng.Assert.assertSame;
import static org.testng.Assert.assertTrue;
import java.util.ArrayList;
import java.util.... | 40.816038 | 116 | 0.683694 |
4bdb712a4569eadcc6ebac1df7f8430827932f2f | 13,920 | /*
* 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 net.purnama.gui.inner.detail;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.sun.jersey.api.client.ClientResp... | 38.882682 | 107 | 0.579095 |
899d2f85d119f8fbb64fd4f7a982993dae273d8f | 5,978 | package pages;
import org.openqa.selenium.By;
import org.openqa.selenium.JavascriptExecutor;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.ui.ExpectedConditions;
import com.aventstack.extentreports.ExtentTest;
import com.aventstack.extentreports.MediaE... | 31.62963 | 250 | 0.702911 |
28c5b9a1890978d5883bb2c4342c7f6cceee6264 | 616 | package com.yetanotherx.mapnode.converter;
import java.util.Collection;
/**
* Converts a Collection<Object> of values into a Collection<T> instance.
*
* @author yetanotherx
* @param <T>
*/
public class CollectionConverter<T> {
/**
* Converts each value of the collection using the given converter.
... | 23.692308 | 106 | 0.644481 |
d18f66996ac79d5f2f149bace394e127e9c6a81f | 174 | package io.aftersound.weave.process.pipeline;
public class PipelineNotExistException extends Exception {
public PipelineNotExistException() {
super();
}
}
| 17.4 | 58 | 0.729885 |
b7b89f3f11af054f26e71ea01d508ddffbab05b3 | 2,125 | package com.didi.carmate.dreambox.core.action;
import com.didi.carmate.dreambox.core.base.DBAction;
import com.didi.carmate.dreambox.core.base.DBConstants;
import com.didi.carmate.dreambox.core.base.DBContext;
import com.didi.carmate.dreambox.core.base.INodeCreator;
import com.didi.carmate.dreambox.core.utils.DBLogger... | 30.357143 | 65 | 0.568941 |
0a604723aeb2be8a0390b1facbd807cfe8717c91 | 668 | package com.thoughtworks.gauge.test.common;
public class ExecutionSummary {
private boolean Success;
private String command;
private String stdout;
private String stderr;
public ExecutionSummary(String command, boolean success, String stdout, String stderr) {
this.command = command;
... | 20.242424 | 92 | 0.63024 |
6b3cddb1ce849f6765d147b9b985a867ac33314a | 1,619 | /** EnumBody = "{" { EnumeratorDeclarationList } [","]
* [ ";" {ClassBodyDeclaration} ] "}"
*/
List<JCTree> enumBody(Name enumName) {
DEBUG.P(this,"enumBody(Name enumName)");
accept(LBRACE);
ListBuffer<JCTree> defs = new ListBuffer<JCTree>();
if (S.token()... | 41.512821 | 73 | 0.437307 |
2f55594dcfd893ca0c65d849a395298e887f9bd3 | 19,959 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package userinterface.HospitalAdministrativeRole;
import Business.Directory.BirthMother;
import Business.Enterprise.Enterprise;
import Business.Organization.CounselorOrganization;
import Business.Organization.Organizati... | 50.022556 | 240 | 0.651385 |
ae5ae15b9272663b91991a629a1e3134ab619741 | 1,618 | import java.util.Scanner;
import warehouse.Shelving;
import exercise.Replication;
import java.lang.String;
import farm.Director;
public class Rhombohedral {
static double kilo = 0.7824114257027354;
String q = "";
Director r = null;
Director ora = null;
Director righ = null;
public static synchronized void... | 29.418182 | 99 | 0.635352 |
07fe52253343b7f5ed0b4274336c820f0cc47c6e | 1,766 | package com.sillykid.app.entity;
import com.common.cklibrary.entity.BaseResult;
import java.util.List;
/**
* Created by Admin on 2017/11/8.
*/
public class AllCountryBean extends BaseResult<List<AllCountryBean.ResultBean>> {
public static class ResultBean {
/**
* id : 8
* parent_id... | 19.622222 | 81 | 0.50453 |
be23445868864ffd6a1a4367b49fb85f7a059700 | 3,680 | /*
* Copyright (C) 2012-2016 Facebook, 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 ag... | 32.280702 | 112 | 0.616848 |
8a23698fc28df4c6144c899081095795da70c432 | 90 | package cn.lliiooll.opq.core.data.message;
public enum MessageFrom {
GROUP,FRIEND;
}
| 15 | 42 | 0.744444 |
cd0cb1a89c62c5a52328e986e3cfc4f2ad00de09 | 787 | package Greedy.AbsoluteInequation;
import java.util.Arrays;
/**
* 仓库选址
* 在一条数轴上有 N 家商店,它们的坐标分别为 A1~AN。
* 求把货仓建在何处,可以使得货仓到每家商店的距离之和最小。
*
* 绝对值不等式
* f(x) = |x - A1| + |x - A2| + ... + |x - An|
*
* 最小值应该是 x 取 A1, A2, ..., An 的中位数。如果 n 为偶数,则 x 取 中间两个数之间的任意一点
*
* 证明:
* 将 n 个数分组
* f(x) = (|x - A1| + |x - An|) +... | 19.195122 | 63 | 0.466328 |
6bf61968db707e1421db4fc2d42a090f4774f31a | 994 | package com.veben.microservices.developerinformation.ext.db;
import com.veben.microservices.developerinformation.domain.DeveloperInformation;
import com.veben.microservices.developerinformation.domain.DeveloperInformationRepository;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.Mon... | 34.275862 | 91 | 0.815895 |
08ab415c73e5104e3426b2c15c104254d31b2565 | 16,068 | /*
* Copyright (C) 2016 Jorge Ruesga
*
* 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... | 39.870968 | 110 | 0.455502 |
2ee81dc3326e4dc118832c982f0d02b114bc1653 | 975 | package nu.nerd.entitymeta;
import org.bukkit.event.player.PlayerInteractEntityEvent;
// ----------------------------------------------------------------------------
/**
* Records pending processing of a PlayerInteractEntityEvent for a specific
* player.
*
* An implementation of this interface is attached to a p... | 37.5 | 94 | 0.617436 |
07909fbe9fcd0d00e9e96e25f0c458cdb94da7b3 | 2,371 | /* Copyright 2011-2012 Netherlands Forensic Institute and
Centrum Wiskunde & Informatica
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... | 43.109091 | 192 | 0.688739 |
5f7d2117c99464b018fff61c8080c68f0ad47f25 | 4,291 | package xyz.cafeconleche.web.chica.app.config.amqp;
import org.springframework.amqp.core.AcknowledgeMode;
import org.springframework.amqp.core.AmqpAdmin;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframe... | 39.366972 | 142 | 0.793288 |
a33551704c8c6d83ca7b70432e7a02e55660fcbe | 5,049 | package io.opensphere.core.util.lang;
import java.io.File;
import java.io.IOException;
import java.net.JarURLConnection;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Enumeration;
import ja... | 32.574194 | 111 | 0.476728 |
b65d29c7b9fe86736b0b7c313536f1f7a587ce5a | 1,967 | package parser.multipleturtleparsing;
import java.util.ArrayList;
import java.util.List;
import java.util.Queue;
public class StringListCreator {
private List<String> toParse;
private List<List<String>> sublists;
private final String BREAKPOINT_1 = "ask";
private final String BREAKPOINT_2 = "tell";
private... | 21.380435 | 78 | 0.657346 |
e20b884d947d695b228d40176d9d5711c1201c1a | 550 | package io.github.harvies.charon.tests.spring.inject.staticfactory;
import io.github.harvies.charon.tests.spring.inject.FactoryDao;
import lombok.Data;
/**
* 静态工厂注入
* <p>
* 静态工厂顾名思义,就是通过调用静态工厂的方法来获取自己需要的对象,为了让 spring 管理所
* 有对象,我们不能直接通过"工程类.静态方法()"来获取对象,而是依然通过 spring 注入的形式获
* 取:
*
* @author harvies
*/
@Data
pu... | 22.916667 | 67 | 0.743636 |
a591a7d4ae93b124d76b6119b4e4d9290b59c15c | 1,552 | package gate.base.cache;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import gate.concurrent.ThreadFactoryImpl;
import gate.server.Server4Terminal;
/**
* @author 宋建涛 E-mail:... | 27.22807 | 111 | 0.728093 |
ad7775a373b30df9ca3c04bb3a5694249e382a2e | 2,279 | package us.fjj.spring.learning.springandmybatisusage.multidatasource;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotati... | 31.652778 | 138 | 0.793769 |
da0c880e1b30a309c7030fa433cf18b00a5c233d | 7,369 | package com.auth0.jwt.impl;
import com.auth0.jwt.interfaces.Claim;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fasterxml.jackson.databind.node.TextNode;
import org.hamcrest.collection.IsCollectionWith... | 37.789744 | 155 | 0.676754 |
d7d441707ecf4f44151054d0423cd3ee3024b461 | 38,729 | /*
* This file was automatically generated by EvoSuite
* Fri Aug 24 09:56:06 GMT 2018
*/
package com.ib.client;
import org.junit.Test;
import static org.junit.Assert.*;
import static org.evosuite.runtime.EvoAssertions.*;
import com.ib.client.Contract;
import com.ib.client.ContractDetails;
import com.ib.client.EWra... | 53.493094 | 626 | 0.662527 |
dc52c6045eb238b5d0f78ee1ada466931ac0e125 | 287 | package com.batch.android.messaging.view.styled;
import java.util.Map;
/**
* Interface describing a styleable view.
* A styleable view will understand CSS-like rules and apply them on itself.
*
*/
public interface Styleable
{
void applyStyleRules(Map<String, String> rules);
}
| 20.5 | 76 | 0.745645 |
5ff3cd679180dd1eafc0af1a2ee2df28bc1cbac2 | 1,187 | package com.spiderrobotman.Gamemode4Engine.command;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.List;
/**
* Project: Gamemode4Engine
* A... | 28.95122 | 99 | 0.600674 |
197239a8aea0b2dae452f8a8c5018ef0836dffc8 | 3,157 | package com.kahveciefendi.shop.models;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import... | 22.076923 | 90 | 0.706684 |
ef762c1a6704fa598928bf8c885fa8fc0f095ffc | 923 | package io.frictionlessdata.tableschema.beans;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import java.math.BigDecimal;
import java.time.Year;
@JsonPropertyOrder({
"countryName", "countryCode", "year", "amount"
})
public class GrossDomestic... | 23.075 | 58 | 0.619718 |
55e63cff3953a08ba0e881f4200f832466d5b65e | 5,666 | /*
* Copyright 2015 Open mHealth
*
* 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... | 44.614173 | 113 | 0.680904 |
69aa420fa1fa093756aa627c483586032f9fe6bb | 902 | package servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import model.Employee;
@WebServlet("/CreateConfirm")
publ... | 29.096774 | 80 | 0.773836 |
08561ab4ffc5fea16ec7c969185dff35592bbc97 | 12,192 | import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.InputMismatchException;
import java.util.MissingFormatArgumentException;
import java.util.Scanner;
public class Aplicacao{
public static void main(String[] args){
Scanner input = new Scanner(System.in);
Banco banco = new B... | 60.356436 | 249 | 0.492454 |
6b8724f028796cd766fa1cfc5cc9a2dc6d55bc2e | 2,092 | package com.utopia.upload.upload;
import android.util.Base64;
import com.utopia.upload.bean.UploadFile;
import java.io.UnsupportedEncodingException;
import java.net.FileNameMap;
import java.net.URLConnection;
import java.net.URLEncoder;
import java.util.List;
import java.util.Map;
import okhttp3.MediaType;
import okh... | 34.866667 | 123 | 0.640535 |
82b653ed96eb1977de7bf04ead8aca6b96067dfc | 4,498 | package org.acelera.saopaulo.soccer;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import static java.util.stream.Collectors.joining;
import static org.acelera.saopaulo.soccer.Po... | 31.02069 | 89 | 0.638284 |
3914c401df9628cf5212747bd5131198c1b8b46a | 5,237 | package ai.labs.resources.rest.regulardictionary;
import ai.labs.resources.rest.IRestVersionInfo;
import ai.labs.resources.rest.documentdescriptor.model.DocumentDescriptor;
import ai.labs.resources.rest.method.PATCH;
import ai.labs.resources.rest.patch.PatchInstruction;
import ai.labs.resources.rest.regulardictionary.... | 48.490741 | 150 | 0.582395 |
99a5110d8969043ff2d5b4c426334f909ff8022d | 3,103 | /*
* JBoss, Home of Professional Open Source.
* Copyright 2006, Red Hat Middleware LLC, and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify i... | 32.663158 | 103 | 0.693522 |
33daa82dea04876222166788bb0ca4c5e36510ac | 3,209 | package xdb.layout;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import java.util.List;
import xdb.layout.NodeInfo;
import xdb.layout.NodeInfoManager;
import junit.framework.TestCase;
public class NodeInfoManagerTest extends TestCase {
private static final String TEST_ROOT = deriveTestRo... | 34.505376 | 86 | 0.614522 |
f2b42b59c8128d73ebdb19310b6a3ea8469536d5 | 798 | package hr.fer.oop.swing2.properties.console;
import java.beans.PropertyChangeListener;
public class Main {
public static void main(String[] args) {
A a = new A();
PropertyChangeListener listener = evt -> {
System.out.printf("\tProperty %s changed from %d to %d%n",
evt.getPropertyName(),
evt.getO... | 23.470588 | 62 | 0.660401 |
9c299a53ac3465cedc0fc7fb16b066bbaee4d887 | 408 | package com.jesen.customglide;
import android.app.Application;
public class BaseApplication extends Application {
private static Application INSTANCE;
@Override
public void onCreate() {
super.onCreate();
INSTANCE = this;
}
public static Application getApplication(){
if ... | 17.73913 | 50 | 0.625 |
a333564445edd63e3e327bca38184365e6a39cf0 | 2,658 | package owl.translations;
import java.util.ArrayList;
import java.util.BitSet;
import java.util.Collections;
import java.util.Set;
import java.util.stream.Collectors;
import owl.ltl.Conjunction;
import owl.ltl.Disjunction;
import owl.ltl.EquivalenceClass;
import owl.ltl.Formula;
import owl.ltl.SyntacticFragments;
impo... | 34.973684 | 99 | 0.714447 |
4303f19b98527b4f6b1c313dcba3e9e82e0b05d2 | 509 | package com.atguigu.gulimall.pms.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.gulimall.pms.entity.SkuSaleAttrValueEntity;
import com.atguigu.gulimall.commons.bean.PageVo;
import com.atguigu.gulimall.commons.bean.QueryCondition;
/**
* sku销售属性&值
*
* @author zhangwenliu
* ... | 24.238095 | 83 | 0.791749 |
9542593d0e4e5919e9ee1a7656a0eb0140593e65 | 339 | package Demos.Gagarin.dubinCurve;
public class spookyPathing {
static Node start = new Node(2, 3, 0);
static Node end = new Node(0,0, 180);
static curveProcessor curve = new curveProcessor(null);
public static void main(String args[]) {
curve.findCurves(start, end);
curve.telemtry(s... | 22.6 | 59 | 0.657817 |
7b826f0d23422120181cb54769236767e8904284 | 2,172 | package com.portfolio.market.springmarket.ControllerTest;
import com.portfolio.market.springmarket.entities.Category;
import com.portfolio.market.springmarket.repository.CategoryRepository;
import com.portfolio.market.springmarket.resources.CategoryResource;
import com.portfolio.market.springmarket.service.CategorySer... | 32.41791 | 148 | 0.741252 |
b15b82c7610e8228ad42e4b97ceea99c53bb655c | 1,202 | package com.jfilipczyk.lessonreport.model;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class EventAggregator {
public List<GroupedEvent> aggregate(List<Event> events) {
HashMap<String, GroupedEvent> groupedEventsMap = events.stream()
.collect(
... | 36.424242 | 104 | 0.543261 |
147440ea3ef913b6919029dfd376314089d38479 | 461 | package com.adafruit.pihat;
import com.adafruit.PCA9685;
import com.adafruit.pihat.impl.MotorHatDCMotorImpl;
import com.pi4j.io.i2c.I2CBus;
import java.io.IOException;
public class MotorHat {
PCA9685 device = null;
public MotorHat(I2CBus bus, int address) throws IOException, InterruptedException {
device = ... | 23.05 | 85 | 0.75705 |
b33aad03a990a9f589d235495bed468650976581 | 7,354 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkindustry_1_0.models;
import com.aliyun.tea.*;
public class IndustryManufactureFeeListGetResponseBody extends TeaModel {
@NameInMap("list")
public java.util.List<IndustryManufactureFeeListGetResponseBodyList> list;
@NameInMa... | 29.18254 | 130 | 0.625374 |
5c4e0a57be9a1d47ecd3d076141f80907a5948da | 1,772 | package com.asuka.common.security.handler;
import org.springframework.security.access.ConfigAttribute;
import org.springframework.security.access.SecurityConfig;
import org.springframework.security.web.FilterInvocation;
import org.springframework.security.web.access.intercept.FilterInvocationSecurityMetadataSource;
im... | 31.087719 | 96 | 0.700903 |
86d46fe2a2decb1834ccb1ecd1ee6f404dc25254 | 779 | package com.erclab.bean;
import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
public class Menu implements Serializable {
private String title;
private String price;
private String rating;
public Menu() {}
public Menu(String title, String price) {
this.title ... | 17.704545 | 50 | 0.613607 |
5982ce97831efecff06b624f710460cad505f7a6 | 5,339 | package com.douwe.notes.resource.impl;
import com.douwe.notes.entities.Niveau;
import com.douwe.notes.entities.Option;
import com.douwe.notes.entities.Parcours;
import com.douwe.notes.entities.Programme;
import com.douwe.notes.resource.IProgrammeResource;
import com.douwe.notes.service.IParcoursService;
import com.dou... | 35.593333 | 106 | 0.656303 |
0b9bbdbc5d9dbcbf3e218b88f84bd84059bb1f02 | 1,879 | package io.wolfbeacon.server.model;
import javax.persistence.*;
/**
* Created by Aaron on 22/05/2016.
*/
@Entity
@Table(name = "mailing_list")
public class Email implements DomainModel<Long> {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
private String emailAddress;
p... | 22.369048 | 95 | 0.579031 |
f029f8567ce2c031e40a12fd18185fba67bb7acf | 1,831 | package org.openrdf.repository.object.codegen;
import java.io.File;
import java.io.FileWriter;
import org.openrdf.repository.object.base.CodeGenTestCase;
public class MixedCaseOneOfTest extends CodeGenTestCase {
public void test() throws Exception {
String RDF_XML = "<rdf:RDF xmlns:rdf='http://www.w3.o... | 43.595238 | 185 | 0.677772 |
71f335ec3fb987b4fc4cd16cf1c0df8779aafa3f | 8,353 | package dssc.exam.draughts.core;
import dssc.exam.draughts.IOInterfaces.ScannerPlayerInput;
import dssc.exam.draughts.exceptions.CannotMoveException;
import dssc.exam.draughts.exceptions.SurrenderException;
import dssc.exam.draughts.utilities.Color;
import org.junit.jupiter.api.Test;
import java.awt.*;
import java.io... | 40.746341 | 113 | 0.679277 |
727d512e744dad1226aab31206805b3c0db67335 | 259 | package mg.blog.dto;
import lombok.Data;
import java.time.LocalDateTime;
@Data
public class CommentDto {
private Long id;
private String text;
//private LocalUser author;
//private Article article;
private LocalDateTime lastUpdated;
}
| 16.1875 | 38 | 0.725869 |
b651ef78b93b545d2cee593409f30d7e4c2d669c | 45,641 | /**
* Copyright (c) 2016, The National Archives <pronom@nationalarchives.gov.uk>
* 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 abo... | 48.657783 | 163 | 0.609408 |
949b2e4fa6b9f76c6d09b1c5980fba401cbf28d8 | 2,390 | package org.oguz.spring.aop.camera;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.AfterReturning;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import or... | 23.203883 | 91 | 0.710042 |
c9968b5dd72f60d8c31d8e13cb7b078ff9575730 | 14,908 | /*
* Copyright 2020 Google LLC
*
* 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 ... | 57.782946 | 98 | 0.713442 |
164889bb6766ad80c9a6b45f5c51eee563be8d30 | 1,473 | package org.simpleframework.http.validate;
import java.net.InetSocketAddress;
import java.net.Socket;
import org.simpleframework.common.buffer.Buffer;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
import org.simpleframework.xml.Transient;
import... | 21.985075 | 58 | 0.678887 |
4e83773cc83aa55c4c65a77c8753066b23ba7e1c | 211 | package br.com.marcosatanaka.easypoi.model;
import lombok.Getter;
@Getter
public class EnumNomeRelatorio {
public static String RELATORIO_REPIQUE_ATENDENTE = "Relatório Repique por Atendente";
}
| 19.181818 | 88 | 0.767773 |
cbde26051cf004add3cddb6cada4ee0aefdc4866 | 2,172 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.internal.ads;
// Referenced classes of package com.google.android.gms.internal.ads:
// zzfs, bhi
public final class bhh... | 28.207792 | 115 | 0.48849 |
541aea6334d0af40caab2a1f9f3a40c7e8c48d2c | 860 | package com.example.lyw.festval_sms.bean;
import java.util.Date;
/**
* Created by LYW on 2016/11/2.
*/
public class Festival_Bean {
private int id;
private String name;
private Date date;
private String des_name;
public Festival_Bean(int id,String name){
this.id = id;
this.nam... | 16.538462 | 46 | 0.57093 |
644f51422ef092ddbd4491199866ca404525c62d | 7,164 | package org.sagebionetworks.repo.manager.entity;
import static org.junit.Assert.assertEquals;
import static org.mockito.Matchers.any;
import static org.mockito.Mockito.never;
import static org.mockito.Mockito.times;
import static org.mockito.Mockito.verify;
import static org.mockito.Mockito.when;
import java... | 35.117647 | 121 | 0.775126 |
2d080d94b4c5307de98e8316e43a6e27f48a8876 | 1,380 | /**
*
*/
package io.sipstack;
import io.sipstack.core.Utils;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import java.time.Duration;
import static org.hamcrest.core.Is.is;
import static org.junit.Assert.*;
/**
* @author jonas
*
*/
public class UtilsTest {
/**
* @throws jav... | 26.037736 | 91 | 0.649275 |
6f7f108d79c5576e225b960830b6f2d87349e512 | 3,946 | package com.google.android.gms.games.snapshot;
import android.os.Parcel;
import android.os.ParcelFileDescriptor;
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
import com.google.android.gms.common.internal.zzx;
import com.google.android.gms.drive.Contents;
import com.google.android.gms.games.... | 34.614035 | 123 | 0.649265 |
f7f2d5ff3c14bdd60a70a5c53f4f6e1f86865ff0 | 47,754 | package l2f.gameserver.model.pledge;
import java.io.Serializable;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Comparator;
import java.util.Itera... | 24.41411 | 290 | 0.689408 |
2d1ac40fa0d8e537bb8607e0fe3dafd8489bc2c8 | 237 | package com.foo.bar.repository;
import org.springframework.data.repository.PagingAndSortingRepository;
import com.foo.bar.entity.Employee;
public interface EmployeeRepository extends PagingAndSortingRepository<Employee, Integer> {
}
| 23.7 | 91 | 0.843882 |
83a8a0248afbb2bd3166a5eb0feb6f53035bdc1d | 2,172 | package nam.model.util;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import org.apache.commons.lang.StringEscapeUtils;
import org.aries.util.BaseUtil;
import nam.model.Tra... | 28.96 | 107 | 0.758748 |
7bd2b4c75437d58d3985a2071b7168ffeb22feaa | 3,105 | /*
Copyright 2013 Yen Pai ypai@reign.io
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, ... | 33.387097 | 111 | 0.688567 |
0a8111623deebd41a12b4554fcfc7e48c4ccffd2 | 824 | package com.megait.artrade.offerprice;
import com.megait.artrade.action.Auction;
import com.megait.artrade.member.Member;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.ColumnDefault;
import org.hibernate.annotations.Dyna... | 17.531915 | 47 | 0.775485 |
d9bda7e55fbae9349798f73171eb185814533004 | 1,574 | package com.micro.auth.service.impl;
import com.micro.auth.entity.SysUser;
import com.micro.auth.mapper.SysUserMapper;
import com.micro.auth.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AccountExpiredException;
import org.spr... | 39.35 | 93 | 0.753494 |
74df0725c15beacd0e56740f98a5dc9aa8324043 | 2,056 | package net.ttddyy.dsproxy.proxy;
import net.ttddyy.dsproxy.ConnectionInfo;
import net.ttddyy.dsproxy.listener.MethodExecutionListenerUtils;
import java.lang.reflect.Method;
import java.sql.ResultSet;
/**
* Simply delegate method calls to the actual {@link ResultSet}.
*
* @author Tadaya Tsuyukubo
* @since 1.4.3
... | 36.070175 | 115 | 0.689689 |
782c7187c95043503be581f3218d35120bf36974 | 6,479 | /*
* 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 ia.base.metier.algorithmes;
import ia.base.metier.TypeMouvement;
import static ia.base.metier.TypeMouvement.*;
import... | 49.838462 | 124 | 0.652107 |
e1bed1d4ad32f1bced03f4809121b62c4b799269 | 2,672 | package knf.kuma.videoservers;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public abstract class Server implements Comparable<Server> {
int TIMEOUT = 10000;
C... | 28.126316 | 75 | 0.602919 |
58b6b7011361a16afe654331673854cd8330b750 | 3,247 | package org.zerock.mreview.security.service;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.oauth2.client.userin... | 31.221154 | 100 | 0.65907 |
4cb5a87153864f465ede782d5f268c8ee8fe686c | 277 | package de.hhu.propra.link.repositories;
import de.hhu.propra.link.entities.Link;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface LinkRepository extends CrudRepository<Link, String> {
} | 30.777778 | 70 | 0.841155 |
92ea69e0a3d17fab04e189d70396889b6befc649 | 4,874 | /*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this fi... | 53.56044 | 133 | 0.750308 |
84eeeb5ab1fd1be4a93ca4052cd5097773e12b54 | 106 | package org.batfish.representation.cisco;
public enum PolicyMapClassAction {
DROP,
INSPECT,
PASS
}
| 13.25 | 41 | 0.764151 |
c4895ac8fb905ea6ff0afacf9070d4c84bbf263f | 10,204 | package com.googlecode.android_scripting;
import com.sun.javadoc.AnnotationDesc;
import com.sun.javadoc.AnnotationDesc.ElementValuePair;
import com.sun.javadoc.ClassDoc;
import com.sun.javadoc.Doc;
import com.sun.javadoc.MethodDoc;
import com.sun.javadoc.Parameter;
import com.sun.javadoc.ProgramElementDoc;
im... | 31.204893 | 101 | 0.584967 |
8ddcfc5ee18fab46efea7d53340331c43af86aed | 558 | package com.annimon.stream.doublestreamtests;
import com.annimon.stream.DoubleStream;
import org.junit.Test;
import static org.hamcrest.Matchers.is;
import static org.junit.Assert.assertThat;
public final class ToArrayTest {
@Test
public void testToArray() {
assertThat(DoubleStream.of(0.012, 10.347, ... | 26.571429 | 80 | 0.677419 |
f73bbc8d9c16a71809f11e3fab9f73b3080e3293 | 1,841 | /*
* Copyright 2014-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ap... | 27.073529 | 114 | 0.763172 |
a3c573a0e856b8ed0b090d7860be3d404742675a | 229 | package cn.znnine.netty.protocol.http.xml.pojo;
/**
* 邮寄方式
*
* @author lihongjian
* @since 2021/11/7
*/
public enum Shipping {
STANDARD_MAIL, PRIORITY_MAIL, INTERNATIONAL_MAIL, DOMESTIC_EXPRESS, INTERNATIONAL_EXPRESS
}
| 19.083333 | 93 | 0.742358 |
70720155be38e94c0e5c321858acc7d2a399c592 | 274 | package br.com.uol.pagseguro.api.common.domain;
/**
* Interface for phone account
*
* @author PagSeguro Internet Ltda.
*/
public interface PhoneAccount extends Phone {
/**
* Get type of phone account
*
* @return Type
*/
String getType();
}
| 16.117647 | 47 | 0.631387 |
42762bd8b963387b5862f318797603c4b33a1c92 | 5,131 | package cn.weekdragon.xspider.controller.admin;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRe... | 35.881119 | 147 | 0.74274 |
7a5b385462e686af7a08a9b6ff7369ac27286523 | 3,377 | /*
* 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 n... | 37.10989 | 106 | 0.702102 |
d7cb152f63adc61d6a1d9f77dc890ac91975d262 | 9,095 | /**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech) (3.3.4).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.github.asyncmc.mojang.api.spring.api;
import com.github.asyncmc.mojang.api.spring.model.Error;
import java.util.List;
import com.... | 57.563291 | 427 | 0.705553 |
3ea5e0be868737932fa629b0f2043c979fd2d7c8 | 1,352 | package com.yundian.blackcard.android.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
/**
* @author : created by chuangWu
* @version : 0.01
* @email : chuangwu127@gmail.com
* @created time : 2017-06-07 13:40
* @description : none
* @for your attention : none
* @revise : none
*... | 30.044444 | 71 | 0.608728 |
3dda47875a26b97f887ef16d0bb6e08d75767f2b | 710 | package org.shanhaijing.example.controller;
import org.shanhaijing.example.service.ExampleService;
import org.shanhaijing.framework.beans.annotation.Autowirted;
import org.shanhaijing.framework.beans.annotation.Controller;
import org.shanhaijing.framework.beans.annotation.RequestParam;
import org.shanhaijing.framework... | 30.869565 | 67 | 0.814085 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.