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
9ad19f8e79c85419409460c1fe2b7d22b6acd3f5
1,448
package com.androidstarterkit.tool; import com.androidstarterkit.android.api.resource.ResourceType; import com.androidstarterkit.android.api.resource.ValueType; import java.util.regex.Matcher; import java.util.regex.Pattern; class ResourceMatcher { private final Matcher matcher; public interface Handler { ...
22.984127
63
0.609807
a75a628cc9d8cf4f7edd2f1f9559e687710260e8
4,916
package com.tinkerpop.gremlin.driver; import com.tinkerpop.gremlin.driver.message.ResponseMessage; import com.tinkerpop.gremlin.util.StreamFactory; import io.netty.channel.Channel; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.concurrent.CompletableFuture; import java....
32.342105
146
0.613303
a6490ee1154287e7aa997c415fd6808b254641db
3,680
package controller.ui.ui.components; import common.TotalScaleLayout; import controller.action.ActionBoard; import controller.ui.localization.LocalizationManager; import data.Rules; import data.states.AdvancedData; import data.values.GameStates; import data.values.Side; import javax.swing.*; /** * Created by rkessle...
28.091603
146
0.630163
3efb5ae04a685301bcb50590608f77099f8a2fb8
1,206
//package com.example.demo; // //import org.apache.juli.logging.Log; //import org.apache.juli.logging.LogFactory; //import org.aspectj.lang.ProceedingJoinPoint; //import org.aspectj.lang.annotation.Around; //import org.aspectj.lang.annotation.Aspect; //import org.springframework.stereotype.Component; // //import java.t...
30.923077
118
0.626036
a69caa4fa28690abcb3594fbcfff48e4d224a843
1,823
package marubinotto.piggydb.impl.mapper; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Iterator; import marubinotto.piggydb.model.entity.RawEntityFactory; import marubinotto.piggydb.model.entity.RawTag; import marubinotto.piggydb.model.exception.BaseDataObsoleteException; import m...
27.621212
72
0.725727
f527987d1e6d03f1e2a4e9622a98be9e0fa69225
1,623
package com.duy.imageoverlay.views; import android.graphics.Bitmap; import java.nio.ByteBuffer; /** * Created by Duy on 19-Feb-17. */ public class ImageUtils { public static byte[] bitmapToByteArray(Bitmap bitmap) { int width = bitmap.getWidth(); int height = bitmap.getHeight(); int s...
27.982759
97
0.564387
f70be66076190df05a980e5b1123e7ee6410ae14
634
package net.neoremind.fountain.producer.dispatch.misc; import java.util.Iterator; /** * 只有一个元素的迭代器 * * @author hexiufeng */ public class SingleIterator implements Iterator<Object> { private int count = 1; private final Object message; /** * 构造器 * * @param message 消息 */ public ...
15.85
57
0.582019
20865e09e68a0ac06084736b35c2739e0c65f4b6
3,907
package xreliquary.items; import net.minecraft.block.Blocks; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.entity.projectile.FireballEntity; import net.minecraft.entity.projectile.SmallFireballEntity; import net.minecraft.item.ItemStack; import net.minecraft....
42.467391
258
0.738674
56fad7a7245ebe0b7a917813c3755a32b8b8e176
6,766
/****************************************************************************** * Copyright (C) 2019 by the ARA Contributors * * * * Licensed under the Apache License, Version 2.0 (the "License"); * ...
36.376344
133
0.625185
c77faba335b3a3d6bd681666c733ab0e77b6f244
1,600
/* * DBeaver - Universal Database Manager * Copyright (C) 2010-2017 Serge Rider (serge@jkiss.org) * * 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...
32
108
0.6925
421b9ed47e415a445bada03daf938b9cc3a5138c
1,786
/* * MatchFunction.java * * This source file is part of the FoundationDB open source project * * Copyright 2015-2020 Apple Inc. and the FoundationDB project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may o...
37.208333
116
0.704367
2fc34a5151ad9497fd03edf7cb290e04df8619f0
1,377
package fr.insee.arc.batch; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.ImportResource; import org.springframework.context.s...
36.236842
131
0.818446
ce3ad5dd5a9be759e7a01e5c8c6bbf18a30f3492
265
package com.heynchy.baiduocr.resultInterface; import com.heynchy.baiduocr.event.ResultEvent; /** * @author CHY * Create at 2017/12/12 14:23. */ public interface ResultListener { void onResult(ResultEvent result); void onError(String error); }
18.928571
46
0.713208
f86f4cf85562fb0ae1d557619b388bd74aa5a307
5,131
/* * 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...
33.535948
107
0.554278
d0015e66c674ee73495c95d0366a58c5c21a6b48
2,589
package com.s4game.server.public_.nodecontrol.service.impl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.stereotype.Component; import com.s4game.core.data.accessor.cache.manager.CacheManager; import com.s4game....
31.573171
79
0.696022
40b043ce83385a25b19bb90a45549fd884a4f83e
708
package io.demo; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; /** * 简单的测试 * * @author Ecloss */ public class FileTest01 { public static void main(String[] args) throws IOException { FileReader fr = new FileReader("F:\\Workspace\\file\\001.txt"); ...
20.228571
71
0.533898
a7bbba3696e822b1b0723a3536999323bbbd593c
1,198
/* Challenge Activity 2 * * When I was in college my MET100 Professor only gave us 3 exams. * There were 150 questions on each exam. * Your final grade in the course was the sum of the number of questions * you got right on each of exam1, exam2 and exam3 divided by 450 (the * maximum possible points) * * ...
26.043478
73
0.60601
f5a86614671da1127af97d40d2423192ea471acc
3,128
/** * 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...
30.970297
75
0.542839
fd33445d5332a11e4483a6ace360d2c5ac5c5889
742
package brandonmilan.tonglaicha.ambiwidget.objects; import java.io.Serializable; public class ApplianceStateObject implements Serializable { private String fan; private String acMode; private String power; private String swing; private String temperature; public String getFan() { return fan; } public Strin...
20.611111
106
0.739892
30aa437863d29328f2114a5a477c7cd123fecf70
676
package com.mentor4you.repository; import com.mentor4you.model.Categories; import com.mentor4you.model.Mentees; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import java.util.List; import java.util....
28.166667
81
0.789941
3914cd9e8a3d6abc219463d9924fff4bd31c2ade
3,100
package thewrestler.cards.skill; import basemod.abstracts.CustomCard; import com.badlogic.gdx.graphics.Color; import com.megacrit.cardcrawl.cards.AbstractCard; import com.megacrit.cardcrawl.characters.AbstractPlayer; import com.megacrit.cardcrawl.core.CardCrawlGame; import com.megacrit.cardcrawl.dungeons.AbstractDunge...
33.695652
91
0.743871
30d3f862533e40b53f4fcef2b8cca0b112caa5cb
4,393
package com.vaadin.flow.component.charts.model; /*- * #%L * Vaadin Charts for Flow * %% * Copyright (C) 2014 - 2020 Vaadin Ltd * %% * This program is available under Commercial Vaadin Add-On License 3.0 * (CVALv3). * * See the file licensing.txt distributed with this software for more * information about li...
24.405556
80
0.593672
6ad9ffd727f0a0f6d1dc93f69cc821c52602c159
883
package leandro.soares.quevedo.scheduller.model; import com.google.gson.annotations.SerializedName; public class AlarmInfo { @SerializedName("startHours") private String startHours; @SerializedName("endHours") private String endHours; @SerializedName("dayLength") private String dayLength; public AlarmInfo (...
19.622222
73
0.746319
7202f500003628af26495e3635ba6397d22fb687
3,417
/* * * Copyright 2020. Explore in HMS. 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 req...
36.351064
158
0.708224
d51a802adea5abff58fae52b662e0b6cfdcc5d28
2,022
/* * 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")...
36.763636
99
0.69634
bb7d595914812b5c37e9e4d1b8d4b3b3967184f9
697
package com.github.baeconboy.magicstuff.block; import com.github.baeconboy.magicstuff.base.BlockBase; import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; import net.fabricmc.fabric.api.tool.attribute.v1.FabricToolTags; import net.minecraft.block.Material; public class BlockTest extends BlockBa...
30.304348
75
0.711621
82e45655bee19d365a386ccbe98696635a6459f2
5,982
/* * Licensed to Elasticsearch B.V. under one or more contributor * license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright * ownership. Elasticsearch B.V. licenses this file to you under * the Apache License, Version 2.0 (the "License"); you may * not u...
23.832669
114
0.638248
f43e25825d5c1438fa57d95d63285e4a6045c53f
1,093
package back_end.model.command; import back_end.model.node.IReadableInput; import back_end.model.robot.IRobot; import back_end.model.states.IModifiableEnvironmentState; import back_end.model.exception.InvalidInputNumberException; import back_end.model.exception.InvalidNodeUsageException; public class IfElseCommand ext...
32.147059
126
0.74108
9ce0f45798c7409763f94bf25b9a8720ce777707
616
package tp.p2.logic.objects.zombies; import tp.p2.logic.objects.Zombie; public class Deportista extends Zombie{ public static final int VELOCIDAD = 1; public static final int CICLOS = 1; public static final int RESISTENCIA = 2 ; public static final int DANYO = 1; public static final String NAME = "Deportista"; ...
24.64
54
0.732143
30c10e32a5a61985a4040c1fd0924d19ee99109c
3,487
package com.example.android.newsfeedapp.Activities; import android.content.Intent; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.MenuItem; import android.view.View; imp...
37.902174
139
0.67049
677f3f7d83be1934c21f29f42c9e2b549efbbd40
1,819
// This is an open source non-commercial project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com package ru.arsmagna.infrastructure; import org.jetbrains.annotations.Contract; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Null...
24.581081
83
0.53326
a70cd6c16503407fa6477eb2108874b9f4fd5acc
8,677
/****************************************************************************** * Product: iDempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * ...
27.546032
94
0.687795
bdece09b943daceae54405a4d8a55f7a51cfff7d
519
package net.minecraft.server; import com.google.common.base.Predicate; final class BlockSkullInnerClass1 implements Predicate { BlockSkullInnerClass1() {} public boolean a(ShapeDetectorBlock shapedetectorblock) { return shapedetectorblock.a().getBlock() == Blocks.SKULL && shapedetectorblock.b() inst...
30.529412
184
0.732177
c50255e980d75346a0af1cd6efa284cd7a81a96c
11,214
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.app.xmlui.aspect.authority.scheme; import java.io.IOException; import java.sql.SQLE...
34.718266
172
0.62957
f7bd47021a6dab6a3a64db2e9607dfec1911c902
884
package io.dkozak.sfc.proj.services; import io.dkozak.sfc.proj.fuzzy.FuzzySet; import java.util.HashMap; import java.util.List; import java.util.Map; import static java.util.stream.Collectors.toList; public class FuzzySetService { private Map<String, FuzzySet> sets = new HashMap<>(); public void addSet(Fu...
24.555556
74
0.611991
353e5a9c1959f7b723d95514209772c2fad42de8
1,338
/* * Copyright(c) 2016 - Heliosphere Corp. * --------------------------------------------------------------------------- * This file is part of the Heliosphere's project which is licensed under the * Apache license version 2 and use is subject to license terms. * You should have received a copy of the license with...
31.116279
91
0.663677
096bcd98b9462c9406348ff921f535d76e9c0ab3
3,477
/* * 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 ...
31.899083
123
0.72994
c3fa1cb30a20976ee5b410e36f29d107920edc4f
8,514
/** * ReportColumn.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package com.sforce.soap._2006._04.metadata; public class ReportColumn implements java.io.Serializable { private com.sforce.soap._2006._04.metadata.ReportSum...
34.330645
125
0.602772
ebfc084191c19a0692fc1449a662e2f479e58f10
864
package team.gif.robot.commands.collector; import edu.wpi.first.wpilibj2.command.CommandBase; import team.gif.robot.Robot; public class CollectorReverse extends CommandBase { public CollectorReverse() { super(); addRequirements(Robot.collector); } // Called when the command is initially s...
23.351351
75
0.678241
64e423bbe9ab579311846b663c3b33a636c2ad0b
4,422
package openanonymizer.core.dict; import org.apache.commons.lang3.Validate; import org.apache.log4j.Logger; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.*; /** * This class allows to get value from dictionary file. * Dictionary files, that are represented b...
38.12069
114
0.652872
2c58a9b7a8f314437fa65e12c33f07f90e470343
7,225
package com.vmware.avi.vro.model; import java.util.*; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import com.vmware.avi.vro.model.Att...
32.692308
100
0.718201
4276a88af428968ad6150e54189a932605cc044c
4,994
package com.gyangod.model; import com.gyangod.embeddedentity.PackageOccurrences; import org.springframework.data.geo.Point; import java.util.Date; import java.util.List; import java.util.Map; public class Pack { private String id; private List<String> standards; private String name; private Strin...
20.636364
89
0.65859
904e429c6d932176187f4e873fe4654ac2f10b38
241
package org.apache.log4j.or; class DefaultRenderer implements ObjectRenderer { public String doRender(Object o) { try { return o.toString(); } catch (Exception var3) { return var3.toString(); } } }
20.083333
49
0.614108
20645e5c3a84cf3600964e2802967e9d408f2385
480
package com.github.alanger.shiroext.servlets; import javax.servlet.ServletRequest; import javax.servlet.http.HttpServletRequest; public class MultiReadRequestFilter extends MutableRequestFilter { @Override protected ServletRequest getRequestWrapper(ServletRequest request) { if (request instanceof Htt...
28.235294
77
0.73125
f0e3d02dfd8b31f124ed10f17989fe331d81d65f
1,664
package com.example.demo.service.impl; import com.example.demo.service.AbstractZookeeperLock; import org.I0Itec.zkclient.IZkDataListener; import org.springframework.stereotype.Service; import java.util.concurrent.CountDownLatch; /** * zk分布式锁实现类 */ @Service public class ZookeeperLockImpl extends AbstractZookeeperLo...
24.835821
79
0.551683
76eb9ead4ba57370f2d1826ee3cbf1e3d1bbef28
847
package fw.jbiz.ext.verifycode.interfaces; import java.util.List; import javax.persistence.EntityManager; import fw.jbiz.ext.verifycode.bean.ZVerifyCodeBean; public interface IVerifyCodeProvider { // 账号有效性 public boolean isValidAccount(String destAddress, EntityManager em); // 当天发送次数 public int getSendTimes...
30.25
115
0.804014
68a2688124bb11263b90f8c0f31866a96e078ebf
2,405
/* * Copyright (c) 2020-2030 ZHENGGENGWEI(码匠君)<herodotus@aliyun.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 require...
37.578125
120
0.772557
f8a0957443ac4f5777399798f037a827b7ae4250
3,119
package com.appdevgenie.shuttleservice.fragments; import android.content.Context; import android.os.Bundle; import android.os.Handler; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.app.AppCompatActivity; import a...
34.274725
132
0.726836
4b447943cab49d19ac2881bd8880e675ac2f3b72
2,078
package fundamental.sort.test; import fundamental.sort.impl.*; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @SuppressWarnings("all") class SortTest { @Test public void test_sort() { String alg1 = "Bubble"; String alg2 = "Insertion"; int N = 10; in...
25.036145
86
0.504812
c603b489ef331422bfbc6615b4caf503aea35a9e
4,377
/* * Copyright 2017 MovingBlocks * * 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...
32.183824
116
0.655472
63208c7444ccd89bea3e7dbbe3e30f5e20bb2c6f
3,943
package com.rc.gcmhelper; import android.app.Activity; import android.content.Context; import android.os.AsyncTask; import android.util.Log; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GooglePlayServicesUtil; import com.google.android.gms.gcm.GoogleCloudMessaging; impor...
34.893805
115
0.610449
a0f71afd12e99ea4a7ad57e5cf4f6c54096df971
6,437
package com.old.time.utils; import android.content.Context; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.res.AssetManager; import android.text.TextUtils; import com.old.time.R; import java.io.BufferedReader; import java.io.IOException; import java.io.InputSt...
26.599174
127
0.542799
426fa47628185a2164f3fc118f924f9fdcebcc5d
16,937
package org.jordon.security.core.crypto.symmetry; import org.jordon.security.constant.DESConstants; import org.jordon.security.core.crypto.CipherService; import org.jordon.security.util.ArrayUtil; import org.jordon.security.util.Base64Util; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFo...
36.580994
115
0.563205
b7d3f0f6e787d040405d5c0b3adf6ea513e7aa71
309
package com.neusoft; /** * @author liuboting * @date 2020/7/23 21:52 */ public class ListNode { int val; ListNode next; ListNode() { } ListNode(int val) { this.val = val; } ListNode(int val, ListNode next) { this.val = val; this.next = next; } }
13.434783
38
0.530744
509c1e0dce3e4704b1d0d9780e1ea72a97fbb2fe
4,330
package jp.go.ndl.lab.back.batch; import com.fasterxml.jackson.databind.ObjectMapper; import lombok.extern.slf4j.Slf4j; import org.elasticsearch.action.search.*; import org.elasticsearch.client.RequestOptions; import org.elasticsearch.common.unit.TimeValue; import org.elasticsearch.index.query.QueryBuilders; import or...
35.785124
126
0.644573
2fa9cf279d4a49e3521519648abe3b2973436307
9,065
/* * The MIT License (MIT) * * Copyright (c) 2007-2015 Broad Institute * * 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 *...
31.807018
100
0.61401
357e9bfef078f0764091c03e4cf0b56f324a1c1c
8,136
package com.github.jordanpottruff.jgml; /** * A matrix of dimensions 3x3. */ public class Mat3 extends MatN { /** * Constructs a Mat3 from a two-dimensional array of elements. The outer-array must contain * three inner-arrays, with each being of length three. The order of the 2D array is preserved. ...
29.057143
100
0.55998
5686af5e3dfa2fcd7a248f4e0275ce77e6d6416b
340
package br.com.zup.estacionamento; public class EstacionamentoException extends Exception { private static final long serialVersionUID = 7377982967933273901L; private String mensagem; public EstacionamentoException(String mensagem) { super(); this.mensagem = mensagem; } public String getMensagem() { ret...
17.894737
67
0.773529
909a97e8b49bd85bba634a91c05a19f64d8a98de
26,855
/* * Copyright 2015 Gregory Graham * * 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.970238
131
0.706349
230b71a118900c4b066b7396e4cde7a3ccea4357
308
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.blog.util; /** * * @author dev-pai-20 */ public class ExcepcionNegocio extends Exception { public ExcepcionNegocio(String message) { super(message); } }
17.111111
53
0.62013
40fee32316266fd810c59e155c10ed8e7e5d10d7
4,432
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // 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: 2017.11....
29.945946
135
0.601083
49eca5cc2990131571ac04878b2b860bd2a76fb6
1,244
package org.openntf.domino.exceptions; public class Domino32KLimitException extends Exception { private static final long serialVersionUID = 1L; public Domino32KLimitException() { super(); } /** * @param message * the detail message. The detail message is saved for later retrieval b...
31.1
130
0.67283
9356eb06e21cc52887b2404bea9904efb5d6a592
1,922
package nl.marcvanandel.logging.example; import nl.marcvanandel.logging.Slf4jLoggingDelegate; /** * Example business service implementation only as example for application of the {@link LoggingDelegate} pattern. * <p> * See blog post: <a href="http://marcvanandel.nl/logging-delegate/">http://marcvanandel.nl/loggin...
29.569231
114
0.675858
b01c9f42cec1c6a0de2b680d8384dc92dedae9ab
4,975
package com.wgs.kafka.consumer.v2.config; import com.wgs.kafka.consumer.v2.KafkaMessageConsumer; import org.apache.kafka.clients.consumer.ConsumerConfig; import org.apache.kafka.common.serialization.StringDeserializer; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annota...
35.283688
126
0.74794
551c8528e8462499b01235c7f8a6f795c7423f59
4,376
import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.*; import java.net.ServerSocket; import java.net.Socket; /** * Esta clase sirve para crear la interfaz de cliente * @author Sebastián * */ public class Cliente extends JFrame implements Runnable{ pri...
29.768707
139
0.618144
541290ced931eeb2e137dac346c3980070286327
24,660
package org.pushingpixels.demo.flamingo.svg.filetypes.transcoded; import java.awt.*; import java.awt.geom.*; import javax.swing.plaf.UIResource; import org.pushingpixels.neon.icon.IsHiDpiAware; import org.pushingpixels.neon.icon.ResizableIcon; import org.pushingpixels.neon.icon.NeonIcon; import org.pushingpixels.neon...
48.639053
577
0.693147
e15347997380ad29f751815e5a398f5905b4e44b
491
package com.madx.mybatis.endpoints.implementations; import javax.ejb.EJB; import javax.ws.rs.Path; import com.madx.mybatis.TimeBean; import com.madx.mybatis.endpoints.interfaces.ITime; @Path("/time") public class Times implements ITime{ @EJB private TimeBean timeService; @Override public String now() { retu...
16.931034
51
0.739308
a23f050c76aa6d76f2f721b62b019ee1422f9607
6,608
package org.culpan.j6502; import javax.swing.*; import java.lang.reflect.Member; /** * Created by harryculpan on 4/18/15. */ public class J6502Cpu extends J6502Instructions { protected CpuListener cpuListener; public J6502Cpu(CpuListener cpuListener) { this.cpuListener = cpuListener; } int...
26.861789
110
0.546156
d453ca87f5d70b96face2a071d16d721febafda3
3,691
package com.luojilab.component.componentlib.router.ui; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.os.PersistableBundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; /** * <p><b>Package:</b> com.luojilab.component.com...
28.175573
114
0.651043
8f21c27f47f58b6336590efc015f48f261eff8eb
2,257
package com.base.engine.core; import com.base.engine.audio.AudioEngine; import com.base.engine.rendering.RenderingEngine; import com.base.engine.rendering.Window; public class CoreEngine { private boolean isRunning; private Game game; private double frameTime; private RenderingEngine renderingEngine; ...
21.093458
80
0.6358
d2357fa22678f80654446962f52dbf1ebd2e6744
197
package mf.dao; import mf.entity.MfAdEntity; /** * * * @author dengfan * @email 283105211@qq.com * @date 2017-03-06 22:25:21 */ public interface MfAdDao extends BaseDao<MfAdEntity> { }
13.133333
54
0.670051
46933547788c02a71fe5c4c3077adacba220d6a8
3,669
package net.glasslauncher.guis.chat; import com.google.common.collect.ImmutableList; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.glasslauncher.guis.util.Unit; import java.util.Iterator; import java.util.List; import java.util.Optional; public interface FormattedText { Optional...
31.62931
101
0.638049
4d36af83b4b512fe27401849147d6ad3c94f187a
658
package org.jboss.eap.qe.microprofile.jwt.testapp.jaxrs; import org.eclipse.microprofile.jwt.JsonWebToken; import javax.enterprise.context.ApplicationScoped; import javax.inject.Inject; import javax.ws.rs.GET; import javax.ws.rs.Path; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; @Path("/secur...
24.37037
56
0.709726
d1b8f760db28f232900889598f7bfa5ca0614147
3,712
package com.cactusteam.money.data.dao; // THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS // KEEP INCLUDES - put your custom includes here import android.os.Parcel; // KEEP INCLUDES END /** * Entity mapped to table "CURRENCY_RATE". */ public class CurrencyRate implements android.os.Parcelab...
27.701493
120
0.637123
00028b5b6d5a5f1e221e1142674f8b1101b37191
13,219
package prover; import java.util.LinkedList; import java.util.Stack; public abstract class Prover { public static void prove(Logic input) { // Feedback System.out.println("Attempting to prove: |- "+input.toString()); // Initialise lists LinkedList<Logic> lhs = new LinkedList<Logic>(); LinkedList<Logic> ...
25.421154
99
0.511688
ad63fcdc6443f0694a7dd1a2d078601852c6c523
1,487
package my.jedis; import redis.clients.jedis.HostAndPort; import redis.clients.jedis.JedisCluster; import redis.clients.jedis.JedisPoolConfig; import redis.clients.jedis.params.SetParams; import java.util.Arrays; import java.util.HashSet; import java.util.Set; import java.util.UUID; public class AccessRedisCluster {...
33.044444
80
0.630128
ed18440096c963b816a11ad70494efd9bf62d041
5,415
package com.rwxlicai.base; import android.app.Activity; import android.app.Application; import android.content.Context; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.os.Environment; import com.activeandroid.ActiveAndroid; import com.nostra13.universalimageloader.cache.disc.i...
39.525547
91
0.643398
6d2ba1ddff7ab60337c860439c520693ec4e7d08
5,569
/** * Copyright 2015 Palantir Technologies * * Licensed under the BSD-3 License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://opensource.org/licenses/BSD-3-Clause * * Unless required by applicable law or agreed to in wri...
38.406897
96
0.588795
c8b7f516f3dce4477f551b3cd2953f81bd40bda5
4,633
package com.michael.demo.jdk.io.aio; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.nio.ByteBuffer; import java.nio.channels.AsynchronousSocketChannel; import java.nio...
36.769841
108
0.608677
6e5407284fb0a933d204f8f2f1aee9a0d68d1712
161
package com.journaldev.abstractfactory; import com.journaldev.beans.Computer; public interface ComputerAbstractFactory { public Computer createComputer(); }
17.888889
42
0.826087
59ca550aa396a8b29b839ed80de872e86659c771
556
package steelkiwi.com.library.interpolator; import android.view.animation.Interpolator; /** * Created by yaroslav on 5/3/17. */ public class BounceInterpolator implements Interpolator { private double amplitude; private double frequency; public BounceInterpolator(double amplitude, double frequency) {...
24.173913
99
0.694245
0d93a295c0cd8d2039136da77a3ba879a31d3006
1,787
package com.yuzhyn.azylee.core.datas.datetimes; import java.util.Date; public class DatePassTool { /** * 计算距离现在多久,非精确 * @param date 参数 * @return 返回 */ public static String before(Date date) { Date now = new Date(); long l = now.getTime() - date.getTime(); long day =...
26.671642
77
0.396754
701c89d20dca14085570ce77f335c65ccb1a7668
1,002
package com.wy.jvm; /** * 类加载器(ClassLoader):顶层为BootStrap,该加载器并不属于Java类,而是为了加载Java类存在的原生(native)组件 * BootStrap主要加载jre/lib/rt.jar,所有追溯到最顶层的ClassLoader都是null,即BootStrap * ExtClassLoader:BootStrap的下一层,主要加载jre/lib/ext/*.jar,如果将其他jar包放在该目录下,则其加载类则为ExtClassLoader * AppClassLoader:ExtClassLoader的子加载类,默认的系统加载类,主要加载classpat...
34.551724
91
0.796407
d85209b8615e3bfe97837c9e9a0348f8b49850ca
3,898
package de.appsist.am.actions; import de.appsist.am.ActionFailedException; import de.appsist.am.PersistenceHandler; import de.appsist.ape.Guide; import de.appsist.ape.Node; import de.appsist.ape.annotations.ContentAnnotation; import java.io.File; import java.io.IOException; import java.util.HashMap; import java.util.H...
37.84466
140
0.631862
58ee9e1e8c5d79b898440c882bf900e1cfda162f
655
package com.capgemini.mrchecker.webapi.mts.pages; import com.capgemini.mrchecker.common.mts.data.User; import io.qameta.allure.Step; import io.restassured.response.Response; public class LoginPage extends MTSWebApiBasePage { @Step("Log-in") public Response login(User user) { Response response = getLoginRequest...
19.848485
57
0.719084
a53411b02e85271088874b841d0413c99f88bd4c
2,572
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
28.577778
154
0.700622
bd396e5fd2b9b3e2797477fc99bead12f4691a34
28,244
/* * $Header: /home/cvspublic/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/JspC.java,v 1.12 2001/09/18 00:16:34 craigmcc Exp $ * $Revision: 1.12 $ * $Date: 2001/09/18 00:16:34 $ * * ==================================================================== * * The Apache Software License, Version 1.1 * * C...
37.658667
133
0.482297
117d97b24d5bb018b971da3c021e77b94d7d66cd
3,787
package com.gempukku.swccgo.cards.set2.light; import com.gempukku.swccgo.cards.AbstractNormalEffect; import com.gempukku.swccgo.common.*; import com.gempukku.swccgo.filters.Filter; import com.gempukku.swccgo.filters.Filters; import com.gempukku.swccgo.game.PhysicalCard; import com.gempukku.swccgo.game.SwccgGame; impor...
50.493333
214
0.739107
06d3064a9f5d7531a4827d30e7066560037fa450
1,486
/* * $Id: PlanCMTemplate5ContactsActionBean.java,v 1.1 2009/09/24 16:48:07 pjfsilva Exp $ * * Copyright (c) Critical Software S.A., All Rights Reserved. * (www.criticalsoftware.com) * * This software is the proprietary information of Critical Software S.A. * Use is subject to license terms. * * Last changed o...
31.617021
98
0.748318
5c0f698bb82bcf3d08d81b13fe926a427679cbaf
1,854
/* * 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"); yo...
34.981132
109
0.717907
492521523ba61195d8315a9a8eb3f32c52088d0a
923
package uk.gov.hmcts.reform.iahomeofficeintegrationapi.infrastructure.client; import static org.springframework.http.HttpHeaders.AUTHORIZATION; import org.springframework.cloud.openfeign.FeignClient; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody...
43.952381
97
0.828819
b3cc462e28e3b8c68b43b1ecf3c4e592d4f44518
6,092
package strategy.api.pay.alipay; import com.alibaba.fastjson.JSONObject; import org.springframework.util.CollectionUtils; import strategy.MchLevelEnum; import strategy.PayResponseBOEnum; import strategy.api.pay.alipay.sdk.AlipayClient; import strategy.api.pay.alipay.sdk.AlipayTradeCreateRequest; import strategy.api.pa...
47.224806
123
0.64478
c93430f68add4197cc8f8c2eaaf2ce26b3d06de7
21,160
/** * WRML - Web Resource Modeling Language * __ __ ______ __ __ __ * /\ \ _ \ \ /\ == \ /\ "-./ \ /\ \ * \ \ \/ ".\ \\ \ __< \ \ \-./\ \\ \ \____ * \ \__/".~\_\\ \_\ \_\\ \_\ \ \_\\ \_____\ * \/_/ \/_/ \/_/ /_/ \/_/ \/_/ \/_____/ * * http://www.wrml.org * * Copyright (C) 2011 - 2013 M...
35.503356
133
0.61569
bcd99365714ca92ed6073c7ef1aee04c55d31291
2,342
import java.util.List; import java.util.stream.IntStream; public class FirstOperationCharacter { public static void main(String[] args) { String[] input0 = new String[] {"(2 + 2) * 2", "2 + 2 * 2", "((2 + 2) * 2) * 3 + (2 + (2 * 2))", "2+((22+2222)+(2222+222))", "2 + 3 * 45 * 56 + 198 + 10938 * 102938 + 5", "102222...
43.37037
210
0.679334
893e567c2851e2a4b023f6193745e837e2e3b525
518
package nl.tudelft.gogreen.shared.models; import com.fasterxml.jackson.annotation.JsonProperty; import com.jfoenix.controls.JFXSlider; import javafx.scene.control.Control; public enum InputType { @JsonProperty("FLOAT") FLOAT(0); private Integer controlId; InputType(Integer controlId) { this....
19.923077
53
0.662162
3cf723c0645a23da198c31ad6fc8fcaed2556003
1,214
package io.github.yzernik.squeakand; import androidx.annotation.NonNull; import androidx.room.Entity; import androidx.room.Ignore; import androidx.room.Index; import androidx.room.PrimaryKey; import androidx.room.TypeConverters; import java.io.Serializable; import io.github.yzernik.squeakand.server.SqueakServerAddre...
22.481481
79
0.714992
09ec7da1aecab9be553021bc4da7fcdcc15ae5ee
4,060
package com.sargis_ohanyan.sargapps.entidades; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.Batch; import com.badlogic.gdx.graphics.g2d.Sprite; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.physics.box2d.Body; import ...
36.25
129
0.661823
3375ed2dc098532e596bb94a6697f080a472b722
951
package com.example.stockmarket.service; import java.util.List; import javax.ejb.Schedule; import javax.ejb.Stateless; import javax.ws.rs.client.ClientBuilder; import javax.ws.rs.core.GenericType; import javax.ws.rs.core.MediaType; import com.example.stockmarket.dto.Stock; @Stateless public class StockmarketService...
28.818182
73
0.684543
67f1ce5acc20e59689550414dfe587afe7b87cc5
957
package com.github.dumpram.mceval.rtimes; import java.util.HashMap; import java.util.List; import com.github.dumpram.mceval.interfaces.IResponseTime; import com.github.dumpram.mceval.models.MCTask; import com.github.dumpram.mceval.models.MCTaskSet; public class ResponseTimeHI implements IResponseTime { @Override ...
22.785714
104
0.650993
eb92277519241ec0406b9a44a67487fcf407b7ea
2,914
package io.codekvast.javaagent.appversion; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.MatcherAssert.assertThat; import java.io.File; import java.util.Arrays; import java.util.Collection; import org.junit.jupiter.api.Test; public class PropertiesAppVersionStrategyTest { private final Co...
36.425
92
0.74571