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
4c130fbd876e6d6d6e8aa9cc6f08dcfaaf7593df
1,037
package com.kaesar.sword2offer; /** * 标题:打印从 1 到最大的 n 位数 * 题目描述 * 输入数字 n,按顺序打印出从 1 到最大的 n 位十进制数。比如输入 3,则打印出 1、2、3 一直到最大的 3 位数即 999。 * 题目链接: */ public class Jz68 { /** * 由于 n 可能会非常大,因此不能直接用 int 表示数字,而是用 char 数组进行存储。 */ public void print1ToMaxOfNDigits(int n) { if (n <= 0) { return; } ...
21.163265
68
0.579556
45ac25f8394ec07786aba98dd366851e16994b83
12,412
package com.seiferware.imaptool; import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVParser; import org.apache.commons.csv.CSVPrinter; import org.apache.commons.csv.CSVRecord; import org.apache.commons.io.output.ByteArrayOutputStream; import org.slf4j.Logger; import org.slf4j.LoggerFactory; impo...
34.477778
150
0.631888
ace072efd026648a91a2cf9b9dc08fb628f042c3
639
package uk.gov.hmcts.reform.bailcaseapi.domain.entities; import lombok.EqualsAndHashCode; import lombok.ToString; @EqualsAndHashCode @ToString public class PriorApplication { private String applicationId; private String caseDataJson; private PriorApplication() { // noop -- for deserializer }...
21.3
72
0.70579
522fba4530ad738ccf100d4c7bbe7a31a50d3a6a
694
package com.genius.primavera.application; import com.genius.primavera.application.account.AccountGodClass; import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import java.io.IOException; @Slf4j public class AccountGod...
28.916667
65
0.788184
f7841f798218812a6071f10b68909352e51a8fd6
6,159
/* Copyright 2015-2020 Peter-Josef Meisch (pj.meisch@sothawo.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 required by ...
29.610577
119
0.643124
a68afa7f0b7f3e08e030ec26e4d910e53fece9b9
424
package me.jjeda.mall.common; import org.springframework.security.core.annotation.AuthenticationPrincipal; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.PARAMETER) @Retention(Retenti...
28.266667
76
0.839623
8c5f25c99bcc81a4ba0fc2f2efb73b9fd198bb50
512
package multiplayer; import multiplayer.JetrisGameMultiplayer; import multiplayer.PlayerDump; /** * Created by chris on 08.04.16. */ public class Player extends PlayerDump { private JetrisGameMultiplayer game; public Player(String name, JetrisGameMultiplayer game) { super(name); this.game =...
20.48
60
0.689453
e35e27c565d4a5e7be18bb76a3b00ec8f60fd5c0
3,475
package com.danielmichalski.rss.web.controller; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.InjectMocks; import org.mockito.Mock; import org.mockito.MockitoAnnotations; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http...
35.459184
94
0.707626
31948290a9a9606720c3ef9b6cd759b426f712e7
1,506
package ch.heigvd.res.labio.interfaces; import java.io.IOException; /** * * @author Olivier Liechti */ public interface IApplication { /** * This method uses the QuoteClient and invokes it method several times to retrieve * instances of the Quote class. For each quote returned by the client, this class ...
35.857143
85
0.717795
0ecb65d9e53ee3a47c55fa058a96dc6303cd7f69
126
package com.fengwenyi.javalib.net; /** * Http请求工具类 * @author Erwin Feng * @since 2020/7/20 */ public class HttpUtils { }
12.6
34
0.674603
2f92c2d767d6d414c88fc96a578d64908bc440c9
2,569
package com.example.android.popularmovies.data; import android.os.Parcel; import android.os.Parcelable; /** * Created by lsitec207.neto on 20/09/17. */ public class Movie implements Parcelable { private String title; private long movieId; private String overview; private double rating; privat...
21.588235
93
0.611133
1273c1bbec8cb6e0067d9e411c7038dd64cdb8e2
181
package com.stone.templateapp; import org.junit.Test; /** * Created By: sqq * Created Time: 18/7/6 下午3:54. */ public class JavaTest { @Test public void test(){ } }
12.928571
31
0.624309
85f2b139f28f548bcbcc4c276f3fa0e849ad2335
584
package se.citerus.dddsample.interfaces.tracking; import org.apache.commons.lang.builder.ToStringBuilder; import static org.apache.commons.lang.builder.ToStringStyle.MULTI_LINE_STYLE; public final class TrackCommand { /** * The tracking id. */ private String trackingId; public String getTrac...
22.461538
78
0.717466
01bbd9f741f57f53fa6d2e8c406a893f45ec7163
13,034
package android.support.v4.widget; import android.graphics.Rect; import android.os.Bundle; import android.support.v4.app.NotificationCompat.WearableExtender; import android.support.v4.media.TransportMediator; import android.support.v4.view.AccessibilityDelegateCompat; import android.support.v4.view.MotionEventCompat; ...
32.182716
125
0.75188
e93e3c5f9d1227e785280c3dc88cdd2b9a1630bb
1,994
package com.johncorby.virtualredstone; import com.johncorby.coreapi.CoreApiPlugin; import com.johncorby.coreapi.command.BaseCommand; import com.johncorby.coreapi.util.Config; import com.johncorby.virtualredstone.circuit.Circuit; import com.johncorby.virtualredstone.circuit.Input; import com.johncorby.virtualredstone.c...
30.676923
110
0.715145
e138a26c4e156bfee97892362520fd13e40fac61
27,822
/* * =========================================== * Java Pdf Extraction Decoding Access Library * =========================================== * * Project Info: http://www.idrsolutions.com * Help section for developers at http://www.idrsolutions.com/support/ * * (C) Copyright 1997-2015 IDRsolutions and Contribut...
29.660981
170
0.530803
64f4b27442a880fa7e727090d3e6f7995b19090a
763
package com.thinkgem.jeesite.modules.top.service.topapi.exception; public class TradeNotFoundException extends RemoteServiceException { private static final long serialVersionUID = 1L; public TradeNotFoundException(String message, String errorCode, String errorMessage, String subErrorCode, Str...
38.15
120
0.749672
5aa318c01061cb4b9ab8f4331f848c84fdb2e2af
575
package wint.mvc.form.fileupload; import java.util.Map; import wint.mvc.parameters.Parameters; public class UploadFileInfo { private Map<String, UploadFile> uploadFiles; private FileUploadParameters parameters; public UploadFileInfo(Map<String, UploadFile> uploadFiles, FileUploadParameters parame...
20.535714
95
0.735652
ff314b2418c4bba8280d807406a44ea9deb71408
147,827
/** * Scubawhere API Documentation * This is the documentation for scubawhere's RMS API. This API is only to be used by authorized parties with valid auth tokens. [Learn about scubawhere](http://www.scubawhere.com) to become an authorized consumer of our API * * OpenAPI spec version: 1.0.0 * Contact: bryan@scuba...
47.949076
393
0.676013
0c76a8d7cce77ed8a41e966613c5aa842b7769e5
2,882
package ProGAL.geom2d; import java.awt.Color; import ProGAL.geom2d.viewer.J2DScene; import ProGAL.math.Matrix; public class ApolloniusSolver { /** Solves the Apollonius problem of finding a circle tangent to three other circles in the plane. * The method uses approximately 68 heavy operations (multiplication, d...
35.580247
101
0.634282
0d34d97bc3b46ea800119abfcfa539d94db514fe
352
package com.parking.model; /** * * @author Mahesh B Fattepur [fathepur.m@gmail.com] * */ public enum VehicleTypeSlots { SMALL(10), MEDIUM(5), LARGE(5); private int availbleSlots; VehicleTypeSlots(int availbleSlots) { this.availbleSlots = availbleSlots; } public int getAvailbleSlots() { r...
14.666667
51
0.678977
1230057f7463bd8940d4eb0f4653f34bb81af6a9
2,967
/* * 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 up.erp.view.dashboards; import com.github.appreciated.apexcharts.ApexCharts; import com.github.appreciated.apexcharts.ApexChar...
38.532468
82
0.564206
3ae4a971bd2d8df134c09a96215b9420ad35d944
1,106
package gov.cms.bfd.pipeline.rda.grpc.server; import gov.cms.mpsm.rda.v1.ClaimChange; import gov.cms.mpsm.rda.v1.mcs.McsClaim; import java.util.NoSuchElementException; /** * A ClaimSource implementation that generates and returns random McsClaim objects. The random * number seed and number of claims to return are s...
25.72093
94
0.731465
1f9b423e8bbd86dd34c37c375490f699059b845d
361
package com.example.mengmeng.utils; /** * Created by 陆猛 on 2016/9/25. */ public class HttpUtils { public static final String HOST="http://10.40.5.17:8080/MengmengWeb/"; public static final String HOST_PIC="http://10.40.5.17:8080/MengmengWeb/imgs/pet/"; //public static final String HOST_COMMUNICATIE = ...
25.785714
91
0.700831
1d8c38d2a056c4dd34e644f1a2bf3066da4ebff4
10,621
package org.springframework.samples.flatbook.unit.service; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.springframework.samples.flatbook.utils.assertj.Assertions.assertThat; import java.time.LocalDate; import java.util.Arrays; import java.util.Collection; import java.util.Collection...
38.481884
142
0.779117
5f326a8fdb9fed570ebc2920ee4b0f42b0b8081d
2,363
package SettingLogo; import HelpClass.BaseClass; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.PageFactory; import org.testng.annotations.Test; import ru.yandex.qatools.allure.annotations.Step; import ru.yandex.qatools.allure.annotations.Title; im...
32.819444
88
0.629708
86ab7d9e51ca15a283c626473f9da9b403be99f0
6,951
/* Copyright 2016 Achim Nierbeck 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 ...
40.888235
157
0.662638
493d99e8a6ee2c78146c21c71f07a5a774e62d6f
931
package com.coolweather.android.util; import android.util.Log; import com.coolweather.android.R; import java.net.InetAddress; import java.net.UnknownHostException; import okhttp3.OkHttpClient; import okhttp3.Request; /** * @ProjectName: CoolWeather * @Package: com.coolweather.android.util * @ClassName: HttpUtil...
24.5
83
0.679914
c14368e6cb6976fd0dde0a33375d7d6532dbf996
4,836
/** * Appcelerator Titanium Mobile * Copyright (c) 2009-2013 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ package ti.modules.titanium.analytics; //import org.appcelerator.kroll.KrollDate...
30.802548
109
0.736766
f5428ec75cd5b5409d0e6d84a7d6975e4195a310
376
package pt.up.fe.els2021.commands; import pt.up.fe.els2021.Table; import pt.up.fe.els2021.exporters.TableExporter; import java.util.Map; public record TableExport(String source, TableExporter target) implements Command { @Override public void apply(Map<String, Table> programState) throws Exception { ...
23.5
83
0.75266
04b0f1e8bb4bb80b45657881858ef0e3978328f4
3,651
package com.github.eostermueller.perfSandbox; import static org.junit.Assert.*; import java.sql.Connection; import java.sql.SQLException; import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; import javax.sql.DataSource; import javax.xml.parsers.ParserConfigurationExceptio...
33.190909
114
0.739523
ea8ae758fe9bb01fe34f45481d24ea4b49d37f05
503
package de.clayntech.config4j.util; import de.clayntech.config4j.Configuration; public interface Config4JMapper<T> extends Converter<T, Configuration> { T fromConfiguration(Configuration configuration); Configuration toConfiguration(T object); @Override default T convertBackward(Configuration confi...
23.952381
72
0.747515
ed2e2dbbb7b0a6c69c503279baf58dd55f36eac0
589
package ppitransformation.ppi.templates; import ppitransformation.decoding.PPIAnnotation; import ppitransformation.ppi.MeasureType; public class CountPPI extends PPITemplate { public CountPPI(PPIAnnotation annotation) { super(annotation); setType(MeasureType.COUNT); } public String toString() { String e...
23.56
65
0.696095
eb0434c46ba71de5832380e713c59b16c5aa3b30
1,289
package com.song.hospital.common.util; import java.util.List; import com.fasterxml.jackson.databind.JavaType; import com.fasterxml.jackson.databind.ObjectMapper; /** * json工具类 */ public class JsonUtil { /** * 将对象转换为json字符串 * * @param bean 可以是object或者数组 * @return json字符串 */ public static String getJso...
19.530303
90
0.678045
becbe0bb412ff68d62e08af342ef5d32cbef78e5
1,347
import nz.sodium.*; import java.util.Optional; public class calm { public static <A> Stream<A> calm(Stream<A> sA, Lazy<Optional<A>> oInit) { return Stream.filterOptional( sA.<Optional<A>,Optional<A>>collectLazy( oInit, (...
32.071429
70
0.49072
80201586e774245491170bd423faab3c0a115989
2,415
package com.softwareverde.bitcoin.test.fake; import com.softwareverde.bitcoin.block.header.BlockHeader; import com.softwareverde.bitcoin.block.header.difficulty.work.ChainWork; import com.softwareverde.bitcoin.block.validator.difficulty.AsertReferenceBlock; import com.softwareverde.bitcoin.chain.time.MedianBlockTime; ...
35.514706
108
0.736646
6aedab5e9f56820e56bf5a218d9da1f543ba18c7
422
package br.com.zupacademy.mayza.proposta.propostas; public class DetalhesDaPropostaResponse { private Long id; private StatusProposta status; public DetalhesDaPropostaResponse(Proposta proposta) { this.id = proposta.getId(); this.status = proposta.getStatus(); } public Long getId...
20.095238
58
0.661137
22399da63ee57b6ff02dcb61aadb1b5cb4ce2fd7
538
package top.maplefix.enums; /** * @author : Maple * @description : 操作类型 * @date : 2019/9/15 19:23 * @version : v1.0 */ public enum OperationType { /** * 其它 */ OTHER, /** * 新增 */ INSERT, /** * 修改 */ UPDATE, /** * 删除 */ DELETE, /** ...
9.438596
27
0.325279
4e5ab693b919353bf373ab87b7678f48dac3e818
795
package com.xtxb.cmdb.service; import com.xtxb.cmdb.common.tree.ModelClassTree; import java.util.List; /** * 作者: xtxb * <p> * 日期: 2020年07月27日-上午11:24 * <p> * <p> * 管理资源类型组织结构树 */ public interface ModelTreeService { /** * 查询所有的资源类型组织结构树 * @return */ public List<String> getTreeNames(); ...
15.588235
51
0.573585
edf4073612d87ac72ce3a358d4ea3cc57be702ce
906
/** * */ package com.thinkgem.jeesite.modules.wlpt.dao.activity; import com.thinkgem.jeesite.common.persistence.CrudDao; import java.util.List; import com.thinkgem.jeesite.common.persistence.annotation.MyBatisDao; import com.thinkgem.jeesite.modules.wlpt.entity.activity.ActivityWxgift; import com.thinkgem.jeesite.m...
22.097561
81
0.748344
553e57062f50a02ac415f52d9d00b984ebe1d8f1
381
package sch.frog.opentelemetry.util; import java.util.Collection; public class CollectionUtil { public static <T> void addIfNotNull(Collection<T> collection, T val){ if(val != null){ collection.add(val); } } public static <T> boolean isEmpty(Collection<T> collection){ ...
21.166667
73
0.64042
616f65666292009b69e3909e720e617a35bd1eae
8,821
/* * Copyright 2021 EMBL - European Bioinformatics Institute * 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 ag...
42.820388
100
0.75445
b3653da22bf59f8b2023a99d12888745e6da10b8
1,287
package wusc.edu.pay.facade.report.service.impl; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import wusc.edu.pay.common.page.PageBean; import wusc.edu.pay.common.page.PageParam; import wusc.edu....
27.382979
81
0.760684
72faec42e8b41a3dcd3e1ea07d467cb643feae4c
2,531
package org.arbizu.traffic; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.nio.file.FileSystems; import java.nio.file.Path; import java.text.SimpleDateFormat; import java.util.Date; import java.util.LinkedList; import java.util.Map; import com.google.common.collect.Maps; impor...
26.642105
116
0.701699
d810d4bc576593f5d9061043f1b62e038670a976
1,860
package module670packageJava0; import java.lang.Integer; public class Foo0 { Integer int0; Integer int1; Integer int2; Integer int3; Integer int4; Integer int5; Integer int6; public void foo0() { new module164packageJava0.Foo0().foo6(); new module915packageJava0.Foo0().foo3(); new m...
23.846154
48
0.673656
8201812f0a3966c1dcd8c34d17bdad79bb81ecd0
8,354
/* * Copyright 2017 ~ 2025 the original author or authors. <wanglsir@gmail.com, 983708408@qq.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/license...
20.781095
95
0.554944
5d3cecdd7b8a0417e3d2e795f604a05a6d25490c
1,274
import java.awt.Color; import java.awt.Font; import java.awt.Image; import javax.swing.ImageIcon; import javax.swing.JFrame; import javax.swing.JLabel; public class Main { public static void main(String[] args) { JFrame obj = new JFrame(); Gameplay gameplay = new Gameplay(); // ImageIcon icon = new // Im...
26
81
0.682889
10737f6ec55027e804f8f9b015fe9c9941e0a0c4
5,449
/** * Copyright (C) 2009 hprange <hprange@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 required by applicable ...
33.22561
198
0.779042
1ede1d215da063d739c67fb8451b99de4c3776b1
213
/** Contains the formula for the first ordinary differential equation */ package com.prob4.product; public class ODE1{ public static double f(double t, double x, double y){ return ((0.00025*x*y)-(.7*x)); } }
26.625
69
0.704225
962e9daca0baf4538ad93f8c6b20c1c683b2ece1
597
package depotlifecycle.repositories; import depotlifecycle.domain.Release; import depotlifecycle.domain.Release; import edu.umd.cs.findbugs.annotations.NonNull; import io.micronaut.data.annotation.Repository; import io.micronaut.data.repository.CrudRepository; import javax.validation.constraints.NotNull; import java....
31.421053
82
0.829146
e137edf9ff84128e8be61ba95fbc7ca33d6c655e
1,648
/** * ADOBE SYSTEMS INCORPORATED * Copyright 2009-2013 Adobe Systems Incorporated * All Rights Reserved. * * NOTICE: Adobe permits you to use, modify, and distribute * this file in accordance with the terms of the MIT license, * a copy of which can be found in the LICENSE.txt file or at * http://opensource.org/...
21.128205
71
0.615291
8bbab164f37e40a4c810f1a5c4efaefffdde1aa4
2,176
package com.jcute.network.reactor.accept.support; import java.nio.channels.ServerSocketChannel; import java.nio.channels.SocketChannel; import com.jcute.network.reactor.accept.NioAcceptorEventLoop; import com.jcute.network.reactor.accept.NioAcceptorEventLoopChain; import com.jcute.network.reactor.accept.NioAcc...
34.539683
196
0.803309
468245be5302493ce346ec00365e779151246b2f
3,308
package de.feffi.jnumber.mobile.imei; import de.feffi.jnumber.ValidationException; import org.junit.Assert; import org.junit.Test; import java.net.URISyntaxException; /** * @author feffi <feffi@feffi.org> */ public class ImeiTest { private static final String INVALID_IMEI_CHARS = "10A010101010104"; private st...
28.033898
86
0.688029
9d85ef17179c3a8781e768c5fd03dcb5aa1bcdf5
924
package com.mutool.commonweb.domain.settings.service; import com.mutool.commonweb.domain.settings.entity.SysConfig; import com.mutool.commonweb.domain.settings.entity.SysConfigGroup; import java.util.List; /** * 描述:<br> * 作者:les<br> * 日期:2021/7/22 09:47<br> */ public interface ISysConfigService { List<SysCo...
23.692308
66
0.769481
0063bb2a486d1e9c607e5d68afcb141411db62b3
1,033
package com.emmaguy.cleanstatusbar.config; import android.content.res.AssetManager; import android.content.res.Resources; import android.graphics.drawable.Drawable; import com.emmaguy.cleanstatusbar.R; public class KitKatStatusBarConfig extends DefaultStatusBarConfig implements StatusBarConfig { private final bo...
28.694444
104
0.738625
85d00d68fc200ac914eace4c2602d1af41160819
756
package cn.abellee.sysadmin.organization.service; import cn.abellee.sysadmin.organization.entity.po.Position; import cn.abellee.sysadmin.organization.entity.param.PositionQueryParam; import java.util.List; public interface PositionService { /** * 获取职位 * * @param id * @return */ Posit...
16.434783
72
0.579365
6c53b1dd18e457d4ff05812c48a6194bd2a4d9e4
2,074
/* * This file is part of choco-solver, http://choco-solver.org/ * * Copyright (c) 2019, IMT Atlantique. All rights reserved. * * Licensed under the BSD 4-clause license. * * See LICENSE file in the project root for full license information. */ package org.chocosolver.solver.variables.view; import gnu.trove.li...
25.925
80
0.66731
62e712208ca805a09d22156534ec1f8379f52a4a
1,327
/* * (C) Copyright IBM Corp. 2016,2020 * * SPDX-License-Identifier: Apache-2.0 */ package com.ibm.whc.deid.shared.pojo.masking; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import org.junit.Test; import com.ibm.whc.deid.shar...
32.365854
87
0.709872
12ceec99ed5e7068315fd71588b3b7fcaa7cedc0
1,577
package android.support.v4.media.session; import android.os.Parcel; import android.os.Parcelable; import android.os.Parcelable.Creator; public class ParcelableVolumeInfo implements Parcelable { public static final Parcelable.Creator<ParcelableVolumeInfo> CREATOR = new Parcelable.Creator() { public Parcelabl...
26.283333
104
0.738744
f1c69f783f8d22c9c43e94dd087215197d524bad
357
package org.ligoj.app.plugin.prov.catalog; import com.sun.istack.NotNull; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @NoArgsConstructor @AllArgsConstructor public class CatalogEditionVo { @NotNull private Integer preferredLocation...
16.227273
42
0.815126
46974ed0a71a0560fc84fb668c51936f60938da0
429
package com.jiangdg.usbcamera; /**USB设备信息 * Created by jianddongguo on 2017/11/12. */ public class DeviceInfo { private int VID; private int PID; public DeviceInfo() { } public int getVID() { return VID; } public void setVID(int VID) { this.VID = VID; } public...
14.3
41
0.55711
daf2601a8f40f895bd2079428776f05d356b027d
614
package guerbai.f1_50; public class MyPow { public double myPow(double x, int n) { if (n == 0) { return 1; } if (n == 1) { return x; } if (n == -2147483648) { if (x == 1) { return 1; } if (x == -1) ...
19.1875
42
0.285016
5c61f86f56e85133897e2920be91c4f14f0f0844
827
package com.schedule.demo.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; import o...
25.84375
62
0.801693
83fc95c8ddcddad52ee3cd6539c47e474ca136d9
629
package com.paxport.gcp.config.auth; import com.paxport.gcp.config.global.GlobalProperty; import org.springframework.stereotype.Component; /** * Grab Secret from Datastore */ @Component public class AuthSecret { private String secret; public AuthSecret(){} public AuthSecret(String secret){ t...
21.689655
103
0.659777
7609f17a8aa248fd03adaa4382c79b6aad5e7f99
2,285
/* * Copyright 2017 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...
36.269841
151
0.741794
b60dbb5c8cfc53cac2d25408e144ed039c9fa015
1,661
package com.gtxc.practice.hackerrank; /* Created by gt at 11:54 AM on Tuesday, February 15, 2022. Project: practice, Package: com.gtxc.practice.hackerrank. */ import java.util.*; public class DequeUnique { public static void main(String[] args) { Scanner in = new Scanner(System.in); Dequ...
28.637931
61
0.483444
cb6af033ea63b759ca62f9eb0dd55a9b870c0071
276
package com.relations.relations.one2one.book; import java.util.Collection; public interface BookServiceInterface { Book createBook(Book book); Book updateBook(Book book); Boolean deleteBook(Long id); Book getBook(Long id); Collection<Book> allBooks(); }
23
45
0.73913
1d1aa679eff200ad2078274320f1c4012444fa83
310
package com.intkr.saas.dao.cms.article; import com.intkr.saas.domain.dbo.article.ArticleCategoryRelatedDO; import com.intkr.saas.dao.BaseDAO; /** * * @author Beiden * @date 2017-03-18 13:24:49 * @version 1.0 */ public interface ArticleCategoryRelatedDAO extends BaseDAO<ArticleCategoryRelatedDO> { }
19.375
86
0.758065
14660679b4848889ee1114a50d15699a03b59e50
1,600
package dk.muj.derius.cmd; import java.util.Collection; import java.util.List; import com.massivecraft.massivecore.MassiveException; import com.massivecraft.massivecore.cmd.ArgSetting; import com.massivecraft.massivecore.cmd.req.ReqHasPerm; import com.massivecraft.massivecore.pager.PagerSimple; import com.massivecra...
24.615385
101
0.640625
1b4261bea3e67a072655622e1888b51c5130e1e1
11,331
package crazypants.enderio.rail; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.ListIterator; import java.util.Set; import java.util.UUID; import net.minecraft.block.Block; import net.minecraft.entity.Entity; impo...
32.748555
130
0.67355
fce99f30c6ba0ab862590297537980fc1c9e80f9
42,685
package org.nuclearfog.twidda.backend.engine; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import org.nuclearfog.twidda.backend.holder.ListHolder; import org.nuclearfog.twidda.backend.ho...
34.312701
140
0.590114
ca7d34cbf671377021dbbe293b553e2e8362f41e
2,304
package com.ray.controller; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax....
37.16129
131
0.652344
2da0c220cf1c09de716a80a7b623dab50724c091
10,602
package edu.utexas.tacc.tapis.files.lib.clients; import edu.utexas.tacc.tapis.files.lib.Utils; import edu.utexas.tacc.tapis.files.lib.models.FileInfo; import edu.utexas.tacc.tapis.systems.client.gen.model.AuthnEnum; import edu.utexas.tacc.tapis.systems.client.gen.model.Credential; import edu.utexas.tacc.tapis.systems....
39.707865
93
0.63837
64bfe8c888f81ba4f468809843e447088528745d
734
package net.stackoverflow.blog.service; import net.stackoverflow.blog.common.Page; import net.stackoverflow.blog.pojo.po.VisitPO; import java.util.Date; import java.util.List; import java.util.Map; /** * 访问量服务类接口 * * @author 凉衫薄 */ public interface VisitService { List<VisitPO> selectByPage(Page page); ...
19.315789
67
0.731608
b1133bbb7e1fac57c848c29fcf5c1fef43895cc2
10,684
/* * 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 numbertheoryapp; import java.util.Scanner; /** * * @author Gian */ public class NumberTheoryApp { publ...
41.571984
132
0.476507
b3cbabf52551b539ae69684aaf7ee7ba4187497e
2,667
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
34.636364
82
0.621297
d2cf68770e8ee033310c8b76d1362302eda04e1a
10,510
/* * Copyright 2021 The University of Manchester * * 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 ...
46.711111
140
0.756613
6deac207047b621f88d7a9d9a0280a8517dc61b7
6,788
package frontend.pascal.parsers; import java.util.EnumSet; import java.util.HashMap; import frontend.Token; import frontend.TokenType; import frontend.pascal.PascalErrorCode; import frontend.pascal.PascalParserTD; import frontend.pascal.PascalTokenType; import intermediate.ICodeFactory; import intermediate.ICodeKey; ...
28.165975
178
0.726724
6c3b6750bdc572b23cf955babbbf05edd4454c84
5,560
package lambdasinaction.chap6; import java.util.*; import static java.util.stream.Collectors.*; import static lambdasinaction.chap6.Dish.dishTags; import static lambdasinaction.chap6.Dish.menu; public class Grouping { enum CaloricLevel { DIET, NORMAL, FAT }; /** * 结果: * Dishes grouped by type: {F...
50.09009
203
0.617986
99fc6a58aad2a759148d75fa91958ba52240e1ad
12,039
/* * Copyright (c) 2008-2016 Haulmont. * * 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 agr...
39.732673
127
0.652463
bfe3a552c292cadb5c02cc5b74e652445d57d1a5
1,816
/* * Copyright 2002-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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
30.266667
78
0.789648
6d16c1a4c47ea24860aba78f6a362e24d78b2e4f
584
package com.huitai.bpm; import com.huitai.bpm.annotaion.FlwAnnotaion; import com.huitai.bpm.manage.entity.FlwBaseEntity; /** * description: Demo <br> * date: 2020/4/28 11:32 <br> * author: PLF <br> * version: 1.0 <br> */ @FlwAnnotaion("Demo演示") public class Demo extends FlwBaseEntity { static ...
20.137931
65
0.575342
d9d2a66a7abef4c04be633669c3d373be5cae8db
907
package com.pgsainia.future; import com.pgsainia.msg.Response; import java.util.concurrent.Future; /** * @author nifujia * @description * @date 2021/8/17 */ public interface WriteFuture<T> extends Future<T> { /** * 获取异常 * * @return */ Throwable cause(); /** * 设置异常 * ...
12.774648
51
0.484013
6a3054c9e27b4859639404f96cdfcd9e3bdd7bad
1,704
package ca.uhn.fhir.jpa.provider.r4; import ca.uhn.fhir.jpa.searchparam.nickname.NicknameInterceptor; import ca.uhn.fhir.util.BundleUtil; import org.hl7.fhir.r4.model.Bundle; import org.hl7.fhir.r4.model.Patient; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter....
29.37931
100
0.784038
a915b33a5fd92ba37bbac1d41880de2618ca2e49
6,657
package com.microink.clandroidutil; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.ImageView; import com.airbnb.lottie.LottieAnimationView; import com.airbnb.lottie.LottieComposition; import com.airbnb.lot...
35.222222
99
0.605528
8a97ef7f30f82c3a3a1ffc11b412d0d390f76a98
4,134
package com.ciandt.techgallery.persistence.model; import com.google.api.server.spi.config.ApiTransformer; import com.googlecode.objectify.Ref; import com.googlecode.objectify.annotation.Entity; import com.googlecode.objectify.annotation.Id; import com.googlecode.objectify.annotation.Index; import com.googlecode.objec...
24.317647
97
0.702709
a68941a82a87684bc8633092531e7901918751e6
4,498
package com.knoban.gml.server; import com.knoban.gml.utils.Tools; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.concurrent.locks.ReadWriteLock; import java.util.concurrent.locks.ReentrantR...
35.140625
131
0.630725
90786cd0220d2dc8a023a72f4b897be309709d40
1,520
package io.diamondnetwork.explorer.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Profile; import springfox.documentation.builders.*; import springfox.documentation.schema.ModelRef; import springfox....
29.230769
88
0.678947
afcae5ebf8217d834dfa831ce979e4fb14ff6260
1,301
package correos.tiendaonline.software.Negocio; import correos.tiendaonline.software.Datos.Categoria; import javax.swing.table.DefaultTableModel; /** * * @author Mauricio */ public class CategoriaNegocio { private Categoria m_Categoria; public CategoriaNegocio() { this.m_Cat...
28.911111
80
0.656418
1da6b02cd2dec11f60f28eab99c5cbe868bf1775
2,527
package com.udacity.jdnd.course3.critter.service; import com.udacity.jdnd.course3.critter.repository.CustomerRepository; import com.udacity.jdnd.course3.critter.repository.EmployeeRepository; import com.udacity.jdnd.course3.critter.dto.EmployeeRequestDTO; import com.udacity.jdnd.course3.critter.entity.Customer; import...
36.1
171
0.759398
7de7079ba5ef0d686296c64fcb246a3a1dd08bc7
96
package com.xinjock.nbteam.enums; public enum AuthorityEnum { manager,registrant,visitor }
16
33
0.78125
1c991d48e8c09458118fe89f9881f8a95a1d330b
7,073
package com.amazonaws.services.kinesis; import java.net.NetworkInterface; import java.util.UUID; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.amazonaws.auth.AWSCredentialsProvider; import com.amazonaws.auth.DefaultAWSCredentialsProviderChain; import com.amazonaws.re...
36.647668
136
0.638626
0cb46969fc638d03566b4b8eb84ab34426f85fd1
606
package org.stop_lang.templates.models; import java.util.ArrayList; import java.util.Collection; public class StopTemplateNodeParameterCollection extends StateTemplateNodeParameterValue { private Collection<StateTemplateNodeParameterValue> values = new ArrayList<StateTemplateNodeParameterValue>(); public Sto...
28.857143
114
0.773927
9542b71d702825bf25f579fb28fa3a734528c753
367
package com.xiazhenyu.corn.coreTec.synchro.anylock; /** * Date: 2022/1/3 * <p> * Description: * * @author xiazhenyu */ public class ThreadB extends Thread { private Service service; public ThreadB(Service service) { this.service = service; } @Override public void run() { s...
15.291667
51
0.621253
6078330e9d006f9fc2c90e56dca11d73b204b101
606
package problem2; /** * Represents a bus. The Bus is the subclass of the Vehicle. */ public class Bus extends Vehicle { /** * Constructor for the Bus class. * @param iD The ID of the bus * @param averageSpeed The average speed of the bus * @param maxSpeed The max speed of the bus */ public Bus(St...
22.444444
61
0.660066
7c260c3c67cf8491c29d1a375d90976cf8b5b280
939
package kaymattern.notus.views.dialogs; import javafx.fxml.FXML; import javafx.scene.control.Alert; import javafx.scene.control.TextField; import kaymattern.notus.validation.ValidationType; import kaymattern.notus.validation.Validator; public class AddSubject extends AbstractDialogController { @FXML private Text...
26.083333
112
0.682641
b263ec4c6d99ee65f846a46f507af846169038d6
3,688
package io.ona.rdt.widget; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.view.inputmethod.InputMethodManager; import com.google.android.gms.vision.barcode.Barcode; import com.ibm.fhir.model.parser.exception.FHIRParserException; import com.rengwuxian.materia...
40.527473
179
0.735358
02fa6ce594ec603dba13bd9b4e38379fd79f6c1c
129
package com.deenterprised.vertx; import io.vertx.core.AbstractVerticle; public class TestVerticle extends AbstractVerticle { }
18.428571
52
0.829457
368215842d494fc1bd51a892d29002a649939493
2,624
package ru.geekbrains.dungeon.helpers; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.assets.loaders.FileHandleResolver; import com.badlogic.gdx.assets.loaders.resolvers.InternalFileHandleResolver; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com...
36.957746
124
0.715701
1a35b5b50bfc7104f2a522746842fb9526485ff4
4,005
package org.firstinspires.ftc.teamcode; import com.qualcomm.robotcore.eventloop.opmode.Autonomous; import com.qualcomm.robotcore.eventloop.opmode.Disabled; @Autonomous(name="RedLeft", group="Linear Opmode") //@Disabled public class RedLeft extends AutonomousController { @Override public void runOpMode(){ ...
22.627119
66
0.414232