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
ef905726000e4b7a9da465e28a164141a2c6ddec
4,002
package com.jzhu.io.baselibrary; import android.annotation.SuppressLint; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.view.ViewGroup; import android.widget.FrameLayout; import android.widget.Toast; import ...
25.987013
86
0.643928
c98c52ed2bea1feac561ef2e5d0f322ceb06c9ad
7,991
/* * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * The Universal Permissive License (UPL), Version 1.0 * * Subject to the condition set forth below, permission is hereby granted to any * person obtaining a copy of this s...
41.837696
188
0.636967
f4380242965e02dcf8bfadaed4402024cff1797b
20,801
/* * Copyright (c) 2016. See AUTHORS file. * * 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 o...
37.479279
121
0.558819
013c1a7f9e6bb1c418879b6513965b9edd3d8664
1,142
/* * Copyright 2019 Scott Logic Ltd * * 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...
34.606061
75
0.761821
1cb16b3a093edad180ca8afe1a90108f4f3dc739
1,373
package com.mahogano.core.magento.mapper; import com.mahogano.core.magento.entity.CatalogProductIndexPriceIdx; import org.springframework.jdbc.core.RowMapper; import java.sql.ResultSet; import java.sql.SQLException; public class CatalogProductIndexPriceIdxMapper implements RowMapper<CatalogProductIndexPriceIdx> { ...
49.035714
100
0.792425
5fefd2bfec19cec16a173cb580c8454386f61b09
837
/* Author: Dmitriy * sudoku game * * Specifies a square, which contains a value and whether it can be modified or not. */ public class square{ private int value; private boolean mutable; /* Constructors */ public square(){ value = 0; mutable = true; } public square(in...
22.026316
84
0.57945
9c48e913dd510d1fae1e92289d6a20949a978ab5
1,564
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2017 by Hitachi Vantara : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version...
31.918367
87
0.63555
8185d98f0a134f2aa3c0cfbb537670b41ef29ee0
5,005
/* * Created on Dec 24, 2010 * * 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 writ...
35
192
0.735265
ff14e4b9179465b3a16ff9185d96c0c538e912a8
11,662
/* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, 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 software; you can redistribute it and/or modify i...
32.758427
104
0.61336
469c5ccb0dfa63a415413164bf705debf1556467
6,967
package samples.httpclient.closewait; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorCompletionService; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurre...
41.718563
186
0.635711
f5d0fe136360284670082fbd50b377f6a9fb159b
501
package com.netsocks.campaign.resources.campaign; import javax.annotation.Nullable; import java.util.ArrayList; import java.util.List; class SearchDto { @Nullable private String teamId; @Nullable private List<String> ids; String getTeamId() { if (teamId == null) { return ""; ...
16.7
49
0.556886
5b0986cbed6c567c49886cea9c0933b5d5b256db
1,283
package org.motechproject.mds.domain; import org.joda.time.DateTime; import javax.jdo.annotations.Column; import javax.jdo.annotations.Inheritance; import javax.jdo.annotations.InheritanceStrategy; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; /** * This class represents ...
22.508772
65
0.715511
897ff5a23db52a12e8e7d72b5b9e4840cb1d4410
591
package com.app.coolweather.receiver; import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; import com.app.coolweather.service.AutoUpdateService; /** * @author: tuandai001 * @Filename: * @Description: * @Copyright: Copyright (c) 2016 Tuandai Inc. All rights rese...
24.625
67
0.737733
34fd1dc99f90abd19443d695742e636de174fbc8
1,150
/* Copyright 2016 Urban Airship and Contributors */ package com.urbanairship.alexdown; import android.os.Bundle; import android.preference.PreferenceFragment; import android.support.v7.app.ActionBar; import android.support.v7.app.AppCompatActivity; public class SettingsActivity extends AppCompatActivity { @Over...
31.081081
100
0.662609
fcfdf399da0193c6f647620c67f120b7f94138f0
1,734
package me.wendysa.formsubmission; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class Main extends HttpServlet{ private static final String SUBMITTED_CONTACT_VIEW = "<!doctype html public \"-//w3c//dtd html 4.0 " + "transitional//en\">\n" + "<html>\n"+ "<head><title...
31.527273
92
0.572664
11f948b2d06ddc1e5b283dfae318ebc646e66907
373
package io.guill.uniovi.ds.practica4.validators; public class NumberGreaterThanValidator implements IValidator { private int numberToCompare; public NumberGreaterThanValidator(int numberToCompare) { this.numberToCompare = numberToCompare; } @Override public boolean validate(String content) { return (Inte...
21.941176
63
0.793566
c03da68d2986cbd53d926a6cf15a9d33e2a7fc61
25,703
/** The MIT License (MIT) Copyright (c) 2010-2021 head systems, ltd 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, co...
34.4083
211
0.544256
453723bca02656717e1d68861d0b970b394c3b2f
206
package com.ard333.quarkusjwt; import io.quarkus.test.junit.QuarkusTest; import org.junit.jupiter.api.Test; @QuarkusTest public class ExampleResourceTest { @Test public void testHelloEndpoint() { } }
15.846154
41
0.781553
238f6909234c7e23c9b0b988d5d404a4d8c590de
3,711
/* * ***** BEGIN LICENSE BLOCK ***** * Zimbra Collaboration Suite Server * Copyright (C) 2007, 2008, 2009, 2010, 2011 Zimbra, Inc. * * The contents of this file are subject to the Zimbra Public License * Version 1.3 ("License"); you may not use this file except in * compliance with the License. You may obtain a...
36.029126
152
0.708704
a41023fe9e7886306896f69a07b12a838b935933
5,812
package org.gbif.pipelines.transforms; import java.util.Optional; import java.util.Set; import java.util.function.UnaryOperator; import lombok.SneakyThrows; import org.apache.avro.Schema; import org.apache.avro.file.CodecFactory; import org.apache.avro.specific.SpecificRecordBase; import org.apache.beam.sdk.io.AvroIO;...
31.586957
100
0.721094
079a2c59f5972cd40fbea72b957daccaf5af0b5d
5,544
/* * Copyright @ 2017 Atlassian Pty Ltd * * 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 ag...
34.867925
96
0.70653
aac22348abb6d23324c9d7af227e04e2519dcb68
5,156
/* * 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...
52.080808
134
0.73332
c3f0106a5122bf127fed5b54173fa487a7f36947
1,406
package uk.co.jamesmcguigan.algorithms; public class Fibonacci { private Fibonacci() { } //Think about trees. Count all 1 at the bottom level of the tree. public static int calculateFibonacciRecursive(final int n) { if (n == 0) { return 0; } else if (n == 1) { ...
29.291667
115
0.559744
daee14e7899ca30489549c47a6f0dcf93b25f82e
1,113
package main.java.tests; import com.mongodb.client.MongoCollection; import com.mongodb.client.MongoDatabase; import main.java.database.MongoConnection; import org.bson.Document; import java.util.HashMap; import java.util.List; import java.util.Map; /** * Created by Andrea on 13/10/2017. */ public class Test3 { ...
27.146341
84
0.652291
314c03c6141aaa6ff4e5941e06f0c6ad872d8307
1,697
package com.yammer.dropwizard.tests; import com.yammer.dropwizard.Bundle; import com.yammer.dropwizard.Service; import com.yammer.dropwizard.config.Configuration; import com.yammer.dropwizard.config.Environment; import org.junit.Test; import static org.hamcrest.Matchers.*; import static org.junit.Assert.assertThat; i...
30.854545
74
0.688273
0285714dbe550fd13d3e5785a34e67a7eccf5981
281
package com.brucechou.arsenal.test.assertion; /** * A functional interface with return value that will probably throw a throwable. * * @param <R> type of return value */ @FunctionalInterface public interface ThrowerWithResult<R> { R throwThrowable() throws Throwable; }
20.071429
81
0.747331
a225fbc254af65a88807aa6610c0cb24e353df4e
921
package com.greenlearner.covidalertservice.dto; import java.time.ZonedDateTime; /** * @author - GreenLearner(https://www.youtube.com/c/greenlearner) */ public class SummaryData extends BaseDataClass{ private int total; private int confirmedButLocationUnidentified; private ZonedDateTime updateTime; ...
23.615385
91
0.71987
055376fb48fe41959ded1ed076bb62ceb1582a2b
1,650
package org.xfh.web.config; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.springframework.stereotype.Component; import org.xfh.dcore.ex.SessionInvalidException; import org.xfh.dcore.utils.DWebUtils; import org.xfh.web.vo.WebUserSessionVo; @Component public class WebS...
28.947368
92
0.77697
c2be1be6467e71142fb4910bfbf5da29ff777ff8
216
package Document; import java.io.File; import java.io.IOException; /*문서파일을 읽어서 Document 객체로 만들어주는 추상클래스*/ public abstract class DocumentReader { public abstract Document read(File file) throws IOException; }
18
64
0.773148
5053f4169c7976365a5076c0b26863b9f94ca39c
58,120
package str.rad.util.audio; import org.jtransforms.fft.DoubleFFT_1D; import java.io.IOException; import java.util.Arrays; //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// /* -------------------------------------------- [START] -----------------...
46.757844
143
0.537749
6d8c25eec3d630ffcefc36efda06bb9e6e4b32b1
3,694
/* * Copyright 2009-2014 PrimeTek. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
30.528926
108
0.654034
c020d98c85e8ba623d0227d2719feef9ca6096f8
10,628
// Copyright 2021 The Terasology Foundation // SPDX-License-Identifier: Apache-2.0 package org.terasology.engine.logic.behavior.core; import com.google.common.collect.Maps; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonArray; import com.google.gson.JsonDeserializationConte...
38.230216
131
0.611216
029eb9eb837650541aa7a480568115c256919337
583
package aula.pkg02.poo; /** * * @author ve495 */ public class Aula02Poo { /** * @param args the command line arguments */ public static void main(String[] args) { Caneta c1 = new Caneta(); c1.cor = "Azul"; c1.ponta = 0.5f; c1.tampada= false; c1.tampar(); ...
18.21875
45
0.464837
c5798e355e7c21f894f82e847afa86408b100951
536
package com.dumptruckman.minecraft.chunky.object; import com.dumptruckman.minecraft.chunky.persistence.AbstractPersistable; public abstract class AbstractResident extends AbstractPersistable implements Resident { private final String name; protected AbstractResident(String playerName) { this.name = ...
23.304348
88
0.712687
92954f1353846f3cb5fd921f615ea785857547a6
668
package com.softicar.platform.common.io.classfile.constants; import com.softicar.platform.common.io.classfile.ClassFileReader; import com.softicar.platform.common.io.classfile.constant.ClassFileConstantType; public class ClassFileConstantNameAndType extends ClassFileConstant { private final int nameIndex; private ...
23.034483
80
0.803892
9be43583843fb550e8a558093818d30dbb448b7d
1,906
package jdk.nashorn.internal.objects; import java.lang.invoke.MethodHandle; import java.util.ArrayList; import java.util.Collection; import jdk.nashorn.internal.runtime.AccessorProperty; import jdk.nashorn.internal.runtime.PropertyMap; import jdk.nashorn.internal.runtime.PrototypeObject; import jdk.nashorn.internal.ru...
30.741935
163
0.689927
a5b171b6481cd2f6baeee71a072f3d355732325e
1,281
package mikufan.cx.vocadb_pv_task_producer.config.entity; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.*; /** * entity class to store user config read from yaml file that passed from command line * @author CX无敌 */ @Builder @Getter @NoArgsConstructor(access = AccessLevel.PRIVATE) @AllArgsCons...
27.847826
96
0.692428
9f6cece65448fe2dcf8073cfa8c1ee19f54f6531
463
package com.hacknife.example.ui.injector.components; import com.hacknife.example.ui.injector.modules.ChangeEngineModule; import com.hacknife.example.ui.ChangeEngineActivity; import dagger.Component; /** * author : hacknife * e-mail : 4884280@qq.com * github : http://github.com/hacknife * project : MVVM */ @C...
27.235294
67
0.779698
edf4777f626b29f0878f22284d6a75314a21c5c7
9,843
package com.question.engine.factory.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.question.engine.factory.impl.simple.actions.CheckAnswerNegativeAction; import com.question.engine.factory.impl.simple.actions.CheckAnswerPositiveActio...
38.003861
90
0.723357
3d264095806fa6570fbc0b53268023e5660afa99
1,967
package de.uni_mannheim.informatik.dws.winter.usecase.events.datafusion.evaluation; import org.joda.time.DateTime; import de.uni_mannheim.informatik.dws.winter.datafusion.EvaluationRule; import de.uni_mannheim.informatik.dws.winter.model.Correspondence; import de.uni_mannheim.informatik.dws.winter.model.Matchab...
40.979167
166
0.652771
b8911ad28c2b4314e62f528395631c7929fadff2
8,898
/** * Copyright (C) 2006-2017 Talend Inc. - www.talend.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/licenses/LICENSE-2.0 * * Unless required...
43.832512
130
0.532142
8785f261301850ed94d44402432be9fe05a3866f
1,093
package com.example.sachdeva.eleavegovernor; /** * Created by Sachdeva on 02-Oct-17. */ public class EmployeeData { private static String Emp_id, Emp_name, Gender, department, email, designation, password; public EmployeeData(String emp_id, String emp_name, String gender, String department, String email, ...
22.306122
142
0.63678
b077c0666b8f9da59361c9f238b32fc985cb8b45
6,211
/* jcifs smb client library in Java * Copyright (C) 2002 "Michael B. Allen" <jcifs at samba dot org> * "Eric Glass" <jcifs at samba dot org> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by t...
38.81875
80
0.578329
4c312bf61285558bfe09fbad03fe310f8f290900
2,110
/* * 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 ...
28.513514
75
0.629384
2d0ad0a2f26d90a9e9991d647075b290ee6aecc3
569
package i5.las2peer.serialization; /** * Exception for problems with XML-deserialization. * * * */ public class MalformedXMLException extends Exception { /** * serialization id */ private static final long serialVersionUID = -5805964819905172422L; /** * create a new exception * * @param message ...
15.805556
68
0.681898
e4833b875361b6c4617978ae072ef263f9b6c683
976
package server.commands; import server.ChatServer; import server.Messages; import server.ChatServer.ChatServerThread; import server.Room; import java.util.ArrayList; /** * Leave current room. */ public class CLeaveroom implements server.ICommand { @Override public void execute(ChatServerThread chatServerThread,...
34.857143
145
0.713115
2d2529e718365bff3d2f137235d8cd9263d06318
388
package fr.epicanard.globalmarketchest.commands; import java.util.List; import org.bukkit.command.CommandSender; @FunctionalInterface public interface TabCompleteConsumer { /** * Method called for tab completion * * @param sender Command's executor (player or console) * @param args Arguments of comman...
24.25
58
0.747423
a383dc9ec088009c34faf85ef4745c356842bfd8
4,403
package liquibase.diff.output.changelog.core; import liquibase.change.AddColumnConfig; import liquibase.change.Change; import liquibase.change.core.CreateIndexChange; import liquibase.change.core.DropIndexChange; import liquibase.database.Database; import liquibase.diff.Difference; import liquibase.diff.ObjectDifferen...
41.537736
205
0.698842
4f351ebb5efd2d22c1c34f2342a4af347ab1b86c
3,066
/* MIT License Copyright (c) 2019 simplyatul Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, dis...
30.969697
85
0.70287
5ec8ffe9b1af434edc07d6b1da2e35597c9e8fa0
6,251
// ============================================================================ // // Copyright (C) 2006-2018 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
40.590909
128
0.638778
7c9723975a8f4f5f4dbb498a71bbcdd2752e825a
2,203
/* * The MIT License * * Copyright 2017 Y.K. Chan * * 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...
36.114754
115
0.712211
383ff6c025a7434f3e659bde359b8ba78391705b
3,177
/* * MIT License * * Copyright (c) 2018 EPAM Systems * * 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, mod...
33.797872
115
0.707901
c5131009355233b438f43bcba3a94610d5c16908
1,752
package com.t2pellet.teams.network.packets; import com.t2pellet.teams.client.core.ClientTeamDB; import com.t2pellet.teams.network.ClientPacket; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.MinecraftClient; import net.minecraft.nbt.NbtElement; import net.minecraft.nb...
30.736842
74
0.64726
1261739ff298ea8e98f75f44e77364191ba7e81f
810
package frc.robot.commands.Shooter; import edu.wpi.first.wpilibj2.command.SequentialCommandGroup; import edu.wpi.first.wpilibj2.command.WaitUntilCommand; import frc.robot.commands.Index.CMD_indexRun; import frc.robot.subsystems.SUB_Index; import frc.robot.subsystems.SUB_Shooter; public class SEQ_dumbShot extends Sequ...
36.818182
135
0.632099
18dbd36b75abd302daf1f758cd52d414ec10978e
3,447
package com.alwaystinkering.generator; import com.alwaystinkering.parser.GeoPoint; import com.alwaystinkering.parser.LogData; import com.alwaystinkering.util.Log; import java.io.*; public class KmlGenerator { private static final String TAG = "KmlGenerator"; private final static String KML_TEMPLATE = "<?xm...
38.3
145
0.492022
42e4fc61663bfaa108069547efea4d436f7903c2
3,212
package me.earth.phobos.features.modules.render; import me.earth.phobos.event.events.UpdateWalkingPlayerEvent; import me.earth.phobos.features.modules.Module; import me.earth.phobos.features.setting.Setting; import net.minecraftforge.fml.common.eventhandler.SubscribeEvent; import java.util.Objects; public class Yaw ...
34.913043
184
0.503425
1e9667f4ccd8e0146bef1549feea39ff70f12f75
8,262
/* * 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 ...
27.448505
110
0.67635
87d0d265ee06c135bd536da2956977250de899ab
5,194
/* * 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 dn.core3.hibernate.generic.interfac; import dn.core3.hibernate.AliasList; import dn.core3.hibernate.CriterionList; import java...
32.26087
99
0.666538
555c7b3c63107305898703aee8735ba8ebc0d5b6
10,015
/* * Copyright (C) 2015 Andrea Binello ("andbin") * * This file is part of the "Java Examples" project and is licensed under the * MIT License. See one of the license files included in the root of the project * for the full text of the license. */ import java.util.ArrayList; import java.util.List; // A simple i...
43.925439
84
0.631752
e3af4ee1d07bd1e34b8ddad82150c58071b357c8
2,013
package com.wifosoft.wumbum.animations; import android.view.View; public class ZoomPageTransformer extends BasePageTransformer { private float mMinScale = 0.85f; private float mMinAlpha = 0.65f; private boolean isShowAlpha = true; public ZoomPageTransformer() { } public ZoomPageTransformer...
28.757143
73
0.620467
a91916e7c866cad9b81db11e7a008c4bbb8a3d45
4,416
package randomCode; import java.util.ArrayList; import java.util.Arrays; class Solution2 { public int solution(String S) { // write your code in Java String[] elements = S.split("\n"); int sum = 0; for(int i = elements.length - 1 ; i >= 0 ; i-- ) { i...
28.675325
98
0.439991
d8eb66fb8a1fcc3cdeee60c042957656a2ffb753
203
package com.hsj.ui.controller; /** * @Author:HSJ * @E-mail:shengjunhu@foxmail.com * @Date:2017/07/02 17:17 * @Class:UIThemeController * @Description:主题样式控制者 */ public class UIThemeController { }
15.615385
33
0.704433
0dcc4e750906fe0b2dedcb93639b892b42e0e9cb
1,953
package com.captstudios.games.tafl.core.es.model.ai.optimization.moves; import com.badlogic.gdx.utils.Pool; import com.badlogic.gdx.utils.Pool.Poolable; import com.captstudios.games.tafl.core.enums.EvaluationType; import com.captstudios.games.tafl.core.es.model.ai.optimization.BitBoard; public class Move implements P...
24.721519
73
0.626728
9d624183eec6206840f88d4f8b15181fe0b335ad
123
package com.http.notify.app; import org.junit.jupiter.api.Test; class RunnerTest { @Test void test() { } }
10.25
34
0.634146
31fe6f22d98e6846087e977edc5400eeb6915067
3,950
/*************************GO-LICENSE-START********************************* * Copyright 2014 ThoughtWorks, 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...
50.641026
197
0.733924
7c5db64dae006c6b8ec2b700c35a3923ecc2b8b5
6,170
package dk.brics.tajs.test; import dk.brics.tajs.Main; import dk.brics.tajs.options.Options; import dk.brics.tajs.util.AnalysisException; import org.junit.Before; import org.junit.Test; @SuppressWarnings("static-method") public class TestSourceLocations { @Before public void before() { Main.reset(); ...
34.088398
194
0.701297
a52dba680f310424e1929b3e6e545e0a30cc66f5
2,038
package io.sniffy.socket; import io.sniffy.*; import io.sniffy.configuration.SniffyConfiguration; import org.junit.Test; import java.util.List; import java.util.Map; import static org.junit.Assert.*; public class CaptureTrafficOverviewTest extends BaseSocketTest { static { SniffyConfiguration.INSTANCE....
32.349206
103
0.57998
4a9eb6ade9f32ba8b8eb0bfc1b951edecebaaae1
1,722
package org.openlumify.core.trace; import org.openlumify.core.bootstrap.InjectHelper; import org.openlumify.core.exception.OpenLumifyException; import org.openlumify.core.util.OpenLumifyLogger; import org.openlumify.core.util.OpenLumifyLoggerFactory; import java.util.HashMap; import java.util.Map; /** * Trace.on("s...
28.7
111
0.671312
b1d21f2c2bd2e07419616dbe79fac084bf5a6cdd
1,346
package eu.cityopt.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import eu.cityopt.model.AlgoParam; import eu.cityopt.repository.AlgoParamRepo...
24.925926
78
0.755572
ce75dcdcc902576f01a1f8cf61e2af0fa87cdac9
349
package ru.job4j.ex; public class Config { public static void load(String path) { if (path == null) { throw new IllegalStateException("Path could not by null."); } System.out.println("load config by " + path); } public static void main(String[] args) { load("jdb...
24.928571
71
0.581662
41b232d19351e95d70a0904d7ae69d7142be6174
376
package sources.human; public class Heart { private int bpm; public Heart() { bpm = 60; } public void subirBpm(int b){ bpm+=b; } public void bajarBpm(int b){ bpm-=b; } @Override public String toString() { return "Latidos:"+bpm; //To change body of ge...
17.904762
95
0.558511
577167188389c34d7429c15f1b29593bdbd2623d
40,328
package com.mentor.nucleus.bp.core; //==================================================================== // // File: com.mentor.nucleus.bp.core.BridgeArgument_c.java // // WARNING: Do not edit this generated file // Generated by ../MC-Java/java.arc, $Revision: 1.111 $ // // (c) Copyright 2005-2014 by Men...
32.418006
131
0.687264
357d8e25f7fa6ca0c8de036194d2c60c12e35837
749
package msb.shortcut.master.service; import msb.shortcut.master.domain.Training; import java.util.List; /** * Service Interface for managing Training. */ public interface TrainingService { /** * Save a training. * * @param training the entity to save * @return the persisted entity */ ...
18.268293
43
0.583445
c265708e6715c9f634f4ec583efdffd45bebdda9
1,647
package org.kairosdb.core.http.rest.metrics; import com.codahale.metrics.Histogram; import com.codahale.metrics.Metric; import com.codahale.metrics.MetricRegistry; import com.google.common.collect.ImmutableMap; import com.google.inject.Inject; import org.kairosdb.core.admin.InternalMetricsProvider; import javax.annot...
36.6
106
0.749848
a5fb0aaf43484d9592895e31be128a2d1ae16f5a
552
package com.mt.saga.domain.model.order_state_machine.order; import com.mt.common.domain.model.sql.converter.EnumConverter; /** * use separate prepare event so logic will not miss triggered */ public enum BizOrderEvent { CONFIRM_PAYMENT, UPDATE_ADDRESS, CANCEL_ORDER, CONFIRM_PAYMENT_SUCCESS, CONF...
22.08
74
0.710145
621462086f67c4ae14be1aa7ca932f7ffa27e357
6,283
/* * This file is generated by jOOQ. */ package com.github.joostvdg.cmg.analytics.tables; import com.github.joostvdg.cmg.analytics.Keys; import com.github.joostvdg.cmg.analytics.Public; import com.github.joostvdg.cmg.analytics.tables.records.GenerationrequestsRecord; import java.time.LocalDateTime; import java.uti...
33.068421
172
0.681522
088aca8837217356e9470f18b6d3a30bf3d2a000
1,008
package org.folio.rest.impl; import io.vertx.core.AsyncResult; import io.vertx.core.Context; import io.vertx.core.Future; import io.vertx.core.Handler; import io.vertx.core.Vertx; import io.vertx.serviceproxy.ServiceBinder; import org.folio.rest.resource.interfaces.InitAPI; import org.folio.rest.util.HttpClientUtil; i...
34.758621
89
0.796627
1be102c9adc948c7359d33d462e4fb8ddc819958
965
package dn.bms3.service; import dn.bms3.dao.interfac.ICompanyGroupDao; import dn.bms3.model.CompanyGroup; import dn.bms3.service.interfac.ICompanyGroupService; import dn.core3.hibernate.generic.GenericService; import dn.core3.hibernate.generic.interfac.IGenericDao; import java.util.List; import org.springframe...
32.166667
101
0.749223
a8a8fcdc4e53e7388c29343fedc165a84e614c6c
2,410
package com.jzy.manager.util; import com.jzy.model.entity.UserMessage; import org.apache.commons.lang3.StringUtils; import java.util.Date; /** * @author JinZhiyun * @version 1.0 * @ClassName UserMessageUtils * @description 有用信息的工具类 {@link com.jzy.model.entity.UserMessage} * 删改入参对象字段的校验,服务端的校验应该与前端js保持一致,且必须严格于数...
32.567568
127
0.700415
2ee99941aebc2a2c684c61d67a88f31fed203efd
2,840
/* * Copyright 2000-2009 JetBrains s.r.o. * * 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 agre...
32.643678
97
0.703873
1a201a7fd2c2214f4338daa5f23e17301f52b763
7,528
/** * Wegas * http://wegas.albasim.ch * * Copyright (c) 2013-2020 School of Business and Engineering Vaud, Comem, MEI * Licensed under the MIT License */ package com.wegas.core.persistence.variable.primitive; import ch.albasim.wegas.annotations.CommonView; import static ch.albasim.wegas.annotations.CommonView.FE...
26.414035
139
0.601488
076ba6ab3c8b6365d97f38f05b61d9a727dca47e
2,227
package SlayByDay.cards; import SlayByDay.powers.HarmonizedPower; import basemod.abstracts.CustomCard; import com.megacrit.cardcrawl.actions.common.ApplyPowerAction; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.core.CardCrawlGame; import com.megacrit.cardcrawl.dungeons.Abstrac...
33.742424
141
0.73507
9a8d9451ace67cc9faf42ce156ac29b3c61e175c
936
package test; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import org.junit.Test; import org.junit.jupiter.api.DisplayName; import uniandes.cupi2.almacen.mundo.Categoria; /** * Representa una categor�a del almac�n. */ public class TestCategoria { Categoria category...
24.631579
60
0.758547
14138467d7966f8626b5d1a0877120408a8364b4
16,973
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /* * TestRecombination.java * * Created on 6/Nov/2010, 10:41:15 */ package GUI.research; import genetic.SolverUtils.SimpleSolver; import genetic.Solver.Genetic_Algorithm; import genetic.population.MultiPopulation;...
40.800481
169
0.653096
13898350b9d9fb3590df3c329bac27eaffb305c7
4,291
/** * Copyright 2020 tasekida * * 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 ...
31.321168
112
0.636914
4e69084d1cfca0089606b9c20cfda66553f5c400
3,504
package com.hao.rpc.consumer.proxy; import com.hao.rpc.consumer.transport.RpcClient; import com.hao.rpc.entity.CodeMsg; import com.hao.rpc.entity.RpcRequest; import com.hao.rpc.entity.RpcResponse; import com.hao.rpc.enums.PackageType; import com.hao.rpc.enums.RpcError; import com.hao.rpc.exception.RpcException; impor...
32.747664
146
0.658676
bb386f3e8c38d990b01e4280ee4d5524dce70700
2,037
package eestec.thessaloniki.palermo.game.roles; import eestec.thessaloniki.palermo.rest.user_to_game.UserToGame; import eestec.thessaloniki.palermo.rest.user_to_game.UserToGameService; import java.util.List; import javax.inject.Inject; import javax.json.Json; import javax.json.JsonObjectBuilder; import javax.ws.rs.cor...
27.90411
127
0.68434
09011f267fdf9b2eb0ae3d08aa86cac69792e846
233
package dev.shelenkov.portfolio.service.config; import org.springframework.context.annotation.Configuration; import org.springframework.scheduling.annotation.EnableAsync; @Configuration @EnableAsync public class ServicesConfig { }
23.3
61
0.854077
2eef84bf1f4b7fefa3c1aba32143f40c3c056780
5,623
package me.shedaniel.rei; import com.google.common.collect.Maps; import me.shedaniel.rei.api.ItemRegistry; import me.shedaniel.rei.api.PluginDisabler; import me.shedaniel.rei.api.REIPlugin; import me.shedaniel.rei.api.RecipeHelper; import me.shedaniel.rei.client.ConfigManager; import me.shedaniel.rei.client.ItemRegist...
44.626984
303
0.717411
d408b7f2413bf23ccb91553704db51a3056b9b3f
7,900
/* * (C) Copyright 2006-2008 Nuxeo SA (http://nuxeo.com/) and others. * * 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 re...
31.726908
111
0.606076
5f5b0a95d1b6abc5b7ed5e9154aff008224a47b3
1,561
/* * Copyright 2014 Adrian Iancu * * 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, ...
37.166667
103
0.756566
d0e2b287a91389b5f91ea05ba4987e48320b30d7
9,402
package org.ovirt.engine.core.bll; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.ovirt.engine.core.bll.utils.ClusterUtils; import org.ovirt.engine.core.common.AuditLogType; import org.ovirt.engine.core.common.action.RemoveVdsParameters; i...
40.179487
130
0.659328
54170faf086a506e267e6fc0ad2aed5e8d984475
656
package yukecm.injecter.pipe; import yukcommon.model.Pipe; import yukcommon.util.JsonUtil; import yukecm.cache.inter.JsonPolicy; public class PipeJson implements JsonPolicy<String, Pipe>{ @Override public String makeKey(Object obj) throws Exception{ return JsonUtil.toJson(obj); } @Override publ...
22.62069
59
0.742378
411016726e5933c37cff7ccd3e35fec729c89256
9,171
package org.yinwang.pysonar.demos; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable; import org.yinwang.pysonar.*; import org.yinwang.pysonar.ast.Node; import org.yinwang.pysonar.types.ModuleType; import org.yinwang.pysonar.types.Type; import org.yinwang.pysonar.types.UnionType; imp...
29.775974
95
0.538436
66532fc3988b1f3885ed1480a6cba7eddfaefe9f
9,215
package com.ruoyi.common.utils.file; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.text.SimpleDateFormat; import java.util.Date; import java.util.UUID; import com.aliyun.oss.OSS; import com.aliyun.oss.OSSClientBuilder; import com.aliyun.oss.common.comm.ResponseMessage; impor...
29.069401
144
0.632664
834e51b605cc95d79bb22ecb4b2521a270d8fb3c
131
package rs.ac.uns.ftn.isa.onee2team.isabackend.model.pharmacy; public enum MedicineReservationStatus { CREATED, CANCELED, DONE }
21.833333
62
0.80916
292d7bbb7874a02d8222f994783a9a2c13794fb0
397
/** * Unlicensed code created by A Softer Space, 2020 * www.asofterspace.com/licenses/unlicense.txt */ package com.asofterspace.accountant; import com.asofterspace.accountant.entries.Entry; public class PaymentWarning extends PaymentProblem { public PaymentWarning(String problem, Entry entry) { super(problem,...
18.904762
53
0.758186
fac32e8532bdbc1fc9f31e0b5221963a186c6aa1
424
package draylar.magna.api.reach; import com.jamieswhiteshirt.reachentityattributes.ReachEntityAttributes; import net.minecraft.entity.player.PlayerEntity; public class ReachDistanceIsolated { public static double getReachDistance(PlayerEntity playerEntity, double base) { return ReachEntityAttributes.getR...
26.5
83
0.771226
2ba48e9faece816296b298dc73625e43ff218c15
3,065
package com.lgy.model.order; import com.alibaba.fastjson.annotation.JSONField; import com.lgy.es.annotation.EsField; import com.lgy.es.enums.EsFieldTypeEnum; import lombok.Data; import lombok.experimental.Accessors; /** * @author:D.J * @date: 2019-07-03 **/ @Data @Accessors(chain = true) public class EsOrderBuyer ...
27.863636
63
0.717129
f54a5c960b9c362d38a45c108015b4fa6ea9773d
1,148
package net.minecraft.world.entity.monster.piglin; import com.google.common.collect.ImmutableMap; import net.minecraft.server.level.ServerLevel; import net.minecraft.world.entity.EntityType; import net.minecraft.world.entity.LivingEntity; import net.minecraft.world.entity.ai.behavior.Behavior; import net.minecraft.wor...
42.518519
148
0.790941