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
4f1832611f50985dbb6eb0ea301c25921048b74b
7,583
/* * Copyright (C) 2014-2021 Philip Helger (www.helger.com) * philip[at]helger[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/LICEN...
32.82684
134
0.71568
327c8d3599ef9594f22a55fc4111830cfd9d7540
5,171
/* Copyright 2004 - 2007 Kasper Nielsen <kasper@codehaus.org> Licensed under * the Apache 2.0 License, see http://coconut.codehaus.org/license. */ package org.coconut.attribute.spi; import java.io.Serializable; import org.coconut.attribute.Attribute; import org.coconut.attribute.AttributeMap; import org.co...
30.239766
90
0.601044
2fd69f2e6f7354616798ca1e35712599ab400134
9,122
/* * 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 ...
48.521277
167
0.738544
8231097d083d56721e33e29e5e0179dca3365feb
1,975
package com.github.cataclysmuprising.jpa.repository.impl; import com.github.cataclysmuprising.jpa.criteria.ContactInfoCriteria; import com.github.cataclysmuprising.jpa.entity.ContactInfoEntity; import com.github.cataclysmuprising.jpa.entity.QContactInfoEntity; import com.github.cataclysmuprising.jpa.repository.Contact...
45.930233
150
0.851646
ebed1c85f61e15de02593f3b1db6274bd7ca7a23
641
package com.rayworks.tracker.utils; /** * Created by Sean on 3/7/17. * <p> * A simple logger for debug usage. */ public final class DroidLogger { private static boolean debugMode = true; private static final String PREFIX = ">>> "; public static void setDebugMode(boolean value) { debugMode =...
20.03125
52
0.606864
5ed90a4895a5fa75f89d1c0566a54041eed5a8a5
1,910
/* * Copyright 2020 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.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agr...
36.037736
144
0.750262
2f5f209dca9a3e88035635ed1c1f758bfd58f52d
2,195
package pl.otros.logview.gui.config; import org.apache.commons.configuration.Configuration; import pl.otros.logview.api.ConfKeys; import pl.otros.logview.api.OtrosApplication; import pl.otros.logview.api.services.JumpToCodeService; import pl.otros.logview.ide.IdeIntegrationConfigurationPanel; import pl.otros.swing.con...
44.795918
142
0.837358
c2cf53ae2a5e7d1835fa83737fe791c050a0b06d
15,448
/** * 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...
43.638418
178
0.628819
f6dc766f6c01e772e59662d41a37298d1f97c275
347
package com.orlandolorenzo.auth; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class JwtBasedAuthenticationApplication { public static void main(String[] args) { SpringApplication.run(JwtBasedAuthenticationAppl...
26.692308
71
0.841499
4db5e8dfde1a587221e46dcd1cbe0f912fc6bb8d
752
package com.alipay.api.response; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.domain.FengdieSitesListRespModel; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.marketing.tool.fengdie.sites.batchquery response. * * @author auto create * @since 1.0, 2021-01-06 1...
23.5
88
0.738032
db98507f0c6d1289488fcf7a49d233b0d8f56951
1,855
/* * Copyright 2000-2013 JetBrains s.r.o. * Copyright 2014-2014 AS3Boyan * Copyright 2014-2014 Elias Ku * * 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/lice...
28.538462
103
0.739084
b6428994b7c9fdb6dc2968a7e5faf2574952b8ec
710
package devopsdistilled.operp.client.items.panes.controllers.impl; import javax.inject.Inject; import devopsdistilled.operp.client.items.models.BrandModel; import devopsdistilled.operp.client.items.panes.ListBrandPane; import devopsdistilled.operp.client.items.panes.controllers.ListBrandPaneController; import devopsd...
24.482759
84
0.825352
30c5fbb01b4a303e2883347d3401d1948356a64a
669
package chat; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.kafka.KafkaAutoConfiguration; import org.springframework.kafka.annotation.EnableKafka; @EnableKafka @SpringBootApplication public class Ch...
30.409091
118
0.778774
14389ee890e29595eb6415431dde82a366c21cbd
1,070
package mrthomas20121.tinkers_reforged.trait.electrical_copper; import net.minecraft.entity.LivingEntity; import net.minecraft.util.DamageSource; import slimeknights.tconstruct.library.modifiers.Modifier; import slimeknights.tconstruct.library.tools.context.ToolAttackContext; import slimeknights.tconstruct.library.too...
35.666667
131
0.751402
07dd155b72a45ee2b0fc40d4295bfa568edd9b32
4,661
package com.ruoyi.catering.domain; import com.ruoyi.common.annotation.Excel; import com.ruoyi.common.core.domain.BaseEntity; import org.apache.commons.lang3.builder.ToStringBuilder; import org.apache.commons.lang3.builder.ToStringStyle; import java.util.Date; /** * 回收记录对象 cy_recovery_record * * @author lsy * @da...
20.353712
72
0.5531
0d6f41d6ac0534b0aec249241433f9670b967b9a
2,153
package org.firstinspires.ftc.teamcode.opmodes; import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode; import com.qualcomm.robotcore.util.ElapsedTime; import org.firstinspires.ftc.teamcode.base_classes.SimpleAutoBot; import org.firstinspires.ftc.teamcode.enums.Alliance; /** * A time based auto **/ public ab...
26.580247
71
0.582443
f4bf208641969a468981509debf522f8d826d754
426
package org.globsframework.model.utils; import org.globsframework.model.GlobList; import org.globsframework.model.GlobRepository; import javax.swing.*; public class GlobListActionAdapter implements GlobListFunctor { private Action action; public GlobListActionAdapter(Action action) { this.action = action; ...
22.421053
63
0.78169
02d455abb7a5c0dc7657dd666c1e08a6d8c6adc9
1,585
package com.eshop.authservice.resource; import java.security.Principal; import javax.validation.Valid; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.co...
31.7
95
0.793691
27d4d0afa2f6f809361bc4430a3697061515fab9
484
public class Split { private void split() { try { BufferedReader rd = rFile("codes.csv"); while(true) { String line = rd.readLine(); if(line == null) break; Scanner src = new Scanner(line); src.useDelimiter(","); while(true) { String field = src.next(); if(field == null) break; ...
21.043478
68
0.605372
411694f9d82426b851ee854c75e6121b5d48afe8
3,111
package com.trsvax.bootstrap.services.bootstrapprovider; import java.util.HashSet; import java.util.Set; import org.apache.tapestry5.Asset; import org.apache.tapestry5.MarkupWriter; import org.apache.tapestry5.annotations.Path; import org.apache.tapestry5.corelib.components.Alerts; import org.apache.tapestry5.dom.Ele...
30.5
106
0.777563
6a6d441a09c127eb48d8fb03503db4c09d768757
619
package fr.nargit.rating.algorihtm.elo.performance; /** * Created by NargiT on 13/01/2016 */ public class DefaultEloPerformance implements EloPerformance { @Override public double getWinningProbability(double playerRating, double opponentRating) { // return 1/(Math.pow(10,-(playerRating-opponentRating)/400...
32.578947
119
0.74475
0f02100c0b5d220b7f259dff8d2d16afafc354ab
9,992
package com.game30.javagl.programs; import java.nio.Buffer; import java.nio.DoubleBuffer; import java.nio.FloatBuffer; import java.nio.IntBuffer; import org.lwjgl.opengl.GL20; import org.lwjgl.opengl.GL21; import org.lwjgl.opengl.GL30; import org.lwjgl.opengl.GL40; /** * An enumeration of the different uniform type...
25.168766
118
0.572858
887cafbccc3c028bdc0585c3e352a22ce14af1ee
2,859
package uk.sky.cqlmigrate; import com.datastax.driver.core.Cluster; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.mockito.Mock; import org.powermock.core.classloader.annotations.PrepareForTest; import org.powermock.modules.junit4.PowerMockRunner; import static org.mockito...
32.862069
118
0.726828
9bd258a37491ef9e65597d72c318d9c2f2c1cf98
1,979
package ru.job4j.chess.firuges.black; import ru.job4j.chess.firuges.Cell; import ru.job4j.chess.firuges.Figure; import ru.job4j.chess.firuges.ImpossibleMoveException; /** * Class BishopBlack решение задачи части 002 - Контрольные вопросы. Решение задачи - Каркас шахматной доски. * @author vmyaskovskiy * @version ...
32.442623
110
0.514907
0a7fe33202f92070eadd3aa802675cd664cf23a6
4,851
package men.brakh.kasiski.kasiskiTests.impl; import javafx.scene.control.ProgressBar; import men.brakh.kasiski.KasiskiMath; import men.brakh.kasiski.kasiskiTests.KasiskiTest; import men.brakh.kasiski.ProgressivePair; import java.util.ArrayList; import java.util.List; public class ProgressiveKasiskiTest extends Kasis...
37.604651
152
0.602144
4705f198b1f8d781e986e9b15426ab52ef757c84
454
package org.adligo.tests4j.shared.output; /** * A output delegateor that can be used by multiple threads * when running on a platform with threading (i.e. not GWT). * @author scott * */ public interface I_ConcurrentOutputDelegator extends I_OutputBuffer { /** * poll the main output * @return */ public abs...
21.619048
69
0.713656
259378f09d512f199425f9f0efdf45c2b378f990
113
/** * Filter related implementation classes. */ package io.toolisticon.annotationprocessortoolkit.tools.filter;
28.25
63
0.80531
7ff9129cb88aefb50f2446ff04fe4106d8d2cb35
1,520
package edu.hm.hafner; /** * Useless class - only for test-cases. * * @author Christian M&ouml;stl */ public class MissingSwitchDefault { private String monat; /** * Creates a new instance of {@link MissingSwitchDefault}. * * @param month * monat */ ...
22.686567
63
0.356579
1636dda39932e49a290eb77925ceeded83d3193f
1,716
package co.miranext.nosql; import co.miranext.nosql.criteria.ColumnCriterion; import co.miranext.nosql.criteria.Criteria; import co.miranext.nosql.criteria.FieldCriterion; import co.miranext.nosql.postgresql.PgsqlJsonRepository; import co.miranext.nosql.query.SQLObjectQuery; import org.boon.core.reflection.BeanUtils; ...
29.084746
184
0.702797
754e8f7b960d877658016d65fff499b3d66dd364
834
package testNG.Example; import org.junit.Test; import org.testng.annotations.BeforeTest; import java.io.IOException; import java.text.MessageFormat; public class DockerTest { String browserName = "chrome"; String nodePrefix = "standalone-"; String nodeSuffix = "-debug"; String imageNameJoin = "-"; ...
25.272727
112
0.683453
08c31c499746487a8b81f8b736c26b2171816d68
1,065
package cz.znj.kvr.sw.exp.java.netty; import io.netty.channel.ChannelHandler; import io.netty.channel.ChannelHandlerAdapter; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelPromise; import org.apache.commons.io.Charsets; import org.apache.logging.log4j.LogManager; import org.apache.loggin...
23.152174
74
0.769014
93a0f085ad3797f64645db88dc52b81d9e42397a
10,777
/* * Copyright (c) 2017 litas * * 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 wri...
35.923333
122
0.648604
704f42dbe4801f72f2efb566b1a0d9c27733ffaf
547
package commands; import image.Figure; import javafx.scene.image.Image; import javafx.scene.image.ImageView; import java.io.File; public class LoadImageCommand implements Command<Figure> { private final ImageView view; private final File file; public LoadImageCommand(final ImageView view, final File fi...
21.88
68
0.687386
b3d44632bcda11a07cadbc00eed4ab942ac43e4d
366
package org.semanticweb.owlapi.docstore; import org.semanticweb.owlapi.model.OWLAnnotation; /** * @author Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group, Date: 26/10/2014 */ public interface AnnotationIndex { ChangeResult addAnnotation(OWLAnnotation annotation); ChangeResult ...
28.153846
106
0.800546
bf7cf91729274322a5cba9b222b159e012bba33e
22,175
package com.sudwood.advancedutilities.client; import com.sudwood.advancedutilities.AdvancedUtilities; import com.sudwood.advancedutilities.blocks.AdvancedUtilitiesBlocks; import com.sudwood.advancedutilities.client.models.ModelBellows; import com.sudwood.advancedutilities.client.models.ModelBoiler; import com.sudwood....
83.052434
280
0.865479
26f6281e0e3caf521c9db15bc2930495e314aabc
6,388
/* * Copyright 2013 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...
37.798817
114
0.638228
e8664ede072675e6e2bb6841e0a12b4d6805c610
3,770
// Copyright 2016 The Nomulus Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by a...
32.5
98
0.766844
732f500de464a1965c850e3ee1fdde8318bc4722
2,396
package toolkit.jetty; import org.eclipse.jetty.server.Connector; import org.eclipse.jetty.server.Server; import org.eclipse.jetty.server.nio.SelectChannelConnector; import org.eclipse.jetty.webapp.WebAppContext; import toolkit.derby.DerbyUtils; import java.io.File; import java.io.FileReader; import java.io.IOExcepti...
31.946667
88
0.657763
3ef99aaa1a222916821f63470209873078a37b90
1,357
package org.robolectric.shadows; import android.location.Criteria; import junit.framework.Assert; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.robolectric.TestRunners; import static org.fest.assertions.api.Assertions.assertThat; @RunWith(TestRunners.WithDefaults.class) ...
28.270833
82
0.725866
28e902b238429d097ece016d22b2899c6095e883
1,384
package cn.xeblog.api.interceptor; import cn.xeblog.api.constant.CommonConstant; import cn.xeblog.api.enums.Code; import cn.xeblog.api.exception.ErrorCodeException; import cn.xeblog.api.service.AdminUserService; import cn.xeblog.api.util.CheckUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.s...
29.446809
121
0.745665
356ec2e6f76bb6510bdc1e649292065445a0edab
1,620
package problems.java.concurrency; import org.apache.commons.lang3.tuple.Pair; import java.util.concurrent.atomic.AtomicReference; public class CAS { static class Simulated { private int value; synchronized int get() { return value; } synchronized int comp...
21.038961
89
0.475309
39758388a28715ac4209e007c2ca4289e5bd91a6
9,052
package ink.envoy.logindemo; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import ...
42.299065
119
0.619421
a960567dfcc2d5b611f44827548c346cb4ef5df2
6,411
package com.zmh.projectoa.controller; import com.zmh.projectoa.dto.ReturnDto; import com.zmh.projectoa.model.Messages; import com.zmh.projectoa.service.MessageService; import com.zmh.projectoa.service.RedisService; import com.zmh.projectoa.service.UsersService; import com.zmh.projectoa.util.JSONUtil; import org.spring...
35.41989
117
0.665731
99b58877d295bd1363ac6cec1840e395aefdf1a5
2,550
package ru.job4j.io; import org.junit.Test; import java.io.*; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import static org.hamcrest.core.Is.is; import static org.junit.Assert.*; /** * Test. * * @author Elena Kartashova (kartashova.ee@yandex.ru) * @version $Id$ * @since 0.1 */ ...
34
125
0.608627
3e1b954bf826a157fc94fda51f38afb98b7f355b
483
package panda.dao.sql.expert; import panda.dao.DB; import panda.dao.entity.Entity; import panda.lang.Strings; public class MariadbSqlExpert extends MysqlSqlExpert { @Override public DB getDatabaseType() { return DB.MARIADB; } protected String getTableOption(Entity<?> entity, String name, String defv) { Strin...
23
78
0.73499
116fd4e4e43552ff7c7c0ce95cef45f8df4640cf
3,252
/* * Copyright 2018 Red Hat, Inc. and/or its affiliates. * * 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 app...
30.111111
84
0.676199
571c63078b862e179ee268432d5b7f6d4bb1afa6
4,210
package com.beanie.stepsensors; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; import android.util.Log; public class DBAdapter { private static final Stri...
28.639456
132
0.684086
4041529d850746e2bad144981c1ce14b76a8473e
806
package com.hihsoft.db1.service; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.hihsoft.db1.persistence.TsysAppMapper; import com.hihsoft.framework.core.baseclass.service.BaseService; import com.hihsoft.framework.exceptio...
22.388889
64
0.740695
3eed49bde95ba8608c58e3ea1914c5f11ed613a9
10,315
package com.hbm.lib; import com.hbm.entity.projectile.EntityBullet; import com.hbm.entity.projectile.EntityBulletBase; import com.hbm.entity.projectile.EntityCombineBall; import com.hbm.entity.projectile.EntityDischarge; import com.hbm.entity.projectile.EntityFire; import com.hbm.entity.projectile.EntityLN2; i...
49.354067
149
0.744062
be54483c2550341de076c735a69997b136244a5b
2,340
/** * COPYRIGHT (C) 2015 Alessandro Aiezza II. All Rights Reserved. */ package com.shaba.hexaturn.state; import static com.shaba.hexaturn.HexaturnSatelliteData.BORDER_HEX; import static org.assertj.core.api.Assertions.assertThat; import java.util.List; import java.util.function.Supplier; import org.junit.Before; ...
28.192771
86
0.607692
dc0ea70930a7fbc81936f9dffd50aa643fe7776a
7,383
// Copyright 2000-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.openapi.vcs.update; import com.intellij.icons.AllIcons; import com.intellij.openapi.Disposable; import com.intellij.openapi.project.Project; import com.intel...
31.551282
140
0.672085
cc110a65efd3a2f900ed7b37057f976c4369c474
2,597
package com.jeffrpowell.adventofcode; import java.awt.geom.Point2D; import java.util.function.Function; public enum Direction { LEFT(pt->new Point2D.Double(pt.getX() - 1, pt.getY()), true), RIGHT(pt->new Point2D.Double(pt.getX() + 1, pt.getY()), true), UP(pt->new Point2D.Double(pt.getX(), pt.getY() - 1), true), D...
20.776
76
0.623797
10344a45c87005962746c82047d8f6c3f90aa1f0
656
// � A+ Computer Science - www.apluscompsci.com // Name - Sebastian Nunez // Date - 11/02/18 // Class - 10th // Lab - Factorial import static java.lang.System.*; public class FactorialRunner { public static void main(String[] args) { //add test cases Factorial test = new Factorial(5); out....
18.742857
47
0.560976
e681e7c46d28c44565a051ec1f2c42ae56ab7fa6
565
package com.imooc.entity; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import javax.persistence.*; /** * @author gusuchen * Created in 2018-01-13 22:31 * Description: 地铁站信息表 * Modified by: */ @Accessors(chain = true) @Data @Entity @Table(name = "subway_station") @No...
17.65625
55
0.707965
6ea4439cce80d4f51a380eb0c6a119e3b810396d
840
package com.twu.biblioteca.Controller; import com.twu.biblioteca.Repository.BookRepository; public class BookListController extends BaseController{ private String message; private String[] options; private BookRepository bookRepository; public BookListController() { message = "BookList:"; ...
25.454545
82
0.654762
7768029c65f66854fdc8868a5009da5b715efbb6
3,682
package com.zookpeer.curator_demo.demo; import org.apache.curator.RetryPolicy; import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import org.apache.curator.retry.ExponentialBackoffRetry; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper....
37.191919
162
0.66214
3105fa40bd4653882024e7599f58b6183d53e9e9
1,343
package net.sf.jasperreports.chartthemes.handlers; import org.exolab.castor.mapping.GeneralizedFieldHandler; import org.jfree.ui.GradientPaintTransformType; import org.jfree.ui.StandardGradientPaintTransformer; public class StandartGradientPaintTransformerHandler extends GeneralizedFieldHandler { /** * */ publ...
29.195652
105
0.76545
f84425c66c83fbce3315d48f4c2242499d943f78
18,528
package org.robolectric.shadows; import android.os.Parcel; import android.text.TextUtils; import android.util.Pair; import org.robolectric.annotation.Implementation; import org.robolectric.annotation.Implements; import org.robolectric.annotation.RealObject; import org.robolectric.annotation.HiddenApi; import org.robol...
29.597444
106
0.687608
108f6f1f02474903141514cfbcfbfabba1ab6bce
1,573
package behavioralDesignPatterns.commandDesignPattern.projectDocumentOperations.Invoker; import behavioralDesignPatterns.commandDesignPattern.projectDocumentOperations.Command.Command; import behavioralDesignPatterns.commandDesignPattern.projectDocumentOperations.ConcreteCommand.CommandManager; import behavioralDesign...
42.513514
110
0.802924
fcee2e43fb7cbaeda65737bec8503d6a9b51961e
981
package org.winwin.model; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.Table; import javax.validation.constraints.NotBlank; import lombok.Data; @Ent...
20.4375
50
0.734964
2927860f4fa150e94f503bc5a1434cbfd08ace7d
562
package com.android.samsung.codelab.guestbookdapp.contract; public interface IntroContract { interface View { void setLoading(boolean isLoading); void toastMessage(String message); void showDialog(String title, String btnText, String message, DialogOnClickListener callback); void...
23.416667
102
0.699288
cccf0361187da808d74036f03eb93df992e2f605
1,323
/* * Copyright 2019, Perfect Sense, 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 a...
24.962264
97
0.710506
84e81e12016df47446b5766376599ef523006abb
1,809
package com.redhat.examples.reactive.coffeeshop; import io.vertx.core.Vertx; import io.vertx.core.json.JsonObject; import io.vertx.ext.web.client.WebClient; import io.vertx.junit5.Checkpoint; import io.vertx.junit5.VertxExtension; import io.vertx.junit5.VertxTestContext; import org.junit.jupiter.api.*; import org.juni...
32.303571
82
0.689331
2f936a4c4181876acdf9699ab5d8116ef7063f2d
2,602
package eoram.cloudexp.service; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import eoram.cloudexp.data.DataItem; import eoram.cloudexp.data.SimpleDataItem; import eoram.cloudexp.pollables.Completable; import eoram.cloudexp.pollables.Pollable; import eoram.cloudexp.utils.Errors; /** * Repres...
24.54717
118
0.72329
47ea356938398145769ae5ab4555b55a0a74ba86
2,337
package com.redhat.cloud.notifications.routers; import com.redhat.cloud.notifications.StuffHolder; import com.redhat.cloud.notifications.auth.rbac.RbacRaw; import com.redhat.cloud.notifications.auth.rbac.RbacServer; import io.smallrye.mutiny.Uni; import org.eclipse.microprofile.rest.client.inject.RestClient; import j...
29.582278
121
0.607617
6ebc03678793834a67c6d19895e12ebb77bcdf47
5,455
/* * Copyright © 2017 Cask Data, 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 t...
47.434783
120
0.678093
67498ca44e0b1736bb85ba417bd75e47442fd725
2,447
package datawave.query.jexl.visitors; import datawave.query.jexl.nodes.QueryPropertyMarker; import org.apache.commons.jexl2.parser.ASTNENode; import org.apache.commons.jexl2.parser.ASTNRNode; import org.apache.commons.jexl2.parser.ASTNotNode; import org.apache.commons.jexl2.parser.JexlNode; /** * Determine if all qu...
39.467742
160
0.642011
afbd08567a4881dbbf45d6e0f7773fd393a65714
1,667
package com.sirma.javacourse.javagui.utils; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * Holds utility methods for opening a sockets for a client and a server. */ public final class SocketUtils { private static fin...
26.460317
91
0.707858
dcd9483c2e872573532727d221c5611ec56ec662
6,990
/** * Copyright 2015 Russoft di Enrico Russo * * 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 ...
35.125628
140
0.535908
c570ffd360e7e024a15d846fe7f795d9cecd65ba
1,922
/* * Copyright 2019 Haulmont. * * 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...
26.328767
92
0.649324
20767b0472f5da41640d47ae147197445f3c2ee4
3,732
/* * Copyright (c) 2020 Vikash Madhow */ package ma.vi.esql.type; import ma.vi.base.lang.NotFoundException; import ma.vi.esql.parser.query.Column; import java.util.ArrayList; import java.util.List; /** * * @author Vikash Madhow (vikash.madhow@gmail.com) */ public abstract class Relation extends AbstractType { ...
24.392157
103
0.589764
e95e13c47db4ec3e9803df523b4081c11d718a0f
3,073
package com.ppdai.infrastructure.rest.controller.client; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.CollectionUtils; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bi...
34.920455
92
0.775464
afa46e5f973c6b1ee57a41003df8f0cd785bf3be
1,319
package com.kubrick.sbt.web.common.interceptor; import com.kubrick.sbt.web.common.annotation.LoginRequired; import org.springframework.web.method.HandlerMethod; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; import javax.servlet.http.HttpServletRequest;...
28.673913
116
0.79909
78574fdee2dde85bb47e3162cb21fa22b94b1fc8
1,484
package com.example.qkx.myshare; /** * Created by qkx on 16/5/30. */ public class Constants { public static final String KEY_OBJECT_ID = "objectId"; //user public static final String KEY_USERNAME = "username"; public static final String KEY_PASSWORD = "password"; public static final String KEY_...
32.26087
77
0.72372
c6c6ea7ed6169fa3740799e84849ea3cc69bba5c
10,099
import java.applet.Applet; import java.applet.AudioClip; import java.awt.Color; import java.awt.Font; import java.awt.Rectangle; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.io.File; import java.io.FileInputStre...
24.160287
96
0.663234
3005568912069b493d86575072e31eb1ac1e1329
1,380
/* * Copyright 2020 Smart Society Services B.V. * * 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 */ package org.opensmartgridplatform.cucumb...
37.297297
99
0.78913
1447471e7fe436669d02f22bdeb06ae34afef04b
3,159
/* * Copyright (C) 2018 Andrea Binello ("andbin") * * This file is part of the "Swing JTable Demos" project and is licensed * under the MIT License. See one of the license files included in the root * of the project for the full text of the license. */ package net.andbin.jtabledemos; import java.awt.BorderLayou...
32.90625
101
0.71415
da24088d6dd7dbc9876e9d99de1669005c931fd3
383
package tv.floe.metronome.deeplearning.datasets.fetchers; import java.io.Serializable; import tv.floe.metronome.deeplearning.datasets.DataSet; public interface DataSetFetcher extends Serializable { boolean hasMore(); DataSet next(); void fetch(int numExamples); int totalOutcomes(); int inputColumns(...
14.185185
57
0.738903
38d07616c6dd190722e049ae4516a364d1943795
691
package com.zhuangfei.generalpageapp; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import com.zhuangfei.generalpage.BaseActivity; public class ExampleActivity extends BaseActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInsta...
22.290323
56
0.662808
6bd001063a45332f5fa479610b52e1854ec2ad6e
3,007
package com.aurelhubert.ahbottomnavigation.notification; import android.os.Parcel; import android.os.Parcelable; import android.support.annotation.ColorInt; import android.support.annotation.Nullable; import android.text.TextUtils; import java.util.ArrayList; import java.util.List; /** * @author repitch */ public ...
25.058333
89
0.622547
a3d262fe6fe007e55ba4722d12e98c3855a910f4
9,064
/* This software was created by United States Government employees at The Center for Cybersecurity and Cyber Operations (C3O) at the Naval Postgraduate School NPS. Please note that within the United States, copyright protection is not available for any works created by United States Government employees, pursuant...
43.161905
139
0.694395
53f31914c01fc9e9f4aae62b6598e46e18170324
1,103
package com.example.edison.shudu; import android.content.Context; import android.preference.PreferenceActivity; import android.preference.PreferenceManager; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; public class SettingActivity extends PreferenceActivity { private static final St...
32.441176
76
0.75068
fea2b2a7de161666bff2637b9662c9f8492786d0
3,672
package org.jenkinsci.plugins.github_branch_source; import java.util.Collections; import jenkins.scm.api.SCMHead; import jenkins.scm.api.SCMHeadCategory; import jenkins.scm.api.SCMHeadObserver; import jenkins.scm.api.SCMHeadOrigin; import jenkins.scm.api.mixin.ChangeRequestCheckoutStrategy; import jenkins.scm.api.trai...
52.457143
191
0.723584
1f37514745dd34cd5588e291705c259787221f46
654
package org.computelab.config; import static com.google.common.base.Preconditions.checkNotNull; import java.util.List; import java.util.stream.Collectors; final class StringUtils { /** * Trims a a list of strings. For each string value in the list, * whitespace are trimmed. Then empty strings are remo...
26.16
71
0.623853
aa273546f8fd9d223e2bb55bdc941dac9a63c41e
1,019
package net.atlassian.cmathtutor.domain.persistence.translate.changelog; import java.util.stream.Stream; import javax.xml.bind.annotation.adapters.XmlAdapter; import lombok.AllArgsConstructor; import lombok.Getter; @AllArgsConstructor @Getter public enum FkCascadeActionType { CASCADE("CASCADE"), RESTRICT("...
29.114286
120
0.689892
5b78de5057484797144ed7cd39b39ae2ea5c3c68
577
package codewars.test; import static org.junit.jupiter.api.Assertions.assertEquals; import org.junit.jupiter.api.Test; import codewars.exercises.CountTheDigit; class CountTheDigitTest { @Test public void test() { assertEquals(CountTheDigit.nbDig(10, 1), 4); assertEquals(CountTheDigit.nbDig(...
27.47619
60
0.700173
c0c113312f565ab809c7b3da450f82307f208d6a
393
package com.hapramp.models; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import java.util.List; public class LookupAccount { @Expose @SerializedName("result") private List<String> mResult; public List<String> getmResult() { return mResult; } public v...
18.714286
50
0.735369
119dc8cbe9a884ed2b29b6dc97274a4dc7e37b08
237
package com.mohsinkd786.java.spring.repo; import org.springframework.data.mongodb.repository.MongoRepository; import com.mohsinkd786.java.spring.entity.Product; public interface MongoRepo extends MongoRepository<Product, String> { }
23.7
69
0.831224
56d16fe4215baa6737105371ab675bc527dab430
1,624
/* * Copyright 2018 Kostyantyn Krakovych * * 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...
28
115
0.718596
287af99abb6ba3e9e640f0d57cb54b144cca30c8
584
package io.sphere.sdk.search.model; /** * Exception for {@link Range} in case the lower and upper bounds are exclusive and of the same value. * * {@include.example io.sphere.sdk.search.model.RangeTest#isInvalidWhenBoundsAreEqualAndExclusive()} */ public final class SameExclusiveBoundsException extends InvalidRange...
32.444444
102
0.751712
5c0021e8b6a3c5455707d9157e52159291e26f25
3,698
package com.ysl.data.util; import org.apache.ibatis.mapping.BoundSql; import org.apache.ibatis.mapping.MappedStatement; import org.apache.ibatis.mapping.SqlCommandType; import org.apache.ibatis.mapping.SqlSource; import org.apache.ibatis.plugin.Invocation; import org.apache.ibatis.reflection.DefaultReflectorFactory; i...
39.763441
159
0.676041
c2f3afc6d1707f045a24fa2ecce87bccfee65b37
1,228
package com.qa.springust.persistence.domain; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.ManyToOne; import javax.validation.constraints.Max; import javax.validation.constraints.Min; import javax...
21.54386
73
0.696254
a3e76c243aed9f6aab6058f22c530a5d378b3e39
2,632
/* * Data Hub Service (DHuS) - For Space data distribution. * Copyright (C) 2017 GAEL Systems * * This file is part of DHuS software sources. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software...
32.097561
93
0.710486
d5e81b88f2b328360adf76c989398c5debb394c2
1,348
package tw.com.fcb.lion.core.commons.http; import java.time.LocalDate; import org.springframework.core.convert.converter.Converter; import org.springframework.stereotype.Component; @Component public class DateConverter implements Converter<String, LocalDate>{ @Override public LocalDate convert(String s...
27.510204
68
0.662463
b77b8d0fcf2c31e18edf3bf6445bb56dd368e726
4,674
package fr.insalyon.waso.web; import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import fr.insalyon.waso.util.JsonHttpClient; import fr.insalyon.waso.util.exception.ServiceException; import java.io.IOException; import org.apache.http.message.BasicNameValuePair; /*...
31.16
127
0.612965
3416c95c42d2348a44e7710d158641ebcdac4ab5
145
package org.recap.model; /** * Created by akulak on 3/3/17. */ public class ItemAvailabilityResponse extends DocTypeAvailabilityResponse { }
16.111111
75
0.758621
41244227ee69ee0dbc1a9ca2dda16f4bb430c01a
2,119
/** * Copyright 2017-2020 O2 Czech Republic, a.s. * * 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 ...
33.109375
93
0.656442
538de3f2787ddae1f108927be6936d3fdb1903bb
1,315
/******************************************************************************* * * Copyright FUJITSU LIMITED 2017 * ...
31.309524
131
0.425856
bb22c7e0969a43c854986d8d1bbe4d463293b6dc
772
package subway; import subway.domain.*; import subway.view.*; import java.util.Scanner; public class Application { public static void main(String[] args) { final Scanner scanner = new Scanner(System.in); Init.initialize(); startProgram(scanner); } public static void startProgram(...
26.62069
82
0.656736
48057f9fdb2b747aa6ba4235151e070a8114f874
491
package cl.global.logic.exercise.utilities.exceptions; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import static org.junit.Assert.assertEquals; @RunWith(SpringJUnit4ClassRunner.class) public class FieldsErrorsTest { @Test public...
27.277778
92
0.802444