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 |
|---|---|---|---|---|---|
6e1127d3bfabadad28a16fca73ef27ad206236a8 | 3,231 | package cn.edu.xmut.izhihu.pojo.entity;
import javax.persistence.*;
import java.util.Date;
@Table(name = "private_message")
public class PrivateMessage {
/**
* 私信Id
*/
@Id
@Column(name = "priv_mess_id")
@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT LAST_INSERT_ID()"... | 18.462857 | 94 | 0.545961 |
07ae9d2221f664e9ba5fb05f65c12faec5b9dfca | 174 | package ru.javawebinar.basejava.storage;
public class ListStorageTest extends AbstractStorageTest {
public ListStorageTest() {
super(new ListStorage());
}
} | 21.75 | 58 | 0.729885 |
5301ea97fbcf1a8739888d766016cce854b55bb9 | 2,507 | /*
* JBoss, Home of Professional Open Source
*
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* 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/lic... | 26.956989 | 129 | 0.677702 |
5c6c97aaddc43cadc074660038caa927f1b4f19a | 3,442 | package qkbc.distribution;
import umontreal.ssj.probdist.ContinuousDistribution;
import util.Pair;
import java.util.Arrays;
import java.util.Comparator;
public class IntegralDistributionApproximator {
public static final int INTEGRAL_N_BINS = 1 << 16;
public static final double INVERSE_F_IGNORE_THRESHOLD = 1... | 31.577982 | 147 | 0.528472 |
ffdb055ada67a0170438d0d94d722b4e2f5c252e | 5,046 | package org.apereo.cas.oidc.services;
import org.apereo.cas.oidc.AbstractOidcTests;
import org.apereo.cas.services.OidcRegisteredService;
import org.apereo.cas.services.PartialRegexRegisteredServiceMatchingStrategy;
import org.apereo.cas.services.RegexRegisteredService;
import org.apereo.cas.services.RegisteredService... | 42.762712 | 136 | 0.757432 |
9c63222d6ef7b4ed83fc0b85de18c27c75e6f49a | 7,668 | package com.miemie.naming;
import android.content.ContentProvider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import android.content.UriMatcher;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteData... | 31.817427 | 114 | 0.641497 |
db0156a845b96b7a4cd8412cfe7d37626d362ce0 | 1,602 | package org.trimou.trimness.model;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import static org.trimou.trimness.config.TrimnessKey.GLOBAL_JSON_FILE;
import javax.json.JsonArray;
import javax.json.JsonObject;
import javax.json.JsonStructure;
import javax.json.JsonValue.V... | 32.04 | 106 | 0.742821 |
2a5d00fa7000b97f0db6eebc31232ad2d05b3765 | 2,209 | package de.samply.fhir.valueset.gen;
import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.parser.IParser;
import de.samply.fhir.valueset.gen.icd.Extractor;
import org.hl7.fhir.r4.model.ValueSet;
import java.io.*;
import java.util.ArrayList;
import java.util.List;
public class Main {
/**
* https://hap... | 37.440678 | 114 | 0.631055 |
a346a82cf34454a60e8149ba5f7d75c15abc17c2 | 227 | package com.rbkmoney.fraudo.model;
import lombok.Data;
@Data
public class BaseModel {
private String ip;
private String email;
private String fingerprint;
private Long amount;
private String currency;
}
| 15.133333 | 34 | 0.722467 |
70519665401c6ec0af4b40a8e43e8fb3985a687a | 137 | class T {
void f(String[] a) {
int k = 0;
while <caret>(k < a.length)
System.out.println(a[k++]);
}
} | 19.571429 | 39 | 0.430657 |
a421eb08cb9bf3ab62280deb024ca1e4dabeb691 | 848 | /*
* Copyright 2016-2017 Malcolm Reid Jr.
* 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 ... | 36.869565 | 75 | 0.761792 |
72c2cb412ca418a16fa072eec44752943f04390f | 5,928 | package jkanvas;
import java.awt.Graphics2D;
import java.awt.event.MouseEvent;
import java.awt.geom.Point2D;
import java.awt.geom.RectangularShape;
/**
* Paints and interacts with a Kanvas in canvas coordinates.
*
* @author Joschi <josua.krause@gmail.com>
*/
public interface KanvasInteraction {
/**
* Draw ... | 41.166667 | 80 | 0.70614 |
2f48a04a440683e65aedc525a5e07b50e242d073 | 1,601 | package com.aoeai.spin.accelerator.generate.utils;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.yaml.snakeyaml.Yaml;
import java.io.File;
import java.io.FileNotFoundException;
import static com.aoeai.spin.accelerator.generate.utils.FileTools.getMainResourcesFilePath;
/**... | 30.207547 | 99 | 0.652092 |
0ebb89291ce8f4b690464a6e063eb2330a03cfce | 10,786 | package fr.inra.urgi.faidare.service.es;
import com.opencsv.CSVWriter;
import fr.inra.urgi.faidare.api.faidare.v1.GnpISGermplasmController;
import fr.inra.urgi.faidare.domain.criteria.FaidareGermplasmPOSTShearchCriteria;
import fr.inra.urgi.faidare.domain.criteria.GermplasmSearchCriteria;
import fr.inra.urgi.faidare.d... | 47.725664 | 121 | 0.66234 |
8a4bd2b558ce445d0356bcf71236f14116051776 | 1,886 | package org.evan.study.concurrent.chapter09;
import org.evan.study.concurrent.chapter04.ThreadDaemon;
import java.util.stream.Stream;
/**
* Created by marvel on 2017/10/15.
* # The diffrence of sleep and wait:
* 1. sleep is the method of Thread, and the wait is the method of Object;
* 2. sleep will not... | 29.46875 | 145 | 0.526511 |
497db0052b607f7ffd4d3d246c8a8784fa39f638 | 308 | package com.dota2.store.mails;
import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;
public class MailAuthenticator extends Authenticator{
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication ("usssai@gmail.com", "$");
}
}
| 28 | 68 | 0.775974 |
94d05775d0d097fe1a03d26783ac7336b4b3e6dc | 295 | package org.kokzoz.dluid.domain.exception;
public class InvalidSwitchConnectionExistException extends AbstractInvalidLayerException {
public InvalidSwitchConnectionExistException(String layerId){
super(layerId, "Upward connection is impossible on merge and switch layer.");
}
}
| 36.875 | 90 | 0.80339 |
ab855499b384b85d6f7368fc91b07352ca310de8 | 4,768 | package cloud.foundry.cli.crosscutting.mapping;
import static com.google.common.base.Preconditions.checkNotNull;
import cloud.foundry.cli.crosscutting.exceptions.YamlTreeNodeNotFoundException;
import java.util.List;
import java.util.Map;
/**
* This class is responsible to descend a yaml tree according to a specifi... | 39.404959 | 117 | 0.681628 |
7925a7eb2f632256420ba55f30e51249a0b4a764 | 782 | package com.by_syk.bigjpg.util;
import android.content.Context;
import android.graphics.BitmapFactory;
import android.graphics.Point;
import android.net.Uri;
import android.support.annotation.Nullable;
/**
* Created by By_syk on 2017-06-20.
*/
public class ImgUtil {
@Nullable
public static Point getImgSize... | 26.965517 | 72 | 0.658568 |
01990b8be4cafcb65d072825e4195089084e41f2 | 451 | package com.desertkun.brainout.content.quest;
import com.desertkun.brainout.BrainOutClient;
import com.desertkun.brainout.reflection.Reflect;
import com.desertkun.brainout.reflection.ReflectAlias;
@Reflect("content.quest.DailyQuest")
public class ClientDailyQuest extends DailyQuest
{
public ClientDailyQuest()
... | 22.55 | 63 | 0.758315 |
cb9d57aaadfb230cf664df62571a0fa762e341c1 | 355 | package com.jingyuyao.tactical.model.script;
/**
* An event from the model that can trigger some script actions. Each implementation must have a
* corresponding method in {@link Condition}.
*/
public interface ScriptEvent {
/**
* Return whether this event is satisfied by the given condition.
*/
boolean s... | 25.357143 | 96 | 0.740845 |
6e0e33678a5dddf3fc8d921e1a16955a7c051eb1 | 2,198 | /*
* Copyright 2016-2019 Tim Boudreau, Frédéric Yvon Vinet
*
* 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 ... | 29.702703 | 127 | 0.651501 |
60f848a7d5b850ce1863ebaecfb4b935ec8100e1 | 13,231 | /*
* Licensed to GraphHopper GmbH under one or more contributor
* license agreements. See the NOTICE file distributed with this work for
* additional information regarding copyright ownership.
*
* GraphHopper GmbH licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may n... | 29.665919 | 193 | 0.620664 |
30bea215c2a6f16d671e5433c714d39b5bc00886 | 3,169 | /*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Copyright 2020 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... | 31.376238 | 126 | 0.64279 |
56308493f13cae8d0892f04b17b5b6360c65f747 | 538 | package com.github.archerda.spring.ioc.beanwire;
import org.springframework.stereotype.Component;
/**
* Create by archerda on 2017/11/19.
*/
@Component
public class SgtPeppers implements CompactDisc {
private String title = "Sgt.Pepper's Lonely Hearts Clue Band";
private String artist = "The Beatles";
... | 20.692308 | 66 | 0.654275 |
03b8d75d092a105c02920b61e5753c8d46d7fb31 | 891 | package xml;
import java.util.Map;
import rule.FireRule;
import rule.Rule;
public class FireXMLRule extends XMLRule
{
public static final String DATA_TYPE = "Fire";
// public static final List<String> DATA_FIELDS = makeDataFields();
@Override
public Rule getRule(Map<String, String> dataValues)
{
// double ... | 22.275 | 71 | 0.690236 |
6d707b5aa4056ffdff37dd74339477c73bde2929 | 13,518 | /*
* Copyright 2017-2019 EPAM Systems, Inc. (https://www.epam.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 requ... | 42.914286 | 117 | 0.662746 |
3e8b46cb76ab67dcc8501deb75c34fb1a118ff15 | 4,275 | /*
* Copyright (c) 2015 Christian Chevalley
* This file is part of Project Ethercis
*
* 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
*
... | 34.475806 | 190 | 0.72538 |
e3b24e7b93cd0ebca5c7b805c90df9453dbca4a1 | 3,133 | package tk.greydynamics.Entity;
import tk.greydynamics.Game.Core;
import tk.greydynamics.Resource.ResourceHandler.ResourceType;
import tk.greydynamics.Resource.Frostbite3.EBX.EBXExternalGUID;
import tk.greydynamics.Resource.Frostbite3.EBX.Structure.EBXStructureFile;
import tk.greydynamics.Resource.Frostbite3.EBX... | 38.207317 | 146 | 0.73029 |
fb73b42cee86eb5ba36f5cb4c36df40211bbba4a | 135 | class TypeAnnoOnMethodTypeParameterBound {
<T extends @Anno String & java.util.@Anno(2) Map<Integer, @Anno(3) String>> void m() {}
}
| 33.75 | 89 | 0.711111 |
8cf8e71c90491a23ca1b496607c8a40d5b0ccfa9 | 1,855 | package com.lollito.releasedashboard.dto;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
public class RepositoryResponse {
private String name;
private String release;
@JsonFormat(pattern = "dd-MM-yyyy")
private Date releaseDate;
private Long releaseCommits;
private String compar... | 17.336449 | 53 | 0.734771 |
90f3589aba365e3c4f2ea2b7dd729c344060921f | 167 | package dev.abarmin.home.is.backend.readings.model.device;
/**
* @author Aleksandr Barmin
*/
public enum ImportDeviceFeature {
READINGS,
INVOICES,
RECEIPTS
}
| 15.181818 | 58 | 0.736527 |
d6d5909093270622a9945bab1ec4f319d2d961ca | 3,207 | package org.obd.metrics.api;
import java.io.IOException;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.obd.metrics.DataCollector;
public class StatisticsTest {
@Test
public void mode01WorkflowTest() throws IOException, InterruptedException {
var collector = new DataColle... | 33.061856 | 109 | 0.698472 |
101378f463789789c7c8c669029eff43a018d1c3 | 1,832 | package tv.camment.cammentsdk.sofa;
import android.content.Context;
import android.graphics.Bitmap;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v7.widget.AppCompatImageView;
import android.util.AttributeSet;
import com.bumptech.glide.Glide;
import com.... | 34.566038 | 193 | 0.671943 |
1e503fb46e68066b6773922486f2094cb6c55fa3 | 1,178 | package lk.sliit.hotelManagement.entity.restaurant.onlineOrder;
import javax.persistence.Embeddable;
import java.io.Serializable;
@Embeddable
public class RestaurantOnlineOrderDetailsPK implements Serializable {
private int foodItemId;
private int restaurantOnlineOrder;
public RestaurantOnlineOrderDeta... | 26.772727 | 86 | 0.688455 |
90201162af6a86ae6175f7c731199de90567623c | 8,037 | package pirexGUI;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.A... | 39.591133 | 115 | 0.667538 |
c8bde5560fcae0c5800b519c7fd7b90042e6b957 | 1,446 | package org.jeff.lune.object;
import java.util.HashMap;
/**
* Lune语言中数据结构的对象 -在C/C++中将使用Union进行表示
* struct LuneObject
* {
* int type;
* union{
* long long iValue;
* double fValue;
* char* sValue;
* bool bValue;
* // 这些需要待实际写的时候看怎么定义
* List* lValue;
* Dict* dValue;
* Fu... | 19.28 | 78 | 0.665284 |
aa35178c3336655fd182e845b4e77a13749c4030 | 4,148 | package com.cc.mobilesafe.Service;
import java.lang.reflect.Method;
import com.android.internal.telephony.ITelephony;
import com.cc.mobilesafe.Engine.BlackNumberDao;
import com.cc.mobilesafe.Reciver.BlackNumberContentObserver;
import com.cc.mobilesafe.Reciver.BlackNumberReciver;
import com.cc.mobilesafe.Servi... | 27.470199 | 115 | 0.729267 |
29e18a80880c00eb0b5b3ee5f7c78cc2b87d7bb8 | 495 | package pipe.gui.imperial.reachability.algorithm;
import pipe.gui.imperial.pipe.models.petrinet.PetriNet;
public class BoundedExplorerUtilities extends CachingExplorerUtilities {
private final int maxNumberOfStates;
public BoundedExplorerUtilities(PetriNet petriNet, int maxNumberOfStates) {
super(petriNe... | 29.117647 | 78 | 0.781818 |
e821c50c75d31fcb63f62f3fb4807507e2eb356a | 988 | package j2html.comparison;
import com.carrotsearch.junitbenchmarks.BenchmarkOptions;
import com.carrotsearch.junitbenchmarks.BenchmarkRule;
import com.carrotsearch.junitbenchmarks.Clock;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.TestRule;
@Ignore
@BenchmarkOptions(c... | 28.228571 | 121 | 0.736842 |
2f6cd27f38d6db5f132efc82dc98cfbad1f23440 | 356 | package zhushen.com.shejimoshi.leetcode;
/**
* Created by Zhushen on 2018/9/10.
*/
public class isOneBitCharacter {
public boolean isOneBitCharacter(int[] bits) {
int len = bits.length;
int i;
for( i=0;i<len-1;i++){
if(bits[i]==1){
i += 1;
}
... | 19.777778 | 50 | 0.497191 |
97fe4ed0acee09519ea24c46537bd93adc849937 | 8,820 | package com.hbm.tileentity.machine;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.hbm.handler.FluidTypeHandler.FluidType;
import com.hbm.interfaces.IConsumer;
import com.hbm.interfaces.IFluidAcceptor;
import com.hbm.interfaces.IFluidContainer;
import com.hbm.inventory.Flu... | 23.333333 | 129 | 0.6839 |
b6aead43d6ee73e75cf732590f399eeb3ad2997d | 961 | package frc.robot.commands;
import java.util.function.BooleanSupplier;
import edu.wpi.first.wpilibj2.command.CommandBase;
import frc.robot.subsystems.OTBSubsystem;
public class OTBCommand extends CommandBase {
private OTBSubsystem subsystem;
private BooleanSupplier bumperSupplier;
private BooleanSupplier... | 29.121212 | 106 | 0.690947 |
5cb39ffb31fe58dd4fee565bcc04e4f1d5a624c8 | 1,401 | /*
* Copyright 2017 Red Hat, 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 to in... | 33.357143 | 75 | 0.655246 |
53411e11cb98e411d0571d2f019a8682b0ada752 | 1,612 | /*******************************************************************************
* Copyright (c) 2004 Actuate Corporation.
* 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, and is availabl... | 26.42623 | 81 | 0.638337 |
de7ed99651430db84b38f2aede03ecc7be1a5016 | 621 | package cn.sxt.service;
import java.util.List;
import cn.sxt.pojo.Pagination;
import cn.sxt.pojo.RentTable;
public interface RentTableService {
/**
* 生成出租单
*
* @param rentTable
*/
public void makeRenttable(RentTable rentTable);
/**
* 查询所有出租单
*
* @return
*/
public List<RentTable> selAllRentTab... | 14.44186 | 62 | 0.669887 |
d8a2ed5e672c0791e84d63ccc3ebbb151bb3f921 | 2,972 | package lv.dium.riskclient;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Color;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.Batch;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.scenes.scene2d.Act... | 33.772727 | 105 | 0.57638 |
1615c02fe67c740a190ca5f44005b7513e3a7eac | 1,061 | package shoppingappextract.extract;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import org.requirementsascode.Model;
import org.requirementsascode.extract.freemarker.FreeMarkerEngine;
import shoppingapp.boundary.Boundary;
public class ShoppingAppExtract {
public static void main(Str... | 25.261905 | 79 | 0.759661 |
9b5770b6fdd36ba412e862700f2a54e0674b947f | 1,916 | package loghub.processors;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.log4j.spi.LoggingEvent;
import loghub.Event;
import loghub.Helpers;
public class Log4Extract extends ObjectExtractor<LoggingEvent> {
@Override
public void extract(Eve... | 33.614035 | 93 | 0.623695 |
df22741f17d6eff242a655429bc4eb6a1440ff7e | 1,892 | package com.jzy.model.dto.search;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
/**
* @ClassName StudentAndClassSearchCondition
* @Author JinZhiyun
* @Description 学生上课信息查询条件的封装
* @Date 2019/11/25 18:02
* @Version 1.0
**/
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = t... | 16.596491 | 77 | 0.598837 |
b711c1b62d398e8c9ca03368ea0de37a0df574ff | 3,186 | package com.github.maxopoly.WurstCivTools.effect;
import java.util.HashSet;
import java.util.LinkedList;
import java.util.List;
import java.util.Set;
import org.bukkit.Bukkit;
import org.bukkit.Material;
import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.entity.Player;
import org.bukkit.event.blo... | 32.510204 | 102 | 0.737602 |
6f6ae1f8bd0fb8fb4ee9ac7db49aa3f8074b7535 | 2,728 | /**
* 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... | 45.466667 | 99 | 0.773827 |
b7d3e824fc6e7aae337e830521d263c395ec4612 | 260 | package interfac.interface_interface;
public class Main implements Interface1, Interface2 {
// interface vs interface, the class must implements default method of interfaces
@Override
public void method() {
System.out.println("");
}
}
| 26 | 85 | 0.715385 |
5a70d6550313894a3f032b12d7aab8323b5b257b | 16,144 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) 2008-2009, The KiWi Project (http://www.kiwi-project.eu)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*... | 34.131078 | 149 | 0.699393 |
c465c893f8458e42321116b760a57933297f64c0 | 237 | package com.shihy;
import com.shihy.web.TulingExternalSpringBootApplication;
/**3
*/
public class MainStarter {
public static void main(String[] args) throws Exception {
TulingExternalSpringBootApplication.run();
}
}
| 18.230769 | 61 | 0.729958 |
dae94c8690c0a417f01a6c221682618844db2ea3 | 9,388 | package com.sasconsul.rcp.web.rest;
import com.sasconsul.rcp.Rcp2App;
import com.sasconsul.rcp.domain.Words;
import com.sasconsul.rcp.repository.WordsRepository;
import com.sasconsul.rcp.web.rest.errors.ExceptionTranslator;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.m... | 36.671875 | 93 | 0.689391 |
0033bae76f5f73d50a1b3af6d3df6b4fc70cc304 | 1,080 | package org.concept.lambda.ex19;
import org.concept.lambda.ex18.MethodReferencesLEX;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.logging.Logger;
public class MethodReferencesGenerics {
private static final Logger LOG = Logger.getLogger(MethodReferencesGenerics... | 27.692308 | 97 | 0.625926 |
1af7edcadddf3f00645330310170b588ba2f2b28 | 3,883 | package Trip;
/*
*
* @Author: Sandeep Sasidharan
*/
import org.joda.time.DateTime;
public class FilterFunctions {
/*Distance calculator*/
public static double distFrom(double lat1, double lng1, double lat2, double lng2) {
double earthRadius = 3958.75;
double dLat = Math.toRadians(lat2-lat1);
double dLn... | 25.214286 | 84 | 0.680402 |
8150384f800bbbf6e5e71a55584d011cee9bc3c1 | 9,454 | /**
* Copyright (c) Dell Inc., or its subsidiaries. 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
*/
package ... | 42.017778 | 152 | 0.687857 |
2b17421cac428c92964f2c975a81fb071c1360f7 | 5,587 | /*
* Copyright 2021-present Open Networking 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 appli... | 41.69403 | 102 | 0.697512 |
49482a0138171030420af6bbc611a2d7766605d4 | 9,746 | /*
* Copyright 2013 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 b... | 31.642857 | 142 | 0.641391 |
f353e61f3fff88055607fa6c473870a3c1cb4203 | 1,067 | package net.md_5.bungee.protocol.packet;
import io.netty.buffer.ByteBuf;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import net.md_5.bungee.protocol.AbstractPacketHandler;
import net.md_5.bungee.protocol.DefinedPacket;
import net.md_5.bungee.p... | 25.404762 | 94 | 0.740394 |
f9583f51aab4220fd4b3737e56a3eb5e2105b2bc | 5,433 | /* Author: Mingcheng Chen
* Editor: Felix Wang
* */
import java.util.Random;
import java.util.ArrayList;
import java.io.PrintWriter;
public class Simulator {
public static void main(String[] args) {
if (args.length != 6) {
System.out.println("Usage: java Simulator <world> <agent> <steps> <episodes> <po... | 28.445026 | 118 | 0.590282 |
36c222675458043d15c1ea335d7b0138bff7610a | 8,255 | package com.universalcinemas.application.views.crudplans;
import java.util.Optional;
import javax.annotation.security.RolesAllowed;
import org.springframework.beans.factory.annotation.Autowired;
import org.vaadin.artur.helpers.CrudServiceDataProvider;
import com.universalcinemas.application.data.plan.Plan;
import c... | 33.28629 | 101 | 0.732889 |
cc5002321337b0d67bcde1fb54bb06f990b97d9a | 220 | package com.ywj.util.base;
/**
* author: ywj
* created on: 2018/10/31 10:34
* description: App常量
*/
public class AppConstant {
public static String USER_ID;
public static final String DATA = "DATA";
}
| 12.222222 | 45 | 0.659091 |
b0877a831b3b1e5f3b88615dea406f1af0e1c435 | 2,170 | /*
* Copyright 2017 Apereo
*
* 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 wr... | 33.384615 | 99 | 0.742396 |
b36f0d085a5c7dbbfb3ab811ba7d10d8bd65dbb9 | 9,602 | package src.main.gov.va.vha09.grecc.raptat.gg.oneoffs.raptatutilities;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Itera... | 45.942584 | 122 | 0.649552 |
b265fc9dee08d750abeef3f214c440701fd7bb4c | 954 | package com.develdio.remotesearch.shared.helper;
import java.util.List;
import java.util.Map;
import com.develdio.remotesearch.shared.Info;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* This class plays with JSON Notation, providing the final us... | 23.268293 | 80 | 0.714885 |
f9d510c1672e44e0e073b1a6c31843daef072954 | 1,191 | package ru.mydesignstudio.database.metadata.extractor.extractors.type;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import ru.mydesignstudio.database.metadata.extractor.extractors.ExtractHelper;
import ru.mydesignstudi... | 41.068966 | 103 | 0.816961 |
c2e66b0efaa9d7931318d037c0d21f7529396bfb | 164 | package yom2;
/**
* Represents an action without parameters.
* @author erelsgl
*
*/
public interface Runnable {
/**
* The action to do.
*/
void run();
}
| 11.714286 | 43 | 0.621951 |
f505199cc92eb5063c8ac04d6105f8975baf1e78 | 1,721 | /**********************************************************************************
* $URL$
* $Id$
***********************************************************************************
*
* Copyright 2006, 2007 Sakai Foundation
*
* Licensed under the Educational Community License, Version 2.0 (the "License");
* yo... | 33.096154 | 84 | 0.627542 |
92016d69598612934f33dbe388eca563b428d7fb | 483 | package org.cx.game.utils;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import lombok.Data;
@Data
public class Connect {
@NotNull
@NotBlank
private String playNo; //比赛ID号
@NotNull
@Min(1)
private Integer troop; ... | 18.576923 | 45 | 0.706004 |
fe138625c2053d47d92f9e6c1ddb83065b41a0fa | 409 | package com.denizenscript.denizen.nms.util;
import org.bukkit.util.Vector;
public class BoundingBox {
private Vector low;
private Vector high;
public BoundingBox(Vector location, Vector size) {
this.low = location;
this.high = size;
}
public Vector getLow() {
... | 17.782609 | 55 | 0.589242 |
bb45cb429bc7d7698b472d1739eedef469404b6c | 8,384 | package ru.solargateteam.galnetru.db;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import java.util.ArrayList;
import java.util.Li... | 40.897561 | 198 | 0.597805 |
2bf22f911c011b03896f800f9b80c3512f0ffaa2 | 2,247 | package com.daemon.pas.ui.activity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.EditText;
import android.widget.ImageVie... | 25.247191 | 94 | 0.719181 |
26749013e54349400fe6447d4b4a31303578405d | 3,159 | package com.rance.chatui.util;
import android.content.Context;
import android.view.KeyEvent;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.PopupWindow;
/**
* 作者:Rance on 2016/11/29 10:47
* 邮箱:rance935@163.com
*/
public class PopupWindowFactory {
... | 24.3 | 102 | 0.586578 |
9f75674b9fa5d6c58bce3b7845d3c5acd48291f5 | 699 | package be.pxl.mockitis;
import java.util.ArrayList;
import java.util.List;
public class RaidersTestBuilder
{
private boolean hasLegendary;
private List<Raider> actualRaiders = new ArrayList<Raider>();
public RaidersTestBuilder()
{
}
public Raiders build()
{
Raiders raiders = new Raiders(hasLegendary);
/... | 19.971429 | 72 | 0.76681 |
4ef7f944cb4f2a9deb5a6d255ced8acf25e32e6d | 738 | package cloud.lemonslice.afterthedrizzle.common.item;
import cloud.lemonslice.afterthedrizzle.AfterTheDrizzle;
import cloud.lemonslice.afterthedrizzle.common.config.ServerConfig;
import net.minecraft.item.ItemUseContext;
import net.minecraft.item.Items;
import net.minecraft.util.ActionResultType;
public class Fertili... | 28.384615 | 72 | 0.743902 |
1cb8ab174372e37f82234c93f2f392d541d3a73e | 72 | package net.livecourse.android.chat;
public class Document
{
}
| 10.285714 | 37 | 0.694444 |
d4ef1f5ae8f80ac019e73ad6105941e1fa68a8bd | 3,413 | package org.codeforamerica.shiba.output.pdf;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
import java.util.function.BinaryOperator;
import lombok.extern.slf4j.Slf4j;
import org.apache.pdfbox.multipdf.PDFMergerUtility;
i... | 32.817308 | 99 | 0.70085 |
70331c301f40b19a920bb2242944f22270c9939d | 667 | package dgm.degraphmalizr.degraphmalize;
import dgm.ID;
public class JobRequest {
private final DegraphmalizeRequestType requestType;
private final DegraphmalizeRequestScope requestScope;
private final ID id;
public JobRequest(DegraphmalizeRequestType requestType, DegraphmalizeRequestScope requestSco... | 23.821429 | 108 | 0.703148 |
ed2b709a56902e450db432881ea00499adbbcb68 | 1,818 | package com.remote2call.common.util;
import com.dyuproject.protostuff.LinkedBuffer;
import com.dyuproject.protostuff.ProtostuffIOUtil;
import com.dyuproject.protostuff.Schema;
import com.dyuproject.protostuff.runtime.RuntimeSchema;
import org.objenesis.Objenesis;
import org.objenesis.ObjenesisStd;
import java.util.Ma... | 28.40625 | 88 | 0.627613 |
8461f9d369d95ccaea06322c4cdcbd48a85307eb | 3,617 | package nc.multiblock.fission.salt.block;
import nc.NuclearCraft;
import nc.enumm.MetaEnums;
import nc.multiblock.fission.FissionReactor;
import nc.multiblock.fission.block.BlockFissionMetaPart;
import nc.multiblock.fission.salt.tile.TileSaltFissionHeater;
import nc.util.*;
import net.minecraft.block.properties.Proper... | 34.778846 | 242 | 0.739563 |
6e5946f8c667df7a0730ae6b1e016cd77dd4f7b0 | 1,150 | import java.io.File;
import java.util.ArrayDeque;
import java.util.Iterator;
import java.util.Queue;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
ArrayDeque<Integer> task1 = new ArrayDeque<>();
ArrayDeque<Integer> task2 = new ArrayDeque<>();
Scanner scanner = ne... | 27.380952 | 56 | 0.617391 |
644c3577063fa9bf6a4cda5ac6405f2a86084e9b | 2,211 | package gugugu.commands;
import cc.moecraft.icq.command.CommandProperties;
import cc.moecraft.icq.command.interfaces.EverywhereCommand;
import cc.moecraft.icq.event.events.message.EventMessage;
import cc.moecraft.icq.user.User;
import gugugu.bots.LoggerRabbit;
import gugugu.constant.ConstantQRCode;
import gugugu.servi... | 27.987342 | 96 | 0.589326 |
09567414fd9dfab0fc1936185ffb97c23d052956 | 1,590 | package atUniProMaven.inheritance;
import static atUniProMaven.inheritance.MessageType.*;
public class Main {
public static void main(String[] args) {
final Text text1 = new Text("Mary Key", "01.01.2020", "This is a new text about fast cars", POST, false);
final Media media1 = new Media("Gary Key... | 34.565217 | 114 | 0.628931 |
37fd11835d514974ad15880be574fdc17c3da325 | 850 | package com.voting_app.util.sanitizer;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Component;
import com.voting_app.models.CandidateVote;
/**
********************************************************************
* @implements ICandidateVoteListSanitizer
*
* Bean for ... | 24.285714 | 81 | 0.634118 |
b780563491662a65f81d3bea3978d321d9861510 | 1,414 | package com.hackedcube.kontact;
import android.database.Cursor;
import android.provider.ContactsContract;
import android.support.annotation.Nullable;
import com.gabrielittner.auto.value.cursor.ColumnAdapter;
import com.gabrielittner.auto.value.cursor.ColumnName;
import com.google.auto.value.AutoValue;
import com.hack... | 28.28 | 77 | 0.739745 |
5ce90dd4ed8448f77d770ff885ab620c1e7de4f6 | 2,961 | package AllClasses;
import javafx.scene.layout.AnchorPane;
import javafx.scene.shape.Rectangle;
import java.util.ArrayList;
public class Cat extends Rectangle {
public static ArrayList<Cat> cats=new ArrayList<>();
public static ArrayList<CatAnimation> catAnimation =new ArrayList<>();
double the... | 30.84375 | 125 | 0.494765 |
587875abdaaf3716a1392e7d41990c22b346a183 | 5,305 | package com.github.skrethel.simple.config.retrofit;
import com.github.skrethel.simple.config.retrofit.constraint.DefaultSchemaConstraintValidator;
import com.github.skrethel.simple.config.retrofit.exception.ValidationException;
import com.github.skrethel.simple.config.retrofit.schema.ConfigSchema;
import com.github.sk... | 32.151515 | 94 | 0.73459 |
1c9c755ec72f86dc80fa02360d95f97cd662cba5 | 141 | package com.bstek.ureport.echarts.options.prop;
/**
* @author Jacky.gao
* @since 2017年12月27日
*/
public enum Trigger {
item,axis,none;
}
| 14.1 | 47 | 0.702128 |
79b179974a978f08e8c6df8a719c1ec31e27bd77 | 292 | package com.coolcompany.Beshstore.controller;
import com.coolcompany.Beshstore.domain.Product;
import java.util.List;
public interface ProductController {
Product findById(int id);
List<Product> findAll();
void add(Product product);
void updateName (String name, int id);
}
| 24.333333 | 48 | 0.753425 |
80886312dbd91a85cc1ef330843d6cddd62015af | 5,285 | package npc.model.residences.clanhall;
import l2f.gameserver.dao.SiegeClanDAO;
import l2f.gameserver.model.Player;
import l2f.gameserver.model.entity.events.impl.ClanHallMiniGameEvent;
import l2f.gameserver.model.entity.events.objects.CMGSiegeClanObject;
import l2f.gameserver.model.entity.events.objects.SiegeClanObjec... | 30.906433 | 110 | 0.736235 |
76a3ab918e63050ebf875322574c74a8b6924dbc | 1,271 | package qea.benchmark.rovers;
import qea.properties.rovers.ResourceLifecycle_QVar01_FVar_Det_QEA;
import qea.properties.rovers.ResourceLifecycle_QVar01_FVar_NonDet_QEA;
import qea.properties.rovers.ResourceLifecycle_QVar01_NoFVar_NonDet_QEA;
import qea.properties.rovers.RoverCaseStudy;
import qea.benchmark.rover... | 27.630435 | 74 | 0.771833 |
8b16b397966ee311f3c7618ac3db437d53303689 | 47 | package ComplexCommands;
public class If {
}
| 7.833333 | 24 | 0.744681 |
78949ee0cb4fc8b3e75069d7f413c5e8c2e750cf | 156 | package introduction;
import oops.Student;
public class MainClass {
public static void main(String[] args) {
Student obj = new Student("Sid");
}
}
| 12 | 41 | 0.698718 |
5b4c609e2dfef906073d4428b8139116f04f0814 | 3,409 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import Hash.Hash;
import HeapMax.HeapMax;
import Pessoas.Advogado;
import Pessoas.Funcionario;
import Pessoas.Juiz;
import Pilha.Pilha;
import Processo.Processo;
public class Teste {
... | 32.466667 | 86 | 0.638017 |
ea90ed7f0a15fd9c8f64e7d3cea29459641f1e19 | 1,983 | /**
*
*/
package org.societies.rfid.server;
import java.util.Hashtable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.societies.api.osgi.event.CSSEvent;
import org.societies.api.osgi.event.EventListener;
import org.societies.api.osgi.event.IEventMgr;
import org.societies.api.osgi.... | 30.045455 | 118 | 0.704488 |
737f9a9d5c31550ca03f145724ded134fb2cfe87 | 2,918 | package no.uib.ii.inf102.f18.mandatory1;
/**
* A client for solving the problem https://uib.kattis.com/problems/uib.indexpq
* using an implementation of the IIndexPQ interface (implementation MUST be a min-PQ)
*
* @author Torstein Strømme
*/
public class IndexMinPQClient {
public static void main(S... | 32.065934 | 87 | 0.362234 |
2aaebbb1bfb83ce214953b0cbd6bb1908b520b7f | 802 | package bg.softuni.web.beans.list;
import java.io.Serializable;
import java.util.List;
import javax.annotation.PostConstruct;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;
import bg.softuni.entity.model.UserModel;
import bg.softuni.service.UserServiceLocal;
@ManagedB... | 22.914286 | 65 | 0.744389 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.