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 |
|---|---|---|---|---|---|
80a834eefb80f653a8133e5ae4138c6c39a00103 | 4,499 | package com.samagra.parent.StudentAddressBook;
import androidx.test.rule.ActivityTestRule;
import com.samagra.parent.R;
import com.samagra.parent.ui.HomeScreen.HomeActivity;
import org.junit.Rule;
import org.junit.Test;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.actio... | 39.814159 | 140 | 0.689042 |
50911237dbf4eaa4c8a8921873e308af1b58ee6f | 5,031 | package org.cmucreatelab.android.flutterprek.activities.student_section.coping_skills.coping_skill_cuddle_with_squeeze;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import org.cmucreatelab.android.flutterprek.BackgroundTimer;
import org.cmucreatelab.android.flutterprek.R;
import... | 31.44375 | 161 | 0.652157 |
cc1f6868051f6f8ea78c26079f0286223b9af337 | 3,358 | package scripting;
import backend.game_engine.ResultQuadPredicate;
import backend.player.Team;
import backend.unit.Unit;
import backend.unit.properties.ActiveAbility;
import backend.unit.properties.InteractionModifier;
import backend.util.*;
import util.io.Serializer;
import util.io.Unserializer;
import java.io.Seria... | 33.58 | 259 | 0.754318 |
124f22ae0173ecb7f22cb74d37177689875d978b | 176 | package main.java.exception;
public class IllegalNumberException extends Exception {
@Override
public String toString() {
return "Illegal input data";
}
}
| 19.555556 | 55 | 0.698864 |
813040326804f27ef843262912f908e13167117d | 2,884 | /*-
* ===========================================================================
* meta-freemarker
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Copyright (C) 2019 - 2022 Kapralov Sergey
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Permission i... | 37.947368 | 80 | 0.581831 |
6b459a2ee47a8d5499307532e37344452b5f96fe | 2,909 | /*
* MIT License
*
* Copyright (c) 2017 N Abhishek (aka Kodatos)
*
* 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 limitation the rights
* to us... | 44.753846 | 228 | 0.768305 |
e382384180aacea3433e1b3dfce1422b4610843d | 25,526 | /**
* Licensed to Apereo under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright ownership. Apereo
* licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use
* this file except in compli... | 39.698289 | 141 | 0.599976 |
9daef3b83d9ee9be1fc72b9640ac417b9ebbbc11 | 2,259 | package com.tosh.dude;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import a... | 24.824176 | 94 | 0.686587 |
73a0bc3d07663e625b12745314273b4396f647f9 | 559 | package voldemort.store.readonly.io;
import java.io.Closeable;
import java.io.IOException;
import java.nio.ByteBuffer;
/**
* A closeable which is smart enough to work on byte buffers.
*/
public class ByteBufferCloser implements Closeable {
private ByteBuffer buff;
public ByteBufferCloser(ByteBuffer buff) ... | 18.633333 | 73 | 0.647585 |
019444917a53d515910daaa2148d7b3eae08928e | 242 | package exileMod.patches;
import com.evacipated.cardcrawl.modthespire.lib.SpireEnum;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
public class ExileEnum {
@SpireEnum
public static AbstractPlayer.PlayerClass EXHILE;
}
| 24.2 | 59 | 0.805785 |
bbaa41706acb103a6b8ce5c7ff219ec77796ec4c | 35,237 | package android.support.v4.widget;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.res.TypedArray;
import android.os.Build.VERSION;
import android.support.annotation.ColorInt;
import android.support.annotation.ColorRes;
import android.support.annotation.Nullable;
import a... | 39.547699 | 238 | 0.643528 |
9b1de766d71d6a60a2af4f0008cd8862a81b19f3 | 226 | package _16visitor.my;
/**
* @author 孟享广
* @date 2020-08-13 2:26 下午
* @description
*/
public class Woman extends Person{
@Override
public void accpect(Action action) {
action.getWomanResult(this);
}
} | 17.384615 | 40 | 0.646018 |
b437dd1aa08ce796ca76346ed3c2e01139069c20 | 4,872 |
package io.automatiko.engine.workflow.compiler.xml.processes;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import io.automatiko.engine.api.definition.process.Connection;
import io.automatiko.engine.workflow.base.core.context.exception.ExceptionScope;
import io.automatiko.engine.workflow.b... | 40.264463 | 110 | 0.745895 |
6274ea794461426a08bed1d55a847598bfea71dd | 5,939 | /*
* Copyright (c) 2021, Veepee
*
* Permission to use, copy, modify, and/or distribute this software for any purpose
* with or without fee is hereby granted, provided that the above copyright notice
* and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIM... | 41.531469 | 193 | 0.651793 |
012a1c22a17fe25bc79abf71ab848abde30917b9 | 1,737 | package vector_routing;
import java.io.*;
public class VectorRouting {
// returns true if the system is stable
public boolean shareTables() {
boolean stable;
int detect = 0; // has the system been updated
// I will use this to determine if the system is stable.
for (int i = 0; i < Main.MAX_NODES; i++) {
... | 28.95 | 92 | 0.658031 |
f3f64186196d10504d203625218dbe6437b22f60 | 2,936 | /*
Copyright 2015 Denis Prasetio
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, soft... | 29.36 | 92 | 0.755109 |
b1496c356b05ac3abc883e02d0016897e8134ecd | 1,673 | package es.udc.ws.util.configuration;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
public final class ConfigurationParametersManager {
private static final String CONFIGURATION_FILE = "ConfigurationParameters.properties";
... | 30.981481 | 90 | 0.623431 |
b805ef9f4c933992f6cf91f754da3632e5b5df50 | 1,256 | package dev.nito.xikra.utils;
import lombok.experimental.UtilityClass;
import java.io.IOException;
import java.net.URI;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import static dev.nito.xikra.utils.TypeConversionsUtils.booleanToInteger;
@UtilityClass
public class... | 33.052632 | 131 | 0.649682 |
7ea26f84cbc4db530a454c0932c52a1c418cb806 | 4,166 | package org.allrecipes.CosineSimilarity;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Iterator;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.conf.Configured;
import org.apache.hadoop.fs.FileSy... | 31.089552 | 140 | 0.690831 |
f652f90dfa6b5ab4f4aed39ec96eddc103bd3fe2 | 16,802 | /**
* (c) Copyright 2013 WibiData, Inc.
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* 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... | 42.21608 | 100 | 0.65641 |
2e0c96fb161151056ac0554222df486623e5db33 | 432 | package org.zwobble.mammoth.internal.xml;
import java.util.Optional;
public class NamespacePrefix {
private final Optional<String> prefix;
private final String uri;
public NamespacePrefix(Optional<String> prefix, String uri) {
this.prefix = prefix;
this.uri = uri;
}
public Option... | 19.636364 | 65 | 0.648148 |
e2ba76bc4f3b280acfb71290cc9ac381273b2a8e | 23,997 | package com.ociweb.pronghorn.ring;
import static com.ociweb.pronghorn.ring.RingBuffer.addByteArray;
import static com.ociweb.pronghorn.ring.RingBuffer.byteBackingArray;
import static com.ociweb.pronghorn.ring.RingBuffer.byteMask;
import static com.ociweb.pronghorn.ring.RingBuffer.bytePosition;
import static com.ociweb... | 34.727931 | 256 | 0.66625 |
0c49a85957ee3d32acb3cab3237db741b0513269 | 13,235 | /**
* Copyright (c) 2018 MapR, 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 t... | 28.279915 | 117 | 0.740083 |
ba0d24e5c4c0b01bb59b67f4db906b9c77161d9d | 748 | package ru.divinecraft.customstuff.api.block.manager;
import lombok.AllArgsConstructor;
@AllArgsConstructor
public class UnknownBlockTypeException extends RuntimeException {
public UnknownBlockTypeException(final String message) {
super(message);
}
public UnknownBlockTypeException(final String m... | 29.92 | 114 | 0.719251 |
c1b08003673be59564d29dd92e944472227b8e5b | 5,096 | package com.example.mateverunica.verunica_fueltrack;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Parcelable;
import android.support.v7.app.AppCompatActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGro... | 35.636364 | 126 | 0.643838 |
becb530c5dbe78a538e3d67e3236ca3fa34a5161 | 1,621 | package com.puresoltechnologies.genesis.transformation.cassandra;
import java.util.Properties;
import com.datastax.driver.core.Cluster;
import com.datastax.driver.core.Session;
import com.puresoltechnologies.genesis.commons.SequenceMetadata;
import com.puresoltechnologies.genesis.transformation.spi.AbstractTransforma... | 23.157143 | 111 | 0.716225 |
c906db29b2056cde958ad71a71e1672c99fd47e2 | 3,940 | /*
* Copyright (C) 2020 The ToastHub Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 25.095541 | 136 | 0.744162 |
b6076703653483a89e5e2c9cd6548e3d0d707a82 | 6,201 | package com.github.nijian.jkeel.algorithms;
import java.net.URI;
import java.util.Properties;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
/**
* AlgorithmContextManager is responsible for creating AlgorithmContext with global identifier.
*
* @author nj
* @since 0.0.1
... | 38.277778 | 128 | 0.526205 |
fbb4d0ed50c7787fa4b83eca5bc0e054c5bb9fa9 | 476 | package io.sentry.util;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
@ApiStatus.Internal
public final class Pair<A, B> {
private final @Nullable A first;
private final @Nullable B second;
public Pair(final @Nullable A first, final @Nullable B second) {
this.first =... | 19.833333 | 66 | 0.703782 |
f7320ed43d3fc4f451b67e055ada6249368e5f94 | 5,853 | package sa.revenue;
import android.content.Context;
import android.content.Intent;
import android.text.TextUtils;
import com.orhanobut.hawk.Hawk;
import java.text.NumberFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.concu... | 37.76129 | 118 | 0.654024 |
0eae322521e13cd66326fd57b0453b77ad087923 | 2,617 | package com.forezp.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.ClassPathResource;... | 45.912281 | 133 | 0.784486 |
8edf9384c0e19ebc1cdb681b87eb049349f9f7c8 | 5,526 | /**
*
* Copyright 2005 The Apache Software 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 a... | 47.637931 | 156 | 0.690192 |
2bbcecad74908254372a93dc93cbf0c8082d98e1 | 1,101 | package com.rahulmehra.java8.datetimeapi;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import static java.time.Month.*;
public class DateTimeWithZonesExample {
public static void main(String[] args) {
ZoneId SFO = ZoneId.of("America/Los_Angeles");
ZoneId BOS = Zone... | 32.382353 | 110 | 0.763851 |
740ef85bd9b8a2d05497ebbd23c7aa59b45825a5 | 635 | package havis.net.ui.shared.client.widgets;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import havis.net.ui.shared.resourcebundle.ResourceBundle;
public class LoadingSpinner extends PopupPanel {
public LoadingSpinner() {
super(false, true);
setSty... | 30.238095 | 77 | 0.76378 |
adbcbfdfe54f45a2f8ac201f6d5d5fc367e91878 | 2,434 | /*
*
* Copyright (c) 2016 Krupal Shah, Harsh Bhavsar
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 33.805556 | 184 | 0.696385 |
a9d1f0c0a18396e0bc0429b32a1c264dee24b7c3 | 858 | package com.example;
import static org.junit.jupiter.api.Assertions.*;
import java.io.IOException;
import java.util.Map;
import java.util.stream.Stream;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.MethodSource;
import com.excelbdd.Behavior;
import com.excelbdd.TestWiz... | 26.8125 | 77 | 0.770396 |
2ecb0f5fe6892b0ba83316b2e6441d4427058f67 | 1,173 | package com.lanking.cloud.domain.yoo.order.fallible;
import com.lanking.cloud.sdk.bean.Valueable;
/**
* 错题打印订单状态
*
* @since 3.9.3
* @author <a href="mailto:sikai.wang@elanking.com">sikai.wang</a>
* @version 2017年3月21日
*/
public enum FallibleQuestionPrintOrderStatus implements Valueable {
/**
* ... | 13.329545 | 73 | 0.570332 |
62f1faa4f6ee512bb8e8748e4155ad5adc21f535 | 414 | package engine.input;
import java.awt.event.KeyEvent;
public class MarioHumanKeyboard extends MarioKeyboard {
public MarioHumanKeyboard() {
register(KeyEvent.VK_LEFT, MarioKey.LEFT);
register(KeyEvent.VK_RIGHT, MarioKey.RIGHT);
register(KeyEvent.VK_DOWN, MarioKey.DOWN);
register(KeyEvent.VK_UP, MarioKey.UP)... | 24.352941 | 55 | 0.772947 |
d21e154d47bc22c87926a8cfaf01d994ee5b578c | 3,674 | package nl.nn.adapterframework.util;
import nl.nn.adapterframework.core.Resource;
import nl.nn.adapterframework.util.LogUtil;
import org.apache.logging.log4j.Logger;
import org.junit.Test;
import javax.xml.transform.Source;
import static org.junit.Assert.assertEquals;
public class TransformerPoolTest {
protected L... | 41.280899 | 90 | 0.790419 |
a3429f5b3fa7cddb36e98bfcaabd1b907cfb75e1 | 2,545 | package info.itsthesky.disky.skript.events.skript.bot;
import ch.njol.skript.Skript;
import ch.njol.skript.doc.Description;
import ch.njol.skript.doc.Examples;
import ch.njol.skript.doc.Name;
import ch.njol.skript.doc.Since;
import ch.njol.skript.lang.util.SimpleEvent;
import ch.njol.skript.registrations.EventValues;
... | 33.933333 | 133 | 0.66444 |
4a25265e33442b9ab5891ebeb2e27c556df29fed | 3,694 | /*
* PDF stamper
* The PDF Stamper API enables the possibility to add both static and dynamic stamps on existing PDFs. The stamps can consist of one or more barcode, hyperlink, image, line or text elements. The API also supports digital signatures (blue bar), blockchain registrations and filling out forms The flow... | 26.198582 | 735 | 0.661343 |
73f79a80bd45e774a5176122676cc1d6f5b9735d | 4,165 | package com.connectedparking.www;
import com.sun.mail.dsn.Report;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import javax.activation.DataHandler;
import javax.activation.DataSource;
import javax.activation.FileDataSource;
import javax.mail.*;
import javax.mail.internet.*;
... | 33.055556 | 124 | 0.607203 |
39429d99ef1b377c147cf832fe120fcce5055531 | 6,867 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
*
* This class was automatically generated by the
* aapt tool from the resource data it found. It
* should not be modified by hand.
*/
package com.ajapps.climatecars.slidingtabscolors;
public final class R {
public static final class attr {
/** <p>Must be a re... | 50.866667 | 174 | 0.692588 |
439159bec72e272898418b63cd4518a03e569a4a | 234 | package com.blog.sample.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.blog.sample.models.User;
public interface UserJpaRepository extends JpaRepository<User, Long>, UserCustomRepository {
}
| 26 | 92 | 0.833333 |
0b58196381d96deac97b34585a6fe3713b2e82f2 | 1,539 | /*
* Copyright (c) 2008-2016, GigaSpaces Technologies, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Un... | 31.408163 | 89 | 0.74334 |
daf11fba0b11cf7168169f6c2c0284e8faf7918a | 2,476 | package com.microsoft.bingads.v13.api.test.entities.criterions.adgroup.radius;
import org.junit.runner.RunWith;
import org.junit.runners.Suite;
import com.microsoft.bingads.v13.api.test.entities.criterions.adgroup.radius.read.BulkAdGroupRadiusCriterionReadAdGroupNameTest;
import com.microsoft.bingads.v13.api.test.ent... | 68.777778 | 135 | 0.860258 |
ac580318728b3a74798240b2a8860ca06c77e373 | 5,126 | import java.util.*;
public class work
{
public static int seconds = 0;
public static boolean full = false;
public static int intensity;
public static String foc;
public static int min;
public static Workout workout;
public static ArrayList <String> exercise;
public static void main(Strin... | 36.614286 | 95 | 0.522435 |
403b8a594615b2436b7609e483f846c691b802f7 | 2,211 | package net.chwthewke.hamcrest.equivalence;
import static net.chwthewke.hamcrest.equivalence.EquivalenceClassMatchers.equates;
import static net.chwthewke.hamcrest.equivalence.EquivalenceClassMatchers.separates;
import static org.hamcrest.MatcherAssert.assertThat;
import org.junit.Test;
public class Identity... | 29.878378 | 95 | 0.558571 |
43af5a746723bc3317e29d645b430fb5cf21e461 | 5,185 | /*
* 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... | 35.272109 | 169 | 0.696818 |
0099d626d66ca2fb95fe8a580f4b917cc2f48965 | 1,377 | package yao.usage.compare.example;
public class Student implements Comparable<Student> {
private String id;
private String name;
private int age;
public Student(String id, String name, int age) {
this.id = id;
this.name = name;
this.age = age;
}
public boolean equals(... | 18.608108 | 53 | 0.477124 |
78c7883bbc1e5b73ce381821e48827aceb1a7a83 | 236 | package com.training.patterns.src.visitor;
public interface SalesVisitor {
public void visit(final Prospect prospect);
public void visit(final Customer customer);
public void visit(final RDManager prospect);
}
| 21.454545 | 49 | 0.728814 |
c676d2eeb8f3f48882fe824283cd2f936633ee73 | 3,789 | /*
*
* 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"); y... | 31.575 | 137 | 0.651623 |
98e56b47674afca38f1628c84e6568dfaa1b16e8 | 1,139 | package com.bitwait.bitrade.service;
import com.bitwait.bitrade.constant.BooleanEnum;
import com.bitwait.bitrade.constant.PromotionRewardType;
import com.bitwait.bitrade.service.Base.TopBaseService;
import com.bitwait.bitrade.dao.RewardPromotionSettingDao;
import com.bitwait.bitrade.entity.RewardPromotionSetting;
imp... | 27.780488 | 118 | 0.753292 |
3e8ba5d5e3e68cfcd87f08aa6996429057f971d0 | 693 | package io.improbable.keanu.vertices.generic.nonprobabilistic.operators.binary;
import io.improbable.keanu.vertices.Vertex;
import io.improbable.keanu.vertices.generic.nonprobabilistic.NonProbabilistic;
public abstract class BinaryOpVertex<A, B, C> extends NonProbabilistic<C> {
protected final Vertex<A> a;
p... | 23.896552 | 79 | 0.658009 |
3e46ae60a3963f137b03ed330d327bd0cfa6a23c | 1,563 | package com.cpucode.pattern.behavior.delegate.mvc;
import com.cpucode.pattern.behavior.delegate.mvc.controllers.MemberController;
import com.cpucode.pattern.behavior.delegate.mvc.controllers.OrderController;
import com.cpucode.pattern.behavior.delegate.mvc.controllers.SystemController;
import javax.servlet.ServletEx... | 31.26 | 103 | 0.6865 |
e500f63427e772f6fdc57ad72185d756ab5b1b7e | 644 | package com.redislabs.lettusearch.aggregate.reducer;
import static com.redislabs.lettusearch.protocol.CommandKeyword.QUANTILE;
import com.redislabs.lettusearch.protocol.RediSearchCommandArgs;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
public @Getter @Setter class Quantile extends AbstractPro... | 22.206897 | 89 | 0.781056 |
2e56976baa4efc1b95249be087b230bbe8d5d396 | 6,939 | /**
* Copyright 2014 Tampere University of Technology, Pori Department
*
* 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 ... | 35.584615 | 302 | 0.749388 |
48b66cc976b47143e86afca44cbedbf24f1e9683 | 753 | package org.firstinspires.ftc.teamcode.Recording;
import com.qualcomm.robotcore.hardware.HardwareMap;
import com.qualcomm.robotcore.util.ElapsedTime;
public class RecordingThread extends Thread {
private HardwareMap map;
private BlackBox.Recorder recorder;
private ElapsedTime recordTimer;
public Rec... | 25.965517 | 73 | 0.645418 |
b4275e6a338eb92e6b811c82d5669140880d86b0 | 982 | package conditions;
import gameEngine.environments.RuntimeEnvironment;
import units.Unit;
public class CheckAttributeCondition implements ICondition{
private String myAttributeToCheck;
private double myLowerBound;
private double myUpperBound;
public CheckAttributeCondition(String attribute, double lower, double... | 28.882353 | 106 | 0.788187 |
4da8a6e504223045a310a8d63ca856fad736c3a3 | 1,824 | package uk.ac.ebi.quickgo.ontology.service.converter;
import uk.ac.ebi.quickgo.common.converter.FlatFieldBuilder;
import uk.ac.ebi.quickgo.common.converter.FlatFieldLeaf;
import uk.ac.ebi.quickgo.ontology.model.OBOTerm;
import java.util.Optional;
import org.junit.Before;
import org.junit.Test;
import static org.hamc... | 32 | 98 | 0.718202 |
574d4ef1bf0ea3ca88b4abeff4cd04bf699d9895 | 840 | package nl.knokko.server.chat;
import java.util.ArrayList;
import java.util.List;
import nl.knokko.server.connection.UserSocketConnection;
public class ChatChannel {
private List<UserSocketConnection> members;
public ChatChannel() {
members = new ArrayList<UserSocketConnection>();
}
public void broadcastM... | 23.333333 | 77 | 0.74881 |
7a03d284e9d23444145cae67eed814e3cdf92516 | 1,997 | import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.paint.Color;
/**
* This class represents the NextLevel Scene, which is reached whenever the player beats a level.
* From here, the player ca... | 28.942029 | 97 | 0.68653 |
50653a44d44c65b0d0f8fee04473f54db99ad195 | 856 | package com.acmerobotics.relicrecovery.opmodes.test;
import com.acmerobotics.library.localization.Pose2d;
import com.acmerobotics.library.path.TrajectoryBuilder;
import com.acmerobotics.relicrecovery.subsystems.Robot;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.op... | 32.923077 | 66 | 0.714953 |
18a4e85ace5631d0362ecfe5717245ac6494cca6 | 666 | package pers.tavish.ex.chapter2.elementarysorts.creativeproblems;
import edu.princeton.cs.algs4.Transaction;
import pers.tavish.code.chapter2.elementarysorts.Selection;
public class SortTransaction {
public static void main(String[] args) {
Transaction[] a = new Transaction[4];
a[0] = new Transaction... | 31.714286 | 65 | 0.626126 |
940e1f5190d3a2a487a2a096a750ae319b0dcc4a | 781 | package com.spring.regist;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.beans.factory.support.BeanNameGenerator;
import org.springframework.beans.factory.support.RootBeanDefinition;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
impor... | 35.5 | 112 | 0.855314 |
8a0398c602667b17882ef7edeb767141cb7357a9 | 1,662 | package com.dylanthesoldier.apprepofx.model.global;
import com.dylanthesoldier.apprepofx.controllers.main.MainViewController;
import com.dylanthesoldier.apprepofx.controllers.settings.AppSettings;
import com.dylanthesoldier.apprepofx.controllers.settings.SettingsViewController;
import com.dylanthesoldier.apprepofx.mod... | 36.933333 | 119 | 0.743682 |
3ddf1ea75071f937bf13280c11b217e8ff8f4835 | 1,733 | package net.optifine.gui;
import net.minecraft.client.gui.GuiButton;
import net.minecraft.client.gui.GuiScreen;
import net.minecraft.client.settings.GameSettings;
import net.optifine.Lang;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
public class TooltipProviderOptions implements TooltipProv... | 27.507937 | 93 | 0.559146 |
65575e6b5009d256108ed6cd4a6f84c921f0de7b | 435 | package net.technolords.micro.camel.processor;
import org.apache.camel.Exchange;
import org.apache.camel.Processor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class RedisProcessor implements Processor {
private final Logger LOGGER = LoggerFactory.getLogger(getClass());
@Override
publ... | 27.1875 | 70 | 0.756322 |
76f4ac1e4624a418ff9bf8d52ef87396403b6414 | 5,605 | /*
* ElementList.java July 2006
*
* Copyright (C) 2006, Niall Gallagher <niallg@users.sf.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 License at
*
* http://www.apache.org/licenses/L... | 39.751773 | 70 | 0.693845 |
3820e533fceab02d2177ac2dda0308ddd4be4a64 | 4,977 | package org.apache.maven.doxia.siterenderer;
/*
* 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... | 37.421053 | 96 | 0.518385 |
49ab3c163f8b42391eae0a6b3217dd88d26cc781 | 1,089 | package io.resourcepool.generator;
import io.resourcepool.model.Language;
/**
* Text Generator Filter.
* Use this class to specify filters for your content generator
* @author Loïc Ortola
*/
public class Query {
public final int count;
public final Language[] languages;
public Query(int count, Language.... | 21.78 | 98 | 0.628099 |
674ede2c8740fa25d036b2e54aa6c5dbc9f6d408 | 43,247 | package com.yilian.mall.ui.fragment;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.app.Alert... | 47.161396 | 273 | 0.49978 |
3004fe46e12353ba1b3415bd4cac74e692787c64 | 742 | /*
* Copyright (c) 2018. JeongHa, Cho
*/
package head.first.design.pattern.rule.singleton.general;
/**
* Created by cho_jeong_ha on 2018-03-27 오후 3:49
* Blog : https://jungha-cho.github.io/
* Github : https://github.com/JungHa-Cho
* Email : ppzxc8487@gmail.com
*/
public class OldSingleton2 {
/**
* static으... | 20.054054 | 57 | 0.6469 |
e2fdeb1cbe87fb00a3ec828098aeab01e3c18505 | 397 | package array11;
public class Array11 {
//Dado um Array numérico "nums" e um "index" (valor 0), retorne o número de vezes em que o "11" aparece no Array dado.
//Fazer recursivamente.
public int array11(int[] nums, int index) {
if (index >= nums.length) return 0;
if (nums[index] == 11) retu... | 30.538462 | 122 | 0.629723 |
613145dc6a933dafb3245294dc5c578588527d41 | 2,186 | package com.fbx;
import java.io.Serializable;
public class CameraData implements Serializable {
// 摄像头ID
private int cameraId;
// 设备序列号(用于播放)
private String cameraSns;
// 设备描述,标题
private String cameraTitle;
// 设备快照资源地址
private String snapshotUrl;
// 设备状态
private... | 22.080808 | 139 | 0.587832 |
8df123a872620eeb44da3f9bb005a4a171f6cb46 | 6,861 | /*******************************************************************************
* Copyright 2014 United States Government as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you m... | 34.134328 | 164 | 0.707186 |
9917878eb7b8d37716372a12963e1db64dddc14a | 1,398 | package com.wutong.weixin.model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;
import javax.validation.... | 29.744681 | 72 | 0.722461 |
8b13e92b7b81102fddfe8b7e03735eab105034e2 | 3,528 | package com.paypal.sellers.bankaccountextract.service.impl;
import com.hyperwallet.clientsdk.model.HyperwalletBankAccount;
import com.mirakl.client.core.exception.MiraklApiException;
import com.mirakl.client.mmp.operator.core.MiraklMarketplacePlatformOperatorApiClient;
import com.mirakl.client.mmp.operator.domain.shop... | 48.328767 | 115 | 0.827664 |
86ec35d9928504e83cc81709573116718aa36c70 | 7,491 | package org.sagebionetworks.bridge.models.upload;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertFalse;
import static org.testng.Assert.assertTrue;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import com.google.common.collect.ImmutableList;
import nl.j... | 46.81875 | 116 | 0.678014 |
be07b99236f7e444b68319707b8acfd73558acff | 6,171 | package com.github.zywx.xzh.http;
import java.io.File;
import java.io.IOException;
import java.util.Map.Entry;
import org.apache.http.HttpEntity;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.a... | 38.811321 | 111 | 0.586291 |
33ee632c1d42e5b3d76052f64924e670caf71fa5 | 542 | package gov.hhs.onc.dcdt.crypto.certs;
import gov.hhs.onc.dcdt.crypto.CryptographyException;
public class CertificateException extends CryptographyException {
private final static long serialVersionUID = 0L;
public CertificateException() {
super();
}
public CertificateException(Throwable cau... | 22.583333 | 66 | 0.697417 |
2ae6bedde9002ed2790b5a89edd2d7d132fa5af6 | 1,174 | package com.github.dynamicextensionsalfresco.gradle.internal;
import com.github.dynamicextensionsalfresco.gradle.internal.rest.RestClient;
import com.github.dynamicextensionsalfresco.gradle.internal.rest.RestClientOptions;
import com.github.dynamicextensionsalfresco.gradle.internal.rest.RestClientPostFileOptions;
impo... | 30.894737 | 133 | 0.778535 |
416bf034c7ee040f337b009d03c041891aad5695 | 2,443 | package org.asciidoctor.extension;
import java.util.List;
import org.asciidoctor.internal.RubyObjectWrapper;
import org.jruby.Ruby;
import org.jruby.RubyArray;
import org.jruby.RubyClass;
import org.jruby.runtime.builtin.IRubyObject;
public class ReaderImpl extends RubyObjectWrapper implements Reader {
public R... | 22.412844 | 84 | 0.633238 |
9d436577b63e12541231297d5dbbacaab4e8e570 | 3,135 | /* ~~ The OpenProjectFiles is part of BusinessProfit. ~~
*
* The BusinessProfit's classes and any part of the code
* cannot be copied/distributed without
* the permission of Sotiris Doudis
*
* Github - RiflemanSD - https://github.com/RiflemanSD
*
* Copyright © 2016 Sotiris Doudis | All rights rese... | 35.224719 | 92 | 0.681659 |
0df3d7d7921c8768dd3a2f49754e43c06185386c | 6,521 | package com.xzhou.book.net;
import com.xzhou.book.MyApp;
import com.xzhou.book.models.Entities;
import com.xzhou.book.models.HtmlParse;
import com.xzhou.book.models.HtmlParseFactory;
import com.xzhou.book.models.SearchModel;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutorServic... | 39.762195 | 107 | 0.527066 |
fc20aaeee110cb869416a246f4f50beb7ab05ab3 | 23,789 | package io.toolisticon.aptk.tools;
import io.toolisticon.aptk.tools.annotationutilstestclasses.ClassArrayAttributeAnnotation;
import io.toolisticon.aptk.tools.annotationutilstestclasses.ClassAttributeAnnotation;
import io.toolisticon.aptk.tools.annotationutilstestclasses.DefaultValueAnnotation;
import io.toolisticon.a... | 44.217472 | 344 | 0.658372 |
f1245de9b2cc48308d0d11a0aac9d355b627bf8c | 588 | //,temp,WindowsSecureContainerExecutor.java,602,617,temp,WindowsSecureContainerExecutor.java,573,584
//,3
public class xxx {
@Override
protected String[] getRunCommand(String command, String groupId,
String userName, Path pidFile, Configuration conf) {
File f = new File(command);
if (LOG.isDebugEnable... | 34.588235 | 100 | 0.666667 |
d77361b5caa75002ef5b042f01167ac7f2cb2d03 | 1,704 | package pkg.deepCurse.nopalmo.command.commands.general;
import java.util.HashMap;
import pkg.deepCurse.nopalmo.command.CommandInterface.GuildCommandInterface;
import pkg.deepCurse.nopalmo.database.DatabaseTools.Tools.Global;
import pkg.deepCurse.nopalmo.database.DatabaseTools.Tools.Guild;
import pkg.deepCurse.nopalmo... | 28.881356 | 119 | 0.741197 |
b8f3bcd253456492def708ca057a5190d7e5c2c8 | 7,091 | package org.andromda.cartridges.bpm4struts;
import org.andromda.core.profile.Profile;
/**
* Contains the BPM4Struts profile.
*
* @author Wouter Zoons
*/
public final class Bpm4StrutsProfile
{
/**
* The Profile instance from which we retrieve the mapped profile names.
*/
private sta... | 48.238095 | 107 | 0.69426 |
af1622fe4e52302a7eb75d7ff27da2baf8bc4e22 | 4,451 | /*******************************************************************************
* Copyright 2018 General Electric Company
*
* 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:... | 41.212963 | 120 | 0.706807 |
90896e74a609055c5922b8118255e3fef487281a | 5,104 | package org.bouncycastle.math.ec.custom.sec;
import java.math.BigInteger;
import org.bouncycastle.math.ec.ECFieldElement;
import org.bouncycastle.math.raw.Mod;
import org.bouncycastle.math.raw.Nat192;
import org.bouncycastle.util.Arrays;
public class SecP192K1FieldElement extends ECFieldElement {
public static fin... | 31.506173 | 89 | 0.642045 |
f9f0ddf5f919d62483a0653dc8d43fb3b638a222 | 233 | package com.example.programmer.womensafety;
/**
* Created by Programmer on 12/14/2017.
*/
interface AccelerometerListener {
public void onAccelerationChanged(float x,float y,float z);
public void onShake(float force);
}
| 21.181818 | 63 | 0.742489 |
2e8c53c214cca338cec2f9ef138727d8ae955208 | 567 | package d1.project.docsmgr.view;
import javafx.scene.control.Dialog;
import javafx.scene.control.ProgressBar;
import javafx.stage.StageStyle;
import java.util.List;
public class ProgressDialog {
public ProgressDialog(List<String> files) {
Dialog dialog = new Dialog();
dialog.setTitle("删除进度");
... | 22.68 | 63 | 0.673721 |
858840a99e7806d2f9daf573c2b0c2b7a67ebc2b | 636 | package com.alphago365.octopus.model;
import com.alphago365.octopus.model.audit.DateAudit;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
@EqualsAndHashCode(callSuper = false)
@Entity
... | 19.272727 | 52 | 0.721698 |
ca7c1d5a72794fc1b39f4acac4030690a641c7a7 | 64,069 | // 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.fasterxml.jackson.core.io;
public final class NumberOutput
{
public NumberOutput()
{
// 0 0:aload_0
// 1 1:invokesp... | 30.567271 | 94 | 0.407795 |
822adf878f8249f9cd7d9198aa8057eff1169431 | 520 | package com.shubham.selenium.config;
public class TestNGConstant {
public static final String baseURL = "baseURL";// www.baseurl.com/
public static final String cromeDriver = "webdriver.chrome.driver"; // chrome driver
public static final String cromeDriverPath = "D:\\Project\\chromedriver\\chromedriver.... | 37.142857 | 163 | 0.742308 |
2f50fdd662e2481098a25099106d9af0134ed99c | 2,412 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.appservice.implementation;
import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.apigener... | 37.6875 | 136 | 0.735075 |
a22a03ecf39af7266ffae1c2660c0dd18daba7a5 | 1,048 | package pxf.toolkit.extension.pinyin;
import javax.annotation.Nonnull;
import pxf.toolkit.basic.lang.collection.ArrayObject;
/**
* 拼音
*
* @author potatoxf
* @date 2021/4/29
*/
public class PinYin extends ArrayObject<String> {
private static final long serialVersionUID = 2163839972630926530L;
PinYin(final Str... | 19.407407 | 81 | 0.638359 |
407d93e1de244db4b1415d802848213d000adc54 | 520 | package org.baghdasaryan.packageuninstaller.data.apps;
public class App {
private final String name;
private final String packageName;
private final int icon;
public App(String name, String packageName, int icon) {
this.name = name;
this.packageName = packageName;
this.icon =... | 18.571429 | 59 | 0.621154 |
d557ccdf4419bd6a6c271a595d3c223fbf9416e4 | 388 | package com.gjr.wheelpickerbyrecyclerview;
import android.app.Application;
import com.gjr.wheelpickerbyrecyclerview.data.ProvinceUtil;
import io.realm.Realm;
/**
* Created by geng
* on 2017/4/6.
*/
public class App extends Application {
@Override
public void onCreate() {
super.onCreate();
... | 16.166667 | 59 | 0.685567 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.