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
39afdb0aa1834269850974216e2ec490da0960da
482
package org.optaplanner.osgi.common.persistence; import java.io.File; import java.net.URL; import org.optaplanner.core.api.domain.solution.Solution; /** * Data Access Object for the examples. */ public interface SolutionDao { String getDirName(); File getDataDir(); String getFileExtension(); @SuppressWarni...
19.28
64
0.775934
bf0803ab5a106cfa443dd382b8576e9ba87c424a
19,091
/* JScrollBar.java -- Copyright (C) 2002, 2004, 2005, 2006, Free Software Foundation, Inc. This file is part of GNU Classpath. GNU Classpath 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 2, ...
28.075
94
0.671311
ab8cdea6cc198188b769f4af6fb492d960810aaa
3,968
package com.mimecast.robin.smtp.verb; import javax.mail.internet.AddressException; import javax.mail.internet.InternetAddress; import java.io.IOException; /** * MAIL verb. * * <p>This is used for parsing MAIL and RCPT commands. * * @see <a href="https://tools.ietf.org/html/rfc1870">RFC 1870</a> * @see <a href="...
21.333333
74
0.495716
9f511002c36ef56a6274c3edecb997ed2beedee1
749
package io.ably.lib.types; /** * A type that represents a page of results from a paginated query. * The response is accompanied by metadata that indicates the relative * queries available. * * @param <T> */ public interface AsyncPaginatedResult<T> { /** * Get the contents as an array of component type */ ...
26.75
74
0.744993
dade591dcdc3a3210c10cad23db5c2dc500ead2a
7,448
/* * Copyright (C) 2020-2021 Camshaft54, MetalTurtle18 * * 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 option) any later ver...
47.43949
173
0.679646
1656906d1bdcbf20ec4fcfba309233d478318dc7
4,151
package com.zgy.test; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.framework.recipes.queue.DistributedQueue; import org.apache.curator.framework.recipes.queue.QueueBuilder; import org.apache.curator.framework.recipes.queue....
31.44697
179
0.588292
36c392bafe0ab6634a9cf653164db087cc5bf409
1,554
package com.nexenio.rxkeystore; import org.junit.Test; import java.security.InvalidKeyException; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.PublicKey; import javax.crypto.KeyAgreement; impo...
37
132
0.762548
2c96916333ba0e5c5d40de993f9ca03178376ecd
5,330
package org.coredb.view.jpa.entity; import com.fasterxml.jackson.annotation.JsonIgnore; import java.io.*; import javax.persistence.*; @Entity @Table(name = "account", uniqueConstraints = @UniqueConstraint(columnNames = { "id" })) public class Account implements Serializable { private Integer id; private String a...
20.26616
87
0.691557
9eb322f738ab2b270830c46b9be0eb11cde4d615
418
package net.minestom.server.permission; import org.jetbrains.annotations.NotNull; import java.util.Set; import java.util.concurrent.CopyOnWriteArraySet; public class DefaultPermissionHandler implements PermissionHandler { private final Set<Permission> permissions = new CopyOnWriteArraySet<>(); @Override ...
23.222222
76
0.770335
294ea29ff631a38ee8bb2d1b5ca323810a41cc4a
715
package es.olidroide.notepad.notes.repository.datasource; import com.karumi.rosie.mapper.Mapper; import es.olidroide.Note.NoteDto; import es.olidroide.notepad.notes.domain.Note; public class NoteToNoteDtoMapper extends Mapper<Note, NoteDto> { @Override public NoteDto map(Note note) { final NoteDto noteDto...
32.5
110
0.674126
c709b2127afef0d6ffa94c5b0d6714ed35ee47fc
16,843
/* * Copyright 2005-2009 Niclas Hedhman. * * 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...
32.832359
129
0.598468
7a7e26047dec07a351723c45bc5fa73713091e87
7,391
/* * Copyright 2014-2021 Web Firm Framework * * 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...
33.143498
133
0.636856
9a1392a97c09023a355099f0e3e449d745b09992
1,684
package com.jivesoftware.os.miru.stumptown.deployable; import com.google.common.collect.Lists; import com.jivesoftware.os.miru.stumptown.deployable.region.MiruHeaderRegion; import com.jivesoftware.os.miru.stumptown.deployable.region.MiruHomeRegion.HomeInput; import com.jivesoftware.os.miru.stumptown.deployable.region....
33.68
121
0.751781
193b0eb027e8c37228ff845f4bf9d9da44bd8295
6,231
package lv.emes.libraries.communication.json; import org.apache.commons.lang3.tuple.Pair; import org.json.JSONArray; import org.json.JSONObject; import org.json.JSONTokener; /** * Utilities providing operations related to JSON data structures. * * @author eMeS * @version 2.1. * @since 2.1.9 */ public class MS_J...
42.387755
164
0.650618
50c8fadb2081248a49f031612aac4a1476324adc
1,264
package com.epam.brest.courses.service; import com.epam.brest.courses.model.Developers; import com.epam.brest.courses.model.Projects_Developers; import java.util.List; import java.util.Optional; /** * Projects_DevelopersService interface. */ public interface Projects_DevelopersService { /** * Select all d...
27.478261
106
0.717563
17b27dee493ac9df9b3e9f899a599dd1eb35b964
797
package gwlpr.protocol.gameserver.outbound; import gwlpr.protocol.serialization.GWMessage; /** * Auto-generated by PacketCodeGen. * */ public final class P241_ReportPlayer extends GWMessage { private String characterName; private short isPvP; @Override public short getHeader() { re...
20.435897
123
0.663739
91d8141b9b6eb974a76eab8c52ba49722a62e2de
213
package io.github.marmer; import lombok.AllArgsConstructor; import lombok.Getter; @Getter @AllArgsConstructor public abstract class AnotherPojo { private final float weight; private final double size; }
17.75
35
0.788732
085e21d292b16c4262435deb5c6531745f5c6680
582
package com.example.demo; import lombok.Getter; import lombok.RequiredArgsConstructor; import static java.util.Arrays.stream; @RequiredArgsConstructor public enum DsProvider { VISA("visa"), MASTERCARD("mastercard"), MIR("mir"); @Getter private final String id; public static DsProvider of(S...
23.28
102
0.652921
7aac57fa688202bc3a057af46f03d492ccb839da
669
package howe.mykill.dao; import java.util.Date; import java.util.List; import org.apache.ibatis.annotations.Param; import howe.mykill.entity.Mykill; public interface MyKillDao { /** * 减库存 * @param mykillId * @param killTime * @return 如果影响行数>1,表示更新库存的记录行数 */ int reduceNumber(@Param("myk...
19.676471
89
0.624813
1a4959c0be84ae9335fc7e1abfadc93815e9d0ef
9,600
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.ml.client; import org.elasticsearch.action.su...
53.333333
137
0.752188
dedf029e7d7b29ba0fff1ea53c6378db073001de
397
package org.identifiers.cloud.ws.linkchecker.models; /** * Project: link-checker * Package: org.identifiers.cloud.ws.linkchecker.models * Timestamp: 2018-05-25 11:24 * * @author Manuel Bernal Llinares <mbdebian@gmail.com> * --- */ public class ProviderTrackerException extends HistoryTrackerException { publi...
24.8125
71
0.732997
617e66e139526f7b302fe2b4bbba0e9b6dfb2784
30,331
/** * $Id$ * $URL$ * UserEntityProvider.java - entity-broker - Jun 28, 2008 2:59:57 PM - azeckoski ************************************************************************** * Copyright (c) 2008, 2009 The Sakai Foundation * * Licensed under the Educational Community License, Version 2.0 (the "License"); * you m...
43.33
153
0.582374
820543159f0c1005eb0fdae1c296cce012a1f62a
8,294
package com.github.zengfr.conuniframework.util; import java.util.*; import java.util.Map.Entry; import com.google.common.collect.Table; import com.google.common.collect.Table.Cell; /** * @author zengfr * @author https://github.com/zengfr/conuniframework-util * @author https://gitee.com/zengfr/conuniframework-util * @au...
57.2
217
0.781891
082117f9a8b0b6fae49dd1ed2dbb754bbe6dc174
1,384
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * 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; either version 2.1 of the License, or (at your option) * any la...
31.454545
80
0.796243
226e0180d2e5a7d075f0f831150c3c3852d87a4a
4,002
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.search.cluster; /** * The configuration of a cluster monitor instance * * @author bratseth */ public class MonitorConfiguration { /** * The interval in ms between cons...
28.382979
118
0.637681
f80c44af34f5acfa9d8cc685488c3d25c9ec6150
1,734
package com.ourapp.salonapp.repository; import java.time.LocalDateTime; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import org.springframework.stereotype.Repository; import com.ourapp.salon...
35.387755
169
0.723183
bf5f3d8b39ef80543115ec7cfe664e88e4b70063
215
package com.cloudata.datastore; public class LimitModifier extends Modifier { final int limit; public LimitModifier(int limit) { this.limit = limit; } public int getLimit() { return limit; } }
14.333333
45
0.688372
a4dc1974cb9b9b593b76dedfa904384eaa3cf227
8,235
/** * 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...
31.673077
157
0.665452
938dc2981eea8d63d6fa2877719aa11d8ad0bb79
799
package net.roxeez.advancement.trigger; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import net.roxeez.advancement.data.ItemData; import org.bukkit.Material; import java.util.function.Consumer; public class ConsumeItem implements Trigger { @Expose @SerializedN...
24.212121
54
0.689612
9e2525485a0f9455ca485bc26c06afec78d923f6
1,345
package answers; /** * Created by seok on 2017. 2. 18.. * * Problem 14 * * The following iterative sequence is * defined for the set of positive integers: * n → n/2 (n is even) * n → 3n + 1 (n is odd) * Using the rule above and starting with 13, * we generate the following sequence: * 13 → 40 → 20 → 10 → 5 ...
30.568182
77
0.534572
542ab8786fb72e671a8008feb3f89cdff716d6c1
8,992
package io.outofbox.cronbot.service.user.impl; import com.fasterxml.jackson.databind.ObjectMapper; import com.mongodb.MongoException; import io.outofbox.cronbot.error.ConflictExcpetion; import io.outofbox.cronbot.error.NotFoundException; import io.outofbox.cronbot.error.OperationFailureException; import io.outofbox.c...
38.101695
115
0.7252
b906b8c16cf2275849603b14b0870a3bc4a8cc60
564
package com.umi.service; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpSession; public interface OtherService { int PHONE_VALID_NUM = 6; String VAILD_NUMBER = "number"; String VAILD_ALPH = "alph"; String VAILD_MIX = "mix"; /** * 生成验证码 * 将验证码以流的方式输出 * 并将验证码信息放入session code中 ...
21.692308
86
0.741135
4fc508d806b191311de866af4f76fa8d23bf1deb
9,137
package com.youzu.taobao.app.service; import android.app.IntentService; import android.content.Intent; import com.kit.utils.AppUtils; import com.kit.utils.ListUtils; import com.kit.utils.ZogUtils; import com.youzu.taobao.app.constant.Key; import com.youzu.taobao.base.common.Action; import com.youzu.taobao.base.config...
37.446721
159
0.601073
b0e6819fb1ec80305b7cf148a8e314295c5fb30b
505
package org.jspace.io.tools; import java.util.Map; public class ClassEntry implements Map.Entry<Class<?>, String> { private Class<?> key; private String value; public ClassEntry(Class<?> key, String value) { this.key = key; this.value = value; } @Override public Class<?> getKey() { return key; } @Ov...
15.78125
64
0.683168
81bf4d8513cbccd283de749bbe1981a42b51760c
7,803
package org.im97mori.ble.service.bms.central; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothGatt; import android.bluetooth.BluetoothGattCharacteristic; import android.bluetooth.BluetoothGattService; import android.os.Bundle; import androidx.annotation.NonNull; import androidx.annotation....
52.02
330
0.669742
4acde0bfc7c24ce0999ae31b30d996950c85671b
4,510
package org.bigbio.pgatk.pepgenome.common; import java.io.Serializable; //extension of coordinates, holds genomic coordinates. public class GenomeCoordinates extends Coordinates<GenomeCoordinates> implements Serializable { private static final long serialVersionUID = -857165864692238920L; private String tran...
28.012422
148
0.543016
be79746e529a3013fde9371ae0666ab886594730
5,227
/* * JBoss, Home of Professional Open Source. * Copyright 2006, Red Hat Middleware LLC, and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can redistribute it and/or mo...
30.04023
87
0.629233
6d88db0eb3b60d3da6314dc945ea465a1c8a02cc
1,735
package co.nyzo.verifier.web; public class WebListenerCipherSuites { // This list was made by printing all cipher suites enabled by default on the SSLSocket and removing those indicated // as weak by the Qualys SSL Server Test (https://www.ssllabs.com/ssltest/). public static String[] strongCipherSuites ...
45.657895
120
0.700288
aa3cd9a7ea4286f9b40fecd2c5f6c2be95335b3d
5,928
/* // Licensed to DynamoBI Corporation (DynamoBI) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. DynamoBI licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may ...
35.497006
80
0.608131
ffe477f8419d03d8f4e43270b721e1d3b80b9297
4,317
/* * Copyright 2000-2014 JetBrains s.r.o. * * 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...
35.677686
105
0.714617
6c148677fe233f0602a6b60b3cbb2004cf7fe41f
5,891
/** * * Copyright (c) 2006-2019, Speedment, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); You may not * use this file except in compliance with the License. You may obtain a copy of * the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless...
28.186603
124
0.614497
90c2cc8fee6df5c24befe0d06c0091910a2cfd40
495
package test.util; import java.util.List; import krati.store.DataSet; public class DataSetReader extends DataSetRunner { public DataSetReader(DataSet<byte[]> store, List<String> seedData, int keyCount) { super(store, seedData, keyCount); } @Override protected void op() { ...
21.521739
84
0.636364
b8d3f51c58a32d5794ec57c73cc936ce0c92f223
873
package sg.four.serenity.callisto.ui; import net.serenitybdd.core.pages.PageObject; import net.serenitybdd.screenplay.targets.Target; import net.thucydides.core.annotations.DefaultUrl; import org.openqa.selenium.By; @DefaultUrl("https://beta-uat-m2.hpb.gov.sg/Sitefinity/dashboard") public class SitefinityCreateAPage ...
67.153846
271
0.867125
18c792fa61a7874b88227ab5d1cee80da3b1ca19
1,099
package com.nzelot.ledviz2.ui.elements; import java.awt.Color; import com.nzelot.ledviz2.ui.utils.RenderUtils; public class Rect extends UIElement { private Color[] col; public Rect(int x, int y, int width, int heigth) { this(x, y, width, heigth, new Color[]{Color.BLACK, Color.BLACK, Co...
22.895833
93
0.587807
d9269898ead22ad3187ca19a69aa923a4cf90de7
10,263
/* * Copyright (c) 2014 yvolk (Yuri Volkov), http://yurivolkov.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 req...
37.32
121
0.598266
073094a57fbad0fdef2422449a86dc6e8cd79c94
1,104
package com.leetcode.stock.one; import java.util.HashMap; import java.util.Map; /** * 罗马数字转整数 * 罗马数字包含以下七种字符:I, V, X, L,C,D 和 M。 * 示例 1: * 输入: "III" * 输出: 3 * * 通过判断罗马数,如果前一个数小于后一个数相减,否则相加 */ public class LeetCode13 { public static void main(String[] args) { System.out.println(romanToInt(...
26.285714
105
0.503623
f1ea2b9e5f4a285af3e752e031a470165457edc9
1,593
package org.aion.zero.impl.db; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.aion.mcf.ds.Serializer; import org.aion.rlp.RLP; import org.aion.rlp.RLPList; import org.aion.zero.impl.types.AionTxInfo; public class AionTransactionStoreSerializer { public static final Ser...
38.853659
82
0.485876
9f1fdc397583165daaa90bab9962ecd4b52ebf92
505
package com.msjc.realworld.infra.dmr.readservice; import java.util.List; import java.util.Set; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; @Mapper public interface UserRelationshipReadService { boolean isUserFollowing( @Param("userId") Long userId, @Param("anotherU...
29.705882
91
0.766337
d9aa21e032ad3246d7d360c2e4cb8e5b4ada651d
696
package datastructure.array.leetcode; /** * @author roseduan * @time 2020/9/8 10:50 下午 * @description 加一 */ public class PlusOne { /** * 倒序循环原数组,假设每一位上的数字为 i,如果 i < 9,则不会发生进位,直接在 i + 1 然后返回 * 如果 i == 9,说明发生进位,i 变成 0,继续遍历 * 如果跳出循环,仍未返回,说明全都是 9,则让第一位的数字为 1 ,并且数组长度加 1,其余位全为 0 * 运行结果:通过,速度击败 1...
21.75
59
0.477011
111eacc85e37cfc3044ac9fe949c0639a05bffac
1,233
package xt9.deepmoblearning.common.trials; import net.minecraft.entity.EntityLiving; import net.minecraft.entity.player.EntityPlayerMP; import net.minecraft.item.ItemStack; import net.minecraft.util.NonNullList; import net.minecraft.world.World; import xt9.deepmoblearning.common.mobmetas.MobMetaData; import xt9.deepm...
25.163265
69
0.689376
b2bc0ce1689c6a2bd5f428d53ff8fcf9bbb622b2
4,577
package com.github.jweixin.jwx; public class MediaTest { /* private MediaService mediaService = new MediaService(); private MaterialService materialService = new MaterialService(); private String getAccessToken() { String appID = "wx7710f3ee377d59de"; String appSecret = "2f0303d4c88211c8b376601ce4ef3...
42.775701
149
0.722744
b9017fcbe1e39485c16a3e42151bb3b13e894f75
970
package com.ojingo.register.data.repositories; import javax.enterprise.context.ApplicationScoped; import com.ojingo.register.domain.entities.Todo; import io.quarkus.hibernate.orm.panache.PanacheRepository; import io.vertx.core.logging.Logger; import io.vertx.core.logging.LoggerFactory; @ApplicationScoped public cl...
23.658537
84
0.734021
4cce68e7f73cdc13ee60d001ede50618dcf4ea3f
1,301
package com.acomerci.offering.model.business; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import javax.persistence.EntityManager; import com.acomerci.offering.model.entities.Currency; public class ManageCurrencyBF { private static ManageCurrencyBF instance = null; private HashM...
23.232143
89
0.714835
8490413ea7da74cc184fa841e8903a204eaad79c
952
// Copyright 2011, Ernst de Haan package org.znerd.lessc2java; import java.io.File; import java.io.IOException; import org.znerd.util.proc.CommandRunner; public final class Lessc { public static void compile(CommandRunner commandRunner, File sourceDir, String[] includedFiles, File targetDir, String command, boo...
31.733333
171
0.707983
337f309cd4aba8f5c51898cd1fb96e79d3e14e58
4,836
/******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * | |_| | |_| | __/\__ \ |_| |_| | |_) | * \__\_\\__,_|\___||___/\__|____/|____/ * * Copyright (c...
38.380952
150
0.534326
ca7c53edc680c6f073d7589995ad0843ffef07af
6,415
package com.arquitetaweb.helper.sqllite; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Locale; import android.app.Activity; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import andro...
24.026217
75
0.694778
91f51f64ac9daeeb95cdbee75a557b3340925567
781
package com.example.bozhilun.android.recommend; import android.content.Context; import android.widget.ImageView; import com.bumptech.glide.Glide; import com.bumptech.glide.load.engine.DiskCacheStrategy; import com.bumptech.glide.request.RequestOptions; import com.youth.banner.loader.ImageLoader; /** * Created by Adm...
26.931034
81
0.741357
0870d3ca07676ecbf5c041f9244514beb53121ba
1,188
package com.redhat.service.smartevents.processor.actions.slack; import javax.enterprise.context.ApplicationScoped; import com.redhat.service.smartevents.infra.models.gateways.Action; import com.redhat.service.smartevents.infra.validations.ValidationResult; import com.redhat.service.smartevents.processor.GatewayValida...
39.6
106
0.750842
679e1086d8c7245b9938d27ac7cbd26ba6e5a18c
203
package com.pattern.behavior.interpreter; /** * Created by niexianglin on 2016/9/20 17:05 * Class Description: */ public class InterpreterTest { public static void main(String[] args) { } }
16.916667
44
0.694581
d96b1eeedf01a0ddb2f6761b06c0a7813f0412eb
4,229
package io.invoker.caller; import java.lang.reflect.InvocationHandler; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import io.invoker.InvokeType; import io.invoker.Invoker; import io.invoker.InvokerCallback; import io.invoker.InvokerCommand; import io.invoker.RemoteObject; import ...
34.950413
105
0.617877
19424df546a11acf4bf9e6877103377a605b75db
1,436
package de.lukweb.hasteit; import com.intellij.openapi.components.ServiceManager; import com.intellij.openapi.components.State; import com.intellij.openapi.components.Storage; import de.lukweb.share.ShareSettings; @State( name = "HasteSettings", storages = @Storage( value = "hasteSetti...
26.109091
91
0.624652
5d063e7d8e59b1efea5e6a5ee7428ff65f2590ad
463
package com.chaeking.api.domain.dto.response; import lombok.Getter; import lombok.Setter; import com.chaeking.api.util.MessageUtils; @Getter @Setter public class BaseResponse { private String result; private String reason; public BaseResponse() { this.result = MessageUtils.SUCCESS; this.r...
21.045455
55
0.678186
77076d8ed264dcd65d5a0dfa4c6e36b588b235ad
1,668
package com.bird.websocket.common.interceptor.log; import com.bird.websocket.common.interceptor.MessageInterceptor; import com.bird.websocket.common.message.Message; import lombok.extern.slf4j.Slf4j; import org.springframework.core.Ordered; import javax.websocket.Session; import java.util.List; /** * @author YJ */...
31.471698
137
0.654676
e2ae7651d74ab828870af3b2db7d7993672936df
1,100
package cz.wake.lobby.npc.list; import cz.wake.lobby.Main; import cz.wake.lobby.npc.IServerNPC; import net.jitse.npclib.api.events.NPCInteractEvent; import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.entity.Player; import java.util.ArrayList; import java.util.List; public class Halloween2020NPC ...
25
94
0.672727
d0b55e167fe780c477f8bc3aa651da6f86fc050e
6,860
package robot; import com.sun.squawk.util.MathUtils; import edu.wpi.first.wpilibj.Joystick; import robot.parsable.ParsableDouble; import robot.parsable.ParsableInt; /** * This class is the glue that binds the controls on the physical operator * interface to the commands and command groups that allow contro...
42.608696
133
0.702041
87326e14f35a2c776eabb41dd74854372b5519f7
26,144
/* ***** BEGIN LICENSE BLOCK ***** Version: Apache 2.0/GPL 3.0/LGPL 3.0 CCT - Computational Chemistry Tools Jamberoo - Java Molecules Editor Copyright 2008-2015 Dr. Vladislav Vasilyev Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with...
33.909209
127
0.612148
2f328258c5bd705ca480ab131fa5164eb746f5ab
2,231
package org.ehrbase.client.classgenerator.olddtoexamples.coronaanamnesecomposition.definition; import com.nedap.archie.rm.datastructures.Cluster; import org.ehrbase.client.annotations.Entity; import org.ehrbase.client.annotations.OptionFor; import org.ehrbase.client.annotations.Path; import org.ehrbase.client.classgen...
31.422535
118
0.765576
c12915cd49c29b436716310a44eb3c9e56c17f53
7,876
package com.letv.android.client.commonlib.popdialog; import android.app.Activity; import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.os.AsyncTask; import android.os.Environment; import android.os.Handler; import andro...
41.893617
131
0.588624
e4e817d830125578639e27db23a8c9cdbf9390e0
2,212
package com.computing.cloud.controller; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.ann...
41.735849
126
0.810579
ba79807939e971de5e92a49665a142b3128f87a5
471
package com.flipkart.lyrics.json; import com.fasterxml.jackson.databind.DeserializationFeature; import com.fasterxml.jackson.databind.ObjectMapper; /** * Created by shrey.garg on 25/12/16. */ public final class JsonMapper { private final static ObjectMapper mapper = new ObjectMapper(); static { map...
23.55
84
0.732484
190f9147548a7781cb1d413e2fa3fa2779d5cd56
776
package com.infview.controller.listeners; import com.infview.main.Core; import com.infview.state.StateManager; import com.infview.view.midlevel.state.CustomTabbedPane; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; public class TabbedPaneChangeListener implements ChangeListener { ...
32.333333
95
0.699742
eb45d2d32fba23565c9e2969c94107d1ae890a0f
4,673
// Copyright 2017 Google Inc. // // 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...
30.743421
100
0.709822
8564deb9e1dca383c4846e860dad8f02c45dcc4d
1,464
package usage.array;/*package whatever //do not write package name here */ import java.lang.*; /** * Given an array a[] of N positive and negative numbers. * Find if there is a subarray (of size at-least one) with 0 sum. * https://practice.geeksforgeeks.org/problems/subarray-with-0-sum/0 * Intuition: * Find ...
28.153846
77
0.514344
b6d878eeba08c4f298ae3d0f0b178bb99db08d72
737
package org.broadinstitute.hellbender.engine.filters; import org.broadinstitute.hellbender.cmdline.Argument; import org.broadinstitute.hellbender.utils.read.GATKRead; /** * Only use reads from the specified read group. * Matching is done by case-sensitive exact match. */ public final class ReadGroupReadFilter impl...
36.85
126
0.738128
5557ed0f8bfa7ccf80a49708a77eb447713a99a0
1,101
package liberty_paintball.game.events; import static liberty_paintball.game.events.Event.EventType.PLAYER_HIT; import liberty_paintball.game.Location; import liberty_paintball.game.Player; import liberty_paintball.game.PlayerIdentity; import liberty_paintball.mapping.MapPoint; /** * @author Dave Waddling * */ publ...
21.173077
136
0.752044
d4029bda5ae5c569a902e50c82a63beab2edf435
374
package com.example.shao.smarthome; /** * Created by Shao on 2018/3/25. */ public class Element { private String name; private int imageId; public Element(String name,int imageId){ this.name=name; this.imageId=imageId; } public String getName(){ return name; } pub...
17.809524
44
0.609626
6f4308fe24423534784d90a212c795577366d60f
1,994
// (c) Copyright 2015 Cloudera, Inc. // // 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...
34.982456
106
0.767803
59b5f432ae5019e73d610c4672be4b4ebe6ccec1
527
package com.peng.commonlib.data.constant; /** * Created by Mr.Q on 2019/2/24. * 描述: * 提供一些名字常量 */ public class NamedConstant { public static final String MOCK_INTERCEPTOR = "mock_interceptor"; public static final String HEADER_INTERCEPTOR = "header_interceptor"; public static final String QUERY_...
27.736842
85
0.757116
9c3cef92c08b192c5a2232986e9e71b35c29dd35
574
package rocks.inspectit.shared.all.serializer.util; /** * Class where all keys to the serialization preferences are listed. * * @author Ivan Senic * */ public final class KryoSerializationPreferences { /** * Key that defines if the affiliation data information should be written with the * {@link rocks.inspe...
24.956522
100
0.761324
e82489b00da51a596624218a1bbd5bcadeb72092
1,811
package ie.gmit.sw; import java.util.List; import java.util.TreeSet; /** * The interface Jaccard exposes methods a user can invoke that are relevant * to finding the Jaccard similarity & minHash. */ public interface Jaccard { /** * Creates Shingles for the Document object passed in. * * @param document The...
30.694915
93
0.72667
a7f1ffed03a9551b9919e0f749c566be2f2c8852
3,851
/* * Copyright 2016 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
35.330275
147
0.757206
a34ed517e63321b533bb19b6f154f02a0fd4c73a
19,622
/* * 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 ...
47.510896
102
0.645245
b57cfa3eaaa3fadec166a417bde67cb799935c3b
136
package ca.carleton.gcrc.security.ber; import java.util.List; public interface BerConstructed extends BerObject, List<BerObject> { }
17
68
0.794118
708b636c94570e1de57a63794dd2d609f8a3cf2a
3,586
package org.bubblecloud.zigbee.v3.zdo.command; import org.bubblecloud.zigbee.v3.zdo.ZdoCommand; import org.bubblecloud.zigbee.v3.ZdoResponse; import java.util.Arrays; /** * SimpleDescriptorResponse. */ public class SimpleDescriptorResponse extends ZdoCommand implements ZdoResponse { /** * The source addre...
23.748344
193
0.60541
06daeded09458e5daf7640dc343ef55aa30f9d48
1,159
package ru.kudesunik.kudesunetwork.examples.custompacket; import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import ru.kudesunik.kudesunetwork.packet.Packet; public class CustomPacket implements Packet { public static final int ID = 10; private int customNumber1; priv...
19.644068
62
0.74547
995ec21b57c14c5ae2ef493722cf63119c9d3245
60,710
package edu.internet2.middleware.grouper.grouperUi.serviceLogic; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.la...
45.922844
275
0.742267
f78c7c470adc75e5bc9627c95c495d4f8c48986f
20,212
/* * The MIT License * Copyright (c) 2012 Microsoft Corporation * * 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,...
32.031696
168
0.654413
43b5fa0814c663ad3d7ae876a918538c03a640b7
2,241
package com.petclinic.auth.User; import com.petclinic.auth.Role.Role; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import ...
28.367089
90
0.637662
5897a318b96a44c0a151150a423a3f34b6ddf333
99
package roth.lib.java.code.java.unused; public enum WildcardTag { UNBOUND, EXTENDS, SUPER; }
9.9
39
0.727273
1db3daf1af6b24c3017733670105a8d5dd57981f
869
package gaarason.database.contract.builder; import gaarason.database.contract.eloquent.Builder; import gaarason.database.eloquent.appointment.JoinType; import java.io.Serializable; /** * 连接 * @param <T> * @param <K> * @author xt */ public interface Join<T extends Serializable, K extends Serializable> { /**...
22.282051
86
0.621404
f64565136aee2ebe05f3671c5594dcc126eed330
1,760
/* * 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 ...
32
81
0.7125
e9fea8ec9570b58e373e312892f2d6d38838ab43
3,384
package bl; public class AVLTree { private AVLTreeNode root; public AVLTree() { } public AVLTree(AVLTreeNode root) { this.root = root; } public AVLTreeNode getRoot() { return root; } public void setRoot(AVLTreeNode root) { this.root = root; } AVLTreeNode...
27.290323
88
0.519799
cb4061ea20122d7bb1daf9132e884038f1c9181e
1,058
package com.eroom.erooja.documentation.v1; import org.springframework.boot.test.autoconfigure.restdocs.RestDocsMockMvcConfigurationCustomizer; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.context.annotation.Bean; import org.springframework.restdocs.mockmvc.MockMvcRestDocum...
40.692308
99
0.763705
a5e6b3540a8f1beabd797e5f7bd64139c208b565
4,050
package edu.claflin.finder.io; import static edu.claflin.finder.Global.getLogger; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import edu.claflin.finder.log.LogLevel; /** * Reads manifest files. Assumes that the provided man...
34.322034
80
0.573827
4943d0f1f739ddb6308b2083bf240e82e794b5f8
415
package io.github.chomsson; /* created by PM at 07.10.2020 */ import java.util.Optional; public class EmptyValidator implements Validator { @Override public Optional<ValidationResultState> validate(String input) { if (input == null || input.replaceAll("\\D+", "").isEmpty()) { return Opti...
25.9375
70
0.657831
ab27a4b326fb56f311332a0494760db6ef8def4c
1,362
package unsw.venues; import java.time.LocalDate; import java.util.ArrayList; import java.util.Comparator; import java.util.List; import org.json.JSONArray; public abstract class Room { private String name; private List<Reservation> reservations; public Room(String room){ this.name = room; ...
24.321429
78
0.654185
9f15a4035bc36519e33972e08c685bc8f468be0e
3,828
package com.ucar.datalink.contract.log.rdbms; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; import java.io.Serializable; /** * @author lubiao */ public class EventColumn implements Serializable { private static final long serialVersionUID = 88810...
24.075472
87
0.591693
5e691073a286884431c51eebfd7c1ba3829dcf45
351
package com.fgw.mall.order.dao; import com.fgw.mall.order.entity.OrderItemEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.apache.ibatis.annotations.Mapper; /** * 订单项信息 * * @author fgw * @email fgw@qq.com * @date 2021-04-11 23:30:22 */ @Mapper public interface OrderItemDao extends Bas...
19.5
67
0.749288
484d1a4dc5cf91cdbcae98ec91bd72a17e150611
6,884
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 license...
15.504505
814
0.797356
1b01f11ea0f987bb9775f8173b13f8cd0c9556d9
2,753
/* */ package org.apache.pdfbox.pdmodel.graphics.form; /* */ /* */ import java.io.IOException; /* */ import org.apache.pdfbox.cos.COSBase; /* */ import org.apache.pdfbox.cos.COSDictionary; /* */ import org.apache.pdfbox.cos.COSName; /* */ import org.apache.pdfbox.pdmodel.PDResources; /* ...
24.801802
128
0.45405