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
24af850fbce3d2f931306d3c2368a679a16087a1
1,815
package org.aktin.broker.db; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.nio.file.Paths; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.Collection; import java.util.Collections; import javax.sql.DataSource; imp...
30.25
122
0.765289
6b33f2a81fc494a76963fbb0aacbecf825850f2e
21,735
/* * 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...
37.090444
257
0.629584
b0e3e0ebf23ebc251afec90b798f58ca256aa7bc
2,506
/* * 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 ...
39.777778
127
0.752594
245e41ee328d32b0e9afc959f4379d75b01251e1
1,644
package com.leone.boot.shiro.exception; import org.springframework.boot.web.servlet.error.ErrorAttributes; import org.springframework.http.HttpStatus; import org.springframework.stereotype.Component; import org.springframework.web.context.request.RequestAttributes; import org.springframework.web.context.request.WebReq...
31.615385
101
0.696472
8be285e60d7360b438ce3e554c8a01a96b219e47
13,365
package com.mycompany.myapp.config; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.web.cors.CorsConfiguration; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; /** * Properties specific to JHipster. * * <p> * Properties are ...
23.823529
117
0.557202
6cd00ca096bfd3d3db225e6d507623943cc55aff
701
package arc.fx.filters; import arc.*; import arc.fx.*; import arc.math.geom.*; public class OldTvFilter extends FxFilter{ private final Vec2 resolution = new Vec2(); public OldTvFilter(){ super(compileShader( Core.files.classpath("shaders/screenspace.vert"), Core.files.classpath("shad...
23.366667
57
0.636234
d073ba777d952842f8d0539e142662ea5bfb36b2
958
package xyz.brassgoggledcoders.reengineeredtoolbox.api.socket; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraftforge.common.capabilities.ICapabilityProvider; import net.minecraftforge.energy.IEnergyStorage; import xyz.brassgoggledcode...
29.030303
76
0.816284
e1ee63b5dc146260b1f0030ac747067e25a3c46f
50,853
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 license...
14.943579
814
0.820404
f623352823c2397392bdcb8023f414b89973ad1d
1,253
package com.distributedDL.streaming.core; import java.io.IOException; import org.apache.flink.api.common.serialization.DeserializationSchema; import org.apache.flink.api.common.typeinfo.TypeInformation; import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.annotation.JsonIgnoreProperties; import org.apache.fl...
26.659574
96
0.785315
05c209a65ad826fff9f649345add6cbc9ab1be15
1,162
package net.whg.we.rendering; import org.joml.Matrix4f; public class Bone { private String _boneName; private Matrix4f _offset; private Matrix4f _defaultPose; private Bone[] _children; private Matrix4f _localTransform; private Matrix4f _globalTransform; private Matrix4f _finalTransform; public Bone(String bo...
16.6
68
0.740103
c917de2bc6ed4acd493d5194eb36a9fe4833a811
3,934
/** * 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...
36.766355
98
0.734621
fa660eceb5629046caa83ee0322ea0c3a1d723d7
5,407
/* * Decompiled with CFR 0.150. */ package magictheinjecting; import java.io.PrintWriter; import java.io.Serializable; import java.lang.reflect.Method; import java.security.ProtectionDomain; import java.util.ArrayList; import java.util.Iterator; public class MagicTheInjecting extends Thread { public static byte...
43.95935
203
0.605141
cf49ba3a11474c052c47101a93b13221a4d50338
3,601
package pt.ist.socialsoftware.mono2micro.domain; import com.fasterxml.jackson.annotation.JsonInclude; import java.util.*; import pt.ist.socialsoftware.mono2micro.dto.AccessDto; import pt.ist.socialsoftware.mono2micro.utils.LocalTransactionTypes; @JsonInclude(JsonInclude.Include.USE_DEFAULTS) public class LocalTran...
25.006944
84
0.652874
99ca46cc495ba07f77d728f497f264d7283405fd
2,651
package life.catalogue.matching.similarity; public class DamerauLevenshtein implements StringSimilarity { @Override public double getSimilarity(String x1, String x2) { return DistanceUtils.convertEditDistanceToSimilarity(new DamerauLevenshteinDistance(x1, x2).getEditDistance(), x1, x2); } static clas...
26.51
123
0.472275
effff98307f0d8a0f7e97f1e7469c95fd374d0ea
11,897
/* * Copyright 2022 Starwhale, 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 applica...
66.094444
143
0.720434
6cf7ca2f1772f742b2c553d861b59cd0a089056b
524
import java.io.UnsupportedEncodingException; import java.net.URLEncoder; public class EncodeUrl { public static void main(String args[]) { try { String url = "http://my.msgwow.com/api/sendhttp.php?authkey=201657AWiB0ruSqV5aa126cb&mobiles=918630321244&message=hello&sender=Abc&route=4&country=91&flash=0&un...
22.782609
170
0.725191
b0e65f7a4deb42e435f0bdd0529ce281c216747e
212
package com.home.commonData.data.scene.match; import com.home.commonData.data.system.PlayerWorkDO; /** 玩家匹配成功事务 */ public class PlayerMatchSuccessWDO extends PlayerWorkDO { /** 匹配场景数据 */ MatchSceneDO data; }
19.272727
55
0.773585
90fa25e77753c1ed157c756d4d5d604b6dce5237
2,088
/* * 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 u...
35.389831
97
0.744732
27b4982f96f7ed23ef3bf0896d458a563ad3be0d
3,802
package io.joyrpc.transport.netty4.handler; /*- * #%L * joyrpc * %% * Copyright (C) 2019 joyrpc.io * %% * 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/...
30.910569
114
0.678327
625c03123c4bbcb55b164a11bd990e08413516e9
307
package cn.haier.bio.medical.demo.control.recv; public class TemptureCommandEntity { private int tempture; public TemptureCommandEntity() { } public int getTempture() { return tempture; } public void setTempture(int tempture) { this.tempture = tempture; } }
17.055556
47
0.65798
80c0e70a44e7291ecd15c535f3c1bc9265097ef5
8,884
package open.ex.amzaon; import java.util.Scanner; /* * * Question: There is a MAX_LEN*MAX_LEN matrix; the elements in this matrix are different integer from 0 to 2OPERATION_TYPES. The elements in this matrix are disordered. 0 is a special element. The upper element, under element, left element and right elem...
25.602305
142
0.610761
39dd59958ff8a28f73fda2ac42c5af67b8641b21
3,134
package com.bigtv.entities; import java.awt.Graphics; import java.awt.image.BufferedImage; import com.bigtv.main.Game; import com.bigtv.world.Camera; import com.bigtv.world.World; public class Player extends Entity{ public boolean right,up,left,down; public int rightDir = 0, leftDir = 1;; publi...
25.479675
111
0.589343
e000489bf5ab8071c9f77a5e928c2d361e1c9633
12,929
package cyder.widgets; import cyder.annotations.Widget; import cyder.consts.CyderColors; import cyder.consts.CyderFonts; import cyder.consts.CyderImages; import cyder.genesis.GenesisShare; import cyder.ui.*; import javax.swing.*; import javax.swing.border.LineBorder; import java.awt.event.MouseAdapter; import java.aw...
42.529605
130
0.580787
61a742ade3b614982da60a46cb3fc108e68aa877
644
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.config.protocol; import java.io.ByteArrayOutputStream; /** * Subclass of {@link java.io.ByteArrayOutputStream} that gives effective {@link #toByteArray()} method. * * @auth...
25.76
118
0.71118
7bd8085d80bae7f52bad23057c0ee975500fdf11
1,719
package xin.cymall.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.List; import java.util.Map; import xin.cymall.dao.SrvFoodUpDownDao; import xin.cymall.entity....
21.759494
71
0.762071
7520c9391e36bc97c79d6fd07e43930fa34b6717
195
package sunrise.raas.sdk.core.authentication; import java.util.UUID; public interface AuthenticationDetailsFactory { AuthenticationDetails createFromApiKey(UUID clientId, String apiKey); }
24.375
73
0.825641
a455f9672a9c4bdb98ab9ac37fd438a3d581d7d2
353
package org.reldb.tuplesoup; import java.util.HashSet; import java.util.Iterator; import java.util.Set; public class TupleSet implements Iterable<Tuple> { private Set<Tuple> tuples = new HashSet<>(); public TupleSet add(Tuple tuple) { tuples.add(tuple); return this; } public Iterator<Tuple> iterator() { ...
17.65
50
0.72238
b04d7f00e0f33bc2976979f8bc769104fd5e6907
557
package ru.vol.addressbook.tests; import org.testng.Assert; import org.testng.annotations.Test; import ru.vol.addressbook.model.GroupData; public class GroupCreationTests extends TestBase { @Test public void testGroupCreation() throws Exception { int before = app.getGroupHelper().getGroupCount(); ...
25.318182
76
0.70377
021380e8e3ccc6f5ee2b3ff4a07f6ab259a56546
1,917
/* * Copyright 2015 Space Dynamics Laboratory - Utah State University Research Foundation. * * 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/LICEN...
33.051724
98
0.783516
01b43e414cac9939b12253ea484c42dc6259fa94
2,659
package at.tugraz.ist.swe.cheatapp; import org.json.JSONException; import org.json.JSONObject; public class BluetoothMessage { private Type messageType; private ChatMessage message = null; private ConnectMessage connectMessage = null; private DisconnectMessage disconnectMessage = null; public Blu...
28.902174
85
0.626551
e4c7a45703a8fba0092688e06fa2252cc12f92b6
6,826
package mage.cards.h; import mage.MageObject; import mage.abilities.Ability; import mage.abilities.common.EntersBattlefieldTriggeredAbility; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.AsThoughEffectImpl; import mage.abilities.effects.OneShotEffect; import mage.cards.Card; import m...
37.922222
132
0.649722
3cfb86c31dfdadcc59eb6221a94a984cdd0c23b6
503
package kz.chesschicken.ojw.utils; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.fabricmc.loader.api.FabricLoader; import net.minecraft.client.Minecraft; /** * Returns Minecraft Client's instance. * Use this if you're working with client side. */ @Environment(EnvType.CLIENT) publ...
26.473684
72
0.755467
1964a7866bb82f4733a9ac98b0cd4b511381eb13
709
package ResponseFactory; import Request.*; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.BufferedWriter; import java.io.IOException; public class CreatedResponse extends Response{ public CreatedResponse( Resource resource ){ super( resource ); this.statusCode = 201; ...
26.259259
83
0.733427
7206d183c80895d5a0387f168b0084472157efdc
1,426
// Naive solution, runs in O(k * N^2), where k is size of integer and N is length of array // Uses O(1) space public class Solution { public int totalHammingDistance(int[] nums) { int total = 0; for (int i = 0; i < nums.length - 1; i++) { for (int j = i + 1; j < nums.length; j++) { total += dist...
24.586207
94
0.52244
93c449b20e95f5a55a96bf5013c86e94cce8795a
1,893
/* * Copyright (c) 2011, Walter Lowe * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of conditions and the ...
63.1
758
0.792393
493e8a0b9f1df35205b81e896057b45f3c6cd3e7
2,928
// This file was generated by the TNO Bean Generator. // Any modifications to this file will be lost upon re-generation. // Generated on: 2020/03/27 12:19:05 package nl.tno.rpr.interactions; import nl.tno.rpr.datatypes.CollisionTypeEnum8; import nl.tno.rpr.datatypes.EventIdentifierStruct; import nl.tno.rpr.datatypes....
30.185567
100
0.779713
1c1aff3114873be65e3270155aa8cabc978e2e16
590
package program; public class EnumExercise { public static void main(String[] args) { Student s1 = new Student(); s1.setStudentId(1000); s1.setName("Alvin"); s1.setTotalMarks(150); s1.calculateGrade(); s1.calculateScholarshipAmount(); System.out.println("\n\tStudent Details"); Syst...
28.095238
77
0.655932
8d70df9a945155547d8478d4a9ab60da5fd0157e
3,616
/** * BooleanAlgebras * theory * Apr 21, 2015 * @author Loris D'Antoni */ package theory.characters; import static com.google.common.base.Preconditions.checkArgument; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.sat4j.specs.TimeoutExceptio...
26.588235
112
0.672566
0e22d10b27df53dff665f17f677a01ee260fef9a
5,148
/* * -@TestCaseID:maple/runtime/rc/function/RC_Thread02/RC_Thread_04.java * -@TestCaseName:RC_Thread_04.java * -@RequirementName:[运行时需求]支持自动内存管理 * -@Title/Destination:Multi Thread reads or writes static para.It is modified from Cycle_B_1_00180.At the same time,another thread is GC. * -@Condition: no * -#c1 ...
24.990291
139
0.51418
691559af75353e33195c03cd8b41921f177b7d34
3,563
package com.hzq.dragonshopping.controller; import com.hzq.dragonshopping.entity.ProduceEntity; import com.hzq.dragonshopping.entity.ShoppingCartEntity; import com.hzq.dragonshopping.service.IShoppingCartService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Contro...
34.931373
125
0.637104
daecc930647aa1feff8968fc5f9c2c9265dc2291
293
package zhoubao.data; public class SpitterNotFoundException extends RuntimeException { private String spitterUserName; public SpitterNotFoundException(String spitterUserName) { this.spitterUserName=spitterUserName; } public String getSpitterUserName() { return spitterUserName; } }
24.416667
64
0.819113
e84a6179b492380756e8cc5926a8a87a18b413b0
14,973
package com.example.securitymaterial; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; //import para acessar a permissão de upload de imagem no banco de dados. import android.Manifest; //imports para utilizar Intent e Widgets em cód...
38.689922
143
0.596006
bf1ca1553b5075299138ebaa38008b5941bc9102
357
package com.neusoft; /** * @author liuboting * @date 2020/4/26 19:14 */ public class Phone { //属性:品牌,价格,颜色 String brand; int Price; String color; //方法:打 name 电话,发短信 public void phone(String name){ System.out.println("给" + name + "打电话"); } public void sendMessage(){ ...
14.875
47
0.565826
941110c8e63e693dd618086a1f9f2c0d7653edef
7,294
/* * Copyright 2002-2021 Barcelona Supercomputing Center (www.bsc.es) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
44.206061
120
0.566767
237874d04c746e3915fb5127c2f757776530e1e6
1,018
//(c) British Telecommunications plc, 2009, All Rights Reserved package com.bt.pi.core.cli.commands; import java.io.PrintStream; import java.util.Iterator; import java.util.Map; public class HelpCommand extends KoalaNodeCommand { private Map<String, Command> commandMap; public HelpCommand(Map<String, Command> aCom...
28.277778
98
0.712181
b3c1ccb2a1654e4aafd6d3d22037d2bf7fa39f17
886
package com.zlikun.log.logback; import ch.qos.logback.classic.spi.ILoggingEvent; import ch.qos.logback.core.CoreConstants; import ch.qos.logback.core.LayoutBase; /** * 自定义Layout组件 * * @author zlikun <zlikun-dev@hotmail.com> * @date 2017/4/29 10:46 */ public class DefaultLayout extends LayoutBase<ILoggingEvent> {...
29.533333
86
0.662528
721eeb92432d3b93acf4ba487436425d9f979ff1
5,844
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.hardware.DcMotor; import com.qualcomm.robotcore.hardware.DcMotorSimple; import com.qualcomm.robotcore.util.ElapsedTime; import com.qualcomm.robotcore.util.Range; public class FunBot exten...
34.994012
80
0.55219
07a879d5c62b2db222a709f11e88cff5c09453b3
26,858
/* * Hydrogen Proton API * Financial engineering module of Hydrogen Atom * * OpenAPI spec version: 1.7.18 * Contact: info@hydrogenplatform.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */...
27.490276
369
0.702733
2544a37e7f9e7f4c98fb6443878af510e937dd9c
1,156
import config.SpringConfig; import org.springframework.beans.factory.BeanFactory; import org.springframework.beans.factory.config.BeanFactoryPostProcessor; import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor; import org.springframework.context.annotation.AnnotationConfigApplicationConte...
28.9
101
0.741349
806af9fc3d5b9091a7da885ac7145ae61197f689
14,360
/* * Copyright (c) Huawei Technologies Co., Ltd. 2012-2020. All rights reserved. */ package com.huawei.bigdata.flink.examples; import com.huawei.bigdata.security.LoginUtil; import redis.clients.jedis.HostAndPort; import redis.clients.jedis.JedisCluster; import org.apache.flink.api.common.functions.FilterFunction;...
40.679887
120
0.583914
e96c7ef931e23bbf876e85aa7ec597117da4357f
994
package br.com.pocobserver.dto; import java.io.Serializable; import java.time.LocalDate; /** * DTO do Usuário * * @author Bruno Eduardo */ public class UsuarioDTO implements Serializable { /** * */ private static final long serialVersionUID = 1L; /** * ID */ private Integer i...
17.438596
63
0.619718
a135440d0166115146ccda4ed1cb1560c7a47e4f
6,426
/* * 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 u...
73.862069
214
0.821506
8ee9b0c087584bede69afc4c5c9dcf3e62c374b8
18,552
/* * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: v1.18.2 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do no...
31.075377
261
0.72984
a691d0ce2e0339fc27e51628c39bb0bf8e84df47
3,742
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
40.673913
151
0.725815
277940a931124a9c840209eb5476998108aa8f1a
5,627
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 license...
27.315534
814
0.775191
8eaa227976b1d5a674e6eeaebd6fb944c724ab47
4,569
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
32.870504
80
0.632742
9fbf3015b6984102c9a94e87622d83e0f307b06a
4,787
// Copyright 2019 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
42.362832
114
0.673491
450fa6ffc727c6118d3d42fd02ad9fa0cb57688d
180
package telegram.event; import telegram.objects.Update; import java.util.EventListener; public interface UpdateHandler extends EventListener { void handle(Update update); }
16.363636
52
0.8
e949434d6507ed685efeed48123472c12c2bd01c
123
package com.matchbook.sdk.rest.dtos.offers; public enum MatchedBetStatus { OPEN, CANCELLED, GRADED, PAID, UNKNOWN }
15.375
43
0.747967
0d9512f9402db76be88430327f6524de09fca7be
2,915
package com.jeff.ttxs.cameracustomdemo; import android.Manifest; import android.content.Intent; import android.content.pm.PackageManager; import android.support.annotation.NonNull; import android.support.v4.app.ActivityCompat; import android.support.v4.content.ContextCompat; import android.support.v7.app.AppCo...
32.032967
80
0.554717
472dbf5a16cf29562531a4debc420d84b6b1fc8e
500
package pl.lodz.p.it.inz.sgruda.multiStore.mok.services.interfaces; import pl.lodz.p.it.inz.sgruda.multiStore.exceptions.OptimisticLockAppException; import pl.lodz.p.it.inz.sgruda.multiStore.exceptions.mok.AccountNotExistsException; import pl.lodz.p.it.inz.sgruda.multiStore.exceptions.mok.EmailAlreadyVerifyException; ...
50
137
0.856
42dce1a95fb74cac57c93077c1894d8b07a01577
393
package exercico1; import java.util.Scanner; public class Exercicio1 { int numero ; static Scanner leia = new Scanner(System.in) ; public static void main(String[] args) { System.out.println("Digite o número: ") ; int numero = leia.nextInt() ; if( numero <0 ) { System.out.println("O numero é: Negat...
21.833333
48
0.656489
2c5a778fa9e9dcc1797dc34f56fe81ec9023d424
367
package es.uniovi.asw.electionday.parser; import java.util.List; import es.uniovi.asw.model.Candidature; public abstract class RCandidature implements ReadCandidature{ @Override public List<Candidature> read(String path) { List<Candidature> candidaturas = readFile(path); return candidaturas; } abstr...
19.315789
62
0.771117
c21bd8e19bfb04141f67c6e1388c2f2abfa8b327
1,463
package edu.gvsu.cis.cis656.clock; import java.util.Set; public interface Clock{ /** * Update the current clock with a new one, taking into * account the values of the incoming clock. * * E.g. for vector clocks, c1 = [2 1 0], c2 = [1 2 0], * the c1.update(c2) will lead to [2 2 0]. * @param other */ v...
18.518987
65
0.632946
2ac1c18abf85f6e8fc1e4ce7398f100e74eed10d
4,721
/* Copyright 2005-2006 The Apache Software Foundation or its licensors, as applicable 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...
38.382114
118
0.594577
23f5d5747bf5f1aca7f1d0395786ebc40f19175c
4,219
package edu.mit.mitmobile2.events; import android.content.Context; import android.content.Intent; import android.os.Bundle; import android.os.Handler; import android.os.Message; import edu.mit.mitmobile2.MobileWebApi; import edu.mit.mitmobile2.NewModule; import edu.mit.mitmobile2.SliderNewModuleActivity; import edu....
26.872611
125
0.754918
c037f9f8b45360c59c826931ad9697af9491503b
1,478
package net.minecraft.src; // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) braces deadcode import net.minecraft.src.block.Block; import net.minecraft.src.crafting.CraftingManager; import net.minecraft.src.item.Item; ...
30.791667
74
0.577808
9d28c643921a5e9e5f78a2c26a0beb0b2670b829
1,942
package com.github.paulakimenko.fakeses; import com.github.paulakimenko.fakeses.controllers.MessagesController; import com.github.paulakimenko.fakeses.controllers.SESController; import com.github.paulakimenko.fakeses.dao.MessagesDAO; import com.github.paulakimenko.fakeses.dao.MessagesFileDAO; import com.github.paulaki...
31.836066
84
0.69104
baf7c0ba49aa98b17675cd8139c60fa67a09fbc1
66
package com.narendra.app.core; class CoreApplicationTests { }
8.25
30
0.757576
c3675f377e5edbdca12e7330aeaac3d5cee69681
3,716
/* * 3D City Database - The Open Source CityGML Database * http://www.3dcitydb.org/ * * Copyright 2013 - 2016 * Chair of Geoinformatics * Technical University of Munich, Germany * https://www.gis.bgu.tum.de/ * * The 3D City Database is jointly developed with the following * cooperation partners: ...
28.806202
97
0.740043
db9eb5ce26ba839fd40cba8d4db0438040d76dcd
1,024
package com.rbkmoney.dark.api.converter.dadata; import com.rbkmoney.dark.api.converter.SwagConverter; import com.rbkmoney.dark.api.converter.SwagConverterContext; import com.rbkmoney.swag.questionary_aggr_proxy.model.Gender; import org.springframework.stereotype.Component; @Component public class GenderSwagConverter ...
40.96
114
0.74707
7bb744ec0e1c1b4481908d444e57d5f2e174f0bc
1,311
package com.example.mybatis.demomybatis.proxy; import com.example.mybatis.demomybatis.handler.CommonProxyHandler; import com.example.mybatis.demomybatis.service.ProxyService; import com.example.mybatis.demomybatis.service.impl.ProxyServiceImpl; import com.google.common.reflect.Reflection; import org.junit.jupiter.api....
35.432432
115
0.733028
497c9475382e5e9af92540720fdc72f6566146bb
1,477
package io.remedymatch.bedarf.domain.service; import io.remedymatch.angebot.domain.model.AngebotId; import io.remedymatch.bedarf.domain.model.BedarfAnfrage; import io.remedymatch.bedarf.domain.model.BedarfAnfrageId; import io.remedymatch.bedarf.infrastructure.BedarfAnfrageEntity; import io.remedymatch.institution.doma...
43.441176
112
0.732566
aa4df58d4c4cd06c9675d729840360bb2a58a836
3,772
package Mock; import Salesperson.Forwarder; import Planner.Appendage; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.Paths; import java.util.LinkedList; imp...
36.621359
136
0.694592
4bf7cf3be1892ba833c7e273a8d7d7827ebdb932
8,847
package com.example.android.habitapp; //https://www.androidhive.info/2011/11/android-sqlite-database-tutorial/ //https://stackoverflow.com/questions/33627915/java-lang-nullpointerexception-attempt-to-invoke-virtual-method-on-a-null-objec import android.content.ContentValues; import android.content.Intent; import and...
41.92891
126
0.616028
c2fc2cb2d377d74bbffae9a17316d794f8c25a05
5,588
/* * Copyright 2014-2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
59.446809
158
0.769506
d20c3b3774bcda553b6f6aa24a00bccfa71098ee
3,649
package oosd.controllers; import java.io.IOException; import java.util.ArrayList; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.FXMLLoader; import javafx.scene.Scene; import javafx.scene.input.MouseEvent; import javafx.scene.layout.Pane; import javafx.stage.Stage; import oosd.Main; impo...
28.069231
94
0.71225
beb2b911b08a7df12fc899ce9b1ea888cc483c8e
2,704
import java.util.*; import java.io.*; public class Shoppinglist { public static void main(String args[]) { Vector itemList = new Vector(); String str, item; int i, j, len, choice, pos; len = args.length; for (i = 0; i < len; i++) itemList.addElement(args[i]); ...
42.25
90
0.419749
7935284fc46493367fd3b58778ccbd6a9b9ee14b
10,304
package com.paul.ioc.bean; import com.paul.http.NettyHttpServer; import com.paul.ioc.annotation.*; import com.paul.mvc.annotation.RequestMapping; import java.io.File; import java.io.FileFilter; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.net.URISyntaxException; import java.net.URL; i...
33.563518
116
0.518828
877a9b236561c680ad52e2168d56d7d191781be8
307
package com.iexec.worker.pubsub; import org.junit.Before; import org.mockito.InjectMocks; import org.mockito.MockitoAnnotations; public class StompClientTests { @InjectMocks private StompClient stompClient; @Before public void init() { MockitoAnnotations.openMocks(this); } }
19.1875
43
0.736156
5ca9577c3bd6f1c309f669235f17d06ce4cc2f1c
327
package com.dhemery.core; /** * A builder that describes itself with a fixed name. * @param <T> the type of object to build */ public abstract class NamedBuilder<T> extends Named implements SelfDescribingBuilder<T> { /** * Create a named builder. */ public NamedBuilder(String name) { super(name)...
21.8
89
0.678899
527031c6338b80d764e484198de7027e156555c2
36,582
/* * Copyright 2010-2019 Australian Signals Directorate * * 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...
54.845577
215
0.676863
dd4c2f501fb0973224926a38c9fa9da218c652d2
3,304
package org.coconut.cache.tck.service.loading; import java.util.Arrays; import java.util.Collection; import org.coconut.attribute.AttributeMap; import org.coconut.cache.service.loading.CacheLoader; import org.coconut.cache.tck.AbstractCacheTCKTest; import org.coconut.core.Logger.Level; import org.coconut.tes...
31.466667
105
0.563862
6328324b327f76ab3c9d98f859e2a25731eed7d2
806
package org.bukkit.craftbukkit.entity; import net.minecraft.server.EntityExperienceOrb; import org.bukkit.craftbukkit.CraftServer; import org.bukkit.entity.EntityType; import org.bukkit.entity.ExperienceOrb; public class CraftExperienceOrb extends CraftEntity implements ExperienceOrb { public CraftExperienceOrb(Cra...
20.666667
78
0.775434
8ee8d08dcfdf04f98297cb00612ebb04ac592d1b
883
package edu.ncsu.las.document; import java.util.logging.Level; /** * If no other handlers are available to process the document, this * handler will extract the text and send back into the router for * further processing. * */ public class DefaultHandler extends DocumentHandler { private static String[] MIME_...
22.641026
97
0.731597
ca465e942c5aaab8880cbaf93b1118314afe06b4
651
package com.youz.log.web; import com.youz.log.util.U; import com.youz.log.util.json.JsonResult; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RestController; import org.springframework.web.multipart.MultipartFile; import java.io.File; import java.io.IOExcep...
27.125
62
0.749616
824e96febf9ddd90a863c7b397d5f33bbd343c2d
847
package ai.sangmado.gbprotocol.jt905.protocol.exceptions; import ai.sangmado.gbprotocol.gbcommon.enums.IProtocolVersion; /** * 不支持协议版本异常 */ public class UnsupportedJT905ProtocolVersionException extends RuntimeException { static final long serialVersionUID = 8691477310068804322L; public UnsupportedJT905Prot...
28.233333
87
0.748524
81bafc7071378c0715b181b7ce3b23fbfdffff8f
9,490
/* * (C) Copyright 2020 Radix DLT Ltd * * Radix DLT Ltd licenses this file to you 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...
33.298246
109
0.758693
324110724dcaa314e0ce132dd5e3cbec3e40a9a3
5,274
package com.weichu.mdesigner.api.service.impl; import java.math.BigDecimal; import java.util.ArrayList; import java.util.Date; import java.util.List; import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.spr...
35.635135
129
0.775692
4b8c348ae30c13253879a70c3ab3cab55629c637
656
package ai.datagym.application.labelTask.models.viewModels; public class LabelTaskCompleteViewModel { private boolean hasLabelConfigChanged = false; private String currentTaskId; public LabelTaskCompleteViewModel() { } public boolean isHasLabelConfigChanged() { return hasLabelConfigChange...
25.230769
73
0.731707
b8fc4e2316962b1e29bca6116829eb6c6378cddf
3,025
package com.sample.domain.service.system; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.Assert; import com.sample.domain.dto.common.Page; import com.sample.d...
27.5
111
0.675372
f737587475008e5e4586e2226734491ae165a83c
1,500
package ru.stqa.pft.addressbook.tests; import org.hamcrest.CoreMatchers; import org.hamcrest.junit.MatcherAssert; import org.testng.Assert; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; import ru.stqa.pft.addressbook.model.ContactData; import ru.stqa.pft.addressbook.model.Contacts; i...
33.333333
147
0.731333
6fbfae4983cf2711bd8f9684395784638f6f85a1
2,745
package com.yan.newaccountbook; import androidx.appcompat.app.AppCompatActivity; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import android.view.View; import android....
28.59375
93
0.654281
6191554f82c64ca4ce22a27119808a6d6e89d88e
4,725
package HW8; /** * * @author Matt Gruber <mgruber1> * @section A * */ // You may not import any additional classes or packages. import java.util.*; public class HangmanState { //Do not change any of these global fields. public static final int NORMAL_MODE = 0; public static final int HURTFUL_...
25.819672
76
0.672381
c582a91e07ea5bcf204dc368e466145fa5a01169
1,726
/* __ __ ____ ___ _ _ _ _ | \/ |_ _/ ___| / _ \| | | | | | ___| |_ __ ___ _ __ | |\/| | | | \___ \| | | | | | |_| |/ _ \ | '_ \ / _ \ '__| | | | | |_| |___) | |_| | |___ | _ | __/ | |_) | __/ | |_| |_|\__, |____/ \__\_\_____| |_| |_|\___|_| .__/ \___|_| |___/ ...
26.553846
75
0.618772
1bf6cc6533ee7463c2217f0cdc7e5b838cfa1cde
2,664
/* * Copyright (c) 2019 envimate GmbH - https://envimate.com/. * * 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 yo...
38.608696
97
0.754129
48f996a9537115b2801b5418425901bef4abfa2b
1,462
package com.itemshare.ui; import static com.itemshare.constant.ItemShareConstants.SELECT_A_PLAYER; import java.util.ArrayList; import java.util.List; import java.util.Objects; import javax.swing.ComboBoxModel; import javax.swing.event.ListDataListener; import org.apache.commons.lang3.StringUtils; public class ItemSha...
17.404762
74
0.730506
13fc4547ddf472cf6aa3d66d2da5baca7db355bb
356
package com.imooc.security.core.config; import com.imooc.security.core.properties.SecurityProperties; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Configuration; @Configuration @EnableConfigurationProperties(SecurityProperties.class) p...
29.666667
81
0.867978
506aadcca849390bda5c66f63f4df996ffb1ffef
2,068
package com.lab4.bank; import org.apache.log4j.Logger; import java.util.ArrayList; import java.util.List; public class Bank { public static final Logger log=Logger.getLogger(Observer.class); private ArrayList<Cashier> cachiers; private ArrayList<Client> clients; private ArrayList<Bill> b...
29.971014
72
0.5706
ddc9d9303fc3fd030c5d6f8ecfe038a19f298f4c
10,373
/* * #%L * de-metas-camel-grssignum * %% * Copyright (C) 2021 metas GmbH * %% * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as * published by the Free Software Foundation, either version 2 of the * License, or (at your option) any ...
42.687243
193
0.810855