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 |
|---|---|---|---|---|---|
332e8e573cedb07e6c26aaa7e7118e661e290efa | 463 | package ch.hslu.ad.exercise;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Test;
class QuickSortTest {
@Test
void testQuickSort() {
var a = new char[] {
'c', 'f', 'e', 'g', 's', 'd', 'f'
};
final QuickSort sort = new QuickSort();... | 21.045455 | 58 | 0.559395 |
544ec036673c65c72b9cc4bd5ed1f0ef3b17a21a | 4,219 | /**
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.market.curve.interpolator;
import static com.opengamma.strata.collect.TestHelper.assertSerialization;
import static org.testng.Assert.assertEquals;
imp... | 41.772277 | 130 | 0.694003 |
58d429d78293b3a27c5c20fd0afa9b99b64d283c | 3,034 | package com.github.lehjr.modularpowerarmor.client.render.entity;
import com.github.lehjr.mpalib.client.render.entity.MPALibEntityRenderer;
import com.github.lehjr.mpalib.math.Colour;
import com.github.lehjr.modularpowerarmor.basemod.MPAObjects;
import com.github.lehjr.modularpowerarmor.block.BlockLuxCapacitor;
import ... | 48.15873 | 140 | 0.747858 |
84be5355dcd15002681c1e8bcd9e7da62aaae2ac | 1,036 | package me.jaybios.quickresponse.daos;
import me.jaybios.quickresponse.models.SecureCode;
import javax.persistence.TypedQuery;
import java.util.List;
import java.util.UUID;
public class SecureCodeDAO extends DatabaseHandler<SecureCode, UUID> {
public List<SecureCode> findAll() {
TypedQuery<SecureCode> qu... | 27.263158 | 119 | 0.684363 |
8badc5546c250dde5c7c23e35b01fdf3fb5c2273 | 9,984 | package com.feeyo.net.codec.redis;
import com.feeyo.net.codec.Decoder;
import com.feeyo.net.codec.UnknowProtocolException;
import com.feeyo.net.codec.util.CompositeByteArray;
import com.feeyo.net.codec.util.CompositeByteArray.ByteArrayChunk;
import java.util.ArrayList;
import java.util.List;
//
//
public class Redis... | 37.675472 | 134 | 0.453526 |
a5b07219610e74a4a53d661641c3ac6af7a2c930 | 959 | package app.config;
import app.config.ApplicationConfig.MattermostApi;
import feign.RequestInterceptor;
import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.http.HttpHeaders;
public class MattermostFeignConfiguration {
@Bean
public RequestInterceptor mattermos... | 33.068966 | 112 | 0.716371 |
b53173cc283be6d856d0cb3ff9abaf48734e5fdb | 575 | package com.cloudata.btree;
import java.nio.ByteBuffer;
import com.cloudata.values.Value;
public class GetEntryListener implements EntryListener {
final ByteBuffer findKey;
Value foundValue;
public GetEntryListener(ByteBuffer findKey) {
this.findKey = findKey;
}
@Override
public boo... | 23 | 86 | 0.643478 |
08c9f8c5976d2f3ec6dec30c205ab83ac071e566 | 215 | package com.jrsf.SmartPoint;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class SmartPointApplicationTests {
@Test
void contextLoads() {
}
}
| 15.357143 | 60 | 0.790698 |
94da1b80c5d60cfd894a6bb2e5db1c5886ab7e3e | 4,312 | /* *******************************************************************************************************
Copyright (c) 2015 EXILANT Technologies Private Limited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
i... | 33.426357 | 108 | 0.660482 |
cb5098dd042327fa6b598aaec1d4c2c0e2844201 | 3,178 | /**
* Copyright (C) 2016-2017 Harald Kuhn
*
* 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 a... | 26.932203 | 93 | 0.609188 |
f8b77eff6a132d41902fa07a70dbdfd482e0627d | 5,020 | package com.kevin.recyclerviewtest.basicuse;
import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android... | 33.245033 | 111 | 0.636056 |
ba7df4250bbf5bf9172686d0659335f8b59f8bd0 | 1,955 | package com.example.eventbank.notifications.dto;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.Instant;
import java.util.UUID;
public class Message<T> {
private final String source = "eventbank-accounts";
private final String datacontenttype = "application/json";
private final Str... | 21.021505 | 86 | 0.604604 |
5ab1cc3090ae3e18ee35686b84901ed8d8f60cce | 2,461 | package com.leryn.common.vo;
/**
* @author Leryn
* @since Leryn 1.0.0
*/
public class Result {
// Static Fields.
private static final int SUCCESS_CODE = 0;
private static final int ERROR_CODE = - 1;
// Static Methods.
public static Result onSuccess(int code, String message, Object data) {
return ... | 20.338843 | 80 | 0.63267 |
c4d7ccb210af874f9e678ca146845f533c761cc7 | 3,672 | package eapli.base.infrastructure.bootstrapers.demo;
import eapli.base.colaboratormanagement.application.AdicionarColaboradorController;
import eapli.base.colaboratormanagement.domain.Colaborador;
import eapli.base.colaboratormanagement.domain.EmailInstitucional;
import eapli.base.colaboratormanagement.dto.Colaborador... | 55.636364 | 199 | 0.750545 |
5679578bc58e1b78b89547b24358eb191ed96aa6 | 467 | package com.pan.module.index.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
@RequestMapping
public class StaticPageController {
@RequestMapping("/")
String ind... | 22.238095 | 62 | 0.713062 |
1f815e2c7fe0a16d1dd8d3433f7b9b4e94a41020 | 515 | package net.fabricmc.discord.bot.util;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
public final class DaemonThreadFactory implements ThreadFactory {
public DaemonThreadFactory(String name) {
this.name = name;
}
@Override
public Thread newThread(Runnable r) {
T... | 24.52381 | 66 | 0.76699 |
e05ad3810b297d5da63686b9f662be660f4ef44d | 1,727 | package com.anogaijin.rubeloaderlite.serializers.joints;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.joints.WheelJointDef;
import com.badlogic.gdx.utils.Json;
import com.badlogic.gdx.utils.JsonValue;
import com.anogaijin.rubeloaderlite.RubeScene;
/**
* Created by adunne on 2015/10/12.... | 50.794118 | 131 | 0.77707 |
ca46a5439ecb16257aa20aaca8eb4b56f522635c | 1,341 | package pl.fhframework.fhPersistence.sequence.services;
import org.springframework.beans.factory.annotation.Autowired;
import pl.fhframework.core.FhException;
import pl.fhframework.core.rules.BusinessRule;
import pl.fhframework.core.uc.Parameter;
/**
* Created by pawel.ruta on 2018-02-07.
*/
@BusinessRule(categorie... | 31.186047 | 120 | 0.616704 |
c21571dc37fd5bdeb00113e9ee11b611675cc778 | 4,810 | package TCP_Server;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
public class TCP_Server extends JFram... | 38.174603 | 111 | 0.570478 |
6a2f8e5a42f3a73d79885574d47169a8d6614adb | 537 | /*
* Copyright (c) 2019. houbinbin Inc.
* idoc All rights reserved.
*/
package com.github.houbb.idoc.common.util;
/**
* @author binbin.hou
* @since 0.0.1
*/
public final class ObjectUtil {
/**
* 是否为空
* @param object 对象
* @return 是否为空
*/
public static boolean isNull(final Object obj... | 16.272727 | 58 | 0.569832 |
a8b18539c5e21ebe59e0f73b5c028760817bf08c | 581 | package com.generator.service;
import com.generator.pojo.ComplexQuery;
import com.generator.pojo.KnifeTemplate;
import java.util.List;
public interface KnifeTemplateService {
int addKnife(KnifeTemplate knifeTemplate);
List<KnifeTemplate> dropSelect(String q);
List<KnifeTemplate> select(int cur, int ro... | 24.208333 | 106 | 0.774527 |
050228fd178635cbf9b3cc3d427378b35167ecf1 | 301 | package yalantis.com.sidemenu.sample.network.service;
import android.view.View;
import yalantis.com.sidemenu.sample.network.model.leaguePreResults.Event;
/**
* Created by TheAppExperts on 02/11/2017.
*/
public interface OnDayEventClickListener {
void onItemClick(View view , Event event);
}
| 21.5 | 73 | 0.777409 |
ebd6f4b10158f00654bffe0ed3e921563cde0030 | 3,856 | package com.sunchaser.sparrow.algorithm.leetcode.tag.linkedlist.easy;
import com.sunchaser.sparrow.algorithm.common.SinglyLinkedListNode;
import com.sunchaser.sparrow.algorithm.common.util.LinkedListUtils;
import java.util.ArrayList;
import java.util.List;
/**
* 回文链表:请判断一个链表是否为回文链表。
*
* @author sunchaser admin@li... | 37.076923 | 105 | 0.629668 |
57e7d32374c403867fe65ff29392ff4a56086207 | 1,107 | package me.sumwu.heartbeat;
import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.RequestParams;
import com.loopj.android.http.ResponseHandlerInterface;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by justin on 10/18/14.
*/
public class MisfitApi {
private s... | 32.558824 | 94 | 0.684734 |
8a6ff725ece19332a8db2a239cc7c3c985826578 | 3,391 | package de.byteevolve.gungame.listener;
import de.byteevolve.gungame.GunGame;
import de.byteevolve.gungame.configuration.config.ConfigEntries;
import de.byteevolve.gungame.configuration.language.Message;
import de.byteevolve.gungame.kit.Kit;
import de.byteevolve.gungame.player.PlayerHandler;
import org.bukkit.Bukkit;
... | 46.452055 | 168 | 0.623415 |
cd8c7ca24e804c57d554d0991d60bed28b247cf3 | 1,553 | package br.skylight.cucs.plugins.skylightvehicle;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics2D;
import java.awt.Polygon;
import java.awt.RenderingHints;
import java.awt.geom.Point2D;
import br.skylight.commons.MeasureType;
import br.skylight.cucs.mapk... | 31.693878 | 105 | 0.716677 |
92e642d0c761b7bc84bf9828228396e08d48bb89 | 1,425 | package com.brzyang.netty.util;
import com.brzyang.netty.im.bean.Session;
import io.netty.channel.Channel;
import io.netty.channel.group.ChannelGroup;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public class SessionUtil {
// userId -> channel 的映射
private static final Map<String, Chan... | 33.139535 | 102 | 0.720702 |
79c73593ef30f0e86ed46762fc3a3a35755030cb | 9,872 | package tsuteto.tofu.entity;
import com.google.common.collect.Lists;
import cpw.mods.fml.common.registry.IEntityAdditionalSpawnData;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import io.netty.buffer.ByteBuf;
import net.minecraft.block.Block;
import net.minecraft.block.material.Materi... | 32.367213 | 175 | 0.608489 |
a19993b58e6b3542965e99885a189fcc189780d2 | 327 | package quotes;
public final class Quote {
private final double price;
private final long volume;
public Quote(double price, long volume) {
super();
this.price = price;
this.volume = volume;
}
public double getPrice() {
return price;
}
public long getVolume() {
return volume;
... | 14.217391 | 43 | 0.636086 |
1ab78814f73ec987c9448084969a7f1ed7406151 | 3,220 | package org.wyona.yanel.servlet.menu.impl;
import org.wyona.yanel.core.Resource;
import org.wyona.yanel.core.api.attributes.VersionableV2;
import org.wyona.yanel.core.api.attributes.WorkflowableV1;
import org.wyona.yanel.core.map.Map;
import org.wyona.yanel.core.util.ResourceAttributeHelper;
import org.wyona.yanel.cor... | 46 | 165 | 0.648758 |
70cdabd063cb99481e19d4347103530492151f8f | 580 | package main.game.input;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import main.graphics.states.KeysState;
public class KeyChangeListener implements KeyListener {
private KeysState state;
private KeyCustom key;
public KeyChangeListener(KeysState state, KeyCustom key) {
this.state ... | 19.333333 | 60 | 0.737931 |
5f7790cc9dc8904d2804426cdef24d44eb7eb048 | 154 | package com.apress.cems.jdbc.repos;
/**
* @author Iuliana Cosmina
* @since 1.0
*/
public interface AgnosticRepo {
int createTable(String name);
}
| 15.4 | 35 | 0.694805 |
6724a89457a77f693d221a2f1e473bef67897c0b | 2,153 | /*
* 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
* distribut... | 23.659341 | 79 | 0.62889 |
386e1ba6943e18f40cdc946580b6a75dbd8acfa3 | 1,422 | package com.oneeyedmen.okeydoke.sources;
import com.oneeyedmen.okeydoke.Resource;
import java.io.*;
public class FileResource implements Resource {
private final File file;
private OutputStream os;
public FileResource(File file) {
this.file = file;
}
@Override
public OutputStream o... | 23.311475 | 90 | 0.601969 |
b0a539f03d9b7b4313f11d60901fb2a5c9f64ae2 | 776 | package com.cts.mcbkend.aggregatorservice.feign;
import java.util.Map;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import o... | 35.272727 | 106 | 0.818299 |
93f7cdd0f0820f724e7c8e0d5a95a4281705ea73 | 898 | package de.cotto.bitbook.lnd.model;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
class InitiatorTest {
@Test
void testToString_remote() {
assertThat(Initiator.REMOTE).hasToString("remote");
}
@Test
void testToString_local() {
assert... | 24.27027 | 91 | 0.682628 |
31f5b337061e158128427e4309e9e9ee488eabaf | 343 | package com.power.xuexi.entity;
public class UserVO {
private String uid;
private String uname;
public String getUid() {
return uid;
}
public void setUid(String uid) {
this.uid = uid;
}
public String getUname() {
return uname;
}
public void setUname(String uname) {
this.una... | 13.192308 | 38 | 0.620991 |
b386b5e4680b0ad80287e1f2bb56640d48ac4821 | 2,649 | /**
* Licensed to Apereo under one or more contributor license
* agreements. See the NOTICE file distributed with this work
* for additional information regarding copyright ownership.
* Apereo licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file
* except in ... | 37.842857 | 115 | 0.698754 |
ea67eb3e57e9053d2a0e9f5af22e702ae7ad65a9 | 1,049 | package sketch.compiler.solvers;
import java.util.ArrayList;
import java.util.List;
public class CEtrace extends CounterExample {
public static final class step{
final int thread;
final int stmt;
public step(int thread, int stmt){
this.thread = thread;
this.stmt = stmt;
}
public String toString(){
... | 21.408163 | 85 | 0.668255 |
0d1f8bde0b50678a6aa674b916d1d20bc601e10f | 88 | f small fsmall set small setsmall big f small fsmall big is small issmall f small fsmall | 88 | 88 | 0.818182 |
ca841c502f44e329f90297cef00bc2ea7acdea0b | 13,719 | package com.ludgo.android.movies;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragm... | 42.60559 | 105 | 0.602887 |
945dad490ac09ed10a9a56e866d70a9b803dd692 | 7,496 | package uk.nhs.careconnect.ri.database.entity.clinicialImpression;
import org.hl7.fhir.dstu3.model.ClinicalImpression;
import uk.nhs.careconnect.ri.database.entity.BaseResource;
import uk.nhs.careconnect.ri.database.entity.codeSystem.ConceptEntity;
import uk.nhs.careconnect.ri.database.entity.condition.ConditionEntity... | 29.28125 | 123 | 0.721318 |
85a5643061cc6523c1fca3e73c3865c631eb05a6 | 1,114 | package com.fieldexpert.fbapi4j.common;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import org.junit.Before;
import org.junit.Test;
public class DateFormatUtilT... | 21.018868 | 62 | 0.735189 |
7c29a0abb5bd43df87b3adaf002e2630837683d1 | 7,214 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package org.fhwa.c2cri.ntcip2306v109.wsdl;
import java.util.ArrayList;
import java.util.HashMap;
/**
* The Class ServiceSpecCollection contains a collection of related services.
*
* @author TransCore ITS, LLC
* La... | 36.806122 | 211 | 0.60438 |
8840ea495c59ff224c6b4ccd2b1acc413241d2bd | 76,610 | package org.corfudb.runtime.view;
import com.google.common.reflect.TypeToken;
import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.corfudb.infrastructure.SequencerServer;
import org.corfudb.infrastructure.ServerContext;
import org.corfudb.infrastructure.ServerContextBuilder;
import org.corfudb.infrastruc... | 45.655542 | 124 | 0.652722 |
40e73441bc58a0a144d45de67a4039178f5d73b6 | 421 | package com.miao.android.pictures.app;
import android.app.Application;
/**
* Created by Administrator on 2016/12/7.
*/
public class MyApplication extends Application {
private static MyApplication sMyApplication;
private static MyApplication getInstance(){
return sMyApplication;
}
@Overr... | 16.192308 | 48 | 0.679335 |
a6fa85e3203f657c8d9efec30a451c034af43071 | 862 | package org.github.xfactory;
class InfrastructureManager {
private static ThreadLocal<InfrastructureProvider> infrastructureProviderThreadLocal = new ThreadLocal<InfrastructureProvider>();
static void setInfrastructureProvider(InfrastructureProvider infrastructureProvider) {
infrastructureProviderThreadLocal.set... | 37.478261 | 174 | 0.834107 |
4a47f087307a5ec4d3dd0d12d89578a46d6db2b6 | 9,146 | /*
* Copyright 2017 Anton Mykolaienko.
*
* 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... | 35.449612 | 100 | 0.669036 |
cf6b0b680df3ac2a431a51ad6587bc5122f8501c | 6,105 | package com.github.fujiyamakazan.zabuton.rakutenquest;
import java.awt.Color;
import java.io.Serializable;
import java.util.List;
import javax.swing.JFrame;
import org.apache.wicket.model.Model;
import org.apache.wicket.util.lang.Generics;
import com.github.fujiyamakazan.zabuton.util.jframe.JChoice;
import com.gith... | 33.916667 | 100 | 0.507617 |
f4904f6a10bf39e9f40389dce1081c55784ad62a | 408 | /**
* Written by Gideon Pfeffer
*/
package subUnits;
import Unit.Unit;
import javafx.scene.paint.Color;
public class Blank extends Unit{
private static final int BLANK_STATE = 2;
private static final Color COLOR = Color.WHITE;
/**
* sets the fill and state of the unit
*/
public Blank(Unit u){
super(u);
... | 15.692308 | 48 | 0.676471 |
c6fbccd770765a1a0f355602fa95e0bede33e2a3 | 1,043 | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
// buttom-up DP
public class Main {
public static void main(String[] args) throws IOException{
// set needed components
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.pa... | 23.704545 | 90 | 0.552253 |
d2ee7c9a571ea37dc3214b573034727acba4030d | 373 | package ui;
import pieces.Piece;
/**
* maps a piece to the path of its icon
* @author jakobbussas
*
*/
public class IconMapper
{
public static String pieceToIcon(Piece piece) {
String path = piece.isColor() ? "white" : "black";
path += "_";
path += piece.getClass().getName().split("\\.")[1];
path += ".pn... | 17.761905 | 53 | 0.627346 |
7fbf98e0c4f27ca2661c2d9926f9755a9720693d | 7,238 | package nl.wernerdegroot.applicatives.processor.domain.typeconstructor;
import com.google.testing.compile.Compilation;
import com.google.testing.compile.Compiler;
import com.google.testing.compile.JavaFileObjects;
import nl.wernerdegroot.applicatives.processor.domain.FullyQualifiedName;
import nl.wernerdegroot.applica... | 44.404908 | 210 | 0.740398 |
0f65e3e710d283c03fb9de51c8e7da5585d7b7d2 | 2,120 | package cz.zcu.kiv.mobile.logger.devices;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.support.v4.view.ViewPager;
import android.view.MenuItem;
import android.view.View;
import cz.zcu.kiv.mobile.logger.R;
import cz.zcu.kiv.mobile.logger.common.UserActivity;
import cz.zcu.kiv.mobile.... | 31.641791 | 115 | 0.733019 |
76349d5dc41156afc1047c58dd16de1e6bf3bc54 | 1,930 | package edu.teco.dustradarnonegame.sensorthings.geojson;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
abstract public class GeoEntity implements Serializable {
// private members
private String type = null;
... | 20.752688 | 94 | 0.623316 |
19a92b29f7581dd2168dd9866048b8aaf9c3689f | 2,508 | package dev.vality.magista.dao.impl;
import dev.vality.magista.*;
import dev.vality.magista.config.PostgresqlSpringBootITest;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.jdbc.Sql;
import java.util.List;
import static org.ju... | 35.828571 | 84 | 0.711324 |
0a007d163f7c2f0c48eda5433cfd610e0bb96acc | 3,723 | /*
* Copyright © 2019 admin (admin@infrastructurebuilder.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 b... | 29.314961 | 132 | 0.683857 |
7fcd9f9b4c51fa6faef44bc80921efb48694a498 | 2,918 | /*
* JasperReports - Free Java Reporting Library.
* Copyright (C) 2001 - 2019 TIBCO Software Inc. All rights reserved.
* http://www.jaspersoft.com
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is part of JasperReports.
*
* J... | 32.786517 | 123 | 0.76525 |
df0fb9128edc33f17328d240a463db1e8a6f7733 | 1,047 | /*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | 45.521739 | 102 | 0.537727 |
8c243cb6dfade516d37a4f16bca84ed41b948298 | 1,485 | /*
* Copyright 2021 ICON Foundation
*
* 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... | 24.344262 | 75 | 0.659259 |
22e957a1ced8c801ec6a5c3ca97d4e124c6b06d4 | 182 | package sqlite.feature.relations.error5;
import com.abubusoft.kripton.android.annotation.BindDao;
@BindDao(Channel.class)
public interface DaoChannel extends DaoBase<Channel> {
}
| 20.222222 | 56 | 0.818681 |
3ac9a1721d85cbea4291e1c172bef96900d51b8e | 1,891 | package contest.usaco_other;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
/*
ID: jeffrey40
LANG: JAVA
TASK: friday
*/
import java.util.StringTokenizer;
public class friday {
static Buffere... | 24.24359 | 107 | 0.578001 |
228a67950d436cc6a2bfa119d66ad9319d51ef1a | 1,488 | /**
* @Company 青鸟软通
* @Title: UserSimpleListParam.java
* @Package org.bana.wechat.qy.user.param
* @author Liu Wenjie
* @date 2015-5-11 下午9:16:05
* @version V1.0
*/
package org.bana.wechat.qy.user.param;
import org.bana.wechat.qy.common.WeChatParam;
/**
* @ClassName: UserSimpleListParam
... | 22.208955 | 75 | 0.667339 |
2edda3ab9ae57d88d454db0936ccb04d8550d883 | 260 | package be.yannickdeturck.lagomshop.item.impl;
import com.lightbend.lagom.javadsl.persistence.AggregateEventTag;
public class ItemEventTag {
public static final AggregateEventTag<ItemEvent> INSTANCE =
AggregateEventTag.of(ItemEvent.class);
}
| 28.888889 | 65 | 0.788462 |
944a1baf54201b5a7d2a83b8c819782c56ac229a | 2,003 | /*
* Copyright 2007-2021, CIIC Guanaitong, Co., Ltd.
* All rights reserved.
*/
package com.gat.open.sdk.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.math.BigDecimal;
/**
* @author xin.hua
* date 2017/7/18
*/
@JsonIgnoreP... | 20.438776 | 61 | 0.571143 |
6e9513b1a41ed6c3ceb172af8e5002e8100e5b34 | 2,051 | package crazypants.enderio.machine.power;
import java.text.NumberFormat;
import crazypants.enderio.Config;
import crazypants.util.Lang;
public class PowerDisplayUtil {
public static enum PowerType {
MJ(1, "power.mj"),
RF(10, "power.rf");
private final double ratio;
private final String abr;
... | 23.044944 | 98 | 0.684057 |
7e3d5f9a6ab0a5295f7bcf095685314ba495738d | 5,132 | package com.tomtom.gradsoundcloud.domain.profile.datasource;
import android.support.annotation.NonNull;
import com.tomtom.gradsoundcloud.domain.profile.model.User;
import com.tomtom.gradsoundcloud.view.profile.ProfileErrors;
import com.tomtom.gradsoundcloud.util.StringUtil;
import java.util.ArrayList;
impor... | 30.188235 | 135 | 0.630553 |
96bd5d41ad4a3a73b4975e8c1c4e530b95bd7d9b | 12,677 | package com.gbsofts.gbcrypt.crypto;
import com.gbsofts.gbcrypt.util.FileUtil;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Random;
import java.util.UUID;
import javax.crypto.KeyGenerator;
import javax.crypto.SecretKey;
import org.streetjava.exception.SJErrorCode;
import org.streetjava.exceptio... | 48.757692 | 147 | 0.666561 |
4ef3753105aef80e2ebc7d7f164c99d009ee5f24 | 18,195 | /**
* Personium
* Copyright 2014-2021 Personium Project Authors
* - FUJITSU LIMITED
*
* 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... | 32.20354 | 107 | 0.612366 |
3b9d5c2b872b6d846a67c1f273e94a5ff8ed6784 | 4,174 | //给定一棵树的前序遍历 preorder 与中序遍历 inorder。请构造二叉树并返回其根节点。
//
//
//
// 示例 1:
//
//
//Input: preorder = [3,9,20,15,7], inorder = [9,3,15,20,7]
//Output: [3,9,20,null,null,15,7]
//
//
// 示例 2:
//
//
//Input: preorder = [-1], inorder = [-1]
//Output: [-1]
//
//
//
//
// 提示:
//
//
// 1 <= preorder.length <= 3000
// inorder.length ... | 30.246377 | 105 | 0.499281 |
01e2519d26f7eb50f77096233dd38a6f750eef50 | 13,373 | /*
* Copyright 2006-2012 The Scriptella Project Team.
*
* 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... | 42.453968 | 123 | 0.636806 |
be224e2045b517f1106db7ea494cd40a072a6b6f | 512 | package com.google.android.gms.internal.ads;
import java.util.List;
import org.json.JSONObject;
/* compiled from: com.google.android.gms:play-services-ads@@19.4.0 */
final /* synthetic */ class zzcgx implements zzdvu {
private final JSONObject zzfnx;
private final zzcgw zzgdo;
zzcgx(zzcgw zzcgw, JSONObje... | 25.6 | 69 | 0.681641 |
e53a7dfc5d3b5e9411b7ff54c59676fb4fa1e9f7 | 412 | package com.bluroc.cloud.microservicescloudsleuthzipkinmiya;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class MicroservicesCloudSleuthZipkinMiyaApplication {
public static void main(String[] args) {
... | 29.428571 | 89 | 0.832524 |
90dab3ed721e5dcb4f8327e6aad63a03096219bc | 1,518 | package us.potatoboy.worldborderfix.mixin;
import net.minecraft.network.packet.s2c.play.WorldBorderCenterChangedS2CPacket;
import net.minecraft.world.World;
import net.minecraft.world.border.WorldBorder;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered... | 37.02439 | 104 | 0.701581 |
c72e5851a0b151f048703d4fdb469ef48223329e | 2,365 | package com.ynov.android.gluciddiab.dataUtils;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import java.util.ArrayList;
import java.util.List;
/**
* Created by admin on 31/03/17.
*/
public class Prot... | 36.953125 | 129 | 0.694292 |
c1657c21d82d40202c6412ad638ea57e6f782b69 | 4,436 | package no.nav.familie.ks.sak.app.behandling;
import no.nav.familie.kontrakter.ks.søknad.Søknad;
import no.nav.familie.ks.sak.app.behandling.domene.Behandling;
import no.nav.familie.ks.sak.app.behandling.domene.BehandlingRepository;
import no.nav.familie.ks.sak.app.behandling.domene.Fagsak;
import no.nav.familie.ks.sa... | 54.097561 | 229 | 0.773219 |
1484eff9f8d6a517f9ba6ce96b0e4d34341bac2c | 1,668 | package models.apostas.odd.resultados.dupla;
import models.apostas.Calculadora;
import models.apostas.Odd;
import models.apostas.Taxa;
import models.apostas.mercado.ApostaDuplaMercado;
import models.apostas.mercado.Mercado;
import models.eventos.futebol.ResultadoFutebol;
import javax.persistence.Entity;
@Entity
publ... | 24.529412 | 80 | 0.693645 |
556b3dcb7588ad58c9375574f88f0b2a00c6ed4b | 2,415 | package com.workflowfm.composer.exceptions;
import java.awt.Component;
import com.workflowfm.composer.processes.CProcess;
import com.workflowfm.composer.prover.response.ExceptionResponse;
import com.workflowfm.composer.ui.dialogs.ExceptionDialog;
import com.workflowfm.composer.ui.dialogs.ProverExceptionResponseDialog... | 31.776316 | 159 | 0.772257 |
013d414e226dc9dc80dad8ca21615493add0891a | 470 | //package test.com.jd.blockchain.binaryproto.contract;
//
//import com.jd.blockchain.binaryproto.DataContract;
//import com.jd.blockchain.binaryproto.DataField;
//import com.jd.blockchain.binaryproto.ValueType;
//
//@DataContract(code=0x02, name="Address" , description="")
//public interface Address {
//
// @DataFiel... | 27.647059 | 60 | 0.734043 |
9c48882815ac434919f2c8aa5a0be3721418c31c | 440 | package ru.otus.spring.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import ru.otus.spring.dao.PersonDao;
import ru.otus.spring.service.PersonService;
import ru.otus.spring.service.PersonServiceImpl;
@Configuration
public class ServicesConfig ... | 25.882353 | 60 | 0.793182 |
91777d6bf12f8a0c759c985e56e877a7c7c501bc | 2,826 | package ru.stqa.pft.addressbook1.tests;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;
import ru.stqa.pft.addr... | 31.4 | 81 | 0.643312 |
485a1b2c9b424eabf46bff644b84aa897bd0c61f | 4,222 | /*******************************************************************************
* Copyright (c) 2014 Luaj.org. All rights reserved.
*
* 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 wit... | 36.396552 | 83 | 0.689957 |
bd8bac66e8eaf69f945d8499661b4d3410a38312 | 582 | package ru.stqa.pft.sandbox;
public class FirstProgramm {
public static void main(String[] args) {
hello("QA");
hello("Developer");
Square s = new Square(25);
double l=5;
System.out.println("Площадь квадрата со стороной "+s.l+" = "+s.area());
Rectangle r = new Rect... | 23.28 | 96 | 0.56701 |
a1255c313f270bd91074f4797358f9575253bee9 | 3,322 | package org.antonakospanos.iot.atlas.web.api.v1;
import io.swagger.annotations.*;
import org.antonakospanos.iot.atlas.service.EventsService;
import org.antonakospanos.iot.atlas.web.api.BaseAtlasController;
import org.antonakospanos.iot.atlas.web.dto.events.HeartbeatFailureResponse;
import org.antonakospanos.iot.atlas.... | 48.144928 | 140 | 0.742324 |
d843c7b0b3921dbf023fd2a4b3fbfc66a519a8b2 | 23,765 | /*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free S... | 50.888651 | 174 | 0.62125 |
7e97cfe408a22d2881ea92fd459431c812688fdc | 180 | package club.extendz.spring.keycloak.exceptions;
public class UserDeletionFailedException extends Exception {
/**
*
*/
private static final long serialVersionUID = 1L;
}
| 16.363636 | 60 | 0.755556 |
7bc651d916c8ff5ff485e5fd95d2e3a851b3e5a3 | 447 | package com.claudio.contexto;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class Contexto {
protected static ApplicationContext contexto;
static {
contexto = new ClassPathXmlApplicationContext(
"Spri... | 20.318182 | 75 | 0.742729 |
4a69300a0dd3a8da2dd14cfe0cea6f1942ada692 | 10,843 | // ============================================================================
//
// Copyright (C) 2006-2016 Talend Inc. - www.talend.com
//
// This source code is available under agreement available at
// %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt
//
// You should have receiv... | 36.755932 | 125 | 0.642258 |
38c2e0ad96f187cce565b3bd2c368502c42b0d5b | 2,674 | /*
* 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... | 36.630137 | 92 | 0.684368 |
9288b1b85b63d38912ed9220a99d7e469d708e49 | 11,369 | package io.ketill.awt;
import io.ketill.FeatureAdapter;
import io.ketill.IoDeviceAdapter;
import io.ketill.MappedFeatureRegistry;
import io.ketill.MappingMethod;
import io.ketill.pc.KeyPressZ;
import io.ketill.pc.Keyboard;
import io.ketill.pc.KeyboardKey;
import org.jetbrains.annotations.MustBeInvokedByOverriders;
imp... | 38.934932 | 79 | 0.653268 |
110ca94f088142310c7b420ea9949d093b1a79b6 | 4,346 | /*
* Copyright 2017 dmfs 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 agreed to in... | 38.460177 | 150 | 0.589738 |
245792f91a03f85878727759ee069dad75e1d83d | 933 | package org.deletethis.hardcode;
import org.junit.Test;
import java.io.Serializable;
import java.util.Objects;
public class Data implements Serializable {
private final String foo;
private final int bar;
private final Long lng;
public Data(String foo, int bar, Long lng) {
this.foo = foo;
... | 19.851064 | 48 | 0.566988 |
d501525b7eb919accc2bcf52120d54248ee37dce | 4,348 | package com.jatpeo.yard.common.util;
import com.aliyun.oss.ClientException;
import com.aliyun.oss.OSSClient;
import com.aliyun.oss.OSSException;
import com.aliyun.oss.model.*;
import lombok.extern.slf4j.Slf4j;
import java.io.File;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Date;
i... | 33.96875 | 133 | 0.578427 |
22a56a11d57797e0c58efc7bae1dbebdb3f5740e | 2,680 | package dk.alexandra.fresco.suite.spdz2k.datatypes;
import dk.alexandra.fresco.framework.value.SInt;
/**
* Represents an authenticated, secret-share element.
*
* @param <PlainT> type of underlying plain value, i.e., the value type we use for arithmetic.
*/
public class Spdz2kSInt<PlainT extends CompUInt<?, ?, Pla... | 27.346939 | 100 | 0.673134 |
a1ca627dc9131f36f596421e050a59134eda019f | 1,498 | /*
* Copyright 2021 Haulmont.
*
* 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... | 31.87234 | 113 | 0.745661 |
9473d71d4945f921c90710f988dba9a142c4b5b9 | 12,120 | package org.opendocumentformat.tester;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util... | 30.839695 | 90 | 0.702558 |
665b86db5b8965ce497e3605ebb748f0f37aa8e2 | 2,765 | /*
Copyright (C) GridGain Systems. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... | 27.107843 | 79 | 0.606872 |
ca8fb821556b2e2cc6013477c1e1724e11d2cde7 | 37,539 | package it.polimi.ingsw.client.view;
import it.polimi.ingsw.client.clientNetwork.ActionFactory;
import it.polimi.ingsw.client.clientNetwork.ClientConnectionSocket;
import it.polimi.ingsw.constants.Constants;
import it.polimi.ingsw.messages.clientMessages.JoinLobby;
import it.polimi.ingsw.client.clientNetwork.MessageHa... | 41.525442 | 136 | 0.482725 |
e4bbc84672fa74c13729573abf9024245cb3b4f3 | 1,503 | package com.spring.auth.client.infrastructure.repositories;
import com.spring.auth.client.domain.Client;
import com.spring.auth.client.domain.ClientJpa;
import com.spring.auth.client.domain.ClientMapper;
import com.spring.auth.client.infrastructure.repositories.jpa.ClientRepositoryJpa;
import com.spring.auth.client.in... | 39.552632 | 92 | 0.802395 |
bf00606556025c6e6dceeff2a8cbfd9f50cd3771 | 9,446 | /**
* Copyright (C) 2015 Stubhub.
*/
package io.bigdime.validation;
import java.io.IOException;
import java.io.InputStream;
import java.io.StringWriter;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.StringUtils;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocol... | 35.378277 | 131 | 0.761592 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.