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 |
|---|---|---|---|---|---|
5d2c446f97f145195b00bd012b1c2992a2957336 | 127 | package ant_colony;
public class Runnable {
public static void main(String args[]) {
new AntApp(800, 800).start();
}
}
| 12.7 | 41 | 0.677165 |
27147abe5e1f358851579c24dc7911652f0fd0b0 | 465 | package misc;
/**
* Project: NewSimulator
* Created by IntelliJ IDEA
* Author: Sumin Park <smpark@se.kaist.ac.kr>
* Github: https://github.com/sumin0407/NewSimulator.git
*/
public class Range {
public int left;
public int top;
public int right;
public int bottom;
public Range(int left, int t... | 20.217391 | 60 | 0.623656 |
bf291ddc9916a71573d1318cc29f0818c718c9e8 | 3,187 | package it.blackhat.symposium.models;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.sql.Date;
/**
* Concrete Implementation of User Interface
*
* @author GMadness97
* @author 2Deimos
*/
public class UserModel implem... | 19.67284 | 77 | 0.63257 |
a12ab20dba0da31a37681110af2f28964e570ce7 | 2,146 | /*
* Copyright 2019 José A. Pacheco Ondoño - joanpaon@gmail.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
*
* Unl... | 29.39726 | 76 | 0.648183 |
1109b52e8e0735d489ccbd276b28a80e846c182f | 4,099 | package com.mesosphere.dcos.cassandra.executor.tasks;
import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.Session;
import com.datastax.driver.core.exceptions.AlreadyExistsException;
import com.mesosphere.dcos.cassandra.common.tasks.backup.BackupRestoreContext;
import com.mesosphere.dcos.cassandra.... | 37.953704 | 97 | 0.634057 |
439dc7db7ccc01e5c620236c72cb748452839157 | 2,800 | /*****************************************************************************
* Copyright (C) 2003-2011 PicoContainer Committers. All rights reserved. *
* ------------------------------------------------------------------------- *
* The software in this package is published under the terms of the BSD *
* s... | 29.787234 | 87 | 0.509643 |
78ac6b527459fe82765a11aece6647b526f59daa | 7,234 | package win.tang.wnrun.weight;
import android.annotation.SuppressLint;
import android.app.Activity;
import android.graphics.Bitmap;
import android.net.http.SslError;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;
import android.webki... | 36.720812 | 147 | 0.609068 |
f0f8c11b8d20eacce24a52dcae8f967cacbaf7cd | 158 | package com.zaranzalabs.zcar.pojo;
public class Locks
{
public boolean status;
public Locks(boolean status) {
this.status = status;
}
}
| 14.363636 | 34 | 0.658228 |
3330380dbed8d230f4689ce0c09af197281ac494 | 6,313 | /* Glazed Lists (c) 2003-2006 */
/* http://publicobject.com/glazedlists/ publicobject.com,*/
/* O'Dell Engineering Ltd.*/
package com.publicobject.glazedlists.japex;
import com.sun.japex.JapexDriver... | 35.466292 | 105 | 0.589894 |
05df7dc94e0c6221d12d85037378b91659867a7a | 2,470 | package com.sequenceiq.cloudbreak.converter.v4.clustertemplate;
import org.springframework.stereotype.Component;
import com.sequenceiq.cloudbreak.api.endpoint.v4.clustertemplate.responses.ClusterTemplateViewV4Response;
import com.sequenceiq.cloudbreak.converter.AbstractConversionServiceAwareConverter;
import com.sequ... | 57.44186 | 142 | 0.767206 |
d641ab8e81204c7104a96d38a85e166bada4465c | 2,322 | package org.impstack.es.bullet;
import com.jme3.bounding.BoundingBox;
import com.jme3.bullet.collision.shapes.*;
import com.jme3.bullet.util.CollisionShapeFactory;
import com.jme3.math.Vector3f;
import com.jme3.scene.Spatial;
/**
* A helper factory to create {@link com.jme3.bullet.collision.shapes.CollisionShape} ob... | 38.7 | 117 | 0.711886 |
5a80a6ffc1215577fe4db4c425e08aebfdf4c9b8 | 1,249 | package jpa.simple;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import jpa.s... | 15.810127 | 51 | 0.703763 |
cc74903a4f2822278c6773d3a5fc91d6aae8c462 | 1,088 | package de.codecentric.reedelk.xml.internal.xpath;
import de.codecentric.reedelk.xml.component.XPathConfiguration;
import net.sf.saxon.s9api.DocumentBuilder;
import net.sf.saxon.s9api.Processor;
import net.sf.saxon.s9api.XPathCompiler;
import java.util.Optional;
abstract class XPathAbstractEvaluator implements XPath... | 38.857143 | 110 | 0.772059 |
d33f6bfa652a35b5c0d7169278a91f942478c1e0 | 1,352 | package com.github.vmbenchmarks;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class User {
public enum Gender { MALE, FEMALE };
public static class Name {
private String _first, _last;
public Name(){}
public Name(String first, String last){
_first= first;
... | 29.391304 | 85 | 0.64645 |
9b455c6123c91881c4b7aa05dea4bbf645195f3f | 2,762 | package com.fuzzymeme.graphbasedpancakeflipper;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.stream.IntStream;
import com.fuzzymeme.graphbasedpancakeflipper.utils.CounterMap;
import com.fuzzymeme.graphbasedpancakeflipper.utils.CounterMapUtils;
import com.richard.graphs... | 32.494118 | 128 | 0.727734 |
a1179ba74aa10e8d25d41ad2ed2364f7984af147 | 695 | package com.naruto.reserveclassroom.utils;
/*
* Created by NARUTO on 2016/11/13.
*/
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
public class TestNetworkStateUtil {
/**
* 判断是否有网路连接
*
* @param mContext
* 上下文
* @return 是否有网络--true:有网络;f... | 19.857143 | 61 | 0.705036 |
d509dbaa157b61a1963d6912a1337246445514c2 | 1,872 | package com.feecn.admin.config;
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.c... | 31.728814 | 96 | 0.723291 |
1699c7377dae3e7f8e2135e486b3953723bb2cf2 | 1,631 | package ro.pub.cs.systems.eim.practicaltest01var03;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class PracticalTest01Var03SecondaryActivity extends AppCompatAc... | 30.203704 | 80 | 0.652974 |
a0ab6b61c1d1cb4ab617820504fafa9437860280 | 1,318 | package com.interview.leetcode;
import java.util.ArrayList;
import java.util.List;
/**
* 数字 n 代表生成括号的对数,请你设计一个函数,用于能够生成所有可能的并且 有效的 括号组合。
* <p>
* 示例:
* 输入:n = 3
* 输出:[
* "((()))",
* "(()())",
* "(())()",
* "()(())",
* "()()()"
* ]
*/
public class GenerateParenthesis {
public static void main(String[] ... | 21.258065 | 70 | 0.462064 |
8d8c23f9ebcacef8650fb17bee33fa4a5ba4a4cf | 747 | package com.ibm.cloud.workload.twa.task;
import org.json.JSONException;
import org.json.JSONObject;
public class HadoopTask extends TwaTask {
private String m_host;
private String m_user;
private String m_password;
private String m_jar;
private String [] m_args;
public HadoopTask(String host, String user, Str... | 20.75 | 92 | 0.697456 |
50d6eb2c8359255b509107304b6b5a7b337c2aa9 | 5,604 | /*****************************************************************
* 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
* ... | 33.556886 | 103 | 0.675767 |
476048772c34f9efe90a0ae7e5a14f7b84c5a748 | 5,268 | /**
* Copyright (c) 2019 Yodlee, Inc. All Rights Reserved.
*
* Licensed under the MIT License. See LICENSE file in the project root for license information.
*/
package com.yodlee.api.model;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import com.fasterxml.jackson.annotation.Json... | 26.208955 | 265 | 0.646355 |
2d082683e1525fb25cd0f7794f9e4b9e94c0996f | 1,245 | package java.lang;
import org.checkerframework.dataflow.qual.Pure;
import org.checkerframework.dataflow.qual.SideEffectFree;
import org.checkerframework.checker.lock.qual.*;
public final class StackTraceElement implements java.io.Serializable {
private static final long serialVersionUID = 0L;
public StackTrace... | 62.25 | 141 | 0.787952 |
1e2dc0981ec4070b6a102db20aa9dbba96a4ca3f | 3,185 | /**
* 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 m... | 29.490741 | 89 | 0.629513 |
fff01de473ebc3546fa593ba5bbcfe191b28e5c0 | 556 | package sockets.messaging.writers;
import java.io.OutputStream;
import sockets.messaging.BoundaryType;
public class DelimiterMessageWriterFactoryImpl extends AbstractMessageWriterFactory {
private BoundaryType boundaryType;
public DelimiterMessageWriterFactoryImpl() {
super(BoundaryType.DELIMITER);
boundaryT... | 20.592593 | 85 | 0.81295 |
5aaabb5d7ef324d90b3dc170471ee54b4e141f1a | 14,705 | package com.todo.task.service;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory;
import com.todo.common.TodoException;
import com.todo.model.TaskConfigDB;
import com.todo.task.config.TaskComponents;
import com.todo.task.config.component.TaskComponent;
import ... | 54.869403 | 121 | 0.514179 |
32808c750ba9d993b731889604e3348054d90dbf | 290 | package com.ysq.android.utils.httputils;
/**
* Created by ysq on 16/8/4.
*/
public interface RequestCallBack {
public void onRequestSuccess(String urlAndRequestKey, Object response);
public void onRequestFailed(String urlAndRequestKey, YResponseError error, Object response);
}
| 26.363636 | 96 | 0.772414 |
33a31a59d8368af947b1df26674496cef5a333cd | 3,494 | package com.github.giulioscattolin.rinex;
import static com.github.giulioscattolin.rinex.RinexTokenizerProvider.TokenizerName.*;
import static com.github.giulioscattolin.rinex.Utilities.*;
import static java.lang.Double.isNaN;
class SvEpochSvClockRecordV302Tokenizer extends RinexTokenizerTemplate {
public static ... | 40.627907 | 165 | 0.671151 |
8de9e8c4c2c52d9b8025ea1d7757660dc3f23819 | 5,633 | package com.sequenceiq.cloudbreak.service.user;
import static com.sequenceiq.cloudbreak.api.endpoint.v4.workspace.responses.WorkspaceStatus.ACTIVE;
import java.util.Collections;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concu... | 38.848276 | 122 | 0.706196 |
84cc6f29c978edffb7d6d13b9e84623a1f3f7741 | 2,376 | package com.jaregu.database.queries;
import static org.assertj.core.api.Assertions.assertThat;
import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.HashMap;
import java.util.Map;
import org.junit.Before;
import org.junit.Test;
import org.... | 27.310345 | 97 | 0.785774 |
df5149580ba4fedf3518f65501981e70d07a4c78 | 1,467 | package com.sivalabs.jcart.admin.web.controllers;
import java.util.List;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.... | 26.672727 | 72 | 0.783913 |
37bed99ebeb8b89339d9382c6b9ddb2bc8829a18 | 1,148 | package com.tbp.admin;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.hbase.HBaseConfiguration;
import org.apache.hadoop.hbase.HColumnDescriptor;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.client.*;
import java.io.I... | 31.888889 | 94 | 0.707317 |
8896ca4043812374760c52f4b58deb237d9356fc | 2,845 | package com.chenxi.cebim.adapter;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;... | 35.123457 | 120 | 0.697364 |
0e513a8caaed6c24fc9f19de67885134dd3e2378 | 4,413 | package org.labellum.mc.dynamictreestfc;
import java.util.HashMap;
import java.util.Map;
import net.minecraft.block.Block;
import net.minecraft.util.ResourceLocation;
import net.minecraftforge.registries.IForgeRegistry;
import com.ferreusveritas.dynamictrees.ModConstants;
import com.ferreusveritas.dynamictrees.api.T... | 53.817073 | 115 | 0.736914 |
2fe909f6bcfdbf1650ae1411c93c4e42e5ff8360 | 18,253 | /*****************************************************************************\
* PlanetData
\*****************************************************************************/
package com.mhuss.AstroLib;
//import android.util.Log;
/**
* This class handles planetary motion calculations and conversions.
*/
public clas... | 34.117757 | 115 | 0.659015 |
fc364f343524900fe022584dc07139ed3bfd211e | 1,242 | /*
* 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... | 31.846154 | 90 | 0.728663 |
2a4fb82603f979ee14caa71621b77dfd584f0063 | 4,110 | // Copyright (c) YugaByte, Inc.
package com.yugabyte.yw.commissioner.tasks;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import com.yugabyte.yw.commissioner.BaseTaskDependencies;
import com.yugabyte.yw.commissioner.Common.CloudTyp... | 34.25 | 92 | 0.728954 |
b2da52f55062612e62730e9969013a16192fac26 | 684 | /*L
* Copyright SAIC
* Copyright SAIC-Frederick
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/camod/LICENSE.txt for details.
*/
/**
*
* $Id: StrainManagerSingleton.java,v 1.1 2006-04-17 19:11:06 pandyas Exp $
*
* $Log: not supported by cvs2svn $
*
*/
pack... | 20.117647 | 75 | 0.685673 |
d3296ceb889a623815fd29170ee3fc5d2e0ed4d3 | 918 | /*
* Copyright (c) Jarek Ratajski, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package pl.setblack.airomem.core.disk;
import org.junit.Test;
/**
* @author jarek ratajski
*/
public class PersistenceDiskHelperTest {
@Test(expected = Unsupported... | 26.228571 | 109 | 0.620915 |
99ffaabc9474c8f2b0d28476a2fd83e944e29219 | 1,194 | package org.rlcommunity.environments.octopus.odeframework;
/**
* <p>A vector of state variable (or derivative) values for an ODE
* system. Each ODEState instance is backed by a double array. Instances of
* this class are not immutable, as the backing array can be obtained
* using {@link #getArray} and modifi... | 30.615385 | 78 | 0.59799 |
f0bdde4d561532ac971b922ad6b7ecebe7a62d99 | 692 | package com.aoeai.generator.android.service;
import com.aoeai.generator.android.bean.Field;
import org.dom4j.DocumentException;
import java.io.UnsupportedEncodingException;
import java.util.List;
/**
* 解析服务
* @author aoe
* @date 2016/3/27
* @tags
*/
public interface IParseService {
/**
* 解析xml文件
... | 20.969697 | 92 | 0.692197 |
d4966379812f691fb907ccbce6d1dd9913326a9e | 19,432 | package at.mario.lobby;
import java.io.File;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Map;
import org.bukkit.Bukkit;
import org.bukkit.GameMode;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.configuration.MemorySection;
import org.bukkit.configuration.fi... | 40.483333 | 111 | 0.743567 |
f8205183da644d0ccb1516672c02bb40ad74e190 | 1,439 | package com.wwls.modules.shoppingmall.entity.goods;
import org.hibernate.validator.constraints.Length;
import com.wwls.modules.sys.entity.Office;
import com.wwls.common.persistence.DataEntity;
/**
* 商品分类管理Entity
* @author leixiaoming
* @version 2019-03-27
*/
public class GsType extends DataEntity<GsType> {
pr... | 17.54878 | 58 | 0.697012 |
932b604e1ef6f1766214cf3851fdfa01514a7907 | 5,396 | /**
* BSD 3-Clause License
*
* Copyright © 2019, viadee Unternehmensberatung AG
* 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 ... | 49.054545 | 102 | 0.726649 |
b3d370b617304ce55d8a098beba7db2f5c3f4357 | 5,303 | package msifeed.mc.extensions.locks.client;
import msifeed.mc.extensions.locks.LockObject;
import msifeed.mc.extensions.locks.LocksRpc;
import msifeed.mc.mellow.layout.ListLayout;
import msifeed.mc.mellow.mc.MellowGuiScreen;
import msifeed.mc.mellow.utils.SizePolicy;
import msifeed.mc.mellow.widgets.Widget;
import msi... | 30.653179 | 96 | 0.584198 |
42443ec21df8d6024aa642333bb27f4514d1da9c | 259 | /*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
/** Marshaling of OTLP logs. */
@ParametersAreNonnullByDefault
package io.opentelemetry.exporter.internal.otlp.logs;
import javax.annotation.ParametersAreNonnullByDefault;
| 23.545455 | 54 | 0.795367 |
5454c74ae3ab3e01562d3f87311fd23abe3dc31e | 4,786 | /*
* Copyright 2016 ZBL Services, Inc.
* Copyright 2015 IBM Corp.
*
* 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... | 46.466019 | 278 | 0.759925 |
af7343ae091f05aa6dccc2193ba8d7c1d0d59148 | 7,840 | /**
* Copyright 2013 In-Q-Tel/Lab41
*
* 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 ... | 40 | 127 | 0.656633 |
c7f3ad2a21c029e24ff197c53d5014f589759215 | 675 | package factory.operation;
public abstract class Operation {
private double numberA;
private double numberB;
public Operation() {
numberA = 0;
numberB = 0;
}
public Operation(double numberA, double numberB) {
this.numberA = numberA;
this.numberB = numberB;
}
... | 18.75 | 56 | 0.614815 |
7f168a8ed340b085f608cb9e26c31b6a97f4864b | 602 | package com.github.slamdev.microframework.http.server.handlers;
import io.undertow.Undertow;
import io.undertow.server.HttpHandler;
import io.undertow.server.handlers.GracefulShutdownHandler;
public class ShutdownHandler extends GracefulShutdownHandler {
private static Undertow server;
public ShutdownHandle... | 25.083333 | 63 | 0.737542 |
f7d9ee1c16b80f961563dc68d5e4644aaaf73f2c | 646 | package io.protop.core.auth;
import io.reactivex.Completable;
import io.reactivex.Maybe;
import java.net.URI;
public interface AuthService<T extends Credentials> {
/**
* Handles any authorization of the credentials for future work.
* @param credentials the credentials to authorize.
* @return comp... | 24.846154 | 68 | 0.70743 |
1d60780ce0f8af9c065b594c19183dc5f223d612 | 4,435 | /***************************************************************************
* Copyright 2015-2018 Kieker Project (http://kieker-monitoring.net)
*
* 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 Lice... | 29.370861 | 121 | 0.678016 |
dbf93cae88b70cc8556d7b9b294161eb0de3cd76 | 1,169 | /*
* Copyright 2013-2021 consulo.io
*
* 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 ... | 28.512195 | 75 | 0.742515 |
2e171163fa7eb182437dedff6df9c6a052d2d035 | 2,251 | package fr.openwide.maven.artifact.notifier.web.application.common.component;
import org.apache.wicket.markup.html.basic.Label;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.ResourceModel;
import org.springframework.util.StringUtils;
public class LabelWithPlaceholder extends Label {
private... | 25.011111 | 109 | 0.743225 |
ea8826dbde5f59ecb8b3ba1aad6244b7591db6f1 | 760 | package io.chrislowe.discordle.database.repository;
import io.chrislowe.discordle.database.dbo.Game;
import io.chrislowe.discordle.database.dbo.Guild;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepositor... | 36.190476 | 79 | 0.785526 |
96469a98b08d057396925b5eb54b0e4012be5e74 | 1,547 | package javase8sample.chapter13.javafx8.features;
import javafx.application.Application;
import javafx.scene.*;
import javafx.scene.paint.Color;
import javafx.scene.paint.PhongMaterial;
import javafx.scene.shape.*;
import javafx.stage.Stage;
/**
* Created by deng on 2014/9/17.
*/
public class Simple3DBoxDemo extends ... | 32.914894 | 67 | 0.624434 |
5e7e8739120328cd791bcbe44d64484563d49dfa | 5,923 |
package com.dreaminsteam.rpbot.commands;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
import org.pmw.tinylog.Logger;
import com.dreaminsteam.rpbot.db.DatabaseUtil;
import com.dreaminsteam.rpbot.db.models.Player;
import ... | 35.255952 | 238 | 0.672463 |
c556ad89088b589dbafe76435d5639d4d80b39ad | 14,118 | package com.example.miguelapaez.emergenciapp;
import android.app.ProgressDialog;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.RadioButton;
import android.widget.S... | 43.042683 | 134 | 0.592789 |
17c1cbe71439ce6659c9202e9e9b3fb8e295013a | 1,780 | package com.heaven7.java.cs.communication.temp;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
import java.nio.charset.StandardCharsets;
public class Client {
// initialize socket and input output streams
... | 28.709677 | 65 | 0.574157 |
f6b746f90f384fefbaefc610afa6bee9f82b2493 | 7,773 | /**
* Copyright (c) 2002-2013 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, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contrib... | 29.11236 | 168 | 0.656117 |
855b94387022f6b4d56e513f58fd18bade880f57 | 3,680 | /*
* Copyright 2021 DataCanvas
*
* 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 i... | 28.976378 | 92 | 0.62038 |
9ca003e30cf9d6f93b2bfdd45a3d6594a15ca0ba | 387 | package fi.tiedeseura.robotstories;
import android.graphics.BitmapFactory;
/**
* Created by mikko on 5.8.15.
*/
public class SelectedSprite extends MarkerSprite {
public SelectedSprite(GUIView guiView, int center_x, int center_y) {
super(guiView, center_x, center_y);
this.bmp = BitmapFactory.dec... | 25.8 | 93 | 0.731266 |
75fc6666641f903dafe050db156fdf9d19ad1b75 | 3,798 | package moe.feng.support.biometricprompt;
import android.content.Context;
import android.hardware.biometrics.BiometricPrompt;
import android.os.Build;
import android.os.CancellationSignal;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresA... | 32.461538 | 114 | 0.654028 |
66c5170b8c26efb492221cd661a85d4b02595614 | 6,151 | /*
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2015
*/
package com.ibm.streamsx.topology.internal.core;
import static com.ibm.streamsx.topology.builder.JParamTypes.TYPE_SUBMISSION_PARAMETER;
import java.util.HashMap;
import java.util.Map;
import com.ibm.json.java.JSONObject;
import com.ibm.stream... | 35.97076 | 104 | 0.635832 |
cc79bd0401264447538764559a162436d0d3d443 | 1,946 | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
package frc.robot.commands.drive;
import java.util.function.DoubleSupplier;
import edu.wpi.first.math.kinematics.Chass... | 30.888889 | 97 | 0.753854 |
9c394627c0a33aa2c42c6ae87604f6e2d6c5fda1 | 2,026 | /*
* This file is part of Baritone.
*
* Baritone 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 your option) any later version.
*
* Baritone is distrib... | 36.178571 | 85 | 0.712241 |
60c79512f63f6df3d6c69b8ed29dd28d6ee56a2e | 7,754 | // Copyright 2000-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.ide.actions;
import com.intellij.execution.ExecutionException;
import com.intellij.execution.configurations.GeneralCommandLine;
import com.intellij.execution... | 43.077778 | 169 | 0.719242 |
32cb8a7c70004efe036917c7f6a584bb5194d366 | 1,691 | /*
* Copyright 2012 Marco Soeima
*
* 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 ... | 30.745455 | 100 | 0.651094 |
46c4a9c387eccdabb813beef5c54fa9847809b2c | 247 | package net.nemerosa.ontrack.model.exceptions;
public class BuildNameAlreadyDefinedException extends DuplicationException {
public BuildNameAlreadyDefinedException(String name) {
super("Build name already exists: %s", name);
}
}
| 27.444444 | 76 | 0.769231 |
9f51736e218fa5a484854ea2fecc01742c36e065 | 1,656 | package com.neptune.utils;
public class FaceInfo {
public BBox bbox; // bounding box
public float score; // confidence
public FPoints fpts; // facial landmarks
public FaceInfo(float[] arr) {
bbox = new BBox(subArray(arr, 0, 4));
score = arr[4];
fpts = new FPoints(subArray(arr, 5, 15));
}
public static... | 23.657143 | 66 | 0.57186 |
b8672f7e771e80b3fdd01f251ef607cb4ec1a6a3 | 1,536 | package net.lisanza.dropunit.server.rest.controlers;
import org.junit.Before;
import org.junit.Test;
import javax.ws.rs.core.MediaType;
import static org.junit.Assert.fail;
public class EndpointValidatorTest {
private EndpointValidator subject;
@Before
public void setUp() throws Exception {
su... | 24.380952 | 101 | 0.563802 |
bbb40c93bfdf443ca2d926f3cbb45fa3b377490a | 654 | import P3.ExternalFunction.Spec_BigFuzz.WordCountNewCustomArray;
import P3.ExternalFunction.Spec_BigFuzz.map3;
import main.java.sharedClasses.CustomArray;
import java.io.IOException;
import java.util.ArrayList;
public class WordCountNew {
public void WordCountNew(String inputFile) throws IOException {
ArrayList<Stri... | 38.470588 | 74 | 0.83792 |
74cc0fd3f8385e4a9579684a725311ba1b4f4cbc | 20,352 | /*
* Copyright (C) 2014 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... | 39.06334 | 124 | 0.593553 |
f3da065bd4ae5b1d936eb102cf6d61ee567b8ef6 | 876 | package com.simplepathstudios.gamelib.movie;
import com.badlogic.gdx.audio.Music;
import com.simplepathstudios.gamelib.audio.MusicPlayer;
import com.simplepathstudios.gamelib.entity.Entity;
public class Movie extends Entity {
private Video _video;
private Music _music;
private String _musicId;
public... | 20.372093 | 55 | 0.61758 |
56d3acd7ef2cf5a50ad4de894e06b8ea650f8ace | 3,956 | package com.html5parser.insertionModes;
import com.html5parser.classes.InsertionMode;
import com.html5parser.classes.ParserContext;
import com.html5parser.classes.Token;
import com.html5parser.classes.Token.TokenType;
import com.html5parser.factories.InsertionModeFactory;
import com.html5parser.interfaces.IInse... | 38.784314 | 75 | 0.697422 |
735704ce35f21b1d0700ecad5d42cf5e33fb5dba | 1,944 | package org.sagebionetworks.bridge.models.oauth;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.testng.annotations.Test;
import org.sagebionetworks.bridge.json.BridgeObjectMapper;
import static org.testng.Assert.assertEquals;
import com.fasterxml.jackson.databind.JsonNode;
import nl.j... | 39.673469 | 109 | 0.729938 |
ce84c8ad41875d62750ae49b87f2444abb5c3b8f | 373 | package com.github.lppedd.cc.angular2;
import com.github.lppedd.cc.api.ProviderPresentation;
/**
* @author Edoardo Luppi
*/
public class CCAngularConstants {
public static final String PROVIDER_ID = "ca638b86-f228-444f-b842-bb5ad8a96ffa";
public static final ProviderPresentation PRESENTATION =
new Provide... | 28.692308 | 82 | 0.782842 |
d7603ea3b5d638979d9eac6c8e8502530c0a3c66 | 2,484 | package co.featureflags.server;
import co.featureflags.server.exterior.InsightEventSenderFactory;
import co.featureflags.server.exterior.InsightProcessorFactory;
import java.time.Duration;
/**
* Factory to create {@link co.featureflags.server.exterior.InsightProcessor}
* <p>
* The SDK normally buffers analytics e... | 37.074627 | 136 | 0.733897 |
021ca323ec2782d70b87b710e208fb73abdf4ecf | 967 | /*
* Copyright (C) 2017 the original author or authors.
*
* This file is part of jBB Application Project.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*/
package org.jbb.system.web.logging.dat... | 29.30303 | 106 | 0.700103 |
34ae67946c7cb00492ecd3a574b6033c95770950 | 241 | package ru.tashilovama.chat.server.content.authorization;
public interface AuthService {
String getNickByLoginPass(String login, String pass);
boolean changeNick(String oldNick, String newNick);
void start();
void stop();
}
| 26.777778 | 57 | 0.751037 |
a341bb53c6957e196a6cc36871324ee7053418a9 | 7,384 | /*
* Copyright 2000-2015 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... | 36.736318 | 152 | 0.718445 |
46edce678a57a18d2b57c396770b852a8d7dacd9 | 3,135 | package Adapter;
import android.content.Context;
import android.content.Intent;
import android.graphics.Color;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androi... | 29.575472 | 107 | 0.684848 |
a2d3dd16a102865d3121fbf029f27303f2e67b47 | 1,023 | package com.dbeast.templates_generator.app_settings;
import com.dbeast.templates_generator.templates_generator.pojo.DateFormatsPOJO;
import java.util.List;
public class AppConfig {
public static String homeFolder;
public static String configFolder;
public static String projectsFolder;
public static L... | 35.275862 | 79 | 0.692082 |
cbce46ae68f692e2c0183d22fc7193eb7a5a6b33 | 1,587 | package com.rzspider.project.book.bookmanage.service;
import com.rzspider.project.book.bookmanage.domain.Bookmanage;
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
/**
* 图书详情 服务层
*
* @author ricozhou
* @date 2018-05-28
*/
public interface IBookmanageService
{
/**
* 查询图书... | 18.453488 | 78 | 0.647763 |
e1eeed401f27ee5e6be52f9aaa17ee5da4cee0a1 | 9,764 | /*
* Copyright 2010 Google 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 w... | 40.514523 | 100 | 0.698484 |
309c53272eb581fcc3b961a752ee9c58964da25e | 1,117 | package projectEluer;
import java.util.ArrayList;
import java.util.List;
/**
* 找出所有小于一百万,且在十进制和二进制下均回文的数,并求它们的和
*/
public class Problem36 {
static int N = 1000000;
public static void main(String[] args) {
int sum = 0;
for(int i=1;i<N;i++){
if(checkHuiwen(i ) && checkHuiwen(Integ... | 23.270833 | 75 | 0.5094 |
0b773b6883038775511b4bb44b6cbd080b61fe5c | 2,590 | package com.github.varenytsiamykhailo.BigDataLabs.lab4;
import akka.actor.AbstractActor;
import akka.actor.ActorRef;
import akka.japi.pf.ReceiveBuilder;
import scala.Int;
import javax.script.Invocable;
import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;
import javax.script.ScriptException;
imp... | 43.166667 | 190 | 0.5861 |
368b119465d495b48c3d72e1087c7b1c109692cf | 1,081 | package com.jjh.parkinseoul;
import android.app.Activity;
import android.os.Handler;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
/**
* Created by kurt on 08 06 ... | 23.5 | 70 | 0.656799 |
ca4298198d60c5300260c7354c15f66b1728c587 | 483 | package org.apache.calcite.adapter.hive;
import org.apache.calcite.plan.RelOptCluster;
import org.apache.calcite.plan.RelOptTable;
import org.apache.calcite.plan.RelTraitSet;
import org.apache.calcite.rel.core.TableScan;
public class HiveTableScan extends TableScan {
protected HiveTableScan(RelOptCluster ... | 32.2 | 51 | 0.677019 |
c655f1258723ac71a2c287db3f9ed910058bfafc | 593 | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.parallax.server.blocklyprop.monitoring;
import com.codahale.metrics.MetricRegistry;
import com.codahale.metrics.servlet.In... | 26.954545 | 101 | 0.77403 |
e99bc28b264f016b949ed2a1855b73c8a87b4efe | 8,728 | package com.yangdb.fuse.dispatcher.utils;
/*-
* #%L
* fuse-core
* %%
* Copyright (C) 2016 - 2020 The YangDb Graph Database 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
... | 41.561905 | 166 | 0.5967 |
7690f361bb1e3159f948cac3e8c5e7a6dcb35dd5 | 4,996 | /*
* 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 ... | 38.728682 | 99 | 0.659728 |
5a2f7b3318af86353dd9c026fa75d91da631b1a9 | 5,643 | package com.alison;
import io.debezium.connector.mysql.MySqlConnectorConfig;
import io.debezium.data.Envelope;
import io.debezium.embedded.EmbeddedEngine;
import io.debezium.util.Clock;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.apache.kafka.connect.data.Struct;
import or... | 31.005495 | 109 | 0.619351 |
641e92d97a8ec3ae21d63ae87a05a7f654cc5c8e | 2,437 | package ibm.labs.kc.containermgr.dao;
import java.util.Date;
import java.util.List;
import java.util.logging.Logger;
import javax.annotation.PostConstruct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.data.domain.... | 31.649351 | 100 | 0.781288 |
206740b78d9db5875397962276d948d3c134072f | 1,140 | package cz.muni.ics.kypo.topology.transfer;
import org.jsondoc.core.annotation.ApiObject;
import org.jsondoc.core.annotation.ApiObjectField;
/**
* Created by norbert on 25.7.17.
*/
@ApiObject(name = "Node Interface Role", description = "Denotes the logical role of node interface in the network topology.")
public cl... | 27.804878 | 125 | 0.636842 |
e1ac9dc0399f569e96a00e6332db2e76377c9426 | 1,234 | package jp.co.flect.salesforce.update;
import java.util.ArrayList;
import java.util.List;
import jp.co.flect.salesforce.SObject;
/**
* create, update, upserリクエストの基底クラス
*/
public abstract class ModifyRequest {
private List<SObject> list = new ArrayList<SObject>();
private boolean allOrNone = false;
... | 18.69697 | 60 | 0.641815 |
26c0b5c75815cba366b998177d96f22ddaee7e74 | 15,564 | /*
* 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 n... | 49.253165 | 119 | 0.693524 |
eb3f3c2bed7878259889280f629ed0e0d685e238 | 2,921 | /*
* Copyright 2019 Red Hat
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 31.074468 | 116 | 0.687778 |
c9832921cfdb5092e6341f9cd3f80405e3c3d98d | 12,799 | package io.github.opencubicchunks.cubicchunks.world.level;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Queue;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.Function;
import ja... | 39.021341 | 137 | 0.624111 |
52828bb026d5e86d670d482250631e79b242bfab | 3,364 | /**
* Copyright 2015-2017 Maven Source Dependencies
* Plugin contributors as indicated by the @author tags.
*
* 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... | 30.862385 | 105 | 0.659929 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.