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
1315f86862f3bcc4f5e50b87bf5501d01c8773ad
847
package quickcache.storage; import java.io.IOException; import java.nio.file.Path; import java.util.Optional; import quickcache.commons.exceptions.DataConversionException; import quickcache.model.ReadOnlyQuickCache; import quickcache.model.ReadOnlyUserPrefs; import quickcache.model.UserPrefs; /** * API of the Stora...
25.666667
94
0.799292
c53e8ea1f2f530fc3dcd2c625d90cedf17359fbf
1,849
/* * 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 com.fmi.oopjava.tokenizer.tests; import com.fmi.oopjava.client.Client; import com.fmi.oopjava.bankCard.BankCard; import com.fm...
28.015152
102
0.660357
d115224a8016c6dd9ae24c71a76fab406d0f5602
2,034
package ru.stqa.mfp.rest; import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonParser; import com.google.gson.reflect.TypeToken; import com.jayway.restassured.RestAssured; import org.testng.SkipException; import java.io.IOException; import java...
34.474576
102
0.714356
ce70a5b96bf54f4f4b624f5e068b8b92f77e4266
617
package org.javacore.pattern.filter; import java.util.ArrayList; import java.util.List; /** * className: CriteriaFemale * Package: org.javacore.pattern.filter * Description: * Author:znq * Date 19/1/8 下午2:58 */ public class CriteriaFemale implements Criteria { @Override public List<Person> meetCriteria...
23.730769
64
0.645057
10836eb4046862e4d7066523a6f4f83c30a26229
66
/** * @author gaoxue */ package com.github.gaoxue.gexcel.reader;
16.5
40
0.69697
7f91516f5676f97707ebd28c0a9bf7b2cb06637e
5,574
package com.meal.recs.model; import com.meal.recs.data.entity.IngredientEntity; import com.meal.recs.data.entity.RecipeEntity; import com.meal.recs.utility.Utilities; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; import org.apache.commons.lang3.ObjectUtils; import java.util.ArrayList; i...
24.555066
121
0.672946
a942423cc5e0590bb1159465b5a1b6f5123ae000
290
// Copyright (C) 2019 Snild Dolkow // Licensed under the LICENSE. package com.example.cars; public abstract class Vehicle { protected final String make; protected final int numWheels; public Vehicle(String make, int numWheels) { this.make = make; this.numWheels = numWheels; } }
19.333333
45
0.737931
c02a622881419c53169ffface4d0c231a7c90be1
269
package org.sdoaj.jimgus.util.mesh; import org.sdoaj.jimgus.Jimgus; public class MeshFileHelper { private static final String prefix = "assets/" + Jimgus.MODID + "/objs/"; public static String getFilePath(String name) { return prefix + name; } }
22.416667
77
0.69145
590a73d26d511fc870757c5226e58def24d4c94a
965
package com.mpms.auth.shiro; import org.apache.shiro.SecurityUtils; import com.mpms.auth.shiro.UserRealm.ShiroUser; /** * 获得用户登录相关信息 * * @date 2015年11月3日 下午12:24:48 * @author luogang */ public class UserUtils { /** * 获取登录用户 * * @return * @date 2015年11月3日 下午3:40:45 * @author luogang */ public sta...
16.637931
69
0.651813
edf65ce1a12490ad91663cfdbf548f01da89c230
5,201
package eu.b24u.demo.rest.controllers; import com.jayway.restassured.RestAssured; import com.jayway.restassured.http.ContentType; import org.json.JSONObject; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.springframework.http.HttpStatus; import java.util.LinkedHashMap; import java....
29.055866
64
0.501057
daee99c1b6ccafea4b42fa78fc8384de617baa44
6,345
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
35.646067
120
0.655477
2cde310be7e2bde4225c17cd67364a6b04196328
4,603
package seedu.address.itinerary.logic.parser; import static org.junit.jupiter.api.Assertions.assertEquals; import static seedu.address.testutil.Assert.assertThrows; import org.junit.jupiter.api.Test; import seedu.address.itinerary.logic.commands.SearchCommand; import seedu.address.logic.commands.Command; import seed...
37.120968
119
0.679122
dc4a948005f9ef04ac0b1ef1941433b67e4ba064
18,780
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.python.sdk.skeletons; import com.google.common.collect.ImmutableMap; import com.google.gson.*; import com.google.gson.annotations.SerializedName; import com...
37.939394
163
0.659744
ae9c6bb80faffc7cc4201f3897df7780b73cdc5a
1,604
package com.vaga.java.leetcode.string; import org.testng.annotations.DataProvider; import org.testng.annotations.Test; import static org.assertj.core.api.Assertions.assertThat; /** * @author vaga * @version 2020/3/10 4:35 下午 * @description * 125. 验证回文串 */ public class PalindromeTest { @DataProvider(name = "...
25.460317
98
0.469451
0b8d04ddde91a6988de034502124d20b8c161500
752
/* *############################################################################# *#------------------------------ ServerInterface ----------------------------------- *# *# @author Joshua Landron *# @date 01Jun2019 *# @version 9Jun2019 *# *# Built as part of CSS434 with Dr. Munehiro Fukuda, Spring...
32.695652
104
0.506649
3fd102e5c583140f5d068c13389e6a6391bbb0f6
1,919
package org.wso2.carbon.bpmn.rest.api.repository; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import org.activiti.engine.repository.Deployment; import org.activiti.rest.common.util.DateToStringSerializer; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorT...
23.120482
71
0.671183
0097058b8a2f3e9efb83a4377b5a5f199d5f59cd
76
package org.zstack.sdk.sns; public class RemoveSNSSmsReceiverResult { }
9.5
41
0.776316
2fc4018889d32500962966b7b9f657502ca69da0
11,978
/* * 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 ar.nex.jpa; import java.io.Serializable; import javax.persistence.Query; import javax.persistence.EntityNotFoundExcep...
45.89272
159
0.608198
4cd73d30ab5161db7f1d84abe2d5282c1016deee
1,953
package aitoa.utils.logs; import aitoa.utils.Configuration; import aitoa.utils.ConsoleIO; /** The entry point for post-processing the data */ public final class PostProcessor { /** * The main routine * * @param args * the command line arguments */ public static void main(final String[] ar...
26.04
76
0.544803
90c4b4de3e5261ab8c62aca7070987195c9408c7
47
public aspect A { declare @type: T: @Foo; }
9.4
25
0.595745
bd0ace90a108dcc470a6c32a048e163938ce1971
1,344
//Controller.java //(C) Joseph Mack 2011, jmack (at) wm7d (dot) net, released under GPL v3 (or any later version) //inspired by Joseph Bergin's MVC gui at http://csis.pace.edu/~bergin/mvc/mvcgui.html //Controller is a Listener class Controller implements java.awt.event.ActionListener { //Joe: Controller h...
29.217391
96
0.675595
b877c29527f17d9fb2a1b7d319ed37373f1b4557
1,416
/* * Copyright 2011-2021 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 app...
28.32
116
0.717514
642c1a6b44c6865df49c3aeaa547249cf24d5ceb
692
package cn.gyw.backend.web.utils; import cn.gyw.components.web.utils.JwtTokenUtil; import org.junit.Test; import static org.junit.Assert.assertEquals; public class JwtTokenUtilTest { @Test public void testGetToken() { System.out.println(JwtTokenUtil.getToken("1001")); System.out.println(JwtTokenUtil.getToken(...
27.68
109
0.800578
cdaf2bce7328ba8b573e5bd4e7e1fdf80dc8c762
655
class Solution { public ListNode insertionSortList(ListNode head) { ListNode dummy = new ListNode(0); ListNode prev = dummy; // the last (largest) of the sorted list while (head != null) { // current inserting node ListNode next = head.next; // cache next inserting node if (prev.val >= ...
32.75
68
0.6
cd7ca7c42b88b1338afcacd38f2083104f55d222
1,338
package com.cpq.app001; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.client.discovery.EnableDiscoveryClient; import org.springframework.cloud.openfe...
29.086957
72
0.754858
e9d2cce24b9c1723f9484a7eba3f6d79e4b5a4d6
2,072
package de.tum.in.www1.artemis.service.connectors.bamboo.dto; import java.util.List; public class ApplicationLinksDTO { private List<ApplicationLinkDTO> applicationLinks; public List<ApplicationLinkDTO> getApplicationLinks() { return applicationLinks; } public void setApplicationLinks(List<...
20.72
80
0.560328
f88708ecd13fa2725f084584652568d2044b9388
8,967
package com.bkhech.home.practice; import com.alibaba.fastjson.JSONObject; import com.bkhech.home.practice.entity.AccountState; import com.bkhech.home.practice.utils.DateTimeFormatterUtils; import com.bkhech.home.practice.utils.RandomStringUtil; import org.junit.Test; import org.springframework.util.DigestUtils; impor...
32.48913
161
0.559496
ea8860d55e8901f450baf3b327cd4d6849257139
418
import java.io.IOException; import java.util.Scanner; public class Main1060 { public static void main(String[] args) throws IOException { Scanner ler = new Scanner(System.in); int c = 0; for(int i = 0; i < 6; i++){ double a = ler.nextDouble(); if(a > 0){ ...
20.9
63
0.507177
6dc32c1766c36a03bfaa6372c8d8400be3760f60
1,417
/* * 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 layout.views.project; import javax.swing.*; /** * * @author tug70 */ public class NewClass extends JFrame{ ...
28.918367
80
0.587862
c3e5d6023f665ed6ea55eb4700960196e2f401e0
573
package com.cmd.report.inputs.arguments_validators; import org.junit.Test; import static org.junit.jupiter.api.Assertions.assertThrows; public class DateValidatorTest { @Test public void should_give_an_exception_when_dates_arguments_are_Wrong() throws InvalidInputException{ String[] args= {"order_r...
28.65
103
0.712042
6ccafac8325ef1cae02c0df5fdd9076d0ec9cced
664
package mekanism.common.inventory.container.tile; import mekanism.common.registries.MekanismContainerTypes; import mekanism.common.tile.TileEntityEnergyCube; import net.minecraft.entity.player.PlayerInventory; import net.minecraft.network.PacketBuffer; public class EnergyCubeContainer extends MekanismTileContainer<Ti...
39.058824
88
0.801205
9852d3b44dc764464a6aa0e48b98f5af20aa4798
7,421
package Programming; import Vendor.Trainmaster; import Moot.MethodsRobot; import java.io.IOException; import java.util.Collections; import java.util.LinkedList; import static java.util.Collections.sort; import static java.lang.String.format; public abstract class Controller { private static final String synX678Stri...
36.55665
97
0.727126
1d7b81167720adec36ffedd1ebefef643c72f4c9
3,913
package fr.adrienbrault.idea.symfony2plugin.templating.annotation; import com.intellij.psi.PsiElement; import com.intellij.psi.util.PsiTreeUtil; import com.intellij.util.containers.ContainerUtil; import com.jetbrains.php.lang.documentation.phpdoc.psi.PhpDocComment; import com.jetbrains.php.lang.psi.elements.Method; im...
37.990291
115
0.681063
6c00162eb80d49864a394e8d76f0086058b7885f
768
// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package android.support.v4.net; import java.net.Socket; // Referenced classes of package android.support.v4.net: // n, o class m ...
13.963636
62
0.513021
17548b15a5bb9d482ef81f4ca72830fee684e548
798
package test.test; import java.beans.PropertyEditorSupport; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class DatePropertyEditor extends PropertyEditorSupport { private String format = "YYYY-MM-dd"; public String getFormat() { return format; }...
24.9375
73
0.660401
a518a736d3366d55abe296f3d59e8c87d61577c7
255
package com.coolweather.android.gson; /** * Created by Lv on 2018/11/6. * 定义Gson aqi 实体类 api中 会包含控件的质量情况 */ public class AQI { public AQICity city; public class AQICity{ public String aqi ; public String pm25; } }
15.9375
38
0.619608
77991504adf9ff28f89b5ae126335edcec3edcb3
11,723
package com.tspeiz.modules.common.service.impl; import java.math.BigDecimal; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.tspeiz.modules.common.bean.AdviceBean; import com.tspeiz.modules.common.be...
37.215873
97
0.820609
d29ffc83de9f291913b924f66c8880b894e2e879
658
package com.github.mahui53541.graduation; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.annotation.ComponentScan; import tk.mybatis.spring....
34.631579
70
0.846505
f7d5e22ff47ec125f00fe831ce8886c9ca429542
3,953
package com.example.android.mybaking; import android.content.Context; import android.content.SharedPreferences; import android.os.Bundle; import android.support.v4.app.FragmentManager; import android.support.v7.app.AppCompatActivity; import android.view.Menu; import android.view.MenuInflater; import android.view.MenuI...
33.218487
121
0.664559
13d2f0eeeb806014be8221fa924baafe44ab0964
660
package example5.springpatterns; import example5.springpatterns.corona.model.Patient; import example5.springpatterns.corona.services.doctors.Священник; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.Configurable...
34.736842
115
0.824242
b7b531de414b439cff9b620f8d69d038660e892c
1,953
package com.xelitexirish.elitedeveloperbot.utils; import java.io.IOException; import java.util.logging.FileHandler; import java.util.logging.Logger; import java.util.logging.SimpleFormatter; public class BotLogger { static Logger logger = Logger.getLogger("logs.txt"); static Logger messageLogger = Logger.get...
29.149254
76
0.644137
10473828525f07d03ed0f07bf326a1bb28927c62
882
package docu.journal.model; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonView; import lombok.Data; import java.util.Map; @Data public class CaseFile { @JsonView(Views.Public.class) private String caseYear; @JsonView(Views.Public.class) ...
28.451613
76
0.688209
ff1f7dc5a2a8aee421a67f03f888972c5fb6604c
4,579
/* * 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/licenses/LICENSE-2.0 * * Unless required by app...
37.532787
97
0.718497
a88271acf716fa6f6286ef4bdcaadc5d92df75f6
2,485
package com.sonar.vishal.ui.structure.barcode; import com.sonar.vishal.medico.common.message.common.Constant; import com.sonar.vishal.ui.component.Component; import com.sonar.vishal.ui.definition.GenerateStructure; import com.sonar.vishal.ui.structure.ProductStructure; import com.sonar.vishal.ui.util.BarcodeUtil; impo...
34.513889
130
0.782294
7949ea410f7fce61011e62da1825b5d7ff4a3c30
460
package es.uniovi.asw.service; import es.uniovi.asw.model.Participant; public interface ParticipantService { public void deleteAllParticipants(); public Participant findParticipant(String dni); public void updateParticipant(Participant participant); public void deleteParticipantByDni(String dni); public v...
21.904762
69
0.808696
9826a92e2004debd407c1e8446a8b4256ee493c0
1,557
package org.ovirt.engine.api.restapi.types; import org.ovirt.engine.api.model.Storage; import org.ovirt.engine.api.model.StorageType; import org.ovirt.engine.api.model.VolumeGroup; public class StorageVolumeGroupMapper { @Mapping(from = org.ovirt.engine.core.common.businessentities.StorageDomain.class, to = Sto...
47.181818
173
0.715478
528d6e3f5de6650112452fbad9095230f4019746
4,851
/* * Copyright (c) 2016 EMC Corporation * All Rights Reserved */ package com.emc.storageos.db.event; import java.net.URI; import java.util.Calendar; import java.util.Iterator; import java.util.List; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit; import org.apache.common...
40.425
136
0.693465
ea1c3325d6848fb2d99780b74b8f2275e90b70c3
6,948
package io.unlaunch.engine; import io.unlaunch.UnlaunchFeature; import io.unlaunch.utils.MurmurHash3; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.*; import java.util.concurrent.atomic.AtomicReference; /** * This class contains the logic for feature flag evaluation. * * @author umerm...
36.1875
124
0.596431
807d6cf121aeebac25b5221fc36ddbfc455a72d0
1,780
package com.huazie.frame.jersey.client.request.impl; import com.huazie.frame.common.slf4j.FleaLogger; import com.huazie.frame.common.slf4j.impl.FleaLoggerProxy; import com.huazie.frame.jersey.client.request.RequestConfig; import com.huazie.frame.jersey.client.request.RequestModeEnum; import com.huazie.frame.jersey.com...
26.567164
106
0.657865
46627288dbe38f91c16b0efe9a56761ce66255e3
1,797
package com.hui.UnionFindD; /** * @author: shenhaizhilong * @date: 2018/12/2 20:45 * * union by size * */ public class UnionFindII { private int count; private int[] parents; private int[] size; // init public UnionFindII(int capacity) { this.count = capacity; ...
19.117021
50
0.421814
364966acffda6144d00616ea2e2a61ee80b457ca
1,112
package ru.matevosyan.start; import java.util.ArrayList; /** * Class StubInput implements interface Input and created for testing the programs system input. * Created on 07.12.2016. * @since 1.0 * @version 1.0 * @author Matevosyan Vardan */ public class StubInput implements Input { /** * Instance var...
20.981132
96
0.646583
b4a814549bc740a5d7854cce0caa8313f153b849
858
package de.softknk.model.util; import de.softknk.main.AppSettings; import de.softknk.main.SoftknkioApp; public interface MapPoint { static double randomX(double radius) { if (SoftknkioApp.matchfield == null) { return -((AppSettings.MAP_WIDTH - AppSettings.WINDOW_WIDTH) / 2) + Math.random() * ...
35.75
135
0.63986
0a3ceae7f6ce35e58eb0afc35c98aeb84536d42d
1,337
/* * 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 ...
38.2
91
0.756918
d7dec9f681261b2a350cd1c15a751e718cbb06ec
484
package org.panda.controller; import com.alibaba.druid.stat.DruidStatManagerFacade; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class TestControllrt { @GetMapping("/hi") public String getHi() { return ...
25.473684
80
0.739669
76703f29b3dfe4540e71794e30e489c7d5db9c39
2,145
/* * 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 ...
43.77551
79
0.77669
554b75a3dc5399e27205a1aeb27c1efc179cb7cd
21,639
/* * Licensed to Elasticsearch under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not use this fi...
60.444134
139
0.687278
6bdf5787b6992406e128addf7cc8d95b44871823
527
package com.fastcampus.mobility.repository; import com.fastcampus.mobility.dto.VehicleDto; import com.fastcampus.mobility.dto.search.VehicleSearchDto; import java.util.List; import java.util.Optional; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; public interface Vehicl...
31
80
0.83871
c98d6f9473debe8c84994c9d4cd8b114a8cca5e0
1,697
/* * Copyright (c) 2004, PostgreSQL Global Development Group * See the LICENSE file in the project root for more information. */ // Copyright (c) 2004, Open Cloud Limited. package com.amazon.redshift.core.v3; import com.amazon.redshift.core.ResultCursor; import com.amazon.redshift.core.Utils; import java.lang.ref...
25.712121
95
0.71538
6deed0009555095c71118c33d444100005a0b03e
6,888
package exper; import hbaseusage.CooccurenceTableDriver; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase....
34.44
166
0.607578
95f6459c6824b472ee85de99e45f36d3a0b2c90c
1,660
/** * Copyright 2016 StreamSets Inc. * * Licensed under 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 Lice...
33.2
117
0.759036
de5dffbe17fc46468fc44038a3146b8fcf30a8a1
709
package sooth; @SuppressWarnings("ALL") public class ExpressionTest { static ExpressionTest mainTest; ExpressionTest instanceTest; int field = 5; public static void main(String[] args) { int five = 5; ExpressionTest test = new ExpressionTest(); mainTest = test; mainTest.mk(); int ten = ...
18.657895
47
0.651622
db342a6cdbf0b549686590ea9d2e5f5e3b42823d
1,240
package dev.jshfx.base.jshell; import org.fxmisc.richtext.CodeArea; import dev.jshfx.fxmisc.richtext.CompletionItem; public class CommandCompletionItem extends CompletionItem { private CodeArea codeArea; private int anchor; private String continuation; private String commandName; private String ...
23.846154
117
0.641935
d5e0a4ea1d30adef7f4d77d7df5903605e684ee9
3,095
package io.github.macfja.citiesborder; import com.sampullara.cli.Args; import com.sampullara.cli.Argument; import java.io.File; import java.io.IOException; import java.util.Arrays; import java.util.logging.Level; import java.util.logging.Logger; /** * Class Main. * The CLI entry point * * @author MacFJA */ publ...
28.136364
140
0.568336
de9b91c178859ec1e4373e64594e1ffbb3311733
1,487
/* * Copyright 2017 TieFaces. * Licensed under MIT */ package org.tiefaces.components.websheet.dataobjects; import org.apache.poi.xssf.usermodel.XSSFColor; /** * The Class XColor. */ public class XColor { /** The xssf color. */ private XSSFColor xssfColor; /** The alpha. */ private doub...
17.091954
67
0.581036
360836fa45989ed47aee4103e0ef404911d2f459
2,585
package techreborn.blocks; import java.util.List; import java.util.Random; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.Block; import net.minecraft.block.material.Material; import net.minecraft.client.renderer.texture.IIconRegister; import net.minecraft.crea...
29.044944
117
0.746228
21cb53f0911eb3d5261526aa77609e4aa6f750b2
91
package main; public enum PrimeMode { MODE_COUNT, MODE_BATCHED, MODE_BATCHED_HASHMAP }
11.375
23
0.791209
7ea051de6f8a0eaebc90fd57edff3646650ed5ef
367
package com.blannoo.adventofcode.day10; import org.assertj.core.api.Assertions; import org.junit.Test; import java.util.Arrays; public class SequencerTest { @Test public void test() throws Exception { Assertions.assertThat(new Sequencer().generate("1,2,3")) .isEqualTo(Arrays.asList(49...
26.214286
82
0.6703
6126660a4b02cb34c450d7f6e52d968aa997bab5
4,014
//If you're reading this, I just want to let you know that this is awesome!!! package me.aravind.connect4; import javafx.application.Application; import javafx.application.Platform; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import jav...
38.970874
110
0.663926
f26c50313a01117b2f1e4947e12f394b0f0fef69
3,492
/** * Copyright 2016 Lloyd Torres * * 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 ...
31.745455
96
0.652921
4a5f545ffe7efc960fea066b2c7863c0667ceeb2
282
package uni.mobile.mobileapp.rest.callbacks; import androidx.annotation.NonNull; import java.util.List; import uni.mobile.mobileapp.rest.House; public interface HouseCallback { void onSuccess(@NonNull List<House> value); //void onError(@NonNull Throwable throwable); }
20.142857
49
0.77305
585331260050b90621294b009048ba0ee98a9e45
4,840
package online.himakeit.qrcodekit.util; import android.content.Context; import android.os.Build; import android.os.Environment; import android.os.StatFs; import java.io.File; /** * @author:LiXueLong * @date:2018/3/29 * @mail1:skylarklxlong@outlook.com * @mail2:li_xuelong@126.com * @des:sd卡路径 */ public class SD...
24.568528
87
0.577479
521cc17703a18f6e4aebe1ef5d1fec84f8178fcc
663
/* * Copyright (c) 2016-2021 Association of Universities for Research in Astronomy, Inc. (AURA) * For license information see LICENSE or https://opensource.org/licenses/BSD-3-Clause */ package edu.gemini.seqexec.server.gnirs; public enum DetectorState { Inactive("Deactivate", false), Active("Activate", tru...
22.862069
93
0.657617
ea45e063247c5ac46a1262b5a1c1bc1b80b11dc0
1,743
package meta.tg; import meta.CyanMetaobjectNumber; import meta.ICompilerAction_dpa; import meta.ICompiler_dsa; public class CyanMetaobjectNumberIP extends CyanMetaobjectNumber { public CyanMetaobjectNumberIP(){ super(); } @Override public String[] getSuffixNames() { return new String[] { "IP"...
22.934211
96
0.620195
2bd70971db0bbc2543717cc54be2681ae1324da6
302
package org.springframework.roo.addon.web.mvc.views.components; /** * This enumerate represent all possible field types that can be * displayed on generated views. * * @author Juan Carlos García * @since 2.0 */ public enum FieldTypes { TEXT, NUMBER, BOOLEAN, DATE, ENUM, REFERENCE, LIST; }
20.133333
64
0.721854
59b2de6d1251692a1139d77c7b2c6a9fa547459a
626
package br.com.matheusbodo.rspt.entity.enums; public enum GuitarcadeGame { DUCKS_REDUX("Ducks Redux"), GONE_WAILING("Gone Wailing"), HARMONIC_HEIST("Harmonic Heist"), HURTIN_HURDLES("Hurtin Hurdles"), NINJA_SLIDE("Ninja Slide"), NINJA_WARRIORS("Ninja Warriors"), RETURN_CASTLE_CHORDEAD("Return to the Castle of ...
22.357143
60
0.747604
40269e957b1b64d1812ec32d9c1e1eba96971923
344
package com.lordjoe.ui.timeeditor; import javax.swing.*; /** * com.lordjoe.ui.timeeditor.JTimeStampComponent * * @author Steve Lewis * @date Dec 28, 2007 */ public class JTimeStampComponent extends JPanel { public static JTimeStampComponent[] EMPTY_ARRAY = {}; public static Class THIS_CLASS = JTimeStampC...
19.111111
63
0.729651
b118c63d95b700e9d5d0bb51ef76982c9cfaa764
1,564
/******************************************************************************* * Copyright 2010 Atos Worldline SAS * * Licensed by Atos Worldline SAS under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. *...
39.1
85
0.65665
e92d8e26b4ef8883affbe52db46441f7a96c1f87
4,246
package de.renew.engine.simulator; import de.renew.engine.searcher.Finder; import de.renew.engine.searcher.Searchable; import de.renew.engine.searcher.Searcher; import de.renew.engine.searcher.Triggerable; import java.util.Collection; public class SimulatorHelper { /** * Search a given searchable, making ...
43.773196
91
0.660151
6c204ed040b4b6537412fab7731f3eee4a3bfcc4
2,748
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
35.688312
85
0.70706
d41041ccdb513bf330e2e59372306b24eae4c0c9
14,578
package com.jainnews.jainnewsapp; import android.content.DialogInterface; import android.content.Intent; import android.content.pm.PackageManager; import android.os.Build; import android.os.Bundle; import android.util.Log; import android.view.MenuItem; import android.view.View; import android.widget.ImageVie...
40.270718
129
0.596995
14107237dc1ce3c1f02b870d85b240754826bbac
71,688
/* * 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 * "Lic...
39.893155
186
0.539463
312344a9bf0930760b4f06df025c4e5944975835
225
int mod = 13; // Neko prastevilo, ki predstavlja sistem private int FastPow (int a, long e) { int rez = 1; while (e > 0) { if (e % 2 == 1) { rez = (rez * a) % mod; } a = a * a % mod; e /= 2; } return rez; }
15
56
0.502222
71548e0bc7c97eb720147c6c81c43e5cf79cdc77
8,897
package at.favre.lib.dali.builder; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.Log; import androidx.collection.LruCache; import com.jakewharton.disklrucache.DiskLruCache; import java.io.BufferedOutputStream; import java.io.File; import j...
33.958015
180
0.589412
75f871de16050f3364a2b92e9a08481e463df909
922
package com.brentcroft.gtd.adapter.model.fx; import java.util.ArrayList; import java.util.List; import com.brentcroft.gtd.adapter.model.AbstractGuiObject; import com.brentcroft.gtd.adapter.model.GuiObject; import com.brentcroft.gtd.adapter.model.GuiObjectConsultant; import com.brentcroft.gtd.camera.CameraObjectManage...
27.117647
125
0.759219
8e0d3bcfa6884fc66088bed2d144e3d0aa0a026d
6,820
/* Copyright (c) 2012 Javier Ramirez-Ledesma Distributed under the MIT License (license terms are at http://opensource.org/licenses/MIT). */ package msti.ospfv2.fsmVecino; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Schedu...
27.611336
114
0.779765
3df43cf19194e88df6e71d65efd86037fd5ca1c2
2,009
/* * This file is generated by jOOQ. */ package com.github.mahjong.league.repo.jdbc.generated; import com.github.mahjong.league.repo.jdbc.generated.tables.Invitation; import com.github.mahjong.league.repo.jdbc.generated.tables.JoinRequest; import com.github.mahjong.league.repo.jdbc.generated.tables.League; import co...
33.483333
137
0.727227
eccb476b6370776ec0c55e8ace3c04672b8665c4
3,096
package org.corfudb.runtime.view.replication; import io.netty.buffer.ByteBuf; import io.netty.buffer.Unpooled; import org.corfudb.infrastructure.LogUnitServer; import org.corfudb.infrastructure.LogUnitServerAssertions; import org.corfudb.infrastructure.TestLayoutBuilder; import org.corfudb.infrastructure.TestServerRou...
35.586207
124
0.73708
4d45449c606799116e2b2b6dc1e12376a4463a45
4,684
/* * 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 * * Unless required by applicable law or agreed to ...
36.030769
113
0.672289
f15cc8c236fc2901d22c651e91f04c3f35809627
329
package dev.sheldan.abstracto.activity.service; import dev.sheldan.abstracto.activity.models.CustomActivity; public interface ActivityService { void switchToOtherActivity(); void switchToActivity(CustomActivity activity); net.dv8tion.jda.api.entities.Activity matchActivity(CustomActivity activity, String ...
32.9
94
0.81459
fe6396941f5be00b7173c6f9613ac61afb5e2df3
24,587
/* * 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, software distributed under t...
32.826435
182
0.715378
4bb664373c56de65208ac33459074874bbafbf10
4,147
//! //! @title Binary Sanctity //! @author Jonathan Smith //! Course Section: CMIS201-HYB2 (Seidel) //! @file StringUtil.java //! @description Collection of utility functions for working with strings. //! import java.util.HashMap; import java.util.regex.Pattern; public class StringUtil {...
20.631841
77
0.566675
d3fe97cdfb03daf51e85cbeb2bdaf283553c3857
5,399
/** * Copyright &copy 2012 Thomas Galvin - All Rights Reserved. */ package galvin.swing; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JComboBox; import javax.swing.JLabel; import javax.swing.JPanel; impo...
26.082126
93
0.538989
5e4889656e3018bda6cbbdff6485e52e622117ba
2,787
package net.glowstone.command; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.command.CommandSender; import org.bukkit.command.CommandTarget; import org.bukkit.command.CommandUtils; import org.bukkit.command.defaults.BukkitCommand; import org.bukkit.entity.Entity; ...
38.708333
162
0.597058
4340d3f367d1acee5385f400dc6577023c5920ff
889
package statemachine; public abstract class State { public StateID stateID; public StateMachine stateMachine; protected State(StateID stateID) { this.stateID = stateID; } /** * this method gets called at the start when the state becomes the currentState in the statemachine ...
19.755556
112
0.63892
f4950c87f77e7ae4d74b3dc1151ebaf6a44e2562
15,443
package com.rackspace.ceres.app.web; import static org.assertj.core.api.Assertions.assertThat; import static org.mockito.ArgumentMatchers.any; import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.ArgumentMatchers.eq; import static org.mockito.Mockito.verify; import static org.mockito.Mockito...
40.962865
139
0.655572
f1fc46f9563716d20754720dc7d71a796359b67a
166
package org.opencompare.database; import org.opencompare.explorable.Conflict; public interface ConflictFilter { boolean include(Conflict conflict); }
16.6
43
0.759036
99a66c380e57d633ede83af8585f1dbfdd97698a
178
public class Square extends Rectangle { public Square() { super(); } public Square(double x ,double y , double side){ super (x,y,side,side); } }
17.8
52
0.567416
6ab00916e49ce2ea4efd89478439f7aad4961704
2,825
/* * 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 sensorapp; import java.sql.SQLException; import sensorapp.station.ConcreteDisplay.StationUI; /** * * @author leo */ public...
45.564516
124
0.655929
378a7dfe8eaff89df80e68f14bf06f8db87810ba
335
package com.github.ayltai.hknews.data.model; import lombok.Getter; public final class Pageable { @Getter private Sort sort; @Getter private int offset; @Getter private int pageSize; @Getter private int pageNumber; @Getter private boolean paged; @Getter private bool...
13.958333
44
0.668657
2984dec593553fb7128df91af4341acb0df932c7
8,849
/* * Hibernate, Relational Persistence for Idiomatic Java * * Copyright (c) 2011, Red Hat Inc. or third-party contributors as * indicated by the @author tags or express copyright attribution * statements applied by the authors. All third-party contributions are * distributed under license by Red Hat Inc. * * T...
30.513793
114
0.702226