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
558b6f390c445b3df7ab7d9a4112e6082e96212a
8,902
package com.rarchives.ripme.ripper.rippers; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Matcher; im...
36.937759
184
0.589755
840363fd24c3f2026a14501ce75c26930cb05492
4,835
/* * (C) Copyright 2018 Nuxeo (http://nuxeo.com/) and others. * * 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 b...
37.192308
118
0.693278
9299e4a8cea75b6094c868c4986af075752f9c41
3,157
package agent; import java.util.ArrayList; /** The top-level class for an agent simulation. This can be used for either single or multi-agent environments. This is intended for simulating static environments in which the agents take turns acting. An environment in which the agent could decide when ...
33.585106
77
0.653468
2f05c10d462c68d0f7eabef02b0e3a87b0bbc430
601
package com.christophecvb.elitedangerous.events.other; import com.christophecvb.elitedangerous.events.Event; import com.christophecvb.elitedangerous.models.inventory.Transfer; import java.util.List; public class CargoTransferEvent extends Event { public List<Transfer> transfers; public interface Listener ex...
30.05
82
0.760399
6ded0f139304c1decc01e834ea16ff251b8d5c24
194
package me.ele.jarch.athena.sql.seqs; import java.util.Map; @FunctionalInterface public interface SeqsCalc { String calc(long globalID, Map<String, String> params) throws SeqsException; }
24.25
80
0.778351
8b0e07ac700eb38b7c06e603796b33441e9501ee
5,083
/* * Copyright (C) 2015 Square, 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...
39.710938
197
0.689553
9865233e4f2899b5c17fb6fb6b083a68166cf74c
1,084
package app; /*******************************TestNG Testing Framework Tool ************************************ ******************************* Author: *********************************** *******************************John-Michael Leemans******************************** */ import java.lang.reflect.Constr...
24.088889
98
0.638376
c6918b8d5e00e0187bcf166311005a6ef311d456
2,520
package io.agora.vlive.proxy; import io.agora.vlive.proxy.struts.response.AppVersionResponse; import io.agora.vlive.proxy.struts.response.AudienceListResponse; import io.agora.vlive.proxy.struts.response.CreateRoomResponse; import io.agora.vlive.proxy.struts.response.CreateUserResponse; import io.agora.vlive.proxy.str...
40
75
0.837302
ad22f87270a41643441e81c40c5859dc8722b87c
211
package xyz.esion.personal.base.service; import xyz.esion.personal.base.entity.ConfigBlog; /** * @author qiao shengda * @since 2021/2/26 */ public interface ConfigBlogService { ConfigBlog getAll(); }
15.071429
49
0.725118
909b2f300d4acef6475c78f5a3101b2c0506853b
8,779
package org.tms.tds.excel; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.OutputStream; import java.util.stream.Collectors; import org.apache.poi.hssf.usermodel.HSSFFormulaEvaluator; import org.apache.poi.ss.SpreadsheetVersion; imp...
29.558923
171
0.617382
cddae932eee88e08d394793f768004adc281df8e
3,402
package koopa.cobol.projects; import java.io.File; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.apache.log4j.Logger; import koopa.cobol.CobolProject; import koopa.cobol.util.CopybookPaths; import koopa.core.util.FilenameFilters; import koo...
29.076923
76
0.716931
0aa8e96fb675dbc8253e227c230edf3621e87b34
3,000
/* * Copyright (c) [2020] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * You may obtain a copy of Mulan PSL v2 at: * * http://license.coscl.org.cn/MulanPSL2 * * TH...
32.608696
140
0.62
74864d5564c01761faa85d300ab334b4c4dd7672
659
package me.crupette.cauldronoverhaul.block.entity; import me.crupette.cauldronoverhaul.CauldronOverhaul; import me.crupette.cauldronoverhaul.block.COBlocks; import net.minecraft.block.CauldronBlock; import net.minecraft.block.entity.BlockEntityType; import net.minecraft.util.registry.Registry; public class COBlockEnt...
38.764706
211
0.822458
a17c72fa0f5edd4162375ff8f65e6495dd5e6633
451
public class Sln{ public int numSubarrayProductLessThanK(int[] nums, int k) { int start=0,end=1; int prod=nums[0]; int count=0; while(start<=end && end<=nums.length){ if(prod<k){ count += end-start; if(end < nums.length) prod*=nums[end++]; ...
25.055556
63
0.439024
4f596ce0a76500ef38a3518a09540b73f951acf6
13,402
/** * Copyright (c) 1995 - 2019 Cycorp, Inc. All rights reserved. */ package com.cyc.cycjava.cycl.inference.harness; import static com.cyc.tool.subl.jrtl.nativeCode.subLisp.Equality.eq; import static com.cyc.tool.subl.jrtl.nativeCode.type.core.SubLObjectFactory.makeBoolean; import static com.cyc.tool.subl.jrtl.nat...
57.273504
381
0.772422
2154a9a9bee2ca8aed466270c8614e15f6308ede
426
package com.ciphertext.medicalinformationbackend.iservice; import com.ciphertext.medicalinformationbackend.exception.RecordNotFoundException; import com.ciphertext.medicalinformationbackend.model.DoctorDegree; import java.util.List; /** * @author Sadman */ public interface DoctorDegreeService { List<DoctorDegr...
28.4
82
0.830986
dbce347a8168af0ef793e1cc32b39082af2550d5
683
package com.cf.portal.service.impl; import org.springframework.stereotype.Service; import com.cf.pojo.User; import com.cf.portal.service.UserService; import com.cf.utils.HttpClientUtil; import com.cf.utils.Result; @Service public class UserServiceImpl implements UserService { @Override public User ge...
26.269231
83
0.695461
7f97c7b6cc021ea264767a8b906f3bd2e81a3c1f
3,237
/* * Copyright 2020 fuzy(winhkey) (https://github.com/winhkey/bricks-root) * * 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 * ...
33.71875
131
0.708681
b1490680b7e1afe06b0c3393244f218b109e1123
1,625
/* * Copyright (C) 2018-2020. Huawei Technologies Co., Ltd. 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 * * U...
27.083333
97
0.695385
b03bdfef420f246913f7e7c3428ca9980b0dbd0c
869
package co.uk.niadel.napi.client; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import co.uk.niadel.napi.util.MCData; import net.minecraft.client.gui.GuiIngame; import co.uk.niadel.napi.annotations.Internal; public final class GUIHUDRegistry { public static final List<ISpecialHUDRend...
21.195122
78
0.730725
11da3bb2edc1be7b840b0c4c61949284fba095fd
854
package com.attensa.rubberband.query; import lombok.Value; import java.util.List; import java.util.Map; @Value public class FilteredQuery implements QueryType { Filtered filtered; public FilteredQuery(QueryType rawFilter) { this.filtered = new Filtered(null, rawFilter); } public FilteredQue...
24.4
82
0.683841
169fb3eb588c0da07c1dca46340f15bbf4497020
7,017
package edu.umbc.cs.ebiquity.mithril.command.policymanager.util; import java.util.ArrayList; import android.content.Context; import android.content.pm.ApplicationInfo; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.content.pm.ProviderInfo; import android.content.pm.Ser...
34.737624
127
0.729657
a13589841df1045ec9851a5d5835be391e25529e
3,090
package com.tibco.bw.maven.plugin.test.setuplocal; import java.io.BufferedReader; import java.io.InputStream; import java.io.InputStreamReader; import java.util.Date; import java.util.Timer; import java.util.TimerTask; import java.util.concurrent.CountDownLatch; import com.tibco.bw.maven.plugin.test.helpers.BWTestCon...
26.637931
166
0.619094
99c49bf1662ea8d47ede55badf5ef82d20b0c42a
2,487
/* * TabTitle.java * Copyright 2010 Connor Petty <cpmeister@users.sourceforge.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at yo...
26.178947
74
0.730599
7496b85c46c51d5921fdeb46df14e9c086d7b452
1,359
package io.github.educontessi.api.dataconverter; import io.github.educontessi.api.dto.EstadoV1Dto; import io.github.educontessi.domain.helpers.util.ExpandirUtil; import io.github.educontessi.domain.model.Estado; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Component; @Component pu...
31.604651
83
0.774834
e3af042f9ddf286cc98ff486215d5cb8ac121f37
350
package org.test.message.server; import org.test.message.server.config.IConfig; import org.test.message.service.processor.ProtocolProcessor; import org.test.message.service.security.SslContextCreator; public interface ServerAcceptor { void init(ProtocolProcessor processor, IConfig props, SslContextCreator sslCtxC...
29.166667
91
0.814286
3d229c10767e42e422865eceb40e48526f5ac394
2,357
package com.ecspringcloud.easycloud.common.utils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.util.Enumeration; import java.util.Properties; import java.util.ResourceBundle; /** * 获取配置信息的工具类 */ public class PropertyUtil { private static final Log logger = LogFa...
29.4625
73
0.599915
8482d4e928fd1ff057efa204c5a774a0fab88213
3,570
package i2p.bote.android.util; import java.io.File; import java.util.List; import i2p.bote.android.R; import android.app.Activity; import android.content.Intent; import android.content.pm.ResolveInfo; import android.graphics.Bitmap; import android.net.Uri; import android.os.Bundle; import android.support.v4.app.Fragm...
32.752294
101
0.596359
4a06ccfb8c90af4cd75213b86804b7357ad04fd3
1,192
package dmme.kuvid.domain.GameObjects.Atoms; import dmme.kuvid.domain.GameObjects.Position; import dmme.kuvid.lib.types.AtomType; import dmme.kuvid.lib.types.ObjectType; public class EtaShield extends ShieldDecorator{ //Atom decoratedAtom ; public EtaShield(Atom atom){ this.decoratedAtom = atom; ...
31.368421
122
0.692114
b242ae007f11a1eb695b21b61fe52a56e579f2f2
237
package be.sel2.api.exceptions.conflict; public class ContactExistsException extends ConflictException { public ContactExistsException() { super("A contact already exists with this email inside this organisation"); } }
26.333333
83
0.759494
0a283d87191a1893648377041d83d851eba83196
281
package org.exercise; import org.junit.Test; import static org.junit.jupiter.api.Assertions.assertTrue; public class ListAdderTest { @Test public void testAreElementsAddingToNumber() { assertTrue(ListAdder.areElementsAddingToNumber(new int[]{10, 15, 3, 7}, 17)); } }
20.071429
81
0.75089
2a3f474b86eec625f166abef752918d5e7dd6a7c
2,324
package org.docksidestage.sqlite; import java.io.File; import java.io.IOException; import org.dbflute.util.DfReflectionUtil; import org.dbflute.util.DfResourceUtil; /** * The bean for resolving a path to a database of H2 Database. <br /> * This is NOT an important class as example. So you don't need to r...
36.3125
94
0.414372
fc528c35d0b0b57a9f7635c40142e1c60f46c17e
1,462
/* * Copyright 2012-2018 Hippo B.V. (http://www.onehippo.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...
31.782609
119
0.701778
1e19825b25cf01e6ea8580197093dbf9aae27201
899
package com.cognizant.stockservice.bean; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.validation.constraints.NotBlank; import javax.v...
19.543478
52
0.699666
3562bdae24f7a0767cc62262bf5dd302a30bd128
2,520
/* * 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.645161
153
0.738095
ebc971486c71c9e3ff70ab3a402175a87fae19a9
1,897
package org.netcrusher.datagram.thottling; import org.junit.Assert; import org.netcrusher.core.reactor.NioReactor; import org.netcrusher.core.throttle.rate.ByteRateThrottler; import org.netcrusher.datagram.DatagramCrusher; import org.netcrusher.datagram.DatagramCrusherBuilder; import org.netcrusher.datagram.bulk.Datag...
40.361702
114
0.743806
74b75fdd12896abf9f54afc29e0d95340a512541
9,615
/** * Copyright (C) 2011 * Michael Mosmann <michael@mosmann.de> * Martin Jöhren <m.joehren@googlemail.com> * * with contributions from * konstantin-ba@github,Archimedes Trajano (trajano@github) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compli...
35.479705
124
0.621633
c7ea5973fc1454f3eacdb45ab1d8903ca6f46970
1,179
package org.mydotey.quantile.validation; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Objects; import org.mydotey.quantile.QuantileEstimator; /** * @author koqizhao * * Apr 1, 2018 */ public class ValidationDecorator<T> implements QuantileEstimator<T> { private Qua...
24.5625
89
0.659881
2931814a434bfba441efd8f3c6a713480f172bce
1,108
package com.ruoyi.system.mapper; import java.util.List; import com.ruoyi.system.domain.Commodity; /** * CC码Mapper接口 * * @author ruoyi * @date 2021-09-02 */ public interface CommodityMapper { /** * 查询CC码 * * @param commodityNo CC码主键 * @return CC码 */ public Commodity selectCommo...
17.870968
68
0.59296
1d15785f0d8fd08da5093d9584081f1e1ebd8a3b
3,590
package io.github.zero88.qwe.iot.service.bacnet.service.discovery; import java.util.Optional; import java.util.UUID; import io.github.zero88.qwe.component.SharedDataLocalProxy; import io.github.zero88.qwe.dto.msg.RequestData; import io.github.zero88.qwe.exceptions.AlreadyExistException; import io.github.zero88.qwe.ex...
48.513514
117
0.720891
a7fe049b665771bc64d133c3baf7e472a1dc63e3
2,296
/* Copyright [2020] [https://www.xiaonuo.vip] 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...
37.032258
103
0.754355
39877a0f21378a2ad151824e53db945cff503a3c
641
package nl.bertriksikken.ttn.dto; import java.util.Locale; import com.fasterxml.jackson.annotation.JsonProperty; public final class TtnDownlinkMessage { @JsonProperty("port") int port; @JsonProperty("confirmed") boolean confirmed; @JsonProperty("payload_raw") byte[] rawPayload; public...
21.366667
85
0.669267
4ed04e12626e2a57b43ac985a9f0433ac9df1a6b
1,544
package com.dudes.wsdude.test.controllers; import com.dudes.wsdude.controller.DudeExceptionController; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoco...
35.090909
89
0.783679
0d5429d5e23839755e9d2f36000f7125ded7460a
5,381
package com.newhighs.rltictactoe; import org.apache.log4j.Logger; import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.factory.Nd4j; import java.util.ArrayList; import java.util.List; /** * Created by mark on 25-10-16. */ public class Board implements State { transient public static final Logger _...
18.117845
107
0.447872
7dfa5e9cb49ede182e5298fa3c50a0fbd0fe0b3c
305
package com.secsoft.cms.common.model; import com.secsoft.cms.common.model.base.BaseRolePermission; /** * RolePermission * * @author luhf */ public class RolePermission extends BaseRolePermission<RolePermission> { /** * 序列化版本号 */ private static final long serialVersionUID = 1L; }
17.941176
72
0.711475
a99dfe391e82e0cf307bf49839a521dcfc207196
125
package com.scs.rogueframework.ecs.components; public interface IRangedWeapon { int getRange(); int getShotValue(); }
12.5
46
0.752
89f09bb304547402c26490c018c6347f72dae91b
816
package com.atlassian.plugin.connect.api.web.redirect; import com.atlassian.plugin.connect.modules.util.ModuleKeyUtils; import static com.google.common.base.Preconditions.checkNotNull; public class RedirectServletPath { private static final String SERVLET_PATH = "/plugins/servlet/ac-redirect/"; public stati...
38.857143
125
0.748775
6d1dd17bd2992096dbd8327f3db4d7645d71b616
831
package au.com.codeka.carrot.expr.values; import au.com.codeka.carrot.CarrotException; import au.com.codeka.carrot.Configuration; import au.com.codeka.carrot.Scope; import au.com.codeka.carrot.expr.Term; /** * A {@link Term} decorator which evaluates the value of the decorated term to a bound variable of the current...
22.459459
117
0.713598
b0d1d5c5f27a8dd4871f3d7c98c99b5e28293523
1,790
package com.bitso; import java.math.BigDecimal; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONObject; import com.bitso.exchange.BookOrder; import com.bitso.exchange.OrderBook; import com.bitso.helpers.Helpers; public class BitsoOrderBook extends OrderBook { public BitsoOrderBook(JS...
32.545455
76
0.570391
3491ee791dad73d160a91bf24dd7daffd55e3e27
3,919
package evaluation; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.PrintWriter; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.janelia.saalfeld...
22.016854
79
0.619546
86aeed2d9c9a247b933885f3c442fc5a37933bfa
2,764
package io.fabric8.launcher.base.http; import io.fabric8.launcher.base.identity.TokenIdentity; import org.junit.Test; import static io.fabric8.launcher.base.http.Authorizations.addBearerPrefix; import static io.fabric8.launcher.base.http.Authorizations.createAuthorization; import static io.fabric8.launcher.base.http....
34.987342
82
0.705861
67628d0794f8d0e7ff239f79f3d47dd09ec74e45
3,248
/******************************************************************************* * Copyright 2019 metaphore * * 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/...
35.304348
134
0.627463
f2ed0e079d3869ae020e71d1f00fe91c23dc1f2f
8,318
package mariculture.factory.tile; import java.util.ArrayList; import java.util.HashMap; import mariculture.api.core.ISpecialSorting; import mariculture.core.gui.feature.Feature; import mariculture.core.gui.feature.FeatureEject.EjectSetting; import mariculture.core.helpers.OreDicHelper; import mariculture.core.helpers...
30.028881
120
0.585597
5aa07f9f846cfed8a505909ec21e267b69d6999f
2,070
/** * Copyright 2011-2012 @WalmartLabs, a division of Wal-Mart Stores, 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 * * Unl...
29.15493
76
0.735749
612b5a04b468170a87b08a3b4264677abfaa9641
272
package dev.anhcraft.jvmkit.builders; /** * This class represents a builder implementation. * @param <T> the data type of the result */ public interface Builder<T> { /** * Starts to build and returns the result. * @return result */ T build(); }
19.428571
50
0.639706
fce2448d49764cede499bd818cb28edaf59b0459
8,570
/* * Copyright 2018 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
33.607843
100
0.751575
557fa918bf3bf03ce9010be0b93bab8eb991aa34
750
package de.seine_eloquenz.annotation.plugin; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Represents the required elements needed to register a Bukkit pl...
24.193548
74
0.717333
164df72695f4edd8c39688ae9ae7580173a473d0
915
package ru.otus.l041.gclog.data; import static java.lang.String.format; public class GCLogData { private final String gcName; private final long count; private final long spentTime; public GCLogData(String gcName, long totalCount, long spentTime) { this.gcName = gcName; this.count = t...
24.72973
98
0.589071
6ff8fa521cbed69046011cbb6c258714cd971421
1,540
/* * blackduck-common * * Copyright (c) 2021 Synopsys, Inc. * * Use subject to the terms and conditions of the Synopsys End User Software License and Maintenance Agreement. All rights reserved worldwide. */ package com.synopsys.integration.blackduck.http.client; import java.util.Arrays; import java.util.Optional...
37.560976
142
0.683766
36bef9035fabd48f993e1c584bcfb4383fe76efa
1,654
package ua.com.sipsoft.service.dto.user; import java.io.Serializable; import java.util.HashSet; import java.util.Set; import javax.validation.constraints.Email; import javax.validation.constraints.NotEmpty; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import lombok.EqualsAndHashCode; import lombok....
22.972222
111
0.732769
5661ab86fe2625d100431e42031d622dd42a62cb
1,988
/******************************************************************************** * The contents of this file are subject to the GNU General Public License * * (GPL) Version 2 or later (the "License"); you may not use this file except * * in compliance with the License. You may obtain a copy of the License at...
44.177778
92
0.523642
9dff068c1ce23b84256e38e6a5dca28fd5605a5f
6,538
package com.github.t1.kubee.control; import com.github.t1.kubee.entity.Deployment; import com.github.t1.kubee.tools.http.YamlHttpClient.BadGatewayException; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; import javax.ws.rs.NotFoundException; import java.net.ConnectExcepti...
43.586667
118
0.707709
b9ffb6f73242065ec992c4934029bbbb897e60f1
1,328
/** * Copyright 2015 Stephen Cummins * * 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 ...
21.770492
75
0.637801
1c5affb8d8feb49e1b108a70306636639859b4c0
17,053
/* 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...
43.063131
158
0.591626
bc77bf7759221476aa083c1ad7eb54cef9b9b37e
1,367
package me.velz.blacksmith.utils; import lombok.Getter; public enum MessageUtil { PREFIX("§f[§eBlacksmith§f] "), BLACKSMITH_REPAIRITEM("§aReparieren"), BLACKSMITH_REPAIRITEMLORE_PRICE("§fPreis: §e%price Münzen"), BLACKSMITH_CANCELITEM("§cAbbrechen"), BLACKSMITH_INVENTORYNAME("§8§lSchmied"), ...
35.051282
142
0.659108
564516acb27d4154554f827e97a8c4336f0f69e0
718
package com.google.android.gms.internal.ads; import java.io.IOException; public final class zzbfh extends IOException { public zzbfh(String str) { super(str); } static zzbfh zzagq() { return new zzbfh("While parsing a protocol message, the input ended unexpectedly in the middle of a field...
32.636364
231
0.706128
120f5b32536d2b727d7a9b81e6be2641ab4c85c8
4,885
// 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.net.impl; import androidx.annotation.IntDef; import org.chromium.net.ExperimentalUrlRequest; import org.chromium.net.UploadDataProvi...
37.868217
99
0.671648
82ddaeb0f208432ad16522fb294e0f6c483ac6da
6,640
/* * Copyright 2020 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...
44.266667
142
0.764006
3ef575756f079d1df825b732d9100cd8a923792a
1,063
package com.otta.raceTest.timedelay.builder; import java.time.Duration; import java.time.LocalTime; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com.otta.raceTest.timedelay.model.EndRaceDelay; import com.otta.raceTest.upload.model.FileData; /*...
32.212121
108
0.802446
f51cd5d23c0174060120a73de586dc9d09ff7b20
1,599
package com.mycompany.app.model; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; public class CashflowJson { private long cashflowId; private String type; private long delta; private long balance; private long balanceVersion; priv...
21.32
90
0.649156
75a2837eaced236bec825cff83660c60ec992fde
8,338
/** * 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.280193
118
0.693092
1615d7f1c9f629481c167764367e42d470a00055
3,113
package helvidios.cp.ch1.adhoc.reallifeeasy; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class _362_SecondsRemaining { public static void main(String... args){ String data = "100\r\n" + "10\r\n" + "20\r\n" + "20\r\n" + "0\r\n" + "10\r\n" + "0\r\...
24.904
91
0.542242
60ecf7ff353eba100316d05066479ab15bec769b
29,535
package com.RunningApp068; import android.app.Activity; import android.content.BroadcastReceiver; import android.content.ComponentName; import android.content.Context; import android.content.DialogInterface; import android.content.Intent; import android.content.IntentFilter; import android.content.ServiceConnection; i...
33.600683
128
0.581175
ef6b1e09a3357b2b4658c4d45e7db6e239a14dd1
3,273
package br.com.mkacunha.warmerscup.warmerscupserver.domain.team; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import java.util.Objects; import java.util.UUID; import java.util.function.Consumer; @Entity public class Team implements Consumer<TeamDTO> { @Id pr...
20.71519
66
0.592117
8f69cb362db84140cd7b4a6c426ae7b644933be0
1,753
package me.jonathing.minecraft.foragecraft.common.handler.data; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.mojang.datafixers.util.Pair; import me.jonathing.minecraft.foragecraft.common.handler.ForagingEventHandler; import me.jonathing.minecraft.foragecraft.data.objects.ForagingRe...
36.520833
144
0.767256
2afb03b47efba4269f526773b4548c55aff6c39a
95
package io.github.bijeshos.javaexamples.enums; public enum Fruit { APPLE, ORANGE, MANGO }
15.833333
46
0.747368
081e439ca6e70dd0b7f4572d450a82ffd120e948
5,091
/* * IzPack - Copyright 2001-2010 Julien Ponge, All Rights Reserved. * * http://izpack.org/ * http://izpack.codehaus.org/ * * Copyright 2009 Laurent Bovet, Alex Mathey * Copyright 2010, 2012 René Krell * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in co...
26.936508
102
0.624042
920cc48a81f3234bceb9646a291c8e1b05aefb35
380
package com.github.alexvishneuski.vkbestclient.interactor; import com.github.alexvishneuski.vkbestclient.interactor.model.MessageInDialogs; import java.util.List; public interface IMessageInHistoryInteractor { int getMessagesInHistoryTotalCount(int pContactUserId); List<MessageInDialogs> getMessagesInHisto...
27.142857
101
0.836842
660fac89ca3cc3cd0c41980d4f8390c8a1268233
1,814
/* Copyright 2017 Alfa Financial 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 l...
23.868421
76
0.662624
2380293d66f75dd57f2cdcab19817ac766b4a1d5
55,391
/** * "First, solve the problem. Then, write the code. -John Johnson" * "Or use Vangav M" * www.vangav.com * */ /** * MIT License * * Copyright (c) 2016 Vangav * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
31.031373
87
0.616201
1e0f202a5b901406606ac4e26624061e587789da
1,507
package org.dangxueqin.jfnote.note.controller; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.ModelAndView; import org.dangx...
28.433962
90
0.749171
9cc68fd9f5d578520d09ed86829a0859a187db93
2,754
package org.synyx.urlaubsverwaltung.restapi.absence; import org.synyx.urlaubsverwaltung.core.application.domain.Application; import org.synyx.urlaubsverwaltung.core.application.domain.VacationType; import org.synyx.urlaubsverwaltung.core.sicknote.SickNote; import org.synyx.urlaubsverwaltung.core.sicknote.SickNoteType;...
22.57377
105
0.683733
f49ceeacd878bc4bc48fa1b0b3933d77b1cb319e
3,713
package mondeytransfer.validator; import io.vertx.core.http.HttpServerResponse; import io.vertx.core.json.Json; import io.vertx.ext.web.RoutingContext; import mondeytransfer.dto.TransactionDto; import mondeytransfer.dto.UserDto; import java.math.BigDecimal; import static java.util.Objects.isNull; import static monde...
31.466102
127
0.642068
8b49b32d1e75094e3eb864bd25080dfddebcef0c
415
public class StdDev { int n = 0; double sum = 0; double sum2 = 0; public double sd(double x) { n++; sum += x; sum2 += x*x; return Math.sqrt(sum2/n - sum*sum/n/n); } public static void main(String[] args) { double[] testData = {2,4,4,4,5,5,7,9}; StdDev sd = new StdDev(); ...
18.043478
46
0.506024
21b35c722ec4072444febbc456fa3d7514ae51c2
165
package com.mzw.pattern.bridge; /** * @author Jonathan Meng * @date 06/05/2019 */ public interface DrawApi { void draw(int radius, int x, int y); }
16.5
41
0.624242
502fe40dafdaf6713621f923d88c2de99d08cf33
39,976
/* * This file was automatically generated by EvoSuite * Fri Aug 24 14:06:29 GMT 2018 */ package org.jcvi.jillion.core; import org.junit.Test; import static org.junit.Assert.*; import static org.evosuite.shaded.org.mockito.Mockito.*; import static org.evosuite.runtime.EvoAssertions.*; import java.util.Iterator; im...
34.581315
176
0.661722
c9c2e24628d585b8cc1e4a9199351e693e343b93
673
package JDK8.completableFuture; import java.util.concurrent.CompletableFuture; /**流式调用: * 1. * Created by chenyang on 2017/7/21. */ public class CompletableFutureStream { public static Integer calc(Integer para){ try { Thread.sleep(2000); }catch (InterruptedException ex){ } ...
25.884615
78
0.59584
6de89a072dee4e718b4b1bde4b3ab30cf17da5b8
7,215
/* * Copyright 2019 dmfs GmbH * * 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...
29.210526
133
0.590575
d13fbc468ab3ff21e471dac8a03a628fdc9c3cfb
992
package net.minestom.server.network.packet.server.play; import net.minestom.server.network.packet.server.ServerPacket; import net.minestom.server.network.packet.server.ServerPacketIdentifier; import net.minestom.server.utils.binary.BinaryReader; import net.minestom.server.utils.binary.BinaryWriter; import org.jetbrain...
26.810811
72
0.729839
6b1b8a5ca57faebb0a36d526b13f735884f79327
6,170
package com.qrcode.r.sdk; import android.graphics.*; import com.google.zxing.qrcode.encoder.ByteMatrix; import com.google.zxing.qrcode.encoder.QRCode; /** * Created by michael on 13-12-19. */ public class PixelQREffect extends QREffectInterface { @Override public Bitmap makeEffectQRCode(String content, QRC...
37.168675
113
0.530956
e09bd97dd3cd2539cd8dad329feecc13f375bed4
2,364
package com.example.chat_app.fragments.ui.search; import com.example.chat_app.ContainerMethods; import java.util.ArrayList; import java.util.List; public class SearchDataHolder { private String name = ""; private List<String> username = new ArrayList<>(); private List<String> status = new ArrayList<>();...
23.405941
65
0.651438
373a39644f7e12a43526cedf9259803aadcc4034
1,349
// tag::copyright[] /******************************************************************************* * Copyright (c) 2017, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies t...
35.5
86
0.684211
1034da1715ad9a9c2c25897079d2c3f23a07f2a7
16,242
package com.ospn.osnsdk; import org.bouncycastle.jce.provider.BouncyCastleProvider; import javax.crypto.Cipher; import javax.crypto.spec.IvParameterSpec; import javax.crypto.spec.SecretKeySpec; import java.security.*; import java.security.interfaces.ECPrivateKey; import java.security.interfaces.ECPublicKey; import ja...
43.897297
166
0.608669
6c0b2b1d8bf9d5449ef6fec429b09d363d7fceb3
2,102
package magicbees.bees; import com.google.common.base.Preconditions; import com.google.common.collect.Lists; import forestry.api.apiculture.hives.HiveManager; import forestry.api.apiculture.hives.IHiveGen; import magicbees.world.HiveGenNether; import magicbees.world.HiveGenOblivion; import magicbees.world.HiveGenUnder...
42.04
191
0.773073
45bdf6abc44cdeec81d26100f399943ede2d4776
5,065
/* * generated by Xtext 2.25.0 */ package ca.uottawa.csmlab.symboleo.scoping; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.stream.Collectors; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EReference; import org.eclips...
42.923729
132
0.702468
8aa41841faaad6f0aca72b8ab4a905c272be12e9
96
package pattern.factory.traditional.service; public interface Logger { void writeLog(); }
13.714286
44
0.75
40e952693940fb4eae250ce9b0bd6aee138a36e0
4,941
package org.zstack.ldap; import org.apache.commons.lang.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.ldap.filter.AndFilter; import org.springframework.ldap.filter.EqualsFilter; import org.zstack.core.cloudbus.CloudBus; import org.zstack.core.db.DatabaseFacade; ...
36.065693
139
0.686905
1e86e86677afe743a9d11ffc5041bf6de9b4c7c0
8,433
/* * * This file is part of the iText (R) project. Copyright (c) 1998-2020 iText Group NV * Authors: Balder Van Camp, Emiel Ackermann, et al. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License version 3 * as published by the ...
39.041667
136
0.64046
17e6abbc58ba903186b529c88e2c15b8e896b8df
2,993
package com.ts.util.HTTP; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.client.methods.HttpPost; import org.apache.http.entity.StringEntity; import org.apache.http.util.Enti...
31.840426
79
0.633144
8be29ab528220fe65508a584558d76cb8da728a4
291
package br.com.hhc.sample.fullstackspringhibernate.database.data.dao; import br.com.hhc.sample.fullstackspringhibernate.database.data.domain.Classes; import com.googlecode.genericdao.dao.hibernate.GenericDAO; public interface ClassesDAO extends GenericDAO<Classes, Integer> { }
29.1
80
0.810997