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
3d18f624f9e0d2e582e92d0c518925cdff018211
3,452
package org.firstglobal.FgCommon; import com.qualcomm.robotcore.hardware.CRServo; import com.qualcomm.robotcore.hardware.Gamepad; import com.qualcomm.robotcore.hardware.Servo; /** * Operation to assist with operating a servo from a gamepad button */ public class GamePadServo extends OpModeComponent { // use ...
30.017391
140
0.631518
70d4f997b9538258ee03b634ce90143a9ea849b2
652
package stream; import java.util.Arrays; import java.util.List; import java.util.stream.Collectors; /** * @author zhangyupeng * @date 2018/8/26 */ public class StreamDemo { /** * 两个数字列表,返回所有数对 */ public static void main(String[] args) { List<Integer> num1 = Arrays.asList(1, 2, 3); ...
26.08
90
0.555215
18d55451da32a6bae3dcc33e69ba6e661de8a1bc
2,852
/* * This file is part of fabric-loom, licensed under the MIT License (MIT). * * Copyright (c) 2019-2021 FabricMC * * 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,...
42.567164
124
0.778401
a8822ae94efdf12ca71888aaa31a4a889eb05f32
2,893
package nanoj.pumpControl.java.sequentialProtocol.tabs; import nanoj.pumpControl.java.sequentialProtocol.GUI; import javax.swing.*; import java.awt.*; class PumpConnectionsLayout extends GroupLayout { PumpConnectionsLayout(Container host) { super(host); PumpConnections panel = (PumpConnections) h...
52.6
157
0.54822
586c0c97aa6894d8e0ba4efad4ff018d6a738c21
3,987
import com.intellij.diff.DiffContentFactory; import com.intellij.diff.DiffDialogHints; import com.intellij.diff.DiffManager; import com.intellij.diff.DiffRequestFactory; import com.intellij.diff.actions.BlankDiffWindowUtil; import com.intellij.diff.actions.impl.MutableDiffRequestChain; import com.intellij.diff.chains.D...
41.103093
106
0.666416
93c0b85af78ae173fd3d68a5240bbe1a59592c06
2,247
package com.edwinmindcraft.originsexpansion.api.dfu; import com.mojang.datafixers.util.Pair; import com.mojang.serialization.*; import java.util.function.Function; /** * If you are wondering what this is, for the sake of your sanity please don't. * This just allows codecs to be flattened. * @param <E> The seriali...
39.421053
156
0.693369
3d969d8dfdc1f68ba63b2cccda413b6298a5e840
1,435
/* package org.firstinspires.ftc.teamcode.OldOpmodes; import android.app.Activity; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.view.View; public class VideoStream extends Activity { publi...
28.137255
99
0.655052
9bdb0a66a3c03ec6aa7a4823cf53eeff0aebe9dc
10,514
/** */ package de.fhdo.ddmm.service.impl; import de.fhdo.ddmm.service.*; import java.util.Map; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EDataType; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.impl.EFactoryImpl; import org.eclips...
28.112299
152
0.701541
f6e29751490368e85f1aa20419e8f1648c77bc25
2,837
//package io.github.icodegarden.beecomb.master.controller; // //import java.util.List; // //import javax.validation.constraints.Max; // //import org.springframework.beans.factory.annotation.Autowired; //import org.springframework.http.HttpStatus; //import org.springframework.http.ResponseEntity; //import org.springfram...
40.528571
109
0.759605
097c35ca05367f3e7f6ff97f7054546941d1f3df
783
package org.loed.framework.common.query; import lombok.Data; /** * @author Thomason * @version 1.0 * @since 2020/10/31 16:44 */ @Data public class PageRequest { private int pageNo = 1; private int pageSize = 10; private boolean paging = true; private boolean counting = true; public static PageRequest of(int...
20.605263
61
0.725415
bf20970e105b5dd11cb74bb7b7c18c2a987ad46c
1,026
package com.ohmybug.test; import com.ohmybug.dao.LocationDao; import com.ohmybug.dao.impl.LocationDaoImpl; import com.ohmybug.pojo.Location; import org.junit.Test; import static org.junit.Assert.*; public class LocationDaoImplTest { private LocationDao locationDao = new LocationDaoImpl(); @Test public ...
25.02439
61
0.680312
1c185638d2243c7ab30ae2460680c1de946e4d05
1,281
package basic; import java.sql.Connection; import org.junit.Test; import pm.pride.DatabaseFactory; /******************************************************************************* * Copyright (c) 2001-2005 The PriDE team and MATHEMA Software GmbH * All rights reserved. This toolkit and the accompanying ...
35.583333
111
0.640125
b3fcf25cd14d8727e93bbe5d14377900fb334040
223
import java.util.function.Function; class MyTest { static <T, R, F extends Function<T, R>> F from(F fun1) { return fun1; } void test2() { Function<Object, Integer> ext = from(x -> 1); } }
17.153846
60
0.565022
23a7a20524117cde0f714a18d05be22a456c24b6
12,034
package view.special; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import javafx.collections.FXCollections; import javafx.collections.ObservableList; import javafx.fxml.FXML; import javafx.geometry.Side; import javafx.scene.chart.*; import javafx.scene.layout.VBox; import javafx.scene.text.Tex...
31.835979
114
0.469088
ba18bd6153156f0c2c89d225fccfc95ef2c09f2c
4,177
/** * The contents of this file are subject to the license and copyright * detailed in the LICENSE and NOTICE files at the root of the source * tree and available online at * * http://www.dspace.org/license/ */ package org.dspace.utils.servlet; import java.io.IOException; import javax.annotation.Priority; impor...
36.964602
151
0.652382
d8711b01732ab86584fc2938e4c23122c7e64974
1,241
package io.github.swagger2markup.adoc.converter.internal; import org.apache.commons.lang3.StringUtils; import org.asciidoctor.ast.ContentNode; public class BlockImageNode extends NodeAttributes { final private String target; public BlockImageNode(ContentNode node) { super(node.getAttributes()); ...
24.333333
72
0.553586
1ac112de32912996366c83c66c2249f56add1c55
580
package com.xuzp.insuredxmltool.core.tool.script.warlock.statement; import com.xuzp.insuredxmltool.core.tool.formula.Factors; import com.xuzp.insuredxmltool.core.tool.script.warlock.Code; import com.xuzp.insuredxmltool.core.tool.script.warlock.Interrupt; import com.xuzp.insuredxmltool.core.tool.script.warlock.analyse....
24.166667
70
0.798276
1be761ae6de5fc145b95d2f6f503ef07ad7ba10f
577
package burlap.shell.command.reserved; import burlap.shell.BurlapShell; import burlap.shell.command.ShellCommand; import java.io.PrintStream; import java.util.Scanner; /** * A reserved {@link burlap.shell.command.ShellCommand} for displaying the general shell help information. * @author James MacGlashan. */ publi...
22.192308
106
0.760832
bf76047e73f5ddbdbc3ed180599416f7dc17039e
3,848
// Copyright 2016 The Sawdust 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 applicable...
29.829457
114
0.537682
a7b2fbc088947eb7bed433aebb5f6f2a01dcaf6a
816
package org.madrona.web.model; import org.springframework.data.mongodb.core.mapping.Document; import org.springframework.data.mongodb.core.mapping.Field; @Document(collection = "user-access") public class UserAccess { @Field private String username; @Field private String password; public Strin...
20.923077
62
0.601716
e69bfc97e43a26e30945570b6a777ebd86c30171
1,011
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file...
32.612903
76
0.742829
735e509af87da7a9a183bfaaa50c91f9d923555f
285
package com.amazon.alexa.auto.setup.workflow.model; public enum LocationConsent { ENABLED("ENABLED"), DISABLED("DISABLED"); String value; LocationConsent(String value) { this.value = value; } public String getValue() { return value; } }
16.764706
51
0.631579
5bb85eeb38386d3e4b4144b0b0386ab81086bb0e
2,436
package com.moringaschool.gymsmart; import java.util.List; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import org.parceler.Parcel; @Parcel public class Result { @SerializedName("name") @Expose private String name; @SerializedName("category") @Ex...
22.766355
161
0.646552
98435e4357e3138d65b354ec8b7ef3d534f0a35c
178
package com.grafixartist.gallery.retrogram.model; public class LocationResponse { private Location data; public Location getLocation() { return data; } }
14.833333
49
0.696629
593d73865458b724c5f386549c85d426fb83efdc
5,581
/* * Copyright (C) 2016 Mkhytar Mkhoian * * 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...
40.442029
105
0.752016
33a4c6ae46705fb45e60c8ec1ef39e3897eef081
4,259
package org.opencds.cqf.tooling.modelinfo.qicore; import java.util.Map; import org.hl7.fhir.r4.model.StructureDefinition; import org.opencds.cqf.tooling.modelinfo.ClassInfoBuilder; public class QICoreClassInfoBuilder extends ClassInfoBuilder { public QICoreClassInfoBuilder(Map<String, StructureDefinition> stru...
49.523256
90
0.656023
e665452ad50b1ff9fecd32fe2093569ad77c1581
1,963
package cla.edg.project.optical.gen.graphquery; import java.util.Map; import cla.edg.modelbean.*; public class ShoppingCartItem extends BaseModelBean { public String getFullClassName() { return "com.doublechaintech.optical.shoppingcartitem.ShoppingCartItem"; } // 枚举对象 // 引用的对象 public ShoppingCart sho...
25.493506
75
0.700968
714c72b1a46a3acf3cd6c7f6c5ff14f18fbc6460
1,180
package org.j6toj8.fileio.files; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Random; public class Files_CreateDirectories { public static void main(String[] args) { // tag::code[] String userHome = System.getProperty("user....
28.780488
94
0.658475
2bef5bdcc53604861a7e19be8046824883aaf442
4,052
package org.bndly.schema.impl.persistence; /*- * #%L * Schema Impl * %% * Copyright (C) 2013 - 2020 Cybercon GmbH * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http:...
39.72549
179
0.763327
fa83ad47e7e3d02ed8b1021202c370592ef78f25
3,593
package io.github.rcarlosdasilva.weixin.api.op; import io.github.rcarlosdasilva.weixin.common.dictionary.WebAuthorizeScope; import io.github.rcarlosdasilva.weixin.model.response.certificate.WaAccessTokenResponse; /** * 开放平台下,代公众号的认证相关API * * @author <a href="mailto:rcarlosdasilva@qq.com">Dean Zhao</a> */ public ...
33.579439
140
0.689953
eb54fa1f87d8936a598b54baf38b415aab9d71b2
2,420
package org.ebayopensource.webauthn.crypto; import static org.junit.Assert.*; import java.security.NoSuchAlgorithmException; import java.security.PublicKey; import java.security.spec.InvalidKeySpecException; import org.apache.commons.codec.binary.Base64; import org.junit.Test; public class KeyUtilTest { @Test pu...
60.5
421
0.882645
4b744d0fe6b9f689edead85ba4b0c30139cf5443
3,002
/* * SPDX-License-Identifier: Apache-2.0 * Copyright 2018-2019 The Feast 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 *...
37.061728
97
0.731845
d650793990984223a655128f5478257e64a90183
3,817
package vc.inreach.aws.request; import com.google.common.base.*; import com.google.common.collect.ImmutableListMultimap; import com.google.common.collect.ImmutableMap; import com.google.common.collect.Multimap; import com.google.common.io.ByteStreams; import org.apache.http.*; import org.apache.http.client.methods.Htt...
36.352381
115
0.644747
9872362a6b664392a31c9165047123be4320a155
5,727
package com.github.aureliano.evtbridge.output.jdbc; import java.util.ArrayList; import java.util.List; import java.util.Properties; import com.github.aureliano.evtbridge.annotation.doc.SchemaConfiguration; import com.github.aureliano.evtbridge.annotation.doc.SchemaProperty; import com.github.aureliano.evtbridge.annot...
29.520619
158
0.777545
33f84e5cc098618d7f9a58c93fb931d1fa5bb875
9,424
package com.acod.play.app.Activities; import android.app.FragmentManager; import android.app.FragmentTransaction; import android.content.ActivityNotFoundException; import android.content.Context; import android.content.Intent; import android.content.res.Configuration; import android.net.ConnectivityManager; import and...
35.69697
125
0.655242
4b0244649251fb284faf3051e59f53c8c8d8662d
697
package com.wakaka.design.designs.template.one; abstract class AbstractAction{//抽象模板 /** 定义参数 */ public static final Integer EAT = 1; public static final Integer SLEEP = 2; public static final Integer WORK = 3; /** 定义动作模板 */ abstract void eat(); abstract void sleep(); abstract void work...
24.892857
47
0.490674
795d8e7447ba549e1a39b766955397316d75913f
1,724
/* * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.jfr; import java.lang.annotation.ElementType; import java.lang.annotation.Inherited; impor...
23.616438
82
0.63051
2b4486e2b69e7badb7b6252d4856b3c380ce732d
39,944
//======================================================================== // //File: ModelMergeTests.java // //Copyright 2005-2014 Mentor Graphics Corporation. All rights reserved. // //======================================================================== // Licensed under the Apache License, Version 2....
40.064193
125
0.736957
43dd77a283b61717a6ee3dd19cc975aa600bdf0e
1,797
/** * */ package com.zimbra.qa.selenium.projects.mobile.ui; import com.zimbra.qa.selenium.framework.ui.*; import com.zimbra.qa.selenium.framework.util.HarnessException; import com.zimbra.qa.selenium.framework.util.ZimbraAccount; /** * @author Matt Rhoades * */ public class AppMobileClient extends AbsApplicatio...
24.283784
90
0.723984
9ad9f1271a443853e13eeaae51b52d2b6eb9eceb
3,247
package com.dhc.android.testdemoforwzw; import android.content.Context; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.LinearGradient; import android.graphics.Matrix; import android.graphics.Paint; import android.graphics.Shader; import android.support.annotation.Nullable; impo...
32.79798
150
0.640283
1c216d8dba7c7101f1bd2921a48b720ef26921e0
8,185
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License; * you may not use this file except in compliance with the Elastic License. */ package org.elasticsearch.xpack.sql.jdbc; import org.elasticsearch.xpack.sql....
38.42723
132
0.666585
009999ee2192daafb1a8d6fea60fe1f65cffce9f
862
package Screens; import org.jsfml.graphics.RenderWindow; import org.jsfml.graphics.Sprite; import org.jsfml.graphics.Texture; import java.io.IOException; import java.nio.file.Paths; /** * Created by coco on 14-10-11. */ public class cScreen { public int Run(RenderWindow App){ return 0;} protected Sprit...
26.121212
132
0.667053
d13d61299048c04e24cdbd263dfa46f8a6973470
1,790
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ____ _ _____ _ * / ___| _ __ _ __(_)_ __ __ |_ _| _ _ __| |__ ___ * \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \ * ___) | |_) |...
42.619048
121
0.551397
d4c9603299d01860720ec535784a5a4ea859cf8d
2,295
package com.zemikolon.readingcalculator; public class ReadingMeter { public static final int READ_SPEED_SLOW = 100; public static final int READ_SPEED_AVERAGE = 130; public static final int READ_SPEED_FAST = 160; int readSpeed; int wordCount; String readContent; boolean secondsEnable = fa...
27.321429
79
0.545534
93447533ec69bee1d26af9127e19e7c35d4960ed
1,556
package hino.dao.converter; import hino.common.PokemonAbility; import java.util.stream.Stream; import javax.persistence.AttributeConverter; import javax.persistence.Converter; @Converter(autoApply = true) public class PokemonAbilityConverter implements AttributeConverter<PokemonAbility, String> { /** * Converts...
34.577778
147
0.729434
1139b152f668fc7db8623dd7bcaa06f46120d291
2,838
/* Copyright 2019 Samsung SDS 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 o...
32.62069
89
0.655743
39de739b9a2581899bf57a7f44f541e7bdb0b1f4
10,508
package com.robert.image.compose.demo; import android.app.Activity; import android.graphics.*; import android.graphics.drawable.BitmapDrawable; import android.os.Bundle; import android.os.Environment; import android.os.Handler; import android.os.Looper; import android.support.v4.view.PagerAdapter; import android.suppo...
41.370079
137
0.568614
755d9bd7f75aeb0bb8ecf9483dce992ec85ff741
2,260
package org.treeleaf.cache; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * 缓存配置 * <p> * Created by yaoshuhong on 2015/6/3. */ public class CacheConfig { private static Logger log = LoggerFactory.getLogger(CacheConfig.class); /** * 最大等待时间 */ private int maxWaitmillis; /...
16.376812
75
0.553982
b9fcbfb8b2d755303b58858e67b83c4ae4968011
1,711
package com.haiyang.spring.server;/** * @Author: HaiYang * @Date: 2020/4/26 15:05 */ import com.haiyang.spring.init.ServerChannelInitializer; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.ChannelFuture; import io.netty.channel.ChannelOption; import io.netty.channel.nio.NioEventLoopGroup; import...
32.283019
97
0.655757
b11290c31b578a7f1db66a5fee5ad1b1f5c99004
1,484
package com.atguigu.gmall.manage.service.impl; import com.alibaba.dubbo.config.annotation.Service; import com.atguigu.gmall.bean.BaseCatalog1; import com.atguigu.gmall.bean.BaseCatalog2; import com.atguigu.gmall.bean.BaseCatalog3; import com.atguigu.gmall.manage.mapper.BaseCatalog1Mapper; import com.atguigu.gmall.mana...
30.285714
74
0.752695
445b0a5b731866c9b3b7a7adfa3ce90423caeb2f
1,127
package com.example.db; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; public class CoolWeatherOpenHelper extends SQLiteOpenHelper{ public CoolWeatherOpenHelper(Context context...
29.657895
82
0.779059
6c07d136f5b5297c5fbd63242942cfa9e0cf09a1
3,678
package br.com.mariani.dao; import br.com.mariani.connection.ConnectionFactory; import br.com.mariani.models.Aluguel; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.List; /** * * @author maryucha ...
32.548673
92
0.533714
90d1ce7af4da3313d22c088702d187f9a65f6e72
4,727
package com.deer.wms.bill.manage.web; import com.deer.wms.project.seed.annotation.OperateLog; import com.deer.wms.project.seed.constant.SystemManageConstant; import com.deer.wms.project.seed.core.result.CommonCode; import com.deer.wms.project.seed.core.result.Result; import com.deer.wms.project.seed.core.result.Result...
45.451923
132
0.728369
0401f530c36789cde99989b2a940f0f4a5a41362
578
package br.com.zup.casadocodigo.infra; import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonInclude; import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL; @JsonInclude(NON_NULL) @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.A...
30.421053
77
0.757785
00de47e804c5b11027afb92b17a06d39bbee2b99
2,401
package com.diamon.nucleo; import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Image; import java.awt.Rectangle; import java.awt.image.BufferedImage; import java.awt.image.ImageObserver; public abstract class Actor implements ImageObserver { protected int x; protected int y; protected Dimensi...
13.338889
93
0.65556
4d629f49fb9d39e178eeaa8b7ce64ad42453758d
1,170
package de.gw.auto.domain; import java.math.BigDecimal; public class Info { private String name; private BigDecimal gesammt = BigDecimal.ZERO; private BigDecimal diesesJahr = BigDecimal.ZERO; private BigDecimal vorjahr = BigDecimal.ZERO; public Info(String name) { this.name = name; } public String getNam...
19.180328
59
0.721368
0d50568291f22e667fefe3fd8a2e371b4f13ee28
3,000
package com.feihua.framework.base.impl; import com.feihua.framework.base.modules.config.api.ApiBaseConfigService; import com.feihua.framework.base.modules.oss.cloud.api.ApiCloudStorageService; import com.feihua.framework.base.modules.oss.cloud.dto.CloudStorageConfig; import com.feihua.framework.base.modules.oss.cloud....
35.294118
161
0.722333
bc86ff347e71ef692ad531608ce1036114f15775
1,246
package com.kaciras.blog.infra.autoconfigure; import com.kaciras.blog.infra.FilterChainCapture; import org.assertj.core.data.Offset; import org.junit.jupiter.api.Test; import org.springframework.boot.autoconfigure.AutoConfigurations; import org.springframework.boot.test.context.runner.WebApplicationContextRunner; imp...
31.948718
92
0.777689
a8e889771c7b5fbe35540a091ce9192fc1e6d5fd
26,724
package edu.stanford.nlp.pipeline; import edu.stanford.nlp.io.FileSequentialCollection; import edu.stanford.nlp.io.IOUtils; import edu.stanford.nlp.io.RuntimeIOException; import edu.stanford.nlp.util.StringUtils; import edu.stanford.nlp.util.logging.Redwood; import edu.stanford.nlp.util.logging.StanfordRedwoodConfigur...
36.359184
162
0.64661
886d12f75fc8f2ce31deb47b041331a588f83155
384
package test.org.oss.junit.stoptestsuite; import static org.junit.Assert.assertFalse; import org.junit.BeforeClass; import org.junit.Test; public class StopOnFirstFailureTest { @BeforeClass public static void setUpBeforeClass() throws Exception { assertFalse(false); } @Test(expected=AssertionError.class) pu...
18.285714
57
0.78125
cf47f541cf3ace006574f8257276e0efa242d2b5
458
package ch.awae.datasocket; import java.util.Map; class TypedMapping<V> { private final Map<Class<?>, V> map; TypedMapping(Map<Class<?>, V> map) { this.map = map; } V get(Class<?> tClass) { return map.entrySet() .stream() .filter(entry -> entry.getKey...
19.913043
73
0.510917
16de99814cb438efcbd8bb9ca7f64464cdc3f79d
1,908
package dk.statsbiblioteket.user.tra.apt; import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.util.Map; import java.util.Properties; import java.util.TreeMap; /** * <p> * ConfigurationMap holds a map of string to string (i.e. the general form * of java properties). The to...
31.278689
157
0.624214
c77d4f94036945cd11d89a0893d23ca1bd8acc12
2,437
/** * commons - Various Java Utils * Copyright (C) 2009 Adrian Cristian Ionescu - https://github.com/acionescu * * 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....
21.008621
77
0.712762
2cddabe44a1a90faaefee635eb8c21f83769eb9d
2,792
/** * Copyright 2007 The Apache Software Foundation * * 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...
21.476923
77
0.628223
f7a67a68ea544fa820233afffa79044287fd86f4
1,580
package org.apereo.cas.configuration.model.support.hazelcast; import org.apereo.cas.configuration.model.core.util.EncryptionRandomizedSigningJwtCryptographyProperties; import org.apereo.cas.configuration.support.RequiredModule; import org.springframework.boot.context.properties.NestedConfigurationProperty; /** * Enc...
32.244898
133
0.749367
7d2e3c3573de901798ce89ea59c27f7b7f635710
4,393
/*- * ========================LICENSE_START================================= * pgSqlBlocks * % * Copyright (C) 2017 - 2018 "Technology" 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 Lice...
36.305785
113
0.643069
f3086a5afc2f149af72306a734e436671dfec046
1,881
package edu.gemini.network; import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.InetAddress; import java.net.Socket; /** * Класс - клиент для получения данных из сокета */ public class BufferedSocketClient { public static void main(String args[]) throws ...
33.589286
100
0.64487
2359163d3606db9620ff035cd9be56ee56d18f6e
1,081
package com.gmail.picono435.picojobs.storage; import java.util.UUID; public abstract class StorageFactory { protected abstract boolean initializeStorage() throws Exception; public abstract boolean createPlayer(UUID uuid) throws Exception; public abstract boolean playerExists(UUID uuid) throws Exception; pub...
41.576923
83
0.817761
e06b9bb338c1cf117da238b3b7c2b3c736ecd8c0
2,348
package com.dncrm.service.system.regelevStandard; import java.util.List; import javax.annotation.Resource; import org.springframework.stereotype.Service; import com.dncrm.dao.DaoSupport; import com.dncrm.entity.Page; import com.dncrm.util.PageData; @Service("regelevStandardService") public class RegelevStandardSer...
23.019608
97
0.73339
4323f4cf1d9806d8bef8e0b780c18100380a4095
4,152
/***************************************************************************** * File: UnitTestDSAQueue.java * * Author: Sean Ashton * Student ID: * * Unit: COMP1002 Data Structures and Algorithms * * Purpose: ...
30.985075
78
0.378613
a81d61270333a456e5c4c831e4e1247bd4657abb
3,973
/* * BSD-style license; for more info see http://pmd.sourceforge.net/license.html */ package net.sourceforge.pmd.util.fxdesigner; import static net.sourceforge.pmd.util.fxdesigner.util.AstTraversalUtil.parentIterator; import java.util.Objects; import org.reactfx.EventStream; import org.reactfx.EventStreams; impor...
38.201923
155
0.681097
cc91d94cec6b5d0060e92d13fd224b8523db80f0
825
package com.minhtetoo.wifichatting; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import butterknife.BindView; import butterknife.ButterKnife; import butterknife.OnClick; public class MainActivity extends AppCompatActivity { @...
25
72
0.741818
58716028872651f1bbe4143f886e2755b1c5fd9f
673
package com.botsoffline.eve.repository; import java.util.List; import java.util.Optional; import com.botsoffline.eve.domain.CharacterSystemStatus; import org.springframework.data.mongodb.repository.MongoRepository; public interface CharacterSystemStatusRepository extends MongoRepository<CharacterSystemStatus, Strin...
35.421053
110
0.849926
5023e2b5c68bdbea94847a94de645305ac06f457
5,715
/* * G2Dj Game engine * Written by Joseph Cameron */ package grimhaus.com.G2Dj.Type.Physics2D; import grimhaus.com.G2Dj.Imp.Graphics.Color; import grimhaus.com.G2Dj.Imp.Physics2D.Collider; import grimhaus.com.G2Dj.Imp.Physics2D.ColliderType; import grimhaus.com.G2Dj.Type.Graphics.LineVisualizer; import grimhaus.com...
35.06135
152
0.576378
86133799ccbf51b93f77e0f630b84911a7fa6fa1
1,305
/* * * * Copyright 2013 the original author or authors. * * * * Licensed under the Apache License, Version 2.0 (the "License"); * * you may not use this file except in compliance with the License. * * You may obtain a copy of the License at * * * * http://www.apache.org/licenses/LICENSE-2.0 * * *...
28.369565
78
0.688123
726aa37732a05099b5ddc66d5beb4eca27c3fe76
674
package de.rainu.example.store; import org.springframework.stereotype.Component; /** * This class represents a in-memory token store. */ @Component public class TokenStore extends AbstractStore<String, String> { public TokenStore() { } @Override protected void initilizeStore() { //no tokens are stored on st...
17.282051
63
0.725519
cc3bc2f94022c2f03732632ae8371095ec950ad4
1,178
/* * Copyright 2019 HERMENEUT Consortium *   * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *   *     http://www.apache.org/licenses/LICENSE-2.0 *   * Unless required by applicable la...
31
151
0.767402
397af0dd5cf55bab2ff149dc5f7f0007b0a17a8c
1,439
/* * Copyright (C) 2016 Ronald Jack Jenkins Jr. * * 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 o...
28.215686
75
0.722029
9ff4ec9e99ad31be77a2ad0d66b2f34aba8665bd
1,017
package car_shop_extend; import car_shop_extend.interfaces.Rentable; public class Audi extends CarImpl implements Rentable { private Integer minRentDay; private Double pricePerDay; public Audi(String model, String color, Integer horsepower, String country, Integer minRentDay, Double price...
29.057143
88
0.632252
984fc72075d87f5478d0c851448a4336e3c46fed
1,030
package com.lanking.uxb.service.diagnostic.api; import java.util.List; import com.lanking.cloud.domain.yoomath.diagnostic.DiagnosticClassStudent; import com.lanking.cloud.sdk.data.Page; import com.lanking.cloud.sdk.data.Pageable; /** * @author xinyu.zhou * @since 2.1.0 */ public interface DiagnosticClassStudentSe...
22.888889
92
0.61068
fcce7b56e0c4923d2b37a1be6911e9ae5644baea
1,849
/* * Copyright 2011, 2012 Odysseus Software GmbH * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
21.252874
91
0.628989
6b705905d321f7805af8ceb61f1d58b091c1b3c8
14,731
/* * Code licensed under new-style BSD (see LICENSE). * All code up to tags/original: Copyright (c) 2013, Joshua Kaplan * All code after tags/original: Copyright (c) 2016, DiffPlug */ package matlabcontrol.demo; import java.awt.BorderLayout; import java.awt.Color; import java.awt.Dimension; import java.awt.EventQu...
34.907583
133
0.742923
f01a09a2c241cec623c8597b1150a4f973ac38ef
1,787
package com.base.module.app; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.appcompat.app.AppCompatActivity; import com.base.module.home.AppHomeActivity; import com.base.module.login.AppLoginActivity; import com.base.module.order.AppOrderActivity; public class Mai...
30.810345
85
0.648573
094dfb942d0bafa89ef2ffe2e4e78fa39cb46c44
2,996
package com.nitobi.jsp.calendar; import javax.servlet.jsp.JspException; import com.nitobi.jsp.NitobiBodyTag; /** * @author mhan * @jsp.tag name="dateinput" * */ public class DateInput extends NitobiBodyTag { private String displaymask; private String editmask; private String editable; private String width; ...
18.493827
59
0.654539
e3340721d9eae73993177a6b6c7b0d85f8e8ab81
879
/* * Copyright by the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable ...
32.555556
85
0.739477
fbdc5600a5cd79d0e91a23c32cb66c4acb57944d
857
package pokecube.alternative.container.belt; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.inventory.Slot; import net.minecraft.item.ItemStack; import pokecube.core.items.pokecubes.PokecubeManager; import thut.lib.CompatWrapper; public class SlotPokem...
22.552632
79
0.707118
e8c12315400f1c18254404c4487168d1ebce7844
2,922
/** * 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...
40.027397
101
0.689596
192c4ceec6b31ebd4e7be3e83478d5a51c28f563
1,715
package com.serenitybdd.screens.base; import net.serenitybdd.core.annotations.findby.FindBy; import net.serenitybdd.core.pages.PageObject; import net.serenitybdd.core.pages.WebElementFacade; import java.util.Set; public class ChangePasswordScreen extends PageObject{ @FindBy(id = "newpassword") private WebEle...
31.181818
103
0.692128
f71d616764f761a71c4e4597aa355ceeba4d3869
1,591
package com.ailbb.alt.linux.ssh; import com.ailbb.ajj.entity.$Result; import com.ailbb.ajj.entity.$Status; import com.ailbb.alt.$; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; /* * Created by Wz on 7/10/2019. */ public class $SSHThread imp...
26.081967
83
0.558768
e21ae27bbb7561ab1f7af49eb1c39db48c1b56b2
777
package com.dsvl.flood.controller; import com.dsvl.flood.Node; import com.dsvl.flood.model.NodeDetails; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class ...
25.064516
62
0.66538
e895e4f4b40e5fa6f9fce27c4d85fef9425bbd71
715
package org.laboys.game.birzzle.window; import org.laboys.game.birzzle.model.Board; import javax.swing.*; public class GameFrame extends JFrame { private final int WINDOW_WIDTH = 420; private final int WINDOW_HEIGHT = 444; private final int BOARD_WIDTH = 8; private final int BOARD_HEIGH...
23.064516
75
0.662937
a747a06b23e727b9aa5c4f09687d10634bd050b2
113
package com.adaptris.core.elastic.rest; public interface FieldNameMapper { public String map(String name); }
18.833333
39
0.778761
84b75a8dd5cfbf70e0de6c1abfdab9ec127fb555
1,710
/* * JasperReports - Free Java Reporting Library. * Copyright (C) 2001 - 2013 Jaspersoft Corporation. All rights reserved. * http://www.jaspersoft.com * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program is part of JasperReports. * ...
37.173913
104
0.750292
53c59438aa70f01486bbc20598103736072f91eb
7,299
package com.wordnik.swagger.models; import com.wordnik.swagger.models.auth.SecuritySchemeDefinition; import com.fasterxml.jackson.annotation.*; import com.wordnik.swagger.models.parameters.Parameter; import java.util.*; public class Swagger { protected String swagger = "2.0"; protected Info info; protected St...
26.541818
97
0.689135
6a66288a126c39df2e5fb51d365ac66f019ccf44
4,509
package org.liveontologies.protege.explanation.proof; /*- * #%L * Protege Proof-Based Explanation * $Id:$ * $HeadURL:$ * %% * Copyright (C) 2014 - 2016 Live Ontologies Project * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the Licen...
28.358491
75
0.755822
a89629b0bb6ccd0cf9c0e2065c28f35f2fccaf06
353
package org.andot.share.basic.entity; import lombok.Data; import lombok.EqualsAndHashCode; @Data @EqualsAndHashCode(callSuper = false) public class Organ extends BaseEntity { private Long organId; private String organName; private Byte organType; private Byte orderCode; private Integer organParent...
23.533333
39
0.767705
5015f07a3320e061192703b4dd8de0f5187ce630
2,469
// Copyright 2009 Google Inc. All Rights Reserved. /** * */ package com.google.ie.business.dao.impl; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; import com.google.ie.business.domain.User; import com.google.ie.dto.RetrievalInfo; import com.google.ie.test.Dat...
28.709302
104
0.637505
4286e92bcc9ad2c1c7b35ddbb60118c048dc4a18
2,436
/* * The MIT License (MIT) * Copyright © 2019-2020 <sky> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the “Software”), to deal * in the Software without restriction, including without limitation the rights * to use, copy, ...
28.325581
91
0.699097
6e881be203656fea4c277284a82608439ef22667
555
package org.mytest.processor; import java.util.Date; public class MyTestBean { private String testStr = "testStr"; private Date producDate; public Date getProducDate() { return producDate; } public void setProducDate(Date producDate) { this.producDate = producDate; } public String getTestStr() { retu...
15.857143
45
0.702703
b7f8e82e8fd266107ed5235fe1de8dad575e73f7
2,613
/* * Copyright (c) 2016 Qiscus. * * 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...
30.741176
101
0.646383