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
15dcae59b67216ded557ab5883806b4cb84c2710
1,188
/** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode() {} * TreeNode(int val) { this.val = val; } * TreeNode(int val, TreeNode left, TreeNode right) { * this.val = val; * this.left = left; * ...
28.285714
76
0.534512
60745e0c434af54374f79b7a103f388be907e3af
2,675
/* * Copyright (c) 2014 aleon GmbH. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Note for all commercial users o...
34.294872
138
0.724486
16939271632ba1fd6a6dd3a6e83280ee57bb0f72
2,556
/* * 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...
29.72093
90
0.692488
e2d90779e00f7692661783a2b1a52bcff773cbc7
496
package com.example.board.controller; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.GetMapping; @Slf4j @Controller @CrossOrigin(origins = "http://localhost:8081", allowedHea...
24.8
69
0.735887
a5c20e707a0699d9c8053099c054ef68e2ab891a
1,485
/*_############################################################################ _## _## SNMP4J-Agent 3 - MOFilter.java _## _## Copyright (C) 2005-2018 Frank Fock (SNMP4J.org) _## _## Licensed under the Apache License, Version 2.0 (the "License"); _## you may not use this file except in complian...
31.595745
87
0.594613
21b3c5dfb9070904c222b402823e8fed3a4264f7
405
package com.redis.processor; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.annotation.Autowired; import com.redis.task.task; public class CacheInitialize implements InitializingBean { @Autowired private task pushTask; @Override public void aft...
21.315789
63
0.767901
b76b904714af8d1943a380178de3fdfe24f68e1f
1,955
/* * 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 Lab03; import java.util.Scanner; /** * * @author Tbeur */ public class TriangleTester { public static void...
33.135593
95
0.504859
719418cd298467008fbf8226192ab9925331d955
14,542
/* * Copyright (c) 2010-2014 Evolveum * * 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...
42.645161
134
0.651492
cead00f9f8b627efc2177d35de0f42a1dcbdd7a1
8,840
package org.smartregister.bidan.utils; import android.app.Activity; import android.content.Context; import android.widget.ImageView; import android.widget.TextView; import org.apache.commons.lang3.StringUtils; import org.joda.time.LocalDate; import org.joda.time.Months; import org.joda.time.format.DateTimeFormat; imp...
39.288889
163
0.585294
cf7ca50735dfec75328b3db1ba074370637d82ff
768
package com.lexmach.client.minecraft.packet.packets.play.clientbound; import com.lexmach.client.minecraft.packet.datatype.VarInt; import com.lexmach.client.minecraft.packet.packets.play.PlayStatePacket; import com.lexmach.client.minecraft.packet.util.PacketUtil; import java.io.InputStream; public class PlayerInfoPac...
26.482759
82
0.716146
e315eefbcc977a880ccf00b216aed67e360fdc41
2,453
/*- * ============LICENSE_START======================================================= * ONAP - SO * ================================================================================ * Copyright (C) 2018 Huawei Technologies Co., Ltd. All rights reserved. * ===========================================================...
31.050633
83
0.610681
eed730fdd53cedac63fdb7b6750e47cf80821c94
1,334
package com.googlecode.wicket.jquery.ui.samples.kendoui.button; import org.apache.wicket.Component; import org.apache.wicket.ajax.AjaxRequestTarget; import org.apache.wicket.markup.html.form.Form; import com.googlecode.wicket.kendo.ui.form.button.AjaxButton; import com.googlecode.wicket.kendo.ui.panel.KendoFeedbackPa...
22.610169
73
0.731634
12530a607c1bd687875bdcc499a234e3a8622b30
24,271
/** * Autogenerated by Thrift Compiler (0.10.0) * * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING * @generated */ package edu.jhu.hlt.concrete.summarization; @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked", "unused"}) /** * A mention of a concept described in a summary which is t...
33.247945
184
0.666516
8541827b4ca4ede80765817279f280d462e3919e
115,976
/** * Generated with Acceleo */ package org.wso2.integrationstudio.gmf.esb.parts.impl; // Start of user code for imports import java.util.ArrayList; import java.util.List; import org.eclipse.emf.common.util.BasicEList; import org.eclipse.emf.common.util.EList; import org.eclipse.emf.common.util.Enumerator; import ...
41.155429
326
0.784516
c39ef525adad8eddf29caf58ea3ddaa714f6b88d
486
package com.exx.dzj.service.encode; import com.baomidou.mybatisplus.extension.service.IService; import com.exx.dzj.entity.encode.SaleEncodeBean; import java.util.Date; /** * @Author * @Date 2019/8/7 0007 16:57 * @Description 销售单编码 service */ public interface SaleEncodeService extends IService<SaleEncodeBean> { ...
23.142857
69
0.77572
c547322063bd42cde01a2d53e6a69633875f98f5
2,646
package de.shogundb.domain.seminar; import com.fasterxml.jackson.annotation.JsonIgnore; import de.shogundb.domain.BaseEntity; import de.shogundb.domain.member.Member; import de.shogundb.domain.person.Person; import lombok.*; import javax.persistence.*; import javax.validation.constraints.NotNull; import javax.validat...
26.19802
117
0.631519
eccc04581e5dea9a660df0a552b6c45f93a6b43d
612
package rookie.java.leetcode.lt33.iterative; public class Solution { public int search(int[] nums, int target) { int left = 0; int right = nums.length-1; while(left <= right) { int middle = left + (right-left) / 2; if(target == nums[middle]) { return middle; } if(nums[middle] >= nums[le...
19.741935
57
0.542484
aad083f51260cde50e9dc2d14c1102cc02660d60
39,832
package uni.bielefeld.cmg.sparkhit.pipeline; import uni.bielefeld.cmg.sparkhit.algorithm.Arithmetic; import uni.bielefeld.cmg.sparkhit.io.readInfo; import uni.bielefeld.cmg.sparkhit.matrix.ScoreMatrix; import uni.bielefeld.cmg.sparkhit.reference.RefStructBuilder; import uni.bielefeld.cmg.sparkhit.struct.*; import uni...
40.811475
140
0.499423
ddaf13752469708f8428baba4d3a617861d9008f
2,586
package me.alidg.errors.message; import me.alidg.errors.Argument; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.context.MessageSource; import org.springframework.context.NoSuchMessageException; import org.springframework.lang.NonNull; import org.springframework.lang.Nullable; imp...
35.916667
112
0.710363
9f6286e050a09ee168dd68d6fc1966c25b625c86
11,147
package com.ziroom.ziroomcustomer.minsu.activity; import android.app.Activity; import android.content.Intent; import android.content.res.Resources; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import and...
33.474474
193
0.713645
f3f3d67aeb72205c5d8f48ef26921f19f1f18e41
12,354
package com.taobao.tddl.executor.handler; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.concurrent.Future; import java.util.concurrent.TimeUnit; import com.taobao.tddl.common.exception.TddlException; import com.taobao.tddl.common.model.ExtraCmd; import com.taobao.tdd...
45.252747
129
0.587502
311eea3df39d38b82faacf3f8a2b280d9bd27dc1
1,155
package Dao; import Models.Admin; import org.sql2o.Connection; import org.sql2o.Sql2o; import org.sql2o.Sql2oException; import java.util.List; public class AdminImplementation implements AdminDao{ private final Sql2o sql2o; public AdminImplementation(Sql2o sql2o){ this.sql2o = sql2o; } @Ove...
23.1
66
0.57316
37052aeb7be9414685b124c66a05750d93b6b0d0
1,472
package info.rexis.hotelbooking.services.dto; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Index; import javax.persistence.Table; import java.util.Date; @D...
21.333333
61
0.720788
f7845160b78fe86184c2734dbfc8061591b4721c
184
package com.ctfly.docker.test.service; import com.ctfly.docker.test.model.User; public interface UserService { void save(User user); User findByUsername(String username); }
18.4
41
0.755435
b4dd1581899c8a619833a52fd3f03ed5ebc05c2a
6,423
/* * JPPF. * Copyright (C) 2005-2019 JPPF Team. * http://www.jppf.org * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
44.916084
206
0.726919
0cc3c3c8cc983b97ca514b79f8aa004b7efd0b55
202
package carcheck.search; import net.serenitybdd.screenplay.targets.Target; class SearchForm { static Target REG_SEARCH_FIELD = Target.the("search field") .locatedBy("#vrm-input"); }
18.363636
63
0.712871
3f11a83c3f37fe5e6d732cca6a90a0d1e4996912
6,933
/* * Zeebe Workflow Engine * Copyright © 2017 camunda services GmbH (info@camunda.com) * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at y...
35.372449
100
0.764316
ec9a1e5d865e8b9a0023a4a58f24f730ec67616e
8,223
package devs.mulham.raee.sample; import android.graphics.Color; import android.os.Bundle; import android.support.design.widget.FloatingActionButton; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.Toolbar; import android.text.format.DateFormat; import android.util.Log; import android....
36.384956
137
0.607564
8443c663b048b6bd92e0ca9f77a642b657150838
137
package com.philips.transport.tcp.emis_server.pack_type; public interface DataParser { public DataPackFormat parse(Integer[] data); }
22.833333
56
0.80292
89b11362cc6146a9f0ec37f0724fb109e4e21a30
1,211
package com.github.calebwhiting.runelite.plugins.actionprogress.detect; import com.github.calebwhiting.runelite.plugins.actionprogress.Action; import com.github.calebwhiting.runelite.plugins.actionprogress.ActionManager; import com.google.inject.Inject; import com.jogamp.common.util.IntObjectHashMap; import lombok.ext...
25.229167
77
0.749794
581957ab3198bd65d3720f042c3aeb4a5c10fb54
1,611
package chapter6; import java.util.Deque; import java.util.LinkedList; public class NotSoMobile { public static void main(String[] args) { Deque<int[]> q = new LinkedList<>(); int[] n = {1,2,3,4}; // int[] n1 = {0,2,0,4}; // int[] n2 = {0,3,0,1}; // int[] n3 = {1,1,1...
23.691176
73
0.412787
8ad927d61fb999fe46537f3c1bf8c2303e2ef538
2,129
package fishmaple.shiro; import fishmaple.DAO.UserMapper; import fishmaple.DTO.Role; import fishmaple.DTO.User; import fishmaple.Service.UserService; import org.apache.shiro.authc.*; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.authz.SimpleAuthorizationInfo; import org.apache.shiro.realm.Au...
36.706897
116
0.676374
72760e12de0fbd9d59761d15b09c73fead96ad6c
5,779
package com.dtstack.flink.sql.sink.kafka.serialization; import com.google.common.collect.Lists; import com.google.common.collect.Maps; import org.apache.avro.LogicalTypes; import org.apache.avro.Schema; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.types.Row; import org.junit.Before; import or...
43.780303
133
0.71431
7c391df5abcd38bb5ce5634f99bc6ae3f80ec54b
9,456
/* * 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 screenscreen; /** * * @author SACHI */ public class splash extends javax.swing.JFrame { /** * Creates new form sp...
53.123596
156
0.644141
00dcef25f05ab5bbc6404ff07261338f882f6f26
1,919
/* * Copyright 2007-2009 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 requi...
34.267857
79
0.731631
85733670e4246e61ff390e69f9c06791a7ce2f1a
1,376
/* */ package pro.gravit.repackage.io.netty.channel.local; /* */ /* */ import java.util.concurrent.ThreadFactory; /* */ import pro.gravit.repackage.io.netty.channel.DefaultEventLoopGroup; /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ /* */ ...
20.848485
159
0.440407
2fda44d195cae1479506eb8af54ab45ccdd82c58
1,631
package es.ledg.ghost.db; /** * * @author i5 * * since a Trie is quite expensive in term of memory footprint we keep it as light as possible in order * to use the less amount of memory possible * */ public class TrieNode { public static int ...
33.979167
105
0.47946
6317e2ab9737ee3f950883912a10e16d4b9f3fc9
1,037
package dev.sheldan.abstracto.core.models.database; import lombok.*; import javax.persistence.*; import java.time.Instant; @Entity @Table(name = "component_payload") @Getter @Builder @Setter @AllArgsConstructor @NoArgsConstructor @EqualsAndHashCode public class ComponentPayload { @Id @Column(name = "id", nul...
22.543478
86
0.691418
9a8c4d89d4ce113a7ca5323eec956af7b9c407a0
463
package server_side.problems; public enum Direction { UP, DOWN, LEFT, RIGHT; @Override public String toString() { switch (this) { case DOWN: return "Down"; case LEFT: return "Left"; case RIGHT: return "Right"; ...
17.807692
53
0.447084
4952c347ebdd7ca32ff30593c143e8969a6873bd
7,632
/* * Copyright 2018 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...
49.23871
175
0.750786
6d1aac487c70f7b13d6e641a431b7ebf4eb8b4f0
232
package abstractProof; public class AbstractRuleCitingException extends Exception { AbstractRuleCitingException(int rownNr, String errorMessage) { super("Invalid citing on row " + rownNr + "! " + errorMessage); } }
25.777778
71
0.728448
525aa19ec9012ccb0fd492a50cdec1ac98bbe3d0
368
import net.runelite.mapping.Export; import net.runelite.mapping.Implements; import net.runelite.mapping.ObfuscatedName; @ObfuscatedName("ol") @Implements("ByteArrayNode") public class ByteArrayNode extends Node { @ObfuscatedName("v") @Export("byteArray") public byte[] byteArray; public ByteArrayNode(byte[] var1) ...
23
43
0.741848
3ea8e8143160aa98a70eb914889e1cfc4a5e37dd
452
/* * SystemEnvironmentTest.java * * Copyright by proserium, all rights reserved. * MIT License: https://mit-license.org */ package net.proserium.common.environment; import org.junit.jupiter.api.Test; public class SystemEnvironmentTest { /** * TEst access system environment */ @Test p...
20.545455
81
0.699115
7e2ea002e231ec604a4a12a03d30acd5a94299a5
729
package SimulatorEvents; import Node.BaseNode; import Underlay.packets.Event; import java.util.UUID; public class ReadyEvent implements Event { private UUID nodeID; private String fullAddress; /** * create new ready event. Used by the node to declare itself as ready * @param nodeID UUID of th...
21.441176
74
0.655693
b2b3780101525889cc3dbb2f0bd41f570e67c159
500
package com.omega.amazehing.render.region; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.utils.IntMap; import com.omega.amazehing.Assets; public class SkillRegionCacheLoader extends RegionCacheLoader { public SkillRegionCacheLoader(AssetM...
31.25
89
0.8
4f9d83a18243e28bc094a40fb991c6ed4f5ce41d
818
package org.sqlite.parser.ast; import java.io.IOException; import org.sqlite.parser.TokenType; public enum TriggerEventType implements ToSql { Delete, Insert, Update, UpdateOf; public static TriggerEventType from(short tt) { if (TokenType.TK_DELETE == tt) { return Delete; } else if (TokenType.TK_INSERT ...
22.108108
114
0.674817
24e312f2f8014d2656d88770943f52334d467ab1
2,873
package io.technicrow.xdakit.model; import io.technicrow.xdakit.Utils; import jakarta.activation.DataSource; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; import org.apache.commons.lang3.builder.ToStringBuilde...
23.54918
176
0.634528
dd7ca64502797ab4f2dd8e0a32f0e2be50fbda86
356
package com.tencent.stat; import java.util.List; class p implements Runnable { final /* synthetic */ List a; final /* synthetic */ int b; final /* synthetic */ n c; p(n nVar, List list, int i) { this.c = nVar; this.a = list; this.b = i; } public void run() { n...
17.8
36
0.52809
fced4f114c9bab182f6a2cbf3998bdddec386cf8
7,011
/** * Copyright 2017 Syncleus, Inc. * with portions copyright 2004-2017 Bo Zimmerman * * 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...
40.062857
177
0.611468
0287075fce32b490617e55944ceb8fe8ebef674b
6,216
package com.nedap.go.client; import com.nedap.go.betago.BetaGo; import com.nedap.go.protocol.ClientCommandBuilder; import com.nedap.go.utilities.TileColour; import javafx.util.Pair; public class GameManager { private ClientHandler handler; private GuiConnector guiConnector; private int boardSize; pri...
32.544503
150
0.610843
4647abea54f91b7e1bc79f7b8a959a3c4798e30a
1,876
package com.dopravo.dopravomap.models; import android.content.Context; import com.dopravo.dopravomap.events.OnPlacesReadyListener; import com.dopravo.dopravomap.models.thin.PlaceModel; import com.dopravo.dopravomap.models.thin.PlacesListContainerModel; import com.dopravo.dopravomap.protocols.IAssetsConstants; import...
31.266667
89
0.755864
dd9d1f3cdb0c4a515281771e4a1d508b77b17bb5
3,813
package xx.xml.parser; /** * Created by xiaoxin on 17-8-1. */ import java.io.InputStream; import java.io.StringWriter; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.transform.OutputKeys; import javax.xm...
38.908163
108
0.659848
3d884174ff2633901e6c586a4eda6813de801fba
9,968
/* * Copyright 2011-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...
35.727599
120
0.733146
375ccea9cd08e3d70ecf6fd6eb88ef9eaca13c77
2,574
import java.util.NoSuchElementException; public class PriorityQueue { private int[] queue; //array to represent queue private int size; //current size of queue private int max; //current max element private int first; //index of first element private int last; //index of last element public Priorit...
15.230769
69
0.517094
c59d8be02708c8efc1cc08612d9e378de6d92bff
1,692
package com.clanassist.model.listmodel; /** * Created by Harrison on 6/20/2015. */ public class CPStatModel { private String text; private String subText; private String midText; private int backgroundColor; private int accountId; private String accountName; private float difference; ...
21.15
93
0.63357
aa6889ee977cdc447144e78857ffc5dfb1d4589b
5,633
package rustyeclipse.editors.autocomplete; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.eclipse.core.resources.IProject; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.Nullable; import org.eclipse.jface.text.BadLocationExc...
31.294444
111
0.698385
947f74ff30e9a0b2a3cf09c3fe49b64776497134
4,150
package net.dzikoysk.funnyguilds.feature.command.user; import java.util.concurrent.atomic.AtomicInteger; import net.dzikoysk.funnycommands.stereotypes.FunnyCommand; import net.dzikoysk.funnycommands.stereotypes.FunnyComponent; import net.dzikoysk.funnyguilds.feature.command.AbstractFunnyCommand; import net.dzikoysk.fu...
41.5
142
0.644578
086353eced51ac75561ad0acc51dc4917e556d71
1,299
package no.stelar7.api.r4j.pojo.lol.liveclient; import java.util.Objects; public class ActiveGamePlayerSummonerSpells { private ActiveGamePlayerSummonerSpell summonerSpellOne; private ActiveGamePlayerSummonerSpell summonerSpellTwo; public ActiveGamePlayerSummonerSpell getSummonerSpellOne() { ...
25.470588
81
0.626636
6dfdc19a3d6d307da6d20dbeb82dfe997b714db5
1,741
/* * Copyright 2016 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 ap...
38.688889
101
0.755887
f4af2f4057fb0c0073aacac1d41994ae5ddbc3c4
1,712
/* * 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 bookingsystem; import java.sql.ResultSet; import java.sql.SQLException; import org.junit.After; import org.junit.AfterClass; i...
24.811594
99
0.602804
a90acbcab72829e275b8ae149dd533d808e79e01
5,632
/** * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved. */ package com.seller.addinventory.web; import com.seller.addinventory.entity.TalProductIn; import com.seller.addinventory.service.TalProductInService; import com.seller.productinven.entity.TalProduct; imp...
34.981366
119
0.767933
e551a1ae9ff547bce7e370ff269b892a28064323
1,752
package Array; public class CountAndSay { public static String sayCount(int A){ if(A == 1){ return "1"; } return sayCountRec("1",A); } private static String sayCountRec(String s, int A) { if (A == 0) return s; StringBuilder sb = new Stri...
25.764706
56
0.392123
dae288f643bc8a08de853511bd4417bb64c294dd
21,852
/* * Copyright 2016, 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 applic...
43.44334
100
0.658841
4dffd0d251cfbde118c74031fc671931f1cfb393
6,832
package com.sequenceiq.mock.swagger.model; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.springframework.validation.annotation.Valida...
23.888112
145
0.693355
54921ea2fdb60816659e7bae5eb0dbb38725987c
766
import java.util.ArrayList; public class Hero { private String mName; private int mAge; private String mSuperPower; private String mWeakness; private static ArrayList<Hero> mInstances = new ArrayList<>(); public Hero(String name,int age,String superPower,String weakness){ mName=name; ...
19.641026
71
0.617493
761102ed542df54b07bce300b4b750cdf7e2751a
4,806
package com.segmentify.segmentifyandroid; import android.app.Activity; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.But...
39.073171
152
0.68685
49228204834f737c9357db417c2afc1639950049
550
/* * Copyright 2016 Basis.js framework * http://basisjs.com */ package com.basisjs.fileTypes; import com.basisjs.bundles.BasisJSMessages; import com.intellij.openapi.fileTypes.FileTypeConsumer; import com.intellij.openapi.fileTypes.FileTypeFactory; import org.jetbrains.annotations.NotNull; public class TmplFileTy...
28.947368
95
0.789091
7ef967b1941fcae0ffcf55d7ece2f9c485f932b2
733
package cn.chenc.blog.business.entity; import java.io.Serializable; import java.util.List; public class TableInfo implements Serializable { private static final long serialVersionUID = 3148176768559230877L; private String tableName; private String comments; private List<ColumnInfo> listColumn; public String...
20.942857
70
0.761255
478b70d001ae6c8f4475352388a12c8d7acd6a81
1,261
package net.buildtheearth.terraplusplus.dataset.geojson.geometry; import com.google.common.collect.Iterators; import lombok.Data; import lombok.NonNull; import net.buildtheearth.terraplusplus.dataset.geojson.Geometry; import net.buildtheearth.terraplusplus.projection.OutOfProjectionBoundsException; import net.buildthe...
30.756098
107
0.73751
e38346fac7e751d73ce6fbf6637e4e98c849494c
16,079
package com.example.lt.timeset_andorid.Search; import android.content.DialogInterface; import android.content.SharedPreferences; import android.graphics.Color; import android.graphics.Point; import android.os.Build; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log...
40.501259
142
0.578332
44365ab4d9607e3c7d91b1e8550e74c70a6a2c67
684
package de.digitalcollections.model.jackson.view; import de.digitalcollections.model.jackson.BaseJsonSerializationTest; import de.digitalcollections.model.view.RenderingHints; import org.junit.jupiter.api.Test; public class RenderingHintsTest extends BaseJsonSerializationTest { private RenderingHints createObject(...
31.090909
87
0.79386
2b59666226598e51afaf3c2cb6560bd40e602fae
753
package no.nav.tps.forvalteren.service.command.tps.skdmelding.skdparam.strategies; import no.nav.tps.forvalteren.domain.service.tps.skdmelding.parameters.InnvandringCreateSkdParametere; import no.nav.tps.forvalteren.domain.service.tps.skdmelding.parameters.SkdParametersCreator; import org.springframework.stereotype.S...
32.73913
102
0.807437
90438f750fe36eaecc1d1051c372aa98f7a082e7
17,118
package com.aifurion.oasystem.service.impl; import com.aifurion.oasystem.common.formVaild.BindingResultVOUtil; import com.aifurion.oasystem.common.formVaild.ResultEnum; import com.aifurion.oasystem.common.formVaild.ResultVO; import com.aifurion.oasystem.dao.address.AddressDao; import com.aifurion.oasystem.dao.address....
37.213043
184
0.625131
b839d3381313f4986c0f6c09f0bbebc1fca5a61d
569
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.bumptech.glide.load; import com.bumptech.glide.load.engine.Resource; import java.io.IOException; // Referenced classes of package com.bumptec...
25.863636
75
0.771529
7b7b52193f12cf150a7eafa15517c9592bd85a1b
2,382
/** * Copyright 2017 Pivotal Software, Inc. * <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 applicab...
41.789474
92
0.792611
5c0b3112981aacc65478384c226c42cfda0bbf6c
3,120
package baumkm.wardrobe.main; import baumkm.Database.MySQL_Connection; import baumkm.wardrobe.SQL.Database; import baumkm.wardrobe.cmd.OpenWardrobe; import baumkm.wardrobe.events.PlayerJoin; import baumkm.wardrobe.events.PlayerLeave; import baumkm.wardrobe.wardrobe_menu.WardrobeInteractEvent; import baumkm.war...
28.888889
86
0.591026
0b405cef9e3fbe29a51f1e40b29df01cd78bfb79
6,215
import java.io.IOException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.appengine.api.datastore.DatastoreService; import com.google.appengine.api.datastore.DatastoreServ...
38.84375
112
0.613033
e04a13e9ce6baefc29ed09c46f1be37a5515700d
1,375
package org.ofbiz.partner.scm.pricemgr.bizStockImp; import java.math.BigDecimal; import java.util.List; import org.ofbiz.base.util.UtilMisc; import org.ofbiz.entity.Delegator; import org.ofbiz.entity.GenericValue; import org.ofbiz.partner.scm.pricemgr.IBizStock; import org.ofbiz.partner.scm.pricemgr.PurchasePr...
38.194444
130
0.734545
dfa8c3743b6d37d1cb5bcd33432b4a17dc95898f
1,948
package me.ad4m.waypoints.gui; import net.minecraft.client.gui.*; import java.util.*; import net.minecraft.client.*; import org.lwjgl.opengl.*; import net.minecraft.client.renderer.*; public class GuiColorPicker extends GuiButton { public static final int[] COLORS = {0xFFCF000F, 0xFFF22613, 0xFFDB0A5B, 0xFF9B59...
33.016949
172
0.61961
6372472a882e5d38b69e41fc1a4bdabcfc5fa966
3,744
package com.example.alfasdk.Fragments; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import androidx.fragment.app.Fragmen...
31.728814
91
0.683494
38fa2b91515764251d820e9700cceb7b2842b351
320
package io.ebean; /** * Simulating the new Model with _$targetDatabase field. */ public abstract class Model { protected final String _$dbName; protected Model() { this(null); } protected Model(String dbName) { _$dbName = dbName; } public Database db() { return DB.byName(_$dbName); } }
14.545455
56
0.65
6caa6bab2a02b9ea53344fc6b03bf460ea2206ba
938
package org.apache.spark.streaming.kinesis; /** * An iterator that return the Kinesis data based on the given range of sequence numbers. * Internally, it repeatedly fetches sets of records starting from the fromSequenceNumber, * until the endSequenceNumber is reached. */ class KinesisSequenceRangeIterator extends...
78.166667
322
0.807036
9a31d97fe50604365eecb16282d705365f1a04a9
400
package com.nateshao.design.abstractfactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class NateshaoDesignDemoAbstractFactory201Application { public static void main(String[] args) { SpringApplica...
28.571429
91
0.8275
908c030e3be265adcc6aa838fa87687e9576434b
7,024
/* * Copyright (C) 2014 Lucas Rocha * * 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...
24.304498
95
0.607346
0a37353854845a3bcfcc6cbb049c5960d35a41b4
2,143
package mage.cards.r; import java.util.UUID; import mage.MageInt; import mage.abilities.common.BeginningOfUpkeepTriggeredAbility; import mage.abilities.condition.InvertCondition; import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition; import mage.abilities.decorator.ConditionalOneShotEffect; impor...
35.131148
120
0.747084
bb62fa1baedfbfbfc388c73541f6b0b1bbb93d19
9,688
/** * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * <p> * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * <p> * http://aws.amazon.com/apache2.0 * <p> * or ...
40.877637
184
0.647709
675e3d911cddb869aef31bf8312a02ef3a613efe
761
package org.hswebframework.web.authorization.annotation; import org.hswebframework.web.authorization.access.DataAccessConfiguration; import org.hswebframework.web.authorization.access.DataAccessController; import java.lang.annotation.*; @Target({ElementType.ANNOTATION_TYPE, ElementType.METHOD}) @Retention(RetentionP...
27.178571
99
0.770039
65f45baf88b7595ec95adf66384f8982a01ba01e
4,298
package thread.lock; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class ReentrantLockTest { private static Lock testLock = new ReentrantLock(); private static Condition finish = testLock.newCondition(); private...
35.229508
82
0.394137
727c9a275ed0be36929b08cb8214a08f6f694ac8
1,242
package me.dslztx.assist.util; import me.dslztx.assist.util.metric.TimerAssist; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @Ignore public class ExecuteShellAssistTest { private static final Logger logger = LoggerFactory.getLog...
30.292683
103
0.640097
02e12d4592d2e33c63f3cc00030ff2f7e302e32e
1,893
package fr.xephi.authme.security.crypts; import fr.xephi.authme.ConsoleLogger; import fr.xephi.authme.security.HashUtils; import fr.xephi.authme.security.crypts.description.HasSalt; import fr.xephi.authme.security.crypts.description.Recommendation; import fr.xephi.authme.security.crypts.description.SaltType; import fr...
32.637931
114
0.731115
6ff49bd62f6a3d60305692be5225f1e9f9cf72c6
2,889
package ga.epicpix.network.common.players; import com.google.gson.Gson; import com.google.gson.JsonObject; import ga.epicpix.network.common.net.websocket.Errorable; import ga.epicpix.network.common.net.websocket.WebSocketRequester; import ga.epicpix.network.common.net.websocket.requests.GetPlayerOrCreateRequest; impor...
45.140625
121
0.718588
c5ae1cc7461a83e5506e8556b43705ddda86fe4e
5,690
package de.tototec.utils.jface.viewer; import java.util.LinkedList; import java.util.List; import java.util.function.BiFunction; import java.util.function.Function; import org.eclipse.jface.viewers.ColumnViewerEditor; import org.eclipse.jface.viewers.ColumnViewerEditorActivationEvent; import org.eclipse.jface.viewers...
31.436464
108
0.760633
96ef592fff8d5dae632db4be47b449af6225d3d3
10,634
package eu.fp7.secured.policy.impl; import java.io.IOException; import java.lang.reflect.InvocationTargetException; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; import java.util.Set; import java.util.logging.Logger; import eu.fp7.secured.exception.po...
32.820988
323
0.750047
92de49bf779f550344747c18e96c1ae719cd3afe
714
package com.qf.tgp.plamtv.utils; /** * Created by 朱雨桐 on 2016/9/19. */ public class TVConstants { public static final int GO_MAIN = 100; public static final long DELAY_TIME = 500; public static String[] COUNT = {"09202132","09202133","09202134","09202138","09202140","09202226","09202227","09202142","092...
51
279
0.686275
04b1d2e5a15ccc54ef68a6bbc5b2dc65f0590206
1,179
package execution.all_commands; import execution.Command; import execution.LoopCommand; import java.util.Arrays; import java.util.List; import model.*; import parsing.Parser; public class If extends LoopCommand implements Command { @Override public double execute(List<String> parameters, TurtleModel TurtleModel...
25.085106
110
0.691264
1c39a8bdce6f6c2452becc3402bd50efbc682a70
11,170
/* * Copyright 2018 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 applica...
36.622951
100
0.604208
e8eb2465971f0baead5c84816ac2834ef547baca
589
class Solution { public void XXX(int[] nums) { int a=0; int b=0; int c=0; for(int i=0;i<nums.length;i++) { if(nums[i]==0) a++; if(nums[i]==1) b++; if(nums[i]==2) c++; } for(int i=0;i<nums.length;i...
15.918919
36
0.256367
66f27cf4a5f788808890301a5086bb241043bf5d
6,077
/* ======================================================================== * PlantUML : a free UML diagram generator * ======================================================================== * * (C) Copyright 2009-2020, Arnaud Roques * * Project Info: https://plantuml.com * * If you like this project or if ...
34.528409
116
0.706105
a3c173288bbcd3a058f08a47a94cc12a1f3790f6
1,796
package no.difi.dcat.harvester.crawler; import java.net.URL; import javax.annotation.PostConstruct; import no.difi.dcat.harvester.settings.ApplicationSettings; import org.elasticsearch.client.Client; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; impo...
32.071429
150
0.837973
9ab5df72999123eaccb6beb7ed3dd02d64f59a4d
543
package com.sukko.sjq; import com.sukko.sjq.scheduler.QuartzConfig; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.context.annotation.Import; @SpringBo...
30.166667
96
0.81768