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
c9c7f0d1e563f4afd86a41f9490e2c9efdc565b3
3,442
/******************************************************************************* * Copyright (c) 1998, 2015 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 ...
52.151515
145
0.733004
aec28f2a2c70cc0dd5bffba153be452e4c0dd774
233
package com.project.service; import com.project.model.Status; public interface StatusService { public boolean addStatus(Status statusObj); public boolean updateStatus(String statusName); public Status viewStatus(int statusId); }
25.888889
48
0.815451
77591b9890dc43ed4647404dbc26941ceac0e905
325
package com.sailfish.tx.seata.service; /** * @author XIAXINYU3 * @date 2020/12/2 */ public interface ProductService { /** * 扣减库存 * * @param productId 商品 ID * @param amount 扣减数量 * @throws Exception 扣减失败时抛出异常 */ void reduceStock(Long productId, Integer amount) throws Exceptio...
18.055556
70
0.627692
4833b45ec0d7dad1b5557d85dafc6b0816704f24
8,074
/* * Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. 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/li...
30.467925
119
0.670176
97bcdd4ef8986b1d722d06c773c28e48dfcb4135
1,623
/* * 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 com.ipseorama.webrtc; import com.digium.respokesdk.RespokeDirectConnection; import java.nio.ByteBuffer; /** * * @author Wes...
28.473684
139
0.683303
90e00e491eb5c5775c48d63f0f32d40ab1c2009b
4,304
/* * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
50.046512
88
0.732574
ff8269f8778386052d57eef0f3ad41ec77d69415
197
package it.cnr.istc.stlab.lizard.commons.web; public class InstantiationException extends RuntimeException { /** * */ private static final long serialVersionUID = 2619620914300522765L; }
17.909091
67
0.766497
6621c369c87b8ad7d63a689643800024922b8642
2,023
package org.u_compare.gui.debugging; import java.awt.Dimension; import javax.swing.BoxLayout; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JViewport; import org.u_compare.gui.control.ComponentController; import org.u_compare.gui.m...
28.9
82
0.765695
83f74a3bc93f455f534b79b9a4948a9fafeb2004
4,551
// Copyright (C) 2013 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
31.386207
78
0.690398
2ced990e7791303b7ba0cd32efd91306e175af63
433
package edu.htu.assignment; public class OOPExecution { public static void main(String[] args) { //Declaring a variable (reference) as Square type //Constructing an object Square s1= new Square(); s1.length= 5; s1.width= 5; s1.shapeArea(); //Declaring a variable (reference) as RightTriangle type //Const...
22.789474
58
0.704388
5a8cb50cbecadea75890b74308253f34bc678834
2,212
package io.rapidpro.flows.definition.tests.numeric; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import io.rapidpro.expressions.EvaluatedTemplate; import io.rapidpro.expressions.EvaluationContext; import io.rapidpro.flows.definition.Flow; import io.rapidpro.flows.definition.FlowParseException...
30.722222
120
0.679476
ca144fe7af99cea06b264928cee4be5cc6a5b49a
1,754
/* * JBox2D - A Java Port of Erin Catto's Box2D * * JBox2D homepage: http://jbox2d.sourceforge.net/ * Box2D homepage: http://www.box2d.org * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of t...
30.241379
77
0.706385
230d97f7679ea298bf5c8b6b528bce6ec5bd1bd2
2,357
/* * Copyright (c) 2016 WisePersist.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/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed...
42.854545
100
0.750955
5218749e6a5c48fc24b98f177b3dacdd70175589
24,944
/* * 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 ...
37.229851
122
0.596777
7c59cb821dc49db73fe4dcc03e524e330b338568
1,692
package cla.edg.project.yrzx.gen.graphquery; import java.util.Map; import cla.edg.modelbean.*; public class CcRecord extends BaseModelBean{ public String getFullClassName() { return "com.yrdec.yrzx.ccrecord.CcRecord"; } // 枚举对象 // 引用的对象 public Merchant ccTo() { Merchant member = new Merchant(); member.s...
21.15
53
0.720449
e352627e94148197fdb645b3dad544d323681931
310
package eu.cityopt.service; import eu.cityopt.DTO.DataReliabilityDTO; public interface DataReliabilityService extends CityOptService<DataReliabilityDTO>{ DataReliabilityDTO save(DataReliabilityDTO d); DataReliabilityDTO update(DataReliabilityDTO toUpdate) throws EntityNotFoundException; }
25.833333
84
0.822581
e0cea5f4feea879fb5a057d14ff772d2a6e49146
1,551
package base.de.datos; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; class AnswersOpenHelper extends SQLiteOpenHelper { AnswersOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) { s...
30.411765
104
0.629916
cb2c9555aae89650daa9d84e85e25730c4829175
993
package com.mmorpg.framework.utils; import java.util.concurrent.TimeUnit; /** * @author Ariescat * @version 2020/2/19 12:22 */ public class Timer { private long nextTime; private long interval; public Timer(long initialDelay, long period, TimeUnit unit) { this.nextTime = TimeUtils.getCurrentMillisTime() + u...
19.096154
81
0.707956
3d9fe8d53cffbe5ff7a7cba3e66493cb0c7d7493
1,141
package ga.brunnofdc.fdchomes.objects; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.entity.Player; public class Home { private Profile owner; private String name; private Location location; public Home(Profile owner, String homeName, Location locat...
21.12963
97
0.634531
5267338f6a27eea14e36fb182e8d12c3f2ead051
2,649
/* * Copyright 2012-2017 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more contributor * license agreements WHICH ARE COMPATIBLE WITH THE APACHE LICENSE, VERSION 2.0. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in complian...
29.10989
85
0.714232
0763c28b925abc08bdb9eb1e0c4f484add05c913
1,613
package io; import java.io.File; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Queue; public class Search { /** * Method files. Поиск файлов с нужными расширениями по каталогу * @param parent Проверяемый каталог * @param exts Искомые расширения. ...
34.319149
105
0.583385
e052b73ac5fe0992afc48be91583517fd9aa3344
13,008
/* * Copyright (C) 2015 University of Oregon * * You may distribute under the terms of either the GNU General Public * License or the Apache License, as specified in the LICENSE file. * * For more information, see the LICENSE file. */ package vnmr.admin.ui; import java.io.*; import java.util.*; import java.be...
34.595745
100
0.56373
8755869f0717d4c2d36e56a7fe76ac079d1f7eac
667
package net.n2oapp.security.admin.frontend; import net.n2oapp.security.auth.OpenIdSecurityConfigurerAdapter; import org.springframework.context.annotation.Configuration; import org.springframework.security.config.annotation.web.builders.HttpSecurity; import org.springframework.security.config.annotation.web.configurer...
39.235294
107
0.796102
bbde6af589f6da806bc6fde52c874e4586bb350a
1,064
package com.bretpatterson.schemagen.graphql.typemappers.java.lang; import java.lang.reflect.Type; import com.bretpatterson.schemagen.graphql.IGraphQLObjectMapper; import com.bretpatterson.schemagen.graphql.annotations.GraphQLTypeMapper; import com.bretpatterson.schemagen.graphql.typemappers.IGraphQLTypeMapper; impor...
30.4
90
0.825188
61d5574481f742d47f6abbca4b586278f2bb9c7d
2,085
/* * 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...
29.366197
104
0.69976
7495a0af1ad20a720a58827c54797341415beb43
1,035
package com.artist.web.popularmovies.model; import com.google.gson.annotations.SerializedName; /** * Created by User on 06-Mar-18. */ public class MovieVideos { @SerializedName("id") private String mId; @SerializedName("key") private String mKey; @SerializedName("name") private String mN...
16.693548
73
0.572947
9ac23e4bab1e2a22de77e0e6e2fe87569dc419f6
3,792
package org.kuali.ole.ingest.action; import org.apache.log4j.Logger; import org.kuali.ole.DataCarrierService; import org.kuali.ole.OLEConstants; import org.kuali.ole.ingest.pojo.ProfileAttributeBo; import org.kuali.rice.core.api.resourceloader.GlobalResourceLoader; import org.kuali.rice.krms.api.engine.ExecutionEnviro...
39.5
148
0.713608
87abff999122ce1866708f9befb87a02f1c3f468
1,993
/* * Copyright (c) 2019 Wave Software * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
32.672131
87
0.723031
db4611247dd7221a38f9b0f7e6e508505389c7f4
7,951
package xyz.smartrec.center.mongodb_client; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONObject; import com.csvreader.CsvReader; import com.mongodb.*; import org.apache.commons.io.IOUtils; import java.io.*; import java.nio.charset.StandardCharsets; import java.util.ArrayList; import java.util.Has...
39.755
102
0.531002
4a6b4a754cbbcbfefab6cfc13e218c050e7ea046
943
package com.lingganhezi.myapp.ui; import java.util.ArrayList; import java.util.Collection; import java.util.List; import android.widget.BaseAdapter; public abstract class ListAdapter<T> extends BaseAdapter { private List<T> mData = new ArrayList<T>(); @Override public int getCount() { return mData.size(); } ...
16.54386
58
0.671262
2dedf660a6fdb84bc09ad1c463f4a4b53802f60e
1,076
package engine.view; import javafx.scene.image.Image; import java.util.HashMap; import java.util.Map; /** * This class serves the purpose of providing a single method for creating ALL images in the application, as well * as storing these images in a single place for reuse. Because create Image objects requires sig...
34.709677
118
0.702602
f3a9d3b5f895d3d1edef8fc605647c294e0f0f84
2,212
package eu.larkc.core.data; import org.junit.Test; import org.openrdf.model.Statement; import org.openrdf.model.impl.URIImpl; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import eu.larkc.core.data.VariableBinding.Binding; import eu.larkc.core.query.RemoteSPARQLEndpoint; import eu.larkc.core.query.SPARQLQu...
36.866667
396
0.729656
21794e81bf87cdd6d4ff9f7cb8ce76980a54c1d4
5,968
package com.google.common.util.concurrent; import com.google.common.base.Preconditions; import com.google.common.base.Stopwatch; import com.google.common.util.concurrent.SmoothRateLimiter; import java.util.Locale; import java.util.concurrent.TimeUnit; import org.checkerframework.checker.nullness.compatqual.MonotonicNo...
34.49711
134
0.639913
7c793cd9ce4cd23021a6cf1f3e64e0480650b918
2,819
package com.tib.indoor_mapper.geofence; import android.content.BroadcastReceiver; import android.content.Context; import android.location.Location; import com.indooratlas.android.sdk.IALocationListener; import com.indooratlas.android.sdk.IALocationManager; import com.indooratlas.android.sdk.IALocationRequest; import ...
32.034091
140
0.774033
7a1d177a0fc3143faa68b6ff06b3b54d26734faf
299
package com.exemple.test.repository; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.exemple.test.model.TestModel; @Repository("testRepository") public interface TestRepository extends JpaRepository<TestModel, Long> { }
24.916667
72
0.832776
c339edb44491d3affd433df88aa5c635132633b9
1,807
/* ==================================================================== 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 ...
36.14
82
0.676812
7dd44b5b1f4557749813895fec3c46dca6560e44
400
package com.ca.dp.structural.decorator; /** * Created by yanya04 on 6/8/2017. */ public class DressingDecorator extends SandwichDecorator { public DressingDecorator(Sandwich customSandwich) { super(customSandwich); } public String make(){ return this.customSandwich.make() + addDressing()...
21.052632
58
0.6625
820c7f2eb735b47cb02ab53904b1dbeb0a3dc236
3,160
package org.pentaho.platform.spring.security.saml; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.opensaml.saml2.metadata.provider.MetadataProviderException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.Initi...
32.916667
109
0.787025
296a2b0a54eb7194d1e8df5af0d95162b4ca1375
634
import jline.ConsoleReader; public class ConsoleCalculator { public static void main(String args[]) throws Throwable { char[] allowed = new char[] {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '-', '='}; Calculator calculator = new Calculator(); System.out.println("Welcome to the...
35.222222
102
0.572555
cc75f3ca8cb358e02a09e3165517e7bc8e655676
504
package com.radsoltan.model; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; class ShearTest { private static Shear shear; @BeforeAll static void beforeAll() { shear = () -> { }; } @Test void maxim...
21
79
0.690476
6a38795d87193b3dc0b5c81f5a25196298ba659e
3,362
package tv.starcards.starcardstv.application.data.channelsdata; import android.content.Context; import android.content.res.Resources; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.util.Log; import android.view.View; import android.view.ViewGroup; import android.widget.A...
38.204545
140
0.692742
cfa9e54ffa62a133fd9a26ca4200434af5d8ffdc
1,579
package org.amv.trafficsoft.rest.client.xfcd; import com.netflix.hystrix.HystrixCommand; import feign.Headers; import feign.Param; import feign.RequestLine; import org.amv.trafficsoft.rest.client.TrafficsoftClient; import org.amv.trafficsoft.rest.xfcd.model.DeliveryRestDto; import org.amv.trafficsoft.rest.xfcd.model.N...
35.088889
92
0.704243
c91224d0b7e0ab8c540971644a019a8733930e20
1,027
package org.flybird.rock.portal.config; import org.flybird.rock.portal.service.UmsMemberService; import org.flybird.rock.security.config.SecurityConfig; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Confi...
34.233333
102
0.819864
dd3b9a6f59d7b60d14d0248f70ae02e7975a7fc5
599
package br.odb.moonshot.parameterdefinitions; import br.odb.gameapp.command.ApplicationData; import br.odb.gameapp.command.CommandParameterDefinition; import br.odb.gameapp.command.UserCommandLineAction; /** * Created by monty on 12/03/16. */ public class CommandNameParameterDefinition extends CommandParameterDefin...
29.95
103
0.813022
2bddbe9d6ee2d9ca910dc9b8bf247ac8dc8707a4
1,216
package udc.objects.time.builders; import udc.objects.time.concrete.Agenda; import udc.objects.time.concrete.Available; import java.time.LocalDateTime; public class AvaibilityBuilder implements AgendaBuilder { private int id; private Available available; public AvaibilityBuilder(){ available = n...
23.843137
73
0.652961
c03f99d4d230d948142146685e534a2f249ec8be
3,681
/******************************************************************************* * Copyright (C) Philipp Seelos - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by Philipp Seelos <seelos@outlook.com>, December 2017 ******...
28.984252
169
0.646292
0894a22749804d9d9191cf5749cd9efee9fcb04b
4,011
/* * Copyright (C) 2015 Google Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
34.878261
132
0.690102
41abd660252f49f255657d38a285da0d48437842
606
package ix.ginas.utils.views.cards; import ix.ginas.models.v1.ChemicalSubstance; import ix.ginas.models.v1.Moiety; import play.twirl.api.Html; public class MoietiesCard extends CollectionDetailCard<Moiety>{ ChemicalSubstance cs; public MoietiesCard(ChemicalSubstance cs){ super(cs.moieties, "Moieties", "moietie...
18.363636
68
0.731023
2d099aa7e89558e4b84c41c07e89395dfc178561
451
package net.minecraft.server; import java.util.concurrent.Callable; class CrashReportChunkLocation2 implements Callable { final BlockPosition a; final Chunk b; CrashReportChunkLocation2(Chunk chunk, BlockPosition blockposition) { this.b = chunk; this.a = blockposition; } public ...
19.608696
73
0.665188
87192ebbd03fedd07f31c05d4daec3f0b176e807
11,125
package hr.fer.zemris.java.custom.collections; /** * An implementation of linked list-backed collection of objects denoted as * LinkedListIndexedCollection which extends class Collection.General contract * of this collection is: duplicate elements are allowed (each of those element * will be held in different list...
28.525641
86
0.673169
c58763b1c07c9c63260736bf7fc62bfc627d96ac
2,566
package com.baeldung.tlsversion; import javax.net.ssl.SSLSocket; import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpGet; import org.apache.http.conn.ssl.SSLConnectionSocketFactory; import org.apache.http.impl.client.CloseableHttpCl...
40.09375
108
0.685503
7c9b1e52b9869ba02f470dee004173472932f74a
4,807
package yukecm.config; import java.util.HashMap; import java.util.Map; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; import yukcommon.dic.type.CacheType; import yukcommon.dic.type.DbCursorType; import yukcommon.exception.NotSupportException; im...
40.394958
115
0.702517
1757b26e181e1b1aaf10ff0ab02f7987b8cbe673
1,912
package de.fterhorst.pictoriusvertretungsplan.adapter; import android.view.View; import android.widget.AbsListView; import android.widget.AbsListView.OnScrollListener; public class SyncedScrollListener implements OnScrollListener{ int offset; int oldVisibleItem = -1; int currentHeight; int prevHeight;...
26.191781
79
0.605649
83de8d7d2a2ab73e38581954efe53e1ce226019c
484
package com.duan.blogos.exception.api.blog; import com.duan.blogos.exception.BaseRuntimeException; /** * Created on 2017/12/20. * 博文内容违规。 * <p> * 博文的标题,内容,摘要或关键字包含违规内容。 * * @author DuanJiaNing */ public class BlogContentIllegalException extends BaseRuntimeException { public static final int code = 11; ...
19.36
71
0.700413
984c1a22cbdb6dd182f659c3cf042665469da95d
71
package client.worker; public interface Worker { void doWork(); }
11.833333
25
0.704225
56ff640959957133a835a0a7daeb7be80f7ea9ec
1,423
package io.cognalog; import com.google.common.base.Preconditions; import java.util.Comparator; import java.util.List; /** * A Utility class for producing diffs of {@link List}s. * <p/> * 2015 * * @author Tyrone Hinderson (╯°□°)╯︵ ┻━┻ */ public final class ListDiffUtil { private ListDiffUtil() { } ...
31.622222
96
0.625439
af6b65b26c1eec3d9ab256a6b3bc72c1d709d9db
10,271
package cn.mutils.app.ui; import android.annotation.SuppressLint; import android.content.Context; import android.content.Intent; import android.os.Handler; import android.os.Looper; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.MotionEvent; import android.view.View; import a...
25.613466
118
0.635479
9805494f700f343d2243e5699963aa8334f5aeb2
485
package com.carlisle.incubators.EditText; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import com.carlisle.incubators.R; /** * Created by chengxin on 6/8/16. */ public class EditTextActivity extends AppCompatActivity { @Override pro...
24.25
66
0.762887
306d0986115766e2121982c5e70ff5a80af44df7
1,603
package com.blog.samples.services.endpoints; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.ws.server.endpoint.annotation.Endpoint; import org.springframework.ws.server.endpoint.annotation.PayloadRoot; import org.springframework.ws.server.endpoint.annotation.RequestPayload; i...
34.847826
112
0.820961
971c469c4e6d45faaf5150d7b3f85092ad07e866
8,192
/* MainWindow.java * * LevelEditor Copyright 2016 William Edward Woody, all rights reserved. */ package com.chaosinmotion.leveleditor; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.ByteArrayOutputStream; import java.io.File; import java.io.Prin...
25.362229
92
0.650269
c868850414316ab3f3dda8fe152025132cac27fa
1,445
/******************************************************************************* * Copyright SemanticBits, Northwestern University and Akaza Research * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caaers/LICENSE.txt for details. ******************************************...
32.111111
80
0.621453
c6bfea7a84e2379b625ba81c640a8aa71ddb33f9
803
package com.num; /** * 给定一个非负整数 num,反复将各个位上的数字相加,直到结果为一位数。 * * 示例: * * 输入: 38 * 输出: 2 * 解释: 各位相加的过程为:3 + 8 = 11, 1 + 1 = 2。 由于 2 是一位数,所以返回 2。 * 进阶: * 你可以不使用循环或者递归,且在 O(1) 时间复杂度内解决这个问题吗? * * 来源:力扣(LeetCode) * 链接:https://leetcode-cn.com/problems/add-digits * 著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。 */ public cla...
19.585366
56
0.531756
5b334c6a8452767b5a26618aeb455703e262c889
787
package dev.michaeltross.packofcharcoal.items; import dev.michaeltross.packofcharcoal.PackOfCharcoal; import dev.michaeltross.packofcharcoal.items.item.CharcoalPackItem; import net.minecraft.world.item.CreativeModeTab; import net.minecraft.world.item.Item; import net.minecraftforge.registries.DeferredRegister; import ...
41.421053
101
0.809403
39e69ce4c463ea58133c8f948302b7665a077107
8,287
/* * 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")...
30.579336
131
0.654278
b9fe1a1278d38056975c865cce5c123796869c08
308
package classes; public class Caption implements java.io.Serializable { public String caption; private static final long serialVersionUID = 1L; public Caption(String caption){ this.caption = caption; } public Caption(){} public void changeCaption(String caption){ this.caption = caption; } }
19.25
54
0.746753
656e157907c85e85ab963da9f0ee82d86ffeaca1
110
package lt.compiler.functionalInterfaces; public interface FloatParamReturnUnit { void x(float a); }
18.333333
41
0.754545
25cd69ec99842d960b3886940d86d120b2f87253
17,659
package com.kwetter.domain; import org.junit.Before; import org.junit.Test; import java.util.ArrayList; import java.util.HashSet; import java.util.UUID; import static org.junit.Assert.*; public class UserTest { private User testUserEmpty; private User testUser1; private User testUser2; ...
55.357367
267
0.678804
43de6849e22c112b18c15d40272b9067b74f1ac2
425
package com.thesis.visualizationserverthesis.model.api; import com.thesis.visualizationserverthesis.utils.AggregatedAppAssistants; import com.thesis.visualizationserverthesis.utils.PreventiveActionCounter; import lombok.Data; import java.util.List; @Data public class PreventiveActionSearchResponse { private List...
30.357143
74
0.858824
0cdf6a786f6b11675050b22e22dd717c82fd5810
9,191
/* * Copyright 1997-2020 Optimatika * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish...
31.913194
155
0.631052
69d235801d74c6771e33e28d26733b3e5ea564cf
6,196
package ganymedes01.etfuturum.blocks; import java.util.Random; import ganymedes01.etfuturum.EtFuturum; import ganymedes01.etfuturum.IConfigurable; import ganymedes01.etfuturum.ModBlocks; import ganymedes01.etfuturum.client.sound.ModSounds; import ganymedes01.etfuturum.configuration.ConfigurationHandler; import ganyme...
36.662722
170
0.573273
a9d31e06f51148823cf948692cc2ba37d7e52ae8
1,222
package com.greatorator.ddtc.plants; import com.greatorator.ddtc.creativetab.CreativeTabDDTC; import com.greatorator.ddtc.reference.Reference; import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.SideOnly; import net.minecraft.block.BlockBush; import net.minecraft.block.material.Material; import net.min...
29.804878
139
0.734043
c12c521099c97aaeb8b323b0323b145a60ecbe14
1,462
package com.mvp.empty.data.model; /** * Created by gaopeng on 2016/11/7. * 网络请求 */ public interface AppModel { /** * POST请求(传递实体类或map) * * @param object 对象 * @param url 请求的接口 */ void retrofit_Post(Object object, String url); /** * POST请求(传递实体类或map) * * @param ...
18.275
73
0.542408
ea68e9d4c1d42065040d523af2c0967c311a5a03
1,221
package org.monster.finder; import org.monster.bootstrap.GameManager; import org.monster.finder.baselocation.NextExpansionFinder; import org.monster.finder.chokepoint.BestChokePointToDefenceFinder; import org.monster.finder.position.dynamic.EnemyReadyToAttackPosFinder; import org.monster.finder.position.dynamic.MyRead...
27.75
71
0.720721
301d560ddd81f15759e7d78cf19cce01e5412a3f
493
package org.leo.aws.ddb.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class EntityValidationInitializer { @Value("${org.leo.aws.ddb.entities.basePackage:org.l...
29
61
0.787018
9f3cb174b6bb10239c47d2de9133d7e21f932120
465
package cz.auderis.tools.lang; import java.util.ListResourceBundle; public final class BooleanStyleResource extends ListResourceBundle { private static final String[][] LOCALIZATION = { { BooleanStyle.RESOURCE_KEY_TRUE, "yes" }, { BooleanStyle.RESOURCE_KEY_FALSE, "no" }, { BooleanStyle.RESOURCE_KEY_TRUE_SH...
23.25
68
0.737634
b7f62123eb25ca85ea8f31d31312e05351b78a7a
338
package fine.vmj.store.data; public class PixelFrame extends Frame { private static final long serialVersionUID = 1L; final double[] mat; public String name; public PixelFrame(double[] mat, IFrame.Rect rect, int index , int type) { super(rect,index,type); this.mat = mat; } public double[] getData(){ ...
16.095238
74
0.698225
214de35d0565be91ec44aed2c0b7db7212921cae
750
package awl.frontsolutions.services; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Properties; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.ioc.Resource; import org.apache.tapestry5.services.javascript.StylesheetLink; import awl.frontsolut...
31.25
95
0.821333
6e94cd78090dc1319e0183cf4d15e0cab9c018bd
323
package com.longngohoang.twitter.mobile.ui.base.defaultfragment; import com.longngohoang.twitter.appcore.common.coremvp.MVPView; /** * Created by Long on 7/8/2016. */ public interface DefaultView extends MVPView { void showProcess(); void showContent(); void updateView(); void showError(String s);...
20.1875
64
0.73065
41b73048cadf41dc6affea55126b371ac09a09d3
2,026
package slogo.model.multipleturtlecommand; import java.util.List; import java.lang.reflect.InvocationTargetException; import java.util.ArrayList; import slogo.controller.Controller; import slogo.model.Command; import slogo.model.CommandBlock; import slogo.model.Turtle; import slogo.model.backendexceptions.MathExceptio...
35.54386
150
0.75074
f1386d1bd5e87117914a03e5e2692b7d8ebb64ff
960
package com.xiaoshabao.blog.service; import org.springframework.data.domain.Page; import org.springframework.data.domain.Pageable; import com.xiaoshabao.blog.dto.User; /** * */ public interface FollowService { /** * 关注某用户 * @param userId * @param followId * @return */ long follow(long userId, long foll...
15.483871
58
0.653125
4b3ac40c39c180952336694d003796c41e985b9b
4,552
package org.endeavourhealth.transform.barts.schema; import org.endeavourhealth.transform.barts.BartsCsvToFhirTransformer; import org.endeavourhealth.transform.common.AbstractFixedParser; import org.endeavourhealth.transform.common.CsvCell; import org.endeavourhealth.transform.common.FixedParserField; import org.slf4j....
42.943396
152
0.702109
36679c9fec16f62d238b1b1ac5eaf02069980537
1,301
package cn.laoshini.dk.entity; import java.io.Serializable; import java.util.Date; import lombok.Getter; import lombok.Setter; import lombok.ToString; import cn.laoshini.dk.constant.InnerTableNameConst; import cn.laoshini.dk.dao.TableKey; import cn.laoshini.dk.dao.TableMapping; /** * 游戏角色数据,表对象 * * @author fagar...
15.865854
76
0.578017
08832dc80a27e59b50d65ef571b1474bd9520758
15,316
package com.edualonso.dynamik.fragments; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.net.Uri; import android.os.Bundle; import android.provider.MediaStore; import android.s...
39.474227
139
0.548903
7f2ed7f06f2b05abca1f97a592a8aeec92d373d4
1,425
package sgf.gateway.validation.spring.persistence; import org.springframework.validation.Errors; import org.springframework.validation.Validator; import sgf.gateway.model.metadata.Dataset; import sgf.gateway.model.metadata.activities.project.Award; import sgf.gateway.web.controllers.project.command.NewAwardCommand; i...
30.319149
100
0.721404
6e3ab7059ae95c8da260dc5ff1b06042c856b8c3
63
package java_solution.logic_2; public class CloseFar { }
10.5
30
0.730159
4b909d1fc4cee3a38da5c5efeed17d6f5bc5d4ee
1,854
package com.zc.tenant.config; import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer; import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; import com.baomidou.mybatisplus.extension.plugins.inner.Tena...
38.625
119
0.818231
8dce5fb0c005ddd50d5c3ca19a9927105c02b44c
991
package squeek.spiceoflife.network; import cpw.mods.fml.relauncher.Side; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import squeek.spiceoflife.compat.IByteIO; import squeek.spiceoflife.helpers.FoodHelper; import squeek.spiceoflife.items.ItemFoodContainer; public class PacketT...
29.147059
95
0.735621
59fad0ba20f756b3f291ecaf1e8780dcd5117fe1
13,124
/* * Copyright (c) 2020 SAP SE or an SAP affiliate company. All rights reserved. */ package uk.ptr.cloudinary.context.impl; // <v1-api> import de.hybris.platform.basecommerce.exceptions.BaseSiteActivationException; import de.hybris.platform.basecommerce.model.site.BaseSiteModel; // </v1-api> import de.hybris.platfor...
29.426009
124
0.771183
f1e988cf12c2ffac18bb4e58c226975c875aeac6
2,258
package com.egbert.rconcise.interceptor; import com.egbert.rconcise.internal.http.Request; import com.egbert.rconcise.internal.http.Response; import java.io.IOException; import java.net.HttpURLConnection; import java.util.List; /** * 拦截器链实现类 * Created by Egbert on 3/4/2019. */ public class Intercepto...
33.701493
106
0.636404
b477a2ab1a72384614056be6e7d310df13012baf
1,561
package vowpalWabbit; import org.junit.BeforeClass; import org.junit.Rule; import org.junit.rules.ExpectedException; import org.junit.rules.TemporaryFolder; import vowpalWabbit.responses.ActionProb; import vowpalWabbit.responses.ActionProbs; import vowpalWabbit.responses.ActionScore; import vowpalWabbit.responses.Acti...
27.385965
96
0.69763
d650cbae1253c64209909a55da2bcf85058f2132
56,473
/** * Copyright © 2017 Jeremy Custenborder (jcustenborder@gmail.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 req...
91.528363
270
0.845909
a4affd29c6e35bd29feefad324a8cd148ebb1100
5,991
/* * Copyright (c) OSGi Alliance (2018). 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 ...
22.954023
99
0.72008
87c9ddfa26e0dac8df180321f515da3b0830049c
2,569
package com.sudoplay.mc.kor.spi.world; import com.sudoplay.mc.kor.core.IntMap; import com.sudoplay.mc.kor.spi.registry.provider.KorInitStrategyProvider; import com.sudoplay.mc.kor.spi.registry.strategy.KorInitStrategy; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; import net.minecraft.worl...
26.484536
81
0.676528
41f32e7cc394283295edc2dd81ea267d28052afc
1,280
package us.sosia.video.stream.agent; import java.awt.Dimension; import java.awt.image.BufferedImage; import java.net.InetSocketAddress; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import us.sosia.video.stream.agent.ui.SingleVideoDisplayWindow; import us.sosia.video.stream.handler.StreamFrameListener; p...
29.767442
120
0.776563
ef429242459ac7d708dcb37fbb0cc2fad920db60
6,553
package com.bugsnag.android; import java.io.IOException; import java.util.Date; import android.content.ContentResolver; import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.BatteryM...
35.042781
148
0.624599
1209f75b2a74dbab87edeaedb43a890246eaf469
1,484
/******************************************************************************* * * Copyright (c) {2003-2019} Murex S.A.S. and its affiliates. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distrib...
51.172414
117
0.500674
cb5b2f1d5756f7ff251094f0c8682273c87a40e4
478
package com.example.error.Family; import com.example.model.entity.Family; public class FamilyNotFoundException extends RuntimeException{ public FamilyNotFoundException(Long id) { super("No se ha encontrado la familia con ID: " + id); } public FamilyNotFoundException(String name) { super(...
23.9
68
0.692469
a50681b9d8f1447886afcebb4d3768b69f2f400d
5,273
package br.edu.ifc.concordia.inf.conanimal.controller; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.nio.file.Path; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.inject.Inject; import org.a...
37.397163
131
0.74872
42a877a006c18471dae4edc4bedab86f0b958224
80
package com.fsmflying.study.quickstart2021.io.aio; public class TimeServer { }
16
50
0.8
6d7f9f187649603d5e10250ec5d4f063e40cbb88
332
package uk.co.jamesmcguigan.patterns.structural.decorator; public class ScrollDecorator extends Decorator { public ScrollDecorator(final Widget w) { super(w); } public void draw() { super.draw(); // 7. Delegate to base class and add extra stuff System.out.println(" ScrollDecorator...
25.538462
70
0.668675