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
25cdd7ba4a7f35e76036d34dd24713bb1e1e2b91
14,916
/* * Copyright 2021 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
38.443299
100
0.700188
d80445b4d2c7ab09337a6e4af765511b62b272ae
10,587
/* * 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 writing, software * dis...
32.981308
106
0.674506
1a238dfe7dca0054b6f1ba3ae1d22e6f312a3877
7,142
/* * 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.171171
102
0.577149
40c7abdea97b2d49d8181670fe33676425249375
227
package io.renren.dao; import io.renren.entity.XxIssueEntity; /** * 发布信息 * * @author tangty * @email tianyaTTY@gmail.com * @date 2017年7月26日 下午6:43:36 */ public interface XxIssueDao extends BaseDao<XxIssueEntity> { }
14.1875
60
0.713656
2660d214e71df5822067dc6693f459bb02462a92
13,417
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. The ASF * license...
20.267372
806
0.808228
dab51f50742e58de49bf81894aef2263cc17d5a1
4,392
package com.ontius.common.util.cli; import java.io.BufferedReader; import java.io.Console; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Properties; import org.apache.c...
28.705882
121
0.712432
259facca9772cde70a6706655f9189dc75453acf
3,411
/* * Copyright 2016-2018 Hippo B.V. (http://www.onehippo.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless req...
43.730769
128
0.678687
a98df5505300dac6c1bc430197d37f9e4163e534
619
package com.wfuertes.playlistcore.entities; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Value; import lombok.experimental.Accessors; import java.util.List; @Value @Accessors(fluent = true) public class Playlist { String id; String ...
22.925926
62
0.662359
071290bfd3bcac72f6f0c72d5b1968562bf0a94e
1,224
package net.demilich.metastone.game.cards.concrete.warrior; import net.demilich.metastone.game.cards.Rarity; import net.demilich.metastone.game.cards.SpellCard; import net.demilich.metastone.game.cards.concrete.tokens.weapons.HeavyAxe; import net.demilich.metastone.game.entities.heroes.HeroClass; import net.demi...
37.090909
136
0.767974
20e1b31ce81b84c1f0d49e2d04f784d18ced2229
4,489
package org.bigml.binding.resources; import org.bigml.binding.BigMLClient; import org.bigml.binding.utils.CacheManager; import org.json.simple.JSONObject; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * This class is used by the BigML class as a mixin that provides the configuration's REST calls. * ...
32.064286
97
0.624192
696b85e614d3ed9a55abc6c8ab7622e1ea36a7e9
1,051
package network; import java.net.*; import java.util.*; public class Get { public static String ip() { String save = null, ip; try { Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); while (interfaces.hasMoreElements()) { Network...
23.355556
92
0.500476
c0a6a152d69dc01f241f59120d07e46696dc2d5d
649
class Solution { public int[] sortArrayByParity(int[] A) { int oddIdx = 0; int evenIdx = 0; while (true) { while (oddIdx < A.length && A[oddIdx] % 2 == 0) oddIdx++; while (evenIdx < A.length && A[evenIdx] % 2 != 0) evenIdx++; if (oddIdx < A.length...
27.041667
72
0.440678
7ffa9aa4fff78e2248af8be8a910db0b9d8d35da
4,916
package com.mythmayor.basicproject.utils; import android.content.pm.PackageInfo; import android.content.pm.PackageManager; import android.os.Build; import android.os.Environment; import android.util.Log; import com.mythmayor.basicproject.BasicApplication; import java.io.File; import java.io.FileOutputStream; import...
35.114286
114
0.528478
0cebf64695a4a76c80ce88f4f7daf58fec23bb26
4,771
/* * Copyright (c) [2021] Huawei Technologies Co.,Ltd.All rights reserved. * * OpenArkCompiler is licensed under Mulan PSL v2. * You can use this software according to the terms and conditions of the Mulan PSL v2. * * http://license.coscl.org.cn/MulanPSL2 * * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
34.572464
109
0.597359
2416d17a79c77919dd142e36b9203831ed25f54f
720
package org.iglooproject.wicket.more.markup.repeater.table.builder.toolbar.state; import org.apache.wicket.Component; import org.apache.wicket.model.IModel; import org.iglooproject.jpa.more.business.sort.ISort; import org.iglooproject.wicket.more.markup.html.factory.IOneParameterComponentFactory; import org.iglooproj...
36
129
0.825
00651b6253ff922ebc0bc4e14c4e0b542ee70359
10,382
/******************************************************************************* * Copyright (C) FlexiCore, Inc - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited * Proprietary and confidential * Written by Avishay Ben Natan And Asaf Ben Natan, October 2015 *******...
48.514019
224
0.719996
39ebc6cafd6bf4d1b12f387d1435fa1c67f3c954
3,329
/* * This file is part of SpongeAPI, licensed under the MIT License (MIT). * * Copyright (c) SpongePowered <https://www.spongepowered.org> * Copyright (c) contributors * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Soft...
43.802632
141
0.726945
4bbac81028e940739442767f91ec3103b4ba70f3
1,020
package com.greg.golf.controller.dto; import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.v3.oas.annotations.media.Schema; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotNull; import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY; @Gett...
29.142857
84
0.769608
d78d1825ac5ff89e9a41a98a4b69aebdbac72741
252
@SuppressWarnings("serial") public class ScoutTrackNotValidatedException extends Exception { public ScoutTrackNotValidatedException (String ObjectType) { super(ObjectType + " was not validated. Can not construct or get " + ObjectType); } }
31.5
84
0.765873
2fc15bdb589386be3cf9129d6cb7d6a7365ad6cd
5,478
package com.innoz.toolbox.scenarioGeneration.geoinformation; 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.Collectors; import org.matsim.core.utils.collections.QuadTree; import org.matsim.core....
25.24424
112
0.735122
0f3135aa2b11118c4c033843887b4837c830a018
3,213
package controllers.implementacion.compras; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import controllers.contratos.compras.ICalificacion; import models.compra.Calificacion; import play.Configuration; import play.Play; import play.db.jpa.Transactional; import pl...
36.511364
123
0.663243
b130c242690e9b99c30e6cbabc44101deb1dc993
24,926
package cola.machine.game.myblocks.model.base; import cola.machine.game.myblocks.engine.Constants; import cola.machine.game.myblocks.manager.TextureManager; import cola.machine.game.myblocks.math.Vector3i; import cola.machine.game.myblocks.model.AABB.SimpleAABB; import cola.machine.game.myblocks.model.IBlock; import c...
31.1575
294
0.556206
6a248e7ed62f4e9559d67a530ec3521200c210fc
1,821
class Solution { List<Integer> ans = new ArrayList<>(); public void pre(TreeNode root){ if(root==null) return; ans.add(root.val); pre(root.left); pre(root.right); } public List<Integer> preorderTraversal(TreeNode root) { pre(root); return ans; ...
28.015385
152
0.494234
7bd895dd20e0efbdee208e383dfd8abd46562585
356
package org.hanframework.context.aware; /** * 空接口 * 为什么定义为空接口? 只作为一个标记来使用。这种做法无论在JDK源码和Spring源码中都是常见的 * 类似于这种设计还有很多,eg: List查询当继承了RandomAccess接口的List接口可用使用二分查询 * 否则只能用迭代查询 * @see java.util.Collections binarySearch方法 * @see java.util.RandomAccess * @author liuxin * @version Id: Aware.java, v 0.1 2018/10/29 10:4...
23.733333
58
0.758427
d3c300c6745b7d11f5cc4461e9e51c6e47436762
18,437
/* * Copyright 2019 Avee Player. 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 appli...
42.579677
178
0.661387
cf9e965457e004c1752b91cbd95365ebd5b27bb0
1,491
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.spring.sample.eventhubs.kafka; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplicati...
31.723404
103
0.713615
5c2f3af9c01ec6c0de06837d74d266a7959395b5
694
package com.bugjc.ea.code.generator.model; import com.bugjc.ea.code.generator.core.enums.SqlLike; import com.bugjc.ea.code.generator.core.toolkit.sql.SqlUtils; /** * 表名拼接 * * @author nieqiuqiu * @date 2019-11-26 * @since 3.3.0 */ public class LikeTable { private String value; private SqlLike like = S...
17.794872
61
0.636888
81513e0ec161bca028f3695eba30a88c3055da2a
466
package org.dlewandowski.webserver.processor; import java.io.IOException; /** * Classes implementing that interface are exposed in {@link RequestProcessorProvider} class. Any implementation of the interface supports particular type of * requests and responds to them. */ public interface RequestProcessor { /** ...
25.888889
157
0.759657
b7ddbe98bc7dd9881efdd23a4e17e02a5c679e27
2,971
package enterroute; import javafx.event.ActionEvent; import javafx.fxml.FXML; import javafx.fxml.Initializable; import javafx.scene.control.Button; import javafx.scene.control.ComboBox; import javafx.scene.control.Label; import javafx.scene.control.TextField; import java.net.URL; import java.sql.SQLException; import j...
38.584416
162
0.640525
11d36e1f4bbb546641bde66e4b8791bc24518f1c
166
package tripPlanner.dao; import java.util.List; import tripPlanner.model.Item; public interface SearchDao { List<Item> searchEvents(double lat, double lon); }
13.833333
49
0.76506
3d27a42a1fa05be3a9c08269eadbcb2a383b8253
8,114
package qp.operators; import qp.utils.Batch; import qp.utils.Schema; import qp.utils.Tuple; import qp.utils.TupleComparator; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.PriorityQueue; public class SortedRun extends Operator { Operator base; // Base operator ...
30.734848
139
0.524772
27a3d6d37afc0f6f11fdfedd73d40d289b13bcd7
3,218
/* * Copyright 2015-2020 Emmanuel Keller / QWAZR * * 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 ...
41.25641
129
0.706961
4485bd9fb53387b2c9148490a54ca640e214299f
3,625
package org.mcupdater; import net.minecraft.Launcher; import javax.swing.*; import java.awt.*; import java.awt.event.WindowEvent; import java.awt.event.WindowListener; import java.awt.image.BufferedImage; import java.io.File; import java.net.MalformedURLException; import java.net.URI; import java.net.URISyntaxExcepti...
29.233871
146
0.704828
8fe7097f59abf8fbcb8171b2ffe6c99dbf58a4ae
2,186
package MultiBracketValidation; import org.junit.After; import org.junit.Before; import org.junit.Test; import static org.junit.Assert.*; public class StackTest { public Stack<Character> testStack; @Before public void setUpStack() { this.testStack = new Stack<>(); } @After public voi...
25.717647
52
0.565874
490f220f5ab43f770a7973897fa1439595813218
6,188
package ch.uzh.ifi.seal.soprafs20.rest.mapper; import ch.uzh.ifi.seal.soprafs20.constant.LobbyStatus; import ch.uzh.ifi.seal.soprafs20.constant.LobbyType; import ch.uzh.ifi.seal.soprafs20.constant.MessageType; import ch.uzh.ifi.seal.soprafs20.constant.UserStatus; import ch.uzh.ifi.seal.soprafs20.entity.Game; import ch...
35.976744
87
0.680672
67a13eb0933941320a6f1f09a8265c1dacd663b1
1,056
package com.oc.hawk.base.domain.service; import com.google.common.collect.ImmutableMap; import com.oc.hawk.api.constant.AuthKey; import com.oc.hawk.base.domain.model.user.User; import com.oc.hawk.base.domain.model.user.UserId; import io.jsonwebtoken.Jwts; import io.jsonwebtoken.security.Keys; import javax.crypto.Secr...
32
83
0.679924
dae9df61323ee685d7fc17e938cc12bf02b6904e
1,814
package com.slurpy.glowfighter.gui; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.math.Vector2; import com.slurpy.glowfighter.Core; import com.slurpy.glowfighter.managers.AssetManager.FontAsset; import com.slurpy.glowfighter.utils.Util; public class Button{ private St...
23.558442
99
0.690739
cc92743ed3f8c30705a53680c5733197014a71f0
852
package at.arz.latte.rodeo.infrastructure; import java.util.logging.Logger; import javax.enterprise.context.ApplicationScoped; import javax.enterprise.inject.spi.BeanManager; import javax.inject.Inject; @ApplicationScoped public class EventDispatcher implements StartupListener { private static final Logger log=L...
20.285714
83
0.775822
536c60ac40acbf0d3c2a2937b3eecc03fc652ecd
720
package com.lvmoney.frame.authentication.oauth2.center.config; import org.springframework.security.authentication.AuthenticationDetailsSource; import org.springframework.security.web.authentication.WebAuthenticationDetails; import org.springframework.stereotype.Component; import javax.servlet.http.HttpServletRequest;...
34.285714
133
0.825
595c336c1e6c57596bcec447e5d0997a5959f0c2
1,761
package org.distributeme.test.asynch; import java.util.Random; import java.util.concurrent.atomic.AtomicInteger; public class TestServiceImpl implements TestService { private AtomicInteger requestCounter = new AtomicInteger(); private Random rnd = new Random(System.currentTimeMillis()); @Override public long...
28.868852
85
0.750142
0c4327b4f9d4056354d7ee15a6ca40481ca169a0
2,446
package com.kbolino.libraries.betterunicode; import static com.kbolino.libraries.betterunicode.UnicodeEncoding.UTF_8; import java.util.NoSuchElementException; public final class Utf8String extends AbstractUnicodeString implements UnicodeString { public static int byteCount(int codePoint) { if (codePoint <...
23.519231
87
0.6713
03c0481b04cd6178b1f942c37c695baf19ef0122
63
package com.github.theLongLab.PRESM; public class ChrBam { }
10.5
36
0.761905
71ebe1aa9a97433d4cd85b527196dfe202008e7e
5,374
<<<<<<< Updated upstream:src/main/java/sample/RSA.java package sample; ======= >>>>>>> Stashed changes:src/RSA.java import sun.misc.BASE64Decoder; import javax.crypto.BadPaddingException; import javax.crypto.Cipher; import javax.crypto.IllegalBlockSizeException; import javax.crypto.NoSuchPaddingException; import java....
35.355263
202
0.650726
26e0da618ad0396ac570c30cbda2b73d042a9cc8
553
package org.chronopolis.common.storage; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Configuration for Bag Staging areas in Chronopolis * * "storage.staging" instead of "chron.stage"? * * @author shake */ @ConfigurationProperties(prefix = "chron.stage.bags") public class Bag...
21.269231
75
0.699819
e5bc0b5466f54e0fa41f25d8616a2b6c95e015d2
981
package org.broadinstitute.hellbender.tools.walkers.varianteval.stratifications; import htsjdk.variant.variantcontext.VariantContext; import org.broadinstitute.hellbender.engine.*; import java.util.Arrays; import java.util.List; /** * Required stratification grouping output by each eval */ public class EvalFeature...
37.730769
250
0.750255
0aaa99907b9fa1633110264b8cf08da3812c7ee0
2,433
package com.baibuti.biji.ui.activity; import android.content.Intent; import android.graphics.Color; import android.os.Build; import android.os.Bundle; import android.support.annotation.Nullable; import android.support.design.widget.TabLayout; import android.support.v4.view.ViewPager; import android.support.v7.app.Acti...
27.033333
111
0.669955
32ff92803ed0eadb882dae3c63dc79568155de59
400
package com.ppfuns.report.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ppfuns.report.entity.AppContentTypeAlbumDurationRankWeek; /** * 专区类型下专辑播放时长周排行榜(AppContentTypeAlbumDurationRankWeek)表数据库访问层 * * @author jdq * @since 2021-07-14 15:20:46 */ public interface AppContentTypeAlbumDura...
26.666667
116
0.8275
9e0470171c1b1021bff0d9924a7d8fef1beaf40a
436
package kademlia; public interface KadConfiguration { public long restoreInterval(); public long responseTimeout(); public long operationTimeout(); public int maxConcurrentMessagesTransiting(); public int k(); public int replacementCacheSize(); pub...
12.823529
52
0.639908
65a715d944e372afd528c9fa32ac24320aabb539
317
package cn.mailu.LushX.repository; import cn.mailu.LushX.entity.Episode; import org.springframework.data.jpa.repository.JpaRepository; /** * @Ahtuor: xuzhenya * @Description: * @Date: Created in 下午 8:42 2017-11-05 * @Modified By: */ public interface EpisodeRepository extends JpaRepository<Episode,String> { }
22.642857
74
0.757098
fe8f7ccbd24bfe7127f9d1d2e972f9ac4027b7d0
1,159
package org.hsmak.random.string; import java.util.*; import java.util.function.Function; public class AnagramsGrouper { Function<String[], List<List<String>>> strategy; public AnagramsGrouper(Function<String[], List<List<String>>> strategy) { this.strategy = strategy; } public List<List<Str...
25.755556
77
0.514236
5b7b6291ae85427faa6e1b7a2466ef00629f42f8
2,959
/* * Copyright (c) Hoddmimes Solution AB 2021. * * * 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...
31.478723
134
0.737749
646195a9914c0b27b08ba18362b163f0370b1128
1,723
package edu.gemini.spModel.gemini.gmos.blueprint; import edu.gemini.spModel.gemini.gmos.GmosSouthType.FilterSouth; import edu.gemini.spModel.pio.ParamSet; import edu.gemini.spModel.pio.Pio; import edu.gemini.spModel.pio.PioFactory; import java.util.ArrayList; import java.util.Collections; import java.util.List; impo...
30.22807
89
0.720255
e4eb021ae2523d827e3d998a63954ab52b42705d
20,690
/* * Copyright 2021 The Flink Remote Shuffle 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 applicabl...
38.964218
99
0.590768
bf97a3f271848b44b249a45e4cd808c328114a84
2,661
package com.dzk.web.security.Ream; import com.dzk.common.myException.AccountFreezeException; import com.dzk.web.controller.LoginController; import com.dzk.web.entity.Account; import com.dzk.web.service.AccountService; import lombok.val; import org.apache.shiro.authc.AuthenticationException; import org.apache.shiro.aut...
40.318182
174
0.741075
c1d7e002e3cb7d8364f0ee96d59451873e49112c
652
package org.burningokr.model.log; import java.time.LocalDateTime; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsCon...
21.733333
49
0.806748
809028bf74e554da59747d70e3b2a609ed01ce14
992
package org.springframework.data.rest.core.domain.mongodb; import java.net.UnknownHostException; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.data.mongodb.MongoDb...
29.176471
84
0.830645
d836e24205cc0d4106a5716e045370de02f8a5a9
1,341
package com.system.controller; import com.system.po.Userlogin; import org.apache.shiro.SecurityUtils; import org.apache.shiro.authc.UsernamePasswordToken; import org.apache.shiro.subject.Subject; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org...
30.477273
88
0.680089
90f4c65be97187411aec525e8c1b20d3d9932a6b
1,915
/* * I have to find a way to send an email to each player */ public class SecurityDeveloper implements GameRules { private String id; /* * it will be used in Hacker's class. */ private static String name; private String email; public SecurityDeveloper() { setID("156464"); setName("SecurityDV1"); se...
26.232877
116
0.661097
4c9f69070b35e457a6191bc80042bdd9481decf6
3,310
package org.verisign.joid.server; import org.verisign.joid.IAssociation; import org.verisign.joid.AssociationRequest; import org.verisign.joid.Crypto; import org.verisign.joid.INonce; import org.verisign.joid.OpenIdException; import org.verisign.joid.IStore; import java.util.ArrayList; import java.util.Date; import ...
27.131148
95
0.61148
7c00440636abc6821ca5582d8add76c655293231
3,959
/* * Copyright (c) 2020 Connor Goulding * * 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...
42.569892
131
0.72291
d65a07b94d1d3a93bba09bf7a01eda05a64736e4
629
package com.atomscat.opensips.event.handler; import io.netty.channel.Channel; /** * @author th158 */ public class Context implements IEventApi { private final EventChannelHandler handler; private final Channel channel; public Context(Channel channel, EventChannelHandler clientHandler) { this....
18.5
72
0.661367
9f33a65dbacfae217704fdfebc59ffa62ab37291
1,066
package moodlistener.blusay.item; import android.graphics.Color; import java.util.ArrayList; import java.util.HashMap; /** * Created by Michelle on 6/13/2017. */ public class Mood { private String name; private String icon; private Color color; private String description; private ArrayList<Res...
24.227273
88
0.65666
6dfda72996a8293272b8ab6e9f327a28787aa056
2,890
package nl.nn.adapterframework.receivers; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.util.Map; import javax.sql.DataSource; import org.junit.Test; import nl.nn.adapterframework.core.PipeLineSessio...
37.051282
145
0.784429
72ce21b9e131c680aad6b78de4e5db150d9ec8ea
2,860
/* * 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 ...
26.981132
86
0.752448
11dec49ca36f2d74ef31c26e98840f7a5e474143
2,090
/** * 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 writing, software distributed under the Lic...
41.8
131
0.767943
fc28b5c52efcb25ff0b5e202ebfe49abd026f23d
9,360
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.security.attestation.implementation.models; import com.azure.core.util.BinaryData; import com.azure.security.attestation.models.AttestationResult; import com.azure.security.attestation.models.AttestationS...
27.130435
150
0.636325
f2c7731ac61a517865bbc1e3d0df5eabce997133
1,425
package mytest; import com.github.pagehelper.Page; import com.github.pagehelper.PageHelper; import com.github.pagehelper.mapper.CountryMapper; import com.github.pagehelper.model.Country; import com.github.pagehelper.util.MybatisHelper; import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.session.SqlSes...
32.386364
80
0.692632
4062ae777ca4f30feb6fc6438a0ccfa55e6ba7d8
18,819
package com.vrublack.nutrition.console; import com.vrublack.nutrition.core.*; import com.vrublack.nutrition.core.Formatter; import com.vrublack.nutrition.core.Pair; import java.text.SimpleDateFormat; import java.util.*; public class TextFormatter extends Formatter { private final static List<Specification.Nutrie...
37.941532
163
0.581646
011f633383b60d76cd5785dcd238f5afbe6977c4
5,338
/* * The MIT License * * Copyright (c) 2011, Dominik Bartholdi * * 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 us...
45.237288
116
0.787186
904de6df27287e6fa1bd8dc25f802207d10233b1
1,364
package org.mnode.ical4j.serializer.jot; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.databind.DeserializationContext; import net.fortuna.ical4j.vcard.VCard; import org.apache.commons.codec.DecoderException; import java.io.IOException; import ...
34.974359
92
0.664223
20ed9f87834605f5641a58209d57a9e4a4eaa17a
889
package ch.usi.dag.disl.test.suite; import java.io.IOException; import org.junit.After; import org.junit.Test; import ch.usi.dag.disl.test.utils.Runner; public abstract class BaseTest { private final Runner __runner = _createRunner (); protected abstract Runner _createRunner (); // @Test p...
17.096154
76
0.622047
333fc026768c4b5d53f3dec64696c6ba0de165b3
943
package com.github.typingtanuki.redmine.api; import com.github.typingtanuki.redmine.api.auth.RedmineAuth; import com.github.typingtanuki.redmine.api.internal.ListApiCore; import com.github.typingtanuki.redmine.model.Tracker; import com.github.typingtanuki.redmine.model.internal.TrackerList; import java.io.IOException...
28.575758
67
0.724284
2caf1586aca0398ca904e8b2b64a9f27f926c04f
616
package ca.sait.lab7.dataaccess; import ca.sait.lab7.models.Role; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.Query; public class RoleDB { public List<...
24.64
71
0.673701
915ed800c6e66f7580e81d9520a87cda0e5ddaa8
4,040
package mockgen; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.lang.reflect.Type; import java.util.HashMap; import java.util.Map; public class MockTemplateGen { private static final String DQ = "\""; private static final String TAB = "\t"; private static final String NL = "\r\n";...
26.578947
70
0.64505
399b07baee284ff78fb2ec961d51e080a64e1ebc
1,455
/* * * Copyright (c) 2006-2020, Speedment, Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); You may not * use this file except in compliance with the License. You may obtain a copy of * the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requi...
31.630435
110
0.717526
bbe5ed2dd9fc97559798e3386619d32f670ae17b
10,346
package com.ctrip.zeus.nginx; import com.ctrip.zeus.client.LocalClient; import com.ctrip.zeus.nginx.entity.Nginx; import com.ctrip.zeus.nginx.entity.NginxResponse; import com.ctrip.zeus.nginx.entity.NginxServerStatus; import org.apache.commons.exec.CommandLine; import org.apache.commons.exec.DefaultExecutor; import or...
39.041509
108
0.603712
543db85e74178171d8600a07d8c53a75a7734119
4,867
/* * MIT Licence: * * Copyright (c) 2020 Orthodox Engineering Ltd * * 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...
32.019737
123
0.675776
8d867e0fe0624ecccc26f97644e73517ce02ea8d
2,387
/* * Copyright (c) 2018-present Sonatype, Inc. All rights reserved. * * This program is licensed to you under the Apache License Version 2.0, * and you may not use this file except in compliance with the Apache License Version 2.0. * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/...
31.407895
114
0.752409
c100f83a8a683df07b4e8fd100270d9abd5c4969
343
package weiboclient4j.params; /** * @author Hover Ruan */ public class TargetScreenName extends StringParam { public static final TargetScreenName EMPTY = new TargetScreenName(null); public TargetScreenName(String value) { super(value); } protected String paramKey() { return "target...
20.176471
76
0.690962
0a68553772d3e17560e4af3849b09ce8c6b2c2dd
6,037
/** * 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 m...
32.456989
101
0.657777
2caf4e6204ea173e0c147862ecfffca42ce310ad
3,274
package com.mesosphere.sdk.scheduler.plan; import com.mesosphere.sdk.offer.LoggingUtils; import com.mesosphere.sdk.scheduler.plan.strategy.Strategy; import com.google.protobuf.TextFormat; import org.apache.mesos.Protos; import org.slf4j.Logger; import java.util.ArrayList; import java.util.Collection; import java.uti...
27.283333
85
0.681429
b2a855f555de0be1ad482e622a992ef8add6420c
12,420
/** * Copyright 2018-20 UKRI Science and Technology Facilities Council * 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 * Unles...
37.865854
140
0.65467
74c70a74b8eb4e542485543a6f6315c4835c9999
2,210
package com.samuel.modesto.course.models; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.samuel.modesto.course.enums.CourseLevel; import com.samuel.modesto.course.enums.CourseStatus; import lombok...
31.126761
111
0.745249
e9573ae3d6bbf06ad2b836808e5c660bf90ae1f5
1,891
package com.christopherdcanfield; public class TerrainFeature { public static final int PIXELS_WIDTH = 32; public static final int PIXELS_HEIGHT = 32; public static final byte TYPE_NONE = 0; public static final byte TYPE_WOOD_WALL = 1; public static final byte TYPE_STONE_WALL = 2; public static final byte TYPE...
20.554348
81
0.70862
d81574d9bc8ccb9905ac2a72c1134cc186dcbbb9
431
import javax.swing.UIManager; public class MainClass { public static void main(String[] args) { //Just Changing Appearance of the GUI try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { e.printStackTrace(); ...
21.55
80
0.582367
bc6cea8f685b4cba21e58bbf3cd2965d612d619b
1,243
package com.globalsight.ling.tm3.core; import java.util.Iterator; /** * A data handle is an interface to a slice of data in the TM that * can be accessed efficiently in various ways. A data handle * should generally load its data as needed, rather than upon * creation. However, the handle may operate on a snap...
31.075
74
0.675784
4f06a720fe8ffa301143e918d1c5eb0c062ceca3
521
class Main { public static int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } public static int lcm(int a, int b) { if (a == b) return a; else if (a == 1) return b; else if (b == 1) return ...
16.806452
50
0.397313
bab0d525c9c53b7579556205d87a718d46a19213
1,437
package com.mobiliteam.dbrepoexample; import android.app.Application; import android.content.Context; import android.util.Log; import com.mobiliteam.dbrepo.IDBChangeListener; import com.mobiliteam.dbrepo.OrmLiteRepository; /** * Created by swapnilnandgave on 16/04/18. */ public class ApplicationEx extends Applica...
20.826087
74
0.596381
84e30f72396d21365a9b428c85ea2a7ada74e455
542
package nl.bartpelle.veteres.toolkit.dec.impl.expr; import nl.bartpelle.veteres.toolkit.dec.Expr; import nl.bartpelle.veteres.toolkit.dec.Type; import nl.bartpelle.veteres.toolkit.dec.util.CodePrinter; /** * Created by bart on 7/20/15. */ public class VarpExpr extends Expr { private int value; public VarpExpr(E...
17.483871
57
0.721402
a83034dd83da728928ad98a7e84de7ca115ec0aa
603
package com.example.monolith; import com.example.monolith.config.AppConfig; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.context.Applicat...
26.217391
62
0.80597
a057ec62ab1ea16a6646c925a9cc5bff9e901a11
2,707
package dev.itsmeow.imdlib.tileentity; import dev.itsmeow.imdlib.block.BlockAnimalSkull; import dev.itsmeow.imdlib.client.render.RenderGenericHead; import dev.itsmeow.imdlib.entity.util.variant.IVariant; import dev.itsmeow.imdlib.util.HeadType; import net.minecraft.block.Block; import net.minecraft.client.renderer.ent...
30.761364
158
0.715922
05fc9802cb9192dacae4fbfeffd1a18641e34b11
377
package com.google.android.gms.internal.ads; /* renamed from: com.google.android.gms.internal.ads.Sj */ final /* synthetic */ class C9126Sj implements zzbam { /* renamed from: a */ private final zzbvy f21707a; C9126Sj(zzbvy zzbvy) { this.f21707a = zzbvy; } public final Object apply(Objec...
22.176471
58
0.65252
67c8b764977571483e31aa46ea8c3735e382a067
1,462
/* * Copyright 2010 JBoss 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 i...
20.027397
75
0.701778
f834b31bcf88dbbd81fd4a5dc2e7e00ecd40a629
671
package org.dynmap.fabric_1_14_4.event; import net.fabricmc.fabric.api.event.Event; import net.fabricmc.fabric.api.event.EventFactory; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World; public class BlockEvents { private BlockEvents() { } public static Event<BlockCallback> EVENT =...
27.958333
98
0.655738
bd4ee0b9d60557a9cecfd6a502be9b88531d636d
509
package insert_sort; public class InsertSortApp { public static void main(String[] args) { int maxSize = 100; ArrayIns arr; arr = new ArrayIns(maxSize); arr.insert(77); arr.insert(99); arr.insert(44); arr.insert(55); arr.insert(22); arr.inse...
18.851852
44
0.516699
315943a9a704430b0247741a5af11354900ad7c0
2,534
package com.ibeetl.study; import java.io.IOException; import java.util.HashMap; import java.util.Map; import org.beetl.core.Configuration; import org.beetl.core.GroupTemplate; import org.beetl.core.Template; import org.beetl.core.resource.StringTemplateResourceLoader; import org.junit.Test; public class BeetlTest { ...
36.2
106
0.710339
dc4a0b752c7938db35d3ea3b15dc9bb26e2b229f
6,372
/*! ****************************************************************************** * * Pentaho Data Integration * * Copyright (C) 2002-2013 by Pentaho : http://www.pentaho.com * ******************************************************************************* * * Licensed under the Apache License, Version 2.0 (th...
33.015544
119
0.627119
b0bc76f06ba83f6ff5376a26af3cabeb1e7b7db0
24,817
/******************************************************************************* * Copyright (c) 2005, 2009 SAP. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 * which accompanie...
39.7072
126
0.557924
331693bd4296058ce28dc2903befeb123a011e28
2,258
/* ================================================================== * BatteryAPIException.java - 16/02/2016 7:28:59 am * * Copyright 2007-2016 SolarNetwork.net Dev Team * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * publi...
25.954023
72
0.647476
6fd7faffbb15e4a84b1f6d176d8f9aa6ea17087d
2,871
/* * @(#)$Id:$ * * Author : Ueli Kurmann, ueli.kurmann@bbv.ch * * * Purpose : * * ----------------------------------------------------------------------- * * Revision Information: * * Date Who Reason * * 28.11.2008 ukurmann Initial Release * * ----------------...
26.583333
102
0.529781