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
127b1e784e69b942b91e59f40dc3b1553c39dc5a
145,304
/* *AVISO LEGAL © Copyright *Este programa esta protegido por la ley de derechos de autor. *La reproduccion o distribucion ilicita de este programa o de cualquiera de *sus partes esta penado por la ley con severas sanciones civiles y penales, *y seran objeto de todas las sanciones legales que correspondan. *Su...
54.584523
382
0.821863
730293a98772599f0acebb0a9703a0eeb5425141
85
package com.playmyskay.voxel.look; public enum VoxelLookType { Water, Grass, Sand }
17
34
0.776471
74b6cbac85e09f9b90a31e30c868479f9c2a6034
2,210
package jswingshell.jssframe; import java.awt.Image; import java.util.List; import java.util.logging.Logger; import javax.swing.SwingUtilities; import jswingshell.jssframe.resources.ResourceUtils; /** * * @author Mathieu Brunot */ public class JSwingShellFrameDemo { /** * Logger. */ private stat...
35.079365
141
0.584615
002c15578c92a7e55669e17cb3aea38aae8e00ec
2,121
/* * Copyright 2000-2017 Holon TDCN. * * 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...
23.307692
80
0.734088
a7668ce89fea33469334aa05c826f0b4e1582c8e
154
package spring.project.common.model; import lombok.Data; @Data public class BattleCell { private Point point; private CellType cell; }
15.4
37
0.701299
ae55ab048b1eaac2da1db9a8d1c00770dabfdb0e
5,827
package cn.hncj.hotel.service; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type; import java.util.ArrayList; import java.util.List; import org.hibernate.criterion.DetachedCriteria; import org.hibernate.criterion.Order; import org.hibernate.criterion.Restrictions; import org.springframework.st...
31.160428
176
0.676678
8839e7fb011eaa2d6653b2d31b897f4ea8b27ab5
2,164
/* * Copyright 2020 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law ...
30.055556
100
0.771257
ce541ad898729192b208b204763858ac79287402
1,602
/* * Copyright (C) 2016-2019 Samuel Wall * * 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 agree...
25.83871
75
0.685393
710a16985d96d1538a9db0049b891bcf8f79f057
2,737
package com.app.mymovieapp.util; import android.app.Activity; import android.app.Dialog; import android.content.Context; import android.content.Intent; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.net.ConnectivityManager; import android.net.NetworkInfo; import android.n...
33.378049
112
0.681038
02c05311d8bef0ff310f22c401e10bacf2d92ef8
1,768
/* * 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 * "Lic...
36.081633
111
0.707014
6bcf70a63406ab4b4cf97ec025ac9218bc14eca7
441
/* the bank application connecting mySQL controler with Java Swing mySQL code - controler Java Swing java classes and forms code wrote in Intellij IDEA by Jaroslaw Romanczuk - github:Jarrobots */ package Bank; import java.io.FileNotFoundException; import java.sql.SQLException; public class Run { public static voi...
23.210526
68
0.739229
469a686dd909adb5ed4695bb82a6572754c679b4
620
package big_o_la.week_02.problem_05; import org.junit.Test; import static org.junit.Assert.assertEquals; public class Solution_1Test { private final Solution_1 solution = new Solution_1(); @Test public void optimalStrategy_1() throws Exception { final int[] array = {5, 3, 7, 10}; final...
22.142857
59
0.658065
f69bf1f92cc2581d905bdce69b5bcf0d14e0ce0c
680
package cn.stylefeng.guns.core.util; public enum EnumCoin { USDT(0, "USDT"), CNY(1, "CNY"), BTC(2, "BTC"), ETH(3, "ETH"); private final int coinId; private final String name; EnumCoin(int coinId, String name){ this.coinId = coinId; this.name = name; } public int ge...
20
45
0.516176
cbf2614a212aa7f3075a82e6a1ee163a5381ebcb
483
package com.e4.mac.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Target(ElementType.METHOD) @Retention(RetentionPolicy.RUNTIME) public @interface Expectation { int volatility() default 5...
30.1875
49
0.776398
06b2dcffbbd46f85318915bf8b059c655e8781b3
2,577
package com.lebinh.skeleton.utils; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Row.MissingCellPolicy; import org.apache.poi...
27.709677
96
0.642996
5dba33d8ea12064108bb9859d9fd5c747ad574a1
284
package example.repo; import example.model.Customer1312; import java.util.List; import org.springframework.data.repository.CrudRepository; public interface Customer1312Repository extends CrudRepository<Customer1312, Long> { List<Customer1312> findByLastName(String lastName); }
21.846154
84
0.830986
275ef10aaa57e639a82d7ac7459f5220a7ccb116
7,286
/* * Copyright (C) 2019-2020 Domjos * This file is part of UniTrackerMobile <https://unitrackermobile.de/>. * * UniTrackerMobile is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of t...
44.975309
181
0.558606
4ad59c6001f9455e11bbdb222449e2ac88b47001
2,297
package solutions.architecturetests; import com.tngtech.archunit.core.domain.JavaClasses; import com.tngtech.archunit.core.importer.ClassFileImporter; import com.tngtech.archunit.lang.ArchRule; import com.tngtech.archunit.lang.EvaluationResult; import com.tngtech.archunit.lang.syntax.ArchRuleDefinition; import org.jun...
38.283333
137
0.665651
e2dd86a80203847a33741cc8e69f39176dc47318
7,955
/** * Copyright 2013 Apigee Corporation. * * 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, pu...
33.851064
126
0.599623
63f53a8873d421da73115bd1f6d5f4f09f399df9
1,181
package net.metadata.dataspace.oaipmh.crosswalk; import ORG.oclc.oai.server.crosswalk.Crosswalk; import ORG.oclc.oai.server.verb.CannotDisseminateFormatException; import java.util.Properties; /** * Author: alabri * Date: 04/02/2011 * Time: 11:47:40 AM */ public class DCCrosswalk extends Crosswalk { public D...
29.525
108
0.641829
1196b1105bb4b6a704b0f384a9b028e0fdb8d8b1
653
package com.exceptions.ex4; import java.util.EnumSet; public abstract class LoggerBase { LoggerBase nextLogger; EnumSet<LogLevel> logLevels; LoggerBase(EnumSet<LogLevel> logLevels) { this.logLevels = logLevels; } public void setNextLogger(LoggerBase nextLogger) { this.nextLogger ...
23.321429
60
0.652374
9f790fe0872798bfc0aef2072db1bf1f07e61ab0
699
package com.algorithm.space.hancock.offer.solution; import java.util.HashMap; import java.util.Map; public class SolutionOf14 { private final Map<Integer, Integer> cuttingRopeCache = new HashMap<>(); public int cuttingRope(int n) { if (n == 2) { return 1; } if (cuttingRop...
23.3
85
0.550787
1bb867b10db5822a9a53ef63b2151f8be23f6880
815
package top.binaryx.garen.server.service; import org.quartz.Scheduler; import org.quartz.SchedulerException; import top.binaryx.garen.server.pojo.dto.JobConfigDTO; import java.util.List; import java.util.Map; public interface ScheduleService { boolean isScheduled(String groupName, String jobName) throws Schedu...
26.290323
84
0.804908
08bb6819c9bdfaf5f77e2fb2e6a6636557f323ad
300
package com.relesi.architecture.repositories; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; import com.relesi.architecture.domain.Product; @Repository public interface ProductRepository extends JpaRepository<Product, Integer> { }
25
76
0.846667
a8f0cead36b11e6e1dfc086e38d840b510df4c36
1,806
package cn.joytur.modules.wechat.entities; import com.jfinal.kit.Kv; import com.jfinal.plugin.activerecord.Db; import com.jfinal.plugin.activerecord.Page; import com.jfinal.plugin.activerecord.SqlPara; import cn.hutool.core.date.DatePattern; import cn.hutool.core.date.DateUtil; import cn.joytur.common.annotation.TabM...
30.610169
129
0.755814
081cdf0c3b6c978d41968ad6be2cbdaf3df3cbd7
903
package org.oldo.wcb.vertx; import io.vertx.core.AbstractVerticle; import io.vertx.core.Handler; import io.vertx.core.Vertx; import io.vertx.core.http.HttpServer; import io.vertx.ext.web.Router; import io.vertx.ext.web.RoutingContext; import io.vertx.ext.web.handler.BodyHandler; public class WebVerticle extends Abstr...
29.129032
67
0.707641
8c2ebf5a28f0381b853d89bd4bddf015f78a4a05
6,289
package ax.stardust.skvirrel.stock.indicator; import androidx.annotation.NonNull; import java.math.BigDecimal; import java.util.Arrays; import java.util.List; import java.util.Locale; import ax.stardust.skvirrel.exception.IndicatorException; import ax.stardust.skvirrel.util.SkvirrelUtils; import timber.log.Timber; i...
37.213018
112
0.603276
93565f096dea5a451c18067e48ad07371e3de023
350
package br.dev.rodrigocury.main; import javax.swing.JFrame; import br.dev.rodrigocury.view.ProdutoCategoriaFrame; public class TestaOperacaoComView { public static void main(String[] args) { ProdutoCategoriaFrame produtoCategoriaFrame = new ProdutoCategoriaFrame(); produtoCategoriaFrame.setDefaultCloseOperatio...
25
76
0.82
46545c704a5193c1bc03de5d057cd68681952e5f
2,572
package com.example.wanandroid.net; import com.example.wanandroid.base.BaseArticle; import com.example.wanandroid.bean.ArticleBean; import com.example.wanandroid.bean.BannerBean; import com.example.wanandroid.bean.TabBean; import com.example.wanandroid.bean.WxBean; import com.example.wanandroid.net.http.ApiServiceMana...
35.232877
88
0.688569
0a62001f10d43467f2340ee3ecfa57dca32e48fa
3,582
/* * 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 ...
30.87931
109
0.650475
f6e6beedccccbf62327aea06615ec65294a5d1cc
2,342
package com.taobao.api.request; import java.util.Map; import com.taobao.api.TaobaoRequest; import com.taobao.api.internal.util.TaobaoHashMap; import com.taobao.api.response.TmallProductSpecsGetResponse; import com.taobao.api.ApiRuleException; /** * TOP API: tmall.product.specs.get request * * @author a...
23.188119
98
0.707515
b1676b1adb99893691cc951dd3bd7f55d7d48de8
4,071
package com.maybank.config; import com.maybank.listener.JobCompletionNotificationListener; import com.maybank.model.RawTxnRecord; import com.maybank.processor.RawTxnRecordProcessor; import org.springframework.batch.core.Job; import org.springframework.batch.core.Step; import org.springframework.batch.core.configuratio...
39.524272
123
0.698845
3752f869e2438dd1730694e7d8bb9b4de48a6a29
5,810
package org.zooqi.gelding.protocol; import io.vertx.core.buffer.Buffer; import org.apache.commons.codec.binary.Hex; import org.zooqi.gelding.util.ByteUtils; import java.util.Objects; /** * Pi message definition * * @author Judge */ public class PiMessage { /** * The Raspberry Pi's ID to this IOT server...
26.289593
108
0.595009
84a9bf0545cd0ec1c1af3862d4b625ce11e1b14a
835
package com.powerdata.openpa.tools.psmfmt; /* * Copyright (c) 2016, PowerData Corporation, Incremental Systems Corporation * All rights reserved. * Licensed under the BSD-3 Clause License. * See full license at https://powerdata.github.io/openpa/LICENSE.md */ import com.powerdata.openpa.PAModel; import com.power...
27.833333
77
0.761677
6b75d3bd5d5832a89e739362bfb9d054f1a3b1f0
2,525
package slaynash.sgengine.gui.checkBox; import javax.swing.event.EventListenerList; import slaynash.sgengine.gui.GUIElement; import slaynash.sgengine.maths.Vector2i; import slaynash.sgengine.models.Renderable2dModel; import slaynash.sgengine.models.utils.VaoManager; import slaynash.sgengine.shaders.ShaderManager; imp...
29.022989
113
0.742178
3775c9ece0d8ec60c965fd537f8d34e11f2d7617
528
package com.noynaert.csc346.inheritance.people; import java.io.Serializable; import java.util.ArrayList; public class Faculty extends Employee implements Alumni, isAssignedClasses, Serializable { //This is a bad interface example. It should not be implemented as an interface. @Override public String getStat...
22
90
0.689394
c8340e0d0502314736f0146f75e0c4235e5310da
7,470
/* * Copyright 2018 Genentech 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 ...
47.278481
118
0.735877
0ff0bc04ef6f8109bc0a4f7635cc5b239e5a0372
1,335
package com.ctrip.framework.apollo.openapi.dto; import lombok.Data; import lombok.EqualsAndHashCode; /** * 开放的应用信息 */ @Data @EqualsAndHashCode(callSuper = false) public class OpenAppDTO extends BaseDTO { /** * 应用名 */ private String name; /** * 应用Id */ private String appId; /** * 部门Id */...
24.272727
92
0.638951
0c043fd4c940f5b05756b79414e49fca0315c54c
1,380
/* * Copyright (C) 2014 The Dagger 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 law or ag...
30
80
0.742754
855f66881ceb42901a1d49909085af9b77aace3a
1,298
package com.yk.service.impl; import java.util.ArrayList; import java.util.List; import com.yk.dao.PermissionDao; import com.yk.dao.impl.PermissionDaoImpl; import com.yk.pojo.TreeSelect; import com.yk.service.PermissionService; public class PermissionServiceImpl implements PermissionService { PermissionDao pd = new...
23.6
88
0.718028
ad624d7c209ad856887bf01faa639db98aa9c56d
762
package io.github.smnpo.gourd.facade.domain.entity; import io.github.smnpo.gourd.facade.dto.MsgDTO; import lombok.Data; import org.springframework.data.annotation.Id; import org.springframework.data.mongodb.core.mapping.Document; import java.util.Date; /** * @author: Ming.Zhao * @create: 2019-05-10 16:23 **/ @Dat...
20.052632
62
0.678478
57675e82ffe157a8decad32cbbaffea4c7b6b634
4,319
/* * Copyright 2020-2021 AppsFlyer * * 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 ...
28.228758
86
0.678398
af3c7b19c1485a912a7d856f060eabebfe517dcf
2,798
package io.cloudslang.content.ssh.services.actions; import com.hp.oo.sdk.content.plugin.GlobalSessionObject; import io.cloudslang.content.ssh.entities.KeyFile; import io.cloudslang.content.ssh.entities.SSHConnection; import io.cloudslang.content.ssh.entities.SSHShellInputs; import io.cloudslang.content.ssh.services.SS...
37.810811
135
0.702645
2f46cc3e7c217ed2494850ef5db2a241051f4146
8,135
package com.kobylynskyi.graphql.codegen; import com.kobylynskyi.graphql.codegen.model.MappingConfig; import com.kobylynskyi.graphql.codegen.model.definitions.ExtendedDefinition; import com.kobylynskyi.graphql.codegen.model.definitions.ExtendedDocument; import com.kobylynskyi.graphql.codegen.model.definitions.ExtendedE...
52.824675
147
0.713583
4764a350fc66754b2445af11d8222dacc32a672d
3,876
package com.Module.Reports; import java.io.File; import org.testng.Assert; import org.testng.ITestResult; import org.testng.SkipException; import org.testng.annotations.AfterMethod; import org.testng.annotations.AfterTest; import org.testng.annotations.BeforeTest; import org.testng.annotations.Test; import com.relev...
43.066667
230
0.7113
98576a12e4d30a7adf13230a4ed44784ccfaf412
2,905
package app.roddy.space.utilities; import org.kie.api.KieBase; import org.kie.api.KieServices; import org.kie.api.runtime.KieContainer; import org.kie.api.runtime.KieSession; import java.util.List; /** * Utility class for deploying DRL files. */ public class DrlUtilities { /** * Fires rules for the given...
30.904255
119
0.624441
8185e866687f6ef8c739e10f42067ad5fcf33ff8
30,487
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: grafeas/v1/build.proto package io.grafeas.v1; /** * <pre> * Details of a build occurrence. * </pre> * * Protobuf type {@code grafeas.v1.BuildOccurrence} */ public final class BuildOccurrence extends com.google.protobuf.GeneratedMessageV3...
34.139978
137
0.675895
c27fe666433a2e788d27866824ea3ec55693d56a
2,489
package dio.innovation.accessPointAPI.service; import dio.innovation.accessPointAPI.dto.CompanyDTO; import dio.innovation.accessPointAPI.exceptions.ElementIdInconsistencyException; import dio.innovation.accessPointAPI.exceptions.ElementNotFoundException; import dio.innovation.accessPointAPI.mapper.CompanyMapper; impor...
36.072464
81
0.74769
ec4ccd015c50ec287cf1f92350c8fb2051ea1a2b
1,028
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.kurniakue.telebot; /** * * @author harun1 */ public class HelpHandler extends UpdateHandler { @Override public...
21.416667
79
0.576848
944167dacbf45701749ff5ccb2ffc84f7bc42125
2,888
package net.authorize; import java.io.Serializable; import java.math.BigDecimal; import net.authorize.util.XmlUtility; import org.w3c.dom.Node; public abstract class Transaction implements Serializable{ private static final long serialVersionUID = 1L; public static final int MAX_AUTH_CODE_LENGTH = ...
35.654321
99
0.742729
8a0d986d4bcf4362d9218d21fca009eb9b0bcb6d
797
package com.douglas.cursomc.resources.exceptions; import java.io.Serializable; /** * Classe auxiliar para montar uma lista de erros de validação. */ public class FieldMessage implements Serializable { private static final Long serialVersionUID = 1L; private String fieldName; private String message; ...
20.973684
63
0.667503
0e0be2fd292a05d285c310bee699dc63dc6ad7cd
409
import java.util.Iterator; import java.util.List; public class ArrayList { public static void main(String[] args) { List<String> list = new java.util.ArrayList<String>(); list.add("Lebron"); list.add("AD"); list.add("Kuz"); list.add("KCP"); Iterator iterator = list.iterator(); w...
17.782609
57
0.606357
e8e94babb9e0e7648e9c1f422af73b7a82563fd6
1,384
import java.util.StringTokenizer; public class RetiroDP { private String fecha, cuenta; private int monto_previo, cambio, monto_actual; public RetiroDP() { this.monto_previo = 0; this.cambio = 0; this.monto_actual = 0; this.cuenta = ""; this.fecha = ""; } p...
22.322581
123
0.575867
434dd037997ee2e6f82ee17a5a7b91e9714dfba1
236
package io.webfolder.dakota; public class DakotaException extends RuntimeException { private static final long serialVersionUID = 8161996050295603720L; public DakotaException(String message) { super(message); } }
21.454545
70
0.75
7d4c8357e9508e9fed960dbfe08784ed6f983896
507
package com.bytedance.android.aabresguard.model.version; import com.android.tools.build.bundletool.model.version.Version; /** * Versions of AabResGuard. * <p> * Created by YangJing on 2019/10/09 . * Email: yangjing.yeoh@bytedance.com */ public class AabResGuardVersion { private static final String CURRENT_V...
23.045455
64
0.70217
689f674e71075dbd1b0ce4325dfe0f01c448a015
3,805
package ac.panoramix.uoe.mcmix; import android.app.Application; import android.content.Context; import android.util.Log; import java.io.IOException; import java.io.InputStream; import java.net.CookieHandler; import java.net.CookieManager; import java.security.KeyManagementException; import java.security.KeyStore; imp...
33.086957
104
0.690407
47ad2a88f4f5a98ab286473b72b2cdb1ba085834
1,243
package com.jxliu.calf.pojo; import java.util.Date; public class Role { private Integer roleId; private String roleName; private Double salary; private String roleLevel; private Date createtime; private Date updatetime; public Integer getRoleId() { return roleId; } p...
19.123077
69
0.621883
7140d4baa82610c7483dd0ada2c9849cab01f120
3,739
package com.eningqu.common.kit; import cn.hutool.json.JSONUtil; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import jav...
25.786207
123
0.6023
c487ee49d3250755414b8eeb2ce94683b2ee46d7
873
package ru.job4j.array; /** * RotateArray. *@author Daniil Permin *@version 1.0 *@since 09.04.2017 */ public class RotateArray { /** * Метод поворота массива чисел на 90 градусов по часовой стрелке. *@param array передаваемый массив *@return array возвращаемый массив */ public int[][] rotate(int[][] array) { for (i...
32.333333
108
0.670103
7a8d9c34c3a33ca73c712c882140bf93f8fbefc8
460
package com.company.crm.model; import lombok.Data; import lombok.Getter; import lombok.Setter; import javax.validation.constraints.NotNull; import java.io.Serializable; /** * This will hold our username and password in request */ @Data @Getter @Setter public class AuthenticationRequest implements Serializable { ...
17.692308
60
0.758696
3013714d9af415dddd3c1aa385656f02e92dfc4b
691
//Complete the code segment to catch the exception in the following, if any. On the occurrence of such an exception, //your program should print “Please enter valid data” .If there is no such exception, it will print the "square of the number". import java.io.*; public class Question2{ public static void m...
36.368421
128
0.712012
6a6a1d14358898b247f7a9f95626d00ece7c836b
1,640
package asatsuki256.germplasm.core.village; import static asatsuki256.germplasm.core.GermplasmCore.MODID; import asatsuki256.germplasm.core.item.GermplasmItems; import net.minecraft.entity.passive.EntityVillager.PriceInfo; import net.minecraft.item.ItemStack; import net.minecraft.world.gen.structure.MapGenStructureIO...
40
121
0.816463
d1d415de7c3b1fed74c4f1133bd9457fe5007e55
1,873
package com.webapp.timeline.sns.repository; import com.webapp.timeline.sns.domain.Tags; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.query.Param; i...
43.55814
97
0.674319
fc3bd4753159a225b97665b55cb677a7b2d77c47
1,028
/******************************************************************************* * * Copyright FUJITSU LIMITED 2017 * * Creation Date: 29.08.16 08:30 * *****************************************************************************...
26.358974
81
0.5107
3043d00b560c0d11e549510e50a917c49419d83b
1,505
package com.github.vvoinarovych.tb.command; import com.github.vvoinarovych.tb.service.SendBotMessageService; import com.github.vvoinarovych.tb.service.TelegramUserService; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.mockito.Mockito; i...
33.444444
101
0.715615
145488ea850436236830138f770b94403a0ea74a
2,997
/* * Copyright (c) 2008-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 agr...
34.056818
89
0.705706
0d04e9560fef80d688554a6a344c7dc2c9e6914d
301
package ru.ajana.work.common.cuncurrent; import java.util.concurrent.CountDownLatch; import java.util.concurrent.Executors; /** * @author Andrey Kharintsev on 23.03.2018 */ public class CountDownLanchDemo { public static void main(){ CountDownLatch downLatch = new CountDownLatch(2); } }
20.066667
53
0.754153
1224c0651f75c13a0a45ba45dffdf254a50e8a0a
335
package org.jeecg.modules.demo.evaluate.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.jeecg.modules.demo.evaluate.entity.EvaluateInfo; /** * @Description: 评估记录表 * @Author: jeecg-boot * @Date: 2022-04-09 * @Version: V1.0 */ public interface EvaluateInfoMapper extends BaseMapper<Eval...
22.333333
70
0.758209
32e74b3ddba98c4768f111cc08a378369ff424c6
602
package schweika.chatapplication; import android.databinding.BindingAdapter; import android.view.View; import android.widget.RelativeLayout; public class BindingAdapters { @BindingAdapter("android:layout_alignParentEnd") public static void setAlignParentEnd(View view, boolean alignParentLeft) { Relati...
27.363636
83
0.724252
7ca90d687943355b8235c35809ecdc437f9188df
2,729
package de.danoeh.antennapod.core.storage; import de.danoeh.antennapod.model.feed.Feed; import de.danoeh.antennapod.core.util.LongIntMap; import java.util.ArrayList; import java.util.List; public class NavDrawerData { public final List<DrawerItem> items; public final int queueSize; public final int numNe...
27.019802
82
0.572004
7a706cef9676bd29c95f75ffd6757a29327a52ce
9,802
package com.sweetrpg.catherder; import com.sweetrpg.catherder.api.registry.Talent; import com.sweetrpg.catherder.api.registry.TalentInstance; import com.sweetrpg.catherder.client.ClientSetup; import com.sweetrpg.catherder.data.*; import com.sweetrpg.catherder.client.entity.render.world.BedFinderRenderer; import com.sw...
51.052083
149
0.756682
cece48b06781f51ba21aeea8059a9959745b7f17
4,027
/* * Licensed to DuraSpace under one or more contributor license agreements. * See the NOTICE file distributed with this work for additional information * regarding copyright ownership. * * DuraSpace licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file excep...
41.515464
113
0.694562
11ef5db34b3fd19842633c5922215db86f67e596
407
package breakout.blocks; import static breakout.PowerupChooser.PADDLE_WIDTH_POWERUP; import breakout.Level; public class PaddleWidthPowerupBlock extends PowerupBlock { public PaddleWidthPowerupBlock(int row, int col, int width, int height) { super(row, col, width, height); } @Override public void makeP...
22.611111
75
0.771499
70ae23dc67562d45d6fe63f2f4f4aa8fd217c6e6
739
/* * FXGL - JavaFX Game Library. The MIT License (MIT). * Copyright (c) AlmasB (almaslvl@gmail.com). * See LICENSE for details. */ package com.almasb.fxgl.physics.box2d.collision.broadphase; // updated to rev 100 /** * Java note: at the "creation" of each node, a random key is given to that node, and that's what...
23.83871
100
0.61705
45230bc52dfca46ce0f797ccaa4365158e1a87d1
1,749
package com.github.goerlitz.cdg.toolkit; import java.util.Iterator; import java.util.List; public class XORColorCombinationIterator implements Iterator<Integer[]> { private List<Integer> colors; private int c1 = 0; private int c2 = 1; private int c3 = 2; private int c4 = 3; private boolean exhausted = false...
18.806452
92
0.575758
f857cd87a1f6c2f07858d55087bca0a91181e76b
20,418
package net.ramso.docindita.xml.schema.model.graph; import java.awt.geom.Rectangle2D; import java.util.ArrayList; import java.util.List; import com.mxgraph.model.mxCell; import com.mxgraph.model.mxGeometry; import com.mxgraph.util.mxPoint; import com.mxgraph.view.mxGraph; import com.predic8.schema.ComplexType; import...
34.315966
116
0.672838
b9119e877e5a233c8c7bec6d688f573200c8b11b
1,419
/** * pims-web org.pimslims.tag ViewButtonTest.java * * @author cm65 * @date 3 Oct 2007 * * Protein Information Management System * @version: 1.3 * * Copyright (c) 2007 cm65 * * */ package org.pimslims.servlet.tag; import junit.framework.Assert; import junit.framework.TestCase; import org.pimslims.pr...
23.262295
70
0.638478
1da6983e018d7487b72303ff3b71cbe4742d6820
574
package com.sq.phonestore.util; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** * @author SunQiao * @create 2021-05-16 11:28 */ public class PhoneUtil { public static List<Map<String,String>> createTag(String tag){ String[] tags = tag.split("&"); ...
22.96
65
0.581882
b51eeaa0a5d0834f8ca589dcd0ba2a9d774bd50a
9,597
package lib.jadsl.collections.data.vector; import java.util.Collection; import java.util.List; import java.util.Iterator; /** * Created by Pascal Jarod Kuthe on 28/04/2016. * Copyright (c) <2016> <Pascal Jarod Kuthe> * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and...
41.726087
463
0.640304
24f95d7d7ffb6e626612caefb381b6863d078779
1,807
package ca.etsmtl.applets.etsmobile.model; //---------------------------------------------------- // // Generated by www.easywsdl.com // Version: 2.0.0.4 // // Created by Quasar Development at 15-01-2014 // //--------------------------------------------------- import org.ksoap2.serialization.AttributeContainer; impor...
25.097222
114
0.700609
bfa3aa335215193fea9967df68168e7e8656f7de
4,850
/* * Copyright (c) 2021. Leafage All Right Reserved. */ package io.leafage.basic.assets.controller; import io.leafage.basic.assets.dto.CategoryDTO; import io.leafage.basic.assets.service.CategoryService; import io.leafage.basic.assets.vo.CategoryVO; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org...
29.216867
124
0.612784
20c70581451d8a3a2caca063b40b274ec74d7b8c
2,350
/* * Copyright 2019 Jonas Yang * * 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...
23.039216
81
0.671489
b0f7a80680afdf48f7fc30887d9c0454a6b9020f
266
package org.dstadler.commons.collections; public class UnsupportedListTest extends AbstractUnsupportedCollectionTest<UnsupportedList<Object>> { @Override protected UnsupportedList<Object> instance() { return new UnsupportedList<Object>() {}; } }
33.25
101
0.763158
9e5f25986fbd5a5b82c1097bf0ae0e70bd2c7a41
45,245
/** * Copyright (c) André Bargull * Alle Rechte vorbehalten / All Rights Reserved. Use is subject to license terms. * * <https://github.com/anba/es6draft> */ package com.github.anba.es6draft.regexp; import org.jcodings.util.IntHash; /** * Additional case fold support class */ final class CaseFoldDataBMP { ...
65.95481
97
0.570848
6a5bb9d9e2535168335bfac020249a77bfdd3140
255
package com.a6raywa1cher.db_rgr.dblib.entity; import java.lang.annotation.*; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) @Repeatable(ForeignKeys.class) public @interface ForeignKey { Class<?> targetClass(); String targetField(); }
19.615385
45
0.784314
dab1e7582a0071b92a5eae7d50bbc4c0609ba72b
3,580
package za.co.entelect.challenge.entities; import za.co.entelect.challenge.config.GameConfig; import za.co.entelect.challenge.enums.PlayerType; import za.co.entelect.challenge.game.contracts.game.GamePlayer; public class TowerDefensePlayer implements GamePlayer { private PlayerType playerType; private int en...
28.412698
109
0.672626
2f50b7c459219906fc49182302ce43117b66926d
3,050
package de.rub.bi.inf.baclient.workflow.extraktion; import java.text.DecimalFormat; import java.util.Collection; import com.apstex.gui.core.model.applicationmodel.ApplicationModelNode; import com.apstex.ifctoolbox.ifc.IfcBuildingStorey; import com.apstex.ifctoolbox.ifc.IfcObject; import com.apstex.ifctoolbox....
29.326923
136
0.688525
91faafca6d8247847024d37a024067bfde8bd991
198
public class Sum { public int GetSum(int a, int b) { int sum=0; for (int i=Math.min(a,b); i<=Math.max(a,b); i++ ){ sum+=i; } return sum; } }
16.5
58
0.424242
dbe38c5a6c8ce5e4ccfe5ac9332bde0c14f291ca
1,519
package com.mq310.utils.security; import com.vaadin.server.VaadinSession; import org.springframework.security.core.context.SecurityContext; import org.springframework.security.core.context.SecurityContextHolderStrategy; import org.springframework.security.core.context.SecurityContextImpl; /** * A custom {@link Secur...
32.319149
112
0.712311
ee1df360661930eb1fc1ec8ae5c5e38fe2698b88
5,236
package com.rlnt.awlutils; import com.rlnt.awlutils.proxy.IProxy; import mekanism.api.MekanismAPI; import mekanism.api.MekanismRecipeHelper; import mekanism.api.gas.GasStack; import mekanism.common.MekanismItems; import net.minecraft.block.Block; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.init...
32.930818
98
0.749427
80bd5e65aae4228bdbbf248b40701bd812424d58
1,170
package fpc.aoc.launcher._private; import lombok.AccessLevel; import lombok.Getter; import lombok.NonNull; import lombok.RequiredArgsConstructor; import fpc.aoc.api.AOCProblem; import java.io.PrintStream; @RequiredArgsConstructor(access = AccessLevel.PRIVATE) public class Launcher { public static void launch(@N...
25.434783
84
0.664103
f6c52c29e29cb3479837c7edfcaec64c432601de
3,467
package ru.job4j.gui; import ru.job4j.cells.CellImage; import ru.job4j.cells.CellType; import ru.job4j.coordinates.BoardCoordinates; import ru.job4j.coordinates.Coordinate; import javax.swing.*; import java.awt.*; import java.awt.event.MouseListener; import java.util.Map; import java.util.function.Function; /** * B...
34.326733
85
0.569945
98de9da880fcda739ee461690210b870a25d7fe3
2,191
/* * Copyright (C) 2021 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.strata.product.swap.type; import org.joda.convert.FromString; import org.joda.convert.ToString; import com.opengamma.strata.basics.date.Tenor; import com.openg...
29.213333
88
0.642629
0ed23e03ca0bd5788ece2482f1421f7b31b9886b
1,533
/** * */ package com.github.jashawn.examples.springcore; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import org.apache.commons.lang3.StringUtils; import org.springframework.util.ReflectionUtils; import org.springframework.util.ReflectionUt...
27.375
94
0.714938
2c263d5cfd0c65c781b78fe744e75637c5fe3a67
265
package ch08.se08.booksys.dao.impl; import ch08.se08.booksys.dao.BookDao; import ch08.se08.booksys.domain.Book; import ch08.se08.common.dao.impl.BaseDaoHibernate4Impl; public class BookDaoHibernate4Impl extends BaseDaoHibernate4Impl<Book> implements BookDao { }
26.5
91
0.830189
90d3cf146448212bbe15d098aeef6dad8a37e0df
4,322
/* * Copyright © 2021-present Arcade Data Ltd (info@arcadedata.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless requ...
28.064935
145
0.642064
5486628c57938218567ba21c9227a43053cb796e
1,040
package com.nowcoder.offer; /* * 将一个字符串转换成一个整数,要求不能使用字符串转换整数的库函数。 */ public class StrToIntTest { int StrToInt(String str) { if (str == null || str.length() == 0) return 0; int minus = 1; boolean min=false; int i = 0; if (str.charAt(i) == '-') { minus = -1; i = 1; } else if (str.charAt(i) == '+'...
19.259259
51
0.547115
4fdea0ec8afa3458881ca1208ec515003a0ff53e
4,276
package com.gdxsoft.chatRoom.dao; import java.util.Date; import com.gdxsoft.easyweb.datasource.ClassBase; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; /**表chat_topic映射类 * @author gdx 时间:Fri Jun 04 2021 17:26:49 GMT+0800 (中国标准时间)*/ @ApiModel(value = "chat_topic", description =...
17.816667
69
0.704397
d3204868d9aa22d1878cab7ed26bea170e08c9a4
4,003
/* * Decompiled with CFR 0.150. * * Could not load the following classes: * org.jetbrains.annotations.Nullable */ package us.myles.ViaVersion.api.rewriters; import org.jetbrains.annotations.Nullable; import us.myles.ViaVersion.api.protocol.ClientboundPacketType; import us.myles.ViaVersion.api.protocol.Protocol;...
39.245098
145
0.550837
3796d872ede4aef3d57c9f59ecc981fc98a07344
2,013
package enegade.uml.debugger.stepmethodcall; /* * Copyright 2020 enegade * * This file is part of the enegade.uml package. * * This file is distributed "AS IS", WITHOUT ANY WARRANTIES. * * For the full copyright and license information, please view the LICENSE * file distributed with this project. */ import ...
26.142857
121
0.707899