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
d27ada03e10c091a20b57dda91eda834a10c71da
406
package work.icql.java.designpattern.creational.singleton; /** * 单例:内部类-懒加载 */ public final class InnerClassSingleton { private InnerClassSingleton() { } private static class SingletonHolder { public static final InnerClassSingleton INSTANCE = new InnerClassSingleton(); } public static...
21.368421
85
0.714286
02d7e43040f54d0f2dcc671d07ea16337ce84c38
4,605
/* * Copyright 2016 higherfrequencytrading.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicabl...
34.365672
153
0.699457
bf8b21998c63d3abe1f14831691ef986b4b21f91
6,643
package com.diego.hernando.orchestTest.business.worksign.service; import com.diego.hernando.orchestTest.business.DateOperationsService; import com.diego.hernando.orchestTest.business.worksign.WorkSignDto; import com.diego.hernando.orchestTest.model.WorkSignRecordType; import com.diego.hernando.orchestTest.model.WorkSi...
49.207407
145
0.72121
c30b4e205f4de5d36e550440047b8824c090127c
5,778
package com.pega.api2swagger.schemagen.json; import java.io.IOException; import java.util.Iterator; import org.apache.commons.lang3.StringUtils; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterx...
33.206897
102
0.734683
5aa675a8d1ea853c3b2b9002a0cadf751c162bec
1,163
package bigtwo.game; public class Database { public static final String TABLE_GROUP = "gamegroup" , FIELD_GROUP_GROUPID = "groupid" , FIELD_GROUP_EASTEREGG = "easteregg" , FIELD_GROUP_LANG = "lang" , FIELD_GROUP_LINK = "link" , FIELD_GROUP_NCARD ...
32.305556
43
0.649183
8f40a018dca0b8d349f6e63f82319096f1af7154
147
package framework.chef; import framework.order.Order; public interface ChefCommand { void showStock(); void processOrder(Order order); }
16.333333
35
0.748299
7a250748ed8d186559e70c5ec019df4fb3dda744
2,769
/* * 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 ...
33.361446
116
0.706392
ba725ee717bebb5f3b81886253c32daac9b206b5
4,511
package com.example.android.popularmovies; import android.content.Context; import android.os.AsyncTask; import android.support.annotation.NonNull; import com.example.android.popularmovies.model.MovieInfo; import com.example.android.popularmovies.model.Review; import com.example.android.popularmovies.model.Trailer; i...
38.555556
107
0.661937
55439b894fcfa45d49a66c7fdd73ca8f5d8b5202
1,685
/* * Copyright The OpenTelemetry Authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or a...
33.7
92
0.738872
d2da1354989c4f902b06454c51fae0a9199f723b
1,605
package ch.fridolins.fridowpi.sensors; import ch.fridolins.fridowpi.sensors.base.IUltrasonic; import edu.wpi.first.math.filter.LinearFilter; import edu.wpi.first.util.sendable.Sendable; import edu.wpi.first.util.sendable.SendableBuilder; import edu.wpi.first.util.sendable.SendableRegistry; import edu.wpi.first.wpilibj...
30.283019
90
0.698442
8dab14dfacfc5d0d15b87df51d525de9bdb33550
9,478
package org.ggp.base.apps.benchmark; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.ggp.base.player.GamePlayer; import org.ggp.base.player.gamer.Gamer; im...
44.083721
143
0.651087
30e13c6d0e90608e807d215799ee2a2f662b0ace
1,569
package com.hibegin.http.file.config; import com.hibegin.common.util.LoggerUtil; import com.hibegin.http.file.intercepter.FileInterceptor; import com.hibegin.http.file.server.SimpleWebServerCliOptions; import com.hibegin.http.server.config.AbstractServerConfig; import com.hibegin.http.server.config.RequestConfig; impo...
32.020408
116
0.739962
d265626268ef21e6c6631cc0b45e9da3d3738b8f
1,656
/************************************************************************* * * ATOS CONFIDENTIAL * __________________ * * Copyright (2020) Atos Spain SA * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Atos Spain SA and other companies of the Atos group. ...
28.551724
103
0.661836
48e1e1cdc276bb1cfd50dadaff983b702007a75f
1,693
package arrays; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.DisplayName; import java.lang.annotation.Documented; import java.util.*; /** * @author g1patil * You are given an integer array nums. In one move, you can pick an index i where 0 <= i < nums.len...
30.232143
131
0.61961
b5997d18a4ff9fd886806e8b12d25b4cd76f3e45
4,518
/** * Copyright (c) 2010, Ben Fortuna * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * o Redistributions of source code must retain the above copyright * notice, this list of condit...
30.945205
96
0.682382
01f8b4600cf3b76c6bd3b776d2e381021a8af7bb
2,367
package org.develnext.jphp.ext.webcam.classes.event; import com.github.sarxos.webcam.Webcam; import com.github.sarxos.webcam.WebcamMotionEvent; import javafx.embed.swing.SwingFXUtils; import javafx.scene.image.Image; import org.develnext.jphp.ext.webcam.WebcamExtension; import php.runtime.Memory; import php.runtime.an...
29.5875
90
0.697507
b744913dd217e398ea70398cdaf55d761f0bc3f6
184
/** * Components and Entities of the domain layer. * <p>It does not assume it that a component of the domain layer calls the UI layer and application layer. */ package sample.model;
36.8
106
0.744565
0fec76b1e6a8ef799a18ce616ff3301385881c57
760
package com.example.task.warrior; import com.example.task.Task; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectWriter; import org.junit.jupiter.api.Test; class TaskWarriorServiceTest { @Test void name(...
31.666667
63
0.689474
b6df8f5c84f8811cf511a37d5d1861e46c7899e2
1,277
/** * $Id$ * Copyright(C) 2012-2016 qiyun.com. All rights reserved. */ package com.configx.demo.bean; import com.configx.client.converter.ConfigBeanConverter; import org.simpleframework.xml.Serializer; import org.simpleframework.xml.convert.AnnotationStrategy; import org.simpleframework.xml.core.Persister; import o...
31.925
98
0.723571
1fcb839b217a00c0540e65c47bcd6e64b18281db
625
package examples; import java.io.File; import java.net.URL; import org.terifan.imageio.jpeg.JPEGImageIO; import examples.res.R; import org.terifan.imageio.jpeg.CompressionType; public class TranscodeJPEGDemo { public static void main(String... args) { try { URL input = R.class.getResource("Swallowtail.jpg")...
20.833333
104
0.7312
bb2d426bbe74ed88a64b7bfe082377328af3b133
196
/* * Travis Ferguson - Apache 2.0 Licensed */ package com.overwrittenstack.raceday.service; /** * * @author Travis */ public class TimedRaceManager { //TODO make this work }
15.076923
46
0.637755
7d1a605580c67a557d1cc96a5c23eb4c45e4009d
3,059
/** * 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...
29.699029
83
0.680288
b7618bccaa60f723c503e4d352657168477d35ae
1,085
package frc.fangv.robot.subsystems; import edu.wpi.first.cameraserver.CameraServer; import edu.wpi.first.wpilibj2.command.Subsystem; public class CameraSubsystem implements Subsystem { /** * The Singleton instance of this CameraSubsystem. External classes should * use the {@link #getInstance()} method ...
32.878788
84
0.706912
935a4ddfe673e9ac8e893e1092aed004a8a5c9ea
6,422
/* * Copyright (c) 2020-2021 Heiko Bornholdt and Kevin Röbert * * 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, co...
31.024155
99
0.65914
2bcdb1b932807d42b3db37231281a9f53380a347
210
package com.deer.wms.produce.manage.model; import com.deer.wms.project.seed.core.service.QueryParams; /** * Created by on 2019/10/08. */ public class MtAloneProcessMaterialsBomParams extends QueryParams { }
21
67
0.780952
e3f995f0dfcaed9b9793872429a68b594bc16b35
2,241
/** * Copyright 2018 Nelson Tavares de Sousa * * 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 ...
31.56338
77
0.729585
0bfc6000ee7427aabccef5c048e2678e68a1d806
12,505
package be.cytomine.client.abst; import be.cytomine.client.*; import java.util.*; import org.json.simple.*; import java.util.Date; import be.cytomine.client.Server; import be.cytomine.client.SoftwareParameter; import org.json.simple.JSONObject; /** * A parameter for a software. It's a template to create job param...
24.471624
200
0.610956
da65e86d2bb1ea9512561c4b307d0f2198a15fc1
2,234
/* * * * Copyright 2019 Max Berkelmans * * * * 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...
26.915663
113
0.692927
260f04f5c65ffdbd329914f341533291ebdf1d64
1,533
package com.example.restapi.controller; import com.example.restapi.dto.UserDto; import com.example.restapi.exception.UserNotFoundException; import com.example.restapi.model.User; import com.example.restapi.repository.UserRepository; import com.example.restapi.service.UserService; import org.springframework.beans.facto...
22.880597
76
0.711676
f71f3b2d3b5752a14de05349ea22bf78df746e4d
238
package com.coolweather.android.gson; /** * 作者:陈俊伟 on 2018/4/22 0022 21:07 * <p> * 作用:xxx */ public class AQI { public AQICity city; public class AQICity { public String aqi; public String pm25; } }
11.333333
37
0.588235
e756487add637d0eebe24341800afb64304c1e01
1,056
/** * :软件实体应该对扩展开放,对修改关闭,其 * 含义是说一个软件实体应该通过扩展来实现变化,而不是通过修改已有的代码来实现变化。 * 软件实体包括以下几个部分:<br/> * <ol> * <li>项目或软件产品中按照一定的逻辑规则划分的模块。</li> * <li>抽象和类。</li> * <li>方法。</li> * </ol> * <br/> * 可以把变化归纳为以下三种类型: * <ol> * <li>逻辑变化 * 只变化一个逻辑,而不涉及其他模块,比如原有的一个算法是a*b+c,现在需要修改为 a*b*c,可以通过修改原有类中的方法的方式来完成,前提条件是...
25.756098
126
0.657197
6575869de2209f83cb44418fdf6ce7479cdbede4
6,201
package net.minecraft.client.renderer.block.model; import net.minecraft.client.renderer.*; import java.lang.reflect.*; import com.google.gson.*; public class ItemCameraTransforms { public static final ItemCameraTransforms DEFAULT; public static float field_181690_b; public static float field_181691_c; ...
47.335878
261
0.709563
f4318fe029ad09ba86e6944c8eec41448aa0cf87
12,391
package org.hswebframework.payment.payment.channel.alipay.substitute; import com.alipay.api.AlipayApiException; import com.alipay.api.AlipayClient; import com.alipay.api.DefaultAlipayClient; import com.alipay.api.domain.*; import com.alipay.api.internal.util.AlipaySignature; import com.alipay.api.request.AlipayFundBat...
44.571942
143
0.59406
71902fc529d08ed61f2a64d17fc7a3ca8704d165
15,980
/*- * See the file LICENSE for redistribution information. * * Copyright (c) 2002,2008 Oracle. All rights reserved. * * $Id: Transaction.java,v 1.59 2008/05/29 03:38:23 linda Exp $ */ package com.sleepycat.je; import com.sleepycat.je.dbi.EnvironmentImpl; import com.sleepycat.je.txn.Locker; import com.sleepycat...
34.218415
80
0.657322
f104e8a8e2faae4d4782852cb036c01303ffdf72
3,159
/* * Copyright (c) 2007, Dennis M. Sosnoski All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the * following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of conditions...
39.987342
120
0.710351
d217f0daa170ed7f79e0c47966b6bd7334e1800b
683
package com.icfolson.aem.harbor.api.trees.construction; import com.google.common.base.Optional; import com.icfolson.aem.harbor.api.trees.TreeNode; /** * A Strategy used to construct a Tree of nodes * * @param <T> */ public interface TreeConstructionStrategy<T extends TreeNode> { /** * Construction produ...
28.458333
115
0.715959
d7f9405d0ddff990213787af2db55bcb15cea23d
3,620
package seedu.address.logic.commands; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import static seedu.address.commons.core.Messages.MESSAGE_FIND_ORDERS_OVERVIEW; import static seedu.a...
44.146341
118
0.759392
3483a9fe6854f27bcb154c01c8d7b87356c127eb
748
package com.insightfullogic.java8.answers.chapter9; import com.insightfullogic.java8.answers.chapter9.BlockingArtistAnalyzer; import org.junit.Test; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; public class BlockingArtistAnalyzerTest { private final com.insigh...
31.166667
166
0.748663
c9d8b88749aa98af79f2e8d91890c7df485e9bd2
359
package ada.adapters.cli.commands.enums; public enum EAuthType { USER("user"), ROLE("role"), WILDCARD("all"); private final String value; EAuthType(String value) { this.value = value; } public String getValue() { return value; } @Override public String toStr...
14.36
40
0.576602
0899f59d9f45185ce7d7f178891676a5dec6522e
2,992
/* * 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 ...
46.030769
140
0.737634
1b695ec34bc5eaee6f753da9096cf9a63406d079
1,261
package com.subrosagames.subrosa.domain.location.persistence; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.OneTo...
23.792453
73
0.693894
d9c8c675a49f649742dfe4aa35fec20285800064
896
package lambda; public class LambdasAsArgumentDemo { static String stringOp(StringFunc sf, String s) { return sf.func(s); } public static void main(String [] args) { String inStr="Lambdas add power to Java"; String outStr; System.out.println("Here is input string: "+inStr); outStr=stringOp((str)-...
19.911111
70
0.628348
cb86eaf3563228d5622ae1f8dcc8627542968cc5
3,385
package cc.lixiaoyu.wanandroid.core.wechat; import cc.lixiaoyu.wanandroid.entity.Article; import cc.lixiaoyu.wanandroid.entity.WechatPage; import cc.lixiaoyu.wanandroid.util.Optional; import cc.lixiaoyu.wanandroid.util.ToastUtil; import io.reactivex.functions.Consumer; public class WechatDataPresenter extends WechatD...
35.260417
120
0.59291
80482ade310980c05a356e3835baea34e846ee9b
357
package me.androidbox.loginmvp.login; /** * Created by steve on 5/9/16. */ public interface LoginModelContract { interface OnLoginCompletedListener { void onUsernameError(); void onPasswordError(); void onSuccess(); } void login(String username, String password, OnLoginCompletedL...
23.8
100
0.711485
19a6c3ac76e51b472150d5773d5f3a9e2d354539
4,723
/*** Copyright (c) 2013-2014 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 t...
27.459302
89
0.720093
92812712d0dc321c178dfb0a8d961c5a83fcf133
12,183
/* RetroRPGCS: An RPG */ package com.puttysoftware.retrorpgcs.maze.effects; import com.puttysoftware.randomrange.RandomRange; import com.puttysoftware.retrorpgcs.maze.utilities.DirectionConstants; public class Dizzy extends MazeEffect { private static final int DIZZY_STATE_UDRL = 1; private static final int D...
36.044379
79
0.593039
f09e02176ea8ca7a9696bef714b5d5348f11e85a
575
import static org.junit.jupiter.api.Assertions.assertArrayEquals; import org.junit.jupiter.api.Test; class SolutionTest { @Test void sample() { assertArrayEquals(new long[]{0, 0, 0}, Kata.NumbersWithDigitInside(5, 6)); assertArrayEquals(new long[]{1, 6, 6}, Kata.NumbersWithDigitInside(7, 6)); assertAr...
38.333333
94
0.721739
1e663d7931a201cd050e7afd551839bc979e2064
3,368
/* * ARX: Powerful Data Anonymization * Copyright 2012 - 2017 Fabian Prasser, Florian Kohlmayer and 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://w...
31.773585
104
0.609264
a0a36bca0c398a4821e3c9beff164f6b4ffdb39d
24,683
/* * * Copyright (c) 2012-2015 VMware, 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 required ...
40.134959
153
0.701576
63d4be8f8d133f0862644e5592382967abb460be
1,313
package com.me.ui.sample; import android.app.Application; import android.content.Context; import com.alibaba.android.arouter.launcher.ARouter; import com.me.ui.sample.library.log.MLog; import com.me.ui.util.ProcessUtils; import com.me.ui.util.Utils; import com.tencent.bugly.Bugly; import com.tencent.bugly.crashreport...
24.773585
75
0.662605
a84c750f624cc070ed8a8039e930004a321eddff
5,185
/******************************************************************************* * Copyright 2013 Sebastien Diot * * 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...
31.809816
83
0.607522
857df8a45ceec33b18c6b10c61b9db2bb7f4d759
8,607
/* * Copyright (c) 2008-2020, Hazelcast, 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 required ...
40.599057
125
0.738353
10be5582ec6d5ab12cb33218d3f73825789b42c4
18,004
package de.citec.sc.sampling; import de.citec.sc.learning.QueryConstructor; import de.citec.sc.utils.Performance; import de.citec.sc.variable.State; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import java.util.stream...
38.225053
139
0.63297
dbceb3d439f34e1d4c555d73406895c42b38812a
5,353
/* * Copyright 2016-2017 Davide Steduto * * 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...
27.451282
124
0.634411
b0a68a1dad880bba9a8cabc1ceeed4a856d3c0d0
4,474
/** * 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...
36.080645
117
0.662494
699da5bef0c1b20d9903b9358e1b97b7579eed48
5,340
/* * Copyright © 2018 Apple Inc. and the ServiceTalk project authors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
36.081081
137
0.604494
db3a2a8a47bf0fd02fc7bde11a68851ff4cb2659
9,198
/* * AbstractClusterer.java * Copyright (C) 2009 University of Waikato, Hamilton, New Zealand * @author Albert Bifet (abifet@cs.waikato.ac.nz) * * 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 Fr...
30.157377
95
0.713416
9c105d21102cf40bf6898c9bb22f195b2ac9c4a4
630
package tp.pr5.control; import java.util.Scanner; import tp.pr5.Resources.Counter; import tp.pr5.logic.Connect4Move; import tp.pr5.logic.Connect4Rules; import tp.pr5.logic.GameRules; import tp.pr5.logic.Move; public class Connect4Factory implements GameTypeFactory { public GameRules createRules() { return new Co...
21
59
0.761905
ba8413d0fa35b79588ed695efc7d7faf967628ff
5,390
package Pokemons; import java.io.Serializable; import java.util.List; import Pokemons.Type.Types; public class Pokemon implements Serializable { private static final long serialVersionUID = -2280764990854534879L; public String name; public Species species; public int Health; public StatusEffects statuseffect...
36.418919
153
0.668831
9e112c2d727f2b244386072d0bf749e70fdd1069
3,301
package gcm.play.android.samples.com.gcmquickstart; import android.content.Context; import android.content.SharedPreferences; import android.net.wifi.WifiInfo; import android.net.wifi.WifiManager; import android.os.Build; import org.json.JSONArray; import org.json.JSONObject; import java.text.SimpleDateFormat; impor...
38.383721
318
0.572857
b838db5ce864be238c1d76a84d4357d8f04bb066
2,821
package mage.cards.c; import mage.abilities.Ability; import mage.abilities.effects.OneShotEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.cards.Cards; import mage.cards.CardsImpl; import mage.constants.CardType; import mage.constants.ComparisonType; import mage.constants.Outcome; import ...
33.583333
109
0.704006
14f0ed120d1a2727af3cc81e7d2e62039c4917f4
2,153
/* * Copyright 2016 Red Hat, Inc, and individual 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 required by a...
35.883333
96
0.655365
0a61876de0853c7466ba82e119404cc86e94f259
12,606
/* $This file is distributed under the terms of the license in LICENSE$ */ package edu.cornell.mannlib.semservices.service.impl; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.StringWriter; import java.net.URI; import java.net.URISyntaxException; import jav...
31.673367
107
0.703871
cc399ae186de69bbe07075a4b1b2707a489bebc8
451
package com.spike.microservice.dubbo.business.demo; import org.springframework.context.support.ClassPathXmlApplicationContext; public class TestProvider { public static void main(String[] args) throws Exception { ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext( new String[] ...
28.1875
80
0.733925
b84302a0d83683ba5a7cb717c9600c4398cbac6b
5,538
package com.store.web.controller.system; import com.store.common.annotation.Log; import com.store.common.constant.UserConstants; import com.store.common.core.domain.StoreResult; import com.store.common.enums.BusinessType; import com.store.common.utils.SecurityUtils; import com.store.system.service.ISysUserService; imp...
33.361446
122
0.673167
7122203580d9f2a3a8f01a021a06570cc66f885c
802
package io.github.jaychoufans.dao; import io.github.jaychoufans.model.Role; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; import java.util.Map; @Mapper public interface RoleMapper { int deleteByPrimaryKey(Integer roleId); int insertSelective(Role ...
22.914286
90
0.790524
66f36d2d550c5df48c19fd09e8b98ccbc2bedf2a
778
package com.gluuten.model; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import org.hibernate.validator.constraints.Email; import org.hibernate.validator.constraints.NotEmpty; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import java.io...
19.45
52
0.724936
f64bb83ea2cd2f9e61959483a9328c52035fbc73
5,702
/* * 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 ...
53.28972
113
0.789723
f9c4cd511374ea4c6aee45bea40230da00168299
92
package net.ftlines.blog.cdidemo.service; public class GenerateSystemReportEvent { }
15.333333
42
0.771739
71d6d98a52bfd02c27bbc9767afcb01e39a20fe1
131
package com.breakersoft.plow.crond; public enum CrondTask { ORPHAN_PROC_CHECK, DOWN_NODE_CHECK, DEALLOC_PROC_CHECK }
14.555556
35
0.755725
f6d4f180df01fe82038f9f60b405e9d0b24317ef
1,241
// -------------------------------------------------------------------------------- // Copyright 2002-2021 Echo Three, 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:/...
41.366667
83
0.663175
75c64175137a89ae06c04cffe19d48871cfd9749
8,875
/* * Copyright 2016 The Bazel Authors. 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 a...
30.709343
100
0.68969
cc600cc178afbb68ee16818f33f6f917e80efe0e
3,134
package org.broad.igv.feature.genome; import htsjdk.samtools.seekablestream.SeekableStream; import org.broad.igv.util.FileUtils; import org.broad.igv.util.LittleEndianInputStream; import org.broad.igv.util.stream.IGVSeekableStreamFactory; import java.io.IOException; import java.util.LinkedHashMap; import java.util.Li...
25.479675
96
0.596362
e918676e79485238e899e3daf44eb46d30a32138
1,031
package no.unit.nva.cristin.mapper; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.function.Executable; import java.util.concurrent.atomic.AtomicReference; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.StringContains.containsString; import static org.junit.jupi...
42.958333
119
0.807953
39045f1ed57306e0eafa9348c6dbccad4fe2ac8c
3,015
/* * Copyright 2018 Nextworks s.r.l. * * 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...
29.558824
102
0.687894
47f380a94e6d8ec4b74beff8e19ffbdc2f367cb1
822
package academy.devdojo.maratonajava.javacore.Aintroductionclasses.test; import academy.devdojo.maratonajava.javacore.Aintroductionclasses.domain.Student; public class StudentTest02 { public static void main(String[] args) { Student student1 = new Student(); Student student2 = new Student(); ...
28.344828
81
0.63382
7aad1427a7a80a0dadb052f366f0023d85c995c5
3,550
/* * 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.340909
126
0.723662
f4554554c5f3edfdf23111a513278f456a89af4f
1,078
package de.hpi.bpt.chimera.parser.datamodel; import java.util.UUID; import org.apache.log4j.Logger; import org.json.JSONException; import org.json.JSONObject; import de.hpi.bpt.chimera.model.datamodel.DataAttribute; import de.hpi.bpt.chimera.parser.IllegalCaseModelException; import de.hpi.bpt.chimera.validation.Name...
27.641026
91
0.770872
c1f3a4ae1f83fa08ae995a538a7f152fd4b65c32
2,383
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.1. You may not use this file * ...
28.710843
98
0.736047
385795721b3a966d3852c7247f8df51891b5a4e7
353
package de.fhbielefeld.newsboard.model.module; import de.fhbielefeld.newsboard.model.Repository; /** * Data access interface for external modules. */ public interface ExternalModuleDao extends Repository { ExternalModule get(ModuleId reference); int update(ExternalModule externalModule); int create(E...
22.0625
55
0.784703
3e3a61a051195cad20d6aa95f4317b6511647677
199
package com.bjsxt.service; import com.bjsxt.domain.ForexAccount; import com.baomidou.mybatisplus.extension.service.IService; public interface ForexAccountService extends IService<ForexAccount>{ }
22.111111
68
0.839196
2232dbeb60ef70b1b4344c1d85a1aff87f875558
1,839
package com.wasu.demo9.shiro; import com.wasu.demo9.dao.UserMapper; import com.wasu.demo9.pojo.User; import org.apache.shiro.authc.*; import org.apache.shiro.authz.AuthorizationInfo; import org.apache.shiro.realm.AuthorizingRealm; import org.apache.shiro.subject.PrincipalCollection; import org.springframework.beans.fa...
32.839286
130
0.704187
fe55eb950ec9d362f1ca1ef1d08d6908d5f927fd
2,759
/* * 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")...
36.786667
92
0.699529
3e44c32b5a889dff5da7db8ef74d75e58d4990db
3,322
package de.skuld.web.model; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.v3.oas.annotations.media.Schema; import java.util.Objects; import org.springframework.validation.annotation.Validat...
20.133333
130
0.62342
fcc7934c9040ba469983f93a78f28796652a1b59
6,044
package com.jnape.palatable.lambda.functions.builtin.fn7; import com.jnape.palatable.lambda.functions.Fn1; import com.jnape.palatable.lambda.functions.Fn2; import com.jnape.palatable.lambda.functions.Fn3; import com.jnape.palatable.lambda.functions.Fn4; import com.jnape.palatable.lambda.functions.Fn5; import com.jnape...
51.220339
118
0.527134
346ca064c56071643b3ca4d295278305030feb25
4,347
package us.ihmc.pathPlanning.visibilityGraphs.dataStructure; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import us.ihmc.euclid.interfaces.EpsilonComparable; import us.ihmc.euclid.tuple2D.Point2D; import us.ihmc.euclid.tuple2D.interfaces.Point2DReadOnly; import us.ihmc.euclid.tuple3D.i...
26.506098
152
0.723257
1a5772de270b916aa17b58b23467e9f039672298
654
package com.binea.redis; /** * Created by binea * Date: 4/11/2017 * TIME: 7:15 PM */ //@Configuration public class RedisConfig { // @Bean // JedisConnectionFactory jedisConnectionFactory() { // return new JedisConnectionFactory(); // } // // @Bean // public RedisTemplate<String, User> redisTe...
27.25
88
0.668196
8d0cda65faf10d3697c4713318fa5a2c2187199a
4,474
package com.crazymoosen; import java.util.ArrayList; import java.util.List; import org.bukkit.Bukkit; import org.bukkit.ChatColor; import org.bukkit.command.Command; import org.bukkit.command.CommandSender; import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.entity.Player; import org....
29.826667
164
0.628744
834c625c02ab5f386601b7013c9038a04d49a139
3,797
package com.example.alfasdk.Network; import android.content.Context; import android.content.Intent; import android.os.Handler; import android.os.HandlerThread; import android.os.Message; import android.util.Log; import androidx.localbroadcastmanager.content.LocalBroadcastManager; import com.example.alfasdk.BaseActi...
27.715328
100
0.585989
e62b873b5c36e122cae12d6bf7d9227e989281cb
5,268
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ Copyright 2020 Adobe ~ ~ 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/li...
45.808696
131
0.655657
8e6ecdef9907819a295409c553bc678a48e1f683
1,768
package savedobject; import java.io.*; import lombok.Cleanup; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import lombok.ToString; import org.junit.Assert; import org.junit.Test; import me.noip.chankyin.mrmrg.utils.io.SavedObject; import me.noip.chankyin.mrmrg.utils.io.SavedObjectInputStream; i...
26.38806
76
0.760181
5b08e4abab6592a092326c9655739c8114190c0c
966
/* * Copyright 2018 Bradley Steele * * 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 ...
28.411765
75
0.708075
f65f7d8b74c08d4bde289cd5fb3abffa9b58dbf3
1,521
package com.huiyu.blog.security; import com.huiyu.blog.model.User; import com.huiyu.blog.service.UserService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.UserDetails; import org.springfram...
30.42
86
0.668639
790be64e8d0195c20fb1b36864557c243925bc45
4,220
package net.filebot.web; import static org.junit.Assert.*; import java.util.List; import java.util.Locale; import org.junit.Test; public class AnidbClientTest { static AnidbClient anidb = new AnidbClient("filebot", 6); /** * 74 episodes */ SearchResult monsterSearchResult = new SearchResult(1539, "Monster"...
33.492063
186
0.733412
0924fee36c2b3c9bb8a00ee2ef9e49b94f2a93ec
2,857
/* * Copyright 2011 Azwan Adli Abdullah * * 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 ag...
34.421687
92
0.724536
6c3f4dcd79f421a22f401e3960fe4f457930e6eb
28,982
// Copyright 2018 The Chromium 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.chromium.chrome.browser.keyboard_accessory.bar_component; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers...
51.846154
126
0.721034
002a71a455c88266dca20e22e592488718059fe7
396
package com.sliit.af.model.repository; import java.util.List; import org.springframework.data.mongodb.repository.MongoRepository; import org.springframework.stereotype.Repository; import com.sliit.af.model.CourseMaterial; @Repository public interface CourseMaterialRepository extends MongoRepository<CourseMaterial, ...
24.75
91
0.838384
8477b55196e75f0d9b574435008294113e699366
2,444
/* * Copyright (C) 2011 Eiichiro Uchiumi. 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 re...
33.479452
80
0.699673
7f91cdd455b06acef5664063c96214ae895f3019
548
package work.koreyoshi.base.exception; /** * @author zhoujx */ public class FileException extends BaseCustomException{ public FileException(String message, int code){ this.message = message; this.code = code; } public static FileException notExists(){ return new FileException("文...
21.92
55
0.662409
8cb27168e407fd51a3fa5acd792908f590651ad3
521
import static junit.framework.TestCase.assertEquals; import static org.junit.Assert.assertNotEquals; import org.junit.Test; public class ComparadorTest { @Test public void numeros_iguales() { ComparadorDeValores valorEsperado = new ComparadorDeValores(5); assertEquals(valorEsperado, new Comparador...
22.652174
65
0.769674