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
d32930a0d6f01b8dfc2bae4a27eb72b9e7178efd
2,263
/* * Copyright (c) 2021 DumbDogDiner <dumbdogdiner.com>. All rights reserved. * Licensed under the MIT license, see LICENSE for more information. */ package com.dumbdogdiner.sass.api.stats; import com.google.gson.Gson; import com.google.gson.JsonElement; import org.jetbrains.annotations.NotNull; import org.jetbrain...
26.940476
85
0.614671
16b52ebb14d650f5e0e18908b5aad4b28d05a4c8
1,036
package commands; import java.util.List; import driver.IShellState; import file_system.Directory; public class Pushd extends Command { /** * Pushd class save the current working directory * to directory stack and switch to given dir * */ public Pushd() { super(1, 1); } ...
28.777778
81
0.667954
141504f3f34770602ae595252f8bd4639980db18
1,039
package cn.smbms.dao.role; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import org.springframework.stereotype.Repository; import cn.smbms.dao.BaseDao; import cn.smbms.pojo.Role; @Repository public class RoleD...
25.975
73
0.689124
a480adbe177c439becb134da53a23a9d95f870a2
1,754
package it.polimi.deib.newdem.adrenaline.controller.effects; import it.polimi.deib.newdem.adrenaline.controller.effects.selection.PlayerSelector; import it.polimi.deib.newdem.adrenaline.controller.effects.selection.VisiblePlayerSelector; import it.polimi.deib.newdem.adrenaline.model.game.player.Player; /** * Card ef...
34.392157
103
0.706385
8e91b37843019454c78c28c2ddfe35ea511c4c61
1,145
package com.dealalert.webapp.security.services; import com.dealalert.webapp.models.User; import com.dealalert.webapp.repository.UserRepository; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.userdetails.UserDetails; import org.springframework.security.core.userd...
36.935484
101
0.798253
3076a90f452fee3cc35bc3c3a08a99c076a9742b
244
package com.lovemesomecoding.utils; public class EnvironmentUtils { public static final String LOCAL = "local"; public static final String DEV = "dev"; public static final String QA = "qa"; public static final String PROD = "prod"; }
20.333333
44
0.729508
e9921d18c49f3fc4f04ec8451eaf45297eb773fc
5,825
/*- * ================================================================================ * ECOMP Portal SDK * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property * ============================================================================...
37.580645
103
0.671931
0f04629089f9ea92b8e7ab12bbc958fd59063fd2
1,968
package com.example.littleforest.foodInfo; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.BaseAdapter; import android.widget.TextView; import com.example.littleforest.R; import java.util.ArrayList; public class Searc...
32.8
91
0.71748
5f3d042d10eb740d174df3243d01806474e94a95
2,021
package org.randoom.setlx.functions; import org.randoom.setlx.exceptions.IncompatibleTypeException; import org.randoom.setlx.exceptions.SetlException; import org.randoom.setlx.files.EncodedExampleFiles; import org.randoom.setlx.parameters.ParameterDefinition; import org.randoom.setlx.types.SetlBoolean; import org.rand...
33.131148
130
0.68382
b0462e1e35e7ccd70d28044344064e6ace4ad43d
5,080
/** * Helios, OpenSource Monitoring * Brought to you by the Helios Development Group * * Copyright 2013, Helios Development Group and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free softw...
39.076923
138
0.732283
2e6b8d5a5e0cd9225f16d66a171f5d991153346e
1,017
package frc.robot.commands.swerve; import edu.wpi.first.wpilibj2.command.CommandBase; import frc.robot.subsystems.SwerveSubsystem; public class TurnCommand extends CommandBase { private final SwerveSubsystem swerveSubsystem; private String direction; private float degrees; //direction is eit...
29.911765
90
0.6765
5eb181a8d5339da1a098506610d20fa4eaea9462
669
package com.example; public class Sample { public String hello(String str, long num1, double num2) { Long num3 = 0L; num3 += num1; String result = "hello " + str; return result; } public String ttt(String[] names) { for(int i = 0; i < names.length; ++i) { ...
21.580645
71
0.463378
9dc46b06cd5ea6b63de703e492826f3d8363f570
5,976
/** * Copyright (C) 2011-2012 trivago GmbH <mario.mueller@trivago.com>, <christian.krause@trivago.com> * * 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...
29.88
128
0.716867
3823a0828c92101d506c24fae9805438102c4402
3,643
package com.nius.server.demo01; import java.io.*; import java.net.ServerSocket; import java.net.Socket; import java.util.Date; public class Server01 { private ServerSocket serverSocket; public static void main(String[] args) { Server01 server01 = new Server01(); server01.start(); } pu...
31.405172
98
0.522646
a4729d8ed97680db388a360d6675480aba5958d8
5,413
/* * Copyright 2009-2020 Tilmann Zaeschke * * 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 ...
27.065
90
0.687604
ee37fb8df737d497f0c121e7bd063bd44289a928
1,088
import java.util.ArrayList; import java.util.List; public class NewArray { private static final int MAX_HOOKS = 10; private static final Runnable[] hooks = new Runnable[MAX_HOOKS]; String[] names01 = new String[12]; String[] names02 = {"Alice", "Bob"}; String[] names03 = new String[] {"Alice", "Bob"}; ...
32.969697
66
0.553309
714b9a3d349c02e6eefa4979d9ba8a0b43194e01
21,068
/* * (C) Copyright IBM Corp. 2021, 2022 * * SPDX-License-Identifier: Apache-2.0 */ package com.ibm.fhir.server.rest; import static com.ibm.fhir.model.type.String.string; import java.time.ZoneOffset; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.conc...
47.45045
232
0.679989
ace12e7b0130896915ab7f6c6d72d7c6688fcdce
659
package es.osoco.bbva.ats.forms.application.util; import com.google.gson.JsonElement; import com.google.gson.JsonPrimitive; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; import java.lang.reflect.Type; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; ...
34.684211
125
0.814871
bf2bee0e8e37cf1d8050dfbe6e5e46ab061febd4
1,712
package com.lagopusempire.MagicCompass.commands; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import org.bukkit.entity.Player; import com.lagopusempire.MagicCompass.Permissions; import com.lagopusempire.MagicCompass.management.PointManager; public class RemovePointCommand extends Co...
36.425532
126
0.63493
bb90d7593e5746322ad0622175fe3b0acced24e8
1,146
package org.zalando.stups.fullstop.web.test; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.data.web.PageableHandlerMethodArgumentResolver; import org.springframework.security.web.method.annotation.AuthenticationPrincipalArgum...
38.2
99
0.832461
982cae69d3744601943a1db1e65d3490ea39ed34
486
// Generated by protoc-gen-javastream. DO NOT MODIFY. // source: frameworks/base/core/proto/android/service/network_watchlist.proto package com.android.service; /** @hide */ // message NetworkWatchlistAppResultProto public final class NetworkWatchlistAppResultProto { // optional string app_digest = 1; public...
27
77
0.76749
2d36ac5cc65216ecd40269c2e86f1488e7600f5c
2,533
package site.autzone.sqlbee.configurer; import java.util.HashMap; import java.util.Map; import site.autzone.configurer.AbstractConfigurerAbleConfigurer; import site.autzone.configurer.Configurer; import site.autzone.sqlbee.column.Column; import site.autzone.sqlbee.builder.SqlBuilder; import site.autzone.sqlbee.condit...
26.385417
87
0.770628
fecbef7df22d018a8c1e4a52c0727f7837bd3715
2,850
package com.github.sylvainmaillard.gredis.gui; import com.github.sylvainmaillard.gredis.domain.logs.LogLine; import com.github.sylvainmaillard.gredis.domain.logs.Logs; import javafx.collections.ListChangeListener; import javafx.fxml.FXML; import javafx.scene.Node; import javafx.scene.control.ScrollPane; import javafx....
28.5
88
0.559649
2be5495bf491b8dc9236c100803a5bbd6557d580
3,828
package tanks.gui.screen; import tanks.Drawing; import tanks.Game; import tanks.Level; import tanks.Panel; import tanks.obstacle.Obstacle; import org.lwjgl.opengl.GL11; public abstract class Screen { public String screenHint = ""; public boolean showDefaultMouse = true; public abstract void update()...
31.377049
147
0.615987
03611645bbd45171158f87e894ae605a1c0fd511
13,154
package com.mz.jarboot.common.utils; import com.fasterxml.jackson.databind.JsonNode; import com.mz.jarboot.common.ExecNativeCmd; import com.mz.jarboot.common.JarbootException; import com.mz.jarboot.common.ResultCodeConst; import javax.net.ServerSocketFactory; import java.io.*; import java.net.*; import java.util.Arra...
35.077333
117
0.569789
979164a3e3392b335cd135cd1a208bd3f4067811
890
package com.light.hexo.common.component.log; import lombok.Getter; /** * @Author MoonlightL * @ClassName: ActionEnum * @ProjectName hexo-boot * @Description: 日志类型 * @DateTime 2021/7/7 18:06 */ @Getter public enum ActionEnum { INSTALL(1, "安装"), LOGIN(2, "登录"), LOGOUT(3, "注销"), ADMIN_ADD(4, "新增"...
19.347826
59
0.577528
7896e5d49f905191c81e2463979eeb337dae99d8
4,950
package seedu.address.logic.commands.recurringcommands; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.address.logic.commands.CommandTestUtil.assertCommandFailure; import static seedu.address.logic.commands.CommandTestUtil.assertCommandSuccess; import static ...
43.421053
111
0.769697
b7e7175ae106dcaeed3b769df8803d2a692dabf0
2,229
package com.example.androidthreadtest; import androidx.appcompat.app.AppCompatActivity; import android.annotation.SuppressLint; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; import android.widget.Button; import android.widget.TextView; public class MainActi...
29.72
85
0.516375
3e35043341ff6a2d5a1f205816b143a99fee0ed8
7,439
package com.raogers.babystats; import android.app.DatePickerDialog; import android.app.Dialog; import android.app.TimePickerDialog; import android.os.Bundle; import android.app.DialogFragment; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.view.View; import an...
38.345361
161
0.688668
9a97881ed6fa4e74af64962295bbb76b5f64f800
6,778
/* MIT License Copyright (c) 2018 Whippy Tools 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, publ...
31.672897
120
0.649897
99316cf2502f0278a0a5cec524e0bcdb9b8f4e2d
2,007
package com.union.yunzhi.yunzhi.network.mina; import android.content.Context; /** * @author Created by renzhiqiang on 16/6/4. * @function 与服务器连接的配置参数类 */ public class ConnectionConfig { private Context context; private String ip; private int port; private int readBufferSize; private long conne...
23.068966
62
0.585949
b65d206fd92714dfbb8ad201daca963a703591fa
1,920
package org.apache.hadoop.mapreduce.jobhistory; @SuppressWarnings("all") public class TaskFailed extends org.apache.avro.specific.SpecificRecordBase implements org.apache.avro.specific.SpecificRecord { public static final org.apache.avro.Schema SCHEMA$ = org.apache.avro.Schema.parse("{\"type\":\"record\",\"name\":\"...
51.891892
481
0.68125
16cdadd380607dbf3d13d63636977aaee18cd439
11,607
package com.specmate.test.integration; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertTrue; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.ecore.EObject; import org.junit.Asse...
33.741279
107
0.748083
f597087650760a092d112e716555362eacbb6125
3,058
package net.java.amateras.uml.model; import java.util.ArrayList; import java.util.List; import net.java.amateras.uml.UMLPlugin; import net.java.amateras.uml.editpart.ConnectionBendpoint; import org.eclipse.ui.views.properties.ColorPropertyDescriptor; import org.eclipse.ui.views.properties.IPropertyDescriptor; publi...
24.07874
85
0.733486
5c30d2e7cdaab223523d216b952893fab1b0dbd5
851
/* * Copyright (C) 2020 Intel Corporation. All rights reserved. SPDX-License-Identifier: Apache-2.0 */ package com.intel.iot.ams.service; import com.intel.iot.ams.entity.HistoricCfgInstance; import com.intel.iot.ams.repository.HistoricCfgInstanceDao; import java.util.List; import org.springframework.beans.factory.a...
30.392857
97
0.817861
3494b7ec41bb2e574e9e964d9c67a7c1166233b0
11,485
/**************************************************************** * 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...
48.054393
171
0.699521
71938b31b45995cbb87bff162b706d941209d2fa
1,477
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.NullPointerException; import java.io.IOException; class Main{ public int[] simpleSort(int[] values){ int max = values[0]; for(int i = 0; i < values.length; i ++){ for(int j = 0; j < values.length-1; j ++){...
32.822222
85
0.498307
6107720cdc93d4b36799745cec0c9ffbebef15d4
5,819
package org.cuieney.videolife.ui.fragment.music; import android.content.res.ColorStateList; import android.graphics.Bitmap; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.CollapsingToolbarLayout; import android.support.design.widget.FloatingActionButton; impo...
37.541935
123
0.675717
d403f1f9785c7a09d963ff56e705274bd2493102
883
package org.apereo.cas.gauth.token; import org.apereo.cas.util.junit.EnabledIfPortOpen; import org.junit.jupiter.api.Tag; import org.springframework.test.context.TestPropertySource; /** * This is {@link MariaDbGoogleAuthenticatorJpaTokenRepositoryTests}. * * @author Misagh Moayyed * @since 6.0.0 */ @TestPropert...
35.32
136
0.784824
47d733a438ae1b138d8d66b696e16d9583f6826f
2,491
package databases; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.CellUtil; import org.apache.hadoop.hbase.exceptions.DeserializationException; import org.apache.hadoop.hbase.filter.FilterBase; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; impo...
25.161616
106
0.715777
b5d51f114cf5cd6b400315bdfcbc2a916982316f
1,057
/* * Copyright 2018 Daniel Zarzeczny * * 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...
30.2
78
0.707663
c94b3d697ac1f817d9ef0da37c216df7c963d613
1,558
package com.example.score4.RemoteDB; import android.content.Context; import android.util.Log; import android.widget.Toast; import android.os.Handler; import androidx.annotation.NonNull; import androidx.fragment.app.FragmentActivity; import com.example.score4.MainActivity; import com.google.android.gms.tasks.OnComple...
37.095238
108
0.6181
7db0c16bf7341ee48ab31ecd550235a9ebc03031
6,055
package it.unitn.nlpir.annotators; import it.unitn.nlpir.tools.IOneVsAllClassifier; import it.unitn.nlpir.tools.KelpClassifierWrapper; import it.unitn.nlpir.tools.NLPFactory; import it.unitn.nlpir.tree.ITreePostprocessor; import it.unitn.nlpir.tree.TreeBuilder; import it.unitn.nlpir.types.QuestionClass; impo...
39.064516
120
0.764988
bcde3154f21242a0368fcbee5c67209a67c8616c
282
package com.asodc.karaf; import org.apache.camel.builder.RouteBuilder; public class Greeter extends RouteBuilder { @Override public void configure() { from("jetty:http://localhost:8080/greeter") .transform().constant("{{greeterMessage}}"); } }
23.5
60
0.663121
c1cca0c6e8b1e5d6ef47b14fcdf7f9c391d294da
1,831
package bio.ferlab.fhir.schema.definition.specificity; import bio.ferlab.fhir.schema.repository.DefinitionRepository; import bio.ferlab.fhir.schema.repository.SchemaMode; import bio.ferlab.fhir.schema.utils.Constant; import bio.ferlab.fhir.schema.utils.JsonObjectUtils; import org.apache.commons.text.WordUtils; import...
49.486486
130
0.697433
0bc7c29fb743be9cbb35d6e72e04b4cec7eceb59
1,274
package uk.ac.ncl.erop; import java.util.Date; /** * The Class Obligation. * Instances of this class are obligations granted to role players. */ public class Obligation extends ROPEntity { /** * Instantiates a new obligation. * * @param bo the business operation * @param deadline the date of the dead...
24.037736
81
0.712716
696101822c184034501e89341cf0ba8ccccc1627
9,997
package com.taobao.tddl.executor.common; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.text.MessageFormat; import java.util.HashMap; import java.util.Map; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; impor...
38.45
358
0.621787
1515bfaee1666257f9acc2be75fd25ea5100c0a6
317
package com.example.creation.xo.mapper; import com.example.creation.commons.entity.ArticleSort; import com.example.creation.base.mapper.SuperMapper; /** * <p> * 文章分类表 Mapper 接口 * </p> * * @author xuzhixiang * @since 2018年9月24日15:15:44 */ public interface BlogSortMapper extends SuperMapper<ArticleSort> { }
18.647059
66
0.744479
81d293a3548323b15eb82876f5aa201209c2fdac
215
package lt.povilass.jirap.service; import lt.povilass.jirap.rest.dto.ArtistsDto; import java.io.IOException; public interface ArtistsService { ArtistsDto getArtists(String searchParam) throws IOException; }
19.545455
65
0.804651
0597fb5c641fb2cd8ac8baa70562e40a0a3f1584
1,634
/* * Copyright 2017 Kaiserpfalz EDV-Service, Roland T. Lichti * * 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 b...
30.259259
114
0.697062
d5d5c6de69786fac5050398dbd23f6f1f46c5f11
1,045
/* * Copyright (c) 2012. HappyDroids LLC, All rights reserved. */ package com.happydroids.platform.purchase; import com.happydroids.droidtowers.DroidTowersGooglePlay; import com.happydroids.platform.PlatformPurchaseManger; import static com.happydroids.platform.purchase.DroidTowerVersions.*; public class GooglePl...
29.027778
92
0.798086
1b0a6bfd58308080443893754d82fde096caaa24
16,255
/* Copyright 2013 Vikram Aggarwal 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, softwa...
38.157277
119
0.628545
c7eb91b5e77a53e54eefe23cc17c320ca4977399
269
package com.chorifa.minirpc.api.param; import java.io.Serializable; import java.util.List; public class TestDO implements Serializable { private static final long serialVersionUID = 201907041533L; public Object[] args; public List<String> likes; }
19.214286
61
0.747212
30eb4741b0c6177f62aa36b4e180e2b7bee6199f
9,760
package com.gbourquet.yaph.client.mvp.presenter; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import com.gbourquet.yaph.client.LocalSession; import com.gbourquet.yaph.client.event.MenuEvent; import com.gbourquet.yaph.client.event.password.NewPasswordEvent; import com.gbourquet...
31.483871
165
0.717623
198c0ff464557194ecc21171f7d973db0cc151bc
6,144
/* * Copyright 2012-2013, Arno Puder * * 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...
29.118483
98
0.663574
71d9c29477886f1ed3e7b34e2cee5025e42ac844
4,101
/* * Copyright 2019 Arcus 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 applicable law or agreed to ...
28.880282
80
0.610827
51ddb2a9fb7192604736ea312102f69e771e3c2a
1,248
package Logica; /** * Clase que permite manejar el inventario de una cabania en * especifico * @author LEIDY * @version 1.0 * @updated 24-sep.-2015 7:55:07 a. m. */ public class InventarioCabania { /** * Atributo que permite tener la cantidad de elementos que * hay en una cabania en especifica */ privat...
18.909091
77
0.709135
52a0439d855d06ff98862a7dea0ffcfe550bef7c
417
package floppaware.client.commands; //import baritone.api.BaritoneAPI; import floppaware.api.command.Command; public class Baritone extends Command { public Baritone() { super("b", "Baritone API Pog"); } @Override public void execute(String command, String[] args) throws Exception { //BaritoneA...
20.85
105
0.719424
1271908b8016559d2fc512183c57a25cddd0f9d5
795
package demo.fish.payara.demo.microprofile.lra.distributed; import org.eclipse.microprofile.lra.annotation.Compensate; import org.eclipse.microprofile.lra.annotation.Complete; import org.eclipse.microprofile.lra.annotation.ws.rs.LRA; import javax.enterprise.context.ApplicationScoped; import javax.ws.rs.GET; import ja...
24.84375
68
0.719497
5a2496a921adca043374c2df5a6c7ebd63114c9d
633
package example.enablexxx; import org.springframework.beans.factory.support.BeanDefinitionRegistry; import org.springframework.beans.factory.support.RootBeanDefinition; import org.springframework.context.annotation.ImportBeanDefinitionRegistrar; import org.springframework.core.type.AnnotationMetadata; public class Co...
39.5625
117
0.837283
31f9d6e0b8a0df6965b206fcfd2881d3a18b1dfa
2,326
package edp.license.service; import java.net.InetAddress; import java.util.List; import java.util.Scanner; import java.util.stream.Collectors; /** * <p>用于获取客户Windows服务器的基本信息</p> * * @author yinpenghai * @date 2020年8月17日15:22:01 */ public class WindowsServerInfos extends AGxServerInfos { @Override protec...
25.56044
142
0.614359
ad28d7cc8ed4be87b58b36347adf2432c3a6badd
102
package com.bearcats.tamagoparent.tempData; public class Temp { public static String child_id; }
17
43
0.77451
dff58707b73e730ce566c18d6425c05bf4849566
293
package com.nabetama.singleton; import static org.junit.jupiter.api.Assertions.*; import org.junit.jupiter.api.Test; class SingletonTest { @Test void getInstance() { Singleton s1 = Singleton.getInstance(); Singleton s2 = Singleton.getInstance(); assertSame(s1, s2); } }
17.235294
49
0.709898
e1d78ac0e7dce8b19ff258270f5e1548ef1c635d
4,976
/* * 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 view; import controller.EndController; import java.awt.Label; /** * Dialog di akhir permainan. * @author Asus */ public c...
31.694268
92
0.696342
a0e94a186156ba20db048cfdd9e2525c14d4d109
803
import static org.junit.jupiter.api.Assertions.*; import java.util.Arrays; import java.util.Random; import org.junit.jupiter.api.Test; class ComparatorTests { void shuffle(Shape[] s) { Random r = new Random(); for (int i = 0; i < s.length; i++) { int j = r.nextInt(s.length); Shape t = s[i]; s[i] = s[j...
21.131579
57
0.647572
05ba40d90c6ab5cf9094917ce5833376dddecf3c
5,918
package run.var.teamcity.cloud.docker.client; import org.junit.Test; import run.var.teamcity.cloud.docker.util.DockerCloudUtils; import java.net.URI; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; /** * {@link DefaultDockerClient} test suite. */ public class DefaultDockerClientTest exten...
50.152542
118
0.671849
0a9f63af27eb96ac7f0b5fcac1578091a893f479
2,194
package com.smattme.models; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.util.Date; /** * Created by Seun Matt on 24-Mar-18 */ @Entity @Table(name = "users") public class User { @Id @GeneratedValue(strategy = GenerationType.AUTO) private int id; @NotNull ...
18.283333
66
0.571103
c9bcc8515bf5b2e7a009b148b242afbc34c867f1
2,905
package controllers; import com.google.gson.Gson; import com.google.inject.Inject; import play.data.DynamicForm; import play.data.FormFactory; import play.mvc.Result; import java.sql.ResultSet; import java.sql.SQLException; import static play.mvc.Results.ok; public class LoginController { @Inject FormFactory ...
31.236559
127
0.547332
5e03a95f25ba896f4b816704b413dcf95dd7aaf7
572
package com.xixi.approval.myapproval.enums; /** * @author shengchengchao * @Description * @createTime 2021/6/3 */ public enum OperateEnum { /**简单节点*/ APPROVAL("APPROVAL","审批"), /**并行节点*/ ROLLBACK("ROLLBACK","回滚"),; private String operate; private String operateName; OperateEnum(Stri...
16.823529
53
0.622378
d0b04b57f14545f50ccc4e679d9b0c9bcc1cf8c9
1,382
package com.doodle.backendchallenge.model.dto; import com.fasterxml.jackson.annotation.JsonInclude; import java.time.OffsetDateTime; import java.util.Objects; import java.util.UUID; @JsonInclude(JsonInclude.Include.NON_NULL) public class SlotDto { private UUID id; private OffsetDateTime startAt; private Offset...
21.261538
90
0.667149
de6729a5da5c03d2f4b5191cbe68fc208bf3fd6c
4,376
package org.sculptor.dddsample.cargo.domain; import static org.junit.jupiter.api.Assertions.*; import static org.sculptor.dddsample.cargo.domain.TrackingId.trackingId; import static org.sculptor.dddsample.location.domain.SampleLocations.HAMBURG; import static org.sculptor.dddsample.location.domain.SampleLocations.HONG...
47.565217
120
0.72692
af791f76291a59d51cdfc998f4e0241480da0c93
1,380
package com.earthquake.tracker.quaker.mvp.model; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Metadata { @SerializedName("generated") @Expose private long generated; @SerializedName("url") @Expose private String url; @Seriali...
17.037037
50
0.598551
b12e4434f145d31d8490de4c96c9acca558b7177
1,573
/** * Copyright 2009 Marc Stogaitis and Mimi Sun * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
26.661017
77
0.701844
e83f07cd596c5506be40bc4555b35d49cdc78a6f
8,912
package fr.philippedeoliveira.filters; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.springframework.context.support.MessageSourceAccessor; import org.springframework.dao.DataAccessException; impor...
39.964126
118
0.691091
5d64261d9f09ab6736f5d5cbb37a14b526bc78b7
1,526
package designpatterns.annotations.impl.tasks; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.List; import dependencyinjection.annotation.Injector; import dependencyinjection.annotation.InjectorImpl; import designpatterns.DesignPatternsObject; import designpatterns.DesignPatternsTask...
47.6875
118
0.846003
7890fb3df1309899cc4a331f1a84ab23ebc30c04
1,649
/* * Copyright (C) 2019-2020 The X-Cash Foundation * Copyright (C) 2015 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...
31.711538
86
0.72832
894665d35dc3414af2727a3a1fd64451595118ae
3,644
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
32.828829
109
0.781833
df5936deb985b7aa1c604765c90f3832242c43f2
1,257
package com.example.web; import java.io.IOException; import java.util.List; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.exam...
30.658537
120
0.762132
622025439fcfa2a3ffc37e9ad41a5dcd2328827b
787
package ru.job4j.list; import org.junit.Test; import org.junit.Before; import static org.hamcrest.Matchers.is; import static org.junit.Assert.*; /** * @author vsokolov * @version $Id$ * @since 0.1 */ public class StackTest { private Stack<Integer> list; @Before public void beforeTest() { lis...
20.710526
70
0.587039
4f9938795804e77289f707860459f461cc3dadd4
4,480
package org.fieldsight.naxa.v3.project; import android.os.Bundle; import android.text.TextUtils; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation....
31.328671
150
0.687054
95b4a866b62867e52b6a0fc26297b07f82f58d7e
6,655
/* * Copyright © 2017-2018 Cask Data, 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 agr...
29.317181
107
0.693914
c04804d610c383327f305a53e1d641f3c887793c
12,817
/* * (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP * * 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 requi...
33.997347
88
0.666225
acbbced26da8ea5a13000914a5077427227daef5
2,007
package kr.jm.metric.config.input; import kr.jm.metric.config.AbstractPropertiesConfig; import kr.jm.utils.JMThread; import lombok.*; import java.util.Objects; import java.util.concurrent.Flow; import static kr.jm.utils.flow.publisher.BulkSubmissionPublisher.DEFAULT_BULK_SIZE; import static kr.jm.utils.flow.publishe...
29.955224
96
0.727454
5446cd3d1c9ca95952ed5fa26f2a29a8095e9e48
1,459
package mock.contract; import javax.jms.JMSException; import javax.jms.TextMessage; import org.junit.Test; import static org.junit.Assert.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * @author pthomas3 */ public class QueueUtilsTest { private static final Logger logger = LoggerFactory...
28.607843
87
0.586018
a4dd1407b752e2e6a87db1c4d6076650a7b2db7b
1,306
/* * 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
22.517241
100
0.68683
825cd335e8c6027fd32685ef05be1126508fbf98
1,368
package net.canarymod; /** * A Bridge class to adapt the native translation of Minecraft into the Canary Translator. * An implementation should implement the bridge into their projects and bridge it to the Minecraft translator. * Plugineers should not implement or access this class directly. * * (The Rainbow) * ...
27.36
111
0.645468
34537e2514b9b67b8ca5e1e75d4e02b987ed148f
40,062
package Sets.View; import Sets.Controler.*; import Sets.Model.*; import javax.swing.*; import javax.swing.text.Document; import javax.swing.undo.CannotUndoException; import javax.swing.undo.UndoManager; import java.awt.*; import java.awt.event.*; import java.util.ArrayList; import java.util.Iterator; import static S...
32.100962
124
0.733463
e310d0d59309575811f39c7db263272801dd56d8
372
package instructions; import slogo_model.SLOGOModel; import slogo_view.SLOGOView; public class Minus extends MathOperation { @Override public int getNumRequiredParameters() { return 1; } @Override public double evaluate(SLOGOView view, SLOGOModel model) { if (canEvaluate()) return (-1) * parameters.get(...
17.714286
59
0.733871
90cb529225ca0f69b5d3a6627f01dcd2c6208452
2,271
package com.example.nikhil.materialtester; import android.content.Context; import android.content.Intent; import android.support.v7.widget.RecyclerView; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android....
27.035714
87
0.688683
0f00a97923f162f303838b6b207bd079b949443f
6,723
/** * The MIT License (MIT) * * Copyright (c) 2016 fx-highway (tools4j), Marco Terzer * * 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 limitatio...
46.365517
127
0.70415
983e8006c9bfa21b0c1a3b5d590133e71ceeb0fc
2,870
/******************************************************************************* * Copyright 2016 Ivan Shubin https://github.com/ishubin/test-hub * * 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 Lic...
35.432099
112
0.652613
34c3fcc8164bfccf291b9d258f8f2f33249516d2
2,942
package com.hubspot.singularity.executor; import static java.nio.charset.StandardCharsets.UTF_8; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.fasterxml.jackson.databind.ObjectMapper; import com.google.common.base.Optional; import com.google.inject.Inject; import co...
43.264706
177
0.800476
c2435da0794c0c0c3da699ca6ceffe1be8252e10
687
package org.sparkr.taiwan_baseball.Model; /** * Created by Keith on 2018/1/24. */ public class News { private String title; private String date; private String imageUrl; private String newsUrl; public News(String title, String date, String imageUrl, String newsUrl) { this.title = title;...
19.083333
77
0.611354
256bd461d6734e68098c5f58bab2652429415ded
1,351
/* * 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 neuralnet; import java.lang.Math; /** * * @author tosin */ public class Functions { public static class Sigmoid im...
28.145833
88
0.592894
88023fc633a1c48219262ddd0a59f8b2f1049743
21,316
/* * Copyright 2012-2014 Netherlands eScience Center. * * 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 the following location: * * http://www.apache.org/licenses/LICENSE-2.0 * * ...
34.830065
114
0.586414
e674da236e222f1d5bfc1ba0342603916d8c94e7
399
package com.webapp.wooriga.mybatis.calendar.result; import com.webapp.wooriga.mybatis.challenge.result.ChallengeBarInfo; import lombok.Builder; import lombok.Getter; import lombok.Setter; import java.util.ArrayList; @Getter @Setter @Builder public class CalendarInfo { private ArrayList<EmptyDayUserInfo> emptyDay...
23.470588
68
0.824561
bccd92ad16568da12dfe82625091a4c39924289c
97,605
package dbconsent.PostgreSQLParser;// Generated from PostgreSQLParser.g4 by ANTLR 4.7.1 import org.antlr.v4.runtime.atn.*; import org.antlr.v4.runtime.dfa.DFA; import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.misc.*; import org.antlr.v4.runtime.tree.*; import java.util.List; import java.util.Iterator; import ...
37.396552
164
0.690333
64d44b08a04fbd430cf2b3b582830ffefb389b5a
1,676
package com.goldenapple.marble.gui; import com.goldenapple.marble.tileentity.TileEntityTable; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.inventory.GuiContainer; import...
39.904762
146
0.752387
d8d2ccc8ad61391d3bf533978ace45246397d0de
474
package com.progressoft.brix.domino.sample.items.shared.request; import com.progressoft.brix.domino.api.shared.request.RequestBean; public class ToggleItemRequest implements RequestBean{ private String title; public ToggleItemRequest() { } public ToggleItemRequest(String title) { this.title...
19.75
66
0.683544
ac1037f481c46413e8fc5068c2fe1398640a881d
814
package com.helospark.ladspaplugin.ladspa.nativelibrary; import java.util.List; import com.sun.jna.Pointer; import com.sun.jna.Structure; public class LadspaGetPluginDescriptionRequest extends Structure implements Structure.ByReference { public int index; // output public int parameterCount; public ...
29.071429
167
0.739558