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 |
|---|---|---|---|---|---|
e46ea8fa075d766f535b450058e897ca9d654061 | 767 | package com.achilles.model;
public class MatchRegistrationAdversary {
private int id;
private int playerId;
private int roundId;
private int adversaryId;
private String platId;
public String getPlatId() {
return platId;
}
public void setPlatId(String platId) {
this.platId = platId;
}
public int getId()... | 18.707317 | 46 | 0.713168 |
2a8e4613ef6e9f0a6d9c5f1442dbb6012ac02627 | 1,368 | package com.jraph.svg;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import com.jraph.svg.utils.Vector2;
public class Svg extends Element {
private Vector2<Integer> dimension;
private List<Element> elements;
public... | 25.811321 | 86 | 0.689327 |
b09e13d62d9aca8e1431115f865a8dbf8911d5d1 | 5,017 | package org.sheepy.lily.vulkan.process.graphic.pipeline;
import org.joml.Vector2ic;
import org.lwjgl.vulkan.VkGraphicsPipelineCreateInfo;
import org.sheepy.lily.vulkan.core.pipeline.VkPipeline;
import org.sheepy.lily.vulkan.core.pipeline.VkPipelineLayout;
import org.sheepy.lily.vulkan.core.pipeline.VkShaderStage;
impo... | 39.195313 | 106 | 0.805063 |
c875678a3324f146a284dffa95fd6dc8e0bc1643 | 1,049 | package org.jooby.issues;
import org.jooby.Route;
import org.jooby.mvc.GET;
import org.jooby.mvc.Path;
import org.jooby.test.ServerFeature;
import org.junit.Test;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Ta... | 20.98 | 64 | 0.686368 |
7196a73364e7f9b7c3178c45ccf0243a81e4bad8 | 1,218 |
package mage.cards.a;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.combat.CantBeBlockedSourceEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants... | 28.325581 | 150 | 0.721675 |
58b0aaf3b7ac09e5727992cb07015e5ab3046cec | 1,361 | package com.javarush.task.task22.task2203;
/**
* Между табуляциями
* Метод getPartOfString должен возвращать подстроку между первой и второй табуляцией.
* На некорректные данные бросить исключение TooShortStringException.
* Класс TooShortStringException не менять.
*
*
* Требования:
* 1. Класс TooShortStringExc... | 37.805556 | 93 | 0.731815 |
d0149206fb7f7c65681cbff3f5b411c07ad0a2d8 | 1,577 | package pm.n2.parachute;
import fi.dy.masa.malilib.event.RenderEventHandler;
import pm.n2.parachute.events.InputHandler;
import pm.n2.parachute.events.KeyCallbacks;
import pm.n2.parachute.events.RenderHandler;
import pm.n2.parachute.events.WorldLoadListener;
import fi.dy.masa.malilib.config.ConfigManager;
import fi.dy... | 45.057143 | 101 | 0.798351 |
e85cc329f8fb695ed85a3863dacf8560491bad05 | 3,425 | package foundation.omni;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.math.MathContext;
/**
* Numeric Value of Indivisible Omni Token
* An indivisible token is an integer number of tokens that can't be subdivided to
* less than one token.
*/
public final class OmniIndivisibleValue extends... | 31.422018 | 93 | 0.70365 |
3bd4582f85610321d610c0dd804f61a39137af01 | 341 | package dtos;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
@Data
public class OrderDto {
private Long id;
private BigDecimal final_price;
private Date created_at;
private List<OrderItemDto> items;
private PaymentMethodDto payObj;
private UserA... | 18.944444 | 37 | 0.753666 |
61fac24bc2eab4bc3be4dbf81b68a1b72ff89475 | 599 | package innerclasses;
/**
* @author XuYanXin
* @program aibook-parent
* @description
* @date 2020/2/13 2:13 下午
*/
public class Parcel7b {
// 对应匿名内部类,这里单独定义了一个有名字的类
class MyContents implements Contents {
private int i = 11;
@Override
public int value() {
return i;
... | 19.322581 | 48 | 0.589316 |
22e0c069c7fd59af378f7cb63e6c28758110c378 | 3,882 | /*
* Create by Jacob G(GuanDeLiang) on 2020.
* Copyright (c) 2020 . All rights reserved.
* Last modified 20-2-1 下午2:24
*
*/
package com.jacob.material.example.backdrop;
import android.app.ActivityOptions;
import android.content.Intent;
import android.graphics.drawable.Animatable;
import android.graphics.drawable... | 40.863158 | 157 | 0.752447 |
6dfaa9fb78143919b934eac9ebb2a0c7335cd5ab | 3,471 | /**
* 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... | 30.716814 | 104 | 0.694324 |
338da61da97900f183230a0a65c1886734286e8a | 1,785 | package com.ftninformatika.cris.repository;
import com.ftninformatika.cris.model.InstitutionFounder;
import com.ftninformatika.cris.model.projection.InstitutionFounderProjection;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.Param;
import org.sp... | 45.769231 | 107 | 0.770308 |
14146a22702b59ecb6991f3d86a9e72a1c08bf37 | 3,956 | package com.artschool.model.entity;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import javax.persistence.*;
import java.time.LocalDate;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
@Entity
public class Date {
private s... | 25.856209 | 102 | 0.618554 |
5812c49d65bfc9dcb8584442823dae1dd486eb72 | 422 | package org.zeroturnaround.exec.test;
import java.io.PrintStream;
class Loop {
private static final long INTERVAL = 1000;
private static final long COUNT = 10;
public static void main(String[] args) throws Exception {
PrintStream out = System.out;
out.println("Started");
for (int i = 0; i < COUNT;... | 20.095238 | 59 | 0.651659 |
251eda0ab03476168dae7f664d63e59c9c659ca3 | 256 | package au.com.tyo.jesreader;
import au.com.tyo.jesreader.ui.activity.ActivityMain;
/**
* Created by Eric Tang (eric.tang@tyo.com.au) on 27/11/17.
*/
public class ActivityApp extends ActivityMain {
// the page class is defined in ActivityMain
}
| 18.285714 | 59 | 0.726563 |
39cb24ad346c98e306283d29aad0c74b128bf3fb | 445 | /* Copyright (C) 2004 - 2006 Versant Inc. http://www.db4o.com */
package com.db4o.instrumentation.bloat;
import EDU.purdue.cs.bloat.editor.*;
import com.db4o.instrumentation.api.*;
public class BloatRef {
private final BloatReferenceProvider _provider;
public BloatRef(BloatReferenceProvider provider... | 21.190476 | 65 | 0.719101 |
80e30619c1bec10ae7d246fd2c72b8fc5309f510 | 640 | package minicraft.backend.map.block;
import minicraft.backend.constants.Constant;
public class DirtBlock extends BlockBackend{
private static final int blockID = Constant.BLOCK_DIRT;
public DirtBlock(){
super("dirt");
}
@Override
public int getBlockid() {
return blockID;
}
... | 22.068966 | 66 | 0.660938 |
d2692af850ad170767b2c58bd8d349ea1691cef6 | 14,230 | /*
* 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 tut16.gammaRamp;
import com.jogamp.newt.awt.NewtCanvasAWT;
import com.jogamp.newt.event.KeyEvent;
import com.jogamp.newt.ev... | 34.455206 | 122 | 0.62045 |
36d837365f5c641c6917610364053ec4f24f8181 | 3,564 | package com.skywatcher.extend;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;
public class Panorama {
private final String TAG = "Panorama";
private static Angle FovX, FovY; // between 10 ~ 100
public static Angle getFovX() {
return FovX;
}
public static void ... | 25.826087 | 139 | 0.660213 |
d4b7608ba510a50e955847f6959921080b57c0b7 | 3,443 | package com.joker17.small.tools;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import static org.junit.Assert.*;
public class ConsoleTableTest {
@Test
public void test() {
List<String> titleList = new ArrayList<>(16);
... | 33.105769 | 91 | 0.51612 |
0bc45a6dc20cd6c24d278f7798f0b710a6b7b0f1 | 1,017 | /*
* Copyright 2017 StreamSets 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 agreed... | 31.78125 | 87 | 0.749263 |
7e7f896f0040f8f6e518bed55be0a679965f7b4d | 461 | package com.xiao9;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.security.oauth2.OAuth2AutoConfiguration;
@SpringBootApplicatio... | 30.733333 | 86 | 0.826464 |
691dfbaa1ff85ae58f47ae3e02bc28da3c4f872e | 5,522 | package com.steelypip.powerups.minx;
import com.steelypip.powerups.exceptions.Alert;
import com.steelypip.powerups.repeaters.PeekableCharRepeater;
public class MinXParser< T extends MinX > {
private int level = 0;
final PeekableCharRepeater cucharin;
private boolean pending_end_tag = false;
private MinXBuilde... | 24.762332 | 133 | 0.567005 |
f7c8ff66c011fb67c41aec13091e09197aea5c8a | 579 | package toolgood.textfilter.api.Datas.Images;
public class ImageClassifyResult {
/**
* 返回码:0) 成功,1) 失败
*/
public int code;
/**
* 返回码详情描述
*/
public String message;
/**
* 请求标识
*/
public String requestId;
/**
* 色情系数
*/
public Float porn;
/**
... | 11.816327 | 45 | 0.452504 |
c24eac188b4c1071b69b9432e9b067cea6c08462 | 647 | package name.matco.hotspot.api.security.tokens;
import java.time.Instant;
import jakarta.validation.constraints.NotNull;
public class RevokedToken {
@NotNull
private final String token;
@NotNull
private final Instant expirationDate;
@NotNull
private final long userFk;
public RevokedToken(final String toke... | 17.486486 | 91 | 0.75425 |
fa27e72316d8f9195a16987988a9e3a96267d6a7 | 7,883 | package com.maq.xprize.kitkitlauncher.english;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.graphics.PixelFormat;
import android.graphics.Point;
import android.os.Build;
import android.os.Environment;
import android.preference.PreferenceManager;
... | 34.273913 | 139 | 0.627553 |
02e806d42bffa4744c7833e10d43620b594bed04 | 5,458 | /* Copyright 2009-2019 David Hadka
*
* This file is part of the MOEA Framework.
*
* The MOEA Framework is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or (at... | 30.322222 | 91 | 0.684683 |
a7e59674b482466cb2590b6c32f5b61c5677fe63 | 1,432 | /*
* Copyright 2014 Guillaume CHAUVET.
*
* 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 ... | 29.833333 | 81 | 0.678771 |
bb8020ee36b5b373d9eaa4fc81ff24ded7cb9e7b | 2,616 | package dsa.stacks;
import java.util.ArrayList;
import java.util.EmptyStackException;
import java.util.List;
public class SetOfStacks {
List<Stack> stacks = new ArrayList<>();
int capacity;
public SetOfStacks(int capacity) {
this.capacity = capacity;
}
public void push(int v) {
Stack last = getLas... | 19.094891 | 54 | 0.54052 |
434da41ad812cd7c0c35b08afd0a44e76884ca36 | 2,749 | /*
* Copyright (C) 2007 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... | 33.120482 | 112 | 0.673336 |
ead8e04bca6eadf95a52d29a34ee9f55dbb8c6d4 | 2,647 | //package com.k317h.restez.util;
//
//import java.util.Arrays;
//import java.util.List;
//import java.util.Optional;
//import java.util.function.Function;
//import java.util.stream.Collectors;
//
//import com.k317h.restez.io.Request;
//
//public class QueryParamUtil {
//
// private static Function<String[], Optional... | 36.260274 | 122 | 0.685304 |
de40ea7e6fcd285e0cec83bbd261df755627baa4 | 981 | /*
* Copyright 2021 ROCKSEA. All rights Reserved.
* ROCKSEA PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package kr.co.sample.member.domain.query;
import org.springframework.stereotype.Service;
import kr.co.sample.member.domain.Member;
import kr.co.sample.member.domain.repository.MemberNewReposito... | 31.645161 | 69 | 0.67686 |
559cc53e63f09caafeae46f9357b57d4bab189b7 | 8,124 | package gov.nist.javax.sip.address;
/*
* #%L
* Matos
* $Id:$
* $HeadURL:$
* %%
* Copyright (C) 2010 - 2014 Orange SA
* %%
* 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
*
* ... | 31.366795 | 153 | 0.727351 |
805f148ff05933f0299e87666345135041e84dec | 484 | package com.lyh.springcolud.consul_client_producer_8009;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
@SpringBootApplication
@EnableDiscoveryClient
public class ConsulCli... | 30.25 | 79 | 0.836777 |
184588566f37461efc67bf85706bf1cc20e5df22 | 722 | package com.hoanghung.profilemanage.entity;
import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
* Created by hxhung on 8/24/2017.
*/
@... | 19.513514 | 81 | 0.691136 |
6e098d818ccc24ce665142efdab73ae234424ffa | 1,508 | package questao03.despesa;
import java.time.LocalDateTime;
public class DespesaComEnergia extends Despesa {
private static final double CUSTO_VALOR_KWH = 0.50D;
private static final double CUSTO_ADICIONAL_100KWH = 1.20D;
private static final double CUSTO_ADICIONAL_ILUMINACAO_0_50 = 2.00D;
private stat... | 27.925926 | 78 | 0.634615 |
429ebee82abd3fe53bf3cc48df234fe9c766c74b | 1,395 | package com.xuxiao415;
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
System.out.println( "Hello World!" );
}
public static int maxTurbulenceSize(int[] arr) {
int[] up = new int[arr.length];
int[] down = new int[arr.length];
for... | 24.051724 | 58 | 0.363441 |
d0e432c2a267014bb3d5c5c410b1c0aa902a0173 | 6,600 | package net.n2oapp.framework.autotest.action;
import net.n2oapp.framework.autotest.N2oSelenide;
import net.n2oapp.framework.autotest.api.component.button.StandardButton;
import net.n2oapp.framework.autotest.api.component.control.InputText;
import net.n2oapp.framework.autotest.api.component.drawer.Drawer;
import net.n2... | 37.931034 | 116 | 0.673636 |
d0ea4b766cb9e560784525c65a2b7775c6a74968 | 254 | package jlssrc.annotations;
class OneElement {
@interface A {
String value();
}
@A("foo")
Object annotated1;
@A(value = "foo")
Object annotated2;
@A(true ? "foo" : "bar")
Object valueIsConditionalExpression;
} | 14.941176 | 40 | 0.590551 |
9459d963540fe01a15d147db9a3c20de92b00d86 | 3,172 | /*-
* ---license-start
* European Digital COVID Certificate Booking Demo / dgca-booking-demo-backend
* ---
* Copyright (C) 2021 T-Systems International GmbH and all other contributors
* ---
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the... | 42.864865 | 117 | 0.734552 |
a986fdd5386e91f761d830cf5741399d5aa6ba9d | 867 | package min15.structure;
import node.AClassDef;
import java.math.BigInteger;
import java.util.*;
/**
* Created by Antoine-Ali on 18/02/2015.
*/
public class IntegerClassInfo extends ClassInfo
{
private final Map<BigInteger, Instance> _valueMap = new LinkedHashMap<>();
public IntegerClassInfo... | 23.432432 | 79 | 0.633218 |
af460654e455726e87a4e503662a276165b5852c | 7,278 | /*
* Copyright (C) 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 37.90625 | 100 | 0.620775 |
86fb539cf115cb80f358a3eda49480a9b011a9d0 | 1,162 | package edu.diku.pyprob_java.distributions;
import ch.ethz.idsc.tensor.Tensor;
import ppx.Distribution;
import edu.diku.pyprob_java.MessageHandler;
public class Weibull implements TensorDistribution {
private Tensor scale;
private Tensor concentration;
public Weibull(Tensor scale, Tensor concentration) {... | 25.822222 | 79 | 0.693632 |
63d1c1d7cde6b73239430d46036373fc7c09f8a7 | 874 | package uk.ac.manchester.sisp.punch.ui;
public interface IUIPadding {
public static IUIPadding PADDING_NULL = new IUIPadding() {
/* Define negligible padding. */
@Override public int getPadding() { return 0; }
};
public static class Impl implements IUIPadding.W {
/* Member Variables. */
private int mPad... | 23 | 84 | 0.691076 |
22d807864b2889056833dc13a68e40f0f49dfb6f | 1,137 | /*
* Copyright (C) 2015 备胎金服
* 未经授权允许不得进行拷贝和修改
* http://www.btjf.com/
*/
package com.zxf.pintu.utils;
import android.graphics.Bitmap;
import android.util.Log;
import java.util.ArrayList;
import java.util.List;
/**
* Created by zhangman on 16/3/26 11:31.
* Email: zhangman523@126.com
*/
public class ImageSplit... | 27.071429 | 96 | 0.638522 |
2b54a6c3ba935e4db278c609451574ecd3a95f31 | 131 | class pattern7
{
public static void main(String args[])
{
int x;
x=50;
x=(++x)+(++x)*(x++)+x;
System.out.println(x);
}
}
| 11.909091 | 39 | 0.549618 |
265d4683c48d8aeac6b05e8824647c1aa49b8797 | 353 | package ph.hatch.d3.infrastructure.event.publisher.simple;
import ph.hatch.ddd.domain.DomainEvent;
public class TestEvent extends DomainEvent {
private String message;
public TestEvent(String message) {
this.message = message;
}
@Override
public String toString() {
... | 19.611111 | 59 | 0.657224 |
d45a289b4ae579c4c2259f4c34386acb9a6665f1 | 3,806 | package com.inari.firefly.control.behavior;
import java.util.Set;
import com.inari.commons.JavaUtils;
import com.inari.commons.lang.aspect.IAspects;
import com.inari.commons.lang.list.IntBag;
import com.inari.firefly.FFInitException;
import com.inari.firefly.control.action.EntityActionSystem;
import com.inari.firefly... | 37.313725 | 132 | 0.695481 |
07b279d9a739ebef29bddcf3289614dc17b6a487 | 4,442 | /*******************************************************************************
* Copyright (c) 2000, 2015 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, an... | 30.424658 | 106 | 0.628771 |
a159fbf3c3c8617ddecb5bad54ebb376fd86e14a | 2,779 | package pl.cyfronet.datanet.deployer;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.IOException;
import java.util.Map;
import java.util.Map.Entry;
import java.util.zip.ZipException;
import org.apache.commons.io.FileUtils;
public class ZipByteArrayMapperBuilder implements MapperBuilder {
p... | 35.628205 | 154 | 0.756387 |
d4f17d79c94a9eab32e9c745bfbab301077918b2 | 4,604 | package com.ustudy.info.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonProperty.Access;
public class Examinee implements Serial... | 21.022831 | 107 | 0.67159 |
dfd40f555de7c458ee87e243fc1898bf43fd2ad2 | 2,461 | package airbrake;
import java.util.HashMap;
import java.util.Map;
import org.apache.wicket.Session;
import org.apache.wicket.WicketRuntimeException;
import org.apache.wicket.request.IRequestParameters;
import org.apache.wicket.request.Url;
import org.apache.wicket.request.cycle.RequestCycle;
import com.tegonal.wicke... | 35.157143 | 126 | 0.71028 |
b27620024917d813ebdcf5f2ee044831ed8311cb | 853 | /*
/*
* 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 controller;
import dao.DaoCliente;
import java.sql.SQLException;
import java.util.List;
import model.Cliente;
/**
*
* @a... | 20.804878 | 79 | 0.658851 |
17a88a917017d70c6e024c13fb4373ba5d7153e5 | 1,574 | package hype;
import hype.interfaces.HConstants;
public class HColors implements HConstants {
public static int[] explode(int clr) {
int[] explodedColors = new int[4];
for(int i=0; i<4; ++i)
explodedColors[3-i] = (clr >>> (i*8)) & 0xFF;
return explodedColors;
}
public static int merge(int a, int r, int g... | 21.561644 | 54 | 0.605464 |
2922cee9afd16bac38625aaac0c433edf98ceb58 | 776 | package ru.vyarus.guice.ext.core.util;
import com.google.inject.TypeLiteral;
import com.google.inject.matcher.AbstractMatcher;
/**
* Object class matcher.
* Useful to limit post processors appliance scope by specific package (and sub packages)
*
* @author Vyacheslav Rusakov
* @since 30.06.2014
* @param <T> matc... | 28.740741 | 103 | 0.703608 |
64e31a3907b1ce02ad83dcce44f69ebf4a7adab8 | 1,995 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2019 Adobe
~
~ 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/li... | 33.25 | 91 | 0.659649 |
89ea8a7dd2877961de7c7edbbfd8e1a047b16c11 | 6,536 | package com.mjiayou.trejava.module.test;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import java.net.URLEncoder;
import java.security.MessageDigest;
import java.text.CollationKey;
import java.text.Collator;
import java.text.RuleBasedCollator;
import java.util.*;
/**
* 超级... | 33.517949 | 116 | 0.516524 |
7f6cf7043486b6172b8393154d1ebeab19f95398 | 12,118 | /*
* Copyright (c) 2001 by Matt Welsh and The Regents of the University of
* California. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software and its
* documentation for any purpose, without fee, and without written agreement is
* hereby granted, provided that the above copyrig... | 24.882957 | 96 | 0.639132 |
af70dd74d7d74b055e656188eeb202989a9f0c18 | 31,818 | package com.cyc.cycjava.cycl;
import com.cyc.tool.subl.jrtl.nativeCode.subLisp.UnaryFunction;
import com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLStructDecl;
import com.cyc.tool.subl.jrtl.nativeCode.subLisp.CommonSymbols;
import com.cyc.tool.subl.jrtl.nativeCode.subLisp.SubLStructDeclNative;
import com.cyc.tool.subl.... | 47.489552 | 353 | 0.650764 |
a9cd66c4cc3cbb7994ea76eed273e8f6260ade30 | 700 | package readbiomed.mme.util;
import java.util.HashMap;
import java.util.Map;
import java.util.stream.Collectors;
public class Trie<T> extends gov.nih.nlm.nls.utils.Trie<T> {
private static final long serialVersionUID = 7252238938341206601L;
public int size() {
return map.size();
}
private Map<String, T> map =... | 21.875 | 99 | 0.701429 |
6fee2186837cfce096ed43b5d028d0ec8642d203 | 3,165 | package com.github.jntakpe.sleuthkafka;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.kafka.clients.producer.ProducerConfig;
import org.apache.kafka.co... | 39.074074 | 80 | 0.795261 |
ce5ed40ac26d99d2f4c02dd40467652893478b21 | 5,032 | /**
* Copyright 2012 The PlayN 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 applicable law or agreed ... | 34.944444 | 99 | 0.687401 |
61b17cda1cfd9fbe1a093d2de7e9ea7cb31651d4 | 13,419 | package org.funz.api;
import java.io.File;
import java.io.FileFilter;
import java.util.HashMap;
import java.util.Map;
import org.funz.log.Log;
import org.funz.log.LogFile;
import org.funz.script.RMathExpression;
import org.funz.util.ASCII;
import static org.funz.util.Data.newMap;
import org.funz.util.Disk;
import stat... | 43.710098 | 173 | 0.621581 |
75b1626329fd3fbe5751ada01ffbd9ed17f8a31b | 57 | package com.squareup.okhttp;
public interface Call {
}
| 9.5 | 28 | 0.754386 |
5208277434d93735ba0a7016b832cb0d63d471fe | 5,518 | package dev.linwood.api.ui;
import dev.linwood.api.ui.item.GuiItem;
import org.bukkit.entity.Player;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.function.Consumer;
/**
* @author Co... | 22.614754 | 95 | 0.566872 |
8e01f8375a218f63df0f522d9d6ed2243c386335 | 642 | package Core.code;
import graphics.levelselect;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectOutputStream;
public class saving {
public saving(){
}
public void save(){
String fileName = "save.dat";
try {
Obje... | 13.956522 | 82 | 0.674455 |
c60216b97a8c139c3f3727537835e89fc53ed8c2 | 1,322 | package com.jasmine;
import org.junit.Test;
import java.util.Optional;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* optional
*
* @author guangchang
* @create 2019-07-30 21:31
**/
public class OptionalDemo {
public static void main(String[] args) {
O... | 24.036364 | 68 | 0.591528 |
cdafd6937bc54b7e3fa9af9e6c1779a39a40581d | 1,234 | package org.sunny.aframe.cache.domain;
import java.io.Serializable;
import org.sunny.aframe.db.annotation.Id;
import org.sunny.aframe.db.annotation.Table;
@Table(name = "entry")
public class Entry implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
@Id
private String id;
pri... | 14.022727 | 56 | 0.675851 |
67a6e73f650c7f3e4bcb83c3569570a1cabb5c73 | 1,615 | /* ========================================================================
* PlantUML : a free UML diagram generator
* ========================================================================
*
* (C) Copyright 2009-2020, Arnaud Roques
*
* Project Info: https://plantuml.com
*
* If you like this project or if ... | 28.839286 | 76 | 0.626625 |
f7cb8f4cedc806cb9d63c57f1e47c9cd4c7b99b1 | 16,425 | // Copyright (C) 2013 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 applicable ... | 32.39645 | 83 | 0.734186 |
68e8cef6acde90aa28365387526d76b198f5676f | 10,617 | /*
* Copyright (C) 2017 Synacts GmbH, Switzerland (info@synacts.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless... | 44.2375 | 220 | 0.667326 |
1c899cbe7b46a6324011d4c71421c157459ef65a | 641 | package xyz.brassgoggledcoders.streetsweeper;
import net.minecraft.data.DataGenerator;
import net.minecraft.data.EntityTypeTagsProvider;
import net.minecraft.entity.EntityType;
import net.minecraftforge.common.data.ExistingFileHelper;
public class SSEntityTagsProvider extends EntityTypeTagsProvider {
public SSEnt... | 35.611111 | 106 | 0.808112 |
60b106b08083351945b538a9283e291bb8e1914e | 525 | package team.flint.flint.model.table;
import lombok.Getter;
import lombok.Setter;
import java.util.Date;
@Getter
@Setter
public class ResourceAuthority {
private Integer resourceId;
/**
* 资源名字
*/
private String name;
/**
* 资源路径
*/
private String path;
private Long ... | 12.804878 | 37 | 0.56 |
4af9b8d321f629c8738693fb55a96534e8ca89b5 | 828 | package kungzhi.muse.osc.transform;
import com.illposed.osc.OSCMessage;
import kungzhi.muse.model.Battery;
import kungzhi.muse.runtime.Transformer;
import static kungzhi.muse.osc.service.MessageAddress.BATTERY;
import static kungzhi.muse.osc.transform.MessageHelper.argumentAt;
@Transformer(BATTERY)
public class Batt... | 34.5 | 76 | 0.719807 |
61ee5ffcf0979ecf625f008bc182bb507c0bcadf | 10,150 | /**
* 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... | 43.939394 | 227 | 0.744236 |
b34df914b40e49abf95911a82928114247e1d6d2 | 2,211 | /*
* Copyright 2008-2009 LinkedIn, 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 agre... | 31.140845 | 82 | 0.687472 |
2fe12d98c13ea5796c4c7a7c8c73b4e3c42904da | 742 | package tech.jhipster.lite.generator.server.springboot.cache.jcache.infrastructure.config;
import static org.assertj.core.api.Assertions.assertThat;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import tech.jhip... | 33.727273 | 132 | 0.84097 |
144ec33a43dde800f200b7d5c8ee7c1d9925d062 | 2,093 | /*******************************************************************************
* Caleydo - Visualization for Molecular Biology - http://caleydo.org
* Copyright (c) The Caleydo Team. All rights reserved.
* Licensed under the new BSD license, available at http://caleydo.org/license
*********************************... | 33.758065 | 101 | 0.70903 |
26f694b5f4ef04823ac4d4482853b0cac21f4b97 | 3,969 | package cl.zpricing.avant.servicios.ibatis;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import org.apache.log4j.Logger;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import cl.zpricing.avant.model.Parametro;
import cl.zpricing.avant.servicios.ServiciosRevenueMa... | 33.923077 | 135 | 0.746788 |
7cf8ffb4d8b84d5b34c6f7d49caa0219aae6aa00 | 58,708 | package totok.sulistyo.s0;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.database.sqlite.SQLiteDatabase;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.drawable.An... | 49.045948 | 278 | 0.41221 |
6b388ab12ac66008e1b5fc4af6e967018bc4ae30 | 202 | public void test07() throws Throwable {
String[] stringArray0 = new String[9];
stringArray0[1] = "0";
LagoonCLI.main(stringArray0);
assertEquals(9, stringArray0.length);
}
| 28.857143 | 44 | 0.638614 |
227785473264dd7cbf270611b16865512c6ddc48 | 5,352 | package org.tron.core.net.messagehandler;
import com.googlecode.cqengine.query.simple.In;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ScheduledExecutorService;... | 35.210526 | 100 | 0.718236 |
0a8f3a9d1f423763d266ba64ea095a686e7b93b8 | 9,976 | package com.deftwun.zombiecopter.box2dJson;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.Fixture;
import com.badlogic.gdx.physics.box2d.Joint;
import com.badlogic.gdx.physics.box2d.World;
import com.badlogic.gdx.utils.Array;
import com.... | 28.101408 | 121 | 0.6665 |
78bbc5fdcbf99d5ac7a9b74ad173bdadbb2dc85d | 2,748 | /*
* Copyright 2000-2010 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... | 35.688312 | 120 | 0.726346 |
b83d47e18310c0c235520edf14b4ce41be0705ab | 946 | package net.obvj.confectory.testdrive;
import net.obvj.confectory.Configuration;
import net.obvj.confectory.mapper.GsonJsonToObjectMapper;
import net.obvj.confectory.testdrive.model.MyBean;
public class ConfectoryTestDriveGsonJsonToObject
{
public static void main(String[] args)
{
Configuration<MyBean... | 36.384615 | 70 | 0.667019 |
9d743bcc6f5bfaf62b200f6d2f97e2deadca76b4 | 17,029 | import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
/**
* Database class to handle connections and queries
* @author Michael... | 32.560229 | 250 | 0.638147 |
0505045af42139b35aa2d3b2d663206e51e7e056 | 10,242 | /**
* Copyright 2015-2016 The OpenZipkin 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 applicable law or ... | 40.482213 | 100 | 0.719781 |
297a8e3fb45bbae2cba6866638d539e950d49b8e | 4,453 | package test.api;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import de.aservo.ldap.adapter.api.database.Row;
import de.aservo.ldap.adapter.api.database.exception.UnknownColumnException;
import de.aservo.ldap.adapter.api.entity.C... | 32.268116 | 117 | 0.556254 |
942c296347fdcb329e908beb79052ffb22169f64 | 661 | package uav.navigation.aco;
import network.InspectableEdge;
import network.Node;
import network.UAVNetwork;
/**
* An ACO implementation that takes the neighbours of the edges into account.
*
* The heuristic of an edge is calculated based on its last inspection time: (time - edge.getLIT())^beta
* The pheromone i... | 30.045455 | 122 | 0.747352 |
177f48e7b9f78c069594b69913ce7c7b917003be | 2,307 | /*
* Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
*
* 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... | 39.775862 | 82 | 0.73212 |
b22bcfef488755d74eceaaf1f25cbe495488c289 | 2,565 | package net.andreho.dyn.classpath.impl;
import net.andreho.dyn.classpath.Entry;
import java.net.URL;
import java.util.Collections;
import java.util.Set;
import java.util.WeakHashMap;
import static java.util.Objects.requireNonNull;
/**
* <br/>Created by a.hofmann on 18.07.2017 at 12:07.
*/
public abstract class Ab... | 24.428571 | 111 | 0.663548 |
9764f939cf6dc523f5d8e216eda89d2582c74ac1 | 821 | package br.com.alura;
import java.util.stream.Collectors;
import javax.validation.ConstraintViolationException;
import javax.ws.rs.core.Response;
import javax.ws.rs.ext.ExceptionMapper;
import javax.ws.rs.ext.Provider;
import br.com.alura.dto.MensagemErroDTO;
@Provider
public class ConstraintValidationMapper implem... | 29.321429 | 98 | 0.676005 |
3de5ec67e2f6ce7a0699b38d3af800a43ade7187 | 1,151 | package com.mmall.controller;
import com.mmall.beans.PageQuery;
import com.mmall.common.JsonData;
import com.mmall.param.SearchLogParam;
import com.mmall.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.we... | 27.404762 | 80 | 0.742832 |
0f31937d4b5e7c5a69e3ddc928afa61778086680 | 14,249 | /*
* Copyright (C) 2016 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... | 40.480114 | 116 | 0.62629 |
233a6da4ce8428244d7e6b92002cf6848ec128f4 | 9,176 | package com.jonalmeida.project420;
import android.app.Activity;
import android.content.ContentResolver;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os.Bundle;
import android.provider.ContactsContract;
import android.support.v4.app.Fragment;
import android.text.... | 39.046809 | 117 | 0.612685 |
884c490f735f476792565a574ddab1cdb675684c | 16,569 | /*
* Copyright (c) 2008-2020, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | 48.447368 | 135 | 0.7202 |
e09038a15c4843c61ecc79159f7133904d0d4074 | 57,308 | package com.ziroom.ziroomcustomer.newmovehouse.activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import an... | 38.281897 | 385 | 0.649473 |
38d20c6b5de6c0d97486dc4558b2ee9717f26dd1 | 3,119 | package us.ihmc.commonWalkingControlModules.controlModules.foot.partialFoothold;
import us.ihmc.mecano.frames.MovingReferenceFrame;
import us.ihmc.mecano.spatial.interfaces.TwistReadOnly;
import us.ihmc.robotics.math.filters.AlphaFilteredYoVariable;
import us.ihmc.robotics.robotSide.RobotSide;
import us.ihmc.yoVariabl... | 38.036585 | 152 | 0.731004 |
3dea8ee6154a051e3f5900f1994c2516e1c25f3f | 28,117 | /**
* Copyright (c) 2014, 2018 ControlsFX
* 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 above copyright
* notice, this list o... | 37.639893 | 146 | 0.579756 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.