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 |
|---|---|---|---|---|---|
b69c863d81b077ac2e2e196f8e8c3a382a38f887 | 7,403 | /*
* Copyright 2016 Ecole des Mines de Saint-Etienne.
*
* 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.0625 | 454 | 0.58044 |
034fb2f36a9100e00057bf0028201090780c93d4 | 2,572 | package de.gerrygames.the5zig.clientviaversion.viaversion;
import us.myles.ViaVersion.api.ViaVersionConfig;
import java.util.Collections;
import java.util.List;
public class CustomViaConfig implements ViaVersionConfig {
@Override
public boolean isCheckForUpdates() {
return false;
}
@Override
public boolean i... | 14.697143 | 58 | 0.722006 |
906dc40c9e569d723c2d90d602000e808e4180dd | 500 | package com.tyrfing.games.id17.networking;
import com.tyrfing.games.id17.intrigue.actions.Maraude;
import com.tyrlib2.networking.Connection;
public class MaraudingArmy extends NetworkMessage {
/**
*
*/
private static final long serialVersionUID = 3376894262954246781L;
public final short armyID;
... | 20 | 68 | 0.724 |
a0ba50c3847c18e666dafc62b361428d826c6bb0 | 1,529 | package com.wangzhe.ui;
import java.net.URL;
import java.util.ResourceBundle;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Tab;
import javafx.scene.control.TabPane;
import org.apache.log4j.Log... | 25.483333 | 105 | 0.608241 |
3ab50ef0fbc282773cfb2ef3574b14684e464429 | 1,165 | package org.kanishka.onclinicwebbackend.model;
import java.util.Arrays;
import java.util.List;
public class Demographics {
private String race;
private String religion;
private List<String> languages= Arrays.asList("");;
private String occupation;
public Demographics() {
}
public Demogra... | 21.574074 | 98 | 0.638627 |
3af206ac4560878f0c23f1694804f5fa7f739410 | 863 | package com.workflowfm.composer.processes;
import com.workflowfm.composer.prover.Prover;
import com.workflowfm.composer.utils.validate.ValidationException;
import com.workflowfm.composer.utils.validate.Validator;
public class ProcessPortValidator implements Validator<ProcessPort> {
private Validator<String> channel... | 30.821429 | 100 | 0.816918 |
47aaea4b9a24849a9bb5941298ba9e8c602b2fe9 | 1,090 | package com.obsidiandynamics.meteor;
import java.io.*;
import java.util.*;
import com.hazelcast.core.*;
import com.obsidiandynamics.func.*;
public final class HeapRingbufferStore implements RingbufferStore<Object> {
public static final class Factory implements RingbufferStoreFactory<Object>, Serializable {
pri... | 23.695652 | 93 | 0.707339 |
48f0413561774532598334161139f36eb2be93ed | 8,287 | /* (C) Copyright 2009-2013 CNRS (Centre National de la Recherche Scientifique).
Licensed to the CNRS under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The CNRS licenses this file
to you under the Apache License, ... | 26.993485 | 81 | 0.723543 |
8a3e1c0d504d53765e58d6ffc5c6d267944357a0 | 3,502 | package gov.va.med.lom.avs.client.model;
import java.util.List;
import java.io.Serializable;
public class AvsJson implements Serializable {
private String content;
private String instructions;
private String fontClass;
private String language;
private String labDateRange;
private String sect... | 28.471545 | 84 | 0.722444 |
d8bde18ee8abf05f91c1eb16e92adc6b709125cb | 23,877 | package com.github.aloomaio.androidsdk.aloomametrics;
import android.content.Context;
import android.os.Build;
import android.os.Handler;
import android.os.HandlerThread;
import android.os.Looper;
import android.os.Message;
import android.util.DisplayMetrics;
import android.util.Log;
import com.github.aloomaio.androi... | 42.790323 | 152 | 0.545713 |
930f280b862fe448cb9726cf13ad946446ab188f | 1,399 | package org.cloudfoundry.autoscaler.servicebroker.data.storeservice;
import java.util.List;
import org.cloudfoundry.autoscaler.servicebroker.data.entity.ApplicationInstance;
import org.cloudfoundry.autoscaler.servicebroker.data.entity.ServiceInstance;
public interface IDataStoreService {
public ServiceInstance c... | 35.871795 | 147 | 0.808435 |
1005b8c42949beb954ecef4c42c83f7ad60fb1b9 | 2,368 | package com.badlogic.androidgames.framework.math;
import android.util.FloatMath;
public class Vector2 {
public static float TO_RADIANS = (1 / 180.0f) * (float) Math.PI;
public static float TO_DEGREES = (1 / (float) Math.PI) * 180;
public float x, y;
public Vector2() {
}
public Vector2(float x, float y) {
t... | 18.645669 | 65 | 0.615287 |
55ca45eb8394d5ce020eaeec5fa9eae1ac9f5021 | 4,617 | package com.alibaba.dcm.internal;
import sun.net.InetAddressCachePolicy;
import java.lang.reflect.Field;
import java.net.InetAddress;
import java.net.UnknownHostException;
/**
* Util class to manipulate dns cache.
*
* @author Jerry Lee (oldratlee at gmail dot com)
* @since 1.6.0
*/
public class InetAddressCache... | 38.798319 | 111 | 0.591943 |
3941473148509cef7b8356b181f04468b4e8d012 | 4,597 | package net.i2p.itoopie.gui;
import java.awt.BorderLayout;
import java.io.File;
import javax.security.cert.X509Certificate;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import javax.swing.SwingUtilities;
import net.i2p.itoopie.i18n.Transl;
impor... | 31.486301 | 137 | 0.677616 |
085b41f3d473252bc8bf477af81b85cc133239d6 | 3,399 | package org.tuxdevelop.spring_data_demo.rest;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.orm.jpa.EntityScan;
import org.springframework.context.annot... | 50.731343 | 115 | 0.724625 |
a6ed236ae485c6ccba01fd344d53b0d5925ddb2c | 7,477 | package org.firstinspires.ftc.teamcode;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import com.qualcomm.robotcore.eventloop.opmode.TeleOp;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.Servo;
import com.qualcomm.robotcore.hardware.TouchSensor;
import com.qualcomm.ro... | 34.298165 | 209 | 0.648388 |
09d35bed9bd74b4a33c0a8e0bdcb9fc679e70c10 | 3,522 | /*
* Copyright (c) 2009-2010 Clark & Parsia, LLC. <http://www.clarkparsia.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 ... | 22.87013 | 103 | 0.710392 |
64190b82aa538289f3eb07f76bcc56ddecfa5314 | 3,245 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 26.818182 | 78 | 0.684746 |
812a5187b06d2de616a34c21b8bd38116083b5f2 | 3,322 | package Autonomous.OpModes.Tests;
import android.graphics.Bitmap;
import android.util.Log;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.Disabled;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import java.util.ArrayList;
import Autonomous.Im... | 40.024096 | 160 | 0.627333 |
7c3cb076308d89a834d874d6e26e2b5dac90fcd3 | 13,000 | package application.controller.page;
import java.net.URL;
import java.time.LocalDate;
import java.util.ArrayList;
import java.util.ConcurrentModificationException;
import java.util.Map;
import java.util.Optional;
import java.util.ResourceBundle;
import application.controller.MainController;
import ... | 33.07888 | 120 | 0.702692 |
6b08ac7b52bb1b23f2660daeb25a8b7ac066328c | 1,575 | package com.premar.muvi.utils;
import com.premar.muvi.model.Movie;
import com.premar.muvi.model.search.Search;
import java.util.ArrayList;
import java.util.List;
public class SearchToMovie {
private ArrayList<Search> searches;
private ArrayList<Movie> movies;
public SearchToMovie(ArrayList<S... | 39.375 | 86 | 0.627302 |
300c4c8534b1dc6b19c5234bc96f36ff315fcb2b | 9,594 | /*
* Copyright 2010-2012 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | 41 | 118 | 0.75985 |
7aa35308a26f2fc0b3f9f11ee3c332c6be8cf49b | 3,563 | package farmsim.entities.predators;
import java.io.BufferedReader;
import java.io.FileReader;
import java.util.HashMap;
/**
* A class used for loading in the config file for predators
* @author r-portas
*/
public class PredatorConfigLoader {
private HashMap<String, HashMap<String, String>> predators;
/**
... | 32.099099 | 89 | 0.558518 |
76ac4faa98c9c6c5c794dd5728d531126cab0f95 | 9,949 | package org.swiftboot.web.result;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.swiftboot.data.model.entity.BaseEntity;
import org.swiftboot.data.model.entity.IdPersistable;
import org.swiftboot.util.BeanUtils;
import org.swiftboot.web.Info;
imp... | 45.429224 | 150 | 0.581365 |
fc1bac5ec987118e76b5493f7e517f3f5d03e054 | 375 | package com.challenge.dto;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import java.math.BigDecimal;
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class SubmissionDTO {
private Long challengeId;
private String userId;
priv... | 17.045455 | 33 | 0.792 |
903008db51a91c3cfd8fc7766adeccee3bcafe22 | 2,150 | package fr.vergne.parsing.layer.util;
import static org.junit.Assert.*;
import java.util.Arrays;
import org.junit.Test;
import fr.vergne.parsing.layer.exception.ParsingException;
public class IntNumberTest {
@Test
public void testSetGetContentPositiveOnly() {
IntNumber integer = new IntNumber(false);
for (S... | 24.712644 | 70 | 0.628837 |
a606bef9d2b34ac2a0040b8a4fb5b0e5a7868241 | 333 | package io.github.nemesismate.spring.ws.tunnel;
import io.github.nemesismate.spring.ws.tunnel.tunnel.TunnelConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
@Configuration
@Import(TunnelConfiguration.class)
public class WsTunnelAutoConfig... | 27.75 | 73 | 0.852853 |
0905054754c4b7d9bc36f17b4f20338d7721bf74 | 5,511 | package org.dspace.submit.step;
import org.dspace.app.util.SubmissionInfo;
import org.dspace.authorize.AuthorizeException;
import org.dspace.content.*;
import org.dspace.core.Context;
import org.dspace.handle.HandleManager;
import org.dspace.identifier.IdentifierException;
import org.dspace.identifier.IdentifierServic... | 45.545455 | 225 | 0.671022 |
6c81d8d5e61fae79f60b7176063110ff57a5b17d | 11,965 | /*
* Zed Attack Proxy (ZAP) and its related class files.
*
* ZAP is an HTTP/HTTPS proxy for assessing web application security.
*
* Copyright 2011 ZAP development team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y... | 41.982456 | 136 | 0.59415 |
9d410f64dc2022b51c04cb645e7fd51d2d948001 | 4,155 | package com.bitwaffle.guts.physics;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Stack;
import com.bitwaffle.guts.entity.Entity;
/**
* Handles keeping track of which entities to render and handles
* updating all entities
*
* @author TranquilMarmot
*/
public class Entities {
@SuppressW... | 24.88024 | 76 | 0.687846 |
ac604a79b0d981b34b203b46d3f4682c7a168eb1 | 3,999 | package info.u_team.u_team_core.ingredient;
import java.util.Arrays;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonSyntaxException;
import net.minecraft.network.FriendlyByteBuf;
import net.minec... | 31.738095 | 119 | 0.732933 |
024329f0f1d773478ee056d4d8e8e75db96eff68 | 942 | package br.com.caelum.stella.gateway.visa;
import br.com.caelum.stella.gateway.core.ProblematicTransactionException;
/**
* Responsável por verificar o retorno dado pelos componentes.
* @author Alberto Pc
*
*/
public class VISAComponentReturnHandler {
private VISAIntegrationReturn retornoIntegracao;
... | 22.428571 | 92 | 0.730361 |
0d6f001849a9ed9251825efa428ae3a6afb1b510 | 5,127 | package frc.spartanlib.swerve.module;
import com.ctre.phoenix.motorcontrol.ControlMode;
import com.ctre.phoenix.motorcontrol.can.WPI_TalonSRX;
import com.revrobotics.CANEncoder;
import com.revrobotics.CANPIDController;
import com.revrobotics.CANSparkMax;
import com.revrobotics.ControlType;
import com.revrobotics.CANSp... | 31.648148 | 149 | 0.722645 |
86f2491f283014c1488cbd3e3921e321d0d59778 | 4,172 | /*
* 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 ... | 33.376 | 120 | 0.746405 |
aa48caf596a76e5d48aba8c9a81e7a1c54c7726a | 4,983 | /*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed u... | 39.23622 | 98 | 0.770821 |
61b35bcdc044394297e4bb8aace067a9cef9ed70 | 1,029 | package com.learn.java.leetcode.lc0040;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Solution {
public List<List<Integer>> combinationSum2(int[] candidates, int target) {
List<List<Integer>> result = new ArrayList<>();
if (candidates == null || candidates.length == 0) ... | 24.5 | 117 | 0.6793 |
60887543b918619a7db90b91d8330da6c902b917 | 356 | import javax.swing.JFrame;
public class ShowAFrame {
public static void main(String args[]) {
JFrame myFrame = new JFrame();
String myTitle = "Blank Frame";
myFrame.setTitle(myTitle);
myFrame.setSize(300, 200);
myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
... | 23.733333 | 63 | 0.648876 |
4086da46f7a0292e01533523175f22d49e6bc785 | 4,918 | package components.DatabaseHandler;
import java.lang.reflect.Field;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import com.google.gson.Gson;
import com... | 31.126582 | 79 | 0.736478 |
3898ea79664084ab495e7faeaf9f9b0deb52fc9a | 3,821 | /*
* This file is part of LanternServer, licensed under the MIT License (MIT).
*
* Copyright (c) LanternPowered <https://www.lanternpowered.org>
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a c... | 35.37963 | 101 | 0.686993 |
164a7c049f3c918c1f9c9f882f17e9d63ec1ff16 | 6,274 | package mams.model.appeal;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import mams.testutil.TypicalAppeals;
public class AppealTest {
@Test
public void isSam... | 38.256098 | 87 | 0.613165 |
9f290655cad7d3ce649f333812efa4a33bf81332 | 2,238 | package com.spotinst.sdkjava.model.api.mrScaler.aws;
import com.fasterxml.jackson.annotation.JsonIgnore;
import java.util.HashSet;
import java.util.Set;
import java.util.List;
public class ApiMrScalerAwsEbsConfiguration {
//region Members
@JsonIgnore
private Set<String> isSet;
private Boolean ebsOpti... | 30.657534 | 118 | 0.707328 |
44ce83c51bce3b8ea20ef601f11f4a7b7bd3b282 | 2,324 | package de.keeyzar.tenancyfixer.namespace;
import io.fabric8.kubernetes.api.model.Namespace;
import io.fabric8.kubernetes.api.model.NamespaceList;
import io.fabric8.kubernetes.client.KubernetesClient;
import io.fabric8.kubernetes.client.informers.ResourceEventHandler;
import io.fabric8.kubernetes.client.informers.Shar... | 37.483871 | 132 | 0.703528 |
f8be7e5757dce7d44b837f7019579174cf2de71a | 5,734 | package frontend.pascal.parsers;
import frontend.EofToken;
import frontend.Token;
import frontend.TokenType;
import frontend.pascal.PascalErrorCode;
import frontend.pascal.PascalParserTD;
import frontend.pascal.PascalTokenType;
import intermediate.Definition;
import intermediate.ICodeFactory;
import intermediate.ICode... | 36.75641 | 115 | 0.573945 |
095678fdd21a11fce7b3b296c77d4e23c60630b2 | 1,468 | package org.stagemonitor.eum;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletContextInitializer;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
i... | 34.952381 | 100 | 0.848774 |
c91f828c2e5a4f7300bef08b61d12aa5fe537dbf | 244 | package com.couplingfire.publisher;
import com.couplingfire.event.MicroModuleEvent;
public interface MicroModuleEventPublisher {
void publishEvent(MicroModuleEvent e);
void publishEvent(String microModuleName, MicroModuleEvent e);
}
| 24.4 | 66 | 0.819672 |
e9886356d2a13122bd580e5072f833bc4e4367ec | 3,558 | /*
* Copyright 2019 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" ... | 43.390244 | 109 | 0.685779 |
90642e5debfc392075e60dd1a267e87daf60793c | 2,021 | package eas.com.model;
import eas.com.exception.QuickMartException;
import java.util.HashMap;
import java.util.Map;
/**
* Class for simulating the inventory of item
*
* Created by eduardo on 12/12/2016.
*/
public class Inventory {
/**
* Key: Name of Item
* Value: Relation Item-Quantity @see {@link... | 28.069444 | 101 | 0.656111 |
6d3e1e780c4c6f9330cd86b34e811109f465609b | 23,503 | package org.checkerframework.qualframework.base;
import org.checkerframework.framework.qual.SubtypeOf;
import org.checkerframework.framework.type.AnnotatedTypeMirror;
import org.checkerframework.framework.type.AnnotatedTypeMirror.AnnotatedArrayType;
import org.checkerframework.framework.type.AnnotatedTypeMirror.Annota... | 46.265748 | 100 | 0.609071 |
c2e08aa26e2385ec4f788bea51c4176a0396f6a0 | 2,785 | /*
* Copyright (C) 2013 - 2018, Logical Clocks AB and RISE SICS AB. 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
* without restriction, including without limitatio... | 39.785714 | 98 | 0.766248 |
aafd4f7c4f7902308ebbfbce8457cdcf359f83f2 | 5,946 | package com.bx.philosopher.ui.activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bx.philo... | 36.036364 | 142 | 0.574504 |
9637967e888255908dc379e2bb9c009f36536f88 | 1,103 | package co.s4n.corrientazos.domain.route;
import co.s4n.corrientazos.domain.drone.IDrone;
import java.util.HashMap;
import java.util.Map;
public enum RouteStep {
AHEAD("A") {
@Override
public void executeStep(IDrone drone) {
drone.continueAHead();
}
}, LEFT("I") {
... | 22.06 | 75 | 0.577516 |
117ea6bf8e7b104b7364404978c0cd6647a6ae63 | 6,476 | /*
* Copyright 2019 Miroslav Pokorny (github.com/mP1)
*
* 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 applic... | 32.38 | 114 | 0.615195 |
27e369ecae36291bdb1d283619eaa156a318b533 | 547 | package com.learning.spring.debug.design.chain;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
public class Father extends Handler{
private static final Logger logger = LogManager.getLogger(Father.class);
public Father() {
super(1);
}
@Override
publi... | 26.047619 | 76 | 0.601463 |
c21a523519598fc57bafb3baf95c0d51dc3f2c14 | 158 | package at.ciit.products.states;
public enum ProductState {
ORDERED,
SOLD,
MANUFACTURED,
IN_TRANSPORT,
IN_BRANCH,
SUBMITTED,
AFTER_GARANCY_PERIOD
}
| 13.166667 | 32 | 0.772152 |
211266737b5e4fa685eded6eaa33a98bcf32d812 | 861 | package ru.job4j.calculate;
/**
* Calculator.
*
* @author Maksym Mateiuk (maxymmateuk@gmail.com)
*/
public class Calculator {
/**
* Add numbers.
* @param first double
* @param second double
* @return result
*/
public double add(double first, double second) {
return first + second;
}
/**
* Subs... | 16.882353 | 56 | 0.651568 |
d0df5c8f825e4189d250e4393a3fe0ad087c677e | 3,243 | package edu.rice.cs.hpctraceviewer.ui.depth;
import org.eclipse.e4.core.contexts.IEclipseContext;
import org.eclipse.e4.core.services.events.IEventBroker;
import org.eclipse.jface.layout.GridDataFactory;
import org.eclipse.jface.layout.GridLayoutFactory;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFo... | 28.447368 | 118 | 0.599137 |
15f31dadf9d08412f746027378641bcecfb51de4 | 1,500 | package org.wustrive.java.dao.jdbc;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
@SuppressWarnings("all")
public class SqlParameter implements Map {
private Map source;
public SqlParameter(){
this.source = new HashMap();
}
public SqlParameter(Object k... | 17.045455 | 57 | 0.696 |
9c9ae2faa682df3682ff5666433f8d388f43b90b | 534 | package net.nocturne.game.player.dialogues.impl.dominionTower;
import net.nocturne.game.player.dialogues.Dialogue;
public class DTSpectateReq extends Dialogue {
@Override
public void start() {
sendDialogue(
"You don't have the requirements to play this content, but you can",
"spectate some of the matches ... | 19.777778 | 70 | 0.734082 |
4584d58b606c0059326a4da6e5e144f8092efa0e | 13,208 | package game;
import interfaces.Player;
import interfaces.PlayerNotificatior;
import javafx.application.Platform;
import javafx.scene.paint.Color;
import player.HumanPlayer;
import player.HumanPlayer.State;
import java.util.ArrayList;
import java.util.List;
public class Board {
private Figure[] remaining;
p... | 33.866667 | 147 | 0.511054 |
5ae0172e1c63347d456d6c7e9c1205fa04641de8 | 1,376 | package me.ycdev.android.demo.lollipopdemo.usage.apps;
import java.text.Collator;
import java.util.Comparator;
public class AppsUsageItem {
public String pkgName;
public String appName;
public long lastStartup;
public String lastStartupStr;
public long fgTime;
public String fgTimeStr;
pub... | 29.276596 | 84 | 0.614099 |
73665a35fb6cfb4989acff3594e9b149128358d5 | 2,228 |
/*******************************************************************************
* Copyright (c) 2004, 2005 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 a... | 23.452632 | 87 | 0.686266 |
80a2775d99020924b55c4c5cb20f6df8dcd2881c | 652 | package org.hyperledger.indy.sdk.payment;
import org.hyperledger.indy.sdk.payments.Payments;
import org.hyperledger.indy.sdk.payments.UnknownPaymentMethodException;
import org.junit.Test;
import java.util.concurrent.ExecutionException;
import static org.hamcrest.CoreMatchers.isA;
public class ParseGetTxnFeesRespons... | 31.047619 | 101 | 0.843558 |
1b9b576e3008c6d7033edfdffb80464690f20d7b | 5,975 | package com.skillw.rpglib.manager.script;
import com.skillw.rpglib.RPGLib;
import com.skillw.rpglib.api.manager.script.CompiledScriptManager;
import com.skillw.rpglib.util.FileUtils;
import com.skillw.rpglib.util.MessageUtils;
import jdk.internal.dynalink.beans.StaticClass;
import org.bukkit.configuration.Confi... | 38.548387 | 135 | 0.607197 |
4dea3fe8007d50811884974a4ed8c435fc70989b | 5,883 | /*
* Copyright 2014 - 2022 Blazebit.
*
* 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... | 32.502762 | 322 | 0.710862 |
56a9aff13747f36ef21dfe4eb8221bbefa399d47 | 3,342 | /* SPDX-License-Identifier: Apache 2.0 */
/* Copyright Contributors to the ODPi Egeria project. */
package org.odpi.openmetadata.samples.applications.hrim.properties;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annot... | 21.286624 | 97 | 0.577798 |
f139651d0c94ae5578dc69bd33fc4834fa2421ae | 1,054 | package com.zhengjianting.zookeeper.impl;
import com.zhengjianting.dto.RpcRequest;
import com.zhengjianting.zookeeper.ServiceDiscovery;
import com.zhengjianting.zookeeper.util.CuratorUtils;
import org.apache.curator.framework.CuratorFramework;
import java.net.InetSocketAddress;
import java.util.List;
public class Se... | 37.642857 | 89 | 0.728653 |
42752db77e3bb888311e266846804065808c6025 | 4,551 | /**
* Copyright 2016 LinkedIn Corp. 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 applica... | 31.604167 | 115 | 0.716985 |
da5f61c265cbbc8b8d905111db75407b3307bc5d | 3,345 | package com.inconspicuousy.pattern.mediator;
// 中介者模式: 定义一个中介对象来封装一系列对象之间的交互,使原有对象之间耦合松散,且可以独立的改变他们之间的交互。
// 中介者模式又叫调停模式
// 简单来说, 多个对象之间的相互交互, 交给中间人去传话处理,实现多个对象之间的解耦,直接交互变为间接交互。
// 独立改变:当交流的规则发生改变时, 我们只需要修改中间人传话规则就行。
// 我们就以买房子为例。
// 角色分为 房客、房东、中介
// 这里房客和房东借用 中介 这个中间人实现消息传递。
import lombok.AllArgsConstructor;
impor... | 23.391608 | 85 | 0.660688 |
962b39cca2f6ebe6a78a575ea761e1765c5cb2e6 | 733 | package com.anybbo.api;
import com.anybbo.api.sender.Sender;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;
import org.... | 26.178571 | 72 | 0.803547 |
2e0f782709976ac8f7d08129615118055524a8d6 | 1,170 | package br.com.observer.teste;
import java.math.BigDecimal;
import org.junit.Test;
import br.com.observer.eventos.Argumentos;
import br.com.observer.observadores.ContaCorrente;
import br.com.observer.observadores.Investimento;
import br.com.observer.observadores.Poupanca;
import br.com.observer.sujeitos.Or... | 28.536585 | 82 | 0.752991 |
e947a8a3e018979ce6bf210af7d8cc86a272eeab | 6,055 |
package trywithkids.gui;
import java.util.ArrayList;
import java.util.List;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import javafx.geometry.Insets;
import javafx.scene.Parent;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.L... | 38.566879 | 104 | 0.611561 |
71e22381e4d29a4306a6fedfd71f1f591601fc34 | 1,062 | package com.moon.office.excel.core;
import com.moon.util.compute.RunnerUtil;
/**
* @author benshaoye
*/
class VarSetterEq implements VarSetter {
private final String[] keys;
private final String expression;
public VarSetterEq(String[] keys, String expression) {
this.keys = keys;
this.ex... | 25.902439 | 100 | 0.627119 |
cd4f43c46f0eaffd6112ff5f608a0d0fe77d888c | 1,441 | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class VariableLengthQuantity {
private long sevenBitsMask = 0x7f;
private long eightBitsMask = 0x80;
List<String> encodeSingleNumber(long number) {
List<String> bytes = new ArrayList<String>();
bytes.add("0x"... | 26.685185 | 96 | 0.546842 |
3601790e2e1b2d9c31891e5c1efb9377a744ae63 | 2,424 | package com.github.badpop.jcoinbase.service.account.dto;
import com.github.badpop.jcoinbase.model.ResourceType;
import com.github.badpop.jcoinbase.model.account.Account;
import com.github.badpop.jcoinbase.model.account.AccountType;
import com.github.badpop.jcoinbase.model.account.Rewards;
import com.github.badpop.jcoi... | 30.3 | 99 | 0.554043 |
f68f02d751a6b7a88614c4aefc12aa7615c63704 | 7,442 | // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) annotate safe
package com.google.android.gms.common.stats;
import android.app.Service;
import android.content.*;
import android.util.Log;
import com.google.android.gms.... | 34.775701 | 133 | 0.569605 |
72bfbdf924186d8895cf230a35a6a11dce5735a1 | 503 | package solutions;
import org.junit.Assert;
import org.junit.Test;
public class MovingAverageFromDataStreamTests {
@Test
public void testExample1() {
var solution = new MovingAverageFromDataStream(3);
Assert.assertEquals(1.0, solution.next(1), 0.01);
Assert.assertEquals((1 + 10) / 2.... | 27.944444 | 72 | 0.638171 |
7fd5d7f300b9fe4bc790db8e251a9f9315879361 | 1,988 | /* */ package listener;
/* */
/* */ import java.util.HashMap;
/* */ import main.Main;
/* */ import net.md_5.bungee.api.chat.BaseComponent;
/* */ import net.md_5.bungee.api.chat.TextComponent;
/* */ import net.md_5.bungee.api.connection.ProxiedPlayer;
/* */ import net.md_5.bungee.api.event.ChatE... | 36.814815 | 133 | 0.507545 |
b496e7d77954d0207c19f4573df7551968a71f39 | 2,816 | package toughasnails.temperature.modifier;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraftforge.common.util.INBTSerializable;
import toughasnails.api.temperature.IModifierMonitor;
i... | 26.317757 | 133 | 0.602273 |
937f166e076ae1d2b10ea25a6f4bed59b763a8ad | 3,512 | package id.xaxxis.myintenapp;
import android.content.Intent;
import android.net.Uri;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity implements View.On... | 39.022222 | 106 | 0.664009 |
86eb6cfa18895f1b7f9058409fd52dd0eafdcd8d | 22,179 | /*
* Copyright 2011 JBoss 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 ... | 40.472628 | 187 | 0.600703 |
d4eecf1740c476d3d440d91efba362d731139694 | 3,646 | package com.riiablo;
import com.badlogic.gdx.assets.AssetDescriptor;
import com.badlogic.gdx.assets.AssetManager;
import com.badlogic.gdx.graphics.g2d.BitmapFont;
import com.riiablo.graphics.BlendMode;
import com.riiablo.codec.FontTBL;
import com.riiablo.loader.BitmapFontLoader;
public class Fonts {
public final B... | 37.587629 | 148 | 0.715579 |
b5f9f3477e88270e0efce4e11cb9bd0f3868357d | 292 | static void dfs1(int start, int par, int d) {
D[start] = d;
L[start][0] = par;
for (int i = 1; i < ln; i++) {
L[start][i] = L[L[start][i - 1]][i - 1];
}
for (int u : graph[start]) {
if (u == par)
continue;
dfs1(u, start, d + 1);
}
} | 24.333333 | 48 | 0.417808 |
e9d9b27527a6c66d82a1a3ed10847c9169d325c7 | 263 | package com.liu.service;
import com.liu.controller.student.vo.UncheckedVO;
import com.liu.util.PageQueryUtils;
import com.liu.util.PageResult;
import java.util.List;
public interface UncheckedService {
PageResult getUncheckedPage(PageQueryUtils utils);
}
| 20.230769 | 54 | 0.806084 |
70aac16597ac7dd875646e458c56bf805e194dda | 20,494 | package org.puretemplate;
import static org.junit.jupiter.api.Assertions.assertEquals;
import java.io.IOException;
import java.io.StringWriter;
import java.util.List;
import java.util.Map;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;
import ... | 34.043189 | 114 | 0.567922 |
4f21806207e8baa213718bf9695274379c64c8b2 | 134 | package bddController;
import alives.NPC;
public class NPCReader {
public static NPC getNPC(int id){
//TODO
return null;
}
}
| 11.166667 | 34 | 0.708955 |
f7aa208d3b3fe57b59daec0e011419ccc88df956 | 1,324 | package com.example.config;
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInter... | 33.1 | 91 | 0.780211 |
a3a6c8dac2859121fbc3534df8ea36fc81046f05 | 3,120 | //- Copyright © 2008-2011 8th Light, Inc. All Rights Reserved.
//- Limelight and all included source files are distributed under terms of the MIT License.
package limelight.styles.values;
import limelight.ui.MockGraphics;
import limelight.util.Box;
import limelight.styles.HorizontalAlignment;
import limelight.styles.... | 36.705882 | 148 | 0.723718 |
ca5a99743ce0367985abfa79fbea547708faecfa | 1,092 | package org.manuel.mysportfolio.model.dtos.usernotification;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder;
import io.github.manuelarte.mysportfolio.model.dtos.team.TeamDto;
import ... | 27.3 | 94 | 0.825092 |
34f3346a7bcf3f01e85966f00d0122c0efd639aa | 5,778 | package com.eilikce.osm.core.bo.transformable;
import java.io.Serializable;
import java.sql.Timestamp;
import com.eilikce.osm.core.bo.EntityTransBo;
import com.eilikce.osm.entity.consumer.CommodityPo;
public class Commodity extends EntityTransBo<CommodityPo> implements Serializable {
private static final long ser... | 23.975104 | 113 | 0.724472 |
78d3c88a2268e38b8a570b86a322dba825c70db3 | 1,733 | package com.patience.klondike.resource;
import static org.hamcrest.CoreMatchers.equalTo;
import static org.mockito.Mockito.when;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath;
import static... | 36.87234 | 97 | 0.77438 |
c0fa37cb119de35619fa3012d399fad9e0dfd751 | 227 | package org.bukkit.craftbukkit.scheduler;
public class ObjectContainer<T> {
T object;
public void setObject(T object) {
this.object = object;
}
public T getObject() {
return object;
}
}
| 14.1875 | 41 | 0.61674 |
b1334082ff65e1fafd8c8d1c66b10320f9d9c454 | 4,075 | package org.tpc.expplus.common.block;
import org.tpc.expplus.common.tile.TileExpPlus;
import net.minecraft.block.BlockContainer;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.state.IBlockState;
import net.minecraft.creativetab.CreativeTabs;
imp... | 28.697183 | 104 | 0.731043 |
a8dd5229ad17f108b836e9efa4c82c042c4b55c3 | 884 | package com.github.nieldw.knapsack;
import com.github.nieldw.knapsack.constraints.Constraint;
import java.util.Collections;
import java.util.List;
import static java.util.Optional.ofNullable;
/**
* Abstract class that provides support for checking {@link KnapsackProblem} {@link Constraint}s.
*/
public abstract cl... | 30.482759 | 97 | 0.746606 |
0a6af150b5a51515423c817fc08c76a8ca9b2bf9 | 16,843 | package gov.nasa.pds.web.ui.utils;
import java.io.UnsupportedEncodingException;
public class BinaryConversionUtils {
/**
*
* Converts an array of bytes into an int. The array of bytes may be of
* length 1, 2, 3, or 4, in big-endian order. That is, b[0] holds the most
* significant bits, b[n-1] the least. T... | 31.839319 | 104 | 0.564804 |
daf227dcc2c1509699556ca8c3b41c8279eb4229 | 107 | package edu.mum.dao;
import edu.mum.domain.Order;
public interface OrderDao extends GenericDao<Order>{
}
| 15.285714 | 52 | 0.785047 |
ee428948cb83386ab1e2567aa99f6ca050cbaa16 | 1,519 | /*************************************************************************************
* Copyright (c) 2011, 2012, 2013 James Talbut.
* jim-emitters@spudsoft.co.uk
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
... | 27.125 | 87 | 0.62212 |
42537a26affd741dfcefe022b41acc78e49173fe | 5,445 | package controller_msgs.msg.dds;
import us.ihmc.communication.packets.Packet;
import us.ihmc.euclid.interfaces.Settable;
import us.ihmc.euclid.interfaces.EpsilonComparable;
import java.util.function.Supplier;
import us.ihmc.pubsub.TopicDataType;
/**
* This message is part of the IHMC whole-body controller API.... | 38.076923 | 257 | 0.743618 |
614b4114c163f38aa44034bcb5add4e2975780e9 | 813 | package jaskell.parsec;
import java.io.EOFException;
import java.util.List;
import java.util.Set;
import static java.util.stream.Collectors.joining;
/**
* Created by Mars Liu on 2016-01-03.
* NoneOf 即 none of ,它期待得到的信息项与给定的任何项都不匹配,否则返回错误.
*/
public class NoneOf<E> implements Parsec<E, E> {
private Set<E> item... | 26.225806 | 111 | 0.621156 |
6c3ade4f1b678659d6c22570763fcecebcab4e3b | 5,175 | package com.example.broadcast.broadcast;
import android.os.Message;
import android.os.Process;
import android.support.annotation.NonNull;
import android.util.Log;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurre... | 34.046053 | 113 | 0.684444 |
d2e421e79d44fda127a88b0d428b0a56b6838316 | 1,904 | package io.github.fatihbozik.ch3.workingwithgenerics.example7;
import java.util.ArrayList;
import java.util.List;
public class UpperBoundedWildcard {
public static void main(String[] args) {
List<Integer> integerList = new ArrayList<>();
integerList.add(5);
integerList.add(2);
Sys... | 47.6 | 105 | 0.421218 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.