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
dc493b29b41ed96f795246be72934434e9ef30d6
2,210
package kata.java; import java.util.HashSet; import java.util.Set; public class Calculator { private static final Set<Character> OPERATORS = new HashSet<Character>() {{ add('+'); add('-'); add('*'); add('/'); }}; public static double calculate(String source) {...
23.763441
80
0.460181
c3281cc541d8bce403b05e2e8561a424f15845ea
1,354
/* * Copyright 2022 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 applic...
29.434783
79
0.733383
59371ccaef154869f7d1f167c4bb65bc388c7549
3,434
package com.matez.wildnature.blocks.boundingboxes; import net.minecraft.util.math.shapes.VoxelShape; import java.util.ArrayList; import java.util.List; public class WeaponsRackBB extends IBoundingBox{ @Override public boolean isSided(){ return true; } @Override public VoxelShape getSout...
41.878049
84
0.589109
d18bfc5b6d9428ad28865355480eec3bf5ddacb7
1,023
package io.renren.modules.sys.service.impl; import org.springframework.stereotype.Service; import java.util.Map; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import io.renren....
34.1
130
0.776149
0e94eded862f9c12355f199cc93d2e51b70d064e
1,225
/* * Copyright (c) 2016 Qiscus. * * 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...
29.166667
91
0.734694
88cf8b0c533763288d6aa3c19ce8540d0e6902e4
441
package com.example.esdemo.repository; import com.example.esdemo.dto.Commodity; import org.springframework.data.elasticsearch.repository.ElasticsearchRepository; import org.springframework.stereotype.Repository; /** * @author liubiao * @descrition 这里的Repository相当于DAO,操作mysql还是elasticsearch都是一样的 * 这里是interface ,具...
24.5
88
0.829932
3d46e712ddc095b9fb77c542cd8f04291e2180c6
1,126
package it.unibz.inf.ontouml.vp.model.ontouml.serialization; import static it.unibz.inf.ontouml.vp.model.ontouml.serialization.Serializer.writeNullableReferenceField; import com.fasterxml.jackson.core.JsonGenerator; import com.fasterxml.jackson.databind.JsonSerializer; import com.fasterxml.jackson.databind.Serializer...
38.827586
105
0.791297
1d46e5547d94e59b71ee06ca4fca6079447945b7
222
package cs.f10.t1.nursetraverse.logic.commands.visit; /** * Enum of keys that VisitTaskUpdatesMultimap uses to differentiate "Finish" and "Unfinish" changes */ enum VisitTaskUpdatesMultimapKeys { FINISH, UNFINISH }
24.666667
99
0.774775
5ae913f7e3c268c792967ba66afffb381a6978d7
556
package org.jsoftware.tjconsole.command.definition; import org.junit.Assert; import org.junit.Test; import java.util.List; public class InvokeOperationCommandTest { @Test public void testSplit1() { String input = "Abc, \"as,c\", \"as \", dd"; List<String> params = InvokeOperationCommandDef...
25.272727
78
0.656475
cdada41b9235e4bef1266fceba1e9a7654765332
349
package org.openecomp.sdc.asdctool.impl.validator.tasks.artifacts; import javax.annotation.Generated; import org.junit.Test; import org.openecomp.sdc.be.dao.jsongraph.GraphVertex; public class ServiceArtifactValidationTaskTest { private ServiceArtifactValidationTask createTestSubject() { return new ServiceArtif...
20.529412
66
0.819484
d9a877bb80b05df893fc009b669742ddf2b5e2cc
2,897
package net.wytrem.glmario.utils; import static org.lwjgl.opengl.GL20.glUniformMatrix4fv; import java.nio.FloatBuffer; import java.util.Stack; import org.joml.Matrix4f; import org.lwjgl.BufferUtils; import net.wytrem.glmario.gl.shaders.ShaderProgram; public class MatrixStack { private static final Stack<Matri...
21.459259
103
0.587849
0f02fa4623e655172e195caa59471ddc564fb153
318
package com.sleuth.core.storage; public interface Storage { /** 根据familyName获得一组数据 * * @param familyName * @return */ public abstract <K, V> StoreResult<K, V> get(String familyName); /** 根据key获得数据 * * @param key * @return */ public abstract <V> V get(String familyName, String key); }
14.454545
65
0.638365
7170c1e3479aa800adb9e9ca94495f70d267995b
3,535
/* * 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 ...
46.513158
123
0.743423
ddc99b37f1c20ab7d819813d8bc88cf1cd2730ff
576
package com.redescooter.ses.web.ros.dao.base; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.redescooter.ses.web.ros.dm.OpeSysRoleData; import java.util.List; import org.apache.ibatis.annotations.Param; public interface OpeSysRoleDataMapper extends BaseMapper<OpeSysRoleData> { int updateBatch(...
32
74
0.798611
af0fa04fe596e936c41f7ee54f2f52765939ff87
858
package com.mb.controller; import com.mb.service.UserService; import lombok.AllArgsConstructor; import org.springframework.http.HttpEntity; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.w...
33
86
0.81352
7f1496e452454dee8c05464344e665cc38b995e2
1,758
/* * (c) 2018-2019 Charles-Philip Bentley * This code is licensed under MIT license (see LICENSE.txt for details) */ package pasa.cbentley.jpasc.pcore.pages; import java.util.List; import pasa.cbentley.jpasc.pcore.ctx.PCoreCtx; import pasa.cbentley.jpasc.pcore.rpc.model.Account; import pasa.cbentley.jpas...
30.842105
92
0.638794
c227230608316d6a236e35063309c8c0bc6bb0f5
470
public class ElectronicsItem extends InventoryItem { protected double weight; private static final double SHIPPING_COST = 1.5; public ElectronicsItem (String nameIn, double priceIn, double weightIn) { super(nameIn, priceIn); weight = wei...
21.363636
65
0.565957
8c88c56d29f00dfad137b460568b9df18b2a3dc8
4,249
package me.weishu.epic.samples; import android.app.Activity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.BaseExpandableListAdapter; import android.widget.Button; import android.widget.ExpandableListAdapter; import android.widget.Expa...
32.684615
129
0.629795
ee27d0a6ea8716e7c31e1d41ef3a1de9e8cf7b06
2,490
package com.valhallagame.ymer.controller; import com.fasterxml.jackson.databind.JsonNode; import com.valhallagame.common.JS; import com.valhallagame.inventoryserviceclient.InventoryServiceClient; import com.valhallagame.inventoryserviceclient.message.AddInventoryItemParameter; import com.valhallagame.inventoryservicec...
48.823529
183
0.808835
435d7ee420fde0131253225477553ca20c824969
10,242
/** * */ package com.transcend.rds.worker; import java.util.ArrayList; import java.util.List; import org.dasein.cloud.CloudProvider; import org.dasein.cloud.network.Firewall; import org.dasein.cloud.network.FirewallSupport; import org.dasein.cloud.network.NetworkServices; import org.hibernate.Session; import org.sl...
36.974729
130
0.733548
bba0ce4250c03bad094462bfd568984841a7a7d8
604
package ec.blaze.wscore; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration; import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration; import org.sp...
35.529412
89
0.850993
885a5eb526f733e5e75fcbec4f3f280cf33d6442
977
package org.jmisb.api.klv.st0808; /** * Text identifier for the source of a message (ST 0808 Tag 4). * * <p>The Ancillary Text Creator element contains the Natural Text identifying the source of the * message, for example the name of a chat room or the type of the text message * * <p>This element is free text,en...
27.914286
96
0.669396
82fd738771730b4c6090e2f12c3d4acf189f9872
744
package io.dropwizard.jersey.validation; import io.dropwizard.jersey.jackson.JacksonMessageBodyProviderTest; import io.dropwizard.validation.ValidationMethod; import org.assertj.core.util.Strings; import org.hibernate.validator.constraints.NotEmpty; import javax.ws.rs.QueryParam; public class SubBeanParameter extend...
28.615385
90
0.758065
02874164751b88ae5bb80a24bdd59b5ce075386e
217
package ro.ase.csie.cts.g1092.seminar1.exceptions; public class IllegalTransferException extends Exception{ public IllegalTransferException(String msg) { super(msg); } public IllegalTransferException() { } }
19.727273
56
0.78341
dc628ee6c0b70f358879d12945348efcae02ebb5
400
package cat.nyaa.rpgitems.minion.power.condition; import cat.nyaa.rpgitems.minion.MinionExtensionPlugin; import org.bukkit.NamespacedKey; import think.rpgitems.power.cond.BaseCondition; public abstract class ExtBaseCondition<T> extends BaseCondition<T> { @Override public NamespacedKey getNamespacedKey() { ...
30.769231
74
0.7875
09ebc2bf4c0fe91c221ac4d99920e6b1926fd0b8
3,766
package com.app.qunadai.content.model.v5; import com.app.qunadai.bean.base.BaseBean; import com.app.qunadai.bean.v5.ExploreBean; import com.app.qunadai.content.base.BaseReturnListener; import com.app.qunadai.content.contract.v5.ExploreContract; import com.app.qunadai.http.ApiException; import com.app.qunadai.http.RxHt...
33.035088
91
0.561073
2e79ef7f7d945b9f28d4859c29650506d5d3b8a0
1,023
package com.example.problem.model; import javax.validation.constraints.Email; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; public class CreatePerson { @NotNull @Email private String email; @NotBlank private String firstName; @NotBlank private String lastName; ...
22.733333
92
0.667644
b2a901ede5241f75e2aac007c38cf2da3529760e
2,070
package cc.mrbird.febs.blog.service.impl; import cc.mrbird.febs.blog.entity.BUser; import cc.mrbird.febs.blog.dao.BUserMapper; import cc.mrbird.febs.blog.service.IBUserService; import cc.mrbird.febs.common.domain.QueryRequest; import lombok.Data; import org.springframework.stereotype.Service; import org.springframewor...
30
98
0.744444
010319bc63e0c95c156182f48d9cf96d3c08ef08
1,682
/* * Copyright 2002-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
39.116279
86
0.824019
99802fba3b54fa1cb6692bd29008a57c0dd1be39
2,893
/* GNU LESSER GENERAL PUBLIC LICENSE Copyright (C) 2006 The Lobo Project This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your ...
25.830357
90
0.679917
44b35c1850abdb6ca29628f5bafde070070a6be1
2,164
package sh.okx.sql; import sh.okx.sql.api.Connection; import sh.okx.sql.api.PooledConnection; import sh.okx.sql.api.SqlException; import java.sql.DriverManager; import java.sql.SQLException; public class ConnectionBuilder { // jdbc:mysql://localhost/ private String host = "localhost"; private int port = ...
25.162791
92
0.584104
46949f8d8f163205903384052ab9f2b73ff706aa
5,812
package id.franspratama.geol.integration; import java.io.File; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; import javax.annotation.PostConstruct; import org.apa...
35.439024
112
0.638162
29a6e0ea5fb505639ac983df82c603e69d9cb7fc
525
package com.frogobox.dagger.java; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import com.frogobox.dagger.R; public class JavaMainActivity extends AppCompatActivity { private Car car; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(sa...
21.875
64
0.72381
6396d50575f674ffa7a00012d5c6aef11182ff3e
5,568
/* * Copyright 2021 Alexis Armin Huf * * 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 appli...
51.555556
101
0.676365
fe38aadf6e3d77a0ce58562139cdb1994140ad2f
1,268
package org.game; import java.util.ArrayList; public class Ship { private int length; private ArrayList<Cell> decks; public Ship(int length) { this.length = length; decks = new ArrayList<>(); } public Ship(Cell ... decks) { this.length = decks.length; this.decks =...
20.451613
81
0.527603
2e6902c2c5ac9d2e6f3ae09e1b0387d560570cd8
3,618
package com.ripstech.api.utils.scan.result; import com.ripstech.api.utils.constant.Severity; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import java.util.*; public class ScanResult { private final static String TOTAL_ISSUE_STATS = "total"; private final static String NEW_I...
36.918367
103
0.745163
729ba5a29219ec2fd7d9e736f6b264a376182301
423
package com.example.amqpproducer.constant; public class FanoutConst { public static final String EXCHANGE_NAME = "fanout_exchange"; // fanout 的 routing key 为空 public static final String ROUTING_KEY = ""; // 队列 public static final String QUEUE_ONE = "fanout.queue.one"; public static final Strin...
32.538462
66
0.725768
71e1dff49170552002ea4d28ec1e72344231a1ec
2,425
package pac1; import java.util.ArrayList; import java.util.List; public class numSquares { /** * 给定正整数n,找到若干个完全平方数(比如1, 4, 9, 16, ...)使得它们的和等于 n。你需要让组成和的完全平方数的个数最少。 * <p> * 给你一个整数 n ,返回和为 n 的完全平方数的 最少数量 。 * <p> * 完全平方数 是一个整数,其值等于另一个整数的平方;换句话说,其值等于一个整数自乘的积。例如,1、4、9 和 16 都是完全平方数,而 3 和 11 不...
23.317308
84
0.425567
0d11b6802219970f6122eb82ad9f545570e7a4e9
238
package com.brins.classloaderdemo; /** * @author lipeilin * @date 2020/5/28 */ public class SomeException implements IDoSomething { @Override public String doSomethingResult() { return "Some Exceptions occur"; } }
18.307692
52
0.684874
d8ea01f2f25982808df79e3cd063a15f41ee96bf
1,607
package com.google.android.gms.location; import android.os.Parcel; import android.os.Parcelable.Creator; import android.os.WorkSource; public class zza extends com.google.android.gms.common.internal.safeparcel.zza { public static final Creator<zza> CREATOR; private final int f6710a; private long f6711b; ...
21.426667
116
0.602987
d3d9d0d757f7c9a9291ac43778f0320d46220b00
12,844
package gui; import client.ConnectAccount; import client.ConnectFriends; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.fxml.Initializable; import javafx.scene.Parent; import javafx.scene.control.Button; import ja...
34.619946
99
0.638197
df127c2bae7d407e50231d95ab6719acd815152f
1,293
package com.orangeforms.uaaauth.model; import lombok.Data; import lombok.EqualsAndHashCode; import com.alibaba.fastjson.annotation.JSONField; import com.baomidou.mybatisplus.annotation.*; import com.orangeforms.common.core.base.model.BaseModel; import javax.validation.constraints.NotBlank; import javax.validation.con...
20.52381
56
0.645012
e12fcf271240d87c7e889e1f648b8f6dcda400c8
649
package in.xnnyygn.xraft.kvstore.client; import in.xnnyygn.xraft.core.service.NoAvailableServerException; public class RaftRemoveNodeCommand implements Command { @Override public String getName() { return "raft-remove-node"; } @Override public void execute(String arguments, CommandContex...
24.961538
84
0.636364
754d8dd24cc37be0514964f02eb3172e5c779977
1,294
package srv.models; import srv.entities.GroupEntity; /** * @author GeorgeMD */ public class GroupModel { private Integer groupId; private String number; private int year; // private String series; public GroupModel() { } public GroupModel(final GroupEntity entity) { if (entity != nu...
20.539683
52
0.582689
9fc1e34496c93cd4ad3c08aa947b91ae2bf792bf
820
package org.goblinframework.core.conversion.converter; import org.goblinframework.core.conversion.ConversionService; import org.goblinframework.test.runner.GoblinTestRunner; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import java.util.Calendar;...
30.37037
61
0.784146
74d7211bedbfd79debfa14a346470343fe10592c
7,712
/* * Copyright (c) 2017-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package com...
31.477551
99
0.647951
69c939cf770092cb462710718e18e42669e5485c
1,559
/** * Copyright 2021-2022 Nicola Vitucci * * 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 agree...
38.975
83
0.779346
5adfaff51f744da5320d3db7f4e377d3be2f4e00
648
package game.entities.buildings; public class Shop extends Building { private static final char SHOP_SYMBOL = '$'; private static final int HEALTH_POTIONS_AVAILABLE = 4; private static final int DAMAGE_POTIONS_AVAILABLE = 4; private static final int MAX_AMOUNT_OF_POTIONS_AVAILABLE = 8; /** *...
32.4
132
0.70679
aaa45c09279084904b6210ab24307ba9540f54dc
1,161
package com.hotbitmapgg.ohmybilibili.network.api; import com.hotbitmapgg.ohmybilibili.entity.discover.AllareasRankInfo; import retrofit2.http.GET; import retrofit2.http.Path; import rx.Observable; /** * Created by hcc on 16/8/8 21:00 * 100332338@qq.com * <p/> * 全区排行榜数据请求 * <p> * "番剧":"http://www.bilibili.com/i...
34.147059
77
0.694229
5d0d56c945c30d1387400185be8e1e3b2f4b6972
341
package Aula35; public class Calculadora { public static int fatorialNaoRecursivo(int num) { if (num == 0) { return 1; } int total = 1; for (int i = num; i > 1; i--) { total *= i; } return total; } public static int fatorial(int num) { if(num == 0){ return 1; } return num * fat...
12.178571
50
0.560117
0765d81a5fdee15f8978d9a7d4c7d5d15f3e619c
3,387
package ix.core.util; import java.io.Closeable; import java.io.IOException; import java.util.Iterator; import java.util.Objects; /** * Helper class that can create CloseableIterator * objects. * * Created by katzelda on 4/21/16. */ public final class CloseableIterators { private CloseableIterators(){ ...
28.70339
140
0.620018
7b85e3640049055860287d387b74b7cf66ebaaf4
18,141
/* * 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...
40.583893
120
0.671187
142115b7fa16117db5359bae2c0ee3dbeec2b6a9
2,147
package de.pcps.jamtugether.storage; import android.content.SharedPreferences; import androidx.annotation.NonNull; import javax.inject.Inject; import javax.inject.Singleton; import de.pcps.jamtugether.audio.instrument.base.Instrument; import de.pcps.jamtugether.audio.instrument.base.Instruments; @Singleton public ...
33.546875
124
0.767583
e3391ae942d9a88071c841145499f9f3e10b7db2
2,896
package com.amazon.scraper; import com.amazon.scraper.extractors.amazon.AmazonProductExtractorImpl; import com.amazon.scraper.models.product.amazon.AmazonProduct; import com.amazon.scraper.models.scrape.ScrapeRequest; import org.junit.Before; import org.junit.Ignore; import org.junit.Test; import org.mockito.Mockito; ...
31.478261
98
0.690262
7d32d8f3deaa1c14b690ae8ae2e5ac1aa3100410
2,709
/* * Tencent is pleased to support the open source community by making Polaris available. * * Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved. * * Licensed under the BSD 3-Clause License (the "License"); * you may not use this file except in compliance with the License. * You may obtai...
39.838235
98
0.710963
016f216e4b50b71521b365f7ebeb16d4fb49c14c
1,449
package de.tr7zw.allcontributors; import lombok.AllArgsConstructor; import lombok.Getter; @AllArgsConstructor @Getter public enum ContributionType { a11y("Accessibility", "♿️"), bug("Bug reports", "🐛"), blog("Blogposts", "📝"), business("Business Development", "💼"), code("Code", "💻", "commits?author=%login%")...
26.833333
80
0.651484
a35cdae0fd9eb55727e1380baf02dd830d9b0ec8
564
package com.binarskugga.skugga.api.impl.parse.parameter; import com.binarskugga.skugga.api.ParameterParser; import com.binarskugga.skugga.api.Role; import java.lang.reflect.Parameter; public class RoleParser implements ParameterParser<Role> { @Override public Role parse(Parameter param, String s) throws Exception ...
24.521739
83
0.769504
9c3271bd69ba0d0a3293fe3eeff0f51dd11bdebd
4,931
/* * 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 ...
40.418033
162
0.719935
0e4ce69c0127347cc8b139557d044659dc891dff
955
package com.fasterxml.jackson.databind.creators; import com.fasterxml.jackson.annotation.*; import com.fasterxml.jackson.databind.*; public class SingleArgCreatorTest extends BaseMapTest { // [Issue#430]: single arg BUT named; should not delegate static class SingleNamedStringBean { final String _s...
25.131579
70
0.563351
b41f44cd062c9f4bc9f8f03d6115113678d04e08
433
package es.urjc.daw.urjc_share.controllers; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; @Controller public class ErrorController { @GetMapping("/loginerror") public String gotologinError(Model model) { return "...
21.65
58
0.778291
6519f903e6f89587637056b8e74063e76daed693
597
package br.slamine.com.healthcheck; import org.eclipse.microprofile.health.HealthCheck; import org.eclipse.microprofile.health.HealthCheckResponse; import org.eclipse.microprofile.health.Readiness; import javax.enterprise.context.ApplicationScoped; @Readiness @ApplicationScoped public class ReadnessCheck implements ...
25.956522
59
0.678392
af46fe226e8638807265fd77a661494063719b09
4,057
package com.sgk.search.search; import com.sgk.search.loader.Loader; import com.sgk.search.model.TfIdfEntry; import lombok.extern.slf4j.Slf4j; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; import java....
33.808333
108
0.608331
e4dadf2809c60b150aaf3d2ff02b90995f015a3e
797
/** * 文 件 名: DelChannelInfoReq * 版 权: Quanten Teams. Copyright YYYY-YYYY, All rights reserved * 描 述: <描述> * 修 改 人: dyc * 修改时间: 2017/10/10 0010 * 跟踪单号: <跟踪单号> * 修改单号: <修改单号> * 修改内容: <修改内容> */ package com.quanteng.gsmp.resource.channel.request; import lombok.Getter; import lombok.Setter; import ...
19.439024
71
0.61857
252e2ba3d0cb3c2ee9666b5edcb09b980a49fba7
145
package chapter2; public class Question1 implements Question1Interface { public void twiddle(Integer i){} public void twiddle(String abc){} }
20.714286
54
0.786207
fc5810d3892381e95d5a68e9f014d3d7c3319a91
535
package org.ednovo.gooru.core.api.model; import java.util.Set; public class QuestionSet extends Resource { /** * */ private static final long serialVersionUID = 7267883111878851302L; private Set<QuestionSetQuestionAssoc> questionSetQuestions; public QuestionSet() { } public Set<QuestionSetQuestionAss...
19.814815
90
0.788785
dde93149aabeb42907428c7aabffc02cedbc9fbf
1,416
package com.cokloft.test; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.lang.reflect.TypeVariable; import java.util.HashMap; import java.util.Map; public clas...
25.285714
111
0.641949
8586a2c9a9be8f6b0c044b1351b955e4f0b1e357
354
package cn.chenzw.excel.magic.core.context; import cn.chenzw.excel.magic.core.executor.ExcelExecutor; import cn.chenzw.excel.magic.core.meta.model.ExcelSheetDefinition; import java.util.Map; /** * @author chenzw */ public interface ExcelContext { Map<Integer, ExcelSheetDefinition> getSheetDefinitions(); ...
17.7
66
0.765537
f4b0aba5c12709240ddf4442b09e776b7f3dc666
304
package dev.jlibra.client.views.transaction.vmstatus; import org.immutables.value.Value; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; @Value.Immutable @JsonDeserialize(as = ImmutableVmStatusVerificationError.class) public interface VmStatusVerificationError extends VmStatus { }
25.333333
65
0.848684
5eb3422fe9c5476b7b1409a6efd222223b4aa557
777
package com.example.recommender.ui.history; import android.widget.Button; import java.util.ArrayList; public class ResultContainer { private ArrayList<Button> buttonForm; private ArrayList<Button> buttonRecom; public ResultContainer(ArrayList<Button> buttonForm, ArrayList<Button> buttonRecom){ ...
22.852941
88
0.705277
057e3af978e3f1d5e5fe001d2ed4e2a87e77ca2d
725
package com.github.esrrhs.majiang_algorithm; public class HuInfo { public byte needGui; public byte jiang; public byte hupai; @Override public String toString() { return "胡" + (hupai + 1) + " 将" + (jiang + 1) + " 鬼" + needGui; } @Override public boolean equals(Object o) { if (this == o) return true;...
16.860465
65
0.628966
11601a5e5274cf6c2c90eb4b33ae0414b7f04452
5,817
/* * MIT License * * Copyright (c) 2021 Overrun Organization * * 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...
34.217647
98
0.527248
5e071e69f47b740b480f4654f1e121356c7fa852
28,391
/* * 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 ...
46.695724
135
0.632102
af3523e377ae0cd9b0c5af08c58de23d991e882b
1,602
package com.imooc.employee.service.impl; import java.util.List; import org.springframework.transaction.annotation.Transactional; import com.imooc.employee.dao.EmployeeDao; import com.imooc.employee.domain.Employee; import com.imooc.employee.domain.PageBean; import com.imooc.employee.service.EmployeeService; @Trans...
22.25
75
0.761548
c0066929ce24296d66a1d963d7434801af6ea7e6
578
package main.java.com.ArrayTest; import main.java.com.ArrayTest.ex05.Account; import main.java.com.ArrayTest.ex05.Bank; public class BankTest { public static void main(String[] args) { Bank bank = new Bank(); Account newAccount = new Account(); newAccount.setBalance(100); for ...
22.230769
88
0.567474
8edb36a3d676d953e214835dbffdf20b06efc57f
583
package br.com.flaviogf; import java.util.List; public class PancakeHouseMenuIterator implements Iterator<MenuItem> { private final List<MenuItem> menuItems; private int position = 0; public PancakeHouseMenuIterator(List<MenuItem> menuItems) { this.menuItems = menuItems; } @Override ...
22.423077
78
0.663808
7926d0a84f76cada31d1ca2b99cf51a6448cf977
2,254
package net.bombdash.core.api.methods.player.get; import com.google.gson.annotations.SerializedName; import lombok.Builder; import lombok.Data; import lombok.Value; import net.bombdash.core.api.models.BanInfo; import net.bombdash.core.api.models.Particle; import net.bombdash.core.api.models.PlayerProfile; import net.b...
20.87037
67
0.604703
5d254f3533952259499b2ab9f1b38162078e13d2
427
package com.vaguehope.morrigan.android.modelimpl; import java.util.Comparator; import com.vaguehope.morrigan.android.model.MlistItem; public enum MlistItemComparators implements Comparator<MlistItem> { FILENAME () { @Override public int compare (MlistItem o1, MlistItem o2) { return o1.getFileName().compare...
21.35
68
0.754098
eea77bdd2bba23c6c5eea7f944f8672fcc1d56ad
407
package com.questnr.requests; import javax.validation.constraints.NotNull; public class RefreshPushNotificationTokenRegistryRequest extends PushNotificationTokenRegistryRequest { @NotNull private String expiredToken; public String getExpiredToken() { return expiredToken; } public void se...
23.941176
103
0.759214
0c928d857880fe7d83b61eab81a52fc6599d83a1
1,148
/* * Filename: ColorCalibrator.java * Author: Cole Savage * Team Name: Level Up * Date: 7/20/19 */ package org.firstinspires.ftc.teamcode.season.programs.calibration_programs; import com.qualcomm.robotcore.eventloop.opmode.TeleOp; import org.firstinspires.ftc.teamcode.season.robot.ColorCalibBot; import org.firs...
24.956522
86
0.720383
9179220279136c21a9aeb78a9f30f666cb761fb0
2,008
package HTTPClient; import java.io.IOException; import java.io.EOFException; import java.io.InputStream; import java.io.FilterInputStream; /** * This class de-chunks an input stream. * * @version 0.3-3 06/05/2001 * @author Ronald Tschal�r */ class ChunkedInputStream extends FilterInputStream { /** * @...
19.12381
63
0.591633
76b54037d006dc77d2805266e51ca536d1fad28c
16,817
/* * 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 ...
51.115502
173
0.779866
f091afaa8e2e027a3e9675de4574b3d185434100
2,049
/* * ISEN 2014~2015 */ package fr.isen.cir58.group6.minesweeper.model; import java.io.Serializable; import java.util.ArrayList; /** * Serializable class which is stored in a ".ser" or a ".xml" contains * ArrayList of long which contains time vales in seconds * * @author Thomas Fossati / Guillame Catto */ publi...
26.269231
75
0.676916
9630a8183b3b2533ab1702e7aa01fd2852a2b00a
3,028
/** * 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...
30.897959
116
0.692206
67f3358738c72579ad261eb135e9c4164bb08589
197
package com.github.kosbr.aws.exception.registration; public class FileChangedException extends Exception { public FileChangedException(final String message) { super(message); } }
21.888889
55
0.751269
aefb73fdea7ef888478a9dce6fdbbab7aaa9eb66
2,170
package com.builtbroken.hiddenlever; import com.builtbroken.hiddenlever.content.BlockTorchLeverButton; import net.minecraft.block.Block; import net.minecraft.item.Item; import net.minecraft.item.ItemBlock; import net.minecraftforge.client.event.ModelRegistryEvent; import net.minecraftforge.event.RegistryEvent; import ...
40.943396
152
0.751613
b313e55e3df8b836116bdc4a78670cb898b77bb8
3,177
package aspectj; import java.lang.reflect.Array; import java.lang.reflect.Field; /** * Created by Sophia on 2017/5/6. */ public class PrintValue { Object object; public PrintValue(Object object) { this.object = object; } public void run() { getValue(object, null,0); } priva...
29.416667
96
0.405729
a4518d2a7ec9507177663b16a645ca45f9d4980e
180
package com.alibaba.alink.params.classification; import com.alibaba.alink.params.shared.linear.HasNumClass; public interface OneVsRestTrainParams<T> extends HasNumClass <T> { }
22.5
58
0.816667
8df24db72bac7ab9a184fa058f8e204ad4f861ab
2,245
/** * Copyright Pravega 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 agreed to...
39.385965
134
0.708686
7138feca8d01aad2b0e4a53095f3d002d0f56b7a
5,037
// 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; import edu.wpi.first.wpilibj.ADXRS450_Gyro; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.fi...
33.138158
104
0.702005
ecebdb28a982dbc22ae2c69ac8015d4e6b966a7b
1,299
package sorting.elementarySorts.animations; /** * RandomDoubleAnimation for insertion sort */ public class SelectionAnimation extends RandomDoubleAnimation { public static void main(String[] args) { // number of Doubles int N = Integer.parseInt(args[0]); // Generate N Doubles Do...
25.98
63
0.508083
f4d4383a655a454ba8f33744b7fab03986877a0e
3,654
/* * Copyright (C) 2015. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distribu...
32.336283
92
0.564039
bcadca5f19db63ffe41b42f30de9439af1968959
11,234
package com.samsungxr.widgetlib.widget.properties; import com.samsungxr.SXRAndroidResource; import com.samsungxr.SXRAssetLoader; import com.samsungxr.SXRBitmapImage; import com.samsungxr.SXRContext; import com.samsungxr.SXRImage; import com.samsungxr.SXRMaterial; import com.samsungxr.SXRTexture; import com.samsungxr.S...
39.417544
114
0.595247
98986ede487d7ce3ebc5660a119f84cce3e1a329
698
package CrimeSceneInvestigator.Tuplets; /** * CREATE TABLE Opfer ( * PersonID INTEGER PRIMARY KEY, * FOREIGN KEY (PersonID) * REFERENCES Personen (PersonID) * ); */ public class Opfer extends Personen { public static final String table = "Opfer"; public Opfer(String[] val) { super(val); ...
18.864865
49
0.547278
cc73cd8530734897ccaf18ad2b85c25d761edd38
4,723
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.netbeans.modules.web.stripes.hyperlinks; import java.util.logging.Logger; import javax.swing.text.BadLocationException; import javax.swing.text.Document; import org.netbeans.api.html.lexer.HTMLTokenId; impo...
32.129252
109
0.557485
6ec73b0dacfd205be9d7974a6bf838767bf4e41a
2,919
/* * Copyright (C) 2019 DV Bern AG, Switzerland * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
37.909091
104
0.825968
589246c459c36797fd68d367ae5327f976478456
8,950
package org.broadinstitute.dsm.statics; public class ApplicationConfigConstants { //ddp configuration public static final String DDP = "ddp"; public static final String INSTANCE_NAME = "instanceName"; public static final String TOKEN_SECRET = "tokenSecret"; public static final String EASYPOST_API_...
65.328467
140
0.804246
f5a61a518c0e63c05663d90e1655347a1074dce1
785
package com.earthquake.tracker.quaker.mvp; import android.app.Application; import com.earthquake.tracker.quaker.mvp.model.network.UsgsRestClient; import com.squareup.leakcanary.LeakCanary; public class QuakerApplication extends Application { private static QuakerApplication application; @Override publi...
26.166667
73
0.684076
8415a6608327913bb4c8057d647d9eec5a062c41
1,297
package com.ninjatech.kodivideoorganizercli.command.misc; import java.util.EnumSet; import java.util.Set; import org.apache.commons.cli.CommandLine; import org.springframework.stereotype.Component; import com.ninjatech.kodivideoorganizercli.CLI; import com.ninjatech.kodivideoorganizercli.command.AbstractCommand; imp...
27.595745
78
0.74017
f8658bf27a54498a19508e5caad9ff9f2d3c191c
1,353
/******************************************************************************* * Copyright 2016-2017 alladin-IT GmbH * Copyright 2016 SPECURE GmbH * * 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 th...
27.612245
80
0.648928
6bc8f9255d65aa07071680da4c30c3b44368aa6f
6,151
package jason.stdlib; import jason.JasonException; import jason.asSemantics.DefaultInternalAction; import jason.asSemantics.InternalAction; import jason.asSemantics.TransitionSystem; import jason.asSemantics.Unifier; import jason.asSyntax.ASSyntax; import jason.asSyntax.Literal; import jason.asSyntax.StringTerm; impor...
37.506098
108
0.584458