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
d5fe781485dbe3eb03795244225de5bf893b9913
6,414
/* * 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")...
22.426573
81
0.614437
38b98d50a5eced6ff54750daaf0e421cbe3eb522
746
/** Write a program to input a number and check if it's magic or not */ import java.util.*; public class Magic { public static void main(String[] args){ Scanner in = new Scanner(System.in); System.out.println("Enter the number"); int num = in.nextInt(); int sum = sumOfDigits(num); ...
27.62963
71
0.520107
cd31c90d9ef32b18be2ce484559ec290b665f770
866
/* * Hibernate Validator, declare and validate application constraints * * License: Apache License, Version 2.0 * See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. */ package org.hibernate.validator.internal.util.privilegedactions; import java.lang.reflect.Constructor...
26.242424
98
0.754042
e7c43bd9935a217d4147f3dc8f6f3f21b40919dc
1,788
package org.javaboy.vhr.config; import com.fasterxml.jackson.databind.ObjectMapper; import org.javaboy.vhr.model.RespBean; import org.springframework.stereotype.Component; import org.springframework.web.filter.GenericFilterBean; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.ser...
37.25
152
0.689038
dbe10b0afed312dc081e59914015d129f7ff413e
291
package edu.nyu.tandon.dss; import edu.nyu.tandon.dss.entity.Broker; import edu.nyu.tandon.dss.entity.Node; import edu.nyu.tandon.dss.entity.Request; /** * @author michal.siedlaczek@nyu.edu */ public interface DispatchingStrategy { Node selectNode(Broker broker, Request request); }
22.384615
52
0.762887
ce736ba59a6cefb5f2e0ae56b91e0d9353286df7
407
package com.c0124.k9.c0124.exception; public class GetPublicKeyFailedException extends SCPGPException { private static final long serialVersionUID = 864141243739755680L; public final com.c0124.GetPublicKeyResultEnum errorCode; public GetPublicKeyFailedException(String message, com.c0124.GetPublicKeyResul...
33.916667
100
0.776413
17f6b7dfc1c3899f1d84be7c17de7ac3cdf77166
2,377
/*********************************************************************************************************************** * Copyright (C) 2010-2013 by the Stratosphere project (http://stratosphere.eu) * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance wi...
34.955882
120
0.662179
ee5baa3e51d4a37e164d0eeddd3effbe6f49e0ee
678
package com.arrow.pegasus.dashboard.repo; import java.util.List; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; import com.arrow.pegasus.dashboard.data.Container; @Repository public interface ContainerRepository extends ContainerReposi...
32.285714
112
0.784661
db515d65d30f985097ca6d34e58eb58e78ff0c0c
223
package com.dcxiaolou.tinyJD.manage.mapper; import com.dcxiaolou.tinyJD.bean.PmsSkuSaleAttrValue; import tk.mybatis.mapper.common.Mapper; public interface PmsSkuSaleAttrValueMapper extends Mapper<PmsSkuSaleAttrValue> { }
27.875
80
0.847534
56d6aff2974be08fbabed6fa8d2174ddcabbdaf8
5,049
package org.multiverse.stms.gamma.benchmarks; import org.benchy.BenchyUtils; import org.junit.Ignore; import org.junit.Test; import org.multiverse.MultiverseConstants; import org.multiverse.stms.gamma.GammaStm; import org.multiverse.stms.gamma.transactionalobjects.GammaTxnLong; import org.multiverse.utils.ToolUnsafe; ...
30.233533
101
0.609031
6bc991d5f76606de6140e2b9d479d2adcf0ea99c
5,811
/******************************************************************************* * Copyright 2015 rzorzorzo@users.sf.net * * 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:/...
25.047414
109
0.652728
e6222d205e7207c74c02757b740f9ed4de235f6c
175
package cc.bitky.featurelab.casperlab.tools.modelmapper.resp; import lombok.Data; /** * @author liMingLiang * @date 2019-05-03 */ @Data public class ModelMapperResp { }
13.461538
61
0.731429
fc0be6af6332fd32dd35200ed6e95db8b74ed760
620
package org.v8LogScanner.cmdScanner; import org.v8LogScanner.cmdAppl.CmdCommand; import org.v8LogScanner.rgx.RegExp; import org.v8LogScanner.rgx.ScanProfile; public class CmdResetAll implements CmdCommand { public String getTip() { return ""; } public void execute() { V8LogScannerAppl ap...
28.181818
70
0.701613
80e2f9cc6738a605fa37c0dd8acc97bb1dc7343c
1,462
package com.nuven.socketio.androidchat.controller; import android.app.Application; import android.content.Context; import android.net.ConnectivityManager; import android.net.Uri; import com.facebook.FacebookSdk; import com.facebook.appevents.AppEventsLogger; import com.nuven.socketio.androidchat.model.ChatUser; impor...
26.107143
102
0.722982
8ae86708652b64f1fa591671c59e92240508e93b
685
package com.poterliu.bigdemo.service.impl; import com.poterliu.bigdemo.mapper.UserMapper; import com.poterliu.bigdemo.model.User; import com.poterliu.bigdemo.service.UserService; public class UserServiceImpl implements UserService { private UserMapper userMapper; @Override public User login(User user) ...
20.147059
54
0.724088
6c4fad79e3d3fc1fa96cd6463fda1935270ff87a
995
/* Problem Name: 690. Employee Importance Problem Link: https://leetcode.com/problems/employee-importance/ */ /* // Definition for Employee. class Employee { public int id; public int importance; public List<Integer> subordinates; }; */ class Solution { public int getImportance(List<Employee> employee...
26.184211
64
0.507538
59a0c9ef3291ffb7f9a296cb7739a9534601676f
521
/* * Copyright (c) 2016 Yahoo Inc. * Licensed under the terms of the Apache version 2.0 license. * See LICENSE file for terms. */ package com.yahoo.yqlplus.engine.java; import com.yahoo.yqlplus.engine.api.Record; import java.util.Iterator; public class Records { static int getRecordSize(Record record) { ...
20.84
66
0.618042
d12e904e72bef027c1fc26aa443cf18a0d6ce7e8
2,427
package org.gradle.test.performance.mediummonolithicjavaproject.p124; import org.gradle.test.performance.mediummonolithicjavaproject.p123.Production2471; import org.gradle.test.performance.mediummonolithicjavaproject.p123.Production2475; import org.gradle.test.performance.mediummonolithicjavaproject.p123.Production247...
29.240964
83
0.678204
8744332fbd0f51e6a6e142985af94dc42b5ff427
4,336
/* * Copyright @ 2015 AT&T * * 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...
26.120482
76
0.605858
9076921315d93d1cd5b58af0491041382f303194
420
package com.ragavan; import org.springframework.boot.builder.SpringApplicationBuilder; import org.springframework.boot.web.support.SpringBootServletInitializer; public class DiscoveryServerApplicationWAR extends SpringBootServletInitializer { @Override protected SpringApplicationBuilder configure(SpringApplicati...
32.307692
86
0.857143
de84d011f7cf2df07eb7b7d5e5711cc4add42de7
16,816
package cn.edu.hust.engine.api; import cn.edu.hust.engine.utils.Bytes; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.HashMap; import java.util.Map; /** * ClassFile结构定义: * <p> * 若用u1,u2,u4,u8分别代表1,2,4,8字节无符号整数,则ClassFile(可形式上)定义如下 * <p> * cp_info { * u1 tag; ...
34.743802
194
0.561311
f0ca76675c2ef15b8acfd22d9820357a27a60281
13,778
/* * Copyright 2010-2016 Sander Verdonschot <sander.verdonschot at gmail.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 * *...
38.811268
187
0.543911
c24aaadda88b9c58d73130db83af2ab11fce85d2
373
package org.logstash.secret.password; import java.util.Optional; /** * A validator interface for password validation policies. */ public interface Validator { /** * Validates the input password. * @param password a password string * @return optional empty if succeeds or value for reasoning. ...
23.3125
65
0.705094
9c8d9da229f2b5af4560b168ef924e278b73e28a
3,156
/* * Copyright 2002-2014 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 applic...
35.066667
97
0.764259
7e4cf58b49134ee13d1e11f41efbf37d209687a9
499
package com.github.sofn.trpc.core; import com.github.sofn.trpc.core.config.RegistryConfig; import com.github.sofn.trpc.core.monitor.RegistryConfigListener; import java.util.List; /** * Authors: sofn * Version: 1.0 Created at 2016-09-20 22:40. */ public abstract class AbstractMonitor { /** * 返回remoteKey...
21.695652
90
0.719439
6074531f93ac73a605d3ef32a92b2615233af95f
3,141
package com.shenjinxiang.spb.config; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.cache.CacheManager; import org.springframework.cache.annotation.CachingConfigurerSupport; import org.springframework.cache.annotation.EnableCaching; import org.springframework.cache.intercepto...
37.392857
148
0.675899
585db3cac331515f35fd3b895d1d1d7d06a11c0c
17,745
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. */ package com.microsoft.azure.toolkit.lib.appservice.function; import com.azure.resourcemanager.appservice.AppServiceManager; import com.azure.resourcemanag...
53.772727
163
0.730121
72ddfb3676eff151324dff3de8b9be664eeadec4
2,764
package org.ohdsi.webapi.tagging; import org.ohdsi.analysis.Utils; import org.ohdsi.webapi.cohortcharacterization.CcController; import org.ohdsi.webapi.cohortcharacterization.domain.CohortCharacterizationEntity; import org.ohdsi.webapi.cohortcharacterization.dto.CcExportDTO; import org.ohdsi.webapi.cohortcharacterizat...
34.123457
130
0.758321
ba73d341bacd89019aee39c9eff07542d8cfd149
2,804
package ghidra.app.cmd.data.rtti.gcc.typeinfo; import ghidra.app.cmd.data.rtti.ClassTypeInfo; import ghidra.app.cmd.data.rtti.gcc.factory.TypeInfoFactory; import ghidra.program.model.address.Address; import ghidra.program.model.data.DataType; import ghidra.program.model.data.DataTypeComponent; import ghidra.program.mo...
36.415584
108
0.724679
f9496250ede6a0158a115ae2b4312e631dcc1a7e
1,076
/* * Copyright © 2014-2017 EntIT Software LLC, a Micro Focus company (L.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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
29.888889
75
0.728625
37cda25cfd1ec56ddbed6cb15efccdb24f12fd18
97
/** * This package contains Events used by the Alpine event framework. */ package alpine.event;
24.25
67
0.742268
424542186cc89fb1bf74a2505889947b28ee705a
5,022
/* * 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 com.mycompany.gui; import com.codename1.charts.ChartComponent; import com.codename1.charts.ChartComponent; import com.codename1...
27.9
115
0.626842
c950ca37502f94483310a79d678d6b3ad5c6d0bb
3,899
/* * Copyright 2015 The CHOReVOLUTION 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 appl...
33.612069
135
0.758656
9e823e483b2995dcef307ebebf28da3d22c45cb9
667
package com.italankin.lnch.feature.settings.base; import com.italankin.lnch.model.repository.prefs.Preferences; import androidx.annotation.StringRes; import androidx.preference.Preference; import androidx.preference.PreferenceFragmentCompat; public abstract class BasePreferenceFragment extends PreferenceFragmentComp...
31.761905
81
0.766117
8c6461b7d35d61665c9c55b4ce3912714122ff9c
8,023
// 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.fasterxml.jackson.core.util; import com.fasterxml.jackson.core.JsonGenerator; import java.io.IOException; public class DefaultIndenter extend...
33.152893
89
0.50779
65097fab8ce691ec31bcb7b508fe1c2e079ba089
149
package com.david.dto; public enum PublicKeyTypeEnum { PB_API_795045_29302, PB_API_795048_29307, PB_DCP_795045_30666, PB_DCP_795048_30667 }
11.461538
31
0.812081
1134dcc61a7acd3f58f5ad1319df094e66465942
21,726
/* * Copyright (C) 2014 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
33.068493
141
0.681948
444040267da07ade0f2f91450ef13955f141fa0f
278
package my.company.web.requirements; import net.thucydides.core.annotations.Feature; /** * @author Artem Eroshenko eroshenkoam * 5/6/13, 5:18 PM */ public class Application { @Feature public class Search { public class SearchByRequest {} } }
15.444444
47
0.661871
375375454e6041773b4b36058d5bb8649a27b6f2
2,168
/* * Copyright (c) 2015 Spotify AB. * * 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,...
34.412698
79
0.707103
2230d9e85dffa382d0900786f9f4bbc4f690069e
565
package pro.friendlyted.mvnsh.core.api; import java.util.List; import org.eclipse.aether.RepositorySystem; import org.eclipse.aether.RepositorySystemSession; /** * * @author Fedor Resnyanskiy */ public interface MsUpload { void setArtifactId(String artifactId); void setGroupId(String groupId); void ...
20.925926
61
0.768142
3dd2058d58c0b5ef7ff9a23d9de88d327b17bd3c
3,678
// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.roots.impl; import com.intellij.openapi.module.Module; import com.intellij.openapi.roots.SourceFolder; import com.intellij.openapi.vfs.VirtualFile; i...
28.076336
140
0.713703
5339b7667bb5964e942c000aa21479d00dfafb9b
2,756
/* Copyright (c) 2011 Danish Maritime Authority. * * 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...
34.024691
159
0.709361
22330d5d4641584c15555d5f9434d983fb6f01d2
8,340
/* * Copyright 2015 MovingBlocks * * 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...
42.55102
134
0.630096
c267558d91ffc2ced5723e08888b9946db70c5ae
2,438
/* * 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 oop.demo; /** * * @author kmhasan */ public class RationalNumber { private long numerator; private long denominator...
28.682353
80
0.61854
1ff92ee91a5a1bedf0549ea50d9e2ad8c7edeab5
802
package ru.local.betback.repository; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.CrudRepository; import org.springframework.data.repository.query.Param; import ru.local.betback.model.Match; import java.util.List; public interface MatchRepository extends CrudReposi...
34.869565
70
0.657107
72a52d1d6bca83520e13f9196654811143d5b173
4,466
package cn.imppp.knowlege.base; import android.content.Context; import android.os.Bundle; import android.util.Log; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import com.qmuiteam.qmui.widget.dialog.QMUITipDialog; import androidx.annotation.NonNull; import androidx.an...
26.742515
93
0.608822
1920928773403414a76810c674c14dd8a158a143
3,656
package com.csbunlimited.ctse_csb_alarm_services; import android.app.Notification; import android.app.PendingIntent; import android.app.Service; import android.content.Context; import android.content.Intent; import android.media.AudioManager; import android.media.MediaPlayer; import android.media.Ringtone; import andr...
34.490566
125
0.617068
9ce3e72c3d821939e3ee6f8607a97cff9807ff69
8,055
// Copyright 2011 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...
33.5625
98
0.676847
2ac947c41c657638d3b24795a2a5d3b901f3388c
4,351
// VeriBlock Blockchain Project // Copyright 2017-2018 VeriBlock, Inc // Copyright 2018-2019 Xenios SEZC // All rights reserved. // https://www.veriblock.org // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php. package org.veriblock....
51.188235
148
0.763962
1b4c51b11b5508c9c0a92e00097b777f6bafd7cf
319
/* Author: Romain DALICHAMP Github: https://github.com/fukakai Portfolio: http://romain.dalichamp.fr Contact: romain.dalichamp@free.fr */ // Write your overridden getNumberOfTeamMembers method here @Override void getNumberOfTeamMembers(){ System.out.println( "Each team has 11 players in " + getName() ); }
29
74
0.739812
7f9b34d5448cfe667f8e0d3fa96c58e4c43c8310
296
package com.canyinghao.canshare.demo.wxapi; /** * Created by echo on 10/11/14. */ //import com.liulishuo.share.wechat.WechatHandlerActivity; import com.canyinghao.canshare.weixin.WeiXinHandlerActivity; /** 微信客户端回调activity */ public class WXEntryActivity extends WeiXinHandlerActivity { }
18.5
60
0.780405
b7ebf1005ddf1ae5a587f2fce7733867e61065bd
2,429
package ru.job4j.list; import org.junit.Test; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; public class ConvertList2ArrayTest { @Test public void when7ElementsThen9() { ConvertList2Array...
28.576471
79
0.501029
fe2e57b31df5eadfdc554218a22f426f12e942cf
1,366
package com.jbm.cluster.logs.controllers; import com.jbm.cluster.logs.entity.GatewayLogs; import com.jbm.cluster.logs.form.GatewayLogsForm; import com.jbm.cluster.logs.service.GatewayLogsService; import com.jbm.framework.metadata.bean.ResultBody; import com.jbm.framework.usage.paging.DataPaging; import io.swagger.ann...
34.15
121
0.758419
406777431a0abdc525dca1c92d38d8b518672015
457
package org.labun.springframework.data.repository.events.support; import lombok.Data; import lombok.EqualsAndHashCode; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; @Data @EqualsAndHashCode(of = "id") @Entity @Table(name = "pers...
20.772727
65
0.770241
a463bc9679b1f6b536dabf9a8017da2a2992c7d8
3,395
/******************************************************************************* * Copyright (c) 2022 Eclipse RDF4J contributors. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Distribution License v1.0 * which accompanies this distribution, an...
26.732283
99
0.702798
dccc914b3fcbd91a645268f37ba3d45eff641c28
3,316
package com.mindbodyonline.clients.api._0_5_1.client_service; import java.math.BigDecimal; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlSchemaType; import javax.xml.bind.annotation.Xml...
26.741935
112
0.629674
cefd2616be938c22bb86643bef2c3b5b2d3e38ed
4,692
package at.yawk.valda.ir; import at.yawk.valda.ir.annotation.AnnotationHolder; import at.yawk.valda.ir.code.MethodBody; import java.util.ArrayList; import java.util.Collections; import java.util.List; import javax.annotation.Nullable; import lombok.Getter; import lombok.NonNull; import lombok.Setter; import org.object...
31.489933
116
0.654305
72de0fb42394707b2a99ece38bbe553f18a643c3
305
package org.onosproject.incubator.net.resource.label; import com.google.common.annotations.Beta; import org.onosproject.event.EventListener; /** * Entity capable of receiving label resource related events. */ @Beta public interface LabelResourceListener extends EventListener<LabelResourceEvent> { }
23.461538
82
0.813115
8b9b27de9e418076f9602161ec71bf8531eea05b
2,693
package com.gail.sps.model; import java.util.Date; import java.util.List; /** * 订单 * * @author pxuxian */ public class Order extends BaseModel { private static final long serialVersionUID = -7894012960696879502L; private Integer id; private String number; private Date createTime; private User user; private...
16.420732
68
0.704419
4a9c183a910dac1a1ffd5dd00a4423298d28fc40
4,249
/*Copyright [2018] [Kürsat Aydinli & Remo Schenker] 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...
36.008475
120
0.738762
3e1fc37fa0ebd60cf3b447c594ee734fa72dd5e2
321
package com.google.sps; import java.util.Comparator; /** * A comparator for sorting ranges by their start time in ascending order. */ public final class TimeRangeComparator implements Comparator<TimeRange> { public int compare(TimeRange a, TimeRange b) { return Long.compare(a.start(), b.start()); } ...
26.75
74
0.719626
31ab3b7e3053dcfcbace5e6973975534f05268aa
5,082
package eventos.com.br.eventos.util; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Matrix; import android.graphics.Paint; import android.media.ExifInterface; import java.io.FileNotFoundException; import ja...
35.048276
132
0.621409
d5b7e312ccb6d78c10b06ca2f753866f32e4136b
335
package lsm.helpers.IO.write.text; import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; public class TextWriter { public static BufferedWriter getWriter(String filename, boolean overwrite) throws IOException { return new BufferedWriter(new FileWriter(filename, !overwrite)...
25.769231
99
0.761194
07a5e477f16611db66675bb695dcd5130262ad76
220
package criterioDeBusqueda; import java.util.List; import encuesta.Encuesta; import proyecto.Proyecto; public interface CriterioDeBusqueda { public List<Encuesta> filtrarPorCriterio(List<Proyecto> proyectos); }
15.714286
68
0.804545
fcaf64787db2579d2ef80c144e8a8ef18abfc05b
4,803
/* * 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.89726
109
0.622736
19c44d13e0b4a2f308914f3792c32ed0b8a78cd1
516
package com.github.prbpedro.ctf.repositorios; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import com.github.prbpedro.ctf.entidades.Account; import com.github.prbpedro.ctf.util.Constantes; @Reposi...
30.352941
72
0.848837
0dfa0df754e107205c9e695c97ed1562bd5ec10d
2,363
package com.softib.core.entities; import javax.persistence.Entity; import javax.persistence.EnumType; import javax.persistence.Enumerated; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistenc...
20.547826
98
0.656369
f8129e35c738b09b806014a4f31d448bc962d2d8
1,852
package it.kamaladafrica.cdi.axonframework.extension.impl; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.util.Set; import javax.enterprise.inject.spi.BeanManager; import javax.enterprise.inject.spi.InjectionPoint; import org.axonframework.eventsourcing.eventstore.EventStore; imp...
25.027027
80
0.726782
5bc78172a7489ddc9f5059104230d64abeb7727d
603
package com.nacid.bl.exceptions; public class NotAuthorizedException extends Exception { public NotAuthorizedException() { super(); // TODO Auto-generated constructor stub } public NotAuthorizedException(String arg0, Throwable arg1) { super(arg0, arg1); // TODO Auto-genera...
23.192308
64
0.660033
6be77dd646c6d1b191b7a43020b718f04aaf35f2
1,387
package umd.twittertools.kde; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.Arrays; import java.util.Random; import umontreal.iro.lecuyer.gof.KernelDensity; import umontreal.iro.lecuyer.probdist.Empirica...
30.152174
76
0.734679
0a733a65eb7fc6f28d062b661cd83c153fa96591
548
package com.example.demo.service; import java.util.List; import com.example.demo.model.Note; //@Service public interface NoteService { /* * public Note create(@Valid Note note) { * * Note tempNote = new Note(1, note.getTopic(), note.getSubject(), * note.getBody()); * * return tempNote;...
20.296296
70
0.675182
d76d6d5855dc28b8efbf8d96a1f669ce9d412462
1,294
package org.ei.opensrp.service.intentservices; import android.app.IntentService; import android.content.Intent; import android.util.Log; /** * Created by onamacuser on 18/03/2016. */ public class ReplicationIntentService extends IntentService { private static final String TAG = ReplicationIntentService.class.g...
28.755556
133
0.680062
d2cda9b48498e680639453a10827b333adc543bc
5,875
package com.huawei.mops.components.retrofit.retrofitrxcache; import android.util.Log; import java.util.concurrent.CountDownLatch; import rx.Observable; import rx.Subscriber; import rx.functions.Action1; import rx.schedulers.Schedulers; /** * 缓存+网络请求 * User: cpoopc * Date: 2016-01-18 * Time: 10:19 * Ver.: 0.1 ...
33.764368
156
0.599149
8efa9852cd1e63ed22282fc9487967947524949e
2,551
/* * Copyright (c) 2018. University of Applied Sciences and Arts Northwestern Switzerland FHNW. * All rights reserved. */ package ch.fhnw.digibp.examples.message; import java.io.IOException; import ch.fhnw.digibp.examples.api.ChoreographyEndpoints; import com.fasterxml.jackson.core.type.TypeReference; import org....
37.514706
116
0.736966
f5dce412a3d0162d05c5485aa3c36aea149e8dbc
1,902
package com.baidu.beidou.navi.codec.protobuf; import com.baidu.beidou.navi.codec.Codec; import com.baidu.beidou.navi.util.ReflectionUtil; import com.dyuproject.protostuff.LinkedBuffer; import com.dyuproject.protostuff.Schema; import com.dyuproject.protostuff.runtime.RuntimeSchema; /** * ClassName: ProtobufC...
30.677419
95
0.634069
e9d7424b9d6a3e9ae29feb5885d92cf415f9ea28
2,513
package com.github.conversations.sample.webapp.configuration; import com.github.conversations.sample.webapp.users.SampleUserRepository; import com.github.conversations.sample.webapp.users.SampleUserService; import com.github.maximilientyc.conversations.domain.ConversationFactory; import com.github.maximilientyc.conver...
44.875
104
0.853561
fc56195c85e265cd72c6ce4beef61270108a6365
1,708
/** * Copyright 2020 lambdaprime * * Email: id.blackmesa@gmail.com * Website: https://github.com/lambdaprime * */ package id.fireguard.net; import java.nio.file.Path; import java.util.HashSet; import java.util.Optional; import java.util.Set; import java.util.function.Predicate; import id.xfunction.ObjectStor...
25.117647
77
0.614169
d02d0501935e83193efb53f6dcaca1a390688eb2
4,559
/* * Copyright 2006-2013 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.368852
106
0.770783
a721c2a9dafaf702517a7983d268638a84da884d
603
package net.javavatutorial.tutorials; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @SpringBootApplica...
27.409091
73
0.814262
9e2d6919b71724d9ebe3a5acfe36b9620f68d4fe
4,776
/* * @(#)AbstractProjectAction.java 1.0 October 9, 2005 * * Copyright (c) 1996-2006 by the original authors of JHotDraw * and all its contributors ("JHotDraw.org") * All rights reserved. * * This software is the confidential and proprietary information of * JHotDraw.org ("Confidential Information"). You shall...
33.633803
99
0.645729
9746a81fa0cd3c8ddaf74a05d9790c3bf560c4b3
842
import java.util.HashMap; import java.util.Map; public class LeetCode138 { class Node { public int val; public Node next; public Node random; public Node() {} public Node(int _val,Node _next,Node _random) { val = _val; next = _next; rand...
22.157895
55
0.488124
6def976db7625d925465867ca4328790c6d1491d
1,648
/* * 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.96
77
0.73301
4f758bb01e416740a428faf7b50dfa93899a3a00
429
/* * This file is part of ResselChain. * Copyright Center for Secure Energy Informatics 2018 * Fabian Knirsch, Andreas Unterweger, Clemens Brunner * This code is licensed under a modified 3-Clause BSD License. See LICENSE file for details. */ package at.entrust.resselchain.communication; import java.io.PrintWriter;...
28.6
92
0.785548
040e2dcbec7fd75ecded5e58477cf35b4e412566
808
package com.team1458.turtleshell2.movement; import com.team1458.turtleshell2.util.TurtleMaths; import com.team1458.turtleshell2.util.types.MotorValue; import edu.wpi.first.wpilibj.TalonSRX; /** * Implementation for control of a TalonSRX over PWM * @author mehnadnerd * */ public class TurtleTalonSRXPWM implements...
21.263158
69
0.757426
e3238f5cd45fc6e094f75b9b7eb1efbdb70984a6
1,451
package mage.cards.m; import java.util.UUID; import mage.MageInt; import mage.abilities.common.TurnedFaceUpSourceTriggeredAbility; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.common.continuous.BoostControlledEffect; import mage.abilities.keyword.MorphAbility; import mage.cards.CardIm...
31.543478
145
0.727085
ae46207b57c34c78fc8b220ccbef3c6fa39a4c68
7,795
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ * ...
32.615063
96
0.623861
7626e7585f84d6b6d02f742ee6efd3db85fa0fdd
2,646
public class Coordinate{ public static final int MAX_COL = 3; public static final int MAX_ROW = 3; private int r; private int c; public Coordinate(int r, int c){ this.r = r; this.c = c; } public int getRow(){ return r; } public int getCol(){ return c; } public boolean isCorner(){ if( (r == 0...
16.333333
65
0.406652
28b00e6e2fa23257600278236482b5e984501095
1,327
package org.knowm.xchange.bx; import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.io.InputStream; import java.util.Properties; import org.knowm.xchange.exceptions.ExchangeException; class BxProperties { private String apiKey; private String secretKey; private final Stri...
26.54
96
0.703843
2f6e9a13577e213aeed7a85ce813e70391c45ff0
4,126
/* * 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 ...
40.058252
100
0.741396
3408adf85415a7f44de1da8973d9239b765bd3b4
432
package dev.wittek.tc.jakarta.time; import jakarta.inject.Inject; import jakarta.ws.rs.GET; import jakarta.ws.rs.Path; import jakarta.ws.rs.Produces; import jakarta.ws.rs.core.MediaType; import java.time.LocalTime; @Produces(MediaType.APPLICATION_JSON) @Path("time") public class TimeController { @Inject pri...
18
37
0.729167
fc653997cb356b341d5a988649598b833c02d045
334
package no.nav.registre.inntekt.provider.rs.v1; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.NoArgsConstructor; import lombok.Value; import java.time.LocalDateTime; @Value @Builder @AllArgsConstructor @NoArgsConstructor(force = true) class Token { LocalDateTime expires_in; String ac...
18.555556
47
0.802395
8e07e0df61476bc8d0e5ee62d3f6e561f51f62f8
1,077
/* * Copyright 2000-2020 Vaadin Ltd. * * 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...
29.916667
80
0.703807
b516e5903a14e2a74d20cebd2b9f77f54b802250
661
package ru.sdroman.carsales.repository; import org.junit.Test; import ru.sdroman.carsales.models.Car; import static org.hamcrest.core.Is.is; import static org.junit.Assert.assertThat; /** * @author sdroman * @since 07.2018 */ public class CarRepositoryTest { /** * CarRepository class test. */ @...
21.322581
55
0.649017
4cd01c14c033392e3361028422965f66af118854
565
package com.cdut.b2p.modules.shop.po; /** * @desc ShopCommentVo是ShopComment的扩展类 * @author zsb * */ public class ShopCommentVo extends ShopComment{ private static final long serialVersionUID = 1L; private String userNickname;//评论人的昵称 private String userImage;//评论人的头像 public String getUserNickname() { return u...
21.730769
51
0.755752
3fdfa9c36e31d930c0113f445a8d2d4d634f6bda
280
package org.sfm.beans; public class CGS2 { private final String val0; private int val1; public CGS2(String val0) { this.val0 = val0; } public String getVal0() { return val0; } public int getVal1() { return val1; } public void setVal1(int v) { this.val1 = v; } }
14.736842
29
0.664286
d8418cf0a4179abba2ff8e752e45f2e65547e270
3,547
/* Copyright (C) 2001, 2008 United States Government as represented by the Administrator of the National Aeronautics and Space Administration. All Rights Reserved. */ package gov.nasa.worldwind.data; import gov.nasa.worldwind.util.Logging; /** * @author dcollins * @version $Id: AbstractDataRasterWriter.java 8321 20...
31.669643
122
0.595151
4f381518702f0b69587ab722d62e7188e66f4c62
4,854
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.management.resourcemover.v2021_01_01.implementation; import...
35.430657
176
0.68356
83372c5b33dc4a799e45deb73b5bb4431d3e19c1
349
package bluegreen.manager.utils; import org.springframework.stereotype.Component; /** * Invokes Thread.sleep. * <p/> * Pulling this into its own class makes the client classes more testable. */ @Component public class ThreadSleeper { public void sleep(long milliseconds) throws InterruptedException { Threa...
19.388889
74
0.750716
505b54d97d7380b69d04e37c7b7e7a4b965be210
1,249
package com.cjm721.overloaded.network.handler; import com.cjm721.overloaded.Overloaded; import com.cjm721.overloaded.item.functional.armor.ArmorEventHandler; import com.cjm721.overloaded.network.packets.KeyBindPressedMessage; import com.cjm721.overloaded.network.packets.NoClipStatusMessage; import net.minecraft.entity...
34.694444
100
0.721377
1e51077eedcc2eae0306d1698722e89c238f8e92
717
package aa.aggregators.sab; public enum SabInfoType { ROLE( "urn:mace:surfnet.nl:surfnet.nl:sab:role:", "urn:oid:1.3.6.1.4.1.5923.1.1.1.7"), ORGANIZATION( "urn:mace:surfnet.nl:surfnet.nl:sab:organizationCode:", "urn:oid:1.3.6.1.4.1.1076.20.100.10.50.1"), GUID( "ur...
20.485714
63
0.584379