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 |
|---|---|---|---|---|---|
455f59a80d5940945eb9c05314e32e0d07a255b1 | 7,254 | /**
* RenderEmailTemplateError.java
*
* This file was auto-generated from WSDL
* by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
*/
package com.sforce.soap.partner;
public class RenderEmailTemplateError implements java.io.Serializable {
private java.lang.String fieldName;
... | 32.383929 | 119 | 0.603253 |
292852394d2ff21b9965bb181c95003f129a4967 | 2,836 | package de.sdsd.projekt.parser.wrapper;
import java.util.Arrays;
import org.apache.jena.rdf.model.Resource;
import org.json.JSONObject;
/**
* Wrapper class for a GPS coordinate which references an entry of a Jena RDF
* model.
*
* @author <a href="mailto:andreas.schliebitz@hs-osnabrueck.de">Andreas
* Sc... | 18.781457 | 105 | 0.656559 |
6c1558d5728505942192dfab2a30341700296730 | 1,950 | package it.unirc.PKG.webInterfaces;
import java.io.BufferedReader;
import java.io.FileReader;
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... | 28.676471 | 162 | 0.712821 |
f33d94945da43665600cd17451694d40afa59d1c | 761 | package com.roway.service;
import com.roway.appconfig.ApplicationContextHolder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
/**
* =======================... | 22.382353 | 62 | 0.641261 |
2e69f846e76f4f1d1860f68f03ad7a3393ce4bbf | 11,309 | package com.yc.overlaprecyclerview.morefragment;
import android.animation.ObjectAnimator;
import android.animation.PropertyValuesHolder;
import android.os.Handler;
import android.support.v4.view.GestureDetectorCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Displa... | 36.717532 | 157 | 0.601114 |
95ef03846de7d5354cf6faa86dafd3bf02712318 | 287 | package basemod.patches.com.megacrit.cardcrawl.helpers.TopPanel;
import basemod.TopPanelGroup;
import basemod.TopPanelItem;
import java.util.ArrayList;
public class TopPanelHelper {
public static TopPanelGroup topPanelGroup = new TopPanelGroup(new ArrayList<TopPanelItem>());
}
| 22.076923 | 97 | 0.811847 |
14852aba30bebb3c9e4fb6d3395bdac1df1fa1c7 | 1,464 | package com.example.japanese;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.Button;
public class Home extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(... | 25.684211 | 74 | 0.722678 |
d01b0175b015298cdcd240e8a323064156b6de53 | 798 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package tutorial;
import com.opensymphony.xwork2.ActionSupport;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.interceptor.ServletRequestAware;
/**
*
* @author Administrator
*/
public class... | 21.567568 | 80 | 0.674185 |
7a5cce15d6aec58349cff49c41b64edaa9b10108 | 1,223 | package co.com.lafemmeapp.core.domain.mappers;
import co.com.lafemmeapp.core.domain.entities.Customer;
import co.com.lafemmeapp.core.domain.entities.CustomerBuilder;
import co.com.lafemmeapp.dataprovider.network.entities.SessionResponse;
import io.reactivex.functions.Function;
/**
* Created by oscargallon on 4/18/1... | 31.358974 | 101 | 0.714636 |
273afff5fa9d53d293240b7550903740ae1ba75a | 2,646 | package com.smt.kata.code;
//JDK 11.x
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.springframework.boot.autoconfigure.info.ProjectInfoProperties.Build;
import com.siliconmtn.data.text.StringUtil;
/****************************************************************************
... | 28.148936 | 80 | 0.614512 |
35e88ead5e243679ba3eba697a384af5a891a777 | 363 | package com.vaguehope.onosendai.provider.successwhale;
import java.io.IOException;
import org.apache.http.HttpResponse;
class InvalidRequestException extends SuccessWhaleException {
private static final long serialVersionUID = 8386398554192783582L;
public InvalidRequestException (final HttpResponse response) thr... | 22.6875 | 82 | 0.826446 |
4ffd52ee1febaf658358224e30ee99a445a5ee8a | 653 | package opdwms.web.configs;
import javax.servlet.http.HttpServletRequest;
import java.util.Map;
/**
* @category Audit Logs
* @package Dev
* @since Nov 05, 2018
* @author Ignatius
* @version 1.0.0
*/
public interface SettingsServiceInterface {
/**
* Fetch a record information
... | 21.064516 | 71 | 0.630934 |
788fef66ef9ecc106d65c8155333861ecb430751 | 7,848 | package com.bullhornsdk.data.model.entity.core.paybill;
import com.bullhornsdk.data.model.entity.core.type.CreateEntity;
import com.bullhornsdk.data.model.entity.core.type.DateLastModifiedEntity;
import com.bullhornsdk.data.model.entity.core.type.QueryEntity;
import com.bullhornsdk.data.model.entity.core.type.UpdateEn... | 27.536842 | 195 | 0.639399 |
388981e6c6a02c17dfd68954bd343de913e59a7e | 3,798 | /*
* Copyright 2015-2017 Nokia Solutions and Networks
* Licensed under the Apache License, Version 2.0,
* see license.txt file for details.
*/
package org.robotframework.ide.eclipse.main.plugin.navigator.handlers;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.function.F... | 44.162791 | 119 | 0.748552 |
43da81c0102b0302ad10ea2ba8276c1a93b79c44 | 509 | package com.lesson5;
import java.util.Set;
import java.util.TreeSet;
public class SetEx3 {
public static void main(String[] args) {
Set<String> set = new TreeSet<>();
set.add("Bars");
set.add("Murz");
set.add("Ara");
System.out.println(set);
set.add("Aara");
... | 21.208333 | 66 | 0.563851 |
905b2b8fe3cc8270cc932649ebc3bbc21d28fac4 | 1,027 | package io.rxmicro.examples.validation.server.nested.model.model;
import io.rxmicro.examples.validation.server.nested.model.model.nested.$$NestedModelFromJsonConverter;
import io.rxmicro.exchange.json.detail.ModelFromJsonConverter;
import java.util.Map;
/**
* Generated by {@code RxMicro Annotation Processor}
*/
pu... | 36.678571 | 120 | 0.739046 |
4bd348bb557e52719dd76fbf9955c95db4e2b6bd | 1,202 | package com.handsomezhou.xdesktophelper.broadcastreceiver;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import com.handsomezhou.xdesktophelper.helper.AppInfoHelper;
public class AppChangedReceiver extends BroadcastReceiver {
pri... | 34.342857 | 250 | 0.703827 |
4af532796034c9f58ad56754b4c72fa144120901 | 1,517 | package dev;
import org.elasticsearch.action.admin.cluster.state.ClusterStateResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.action.admin.cluster.state.ClusterStateRequestBuilder;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.node.Node;
import or... | 37 | 131 | 0.723797 |
0ba7d866fedbecdf79d670d8a137ab52f53499a6 | 3,623 | package com.coccoc;
import java.io.*;
import java.lang.reflect.Field;
public class Unsafe {
public static final sun.misc.Unsafe UNSAFE;
static {
sun.misc.Unsafe unsafe = null;
try {
Field field = sun.misc.Unsafe.class.getDeclaredField("theUnsafe");
field.setAccessible(true);
unsafe = (sun.misc.Unsafe)... | 32.936364 | 106 | 0.725918 |
3d09784f9e5b18356e9fa0aa0f78890720c9f0af | 5,903 | package org.dave.bats.util.serialization;
import io.netty.buffer.ByteBuf;
import net.minecraft.nbt.NBTTagCompound;
import org.dave.bats.util.Logz;
import java.lang.annotation.Annotation;
import java.lang.reflect.Field;
import java.util.*;
import java.util.function.Predicate;
public class FieldUtils {
private sta... | 38.581699 | 186 | 0.612909 |
2af645c4da7f9533cf66a00c7addfbf7277baf0a | 3,336 | /**
Copyright 2012 Jive Software
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,... | 28.033613 | 80 | 0.611511 |
98109e8d8d106bb0d836e9ca6a78a21daf3a16e7 | 5,022 | package com.penglecode.xmodule.ordercenter.model;
import com.penglecode.xmodule.common.codegen.Id;
import com.penglecode.xmodule.common.codegen.Model;
import com.penglecode.xmodule.common.support.BaseModel;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* 订单表
*
* @author Mybatis-Generator
* @date 2020... | 23.914286 | 101 | 0.626045 |
81c954a5cc66439eaac6520f07b339a164bfbb28 | 2,303 | package org.hisp.dhis.coldchain.model.action;
import org.hisp.dhis.coldchain.model.ModelType;
import org.hisp.dhis.coldchain.model.ModelTypeService;
import org.hisp.dhis.common.DeleteNotAllowedException;
import org.hisp.dhis.i18n.I18n;
import com.opensymphony.xwork2.Action;
public class RemoveModelTypeAction
impleme... | 27.094118 | 111 | 0.432045 |
88090c95bbd08b53d8c835c3b9733166bbb630cc | 11,502 | package org.openprovenance.prov.xml;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlE... | 31.170732 | 117 | 0.626761 |
9bd33305d18203d384833b0f592eff075fc13cd4 | 12,051 | package org.loose.fis.mov.services;
import org.apache.commons.io.FileUtils;
import org.junit.jupiter.api.*;
import org.loose.fis.mov.exceptions.EmailAddressAlreadyUsedException;
import org.loose.fis.mov.exceptions.PasswordIncorrectException;
import org.loose.fis.mov.exceptions.UserAlreadyExistsException;
import org.lo... | 29.682266 | 121 | 0.426272 |
76451991c10c109050aa25f8a4fa5a088bfcd628 | 6,809 | /*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/GUIForms/JFrame.java to edit this template
*/
package Swing_Framework_Application;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Prepa... | 42.55625 | 142 | 0.641651 |
82c2fede424bdfc3265f0a66f2739ff1b712990b | 51 | package p;
interface A{
/*[*/void m(int i);/*]*/
} | 12.75 | 25 | 0.529412 |
c3572a8b77777a007aa0a52c717d8baee14e122d | 1,233 | package com.infinityraider.elementalinvocations.network;
import com.infinityraider.infinitylib.network.MessageBase;
import com.infinityraider.elementalinvocations.entity.EntityReplicate;
import net.minecraftforge.fml.common.network.simpleimpl.IMessage;
import net.minecraftforge.fml.common.network.simpleimpl.MessageCon... | 29.357143 | 119 | 0.718573 |
1d3401cea387c52426c767a86897053a7ac38097 | 310 | package com.stylefeng.guns.modular.club.service.impl;
import org.springframework.stereotype.Service;
import com.stylefeng.guns.modular.club.service.IGroupService;
/**
* 俱乐部管理Dao
*
* @author fengshuonan
* @Date 2018-09-16 21:45:55
*/
@Service
public class GroupServiceImpl implements IGroupService {
}
| 18.235294 | 61 | 0.770968 |
3514784f1b6b7f5e32aca02130be57e748375607 | 906 | import java.math.BigDecimal;
public class RecursionDemo {
public static Number calculateSum(Number[] array) {
return calculateSum(array, array.length-1);
}
public static Number calculateSum(Number[] array, int i) {
if (i == 0)
//recursion base case: first item in the array.
return array[i];
else
... | 28.3125 | 122 | 0.695364 |
5b4572e77ff3833290966670cf41d7205a94f784 | 1,419 | package cn.obcp.main.system.controller;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
impor... | 28.959184 | 111 | 0.804792 |
5edfaac38a544ce7f1fd7f5384b37acaa942861a | 783 | package com.geekerstar.s18;
public class Solution2 {
public void Mirror(TreeNode root) {
// 若root不为空,则进行镜像处理,否则不进行任何处理
if(root != null) {
// 设置中间变量,将root的左右子树交换(左、右节点是否为空不影响)
TreeNode tem = null;
tem = root.left;
root.left = root.right;
ro... | 25.258065 | 48 | 0.472542 |
ea2f9c6c29d8b15339f4a8aab0548ab91af4a731 | 1,492 | package rs.math.oop1.z200604.fxmlMVP.z01.osobe.editor;
import javafx.fxml.FXML;
import javafx.scene.control.TextField;
import rs.math.oop1.z200604.fxmlMVP.z01.osobe.model.DataModel;
public class EditorController {
@FXML
private TextField firstNameField ;
@FXML
private TextField lastNameField ;
@F... | 37.3 | 94 | 0.637399 |
3dfb54cf957021a04fbc12e85fd85970b2a77cbf | 3,101 | package ua.zs.signalcorps;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import ua.zs.elements.Equipage;
public class AddEquipageActivity extends Activity {
public void onCreate(Bundle sa... | 43.676056 | 121 | 0.527249 |
dc31f6dd7c4a4abded574ec56526b8823ec0e08b | 3,223 | package com.devmel.apps.linkbuscontrol.view.swing;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JProgressBar;
import com.devmel.apps.linkbuscontrol.R;
import com.devmel.apps.linkbuscontrol.controller.DeviceController;
import com.devmel.apps.linkbuscontrol.view.I... | 29.036036 | 82 | 0.753956 |
c97ab3e4581a1236c6f11fdc923586d48002c385 | 657 | package com.github.charlemaznable.httpclient.common;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annot... | 27.375 | 89 | 0.809741 |
6e92409623e2481cc962e880aedfae6315b0091b | 1,847 | /* Copyright © 2010 www.myctu.cn. All rights reserved. */
package com.sirius.upns.test.unit;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.apache.commons.io.filefilter.IOFileFilter;
import org.apache.commons.io.filefilter.TrueFileFilter;
import java.io.File;
import jav... | 29.790323 | 98 | 0.742826 |
1e57442556de3d255941c3eca187fa7d6ec624c9 | 1,796 | package ch9;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
import org.springframework.web.client.RestTemplate;
import org.testng.Assert;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
public class UserDetail... | 26.028986 | 89 | 0.692094 |
812deca0edf4bd2fbd92cb22890716826efe1461 | 4,487 | package org.bougainvillea.java.dsaa.search;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
/**
* 二分查找
* 递归版
*
* 非递归版
*
* 如果100个数
* 时间复杂度=以2为底100的对数
* log 100 2^6<100<2^7,最慢7次就可以找到
* 2
*
* 中值=(left+right)/2
*/
public class BinarySearch {
public static void m... | 26.708333 | 93 | 0.448629 |
7ee869bd01ee81c2750bd04f434c9565a2aa961a | 1,048 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.javatmp.userstats;
import com.javatmp.module.user.service.UserStatsService;
import java.util.Arrays;
import java.... | 24.372093 | 80 | 0.668893 |
08cf9b07689b78e89b6e170c0f244cd9684fab66 | 5,784 | package cc.mrbird.febs.app.controller;
import cc.mrbird.febs.app.entity.Attention;
import cc.mrbird.febs.app.service.IAttentionService;
import cc.mrbird.febs.common.annotation.ControllerEndpoint;
import cc.mrbird.febs.common.utils.FebsUtil;
import cc.mrbird.febs.common.entity.FebsConstant;
import cc.mrbird.febs.common... | 35.703704 | 112 | 0.735996 |
98a83336cfebdef8b0791a9fafeaff9bca93cbda | 291 | package coding.challenge;
public class Main {
public static void main( String[] args ) {
Programmer p = new Programmer( "Joana Nimar", "Toronto" );
String name = p.getName();
String team = p.getTeam();
System.out.println( name + " is assigned to the " + team + " team" );
}
}
| 19.4 | 71 | 0.642612 |
bb4c0880d071dc766b392925f377972567536864 | 1,202 | public class Particle
{
private float posX, posY, size, velX, velY, gravity = (float) 0.38;
private int relPos;
private SnowboardMadness screen;
public Particle(SnowboardMadness screen)
{
this.screen = screen;
this.posX = 0;
this.posY = 0;
this.velX = 0;
this.velY = 0;
this.size = screen.rand... | 22.679245 | 88 | 0.586522 |
121f25ed72adaf1f403f071ab8da443ee19a27fe | 1,867 | package whiteboxTraceble;
import acess.ParserUtils;
import acess.PolicySyntaxException;
import it.unisa.dia.gas.jpbc.Element;
import it.unisa.dia.gas.jpbc.PairingParameters;
import it.unisa.dia.gas.plaf.jpbc.pairing.PairingFactory;
import it.unisa.dia.gas.plaf.jpbc.pairing.a.TypeACurveGenerator;
import serparams.Pairi... | 32.189655 | 133 | 0.768613 |
b97ce4ea20c34e73eb0e6376d3ebe207c3e2b089 | 438 | import bean.User;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Scope;
@Configurable
public class AppConfig {
// @Bean(name = "people")
// public People people(){
// return new People();
... | 20.857143 | 65 | 0.673516 |
88c1065423338eddbc932dead9f3ba86b990635e | 361 | package com.backbase.kalah.util;
public enum LogStatus {
START("Start"),
END("End"),
Exception("Exception");
private String status ;
LogStatus(String status){
this.status = status;
}
public String getStatus() {
return status;
}
public void setStatus(String status... | 17.190476 | 42 | 0.598338 |
603c82a12af3db54166fe46c69dd2caf6ab5ee43 | 465 | package com.mystream.service;
import com.mystream.dom.Annotation;
import org.springframework.stereotype.Service;
import java.util.List;
public interface AnnotationService {
public Annotation saveAnnotation(Annotation anno);
public List<Annotation> searchAnnotation();
public List<Annotation> searchAnnotationWithS... | 27.352941 | 68 | 0.825806 |
bc05b252e4b212e6c6daade23dea8bfa82818364 | 3,809 | import java.io.BufferedReader;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.Set;
public class Content {
public Content(LinkedList<String> termSet) throws IOException{
FileWriter out=ne... | 58.6 | 331 | 0.560777 |
9de5e41f74045ba9ef3fd1e224bca44f15bbd2ea | 3,111 | /*
* DiSNI: Direct Storage and Networking Interface
*
* Author: Patrick Stuedi <stu@zurich.ibm.com>
*
* Copyright (C) 2016-2018, IBM Corporation
*
* 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 ... | 29.349057 | 144 | 0.731598 |
57dc2c50090c01ac4d6c63872b9ec9fbd1c5a160 | 1,958 | package com.chen.study.concurrent.concurrent3.juc.util.condition;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
/**
* @author 陈添明
* @date 2018/11/11
*/
public class ConditionExample1 {
private final static Reentr... | 25.428571 | 81 | 0.512257 |
a392f3338ee16f0c71c5cd5e05d6abe86e94dc1c | 1,600 | package com.minerarcana.transfiguration.recipe.json;
import com.google.gson.JsonObject;
import com.google.gson.JsonParseException;
import net.minecraft.block.Block;
import net.minecraft.entity.EntityType;
import net.minecraft.tags.ITag;
import net.minecraft.tags.TagCollectionManager;
import net.minecraft.util.JSONUtil... | 39.02439 | 134 | 0.71 |
b20317ba60d78f440d692e02002d56e067da011f | 7,984 | package com.shangbaishuyao.gmall.realtime.app.func;
import com.alibaba.fastjson.JSONObject;
import com.shangbaishuyao.gmall.realtime.bean.TableProcess;
import com.shangbaishuyao.gmall.realtime.common.GmallConfig;
import com.shangbaishuyao.gmall.realtime.utils.MySQLUtil;
import org.apache.flink.configuration.Configurat... | 36.126697 | 123 | 0.584669 |
3faefb8cb5bb6500e1f08a5713293da5cfeae74b | 1,043 | package com.schoppen.schoppenerp.model;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Entity
public class CATEG4 {
@Id
@GeneratedValue
pri... | 19.679245 | 84 | 0.763183 |
f89cb8c999e8ec9986c3149da5e5be90f55ce181 | 159 | package name.remal.tracingspec.application;
import org.jetbrains.annotations.ApiStatus.Internal;
@Internal
interface CommandLineCommand extends Runnable {
}
| 19.875 | 52 | 0.842767 |
a8abddb10345de2acae92eb9388aeb736e4d6a48 | 12,478 | /*
* 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 viw;
/**
*
* @author emesson
*/
public class TelaSobre extends javax.swing.JInternalFrame {
/**
* Creates new for... | 55.705357 | 226 | 0.689614 |
89c9e84caaea4b4497aabed000bc719ee2064a4c | 443 | package org.infinispan.rest.search;
import org.infinispan.configuration.cache.CacheMode;
import org.testng.annotations.Test;
/**
* @since 12.1
*/
@Test(groups = "functional", testName = "rest.search.SearchCountLocalTest")
public class SearchCountLocalTest extends SearchCountClusteredTest {
@Override
int getM... | 20.136364 | 75 | 0.722348 |
2a2f7719d0e0e812a7c6c204024a9518f9f49895 | 2,239 | /**
* Copyright Verimag laboratory.
*
* contributors:
* Marc Pouhliès
*
* This software is a computer program whose purpose is to generate
* executable code from BIP models.
*
* This software is governed by the CeCILL-B license under French law and
* abiding by the rules of distribution of free software. ... | 38.603448 | 76 | 0.739616 |
4770b41cc4603094d0693cf0d63edf0acdb1a9c8 | 9,079 | /*
* The MIT License
*
* Copyright 2014 CloudBees, Inc.
*
* 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, copy, ... | 38.470339 | 187 | 0.642582 |
43b8bce73edfbb505a12906ac5cb2d1bb2b6f78f | 1,086 | package com.chizganov.puzzlers.leetcode.may;
import com.chizganov.puzzlers.util.TestSource;
import org.junit.jupiter.params.ParameterizedTest;
import java.io.BufferedReader;
import java.io.IOException;
import java.nio.file.Path;
import static java.lang.Integer.parseInt;
import static java.nio.file.Files.newBufferedR... | 35.032258 | 98 | 0.708103 |
83359cc0c9bd3d20dda4664f4ded642772a76480 | 224 | package org.prebid.server.bidder.rubicon.proto;
import lombok.AllArgsConstructor;
import lombok.Value;
@AllArgsConstructor(staticName = "of")
@Value
public class RubiconExtPrebidBiddersBidder {
String integration;
}
| 17.230769 | 47 | 0.799107 |
1e6c0d1aa08b544269e6e2edbb225ad9c72a8948 | 357 | package team.yingyingmonster.ccbs.database.mapper;
import team.yingyingmonster.ccbs.database.bean.Menu;
import java.util.List;
public interface MenuMapper {
Menu selectByPrimaryKey(Long menuid);
int deleteByPrimaryKey(Long menuid);
int insert(Menu menu);
int insertSelective(Menu menus);
int updat... | 25.5 | 52 | 0.77591 |
cf788ae3d905d0790b41b9681ed35b22db62b288 | 977 | package org.openxsp;
import org.openxsp.java.Verticle;
import org.vertx.java.core.Handler;
import org.vertx.java.core.eventbus.Message;
public class DefaultVerticle extends Verticle{
@Override
public void start() {
super.start();
System.out.println("Starting "+DefaultVerticle.class.getSimpleName());
... | 19.54 | 87 | 0.684749 |
1d2a7bff684fa3a4773d1bac89e5278f59a403ce | 2,203 | /*
* 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... | 29.373333 | 100 | 0.695415 |
6ecb6f1cb37f6f9fec277c4c26c67acaaec698d5 | 74 | package com.tiagojesus.dev.feigh.rest.client;
interface System02API {
}
| 12.333333 | 45 | 0.783784 |
529c6b8b2bdde28c714177592163d18413be78c6 | 257 | package dev.hotdeals.treecreate.repository;
import dev.hotdeals.treecreate.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepo extends JpaRepository<User, Integer>
{
User findOneByEmail(String email);
}
| 25.7 | 62 | 0.821012 |
7995277bffea0b037f7af7b37bac27faa6995dfe | 8,140 | /**
* Copyright 2012 meltmedia
*
* 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 ... | 37.16895 | 130 | 0.700614 |
a5eb2bcb0a9b14fc0f319b32f8a2b4c8b0e6c598 | 8,427 | /*
* 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 ... | 27.36039 | 272 | 0.681619 |
79655ff893103c74bfc9aa6200da8f65d12e507e | 5,527 | package dmo.fs.router;
import java.io.IOException;
import java.sql.SQLException;
import com.google.cloud.firestore.Firestore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import dmo.fs.utils.ColorUtilConstants;
import dmo.fs.utils.DodexUtil;
import io.vertx.core.http.HttpMethod;
import io.vertx.reactive... | 32.321637 | 149 | 0.702732 |
21948595a188ba7755b4f9df406771b57bddb80a | 1,657 | package tv.twitch.hwsnemo.autoreply.cmd;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.pircbotx.hooks.events.MessageEvent;
import tv.twitch.hwsnemo.autoreply.Chat;
import tv.twitch.hwsnemo.autoreply.ChatLevel;
import tv.twitch.hwsnemo.autoreply.MainConfig;
public class C... | 25.492308 | 115 | 0.686783 |
7277ead14cfc27de74eccf1cd7b3d88bb42d95fa | 3,242 | package io.thestencil.site.handlers;
import java.io.IOException;
import java.util.Collections;
/*-
* #%L
* quarkus-stencil-sc
* %%
* Copyright (C) 2021 Copyright 2021 ReSys OÜ
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the Licens... | 36.022222 | 146 | 0.69525 |
3d9c13309ad89000c667280fa0017691301524da | 297 | package com.gxitsky.creational.builder.familybarrel;
public class Director {
public void construct(Builder builder) {
builder.buildCocaCola();
builder.buildDrumstick();
builder.buildFrenchFires();
builder.buildHamburger();
builder.buildPie();
}
}
| 22.846154 | 52 | 0.666667 |
b81ab7a20534396e797a4b9611669c8757a1d8cc | 1,470 | package local.tin.tests.jpa.workshop.model.data.product;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
i... | 23.333333 | 71 | 0.67619 |
019304e20dc136cc9d9a0851d8b4c509381d4aae | 243 | package com.macbury.fabula.persister;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
@Root(name="foliage")
public class FoliagePersister {
@Element
public float speed;
@Element
public float amplitude;
}
| 18.692308 | 39 | 0.777778 |
508f44212c382db9aa9af90943980c44e1b3fa3d | 1,330 | package com.d8games.web.services.controller;
import com.d8games.web.services.model.entity.Title;
import com.d8games.web.services.service.DepartmentService;
import com.d8games.web.services.service.TitleService;
import com.d8games.web.services.service.JobInfoService;
import org.springframework.beans.factory.annotation.A... | 28.297872 | 118 | 0.733835 |
e5d9cdf69d14ed91b2a62819567df8a614bf1d87 | 1,223 | package com.czh.httpd.header;
import com.czh.httpd.constant.CommonConstants;
import com.czh.httpd.enums.HttpStatus;
/**
* @author czh
*/
public class SimpleResponseHeader extends BaseResponseHeader {
public SimpleResponseHeader() {
}
public SimpleResponseHeader(String responseHeaderString) {
s... | 29.829268 | 156 | 0.689289 |
bb9d74c5693a659c3f2bf1eba67ed1ab31c0c101 | 1,436 | package org.dmfs.express.json.decorators;
import org.dmfs.express.json.JsonSink;
import org.dmfs.express.json.JsonValue;
import org.dmfs.express.json.elementary.Boolean;
import org.dmfs.express.json.elementary.Null;
import org.dmfs.express.json.elementary.Number;
import org.dmfs.express.json.elementary.String;
import ... | 22.4375 | 64 | 0.693593 |
eb274d7f99640e90c9f4c866acd23b38ff021df3 | 123 | package org.qi4j.library.appbrowser;
public interface FormatterFactory
{
Formatter create( String componentType );
}
| 15.375 | 45 | 0.780488 |
ec5df5b4a09ae309972aab77f8dba21da86d4bba | 655 | package com.leetcode_restart;
public class SearchInsertPosition {
public int searchInsert(int[] nums, int target) {
if (target < nums[0]) return 0;
if (target > nums[nums.length - 1]) return nums.length;
int l = 0;
int r = nums.length - 1;
while (l <= r) {
in... | 22.586207 | 97 | 0.429008 |
46ad088fc89f5c30af8a025f81b9c255735aa3da | 3,273 | /*
* Copyright 2006-2009 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 re... | 32.088235 | 99 | 0.733883 |
19f810a70597f5e409839a406760cac41c1cb44f | 8,613 | /**************************************************************************
* Copyright (c) 2001 by Acunia N.V. All rights reserved. *
* *
* This software is copyrighted by and is the sole property of Acunia N.V. *
* and its licens... | 30.542553 | 101 | 0.620109 |
4991adc61aae0b9f2062c2ebb4a7cb6dc28e4cf1 | 4,213 | /*
* Copyright 2020 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 applica... | 28.659864 | 88 | 0.679089 |
c074587d23975a479543c5a445aaf20409f3f10d | 719 | package com.example.hahaha.musicplayer.feature.collect;
import android.content.Context;
import android.view.ViewGroup;
import android.widget.TextView;
import butterknife.BindView;
import com.example.hahaha.musicplayer.R;
import com.example.hahaha.musicplayer.app.MusicApp;
import com.example.hahaha.musicplayer.feature.... | 31.26087 | 71 | 0.79694 |
26bbfa099b22c1e07c57ea8c844381ce773ca1ea | 1,287 | package me.vilsol.nmswrapper.wraps.unparsed;
import me.vilsol.nmswrapper.*;
import me.vilsol.nmswrapper.reflections.*;
import me.vilsol.nmswrapper.wraps.*;
@ReflectiveClass(name = "MaterialDecoration")
public class NMSMaterialDecoration extends NMSMaterial {
public NMSMaterialDecoration(Object nmsObject){
... | 30.642857 | 109 | 0.693085 |
49a97fc7ef9eb8760a3869894a12bdf3bccf6321 | 1,005 | package d01;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
public class FileChannelTransferTo {
public static void main(String[] args) {
try (
FileChannel from = new RandomAcce... | 25.125 | 91 | 0.563184 |
b8453758a5e97fd05933a9313794c6ce76379c20 | 3,133 | package org.deeplearning4j.examples.convolution.ZacCNN.DistriTest;
import de.siegmar.fastcsv.reader.CsvParser;
import de.siegmar.fastcsv.reader.CsvReader;
import de.siegmar.fastcsv.reader.CsvRow;
import org.apache.commons.io.IOUtils;
import org.datavec.api.split.FileSplit;
import org.deeplearning4j.examples.convolutio... | 32.635417 | 128 | 0.650176 |
c649cb99cb7696a2914bfe4134769058dd863f3a | 1,586 | package ru.pinkgoosik.villagerhats.compat;
import dev.emi.trinkets.api.SlotReference;
import dev.emi.trinkets.api.TrinketComponent;
import dev.emi.trinkets.api.TrinketsApi;
import dev.emi.trinkets.api.client.TrinketRendererRegistry;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.Item;
impor... | 36.883721 | 134 | 0.759773 |
ce9dcd0a80d7f3452d4e1f2520452483a6a5efcf | 3,317 | package com.stackroute.pie.services;
import com.stackroute.pie.domain.*;
import com.stackroute.pie.message.request.SignUpForm;
import com.stackroute.pie.repository.InsurerRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.*;
@Ser... | 30.431193 | 110 | 0.62647 |
b87a6467436ecc9db0984229f4986002d607beac | 5,553 | package br.fernando.ch06_generics_and_collections_Objective.part04_Generic_Types;
import java.util.ArrayList;
import java.util.List;
import br.fernando.ch06_generics_and_collections_Objective.part04_Generic_Types.Test02.Dog;
class Test03 {
static class Car {
}
// ======================================... | 36.058442 | 144 | 0.56546 |
20c4a05ab184c7986ec3fc27ed9f99f5646a8c74 | 1,592 | package com.android_retrofit_room_viewmodel_livedata_lifecycle;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import com.android_retrofit_room_viewmodel_livedata_lifecycle.retrofit.RetrofitUtil;
import com.android_retrofit_room_view... | 31.215686 | 85 | 0.66897 |
12028b28f0db8e1091f5caaa6191b249ed381e44 | 935 | package org.codehaus.stax.test.stream;
import java.io.*;
/**
* Test stream used to test whether Reader using this stream would
* 'accidentally' cause blocking. Used by {@link TestStreaming}
* unit test suite.
*/
class BlockingStream
extends FilterInputStream
{
public boolean mBlocked = false;
// ... | 19.893617 | 66 | 0.566845 |
7684b1c7e6702c9426e0d5cd61383f5c25e298d4 | 1,651 | package com.rainard.grindhouse.persistence.entity;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
im... | 24.279412 | 65 | 0.752271 |
ba8ddb7e2505a9f38aa645eafe3544955df279d9 | 476 | package cn.ruleengine.web.vo.workspace;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.Date;
/**
* 〈一句话功能简述〉<br>
* 〈〉
*
* @author dingqianwen
* @date 2020/12/19
* @since 1.0.0
*/
@EqualsAndHashCode(callSuper = true)
@Data
public class ... | 17.62963 | 53 | 0.72479 |
45d93b82855889419816ad1e26e8eee5959527e0 | 658 | package org.testory.testing;
import static org.junit.Assert.assertEquals;
import static org.testory.testing.Closures.returning;
import org.junit.Before;
import org.junit.Test;
import org.testory.common.Closure;
public class TestClosuresReturning {
private Object object;
private Closure closure;
@Before
publ... | 21.225806 | 55 | 0.732523 |
37ef5420d5c673a03e9f19a7f2997863bdb9d9af | 2,265 | package org.perfcake.pc4idea.impl.editor.editor.component;
import com.intellij.openapi.ui.ValidationInfo;
import org.perfcake.model.Property;
import org.perfcake.model.Scenario;
import org.perfcake.pc4idea.api.editor.editor.component.AbstractEditor;
import org.perfcake.pc4idea.api.editor.swing.EditorTablePanel;
import... | 32.357143 | 97 | 0.726269 |
17f53b1cda232dc5924bff9deaf29b8711694337 | 4,626 | package de.yogularm.minecraft.itemfinder.gui;
import java.awt.*;
import java.awt.datatransfer.StringSelection;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.Arrays;
import java.... | 26.434286 | 91 | 0.707307 |
818ca4bdf9175b40392f3cdbc8e1e0883f4fe577 | 4,000 | /*
* Copyright 2019-present HiveMQ GmbH
*
* 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... | 36.697248 | 181 | 0.71325 |
f5dbb26ee7b3c4a86719bec2aa84c26790476f5a | 2,310 | /*
* Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.intellij.execution.jar;
import javax.annotation.Nonnull;
import com.intellij.execution.configuration.ConfigurationFactoryEx;
import com.intellij.execution.con... | 38.5 | 195 | 0.819048 |
328463842ae79d15eaf64fb10b7b83bf4b6791f3 | 40,843 | /*
* Copyright 2014-2021 Web Firm Framework
*
* 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 o... | 38.171028 | 357 | 0.642925 |
e3205f8494492d5cb6bdcf583e00db1ea4b4a154 | 1,710 | package edu.bu.cs673.stockportfolio.integrationtests.signup;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
/****************************************************************************************... | 30 | 119 | 0.588889 |
9e6c9391a4e109ca631814f0b4362890ec9d3233 | 1,472 | package dk.mmj.eevhe;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.glassfish.jersey.client.JerseyWebTarget;
import org.junit.After;
import org.junit.Test;
import javax.ws.rs.core.Response;
import java.nio.file.Files;
import java.nio.file.Paths;
import static dk.mmj.e... | 32 | 124 | 0.700408 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.