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 |
|---|---|---|---|---|---|
a53e9d823b89bd3c590dbf7e0a10d07a1459387c | 407 | package edu.ucentral.serviciousuarios.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.PagingAndSortingRepository;
import edu.ucentral.serviciousuarios.model.Usuario;
public interface UsuarioRepository extends PagingAndSortingRepository<Usuario, Lon... | 33.916667 | 116 | 0.855037 |
3db5e7472b7373adc9717845ea8dabae41a76d3d | 957 | package aws_models.resources;
import aws_models.helper_resources.IPv4Range;
import services.aws.AwsServiceInterface;
import services.aws.BaseAwsService;
import services.aws.SubnetService;
public class Subnet extends BaseAwsResource {
private final IPv4Range iPv4Range;
private RouteTable routeTable;
priva... | 20.804348 | 62 | 0.679206 |
ba1c7b6b17cc826d5a07b19470f9942da84d59a6 | 2,506 | /*
* Copyright (C) 2015-2019 Fabrice Bouyé
* All rights reserved.
*
* This software may be modified and distributed under the terms
* of the BSD license. See the LICENSE file for details.
*/
package api.web.gw2.mapping.v2.items;
import api.web.gw2.mapping.core.IdValue;
import api.web.gw2.mapping.core.ListValue... | 26.104167 | 92 | 0.642857 |
c176b5c660a401c7e6e182c93f4adcf0300658eb | 2,545 | /**
*
*Copyright 2014 The Darks Codec Project (Liu lihua)
*
*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 require... | 25.707071 | 75 | 0.62279 |
4ddba407c6c4cc3c9548741faaf0528f68128fba | 929 | package com.michaelho.GraphAlgorithms;
import com.michaelho.DataObjects.Graph;
import org.junit.Test;
import static org.junit.Assert.assertArrayEquals;
import static org.junit.Assert.assertEquals;
public class GRTests {
GR1 gr1 = new GR1();
@Test
public void testDFSTraverse() {
Graph graph = Gra... | 28.151515 | 68 | 0.643703 |
b2f05736076c44544904b7c0ccd3c6eb561c752b | 494 | package org.whitneyrobotics.ftc.tests;
import com.qualcomm.robotcore.eventloop.opmode.OpMode;
import org.whitneyrobotics.ftc.subsys.Lift;
public class liftEncoderPositionTest extends OpMode{
Lift lift;
@Override
public void init() {
lift = new Lift(hardwareMap);
}
@Override
public vo... | 23.52381 | 77 | 0.704453 |
d2a037cff5ee7657565e34dc052fa0e44b60cfa7 | 2,742 | package com.gravity.api.provider.service.service;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import com.gravity.api.common.view.model.Provid... | 35.153846 | 96 | 0.80124 |
cb9714872df380e39523a0d74390495912efaadb | 4,302 | package ai.boundless.internal.data.storage.contracts;
import ai.boundless.internal.data.Telemetry;
import android.database.Cursor;
import android.provider.BaseColumns;
import android.support.annotation.Nullable;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/**
* Created by cu... | 25.011628 | 100 | 0.658298 |
6abf8104549b8f5ed67d79c1e9cc69a9bf2fb143 | 919 | /* Licensed under Apache-2.0 */
package com.rabidgremlin.mutters.bot.statemachine;
import com.rabidgremlin.mutters.core.IntentMatch;
import com.rabidgremlin.mutters.core.session.Session;
import com.rabidgremlin.mutters.core.util.SessionUtils;
import com.rabidgremlin.mutters.state.IntentResponse;
import com.rabidgremli... | 27.848485 | 105 | 0.764962 |
5efa6415506adb2efd4e8b117489b772450bf71d | 2,657 | package org.jabref.gui.actions;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import java.util.Optional;
import javafx.concurrent.Task;
import org.jabref.Globals;
import org.jabref.gui.DialogService;
import org.jabref.gui.JabRefFrame;
import org.jabref.gui.copyfiles.CopyFilesDialogVie... | 36.902778 | 164 | 0.744825 |
33fff49e4d75ab0ffe58d7fd476007283aeae85d | 2,931 | /**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.hdinsight.v2015_03_01_preview;
import java.util.... | 23.829268 | 89 | 0.631866 |
8cfe1fb222ef629a5fe1d621bb7d60c9e3db296d | 2,176 | package com.ibyte.common.util.thread;
import com.ibyte.common.util.StringHelper;
import java.util.Map;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* @Description: <规范:必须通过该线程工厂新开线程,以更好地管理线程变量>
*
* @author li.Shangzhi
* @Date: 2019-10-09 22:04
*/
public class ... | 25.6 | 75 | 0.56204 |
fd9b67215e8f2d5c53eb018194b456f9ef3751c7 | 222 | /*Inheritance in java is a mechanism in which
* one object acquires all the properties and behaviors of parent object.
*/
package oops;
public class Inheritance {
float salary=40000;
}
| 15.857143 | 75 | 0.648649 |
4dbb997f7630d6190e82fb513cfdf2410310da4e | 983 | package com.news.mukhe.newsapp;
/**
* Created by mukhe on 20-Aug-17.
*/
public class Constant {
protected static final String API_KEY="f12f65b6ea1f4316ba7ed41685446ba0";
protected static final String SOURCE_URL="https://newsapi.org/v1/sources?language=en";
protected static final String ARTICLES_URL="htt... | 40.958333 | 117 | 0.746694 |
c457a776d1085d3e6dfb03be6935b7fdf44ab218 | 5,925 | package eu.linksmart.services.event.connectors;
import eu.linksmart.api.event.components.IncomingConnector;
import eu.linksmart.api.event.exceptions.InternalException;
import eu.linksmart.services.event.connectors.mqtt.EventMqttObserver;
import eu.linksmart.services.event.connectors.mqtt.IncomingMqttObserver;
im... | 45.229008 | 254 | 0.649283 |
a41c7959e01241b803a31feed8f7ba8c8a131ad2 | 836 | import java.util.*;
public class kadanes
{
public static void main(String[] args)
{
int[] arr = {-4, -2, -8, -1, -9};
int ci = 0;
int cj = 0;
int cs = arr[0];
int bi = 0;
int bj = 0;
int bs = arr[0];
for(int i = 1; i < arr.length; i++)
... | 16.392157 | 43 | 0.27512 |
2f5bfcf5696f23da251b332e9e4a31b0ae36b3a6 | 1,156 | package chat;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
/**
* Created by weijiangan on 12/10/2016.
*/
public class Message implements Serializable {
private String fr;
private String msg;
private boolean broadcast;
private LocalDateTime ldt;
public Mess... | 18.95082 | 62 | 0.589965 |
03560386450cc5fd522cc1d83ae1dd8d8a6ad1e9 | 2,296 | package io.agrest.encoder;
import com.fasterxml.jackson.core.JsonGenerator;
import java.io.IOException;
import java.util.Map;
import java.util.TreeMap;
/**
* @since 3.4
*/
public class EntityNoIdEncoder extends AbstractEncoder {
private Map<String, EncodableProperty> relationshipEncoders;
private Map<Stri... | 28.345679 | 96 | 0.630226 |
db7387d94f3cb0584b415b0dc84fddbee2f1e48b | 398 | package org.crucial.dso;
import java.io.Serializable;
import java.util.Map;
import java.util.function.BiFunction;
/**
* ...
* <p>
* Date: 2018-02-07
*
* @author Daniel
*/
public interface MergeableMap<K, V> extends Map<K, V> {
default void mergeAll(Map<? extends K, ? extends V> m, BiFunction<? super V, ? s... | 19.9 | 108 | 0.620603 |
b6fbce093087b5f1c27104c46bc7173d061bd4ef | 13,717 | package com.idisfkj.hightcopywx.xiaomi;
import android.app.ActivityManager;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.database.Cursor;
import android.net.Uri;
import android.os... | 40.225806 | 136 | 0.618867 |
9ebf005f97153ae5687a4d3153a9e6195f8cc5a5 | 109 | package net.dongliu.apk.parser.struct;
/**
* @author dongliu
*/
public enum ByteOrder {
BIG, LITTLE
}
| 12.111111 | 38 | 0.669725 |
701cca775b9df535d8a9e672034b694decd4ba88 | 1,035 | package io.danielhuisman.sanitizers.language.ir.statements;
import io.danielhuisman.sanitizers.language.ir.Identifier;
import io.danielhuisman.sanitizers.language.ir.Memory;
import org.antlr.v4.runtime.Token;
import java.io.IOException;
public class StatementExport extends Statement {
public Identifier identifi... | 25.875 | 112 | 0.657971 |
547ee05062366dd62f5770bbef0d5c2706afd74e | 1,594 | import java.util.ArrayList;
import java.util.List;
/**
* https://leetcode.com/problems/restore-ip-addresses/description/
* Given a string containing only digits, restore it by returning all possible valid IP address combinations.
* <p>
* For example:
* Given "25525511135",
* <p>
* return ["255.255.11.135", "255... | 34.652174 | 109 | 0.552698 |
4da0176ade13b5d91fe404fd9fc0f550134216f3 | 3,307 | package de.kaesdingeling.spring.openapi.generator.example.generated.api;
import de.kaesdingeling.spring.openapi.generator.example.generated.invoker.ApiClient;
import de.kaesdingeling.spring.openapi.generator.example.generated.model.LoginData;
import de.kaesdingeling.spring.openapi.generator.example.generated.model.Pr... | 40.329268 | 219 | 0.749622 |
6ea8a89ded10bc6764ffc62b15a5d225560c7ff8 | 83,234 | /*
* Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | 44.062467 | 143 | 0.591537 |
26f812f01558fb3c5f3d28de704494613611be3d | 3,925 | /*
* 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... | 29.291045 | 104 | 0.649427 |
ee861d0a9c8d6e14cf87febe472030ac7c8b2073 | 2,234 | package us.ihmc.messager.kryo;
import com.esotericsoftware.kryonet.*;
import us.ihmc.commons.thread.ThreadTools;
import us.ihmc.log.LogTools;
import java.io.IOException;
public class SimplestKryoManualTest
{
static public String host = "localhost";
static public int tcpPort = 54555, udpPort = 54777;
final S... | 29.394737 | 93 | 0.586392 |
476e5d29b96cdfbcfdbfe0adeb8072e2b43be0f5 | 2,260 | package kotlinx.coroutines.flow;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.CoroutineContext;
import kotlin.coroutines.intrinsics.IntrinsicsKt;
import kotlin.jvm.functions.Function1;
import kotlinx.coroutines.Job;
@Metadata(bv = {1, 0, 3}, d1 = {"\u0000... | 72.903226 | 759 | 0.759735 |
76f3f5ce7876fcd99ad4c20d32e1646d73612ff7 | 574 | package com.swagger.entity;
/**
* @author Levin
* @since 2018/10/17 0017
*/
public class PojoD {
private long id;
private String address;
private PojoE pojoE;
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public String getAddress(... | 15.513514 | 44 | 0.569686 |
5fa70b59cae5f0418818643c3542f3109c210012 | 215 | package windy.infrastructure.contracts.events;
import windy.framework.contracts.IEvent;
public abstract class Event implements IEvent {
protected String id;
protected String sourceId;
protected int version;
}
| 19.545455 | 47 | 0.813953 |
0a0c0f86b582ecfadca476a46e9db85a15f0958a | 27,283 | /*
* Tiled Map Editor, (c) 2004
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* Adam Turk <aturk@big... | 35.945982 | 129 | 0.495034 |
19b6abf3aabb60925ea4271d7dea21e62df3bd2a | 606 | package com.legocms.core.vo.sys;
import java.util.ArrayList;
import java.util.List;
import com.legocms.core.dto.TypeInfo;
import com.legocms.core.vo.Vo;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper=false)
public class SysPermissionVo extends Vo {
privat... | 23.307692 | 71 | 0.727723 |
0ef90ed10ac874dac9f3b08429cf9f8341771760 | 6,174 |
/* First created by JCasGen Sat Oct 18 19:40:19 EDT 2014 */
package edu.cmu.lti.oaqa.type.input;
import org.apache.uima.jcas.JCas;
import org.apache.uima.jcas.JCasRegistry;
import org.apache.uima.cas.impl.CASImpl;
import org.apache.uima.cas.impl.FSGenerator;
import org.apache.uima.cas.FeatureStructure;
import org.apa... | 34.685393 | 139 | 0.691448 |
3af064df58b872a60623e006fbeae86aa67d99f6 | 978 | package de.hpi.bpmn2xpdl;
import org.json.JSONException;
import org.json.JSONObject;
import org.xmappr.Attribute;
import org.xmappr.RootElement;
@RootElement("Assignment")
public class XPDLAssignment extends XMLConvertible {
@Attribute("AssignTime")
protected String assignTime;
public String getAs... | 25.736842 | 89 | 0.758691 |
db54b0cb07ccf31fd8649ae6bb117befe611f808 | 587 | package org.thoughtslive.jenkins.plugins.jira.api;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
@Data
@ToString(of = {"successful", "code", "message", "error", "data"})
@NoArgsConstructor
@AllArgsCons... | 20.241379 | 68 | 0.781942 |
01ca51b13560128720f044b64485b83c88ae01d7 | 1,060 | package engine.actions.render;
import java.util.List;
import engine.GameManager;
import engine.actions.Action;
import engine.actions.Initializable;
import engine.gameObject.GameObject;
import engine.level.Level;
import engine.render.Renderer;
/**
* Does rendering for all Sprites.
* @author Will
*
*/
public abst... | 20.784314 | 84 | 0.675472 |
90eb999eb5c8da21ed5fdafdf932f9d45c237fc8 | 33,066 | /*
* Generated by the Jasper component of Apache Tomcat
* Version: Apache Tomcat/7.0.47
* Generated at: 2020-06-01 13:41:33 UTC
* Note: The last modified time of this file was set to
* the last modified time of the source file after
* generation to assist with modification tracking.
*/
package org.ap... | 78.35545 | 354 | 0.685508 |
0f661f5fa2508cc27c5db706b3fef5f0751efdfd | 5,300 | package net.dugged.tomrum;
import net.dugged.tomrum.mixins.IMixinMinecraft;
import net.minecraft.block.Block;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityClientPlayerMP;
import net.minecraft.init.Items;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.MathHelper;
i... | 35.57047 | 173 | 0.690189 |
ef26e034becb141cdd9e5d13426c9400efc14de5 | 558 | package com.github.nikolaymakhonin.android_app_example.data.apis.whats_there;
import com.github.nikolaymakhonin.android_app_example.data.apis.whats_there.dto.InstagramSearchResponse;
import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;
//docs: http://square.github.io/retrofit/
public interfac... | 39.857143 | 149 | 0.799283 |
8d039daba5679fdaae5bc3a812943ba4d6e91e11 | 497 | import java.util.*;
class fromheaventoearth{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int t=sc.nextInt();
while(t-->0){
float n=sc.nextInt();
float v1=sc.nextInt();
float v2=sc.nextInt();
if (((float)Mat... | 23.666667 | 60 | 0.468813 |
53d94d288550c6ee489672f948ae534688ca032a | 1,411 | package com.github.kpavlov.jreactive8583.example;
import com.github.kpavlov.jreactive8583.client.Iso8583Client;
import com.github.kpavlov.jreactive8583.server.Iso8583Server;
import com.solab.iso8583.IsoMessage;
import net.jcip.annotations.NotThreadSafe;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.... | 28.22 | 70 | 0.739901 |
919adc7f89a1a3981ab4845af6f348feb85b6043 | 495 | package Day2;
public class Exercise5 {
public static void main(String[] args) {
int x = 1;
int y = 2;
int z = -3;
input(x, y, z);
input(4, -6, -6);
}
public static void input(int x, int y, int z) {
if (x <= y && x <= z)
System.out.println("So nho ... | 24.75 | 55 | 0.458586 |
2f94e835dd55da289d138b3e466cfcccd43df91a | 329 | package com.hqc.dao;
import com.hqc.entity.MpParkingcChargeEntity;
/**
* 停车消费记录数据交互接口
*
* @author cxw
* @date 2017年5月15日
*/
public interface MpParkingcChargeDao extends BaseDao<MpParkingcChargeEntity> {
/**
* 查询可删除的数量,确认是否与输入一致;
*
* @param ids
* @return
*/
int findDelCount(long[]... | 16.45 | 78 | 0.650456 |
007d2d9202e85b0be7c22a09ed26591099f8b2fc | 1,359 | /*
* Copyright 2013-2016 must-be.org
*
* 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... | 30.886364 | 168 | 0.774834 |
47e7a2e6eae89c29815c020783b0b428d47e2f4f | 1,789 | package i5.las2peer.services.recommender.graphs;
import java.util.*;
public class GFAccuracyEstimation {
public static void printAccuracy(GFSparseMatrix inputMatrix, double[][] kNNGraph, int k, int numVerification) {
// There are many duplicate calculations
// Thus we need to refine this source code if "numVerif... | 36.510204 | 112 | 0.67412 |
060cfc8901256d0b9e16b85788d9e978008685d3 | 8,713 | // RobotBuilder Version: 2.0
//
// This file was generated by RobotBuilder. It contains sections of
// code that are automatically generated and assigned by robotbuilder.
// These sections will be updated in the future when you export to
// Java from RobotBuilder. Do not put any code or make any change in
// the ... | 36.919492 | 132 | 0.612763 |
a8bf1fe3d9af261090292e8adf42dfe8243ebdf1 | 2,112 | // Copyright 2000-2017 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 org.jetbrains.idea.svn.history;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.vcs.FilePath;
import com.intellij.vcsUtil.VcsUtil;
import org.j... | 33.52381 | 140 | 0.721117 |
e5116645a0ba7bc5889287d4f2cbc93807ec707f | 346 | package com.github.freshchen.keeping;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;
/**
* @author darcy
* @since 2021/10/11
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
private String name;
private Country country;
... | 16.47619 | 37 | 0.748555 |
3df8b27f6259c14e45dffd1221e9a67fd3e2fad0 | 1,745 | public class Calculadora {
private double valor1;
private double valor2;
int potencia;
public double getValor1() {
return this.valor1;
}
public void setValor1(double valor1){
this.valor1 = valor1;
}
public double getValor2() {
return this.va... | 26.846154 | 94 | 0.531805 |
463d8d678eaa5b541181c146dd03e5ed2b5d1396 | 668 | // This file is auto-generated, don't edit it. Thanks.
package com.aliyun.dingtalkservice_group_1_0.models;
import com.aliyun.tea.*;
public class AddLibraryResponseBody extends TeaModel {
// success
@NameInMap("success")
public Boolean success;
public static AddLibraryResponseBody build(java.util.Map... | 26.72 | 95 | 0.697605 |
86cf6e5d16a058e6f9fd22e10cf4e9acb50b8f5d | 2,780 | /*
* Copyright 2021 Hazelcast Inc.
*
* Licensed under the Hazelcast Community License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://hazelcast.com/hazelcast-community-license
*
* Unless required by applicable law or agree... | 38.082192 | 99 | 0.62518 |
398f8a01547f41bbd7047760e2d8ae7f8b220b3c | 200,662 | package com.qinfengsa.structure.leetcode;
import static com.qinfengsa.structure.util.LogUtils.logResult;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.Deque;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator... | 30.837867 | 138 | 0.436261 |
bd498848956434d8b58a12073a60115f93b4cf9b | 2,037 | package ejercicio2;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
public class Servidor {
ServerSocket server;
ArrayList<Socket> sockets;
// BufferedReader in;
// PrintWriter out;
public Servidor() throws IOException {
server =... | 30.863636 | 79 | 0.462936 |
c6ea27f9de3714274c4f2461f1665da50a112a3c | 1,831 | package SetsAndMapsAdvanced_Exercise;
import java.util.*;
public class HandsOfCards {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Map<String, HashSet<String>> player = new LinkedHashMap<>();
String input;
while (!"JOKER".equals(input = sc.nextLi... | 30.516667 | 84 | 0.501912 |
e874d8bc51bcdffa2f1f651e1fad4e029db0b7f7 | 814 | package com.zzboot.framework.controller;
import com.zzboot.framework.core.db.base.service.BaseService;
import com.zzboot.framework.core.db.entity.BaseEntity;
import java.io.Serializable;
import java.util.Map;
public interface IController<RwModel extends BaseEntity<PK>,
QueryModel extends RwModel,
PK... | 19.380952 | 63 | 0.728501 |
870a41974b1ef991fcde2ac4d583001ec1dc199b | 3,282 | /*
* #%L
* FlatPack Demonstration Server
* %%
* Copyright (C) 2012 Perka 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
... | 27.813559 | 113 | 0.643815 |
6ef6cfd4008000dcacaf436e9c92e3171cf70301 | 2,997 | /*******************************************************************************
* Copyright 2013 Ednovo d/b/a Gooru. All rights reserved.
*
* http://www.goorulearning.org/
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (th... | 38.922078 | 143 | 0.726727 |
b05f673f8a5398b4e15265159f548b09b3b904ac | 1,827 | package com.github.teamfusion.greedandbleed.api;
import com.github.teamfusion.greedandbleed.GreedAndBleed;
import net.minecraft.entity.MobEntity;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.ObfuscationReflectionHelper;
import java.lang.reflect.InvocationTargetException;
import java.lang.... | 45.675 | 186 | 0.766831 |
08ca4fd3e75499f42ed2b7f4e48078f98aa89f0e | 348 | package where.to.refuel.server.model.service;
import io.reactivex.Flowable;
import where.to.refuel.server.model.Coordinates;
import where.to.refuel.server.model.Location;
import java.util.List;
public interface DrivingInformationService {
<T extends Location> Flowable<T> findDrivingInformationFor(Coordinates origi... | 29 | 103 | 0.816092 |
69e9fb60c8bf85718d5d74bc20577093cc5c341b | 2,159 | package jdk.thread.base;
import org.junit.Test;
public class ThreadStop {
// public static void main(String[] args) {
// ExecutorService executorService = Executors.newSingleThreadExecutor();
// Future<String> future = executorService.submit(new Call());
// try {
// String result = f... | 33.215385 | 83 | 0.551181 |
a7ffd4a94f1c9383e648ee0c7c265e741bf1651e | 3,953 | package evaluators;
import java.io.File;
import java.util.ArrayList;
import net.sf.opendse.model.Specification;
import net.sf.opendse.optimization.ImplementationEvaluator;
import org.opt4j.core.Objective.Sign;
import org.opt4j.core.Objectives;
import sas.Settings;
import sas.ModelChecker.MatrixBuilder;
import sas.M... | 25.836601 | 150 | 0.708576 |
b2a1d0a47c2dc40126dc52ce39c7a12e35c4448c | 2,892 | package com.omarassadi.adventofcode;
import com.omarassadi.adventofcode.day.day4.Bingo;
import com.omarassadi.adventofcode.day.day4.BingoBoard;
import com.omarassadi.adventofcode.day.day4.BingoInputParser;
import com.omarassadi.adventofcode.day.day4.Day4;
import com.omarassadi.adventofcode.util.io.input.resolver.Input... | 37.076923 | 114 | 0.604772 |
0845b7e0a08be4948af28a1eb807d27718cf34e7 | 359 | package com.sunsharing.eos.serverexample.web.common;
/**
* 主要存放缓存用到的key
* Created with IntelliJ IDEA.
* User: ulyn
* Date: 13-3-15
* Time: 上午10:24
* To change this template use File | Settings | File Templates.
*/
public class CacheConstants {
/**
* 系统登陆用户的session的key
*/
public static final St... | 21.117647 | 64 | 0.685237 |
b54af7f600f1a47976908b6d2098976e5acf3c1f | 1,532 | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 31.916667 | 139 | 0.741514 |
8b54192ec615ddf0b5999f83449f55d578f3f42a | 2,041 | package com.yeadev.JavaSpringBootJARAngularSeed.jdbc;
import com.yeadev.JavaSpringBootJARAngularSeed.jdbc.models.Country;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.... | 28.347222 | 94 | 0.746693 |
064880f0bc19b7d2f87ee8e910440e4dafae885e | 366 | package com.networkedassets.autodoc.transformer.handleRepoPush;
import java.nio.file.Path;
public class Code {
private Path codePath;
public Code(Path codePath) {
this.codePath = codePath;
}
public Path getCodePath() {
return codePath;
}
public void setCodePath(Path codePath... | 18.3 | 63 | 0.661202 |
3181ee5caee4e5f3f20e176440f607ccaf801166 | 2,813 | package org.atlasapi.remotesite.channel4.pmlsd;
import com.google.common.collect.ImmutableSet;
import org.atlasapi.media.entity.Alias;
import org.atlasapi.media.entity.Publisher;
import java.util.Objects;
import java.util.Optional;
import java.util.Set;
import static com.google.common.base.Preconditions.checkNotNull... | 36.064103 | 111 | 0.622467 |
c8c569f8ecdc1e3cde00b8c6e8d5f7ed8322aecf | 28,758 | /*
* SPDX-License-Identifier: Apache-2.0
*/
package org.hyperledger.fabric.samples.privatedata;
import static java.nio.charset.StandardCharsets.UTF_8;
import org.hyperledger.fabric.contract.Context;
import org.hyperledger.fabric.contract.ContractInterface;
import org.hyperledger.fabric.contract.annotation.Contact;... | 48.414141 | 200 | 0.667675 |
4a7b59586d2908d005dc9e00480b32fdd9b3b8f3 | 2,188 | package scp002.mod.dropoff.util;
import io.netty.buffer.ByteBuf;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.fml.common.network.ByteBufUtils;
import scp002.mod.dropoff.render.RendererCubeTarget;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
public class ByteBufUtilsExt ... | 27.35 | 88 | 0.661792 |
8803fc336c9b6670db3b2777697bab335a55375f | 2,338 | package com.github.mekuanent.encryption.listener;
import com.github.mekuanent.encryption.Weaver;
import com.github.mekuanent.encryption.annotation.Encrypted;
import com.github.mekuanent.encryption.handler.IEncryptionHandler;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.ev... | 29.594937 | 119 | 0.666382 |
5dc3172e01831d86b84b764f410c2d0549bd5149 | 1,176 | package fr.formation.proxi.persistance;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
* la class MySqlConnection de créer une seule et unique connexion à notre base de donnée
* via l'utilisation du Singleton INSTANCE
*
* @author Marie_Julien
*
*/
public class My... | 22.188679 | 132 | 0.721939 |
25af965d7c5aec8e093853c1709532486c801ac7 | 476 | package com.movie.movieapp.entity;
import lombok.Data;
import javax.persistence.*;
@Data
@Entity
@Table(name = "comment_vote")
public class CommentVote extends BaseEntity{
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
@JoinColumn(name = "comment_id")
pri... | 18.307692 | 55 | 0.710084 |
bbcae46ecc94fe5f9cdbdb8045463313b3c3c41a | 3,773 | package group.zealot.study.utils;
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.dom4j.io.XMLWriter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.xml.soap.*;
import javax.xml.transform.Transformer;
imp... | 31.441667 | 150 | 0.613305 |
6484d476e8d85ddd63b67966d39353d0fdcc7bbb | 8,971 | package com.prasannjeet.jira.rest.core;
import com.google.gson.reflect.TypeToken;
import com.google.gson.stream.JsonReader;
import com.prasannjeet.jira.rest.JiraRestClient;
import com.prasannjeet.jira.rest.client.SystemClient;
import com.prasannjeet.jira.rest.core.domain.AttachmentMetaBean;
import com.prasannjeet.jira... | 40.59276 | 113 | 0.622227 |
539fe561851534819a000c5e0f3a36a26bac4c2a | 7,424 | // Copyright (c) 2018, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8;
import static com.android.tools.r8.DiagnosticsMatcher.diagnosticMessage;
imp... | 39.073684 | 97 | 0.735453 |
3e95512433ab0386f8b2c0ea6df79fda062e36c3 | 33,077 | package us.ihmc.commonWalkingControlModules.heightPlanning;
import java.util.ArrayList;
import java.util.List;
import us.ihmc.commonWalkingControlModules.desiredFootStep.TransferToAndNextFootstepsData;
import us.ihmc.commons.InterpolationTools;
import us.ihmc.commons.MathTools;
import us.ihmc.commons.lists.RecyclingA... | 51.202786 | 162 | 0.637875 |
b675fa18030790bf96d5c2a2e710e06b5b2bbe56 | 1,334 | package cpath.service.jpa;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
/**
* A spring-data repository (auto-instantiated) of Mapping entities
* (all methods here follow the spring-data naming and signature conventions,
* and therefore do not require to be implemented by us... | 22.610169 | 99 | 0.694153 |
ae271a7c7aba1379cdd627fa35eb14071402659b | 762 | package com.example.Project23.src;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.io.IOException;
import java.util.ArrayList;
public class TableOfPurchases {
private final ArrayList<Order> listOfOrders;
@JsonCreator
public TableOfPurchases(ArrayList<Order> listOfOrders) {
this.... | 25.4 | 105 | 0.706037 |
9fa9dd87310cdacb5059f0d2eec38b43e5880da7 | 1,615 | package com.lekkimworld.liselejespeedtest;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.UUID;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
... | 27.844828 | 111 | 0.727554 |
2fbc9226e6bc7f8756fe50069109792717b6b40e | 2,540 | package info.vadzimko.engine;
import com.google.gson.Gson;
import javax.servlet.ServletException;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLCon... | 35.774648 | 99 | 0.617717 |
f92a27c517f3ffbfd2f51bd049c311dc12475bb3 | 3,765 | package com.zs.controller.rest;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind... | 30.860656 | 107 | 0.747145 |
a3db31e3534d204ced3d24487eed6fc6dd1c3b9a | 2,081 | package com.centerm.allinpay.launcher.net;
import com.loopj.android.http.MySSLSocketFactory;
import java.io.IOException;
import java.net.Socket;
import java.security.KeyManagementException;
import java.security.KeyStore;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import jav... | 33.564516 | 154 | 0.710716 |
4fad40d87a9ba1b09ef4bd4840a141f32ef0136d | 3,160 | package io.github.prolobjectlink.prolog.interprolog.xsb;
/*-
* #%L
* prolobjectlink-jpi-ip-xsb
* %%
* Copyright (C) 2020 - 2021 Prolobjectlink 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 obta... | 26.779661 | 76 | 0.682911 |
d50b2832ce6d6950028591482f247e1649f18587 | 161 | package cat;
public interface CatAction {
void printNecessaryFoodAmount(double weigth);
void playingWithCat();
void useCatInsteadOfPlantain();
}
| 14.636364 | 49 | 0.73913 |
a01a8d338b11308f629a81219e495e09eea6ea7f | 7,966 | //@@author nattanyz
package dream.fcard.logic.stats;
import java.util.ArrayList;
import java.util.HashMap;
import dream.fcard.logic.storage.Schema;
import dream.fcard.model.Deck;
import dream.fcard.model.State;
import dream.fcard.model.StateHolder;
import dream.fcard.model.exceptions.DeckNotFoundException;
import dre... | 35.5625 | 99 | 0.64474 |
af03d9f84c8de4d4c9bdb0e588853752ee885a82 | 2,542 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the
* "License"); you may not ... | 31.775 | 100 | 0.749017 |
83aba47cec611f2f1145339077a199e71d19886f | 1,083 | package com.compomics.ensh.core;
import java.io.Serializable;
/**
* This class is a
*/
public class ExternalSynonymEntityPK implements Serializable {
private int iXrefId;
public int getXrefId() {
return iXrefId;
}
public void setXrefId(int aXrefId) {
iXrefId = aXrefId;
}
p... | 22.102041 | 101 | 0.611265 |
5bc84808fe807afb3c0818f0c26754eb4c860127 | 251 | package tberg.murphy.lazyopt;
import tberg.murphy.counter.CounterInterface;
import tberg.murphy.tuple.Pair;
public interface DifferentiableFunction {
public abstract Pair<Double, CounterInterface<Integer>> calculate(CounterInterface<Integer> x);
}
| 27.888889 | 96 | 0.828685 |
d322e96b1c5ba65be974265f6477e01ec9b734c8 | 602 | package info.startupbuilder.aws.cert.backend.dynamodb.app.core;
import com.amazonaws.services.dynamodbv2.datamodeling.*;
import lombok.*;
import org.springframework.hateoas.RepresentationModel;
import java.time.LocalDateTime;
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
... | 22.296296 | 63 | 0.795681 |
1607279a02d5b9dee14c014cb24c72c83616015d | 1,318 | package fi.hh.swd4tn020.CocktailList;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest;
import org.springframework.test.context.junit4.SpringRunner;
import fi.hh.swd4tn020.Cockt... | 26.897959 | 71 | 0.760243 |
d59a798631edccbdca53047db62a1ae4d2d4f560 | 18,338 | package com.example.lvivPolitexStuff;
import java.net.URL;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import android.app.Act... | 30.820168 | 166 | 0.643691 |
4d4cee7da25983ffd1209304933664d3fa824e19 | 11,831 | package com.epam.jdi.light.angular.elements.complex;
import com.epam.jdi.light.angular.asserts.RippleAssert;
import com.epam.jdi.light.angular.elements.common.Checkbox;
import com.epam.jdi.light.common.JDIAction;
import com.epam.jdi.light.elements.base.UIBaseElement;
import com.epam.jdi.light.elements.common.UIE... | 40.37884 | 121 | 0.57772 |
47f1a480e8d85b2e54232a5648793e9f68efec84 | 1,557 | package br.com.zupacademy.jefferson.microservicepropostas.controller.data.request;
import br.com.zupacademy.jefferson.microservicepropostas.entity.NovaProposta;
import br.com.zupacademy.jefferson.microservicepropostas.config.validation.CpfOuCnpj;
import javax.validation.constraints.Email;
import javax.validation.cons... | 28.309091 | 114 | 0.651895 |
4f9bcc67469b3b067de10008ec42515f858f1a9d | 65 | package com.example.cleanland.fragments;
public class t {
}
| 13 | 41 | 0.723077 |
8f8f649b97f6adcbbcc793a6f8d0a17b64dc3519 | 18,754 | package editor.collection.category;
import editor.database.card.Card;
import editor.filter.Filter;
import editor.filter.FilterAttribute;
import editor.filter.FilterGroup;
import editor.gui.MainFrame;
import java.awt.*;
import java.io.Externalizable;
import java.io.IOException;
import java.io.ObjectInput;
import java.... | 34.601476 | 156 | 0.54799 |
77d51e0b70c0c76e1b945bf3c786873c7a54657b | 22,974 | package com.ysk.turingv2.Activity;
import android.Manifest;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.s... | 31.819945 | 138 | 0.606686 |
9ebb5ef6b18b989f58fe3e06c7a977b30fc3ae7b | 2,537 | package org.ngbp.libatsc3;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.View;
... | 31.320988 | 130 | 0.641309 |
be2a09ce0c4ad68be93dbd5d7cc667aa093d5778 | 7,706 | /*
* Copyright 2015 Attribyte, 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 law or agreed to i... | 36.521327 | 138 | 0.641189 |
4467fb63ecfbf745f7e45899b0173e5db36978af | 4,146 | package com.google.ar.sceneform.rendering;
import android.os.Build;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import com.google.ar.sceneform.resources.ResourceRegistry;
import com.google.ar.sceneform.utilities.AndroidPreconditions;
import java.util.ArrayList;
import java.util.Iter... | 28.204082 | 142 | 0.646406 |
d78493a09204f39145c54942890f339125082822 | 734 | package com.github.derrop.cloudnettransformer.cloud.deserialized.permissions;
public class Permission {
private final String name;
private final int potency;
private final long timeout;
private final String targetGroup;
public Permission(String name, int potency, long timeout, String targetGroup)... | 22.242424 | 83 | 0.649864 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.