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
3a85c8c16061c1528fdde7dc4f2061d4e013f366
382
import java.util.Locale; import java.util.Scanner; //nao esqueca de mudar o nome da classe para Main public class uri1016 { public static void main(String[] args) { Locale.setDefault(Locale.US); Scanner sc = new Scanner(System.in); int n, resultado; n = sc.nextInt(); resultado = 2 * n; Syst...
16.608696
49
0.657068
14f081c1c1828bf75f91eeed571ce0d274146199
293
package jhaturanga.model.movement; import jhaturanga.model.piece.Piece; public interface PieceMovement extends BasicMovement { /** * @return the Piece involved */ Piece getPieceInvolved(); /** * Executes the movement itself. * */ void execute(); }
16.277778
54
0.641638
ab705570ad208e050525c0af77641381b7bf0eb5
7,898
package com.pointhouse.chiguan.h1; import android.os.Bundle; import android.support.v4.app.Fragment; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ListView; import android.widget.TextView; import com.alibaba.fastjson.JSONObj...
45.390805
153
0.575209
0107d1fb52a25ea87e212cdb378251d679be784e
2,237
package com.future.controller; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; import static org.junit.Assert.assertTrue; import java.util.List; import com.future.controller.PersonController; import com.future.model.Person; import...
29.434211
71
0.779169
713f1ff1696fc478cbbe8f17f4775d9ae392d53d
863
package org.amityregion5.tictactical.ai; /** * An interface for an AI to play the game through * * @author sergeys * */ public interface IAI { /** * Get the next move that this AI wants to make * * This should always return a legal move * If this returns null just let it crash. it shouldnt happen. * ...
35.958333
144
0.727694
4faa9ffb1491780291780cdf7b9ff65f9ab38fc8
2,470
package com.sergey.spacegame.common.game.orders; import com.badlogic.ashley.core.Entity; import com.sergey.spacegame.common.ecs.component.PositionComponent; import com.sergey.spacegame.common.ecs.component.ShipComponent; import com.sergey.spacegame.common.ecs.component.VelocityComponent; import com.sergey.spacegame.co...
24.949495
81
0.569231
b66596fb1ae370da0bab688288deb4c917bba0a4
14,461
/* * Copyright 2020 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
41.43553
100
0.707627
9f1daceacd563d90802e85627e34f15c1ffad797
1,619
package org.uniprot.store.spark.indexer.disease; import static org.junit.jupiter.api.Assertions.*; import java.util.ResourceBundle; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaSparkContext; import org.junit.jupiter.api.Test; import org.uniprot.core.cv.disease.DiseaseEntry; impo...
34.446809
100
0.642372
d61909e4fa5ff4eead34736dfacaed0d4042e373
675
package com.cucule.dao.entity; import lombok.Data; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import java.util.Date; @Data @Entity @Table(name = "client_master") public class ClientMaster { @Id @Column(name = "client_id") ...
19.285714
36
0.70963
5de7cd4db5be5dfaa19a2d8736d0328eb42d3c5a
470
package com.sample.app.endpoint.timestamp; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import javax.validation.constraints.NotEmpty; import javax.ws.rs.*; import javax.ws.rs.core.MediaType; /** * Echo REST endpoint class **/ @Component @Path("/tim...
20.434783
62
0.748936
df8b5d39ebb6904ed647644a20e5cb14375dffef
1,222
package ro.msg.learning.shop.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestBody; import org....
31.333333
71
0.779051
857eba86f8189d5618b20fb86338938ca7bb985a
5,843
package com.chao.cloud.admin.sys.controller; import java.util.List; import java.util.stream.Collectors; import javax.validation.Valid; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import org.apache.shiro.authz.annotation.RequiresPermissions; import org.apache.shiro.authz.ann...
31.583784
94
0.755605
edcd5bc4fb3f15f80bfbdf53265be5f4e7002f5c
573
package app; public class PrintingFormats { public static void main(String[] args) { System.out.println(); // long first = 1; // double second = 0.9; // System.out.printf("I have 2 numbers: first = %d and second = %.5f", first, second); String steven = "Steven Niccolai"; ...
30.157895
94
0.581152
3537d2c3317431008497a89a34207f24a9c82b8c
9,268
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.validator.test.internal.metadata.descriptor; import static org.assertj.core.api...
31.848797
113
0.785714
1125fc00a1770e5bd6db1b187d40f91c968c854f
606
package business.algorithm.decisionAlgorithm; public class DecisionAlgorithmAPI { private static final String MOVING_AVERAGE = "Moving Average"; private static final String PERFECT_ALGORITHM = "Perfect Algorithm"; public static final String[] DECISION_ALGORITHM_LIST = { MOVING_AVERAGE, PERFECT_ALGORITHM ...
31.894737
74
0.770627
80bdb5b90efc1a31ee87321ff26574cc4d130040
362
package pl.promity.patterns.dynamicfactory.interfaces; import pl.promity.patterns.common.Command; public class TestCommand implements Command { private int number; public TestCommand(){ number = 0; } @Override public void execute() { number = 10; } @Override public ...
15.73913
54
0.621547
ffa70dccfcabd30d2ceb4e0f49f86c130eff4eca
2,476
package hu.lev.onlinegames.service; import java.security.Key; import java.util.Date; import javax.crypto.spec.SecretKeySpec; import javax.xml.bind.DatatypeConverter; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import hu.lev.onlinegames.persist.TokenD...
29.129412
101
0.691438
7ca34ee406f3e6179304d02bb858dc164e06e795
1,210
package froggy.implementations; import froggy.interfaces.CommandInterpreter; import froggy.interfaces.Lake; import java.util.List; public class CommandInterpreterImpl implements CommandInterpreter { private Lake<Integer> lake; public CommandInterpreterImpl() { } @Override public void interpretC...
29.512195
67
0.602479
fc207aef29c6377bb2be657f36a0b90a11dda6b0
901
package es.npatarino.android.gotchallenge.houses.domain.model; public class GoTHouse { private String id; private String name; private String imageUrl; public GoTHouse(String id, String name, String imageUrl) { this.id = id; this.name = name; this.imageUrl = imageUrl; } public String getImag...
20.477273
93
0.653718
dff7938ee46a3ffe31ae4c6802bce924b73c6897
53,011
// Generated from Solidity.g4 by ANTLR 4.7 import org.antlr.v4.runtime.Lexer; import org.antlr.v4.runtime.CharStream; import org.antlr.v4.runtime.Token; import org.antlr.v4.runtime.TokenStream; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.atn.*; import org.antlr.v4.runtime.dfa.DFA; import org.antlr.v4.run...
69.659658
101
0.625738
712b61ac15c64b2fb953f7d0fdc871251a9bb68d
137
package edu.wpi.first.nativeutils.tasks; import org.gradle.api.DefaultTask; public class ExportsGenerationTask extends DefaultTask { }
19.571429
56
0.824818
478a8c1ec5a7d8b380d5666b8be6889d5237818b
997
package me.chasertw123.minigames.core.listeners.general; import me.chasertw123.minigames.core.Main; import me.chasertw123.minigames.core.api.v2.CoreAPI; import me.chasertw123.minigames.core.user.User; import me.chasertw123.minigames.core.utils.gui.AbstractGui; import org.bukkit.entity.Player; import org.bukkit.event.E...
33.233333
111
0.74323
653c9bc1b39cc2609649f06501c4ac3889ae05d4
2,175
package com.ruslaniusupov.achievity.data.repository; import android.support.annotation.NonNull; import com.google.android.gms.tasks.OnCompleteListener; import com.google.android.gms.tasks.Task; import com.google.firebase.auth.FirebaseAuth; import com.google.firebase.auth.UserProfileChangeRequest; import com.ruslanius...
30.208333
114
0.628966
3bb653a3ca60aaab92d76e72fa8bb45c056222ed
3,916
/* * MIT License * * Copyright (c) 2020-present Cloudogu GmbH and Contributors * * 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 r...
31.079365
95
0.750255
a6df94f3bbd2757d3656fcf0329c24d2e37c4474
766
package frc.robot.subsystems; import edu.wpi.first.wpilibj.DoubleSolenoid; import edu.wpi.first.wpilibj.PneumaticsModuleType; import edu.wpi.first.wpilibj.DoubleSolenoid.Value; import edu.wpi.first.wpilibj.motorcontrol.Spark; import edu.wpi.first.wpilibj2.command.SubsystemBase; public class Pince extends SubsystemBas...
20.702703
88
0.718016
38d62a7918d0f1dfb5f320d915ed76071e472110
490
package github.cluder.ean.checker; import java.util.HashMap; public class Result { public String ean; /** * Map with result for each provider */ public HashMap<String, ProviderResult> providerResults = new HashMap<>(); public Result(String ean) { this.ean = ean; } @Override public String toString() { ...
19.6
77
0.695918
b4431c7374f72037883aae1fb4753497ade0be2b
3,200
package edu.cloudunt.customers.web; import edu.cloudunt.customers.client.NotificationFeignClient; import edu.cloudunt.customers.client.dto.NotificationResponse; import edu.cloudunt.customers.domain.dto.Customer; import edu.cloudunt.customers.domain.dto.Gender; import edu.cloudunt.customers.repository.CustomersReposito...
39.506173
121
0.763438
d37cd1ab62c6e4ebec50dd89da8849b36d065317
711
package slydm.geektimes.training.projects.user.helper; import slydm.geektimes.training.beans.factory.BeanFactoryAware; import slydm.geektimes.training.context.annotation.Component; import slydm.geektimes.training.exception.BeansException; import slydm.geektimes.training.ioc.BeanFactory; /** * @author wangcymy@gmail....
27.346154
77
0.78903
9fb82526c6b6086af4206792dce4467175c1e5fc
3,735
package com.jeffrpowell.adventofcode.aoc2020; import com.jeffrpowell.adventofcode.inputparser.InputParser; import com.jeffrpowell.adventofcode.inputparser.InputParserFactory; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Day18 extends Solution2020<String>{ sta...
34.583333
147
0.516198
fd07c510fcf51b76e85b5ef4f1202c10a6096b38
1,804
package org.aicoder.bizdelegate; import java.util.List; import org.archcorner.chartreuse.dal.dao.InsuranceproviderDAO; import org.archcorner.chartreuse.pojo.Insuranceprovider; public class InsuranceproviderBusinessDelegate{ private InsuranceproviderDAO insuranceproviderDAO ; public int getHighestId() { insuranc...
30.576271
106
0.833703
ec2be92047d5e33e8b61a259f44e2285b78fc16b
448
package com.qinweizhao; import java.lang.reflect.Constructor; public class GetConstructor2 { public static void main(String[] args) throws Exception { Class clazz = Users.class; Constructor constructor = clazz.getConstructor(String.class, int.class); Object o = constructor.newInstance("Old...
32
80
0.676339
e84cb79a81acbf77895834b5f8afefdaa3c98880
1,486
package meettooffer.chapter3; public class CharacterMatcher { public static void main(String[] args) { char[] strings = {'a','b', 'b'}, pattern = {'a','b'}; boolean matched = match(strings, pattern); System.out.println(matched); } private static boolean match(char[] string...
38.102564
94
0.499327
d5e4ce6872326c855ecc8deaac4b830639ba1f6d
12,186
package seedu.address.model; import static java.util.Objects.requireNonNull; import static seedu.address.commons.util.CollectionUtil.requireAllNonNull; import java.nio.file.Path; import java.util.ArrayList; import java.util.List; import java.util.function.Predicate; import java.util.logging.Logger; import javafx.col...
30.313433
113
0.648449
e27a64bd28596085f94bf0645e4c00bfff3fd252
2,846
/* * Copyright 2017-2018 Eficode Oy * Copyright 2018- Robot Framework Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE...
33.880952
96
0.685172
93826b00ef823049237ded003be7e050ebb8c6f1
6,895
/* * Copyright 2014-2016 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 ap...
29.216102
107
0.747788
d4219ec545f889703a58e848bb050ef48e5c577a
91
package com.ymbj.autoconfig; public class DevProfileService implements ProfileService { }
18.2
58
0.835165
adde4405f2558fe116e80b0ac4ddc42e80259580
1,694
package old.Offer; import java.util.Arrays; /** * @author WangZ * ������51���������ظ������� 261ҳ * ��Ŀ����һ������Ϊn������������������ֶ���0��n-1�ķ�Χ�ڡ�������ijЩ�������ظ��ģ����Dz�֪���м��������ظ��ˣ�Ҳ��֪��ÿ������ * �ظ��˼��Σ����ҳ�����������һ���ظ������֣��������볤��Ϊ7������{2,3,1,0,2,5,3},��ô��Ӧ��������ظ�������2����3 * <p...
31.37037
110
0.341795
5f1e9d587b99a1ccceff05b774166805335300af
887
package InterviewBit.Arrays; import junit.framework.TestCase; import java.util.ArrayList; /** * Created by prasad on 5/22/16. */ public class matrix01Test extends TestCase { Matrix01 matrix_01 = null; ArrayList<ArrayList<Integer>> input = null; @Override public void setUp() throws Exception { super.s...
22.175
82
0.641488
9a2738cf9ea2c0e2bbf438c204c7edda5af35156
1,258
package com.kamenov.martin.a3dobjects.engine.services; import android.graphics.Color; import android.graphics.Paint; import com.kamenov.martin.a3dobjects.engine.constants.EngineConstants; /** * Created by Martin on 27.10.2018 г.. */ public class PaintService { public static Paint createEdgePai...
27.955556
97
0.612083
e506d0f759bebd5fc80017e0e3027ad38a1ba12e
2,904
package mage.cards.d; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SpellCastControllerTriggeredAbility; import mage.abilities.condition.common.DeliriumCondition; import mage.abilities.decorator.ConditionalContinuousEffect; import mag...
41.485714
178
0.741391
a84f2360522b18703009ae3d7c18f59c8da5b08b
5,394
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */ package com.microsoft.azure.management.eventhub.implementation; import com.microsoft.azure.Page; import com.microsoft.azure.PagedList; import com.micr...
45.327731
168
0.719318
6dccebd80983009c64cc733c131295aee082d77a
402
package ru.job4j.loop; /** * Нахождение факториала. */ public class Factorial { /** * Нахождение факториала при помощи рекурсии. * @param n число для которого вычисляется факториал. * @return Факториал для числа n; */ public int calc(int n) { if (n < 2) { return 1; ...
20.1
57
0.517413
fd866b82eabd91fdb4297bcfa3845a10159cb52f
2,024
package io.hops.cli.config; import java.net.InetAddress; import java.net.MalformedURLException; import java.net.URL; import java.net.UnknownHostException; import java.util.logging.Level; import java.util.logging.Logger; public class HopsworksAPIConfig { private String apiKey; private String apiUrl; private Str...
20.444444
85
0.682806
ce702fa6169372e7a5224a6ca46f0af17c0ab37e
3,182
package com.sabertazimi.tao.analysis; import java.util.List; import java.util.LinkedList; import java.util.ArrayList; import java.util.HashSet; /** * Created by sabertazimi on 16-9-14. */ public class SignParser { private final static List<HashSet<String>> signSetList; private final static HashSet<Character...
28.410714
79
0.477058
010e44baa9dce3fb39a47640caea5ed6d7e9e0cf
2,104
package UserInterface; import java.awt.event.ActionListener; import java.io.IOException; import java.util.ArrayList; import java.awt.event.ActionEvent; import javax.swing.JButton; import MainSystem.Business; import MainSystem.Employee; import MainSystem.IT_Personnel; import MainSystem.Ticket; import MainSystem.Task.S...
44.765957
139
0.579848
c7aba19714e3306cd5bff5647b4e8b66288955d9
1,341
package com.sri.ai.praise.core.representation.interfacebased.factor.core.table; import java.util.ArrayList; import java.util.List; import com.sri.ai.praise.core.representation.interfacebased.factor.api.Variable; public class TableVariable implements Variable { private String name; private Integer cardinality; p...
24.833333
80
0.678598
5ee4d6cfbd51c5d67781ccec18efc1925fbdd7c5
1,437
package au.com.origin.payment.rest.controller; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest; import org.springframework.boot.test.context.SpringBootTest; import org.spring...
41.057143
111
0.817676
287b73a4a86d34bf03afe25a23397fa992698bdc
1,144
package pl.icreatesoftware; import pl.icreatesoftware.dto.Flower; import pl.icreatesoftware.dto.FlowerType; import pl.icreatesoftware.dto.Flowerpot; import pl.icreatesoftware.validation.ValidatorImpl; import pl.icreatesoftware.validation.rules.ColorRule; import pl.icreatesoftware.validation.rules.WaterLevelRule; impo...
39.448276
97
0.734266
164e518428c70af34cb6450a627e04e68d70d167
459
// Generated by protoc-gen-javastream. DO NOT MODIFY. // source: frameworks/base/core/proto/android/service/usb.proto package android.service.usb; /** @hide */ // message UsbSettingsDevicePermissionProto public final class UsbSettingsDevicePermissionProto { // optional string device_name = 1; public static f...
25.5
63
0.753813
f100203fd60012902bd1ce650250b8b04f3a91b1
1,784
import com.google.gson.GsonBuilder; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; public class Blockchain { private ArrayList<Block> blockchain; /** * Public constructor for a blockchain object. */ public Blockchain() { this.blockchain = new ArrayList<>(); } ...
26.626866
94
0.644619
ba37d76c3585c25cdcfc8ff7d8d01f0740dbd479
2,700
// Targeted by JavaCPP version 1.5.7: DO NOT EDIT THIS FILE package org.bytedeco.tensorflow; import org.bytedeco.tensorflow.Allocator; import java.nio.*; import org.bytedeco.javacpp.*; import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.javacpp.presets.javacpp.*; import static org.bytedeco.tensorfl...
56.25
180
0.765185
c448749bfd22a1c500b191a17391f4e00075de90
543
package com.semmle.cobol.generator.effects; import com.semmle.cobol.generator.engine.Frame; import com.semmle.cobol.generator.engine.RuleEngine; import com.semmle.cobol.generator.events.Event; /** * An {@link Effect} which assigns the {@link Event#getNode()} to the * {@link Frame#node}. */ class AssignEventNodeToF...
25.857143
69
0.744015
ddc89fe5a884b64b78a68a560e6714e26a53af60
3,777
package controllers; import java.io.IOException; import models.BeanUser; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Date; import utils.BeanUtilities; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servle...
29.97619
118
0.64681
31b12d231573560033b8a31eed101a5517cec13c
111
/** * Package contains the stepDesign for the PubSub features. */ package io.cdap.plugin.pubsub.stepsdesign;
22.2
59
0.756757
a1dc72e9147cbc1dd62628af685e6e02457890d8
122
package org.jmock.example.sniper; public interface AuctionListener { void bidAccepted(Auction item, Money amount); }
20.333333
49
0.778689
2367b70f4deb973e0ce1b11e959efc462b530520
3,151
/** * Copyright 2010 JBoss Inc * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in wr...
25.208
169
0.664551
42e40b095e4cb8b7ce41a17d74a8f437079a1c11
924
package com.wisdomguo.xifeng.modules.game.farm.plantedfield.service; import com.baomidou.mybatisplus.extension.service.IService; import com.wisdomguo.xifeng.modules.game.farm.plantedfield.entity.PlantedField; import java.util.List; /** * PlantedFieldService * * @author wisdom-guo * @since 2021/7/8 */ public int...
20.533333
79
0.67316
104ba01b698b5f5a499b10b0f75b234cb334506c
2,860
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may n...
31.428571
123
0.753846
413a7855727ae70622de8b63ba5cf5c2ef46509b
1,011
package org.xxpay.dal.dao.mapper; import java.util.List; import org.apache.ibatis.annotations.Param; import org.xxpay.dal.dao.model.RpUserBankAccount; import org.xxpay.dal.dao.model.RpUserBankAccountExample; public interface RpUserBankAccountMapper { int countByExample(RpUserBankAccountExample example); int ...
33.7
128
0.807122
f4ba7347e0bde2d8331082c4656dfac0eea797bd
5,910
package com.indeed.operators.rabbitmq.config; import com.indeed.operators.rabbitmq.NetworkPartitionWatcher; import com.indeed.operators.rabbitmq.RabbitMQEventWatcher; import com.indeed.operators.rabbitmq.api.RabbitMQPasswordConverter; import com.indeed.operators.rabbitmq.api.RabbitManagementApiProvider; import com.ind...
44.772727
215
0.768359
4a24ceb14f2b1477f69cfaeee47114c6b681317c
2,575
package com.tyrfing.games.id17.diplomacy.actions; import com.tyrfing.games.id17.EmpireFrameListener; import com.tyrfing.games.id17.diplomacy.Message; import com.tyrfing.games.id17.gui.mails.DiploYesNoMail; import com.tyrfing.games.id17.gui.mails.HeaderedMail; import com.tyrfing.games.id17.gui.mails.Mail; import...
35.273973
240
0.711845
8087246d7c6d5a446cf74918c076200d7bdca9cd
3,022
/* * Copyright (c) 2021 MrFrydae * Copyright (c) 2021 wafflecoffee * Copyright (c) 2021 djlawler * Copyright (c) 2020 TeamMidnightDust (MidnightConfig only) * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to ...
44.441176
207
0.730973
a5c218cd5ba0fae5cfed6572c6fb9c15cf3ead79
4,277
package in.itzmeanjan.filterit.affine; import in.itzmeanjan.filterit.ImportExportImage; import java.awt.*; import java.awt.image.BufferedImage; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; /** * Given a buffered image it'll compute transla...
33.677165
115
0.609773
fc998610386a10ea13509af3e703e4796112c9cf
1,898
package com.dreampany.framework.data.service; import android.app.Service; import android.content.Intent; import android.os.CountDownTimer; import android.os.IBinder; import android.os.Message; import android.os.Messenger; import android.os.RemoteException; import android.support.annotation.Nullable; /** * Created by...
23.725
70
0.586934
4cfcb3302a6929271ac891bdded7891ecc074f21
2,838
/** * ****************************************************************************** * ************************ LATIN SQUARE TOOLBOX ******************************** * ****************************************************************************** * Copyright (c) 2017 Nathan O. Schmidt <c0ldc4lcul4ti0n@gmail.com> *...
46.52459
81
0.470754
ae786498cdcfdda422c5e1f4dc958d50ff0fe140
995
package kaflib.gui.components; import java.awt.Font; import java.awt.image.BufferedImage; import java.io.File; import kaflib.graphics.GraphicsUtils; public class KGUIConstants { private static BufferedImage background; private static final File background_file = new File("data/cf_pattern.png"); public static fin...
29.264706
87
0.727638
50f5ef8819512647b6eb3981026c6e61a9e52b01
1,455
package JavaCode.top_interview_questions_easy.array; import java.util.Arrays; import java.util.HashMap; import java.util.Map; public class four { public boolean containsDuplicate(int[] nums) { //return fun0(nums); return fun1(nums); } /** * 利用HashMap来判断 * @param nums * @ret...
18.1875
90
0.470103
756a091436d232be2549760ceac8145cd9572731
829
package uk.ashigaru.engine.state; public interface IState { /** * Sets a public flag inside the state to either true/false. */ public void setFlag(String key, boolean bool); /** * Retrieves a public flag from the state. */ public boolean getFlag(String key); /** * To be called when the state is des...
20.219512
78
0.667069
13d2988829034f84e79529a9ea63c93fc07bea22
1,075
package com.example.kamil.cukrowag.activity; import android.content.Context; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentPagerAdapter; /** * Created by kamil on 09.06.17. */ public class PagerAdapter extends FragmentPagerAdapter { ...
25
81
0.629767
f6aa5b854f7feeb7449baf7fdd51b4d2da3c212f
3,857
package com.king.app.workhelper.activity; import android.os.Build; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.appcompat.app.AppCompatDelegate; import android.view.WindowManager; import android.webkit.WebView; import android.widget.Toast; import c...
28.57037
104
0.628727
0772b62141da47946fe73c6896200bbef35defee
349
package io.github.resilience4j.test; import java.util.concurrent.CompletionStage; public interface AsyncHelloWorldService { CompletionStage<String> returnHelloWorld(); CompletionStage<String> returnHelloWorldWithName(String name); CompletionStage<Void> sayHelloWorld(); CompletionStage<Void> sayHelloW...
29.083333
66
0.805158
eeddfa4f241e0a55ff75f366dd84510963721dc1
3,116
package cn.jeeweb.modules.sys.security.shiro.session.mgt.eis; import cn.jeeweb.core.utils.StringUtils; import cn.jeeweb.modules.sys.entity.UserOnline; import cn.jeeweb.modules.sys.security.shiro.ShiroConstants; import cn.jeeweb.modules.sys.security.shiro.session.mgt.OnlineSession; import cn.jeeweb.modules.sys.security...
26.632479
114
0.737805
4e9540fed8b9be2a7ed09583cf1f5ae35b3c8d21
752
package seedu.homerce.logic.commands.schedule; import seedu.homerce.logic.commands.CommandResult; import seedu.homerce.logic.commands.exceptions.CommandException; import seedu.homerce.model.Model; import seedu.homerce.model.manager.HistoryManager; import seedu.homerce.ui.schedulepanel.SchedulePanel; public class Next...
39.578947
102
0.804521
f6eaa5de758f2424373b28a90a082fb2b72a116f
4,605
/* * GridMedianOperator.java * * Created on August 12, 2008 * */ package ika.geo.grid; import ika.geo.GeoGrid; import ika.geoimport.ESRIASCIIGridReader; /** * * @author Bernhard Jenny, Institute of Cartography, ETH Zurich. */ public class AccumulationFlowOperator implements GridOperator { public static v...
28.425926
93
0.467752
28a73d1d3951f0c2819cf0becd3057bdc940a024
627
package de.gematik.ti.epa.fdv.authentication.soap; /** * Signature object with signed info and digest value */ public class SignatureInfoSignature { private final String signedInfoString; private final byte[] signatureInfoDigest; public SignatureInfoSignature(final String signedInfoString, final byte[] ...
27.26087
100
0.730463
2a65f2aadbc2873ed187512fdc4acd26161fe08c
367
package ubu.digit.webService; /** * Clase que obtiene información acerca del sitio web, del usuario y la lista de funciones * web services con el web service CORE_WEBSERVICE_GET_SITE_INFO. * */ public class CoreWebserviceGetSiteInfo extends WSFunctionAbstract{ public CoreWebserviceGetSiteInfo() { super(WSFun...
26.214286
91
0.79564
e643d648d62a83fd2f1872383bbfa4195bae79e7
2,646
package org.hupisoft.battleships; import android.content.Context; import android.content.Intent; import android.support.test.InstrumentationRegistry; import android.support.test.espresso.intent.rule.IntentsTestRule; import android.support.test.filters.LargeTest; import android.support.test.runner.AndroidJUnit4; import...
37.267606
143
0.761527
e8ace8ea54c64e0c67e0415f4475f2df55eb27fc
973
/** * TLS-Attacker - A Modular Penetration Testing Framework for TLS * * Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH * * Licensed under Apache License 2.0 * http://www.apache.org/licenses/LICENSE-2.0 */ package de.rub.nds.tlsattacker.core.crypto.ec; import java.math.BigInteger; public class Ell...
38.92
114
0.736896
5233b3b2ddf7b214f827e80ceda7483c9405e0a4
458
package io.oasp.module.jpa.dataaccess.api; import net.sf.mmm.util.entity.api.PersistenceEntity; /** * This is a simplified variant of {@link GenericDao} for the suggested and common case that you have a {@link Long} as * {@link PersistenceEntity#getId() primary key}. * * @see GenericDao * * @param <E> is the ge...
28.625
119
0.731441
9d976d44808ecd2429b7cb7e27b8babf500bff6e
757
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.messaging.eventhubs.perf; import com.beust.jcommander.Parameter; /** * Event Hubs options when a partition id is required. * * @see GetPartitionInformationTest */ public class EventHubsPartitionOptio...
28.037037
111
0.701453
406e01bafd7d53cef132fb1518c6331e76570030
1,473
package com.distkv.common.id; import java.io.Serializable; /** * The class that represents the Id of a node. */ public class NodeId implements Serializable { private static final long serialVersionUID = -2216426913363839949L; /** * The Id of the partition that this node belongs to. */ private GroupId ...
19.12987
69
0.632043
86e9a4a327048e89ffc5a9b82af76e476120e332
2,972
package com.farizma.themesample; import androidx.appcompat.app.AppCompatActivity; import android.app.Dialog; import android.content.SharedPreferences; import android.content.res.Resources; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Build; import android.os.Bundle;...
33.393258
88
0.62786
5b249285a062b96e3e46f0fa7eb71eacaa3d75d5
14,448
/* * Copyright (c) 2016 - Firoz Memon * * 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 appl...
40.022161
139
0.556478
d33710c872132e1ef2879359752be907c8aa35d0
422
package com.oc.hawk.traffic.entrypoint.api.dto; import lombok.Data; import java.sql.Timestamp; @Data public class TraceItemDTO { private Long id; private String path; private String method; private String dstWorkload; private Long latency; private String spanId; private Integer responseC...
19.181818
47
0.734597
eeaddfcbc013c566eefa1e6a96f7999fd831d54b
3,310
package payment_systems.food.systems; import Exceptions.SlotSupportLimitationException; import enums.CardTypes; import enums.Currency; import org.junit.Test; import payments.money.Card; import payments.money.Coin; import payments.money.Note; import static org.junit.Assert.*; import static org.junit.jupiter...
41.898734
83
0.691239
5c7c269a072154294831eced9e88eff67c538b0c
8,092
/* * Jitsi, the OpenSource Java VoIP and Instant Messaging client. * * Copyright @ 2015 Atlassian Pty 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.or...
31.123077
80
0.581438
1f540947dfaa47f890e0bfc3feb2dffc8bed39d7
117
package wartee.tunlinaung.xyz.mvp.views; public interface BaseView { void displayErrorMsg(String errorMsg); }
14.625
42
0.769231
d9b94129ec2ed14a61d41c31bc5f2f5c40f49752
1,935
package com.bookings.mvc.bean; public class PriceBean { private int pid; private int rtid; private RoomTypeBean type; private String price_desc; private Float price; private Boolean weekend; public PriceBean() { } public PriceBean(int pid) { this.pid = pid; } public PriceBean(int...
20.806452
109
0.637726
2f9b9e19c10142aa7e0b5843a2695501fcf07973
2,757
package com.alipay.global.api.response.aps.pay; import com.alipay.global.api.model.aps.Amount; import com.alipay.global.api.model.aps.OrderCodeForm; import com.alipay.global.api.response.AlipayResponse; public class AlipayApsPayResponse extends AlipayResponse { private String acquirerId; private Strin...
23.364407
63
0.650345
5f4481ead940b746083761efb470928394249341
16,976
package io.spring.redirect; import org.junit.Before; import org.junit.Test; import org.junit.Ignore; import org.springframework.mock.web.MockFilterConfig; import org.springframework.mock.web.MockHttpServletRequest; import org.springframework.mock.web.MockHttpServletResponse; import org.tuckey.web.filters.urlrewrite.Ur...
56.966443
197
0.710945
3796de71dda20fd9b289d57ecb7c7ad29f627621
866
package net.teamio.taam.util; import net.minecraftforge.fluids.FluidStack; import net.minecraftforge.fluids.capability.IFluidHandler; import net.minecraftforge.fluids.capability.IFluidTankProperties; /** * Fluid handler wrapper that only allows output into a given * {@link IFluidHandler}. Drain methods will always ...
22.789474
65
0.773672
06badb4c7d472d980d311e93d246b538dc7fd484
1,568
/* * JBoss, Home of Professional Open Source * Copyright 2014 Red Hat Inc. and/or its affiliates and other contributors * as indicated by the @authors tag. All rights reserved. */ package org.searchisko.doap.parser; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.openrdf.reposito...
30.745098
120
0.754464
4d4aba99a52f04da1dd2e1213ae7fb6dc52febfc
6,245
package com.sgitmanagement.expresso.util; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.List; import java.util.Properties; import javax.mail.Flags; import javax.mail.Flags.Flag; import javax.mail.Folder; import javax.mail.Message; import javax.mail.MessagingException; im...
29.597156
165
0.721217
0197acd913f462de1bde4daee5a77010ed591cb1
1,066
package com.example.config; import me.chanjar.weixin.mp.api.WxMpConfigStorage; import me.chanjar.weixin.mp.api.WxMpInMemoryConfigStorage; import me.chanjar.weixin.mp.api.WxMpService; import me.chanjar.weixin.mp.api.impl.WxMpServiceImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springfr...
30.457143
82
0.757036
16606ba296fe96a25b99207b92cae15a3ab10ff7
1,879
package com.stormpath.sdk; import com.stormpath.sdk.models.StormpathError; import org.junit.Test; import java.net.HttpURLConnection; import okhttp3.mockwebserver.RecordedRequest; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.Matchers.any; import static org.mockito.Mockito.mock...
33.553571
101
0.72166
42161ad64e2babe36f078dea112ec830d9cfc696
51
package p; class A{ int f; public static int g; }
10.2
21
0.666667
92647d371c836ca71f8cadd12859d681b6ec747f
415
package org.zzy.concurrent.chapter2; /** * Created by zhaoyu on 16-9-9. */ public class CountOperate extends Thread { @Override public void run() { System.out.println("this.isAlive() : " + this.isAlive()); } public static void main(String[] args) { CountOperate countOperate = new Cou...
23.055556
65
0.626506
0940921df8bc1ea6346a8f69eed5131c561b53c3
1,579
package com.google.android.gms.nearby.messages.internal; import android.os.IBinder; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.common.internal.safeparcel.SafeParcelable; import com.google.android.gms.nearby.messages.internal.zzc.zza; public final class UnpublishReque...
36.72093
184
0.747308
0fa334e3674931f744ecb0b16479859ab8c7caec
10,359
/* * Copyright 2013-2019 The OpenZipkin 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 applicable law or a...
39.090566
100
0.696013
6deae6115848ce72b29c1953907052d430e966a9
5,058
/* * Copyright 1999-2018 Alibaba Group Holding 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/licenses/LICENSE-2.0 * * Unless required by applica...
36.652174
139
0.641558