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
abc245c9cc07aee6fee2fc453f15164b18892135
1,561
package main; import java.util.ArrayList; import java.util.List; public class CombinedNumbersTask implements Runnable { private FibonnaciNumbersTask fibonnaciNumbersTask; private PrimeNumbersTask primeNumbersTask; private List<Integer> primes = new ArrayList<Integer>(); private List<Integer> fibonnaci...
23.298507
84
0.679693
704f2d77362c75067782bc9f0322b15ab89de699
1,145
package com.coveros.training.persistence; import org.slf4j.Logger; import org.slf4j.LoggerFactory; public class LoginUtils { private static final Logger logger = LoggerFactory.getLogger(LoginUtils.class); private final PersistenceLayer persistenceLayer; public LoginUtils(PersistenceLayer persistenceLaye...
29.358974
86
0.682969
b710d6b4a3daaa31cfefd1fa2d89afcbf961d659
887
package modtweaker2.mods.auracascade.aura; import pixlepix.auracascade.data.AuraQuantity; public class MCAuraStack implements IAuraStack { private final AuraQuantity aura; public MCAuraStack(AuraQuantity aura) { this.aura = aura; } @Override public IAuraDefinition getDefinition() { ...
20.627907
71
0.641488
6c1707042cab2a71177f006d3c67f102381b248b
5,604
/* * #%L * BroadleafCommerce Common Libraries * %% * Copyright (C) 2009 - 2013 Broadleaf Commerce * %% * 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....
37.112583
167
0.627409
9965d36f61c96e234636349a196d9d36c9c772db
3,236
package de.lessvoid.nifty.render; import de.lessvoid.nifty.NiftyMouse; import de.lessvoid.nifty.spi.input.InputSystem; import de.lessvoid.nifty.spi.render.MouseCursor; import de.lessvoid.nifty.spi.render.RenderDevice; import de.lessvoid.nifty.spi.time.TimeProvider; import javax.annotation.Nonnull; import javax.annota...
25.888
120
0.715389
8edcd441815ce6af443a644d67fa0e34ac495a08
3,884
/** * Licensed to The Apereo Foundation under one or more contributor license * agreements. See the NOTICE file distributed with this work for additional * information regarding copyright ownership. * * * The Apereo Foundation licenses this file to you under the Educational * Community License, Version 2.0 (the ...
34.990991
97
0.777549
9c37602d8ef62f34316011c5670642e227a72d17
25,190
/* * Copyright (c) 2010-2019 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.model.intest.mapping; import com.evolveum.icf.dummy.resource.DummyAccount; import com.evolveum.icf....
38.634969
831
0.687336
67954937010486e0fcc89c4ddfecd417dcccc1c4
3,337
package com.spider.vamosys.ViewModel; import android.util.Log; import androidx.annotation.NonNull; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; import com.spider.vamosys.Interface.CommonInterface; import com.spider.vamosys.Model.CommomModel; import com.spider.vamosys.Model.ProfileL...
37.494382
127
0.678154
ee080013a8534ce7aa34866a503b9aaba604abbd
478
package com.cheung.android.demo.baseuiframe.fragment; import android.view.View; import com.cheung.android.base.baseuiframe.activity.BaseFragment; import com.cheung.android.demo.baseuiframe.R; /** * author: C_CHEUNG * created on: 2017/12/11 * description: */ public class ThrFragment extends BaseFragment { @O...
19.12
65
0.721757
4c8334dfc4152e980bec8281985ff4d71b0672e4
432
package org.mars_sim.msp.core.memory; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Indicates that a specified field or type should not be measured or counted by <code>MemoryMeter</code>. */ @Ret...
27
106
0.793981
06fd11c20471385d8b4c40aada1153207fba5ae0
287
package netcracker.study.monopoly.models.repositories; import netcracker.study.monopoly.models.entities.PlayerState; import org.springframework.data.repository.CrudRepository; import java.util.UUID; public interface PlayerStateRepository extends CrudRepository<PlayerState, UUID> { }
28.7
82
0.850174
f23b2095e4c65d91b0a43b566c6c9cb72926cf23
849
package com.antviktorov.start; import com.antviktorov.menu.exceptions.MenuOutException; /** * Override input class. */ public class ValidateInput extends ConsoleInput { /** * Read question. * @param question - question * @param range - range of available commands * @return key */ @O...
26.53125
72
0.559482
8347cc1d3552ef0438db9b3f151c024a00911bcf
2,759
/** * Copyright 2009 Bram de Kruijff <bdekruijff [at] gmail [dot] 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 * * ...
23.184874
77
0.744473
be6d9fd6660ec222690e4874bd4694c39140bf64
2,471
package chylex.hee.world.feature.stronghold.rooms.loot; import java.util.Random; import net.minecraft.init.Blocks; import chylex.hee.init.BlockList; import chylex.hee.mechanics.energy.EnergyClusterGenerator; import chylex.hee.system.abstractions.Meta; import chylex.hee.system.abstractions.Pos.PosMutable; import chylex....
45.759259
137
0.76811
ffd4cb321d2469a5d38f8dc8ff3c5ee4bd5b6a69
886
package string; import java.util.*; /** * @author Shogo Akiyama * Solved on 06/15/2019 * * 1078. Occurrences After Bigram * https://leetcode.com/problems/occurrences-after-bigram/ * Difficulty: Easy * * Approach: Iteration * Runtime: 1 ms, faster than 95.45% of Java online submissions for Occurrences Afte...
27.6875
100
0.681716
089004fe47419c78107b2bd7048669b38c6ca514
2,712
/* * Copyright (C) 2004 - 2013 Brian McCallister * * 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 ...
26.851485
90
0.664454
f7d578abdb54ae1ecf1484be4540310d8b454b75
9,640
// Copyright 2020 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 // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
35.836431
100
0.623029
22377d7767a377a4231e7ef49bee6c1133b92baf
10,760
/* * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Softwa...
33.312693
89
0.598141
e365c85b17f7cb1ce2d70c0bad6c0afdb9398165
2,392
package org.quicktheories.quicktheories.impl; import java.util.Optional; import java.util.concurrent.atomic.AtomicInteger; import java.util.function.Function; import java.util.function.Predicate; import java.util.stream.IntStream; import java.util.stream.Stream; import org.quicktheories.quicktheories.api.Pair; import...
31.473684
80
0.717809
f89bd52d7bbad2e99e6d526bc2fea1d07e377ee2
1,057
package org.clafer.ast; import org.clafer.common.Check; /** * * @author jimmy */ public class AstMod implements AstSetExpr { private final AstSetExpr dividend, divisor; AstMod(AstSetExpr dividend, AstSetExpr divisor) { this.dividend = Check.notNull(dividend); this.divisor = Check.notNull(...
21.14
84
0.606433
08d930e6a2665c97e7365299dd8370cc06a0e08c
7,559
package osp.leobert.android.vh.reporter; import com.google.auto.service.AutoService; import net.steppschuh.markdowngenerator.image.Image; import net.steppschuh.markdowngenerator.list.ListBuilder; import net.steppschuh.markdowngenerator.list.UnorderedList; import net.steppschuh.markdowngenerator.list.UnorderedListItem...
34.20362
93
0.633682
748739af469ae8ef51796523ce6771499939196b
937
package com.fionapet.business.consumer; import com.alibaba.fastjson.JSON; import com.fionapet.business.entity.AppConfig; import com.fionapet.business.service.AppConfigService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.List; /** * @author baiqw */ public class AppConfigDemoAction { ...
26.771429
92
0.731057
40c29d1d7bf1474addf99ed9f53264cc33581c61
294
package com.istudio.carmackfx.model.request; import lombok.Data; import java.util.Map; /** * @author: ACA * @create: 2017-12-3 **/ @Data public class RpcMessageData { private String serviceName; private String methodName; private Map<String, RpcMessageArgument> arguments; }
16.333333
54
0.721088
30cd704febbac624af686917e632b57cc88e4ab9
2,283
/* * Copyright (c) 2017 Otávio Santana and others * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * and Apache License v2.0 which accompanies this distribution. * The Eclipse Public License is available at http://ww...
37.42623
139
0.734998
0d1549bb88f17d83f92e0809a22a4528d68dbeba
10,074
package org.springframework.data.mongodb.datatables; import com.fasterxml.jackson.annotation.JsonIgnore; import lombok.Data; import javax.validation.constraints.Min; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import java.uti...
33.029508
153
0.606512
914acd7723f030109e666e7815749fe6667db33f
374
package com.example.daos.users; import com.example.models.users.PermissionEntity; import core.hosSein.core.ebean.BaseDao; import org.springframework.stereotype.Component; import javax.inject.Singleton; /** * Developer: Payam Mostafaei * Creation Time: 2017/Feb/09 - 10:00 */ @Singleton @Component public class Per...
22
68
0.78877
46a6ab02882d83c0a381825d868cbcc2edfdfb84
2,349
//Time:O(log(n)) //Space:O(1) public class Search_in_Rotated_Sorted_Array { //This method is easy public static int search(int[] nums, int target) { int l=0; int h=nums.length-1; while(l<=h){ int mid=l+(h-l)/2; if(nums[mid]==target){ return mid; ...
26.693182
63
0.340996
4d8e5ec4218c707163acf5000c1cc5a9022c3030
11,913
package org.osgeo.mapguide.test.platform; import java.io.*; import org.osgeo.mapguide.*; import org.osgeo.mapguide.test.common.*; public class GeomBuild { private MgGeometryFactory factory = new MgGeometryFactory(); public MgPoint createPoint() { MgCoordinate coord = factory.createCoo...
35.455357
89
0.654411
429315ffabb76a79061871a32a19d2d27359269c
1,933
package jp.co.tis.s2n.javaConverter.convert.statistics; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import jp.co.tis.s2n.converterCommon.statistics.StatisticsBase; /** * 統計情報を蓄積するツール。<br> * * このクラスはシングレトンである、 * スレッドセーフではないので単一スレッドからの利用を想定する。 ...
23.573171
114
0.623901
cc7c97e74afb87dd2130f0589603eee0a0ea15a5
1,547
package ru.job4j.menustructure; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import java.util.Queue; /** * the class for managing the menu */ public class MenuManager { /** * returns the list for menu printing * @param menu - the list of the menu items * @return...
30.333333
79
0.557854
ca415a7828b22020a9405d134e34d541f56a6984
804
package com.yaroslavlancelot.eafall.game.entity.gameobject.building.loader; import org.simpleframework.xml.Attribute; import org.simpleframework.xml.Element; import org.simpleframework.xml.Root; /** building which increases your money amount in percents */ @Root(name = "wealth_building") public class WealthBuildingLo...
25.935484
75
0.733831
d401bd57f377a1d8d13fc70d2e5c0e6dc9f0b306
8,944
/////////////////////////////////////////////////////////////////////////////// //Filename: $RCSfile: BitVector.java,v $ //Purpose: TODO description. //Language: Java //Compiler: JDK 1.4 //Authors: Joerg Kurt Wegner //Version: $Revision: 1.7 $ // $Date: 2005/02/17 16:48:41 $ // $Author: wegner $ //...
28.666667
82
0.563842
26ea2e71e85c6b28d32569040328dabfc119bd20
543
/** * */ package org.ibase4j.core.base; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.session.RowBounds; /** * * @author ShenHuaJie * * @version 2016年6月3日 下午2:30:14 * */ public interface BaseMapper<T extends BaseModel> ...
20.884615
105
0.690608
d107e712a83887d0ba5d0037af1314504d28873f
27,929
package ru.ifmo.genetics.distributed.contigsJoining.tasks; import org.apache.commons.lang.mutable.MutableInt; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapred.*; import org.apache.hadoop.mapred.lib.IdentityMapper; imp...
43.435459
164
0.510187
763c7575db192dd1bfae415db6880e53a6daa14c
28,425
/* * Copyright 2014-2021 Real Logic Limited. * * 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 ...
34.834559
117
0.60883
2e462a550a8fc78bc7d71bd412795e448f36a609
444
package com.reading.start.domain.rx; /** * Represent boolean result fro RxJava */ public class BooleanRxResult extends RxResult<Boolean> { public BooleanRxResult(RxStatus status, Boolean result, String message) { super(status, result, message); } public BooleanRxResult(RxStatus status, Boolean r...
23.368421
77
0.686937
efc9ec19fbe6b48dc35441a0534a8b596c736f6d
125
/** * React4j based introspection tools based on the browser spy infrastructure. */ package arez.spytools.browser.react4j;
25
77
0.776
b352447a0764e9e7efeacf8275d2eddb429333be
634
package com.github.reducktion.socrates.validator; import com.github.reducktion.socrates.Country; public class IdValidatorFactory { private IdValidatorFactory() {} public static IdValidator getValidator(final Country country) { switch (country) { case FR: return new FranceIdValidator(); ...
31.7
87
0.66877
82f58093710b8f38b8b86bcb0876d7df7e859545
3,319
package me.victoriest.photio.cache.ops; import org.springframework.data.redis.core.*; import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; /** * * @author VictoriEST * @date 2017/5/22 * spring-boot-server */ public class RedisHashOps extends BaseOps implements Victorie...
23.707143
88
0.618861
95e92e8a1ad6330b9b7a2833169ea59c300baa54
1,447
package org.apache.nutch.indexer.length; import org.apache.hadoop.io.Text; import org.apache.nutch.crawl.CrawlDatum; import org.apache.nutch.crawl.Inlinks; import org.apache.nutch.indexer.IndexingFilter; import org.apache.nutch.indexer.NutchDocument; import org.apache.nutch.parse.Parse; import org.apache.nutch.parse.P...
30.787234
106
0.765722
e1ff0d64ca0c879bc3f93815a8a69ab540230d51
192
package org.sadtech.bot.vcs.bitbucket.sdk.domain; /** * TODO: Добавить комментарий енума. * * @author upagge [01.02.2020] */ public enum PullRequestState { OPEN, MERGED, DECLINED }
14.769231
49
0.692708
007186f543a89e0c62db69ca94514b49ab071a0a
2,108
/* * Copyright 2018 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
36.982456
95
0.691651
5c6aed8aa20b00d5291ea579ad9b79fd7a8f7ad7
1,173
package com.g56.states; import com.g56.Game; import com.g56.controller.menu.ResultMenuController; import com.g56.gui.LanternaGUI; import com.g56.model.menu.LooserMenu; import com.g56.viewer.menu.ResultMenuViewer; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter...
29.325
100
0.754476
ed600529faa562e3b5a03e3522fd981a419d058e
1,683
package com.guilherme1550.apiestacionamento.controller.dto; import java.time.LocalDateTime; import com.guilherme1550.apiestacionamento.model.Controle; import com.guilherme1550.apiestacionamento.service.EnderecoEstacionamentoService; public class ControleDto { private String idControle; private LocalDateTime horaEn...
30.053571
110
0.81937
ea8803020cd28e2bbb38ae72dfa26696d7745e42
3,429
package org.broadinstitute.ddp.studybuilder.translation; import static org.apache.commons.collections.MapUtils.isNotEmpty; import static org.broadinstitute.ddp.studybuilder.BuilderUtils.getResourceFolderFiles; import static org.broadinstitute.ddp.studybuilder.translation.TranslationsUtil.LANG_CDE_LENGTH; import static...
42.333333
129
0.684456
66c196aa42d058a27a50dbfbd42fc110d171ae22
2,202
/*************************GO-LICENSE-START********************************* * Copyright 2015 ThoughtWorks, 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...
31.913043
100
0.713896
10c644caa65d49a61e8730616379bd89d84f3c7c
862
package success; public class Calculator { /** * Called when you Run your code. */ public static void main() { } public int add(int a, int b) { return a + b; } public int subtract(int a, int b) { return a - b; } public int multiply(int a, int b) { r...
19.590909
73
0.49768
4303ebef652911e87c65187a90647ea9a4f28dba
12,490
package in.codeworld.spinnerdatepicker; import android.app.Activity; import android.app.Dialog; import android.util.Log; import android.view.View; import android.widget.NumberPicker; import androidx.annotation.NonNull; import androidx.recyclerview.widget.LinearLayoutManager; import java.text.DateFormat; import java....
33.575269
147
0.642674
77ffeefcbc384619b5e8c4a6fe497920640e78be
1,095
package org.mve.asm.attribute; import org.mve.asm.attribute.code.local.LocalVariable; import org.mve.asm.ConstantPoolFinder; import org.mve.asm.attribute.code.Marker; import org.mve.asm.file.attribute.AttributeLocalVariableTable; import org.mve.asm.file.attribute.AttributeType; import org.mve.asm.file.constant.Constan...
30.416667
101
0.780822
7b8b185146ecb1341fbdda71bff4274a3fa557a2
2,140
package io.termd.core.telnet; import org.apache.commons.net.telnet.TerminalTypeOptionHandler; import org.apache.commons.net.telnet.WindowSizeOptionHandler; import org.junit.Test; import java.nio.charset.StandardCharsets; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.uti...
37.54386
183
0.652336
e710de0aaebfef52c7f3cbbe8c3071bb8ceecde1
565
package nl.siegmann.epublib.bookprocessor; //import java.util.Collection; import nl.siegmann.epublib.domain.Book; //import nl.siegmann.epublib.domain.TOCReference; import nl.siegmann.epublib.epub.BookProcessor; public class FixMissingResourceBookProcessor implements BookProcessor { @Override public Book processBo...
22.6
86
0.759292
3b4bb26b766c58a3badf065c7b56122e1e043a2e
891
package org.checkerframework.checker.signature.qual; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.checkerframework.framework.qual.SubtypeOf; /** * Rep...
37.125
97
0.785634
48cc7171fef5314430c48cc824e8e67f6adbc7e5
456
package com.github.snailycy.http.util; import java.util.Collection; import java.util.Map; public class CollectionsUtils { public static <T extends Collection> boolean isEmpty(T t) { if (t != null && t.size() > 0) { return false; } return true; } public static <T exten...
20.727273
63
0.559211
d806e3453d809447e32d9494290480cd303411ce
338
package com.draganov.dvdlibrary.repository; import com.draganov.dvdlibrary.model.Rating; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; /** * @author Borislav * @since 21/02/2016 */ @Repository public interface RatingRepository extends JpaRepository<...
24.142857
71
0.804734
d7d18b7026e70bbcb524a24c7e5b38f33fe4e0ef
2,008
/* * JPPF. * Copyright (C) 2005-2019 JPPF Team. * http://www.jppf.org * * 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...
29.970149
86
0.695717
f7c525ba5f63eda759f88d42d32fc46841840043
12,507
/* * 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 ...
41.829431
114
0.707204
31cc8e49c2ce0e6eb6076fe8c474ed449094951d
777
package com.internship.jms.action; import com.internship.jms.beans.JmsBean; import javax.jms.JMSException; import javax.naming.NamingException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import...
31.08
113
0.75547
200d872c42c3673e24cc6b94234c9be4aff7558e
13,980
/* * 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 vista; import java.util.ArrayList; import java.util.Date; import javax.swing.table.DefaultTableModel; import modelo.estructura...
46.6
187
0.687554
471dbebe36fd5372690e712e41765643d099a49a
384
package sm.rental.model.procedures; import static sm.rental.model.Constants.VAN_SPEED; public class DVPs { private static final double SIXTY_MINUTES = 60.0; public static double travelTime(double distance){ return distanceToTime(distance); } private static double distanceToTime(double dist...
21.333333
58
0.731771
d82aac73a06ff9a22a627154a01144ce380b770c
3,264
package com.programmerdan.minecraft.banstick.data; import com.programmerdan.minecraft.banstick.BanStick; import com.programmerdan.minecraft.banstick.handler.BanStickDatabaseHandler; import java.sql.Connection; import java.sql.PreparedStatement; import java.util.Date; import java.util.concurrent.ConcurrentLinkedQueue; ...
27.661017
170
0.700368
4c0f09644fb1f37460de2ecbcb150f54cae6d225
641
package cn.binarywang.wx.miniapp.bean.code; import cn.binarywang.wx.miniapp.util.json.WxMaGsonBuilder; import lombok.Data; import java.util.Map; /** * 小程序代码版本号分布 * * @author <a href="https://github.com/charmingoh">Charming</a> * @since 2018-04-26 19:45 */ @Data public class WxMaCodeVersionDistribution { /** ...
20.677419
86
0.708268
b8a5581fc852ad82afd9c6f386cee67599378099
11,662
/* * Copyright (c) 2013-2014 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
43.842105
503
0.636769
5bedff1c9acb8fba8937946d5461eb58b3359bf6
1,834
package de.team33.libs.provision.v2; import java.util.Map; import java.util.Optional; import java.util.concurrent.ConcurrentHashMap; import java.util.function.Function; /** * Implements a kind of map that provides fixed values that are initialized as late as possible. * * @param <C> A context type that can be used...
34.603774
109
0.663577
9107118a6db798bf9f9acac76ced7fe25b64e359
1,300
package application; import java.util.Scanner; public class Hangman { private boolean running = true; private RandowWord word = new RandowWord(); private Scanner scanner = new Scanner(System.in); private int limitRemaining = 5; private char lastguess; public void run() { do { displayWord(); getUserInp...
20
80
0.665385
848ce39a224387d971f1a84fadac49bf0a8d4ae5
2,183
/* * Copyright (C) 2018 - 2019 Oleksandr Tyshkovets <olexandr.tyshkovets@gmail.com> * * 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 licens...
34.109375
115
0.710032
115ccfd6bf1766260e2ae279709878ecbd1e6853
663
package comjoshsibayan.github.alarm.wifi; import android.content.Context; import android.support.annotation.Nullable; public class MagicPacketSchedulerSingleton { private static MagicPacketScheduler magicPacketScheduler; //Should be protected :P public MagicPacketSchedulerSingleton(Context context) { ...
25.5
69
0.684766
4c7f09c9209cab25b9b3ba2ce481f6700891cd5a
8,937
package com.planet_ink.coffee_mud.Abilities.Misc; import com.planet_ink.coffee_mud.core.interfaces.*; import com.planet_ink.coffee_mud.core.*; import com.planet_ink.coffee_mud.core.collections.*; import com.planet_ink.coffee_mud.Abilities.StdAbility; import com.planet_ink.coffee_mud.Abilities.interfaces.*; import...
26.519288
159
0.629294
c0f116cf3c3ccd993c828c517c7da4cd969d1193
15,823
/*- * ---license-start * WHO Digital Documentation Covid Certificate Gateway Service / ddcc-gateway * --- * Copyright (C) 2022 T-Systems International GmbH and all other contributors * --- * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the ...
47.803625
119
0.647728
728c0b1649d43adb19b48b21d2039d763cb5f546
5,824
package org.jivesoftware.openfire; import java.lang.management.ManagementFactory; import java.rmi.registry.Registry; import java.util.Collections; import java.util.HashMap; import java.util.Map; import javax.management.remote.JMXAuthenticator; import javax.management.remote.JMXPrincipal; import javax.management.remot...
35.084337
101
0.596326
e36788d1055a7e5d4ae5138a9707b2b1d851bc40
4,601
/* * Copyright 2020-2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by a...
40.359649
120
0.751141
6083c928c4b6db5e35d017d874f28f7ae2ff7c18
2,891
package de.paju.mensch.play.uis; import java.util.HashMap; import java.util.Map; import de.paju.mensch.controller.Controller; import de.paju.mensch.model.Figure; import de.paju.mensch.observer.IObserver; import de.paju.mensch.play.controllers.GameWebSocket; public class WebGUI implements IObserver { private Contr...
29.20202
105
0.737807
d7ecb90ad3e57ffff41da371967d7af30fe046d0
158
package com.jocher.javapattern.iterator; /** * Created by wubin on 2017/3/22. */ public interface ItemIterator<T> { boolean hasNext(); T next(); }
11.285714
40
0.664557
79e4c18931599214f61922fad1c3c289274969e6
151
package fr.javatronic.blog.massive.annotation1.sub1; import fr.javatronic.blog.processor.Annotation_001; @Annotation_001 public class Class_5283 { }
18.875
52
0.827815
dfc4673e3c0a0ea5606b6661c320fca0d379d002
4,100
package es.urjc.videotranscoding.security; import java.io.IOException; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.htt...
43.617021
166
0.736829
cd2e1c2639eb536c226d16c1a3d16591d9200995
374
/* * 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.approxteam.casino.generalLogic.actions.notifyType; /** * * @author RAZ */ public enum NotifyState { ERR...
20.777778
80
0.673797
4208cb8ace96332bcfca7c908b4c1b29a9e899a2
98
class Test { void bar(A a){ a.foo(); } class A { void f<caret>oo(){int i = 0;} } }
12.25
33
0.459184
aa670cd4d21c78418e9de64cad2b24d8b61118c2
1,672
package com.example.application.model; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.ToString; import javax.persistence.*; import java.util.ArrayList; import java.util.List; import java.util.Objects; @Entity @Data @Table(name = "projects") public class BookProject implements TreeTextEntity { ...
23.885714
63
0.616627
46157338b0481414b1ac13b195ad16ddc26022ef
8,541
/* * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. * * Copyright 2008 The KiWi Project. All rights reserved. * http://www.kiwi-project.eu * * The contents of this file are subject to the terms of either the GNU * General Public License Version 2 only ("GPL") or the Common * Development and Distribu...
30.073944
140
0.722164
210d4e39ab804a9e8d58d12fb015341475b7a4b7
317
package org.eiichiro.jaguar.aspect; import org.eiichiro.jaguar.aspect.Before; import org.eiichiro.jaguar.aspect.Aspect; import org.eiichiro.jaguar.inject.Inject; @Aspect @Pointcut1 public class Aspect3 { @Inject Component1 component1; @Before public void before3() { component1.order.add("before3"); } }
16.684211
41
0.763407
0cdf3057b83b0415d83302f369f1bdf04da8c21e
773
package edu.mayo.ve.message; import java.util.List; /** * POJO used for passing information necessary to subset a workspace (e.g. VCF). */ public class SubsetInfo { /** * {@link Querry} that captures any existing workspace filters. */ Querry querry; /** * {@link List} of strings, each st...
19.820513
80
0.597671
9066f636a00cdbe9c80b900e242f6b0dfed686d7
7,670
package ua.training.repairagency.controller.constants; public interface URL { /* * COMMON */ String PAGE_404 = "/WEB-INF/404.jsp"; String LOGIN_PAGE = "/WEB-INF/default/login/login.jsp"; String INDEX_PAGE = "/WEB-INF/default/index/index.jsp"; String REGISTRATION_PAGE = "/WEB-INF/default/registration/regis...
44.33526
99
0.795176
4ad59adce1de104ee9d4ec9c4b995e7eb73d3c02
3,580
/* * Copyright 2017 Skolkovo Institute of Science and Technology * * 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 require...
37.684211
114
0.687709
73c6308677e035d600e802de619fa153b52aaafb
482
package jp.jyn.zabbigot; public enum StatusKey { USER("user"), TPS("tps"), PING("ping"), MEMORY_FREE("memory.free"), MEMORY_USED("memory.used"), CHUNK_LOAD("chunk.load"), CHUNK_UNLOAD("chunk.unload"), CHUNK_LOADED("chunk.loaded"), CHUNK_GENERATE("chunk.generate"), CHUNK_RATIO("c...
24.1
43
0.651452
6c9bfde3c54df57ef1a85889e07328c770a2fade
3,282
package com.mygdx.game.gamestate.elements; import com.badlogic.gdx.assets.AssetManager; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; import com.badlogic.gdx.math.Vector2; import com.mygdx.game.MainGame; import...
38.611765
95
0.746801
a48e197cf8acc338d7395d8b3dcc70ba7c0401a5
4,549
package org.factcenter.pathORam; import org.factcenter.inchworm.Converters; import org.factcenter.qilin.util.BitMatrix; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Random; public class PathORamDriver extends Block...
28.43125
125
0.704111
7610117d449803b632cbe1062203088ed5b1d293
3,167
/* * 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 ...
35.58427
67
0.700032
d571ccb15ae1694a40b422ed94e16427483b0124
99,790
package com.cheappartsguy.app.cpg; import android.app.ActionBar; import android.app.Activity; import android.app.ActivityManager; import android.app.AlertDialog; import android.app.Dialog; import android.app.ProgressDialog; import android.content.ActivityNotFoundException; import android.content.Context; import androi...
44.970708
271
0.540986
87462d937797a1544e83ad57e9f8db35365ec24c
1,841
package com.bbva.pibee.aso.response.dto; import java.util.Date; public class Operation { private String id; private Descriptor type; private Date operationDate; private Amount amount; private String originAccount; private String fileName; private Descriptor status; private Date processDate; private String o...
23.0125
109
0.713743
1c3c0af66b294ead62b78a01f0cc54d6ca70cf09
662
package gatein.cookbook.chapter6; import java.io.Serializable; import javax.xml.bind.annotation.XmlRootElement; @XmlRootElement public class StockEvent implements Serializable { private static final long serialVersionUID = 4234197037147498216L; private String ticker; private String name; ...
19.470588
71
0.634441
19cc5666ef8cdc3e748e1a8ccbd54c90c7a8b210
1,507
package pages; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.FindBy; public class ProductPage extends BasePage { @FindBy(xpath = "//div[contains(@id,'miniBagDropdown')]/a/span[contains(@class,'_1z5n7CN' )]") private WebElement cartProductListC...
26.438596
110
0.684804
927197898c7c0c8dc5f1d705a618cb4fd1cdbb44
3,877
package io.opensphere.controlpanels.layers.layerpopout.view; import java.awt.Color; import java.awt.Container; import java.awt.Rectangle; import io.opensphere.controlpanels.layers.layerpopout.controller.PopoutController; import io.opensphere.controlpanels.layers.layerpopout.model.v1.PopoutModel; import io.ope...
28.507353
103
0.643023
898da99725285e99413183175e5d8c81c224ef66
129
package testing_lib.genericsIfazeTypeBoundsAddSecond; public interface GenericsIfazeTypeBoundsAddSecond<T extends Number> { }
21.5
69
0.860465
2c488e2085ad06fad85ea0955ae0bc39c50a5c38
7,513
/* * 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 n...
43.935673
105
0.692932
2c27c314e10b83806b66aa39159b6af97cba5bdf
424
package com.davy.demo.annotation; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Created by davy on 2017/4/23. */ @R...
22.315789
44
0.785377
53ba3f6c12adb4c4f24fed024aa60bd9d563aa8f
441
package com.ginkgoblog.sms.listener; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.stereotype.Component; /** * 博客消费监听器(用于更新Redis和索引) * * @author maomao * @date 2021-01-26 ...
20.045455
63
0.786848
87cdcfce0af3794cd4c5b608112dd166350b400e
192
package jmsexporter; public class KundeDAO implements IKundeDAO { public Kunde getById(int id) { Kunde result = new Kunde(); result.setName("wolff"); return result; } }
16
44
0.666667
a5d5ee6aae12663c40ba773c810b60d7e533a932
4,782
/* * Copyright 2006-2011 The Virtual Laboratory for e-Science (VL-e) * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * For details, see the LICENCE.txt file location in the root directory of this * distribution or obtain ...
27.802326
93
0.692806
1ba2991e1c31ba59b5f5cdde9f71d925f977f247
5,218
package com.github.florent37.wearviewstub; import android.annotation.TargetApi; import android.content.Context; import android.content.res.TypedArray; import android.os.Build; import android.util.AttributeSet; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.w...
30.694118
146
0.620353
4c1efc02761dfbc27bfd7d5b2b526da030d5fe41
4,468
/** * Copyright 2017 VMware, Inc. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * <p> * https://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless required by applicable law or...
35.460317
122
0.66607
09596a40dfb3d4910642879e378e3a0b73c40854
2,214
package ghissues; import act.app.ActionContext; import act.controller.annotation.UrlContext; import act.inject.param.NoBind; import act.job.OnAppStart; import act.util.AdaptiveBeanBase; import act.util.PropertySpec; import org.osgl.mvc.annotation.GetAction; import org.osgl.util.IO; import org.osgl.util.S; import java...
27
101
0.570009