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
5501248e3ea483f7d7e459926bb73170644291b5
1,830
/** * Copyright 2007 Charlie Hubbard and Brandon Goodin * * 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 applicab...
23.164557
96
0.681967
2fc5b97afb3fa0fe46da5f3a0a0d126959f71766
4,011
/* * Copyright (c) Paul Kinnucan 2003. All Rights Reserved. * * $Revision: 1.2 $ * $Date: 2003/09/08 03:42:17 $ * * SignatureContainer is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2...
28.246479
72
0.666417
9c43967645c6a24b3a3033dd56b675f206cd5e52
154
package com.lzh.service; import com.lzh.base.BaseService; import com.lzh.pojo.Comment; public interface CommentService extends BaseService<Comment> { }
19.25
62
0.805195
0ec9997b9f0da75c3ca42176b2ebd9a90eb16c57
970
/* * Copyright (c) by Valaphee 2019. * * Licensed under the 4-clause BSD license (the "License"); * you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * https://deploy.valaphee.com/license/BSD-4-Clause.txt * * THIS SOFTWARE IS PROVIDED BY VALAPHEE ...
21.555556
78
0.727835
5f517ae01635c43fd8e98bdcd46de5489899aee3
474
package io.github.hielkemaps.racecommand; public class Util { public static String getTimeString(int totalSecs) { if(totalSecs == -1) return "undefined"; int hours = totalSecs / 3600; int minutes = (totalSecs % 3600) / 60; int seconds = totalSecs % 60; if(hours == 0){ ...
24.947368
72
0.590717
6f5de8c65224718f38e4bf7f67886de4aad4a7ba
435
package com.hou.gradproj.docmanagesys.exception; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; @ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR) public class FileException extends RuntimeException { public FileException(String message) { super(m...
27.1875
62
0.767816
fcd5ebcbfe51cfebc8076ada836da5e80a398197
5,208
package com.ttdt.Activity; import android.os.RemoteException; import android.view.View; import android.widget.AdapterView; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.ListView; import com.android.volley.Request; import com.android.volley.Response; import com.android.volle...
33.6
117
0.566052
7b4cc9f99f81cc015d4b99241a8585ed4cb6b5ab
2,185
package de.dosmike.sponge.WarCraftMC.events; import de.dosmike.sponge.WarCraftMC.Profile; import org.spongepowered.api.Sponge; import org.spongepowered.api.entity.living.player.Player; import org.spongepowered.api.event.Cancellable; import org.spongepowered.api.event.cause.Cause; import org.spongepowered.api.event.imp...
31.214286
110
0.741876
b91b1dfd7cf41a72f5fe46a3711cb9e7c466e550
795
package com.thinkaurelius.titan.graphdb.serializer; import java.util.Arrays; public class TestClass { public long a; public long b; public short[] s; public TestEnum e; public TestClass() { } public TestClass(long a,long b, short[] s, TestEnum e) { this.a=a; this.b=b; this.s=s; this.e=e; } ...
20.921053
84
0.654088
468db22d857d4c46ece7ba3acca69b59fc4204c3
16,252
/* * Copyright 2010-present Stephen Colebourne * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applica...
39.35109
136
0.571253
d6fce4f86987723b2ec007dac858bd41fb3df6d2
4,325
package com.hackathon.accelerator.service; import android.graphics.Bitmap; import android.util.Log; import com.hackathon.accelerator.model.ClassWithScore; import com.ibm.watson.developer_cloud.visual_recognition.v3.VisualRecognition; import com.ibm.watson.developer_cloud.visual_recognition.v3.model.ClassResult; impor...
44.132653
136
0.669364
3172728b9191046f4fb9400493a7e45095d598d2
796
/** * */ package com.maven.dao.impl; import org.springframework.stereotype.Repository; import com.maven.base.dao.impl.BaseDaoImpl; import com.maven.dao.EnterpriseInformationDao; import com.maven.entity.EnterpriseInformation; @Repository public class EnterpriseInformationDaoImpl extends BaseDaoImpl<EnterpriseInfor...
27.448276
121
0.819095
ba67b670daeb3ff79c837821b5fa9679aba6f9e8
2,547
/* * 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 * distribut...
39.184615
133
0.721241
16080430696995a0685a624bc6396aced4b4db25
2,314
import java.util.Random; import java.util.Scanner; import java.util.Date; public class Ordenacao { static void geraVetor(int v[]) { Random random = new Random(); for (int i = 0; i < v.length; i++) { v[i] = random.nextInt(10 * v.length); } } static void exibeVetor(int v[...
28.567901
105
0.447277
a9b904e665aad2f48cd8490f996b31913491fbe9
1,086
package br.com.zupacademy.rodrigo.mercadolivre.compra.acoes.falha; import org.springframework.stereotype.Component; import org.springframework.web.util.UriComponentsBuilder; import br.com.zupacademy.rodrigo.mercadolivre.compra.Compra; import br.com.zupacademy.rodrigo.mercadolivre.email.Email; import br.com.zupacademy...
38.785714
81
0.802947
b34a0f819edcfa2d058d773b8139977570e1ffe0
259
package mikenakis.kit.functional; /** * A method which accepts two {@code double} arguments and returns a {@code double} value. * * @author Mike Nakis (michael.gr) */ public interface DoubleFunction2Double { double invoke( double arg1, double arg2 ); }
21.583333
90
0.725869
1aebc4d3ed2db1baa31fc8c168066680384455a4
1,591
package io.gridgo.framework.support; import java.util.Arrays; import java.util.Optional; import io.gridgo.bean.BArray; import io.gridgo.bean.BElement; import io.gridgo.bean.BObject; import io.gridgo.bean.BValue; import io.gridgo.framework.support.impl.DefaultPayload; public interface Payload { publ...
26.081967
105
0.658705
160f0b086e4e8b9fb8e11850c17f1228f488898e
593
package com.msa.scheduler.support; /** * The type Schedule job exception. * * @author sxp */ public class ScheduleJobException extends RuntimeException { /** * Instantiates a new Schedule job exception. * * @param message the message */ public ScheduleJobException(String message) { ...
20.448276
66
0.630691
69ea6e8f7c01b47ee35da26a4ed53dac7fd21024
658
package com.ajayhao.mslab.mscc; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.config.server.EnableConfigServer; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; /** * @ClassName MicroServiceC...
28.608696
71
0.799392
261622881788371fa4a37f5801ca57d13f860798
1,881
package util.server; import java.io.IOException; import java.net.ServerSocket; import util.utils.NamedEntityRecognizer; /** * * @author sinantie */ public class NerServer { protected int port; protected NamedEntityRecognizer ner; protected boolean verbose; public NerServer(int port, boolean verbo...
28.074627
95
0.562467
e3f6869b41f15bd8dc6646b5b9e18c61ee75424d
618
package com.kafkaworkshop.modulo3lab1; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.kafka.annotation.KafkaListener; import org.springframework.stereotype.Service; @Service public class Consumer { private final Logger logger = LoggerFactory.getLogge...
26.869565
74
0.762136
1d8a6f709e0d21218eb74516138aa3f8fc876cd5
3,498
package com.xiaomi.infra.galaxy.client.io; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import com.xiaomi.infra.galaxy.api.io.ByteArrayRecordReader; import com.xiaomi.infra.galaxy.api.io.RecordReader; import c...
35.693878
87
0.684963
ad35e7ad3fbacfbfc532011a9ed9edc6459b47f3
1,157
package com.naviina.bunit.jmunit; import java.util.Vector; /* * UnitTestLogic.java * * Created on November 8, 2006, 12:32 PM * * @author jfisher */ public class UnitTestLogic extends Thread{ static Vector resultsVector = new Vector(); static Vector infoVector = new Vector(); public void addResul...
24.104167
57
0.605877
c3601b19bed1ce412d6b2ecac6095eaf713c19b0
4,430
package com.yao2san.simapiserver.api.service.impl; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import com.yao2san.simapiclient.core.util.RestTemplateUtil; import com.yao2san.simapiclient.register.bean.SimApiSimpleInfo; import com.yao2san.simapiserver.api.bean.ApiQueryBean; import c...
31.642857
116
0.651242
66fbd60ebfec683af2d8262af5f5ceec7968b096
2,839
package sh.isaac.solor.rf2; import sh.isaac.api.Get; import sh.isaac.api.chronicle.Chronology; import sh.isaac.api.coordinate.PremiseType; import sh.isaac.api.logic.LogicalExpression; import sh.isaac.api.logic.NodeSemantic; import sh.isaac.api.task.TimedTaskWithProgressTracker; import sh.isaac.solor.ExportConfiguratio...
36.397436
151
0.684748
8186a0400fec145d8d71c05f925ce52374322337
4,686
/* ================================================================== * SimpleInstructionFilter.java - Sep 30, 2011 9:31:17 AM * * Copyright 2007-2011 SolarNetwork.net Dev Team * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as *...
26.625
89
0.658131
8bb337b8bf75f371bbcc7fe050f2be6905dbf15f
5,600
/* * Copyright 2017 HelloRobotics. * * 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 appl...
30.27027
97
0.613214
79786c54c557fff057dcee4d87dc8cb83d7b0e95
5,338
package com.google.android.gms.ads; import android.content.Context; import com.google.android.gms.ads.doubleclick.PublisherAdRequest; import com.google.android.gms.ads.formats.NativeAdOptions; import com.google.android.gms.ads.formats.NativeAppInstallAd.OnAppInstallAdLoadedListener; import com.google.android.gms.ads.f...
35.118421
157
0.623454
e9fa81cfaeb8faf42294b617392d727c52d6129d
4,008
/* * 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 ...
31.559055
75
0.674401
52576524ecee6537e5443a581d6d8dbc0d0a529a
994
package competitive.programming.math; import static org.junit.Assert.*; import java.util.Arrays; import org.junit.Test; import competitive.programming.math.Complex; import competitive.programming.math.QuadraticEquation; public class QuadraticEquationTest { @Test public void testRealSolutions() { ...
34.275862
107
0.707243
5e8afaadedd32e7dc5039fa8f84bd336d9f12b39
1,245
package ru.mail.polis.egorovsyannikov; import ru.mail.polis.BaseEntry; import ru.mail.polis.Dao; import java.util.Iterator; import java.util.concurrent.ConcurrentNavigableMap; import java.util.concurrent.ConcurrentSkipListMap; public class InMemoryDao implements Dao<String, BaseEntry<String>> { ConcurrentNavigab...
33.648649
115
0.693976
565b2f130faeb1f7efd57cac0445d25ea93926b9
25,225
package io.deephaven.api; import io.deephaven.api.agg.Aggregation; import io.deephaven.api.filter.Filter; import java.util.Collection; /** * Table operations is a user-accessible api for modifying tables or building up table operations. * * @param <TOPS> the table operations type * @param <TABLE> the table type ...
45.697464
120
0.627631
0c8ca848fbe8b63464d389fbca15ec7071addf51
4,172
package com.ABC.bitrade.controller; import com.ABC.bitrade.constant.LegalWalletState; import com.ABC.bitrade.constant.PageModel; import com.ABC.bitrade.controller.BaseController; import com.ABC.bitrade.controller.screen.LegalWalletScreen; import com.ABC.bitrade.entity.*; import com.ABC.bitrade.entity.transform.AuthMem...
35.965517
110
0.691035
6dfa26b0590ab15a740a8363e1d7263ebef97c1f
11,110
package net.drewke.tdme.engine.subsystems.particlesystem; import java.util.Arrays; import net.drewke.tdme.engine.Engine; import net.drewke.tdme.engine.Object3D; import net.drewke.tdme.engine.Transformations; import net.drewke.tdme.engine.model.Color4; import net.drewke.tdme.engine.model.Model; import net.drewke.tdme....
29.547872
145
0.720432
53e44c43f986c624803d11d999eef1e33f74f0aa
7,203
package org.broadinstitute.hellbender.tools.dragstr; import org.broadinstitute.barclay.argparser.Argument; import org.broadinstitute.barclay.argparser.CommandLineException; import org.broadinstitute.hellbender.utils.dragstr.DoubleSequence; public final class DragstrHyperParameters { public static final int DEFAU...
57.166667
215
0.712481
a60bd625fe568fd18585eb8d05696c2bbe750184
70,865
/* * Copyright 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applic...
49.799719
171
0.626797
dcb5aae182b67ad9bb7442d039a01a5e49a3ac67
243
class Passenger{ private String name; private boolean existTicket; public Passenger(){ System.out.println("It's class Passenger"); } public String getName(){ return name; } public boolean getExistTicket(){ return existTicket; } }
18.692308
45
0.728395
906efd134efbcca15399a0b134e7e7e576c0f7cf
22,499
/* * Copyright 2010 Google 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 agreed to ...
49.339912
100
0.67963
2997a9cf6fe39ac482aae7807707e0102d7176d7
1,422
/** * This file is part of Erjang - A JVM-based Erlang VM * * Copyright (c) 2009 by Trifork * * 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/L...
25.392857
75
0.696906
0c0cbd9cbde769a817571e3324e3061e15e2057c
371
package com.thinkgem.jeesite.modules.mobile.entity.Mobile; import java.util.List; /** * @author 刘智科 * @Title: $file_name * @Package $package_name * @Description: $todo */ public class BaseData { private List<Path> path; public List<Path> getPath() { return path; } public void setPath(Li...
16.863636
58
0.633423
a4bb48174b9e1ef22820834a2bff7f19b2d7cc48
2,907
/******************************************************************************* * Copyright (C) 2019, VMware Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of s...
37.753247
81
0.705194
c652e7bb33b3d7374bcd42671644bdaea7e076bb
24,417
/* * * Copyright (c) 2015 University of Massachusetts * * 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...
39.44588
148
0.655076
80cf49b2b94e4b7694a90341413f7ab0d56c91e6
2,638
// This file is automatically generated by a script (generateColorMaps.py). // Do not modify it, or changes will be lost when the script is run again. /* * This file was generated using data provided by the python library matplotlib * which is Copyright (c) 2002-2004 John D. Hunter; All Rights Reserved * * For the ...
39.969697
79
0.654284
4ee3fe4ed6804d011270964c77fe6e95c3743f3a
228
package com.spiderx.config; public class TargetCode { public static final Integer ES = 1; public static final Integer MYSQL = 2; public static final Integer MONGODB = 3; public static final Integer REDIS = 4; }
25.333333
44
0.714912
9837f327c94b27409ee178c9d95011e0aa24ecd1
403
package com.Doctor.Dao; import com.entity.Doctor; import org.springframework.data.jpa.repository.JpaRepository; public interface DoctorRepository extends JpaRepository<Doctor,Integer> { //医生根据电话号码和密码登录 public Doctor findDoctorByPhoneAndPassword(String phone,String password); //根据Id查询医生 public Docto...
22.388889
77
0.771712
57c5b85cb11d2b308092b6c74f19a8aa6c114846
327
package com.myconnector.service; /** * More generic methods. These involve Object types. * * @author Nilesh Kapadia (nileshka@gmail.com) */ public interface OldGenericExtraService extends OldGenericService { public Object getById(String id); public void save(Object obj); public void update(Object o...
20.4375
67
0.733945
c4b674a688cc00c0c8246703a4d5ad29fb5d40f6
431
package br.com.urway.nocash.model; public class PermissaoCargo { private Cargo cargo; private Permissao permissao; public Cargo getCargo() { return cargo; } public void setCargo(Cargo cargo) { this.cargo = cargo; } public Permissao getPermissao() { return permissa...
17.958333
51
0.62877
d34ab611b98c55a83d2607b35c40faa336d45cf3
1,118
package backgroundTask; import java.util.concurrent.TimeUnit; import org.tud.kuka.socket.AbstractRobotResponseMessage.RoboterStatus; import org.tud.kuka.socket.RobotResponseCartesianMessage; import sun.misc.FloatingDecimal; import com.kuka.roboticsAPI.applicationModel.tasks.CycleBehavior; import com.kuka.roboticsAP...
31.055556
94
0.822004
6dafcb409c6ace97bbd2e03d7061255c519b49d0
1,321
package com.example.tamz2.components.spawners; import com.example.tamz2.components.GameObjectFactory; import com.example.tamz2.components.gameObject.objects.packs.BatteryPack; import com.example.tamz2.components.gameObject.objects.packs.RepairPack; import com.example.tamz2.helpers.Random; import com.example.tamz2.help...
36.694444
103
0.693414
2f9edf73e3870822eade2c7ca46396e84b85e1f5
515
package netcracker.practice.crossgen.logic.word; import java.util.Comparator; public class ClueComparator implements Comparator<Clue> { public int compare(Clue clue1, Clue clue2) { int result; result = Integer.compare(clue1.getRow(), clue2.getRow()); if(result != 0) return result; ...
28.611111
65
0.658252
c234f24709d303286b1031db2d06c7b2c24f2d3b
1,156
package com.keildraco.config.interfaces; import com.keildraco.config.Config; import com.keildraco.config.data.Constants; import com.keildraco.config.data.ItemType; public final class EmptyParserType extends ParserInternalTypeBase { /** * */ public EmptyParserType() { super(null, Constants.EMPTY_T...
16.055556
70
0.635813
e47810ad9c8310d7e2011977dc83f646fd21cdc4
4,132
package com.farsunset.cim.activity; import android.app.ProgressDialog; import android.content.Intent; import android.net.NetworkInfo; import android.os.Bundle; import android.view.View; import android.view.Window; import android.view.WindowManager; import android.widget.EditText; import android.widget.TextView; import...
27.184211
117
0.678606
b55930d7db03267518db055a74f33bc7d9effc5c
1,850
package se.jvester.chess.Piece.Movement; /* * FourWayPieceMovement will first navigate in a line along the X-axis, and then * in a line along the Y-axis. This movement can be used with any piece that * only requires straight movement along the X or Y axes, for example * * * Pawn * * Rook */ import se.jves...
28.90625
81
0.628108
45ae604b72d797623de4a549402265bda8980eff
855
package org.nanotek.beans.csv; import org.nanotek.BaseBean; import org.nanotek.beans.entity.RecordingComment; import org.nanotek.entities.BaseRecordingCommentBean; import org.nanotek.proxy.ProxyBase; public class RecordingCommentBean <K extends BaseBean<RecordingCommentBean<K>,RecordingComment<?>>> extends ProxyBas...
25.909091
106
0.791813
f5e8398553922ed10e2f4591ec0ad8d014864a4c
1,304
package com.elastic.search.elasticsearch.dataobject.conditions; import java.io.Serializable; /** * <p> * es 分页条件 * * @author niuzhiwei */ public class PageCondition implements Serializable { private static final long serialVersionUID = -1740674755812239502L; /** * 页大小 */ private Integer p...
20.061538
71
0.614264
257d4c4303e20a4e5f8de8b28baade3945676092
874
package io.github.fatihbozik.ch3.compare; import java.util.ArrayList; import java.util.Collections; import java.util.List; class Duck implements Comparable<Duck> { private final String name; private final int weight; Duck(String name, int weight) { this.name = name; this.weight = weight; ...
21.317073
54
0.615561
133d46e607e946303fadd1df3b839e609076f60e
5,230
package com.ucar.streamsuite.yarn.registry; import com.ucar.streamsuite.yarn.appmaster.JstormAMConstant; import com.ucar.streamsuite.yarn.appmaster.JstormAMContext; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.registry.client.api.BindFlags; import org.apache.hadoop.registry.client.api.Registry...
44.700855
164
0.770746
7ed6b20dd49edc4788772a269f10ec89505b81bb
5,568
package com.dvsnier.cache.base; import android.annotation.SuppressLint; import android.content.Context; import android.content.SharedPreferences; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import com.dvsnier.cache.BuildConfig; import com.dvsnier.cache.annotation.Hide; impor...
30.593407
120
0.638111
6c221548f475abfc52b499d404b307c85d42281a
5,911
/* GiopNamingServiceFactory.java -- handles corbaname: urls Copyright (C) 2006 Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; ...
32.838889
80
0.651328
ac79f5a59be72ef06f16774a7696e1b5bafbd9f1
4,954
/* $Id$ * * 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")...
24.165854
76
0.692572
bc2b3b6e5fbf5062d5ba63a85d41bdcae164320a
273
package worker; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import java.sql.SQLException; public class TestWorker { @Test public void testExample() throws SQLException { assertEquals(1, 1); } }
15.166667
60
0.717949
42cd24b0fdcfe640579092aa5546bf9e5fa76e83
758
package com.eaglesakura.lib.android.game.io.fs; import com.eaglesakura.lib.android.game.io.IFile; import com.eaglesakura.lib.android.game.io.IStorageDevice; import java.io.File; /** * ファイルシステムを利用したストレージ * * @author TAKESHI YAMASHITA */ public class ExternalStorage implements IStorageDevice { File root; ...
18.95
81
0.630607
7c468703771cdc0411eb48f7609d3d4275df18da
9,874
package com.infinityraider.lantern.entity; import com.infinityraider.infinitylib.entity.EntityBase; import com.infinityraider.lantern.container.ContainerLantern; import com.infinityraider.lantern.handler.LightingHandler; import com.infinityraider.lantern.lantern.*; import com.infinityraider.lantern.reference.Names; im...
32.37377
138
0.646243
7733dd952a1b12383b00c76a68334a7967238961
1,319
package com.company.jdk.sync.reentrant; import java.util.concurrent.TimeUnit; import java.util.concurrent.locks.ReentrantLock; public class TimeLock implements Runnable { private static ReentrantLock lock = new ReentrantLock(); @Override public void run() { try{ if(lock.tryLock(2, Ti...
28.673913
92
0.561031
8083323d88ab227b794b07bf648a70e9df2c9219
4,526
/* * Copyright (C) 2012 Andreas Halle * * This file is part of jcoolib * * jcoolib is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later versi...
33.525926
80
0.594565
deb1f90e3629058dfe3fcb36b15d91b2e7eaf3cb
2,173
/* * Copyright 2018 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 applica...
35.622951
91
0.727105
2cfdf3e8e40831ebe7df8c3c08387ce96af12933
1,966
package NetRequest; import android.os.Handler; import android.os.Message; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.URL; public class GetNetRequest { public void sendGetRequest(Stri...
32.229508
93
0.522889
285f13bf4461ffb23c6cb095b96b8b2cc23b7d1f
3,074
package net.leadware.kafka.embedded.properties; /*- * #%L * Apache Kafka Embedded Server * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2013 - 2019 Leadware * %% * 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 ...
26.273504
124
0.718282
4660cf868a1952484636785f19049f0782b0788d
1,308
package ca.uwo.eng.sel.cepsim.bench; import ca.uwo.eng.sel.cepsim.example.ResourceConsumptionTest; import org.openjdk.jmh.annotations.*; import org.openjdk.jmh.profile.GCProfiler; import org.openjdk.jmh.runner.Runner; import org.openjdk.jmh.runner.RunnerException; import org.openjdk.jmh.runner.options.Options; import ...
29.066667
89
0.667431
0272c920edc14d688082c157a5edc15c31db44ae
990
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.eventbridge.models; import com.aliyun.tea.*; /** * The request of delete the rule */ public class DeleteRuleRequest extends TeaModel { @NameInMap("EventBusName") @Validation(required = true) public String eventBusName; @NameI...
24.75
73
0.673737
971ea31ca1f628437b4b48276919abdc5e77e0d8
5,229
package com.morningtech.eth.server.task; import com.google.common.collect.Sets; import com.morningtech.eth.server.WalletManage; import com.morningtech.eth.server.entity.MentionMsg; import com.morningtech.eth.server.eth.bean.PendingMyzc; import com.morningtech.eth.server.eth.contract.GeneralContract; import com....
43.575
136
0.605661
ba8688079702adb93d3347aec4ca44f3b3a25a57
16,666
/* * 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 ...
29.707665
93
0.687267
7190ae7fa2f3ba0881eb5dfe6449692583f6c8ad
4,271
/** * Copyright 2014 Telefonica Investigación y Desarrollo, S.A.U <br> * This file is part of FI-WARE project. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with * the License. * </p> * <p> * You may obtain a copy of the License at:<br> *...
33.108527
118
0.695856
c6e098de617209c45e310e4c2a9b89144b4a1542
1,163
import java.util.Scanner; public class HSort { public static void heapify(int a[],int i,int n) { int l=2*i+1; int r=2*i+2; int temp,largest; if(l<n && a[l]>a[i]) largest=l; else largest=i; if(r<n && a[r]>a[largest]) largest=r; if(largest !=i) { temp=a[largest]; a[largest]=a[i]; a[i]=temp; heapify(a,la...
12.114583
59
0.596733
afe2d11f4cc4361354cced629e146ddf5892f25c
2,020
package br.senac.tads.dsw.prova1; import java.util.Arrays; import java.util.HashSet; import java.util.List; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.validation.BindingResult; i...
31.076923
71
0.743069
271ff8a5a0d6cf695bb159d8e8ca68700e838f35
2,360
package Model.Statements; import Model.DataStructures.IADTDictionary; import Model.Exceptions.*; import Model.Expressions.IExpression; import Model.Program.ProgramState; import Model.Types.IType; import Model.Types.StringType; import Model.Values.IValue; import Model.Values.StringValue; import java.io.BufferedReader;...
35.757576
125
0.677966
009340bdd1e8e4ac1277189eeb7b0db4f01b537e
670
package com.sr.nio.netty.date1009; import io.netty.buffer.ByteBuf; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.marshalling.MarshallerProvider; import io.netty.handler.codec.marshalling.MarshallingEncoder; public class NettyMarshallingEncoder extends MarshallingEncoder { /** *...
29.130435
92
0.735821
423bd8884e9dbf8f3630769b8c1cf042ace4fef0
2,008
/** * This file was auto-generated by the Titanium Module SDK helper for Android * Appcelerator Titanium Mobile * Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. * */ p...
26.077922
122
0.765438
10c89d39eb41be8efeb6d92f1252f57fdc89614d
1,521
public class ClientFileNotInServerDirectoryState extends MessageState { /* Eric Swenson December 9th 2016 Jarvis Client file not in server error message implementation Instance Variables: Enum: OK private static ClientFileNotInServerDirectoryState instance = new ClientFileNotI...
20.835616
108
0.712689
58a95021c878f3731984440a44947482121b15a7
362
package teste01; import questoes.segunda.b.Retangulo; import questoes.segunda.c.Linha; import questoes.segunda.a.Ponto2D; public class TestePontos { public static void main(String[] args) { Ponto2D p1 = new Ponto2D(1,1); Ponto2D p2 = new Ponto2D(1, 1); Retangulo r1 = new Retangulo(p1, p2);...
22.625
45
0.662983
642e4cb03bb202fdfe5879a57fa74dc3446ed9e3
2,336
import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.dataset.DataSet; import org.nd4j.linalg.factory.Nd4j; import org.nd4j.linalg.ops.transforms.Transforms; class StandardScaler { /** * Fit the given model * @param iterator the data to iterate oer */ public void fit(DataSetIterato...
38.295082
111
0.693065
367c3a8b32af1cba49db35df8f0e8de6d55da040
2,019
/* There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the following requirements: - Each child must have at least one candy. - Children with a higher rating get more candies than their neighbors. What is the minimum candies you must...
32.047619
119
0.448242
67166fe559d898e3942c1257ec7940176e4d5753
13,557
/* * * Copyright (c) 2013 - 2020 Lijun Liao * * 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 a...
33.8925
100
0.69595
f570f1675d8a23faf343f4e2e61db74242d4d7b2
2,333
package codewars; public class RomanNumerals { public static String toRoman(int n) { String str = String.valueOf(n); String[] arr = new String[]{"", str}; int num = Integer.parseInt(arr[1]); if(num/1000 > 0) arr = addToString(1000, "M", arr); if(num/900 > 0) arr ...
31.106667
71
0.449636
7353f40ba2a7e82002aaee56074d61bdf29ebc28
1,058
/* * EasyBimehLandingLib * * This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). */ package ir.notifaano.server.models; import java.util.*; public class DefectOrganCoverageBuilder { //the instance to build private DefectOrganCoverage defectOrganCoverage; /** ...
25.804878
83
0.6569
ac8008d30f873e23ad30bcc552da268ceccb6b8b
86
package com.ma.test.lambda; public class Person { public Person(String name){} }
14.333333
32
0.709302
8b01f3eecffdd5851791e6f4f5724e2d2dfd5078
1,944
/* * Copyright (C) 2016 Red Hat, 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 agre...
23.707317
83
0.652778
9f13e8f2b3a83763fb6a9f5ac4e8ae5483fce441
340
package cz.muni.ll.middleware.client.upload.domain; import java.util.List; import java.util.UUID; import lombok.Data; @Data public class Upload { private UUID id; private String connection; private String destination; private String description; private List<UploadFile> files; private Up...
14.782609
51
0.732353
f5e0460ccc7a71dc9ea4405c36e39139d9316ee1
863
/* * EPeronja-05/10/2013: Added this for today's gps time calculation. */ package gov.fnal.elab.ligo.data.json; public class ConvertUnixToGPS { public ConvertUnixToGPS() { } public double convert(double unixTime) { double gpsTime = 0; int isLeap = 0; if (unixTime % 1 != 0) { unixTime -= 0.5; isLe...
24.657143
201
0.648899
17ab0d3e8815751a6e34654256c51a92b2341bff
6,143
/* * 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.102857
183
0.661729
ed942dfb2c4f818270cef5e9eb5a1c8fb350617c
1,907
package com.xad.sdk.mraid.internal; import android.Manifest; import android.content.Context; import android.content.pm.PackageManager; import com.xad.sdk.mraid.MRAIDNativeFeature; import com.xad.sdk.utils.Constants; import com.xad.sdk.utils.Logger; public class MRAIDNativeFeatureManager { private final stat...
40.574468
134
0.736235
2b7b6897c6bbdcd8cc81039884343a0732edbfa7
10,519
/* * Copyright (C) 2015 Google 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 agreed to in ...
44.572034
124
0.732484
013a0c2ddf084a274601bb8e23ac2121d904da80
1,246
package no.nordicsemi.android.meshprovisioner.transport; import android.content.Context; import android.support.annotation.NonNull; import no.nordicsemi.android.meshprovisioner.utils.MeshAddress; /** * Abstract state class that handles Generic Message States */ abstract class GenericMessageState extends MeshMessag...
40.193548
118
0.689406
9c3ec5416f7157ee26a6b6e50e07d6daf55fa1f9
8,400
/* * oxTrust is available under the MIT License (2008). See http://opensource.org/licenses/MIT for full text. * * Copyright (c) 2014, Gluu */ package org.gluu.oxtrust.action; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.context.FacesContext; import javax.faces...
28
107
0.63369
8b666a446e603a7fdfc07160b40b60f233478ca2
3,980
package io.mangoo.routing.handlers; import java.io.IOException; import java.util.Deque; import java.util.Iterator; import java.util.Objects; import org.apache.commons.lang3.StringUtils; import com.google.common.base.Charsets; import com.google.inject.Inject; import io.mangoo.core.Application; import io.mangoo.enums...
36.851852
132
0.607286
cb32674fb81e633aa614c3981835945baec4a920
3,947
package com.bjlx.QinShihuang.controller; import com.bjlx.QinShihuang.core.MomentAPI; import com.bjlx.QinShihuang.requestmodel.MomentReq; import com.bjlx.QinShihuang.utils.ErrorCode; import com.bjlx.QinShihuang.utils.QinShihuangResult; import org.springframework.stereotype.Controller; import org.springframework.web.bin...
43.373626
228
0.673169
61518ebf3f7225835b58d206ec796a0b3b92b29c
548
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2019.06.12 at 09:...
18.896552
110
0.624088
7c89b7f44bc10603163191da8567cd2e3a572fff
549
package com.string; import java.util.Arrays; public class Anagram { public static void main(String[] args) { String a="silent"; String b="listen"; check(a,b); } static void check(String a,String b) { if(a.length()==b.length()) { char[] c1=a.toCharArray(); char[] c2=b.toCharArray...
15.25
42
0.553734
468fd33d5c97763d5ff837a258bcc9aa495ea777
2,859
/* * XML Type: CT_Headers * Namespace: http://schemas.openxmlformats.org/drawingml/2006/main * Java type: org.openxmlformats.schemas.drawingml.x2006.main.CTHeaders * * Automatically generated - do not modify. */ package org.openxmlformats.schemas.drawingml.x2006.main; import org.apache.xmlbeans.impl.schema.Elem...
26.971698
203
0.663868
3e19d64a4119d4fe3a48324a1c78715440da4ed3
2,273
package br.com.pedront.hackerrank.crackingthecodinginterview.hashtables; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import java.util.Scanner; /** * @author pnakano * @version $Revision: $<br/> * $Id: $ * @since 02...
30.716216
98
0.524417