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
d9bfda9dc9aec856d359134ab05168045fd8f06a
853
/* * Copyright (c) Fundacion Jala. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for full license information. */ package org.fundacionjala.oblivion.navigator; import com.sun.source.tree.Tree.Kind; import javax.swing.tree.DefaultMutableTreeNode; /** * Base Implementa...
27.516129
140
0.754982
ee66c41aeea794d0f53ecf6dafafa242812243d7
6,719
package fr.free.nrw.commons.media; import io.reactivex.Single; import java.util.Map; import org.wikipedia.dataclient.mwapi.MwQueryResponse; import retrofit2.http.GET; import retrofit2.http.Query; import retrofit2.http.QueryMap; /** * Interface for interacting with Commons media related APIs */ public interface Medi...
44.496689
478
0.701146
42848e08f89c54c8a1c33ddda8c1689367775f2d
451
package edu.nju.githubstatistics; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * @author: Bright Chan * @date: 2021/4/1 16:56 * @description: GithubStatisticsApplication */ @SpringBootApplication public class GithubStatisticsApplicati...
23.736842
71
0.773836
ab0ad7a5e6b05545c8e04e558039c93984a0df5a
1,851
package com.timeyang.amanda.user.service; import com.timeyang.amanda.user.domain.Profile; import com.timeyang.amanda.user.domain.User; import com.timeyang.amanda.user.repository.ProfileRepository; import com.timeyang.amanda.user.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; ...
25.356164
76
0.69584
8877087625b46fe68f674e008eff268b4fb9d6d0
4,194
/* * 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 ...
35.542373
93
0.768002
e3364cdba1c3d52354197c2c48e45ea3b4cd178d
1,651
package main.tools; import java.io.File; import java.io.FileNotFoundException; import java.io.PrintWriter; /** <strong>Clean Printer</strong> * <p>Clean printer is a class to easily access the print function of System, * convert numbers from ugly long decimals to a limited amount, insert the * comma (,) for larg...
27.983051
103
0.682617
cef7efd03f1f2c37747aacd8d02f707d6d0e3e97
496
package org.csu.mypetstore.domain; public class Banner { private String favoriteCategory; private String bannerName; public String getFavoriteCategory() { return favoriteCategory; } public void setFavoriteCategory(String favoriteCategory) { this.favoriteCategory = favoriteCategory...
21.565217
62
0.689516
80cc266322d49ed061da7f52ca2b41c18244652f
6,108
/* Copyright 2008 - 2017 Hochschule Offenburg * For a list of authors see README.md * This software of HSOAutonomy is released under MIT License (see LICENSE). */ package hso.autonomy.agent.model.worldmodel.localizer.impl; import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.a...
31.484536
116
0.658317
724aa3282cf4e5c49b15034528d67f152521fccc
1,078
package com.tesco.crypt.kmip.ttlv.model.enums.enumerations; import com.tesco.crypt.kmip.ttlv.model.enums.ByteEnum; import java.math.BigInteger; public enum HashingAlgorithm implements ByteEnum<HashingAlgorithm> { MD2("1"), MD4("2"), MD5("3"), SHA_1("4"), SHA_224("5"), SHA_256("6"), SHA_38...
22.93617
70
0.595547
69b8e7ed586733b954e6845c20f5acfdc64ec4c3
142,070
package com.tatx.userapp.activities; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import android.annotation.TargetApi; import android.app.Activity; import android.app.Dialog; import android.app.Notification; import android.app.NotificationManager; import android.app.ProgressDial...
35.849104
527
0.622763
ec806c8b9253538930043f2afa2a5d731dd4845f
2,657
package es.tid.pce.client.tester; import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStreamWriter; import java.net.Inet4Address; import java.net.Socket; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.TimerTask; import org.slf4j.Logger; import org.slf4j.L...
31.258824
128
0.728641
9caaddddd92c8eeb13b1455b8906d28e9f968b3a
8,695
package org.mafagafogigante.labyrint.util; import org.mafagafogigante.labyrint.game.Name; import org.apache.commons.lang3.StringUtils; import org.apache.commons.math3.stat.descriptive.SummaryStatistics; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.List; /** * ...
34.641434
120
0.681196
331e8b6b895a86d22b766807ef31edc76fc22a3b
250
package se.kth.castor.user; import se.kth.castor.types.ImplInter; public class ImplInterSimpleCall3 { ImplInter var1 = se.kth.castor.types.Helper.publicImplInter(); public void m() { se.kth.castor.types.Concrete var2 = var1.getConcrete(); } }
22.727273
63
0.752
593570028ca8eb3368f0416343ef052c59bd9d46
4,940
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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...
33.378378
118
0.686235
5e285c8fec195fa830c6d0e531b11d7992d314a3
1,045
package com.cp.s2si.exception; import java.time.LocalDateTime; /** * * @author panther * */ public class JWTExpiredException extends Exception { private static final long serialVersionUID = 5372049449306522122L; private LocalDateTime expiredTime = null; private String subject = null; public JWTExpiredE...
20.096154
117
0.755981
7aa2cf7a89f3b9e21fa960208b81f87bb44ded89
2,738
package skyestudios.buildx.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.squareup.picasso.Callback;...
31.113636
131
0.692476
9e7ca7df440ec3ebe0e25bd24a57366c01efdeb6
2,075
// Licensed to Cloudera, Inc. under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. Cloudera, Inc. licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may not use this f...
35.169492
75
0.710843
3efcf7b09e3d0539627e452541c66aa159da1133
16,910
package com.softwareverde.bitcoin.app.android.adapter; import android.app.Activity; import android.content.res.Resources; import android.graphics.Color; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Text...
46.202186
181
0.715849
fd222534dc8ca5cdd00d5b36404171176bde4724
718
package com.SmartCity.tsp; public class SwapOperator { private int x; private int y; private double probability; private int opProb = 1; SwapOperator(int x, int y, double probability){ this.x = x; this.y = y; this.probability = probability; //this.opProb = opProb; } public int getX() { return x;...
15.276596
49
0.655989
1ed955c7bfcadd5674ac8ec647d3283fa7edce60
892
package group92.spectrangle.tests; import group92.spectrangle.board.Bag; import group92.spectrangle.board.Tile; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.Assertions.assertTrue; public class BagTest { @Test public vo...
22.871795
63
0.566143
552f0c7d393807cf6a83fca097654b491b531a8a
51,969
/* * generated by Xtext 2.9.1 */ package org.mobadsl.grammar.serializer; import com.google.inject.Inject; import java.util.Set; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.xtext.Action; import org.eclipse.xtext.Parameter; import org.eclipse.xtext.ParserRule; import...
38.840807
166
0.751121
be3ce7b24499ae3139e2c2a325bfc9aaa27aba15
2,314
package com.codineers.springopenapi.sample.complete; import com.codineers.springopenapi.sample.complete.model.ResponseWrapper; import com.codineers.springopenapi.sample.complete.model.User; import com.codineers.springopenapi.sample.complete.model.UserId; import org.springframework.http.HttpStatus; import org.springfra...
34.537313
104
0.722126
9d57788c914d1114694f6c50fc5f4a7fa9e18d4a
467
package com.mindasoft; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; @EnableEurekaClient // Eureka Client 标识 @SpringBootApplication public class SpringCloudEurekaClientProv...
31.133333
80
0.841542
9e071b277b2aab19e973c6a69f2874f0a8e4a3a2
1,294
package utils; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Iterator; public class CassConn { private static RoundRobin<Connection> connectionPool = new RoundRobin<Connection>(); private static Iterator<Connection> connections = connectionPool.iterator();...
28.755556
87
0.70711
7e8f1c52f3d658d87f8479fad4bf8399eeb38a80
843
package uk.ac.ebi.fgpt.zooma.exception; /** * An exception that is thrown whenever an attempt to load data into ZOOMA fails * * @author Tony Burdett * @date 04/10/12 */ public class ZoomaLoadingException extends Exception { public ZoomaLoadingException() { } public ZoomaLoadingException(String messag...
26.34375
80
0.625148
2c460254567b16b94558456bc181c78db2f117bf
10,022
package com.hedera.mirror.importer.parser.record.entity.sql; /*- * ‌ * Hedera Mirror Node * ​ * Copyright (C) 2019 - 2020 Hedera Hashgraph, 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...
35.288732
120
0.709539
95ae94ed1e0e0f4640794bd8bb61caa19d5e8025
474
package com.google.api.client.http; import com.google.api.client.util.Beta; @Beta public interface HttpBackOffUnsuccessfulResponseHandler$BackOffRequired { HttpBackOffUnsuccessfulResponseHandler$BackOffRequired ALWAYS = new HttpBackOffUnsuccessfulResponseHandler$BackOffRequired$1(); HttpBackOffUnsuccessfulRespo...
39.5
139
0.85865
e983a0459b854a7ab0dd8f5caa5be99e38fb94d8
5,898
/* * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
38.298701
110
0.747202
56a3f0ae5af34b71baa78b71f44bc7292dd4b36a
3,380
/* * #%L * fujion * %% * Copyright (C) 2021 Fujion Framework * %% * 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 requ...
34.845361
142
0.676331
b2ab6124c3952b41026cb31d40c1e9b47c155dbf
1,081
package com.charleskelly.magic.puzzles.sudoku.pairs; import com.charleskelly.magic.puzzles.cubes.MagicCube; import com.charleskelly.magic.tuple.coordinates.CellCoordinates; /** * Created by Charles on 9/27/2016. */ public class SudokuCoordinatesContentsPair { private CellCoordinates cellCoordinates; ...
27.025
112
0.66235
32092f89c2a1f798da726aea103405a0271060c4
1,128
package ${package}; import java.util.List; #if ($mode == "server") import java.util.UUID; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Transient; #end #if ($mode == "client") import com.fasterxml.jackson.databind.annotation.JsonDeserialize; #end import com.graphql_...
33.176471
154
0.753546
1a55e3bebcd1ca1c92e26dd693b7c846cb18aa99
3,285
/** * The MIT License * Copyright (c) 2014-2016 Ilkka Seppälä * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, c...
32.524752
80
0.716591
dd8e733ec416a04e36d80364d3098ee3599f2298
6,732
package depspace.extension; import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import bftsmart.tom.core.messages.TOMMessageType; import depspace.general.Context; import depspace.general.DepSpaceException; import depspace.general.DepSpaceOperation; import depspace.gener...
31.905213
138
0.748515
3bf2228204714226867bdda1390fbc4a1fbeb630
753
package Chapter03.P70_FindFirstAndLastDayOfMonth.src.modern.challenge; import java.time.DayOfWeek; import java.time.temporal.ChronoField; import java.time.temporal.ChronoUnit; import java.time.temporal.Temporal; import java.time.temporal.TemporalAdjuster; public class NextSaturdayAdjuster implements TemporalAdjuster ...
26.892857
82
0.714475
4f3f11905924aefc52fdd854511a6d60d8cedb16
3,061
// 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...
35.593023
99
0.709245
acd261d9b2e7e14aaca763a44a4a37ce92fa4151
7,095
package tests.restapi.in_app_purchases; import java.io.IOException; import org.apache.commons.lang3.RandomStringUtils; import org.apache.wink.json4j.JSONArray; import org.apache.wink.json4j.JSONException; import org.apache.wink.json4j.JSONObject; import org.testng.Assert; import org.testng.annotations.AfterT...
49.270833
210
0.765891
1c38a9abcc398b75679022c12000e4cb965c2da2
12,817
/* * Copyright (C) 2012-2015 DataStax 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 app...
37.80826
120
0.624171
a0e8d0aebcafb03dccf8c595b428f5591e309b43
4,707
package com.som_service.pdfreader.textobject; import tech.utilis.common.lang.StringUtils; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.List; import java.util.Map; import java.util.TreeMap; /** * * @author Eugene Dementiev */ public class Text...
25.306452
124
0.642872
7ab307d81b6d881c35c31fdec27fbe082d5cd74d
1,794
package com.backpackcloud.papi.hateoas.impl; import com.backpackcloud.papi.hateoas.ApiCollectionModel; import com.backpackcloud.papi.hateoas.ApiLink; import com.backpackcloud.papi.hateoas.ApiModel; import com.backpackcloud.papi.hateoas.LinkMapper; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterx...
25.267606
68
0.704571
b0292c779de013410bdf5edba1d826303d26272d
378
package com.hiyouka.source.aop; import com.hiyouka.source.code.BaseUtil; import org.slf4j.Logger; import org.springframework.stereotype.Component; /** * @author hiyouka * @since JDK 1.8 */ @Component public class AopTest2 { private Logger logger = BaseUtil.getLogger(getClass()); public void testIntercept...
18.9
59
0.716931
9fc334d2d688939475ee461e37af742355d47742
553
package com.liuscoding.springcloud; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; /** * @className: SentinelApplication8041 * @description: * @author: liusCoding * @cr...
26.333333
72
0.792043
0a7fab9ced7c2df33f786c920517750df050bb53
349
//,temp,AbstractJavaKeyStoreProvider.java,161,167,temp,DeleteCompletionCallback.java,40,48 //,3 public class xxx { @Override public void processResult(CuratorFramework client, CuratorEvent event) throws Exception { if (LOG.isDebugEnabled()) { LOG.debug("Delete event {}", event); } even...
24.928571
90
0.69341
0e8b07dc21a89e4109bd4dabb16895fef16ca2ff
10,942
/* * MIT License * * Copyright (c) 2018 i4one Interactive, LLC * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to us...
36.231788
403
0.746481
2a42dc9a092b9fbca03fccfc96fcd4d441c0c908
4,849
package io.lindstrom.mpd.support; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.databind.DeserializationContext; import com.fasterxml.jackson.databind.JsonDeserializer; import java.io.IOException; import java.time.Duration; import java.time.format.DateTimeParseException; import java.util....
34.390071
112
0.573108
9b9fcc32d60e571736e4f9b8d91cb746ec1e9beb
1,759
/* * Copyright 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
33.826923
108
0.757248
0c8f82aac0e708433b388a487f2994fb6412671e
1,551
// we only need to reverse 'D' substrings public class Solution { public int[] findPermutation(String s) { int n = s.length() + 1; int[] res = new int[n]; for (int i = 0; i < n; i++) res[i] = i + 1; for (int i = 0; i < n-1; i++) { int j = i; while (i < n-1 && ...
29.826923
89
0.373308
22fe4403841307ffd73f0e59e045622af3bd2082
475
package com.atguigu.gmallpublishertest; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication @MapperScan(basePackages = "com.atguigu.gmallpublishertest.mapper") public class Gmall...
31.666667
73
0.818947
e6c12571ca7b640861283a90d84ec3130dd65c5b
1,786
package com.wix.reactnativeuilib.keyboardinput; import android.app.Application; import com.facebook.react.ReactPackage; import com.facebook.react.bridge.JavaScriptModule; import com.facebook.react.bridge.NativeModule; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.uimanager.ViewMa...
35.72
105
0.760918
6c88bd5d95a59831b78a0b6b977cb2b4c7b8c855
5,354
package io.choerodon.test.manager.api.controller.v1; import java.util.ArrayList; import java.util.List; import java.util.Optional; import io.choerodon.core.iam.ResourceLevel; import io.choerodon.test.manager.api.vo.TestCycleCaseVO; import io.swagger.annotations.ApiOperation; import org.hzero.starter.keyencrypt.core.E...
49.574074
134
0.677811
1acb0299699942697355a1b527cd878f64e03b0b
968
package com.vladsch.flexmark.test; import com.vladsch.flexmark.ast.util.TextCollectingVisitorTest; import com.vladsch.flexmark.parser.internal.HtmlDeepParserTest; import org.junit.runners.Suite; @org.junit.runner.RunWith(Suite.class) @Suite.SuiteClasses({ AbstractVisitorTest.class, DelimitedNodeTest.c...
31.225806
63
0.729339
0d0b94de2e1ec3e89111537af6b96afa6ddfcd61
2,030
/* * JFLAP - Formal Languages and Automata Package * * * Susan H. Rodger * Computer Science Department * Duke University * August 27, 2009 * Copyright (c) 2002-2009 * All rights reserved. * JFLAP is open source software. Please see the LICENSE for terms. * */ package edu.duke.cs.jflap.pumpin...
21.145833
118
0.585222
dff6f257fc8e6e1aa2f072dfb915f0806533642c
2,307
package com.acmerobotics.dashboard.canvas; import java.util.ArrayList; import java.util.List; public class Canvas { private List<CanvasOp> ops; public Canvas() { ops = new ArrayList<>(); } public Canvas strokeCircle(double x, double y, double radius) { ops.add(new Circle(x, y, radius...
28.481481
157
0.60945
412fb47b9ec9667a958b395a6a925a4890346f06
4,190
package org.graylog2.gelf4j.cb; import java.io.IOException; import java.net.SocketException; import java.net.SocketTimeoutException; import java.net.URISyntaxException; import java.net.UnknownHostException; import java.util.EnumSet; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; i...
29.507042
110
0.688544
597a6bfcba0b40596db9f21afa778e0abfc047af
534
package com.tony.popwindow.entity; /** * Created by tonycheng on 2015/9/19. */ public class ProvinceList { private String province_id; private String province_name; public String getProvince_id() { return province_id; } public void setProvince_id(String province_id) { this.provi...
20.538462
56
0.67603
69bb6b1aa440ed9c921c5c16de9f299a5bebe4dc
1,096
package io.github.sdacode; import com.amazonaws.services.secretsmanager.AWSSecretsManager; import com.amazonaws.services.secretsmanager.model.GetSecretValueRequest; import com.amazonaws.services.secretsmanager.model.GetSecretValueResult; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; impor...
36.533333
100
0.757299
f7e96e6c90f3233a1d900d99224fbe40ef075e71
4,290
package fi.om.municipalityinitiative.service.email; import com.google.common.collect.Lists; import com.mysema.commons.lang.Assert; import fi.om.municipalityinitiative.conf.EnvironmentSettings; import fi.om.municipalityinitiative.dao.EmailDao; import fi.om.municipalityinitiative.util.EmailAttachmentType; import freemar...
34.878049
107
0.652448
9cbd3e8adc0451913211154b04b440bedce108fe
4,459
/* * Copyright (C) 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 applicab...
34.565891
118
0.74658
377d37a48f67dc404aad5fb83a09379c42b3287e
1,314
/* Copyright 2018, Infor 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 writing, so...
27.957447
74
0.758752
55ae724a099218b20adb7aac994c7be7e64c6e6b
17,228
package com.fitpay.android.paymentdevice.impl.ble; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; import android.bluetooth.BluetoothGattCallback; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattDescriptor; import android.bluetooth.Bluetooth...
43.725888
154
0.588112
450c0d9bc72d930e7b3abbd872ff16bd2d3474ae
1,262
package classify.tree; import tools.TreeNode; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public class BinaryTreeInorderTraversal { /** * Recursive Approach * T(n) = O(n) 0ms 100.00% * S(n) = O(log n) 36.1MB 75.34% */ public List<Integer> inorder...
23.37037
59
0.517433
0ec338950bab4f686567fece5240672376bea600
1,575
package com.terwergreen.test; import com.terwergreen.dao.IUSerDao; import com.terwergreen.io.Resources; import com.terwergreen.pojo.User; import com.terwergreen.sqlsession.SqlSession; import com.terwergreen.sqlsession.SqlSessionFactory; import com.terwergreen.sqlsession.SqlSessionFactoryBuilder; import org.junit.Test;...
30.882353
101
0.712381
b2b21448789f99691b1faf3412381e8de212b1ba
667
package com.sds3.dsvendas.dto; import com.sds3.dsvendas.entities.Seller; import java.io.Serializable; public class SaleSumDTO implements Serializable { private static final long serialVersionUID = 1L; private String name; private Double sum; public SaleSumDTO() { } public SaleSumDTO(Seller...
18.027027
52
0.62069
8ee076d24d0f5547b1ca17882c0ca7c582244919
14,897
/* * 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")...
34.011416
201
0.579848
a84e463e6b56fd59074be6f3a2a993750dafb78b
1,287
package lejos.nxt.startup; import lejos.nxt.LCD; /** * Abrams version of a more detailed GraphicMenu for the file menu. * * @author Abram Early * */ public class GraphicListMenu extends GraphicMenu { public GraphicListMenu(String[] items, String[] icons) { super(items, icons, -1); } @Override protecte...
24.75
80
0.665113
047e92bb9c35c3b5b0678833632e1480732cc432
1,435
package nl.jqno.equalsverifier.internal.prefabvalues; import java.util.HashMap; import java.util.Map; /** Contains a cache of prefabricated values, for {@link PrefabValues}. */ class Cache { @SuppressWarnings("rawtypes") private final Map<TypeTag, Tuple> cache = new HashMap<>(); /** * Adds a prefab...
31.195652
99
0.644599
4ec907e8c29465cbe580d50c52b0e3f3698cf899
943
package com.arhohuttunen.junit5; import java.math.BigDecimal; public class ProductBuilder { private Long id = 1L; private String name = "Some product"; private BigDecimal price = BigDecimal.valueOf(5.0); public static ProductBuilder aProduct() { return new ProductBuilder(); } public ...
23
55
0.626723
cd9dea4a5976b88685f549f04525ec25abb0be48
3,381
package de.b4.fbc.service; import javax.enterprise.context.ApplicationScoped; import de.b4.fbc.model.Plan; import de.b4.fbc.model.Target; @ApplicationScoped public class TargetService { public Target getTarget(Integer day, Plan theplan, Boolean noTraining) { if (day < 1 || day > plan.length || theplan.g...
32.509615
78
0.546288
7b816f192f0bb899c0e4efec53779f99cf2b5ac4
2,419
package todomvc.smoketests; import net.serenitybdd.core.environment.EnvironmentSpecificConfiguration; import net.serenitybdd.junit5.SerenityJUnit5Extension; import net.serenitybdd.screenplay.Actor; import net.serenitybdd.screenplay.abilities.BrowseTheWeb; import net.serenitybdd.screenplay.actions.Open; import net.sere...
34.557143
114
0.726333
aee68ef8f30926dcd6f351caec556a7d0cf1ee66
4,248
/******************************************************************************** * Copyright (c) {date} Red Hat Inc. and/or its affiliates and others * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * http://www.apache.o...
55.168831
323
0.697505
6ca96e43263cff2242e7e4967504ee99f24018a7
1,679
package cellsociety_team03; import java.util.*; public class AntCell extends Cell{ private int homepheromones=100; private int foodpheromones=100; private List<AntAnimal> ants; private boolean foodsource; private boolean ishome; private int myfoodpmax; private int myhomepmax; private String ANT="ant"; priv...
17.489583
44
0.705777
ee0a252a40441f5e709e4743c914c1595f551008
3,418
/* * 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 ...
37.56044
123
0.691633
557ba52f6cdd28475cc8e9c606ddc7728533cb01
490
package com.sark110.sarkplotsandroid; import android.os.Bundle; import android.preference.PreferenceFragment; /** * SARK Plots for Android software * * @author EA4FRB - Melchor Varela <melchor.varela@gmail.com> * Copyright 2018 */ public class DefaultPreferenceFragment extends PreferenceFragment { @Override...
24.5
67
0.759184
1ace4bcb7b766a68361d5f0b604e0affff91e8ff
1,354
package com.github.lany192.arch.items; import android.content.Context; import androidx.annotation.LayoutRes; import com.chad.library.adapter.base.entity.MultiItemEntity; import com.chad.library.adapter.base.viewholder.BaseViewHolder; import com.elvishew.xlog.Logger; import com.elvishew.xlog.XLog; public abstract cl...
20.208955
66
0.629985
de4a34cdc9777e8cb325f07b0684fb1189f06578
775
package uk.gov.hmcts.lifeevents.client.service; import uk.gov.hmcts.lifeevents.client.api.DeathApiClient; import uk.gov.hmcts.lifeevents.client.model.V1Death; import java.time.LocalDate; import java.util.List; import org.springframework.stereotype.Service; @Service public class DeathService { private final Dea...
27.678571
111
0.769032
9465771d51ac1e9a6f79587f40d61e870b7600d2
9,584
package com.fdzc.oracle0.dao; import com.fdzc.oracle0.bean.Game; import com.fdzc.oracle0.bean.User; import com.fdzc.oracle0.bean.UserType; import com.fdzc.oracle0.utils.DBUtils; import oracle.jdbc.OracleCallableStatement; import org.springframework.stereotype.Repository; import java.sql.*; import java.util.ArrayList;...
32.26936
110
0.506782
c0b96c13665bc2f0fd8489435147b321555ea1bf
2,622
/*============================================================================== 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...
32.37037
141
0.630435
d9b31192eb549c30bf6b6f4b121bb1efffc51830
144
import javax.ws.rs.GET; import javax.ws.rs.Path; @Path("secure") public class SecuredResource { @GET public void securedMethod(){ } }
11.076923
30
0.6875
74deeeb9002f34c5fc377e0520119c7a299b1ef9
989
package com.whcm.report.mapper; import com.whcm.report.domain.Banner; import java.util.List; /** * 轮播图 数据层 * * @author dong.chao * @date 2019-03-28 */ public interface BannerMapper { /** * 查询轮播图信息 * * @param bannerId 轮播图ID * @return 轮播图信息 */ public Banner selectBannerById(Integer b...
15.951613
53
0.571284
feac513c1d7170149d4fdcf7c9547cc08c61ea04
1,558
package br.copacabana.cache; import java.io.Serializable; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; import br.com.copacabana.cb.entities.MealOrder; import br.com.copacabana.cb.entities.Restaurant; import com.google.appengine.api.datastore.Key; publi...
25.540984
84
0.700257
77f1ad8113d5a903de2b844c537676b8d97ad695
2,345
package pl.dawidgdanski.tictactoe.ui.dialog; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.v4.app.DialogFragment; import android.view.View; import butterknife.Bind; import b...
34.485294
121
0.686141
cc78ba9a31507d96b6020e8ad23ca0025d95499d
1,815
package com.example.super_power_naps.Room_Database; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.example.sup...
26.691176
88
0.66832
3788b1d73cd62cd7b8d8938c328161ff613ce55d
3,194
package com.flipkart.android.proteus.support.parser; import android.content.res.ColorStateList; import android.graphics.drawable.Drawable; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import com.flipkart.android.proteus.ProteusContext; import com.flipkart.an...
35.098901
125
0.688478
baf5dd469fae606d1d024904c0acf530c61af4eb
1,024
package ru.sdroman.carsales.repository; import ru.sdroman.carsales.models.Engine; import java.util.List; /** * @author sdroman * @since 06.2018 */ public class EngineRepository extends Repository { /** * Returns list of engine. * * @return List */ public List<Engine> getEngines() { ...
23.272727
127
0.608398
3db11213a022b10280735ba885481f3cca7fa68e
2,273
package pl.wcislo.sbql4j.typecheck; import static pl.wcislo.sbql4j.typecheck.TypeCheckTestUtils.checkCard; import static pl.wcislo.sbql4j.typecheck.TypeCheckTestUtils.checkValueType; import org.testng.annotations.BeforeClass; import org.testng.annotations.BeforeGroups; import org.testng.annotations.BeforeTest;...
31.569444
76
0.763748
77b51be2dfb1c9a50849b1c729a12ac79590b60c
824
package com.syqu.shop.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import com.syqu.shop.object.Order; import com.syqu.shop.object.OrderProduct; @Repository public interface OrderProduc...
34.333333
163
0.790049
bf99714abd088a82a3d1984bf9a01a5db6923b54
2,097
/* Copyright (c) 2014 OpenJAX * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distr...
33.822581
88
0.661898
c86483316080f1e649efee3ccb60f7eb6ca5eb51
10,639
package com.capitalone.dashboard; import java.util.*; import com.capitalone.dashboard.model.ScoreWeight; import org.apache.commons.collections.CollectionUtils; import com.capitalone.dashboard.model.score.settings.ScoreThresholdSettings; import com.capitalone.dashboard.model.score.settings.ScoreTypeValue; import com....
34.881967
167
0.69734
c9aab9db3b113cee76b7167fb0c0074594d79ff8
1,690
// Copyright (c) FIRST and other WPILib contributors. // Open Source Software; you can modify and/or share it under the terms of // the WPILib BSD license file in the root directory of this project. package frc.robot.commands.Shooting; import edu.wpi.first.wpilibj2.command.ParallelCommandGroup; import edu.wpi.first.w...
35.208333
113
0.737278
eceb37752fc8c267315a6428510c534ac0917da8
7,664
package org.deeplearning4j.optimize; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.deeplearning4j.nn.NeuralNetwork; import org.deeplearning4j.nn.NeuralNetwork.LossFunction; import org.deeplearning4j.nn.NeuralNetwork.OptimizationAlgorithm; import org.deeplearning4j.nn.gradi...
29.030303
162
0.629958
1e5d1c413c66bf48534dc1dd900ad0c8b0a9fe94
14,535
/*####################################################### * * Maintained by Gregor Santner, 2017- * https://gsantner.net/ * * License of this file: Apache 2.0 (Commercial upon request) * https://www.apache.org/licenses/LICENSE-2.0 * #########################################################*/ package ne...
47.5
189
0.6
292d0eb11505008bb205385bce4be6b9c77c09fe
15,489
package com.brightsight.signing; import androidx.annotation.Keep; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import org.bouncycastle.asn1.ASN1Encodable; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1InputStream; import org.bouncycastle.asn1.ASN1Intege...
40.231169
103
0.585383
11766087c7c1d3345482ea85e57c33a5aaaa6dc1
1,049
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: globalLockQueryRequest.proto package io.seata.serializer.protobuf.generated; public interface GlobalLockQueryRequestProtoOrBuilder extends // @@protoc_insertion_point(interface_extends:io.seata.protocol.protobuf.GlobalLockQueryRequestProto) ...
41.96
113
0.79123
8843c228e4257c5dacd5c3dd183d94d347beb803
1,236
import java.util.ArrayList; import java.util.List; /** * * @author surajs */ public class Cup { List<Die> dice = new ArrayList<>(); Cup() { for (int i = 0; i < 6; i++) { Die d = new Die(1); dice.add(d); } for (int i = 0; i < 4; i++) { Di...
17.657143
58
0.351942
74b0c69f8e83235592642205bf5c8f76a7e3becb
1,910
package com.redhat.idaas.datasynthesis.services; import java.util.Arrays; import java.util.List; import javax.inject.Inject; import javax.transaction.Transactional; import com.redhat.idaas.datasynthesis.models.DataGeneratedAddressesEntity; import com.redhat.idaas.datasynthesis.dtos.NameLast; import org.junit.jupite...
32.372881
106
0.70733
8605124c96be2e1c5a71d02d15c6fd04c09aeed3
2,393
package org.axesoft.jaxos; import com.google.protobuf.ByteString; import io.netty.util.CharsetUtil; import org.axesoft.jaxos.algo.Event; import org.axesoft.jaxos.algo.Instance; import org.axesoft.jaxos.logger.InstanceValueRingCache; import org.junit.Test; import java.util.List; import static org.junit.Assert.assertE...
28.152941
123
0.5771
a48829e9b6d908f20e2e5a431bacc2d186a63552
467
package com.ruoyi.web.wexin.jwt; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * 用于跳过token的验证 */ //{ElementType.METHOD用于的方法的注解目标 //{ElementType.TYPE用于类,接口,枚举,注解的注解目标 @Target({ElementType.METHOD,Ele...
25.944444
61
0.800857
b550c6f9bdaca7e0db916a4470cc7275e0222c3f
2,056
package com.learn.code.linkedlist; /** * https://leetcode.com/problems/palindrome-linked-list/ */ public class PalindromeLinkedList { public static void main(String[] args) { ListNode six1 = new ListNode(1); ListNode five1 = new ListNode(2, six1); ListNode four1 = new ListNode(3, five1);...
27.413333
67
0.508755
e4fc5cda1b264e6370546c487372e78e639249c0
452
/* Desenvolvido pelo Laboratório de Segurança em Computação (LabSEC) do Departamento de Informática e Estatística (INE), da Universidade Federal de Santa Catarina (UFSC). Apoio: Colégio Notarial do Brasil (CNB) e Instituto Nacional de Tecnologia da Informação (ITI). */ package br.ufsc.labsec.signature.conformanceV...
25.111111
117
0.776549
641bbb81857d2da6b9c0ee3b86962049b9e3766e
1,349
package com.box.boxjavalibv2.requests; import com.box.boxjavalibv2.IBoxConfig; import com.box.boxjavalibv2.jsonparsing.IBoxJSONParser; import com.box.restclientv2.RestMethod; import com.box.restclientv2.exceptions.BoxRestException; import com.box.restclientv2.requestsbase.BoxDefaultRequestObject; import com.box.restcl...
28.702128
139
0.661231
092dd8ecbb50f0940b1b997604eafac7ca5d6136
139
package com.chanpreet.AbstractShapeProg; public class Trapezoid extends Shapes { @Override int numberOfSides() { return 4; } }
11.583333
40
0.719424