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
dd227ceac2abc627f9eb10b22564b445ac7fcd9d
1,460
package cn.cookie.framework.context; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.BeansException; import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.stereotype.Component; @Component ...
29.2
102
0.776712
bfdd9ea773020cc54390d8eaba505b0056c4c22b
683
package app.retake.domain.dto; import javax.xml.bind.annotation.*; import java.util.ArrayList; import java.util.List; @XmlRootElement(name = "procedures") @XmlAccessorType(XmlAccessType.FIELD) public class ProcedureWrapperXMLExportDTO { @XmlElementWrapper(name = "procedures") @XmlElement(name = "procedure") ...
25.296296
71
0.726208
3f4badd361fff790ffac9a94365b8a3ec1704406
3,150
/** * Copyright 2014 Lockheed Martin 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 ...
29.166667
104
0.595873
83a7cd211692ca2e7ddb3ee2ffc159adba74fd64
12,994
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. package com.azure.core.tracing.opentelemetry; import com.azure.core.tracing.opentelemetry.implementation.AmqpPropagationFormatUtil; import com.azure.core.tracing.opentelemetry.implementation.AmqpTraceUtil; import com.azure...
40.354037
120
0.656226
51506cfe1079fb76f570e112681fa4da3f19b49b
453
package com.ajgaonkar.leetcode; import org.junit.Test; import static org.junit.Assert.*; public class LC392_Is_SubsequenceTest { LC392_Is_Subsequence test = new LC392_Is_Subsequence(); @Test public void test(){ assertEquals(true, test.isSubsequence("abc", "ahbgdc")); assertEquals(true, test.isSubsequence("ab...
26.647059
59
0.737307
2be579366ee195ce7fe65a6daf75396e6bd5afe5
597
package io.quarkus.hibernate.orm.singlepersistenceunit.entityassignment.packageincludedthroughconfig; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; @Entity public class EntityIncludedThroughPackageConfig { @Id @...
23.88
101
0.777219
14b56fa42c5e5bc1a3f2b8f46cc69113cfd47cb1
812
package io.github.padlocks.customorigins.player; import net.minecraft.client.network.ClientPlayerEntity; import java.lang.ref.WeakReference; public final class PlayerTicker { private static PlayerTicker ticker = new PlayerTicker(null); public static PlayerTicker get(final ClientPlayerEntity player) { ...
29
70
0.714286
332397200f2a4a8c8cc69e64b61f86bd138f4ecd
884
package cl.getapps.sgme.injection.component; import cl.getapps.sgme.ui.ayuda.AyudaActivity; import cl.getapps.sgme.ui.eventos.EventosActivity; import cl.getapps.sgme.ui.eventos.detalle.DetalleEventoActivity; import cl.getapps.sgme.ui.hojaderuta.HojaRutaActivity; import dagger.Subcomponent; import cl.getapps.sgme.injec...
30.482759
78
0.816742
3a80460aa6d468be3cf0da0b52b6e6c707f1dc6c
315
package com.example.springmvc.localdate; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import java.time.LocalDate; /** * @author Hodur * @date 2021/8/5 */ @Data public class LocalDateItem { private Long id; @JsonFormat(pattern = "yyyy-MM-dd") private LocalDate date; }
15.75
51
0.71746
9644048af5ad10e9f959a2da627d29b969aa8d78
1,298
package com.thakkali.model; public class CheckOut { private int order_id; private int id; private String name; private int quantity; private int price; private int max_count; private String image_url; public String getImage_url() { return image_url; } public void setImage_url(String image...
18.542857
97
0.634052
d29da3bf24412b10c593ccbb168f1b023867d649
4,065
/* * Copyright 2016-2018 shardingsphere.io. * <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 * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable l...
38.714286
191
0.709717
5cc4859106bb657599cba8ce30119ec550a43107
4,736
package cn.saberking.jvav.apm.web.controller.system; import cn.saberking.jvav.apm.common.annotation.Log; import cn.saberking.jvav.apm.common.config.ApmConfig; import cn.saberking.jvav.apm.common.constant.Constants; import cn.saberking.jvav.apm.common.core.controller.BaseController; import cn.saberking.jvav.apm.common....
39.466667
106
0.672086
e1c636f16ff8276e38d469b4729ca45b6eb24505
2,532
package de.fau.amos.virtualledger.android.views.bankingOverview.deleteBankAccessAccount; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import de.fau.amos.virtualledger.android.views.bankingOverview.deleteBankAccessAccount.functions.BiConsumer; import de.fau.am...
36.171429
195
0.698262
2b05d5fb1cadcecd425376492dd4fd784e54205e
682
package com.spring.di.constructor.dependentObjList; import java.util.Iterator; import java.util.List; public class Question { private int id; private String name; private List answers; // Define Constructor Question() { System.out.println("def cons"); } public Question(int id, String name, Li...
16.238095
55
0.589443
5976fa94c667400b0d640269d196390af33a8dea
1,053
package com.example.designPattern.create_type.prototype.deep_copy; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; /** * @author: zhoupb * @Description: 奖状原型类: 深克隆 测试类 * @since: version 1.0 */ public class Client { public s...
24.488372
90
0.621083
c66b5cb7757c4be5e0d273731350dcb5f7e622dc
751
/** * <p>Title : SPI:服务提供接口</p> * <p>Description : * * SPI = Service Provider Interface 服务提供接口 * * 原理:反射机制 * * JDK SPI: 通过java.util.ServiceLoader实现,模块化开发,解除耦合 * 服务提供者模块(jar) 在META-INF/services目录下 添加接口文件,文件内容为接口实现类的全路径 * 如:文件名为【example.MyService】,文件内容为【example.MyServiceImpl1,example.MyServiceImpl2】 * 服...
28.884615
86
0.729694
6b29ee6b728266c8723d84ee8f432d97419dcfdb
4,114
/******************************************************************************* * Code contributed to the webinos 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....
34.571429
97
0.70491
215f9ab83f4a16e9d9cd3d7d54b9d175d40a1166
626
package com.nbs.iais.ms.common.db.domains.abstracts; import com.nbs.iais.ms.common.db.domains.interfaces.MultilingualText; import javax.persistence.MappedSuperclass; @MappedSuperclass public abstract class AbstractMultiLanguageText extends AbstractDomainObject implements MultilingualText { public AbstractMultiL...
24.076923
106
0.731629
427c23afac02c4c05eccf0670a68cb70a71f3e04
3,714
/* * Copyright © 2016 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...
38.6875
114
0.713786
296454494937e00e7f814f754a467b2181717e67
772
package com.tui.architecture.eventdriven.stresstest.core.event; import lombok.EqualsAndHashCode; import lombok.ToString; import org.springframework.kafka.support.KafkaHeaders; /* * Message event * * @author joseluis.nogueira on 28/08/2019 */ @EqualsAndHashCode(callSuper = false) @ToString public class DataModifie...
30.88
106
0.786269
ee47eaeb989e4bf2fe9094c602d76741261a22be
627
package com.sophia.store.entity.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import lombok.ToString; @Data @AllArgsConstructor @NoArgsConstructor @ToString @ApiModel(value = "返回分页消息实体"...
27.26087
54
0.751196
18b5c6461b9834794dfc1cb9d1961fbc69b195ee
463
package com.tek271.util.reflect; import java.util.List; import junit.framework.TestCase; public class ReflectUtilTest extends TestCase { public void testGetPackageDirectoryOfClass() { String dir= ReflectUtil.getPackageDirectoryOfClass(String.class); assertEquals("java/lang", dir); } publ...
23.15
70
0.719222
1b92bca9afeda7e69fd3d4ede234b8f5b7ffbe8d
894
public class MexicanWave { public static void main(String...Args) { String str = " gap "; String [] wave = wave(str); for (int i = 0; i < wave.length; i++) { System.out.println(wave[i]); } } public static String[] wave(String str) { str = str.toLowerCas...
24.833333
131
0.448546
69b3680dae793407666f83ebea42b6ede23ffece
333
package io.zephyr.kernel.core; import io.zephyr.kernel.Coordinate; import io.zephyr.kernel.Module; import lombok.NonNull; public interface ModuleClasspathManager { void install(@NonNull Module module); void uninstall(@NonNull Coordinate coordinate); void uninstall(@NonNull Module module); void check(Modul...
19.588235
49
0.780781
704d2756d3c82810b066b483ac3c8de2140cdbcb
308
package mobi.tarantino.stub.auto.feature.splashScreen; import dagger.Component; import mobi.tarantino.stub.auto.di.BaseComponent; import mobi.tarantino.stub.auto.di.PerActivity; @PerActivity @Component(dependencies = {BaseComponent.class} ) public interface TestSplashComponent extends SplashComponent { }
25.666667
62
0.831169
49c53ee67e4ce037802005ebebc83d10aa504374
2,522
/* * ### * phresco-pom * * Copyright (C) 1999 - 2012 Photon Infotech 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 * ...
27.11828
75
0.685567
f7e42ff7c4fe90577356e8dc2fe12433ea9bd3c1
1,457
package edu.escuelaing.arsw.DatagramServer; import java.io.IOException; import java.net.DatagramPacket; import java.net.DatagramSocket; import java.net.InetAddress; import java.net.SocketException; import java.util.Date; import java.util.logging.Level; import java.util.logging.Logger; public class DatagramTimeServer ...
31
93
0.608099
fdef9490e67d9d9d7a20988d6cb9230b13d41d39
1,717
package org.infinispan.counter.impl.factory; import java.util.concurrent.CompletionStage; import org.infinispan.Cache; import org.infinispan.counter.api.CounterConfiguration; import org.infinispan.counter.api.CounterType; import org.infinispan.counter.api.StrongCounter; import org.infinispan.counter.impl.strong.Abstr...
40.880952
127
0.780431
02b94c15df498afb29e8fb5abd5828902e0643cc
1,221
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package org.me.calculator; import javax.jws.WebService; import javax.jws.WebMethod; import javax.jws.WebParam; import javax.ejb.Stateless; /** * * @author Junaid */ @WebService(serviceName = "CalculatorWS") @Statele...
21.803571
83
0.571663
dd5af911305284a9a94e5c60d4163ea7261b717a
1,713
package com.routon.plcloud.device.core.service; import com.routon.plcloud.device.data.entity.Vrdevice; import java.util.List; import java.util.Map; /** * @author FireWang * @date 2020/5/07 15:09 */ public interface VrdeviceService { /** * 根据设备格式新增设备软件 * * @param vrdevice * @return * ...
19.689655
120
0.595447
96d008a34a45291044b43ca61ac038f4f8e9a50d
355
package org.nibiru.oauth.android.ioc; import org.nibiru.oauth.android.business.AndroidOAuth2Manager; import org.nibiru.oauth.core.api.OAuth2Manager; import dagger.Module; import dagger.Provides; @Module public class AndroidModule { @Provides public OAuth2Manager getOAuth2Manager(AndroidOAuth2Manager manager)...
22.1875
73
0.780282
fe193f926f0df9b343835bb3738d84cae3552f78
862
package de.deeprobin.amethyst_mod.mixin; import de.deeprobin.amethyst_mod.AmethystMod; import net.minecraft.world.biome.Biome; import net.minecraft.world.biome.DefaultBiomeCreator; import net.minecraft.world.biome.GenerationSettings.Builder; import net.minecraft.world.gen.GenerationStep; import org.spongepowered.asm.m...
37.478261
109
0.819026
12e5d26d45cba94f626c4ced3a2a35fb9f794390
317
package hrms.business.abstracts; import hrms.core.business.baseService.BaseService; import hrms.core.utilities.results.DataResult; import hrms.entities.concretes.GithubAccount; public interface GithubAccountService extends BaseService<GithubAccount, Integer> { DataResult<GithubAccount> getByUser(Integer id); }
35.222222
83
0.839117
864551a57d30a75c4532cb88c199a8b9ad171185
78
package com.tutorialspoint.inheritance; public interface AnimalImp { }
13
40
0.75641
86d8e63cbd2e9b7b04d1ae15b5a51660dd3589c8
364
package cn.ruleengine.web.store.mapper; import cn.ruleengine.web.store.entity.RuleEngineConditionGroupCondition; import com.baomidou.mybatisplus.core.mapper.BaseMapper; /** * <p> * Mapper 接口 * </p> * * @author dqw * @since 2020-07-16 */ public interface RuleEngineConditionGroupConditionMapper extends BaseMap...
20.222222
112
0.774725
bee81148690c024341ad68782e56e24d9a613b26
1,084
package no.paneon.api.diagram.puml; import no.paneon.api.utils.Config; import no.paneon.api.logging.LogMethod; import no.paneon.api.graph.DiscriminatorNode; import no.paneon.api.graph.Node; import no.paneon.api.logging.AspectLogger.LogLevel; public class DiscriminatorEntity extends Entity { String type; private...
19.017544
60
0.70203
3360fc6c68339ecba2429542fa3cc16a48cfa86a
456
package me.hardcoded.compiler.parser.expr; import me.hardcoded.compiler.impl.ISyntaxPosition; import me.hardcoded.compiler.parser.type.TreeType; public class NullExpr extends Expr { public NullExpr(ISyntaxPosition syntaxPosition) { super(syntaxPosition); } @Override public boolean isEmpty() { return false; ...
17.538462
50
0.75
2ae0fd92dcd17bbf98b0537db3c790f34d5dcd99
3,965
/* * 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 ...
42.634409
128
0.621942
a516d752f4129d49bcba7c539fd6ee7152ae70d7
1,104
/* * mumbot * By Kailari (Ilari Tommiska) * * Copyright (c) 2016. Ilari Tommiska (MIT License) */ package se.erikwelander.zubat.services.protocols.mumble.protocol.mumbot.packet; import com.google.protobuf.Message; import java.io.IOException; import java.io.OutputStream; import java.nio.ByteBuffer; ...
22.530612
80
0.628623
29692e979af5c62d4b1d4d68a590d074c97178cb
228
package com.group.nuntius.obp.domain; import lombok.Data; @Data public class ATM { private String id; public String getId() { return id; } public void setId(String id) { this.id = id; } }
13.411765
37
0.596491
f0c748f4ee26ef867b050fa64fe3bb5198e4c06e
686
package jp.gr.java_conf.alpius.pino.graphics; import jp.gr.java_conf.alpius.pino.graphics.color.ColorSpace; abstract class RGBFormat implements PixelFormat { private final ColorSpace anyRgbColorSpace; private final boolean hasAlpha; protected RGBFormat(ColorSpace anyRgbColorSpace, boolean hasAlpha) { ...
27.44
104
0.717201
52ea57dde70208a43783b57d0da2117af110a211
1,478
package org.openrewrite.definitions; import java.io.IOException; import static java.util.Collections.emptyList; import org.openrewrite.java.AddField; import org.openrewrite.java.JavaRefactorVisitor; import org.openrewrite.java.tree.J; import org.openrewrite.java.tree.TreeBuilder; import org.openrewrite.refactor.Refact...
33.590909
116
0.645467
4bd54b7858743edfa32c69c8e6efe07fa314493c
340
package com.challenge.entity; import lombok.Data; import javax.persistence.*; import javax.validation.constraints.NotNull; import java.io.Serializable; import java.sql.Timestamp; @Embeddable public class SubmissionPK implements Serializable { @ManyToOne private User userId; @ManyToOne private Chall...
17.894737
51
0.779412
3627fb85ef30bc981557cc30a65aee09239eac35
5,752
/* * Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.idea.spring.tests.generate; import com.intellij.testFramework.TestDataPath; import org.jetbrains.kotlin.test.JUnit3RunnerWithI...
54.264151
192
0.799896
452cd5b838106b6dce5d478f7d58ee32d75201e6
969
/* * Copyright 2020 Sukhvir Thapar * * 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 ...
26.189189
75
0.723426
9f419931b309e7e4bfee1420251ce9f694e5e387
430
package org.malloc.leet.code; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; /** * @author malloc * @since 2020/6/18 */ class TwoSumTest { private final TwoSum twoSum = new TwoSum(); @Test void twoSum() { int[] r ...
20.47619
60
0.644186
a6a3809965f8b3838f5a376f8fd0367b27488bc3
765
package br.com.livrariaweb.persistence.dao; import java.util.List; /** * Defines as operações básicas de acesso e manipulação aos dados * armazenados no banco de dados. * * @author thiago-amm * @version v1.0.0 12/01/2019 * @since v1.0.0 */ public interface DAO<T> { /** * Insere um registro no banco ...
28.333333
66
0.684967
dddce7d00aaa69636d0d92660bca84a11e659e75
745
package com.github.kornilova203.matlab.stub; import com.github.kornilova203.matlab.psi.MatlabFunctionDeclaration; import com.intellij.psi.stubs.StringStubIndexExtension; import com.intellij.psi.stubs.StubIndexKey; import org.jetbrains.annotations.NotNull; public class MatlabFunctionDeclarationIndex extends StringStub...
35.47619
137
0.791946
f1e9d6a6578660d72cb68322d73df7050e7ae089
17,630
package org.sdnhub.flowtags; import java.nio.channels.SelectionKey; import java.nio.channels.Selector; import java.nio.channels.SocketChannel; import java.nio.channels.spi.SelectorProvider; import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java.util.Li...
29.780405
112
0.624957
756a50598b0c21a9f891c4534b868162907c99dd
3,023
package org.jxls.builder.xml; import java.io.InputStream; import java.util.HashMap; import java.util.List; import java.util.Map; import org.jxls.area.Area; import org.jxls.area.XlsArea; import org.jxls.builder.AreaBuilder; import org.jxls.transform.Transformer; import ch.qos.logback.core.Context; import ch.qos.logba...
31.489583
108
0.690043
3b8af6dba0c1e4e000483773d942ad83992902af
782
package com.hbird.base.mvp.model.db.greendao; import com.hbird.base.mvp.model.entity.table.HbirdIncomeType; import com.hbird.base.mvp.model.entity.table.HbirdSpendType; import com.ljy.devring.db.GreenTableManager; import org.greenrobot.greendao.AbstractDao; /** * Created by Liul on 2018/8/31. * description: 系统支出类目...
30.076923
86
0.776215
84dc83750217febf7ce604bc6bcd00dda4e40489
9,243
package org.openpaas.paasta.portal.common.api.domain.email; import org.apache.commons.io.IOUtils; import org.apache.commons.lang.RandomStringUtils; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.select.Elements; import org.openpaas.paasta.portal.common.api.config.EmailConfig; import org.ope...
38.037037
163
0.561181
be1c088e37c2257b99f3f723a87df859b5c652e5
6,882
/* * Copyright 2013 University of Glasgow. * * 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...
36.221053
120
0.650683
c50cfafb351b139950a49bfba71abc5a529e3cd2
3,972
package org.hisp.dhis.coldchain.equipment; import java.util.ArrayList; import java.util.List; import org.hisp.dhis.common.BaseNameableObject; /** * @author Mithilesh Kumar Thakur * * @version EquipmentTypeAttributeGroup.javaMar 5, 2013 11:47:03 AM */ public class EquipmentTypeAttributeGroup extends BaseNameabl...
22.697143
122
0.541037
ab448b549775f30bbcc6cc8e2c7ccdda5f688657
1,437
package com.github.aaronshan.functions.math; import org.apache.hadoop.hive.ql.exec.Description; import org.apache.hadoop.hive.ql.exec.UDF; import org.apache.hadoop.io.BooleanWritable; import org.apache.hadoop.io.DoubleWritable; /** * @author ruifeng.shan * date: 18-7-23 */ @Description(name = "is_infinite" ...
29.9375
68
0.654836
8e96d3fa9651fc0b825fdd0572df604070db13b7
6,945
package com.bergerkiller.bukkit.tc.properties.standard.category; import java.util.Optional; import org.bukkit.ChatColor; import org.bukkit.command.CommandSender; import com.bergerkiller.bukkit.common.config.ConfigurationNode; import com.bergerkiller.bukkit.common.utils.ParseUtil; import com.bergerkiller.bukkit.tc.Pe...
39.685714
109
0.685529
0848150e1a2c5a4cfb487245bec54dbff154edcf
9,854
package fr.insee.kraftwerk.core.outputs; import fr.insee.kraftwerk.core.inputs.ModeInputs; import fr.insee.kraftwerk.core.inputs.UserInputs; import fr.insee.kraftwerk.core.metadata.VariablesMap; import fr.insee.kraftwerk.core.utils.TextFileWriter; import fr.insee.kraftwerk.core.vtl.VtlBindings; import lombok.Getter; i...
39.258964
203
0.717171
974b2972fdc9e252c333439c03a4c0bec53814fa
626
package com.mahogano.core.presta.mapper; import com.mahogano.core.presta.entity.Reassurance; import org.springframework.jdbc.core.RowMapper; import java.sql.ResultSet; import java.sql.SQLException; public class ReassuranceMapper implements RowMapper<Reassurance> { @Override public Reassurance mapRow(ResultSe...
29.809524
72
0.746006
4c4fbbcfdaa88dd87e0c9fb20206f81bfd60d66d
5,652
package org.cleancode; import java.text.ParseException; import java.util.*; public class ArgsV02 { private String schema; private String[] args; private boolean valid = true; private Set<Character> unexpectedArguments = new TreeSet<Character>(); private Map<Character, Boolean> booleanArgs = ...
33.052632
84
0.592711
b218dc54bac061db81bd2261ca09962c5050acf3
1,138
package vip.mate.gateway.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Configuration; /** * Nacos路由工具类配置 * @author pangu */ @Configuration public class NacosGatewayConfig { public static final long DEFAULT_TIMEOUT = 30000; public static S...
26.465116
61
0.734622
97b745acc8f855b8b094952f1b9589c8e4c1f010
303
package loteria; //Em desenvolvimento.... public class SistemaLoterica { public static void main(String[] args) { LotericaInterna loterica = new LotericaInterna(); Usuario u1 = new Usuario(); loterica.premiacao(loterica.compararJogo(loterica.sorteio(), u1.fazerJogo(u1.escolha()))); } }
16.833333
92
0.722772
9f9e06301b0dcb13016861bdf7c6a3383386d804
7,692
import java.util.ArrayList; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import javax.swing.Timer; public class Logica implements ILogica { Jogo jogo; public boolean jogando; public List<Player> players = null; public Enemy[][] enemies = new Enemy[17][13]; public int ...
33.885463
118
0.432657
85f945ba23c8cd2b9957cc29041c524a5960061b
2,312
package ru.stqa.pft.mantis.tests; import org.testng.annotations.AfterMethod; import org.testng.annotations.Test; import ru.lanwen.verbalregex.VerbalExpression; import ru.stqa.pft.mantis.appmanager.DbHelper; import ru.stqa.pft.mantis.appmanager.HttpSession; import ru.stqa.pft.mantis.model.MailMessage; import ru.stqa.pf...
39.186441
108
0.703287
a2ddb7dbe6f61d0bd75a40a45f4015309c4eca49
688
package frc.robot.auto; import edu.wpi.first.wpilibj2.command.CommandBase; import frc.robot.subsystems.DriveSubsystem; public class StopTrajectory extends CommandBase { private DriveSubsystem robotDrive; public StopTrajectory(DriveSubsystem robotDrive) { this.robotDrive = robotDrive; } @Over...
20.235294
54
0.664244
11ea72a3ddb0c699b40cf072abfc5694c26fe0f6
393
package co.paystack.android.api.model; import com.google.gson.annotations.SerializedName; /** * An API response always includes a status and a message */ public class ApiResponse extends BaseApiModel { @SerializedName("status") public String status; @SerializedName("message") public String message...
20.684211
57
0.73028
790319b08e39fa5ede6eea875012f11aca37e4a1
557
package com.andyadc.codeblocks.common.event; import java.util.concurrent.Executor; import java.util.concurrent.ForkJoinPool; /** * Parallel {@link EventDispatcher} implementation uses {@link ForkJoinPool#commonPool() JDK common thread pool} * * @see ForkJoinPool#commonPool() */ public class ParallelEventDispatche...
24.217391
112
0.777379
80384f1412ffcef93fdb169a9e2c6f1bc4a618ca
7,801
/* * Copyright (c) 2012-2017 ZoxWeb.com 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...
27.761566
307
0.716318
640fad4fd883ab83a0158274b423dfbffbb1d89a
1,485
package com.oregonstate.snooze.service.impl; import com.oregonstate.snooze.model.Group; import com.oregonstate.snooze.service.GroupService; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org....
27.5
105
0.73468
775a728e3906da483b5e1fb6b657083b3ce331b5
1,854
package manggo.com.downloadutil; import android.app.Activity; import android.app.DownloadManager; import android.net.Uri; import android.os.Environment; import android.util.Log; import android.webkit.URLUtil; //import com.tencent.smtt.sdk.URLUtil; import static android.content.Context.DOWNLOAD_SERVICE; public class...
37.836735
109
0.71521
5413172a5aa6f7d1b8ed56cbb8c728cbbe688793
2,929
package com.daemonize.daemonengine.implementations; import com.daemonize.daemonengine.DaemonState; import com.daemonize.daemonengine.EagerDaemon; import com.daemonize.daemonengine.SideQuestDaemon; import com.daemonize.daemonengine.consumer.Consumer; import com.daemonize.daemonengine.quests.SideQuest; import com.daemo...
24.408333
170
0.70297
a2abead202c673f99e76ddefc23fe65e7bdc4155
327
package com.microsoft.conference.management.domain.Models; public class SeatAvailableQuantity { public String SeatTypeId; public int AvailableQuantity; public SeatAvailableQuantity(String seatTypeId, int availableQuantity) { SeatTypeId = seatTypeId; AvailableQuantity = availableQuantity; ...
27.25
76
0.75841
dbabdcddc82549061eee5bf18c77f956dfe08651
3,243
package rapaio.data.filter.var; import org.junit.Assert; import org.junit.Rule; import org.junit.Test; import org.junit.rules.ExpectedException; import rapaio.data.Var; import rapaio.data.VarBinary; import rapaio.data.VarDouble; import rapaio.data.VarInt; import rapaio.data.VarLong; import rapaio.data.VarNominal; /**...
39.072289
134
0.612704
6fa568b662ee4f72afa71d615bb6e2c073357372
2,866
package com.openvehicletracking.collector.verticle; import com.openvehicletracking.collector.AppConstants; import com.openvehicletracking.collector.Config; import com.openvehicletracking.collector.database.MongoCollection; import com.openvehicletracking.collector.database.Record; import com.openvehicletracking.core.Ca...
35.382716
133
0.680391
af1100feb72029b7e05e5215db82df08c479c47c
992
package com.mastering.spring.springboot.configuration; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @Component @ConfigurationProperties("application") public class ApplicationConfiguration { private boolean enableSwitchForService1; ...
26.810811
77
0.75
09a7f8df5606ce0d4a0fe5db8ab1f6d6b8be7a7f
524
package com.moon.lang.ref; import com.moon.lang.reflect.ConstructorUtil; import com.moon.util.assertions.Assertions; import org.junit.jupiter.api.Test; import java.util.WeakHashMap; /** * @author benshaoye */ class WeakMapManagerTestTest { static final Assertions assertions = Assertions.of(); @Test vo...
26.2
95
0.725191
f90d5f3472a8b4aba8b292834b00c944029bb168
1,892
package com.chappie.engine.math; public class Vector2i { private int x,y; public Vector2i(int x, int y) { this.x = x; this.y = y; } public Vector2i(int val) { this.x = val; this.y = val; } public int getX() { return x; } public void setX(int x) { this.x = x; } pub...
20.565217
83
0.588266
9730ccb5b29ee4a33c8191cc5ce76d84a03f2226
413
package com.javatest.eurekaclient; import com.fasterxml.jackson.annotation.JsonAutoDetect; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDet...
22.944444
115
0.823245
e88639f83f3ba5af847db3b35c42c439405c632d
36,876
/*! * This program is free software; you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License, version 2.1 as published by the Free Software * Foundation. * * You should have received a copy of the GNU Lesser General Public License along with this * program; if not, you can ob...
46.095
154
0.752169
7905f403175bfee3d6047aa7f4a93aa9eba39b68
565
package com.alex.javaweb; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; /** * @author : alexchen * @created : 9/7/20, Monday **/ public class HeaderServlet extends HttpServlet { public void doGet(HttpServletRequest request, H...
26.904762
81
0.676106
658225346864151bcaeb65a43f4e00dcb39d8122
2,384
package com.adrielcafe.recifebomdebola.ui.adapter; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import com.adrielcafe.recifebomdebola.R; import com.adrielcafe.r...
34.057143
116
0.658557
3e9731e5e348a5497b7c5903e67f559333779040
5,556
/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any la...
33.878049
181
0.771778
9b7f531335a8663c0be2330a3b3ed6041b1541dc
2,348
package com.bht.saigonparking.service.booking.repository.custom; import java.util.List; import java.util.Optional; import javax.persistence.Tuple; import javax.validation.constraints.NotNull; import com.bht.saigonparking.service.booking.entity.BookingEntity; import com.bht.saigonparking.service.booking.entity.Bookin...
40.482759
117
0.642675
bcf10fe46489103f256641d48da79d7345390a53
1,676
package mall.dog.service.user.entity; import mall.dog.entity.user.UserInfo; import javax.validation.constraints.NotNull; /** * 2018/8/28 mall.dog.service.user.entity * * @author dylan * Home: http://blog.devdylan.cn */ public class UserRequest { @NotNull private String code; private String encryptedData; p...
17.829787
135
0.717184
a8e3068ff6f76139b253e062b814415bd960c694
19,342
/* Copyright 2008, 2009 Wolfgang Ginolas This file is part of P2PVPN. P2PVPN is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) an...
38.30099
236
0.665495
5771933e36925c900df7ff75cd71518755d4daf3
3,454
package com.morange.business.common.service; /** * @author : zhenyun.su * @since : 2018/12/29 */ import com.morange.business.common.entity.ComTypeCode; import com.morange.business.common.entity.TypeCodeId; import com.morange.business.common.repository.ComTypeCodeRepository; import com.morange.business.fit.entity.F...
30.566372
68
0.71714
1c88cc3b2b27e4faaa2e64df91847aa9b50581a2
508
import java.util.Scanner; public class Blah { static { System.loadLibrary("blah"); } private native String doSomethingWithString(String string); public static void main(String[] args) { Blah blah = new Blah(); Scanner input = new Scanner(System.in); System.out.println("Type some strings, and ...
26.736842
116
0.687008
db202ed27c8812325a522432e3c6e4be262b4e76
781
package com.github.bingoohuang.springrestclient.utils; import com.github.bingoohuang.asmvalidator.AsmParamsValidatorFactory; import com.github.bingoohuang.asmvalidator.ex.AsmValidateException; import lombok.experimental.UtilityClass; import lombok.val; import org.slf4j.LoggerFactory; @UtilityClass public class AsmVal...
32.541667
82
0.676056
e1fe68426f36ae10de448093d990957e2f733d50
486
package roles; import actions.AlignmentCop; public abstract class Cop extends Role { public Cop(int p, AlignmentCop.Sanity san) { actions.AlignmentCop cop = new actions.AlignmentCop(p, g -> true, san); registerActionKeywords(cop); } @Override public String roleMessage() { return "You are a cop. Every nigh...
21.130435
86
0.707819
af9157103a616496352f12cffa6fe7b767d2328b
7,372
/* * Copyright (c) 2014 zuendorf * * 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, modify, merge, publish, dis...
58.507937
118
0.669832
9caeec1127bf6ccc6dae2f556c1ec9969f041287
1,349
package br.com.api.dto; import java.time.LocalDateTime; import java.util.List; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; import br.com.api.model.Usuario; import io.swagger.annotations.ApiModelP...
28.104167
78
0.770941
d64852145169157de19a84cf431276e399ef2f66
2,254
package pinacolada.effects.affinity; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.math.Interpolation; import com.megacrit.cardcrawl.core.Settings; import com.megacrit.cardcrawl.dungeons.AbstractDungeon; impor...
29.272727
121
0.610027
cc0d460e0c2589781281b30cbc81514b44fdff03
3,582
package cn.niukid.bim.controller; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.joda.time.DateTime; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import ...
30.615385
111
0.717476
bb3ea9fa1047c37d1bbe4ba7835fcc6548d320f8
1,814
package de.tbressler.waterrower.subscriptions.values; import de.tbressler.waterrower.io.msg.in.DataMemoryMessage; import de.tbressler.waterrower.subscriptions.AbstractMemorySubscription; import de.tbressler.waterrower.subscriptions.Priority; import static de.tbressler.waterrower.io.msg.Memory.SINGLE_MEMORY; import st...
27.907692
110
0.698456
04df2266837d4677a876e25006193312f6fd5787
668
package com.quantxt.sdk.sample; import com.quantxt.sdk.client.QT; import com.quantxt.sdk.progress.Progress; import java.util.List; public class MonitorJobs { private static final String API_KEY = "__APIKEY__"; public static void main(String[] args) { QT.init(API_KEY); List<Progress> progres...
26.72
88
0.595808
67ce214cdf5274c9354dfda297739629a7ca7f70
201
public class swapEnds { public int[] swapEnds(int[] nums) { int temp = nums[0]; nums[0] = nums[nums.length-1]; nums[nums.length-1] = temp; return nums; } }
25.125
39
0.517413
c757359a608168887a3edbc34f46e6ee561ec115
1,693
/* * Copyright 2015, The Querydsl Team (http://www.querydsl.com/team) * * 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 ...
28.694915
100
0.700532
8656f86fae3cc38a3d66693ce82a9d4b4bbcdc9f
251
package br.com.erudio; public class DebugBasedLogger extends Logger { public DebugBasedLogger(int levels) { this.levels = levels; } @Override protected void displayLogInfo(String msg) { System.out.println("DEBUG LOGGER INFO: " + msg); } }
19.307692
50
0.729084
71d297265510deefd35f783c7755175a335ce550
7,722
/** * 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.429319
113
0.724165
182c0a63ad00410ee5d727a20bb3a57964fdc5f4
563
package com.first.team2052.steamworks.auto.actions; import com.first.team2052.steamworks.subsystems.drive.DriveTrain; public class WaitUntilAngle implements Action { private final double angle; public WaitUntilAngle(double angle){ this.angle = angle; } @Override public void done() { ...
18.16129
86
0.657194
5ce58d8a8004c347b687314eb234a6433e639ef5
361
package cn.itcast.fruitstore.controller; import cn.itcast.fruitstore.view.AbstractMainFrame; /** * 主界面操作类 */ @SuppressWarnings("serial") public class MainFrameController extends AbstractMainFrame { @Override public void showAdminDialog() { //在该方法中创建管理员界面并显示 //this为父窗口(主界面) true:设置为模态窗口展示 new AdminDialogContr...
24.066667
60
0.775623