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
8d8a81a7d025b2bba99b6ce1e12d053cad8ad6cc
4,041
package net.minecraft.block; import java.util.Random; import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.PropertyInteger; import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.IBlockState; import net.minecraft.item.ItemStack; import net.minecraft.uti...
31.570313
189
0.611482
9255bfd3d0340d21f4129af357f4f62bd49791e0
10,768
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.chrome.browser.widget; import android.animation.Animator; import android.animation.Animator.AnimatorListener; import android.animati...
38.184397
98
0.675706
63d84404c8d85b06a081503d1766a1a6947df646
3,054
/** * TODO * * * lmf 创建于2018年11月30日 */ package cn.obcp.user.util; import com.google.common.base.Strings; /** * @author lmf * */ public class CheckStrength { /** * 定义数据类型以及相应分数 */ private static final int NUM = 1; private static final int SMALL_LETTER = 2; private static final int CAPITAL_LETT...
25.663866
108
0.522921
6eda03c1abcc9ecf1a8c8616ba81ef1abdd1a397
4,815
import java.io.IOException; import java.util.Scanner; //TODO: Add the ability to split, this will be a little complicated because there are specific rules and the player will have two hands. class Main { public static void main(String[] args) { Deck deck = new Deck(); Player dealer = new Player();...
36.203008
136
0.425545
2169ceeca436a71fa41ea1d5fe4caddf79373467
4,101
/* * Copyright © 2018 www.noark.xyz All Rights Reserved. * * 感谢您选择Noark框架,希望我们的努力能为您提供一个简单、易用、稳定的服务器端框架 ! * 除非符合Noark许可协议,否则不得使用该文件,您可以下载许可协议文件: * * http://www.noark.xyz/LICENSE * * 1.未经许可,任何公司及个人不得以任何方式或理由对本框架进行修改、使用和传播; * 2.禁止在本项目或任何子项目的基础上发展任何派生版本、修改版本或第三方版本; * 3.无论你对源代码做出任何修改和改进,版权都归Noark研发团队所有,我们保...
35.051282
105
0.67642
34e3bdfa13314ff2b948f391d6cdfa05d40232af
1,739
package test; import java.io.File; import java.net.URL; /** * @author aloha_world_ * @date 2016年9月15日 下午12:30:15 * @version v1.00 * @description */ public class CreateFolder { public static void main(String[] args) throws Exception { creatFolder(); } public static void creatFolder() { ...
28.508197
80
0.682001
65d4ad7afbb763ecad393696ea16c55dae04d64d
320
package org.jetio; import java.nio.ByteBuffer; import java.util.Collection; /** * A place to get {@link ByteBuffer} instances from * * @author <a href="mailto:peter.royal@pobox.com">peter royal</a> */ public interface BufferSource { ByteBuffer acquire(); void release( Collection<ByteBuffer> buffers ); }
20
65
0.7125
43b75526ed8f7159d0d247d47315ad18839ab390
5,882
package org.ofbiz.base.util; import java.util.Collection; import java.util.List; import java.util.Locale; import java.util.Map; /** * SCIPIO: Utilities for implementing and using {@link PropertyMessageEx}. */ public abstract class PropertyMessageExUtil { public static final String MSG_INTRO_DELIM = ": "; ...
41.716312
122
0.701462
21f5c49b5b025d73c172ed3a84f6b2cff6fda7b4
1,520
package at.fhjoanneum.ippr.commons.dto.processengine.stateobject; import java.io.Serializable; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class BusinessObjectFieldDTO implements Serializable { private static final long serialVersionUID = -2396191843338173896L; private Lo...
20.821918
93
0.665132
d71fc6455c6e919101dbab98feaaaa4a386e0ca3
2,372
package artisynth.demos.tutorial; import java.awt.Color; import artisynth.core.gui.ControlPanel; import artisynth.core.materials.SimpleAxialMuscle; import artisynth.core.mechmodels.FrameMarker; import artisynth.core.mechmodels.MechModel; import artisynth.core.mechmodels.MultiPointMuscle; import artisynth.core.mechmod...
34.376812
81
0.675379
786f1c1118cb2b6a555f6a5501d7f213a42d494e
790
package subroute.block; import subroute.texture.Icon; import subroute.texture.TileRegister; import subroute.util.Side; import subroute.world.storage.IWorldAccess; public class Glass extends Block { Icon icon; public Glass(){ super(8); } @Override public void registerTexTiles(TileRegister reg) ...
19.75
85
0.7
4104fdf20e980fc1b8eb3698fd0f1013dfce7a49
977
package mediation.helper; import android.content.Context; import android.content.pm.PackageManager; import android.text.TextUtils; import android.util.Log; public class IUtils { public static boolean isPackageInstalled(String pkgName, Context context) { try { PackageManager packageManager = c...
25.051282
82
0.63869
dcf026c1e9cbeea97fbc71238c4b5e783bdf3297
2,724
package classes.SqlParser.Alter; import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; import classes.DBNode; import classes.DateNode; import classes.FileSystemFactory; import classes.FloatNode; import classes.IntegerNode; import classes.StringNode; import classes.Tab...
35.376623
116
0.593979
8508a03a1b148cf5bb80b4b7eeb7c30ca495f2d9
187
class CalcVelocity { static int distance = 10; static int time = 2; public static void main(String[] args) { int speed = distance / time; System.out.println(speed); } }
17
42
0.647059
50c2750dfb083cabe930026f329b84b1cd0043d3
2,498
package com.htfyun.uartJni; public class UartJni { /*****************************************************************/ /*****************************************************************/ /***** *****/ /***** U A R T C O N F I G E R ...
27.755556
89
0.399119
2896b413aa7ff09f754ff04a92ac591f7af5d589
530
package urlshortener.demo.repository; import urlshortener.demo.domain.URIItem; import java.util.Date; import java.util.Map; public interface URIRepository extends IRepository<String, URIItem> { Map<String, URIItem> getAllURIS(); Map<String, Date> getAllFechas(); void removeFecha(String id); void a...
19.62963
69
0.724528
5096db71e0116e62b437ebad2644db1abb76d7cc
2,736
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.jetbrains.python.psi.impl.stubs; import com.intellij.lang.ASTNode; import com.intellij.psi.PsiElement; import com.intellij.psi.stubs.IStubElementType; import com.inte...
38
140
0.789839
2e2772608ed183151138323b6d4ced9da07bd821
663
package com.pilicon.concurrency.thinkinginjava; public class SimplePriority implements Runnable { @Override public void run() { } // private int countDown = 5 ; // // private volatile double d ; // // private int priority; // // public SimplePriority(int priority) { // this.priority =...
19.5
58
0.533937
032e7587941315c135f5cd15d4fdbb03c68c1308
2,484
/* * 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 ...
40.721311
119
0.77657
8ba70b4a565f297f6fc74a343e13fb1fcb466634
978
package ru.job4j.board; import java.lang.Math; /** * @author vsokolov * @version $Id$ * @since 0.1 */ public class Bishop extends Figure { private Cell position; public Bishop(Cell position) { super(position); } public Bishop copy(Cell dest) { return new Bishop(dest); } @Overr...
21.26087
90
0.618609
2e201b932282a6edd8452d7fa5e96ea4403a1d36
1,008
package com.alibaba.rsocket.client.demo; import com.alibaba.rsocket.config.bootstrap.RSocketConfigPropertySourceLocator; import org.springframework.beans.factory.annotation.Value; import org.springframework.cloud.context.config.annotation.RefreshScope; import org.springframework.web.bind.annotation.RequestMapping; imp...
30.545455
81
0.779762
530fd021c26cb37297340500ec8bf49ddff4ab06
454
package com.alternate.sample.services; import com.alternate.sample.entities.SampleEntity; import java.util.Optional; /* * normally we use interface to abstract implementation * useful when using dependency injection * no need to depend on concrete implementation */ public interface SampleService { void addS...
25.222222
55
0.786344
3993a52d0b3c5085f16c2cdaa6770c4cd62af86c
68
package org.andot.share.common.utils; public class ZipFileUtil { }
13.6
37
0.779412
7d741ad5e030a5aa35560f8bf706325b739e8c9d
6,363
package org.jeecg.modules.nuoze.nz.service.impl; import org.jeecg.common.exception.JeecgBootException; import org.jeecg.common.util.oConvertUtils; import org.jeecg.modules.nuoze.nz.entity.NzSourceType; import org.jeecg.modules.nuoze.nz.mapper.NzSourceTypeMapper; import org.jeecg.modules.nuoze.nz.service.INzSourceTypeS...
33.489474
157
0.604118
f3dfd804d895149b0daf8c385e0511bcda8378bd
2,213
// Copyright 2016 Xiaomi, 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...
36.883333
110
0.726164
75104440150608829d1e5d8dbf85aa5207bc6746
409
package com.tz.pojo.vo; import java.io.Serializable; //分类名称 public class CategoryNames implements Serializable { /** * */ private static final long serialVersionUID = 7206099568738869602L; //分类名称 private String categoryName; public String getCategoryName() { return categoryName; } public void ...
15.730769
67
0.721271
b7f6978e7e6248a26e562a7090b48fa256c2c91d
2,972
/** * This class is generated by jOOQ */ package org.jooq.test.cubrid.generatedclasses.tables; /** * This class is generated by jOOQ. */ @java.lang.SuppressWarnings({ "all", "unchecked", "rawtypes" }) public class XTestCase_85 extends org.jooq.impl.TableImpl<org.jooq.test.cubrid.generatedclasses.tables.records.XTe...
40.712329
239
0.777254
68f76c52c2cf3e7915b051514068f02f9440b282
658
package simpleci.dispatcher.listener; import simpleci.dispatcher.model.event.BuildStartEvent; import simpleci.dispatcher.model.event.BuildStopEvent; import simpleci.dispatcher.model.repository.UpdaterRepository; public class BuildListener { private final UpdaterRepository repository; public BuildListener(Up...
27.416667
76
0.762918
a894fd9e5c0a3be5121cccde7aad81796fc3da88
1,984
package org.but.feec.library.api; import javafx.beans.property.LongProperty; import javafx.beans.property.SimpleLongProperty; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; public class LibraryFilterView { private final LongProperty id = new SimpleLongPrope...
26.105263
77
0.628024
2d365e3a60ad2cff36067cbf16c6dafc3a382271
9,780
/* * Copyright 2013 Bazaarvoice, 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...
45.069124
169
0.499796
2bc380186aac0849faad0cf9a00351a20f8453fd
2,335
// // Decompiled by Procyon v0.5.36 // package vip.Resolute.command; import java.util.Iterator; import vip.Resolute.Resolute; import java.util.Arrays; import vip.Resolute.events.impl.EventChat; import vip.Resolute.command.impl.NameProtect; import vip.Resolute.command.impl.SpectatorAlt; import vip.Resolute.command.i...
31.986301
111
0.631263
df90d5941efd545f33cc1d9f74a3a5fb64956642
47,743
/* * Licensed to Julian Hyde 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 not use this file except ...
30.506709
115
0.473368
6b0a84def470473f19c4afc17cec28db1a9ac20d
340
package pl.lodz.p.edu.database.dao.definitions; import androidx.room.Dao; import androidx.room.Insert; import pl.lodz.p.edu.database.entity.definitions.PackingListSectionDefinition; @Dao public interface PackingListSectionDefinitionsDao { @Insert void insertAll(PackingListSectionDefinition... packingListSect...
24.285714
82
0.820588
fe146f6408fd565febcb3a35ef8ef8d089421586
6,979
/** * Copyright (C) 2011-2018 Red Hat, Inc. (https://github.com/Commonjava/indy) * * 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 ...
37.929348
119
0.597077
0b42261c1822e03c24df39042f93056951cd030b
2,160
package com.example.demo.service.Impl; import com.example.demo.exception.NotFound; import com.example.demo.service.*; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; /** * @Author WeLong * @create 2019/10/25 20:11 */ @Service public class ArtServiceImp...
26.666667
62
0.539352
6d852b5bb4942d7ce003fe5f74963b3e07856482
8,961
package com.averi.worldscribe.activities; import android.content.Intent; import android.content.res.Resources; import android.os.Bundle; import androidx.core.widget.NestedScrollView; import androidx.recyclerview.widget.LinearLayoutManager; import androidx.recyclerview.widget.RecyclerView; import android.view.View; imp...
33.066421
100
0.679165
5243350935b96058a8eaad118fc8a2dbc3836ef2
1,585
package com.hnsfdx.hslife.service.serviceimpl; import com.hnsfdx.hslife.annotation.ReadCache; import com.hnsfdx.hslife.annotation.WriteCache; import com.hnsfdx.hslife.async.EventType; import com.hnsfdx.hslife.pojo.Answer; import com.hnsfdx.hslife.repository.AnswerRepository; import com.hnsfdx.hslife.service.AnswerServ...
31.7
104
0.769716
7de6499896f8d331bb74a52ff12736fd4d7a2dd8
1,381
package controllers; import com.typesafe.plugin.MailerAPI; import com.typesafe.plugin.MailerPlugin; import play.*; import play.data.Form; import play.mvc.*; import views.html.*; import java.text.SimpleDateFormat; import java.util.Date; public class Application extends Controller { private static String ADMIN_E...
31.386364
100
0.619117
556d77bf87875684baec3e6d1b7e2cc885852d31
473
package top.gumt.mall.coupon.service; import com.baomidou.mybatisplus.extension.service.IService; import top.gumt.common.utils.PageUtils; import top.gumt.mall.coupon.entity.SmsSeckillSkuNoticeEntity; import java.util.Map; /** * 秒杀商品通知订阅 * * @author zhaoming * @email gumt0310@gmail.com * @date 2021-07-15 20:45:2...
22.52381
89
0.778013
f3b11ee44b977ea302944e44f9052e848b2d9667
334
package br.com.zupacademy.rafael.casadocodigo.repositories; import br.com.zupacademy.rafael.casadocodigo.entities.Categoria; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface CategoriaRepository extends JpaRepository<Categoria...
23.857143
76
0.847305
0ed3330981455e41f83b78d74b2bbc1574902300
2,538
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; public class CCC00S4 { static int[] clubs; public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStrea...
34.767123
105
0.595351
575f19c99e3a8a54d8e96d0c121e87e9e6571b02
11,908
package com.enjin.enjincraft.spigot.token; import com.enjin.enjincraft.spigot.SpigotBootstrap; import com.enjin.enjincraft.spigot.player.EnjPlayer; import com.enjin.enjincraft.spigot.player.PlayerManager; import com.enjin.sdk.services.notification.NotificationsService; import com.google.gson.Gson; import com.google.gs...
35.023529
106
0.652586
92f9861cedbd46c7303b4a58fc9d802239cb4b4f
350
package de.teamLocster.chat; import de.teamLocster.core.BaseRepository; import de.teamLocster.user.User; import org.springframework.stereotype.Repository; import java.util.List; /** * has not yet been implemented */ @Repository public interface ChatRepository extends BaseRepository<Chat> { List<Chat> findChats...
21.875
62
0.794286
994b7745e000812d80d7ba936dadd5ecff4dc339
17,130
package org.ovirt.engine.core.bll.tasks; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.Future; import java.util.stream.Collectors; import org.ovirt.e...
37.982262
123
0.686281
c377ec6d703e3eb01a77dba7a7a9a70f5eea9d42
481
package db; import java.sql.ResultSet; import java.sql.SQLException; public class TiempoInicio { private String inicio; public TiempoInicio(String inicio) { super(); this.inicio = inicio; } public TiempoInicio(ResultSet datos) { try { this.inicio = datos.getString(1); } catch (SQLE...
15.516129
42
0.629938
07655f6eceb92dca8b392b9e7fb3446196ab1955
1,650
package com.vmware.boot.consumer.dao; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.mongodb.core.MongoTemplate; import org.springframework.data.mongodb.core.query.Criteria; import org.springframework.data.mongodb.core.query.Query; import ...
27.966102
70
0.68303
e5086c0131625770250f5bfa7af210c0b1a95c18
620
/** * * License: http://www.apache.org/licenses/LICENSE-2.0 * Home page: https://github.com/linlurui/ccweb * Note: to build on java, include the jdk1.8+ compiler symbol (and yes, * I know the difference between language and runtime versions; this is a compromise). * @author linlurui * @Date Date: 2019-02-10 ...
22.142857
87
0.685484
b5dfba7523f060ce1b169d1686f084507276d3b0
362
package JunitTest; import org.junit.experimental.categories.Categories; import org.junit.experimental.categories.Categories.IncludeCategory; import org.junit.runner.RunWith; import org.junit.runners.Suite.SuiteClasses; @SuiteClasses({AppTest.class}) @RunWith(Categories.class) @IncludeCategory(MyCategories.PositiveTes...
25.857143
68
0.837017
3155a85aac513f5fb02f059796a4d8a2af8829f3
3,094
/* * 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 ma...
43.577465
111
0.760827
9b1b4a2d81411c1fae5ece1a08f6310c5b705d87
168
package practice; public class Problem { static String s; static class Inner { void testMethod() { s = "Set from Inner"; } } }
15.272727
33
0.529762
a14a564bddb1a1bbc2a8ae26aede6451f486d787
3,182
package io.github.marcelovca90.ml; import org.encog.ml.data.MLData; import org.encog.ml.data.MLDataPair; import org.encog.ml.data.basic.BasicMLDataSet; import org.encog.ml.svm.KernelType; import org.encog.ml.svm.SVM; import org.encog.ml.svm.SVMType; import org.encog.ml.svm.training.SVMTrain; import io.github.marcelov...
33.851064
150
0.583595
75150f183ee2de085b0f6a41d364363b262d7794
7,016
package tlf.com.tlfdebug.ui; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.tlf.keep.callback.ISerialportDataCallback; import com.tlf.keep.controller.MainSerialportController; import com...
33.09434
143
0.534065
846a264e4497dd0a6d99469ca350a5e301d7530b
719
package play.learn.java.design.balking; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit; // https://java-design-patterns.com/patterns/balking/ public class BalkingDemo { public static void main(String[] args) { WashingMachine washingMachine ...
27.653846
71
0.748261
b2cf73f57c8a98ab2548ea1e2c8a4e1b3f8110fb
582
package ac.cn.saya.lab.api.entity; import com.alibaba.fastjson.JSONObject; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; import java.util.List; /** * @Title: OutExcelEntity * @ProjectName lab * @Description: TODO * @Author saya * @Date: 2020/6/18 18:18 * @Description: 导出到Excel时,封...
14.923077
39
0.646048
47a6e521302172381bf50dbffdafda868ca7f1e0
342
package com.leetcode.algorithm.medium.subarraysumsdivisiblebyk; class Solution { public int subarraysDivByK(int[] arr, int k) { int[] count = new int[k]; count[0] = 1; int prefix = 0; int res = 0; for (int num: arr) { prefix = (prefix + num % k + k) % k; res += count[prefix]++; } ...
21.375
63
0.573099
ec9f6d7f6c1db4c586d7a3cac7c34a9656e576aa
1,387
/* * Copyright (c) 2015 FUJI Goro (gfx). * * 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 agree...
26.673077
75
0.741168
d299d59710210572fe095a36f2caf031a99c3368
726
package hu.advancedweb.scott; import static org.hamcrest.CoreMatchers.equalTo; import static org.hamcrest.MatcherAssert.assertThat; import org.junit.Test; import hu.advancedweb.scott.runtime.track.StateRegistry; public class MethodNameAndClassTrackingTest { @Test public void test1() throws Exception { assertT...
29.04
111
0.800275
f937a4c52c730f48733c1cd154e56fd679dd8479
3,993
package us.ihmc.scs2.sessionVisualizer.jfx.charts; import java.util.ArrayList; import java.util.List; import java.util.concurrent.locks.ReentrantReadWriteLock; import javafx.beans.property.BooleanProperty; import javafx.beans.property.IntegerProperty; import javafx.beans.property.ObjectProperty; import javafx.beans.p...
26.62
131
0.735036
58446e8a4346aeab5539d371247debb7c85be83c
395
package com.dyllongagnier.cs3810; import java.util.Random; public class RandomArrayGenerator { private Random rand = new Random(); // Makes an N by N array. public IntArray2D getRandomIntArray(int N) { IntArray2D result = new IntArray2D(N, N); for(int row = 0; row < N; row++) for(int col = 0; col < N; co...
19.75
44
0.670886
25a9be225f4314d994d4aac77bf6e62e72289dbd
3,061
/** * Copyright 2005-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless required by a...
21.864286
81
0.599477
1cd67d8cf43796cabf581140d7bc3730a74710a0
1,804
package org.telegram.api.message.media; import org.telegram.api.document.TLAbsDocument; import org.telegram.tl.StreamingUtils; import org.telegram.tl.TLContext; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; /** * The type TL message media document. */ public class TLMessageMe...
22.835443
87
0.651885
cf4acdbdf516194f7fa443cae8c557f83a51912a
2,516
package com.hbm.items.food; import java.util.List; import java.util.Random; import com.hbm.items.ModItems; import com.hbm.lib.ModDamageSource; import com.hbm.potion.HbmPotion; import net.minecraft.client.util.ITooltipFlag; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.MobEffects; import ...
30.313253
128
0.715421
1d52ae2809d107c7062caab578be0ad36c9f6554
962
package com.tcwong.pengms.model; import java.io.Serializable; public class Logdic implements Serializable { private Integer typeid; private String typename; private static final long serialVersionUID = 1L; public Integer getTypeid() { return typeid; } public void setTypeid(Integer ...
23.463415
66
0.616424
fc4fe245012c2881894a9ed9e60786f38a2207ab
9,142
package com.keptn.neotys.testexecutor.NeoLoadFolder.datamodel; import com.keptn.neotys.testexecutor.NeoLoadFolder.NeoloadInfrastructureModel.NeoLoadInfrastructureFile; import com.keptn.neotys.testexecutor.NeoLoadFolder.NeoloadInfrastructureModel.NeoloadInfra; import com.keptn.neotys.testexecutor.exception.NeoLoadJgit...
33.123188
223
0.735616
43283b65c5ab004fe8a18d96fbcc33b32abb2fcc
1,244
/** * $Id$ * $URL$ * ClassConverter.java - genericdao - Sep 8, 2008 2:47:07 PM - azeckoski ************************************************************************** * Copyright (c) 2008 Aaron Zeckoski * Licensed under the Apache License, Version 2.0 * * A copy of the Apache License has been included in this ...
32.736842
155
0.647106
663465b11d04ed52d2c9018abd4913ca46cbd404
2,533
/* * Copyright 2006-2021 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
34.22973
121
0.743387
7fbc6b46c8c3cb55f3a2d6ad9bd5c4f40e2b8bb1
1,925
package com.john.crush.rest; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.john.crush.entity.User; import com.john.crush.service.UserService; import java.util.List; @RestController @RequestMapping("/api/users") public class UserRestContro...
27.898551
77
0.631169
301cb46118fc3a7c65c1393a3d4071b50a689451
7,360
/* * Copyright (c) 2005-2011 Grameen Foundation USA * 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 * * Unl...
42.057143
115
0.70788
924ef68d60c6a50f7ee2735f502d844fc22ebfaf
2,454
package universalelectricity.core.electricity; public class ElectricityPack implements Cloneable { public double amperes; public double voltage; public ElectricityPack(double amperes, double voltage) { this.amperes = amperes; this.voltage = voltage; } public ElectricityPack() { this(0.0D, 0.0D); } pub...
24.29703
92
0.742869
118177894e2894a7be01ec38cab2438d675a3baa
9,537
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package prod; import prod.Models.Reminder; import java.util.Date; import org.junit.After; import org.junit.AfterClass; import org.juni...
28.299703
79
0.611513
c3f4714d42bc06dc74b3336bebd73a66d2e7516f
957
package qj.blog.classreloading.example2; import qj.util.ReflectUtil; import qj.util.ThreadUtil; import qj.util.lang.DynamicClassLoader; /** * Created by Quan on 31/10/2014. */ public class ReloadingContinuously { public static void main(String[] args) { for (;;) { Class<?> userClass = new DynamicClassLoader("...
25.184211
72
0.710554
14ac0e1d91a65e8fa3037bb51000122d2576b5bd
6,016
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package pckg.testingbanksimulation; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.SortedSet;...
28.377358
103
0.635638
f6fd104c361aaa6b589bcb879c87b09c48e9bf52
25,022
package com.ppdai.das.server; import static com.google.common.base.Preconditions.checkArgument; import static com.google.common.base.Strings.isNullOrEmpty; import java.io.IOException; import java.io.OutputStream; import java.lang.management.ManagementFactory; import java.net.InetAddress; import java.net.InetSocketAd...
40.952537
147
0.643594
4bbcbae6d0f5e946616ba62dcabe12d4fa89be85
10,860
package com.afeng.common.utils; import com.google.zxing.*; import com.google.zxing.Result; import com.google.zxing.common.BitMatrix; import com.google.zxing.common.HybridBinarizer; import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel; import sun.misc.BASE64Encoder; import javax.imageio.ImageIO; import java.aw...
35.032258
126
0.595028
1b561277dbd8ae3ab160afec04faf3c3d722e850
6,245
package swle.xyz.austers.activity; import android.content.DialogInterface; import android.content.SharedPreferences; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import androidx.appcompat.app.AlertDialog; import androidx.appcompat.app.AppCompatActiv...
38.78882
104
0.521217
12dce11f63e525c9f6d98862e43fc9f611529775
1,137
package ru.mativ.client.widgets; import com.google.gwt.event.logical.shared.ValueChangeEvent; import com.google.gwt.event.logical.shared.ValueChangeHandler; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.HasValue; import com....
26.44186
85
0.712401
25489ca86af5bf6cf8b32549a60652bbdd8e22e9
419
/*% if (feature.connected) { %*/ package gpl.workspace; import gpl.vertex.IVertex; public class ConnectedWorkspace implements IWorkspace { private int counter = 0; @Override public void initVertex(IVertex v) { v.setComponentNumber(-1); } @Override public void postVisitAction(IVertex v) { v.setComponentNum...
17.458333
55
0.711217
fa413eb78f16e3a8cbb13ea8e743cd0016b12f81
10,764
package com.searchview; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.graphics.drawable.Drawable; import android.support.annotation.DrawableRes; import android.support.constraint.ConstraintLayout; import android.text.Editable; import android.text.Tex...
30.931034
129
0.607116
dd285839e180f85e8f00a0355c9c1999b335c5c4
57,354
package com.ngdesk.modules.fields; import java.io.IOException; import java.math.BigDecimal; import java.sql.Timestamp; import java.util.ArrayList; import java.util.Arrays; import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Optional; import java.util.Set; impo...
39.122783
110
0.690623
59fd089ad36abd3f8514b4f0840f99222f95d8d9
648
package hyweb.jo.model.event; import hyweb.jo.JOProcObject; import hyweb.jo.JOTestConst; import hyweb.jo.util.JOTools; import org.junit.Test; /** * * @author william */ public class JOMEventTest { @Test public void test_query(){ String base = JOTestConst.base("prj.baphiq"); ...
24
112
0.600309
6c04c623f3a0514db243e1492b2aea95fcaa0b95
21,723
/** * The MIT License (MIT) * * Copyright (c) 2014-2017 Marc de Verdelhan & respective authors (see AUTHORS) * * 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, incl...
40.909605
164
0.651706
b0b9c1a90c2bf15c1b807325e0e0249d3762d5bf
508
package com.xlx.majiang.system.service; import com.xlx.majiang.system.entity.Account; /** * 账户注册 * * @author xielx at 2020/12/20 20:44 */ public interface AccountService { /** * 注册账户 * @param account Account * @return */ int registerAccount(Account account); /** ...
17.517241
63
0.61811
391d7ec5fa0c47438456dc789bd886b84076b6d6
323
package eapli.base.app.servicosrh.console.presentation.catalogo; import eapli.framework.actions.Action; /** * Menu action for adding a new catalogo to the application. */ public class AddCatalogoAction implements Action { @Override public boolean execute() { return new AddCatalogoUI().show(); }...
21.533333
64
0.724458
26f6a367472332b0b7a2e8c839cbe9017ce21e28
24,278
/* * Copyright 2020 Google LLC * * Use of this source code is governed by an MIT-style * license that can be found in the LICENSE file or at * https://opensource.org/licenses/MIT. */ package com.google.cloud.healthcare.fdamystudies.controller.tests; import static com.google.cloud.healthcare.fdamystudies.common....
38.35387
111
0.725801
7f8309dcdcfabe9352d09055b12f8726819fcc8a
11,458
/* * This file is part of the Heritrix web crawler (crawler.archive.org). * * Licensed to the Internet Archive (IA) by one or more individual * contributors. * * The IA licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance ...
39.784722
93
0.644615
14c56f086851eda30e73c6486ac500c6a82234dc
9,509
/** The MIT License (MIT) * Copyright (c) 2015 铭飞科技 * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, including without limitation the rights to * use, copy, modify, m...
33.364912
114
0.703123
fcbec162153ce025e030a76a9803298ee7e32635
2,748
package com.caoyx.rpc.core.net.netty.client; import com.caoyx.rpc.core.data.CaoyxRpcRequest; import com.caoyx.rpc.core.data.CaoyxRpcResponse; import com.caoyx.rpc.core.net.api.Client; import com.caoyx.rpc.core.net.netty.codec.CaoyxRpcDecoder; import com.caoyx.rpc.core.net.netty.codec.CaoyxRpcEncoder; import io.netty....
29.869565
100
0.612082
dedb3dd5f253749c0f686b54e4b959af7a7a97d6
547
package aoj; import java.util.Scanner; import java.util.Vector; public class P2564DigitFib { static Vector<Integer> f = new Vector<Integer>(); static { f.add(0); f.add(1); for (int i = 3; i <= 60; i++) f.add((f.get(f.size() - 1) + f.get(f.size() - 2)) % 10); } pub...
21.88
68
0.511883
f9a788b95073245a814d4d302365d2026f487e0e
1,552
package eas.com.window; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.print.PageFormat; import java.awt.print.Printable; import java.awt.print.PrinterException; import java.awt.print.PrinterJob; /** * Hello Word Print Class. * * @author Eduardo Alfonso ...
29.283019
83
0.621134
e8a3fb017619313f8d67965d66ffddb012aaff5d
731
package com.qflow.server.usecase.queues; import com.qflow.server.entity.Queue; import org.springframework.beans.factory.annotation.Autowired; public class CloseQueue { private final CloseQueueDataBase closeQueueDatabase; private final GetQueueByQueueId getQueueByQueueId; public CloseQueue(CloseQueueDataB...
33.227273
70
0.74829
f601474aec5de97f0f87a46e61aa3744405c3cf9
963
package com.sadaqaworks.quranprojects.model; import java.util.ArrayList; /** * Created by Sadmansamee on 7/19/15. */ public class AyahWord { private ArrayList<Word> word; private String quranArabic; private String quranTranslate; private Long quranVerseId; public ArrayList<Word> getWord() { ...
20.934783
58
0.662513
fb0fa8420500a549e7e86d3e80811e62d16ac46a
3,149
/** * 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 m...
48.446154
139
0.723722
e30477f9b2ddf6d33d00af05f014d2ca53bef4e0
1,922
package com.atg.openssp.core.cache.broker.json; import com.atg.openssp.common.cache.broker.DataBrokerObserver; import com.atg.openssp.common.core.broker.dto.SiteDto; import com.atg.openssp.common.core.cache.type.SiteDataCache; import com.atg.openssp.common.core.system.loader.GlobalContextLoader; import com.atg.openssp...
29.121212
120
0.736733
905c78b69853d170979e9616551d9a141f3417a9
4,196
/* * Copyright 2014 by the Metanome 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 applicable law o...
28.161074
104
0.698761
4dc6fd2925642445b04c9b26bea23a8749002fb3
1,602
package com.madfree.bakingapp.data; import androidx.room.Entity; import androidx.room.ForeignKey; import androidx.room.Index; import androidx.room.PrimaryKey; import static androidx.room.ForeignKey.CASCADE; @Entity(indices = {@Index(value = "recipeId")}, foreignKeys = @ForeignKey(entity = Recipe.class, ...
23.558824
89
0.635456
ff710b9e9497cc8b86e748aeb63d6a0e2662b08f
763
package com.cloudxhoster.api.utils; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.nio.file.Path; import java.util.Map; public class IOUtilsTest { private static final Logger LOG = LoggerFactory.getLogger(IOUtilsTe...
27.25
87
0.695937
5eac6e791927f4ecd50ac574f7012e503627cca1
2,217
package cn.linz.base.config; import cn.hutool.core.exceptions.UtilException; import cn.hutool.core.util.ReflectUtil; import cn.linz.base.exception.IdGeneratorException; import org.hibernate.HibernateException; import org.hibernate.MappingException; import org.hibernate.engine.spi.SharedSessionContractImplementor; impo...
35.190476
117
0.708164
2b5ab7ab6207f0e631c3e27b7eda185c3260a621
199
package org.onap.appc.dg.common.impl; public class VnfExecutionInternalException extends RuntimeException{ public VnfExecutionInternalException(Throwable cause) { super(cause); } }
22.111111
68
0.763819
8e771f52073b95877cf016ed29322d85aa6e2a0f
1,682
/* * Copyright 2010-2013 Ning, Inc. * Copyright 2015 Groupon, Inc * Copyright 2015 The Billing Project, LLC * * The Billing Project 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 L...
39.116279
155
0.727705
cfbef6287aea1b87460820354cbf50c45acd8200
2,289
package com.airbnb.android.react.maps; import android.os.Build; import android.util.DisplayMetrics; import android.view.WindowManager; import com.facebook.react.bridge.ReactApplicationContext; import com.facebook.react.bridge.ReadableArray; import com.facebook.react.common.MapBuilder; import com.facebook.react.uimanag...
35.215385
130
0.733945