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
ab08d264448c0c3e39e7f966b0f35f772d2169c4
323
public void union(int a, int b) { a = find(a); b = find(b); if (a != b) { if (rank[a] > rank[b]) { parent[b] = a; } else if (rank[b] > rank[a]) { parent[a] = b; } else { parent[b] = a; rank[a]++; } noOfComponents--; ...
21.533333
39
0.352941
cba9898d71577d33ecf418fcab11ae01a847fd85
414
package engine; import java.util.function.BiConsumer; public interface TypeBuilder<E extends Type, R extends TypeBuilder<E, R>> extends BindableType<R> { boolean setNextId(int id); R buildName (String name); R buildImagePath (String imagePath); R buildSize (double size); R buildId (in...
17.25
99
0.652174
b3e8470789ad1cfd4b1b69214dd980038d177965
794
package com.akshat.java.collections.hashMap; import java.util.LinkedHashMap; import java.util.Map; /** * * @author bethan */ public class LinkedHashMapExample { public static void main(String[] args) { LinkedHashMap<String, Integer> phonebook = new LinkedHashMap(4, 0.75f, true); p...
27.37931
93
0.599496
9c5f696fea30cad123e587f22a3bf1022de5424f
1,735
package com.eduardo.jogo; import java.util.Arrays; public class GameBoard { private final int[] row1 = {0, 1, 2}; private final int[] row2 = {3, 4, 5}; private final int[] row3 = {6, 7, 8}; private final int[] column1 = {0, 3, 6}; private final int[] column2 = {1, 4, 7}; private final int[] c...
28.442623
105
0.597695
25c519dca7ad8201788834609295c74a98ad3124
12,553
/* * Copyright (c) 2014, PostgreSQL Global Development Group * See the LICENSE file in the project root for more information. */ package org.postgresql.hostchooser; import static java.util.Collections.shuffle; import org.postgresql.Driver; import org.postgresql.PGProperty; import org.postgresql.log.Log; import or...
36.071839
158
0.695929
1641db69a9763cf8f3b68463b5c6966cff324c10
5,766
/* * Copyright 2013, Morten Nobel-Joergensen * * License: The BSD 3-Clause License * http://opensource.org/licenses/BSD-3-Clause */ package com.mortennobel.imagescaling; import java.awt.*; /** * This class let you create dimension constrains based on a actual image. * * Class may be subclassed to create user ...
32.033333
137
0.719043
619381107f2ec736f800a797ac5c470c6278fa5b
294
package net.minecraft.client.renderer.color; import net.minecraft.item.ItemStack; import net.minecraftforge.api.distmarker.Dist; import net.minecraftforge.api.distmarker.OnlyIn; @OnlyIn(Dist.CLIENT) public interface IItemColor { int getColor(ItemStack p_getColor_1_, int p_getColor_2_); }
26.727273
60
0.819728
20916893036a7d322f6a384b8c60a0e8ff3a3470
513
package com.codeborne.selenide.conditions.webdriver; import org.openqa.selenium.WebDriver; import javax.annotation.CheckReturnValue; import javax.annotation.ParametersAreNonnullByDefault; @ParametersAreNonnullByDefault public class UrlStartingWith extends UrlCondition { public UrlStartingWith(String expectedUrl) {...
25.65
61
0.805068
c1cf90d1bacbad389bfe9a65a95dde17c185e8f6
700
package java8_in_action.chapter2; /** * Created by tlanders on 3/27/2016. */ public class Apple { String color; int weight; public Apple(String color, int weight) { this.color = color; this.weight = weight; } public String getColor() { return color; } public voi...
17.948718
44
0.517143
4ff18baf74fcd990ab6a7c0d611cd4bde5c89bbc
1,388
package io.github.intellij.dlanguage.stubs.types; import com.intellij.psi.stubs.StubElement; import com.intellij.psi.stubs.StubInputStream; import io.github.intellij.dlanguage.psi.DLanguageSharedStaticDestructor; import io.github.intellij.dlanguage.psi.impl.DLanguageSharedStaticDestructorImpl; import io.github.intelli...
40.823529
148
0.814121
5dace2f98257d591c0921de33f6ec2b7e3e0b978
12,084
/* * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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 ...
38.361905
129
0.699106
dc23085306d56172e27943c30641782c9fe1d942
119
package java.lang.annotation; public interface Annotation { public Class<? extends Annotation> annotationType(); }
14.875
53
0.773109
05c05fb9fa7df9b97d2dc02105c4544e9444e7ea
6,390
package org.humancellatlas.ingest.messaging; import lombok.NoArgsConstructor; import org.humancellatlas.ingest.config.ConfigurationService; import org.humancellatlas.ingest.core.*; import org.humancellatlas.ingest.core.web.LinkGenerator; import org.humancellatlas.ingest.export.job.ExportJob; import org.humancellatlas....
42.039474
144
0.716901
75fb7cc219b83ed7b13fcbc57d443bf5a9626ed8
2,940
package lc.server.database; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import lc.api.stargate.StargateAddress; im...
30.947368
95
0.70102
3723611bc3af241f57aa55f2a9aad7b90e1c07de
3,545
package pcosta.kafka.spring.processor; import pcosta.kafka.api.PlatformErrorListener; import pcosta.kafka.spring.ReceiverConfigurationProvider; import pcosta.kafka.api.annotation.EnableListenerConfiguration; import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.RoundEnvironment; imp...
42.202381
170
0.730324
a7b79218bda665fbe924165f1fc35fc79aeb963d
680
package de.mwg.web.service.mapper; import de.mwg.web.domain.*; import de.mwg.web.service.dto.ScenarioDTO; import org.mapstruct.*; /** * Mapper for the entity Scenario and its DTO ScenarioDTO. */ @Mapper(componentModel = "spring", uses = {UserMapper.class, AnnotationAsPictureMapper.class}) public interface Scenario...
24.285714
94
0.670588
f638ee5f0eaffa6ae4eaba2bca511782e607c259
453
package org.joshy.gfx.animation; /** * Created by IntelliJ IDEA. * User: joshmarinacci * Date: Apr 17, 2010 * Time: 9:11:31 AM * To change this template use File | Settings | File Templates. */ public interface Animateable { public static final int INFINITE = -1; public void onStart(long current); pu...
25.166667
64
0.695364
b0ad879f257224564e69c3f88a44822bca2528a4
12,099
/* * Copyright 2017-2022 Amazon.com, 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. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "licen...
31.34456
139
0.611208
c78ec8045af8dc361296413984f759c264c9e288
989
/* Restrictive Candy Crush Given a string S and an integer K, the task is to reduce the string by applying the following operation: Choose a group of K consecutive identical characters and remove them. The operation can be performed any number of times until it is no longer possible. Example 1: Input: K = 2 S = "gee...
26.026316
173
0.759353
4d734423636532fa7a46169b59fd9dc170b26d1b
6,908
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/* * 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 ...
17.05679
810
0.805153
b79e3d7aa1146d62f3c5d86fe470b31a980707e5
2,876
package me.niklas.abbreviation.input; import me.niklas.abbreviation.enums.EventType; import me.niklas.abbreviation.enums.GamepadInput; import me.niklas.abbreviation.events.EventManager; import me.niklas.abbreviation.events.EventSubscriber; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Created by Nik...
36.405063
113
0.583449
967c534e5326e1c81db4f7338a06acca9619920e
1,152
package com.springCore.javaConfigs.JavaBasedConfigToInjectMultipleConfig; /** * Created by chetan on 19/12/16. */ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class TextEditorConfig { //When @Beans have dependencies on one an...
30.315789
103
0.739583
f250eca6d61a6816e6b28b488343a90fe5ee87fa
6,593
package org.twz.cx.mcore; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.twz.cx.element.*; import org.twz.cx.mcore.communicator.IChecker; import org.twz.cx.mcore.communicator.IResponse; import org.twz.cx.mcore.communicator.ListenerSet; import org.twz.dag.Parameters; im...
26.266932
140
0.661307
72eef5c5566722c06f36d311145318527e217a13
509
package xyz.neopan.api.iam; import lombok.Getter; import lombok.RequiredArgsConstructor; import org.jetbrains.annotations.NotNull; /** * 三方用户ID * * @author neo.pan * @since 2020/1/30 */ @Getter @RequiredArgsConstructor public final class XyzIdpUserId extends XyzPrincipal { @NotNull @Override public ...
14.970588
54
0.642436
ac49e7a44c3792afdbf4a051e501edce11b50f12
6,218
package asf.dungeon.view.token; import asf.dungeon.model.fogmap.FogState; import asf.dungeon.model.token.Fountain; import asf.dungeon.model.token.Token; import asf.dungeon.view.DungeonWorld; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g3d.Mate...
45.057971
168
0.569154
c6d695868fe4b956ef94f4bd28f96888b1f96403
1,895
/* * Copyright (c) 2015 The University of Auckland * * 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...
30.564516
96
0.756201
c15caa4b05e1c8cfa4bb9240e5207ba3c9c91aea
2,000
/* * Copyright (c) 2015 ketao1989.github.io. All Rights Reserved. */ package io.github.ketao1989.dubbo.consumer; import com.alibaba.dubbo.config.ApplicationConfig; import com.alibaba.dubbo.config.ReferenceConfig; import com.alibaba.dubbo.config.RegistryConfig; import com.alibaba.dubbo.rpc.service.GenericService; impo...
32.786885
125
0.6935
3ab6e66f85dc3f467f773fa982a3dade4e8c8507
836
package science.monke.internal.order.entity; import io.quarkus.hibernate.orm.panache.PanacheEntityBase; import java.time.OffsetDateTime; import java.util.UUID; import javax.persistence.Basic; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persist...
24.588235
61
0.789474
d62ec69094920502016a7e23e95c35df30f9bcef
3,035
package act.route; /*- * #%L * ACT Framework * %% * Copyright (C) 2014 - 2017 ActFramework * %% * 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/licens...
31.947368
91
0.693575
cfe9f97f900e6a0f8bd3eb0eaf30da6b926c9ff9
1,284
/* * Copyright 2017 Apereo * * 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 wr...
22.928571
75
0.755452
2eb66cfb3102afb8eb59db5c051804369776ecd8
10,611
/** * Copyright (C) 2020 Yahoo Japan Corporation. All Rights Reserved. */ package jp.co.yahoo.adsdisplayapi.sample.basic.report; import java.util.Arrays; import java.util.Collections; import java.util.List; import jp.co.yahoo.adsdisplayapi.sample.repository.ValuesRepositoryFacade; import jp.co.yahoo.adsdisplayapi.sa...
40.811538
195
0.700876
7c0d3333083947346b3f23dc59c195b607bb2c81
2,647
package com.iustu.identification.ui.widget; import android.content.Context; import android.os.Parcelable; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.widget.FrameLayout; import an...
27.863158
81
0.661504
5cb620e1ae424057907b7227a16cb1f32f64f7bc
728
package dynamic_programming; import java.io.BufferedReader; import java.io.InputStreamReader; /** * * @author minchoba * 백준 2748번: 피보나치 수2 * * @see https://www.acmicpc.net/problem/2748/ * */ public class Boj2748 { private static final int INF = 92; public static void main(String[] args) throws Exception{ ...
24.266667
75
0.623626
0a02728c973a65043966bd746e158a7d939c4f93
69
package net.my4x.population.model; public enum Gender { M,F; }
11.5
35
0.681159
4d57ad71332694d688aaf7beb66b0f8a32ed1fe9
3,952
package io.limberest.provider; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.springframework.beans.factory.ListableBeanFactory; import org.springframewor...
34.666667
105
0.59413
dce6aa6c9a0662d8d341c17084bbefff78a76c80
6,333
/* * Copyright (c) 2018-2019 LabKey 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 l...
38.852761
180
0.680246
1f43bd884abd69da9a4596c2f0474b170d4f0d36
5,347
package pk.risiko.ui.screens; import pk.risiko.dao.SaveGameDAO; import pk.risiko.pojo.SaveGameContent; import pk.risiko.ui.GameWindow; import pk.risiko.ui.elements.DefaultDesigns; import pk.risiko.ui.elements.GameButton; import pk.risiko.ui.elements.SaveGameUIRow; import pk.risiko.ui.listener.MouseClickedListener; imp...
35.885906
120
0.652515
e4e8f7749ce60e057c421171500d4efec4782a3f
1,168
package seedu.address.ui; import static java.util.Objects.requireNonNull; import java.net.URL; import java.util.Locale; /** * Available reader view styles. */ public enum ReaderViewStyle { DEFAULT(requireNonNull(ReaderViewStyle.class.getResource(Constants.STYLESHEETS_FILE_FOLDER + "default.css"))), SEPIA(r...
29.948718
114
0.734589
bb65ee1cbcf57e3c2b9df2fcbf0dd6dcd9699f92
615
package com.game30.javagl; /** * A simple interface represents a OpenGL magic integer. Magic integers are the integer values that represent something * unique. Usually these are encapsulated within a static integer but the binding is still weak. This interface allows * an enumeration to define the valid options ...
29.285714
120
0.713821
40c73ea8fdea5638a849221435adbcfdc559fbfe
27,681
package net.minecraft.entity.projectile; import java.util.Iterator; import java.util.List; import net.minecraft.block.Block; import net.minecraft.block.BlockLiquid; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.Entity; import net.minecraft.entit...
48.478109
363
0.610744
1597c7501dd4390dceda51751714898b634c0b6b
529
package io.github.dunwu.toolbox.scheduler.service.impl; import io.github.dunwu.data.service.BaseService; import io.github.dunwu.toolbox.scheduler.entity.SchedulerInfo; import io.github.dunwu.toolbox.scheduler.service.SchedulerInfoService; import org.springframework.stereotype.Service; /** * <p> * 调度信息表 服务实现类 * </p...
26.45
106
0.782609
993023044f8cdc9d5f9ccd0dbfa4aab5317a93f0
1,215
package org.linuxlsx.algo.leetcode; import java.util.ArrayList; import java.util.List; /** * Solution of <a href="https://leetcode.com/problems/permutations/">Permutations</a> * * @author linuxlsx * @date 2019-04-28 */ public class Permutations { /** * 使用回溯法来解决问题 * @tag 回溯 * @param nums ...
24.795918
88
0.538272
b8c5808e06007a72bcc40f79e1084a8dc7bf6666
7,675
package org.moskito.control.connectors; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import net.anotheria.moskito.core.config.MoskitoConfiguration; import net.anotheria.util.StringUtils; import org.distributeme.core.ServiceDescriptor; import org.moskito.control.common.AccumulatorDataItem; import or...
33.960177
144
0.771466
46aaf7b393671644a15bf13be96c2571a397a4a7
11,439
/* * $Id$ * * Copyright (c) 2004-2005 by the TeXlapse Team. * 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 */ package...
38.385906
140
0.594195
da355dc6b8c107d2127162a8316a5ed919bd536b
3,247
/* * Created on :2016年8月15日 * Author :songlin * Change History * Version Date Author Reason * <Ver.No> <date> <who modify> <reason> * Copyright 2014-2020 武侠科技 All right reserved. */ package cn.wuxia.component.mail.exception; public class EmailException extends RuntimeExcept...
37.755814
118
0.632276
24ef9c15dc9f84168700bea04b0c9511532a2110
3,239
/* * 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 ...
30.556604
99
0.724606
19ae5318969bfbbc9ec789444e3d0dfff4e03c4b
471
package com.example.avsemananove.alemanha.artistas; import android.os.Bundle; import androidx.appcompat.app.AppCompatActivity; import com.example.avsemananove.R; public class HeidiActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(save...
27.705882
65
0.762208
46727b0e3738781f519367ba799d9f28586790bc
902
package io.leasingninja.riskmanagement.application; import static java.util.Objects.*; import org.springframework.stereotype.Component; import io.hschwentner.dddbits.annotation.ApplicationService; import io.leasingninja.riskmanagement.domain.ContractNumber; import io.leasingninja.riskmanagement.domain.ContractReposi...
25.055556
84
0.827051
331401bcb860dcf4ff6eb17e8bcc7add1e02e0ed
807
package com.slack.api.lightning.context.builtin; import com.slack.api.app_backend.views.response.ViewSubmissionResponse; import com.slack.api.lightning.context.Context; import com.slack.api.lightning.response.Response; import com.slack.api.lightning.util.BuilderConfigurator; import lombok.*; @Getter @Setter @Builder ...
27.827586
96
0.768278
4506c73da5bb05a9e87b84d86b9a768b92ef9724
141
package lmu.de.unificiencyandroid.components.groups; public interface GroupPasswordEnterListener { public void onPwEntered(String pw); }
28.2
52
0.822695
d8798340d545a93ea4cbd66d9f8049351b2f0a90
319
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sa.lib; import java.io.Serializable; /** * * @author Sergio Flores */ public enum SLibRpnOperator implements Serializable { ADDITION, SUBTRACTION, MULTIPLICATION, DIVISION, UNDEFINED }
15.190476
53
0.689655
78337e00c8244aab9b8bfcf69a9629b37417d7a8
3,316
package com.oscar.clusterlob.db; import java.sql.Connection; import java.sql.DriverManager; import java.sql.SQLException; import java.util.ArrayList; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import com.oscar.cluster.core.BaseConnection; im...
29.607143
113
0.689385
9fe0db77060eb239fedaaefadf6e8dbcc00d7fec
3,522
/* * Copyright 2018 JDCLOUD.COM * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:#www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
19.566667
93
0.595116
04fcbab2b88b36ec9855fcaf98a48bdd402cce18
7,079
/* * Copyright 2014-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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
32.177273
101
0.729058
8d5ee578eabdf524c25879a3f5bf3662f4f6c11a
2,334
package com.mirf.queue; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.io.IOException; import java.nio.file.*; public class NicMsLesion implements FileProcessor { private String command; private static final Logger log = LoggerFactory.getLogger(""); public NicMsLesion(String comma...
32.416667
143
0.602828
8e9d565b0f01caf6073f3c6499d44e5cae0d2dfd
1,459
/** */ package de.uni_hildesheim.sse.vilBuildLanguage; /** * <!-- begin-user-doc --> * A representation of the model object '<em><b>Expression Statement</b></em>'. * <!-- end-user-doc --> * * <p> * The following features are supported: * </p> * <ul> * <li>{@link de.uni_hildesheim.sse.vilBuil...
31.042553
139
0.652502
c013c7634b2f8993504fd1ffc4dc9b4793391496
608
final class Solution { private static final String generate(final int limit) { final StringBuilder sb = new StringBuilder(); int n = 1; while (sb.length() < limit) { sb.append(n++); } return sb.toString(); } private static int solve(final int limit) { final char[] chars = generate(limit).toCharArray...
21.714286
58
0.634868
bb3c757df0e30648a4d02efef8a7ade5b517555e
104
package com.lachesis.mnisqm.module.user.domain; class SimpleDeptSchedulInfo extends DeptSchedulInfo { }
26
53
0.846154
f319c517f862591d3345ad3424868d5e5192637b
10,781
package assignment1; import java.security.PublicKey; import java.util.ArrayList; import java.util.Arrays; import java.util.LinkedList; import java.util.List; import java.util.Set; import java.util.TreeSet; public class MaxFeeTxHandler { private UTXOPool myUtxoPool; /** * Creates a public ledger whose curr...
35.347541
138
0.620814
bbc7fb128d222cc0a767f89affd8d75899da5519
3,236
package top.breezes.main; import org.apache.maven.plugin.AbstractMojo; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.MojoFailureException; import org.apache.maven.plugins.annotations.Parameter; import top.breezes.commonable.handler.GenerateCodeAble; import top.breezes.config.out...
26.743802
90
0.601669
71ff2ababba6780ece31f810d02edcfc399c6aa7
1,034
package com.meituan.dao; import java.sql.Timestamp; import java.util.List; import com.meituan.domain.Order; public interface OrderDAO { //查询订单 public List<Order> getListByBusi(int busiId,int page); //查询商家评价的总页数 // public long getTotalPageByBusi(int busiId); //user查询订单 public List<Order> getListByU...
27.945946
74
0.753385
d50b8232456b587200e82005caeb56084eb850ea
1,086
/* * Copyright (c) 2011-2025 PiChen */ package com.github.peterchenhdu.future.auth.cas.client.validation; import com.github.peterchenhdu.future.auth.cas.client.util.CommonUtils; import java.util.ArrayList; import java.util.List; import java.util.Arrays; /** * Holding class for the proxy list to make Spring confi...
23.106383
87
0.64825
bfe18a563fd56513991e734863ad2d66a8d32aa6
1,265
package org.amv.access.sdk.hm.secure; import com.google.common.base.Optional; import io.reactivex.Observable; import static com.google.common.base.Preconditions.checkNotNull; public class SingleCodecSecureStorage implements Storage, SecureStorage { private final Storage storage; private final Codec codec; ...
32.435897
85
0.66087
14bdc24dcf95939b28ec4f7a93533de3dce06266
249
package net.savantly.sprout.domain.home; import lombok.Data; import lombok.experimental.Accessors; @Data @Accessors(chain = true) public class SimpleHomePage implements HomePageData { private HomePageDataType dataType; private Object data; }
17.785714
53
0.803213
14e0543731198f94b927de23814df79815912a17
2,642
/* * Copyright 2019-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...
37.211268
132
0.707797
6d5ed0c3608282a1f7cd15009bb3ce01353f8dcd
1,570
/* * Copyright © 2017 AperEntertainment <aper.entertainment@gmail.com> * * This file is part of aperjcommon. * * Licensed under the MIT license. For more information, * see the LICENSE file. */ package com.aperlambda.apercommon.connection; import java.io.IOException; import java.util.function.Consumer; /** *...
27.54386
99
0.65414
1b4a918e6cca38450cb62a8bcd76686ce8a43641
3,465
package part_1.easy.backtracking; import sun.reflect.generics.tree.Tree; import java.nio.file.Path; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; public class BinaryTreePaths257 { private static int[] array = { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; private static List<TreeNode> node...
27.72
95
0.534199
c75109a43d07995d14c3693b35d0e3751407cfb1
4,337
// ============================================================================ // // Copyright (C) 2006-2021 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
45.177083
120
0.59834
d2f4a45567b6c1f126d2e858110c7aaf29737be6
3,667
package com.example.crowderapp.controllers; import android.util.Log; import com.example.crowderapp.controllers.callbackInterfaces.ScanObjectCallback; import com.example.crowderapp.models.ScanObj; import com.example.crowderapp.models.dao.ScanObjectDAO; import com.example.crowderapp.models.dao.ScanObjectFSDAO; import c...
32.741071
110
0.632942
ffe85d81bdfeb5564830d5c4656eb723e298e296
6,437
package sphaera.ru.qurantinemap.data; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.os.AsyncTask; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Reader; import java.io.UnsupportedEncodingException; import java.net.HttpU...
35.563536
100
0.604629
30b07c7ccc5d254fe923a77b7968e92112434b63
672
package com.cw.jerrbase.activity.other; import android.os.Bundle; import android.support.annotation.Nullable; import com.cw.jerrbase.R; import com.cw.jerrbase.base.activity.BaseTbActivity; /** * @version V1.0 * @ClassName: ${CLASS_NAME} * @Description: (这里用一句话描述这个类的作用) * @create by: chenwei * @date 2016/12/22 1...
23.172414
66
0.721726
c8549ddbfe6164c94424ecd2f84a8fac37f007dd
765
package retrogdx.games.bam.nodes; import com.badlogic.gdx.scenes.scene2d.ui.Table; import retrogdx.games.bam.readers.Sqb; import retrogdx.ui.nodes.AssetFileNode; import retrogdx.ui.previews.TextPreview; import retrogdx.utils.SmartByteBuffer; import java.util.Map; public class SqbNode extends AssetFileNode { publ...
27.321429
79
0.670588
acb87bbd0da9a99d12590d372f70666166426ff7
7,540
/** * Copyright Indra Soluciones Tecnologías de la Información, S.L.U. * 2013-2019 SPAIN * * 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...
37.512438
104
0.759019
101ddf59f3fc23f0ded0e1c9465243c73530ed0a
3,404
package br.com.casadocodigo.casadocodigo.livro.domain; import java.math.BigDecimal; import java.time.LocalDate; import java.time.LocalDateTime; import javax.persistence.EntityManager; import javax.validation.constraints.Future; import javax.validation.constraints.Min; import javax.validation.constraints.NotBlank; imp...
21.408805
110
0.759988
78d6d0ebf298f88ae2815f3a712ae27f4d06a492
905
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.vespa.hosted.controller.versions; import com.yahoo.component.Version; import java.util.Objects; /** * The target Vespa version for a system. * * @author mpolden */ public class VespaVersionT...
23.205128
104
0.680663
8e4ebf8082bdbdd7d255e84b220b596c35ecfac5
282
package com.delllogistics.spring.annotation; import java.lang.annotation.*; /** 自定义用户注解 * Created by Administrator on 2017-11-15. */ @Target(ElementType.PARAMETER) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface CurrentUser { String value() default ""; }
18.8
44
0.755319
e5b56ea77d79bc121fcc416a5b3fb9ccd796a8d6
9,582
/* ### * IP: GHIDRA * * 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 writin...
33.270833
105
0.743269
97547be4e170860c86de4ce73e221273bc0e365b
2,896
/******************************************************************************* * Copyright (c) 2000, 2016 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 * which accompanies this distribution, and is available at ...
37.128205
83
0.554903
75ffabb1a9b52b1a09d7a4b54fde4514a56be734
2,952
package edu.sjsu.cs175.sfhealthscores.activities; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.design.widget.BottomNavigationView; import android.support.v4.app.Fragment; import android.support.v4.app.FragmentManager; import android.support.v4.app.FragmentTransaction; imp...
36.444444
91
0.620596
f2321c7f0e33da70b1ebb8588a966ee28ced0bc3
6,702
package com.my.lit.adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.recyclerview.widge...
44.979866
157
0.666368
ae565478be019d7fd64615f97326b28478d5b417
1,345
package com.self.thread.safe; class SynchronizedObject{ private String username = "a"; private String password = "aa"; public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getPassword() { return password; } pu...
23.596491
74
0.67658
aba76e870069e63e91dcda433f73c54f859a7ed0
5,286
/** * Copyright (C) 2014 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.sesame.graph.convert; import java.util.Collection; import java.util.List; import java.util.Set; import org.joda.convert.StringConvert; import org.joda.convert...
34.54902
114
0.713394
4c4285c26e39f6ca841f7030cf86a47049920683
174
package org.jboss.weld.tests.contexts.request.filtering; import javax.enterprise.context.RequestScoped; @RequestScoped public class Foo { public void ping() { } }
15.818182
56
0.747126
3e0435d1aa6cb709fa6444b4ae5aad71adcb758a
4,138
/* * Copyright (c) 2015-2016 William Bittle http://www.praisenter.org/ * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted * provided that the following conditions are met: * * * Redistributions of source code must retain the abov...
34.198347
106
0.696472
8ee5576fa02917ada720abfdbe0a8aebe0986afe
1,333
package io.jakec.fourteenerchecklist; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.ArrayAdapter; import android.widget.ListView; import java.util.ArrayList; import java.util.List; import io.jakec.fourteenerchecklist.fourteeners.Fourteener; import io.jakec.fourteene...
31.738095
102
0.739685
8985bc29e32c5ba09a42919cb0d2ddb3cca4987a
95,031
/* * Copyright (C) 2010 {Apertum}Projects. web: www.apertum.ru email: info@apertum.ru * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your ...
47.208644
306
0.626248
8490102e283ee57457e9bcf6ca52f9a99006bf94
12,530
///*|----------------------------------------------------------------------------- // *| This source code is provided under the Apache 2.0 license -- // *| and is provided AS IS with no warranty or guarantee of fit for purpose. -- // *| See the project's LICENSE.md for details. ...
44.910394
130
0.684118
e249b3fdf2b39865e15f20e5c75bf9e5c27468f7
270
package com.ultimalabs.rotatorshell.common.model; import lombok.Data; /** * Batch input data point - azimuth, elevation and duration */ @Data public class BatchInputDataPoint { private final AzimuthElevation azimuthElevation; private final int duration; }
18
59
0.762963
8538c6c229112d73a2b7e7a18a11f1db97366d63
5,274
/* * Copyright 2002-2011 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 ap...
33.169811
100
0.778726
7a0316fb851d776f6c80182281b295f11581656d
1,681
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.packtpub.netbeansjavaee.managedbean; import com.packtpub.netbeansjavaee.jpa.dao.CustomerFacade; import com.packtpub.netbeansjavaee.jpa.entity.Customer; import java.util.List; import javax.ejb.EJB; import jav...
22.716216
62
0.675193
29f75620046e528d18a3818cf174b4bcc311acf5
1,386
package jam.lang; import org.junit.*; import static org.junit.Assert.*; final class TraversableImpl implements Traversable { private final int length; public TraversableImpl(int length) { this.length = length; } @Override public int length() { return length; } } public class Tr...
23.491525
69
0.637807
fa3c277df1e00697e07af5cb1b9f858c63036bda
766
/* * Copyright (c) 2021 - for information on the respective copyright owner * see the NOTICE file and/or the repository https://github.com/carbynestack/cli. * * SPDX-License-Identifier: Apache-2.0 */ package io.carbynestack.cli.util; import com.github.scribejava.core.model.OAuth2AccessToken; import lombok.experim...
28.37037
81
0.691906
13c9993e9cfd62663b414eb11768c9a1b23409a4
1,361
package com.beanbox.test.main; import com.beanbox.context.suppport.ClassPathXmlApplicationContext; import com.beanbox.test.pojo.IUserService; import com.beanbox.test.pojo.UserBean; import org.junit.Test; /** * @author: @zyz */ public class ApplicationMainAnnotation { @Test public void test_property() { Clas...
32.404762
118
0.784717
bb7da946958fd560a01af1cbfe64732e679b5aac
1,639
/** * TLS-Attacker - A Modular Penetration Testing Framework for TLS * * Copyright 2014-2022 Ruhr University Bochum, Paderborn University, Hackmanit GmbH * * Licensed under Apache License, Version 2.0 * http://www.apache.org/licenses/LICENSE-2.0.txt */ package de.rub.nds.tlsattacker.core.protocol.handler; impo...
37.25
114
0.782184
4fb0a2334d42d652af2be70a76968b9c63f231b1
2,108
package org.uma.jmetal.bzu.utils; import java.io.File; import java.io.FileNotFoundException; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class CSVFileUtils { private static final String COMMA_DELIMITER = ","; public static int [][] readTestCaseFaults(String director...
31.939394
99
0.575427
872bad59e9e79d972f6e020411469832ae1657df
2,971
package org.matomo.sdk.extra; import org.junit.Test; import org.junit.runner.RunWith; import org.matomo.sdk.TrackMe; import org.matomo.sdk.Tracker; import org.mockito.ArgumentCaptor; import org.mockito.junit.MockitoJUnitRunner; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.notNul...
35.369048
95
0.661057
e997bf6144b571d9ca507b195e999c04f388c075
1,073
package com.example.smartparking.model; import androidx.annotation.NonNull; import androidx.room.ColumnInfo; import androidx.room.Entity; import androidx.room.PrimaryKey; @Entity(tableName = "users") public class User { @PrimaryKey(autoGenerate = true) @NonNull @ColumnInfo(name="userid") private int ...
19.509091
66
0.633737
a458cb87d55dff1f10cc5ce323bede8ab6ae81e2
1,338
/* * Copyright 2020 The gRPC 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 or agree...
31.857143
93
0.762332
af21b10cdfe30c5b8fb1bc5039f392ef627a112d
1,025
package org.ovirt.engine.core.vdsbroker.vdsbroker; import org.ovirt.engine.core.common.vdscommands.VmBackupVDSParameters; import org.ovirt.engine.core.vdsbroker.irsbroker.VmBackupInfo; public class GetVmBackupInfoVDSCommand<P extends VmBackupVDSParameters> extends VdsBrokerCommand<P> { private VmBackupInfo vmBac...
29.285714
101
0.699512
8970c4a9bc67fe1b0572c10d0a7dfcb489dce240
521
package com.ravram.nemesis.util.misc; import java.util.regex.Matcher; public class Strings { public static String escape (final String string) { final String escaped = Matcher.quoteReplacement(string) .replace("\"", "\\\"") .replace("\f", "\\f") ...
24.809524
55
0.462572