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
0e94aed80fdd61188b7ab46d8a513c87e24b50f7
5,542
/* * GridGain Community Edition Licensing * Copyright 2019 GridGain Systems, Inc. * * Licensed under the Apache License, Version 2.0 (the "License") modified with Commons Clause * Restriction; you may not use this file except in compliance with the License. You may obtain a * c...
34.6375
112
0.669253
e23f32a5c74e8edf4536b08e1eb46526a69a04db
5,005
package com.fourthwoods.starter; import com.fourthwoods.starter.authentication.AuthenticationFilter; import com.fourthwoods.starter.authentication.CustomAuthenticationFailureHandler; import com.fourthwoods.starter.authentication.UserService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springfra...
38.206107
125
0.768432
2bccdbef6746069001b569a783a2649ee459f11b
8,312
/* * Copyright 2016 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 applica...
47.770115
229
0.644249
4d0b963aba92abeb23c28d48d725f3a05f4e3678
6,588
/* * Copyright (c) 2016-2018. Uniquid Inc. or its affiliates. All Rights Reserved. * * License is in the "LICENSE" file accompanying this file. * See the License for the specific language governing permissions and limitations under the License. */ package com.uniquid.contract; import com.uniquid.blockchain.impl....
53.129032
653
0.768974
8f2e4ee6ab1e9afccf0e3e04a6cdd474b640b92f
2,033
package controller; import java.awt.Dimension; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import javax.swing.JFileChooser; import observer.DownloadObserver; import Model.MainViewModel; import tasks.DownloadTask; import view.MainView; /** * Class thats...
26.402597
86
0.735366
b8c3feeb15f0b7b97dcbdec347f51370c5cdb4c8
14,037
package connect.ui.service; import android.app.Service; import android.content.ComponentName; import android.content.Context; import android.content.Intent; import android.content.ServiceConnection; import android.os.Handler; import android.os.IBinder; import android.os.Looper; import android.os.Message; import androi...
37.937838
144
0.585025
a70d8e8f0ed3b0be889e852fb9f251cfa2304a02
1,799
package net.yasfu.acoworth.ShopListeners; import de.epiceric.shopchest.shop.Shop; import net.yasfu.acoworth.AcoWorthPlugin; import net.yasfu.acoworth.Storage; import org.bukkit.Material; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority;...
28.109375
145
0.684269
f884c54ce2b436fe20f7835d934620ea059d97d8
2,895
// polymorphism/rodent/Rodent12.java // TIJ4 Chapter Polymorphism, Exercise 12, page 298 /* Modify exercise 9 so that it demonstrates the order of initialization of the * base classes and derived classes. Now add member objects to both the base and * derived classes, and show the order in which their initialization oc...
30.473684
81
0.686701
10114e3c9508fe03e1736ac2a5d3179ffb833ef2
534
import com.hp.hpl.jena.query.QueryExecution; import com.hp.hpl.jena.query.QueryExecutionFactory; public class ask { public static final String ENDPOINT = "http://dydra.com/jhacker/foaf/sparql"; public static final String QUERY = "ASK WHERE {?s ?p ?o}"; public static void main(String[] args) { QueryExecut...
26.7
79
0.666667
e8418e77b056783c5c15932bbce18b13082d6d3f
354
/** * Created by Administrator on 2016/9/8. */ import java.util.LinkedHashMap; import java.util.Map; public class JasonAI { public static void main(String args[]){ String str1 = new String("\t"); Map<Integer,Integer> jm = new LinkedHashMap<Integer,Integer>(); jm.put(1,1); Syst...
17.7
71
0.615819
338819bd7cdaa2952745b40d6f75b631b12ff0bd
3,329
package ndm.miniwms.pojo; import java.util.Date; public class StockEntries { private Integer id;// 记录id private Integer inventoryId;// 库存id private Integer itemId;// 商品id private Date date;// 日期 private String type;// 类型 private Integer inId;// 入库单id private Integer outId;// 出库单id private Integer checkId;// 盘...
18.494444
63
0.732953
35dbd38cf0ad839032af6e4250d47d7ce770ba18
311
package com.nested_map_viewer.app; public class NestedMapViewer extends CustomApp { public NestedMapViewer() { super("viewer.fxml", "NMapViewer"); } public static void main(String[] args) { launch(); } @Override protected void show() { stage.show(); } }
16.368421
48
0.604502
e4beed758394844db6454aa1146be4d73e939f0a
471
package dev.sheldan.abstracto.core.models; import lombok.Builder; import lombok.Getter; import lombok.Setter; @Getter @Setter @Builder public class AServerChannelUserId { private Long guildId; private Long channelId; private Long userId; public ServerIdChannelId toServerChannelId() { return S...
20.478261
50
0.645435
85146d6a8bfe8e56f40374acd74ee1ba8bf7edc1
896
package com.pbm; import android.database.Cursor; import java.io.Serializable; class LocationType implements Serializable { private static final long serialVersionUID = 1L; private int id; private String name; LocationType(int id, String name) { this.id = id; this.name = name; } static LocationType blan...
18.666667
95
0.728795
0ded01c810b3f3c233bac87cc891c05c8c407ea0
2,040
package UnitTest.AlgorithmTest.combineTest.sumofSubSequenceTest.LMGTest; import Algorithm.comprehensive.sumofSubSequence.LMG.Choir; /** * @author liujun * @version 1.0 * @date 2020-02-12 09:38 * @author—Email liujunfirst@outlook.com * @description * @blogURL */ public class ChoirTestDemo { public void Tes...
36.428571
101
0.62598
21f1e48e58a38b6880de74bd67f94f09f3470417
2,571
/* * @copyright defined in LICENSE.txt */ package hera.example.stream.internal; import hera.api.model.Block; import hera.api.model.StreamObserver; import hera.api.model.Subscription; import hera.api.model.Transaction; import hera.api.model.TxHash; import hera.client.AergoClient; import hera.example.stream.BlockStre...
29.895349
99
0.678335
1aa1c50c40de5f4c50e09be832dd6ed00b953dec
7,773
/* * 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.mskalnik.gui; import com.mskalnik.bl.AppointmentsHandler; import com.mskalnik.bl.DoctorsHandler; import com.mskalnik.bl.Pa...
37.014286
253
0.640551
5f768ba6383ea6eaca91f7fd724a7bca3df3d52c
404
package br.com.command.comandos; import br.com.command.interfaces.Command; import br.com.command.modelos.SomCozinha; /** * Created by danielmarcoto on 17/11/15. */ public class SomCozinhaDesligarCommand implements Command { private SomCozinha som; public SomCozinhaDesligarCommand(SomCozinha som) { ...
20.2
59
0.717822
521b62f54aebfa0390d039837155e71d7768810e
415,412
/* * 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...
38.276237
225
0.584352
07c2c318cf33258d55a1b6a76b8a2a77b29c34a9
19,849
/* * Molecule API Documentation * The Hydrogen Molecule API * * OpenAPI spec version: 1.3.0 * Contact: info@hydrogenplatform.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ package com...
46.268065
268
0.704922
dcd3073fe35fa8b49bf628d956994a97b549c9fd
3,271
package com.example.zniannar.measureisland; import android.content.Intent; import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import com.example.nick.measureisland.R; ...
34.431579
350
0.55029
a2fc2182f62b011979c7fdbdef546ff0f6e477e9
3,785
/* Copyright (c) 2017-2021, Carlos Amengual. SPDX-License-Identifier: BSD-3-Clause Licensed under a BSD-style License. You can find the license here: https://css4j.github.io/LICENSE.txt */ package io.github.css4j.ci; import java.io.IOException; import java.net.URL; import java.util.List; import java.util.Lis...
26.284722
108
0.726816
18f10da67b984cd44a39ad626ec91917357b329b
661
package rongqicunchu.shuzu; public class Person { private String pname; private int age; public Person() { } public Person(String pname, int age) { this.pname = pname; this.age = age; } public String getPname() { return pname; } public void setPname(Strin...
16.948718
42
0.488654
2e8f1c1c9ceeb68cd6a881feb9599980c459a199
2,441
package edu.psu.ist.acs.micro.event.data.annotation.nlp.event; import java.util.List; import java.util.Map; import edu.cmu.ml.rtw.generic.data.annotation.DataSet; import edu.cmu.ml.rtw.generic.data.annotation.DatumContext; import edu.cmu.ml.rtw.generic.data.annotation.Datum.Tools.Structurizer; import edu.cmu....
36.432836
178
0.759934
f5133ad05ce149aa4d374909f99eb1ae16bc02b0
2,920
package cn.iocoder.yudao.coreservice.modules.pay.enums; import cn.iocoder.yudao.framework.common.exception.ErrorCode; /** * Pay 错误码 Core 枚举类 * * pay 系统,使用 1-007-000-000 段 */ public interface PayErrorCodeCoreConstants { /** * ========== APP 模块 1-007-000-000 ========== */ ErrorCode PAY_APP_NOT_FO...
44.923077
119
0.724315
9ca49cbecb79808209d9a49920208f30bea7ef19
1,378
package org.competition.leetcode.linkedlist; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.competition.leetcode.linkedlist.ListNode.array; import static org.competition.leetcode.linkedlist.ListNode.list; import static org.junit.Assert.assertArrayEquals; import static org.ju...
32.809524
116
0.70029
fea5847db7216134d3848ab90fa1df50a66d7ee4
3,029
package org.uniprot.store.indexer.uniprotkb.processor; import static org.junit.jupiter.api.Assertions.*; import java.util.Collections; import java.util.List; import org.junit.jupiter.api.Test; import org.uniprot.core.util.Utils; import org.uniprot.store.indexer.uniprot.inactiveentry.InactiveUniProtEntry; import org....
36.059524
99
0.681413
3e85a07b40bdf048ff977306ae7a51b3b968d42c
3,410
/* * Copyright 2010-2018 Boxfuse GmbH * * 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 ...
26.030534
137
0.709384
623bd17fac815f222fe320d21d4f2af24050414e
1,086
package com.qianyitian.hope2.analyzer.controller; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController public class DemarkController { private Logger logger = LoggerFactory.getLogg...
31.028571
132
0.733886
23fd77888aeddc6506189f982c13722a3e7a77c5
4,917
package com.bizmda.bizsip.serveradaptor; import cn.hutool.json.JSONObject; import com.alibaba.nacos.api.NacosFactory; import com.alibaba.nacos.api.config.ConfigService; import com.alibaba.nacos.api.exception.NacosException; import com.bizmda.bizsip.common.BizConstant; import com.bizmda.bizsip.common.BizException; impo...
42.025641
140
0.715884
d985a9db45f919f634c2df3b83b45a010549f097
1,375
package de.justinharder.trainharder.model.services.berechnung; import de.justinharder.trainharder.model.domain.Konstanten; public class Volumenrechner { /* * Kniebeuge Bankdrücken Kreuzheben * Hypertrophie 0,0 0,1 0,2 * Kraft 1,0 1,1 1,2 * Peaking 2,0 2,1 2,2 */ private final double[...
28.645833
118
0.691636
08a1aaff76cfc58f19944ae5abc6450cbb9c2a1c
211
package org.chzcb.rocketmq; /** * MQ消息的消费者 */ public class MessageConsumer { public void unsubscribe(String topic, String tags) { } public void subscribe(String topic, String tags) { } }
12.411765
56
0.658768
fceaa89505c92868f65763177b9b5620eeacacd2
36,933
/*=========================================================================== Copyright (C) 2010 by the Okapi Framework contributors ----------------------------------------------------------------------------- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in com...
37.081325
127
0.671053
427f002f744140876d81648289525f8f2dc09b42
8,012
package com.inz.z.note_book.database; import android.database.Cursor; import android.database.sqlite.SQLiteStatement; import org.greenrobot.greendao.AbstractDao; import org.greenrobot.greendao.Property; import org.greenrobot.greendao.internal.DaoConfig; import org.greenrobot.greendao.database.Database; import org.gre...
39.663366
137
0.635796
4ef9473d66d0e09f0178bcdf8d45596945fe5a81
357
class sd { public static void main(int n) { int i,j,k,m; m=15; for(i=1;i<=n;i++) { for(k=1;k<=m;k++) System.out.print(" "); for(j=i;j>=1;j--) { if((j==1)||(j%2!=0)) System.out.print("*"+" "+" "+" "); else System.out.print("#"+" "+" "+" "); } System.out.println(); ...
16.227273
47
0.383754
4593f15105057faf2b3533d29b9f1a8aa548bad0
2,676
package game.models; import configuration.models.ModelConfig; /** * This interface represents models that are capable of learning. */ public interface ModelLearnable extends Model { /** * This function is used to intialise the model acording to the template configuration bean * * @...
29.733333
127
0.643871
8f5534bb4a8a5fa7d4b0e02af6605758dfa308bc
618
/** * Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caintegrator/LICENSE.txt for details. */ package gov.nih.nci.caintegrator.application.arraydata; /** * Indicates that array data couldn't be written or retrieved. */ ...
24.72
67
0.720065
cd3fa2bdbaf8560a383bdeb1eddc44cd87ceaea3
5,287
package org.ovirt.engine.core.bll.storage.disk.managedblock; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import javax...
41.304688
133
0.727066
09ee17e812b2faa7cd0f821d0c5cdab1d473c541
4,298
package com.googlecode.flickrjandroid.groups.members; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Set; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import com.googlecode.flickrjandroid.FlickrException; import com...
38.720721
149
0.651466
08c9440d6ffdccbee034614ef957c19f4efa2f9e
2,226
package org.springrain.weixin.sdk.common.util.http; import java.io.File; import java.io.IOException; import org.apache.http.HttpEntity; import org.apache.http.HttpHost; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.clie...
39.75
144
0.730009
5cc2258d2825db95ea6f5ea2c26833eabcd4c2ae
4,864
package com.transferwise.tasks.triggering; import static org.awaitility.Awaitility.await; import com.google.common.collect.ImmutableSet; import com.transferwise.tasks.BaseIntTest; import com.transferwise.tasks.TasksProperties; import java.time.Duration; import java.time.Instant; import java.util.Collections; import j...
44.623853
138
0.748561
8cac08e29bac215e8dc63635eb7b6fdba01fa31b
3,895
/******************************************************************************* Copyright ArxanFintech Technology Ltd. 2018 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 ...
28.851852
113
0.546341
7e35732f5added45ab2da9901795c5a498e557b0
2,738
package com.microsoft.example.obfuscate; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.*; import org.apache.hadoop.io.LongWritable; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.io.Text; import org.apache.hadoop.mapreduce.Mapper; import org.mindrot.jbcrypt.BCrypt...
40.865672
110
0.755661
e23ab73c3ca2d9e7654846355457e37f0c3f033f
3,185
package com.stripe.functional; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; import com.google.gson.annotations.SerializedName; import com.stripe.BaseStripeTest; import com.stripe.Stripe; import com.stripe.exception.InvalidRequestException; i...
32.5
98
0.69168
4df0cf1631cb9f19c36c909b84056291a2f8c050
34,701
/* ************************************************************************** * * Copyright (C) 2005 Marc Boorshtein All Rights Reserved. * * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT * TO VERSION 2.0.1 OF THE OPENLD...
29.837489
188
0.612634
0394366d1d5e374f13d931db106cb9b449623d89
1,189
package protocols.replication.crdts.datatypes; import io.netty.buffer.ByteBuf; import protocols.replication.crdts.serializers.MySerializer; public class ByteType extends SerializableType{ private final Byte value; public ByteType(Byte value) { this.value = value; } public static MySeriali...
21.618182
84
0.622372
6026dfcc81e4fee85299cf6b4f8021d6af079688
532
package io.vilya.phthonus.resolver; import io.vilya.phthonus.resolver.constant.ResolverPriority; /** * @author zhukuanxin * @time 2017年8月31日 上午11:59:25 */ public abstract class BaseResolver implements IResolver { @Override public int compareTo(IResolver o) { ResolverPriority tp = getPriority()...
28
103
0.678571
013742acb1cf28f05f046fc98bd2241210e4daaa
78
package com.company; public interface Sport { public String getName(); }
13
28
0.717949
adc55e9f9aaff686c7dd17dcdedf7a9ac553faad
2,338
/* * Copyright 2019-2021 The kafkaproxy developers (see CONTRIBUTORS) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless re...
32.027397
110
0.711719
512ab6d686f34b885630bcdef8c4f67d55ec748b
3,913
package com.nenuphar.nenufar.Controllers; import com.nenuphar.nenufar.DTO.GetIDDTO; import com.nenuphar.nenufar.DTO.GettokenDTO; import com.nenuphar.nenufar.DTO.GradedSubSkillDTO; import com.nenuphar.nenufar.Models.GradedSubSkill; import com.nenuphar.nenufar.Models.SubSkill; import com.nenuphar.nenufar.Models.User; im...
46.035294
119
0.762586
9d0b1e01018c11c1507752526482aa1159660112
370
package com.macro.mall.vasiros.stat.service.impl; import com.macro.mall.vasiros.stat.service.ResourceStatisticService; import org.springframework.stereotype.Service; /** * @version : * @ClassName: StatServiceImpl * @Description: TODO * @Auther: fyy * @Date: 2020/5/30 */ @Service public class ResourceStatisticSe...
23.125
79
0.778378
3e1a10de16b81307b2c86b5be0b5b86e8ee70a2c
1,076
package com.Sysclass; import java.util.*; public class XunliehuaTest { ArrayList a1; public XunliehuaTest(int num,int mod){ a1=new ArrayList(num); Random rand=new Random(); System.out.println("排序之前"); for(int i=0;i<num;i++){ a1.add(new Integer(Math.abs(rand.nextInt())%mod+1)); System.out.println("a1["+...
22.893617
67
0.605019
fb1d46563dee9eb225688bc0f2b8be62f4a27c23
4,300
/* Insets.java -- Information about a container border. Copyright (C) 1999, 2000, 2002 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 Foun...
24.571429
78
0.645116
76c3efee01cd8b06c2d6984b56ba7a0bdcfa1e85
1,892
/*** Copyright (c) 2008-2012 CommonsWare, LLC Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. Unless required by applicable law or agreed to in w...
30.516129
79
0.738372
d3afa5ef62cddfd4c2db7e2c5d88c5f4ef072107
583
package habuma.books; import org.springframework.beans.factory.annotation.Value; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; import io.micrometer.core.instrument.MeterRegistry; import lombok.RequiredArgsConstructor; @RestController @Requir...
23.32
62
0.794168
dc45ed8e3686e0b67782290737b30a10ed5c8deb
1,191
/** * Logback: the reliable, generic, fast and flexible logging framework. Copyright (C) 1999-2015, * QOS.ch. All rights reserved. * * This program and the accompanying materials are dual-licensed under either the terms of the * Eclipse Public License v1.0 as published by the Eclipse Foundation * * or (per the l...
30.538462
137
0.738875
647f64d5500d3a06898ed8f486efdd310017c4da
1,133
package sh.okx.sql.clause; import sh.okx.sql.api.StatementWhere; import sh.okx.sql.api.clause.ClauseWhere; public class ClauseWhereImpl<E extends StatementWhere> implements ClauseWhere<E> { private E statement; private StringBuilder where = new StringBuilder(); public ClauseWhereImpl(E statement) { ...
22.66
82
0.612533
12c4dec7696d3d45d6bc62e026047f27e2e92b7b
2,955
package sql.access; import model.Ailment; import model.Patient; import model.Symptom; import sql.Database; import util.stream.Streams; import java.sql.Connection; import java.sql.ResultSet; import java.util.Set; import java.util.stream.Collectors; /** * Implementation of {@link AbstractSQLAccessor} that wraps the ...
31.43617
80
0.632826
dfa4194b692acb73e155f82462352f4d949b1b56
4,319
/* * Copyright 2016 aliba. * * 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 w...
40.745283
148
0.733272
861b56b32712a67e69e35f2c6dfdbdc27c34dfbf
2,207
package com.stylint; import com.intellij.codeInsight.intention.HighPriorityAction; import com.intellij.codeInsight.intention.IntentionAction; import com.intellij.icons.AllIcons.General; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.application.ModalityState; import com.intelli...
33.439394
124
0.724966
483f4942f959f49fe2221bf506e500d7e20f7555
2,709
/* * 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 library.dao; import java.sql.ResultSet; import java.util.Date; import library.model.Book; import library.model.Trans...
35.181818
109
0.539313
f028ea4fb84875e1b1a93f801b0b0b495fde3f65
3,157
package campuslifecenter.notice.entry; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class AccountNotice extends AccountNoticeKey implements Serializable { @ApiModelProperty(value = "是否已读") private Boolean looked; @ApiModelProperty(value = "是否置顶") private Boolean...
25.877049
77
0.652201
50ef83dd4bcf88232f13e2f21a8a17c188320739
18,371
package org.riderzen.flume.sink; import com.mongodb.*; import org.apache.commons.collections.MapUtils; import org.apache.flume.*; import org.apache.flume.channel.MemoryChannel; import org.apache.flume.conf.Configurables; import org.apache.flume.event.EventBuilder; import org.json.simple.JSONObject; import org.testng.a...
34.083488
382
0.573948
43e5f0fd88e000679456ca13b2e04f39c69371d3
204
package metube.repository; import java.util.List; import java.util.Optional; public interface GenericRepository<E, K> { E save(E entity); Optional<E> findById(K id); List<E> findAll(); }
14.571429
42
0.691176
b5066280e427fc069674dbf76d669df811316951
148
package co.waltsoft.exceptions4j.auth; import co.waltsoft.exceptions4j.Exception4j; public class InvalidPasswordException extends Exception4j { }
21.142857
59
0.844595
2a87e0b33bc22f7f8e704c03a836966d8c6d7e71
20,076
/* * Copyright 2011-Present 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 applicable la...
31.765823
119
0.713439
98aa78ef9ef4a133dc9108a6083c923950d37ce2
708
package com.hockey.repository; import java.util.List; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; import com.hockey.model.entity.Hi...
33.714286
93
0.814972
2fd0d3f54347f2153796c4dfb89ddfe735837220
340
package com.zw.lifecycle; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.stereotype.Component; @Configuration public class ConfigDemo { @Bean String str() { System.out.println("创建@Configuration @Bean对象..."); return "...
22.666667
60
0.770588
d8b1a2a57634d97be947a63b3364805810602f8b
1,100
package com.semperhilaris.smoothcam; import aurelienribon.tweenengine.TweenAccessor; /** Exposing tweenable fields of {@link SmoothCamWorld} for Universal Tween Engine by Aurelien Ribon (see * http://www.aurelienribon.com/blog/projects/universal-tween-engine/) * @author David Froehlich <semperhilaris@gmail.com> */...
23.404255
105
0.712727
d1d6eac0136a060350ed39877e7832d59461403c
17,104
package imagescience.random; import imagescience.image.Axes; import imagescience.image.ByteImage; import imagescience.image.Coordinates; import imagescience.image.Dimensions; import imagescience.image.Image; import imagescience.utility.ImageScience; import imagescience.utility.Messenger; import imagescience.utility.Pr...
42.547264
354
0.714102
0d94a824a3df51e69084f4344feb1b6c750b2ad5
442
package com.github.bruce.thrift.connection.pool; import org.apache.commons.pool2.BasePooledObjectFactory; import org.apache.commons.pool2.impl.GenericObjectPoolConfig; public interface Pool<T> { public boolean initPool(BasePooledObjectFactory<T> factory, GenericObjectPoolConfig config); public T getResource...
27.625
96
0.794118
a53db018ccdf986c5607ff8601c6cb4b8626e7ed
10,955
package seedu.address.logic.parser; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static seedu.address.commons.core.Messages.MESSAGE_INVALID_COMMAND_FORMAT; import static seedu.address.commons.core.Messages.MESSAGE_UNKNOWN_COMMAND; import org.junit.Rule; import org.jun...
45.456432
116
0.723049
b270d8352e7152080b614e33a27e8fa0119adc29
632
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package Graphics; /** *last Edited: 2/25/2013 * @author james small */ public abstract class SingletonUserActionKeyboard extends UserActionKeyboard { private int key = -1; public void setKey(int k...
23.407407
79
0.596519
e4270ccc56a09e1320d3a278fbf46c33b04c2c3a
4,384
package be.unamur.transitionsystem.test.mutation; /* * #%L * vibes-mutation * %% * Copyright (C) 2014 PReCISE, University of Namur * %% * 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 Softwar...
39.495495
98
0.698221
7e3944382ee88197ee16c7f4a704a1dc4c9f7d56
4,811
/* * 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 ma...
38.488
170
0.687175
bfdbcd852e2d23b363c622fda7b1708f488f7474
886
package com.petkit.android.model; import java.io.Serializable; public class Brand implements Serializable{ private static final long serialVersionUID = 3126226868756859708L; private String index; private String name; private String icon; private int id; private int privated; public String getIndex() { ...
18.458333
70
0.681716
2431c5695d9301d6aee6edbc0116bf1d683f1327
1,972
package osmedile.intellij.stringmanip.filter; import com.intellij.openapi.editor.VisualPosition; import com.intellij.util.xmlb.annotations.Transient; import java.util.Objects; public class GrepSettings { private boolean inverted; private boolean groupMatching; private boolean regex; private String pattern; pri...
21.911111
208
0.733266
e1ebeed43ac09828b9c4cf2dea8a55df3bc899ef
2,232
package mage.cards.s; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleActivatedAbility; import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.effects.common.UntapTargetEffect; import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect; import ma...
39.157895
164
0.722222
4b7673a4bc630694345545ef5f9fb2743fe27d66
1,406
package org.epodia.metier; import java.util.Collection; import java.util.List; import org.epodia.dao.GeneratedExerciceRepository; import org.epodia.entities.Generated_exercice; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class Generate...
26.037037
77
0.805121
a6d16e8d3dcec9c158cbef044dfb0f700d2fd17e
223
/* * Here comes the text of your license * Each line should be prefixed with * */ package rubiksrace; /** * * @author kjhuggins */ public interface IGameTileListener { public void tileClicked(GameTile tile); }
15.928571
43
0.690583
5bdb8ae0fd8bab4803cff2878aaf3dd7736c6cb1
44,981
package OpenRate.process; import OpenRate.cache.ICacheManager; import OpenRate.cache.RateCache; import OpenRate.exception.InitializationException; import OpenRate.exception.ProcessingException; import OpenRate.record.IRecord; import OpenRate.record.RateMapEntry; import OpenRate.record.RatingBreakdown; import OpenRate...
38.24915
214
0.667771
c91359b6d0e9768bf1d45b34f5b3b2d9d7327884
1,248
package net.sourceforge.jwbf.mediawiki.actions.queries; import static org.junit.Assert.assertTrue; import java.util.Iterator; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mockito; import org.mockito.Spy; import org.mockito.runners.MockitoJUnitRunner; import com.google.common.collect.Im...
26
88
0.736378
48bfc1c2f6dcbacfc840d03f64bf30045d2b29eb
1,661
/* * Copyright 2016 David Xu. 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 required by applica...
24.426471
82
0.671884
78a3e3ebf3336fd66709d30986de713261d9b5b2
561
package no.nav.testnav.libs.dto.syntperson.v1; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.NoArgsConstructor; import lombok.Value; @Value @Builder @AllArgsConstructor @NoArgsConstructor(force = true) public class SyntPersonDTO { @Jso...
21.576923
53
0.766488
7d534b96e4e18a2eb9ad2236f9851364dedcd4be
282
package org.kakara.engine.exceptions.render; /** * When an exception occurs when a shader was not found. * * @since 1.0-Pre4 */ public class ShaderNotFoundException extends RuntimeException { public ShaderNotFoundException(String message) { super(message); } }
21.692308
63
0.719858
f71dc80b856a9c94dea65de983f27777a1d67870
2,639
package app.controllers.ajax; import java.io.IOException; import java.time.OffsetDateTime; import javax.persistence.EntityManager; import javax.persistence.EntityTransaction; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServletRequest; import javax.s...
24.211009
75
0.742327
61642942938143ea8e7c0a6baa1b860de66271bf
4,153
/* Copyright (c) 2013 bergerkiller Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, s...
23.331461
87
0.629184
b911ef06bc6429de3736520e1b4bca28da74bcb1
2,085
package x0961h.aoc16.day13; import x0961h.aoc16.utils.Point; import java.io.IOException; import java.util.HashSet; import java.util.Set; import java.util.TreeSet; /** * Created by 0x0961h on 14.12.16. */ public class DaySolver { private static final double TIE_BREAKER = 1.0 / 100.0; private static TreeSet<...
28.561644
121
0.546283
833fadeb00f2818ef29a56de85e5ad1ea3dabbb2
3,580
// Copyright (c) 2014 The Chromium Embedded Framework Authors. All rights // reserved. Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. package org.cef.handler; import org.cef.CefApp.CefAppState; import org.cef.callback.CefCommandLine; import org.cef.callback.CefSch...
41.149425
96
0.710335
6c28805bc11b0550b7d13c38a9c23f7c26cd5e24
943
package com.books.suanfa4.d1._1; /** * page 3 * 欧几里得算法,算两个非负整数p/q的最大公约数 * * Created by Administrator on 2017/6/12 0012. */ public class P3Test { public static void main(String[] args) { int gcd = gcd(6, 2); System.out.println(gcd); double c = 256; double sqrt = sqrt(c); ...
18.86
46
0.481442
7aaec7f547903f3ea8098381501a7bbd8f95a5bd
4,992
package utils; import java.io.BufferedReader; import java.io.FileWriter; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtoc...
35.404255
145
0.692508
615ff840fa8cd3f5f3300f7e7162cadbcb7bb009
144
package org.modelcatalogue.core.policy; public enum VerificationPhase { PROPERTY_CHECK, EXTENSIONS_CHECK, FINALIZATION_CHECK; }
14.4
39
0.756944
46ed12d905613c1708f7cb8978a383f6daf61409
15,513
package org.openstreetmap.atlas.utilities.configuration; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.function.Predicate; import java.util.stream.Collectors; import org.openstreetmap.atlas.exception.CoreException; import org.openstreetmap.atlas.geography.MultiPolygo...
39.675192
147
0.652678
ed390283c3988c6e4233381b65d76f8bc0c77194
1,757
package rbmwsimulator.protocol.rasim.grdsrt; /** * <p>Title: Role-based Middleware Simulator (RBMW Simulator)</p> * * <p>Description: A simulator to test several role functionalities such as * role-assignment, role-monitoring, role-repair, role-execution scheduling, * role state machine, and role load-balancing a...
27.030769
80
0.593625
afdbfe30a8449845053391957f44db505950b154
338
package ru.job4j.design.isp.exx; public class MultiTool implements Tool { @Override public void toSaw() { System.out.println("Do nag!"); } @Override public void tighten() { System.out.println("Do tighten!"); } @Override public void cut() { System.out.println("D...
17.789474
42
0.579882
9dce7b393cd78a6eb771bf6a9166f9bd86ebd2b1
309
package operatorExamples; public class ConditionalOperators { int x = 8; int y = 9; public void printExample5() { if(x != 1 && x != 2){ System.out.println("x != 1 && x != 2 - true"); } if(x == 8 || x != 2){ System.out.println("x == 8 || x != 2 - true"); } } }
12.36
49
0.475728
6139ca3bd6535782de67e0f2c88617a79b816787
196
package p; class A { void m() { Cell<String> c = new Cell<String>(); c.put("X"); Cell<Cell<String>> nested = new Cell<Cell<String>>(); nested.put(c); } }
16.333333
61
0.484694
45b577cabf4aedac88a09582eda7563a7f33573e
2,720
// ------------------------------------------------------------------------------ // Copyright (c) 2017 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 res...
38.309859
101
0.702574
62876a4b74f9962276228a04197a3a3f22ab409c
1,082
package com.appdirect.sdk.appmarket.events; import static java.util.Objects.isNull; import java.util.HashMap; import java.util.Map; import lombok.EqualsAndHashCode; import lombok.Getter; import lombok.NoArgsConstructor; @Getter @EqualsAndHashCode(callSuper = true) @NoArgsConstructor public class EventWithContextWit...
28.473684
91
0.781885
2b97e8b0aacd1271d5d31b4a258f9a2877d402cd
1,860
package com.bitdubai.fermat_api.layer.actor_connection.common.structure_common_classes; import com.bitdubai.fermat_api.layer.all_definition.enums.Actors; import org.apache.commons.lang.Validate; /** * The class <code>ActiveActorIdentityInformation</code> * represents an actor identity with all the basic informatio...
28.615385
89
0.616129