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 |
|---|---|---|---|---|---|
1a79fde48d67009f065a806bcb113b9c44039cfe | 6,089 | /*
* Copyright 2021 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 36.461078 | 118 | 0.773854 |
5f92abc9872594b3141ff4fef480a5283d25a473 | 5,741 | package com.redshift.rs_vapourtraining;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.view.View;
import android.view.Menu;
import android.widget.TextView;
import com.google.android.material.snackbar.Snackbar;
import com.google.android.m... | 38.530201 | 126 | 0.691343 |
046d2323291441502a886a42f836912fe968f71b | 594 | package com.coutemeier.utils;
import java.util.Collection;
public enum CollectionsUtils {
INSTANCE;
public static final String asString(Collection<? extends String> collection) {
if (isEmpty(collection)) {
return "";
}
final StringBuilder asList = new StringBuilder(64);
... | 27 | 82 | 0.617845 |
36daa1de920368cab3f98a913607649f9a46d210 | 12,759 | package pl.polidea.treeview;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
import android.database.DataSetObserver;
import android.util.Log;
/**
* In-memory man... | 33.488189 | 95 | 0.601536 |
ac0f032e3391b261c17f2113f607a2713fc3a6ff | 1,164 | package com.feizhang.activityresult.sample;
import android.annotation.SuppressLint;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.feizhang.activityresult.ActivityResult;
import com.feizhang.activityresult.InterceptWith;
import com.feizhang.activi... | 32.333333 | 71 | 0.70189 |
644ab076d11ca0f72da0c3579acfa4d8f393dbf7 | 4,610 | package app.domains.models;
import app.validation.Age;
import app.validation.Email;
import app.validation.Password;
import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
@Entity
@Table(name = "users")
public class User implements... | 23.762887 | 115 | 0.60564 |
cceb739c48bec615c6c93e08c04cfc185bd032c6 | 356 | package org.planet_sl.apimigration.benchmark.anno;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTI... | 27.384615 | 73 | 0.831461 |
02f27060b0d82ec1f7357cb289cf137e82291878 | 1,037 | package gui.controllers;
import java.util.Observer;
import org.apache.log4j.AppenderSkeleton;
import org.apache.log4j.spi.LoggingEvent;
/**
* The Class ObservableAppender.
*/
public class ObservableAppender extends AppenderSkeleton {
/** The observable delegate. */
private final ObservableDelegate observableDe... | 21.163265 | 84 | 0.718419 |
466498f4811cd6242d0eb7f51526aa95a6bad840 | 3,547 | package sonar.calculator.mod.client.renderers;
import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.block.model.ItemCameraTransforms.TransformType;
import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer;
import net.minecraft... | 41.729412 | 151 | 0.724274 |
f964a1d99625993f5abaca6db194d46a023d895d | 247 | package com.bitcola.exchange.ctc.mapper;
import com.bitcola.ctc.ColaCtcFee;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;
@Repository
public interface ColaCtcFeeMapper extends Mapper<ColaCtcFee> {
}
| 20.583333 | 62 | 0.825911 |
11fd242a33d3005608fede929f0f279907ae851e | 8,028 | package pinacolada.resources.pcl;
import basemod.BaseMod;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.helpers.GameDictionary;
import com.meg... | 34.016949 | 119 | 0.665919 |
6cd4e86898f76d9162c6a8b70e215670860f7ce1 | 221 | package com.service.demo.dao;
import dao.entity.Dept;
import java.util.List;
/**
* @author Crysmart
* @date 2020/8/17 17:06
*/
public interface DeptMapper {
List<Dept> getList();
Dept findOne(Integer id);
}
| 14.733333 | 29 | 0.678733 |
816702287d06896da6c9cb29af59399db05bd2d8 | 2,434 | /*
* Copyright (C) 2014, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The Java Pathfinder core (jpf-core) platform is licensed under the
* Apache License, Version 2.0 (the "License"); you may not use this file exce... | 25.354167 | 97 | 0.672966 |
6697b653704e7c950b7d1e6d89bc7e2e36aa38cb | 391 | package com.housingcentre.repository;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;
import com.housingcentre.entities.Form5;
@Component
public interface FormsRepository5
extends CrudRepository<Form5, Integer>{
List<Fo... | 20.578947 | 58 | 0.790281 |
084431dbe814809fb194355499e8a3ec68b42217 | 184 | package com.zsw.mybatis.config;
/**
* @author ZhangShaowei on 2019/4/24 10:48
**/
//@Configuration
//@MapperScan("com.zsw.persistemce.mapper")
public class MyBatisConfiguration {
}
| 18.4 | 43 | 0.728261 |
91c5680c47e21d89953c658556001173bca703af | 1,842 | package com.polidea.rxandroidble.internal.connection;
import android.bluetooth.BluetoothDevice;
import com.polidea.rxandroidble.exceptions.BleDisconnectedException;
import com.polidea.rxandroidble.internal.operations.DisconnectOperation;
import com.polidea.rxandroidble.internal.serialization.ClientOperationQueue;
imp... | 38.375 | 121 | 0.763301 |
d4062d235870729c42318787123b4350697d607e | 89,575 | /*
* Copyright 2015 OpenMarket Ltd
* Copyright 2017 Vector Creations Ltd
* Copyright 2018 New Vector Ltd
*
* 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... | 44.989955 | 160 | 0.560648 |
db77a74b6159c6e45e113a92ec70b3b1044ba5ce | 1,084 | package org.maptalks.geojson;
import java.util.Map;
public class Feature extends GeoJSON {
private Object id;
private Geometry geometry;
private Map<String, Object> properties;
public Feature(
Geometry geometry,
Map<String,Object> properties) {
this(null, geometry,... | 20.074074 | 63 | 0.589483 |
f9b14e43457591e9605e81726b79b3d11e318b54 | 636 | package com.dzyoba.expr;
import junit.framework.TestCase;
public class NumberTest extends TestCase {
public void testSimple() {
Number o = new Number("123");
// Number internal representation is double
assertEquals("123.0", o.toString());
}
public void testDouble() {
Numbe... | 23.555556 | 51 | 0.577044 |
961e252632f55ab58740d8daa7383565af1880ce | 306 | package com.cip.crane.restlet.resource.impl;
import com.cip.crane.restlet.resource.IHealthCheckResource;
import org.restlet.resource.ServerResource;
public class HealthCheckResource extends ServerResource implements IHealthCheckResource {
@Override
public String healthCheck() {
return "ok";
}
}
| 21.857143 | 89 | 0.80719 |
e8da928d39976b13e769b569a853a8ad95405f37 | 2,427 | /*
* Copyright (C) 2015 - present by OpenGamma Inc. and the OpenGamma group of companies
*
* Please see distribution for license.
*/
package com.opengamma.strata.basics.currency;
/**
* A provider of FX rates.
* <p>
* This provides the ability to obtain an FX rate. The interface does not mandate when the
* rate... | 38.52381 | 115 | 0.720231 |
14ba568ef86e041a2ceabfc4153e3bcbc644a24f | 3,457 | /*
* 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 Transaction;
import java.io.*;
import java.util.*;
import Main.*;
import java.util.logging.*;
/**
*
* @author fatma
*/
publ... | 29.801724 | 82 | 0.547585 |
60e3e3db71458b73f174a9f67ce919d3b90c9f63 | 4,442 | package com.bumptech.glide.load.resource.bitmap;
import static com.google.common.truth.Truth.assertThat;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import android.graphics.Bitmap;
import com.b... | 28.113924 | 94 | 0.745835 |
55cffae0c91950296acc2f10efa8abe80ec39ff8 | 1,606 | package com.peruncs.gwt.tabulator;
import jsinterop.annotations.JsFunction;
import jsinterop.annotations.JsOverlay;
import jsinterop.annotations.JsPackage;
import jsinterop.annotations.JsType;
import jsinterop.base.Js;
/**
* The movableRowsSender option should be set on the sending table, and sets the action that sh... | 26.327869 | 108 | 0.663761 |
2b5ec2a6c0fc750d6ffd3c4dafedb4cb19f903c8 | 13,000 | package com.mapbox.services.android.navigation.v5.navigation;
import android.location.Location;
import com.mapbox.services.android.navigation.BuildConfig;
import com.mapbox.services.android.navigation.v5.navigation.metrics.RerouteEvent;
import com.mapbox.services.android.navigation.v5.navigation.metrics.SessionState;... | 59.090909 | 114 | 0.802077 |
d934be714805cf07e26f2f9ce7038cf6f18fa9d2 | 5,338 | package javamodularinput;
import com.splunk.modularinput.Argument;
import com.splunk.modularinput.Event;
import com.splunk.modularinput.EventWriter;
import com.splunk.modularinput.InputDefinition;
import com.splunk.modularinput.MalformedDataException;
import com.splunk.modularinput.Scheme;
import com.splunk.modularinp... | 37.858156 | 109 | 0.62233 |
7172fbbd535f03ce7be8b497e385fcf175f28381 | 259 | package org.fullnodej.data;
import lombok.Data;
/**P2SH address and hex-encoded redeem script*/
@Data
public class RedeemScript {
/**P2SH address for this multisig redeem script*/
String address;
/**hex multisig redeem script*/
String redeemScript;
}
| 17.266667 | 50 | 0.749035 |
4658f6f9939cdaaede8ec997769263d6592bb025 | 5,011 | /*******************************************************************************
* Copyright 2009 OpenSHA.org in partnership with
* the Southern California Earthquake Center (SCEC, http://www.scec.org)
* at the University of Southern California and the UnitedStates Geological
* Survey (USGS; http://www.usgs.gov)
*... | 32.967105 | 91 | 0.628218 |
d74ea3de20f812e74b7f643672eb26c1faa91bd7 | 558 | package com.baoyongan.java.eg.base.error_ch;
public class ReturnValue {
public static void main(String[] args) {
System.out.println(decision());
}
private static boolean decision() {
try {
return true;
}finally {
return false;
}
/* boolean ... | 19.241379 | 50 | 0.507168 |
b770755bfaa1598a4e5ac43d58242f545169bd08 | 197 | package com.epita.domain;
import org.jsoup.nodes.Document;
public class RawDocument {
public final Document doc;
public RawDocument(final Document doc) {
this.doc = doc;
}
}
| 16.416667 | 44 | 0.685279 |
a1bbafea1cf38433892f8b55f260fe6fa61fff1b | 3,596 | import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertArrayEquals;
/**
* Tests to test your Heap and Priority Q... | 24.972222 | 79 | 0.56535 |
cdcc8579b5333c851baf3a98de7e4a28cd4f6abe | 2,289 | package org.texastorque.torquelib.component;
import edu.wpi.first.wpilibj.CounterBase;
import edu.wpi.first.wpilibj.Encoder;
import edu.wpi.first.wpilibj.Timer;
/**
* Class for a FRC encoder.
*
* @author Matthew
*/
public class TorqueEncoder extends Encoder {
private double averageRate;
private double ac... | 29.346154 | 119 | 0.668851 |
f51bd9ec22cd27bb6c480a56c6f716afb8f2f579 | 1,003 | package com.sequenceiq.cloudbreak.cloud.azure;
public class AzureImage {
private String id;
private String name;
private boolean alreadyExists;
public AzureImage(String id, String name, boolean alreadyExists) {
this.id = id;
this.name = name;
this.alreadyExists = alreadyExis... | 20.06 | 70 | 0.552343 |
0e0dcd4cd0d006dd78fbf67c718e1a7d8d7e52be | 79 | package org.ungs.gorgory.enums;
public enum Language {
JAVA,
PYTHON
}
| 11.285714 | 31 | 0.683544 |
66e9fb3abf13572190f96ab26eb1d18fc54ca8b5 | 1,431 | package com.sp.admin.controller;
import com.alibaba.fastjson.JSONObject;
import com.sp.admin.commonutil.redis.RedisUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.core.env.Environment;
import org.springframework.vali... | 28.058824 | 97 | 0.67086 |
9c040d1d6a3e9f7d2087acc67f91d705a16f5710 | 6,574 | /*
* Copyright 2013 APPNEXUS 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 applicabl... | 36.726257 | 121 | 0.673867 |
8d544ca809a9fdfef4360a1098b46f42797c436f | 7,759 | package io.eluv.format.base58;
import java.io.*;
import java.util.UUID;
import io.eluv.os.OSInfo;
import jnr.ffi.LibraryLoader;
import jnr.ffi.provider.FFIProvider;
/**
* The library files are automatically extracted from this project's package (JAR).
*/
public class NativeB58Loader<T> {
private final St... | 34.484444 | 103 | 0.564892 |
dd0b1e09b50d75fb213bd3097dc71d8425392602 | 1,943 | /**
* Copyright 2010-2020 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 36.660377 | 108 | 0.783839 |
952578295c8a89f22bd971c4c242be237c303706 | 384 | package patternTemplate.optimized;
public class Tea extends CaffeineBeverage {
@Override
void prepareRecipe() {
boilWater();
steepTeaBag();
pourInCup();
addLemon();
}
private void addLemon() {
System.out.println("Adding Lemon");
}
private void steepTea... | 18.285714 | 47 | 0.59375 |
3a28fcb9a070fafbda04c60baee3305d9a1af177 | 583 | package com.example.android.interpolatorplayground.custom;
import android.view.animation.Interpolator;
/**
* EaseIn as in:
* https://github.com/PrimaryFeather/Sparrow-Framework/blob/9de0e1f03c9d3fc532c4f7d6f60114387adb786e/sparrow/src/Classes/SPTransitions.m#L38
*
* @author Piotr Zawadzki
*/
public class EaseInI... | 26.5 | 140 | 0.754717 |
db9959fb31b639ae939620b188193e8ee2717754 | 1,541 | package com.w00tmast3r.skquery.elements.effects;
import ch.njol.skript.lang.Effect;
import ch.njol.skript.lang.Expression;
import ch.njol.skript.lang.SkriptParser;
import ch.njol.util.Kleenean;
import com.w00tmast3r.skquery.api.Description;
import com.w00tmast3r.skquery.api.Examples;
import com.w00tmast3r.skquery.api... | 33.5 | 118 | 0.736535 |
bf5fc7a570e50d12d84348ed09f157c1ceb6ab74 | 365 | /*
* Copyright (c) 2009 University of Tartu
*/
package org.qsardb.model;
import javax.xml.bind.annotation.*;
@XmlType (
name = "ParameterRegistry"
)
abstract
public class ParameterRegistry <R extends ParameterRegistry<R, C>, C extends Parameter<R, C>> extends ContainerRegistry<R, C> {
ParameterRegistry(){
}
P... | 18.25 | 127 | 0.723288 |
1915b3bd18b4ab58569cfb55ef3abac1190c537a | 6,147 | /**
* Copyright © 2018 Mayo Clinic (RSTKNOWLEDGEMGMT@mayo.edu)
*
* 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 ... | 26.157447 | 89 | 0.623882 |
f45699109eebb2e4055289abd82dbf3067846aab | 546 | package com.huazie.frame.core.base.cfgdata.dao.impl;
import com.huazie.frame.core.base.cfgdata.dao.interfaces.IFleaJerseyResServiceLogDAO;
import com.huazie.frame.core.base.cfgdata.entity.FleaJerseyResServiceLog;
import org.springframework.stereotype.Repository;
/**
* <p> Flea Jersey资源服务调用日志DAO层实现类 </p>
*
* @autho... | 34.125 | 135 | 0.813187 |
04246efc378cdbadb8daeb3bb195ad802e8fbf55 | 1,715 |
class encrypt {
public encrypt(String receivedString, Integer encryptKey) {
this.receivedString = receivedString;
this.encryptKey = encryptKey;
}
private String receivedString;
public String getReceivedString() {
return receivedString;
}
public void setReceivedString(String receivedString) ... | 26.384615 | 73 | 0.627405 |
833a20b2b5317005c997fe2296dbcf016f68ade7 | 2,343 | /*
* Copyright (C) 2016 Peter Gregus for GravityBox Project (C3C076@xda)
* 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
*
* ... | 36.609375 | 409 | 0.726419 |
007b48ba4ac249367ecb20d6c9fd3d54a0e6aa30 | 2,074 | package leetcode;
import java.math.BigInteger;
/**
* https://leetcode.com/problems/additive-number/
*/
public class Problem306 {
public boolean isAdditiveNumber(String num) {
for (int i = 0; i < num.length(); i++) {
boolean result = isAdditiveNumber(num, i + 1);
if (result) {
... | 29.211268 | 87 | 0.472517 |
d7d2ac7ee706c780f7b128f82bd11a672a0fa845 | 8,753 | /*******************************************************************************
* Copyright (c) 2021 Gregory Mazo
*
* 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
*
* ... | 31.149466 | 140 | 0.694962 |
318d381154f37a66f2375b93b7f0247ef70c8d7a | 1,008 | // Copyright 2000-2020 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.internal.statistic.uploader.events;
import org.jetbrains.annotations.Nullable;
import java.util.Objects;
public class ExternalUploadFinishedEvent extends E... | 28.8 | 140 | 0.732143 |
3bbca43b7ea09a646bac0c8091859935679d054d | 160 | package org.immunophenotype.web.common;
public enum ZygosityType {
Het,
Hom,
Hemi,
Mutant;
public String getName(){
return this.toString();
}
}
| 10 | 39 | 0.68125 |
8c87538dd2eab8f3f9320c8623aa3b233dc905a1 | 1,341 | package com.tr.example.tests;
import com.tr.example.model.GroupData;
import org.testng.Assert;
import org.testng.annotations.Test;
public class GroupModificationTest extends TestBase {
@Test
public void testGroupModification(){
//methods openSite & login are located in parent class TestBase
a... | 30.477273 | 90 | 0.616704 |
06509f9c0ad6e300c586fc95a691825eafe36a86 | 3,256 | package org.apache.mesos.elasticsearch.executor;
import com.beust.jcommander.JCommander;
import org.apache.log4j.Logger;
import org.apache.mesos.elasticsearch.common.cli.ElasticsearchCLIParameter;
import org.apache.mesos.elasticsearch.common.cli.ZookeeperCLIParameter;
import org.apache.mesos.elasticsearch.common.zooke... | 39.707317 | 130 | 0.711302 |
79e1e53f54d10585ed7346aa280a4623c48f2cf9 | 1,646 | /*******************************************************************************
* Master-COLLiDER CONFIDENTIAL
* @author Probal D. Saikia.
* Github.com/Master-COLLiDER
* Copyright (c) 2020 - 2020.
* NOTICE: This file is subject to the terms and conditions defined
* in file 'LICENSE.txt' which is part of this so... | 28.37931 | 105 | 0.553463 |
a3455bb9652e25c7e3545404db26db55edfcdfdd | 1,707 | /*
* 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... | 39.697674 | 117 | 0.749854 |
703aaf80ad83d5ead42402d944b6bfbdb019e4a4 | 893 | package com.beatshadow.concurrent.chapter4;
import lombok.extern.slf4j.Slf4j;
import static java.lang.Thread.sleep;
/**
* @author : <a href="mailto:gnehcgnaw@gmail.com">gnehcgnaw</a>
* @since : 2020/4/28 21:22
*/
@Slf4j
public class TestThread8Monitor_6 {
public static void main(String[] args) {
Numb... | 21.780488 | 69 | 0.538634 |
0d54c8c657b4e9ead954b6f91b7c1edcb925ee8e | 386 | package com.bradforj287.raytracer.geometry;
public class Plane3d {
private Vector3d normal;
private Vector3d point;
public Plane3d(Vector3d normal, Vector3d point) {
this.normal = normal.toUnitVector();
this.point = point;
}
public Vector3d getNormal() {
return normal;
... | 19.3 | 53 | 0.639896 |
ddb2d5405150516903d483472fd3d0d4315143e8 | 1,947 | /*
* Copyright 2015 Skymind,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 l... | 34.767857 | 106 | 0.792501 |
5715865b4ec0ad0cf64dbce3db11569d75abc862 | 17,204 | package com.portofrotterdam.versiondebt;
import com.portofrotterdam.versiondebt.Versiondebts.VersiondebtItem;
import com.portofrotterdam.versiondebt.Versiondebts.VersiondebtItem.Version;
import org.apache.http.client.utils.DateUtils;
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.repositor... | 37.318872 | 149 | 0.61724 |
72c53250fca77e828b6d5bc315817d8596a31525 | 2,069 | package com.evolent.backend.domain;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import org.hibernate.validator.constraints.NotEmpty;
/**
* This is Model ... | 20.087379 | 113 | 0.677622 |
eb17d2dc9bef6ba97a71053122bea5f8102fb0ee | 3,318 | /*
* 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 ma... | 31.903846 | 93 | 0.672694 |
352f9d400084a07e9ffa3f53c77f02e6c5aa45d3 | 25,930 | package org.apidb.apicomplexa.wsfplugin.spanlogic;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Random;... | 42.930464 | 160 | 0.689279 |
48e7efb6ef630d4f315e79e48585227feb31df2f | 1,016 | package com.springboot.ex.SpringRestJPAExample.Exception;
import java.util.Date;
/**
* Custom Exception Response Model Class
*
* @author Udhay
*
*/
public class ExceptionResponse {
private Date dateObj;
private String errMsg;
private String errDesc;
private String webRequest;
public Date getDateObj() {
... | 16.933333 | 70 | 0.71752 |
f873509ec9b8325fee63a4e3309aaf9020335608 | 876 | /**
* Copyright (c) 2017 Dell Inc., or its subsidiaries. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*/
pac... | 28.258065 | 90 | 0.746575 |
d7aaecfdc0045b5c5215e52387a5cedacf705eb9 | 106 | package com.alibaba.otter.canal.store;
public interface BufferMaxSequence {
long getMaxSequence();
}
| 17.666667 | 38 | 0.773585 |
7a63115fc4c25b15bd1fb39c31bde8971174e31e | 3,007 | package com.wilsonburhan.todayintech.base;
import android.content.ContentProvider;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sq... | 31.989362 | 115 | 0.671101 |
cfe8fdb782bdef5fa1701725bd01ba17e910341f | 368 | package com.bisa.health.rest.service;
import com.bisa.health.model.AccessToken;
import com.bisa.health.model.WxUserInfo;
import java.util.Map;
/**
* Created by Administrator on 2017/8/2.
*/
public interface IWxRestService {
public AccessToken getAccesstokenByCode(Map<String,String> param);
public WxUserIn... | 21.647059 | 70 | 0.766304 |
d963b069eb9febf776149aa448b54822c47e7aa0 | 9,069 | package com.dslplatform.json;
import com.dslplatform.json.runtime.Settings;
import org.junit.Assert;
import org.junit.Test;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
public class BuilderTest {
public static class Composite1 {
@JsonAtt... | 29.734426 | 133 | 0.650899 |
cdd426b6ed97ec399f881cbcc5aeeae830bdc23d | 51 | /**
*
*/
package pl.projewski.bitcoin.commander; | 12.75 | 39 | 0.666667 |
da9cb2e268aeb0da3a054b43d2cbdd12ddac304e | 1,153 | /*L
* Copyright SAIC, Ellumen and RSNA (CTP)
*
*
* Distributed under the OSI-approved BSD 3-Clause License.
* See http://ncip.github.com/national-biomedical-image-archive/LICENSE.txt for details.
*/
package gov.nih.nci.nbia.dao;
import java.util.*;
import gov.nih.nci.nbia.searchresult.*;
import... | 37.193548 | 130 | 0.799653 |
04f42b5831fa0f6c02f15591244e3b9e8ffe1fe0 | 1,506 | package org.mockserver.model;
import java.nio.charset.Charset;
import static org.mockserver.mappers.ContentTypeMapper.DEFAULT_HTTP_CHARACTER_SET;
/**
* @author jamesdbloom
*/
public class XmlBody extends BodyWithContentType<String> {
public static final MediaType DEFAULT_CONTENT_TYPE = MediaType.create("appli... | 25.1 | 110 | 0.65073 |
16f8cb1c3080837314d71cb0b43d2a6758b9b95c | 1,522 | package uk.me.jasonmarston.domain.validator.impl;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintValidatorContext;
import org.springframework.beans.BeanWrapperImpl;
import uk.me.jasonmarston.domain.validator.FieldsValueMatch;
public class FieldsValueMatchValidator implements Constrai... | 28.185185 | 97 | 0.769382 |
cba2d2cd899d7183dc31a328819a130b75e784bd | 758 | package com.bluejay.framework.property;
public enum PropertiesEnum {
SERVER_PORT("bluejay.server.port", 8331),
SERVER_HOSTNAME("bluejay.server.hostname", "localhost"),
SERVER_WORKERS("bluejay.server.workers", 0),
SERVER_BUFFER_SIZE("bluejay.server.buffersize", 0),
SERVER_OPTION("bluejay.server.opti... | 28.074074 | 62 | 0.703166 |
4fd3664bbf798a35dc5da22c791583b685386ebc | 205 | package org.gramat.capturing.edits;
import org.gramat.capturing.models.ObjectModel;
import java.util.Stack;
public interface Edit {
void compile(Stack<ObjectModel> wrappers, Stack<Object> values);
} | 18.636364 | 66 | 0.785366 |
9640c7ffd20edc45fdbcf6018dfe2c3f6b3f765c | 1,738 | package java_impl.concreteTimeFormats;
import java_impl.TimeFormat;
public class SingleSuffixTimeFormat extends TimeFormat {
private static SingleSuffixTimeFormat instance;
/**
* @return object instance of the class
*/
public static SingleSuffixTimeFormat getInstance()
{
if(instanc... | 20.939759 | 92 | 0.575374 |
6fafb3408c6fa9b2323b635ffaa7b13df87b1d69 | 3,209 | package org.firstinspires.ftc.robotcontroller.internal.testcode;
import com.qualcomm.hardware.modernrobotics.ModernRoboticsI2cGyro;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import com.qualcomm.robotcore.hardware.DcMotor;
import com.qualcomm.robotcore.hardware.DcMotorSimple;
import com.qualcomm.robo... | 26.303279 | 76 | 0.630103 |
5278488abc2b67a29a7887e2f806f70c9e33e282 | 607 | package L08DataTypeAndVarExercises;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
public class Ex04VarInHex {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamRe... | 33.722222 | 114 | 0.719934 |
baaf3b767c85a29b6c4eb2bb7ddff1bef6893c03 | 302 | package com.example.lidar_demo.nativeinterface.lidar;
public class LidarSpring {
native public static void print(float[] dist, float[] angle);
native public static void lidar_start();
native public static void lidar_stop();
static {
System.loadLibrary("lidarspring");
}
}
| 25.166667 | 65 | 0.708609 |
e97737d773837ff00719c978a2625aab34b14cfe | 1,507 | /*
* Copyright (C) 2005 - 2013 Jaspersoft Corporation. All rights reserved.
* http://www.jaspersoft.com.
*
* Unless you have purchased a commercial license agreement from Jaspersoft,
* the following license terms apply:
*
* This program is free software: you can redistribute it and/or modify
* it under the ... | 33.488889 | 91 | 0.704711 |
eb7db337b7dea22a1cab32b1a17a572cdf3e5b25 | 2,126 | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/gkehub/v1/configmanagement/configmanagement.proto
package com.google.cloud.gkehub.configmanagement.v1;
public interface HierarchyControllerStateOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.gkehub.co... | 33.21875 | 115 | 0.724365 |
b2cb7ee4ed1d70124c3d26e9fc0db8fe78409eb9 | 1,662 | package cech12.brickhopper.init;
import cech12.brickhopper.BrickHopperMod;
import cech12.brickhopper.api.block.BrickHopperBlocks;
import cech12.brickhopper.block.BrickHopperBlock;
import net.minecraft.world.level.block.Block;
import net.minecraft.world.level.material.Material;
import net.minecraft.world.level.material... | 44.918919 | 259 | 0.796631 |
6383a26b60c2c283cc272d33e587fb6c70349904 | 765 | package net.dongliu.proxy.netty.codec.frame;
import io.netty.buffer.ByteBuf;
import io.netty.handler.codec.http2.Http2FrameTypes;
/**
* Whole http2 headers
*/
public class Http2GoAwayEvent extends Http2Event {
private final int lastStreamId;
private final long errorCode;
private final ByteBuf debugData;... | 22.5 | 82 | 0.684967 |
47c50f825d18b27de05984f684f14d3beb5fc279 | 1,284 | package simulator.netty.serverCommands;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.Vector;
import simulator.netty.ServerCommand;
public class SpaceMapStationsCommand
implements ServerCommand {
public static int ID = 15562;
public double var_2893 = 0... | 25.176471 | 92 | 0.596573 |
fcae84b224b58d657d28a2f8a0cba25f1a9265da | 433 | package com.orientechnologies.orient.object.db.entity;
/**
* Created by tglman on 09/05/16.
*/
public class LoopEntity {
private LoopEntityLink link;
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LoopEntit... | 16.037037 | 54 | 0.658199 |
97ce76bd26c8e71f2a4791ad59f2d1111e81b506 | 1,001 | /*
* Copyright (c) 2012-2017 ZoxWeb.com LLC.
*
* 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... | 23.833333 | 81 | 0.699301 |
1548d2a444e8ecc0094733ca3b390ee4316c12f1 | 724 | package com.kuroha.algorithm.find;
/**
* 二分查找
* @author kuroha
*/
public class BinarySearch {
public static int find(int[] data,int num) {
int low = 0;
int high = data.length;
int mid;
while (true) {
if (low > high) {
return -1;
}
... | 21.294118 | 54 | 0.422652 |
c65b27f59a2c55e3a40015465be65d2441a60021 | 2,852 | /*
* All GTAS code is Copyright 2016, The Department of Homeland Security (DHS), U.S. Customs and Border Protection (CBP).
*
* Please see LICENSE.txt for details.
*/
package gov.gtas.services.search;
import java.util.Date;
public class IndexedPassengerVo {
private String title;
private String firstNa... | 25.693694 | 120 | 0.646564 |
f8e5dca71beabef3ace2cf9f4e44ac9a3555a034 | 182 | package org.testory.proxy.testing;
public class ConcreteClassWithPrivateConstructorWithArguments {
private ConcreteClassWithPrivateConstructorWithArguments(Object arguments) {}
}
| 30.333333 | 79 | 0.868132 |
a8e3d6e0036556d988a05da6e13a8ba66fdf4b4f | 3,662 | /*******************************************************************************
* BSD 3-Clause License
*
* Copyright (c) 2017 Beshr Al Nahas and Olaf Landsiedel.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followin... | 36.257426 | 81 | 0.690879 |
9a8e30a85ecb1487a706fd62f8ed054424bde308 | 1,431 | package me.javaee.ffa.information.commands.argments;
import me.javaee.ffa.FFA;
import me.javaee.ffa.information.Information;
import me.javaee.ffa.utils.command.CommandArgument;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.... | 33.27907 | 147 | 0.646401 |
bbce55ce320dff955204242e0cc41ec33aad693b | 380 | package com.example.zhang.test;
import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import com.example.zhang.test.R;
public class AboutUs extends Activity {
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInst... | 23.75 | 66 | 0.752632 |
e48f40dccd46c789c6f15510cae95f9f0371258d | 575 | package com.headless.ecommerce.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;
import com.headless.ecommerce.domain.Category;
@Service
public class CategoryService {
@Autowired
p... | 26.136364 | 62 | 0.773913 |
dc9c0abb934a9878714bcaddbea86834724ed07b | 13,922 | /*
* Copyright 2002.2.rc1710017 Barcelona Supercomputing Center (www.bsc.es)
*
* 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/LICENS... | 40.121037 | 135 | 0.626059 |
5231663f369cba74d3651c6af01bb7ee44bf6f0c | 1,371 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.monitor.models;
import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import jav... | 36.078947 | 84 | 0.739606 |
ae6d18049fbdecdf3639b783582ccc529128f69e | 1,434 | package com.futuristic.breweryclient.web.client;
import com.futuristic.breweryclient.web.model.BeerDto;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.web.client.RestTemplateBuilder;
import org.springframework.stereotype.Component;
import org.springframework... | 31.173913 | 108 | 0.739888 |
83bf3fa14964959fd884e991693ad6c7e9864b63 | 314 | package fr.flavi1.flap.android;
public interface ActionResolver {
public boolean getSignedInGPGS();
public void loginGPGS();
public void submitScoreGPGS(int score);
public void unlockAchievementGPGS(String achievementId);
public void getLeaderboardGPGS();
public void getAchievementsGPGS();
} | 31.4 | 59 | 0.770701 |
5c4b5b770a7d2553d63b94338c9913078387f438 | 333 | package test;
import methods.FloatingMenuMethod;
import org.testng.annotations.Test;
import static org.testng.Assert.*;
public class FloatingMenuTest extends FloatingMenuMethod {
@Test
public void floatingMenuTest() {
startFloatingMenuTest();
assertTrue(isMenuDisplayed(), "menu is not displaye... | 23.785714 | 63 | 0.735736 |
0ec306c124b5233059ad6d347f76c9871e622688 | 1,530 | package com.willlee.algorithms.recursion;
public class BinarySearch {
public static void main(String[] args) {
int maxSize = 100;
BinarySearch arr;
arr = new BinarySearch(maxSize);
arr.insert(72);
arr.insert(90);
arr.insert(126);
arr.insert(354);
arr.insert(399);
arr.insert(144);
arr.insert(135);... | 18.888889 | 70 | 0.603922 |
151d08dccab78c8221234d30147ab40377a74903 | 923 | package org.aksw.rdfunit.io.writer;
import org.aksw.jena_sparql_api.core.QueryExecutionFactory;
import java.util.Collection;
/**
* <p>RDFMultipleWriter class.</p>
*
* @author Dimitris Kontokostas
* Description
* @since 11/14/13 1:13 PM
* @version $Id: $Id
*/
public class RdfMultipleWriter implements R... | 23.666667 | 78 | 0.619718 |
04fd0cb0d2b8f70070e01ffee761bf90edbc11b3 | 2,735 | /*
* See LICENSE file in distribution for copyright and licensing
* information.
*/
package ioke.lang.coverage;
import java.util.HashMap;
import java.util.Map;
import ioke.lang.Interpreter;
import ioke.lang.IokeObject;
import ioke.lang.IokeRegistry;
import ioke.lang.Message;
import ioke.lang.exceptions.ControlFlow... | 24.863636 | 81 | 0.634735 |
3693cd69675fa8aa92f5d5f6ffeda6e1cede0489 | 1,545 | package gui;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.io.File;
import javax.swing.UIManager;
import util.EnFrString;
import util.Log;//TODO remove
public class FileChooser extends JFileChooser
{
private static EnFrString title = new EnFrString("Choose a fi... | 27.589286 | 89 | 0.71521 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.