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
1089c94399fc002f6dc3e710abf4d37c60dfa06a
489
package br.unicamp.ic.mc302.dataHora; public class Data { private int dia; private int mes; private int ano; public Data(int dia, int mes, int ano) { this.dia = dia; this.mes = mes; this.ano = ano; } public int dia(){ return dia; } public int mes(){ return mes; } public int ano(){ retu...
13.216216
55
0.615542
9739787908174ab24a55d8cd7eeb8ce165c9b4c7
23,869
package com.quinn.framework.activiti.component; import com.quinn.framework.activiti.model.CustomProcessDiagramGenerator; import com.quinn.framework.activiti.util.ImageUtil; import com.quinn.framework.api.*; import com.quinn.framework.util.SessionUtil; import com.quinn.framework.util.enums.*; import com.quinn.util.base...
40.871575
129
0.653065
7aec643468505fc29174ae5cd9322ebd92deb7d9
4,108
package bitchat.android.com.bitstore.bean; import com.android.base.net.AppConst; import java.io.Serializable; import java.util.List; public class AppDetailBean implements Serializable { private String _id; private String account; private String lang; private String appname; private String ver...
19.377358
55
0.611977
33ad89d2ee16003ed7324ef49f42ca9d248e534f
2,174
package com.autuan.project.front.controller; import com.autuan.project.front.entity.GeneratorQrCodeVO; import com.autuan.project.front.entity.ReceiveAO; import com.autuan.project.front.entity.ReturnResult; import com.autuan.project.promote.task.service.ITaskCustomService; import org.springframework.beans.factory.annot...
30.194444
98
0.683993
137f544beeec02182b3e40fb231b5e15ae0f4755
210
package org.jspare.core.helpers; import org.jspare.core.Application; public class DummyInvalidBoostrap extends Application { private DummyInvalidBoostrap() { } @Override public void start() { } }
15
55
0.742857
f63c8fd6f7ecc9ce1b5d1cdfe8dfa69607e9ebb9
572
package com.development.backend.ng.springmvc.bean; import java.util.List; public class ResultBean { private String Description; private String text; private String code; public String getDescription() { return Description; } public void setDescription(String description) { Description...
15.459459
51
0.667832
e13542d6c5d916b9d20f196d1f1301986c44c848
1,025
/* * Created on Nov 9, 2007 * * TODO To change the template for this generated file go to * Window - Preferences - Java - Code Style - Code Templates */ package com.ai.db.ps; import com.ai.application.interfaces.RequestExecutionException; import com.ai.application.utils.AppObjects; import com.ai.data.Da...
24.404762
80
0.710244
dd0b07284e993b62dcfcae40401c234967f97bbd
31,048
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2017...
51.065789
417
0.600167
ea6eaedd7d50c322583c8e5d5fafbc8e5c2522f8
310
package co.lucz.binancetraderbot.repositories; import co.lucz.binancetraderbot.entities.ErrorLogEntry; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; @Repository public interface ErrorLogRepository extends CrudRepository<ErrorLogEntry, Long> { }
31
81
0.86129
0fcec7569f19677d844dcc18711afbfa4c4862ee
2,829
package com.hereblock.wallet.provider.service.impl; import com.hereblock.wallet.api.model.WalletTransferBO; import com.hereblock.wallet.api.model.WalletTransferVO; import com.hereblock.wallet.provider.entity.WalletTransfer; import com.hereblock.wallet.provider.mapper.WalletTransferMapper; import com.hereblock.wallet.p...
40.414286
93
0.766702
a65779f43480570383205a66c6d9950d19e48fe4
1,618
package vkaretko.models; /** * Class Figure. * * @author Karetko Victor. * @version 1.00. * @since 05.02.2017. */ public abstract class Figure { /** * X coordinate. */ private int x; /** * Y coordinate. */ private int y; /** * Game field. */ private Cell[]...
23.794118
114
0.474042
5a7524edb8a2c3ee715384c17d63ab12798d2b0e
599
package com.android.abstactfactorypattern.factory; import com.android.abstactfactorypattern.button.IButton; import com.android.abstactfactorypattern.button.MacOSButton; import com.android.abstactfactorypattern.text.IText; import com.android.abstactfactorypattern.text.MacOSText; /** * Description: #TODO * * @author...
23.96
60
0.741235
09c0cf6d8b4af088e74c2f283b806f2549f3c5fa
8,570
package com.hotel.controller.backend; import com.google.common.collect.Maps; import com.hotel.common.Const; import com.hotel.common.ResponseCode; import com.hotel.common.ServerResponse; import com.hotel.pojo.Hotels; import com.hotel.pojo.User; import com.hotel.service.IFileService; import com.hotel.service.IH...
40.809524
222
0.651692
f5738873124f0045034fc54ec78c545eabad36e4
123
package com.jbm.util.bean.queue; /** * 分拣器的状态 * * @author wesley * */ public enum ForwardState { RUNING, DESTROY }
10.25
32
0.642276
7eec784107d35ad998d32cd9f6086590abc93417
1,200
import de.tuda.stg.consys.annotations.methods.StrongOp; import de.tuda.stg.consys.annotations.methods.WeakOp; import de.tuda.stg.consys.checker.qual.Mixed; import de.tuda.stg.consys.checker.qual.Strong; import de.tuda.stg.consys.checker.qual.Weak; import java.util.LinkedList; /** * Tests that the default operation l...
26.086957
102
0.591667
62c7a5de289cf648b79a45d42919b58bda75dd6c
4,154
package com.jonatans.ppmtool.services; import com.jonatans.ppmtool.domain.Backlog; import com.jonatans.ppmtool.domain.ProjectTask; import com.jonatans.ppmtool.exception.ProjectNotFoundException; import com.jonatans.ppmtool.repositories.BacklogRepository; import com.jonatans.ppmtool.repositories.ProjectRepository; imp...
36.121739
173
0.703418
11a3848f7184d79209adb608f58c752d0dcdcb01
1,210
/* * Copyright (C) 2012 RoboVM AB * * 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 ...
28.139535
75
0.712397
050466f90567b55a2e6738ab1cf0241a3f693579
67
package com.example.instagramclone; public class PostsAdapter { }
13.4
35
0.80597
1c4c42b8835ffb3a059a13530054130f790b1716
358
package lzt.xiaodai.cn.entity; import com.baomidou.mybatisplus.annotation.TableField; import lombok.Data; /** * @author luoyong * @Date: 2019/4/10 11:51 * @Description: */ @Data public class TApp { private Integer id; @TableField("versioncode") private String versionCode; @TableField("versionnam...
17.047619
54
0.706704
2d487c0d5ef304244e5442dda716299cdf47054a
5,837
package com.webcheckers.ui; import com.webcheckers.application.GameManager; import com.webcheckers.application.PlayerLobby; import com.webcheckers.model.Player; import spark.Request; import spark.Response; import spark.Route; import spark.Session; import java.util.logging.Logger; import static com.webcheckers.ui.Get...
36.48125
111
0.691451
1e0b6a04a220fa31fc0ecc3567713ab43f8c5771
3,212
/* * Copyright 2002-2019 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...
31.490196
115
0.782067
9082ed1f219280901ffc629a024b88041a68e8f4
1,785
package net.sunxu.mybatis.automapper.processor.environment; import com.google.common.base.Strings; import org.apache.ibatis.type.JdbcType; import javax.validation.constraints.NotNull; import static net.sunxu.mybatis.automapper.processor.util.HelpUtils.convertToLowerCaseSplitByUnderLine; import static net.sunxu.mybat...
28.790323
103
0.664426
cfbba27d2bb16ee88c82d2b7706973f34630752d
332
package com.gzc.appendix_b.double_checked_locking; public class Main { public static void main(String[] args) { // 线程A new Thread(() -> System.out.println(MySystem.getInstance().getDate())).start(); // 线程B new Thread(() -> System.out.println(MySystem.getInstance().getDate())).start...
27.666667
87
0.626506
d7d261b6b467483dfc5f334519f3d855f4717b19
900
package com.mauersu.util.common; import com.mauersu.config.RedisConfig; import com.mauersu.exception.RedisInitException; import java.io.IOException; import java.io.InputStream; import java.util.Properties; /** * Created by zhigang.huang on 2017/9/27. */ public class ResourceUtil { public static Properties load...
27.272727
100
0.664444
530a5fc8cf4259d4e6b1bd1cdf85674e694e581e
116
package com.xeno.goo.interactions; public interface IBlobInteraction { boolean resolve(BlobContext context); }
16.571429
41
0.793103
7f1db70aa54885dc5f349f31ac8b84888055b060
1,299
package com.cesarschool.ManagerProject.model; import java.sql.Date; import java.time.MonthDay; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.ElementCollection; import javax.persistence.Entity; import javax.persistence...
20.296875
69
0.767513
36d9f56e9eea36ac6c1d89c5f68d3ab3c5a93195
2,365
package com.justwayward.book.bean; import java.util.List; /** * Created by gaoyuan on 2017/11/23. */ public class CategoryBean { /** * id : 1 * category : 分类1 * pid : 0 * list_order : 0 * sub_category : [{"id":2,"category":"测试分类","pid":1,"list_order":0,"novel_num":0}] */ pri...
19.545455
87
0.534461
a38ec1006ae93edc01bb01c5fe090cde3191fea3
400
public class MaximumSubarray { public int largestSum(int[] array) { int prevSum = array[0]; int res = array[0]; for (int i = 1; i < array.length; i++) { if (prevSum > 0) { prevSum += array[i]; } else { prevSum = array[i]; } ...
25
48
0.4275
dbd43c4231d1bc52918eeb52bb172511c696efdf
1,310
/** * Copyright 2020 yametech. * * 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 t...
22.982456
75
0.722137
1a1e150c7cbcf9f8d00694663e2a3edca0672543
1,706
package com.google.android.gms.common.internal; import android.os.IBinder; import android.os.Parcel; import android.os.Parcelable.Creator; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.internal.safeparcel.SafeParcelReader; public final class zan implements Creator<Resolve...
39.674419
120
0.62075
a4400067601e8b00cf011384c7b9039bf53b47ea
2,160
package com.sap.cloud.lm.sl.mta.handlers.v3; import java.util.Arrays; import org.junit.runners.Parameterized.Parameters; import com.sap.cloud.lm.sl.common.util.Tester.Expectation; public class DescriptorMergerTest extends com.sap.cloud.lm.sl.mta.handlers.v2.DescriptorMergerTest { @Parameters public static ...
40
134
0.633796
43dd3b2572558336a6feede4800a7930252cb276
1,982
package com.lk.syxl.customview.mvp.impl; import com.alibaba.fastjson.JSONObject; import com.google.gson.Gson; import com.lk.syxl.customview.model.Phone; import com.lk.syxl.customview.mvp.NumberBelongView; import com.lk.syxl.customview.utils.HttpUtils; import java.util.HashMap; import java.util.Map; /** * Created by...
27.150685
72
0.616044
5810fde201e23046bce9c26129c3a41c2ac4d0da
5,493
package neu.train.project.system.controller; import neu.train.common.constant.UserConstants; import neu.train.common.utils.SecurityUtils; import neu.train.common.utils.StringUtils; //import neu.train.common.utils.poi.ExcelUtil; //import neu.train.framework.aspectj.lang.annotation.Log; //import neu.train.framework.aspe...
34.765823
107
0.675769
8f9627b0266bf3707a3bb6e83c7adbe4916fcdca
1,095
package edu.rutgers.MOST.presentation; import java.awt.Color; import javax.swing.BorderFactory; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JProgressBar; import javax.swing.JRootPane; import javax.swing.UIManager; import javax.swing.b...
29.594595
103
0.770776
ddb88d28c2321bbc153a54899579cb3741823657
162
package sample; public class MockConnection implements AutoCloseable { public void close() { System.out.println("MockConnection is closed."); } }
23.142857
56
0.703704
adbd8958131380abcff8de71df21e334e969a7b1
636
/** * @Author : Anand Kumar Keshavan */ public class Main { public static void main(String[] args) { Cart cart = new Cart(); cart.Add( new Item("Veggies", "Onions", 2, 100.00)) .Add( new Item("Dairy Prod", "Milk", 4, 60.00)) .Add( new Item("Snacks", "Biscuits", 2, 20.00)) ...
28.909091
58
0.566038
7c936627f333c16aea7f1535f16de4bd0ca779d0
205
package com.atsebak.embeddedlinuxjvm.utils; public class Notifications { /** * ID for notifications */ public static final String GROUPDISPLAY_ID = "EmbeddedLinux JVM Notifications"; }
20.5
83
0.717073
559bacb1edb3d423c47e9fb9e0a8b770716c65e6
5,132
/* * Copyright 2014 NAVER Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
34.911565
133
0.720382
30d479088c870cbfcdbd4c32a5ae32a893e835b4
911
package Core; /*Rap Battle Online: Class ProfileImage*/ import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.util.Log; import android.widget.ImageView; import com.loopj.android.http.BinaryHttpResponseHandler; import WebApi.WebApiClient; public class ProfileImage { public static ...
31.413793
150
0.645445
a1e7aa5e47c54ca3346010a7a84e11970ffb94d1
670
package expression.logical; import expression.Expression; /** class to represent logical expression Equal * @author Hélène Collavizza * @date June 2008 */ public class EqualExpression extends Comparator{ public EqualExpression(Expression a1, Expression a2) { super(a1,a2); } public String toStri...
21.612903
90
0.665672
6dfc05597872a922af6911f33d508cdbb05e65ab
1,805
/* * Copyright 2010-2019 James Pether Sörling * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
32.232143
111
0.725762
7d51e9fdfa51f97bc0c3694636e64da4ac6c07f6
927
package ru.job4j.array; /** * Contains. * @author MShonorov (shonorov@gmail.com) * @version $Id$ * @since 0.1 */ public class ArrayCharLike { /** * Find if one string contains another. * @param origin origin string. * @param sub string to find. * @return true if contains. */ public...
26.485714
63
0.463862
63a74ce3e284c940a43009cb82c8dea247c2cafe
2,103
package com.bloxbean.cardano.client.coinselection; import com.bloxbean.cardano.client.backend.exception.ApiException; import com.bloxbean.cardano.client.backend.model.Amount; import com.bloxbean.cardano.client.backend.model.Utxo; import com.bloxbean.cardano.client.config.Configuration; import java.math.BigInteger; im...
51.292683
147
0.779363
67d7f9c9b25de4e041719339d12c19663069514b
2,850
package com.purbon.kafka.topology.model; import com.purbon.kafka.topology.model.users.Connector; import com.purbon.kafka.topology.model.users.Consumer; import com.purbon.kafka.topology.model.users.KStream; import com.purbon.kafka.topology.model.users.Producer; import java.util.ArrayList; import java.util.HashMap; impo...
22.265625
71
0.691228
3fa3dc59c4cd2cd090d7cebfbf3024876b86a1f8
228
package net.woggioni.worth.utils; import lombok.EqualsAndHashCode; import lombok.RequiredArgsConstructor; @EqualsAndHashCode @RequiredArgsConstructor public class Tuple2<T, U> { public final T _1; public final U _2; }
19
38
0.785088
12211062e73300de56cd44426e1abc16251f9561
1,789
package com.demo.mediacodec; import com.demo.mediacodec.decoder.AudioDecodeThread; import com.demo.mediacodec.decoder.VideoDecodeThread; import android.app.Activity; import android.os.Bundle; import android.os.Environment; import android.view.SurfaceHolder; import android.view.SurfaceView; // https://github.com/taeh...
26.308824
118
0.74455
aaca2b7433f279e5627fae002fffa856d0aad90b
1,414
package com.lmax.disruptor.support; import java.util.ArrayList; import java.util.List; import java.util.concurrent.Callable; import java.util.concurrent.CyclicBarrier; import com.lmax.disruptor.RingBuffer; import com.lmax.disruptor.SequenceBarrier; public final class TestWaiter implements Callable<List<StubEvent>> ...
29.458333
67
0.706506
68e178c9ac7dc81730ff7089d8d4a6120122040c
6,302
/* * 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 * distribut...
31.828283
144
0.654237
6c9e5ca526900e3f69d6f83f7141e377487ddd6f
1,859
/* * The MIT License * * Copyright 2016 kbouzidi. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify...
32.614035
114
0.688542
9e9c8512f7956bcdcd696c38b899a69d34881f40
2,781
package eu.fbk.das.rs.challenges; import static eu.fbk.das.utils.Utils.equal; import static eu.fbk.das.utils.Utils.f; import static eu.fbk.das.utils.Utils.pf; import java.util.ArrayList; import java.util.List; import java.util.Set; import org.joda.time.DateTime; import eu.fbk.das.rs.challenges.calculator.Challenges...
27.264706
100
0.619202
6ac2b0a5429f3667606a786961a3ded2e2d60c7a
625
package com.karta05csr.bandung.home.viewmodel.controller; import com.karta05csr.bandung.databinding.HomeActivityBinding; import com.karta05csr.bandung.home.viewmodel.HomeVM; import id.gits.mvvmcore.controller.GitsController; /** * Created by irfan on 17/06/16. */ public class HomeController extends GitsController<...
28.409091
81
0.7632
2a9f5ff6587b7be2696521faa1284466cbdc45a7
4,113
package com.basaki.example.config; import com.basaki.example.handler.BookHandler; import com.basaki.example.handler.MovieHandler; import com.basaki.example.util.UuidBeanFactory; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.SerializationFeature; import com.fasterxml.jackson....
37.733945
93
0.719426
bbea9f318ac3a9bd13085e08fc85bf7f79afdd71
11,769
package org.monarchinitiative.sgenes.gtf.io.impl; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import org.monarchinitiative.sgenes.gtf.model.Biotype; import org.monarchinitiative.sgenes.gtf.model.RefseqGene; import org.monarchinitiative.sgenes.gtf.model.RefseqSource; import org.monarchinitia...
50.728448
168
0.638372
e67b195444c3aa03d99c58b800a6f1492990f250
974
package main.java; import main.java.rsa.Rsa; import java.math.BigInteger; public class SpeedTest { private static int numOfMeasurements = 5; private static int testIncreaseSpeed = 3; public static void main(String[] args) { System.out.println("I am speed!"); long time; Rsa rsa =...
27.055556
72
0.545175
f3d4738d1196a6e28c63fcc675f42b89d9dfaf14
340
package com.google.gwt.chrome.cookie; /** * Callback function called when cookie has been changed. * @author Paweł Psztyć * */ public interface ChromeCookieChangeCallback { /** * Cookie has been changed some way. * See {@link ChromeCookie} for more informations. * @param event */ void onChange( ChromeCook...
22.666667
57
0.720588
a9ce8c7675d301141e647dce81b6f86961dd37b4
68,785
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * Autogenerated by Thrift Compiler (0.9.3) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ end_comment begin_package package|package name|org operator|. name|apache operator|. name|hive ope...
13.064577
145
0.796467
47a77ad5af1e4872832272584c9e6cc62c217ae9
3,415
/* * Copyright (c) 2015-2020, Virgil Security, Inc. * * Lead Maintainer: Virgil Security Inc. <support@virgilsecurity.com> * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * (1) R...
46.148649
99
0.787994
0ce8a97be1fb49b12556a7bc0ba185d51e83d6ed
2,550
/* * 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.931507
96
0.712941
a8761d5cfa20f1fcb0005dc158a720046e98c39b
257
package sizebay.catalog.client.model; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; import lombok.Setter; @Getter @Setter @NoArgsConstructor @AllArgsConstructor public class ImportationRules { String rules; }
15.117647
37
0.824903
a969b3441418926601e94d4e9b28b22ea6df369b
1,893
package old.divideconquer; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.Parameterized; import org.junit.runners.Parameterized.Parameters; import org.junit.runners.Parameterized.Parameter; import java.util.Arrays; import static org.hamcrest.Matchers.is; imp...
27.434783
109
0.633386
7a924de42242d6437dff563607c942c8af1c79cb
344
package br.com.criaproposta.demo.servicosterceiro.criacartao.associacarteira; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @Repository public interface AssociaCarteiraRepository extends JpaRepository<AssociaCarteira, Long> { boolean existsByCarteira...
28.666667
89
0.857558
348c9cbc02096dcd26d426f9851423ae271e454f
9,838
package com.intact.rx.core.rxrepo.writer; import java.util.Collections; import java.util.Map; import java.util.Objects; import java.util.Optional; import java.util.concurrent.atomic.AtomicReference; import com.intact.rx.api.RxConfig; import com.intact.rx.api.RxContext; import com.intact.rx.api.RxObserver; import com....
34.640845
202
0.604289
2ab4a58679678282d177448ed5b7655e5798aa04
182
package powercrystals.minefactoryreloaded.api; import net.minecraft.entity.player.EntityPlayer; public interface ILiquidDrinkHandler { public void onDrink(EntityPlayer player); }
20.222222
48
0.840659
3db3934add0dcd2e97aa2479f1093773f1425ccd
837
package com.checkshow.entity; import com.checkshow.entity.constant.GenreEnum; import lombok.AccessLevel; import lombok.Builder; import lombok.Getter; import lombok.NoArgsConstructor; import javax.persistence.*; /** * Genre Entity * id : PK * comment : 설명 * detailComment : 자세한 설명 */ @Entity @Getter @NoArgsConst...
19.022727
60
0.684588
fd0a79fe4c9e78a3db6da0ace601e5a35bac2037
733
// a good explanation: https://leetcode.com/problems/range-addition/discuss/84225/Detailed-explanation-if-you-don't-understand-especially-%22put-negative-inc-at-endIndex+1%22 class Solution { // improve from naive O(kn) to O(k+n) public int[] getModifiedArray(int length, int[][] updates) { int[] res = n...
30.541667
174
0.526603
565cd158ed7ab4e88c3e65adb232d2e67fa810d3
2,500
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package talitakumi.servicios; import com.kcreativa.printer.DirectPrintToPrinter; import java.io.IOException; import java.util.Date; import javax.persistence.EntityManager; import org.apache.log4j.Logger; import talitak...
23.148148
70
0.5816
b554222cab84539d39aa1b2b12b23878f632710b
6,321
package com.park.bean; import java.io.*; import java.util.*; //user_feedback @SuppressWarnings({"serial"}) public class User_feedback implements Cloneable , Serializable{ //public static String[] carrays ={"id","ui_id","content","ctime","utime","note","type","pi_id","area_code","pi_name","pda_id"}; public l...
26.670886
193
0.591995
722c19e47ecfc057fd36988999aa716e0738f299
1,440
package documents; /** * This class describes audio and video materials of library system. * * @author Anastasia Minakova * @see Document */ public class AudioVideoMaterial extends Document { /** * Initialize new audio/video. * * @param Title Title. * @param Authors Authors. ...
30.638298
160
0.631944
a8c2bad4318a6a2e5efb21ed43d498fc2d2a30cf
2,719
/******************************************************************************* * Copyright 2018 T Mobile, Inc. or its affiliates. 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 ...
39.405797
85
0.706142
2285252fdfc5ad5492f5e9980f36cdee851dd495
2,597
package com.devonfw.tools.ide.logging; /** * Simple wrapper to print out to console and logger. */ public class Output { private static final String BANNER = "***********************************************************"; private static final Output INSTANCE = new Output(); /** * Print {@link #info(String...
21.46281
101
0.61494
7962bfdce9ec189e6ac36ef4bbef231409f61e93
11,339
package ch.ethz.infk.pps.zeph.benchmark.macro.e2e.config; import java.time.Duration; import java.util.List; import java.util.Objects; public class E2EConfig { private BenchmarkType benchmarkType; private String experimentId; private Boolean e2eProducer; private Boolean e2eController; private Long timestampSyn...
27.126794
111
0.767528
6e16c6474e80ca600b77f596cc0157a72a2852d3
7,627
/* * 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 ...
36.146919
130
0.664088
d17f743d186d2a8460e9529a6d299d03554ca6af
1,120
package se.artheus.minecraft.theallcord.entities.cables; import net.minecraft.core.BlockPos; import net.minecraft.world.item.ItemStack; import net.minecraft.world.level.block.state.BlockState; import se.artheus.minecraft.theallcord.networking.CableType; import static se.artheus.minecraft.theallcord.blocks.Blocks.BLOC...
38.62069
109
0.808036
cda2d5e4143f218e1306e4256597ab68417c86b4
151
package org.apache.airavata.mft.core.api; public interface TransportOperator { public long getResourceSize(String resourceId) throws Exception; }
25.166667
68
0.807947
b0d7079966d071d849f06e71ed2ddc1e2cd1ed04
2,176
/* * Minecraft Forge * Copyright (c) 2016. * * 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 version 2.1 * of the License. * * This library is distributed in the hope that it will...
38.175439
133
0.735754
9786fe8de52a00a491fc6a689acf4f986a7f9b19
20,660
/* * IntPTI: integer error fixing by proper-type inference * Copyright (c) 2017. * * Open-source component: * * CPAchecker * Copyright (C) 2007-2014 Dirk Beyer * * Guava: Google Core Libraries for Java * Copyright (C) 2010-2006 Google * * */ package org.sosy_lab.cpachecker.cpa.range; import com.google.c...
38.616822
100
0.679671
438749c2c40f2a87996be59557257fe0ac1a3605
712
package fr.inra.maiage.bibliome.alvisnlp.bibliomefactory.modules.http.api; public enum Constants { ; public static enum Parameters { ; public static final String LAYER_NAME = "layer"; public static final String LAYERS = "layers[]"; public static final String DOCUMENT_ID = "docId"; public static final Str...
28.48
74
0.738764
16f997b61338321c24bf63037844c4d3f24e3678
295
package br.com.recode.exemplo09.repositorios; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import br.com.recode.exemplo09.entidades.Aluno; @Repository public interface AlunoRepository extends JpaRepository<Aluno, String> { }
26.818182
71
0.840678
0e2d019615b20abed6d7dac6dda3062cb6a8c823
19,883
/* * Copyright 2021 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...
46.564403
99
0.72479
f3e88f6fd4964585cbb069f1ce3db4ed7f72e28e
2,954
package com.common.viewmodel; public class LiveDataEvent { public static final String SUCCESS = "10000"; /** * 登录状态 * * @param LOGIN_SUCCESS * @return */ public static final int LOGIN_SUCCESS = 0x01; /** * 登录错误 * * @param LOGIN_FAIL * @return - */ ...
23.078125
69
0.650643
7d05edb9d04d12c9015ceaa9473d0fb81f405104
682
/** * Richard * Email: richardvu.work@gmail.com * Skype: luongvu.work@gmail.com * Phone: (+84) 0935710974 - (+84) 0935810974 * Country: Viet Nam * Year: 2020 */ package com.richard.app.io.entities; import lombok.Getter; import lombok.Setter; /** * @author richard * */ @Getter @Setter public class Person { ...
17.05
82
0.630499
713b670317cb132d81027f34e06b297eceafd88d
634
package com.fox2code.fabriczero.access.emc; import com.fox2code.fabriczero.reflectutils.ReflectedClass; import java.util.*; public class EMCHashMap<T> extends HashMap<String, T> { private static final Set<String> compatiblesMods = new HashSet<>(Arrays.asList("optifine", "lithium", "phosphor")); ...
31.7
76
0.654574
7a7639bc791e92ddeef625de94511135658e4542
884
package server; import java.io.IOException; import java.net.ServerSocket; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import consts.Constants; /** * Class for the Server. * * @author Florin Sia */ public class Server { /** * Starts the server. * * @param args */...
20.55814
62
0.692308
f792fc49e8f0c96f2f0b27db03a0721444fd07fb
5,056
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you m...
43.586207
105
0.665744
1d9d4faffe2533b6e2f2a5fdad82d2965d2c912a
361
package com.hyf.facebook.demo.messengerPlatform; import org.junit.Test; /** * * @author winfun * @date 2021/2/22 4:52 下午 **/ public class FacebookUtilTest { public static String accessToken = ""; @Test public void test(){ FacebookUtil util = new FacebookUtil(); System.out.println(ut...
16.409091
60
0.65651
962ef9e9822758610cf1f121edd91086aa74e671
3,312
package wraith.smithee.mixin; import net.minecraft.resource.NamespaceResourceManager; import net.minecraft.resource.Resource; import net.minecraft.resource.ResourceImpl; import net.minecraft.util.Identifier; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepow...
46.647887
425
0.657609
9ac491a6dc70de739d60eb65f3b9c94832d5b45a
5,581
/* * This file is part of TDA - Thread Dump Analysis Tool. * * TDA is free software; you can redistribute it and/or modify * it under the terms of the Lesser GNU General Public License as published by * the Free Software Foundation; either version 2.1 of the License, or * (at your option) any later version. * *...
39.58156
199
0.680702
c67c50ad0d93f1422fcb5c61edc68884240cd052
2,304
/*- * #%L * Slice - Core * %% * Copyright (C) 2012 Wunderman Thompson Technology * %% * 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...
36.571429
111
0.74783
3a7aa11be602c017041922a3997280ec92cb8772
860
package com.hdh.lifeup.model.domain; import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableName; import com.hdh.lifeup.base.BaseDO; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.experimental.Accessors; /** * UserAuthDO class<br/> * * @author hdongh...
22.631579
69
0.732558
541a0f64e84c08a44041fb5e05034f20f15c8102
10,769
/* * Copyright 2020 MiLaboratory, 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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agre...
39.16
100
0.609249
14ba578e1475e22afbd4a905c61dadbabc851a31
427
package com.exercise.mysys.domain; /** * @ProjectName 食品企业订货销售系统 * @Author 朱向阳 * @Date 2018/7/22 17:46 * @Description: 退货单查询类 */ public class returnGoodResult { public String id; public String good_name; public String customer_name; public String employee_name; public String number; public...
21.35
34
0.711944
2bbaa6c75e5882a020a68de61003eac329391da5
2,421
package mm.hlca; import mm.icl.hlc.HLC.TimeUtil; import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Calendar; public class ContextCSVReader { // static final String userId = "9735"; // static final String llcLabel ...
31.855263
225
0.529946
9391a304c1e190e20a4c3f2290d598821639493f
15,526
/* * 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 ...
42.190217
138
0.752029
50173a11565fa645b6e71bf824f86d29ab1bc417
18,579
/******************************************************************************* * Copyright (c) 2013-2016 LAAS-CNRS (www.laas.fr) * 7 Colonel Roche 31077 Toulouse - France * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 ...
37.158
131
0.765542
7b9c9eb5cf15d45d6570879ffb989a36fc032111
2,601
package android.support.v4.app; /** * A support dialog fragment that allow show in state loss mode */ public class DialogFragmentStateless extends DialogFragment { /** * Display the dialog, adding the fragment using an existing transaction and then committing the * transaction whilst allowing state lo...
41.951613
100
0.672434
84aa3be42c5f2d5a5f914a606526773e9681d7d3
2,409
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.09375
75
0.728518
31fed9f8dfe802c5367018ec36f9a585a6222274
14,901
/****************************************************************************** * Product: iDempiere ERP & CRM Smart Business Solution * * Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. * * This program is free software, you can redistribute it and/or modify it * ...
27.241316
106
0.703174
e38cc69dcc1d43fd2084c409f72179b2bd7cf3e6
23,431
/* * 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 ...
30.509115
114
0.585293
774cf396f48fddc23adc935b6a142b0a6938a483
3,172
package client; import common.*; import java.net.Socket; import java.util.ArrayList; import java.util.List; import java.util.Map; public class Client implements ClientInterface { private ClientWindow window; private Comms comms; private User user = null; public Client(Socket socket) { ...
24.030303
97
0.596784
b4a7c4f33e1507f5ce3a7154748f6ae0dfd017ff
6,158
/* * The MIT License * * Copyright (c) 2016, AbsInt Angewandte Informatik GmbH * Author: Dr.-Ing. Joerg Herter * Email: herter@absint.com * * 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 Sof...
35.802326
110
0.620981