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
b041e23f3d1b00170d5155dbfb53073204a14e0c
1,385
import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class FancyBarcodes { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = Integer.parseInt(scan.nextLine()); String barcodeRegex = "(@#+)(?<barcod...
36.447368
81
0.5213
28bf4a370cbe0aa2ddd312ef7152c318c8c1acd6
1,509
package com.brentonbostick.capsloc; import com.brentonbostick.capsloc.math.Point; import com.brentonbostick.capsloc.ui.InputEvent; import com.brentonbostick.capsloc.ui.paint.RenderingContext; public abstract class Tool { public void qKey() { } public void wKey() { } public void aKey() { } publ...
10.626761
60
0.590457
7a75aebfbd9eefbcca1776feb5cbb2885f68bb23
4,413
package io.github.mike10004.containment.lifecycle; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.function.Function; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static...
34.476563
108
0.609336
a45057cfe5dbdc3d42de5d9caf7212bad9bba57e
5,831
package org.apache.ofbiz.shipment.shipment; import lombok.experimental.FieldNameConstants; import java.io.Serializable; import lombok.Getter; import lombok.Setter; import java.math.BigDecimal; import java.sql.Timestamp; import org.apache.ofbiz.entity.GenericValue; import java.util.List; import java.util.ArrayList; /*...
21.757463
74
0.73315
14171ff40028e549cabf37584efb75681055d407
922
/** * Copyright (C) 2014 - present McLeod Moores Software Limited. All rights reserved. */ package com.mcleodmoores.integration.adapter; import net.finmath.time.daycount.DayCountConvention_UNKNOWN; /** * An adapter for {@link net.finmath.time.daycount.DayCountConvention_UNKNOWN} that allows use of the named insta...
30.733333
116
0.745119
e5450579dbebae36a58d0f240a56866529654046
2,348
/* * Copyright (c) 2013-2014, Arjuna Technologies Limited, Newcastle-upon-Tyne, England. All rights reserved. */ package com.arjuna.databroker.tests.control.xmlconfig; import java.util.Collection; import java.util.Collections; import java.util.HashSet; import java.util.Map; import java.util.Set; import java.util.Ti...
24.206186
107
0.647359
6d9141991bc4aa1d322df962223f4652ee992271
115
package com.hlbk.game.world.monsters; public interface Monster { String getName(); int getExperience(); }
16.428571
37
0.713043
1a3394a4166e96100153b974f9ed287c42458d15
3,310
/** * 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.864198
119
0.714199
f0d0a0943c7de6d6b9175cdffdc5c72f5cc851f4
4,036
package com.fuel.consumption; import com.fuel.consumption.api.request.FuelReportPostRequest; import com.fuel.consumption.api.dto.ExpenseReportDto; import com.fuel.consumption.model.entity.FuelConsumption; import com.fuel.consumption.model.repository.FuelConsumptionRepository; import com.fuel.consumption.util.BigDecima...
43.397849
265
0.786918
75444012bb4d4930a6c87da8084d63b97437279c
14,650
// // ======================================================================== // Copyright (c) 1995-2021 Mort Bay Consulting Pty Ltd and others. // // This program and the accompanying materials are made available under the // terms of the Eclipse Public License v. 2.0 which is available at // https://www.eclipse.org/...
41.036415
144
0.616382
b2687a574a720d0a1728e0ee9c78d7ddece7fb13
1,316
package com.zhourui.leetcode; import org.junit.Test; import static org.junit.Assert.*; import static java.lang.Math.*; // 对于每个坐标,都计算出其左侧和右侧的最高点, // 注意到这道题,每个柱之间没有空间,水就积在柱子之上,所以高度相减即为本x处能存的水 // 从idx=1处开始,因为0处肯定不能存水 // 2nd loop, public class Lc0042_trapwater { class Solution { public int trap(int[] height)...
27.416667
80
0.474924
2d6595437a79ee9ee42d601334ba071bbed91acf
2,087
package main.domain.participant.reading; import java.util.Collection; import main.domain.participant.Participant; import main.domain.participant.ParticipantRepository; public class ReadParticipantsUseCase { private final ParticipantRepository repository; private final Collection<ParticipantSummary> response;...
45.369565
111
0.720172
2ae42adcd73ef99b6b81ce1d5369e70592a9d525
553
package uk.ac.derby.Tanq.Navigation3; /** Abstract definition of an A* node. */ interface AStarNode { /** Node-to-node cost. */ public abstract void setG(float newG); /** Node-to-destination cost. */ public abstract void setH(float newH); /** Barrier cost. */ public abstract void setT(float newT);...
22.12
50
0.694394
d90a01ab127a2f556ac1ab6e25e651c4e4bbe93f
4,314
/** * Copyright 2018 * <p> * 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 * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or agreed to in ...
28.76
101
0.751043
079de51fa9606f564bd7608837e0fe0b2b3a9f44
7,914
package fall2018.csc2017.GameCenter.GameCenter.lobby; import java.io.Serializable; import java.util.HashMap; import java.util.Map; import java.util.Set; import fall2018.csc2017.GameCenter.GameCenter.blocks.GridManager; import fall2018.csc2017.GameCenter.GameCenter.slidingtiles.BoardManager; /** * Stores a user acco...
31.656
104
0.611195
f152a91af711f2234c6739c15232914c2438b8dc
1,242
package andioopp.common.time; import java.util.Objects; /** * Represents a moment in time emitted by a {@link Clock}. */ public class Time { private final float time, deltaTime; public Time(float time, float deltaTime) { this.time = time; this.deltaTime = deltaTime; } /** * R...
23
105
0.566023
2be4549e3212dcfbe96f89606110ce148a19cae0
21,311
/** * 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...
36.42906
130
0.647741
5e6a1f70be36cbe5af564141aca657509be056db
450
package com.hamonize.restApi.hamonikros.service.vo; import java.sql.Date; import lombok.Getter; import lombok.Setter; import lombok.ToString; @Getter @Setter @ToString public class RestHamonikrOsVO { private Integer seq; private String name; private String gubun; private String version; private String status...
15.517241
51
0.78
49410758230ad829b4ee1fc26101dd8f8a99c54b
2,299
/******************************************************************************* * Copyright by Dr. Bianca Hoffmann, Ruman Gerst, Dr. Zoltán Cseresnyés and Prof. Dr. Marc Thilo Figge * * Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge * https://www.leibniz-hki.de/en/applied-systems-bi...
33.808824
115
0.581122
61b718537e31633ae247d62dcf0ac029239b1629
2,805
/*-------------------------------------------------------------------------+ | | | Copyright 2005-2011 The ConQAT Project | | | | Licensed u...
36.428571
93
0.562567
28b0629a7282a72009ab0a282f5a9f535e2b2428
994
package com.data; import com.data.common.AwesomeUtils; import com.data.service.ZtreeService; import jdk.management.resource.internal.inst.SocketOutputStreamRMHooks; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.conte...
34.275862
258
0.717304
9946cf159edf6a30916ca661762d0a4a9f53d76e
668
package org.rlcommunity.rlviz.app.frames; import com.apple.eawt.ApplicationAdapter; import com.apple.eawt.ApplicationEvent; import com.apple.eawt.Application; public class MacOSAboutHandler extends Application { public MacOSAboutHandler() { addApplicationListener(new AboutBoxHandler()); } class ...
25.692308
57
0.667665
4e030bda8c4236a7dea17f21052be13971376e0b
3,543
package cnic.pip.impl; import java.io.Serializable; import com.google.common.base.Objects; /** * * @author kaichao * * Parameters for PIP operation * envelope of the area */ public abstract class EnvelopeExt implements Serializable{ private static final long serialVersionUID = -3032526397343688842L; pr...
24.776224
84
0.611629
a73256abbd4d982a485f88471e0bf05fc5be2379
524
package com.google.android.gms.internal.ads; import android.os.Bundle; import com.google.android.gms.ads.internal.zzk; /* renamed from: com.google.android.gms.internal.ads.dj */ final /* synthetic */ class C9384dj implements zzbal { /* renamed from: a */ private final zzcvs f22183a; C9384dj(zzcvs zzcvs)...
24.952381
83
0.671756
585beb95fed608e9fe295031406609a5df6cf975
63
package com.cl.blogv2.entity.query; public class BanQuery { }
12.6
35
0.761905
e358269eeaa7c8ef40f891dcec9f3031cbc75b68
2,702
package zmq; import java.nio.channels.SelectableChannel; // Simple base class for objects that live in I/O threads. // It makes communication with the poller object easier and // makes defining unneeded event handlers unnecessary. public class IOObject implements IPollEvents { private Poller poller; priva...
21.109375
70
0.622502
2bbf7d19f2de36b524abdd14d4cf4d2abec080b1
6,941
/******************************************************************************* * Copyright (c) 1998, 2012 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. ...
34.705
143
0.736061
10ab74f106d2bd5d8f24da7895e470db06bb906e
446
package fr.redstonneur1256.redutilities.io; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; public class IOUtils { public static void copy(InputStream input, OutputStream output, int bufferSize) throws IOException { byte[] buf = new byte[bufferSize]; int count...
24.777778
104
0.661435
148384e458bea94c17c2e3ec36ffbda9b450d6e1
5,018
/* * 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 ...
36.362319
174
0.790355
7370d31409095c518c68c7c16b90173c9ff0ea72
1,183
package com.app.base.activity; import android.view.ViewStub; import androidx.databinding.DataBindingUtil; import androidx.databinding.ViewDataBinding; import com.app.base.R; import com.app.base.view.TopBarType; import static com.app.base.view.TopBarType.TitleBar; /** * @param <DB> ViewDataBinding * @Description ...
31.131579
98
0.71344
0a4c62a5663c23e62de4413023aa1a9b3381f0b7
859
package com.sample.model; import java.io.Serializable; import javax.persistence.*; import java.util.List; /** * The persistent class for the UserAccountType database table. * */ @Entity @Table(name="UserAccountType") @NamedQuery(name="UserAccountType.findAll", query="SELECT u FROM UserAccountType u") public clas...
19.088889
84
0.745052
0374fe7710b5dad1ef97f58b8496411b595bafaf
2,443
package cmps252.HW4_2.UnitTesting; import static org.junit.jupiter.api.Assertions.*; import java.io.FileNotFoundException; import java.util.List; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import cmps252.HW4_2....
25.447917
76
0.734752
0d5a6bd8a5a1383e83665ba22f78270862f8a70a
2,368
package com.huaweicloud.sdk.vpcep.v1.model; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import java.util.Objects; /** RoutetableInfoErrorDetial */ public class RoutetableInfoErrorDetial { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonProperty(...
26.311111
106
0.624155
9109e51eede820999ffe061e58ef4921cd92d170
2,634
package com.example.fourpdareader; import java.io.ByteArrayOutputStream; import java.io.PrintWriter; import java.text.SimpleDateFormat; import java.util.Date; /** * This class is used through the application because: * 1) it outputs additional information like time and thread name; * 2) all logging in the applicat...
27.726316
95
0.637813
bd3599044e4cf6a43371202f331818732b52d3b8
7,289
/* * 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 ...
39.61413
117
0.65249
86c47dfd4d039bd5a834facc46880f9fd1512e56
2,635
/*********************************************************************************************************************** * Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
29.277778
120
0.665275
c9080d2b1e66a097aa261eb6df77828773165aaa
6,513
package moze_intel.projecte.gameObjs.entity; import java.util.Comparator; import java.util.List; import javax.annotation.Nonnull; import moze_intel.projecte.gameObjs.registries.PEEntityTypes; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityType; import net.minecraft.entity.LivingEntity; import ne...
29.604545
161
0.690312
f1d20cc5e97b2ec3970a98e92d0c5d84767e8b01
1,170
package io.github.kavahub.learnjava; import static org.junit.jupiter.api.Assertions.assertThrows; import java.util.Optional; import java.util.function.Supplier; import java.util.stream.Stream; import org.junit.jupiter.api.Test; /** * * {@link Supplier} 包装 {@link Stream} * * @author PinWei Wan * @since 1.0.0 ...
30.789474
86
0.677778
ee97c23e38a4fa573f28022348f3b0bad244de9d
3,803
/* * Copyright (C) 2006 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 app...
28.810606
117
0.643439
fb684fd93a61bf3a83820be533e98aab9b0a3800
9,838
package org.kohsuke.graphviz; import java.awt.*; /** * Type safe representation of graph attributes. * * <p> * See http://www.graphviz.org/doc/info/attrs.html * for more documentation and what each attribute means. * * @author Kohsuke Kawaguchi */ public abstract class Attribute<V> { public...
43.724444
136
0.680118
baf25d48d29819a5a1f991c4f501417d36f74e24
10,108
/* Copyright 2015 Ant Kutschera Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agree...
44.139738
306
0.697269
788a181c0de3986902140e2e06e8f0aed75aa32b
4,582
/* Copyright (C) GridGain Systems. 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 by applicable law or...
28.459627
100
0.625709
d113de71d5e853370637a749e4c2c1f52e5b6803
2,230
package queuesAndWorkers; import java.io.IOException; import java.util.Date; import java.util.logging.Level; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.appengine.api.datast...
36.557377
132
0.735874
c1117e348ddabbbcb12f9eb1d623de777f84b1cc
2,627
package com.xpl.multidownloader; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.text.TextUtils; import android.util.Log; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import com.lidroid.xutils.HttpUtils; ...
35.5
107
0.584697
3d4735e40863c481a584806049bbf076e8fe07f9
762
package io.minimum.minecraft.alien.network.util; import io.netty.util.concurrent.FastThreadLocalThread; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; import static com.google.common.base.Preconditions.checkNotNull; public class AlienNettyThreadFactory implements Thread...
30.48
80
0.769029
8e47248c23a30066e2a4581e857dfd5f1b3f79a7
581
package LoginScreen; import java.sql.*; import javax.swing.*; public class MySqlConnect { Connection conn=null; public static Connection ConnectDB(){ try{ Class.forName("com.mysql.jdbc.Driver"); Connection conn=DriverManager.getConnection("jdbc:mysql://localhost:3306/db...
32.277778
120
0.616179
47a99b239243f74318671b486c990b2d5691a821
475
package org.rockyang.blockj.client.rpc; import org.rockyang.blockj.base.model.Message; import org.rockyang.blockj.base.model.Wallet; import java.math.BigDecimal; import java.util.List; /** * @author yangjian */ public interface BlockjService { String newWallet(); List<Wallet> walletList(); BigDecimal getBala...
18.269231
76
0.762105
1a4d9a44ee41a6f9f14c2a5325ddf1f4d82b046e
634
package com.iterlife.zeus.leetcode.dp; /** * @desc:https://leetcode-cn.com/problems/contiguous-sequence-lcci/ * @author: lujie * @version: V1.0.0 * @datetime: 2021/8/21 23:53 **/ public class ContiguousSequenceLcci { } class ContiguousSequenceLcciSolution { public int maxSubArray(int[] nums) { int...
21.862069
67
0.525237
7d60a0dfde6a329ba1201c4dec07a60e65178448
4,169
package com.faithfulmc.hardcorefactions.faction.argument; import com.faithfulmc.hardcorefactions.ConfigurationService; import com.faithfulmc.hardcorefactions.HCF; import com.faithfulmc.hardcorefactions.faction.claim.Claim; import com.faithfulmc.hardcorefactions.faction.type.ClaimableFaction; import com.faithfulmc.hard...
46.322222
222
0.646198
b82e5f10f13eab949f6c0f5f83b619bc42c3c6fb
719
package se.bluebrim.desktop.jdbc.connect; import java.util.List; import org.junit.Test; import se.bluebrim.crud.client.AbstractPanel; import se.bluebrim.crud.client.AbstractPanelTest; /** * * @author GStack * */ public class JdbcConnectionPanelTest extends AbstractPanelTest { public static voi...
22.46875
74
0.730181
4b013db196958fec7f7b6edd04464dcb08a4a64a
2,104
package mad.location.manager.lib.Filters; /** * Created by lezh1k on 2/13/18. */ public class GeoHash { private static long interleave(long x, long y) { x = (x | (x << 16)) & 0x0000ffff0000ffffL; x = (x | (x << 8)) & 0x00ff00ff00ff00ffL; x = (x | (x << 4)) & 0x0f0f0f0f0f0f0f0fL; ...
36.275862
122
0.534696
fa793f3d414f1ca8958f21e2bdb589c2bd517f03
1,872
/** * 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...
36.705882
136
0.73344
4bb7ff3bc5a1c0110ba18f461c930fa9c64dcae9
96
package uk.gov.companieshouse.api.accounts.enumeration; public enum Parent { SMALL_FULL }
13.714286
55
0.770833
1fdbd3ed64b7f0bd955594d3a114df62fe5f3cb1
1,991
package org.rcsb.cif.schema.mm; import org.rcsb.cif.model.*; import org.rcsb.cif.schema.*; import javax.annotation.Generated; /** * Data items in the CHEM_COMP_PLANE_ATOM category enumerate the * atoms in a plane within a chemical component. */ @Generated("org.rcsb.cif.schema.generator.SchemaGenerator") public cl...
27.652778
74
0.624812
78074bd08bbad28ffc765eab728a3879373a7419
2,225
package com.sample.tests.testng; import org.openqa.selenium.WebDriver; import org.openqa.selenium.remote.DesiredCapabilities; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.testng.AbstractTestNGSpringC...
39.035088
97
0.754157
b4ab07d511ca79090c656ac84ab242731ccd1d87
1,957
package jp.ysrken.kacs.servlet; import com.fasterxml.jackson.databind.ObjectMapper; import jp.ysrken.kacs.DatabaseService; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOEx...
34.333333
109
0.73582
aadfc1a553a803684ae0161dc51620e300ba64ac
1,052
package com.sequenceiq.cloudbreak.template.views; public class CustomConfigurationPropertyView { private String name; private String value; private String roleType; private String serviceType; public CustomConfigurationPropertyView(String name, String value, String roleType, String serviceType...
20.230769
108
0.636882
51f63524c1c83665ab972a02ff95ee27ddbe3987
599
package org.moe.libgdxmissilecommand.ios; import com.badlogic.gdx.ApplicationListener; import com.badlogic.gdx.ApplicationLogger; import com.badlogic.gdx.backends.iosmoe.IOSApplication; import com.badlogic.gdx.backends.iosmoe.IOSApplicationConfiguration; public class MyIOSApplication extends IOSApplication { pub...
31.526316
95
0.797997
0f9f0f41e038a6da0d60a569780bc947ab276b74
5,105
/* * Copyright 2012-2018, the original author or authors. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law ...
45.176991
157
0.74143
31a580eaa57dd116122750aaa53a5ba2a73d7ee4
4,004
import java.io.*; import java.util.*; import org.json.simple.*; import org.json.simple.parser.JSONParser; public class Main { public static void main(String[] args) throws Exception { JSONParser parser = new JSONParser(); JSONObject jsonObject; JSONArray nodes; JSONArray links; ...
44.988764
192
0.581668
fb75240035159b8b5ffe9861316394af1e8db179
11,388
package com.synopsys.integration.alert.channel.jira.server.environment; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.util.Optional; import java.util.Set; import java.util....
78.537931
180
0.820864
13ad81eff2a3fdb20d98937553afe9d76f337a88
172
package nc.scap.dsm.material; import java.io.Serializable; public class MaterialListWinCtrl implements Serializable { private static final long serialVersionUID = -1; }
34.4
58
0.80814
800b4599c6c1f456afc6e029bc59b69ad76dc6f1
17,207
package com.lazybattley.phonetracker.Dashboard.GoToMap; import android.Manifest; import android.content.Context; import android.content.SharedPreferences; import android.content.pm.PackageManager; import android.location.LocationManager; import android.os.Bundle; import android.os.Handler; import android.os...
40.678487
199
0.655198
e5e91d4102929ba455b2b917cb324738eb1cd404
3,432
package collections.RedBlack; import model.Player; import java.io.Serializable; import java.util.ArrayList; public class RedAndBlackNode <K extends Comparable<K>, V> implements Serializable { private static final long serialVersionUID = 400003; /* private static final int BLACK = 0; // The colors are constant ...
17.510204
83
0.668706
0091a861c23c79f3013940b198591f01ce678bf0
2,383
/* * Copyright 2021 DataCanvas * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
37.234375
107
0.704574
57ad1674fae33cc33ea3ba4cfe1c473b65582c75
2,473
package com.breiter.seatswapper.model; import androidx.annotation.NonNull; public class FlightPassenger implements Comparable<FlightPassenger> { private String passengerId; private String passengerSeat; private String search; private String flightId; private boolean isawaiting; public Fligh...
23.330189
122
0.659927
2f65d31ce6698f45fc403af66751d2fb9eef1bb0
9,904
/* * Copyright 2012-2019 MarkLogic Corporation * * 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...
39.146245
247
0.688106
3a2ac36125574f6caedc0d78cfb343024e2cc542
1,127
package HackerRank.src.Tracks.CoreCS.Algorithms.Warmup.TimeConversion.Java; import java.util.*; public class Solution { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String[] twelvehourtime = scan.next().split(":"); String hour = twelvehourtime[0]; ...
29.657895
75
0.492458
39c5861f66ceb8d9e62beced57bd3ba9f89df75a
9,826
package com.amadeus.jenkins.plugins.unbreakablebuild; import hudson.AbortException; import hudson.EnvVars; import hudson.model.Failure; import hudson.model.Result; import hudson.model.Run; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.PrintStream; import java.util.Arrays; import java.util.Li...
41.285714
118
0.628537
e2fc85414ef7a6e285c247a205dcfeebf74ee344
9,864
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/ads/googleads/v8/services/ad_group_feed_service.proto package com.google.ads.googleads.v8.services; public final class AdGroupFeedServiceProto { private AdGroupFeedServiceProto() {} public static void registerAllExtensions( com.go...
58.714286
121
0.768856
d1085447550cacc6deae20dfaf8c80f011c621b4
22,168
package org.ripple.power.utils; import java.io.BufferedOutputStream; import java.io.ByteArrayOutputStream; import java.io.EOFException; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStr...
29.956757
111
0.582732
970f9d41d1f71535baf3ae1bd9ef3b29b233d109
266
public class HelloWorld { public static void main(String[] args) { System.out.println("hello world"); System.out.println("修改了HelloWorld类"); System.out.println("第二次修改"); System.out.println("在master分支下输出一条信息"); System.out.println("在develop分支下输出一条信息"); } }
26.6
42
0.725564
79e88a46c3a108e692bd52d5b77dab16bbed8112
2,551
package science.atlarge.opencraft.opencraft.messaging.policies; import java.util.Collections; import java.util.HashSet; import java.util.Set; import org.bukkit.Chunk; import org.bukkit.Location; import org.bukkit.World; import org.bukkit.block.Block; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; im...
31.493827
112
0.634261
fb21d4914536bccd2334f6affeaf120eabcf99e5
2,121
class Solution { public List<Integer> countSmaller(int[] nums) { if (nums == null || nums.length <= 0) { return new ArrayList(); } int[][] count = new int[nums.length][2]; for (int i = 0; i < nums.length; i++) { count[i][1] = 0; count[i][0] = i; ...
31.191176
81
0.410655
3d62018c5a2d2452b8496eec0e6ee94540be393f
4,042
package com.dadsunion.tron.controller; import java.util.List; import java.util.Arrays; import com.dadsunion.tron.constants.WithdrawState; import com.dadsunion.tron.delegate.TronDelegate; import lombok.RequiredArgsConstructor; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework....
33.683333
99
0.779317
77c1929f3bb4c340c84c13f1c28bf992226ad596
5,789
package local.rdps.svja.action.interceptor; import java.io.PrintWriter; import java.io.StringWriter; import java.util.TimeZone; import javax.servlet.http.HttpServletResponse; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.struts2.StrutsStatics; import org.apache...
35.084848
111
0.744688
0fc9a7f9fde5d5f9c51e44da93c4d9a48da22d92
921
/* * 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 br.com.compdevbooks.alphacosmetics.business; import br.com.compdevbooks.alphacosmetics.dao.IDAO; import br.com.compdev...
28.78125
82
0.704669
f6643de199468127ba71dd6ddf58eb4549c20931
84
package br.com.bdev.api.infra.database.repository; public class UserRepository { }
16.8
50
0.797619
1d8cf45d8d7f6adedd153a216709fb411a01df13
1,312
package com.loserico.methodref; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; import java.util.List; public class MethodRefCompare { public static class Person { private String name; private int age; public Person() { } public Person(String name, int a...
21.508197
72
0.623476
05769259a4ccc9803d8cc9c5c8c6ec8ae3ae919a
1,004
package org.evomaster.dbconstraint; import java.util.Objects; public class SimilarToConstraint extends TableConstraint { private final /* non-null*/ String columnName; private final /*non-null*/ String pattern; private final /*non-null*/ ConstraintDatabaseType databaseType; public SimilarToConstra...
27.135135
122
0.701195
5cd90a11dc3d2ec6903ac1aca84cf17db0672e1c
658
package ru.job4j.array; import org.junit.Test; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * Test task #255. * *@author Idergunov(mailto:idergunov058@yadnex.ru). *@version $Id$ *@since 0.1 */ public class ArrayDuplicateTest { /** * Test add. * Удалить дубли в массиве. */ @T...
23.5
102
0.711246
decae19b40fee582dd055e024e9a3de8b2e0d0a4
3,524
package com.stackscaling.agentmaster.resources.utils; import java.io.IOException; import java.lang.reflect.Array; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; import org.lightj.util.JsonUtil; import org.lightj.util.StringUtil; import com.fasterxml.jackson.cor...
26.298507
114
0.685868
fadfb5a68c7de5fb9429c76c9e62b53d65d15587
1,618
/**Faca um programa que receba o codigo correspondente ao cargo de um funcionario e seu salario atual e mostre * o cargo, o valor do aumento e seu novo salario. Os cargos estao na tabela a seguir. * 1: Escriturario, 50% * 2: Secretario, 35% * 3: Caixa, 20% * 4: Gerente, 10% * 5: Diretor, sem aumento * */ ...
26.966667
110
0.603214
b666f689953b241a3dc20b5b034bf77c89e747a8
1,294
package org.javersion.object; import static org.assertj.core.api.Assertions.assertThat; import static org.javersion.object.ObjectVersionGraph.init; import java.util.Arrays; import org.javersion.core.Revision; import org.junit.Test; public class ObjectVersionGraphTest { private ObjectVersion<String> v1 = ObjectV...
30.809524
84
0.657651
c80b861569b537893ddc5ac208b7cf23bbd998d4
2,729
package org.apache.spark.util.collection.unsafe.sort; import org.apache.commons.io.IOUtils; import java.io.Closeable; import java.io.IOException; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.channels.FileChannel; import java.nio.file.Path; import java.nio.file.StandardOpenOption; import io....
24.585586
94
0.624771
fea35f3c1a7ce0c6afee867541449d7589ca101a
2,950
/** * The MIT License (MIT) * * Copyright (c) 2018 tools4j, Marco Terzer, Anton Anufriev * * 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 limita...
42.753623
85
0.678983
9d8fb1eb6033af7e0d90d84caa9795c21c52f26d
19,077
package com.technologies.highstreet.netconf2soapmediator.server; import java.io.BufferedReader; import java.io.FileReader; import java.util.ArrayList; public class CWMPMessage { private static StringBuilder envelope, envelopeEnd, header, informResponse, factoryReset; private static ArrayList<String> getParamValLis...
41.471739
138
0.723646
69da2d584015393f8e101472ad65699811124e6c
686
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.thespheres.betula; import java.beans.PropertyChangeListener; import java.util.Set; /** * * @author boris.heithecker */ public interface Unit { public static final String PROP_DISPLAYNAME = "displayN...
22.129032
71
0.744898
21b6d201a29c9f9c713152806df97d84ccecfe19
1,068
public class Lista { public Elemento prim, ult; public Lista(){ prim = new Elemento(null); ult = prim; } public void enfileirar(ContaBancaria nova){ Elemento novo = new Elemento(nova); ult.prox = novo; ult = novo; } public ContaBancaria desenfileir...
22.25
53
0.505618
f6bdb090364830f273d3cb16d9a222f9d702b435
25,118
package org.infinispan.distribution.ch.impl; import static java.lang.Math.min; import static org.infinispan.util.logging.Log.CONTAINER; import java.io.ObjectInput; import java.io.ObjectOutput; import java.util.ArrayList; import java.util.Arrays; import java.util.BitSet; import java.util.Collections; import java.util....
40.97553
124
0.620233
8f51b7bf621f1739b403491f8c7233e693d636e7
1,435
/* package leetcode.solutions; import java.util.*; /* Problem : 21 Number leecode problem: 36 https://leetcode.com/problems/sudoku-solver/ Time Complexity: O(2^n) Space Complexity: O(1) */ */ public class SudokuSolver{ public void solveSudoku(char[][] board){ boolean[][] rows = new boolean[10][10], cols...
27.075472
109
0.507317
385d4034c8b42d67f2ab78b7f9275074bef33007
391
package it.unibz.deltabpmn.dataschema.elements.providers; import it.unibz.deltabpmn.dataschema.elements.Sort; /** * An interface for a factory used to generate {@code Sort} objects. */ public interface SortProvider { /** * A method for creating {@code Sort} objects. * @param name A sort name. * @...
24.4375
68
0.677749
68a993f2a53830afac2c5581991449c9a0a82c31
2,027
/* * 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 applicabl...
35.561404
118
0.789837
253c951cd578681a11e17a91c18b7a4abe35e121
214
package com.mentor4you.repository; import com.mentor4you.model.Mentees; import org.springframework.data.jpa.repository.JpaRepository; public interface MenteeRepository extends JpaRepository<Mentees ,Integer> { }
26.75
75
0.841121
f8be82ddebb2b4a627d81ffe4c6d309c640dd27a
1,305
package retrofit2.helpers; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import javax.annotation.Nullable; import okhttp3.MediaType; import okhttp3.RequestBody; import okhttp3.ResponseBody; import retrofit2.Converter; import retrofit2.Retrofit; /** * From: https://github.com/square/retrofit/...
33.461538
145
0.765517
7dfc21579eae83a04de8a88510fd249e64c1a90d
5,024
package rfx.core.stream.functor.common; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.InputStreamReader; import java.net.URI; import java.net.URL; import java.nio.file.Path; import java.nio.file.Paths; import java.util.concurrent.atomic.AtomicBoolean; import java.util.co...
31.012346
97
0.62699
640f507c596f1f1b2d1c9c2bf1e38635a5c66c21
2,729
package com.regnosys.rosetta.blueprints.runner.actions; import com.google.common.collect.ImmutableList; import com.regnosys.rosetta.blueprints.runner.data.DataIdentifier; import com.regnosys.rosetta.blueprints.runner.data.GroupableData; import com.regnosys.rosetta.blueprints.runner.data.Issue; import com.regnosys.rose...
37.383562
105
0.743496
49b35f0aed4ddca1889865acea4e59ecb3cbd848
46,575
package se.chalmers.datx02.FBA; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; import com.sun.org.apache.xerces.internal.impl.dv.util.HexBin; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import pbft.sdk.protobuf.*; import sawtooth.sdk.protobuf.ConsensusBlo...
39.336993
197
0.584047
e157ea609ac82ce8f597208b38c2dfc4c2300c32
2,747
package mage.cards.n; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.effects.OneShotEffect; import mage.abilities.effects.common.EpicEffect; import mage.cards.Card; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; import mage.constants.Outcome...
32.317647
168
0.680015
fd3b3162836c15bc93fc4ab51a9252a3fef605ac
1,173
package br.odb; import android.content.Context; import android.content.res.Configuration; import android.view.InputDevice; import java.util.ArrayList; import java.util.List; /** * Created by monty on 27/09/16. */ public class ControllerHelper { private Context mContext; public ControllerHelper(Context context...
23
94
0.73231