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
1e648a72fa9266cdeee04a1fd253bd9097dbe171
5,711
/* * 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 ...
41.384058
119
0.755735
ff5d78cc358263eeca547e63b3d78fccfff40676
2,248
package com.composum.sling.platform.staging; import com.composum.sling.platform.testing.testutil.ErrorCollectorAlwaysPrintingFailures; import org.junit.Rule; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import static com.composum.sli...
36.852459
141
0.645463
04af0724df057f921c6e70f0321a900dccae697f
5,659
// 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.subsystems; import com.ctre.phoenix.motorcontrol.NeutralMode; import com.ctre.phoenix.motorcontrol.T...
42.231343
147
0.775049
c896c7d483dc2c090a264f696c08f6991c2d8fca
1,013
/* * Copyright 2011 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 applicable law or agr...
28.942857
79
0.779862
192ebf37a7c0b4f5da6689ac83039e6570dd5bc5
213
package org.littlemonkey.qrscanner; public class NativeScannerImpl { public void scanQRCode() { } public void scanBarCode() { } public boolean isSupported() { return false; } }
14.2
35
0.633803
183aa60540d10316832cf5031260232ac76ec50c
3,279
/* * 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 ...
40.481481
112
0.698384
690e31ffae48c8fe52fcf11f2d49dad185c486ec
5,208
package me.yimu.wexxar.cache; import com.alibaba.fastjson.JSON; import java.io.IOException; import java.util.ArrayList; import java.util.List; import me.yimu.wexxar.Wexxar; import me.yimu.wexxar.route.Route; import me.yimu.wexxar.route.Routes; import me.yimu.wexxar.utils.LogUtils; import okhttp3.Call; import okhttp3...
36.41958
115
0.504416
db8cb2c0d5d44bb0f0bf33d1484412db4b29869f
986
package webcrawler; import org.pmw.tinylog.Logger; import webcrawler.digestpage.ProcessPage; /** * Created by Gabe Sargeant on 22/01/17. */ public class WebCrawler { private String URI; private String BASE_URI; WebCrawler(String uri) { URI = uri; if(uri.contains("http://www.")){ ...
20.541667
55
0.483773
885a910c1e09a0339b7d64e970e71ca832dd5d50
44,131
/* * Copyright (c) 2019-2021 GeyserMC. http://geysermc.org * * 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,...
40.899907
190
0.66604
996daf0feca9133e94dd7ca374dc4094f3d79545
414
/* * All source is copyrighted by Slenderware */ package com.slender.app.factory; import com.slender.domain.UserProject; public class UserProjectFactory { public UserProject getUserProject(int userId, int porjectId){ UserProject userProject = new UserProject(); userProject.setProjectI...
25.875
66
0.693237
3a5ec38fcdc4ab8bb0514d78ea7a7871fa3e043a
151
package com.trio.breakFast.dao; import com.trio.breakFast.model.Questionnaire; public interface QuestionnaireDao extends BaseDao<Questionnaire> { }
18.875
66
0.821192
902e5f03ae235ccff4d1d5702ca90ca4e4bd34f9
5,342
package org.ripple.bouncycastle.crypto.tls; import java.io.IOException; import org.ripple.bouncycastle.crypto.Mac; import org.ripple.bouncycastle.crypto.engines.ChaChaEngine; import org.ripple.bouncycastle.crypto.generators.Poly1305KeyGenerator; import org.ripple.bouncycastle.crypto.macs.Poly1305; import org.ripple.b...
34.025478
117
0.672969
3a787b97936ae18f69680f83cbc0f9d7e737d1c7
1,126
package com.ilad.teamwork; import org.openqa.selenium.WebElement; import io.appium.java_client.android.AndroidDriver; public class ListFilter extends AbstractTeamWork { public ListFilter(AndroidDriver<WebElement> driver) { super(driver); } /** * @deprecated not fully implemented * @param typeOfTaskLists...
22.979592
80
0.738011
0c265a493141a557c22b30a6957984fc8d23a56c
781
package br.com.ecommerce.mercadolivre.service; import br.com.ecommerce.mercadolivre.consumer.NotaFiscal; import br.com.ecommerce.mercadolivre.domain.model.Compra; import br.com.ecommerce.mercadolivre.service.EventosCompraSucesso; import org.springframework.beans.factory.annotation.Autowired; import org.springframework...
24.40625
66
0.736236
023a8bcdabd9cf3c16a203c422b3dbd2fc64e7a8
1,378
package io.github.simplycmd.terracraft.items; import io.github.simplycmd.terracraft.items.util.BaseItem; import io.github.simplycmd.terracraft.items.util.Value; import io.github.simplycmd.terracraft.registry.EntityRegistry; import io.github.simplycmd.terracraft.entities.grenade.GrenadeEntity; import net.minecraft.enti...
36.263158
98
0.748186
5361462eff99c3e55bd35bd92d11029bd7efce3b
1,341
/** * Copyright 2019 The JoyQueue 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...
35.289474
98
0.762118
9362d7afbcfecaf6e238136f906e88f681a4437f
460
package hw; /* * 讓使用者輸入一正整數n,計算1*(1+1) + 2*(2+1) + 3*(3+1) + … + n*(n+1)並輸出結果。 */ import java.util.Scanner; public class hw05_104021074 { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scn = new Scanner(System.in); System.out.println("請輸入n:"); int n = scn.nextInt(); in...
20
64
0.576087
8550b9a5526a67b13b8c64020e497650f66b71c9
1,441
package wafflestomper.logbot.util; import net.minecraftforge.common.config.Configuration; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; public class ConfigManager { private Configuration config; public boolean logChests = true; public boolean logMinedBlocks = true; public boolean onlyLog...
45.03125
142
0.741846
eb6828c39a554a329af79057d37f1f47d46afb84
1,338
package lk.usj.OPD_Management.java.common.tool; import javafx.event.ActionEvent; import javafx.scene.Node; import javafx.scene.control.Button; import javafx.scene.control.DatePicker; import javafx.scene.input.KeyCode; import javafx.scene.input.KeyEvent; import javafx.scene.layout.Pane; public final class ButtonFireFo...
31.857143
71
0.556054
ff803b30d1012ee277581bd8d6bfde82ae0012e8
2,120
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package service; import javax.ws.rs.core.Context; import javax.ws.rs.core.UriInfo; import javax.ws.rs.Produces; import javax...
32.121212
122
0.693396
19094f31377c7dd9a531a14752066d58310914b7
3,741
package seedu.address.ui; import java.util.logging.Logger; import javafx.animation.Animation; import javafx.animation.FadeTransition; import javafx.animation.KeyFrame; import javafx.animation.PauseTransition; import javafx.animation.Timeline; import javafx.beans.property.IntegerProperty; import javafx.beans.property....
31.70339
106
0.662122
3226a4f17cf1f8e13cc6cccd374c06a07c457236
600
package com.github.paulzappia; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags; import net.minecraft.block.Block; import net.minecraft.block.Blocks; import net.minecraft.block.SlabBlock; public class StainedSandstoneBlockSlab ...
37.5
121
0.791667
029149026f5c74356e4409c484a405f2c6069db2
322
package com.harium.suneidesis.chat.output; import java.io.IOException; public interface Output { void print(String sentence); void print(String sentence, OutputContext context); void produceFile(String path, String description) throws IOException; void produceFile(byte[] data, String description); ...
23
73
0.76087
ef9e81817ce16df2bf48826839b0f3c7d4731bcc
2,538
package com.cms.scaffold.micro.sys.controller; import com.cms.scaffold.common.base.BaseController; import com.cms.scaffold.common.builder.Builder; import com.cms.scaffold.common.response.ResponseModel; import com.cms.scaffold.micro.sys.ao.SysMenuAO; import com.cms.scaffold.micro.sys.api.SysMenuApi; import com.cms.scaf...
32.961039
92
0.729708
852bd0d3d9377fd115d5980d98722dd591880767
9,004
/* * 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 appli...
36.160643
116
0.768547
76518975b7184bca67082bbefcb34d81b71b2c96
4,154
package utn.frba.mobile.experienciaapp.models; import android.net.Uri; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import retrofit2.Call; import utn.frba.mobile.experienciaapp.lib.ws.ResponseWS; import utn.frba.mobile.experienciaapp.lib.ws.WSRetrofit; pub...
25.484663
66
0.60207
a09401a9ae2a742e630c58acfb25ab6530da0132
361
package com.atishay.app.testNg; import com.atishay.app.BaseTest; import org.testng.ITestResult; import org.testng.TestListenerAdapter; /** * Created by Atishay on 6/7/2015. */ public class Listener extends TestListenerAdapter { @Override public void onTestFailure(ITestResult result) { BaseTest.takeS...
22.5625
54
0.745152
7533e3e7cdeb7fe09550e6869e6716a971a0d9d8
4,112
package ru.ilnyrdiplom.bestedu.web.controllers; import lombok.RequiredArgsConstructor; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.security.access.annotation.Secured; import org.springframework.security.core.annotation.AuthenticationPrincipal; i...
56.328767
141
0.728599
985ae71af7984b7722686c2be5a4bf914b0ca1ba
4,060
package com.wxdgut.chap4; import java.util.Stack; /** * @author Administrator * @program: leetcodeStudy * @date 2021-11-21 17:22:40 * <p> * 42. 接雨水 难度:困难 * 链接:https://leetcode-cn.com/problems/trapping-rain-water * <p> * 给定 n 个非负整数表示每个宽度为 1 的柱子的高度图, * 计算按此排列的柱子,下雨之后能接多少雨水。 * <p> * 示例: * 输入:height = [0,1,0,...
31.71875
93
0.468966
ceeb201001e8ef10256838ba954e0a6219bd5698
2,100
package org.sasm.tree; import org.sasm.MethodVisitor; import java.util.Map; /** * A node that represents a field instruction. A field instruction is an * instruction that loads or stores the value of a field of an object. * * @author Eric Bruneton */ public class FieldInsnNode extends AbstractInsnNode { /...
26.25
83
0.592381
c560f2287628ea61dd899552b00d51c6829e7c3c
2,143
package com.example.canvasdemo.netrequest; import android.os.Handler; import android.os.Message; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; public class GetRequest { ...
30.614286
89
0.534298
f0c08cd16651abbb4251d44f49098301372701b4
7,761
package seedu.address.model; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.address.logic.commands.CommandTestUtil.VALID_NAME_ANDY; import static seedu.address.logic.commands.CommandTestUtil.VALID_NAME_BETTY; impor...
40.212435
120
0.711764
c2f2d324dbfe7a43f1e070a93bab999676c9a55e
9,974
package Others; import java.io.BufferedReader; import java.io.FileReader; import java.util.ArrayList; import java.util.Hashtable; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * @Date: 14/03/2010 * @author Bui Quoc Chinh */ public class test { /** * Regconizin...
34.393103
217
0.468017
9e9cc18fded7e5dbe15045a957f158abd1c0cdb7
957
package com.abdoul.groovy.service; import java.lang.System; @kotlin.Metadata(mv = {1, 4, 0}, bv = {1, 0, 3}, k = 1, d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\bf\u0018\u00002\u00020\u0001J\u0017\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u0...
79.75
568
0.748171
32c25e9678c8e2900a86d9a88d1ac859879f3c6d
2,631
package io.github.kusaanko; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.InstanceCreator; import com.google.gson.annotations.Expose; import java.io.*; import java.lang.reflect.Type; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Pa...
32.085366
137
0.618396
cfc29d1657ac2ef797041843ecd13db53d35bf22
2,953
/* * $Id$ * * $Log$ * Revision 1.1 2008/04/04 18:21:10 cvs * Added legacy code to repository * * Revision 1.2 2004/08/30 14:50:32 mjmaloney * Javadocs * * Revision 1.1 2003/12/20 00:32:51 mjmaloney * Implemented TimeoutInputStream. * */ package ilex.util; import java.io.BufferedInputStream; import java.i...
23.436508
76
0.688791
2ccd034d91bf63062e8fa26d341d025ea19bc84c
49,889
package com.centurylink.mdw.service.data.user; import com.centurylink.mdw.cache.CachingException; import com.centurylink.mdw.constant.OwnerType; import com.centurylink.mdw.dataaccess.DataAccessException; import com.centurylink.mdw.dataaccess.db.CommonDataAccess; import com.centurylink.mdw.model.event.EventLog; import ...
42.713185
132
0.52685
2b4102e2f19a910173ef472b7fce763b3e711a60
556
package it.polito.ai.lab3.repo.entities; import java.util.*; import javax.persistence.*; @Entity public class BusLine { @Id private String line; private String description; @ManyToMany @JoinTable(name = "BusLineStop", joinColumns = { @JoinColumn(name = "lineId") }, inverseJoinColumns = {@JoinColumn(name = ...
16.848485
56
0.69964
e08a94d99a60a28e5fc4ce4cad18921f0bc1f42a
1,105
package cn.hust.entity; import com.baomidou.mybatisplus.annotation.*; import java.time.LocalDateTime; import java.io.Serializable; import java.util.Date; import lombok.*; /** * <p> * * </p> * * @author zz * @since 2021-04-12 */ @Data @Builder @AllArgsConstructor @NoArgsConstructor @TableName("tb_operation_l...
11.391753
45
0.577376
a1b3cb6b3fdab173fa2503035104ce571724a1b1
8,580
package cn.hikyson.godeye.core.internal.modules.viewcanary; import android.app.Activity; import android.content.res.Resources; import android.graphics.Rect; import android.text.TextUtils; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import java.util.ArrayList; import java.u...
35.020408
139
0.566434
77847e9b0ccd382bb11933efb4b7a656a08468bc
1,585
package com.lunagameserve.kineticform.twitter; import com.lunagameserve.kineticform.model.BallPredicate; /** * Created by sixstring982 on 4/2/16. */ public enum TwitterCommand { CENTER(new BallPredicate() { public int delta(int x, int y, int w, int h) { if ((x == w / 2 || x == w / 2 + 1) &&...
25.15873
79
0.457413
c7735c406eea0cc4b1d8d593d0c6d8cca0e8a4ca
690
package org.dnal.compiler.nrule; import org.dnal.core.DValue; import org.dnal.core.nrule.NRule; import org.dnal.core.nrule.NRuleContext; import org.dnal.core.nrule.virtual.VirtualInt; //struct member pseudo-len len(firstName) public class LenRule extends Custom1Rule<VirtualInt> { public static final String NAME = ...
23.793103
61
0.688406
cfde02ce545b5e0db97fe6b41a3ee2a1f2e984b6
266
package com.kyc.snap.store; public interface Store { String storeBlob(byte[] blob); byte[] getBlob(String id); String storeObject(Object object); void updateObject(String id, Object newObject); <T> T getObject(String id, Class<T> clazz); }
17.733333
51
0.684211
a3323937c6ec10665f86c40011e2555b2a8f2183
2,243
/* * <!-- * ~ Copyright 2015-2017 OpenCB * ~ * ~ 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 * ~ * ~ Unl...
35.603175
127
0.727151
ca98d974582f00d1d7d64f59eaed3f16170ecd8c
1,710
package org.trianacode.shiwaall.collection; // TODO: Auto-generated Javadoc /** * The Class CollectionElement. * * @param <C> the generic type * @author Andrew Harrison * @version 1.0.0 Jul 15, 2010 */ public class CollectionElement<C> { /** The content. */ protected C content; /** * Instanti...
19.883721
85
0.551462
836aea67a17cd877c9aece95df13b05923f54952
8,087
package word_search_solver; import java.io.IOException; import java.nio.file.Path; import java.nio.file.Paths; import java.util.ArrayList; public class WordSearchSolver { static char[][] grid; static int words_found = 0; public static void main(String[] args) throws IOException { int word_count = 0; Strin...
27.137584
97
0.553481
6b41320c0a4733e2735df6761efc35c339d6bb5f
2,478
package com.github.zuihou.cache; import com.github.benmanes.caffeine.cache.Caffeine; import com.github.zuihou.cache.lock.CaffeineDistributedLock; import com.github.zuihou.cache.properties.CustomCacheProperties; import com.github.zuihou.cache.repository.CacheRepository; import com.github.zuihou.cache.repository.Caffein...
31.769231
90
0.733253
63be1799c56f1fc8d883f368ec72913a0aa05423
764
package com.mikedeejay2.mikedeejay2lib.gui.tree; /** * The way that a branch connects the parent item to the * child item in a <code>GUITreeModule</code> * * @author Mikedeejay2 */ public enum BranchType { /** * When creating a branch, run the branch horizontal first, such as: * <pre> * ⇩ p...
20.648649
72
0.441099
fe29beafd974c6c29f61b10620500472b26dc806
72
package com.kmboot.jvm.base; public class U1 { public byte[] u1 ; }
14.4
28
0.666667
d2ec1142125e8475c9077b56ca0afae1dac95986
471
package Arithmetic;//import java.text.DecimalFormat; import java.math.BigDecimal; import java.math.RoundingMode; import java.util.Scanner; public class 圆的面积 { public static void main(String[] args) { double PI=3.14159265358979323; double s; Scanner ss=new Scanner(System.in); int r=ss.nextInt(); s=r*r*PI; BigDecim...
26.166667
63
0.755839
b316c5a61497275dc782f269971233b5b0217438
38,634
/* * Copyright 2017 Software Engineering and Synthesis Group * * 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 a...
63.542763
120
0.658927
132dee4b4929300c15cb93495b3c5e9586befe5e
1,993
package org.bian.dto; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.bian.dto.SDITStandardsAndGuidelinesFeedbackInputModelITStandardsAndGuidelinesFeedbackAction...
39.86
198
0.864024
4f859c9250075fafb4224b3b2808528ab4eecc4b
781
package osgi.enroute.executor.capabilities; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import org.osgi.annotation.bundle.Requirement; import org.osgi.namespace.implementation.ImplementationNamespace; /** */ @Requirement(namespace = ImplementationNamespace.IMPLEMENTATION_NAME...
32.541667
89
0.786172
38bf9720ddd5df4d584af455d6fba176b3534093
717
package javabot2; import net.dv8tion.jda.api.JDA; public class Javabot2 { public static void main(String[] args) throws Exception { JDALoader jdaLoader = new JDALoader(); JDA api = JDALoader.getJDA(); api.addEventListener(jdaLoader); api.addEventListener(new MyListener()); } /** * ...
21.727273
59
0.642957
52d06f3bd48cc43a76d35f268c2303ca2a706b50
1,386
package org.tarantool.queue.auto; import com.squareup.javapoet.MethodSpec; import com.squareup.javapoet.TypeSpec; import org.tarantool.queue.internals.operations.EvalOperation; import javax.annotation.processing.Filer; import javax.lang.model.element.Modifier; abstract class TtlQueueManagerGenerator extends QueueMan...
39.6
189
0.661616
71d2c7e1536f2991f1920e58c2d77713434b0b00
1,080
package io.contek.invoker.hbdmlinear.api.websocket.common; import io.contek.invoker.commons.websocket.AnyWebSocketMessage; import io.contek.invoker.commons.websocket.IWebSocketLiveKeeper; import io.contek.invoker.commons.websocket.WebSocketSession; import javax.annotation.concurrent.Immutable; @Immutable public fina...
27
82
0.771296
5e0059275ee2920e3ffb949c87106c3427779940
8,952
package com.citelic.game.entity.player.content.miscellaneous.pets; import java.io.Serializable; import java.util.HashMap; import java.util.Map; import com.citelic.cache.impl.item.ItemDefinitions; import com.citelic.game.ForceTalk; import com.citelic.game.entity.Animation; import com.citelic.game.entity.npc.impl.pet.P...
18.419753
88
0.640974
34000f4bcd68646d7dfe8ca58d942fb2a69de4dd
3,115
/* * Copyright (c) 2017-2020 Peter G. Horvath, 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 req...
32.447917
100
0.642697
9f4ec2e11556e16f24b1cfba5507dc4a1195b866
2,322
/** * 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...
41.464286
115
0.77261
4bd6d0538ac8d4102133c1fb93bc786ea89811e0
1,158
package com.iovation.launchkey.sdk.transport.domain; /** * Copyright 2017 iovation, Inc. * <p> * Licensed under the MIT License. * You may not use this file except in compliance with the License. * A copy of the License is located in the "LICENSE.txt" file accompanying * this file. This file is distributed on an ...
34.058824
94
0.697755
41f664a0414bf5f746d7d031c5206f26c7fc1778
6,962
/* * Copyright (C) 2011 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
40.476744
97
0.676386
e835607229daa6795e39d69e07ff47c942193e8d
2,670
/* * Copyright (C) 2019 Houssem Ben Mabrouk * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This p...
25.188679
106
0.611985
99f77d15cbbd6c410f7e982683ce7ed3df8ae7b3
2,235
package com.company; import java.util.HashMap; import java.util.Map; import java.util.Scanner; public class P10_ExamResults { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); HashMap<String, Integer> studentResults = new HashMap<>(); HashMap<St...
31.041667
85
0.484116
0ba049396a75de0194869ebd866722f727135936
1,471
package net.muratbalkan.sinnumbervalidator; import org.springframework.core.Ordered; import org.springframework.core.annotation.Order; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.HttpRequestMetho...
47.451613
173
0.842284
3840f889bfc40641f5cf305fca65dfe63b4a8040
224
package eu.vargapeter.financialstatistics.exception; public class ImportFileFormatNotValidException extends RuntimeException { public ImportFileFormatNotValidException(String message) { super(message); } }
24.888889
73
0.794643
5273f74cd708e97086314351ddc91b574e077501
987
package test.java; import org.junit.Test; import com.jacamars.dsp.rtb.jmq.ZPublisher; import java.util.ArrayList; import java.util.List; import java.util.concurrent.CountDownLatch; /** * A class for testing that the bid has the right parameters * * @author Ben M. Faul * */ public class TestFileSubscriber { ...
23.5
156
0.631206
aa3e438906faef5aea0a75f011510193710ebd92
335
package cl.roberto.microservicios.ventasservice.stream; import org.springframework.integration.annotation.Gateway; import org.springframework.integration.annotation.MessagingGateway; @MessagingGateway public interface BodegaGateway { @Gateway(requestChannel = BodegaSource.CHANNEL_NAME) void generate(AvisoDTO...
25.769231
67
0.832836
fb93c6858bd113b9f3b432a532b4996e029ae1ee
60
package mods.natura.plugins; public class Gardenstuff { }
10
28
0.766667
0abc0bb9fb1a4335997b66869fe617b64c3595cc
916
package designPatterns; interface Behavior { void moveCommand(); } class Robot { private Behavior behavior; public void setBehavior(Behavior behavior) { this.behavior = behavior; } public void move() { this.behavior.moveCommand(); } } class PassiveBehavior implements Behavio...
19.489362
52
0.639738
ae08f98e1ac2b7d9346f60a19a3209e2afb5e5a8
654
package indi.w4xj.jvm.code; /** * @Author lemon joker * @Project java_upstream * @Package indi.w4xj.jvm.code * @Classname StackOverflowErrorTest * @Description TODO * @Date 2021/2/16 11:51 * @Created by IntelliJ IDEA */ public class StackOverflowErrorTest { public static void main(String[] args) { ...
24.222222
99
0.623853
a98037077435fcc3ec3cfa34efd6450547e6a783
19,456
package com.tekdivisal.safet; import android.app.NotificationChannel; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.media.RingtoneManager; import android.net.ConnectivityManager; import android.net.NetworkInfo; i...
43.623318
159
0.603927
17ca19f9df8378b8dc9581a4a12f6b881e0bee2a
596
package west.unikoblenz.beseppi.resultformats; // Ask query results consist of bool and execution time public class AskQueryResult { private boolean result; private long executionTime; public AskQueryResult(boolean result, long executionTime){ this.setResult(result); this.setExecutionTime(executionTime); } ...
20.551724
59
0.763423
68bcbbe5099da0cf6c3cb3382606136066c2bf3f
1,888
package org.segrada.model; import org.junit.BeforeClass; import org.junit.Test; import javax.validation.ConstraintViolation; import javax.validation.Validation; import javax.validation.Validator; import javax.validation.ValidatorFactory; import java.util.Set; import static org.junit.Assert.assertEquals; import stati...
33.122807
133
0.797669
c121721e911d518dd7f47c8804a9f0695dae3df4
2,961
package org.martseniuk.diploma.apigateway.config; import org.keycloak.adapters.springboot.KeycloakSpringBootConfigResolver; import org.keycloak.adapters.springsecurity.KeycloakSecurityComponents; import org.keycloak.adapters.springsecurity.authentication.KeycloakAuthenticationProvider; import org.keycloak.adapters.spr...
44.19403
107
0.777102
cbf07ef9ae4974ba165c9150b3c3cdd4939f28dd
5,179
/** * 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...
47.513761
128
0.632168
baaf09662055623611acf363b4a6e732bf663a85
308
package org.siping.scaffold.service.platform.service; import org.siping.scaffold.platform.entity.SysRoleMenu; import com.baomidou.mybatisplus.service.IService; /** * <p> * 服务类 * </p> * * @author Siping * @since 2018-01-14 */ public interface ISysRoleMenuService extends IService<SysRoleMenu> { }
18.117647
68
0.737013
797fe833ccf10979c1111f96d5d86cd8b4ee40c3
1,253
class B { @Override public boolean equals(Object obj) { return obj != null; } @Override public int hashCode() { return super.hashCode(); } } class A extends B { Object[] a1; Object[][] a2; String[] a3; String[][] a4; int[] a5; int[][] a6; byte a7; short a8; int a9; long a10; ...
27.23913
356
0.628093
6092a5d917a3b5e9d88292f2e04ca0f5cf6107e4
299
package com.raysonxin.rpc.server; /** * @className: MethodArgumentConverter.java * @author: raysonxin * @date: 2020/2/15 5:51 下午 * @email: raysonxin@163.com * @description: TODO **/ public interface MethodArgumentConverter { ArgumentConvertOutput convert(ArgumentConvertInput input); }
19.933333
62
0.73913
74d9fcc99175b37b9ed9922657e068f65a428ee1
1,218
package kr.gooroom.gpms.common.service; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.springframework.web.multipart.MultipartFile; import java.util.List; public interface ExcelCommonService { /** * 업로드 된 엑...
19.645161
82
0.599343
3c3054ab942491625d749f7fdc4e3732a69baafc
2,824
/* * Copyright (c) 2012 - 2018 Arvato Systems 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 the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
35.746835
108
0.686615
968c40525df09cdc7ec54d8021fd40d10ea39f42
719
package org.smicon.rest.emberwiring.general.pools; import org.apache.commons.pool2.impl.AbandonedConfig; import org.apache.commons.pool2.impl.GenericObjectPool; import org.apache.commons.pool2.impl.GenericObjectPoolConfig; import org.smicon.rest.emberwiring.general.factories.StringBuilderFactory; public class StringB...
24.793103
90
0.820584
c3aba48994071850e061dc0041fb7e8a14c9adbd
282
package com.example.minhquan.w2vinova.News.view; import com.example.minhquan.w2vinova.Model.Doc; import java.util.List; public interface ListNewsView { void showLoading(); void hideLoading(); void showListNews(List<Doc> docs); void showError(String error); }
16.588235
48
0.734043
04248893bbb78ab2b2561c89bcdfb09742057280
986
import java.io.Serializable; public class Request implements Serializable { /** * */ private static final long serialVersionUID = 1L; // Atributes private int objectID; private String method; private String type; private Place place; // Constructors public Request(Place place) { this.pl...
17
50
0.64503
9872fffbc2541404f64bfe8ed130adfa68263a84
4,880
/******************************************************************************* * Copyright (c) 七月 14 2016 @author <a href="mailto:iffiff1@gmail.com">Tyler Chen</a>. * All rights reserved. * * Contributors: * <a href="mailto:iffiff1@gmail.com">Tyler Chen</a> - initial API and implementation. * Auto Gen...
43.571429
121
0.593648
f8236d00b79f29a9aafc9b12789154e94a859f75
1,789
/* * Copyright 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 applica...
35.078431
109
0.724427
168105d0f165f2b20b300f551b1a1503f78b5be9
677
package app.had.demo.out.adapter; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Repository; import app.had.demo.domain.Taxi; import app.had.demo.out.port.GPSRepository; @Repository public class GPSRepositoryImpl implements GPSRepository{ @Override public L...
19.911765
73
0.6839
435f2565f67adc1f0b68e0c9f06eaf65914358ae
1,097
package cursoemvideo.aula13.Exercic01; public class Cachorro { public void reagir(String frase) { if (frase == "Toma comida") { frase = "Olá"; System.out.println("Sem vergonha"); } else { System.out.println("Rosnar"); } } public void reagir(int...
25.511628
61
0.505014
140e2d03917d231250749ee80af052d9d4ae5023
5,636
/* * 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...
33.547619
140
0.63396
f4860a4b1333a4198ea40c785d46c513c136ab49
740
package com.demo.spring.po; public class Car { private String brand; private String corp; private int maxSpeed; public Car() { } public Car(String brand, String corp) { this.brand = brand; this.corp = corp; } public String getBrand() { return brand; } public void setBrand(Str...
17.619048
66
0.612162
a70e4de30b0bd2519779e10c84316e8fe24197af
5,756
/* * CategoryTests.java * Created by: Scott A. Roehrig * Created on: Jul 9, 2016 */ package org.apache.bazaar; import java.util.Set; import org.junit.Assert; import org.junit.Test; /** * CategoryTests provides JUnit tests for {@link Category}. */ public final class CategoryTests { // declare...
31.626374
106
0.700139
ac55ecacfed3b70cdf4df7a716198df6fb46cf0b
1,813
package org.apache.shiro.biz.utils.uid; import java.sql.Timestamp; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.util.concurrent.atomic.AtomicLong; /** * <b>高并发场景下System.currentTimeMillis()的性能问...
28.777778
81
0.668505
c073d7c958dc65d8399dd7a2fec66daf693a2372
5,546
/* * jGnash, a personal finance application * Copyright (C) 2001-2018 Craig Cavanaugh * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your opti...
29.657754
108
0.601515
efaf8ae14d4fac9682e7f39aace6d698b3320324
1,347
/** * Copyright (c) 2013-2022 Contributors to the Eclipse Foundation * * <p> See the NOTICE file distributed with this work for additional information regarding copyright * ownership. All rights reserved. This program and the accompanying materials are made available * under the terms of the Apache License, Versio...
42.09375
100
0.74833
f481b445453972c4048127b1edd70ad9b5237504
482
public class RaggedArrays { public static void main(String[] args) { int[][] ragged = new int[4][]; ragged[0] = new int[3]; // Row 0 has 3 columns ragged[1] = new int[4]; // Row 1 has 4 columns ragged[2] = new int[5]; // Row 2 has 5 columns ragged[3] = new int[6]; // Row 3 has 6...
22.952381
91
0.549793
92403e90d9b5c8b139433c3d3f6d5159a805b1d5
1,489
package generated.zcsclient.account; import javax.xml.bind.annotation.XmlEnum; import javax.xml.bind.annotation.XmlEnumValue; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for distributionListSubscribeStatus. * * <p>The following schema fragment specifies the expected content contained within th...
27.072727
99
0.691739
09bb6d8368747871c9e28860d0ddd691ff7910da
2,097
package seedu.address.model.tag; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.testutil.Assert.assertThrows; import org.junit.jupiter.api.Test; public class TagTest { @Test public void constructor_null_throw...
38.833333
85
0.680019
6d95c8fd807200562a1b30aa1351d786ba9843e9
2,833
package ch.so.agi.gretl.jobs; import ch.so.agi.gretl.util.GradleVariable; import ch.so.agi.gretl.util.TestUtil; import ch.so.agi.gretl.util.TestUtilSql; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException;...
35.860759
128
0.663607
50f261a80f2bc1e8ba7c500eb154c81d4b0e919b
506
package com.NewsBrowser.Server.Service.Interfaces; /** * Represents validation of user input. * @author MJazy * */ public interface UserInputValidatorInterface { /** * Validates user input. * @param country represents country to which news should be related (e.g. Poland). * @param category represents cat...
25.3
91
0.733202
881fa20f2066bf0154ec3b51e066e7f82c3af58a
641
package com.rifledluffy.chairs.command.commands; import org.bukkit.command.CommandSender; import org.bukkit.command.ConsoleCommandSender; import org.bukkit.entity.Player; public abstract class SubCommand { /* /<command> <subcommand> args[0] args[1] */ public SubCommand() {} public abstract...
23.740741
79
0.719189
35bfc31bc2af55fbdb09a700bb624b7dc1bdea61
470
package com.chaitali._2structureofjavaapplication; public class SwitchStatement { public static void main(String[] args) { char grade = 'C'; switch(grade) { case 'A' : System.out.println("A grade"); break; case 'B' : System.out.println("B grade"); break; case 'C' : System.out.println("...
14.242424
50
0.587234