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 |
|---|---|---|---|---|---|
b0d1b2cdaf868156c28f08b2e694054a0ea17158 | 210 | package com.kakawait.spring.security.cas.client.validation;
/**
* @author Thibaud Leprêtre
*/
public interface ProxyCallbackUrlAwareTicketValidator {
void setProxyCallbackUrl(String proxyCallbackUrl);
}
| 23.333333 | 59 | 0.8 |
99bd3a7f3f5b68135e59466c3895f113b8a1c65f | 4,188 | package pl.edu.pwr.core;
import com.github.javaparser.ast.CompilationUnit;
import com.github.javaparser.ast.body.CallableDeclaration;
import com.github.javaparser.ast.body.ConstructorDeclaration;
import com.github.javaparser.ast.body.MethodDeclaration;
import com.github.javaparser.ast.nodeTypes.NodeWithSimpleName;
imp... | 34.327869 | 100 | 0.707975 |
6a66cf440245d5ffdc07bf459b16e827268a530a | 203 | package hu.blackbelt.flutter.maven.plugin.api;
public interface FileDownloader {
void download(String downloadUrl, String destination, String userName, String password) throws DownloadException;
}
| 29 | 117 | 0.812808 |
8398b4b924a1f0e8b2049e148325606bfc32113e | 1,235 | /*
Copyright 2011 WebDriver committers
Copyright 2011 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 ... | 30.875 | 86 | 0.790283 |
c055abfbb1d52a74be065a9a063a24ba9cb3f9b0 | 3,969 | package flash.events;
/**
* This interface replicates some of the IEventDispatcher functionality from Flash.
*
* @author Ka Wing Chin
*/
public interface IEventDispatcher
{
/**
* Registers an event listener object with an EventDispatcher object so that the listener receives notification of an even... | 50.240506 | 173 | 0.707483 |
81dfd00dda0dbd64f08dd016a5164cac7ab3f801 | 3,342 | /*
* #%L
* none: runtime code modification by annotation idioms.
* %%
* Copyright (C) 2014 Tobias Pietzsch.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain... | 35.553191 | 81 | 0.770497 |
2b612271b861915ec44aa863bb73106618d74a68 | 3,137 | import jargs.gnu.CmdLineParser;
import jargs.gnu.CmdLineParser.IllegalOptionValueException;
import jargs.gnu.CmdLineParser.UnknownOptionException;
import java.io.File;
/**
* ParsimProtRunner.java
* @author Vagisha Sharma
* Apr 9, 2012
*/
/**
*
*/
public class ParsimProtRunnerForPepInput {
public static void... | 32.010204 | 102 | 0.639464 |
b5cfbede5259f6997450a8f2fde3d97a892f1a3f | 23,561 | /*
* 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... | 42.760436 | 111 | 0.659819 |
8818a722c5726c943c8041f06a14cfe05d5595e7 | 352 | package fenix31415.autotab.mixin;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.options.GameOptions;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.gen.Accessor;
@Mixin(MinecraftClient.class)
public interface MinecraftClientMixin {
@Accessor("options")
... | 27.076923 | 48 | 0.8125 |
9fa0ecad56e83d02ef0264c91e579f165f9cc6e1 | 1,006 | package com.jam.app.handler;
import com.jam.base.exception.ExceptionType;
import com.jam.base.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.web.session.SessionInformationExpiredEvent;
import org.springframework.security.web.session.SessionInformationExpiredStrategy;
import org.sp... | 33.533333 | 99 | 0.787276 |
06d886d9f8e39ed2cf7de6f98d8c5f39b8baa1cf | 1,738 | package com.prismaqf.callblocker.actions;
import android.content.Context;
import android.telephony.TelephonyManager;
import android.util.Log;
import com.android.internal.telephony.ITelephony;
import java.io.Serializable;
import java.lang.reflect.Method;
/**
* Action to drop a call using a ITelephony stub
* @autho... | 32.185185 | 94 | 0.692175 |
44e7ddf0318168ce837ba2b337a3c0113441d039 | 3,417 | /*
* Copyright 2020 The Context Mapper Project Team
*
* 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 applicabl... | 40.2 | 156 | 0.794264 |
4a8974e91aa7b974cc249affa0f9fe0a9448bf38 | 1,215 | /*
* Copyright 2013 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 23.823529 | 75 | 0.707819 |
d854a17501f09c7d5cd59b21a45ad36ec66fc020 | 961 | /*
* Copyright (c) 2020 OCLC, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the MIT/X11 license. The text of the license can be
* found at http://www.opensource.org/licenses/mit-license.php.
*/
package org.oclc.circill.toolkit.initiator.client;
import org.... | 32.033333 | 97 | 0.734651 |
2080b53d44fc0b680a710948d9e203735ec3d754 | 1,168 | package org.flexdock.plaf.icons;
import com.formdev.flatlaf.extras.FlatSVGIcon;
import javax.swing.*;
public class FlexIcons {
public static FlatSVGIcon closeIcon;
public static FlatSVGIcon minimizeIcon;
public static FlatSVGIcon maximizeIcon;
public static FlatSVGIcon heartIcon;
public static F... | 34.352941 | 107 | 0.725171 |
6a7e308befa009a52cc8224a0069824e88573d1f | 1,854 | /* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.8
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ------------------------------... | 33.709091 | 174 | 0.696872 |
e14a187efd8be3ee32ccd45a552106a459f81f1d | 847 | package com.zoowii.jpa_utils.core;
import com.zoowii.jpa_utils.query.ParameterBindings;
import java.util.List;
/**
* 封装底层orm实现的Query对象
* Created by zoowii on 14-12-23.
*/
public interface IWrappedQuery {
IWrappedQuery setParameter(int index, Object value);
IWrappedQuery setParameter(String key, Object va... | 24.911765 | 99 | 0.766234 |
1beb389c86024b5311ca33fb3657954db748b407 | 1,482 | package coe618.dyna.models;
/**
*
* @author Josh Williams, Sander Fels-Leong and Philip Feldman
*/
public class PowerCard extends Card {
/**
* Constructor returns an instance of class with specified parameters.
* @param _power The power type that this provides.
* @param _setNumber the unique set... | 27.444444 | 113 | 0.621457 |
be7ef7cc862077569b95aa9d910b3ddd849bb751 | 5,739 | package info.guardianproject.keanuapp.ui.widgets;
import android.content.Context;
import android.database.Cursor;
import android.net.Uri;
import android.util.Log;
import com.google.android.exoplayer2.ExoPlayerFactory;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.android.exoplayer2.extractor... | 40.415493 | 153 | 0.626764 |
f41a8551200d489569a620c3fd5fb7275b02bc07 | 1,302 |
package udmi.schema;
import javax.annotation.processing.Generated;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Point Pointset Config
* <p>
*
*
*/
@JsonInclude(JsonInclude.Include.NO... | 26.04 | 190 | 0.640553 |
efe8339a245d98095b38e1623a5a57b341589f59 | 400 | package com.feth.play.module.pa.exceptions;
public class AccessTokenException extends AuthException {
/**
*
*/
private static final long serialVersionUID = 1L;
public AccessTokenException(final String message, final Throwable cause) {
super(message, cause);
}
public AccessTokenException(final String mes... | 17.391304 | 75 | 0.735 |
e772f156617433cc5edf8f029f0864e5e367e7db | 804 | package com.general.purpose.user.projection;
import java.util.UUID;
import com.general.purpose.user.model.Role;
import com.general.purpose.user.model.User;
import com.prperiscal.spring.resolver.projection.base.Projection;
import lombok.Data;
/**
* <p>A {@link Projection} for an {@link User} resource containing the ... | 25.935484 | 87 | 0.731343 |
2acfff3ad279dd16cacb766f3e336544afee6bd0 | 6,005 | /*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | 35.532544 | 119 | 0.530891 |
213bdd676a98e14ad7700c157e6ad0ea4be8064b | 337 | // Copyright (c) Philipp Wagner. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
package de.bytefish.sqlmapper.mapping;
import java.sql.ResultSet;
public interface IPropertyMapping<TEntity> {
void map(final TEntity entity, final ResultSe... | 25.923077 | 101 | 0.777448 |
f561b8a0445d8bf3c3d1595631361b2be5a86141 | 296 | package lec01b;
public class VariableUsage {
public static void main(String[] args) {
int x;//declare declaration /define/definition
x = 3;//initialize initialization
System.out.println(x + 1);//Reference
int y = 0;
System.out.println(x + y);
}
}
| 24.666667 | 54 | 0.611486 |
117e5e508c76395664925c64e2b6680801a762bb | 165 | package com.dinaraparanid.prima;
public final class Main {
public static final void main(final String[] args) {
Program.getInstance().start();
}
}
| 18.333333 | 56 | 0.672727 |
cc2513f51d4ade7d4b58f659adcd72f57521f889 | 20,697 | /*! ********************************************************************
*
* Copyright (c) 2018-2022, Fisherlea Systems
*
* Licensed under the MIT license. See the LICENSE file in the root
* directory for more details.
*
***********************************************************************/
package com.fisher... | 42.325153 | 150 | 0.556941 |
fd615ac6eb7c51ac192f681b11fa00830287d710 | 1,501 | package net.martinprobson.jobrunner.sparkjartask;
import com.google.inject.assistedinject.Assisted;
import com.google.inject.assistedinject.AssistedInject;
import com.google.inject.name.Named;
import com.typesafe.config.Config;
import net.martinprobson.jobrunner.common.BaseTask;
import net.martinprobson.jobrunner.comm... | 34.113636 | 95 | 0.676216 |
caa2b94677630ee8957644627a529856bae84a97 | 1,964 | package ai;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import l2f.commons.util.Rnd;
import l2f.gameserver.ai.CtrlEvent;
import l2f.gameserver.ai.Fighter;
import l2f.gameserver.data.xml.holder.NpcHolder;
import l2f.gameserver.model.Creature;
import l2f.gameserver.model.instances.MonsterInstance;
import l... | 28.463768 | 96 | 0.743381 |
ae1da46fab7a7153be91642f3e1cfc2c0bfddd10 | 20,536 | /*
* JBoss, Home of Professional Open Source
* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may ... | 32.545166 | 165 | 0.749805 |
d2be18f15f1007e45befa55cca22b260536b9536 | 610 | package etestyonline.repository;
import etestyonline.model.OrgUnit;
import etestyonline.model.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import java.util.List;
public interface OrgUnitReposito... | 35.882353 | 77 | 0.819672 |
9f81f342799429d110b1af40050af0c4d6541046 | 2,116 | /*
* 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 ... | 27.842105 | 117 | 0.730151 |
363d1ce817ac914f5db61d41deec9a79c0cf760f | 465 | package com.bechtle.cougar.graph.domain.services.handler;
import com.bechtle.cougar.graph.domain.services.EntityServices;
import com.bechtle.cougar.graph.repository.EntityStore;
import com.bechtle.cougar.graph.domain.model.wrapper.AbstractModel;
import reactor.core.publisher.Mono;
import java.util.Map;
public interf... | 33.214286 | 125 | 0.821505 |
13e25e159355abfc66e0dd218850a7248aac3dcd | 764 | package me.alexisevelyn.crewmate.enums;
public enum DisconnectReason {
NONE((byte) 0x00),
GAME_FULL((byte) 0x01),
GAME_STARTED((byte) 0x02),
GAME_NOT_FOUND((byte) 0x03),
LEGACY_CUSTOM((byte) 0x04),
OUTDATED_CLIENT((byte) 0x05),
BANNED_FROM_ROOM((byte) 0x06),
KICKED_FROM_ROOM((byte) 0x07),
CUSTOM((byte) 0x08)... | 24.645161 | 75 | 0.73822 |
4df21307fa18dd1f297de8eded73a0162ed7b99c | 2,845 | /**
* 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 under ... | 34.695122 | 118 | 0.763445 |
8b1591815afb4b26337b6b239849a1a439519a21 | 5,330 | package com.dynatrace.diagnostics.launcher.functionality;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.eclipse.core.runtime.CoreException;
i... | 40.075188 | 154 | 0.791557 |
e4f1120904ff7cf7c44c5905391657b05a940db9 | 11,709 | package io.lenar.easy.log.support.signature;
import io.lenar.easy.log.annotations.LogIt;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.reflect.MethodSignature;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.Arrays;
import java.util.HashMap;
import java.util... | 40.375862 | 138 | 0.630284 |
8fa3205ff9679abdd31c7dbd48b1267c4892fa13 | 1,266 | package unitTest;
import static org.junit.Assert.*;
import java.util.ArrayList;
import org.junit.Before;
import org.junit.Test;
import model.*;
public class PolynomialTest {
Expression term;
Expression pTerm;
Variable x;
Variable y;
Variable z;
@Before
public void setUp() throws Exception {
x = new Varia... | 23.018182 | 101 | 0.654818 |
61a6e77e071804dba45fc2c20279a8a93bf68dd4 | 20,896 | package lumien.randomthings.util.client;
import java.awt.Color;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;
import java.util.Set;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import org.l... | 50.230769 | 194 | 0.614185 |
b8fcba23abde1a751d30eb3a67c46e96de4a8bd9 | 513 | package org.platformlayer.ops.backups;
import javax.inject.Singleton;
import org.slf4j.*;
import org.platformlayer.core.model.ItemBase;
import org.platformlayer.ops.OpsException;
@Singleton
public class StubBackupContextFactory implements BackupContextFactory {
@SuppressWarnings("unused")
private static final Logg... | 27 | 91 | 0.822612 |
7b7774d9bed939ec34e206a58043600d78d49910 | 12,390 | /**
* Copyright (c) 2014, by the Authors: John E Lloyd (UBC)
*
* This software is freely available under a 2-clause BSD license. Please see
* the LICENSE file in the ArtiSynth distribution directory for details.
*/
package artisynth.core.gui;
import java.awt.Component;
import java.awt.Container;
import java.awt.D... | 33.852459 | 80 | 0.660856 |
ac99336b0063116d7dd547db400ef807a5f2b6c4 | 50,335 | package com.innohawk.dan.home;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.res.Configuration;
import android.graphics.Typeface;
import android.graphics.drawable.Drawable;
import android.net.Uri;
import android.os.Bundle;
impo... | 40.268 | 166 | 0.552399 |
8c65d22386977c8619e11af8a4275ac839f48a79 | 6,914 | /*
* Copyright 2009 Denys Pavlov, Igor Azarnyi
*
* 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 r... | 36.582011 | 146 | 0.584756 |
767f615d87d2f7bdc7b0c69afdd6cca34017246d | 40,971 | /*
* 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.860331 | 118 | 0.601181 |
b523760ac7569b30f89969a1aa078bb55a8334c9 | 9,058 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 19.606061 | 810 | 0.822919 |
69c44ddaec2ac1c3e590ef2ffd4988901fe6c93d | 879 | package com.yayandroid.locationmanager.constants;
import android.Manifest;
import com.google.android.gms.location.LocationRequest;
/**
* Created by Yahya Bayramoglu on 10/02/16.
*/
public class Default {
private static final int SECOND = 1000;
private static final int MINUTE = 60 * SECOND;
public sta... | 30.310345 | 97 | 0.741752 |
5abcf4ddf207b42c35023fe4d1b6e6705d8d116d | 3,923 | package com.example.popularmoviesapp;
import android.net.Uri;
import android.os.AsyncTask;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import org.json.JSONArray;
import org.json.JS... | 34.412281 | 123 | 0.604384 |
e815bec106d67a3020921dfeba89f9e4bec053f7 | 145 | package com.octo.android.robospice.utils;
public class CharEncoding {
public static final String UTF_8 = "UTF-8";
CharEncoding() {}
}
| 16.111111 | 47 | 0.703448 |
d29b10854f7470ebf307e2e940aac8ada2ad72a5 | 357 | // <copyright file="PutDataResult.java" company="RookAndPawn">
// Copyright (c) 2011 All Rights Reserved, http://www.rookandpawn.com/
package org.orgama.shared.action;
import java.io.Serializable;
/**
* base result responding to the put data action
* @author kguthrie
*/
public class PutDataResult<T extends Serial... | 22.3125 | 75 | 0.753501 |
acbcfcd407415c717884e454b8048eed667fb40a | 3,862 | package org.intermine.bio.ontology;
/*
* Copyright (C) 2002-2013 FlyMine
*
* This code may be freely distributed and modified under the
* terms of the GNU Lesser General Public Licence. This should
* be distributed with the code. See the LICENSE file for more
* information or http://www.gnu.org/copyleft/lesser... | 32.728814 | 95 | 0.589073 |
40f222989b2ce65e9fd7a71d11b800a1c2584301 | 23,031 | //$Id: SQLLoaderTest.java 11383 2007-04-02 15:34:02Z steve.ebersole@jboss.com $
package org.hibernate.test.legacy;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.junit.Test;
import org.hibernate.HibernateException;
import org.hibernate.Query;
import... | 30.914094 | 258 | 0.674439 |
70eb889385ef176a3d34497dbbc45e23a763d70f | 3,808 | package back_tracking;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
*
* @author exponential-e
* 백준 22939번: 쿠키 크루
*
* @see https://www.acmicpc.net/problem/22939
*
*/
public class Boj22939 {... | 26.262069 | 102 | 0.506303 |
7d8e48827a331fdf77208e350333e376b8e5d37a | 3,937 | /*
*
* 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"); ... | 28.323741 | 80 | 0.680975 |
b666b51bbe813bb61bba6d2c0c5fc486edd3146b | 5,961 | package org.apache.maven.it;
/*
* 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, Versio... | 43.195652 | 168 | 0.700721 |
5e0b7d949c1285cd97b4de043916f753b2107b66 | 4,914 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/aiplatform/v1/data_item.proto
package com.google.cloud.aiplatform.v1;
public final class DataItemProto {
private DataItemProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry... | 51.1875 | 101 | 0.750305 |
64dabdb8bef49707d6a631aa6e53c5c2446280c9 | 3,412 | /*
* MIT License
*
* Copyright (c) 2020-2021 Rostyslav Koval
*
* 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 use, c... | 37.911111 | 90 | 0.723329 |
56e1f83ec3f74a022c907dc8389ab8fa2c38c85f | 13,359 | /* Copyright (C) 2020 Christoph Theis */
package countermanager.liveticker.scripting;
import com.enterprisedt.net.ftp.FTPException;
import com.enterprisedt.net.ftp.FileTransferOutputStream;
import countermanager.driver.CounterData;
import countermanager.liveticker.Liveticker;
import countermanager.model.Counter... | 32.424757 | 178 | 0.542556 |
958d31c15447ed4f7bfe0debd184ce4745bb5fb0 | 9,380 | package com.example.kelimebulma;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.annotation.TargetApi;
import android.app.LoaderManager.LoaderCallbacks;
import android.content.Context;
import android.content.Intent;
import android.content.Loader;
import android.datab... | 33.862816 | 106 | 0.635821 |
525de20e1239926c090c2ca8ccfa3415ec996d0b | 691 | package frc.robot.sensors;
import edu.wpi.first.networktables.NetworkTable;
import edu.wpi.first.networktables.NetworkTableEntry;
import edu.wpi.first.networktables.NetworkTableInstance;
public class ShooterCamera {
private NetworkTable cameraTable;
public ShooterCamera(String camName) {
NetworkTableIn... | 38.388889 | 94 | 0.742402 |
1c49b0b2f35f0aa70fb91cbe68f9de2201048029 | 956 | package com.sakebook.android.library.reachability;
import android.animation.Animator;
public class HoverAnimationListener implements Animator.AnimatorListener{
private boolean mHoverLock;
private boolean mIsShown;
public HoverAnimationListener(boolean hoverLock) {
this.mHoverLock = hoverLock;
... | 21.244444 | 73 | 0.67887 |
54ffe2385628e17804a9d9b114088ad7377fb709 | 765 | package papabench.core.fbw.devices.impl;
import papabench.core.commons.data.RadioCommands;
import papabench.core.commons.data.impl.RadioCommandsImpl;
import papabench.core.fbw.devices.ServosController;
import papabench.core.utils.LogUtils;
/**
* Simple servos controller.
*
* @author Michal Malohlava
*
*/
public... | 23.90625 | 82 | 0.768627 |
8ccedfb9d4c8310c0d0dc129c10b9fde98390359 | 5,402 | package org.ospic.inventory.beds.service;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.ospic.inventory.beds.data.BedData;
import org.ospic.inventory.beds.domains.Bed;
import org.ospic.inventory.beds.repository.BedRepository;
import org.ospic.inventory.wards.domain.Ward;
import org.ospi... | 39.720588 | 137 | 0.668086 |
47b37d7c3afc020e0cb41aa184c74a1d7e38479c | 1,048 | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)... | 29.942857 | 86 | 0.525763 |
e6ee9a20d68ff69b45957f2769b996036d459073 | 7,038 | /*
* This file is part of project Orion, licensed under the MIT License (MIT).
*
* Copyright (c) 2017-2019 Mark Vainomaa <mikroskeem@mikroskeem.eu>
* Copyright (c) Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (... | 36.466321 | 154 | 0.676897 |
9edb0261707c894c0cacc57149b0e6a2ebb48845 | 19,273 | /*
* Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... | 28.722802 | 83 | 0.497017 |
80ccfc2bffc146af24c029e94714536b1e7c7349 | 1,019 | package com.github.smartenergysystem;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
import com.github.smartenergysystem.simulation.PhotovoltaicPanel;
public class TestPhotovoltaicPanel {
@Test
public void testPanel() {
PhotovoltaicPanel panel = new PhotovoltaicPanel();
//Our test data ... | 26.128205 | 65 | 0.769382 |
4d7108c760370d79523651d3ade8f59ab373ffbd | 346 | package es.unizar.murcy.exceptions.user.validation;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;
@ResponseStatus(code = HttpStatus.BAD_REQUEST, reason = "already exists other user with that email")
public class UserBadRequestEmailAlreadyExistsException ext... | 38.444444 | 100 | 0.843931 |
de52a1102e08565cd73a7219340b014e772412e1 | 31,607 | /*
* This file is part of ClassGraph.
*
* Author: Luke Hutchison
*
* Hosted at: https://github.com/classgraph/classgraph
*
* --
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Luke Hutchison
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
*... | 48.851623 | 116 | 0.553801 |
8e31418fef4c8acc4779ddc1c5520dca8e0d4f93 | 2,196 | package de.fanta.stats;
import com.terraformersmc.modmenu.api.ConfigScreenFactory;
import com.terraformersmc.modmenu.api.ModMenuApi;
import de.fanta.stats.client.StatsClient;
import me.shedaniel.clothconfig2.api.ConfigBuilder;
import me.shedaniel.clothconfig2.api.ConfigCategory;
import me.shedaniel.clothconfig2.api.Co... | 56.307692 | 257 | 0.730874 |
977e0995a44799ee4d8e1b4bb0effa4cd2536f37 | 926 | package edu.cs4730.contentprodemo.data;
import android.database.Cursor;
import android.database.MatrixCursor;
/**
* * A very simple data class that return a cursors with the square of the values.
*/
public class Square {
String[] Column;
public Square() {
Column = new String[] { "number", "square"}... | 27.235294 | 82 | 0.631749 |
fc7312272a473b82c2f329098713415767512b57 | 7,080 | //
// ========================================================================
// Copyright (c) 1995-2014 Mort Bay Consulting Pty. Ltd.
// ------------------------------------------------------------------------
// All rights reserved. This program and the accompanying materials
// are made available under the ter... | 33.084112 | 116 | 0.463559 |
a2cbba9b7e54117952ad1ca9651b9665d0c61a71 | 577 | package com.mixbook.springmvc.DAO;
import java.util.List;
import org.hibernate.SQLQuery;
import org.hibernate.type.StringType;
import org.springframework.stereotype.Repository;
import com.mixbook.springmvc.Models.Style;
@Repository("styleDao")
public class StyleDaoImpl extends AbstractDao<Integer, Style> implements... | 26.227273 | 83 | 0.779896 |
60f7c6043144322dcaf8edc3b201b9d61f74cabb | 676 | package com.flow.demo.common.online.dao;
import com.flow.demo.common.core.base.dao.BaseDaoMapper;
import com.flow.demo.common.online.model.OnlineColumn;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 字段数据数据操作访问接口。
*
* @author Jerry
* @date 2021-06-06
*/
public interface OnlineColumnMap... | 25.037037 | 108 | 0.698225 |
8f38330239bab94224bceb1a5d229088e55cc0d3 | 2,520 | /*
* Morgan Stanley makes this available to you 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.
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
*
* Unless required... | 35.492958 | 119 | 0.744444 |
d37020740c90330cbd06e85d3e7e179b9b143bb0 | 446 | package es.upm.miw.apaw_practice.domain.models.restaurant;
import java.math.BigDecimal;
public class TreeTableLeaf implements TreeTable{
private final Table table;
public TreeTableLeaf(Table table) {
this.table = table;
}
@Override
public BigDecimal totalPrice() {
return this.tab... | 20.272727 | 58 | 0.674888 |
4f64f268158e7a8cd07a42c9023d6982f22a7bc4 | 128 | package com.isaacbrodsky.freeze2.elements;
public class BlinkRay extends ElementImpl {
// Both are implemented the same!
}
| 21.333333 | 43 | 0.773438 |
bc965e44a25db1c806da0e98056d823354ac375a | 2,201 | package org.vafer.jmx;
import java.lang.instrument.Instrumentation;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
/*
* java -javaagent:/path/jmx2any.jar=/etc/jmx2any.yml yourmainclass
*/
public final class Agent {
private... | 31.898551 | 83 | 0.57065 |
344af2d28ed4a792e27bf63259ab088c539e4ada | 511 | package com.trent.admin.service.impl;
import com.trent.admin.pojo.SalaryAdjust;
import com.trent.admin.mapper.SalaryAdjustMapper;
import com.trent.admin.service.ISalaryAdjustService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
/**
* <p>
* 服务实现类... | 24.333333 | 124 | 0.792564 |
348e8664de212c69d85a17b7e1ad8072d7b59909 | 1,109 | package com.sarbr.plugin.app.fastDownload.extractor;
import org.springframework.http.client.ClientHttpResponse;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
public class FileProgressExtractor implements DownloadProgressExtractor<File> {
/**
* ... | 25.790698 | 107 | 0.655546 |
dc90478faf6b8d481a68b11d82146052c5b3edb3 | 1,938 | package net.talaatharb.samples.securedcrud.config;
import java.util.ArrayList;
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties;
import org.springframework.boot.autoconfigure.security.oauth2.client.OAuth2ClientProperties.Provider;
import org.springframework.boot.autoconfigur... | 38 | 105 | 0.839525 |
60d2136b4d20a4a244edcc7057388c66c88e745c | 1,283 | /*
* Copyright 2020 (c) Tim Langhammer
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 31.292683 | 120 | 0.709275 |
d965bb788c014d40be357f8e75f96ce3771af90e | 5,704 | begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1
begin_comment
comment|/* * 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 ... | 17.880878 | 810 | 0.815568 |
a43f9dabbd92923574eb40043b2c03e72f5c05df | 2,650 | /*
* #%L
* BroadleafCommerce Framework Web
* %%
* Copyright (C) 2009 - 2014 Broadleaf Commerce
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... | 26.767677 | 112 | 0.687925 |
13c809db650a1f0e4ca8cd771914c3d4dacad279 | 3,749 | package org.hisp.dhis.amqp.config;
/*
* Copyright (c) 2004-2018, University of Oslo
* 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 co... | 29.289063 | 103 | 0.707655 |
f7a823a8b1372f4361bc9a74191fd56847e309f5 | 6,108 | package com.tom.logisticsbridge;
import appeng.api.parts.IPart;
import appeng.api.parts.IPartHost;
import appeng.api.util.AEPartLocation;
import com.tom.logisticsbridge.gui.GuiCraftingManager;
import com.tom.logisticsbridge.gui.GuiCraftingManagerU;
import com.tom.logisticsbridge.gui.GuiPackage;
import com.tom.logisti... | 39.921569 | 102 | 0.601997 |
b3e2bc4187e6b6c5c8f7907a06003479459527a2 | 2,475 | /*
* 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
* distribut... | 32.565789 | 130 | 0.716768 |
b0b2cad437bb7714c390ba6667ac0dcb92607a99 | 6,169 | package osm.surveyor.osm;
import java.io.File;
import java.io.PrintStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.JAXB;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootEle... | 22.848148 | 155 | 0.602691 |
bf80d86a2449e78988b997d61ee979af734cd2f6 | 1,014 | package net.nemerosa.ontrack.extension.issues;
import net.nemerosa.ontrack.extension.issues.model.ConfiguredIssueService;
import net.nemerosa.ontrack.extension.issues.model.IssueServiceConfigurationRepresentation;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.List;
import ja... | 31.6875 | 97 | 0.771203 |
35437c9ceabd763a4d1d2c29f149ec907f6e6646 | 1,801 | package com.wudagezhandui.shixun.xianyu.pojo.query;
import com.wudagezhandui.shixun.xianyu.pojo.do0.IdleDO;
import java.math.BigDecimal;
public class SearchQuery {
private Integer pageNum = 1;
private Integer pageSize = 10;
private IdleDO.Status status;
/**
* 最大价格
*/
private BigDeci... | 20.94186 | 118 | 0.579123 |
517a0396d2dc17936e204dfba8292bee09d6e17a | 1,415 | package figurasgeometricas.perimetro;
import figurasgeometricas.FiguraBase;
/**
* IPEC Santo Domingo de Heredia
* Informática en Desarrollo de Software
* Proyecto Figuras Geométricas
* Date: 2021-abr
* @author Jesús Alberto Moscoso Agüero
* @author J. Mosro - jmosro.14@gmail.com
* @version 1
*/
... | 28.3 | 99 | 0.690459 |
33e4db427eb10c3087a00a5eef78683b7444078f | 12,260 | /**
* Licensed to jclouds, Inc. (jclouds) under one or more
* contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. jclouds licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use ... | 32.780749 | 247 | 0.649021 |
8f381af80764f7bf3d01be79da7833e06a4a267b | 8,073 | package gov.cms.dpc.attribution.resources.v1;
import com.codahale.metrics.annotation.ExceptionMetered;
import com.codahale.metrics.annotation.Timed;
import gov.cms.dpc.attribution.DPCAttributionConfiguration;
import gov.cms.dpc.attribution.jdbi.ProviderDAO;
import gov.cms.dpc.attribution.resources.AbstractPractitioner... | 47.210526 | 217 | 0.694909 |
9fff88cc83b83a5608d992e4a1f22131f7157cd5 | 5,422 | /**
* 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... | 25.336449 | 89 | 0.619882 |
5d0d31e37ad26040959c72d22c8782658c437e9d | 1,176 | /**********************************************************************
* Copyright (c) 2002, 2009 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 avai... | 35.636364 | 81 | 0.643707 |
e524822f027ac47ca4151d764ffe1062367cc13b | 989 | package com.imooc.ad.dao;
import com.imooc.ad.entity.AdPlan;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
/**
* @Description:
* @Author: ChengChuanQiang
* @Date: 2019/5/4 9:59
*/
public interface AdPlanRepository extends JpaRepository<AdPlan, Long> {
/**
* 根据id和用... | 19.392157 | 71 | 0.610718 |
426acbf3f005083ab2efb5127f960f891318c091 | 336 | package com.cloudata.datastore;
import java.io.IOException;
public class DataStoreException extends IOException {
public DataStoreException(String message) {
super(message);
}
public DataStoreException(String message, Exception cause) {
super(message, cause);
}
private static final long serialVers... | 19.764706 | 62 | 0.755952 |
e33a19e5e00460468651d542ba08bee890b680bd | 24,811 | /*
* Copyright (c) 2015-2022 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.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.ap... | 27.32489 | 119 | 0.465922 |
c275656fd90db5f54579e7779ba3326a2cc19ba4 | 511 | package net.nemerosa.ontrack.model.structure;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* Result of the synchronisation of branches.
*/
@Data
public class BranchTemplateSyncResults {
public static BranchTemplateSyncResults empty() {
return new BranchTemplateSyncResults... | 20.44 | 78 | 0.731898 |
bf1262cdf815bc134d722a09031f32bde1c0880c | 3,063 | import java.io.*;
import java.util.*;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import net.simplace.sim.model.FWSimComponent;
import net.simplace.sim.util.FWSimVarMap;
import net.simplace.sim.util.FWSimVariable;
import net.simpl... | 41.391892 | 263 | 0.698661 |
d57f8c2814fb82f5bd38757ac2613c5780b137e6 | 2,079 | /*
* Copyright 2015 The SageTV Authors. 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 ap... | 35.237288 | 83 | 0.703223 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.