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
afff0f34093b335747941cd2e65a29f8675c9a55
1,641
/* KeywordScreenWindow.java Copyright (C) 2003 Gerardo Horvilleur Martinez This program 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 2 of the License, or (at your option) any later version...
31.557692
76
0.665448
7b3107f77a7a9bcaac41d1fef9248e96c5b8bf03
2,479
/* * Copyright 2020 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...
33.958904
120
0.667205
6610261904bb570612230073efc4fdde4546c95a
747
package org.xpdojo.bank; import org.junit.Test; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.CoreMatchers.is; import static org.xpdojo.bank.Account.accountWithZeroBalance; public class DepositScenarios { @Test public void canDepositMoneyToAnAccount() { var account ...
26.678571
67
0.710843
81e6b306778ba873a9a12febaeb15a9d67d55acb
1,480
package com.showka.service.persistence.u07; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.showka.domain.builder.SeikyuBuilder; import com.showka.domain.u01.Kokyaku; import com.showka.domain.u01.NyukinKakeInfo; impor...
30.204082
68
0.783784
06938835b8237d8087378cb8594a4cfd80cfff7f
2,868
package com.djk.order; import com.djk.feign.cart.ShoppingCartService; import com.djk.feign.goods.SpuService; import com.djk.settlement.OrderSettlement; import com.djk.settlement.OrderSettlementRequest; import com.djk.settlement.SettlementService; import com.djk.utils.Log; import lombok.extern.slf4j.Slf4j; import org.s...
24.10084
124
0.670502
34043935e2f9f5368bd968d5a4e13c1fa6a89f89
1,999
/* * Copyright 2020 Aleksandr Dorogush * * 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...
27.013514
98
0.686843
c5c6eb6d0cbeafab65de836b2d9b9e8858c961a6
905
package com.spi; import com.spi.demo.Animal; import org.apache.dubbo.common.extension.ExtensionLoader; import org.apache.dubbo.rpc.Protocol; import java.util.Iterator; import java.util.ServiceLoader; public class MainClass { public static void main(String[] args) { // testServerLoader(); testP...
22.073171
93
0.670718
3ef6522a05564709c18dbb5012b7d23a321b7c3c
3,187
package pl.javorex.resourceserver.config; import ch.qos.logback.core.net.server.Client; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.security.oauth2.client.registration.ClientRegistration; import org.springframework.security...
41.38961
100
0.76059
f5f300c7b9d9c8ac02a6fb1905ffebe360255178
678
package com.CQJjFlowSu.dao; import com.CQJjFlowSu.db.TUsers; import com.CQJjFlowSu.db.TUsersExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface TUsersMapper { int countByExample(TUsersExample example); int deleteByExample(TUsersExample example); int insert(TUsers...
28.25
106
0.774336
90c527686bbfcc5ae08d4999bf4e9a53d0c241c5
1,045
package gulimall.seckill.to; import gulimall.common.to.mq.SkuInfoTo; import lombok.Data; import java.io.Serializable; import java.math.BigDecimal; /** * 商品的详细信息To * @author 孙启新 * <br>FileName: SeckillSkuRedisTo * <br>Date: 2020/08/17 10:54:23 */ @Data public class SeckillSkuRedisTo implements Serializable { ...
15.367647
56
0.555024
34a3314a5cd159009c9e6e698a21d86423e697f3
1,653
package ru.konsort.la.service; import org.junit.jupiter.api.Test; import ru.konsort.la.service.Impl.HttpLocalServiceImpl; /** * Created by turov on 13.02.2017. */ class HttpLocalServiceImplTest { HttpLocalServiceImpl httpLocalServiceImpl = new HttpLocalServiceImpl(); private String url = "http://46.146.200....
34.4375
109
0.721113
8fb5ceff212582f0394221b645002bf110b1b775
2,536
package com.wotrd.dubbo.common.algorithm.sort; /** * 排序算法 */ public class Souting { /** * 冒泡排序,每次便利都将相邻的两个数进行交换排序。知道全部拍完。 */ public void bubbleSorting(){ int [] arr={1,4,2,5,3,8,7,9,6,10,11,7}; for (int i=0;i<arr.length-1;i++) { for (int j=0;j<arr.length-i-1;j++)...
28.818182
82
0.429022
c40b03ad2ace943613e0d57a5bc1c52fcc1bfc62
4,218
package com.immfly.api.fights.handlers; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.immfly.external.service.ExternalFlightService; import com.immfly.external.service.response.FlightInformationResponse; import com.immfly.redis.RedisService; i...
45.354839
174
0.694879
4d9c63ca108e96788d7b18836ee257e586a28ba5
4,462
package com.xc.common.exception; import com.xc.common.api.ResponseVO; import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.Signature; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; impo...
37.495798
172
0.606903
01d8185737bca16036207eb828416a6c0949e967
386
package com.idiotalex; import org.junit.runner.RunWith; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; @RunWith(SpringRunner.class) @SpringBootTest public class AppTest { protected s...
24.125
76
0.818653
44bef5d86de8abb0799e444c1676967a8ff470d0
962
package org.lengyan.crawler.store.model.po.apipo.bsbdj; public class BsbdjUserResult { String pageToken; String retcode; String hasNext; String appCode; String dataType; BsbdjUser[] data; public String getPageToken() { return pageToken; } public void setPageToken(String pageToken) { this.pageToken = p...
16.586207
55
0.701663
14da3062f190006d3da35405f6f401cbaa7b5588
321
package de.unistuttgart.vis.vita.services.entity; import org.junit.runner.RunWith; import org.junit.runners.Suite; /** * Test suite for tests concerning PlotViewService. */ @RunWith(Suite.class) @Suite.SuiteClasses({PlotViewServiceTest.class, PlotViewDuringAnalysisTest.class}) public class PlotViewServiceTests { }...
22.928571
82
0.800623
6174be4a52aaadf343bd3adad721c7c4e425e1e0
4,882
package com.jukusoft.rpgcreator.editor.javafx.controller; import com.jukusoft.rpgcreator.editor.javafx.CreateProjectProgressDialog; import com.jukusoft.rpgcreator.engine.javafx.FXMLController; import com.jukusoft.rpgcreator.engine.utils.FileUtils; import javafx.event.ActionEvent; import javafx.event.EventHandler; impo...
27.426966
115
0.629045
f1b3c449362b9dd452466ae39e30eef256af8309
2,098
package org.bargains.offers; import org.junit.Test; import java.time.Instant; import java.time.LocalDateTime; import java.time.Month; import java.time.ZonedDateTime; import static java.time.ZoneOffset.UTC; import static org.assertj.core.api.Assertions.assertThat; public class OfferTest { @Test public void ...
35.559322
107
0.65348
7bf58699da9e8500fd0e5ae7dfacc18419eb9f04
1,019
package com.qunar.im.ui.view.zxing.manager; import android.content.Intent; import android.graphics.Bitmap; /** * 二维码策略类 * Created by HDL on 2017/6/28. */ abstract class IQRCodeStrategy { /** * 发起扫描 * @param requestCode */ abstract void scanning(int requestCode); /** * 结果回调 *...
21.229167
93
0.60844
fb77bbc90cf0f606e3424f55ae8caa4d30358bbf
2,077
package edu.virginia.vcgr.genii.client.jsdl; import org.ggf.jsdl.FileSystemTypeEnumeration; public class FilesystemFactory { static private Filesystem getScratchFilesystem(FileSystemTypeEnumeration type, String mountPoint, String mountSource) throws JSDLException { if (type != FileSystemTypeEnumeration.spool) ...
39.188679
139
0.773231
d8fdf68f8242a56416acabdc7867c6ad0f8b1a5e
1,382
package com.acg12.ui.adapter; import android.content.Context; import android.support.v7.widget.RecyclerView; import android.view.ViewGroup; import com.acg12.R; import com.acg12.entity.CollectSubjectEntity; import com.acg12.lib.ui.adapter.CommonRecyclerAdapter; import com.acg12.ui.adapter.view.CollectSubjectViewHolder...
30.711111
96
0.766281
d40f4e02bdd263209e25cb77e70256a03c243891
4,387
package com.banana.banana.main; import android.content.Context; import android.graphics.drawable.ColorDrawable; import android.view.LayoutInflater; import android.view.View; import android.view.View.OnClickListener; import android.widget.ImageView; import android.widget.PopupWindow; import android.widget.TextView; im...
28.303226
87
0.739002
2d8000438302da9df497fd78767f2bdf53532664
815
package com.diagnosis_gateway.gateway.model; import javax.persistence.Entity; import javax.persistence.Id; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.persistence.GeneratedValue; import static javax.persistence.GenerationType.IDENTITY; @Entity @Data @AllArgsCo...
23.970588
56
0.765644
bb86bf5a0e9773792a2a300fbc866e46dce59d56
1,437
package io.github.iamazy.elasticsearch.dsl.sql.parser.query.join; import io.github.iamazy.elasticsearch.dsl.antlr4.ElasticsearchParser; import io.github.iamazy.elasticsearch.dsl.sql.model.AtomicQuery; import io.github.iamazy.elasticsearch.dsl.sql.parser.BoolExpressionParser; import io.github.iamazy.elasticsearch.dsl.s...
43.545455
110
0.798191
942f375e074bf320a77a43489906cf942dbc774e
2,231
/* * Copyright 2022.1-2022 * StarWhale.ai All right reserved. This software is the confidential and proprietary information of * StarWhale.ai ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only * in accordance with the terms of the license agreement you entered i...
33.80303
120
0.558942
30b0fe62ee986c4129620489a73ba27e037e826e
1,335
package org.apidb.eupathsitecommon.watar.pages; import java.text.NumberFormat; import java.text.ParseException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait; public class SearchResult...
30.340909
147
0.747566
02e7b551a613d131966a5591f949ea505c3b03f1
10,670
/** * Copyright 2018-2019 rideOS, 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...
43.55102
116
0.679194
a85608fdab9d30f3466fd29ba45d04ca8f5a129a
227
package com.stevekung.skyblockcatia.utils; import net.minecraft.client.network.NetworkPlayerInfo; public interface IViewerLoader { boolean isLoadedFromViewer(); NetworkPlayerInfo setLoadedFromViewer(boolean loaded); }
25.222222
58
0.823789
c2a95b7f24c8176201f7d59873190b2cf58deb46
2,860
package eu.wauz.wauzcore.building.shapes; import java.util.ArrayList; import java.util.List; import java.util.UUID; import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.block.Biome; /** * An abstract brush to paint block structures. * * @author Wauzmons */ publi...
20.724638
96
0.640909
fb358f1acea90092d50da781638e8919ce1d3ac2
4,170
package com.b3tuning.b3console.view.config.trans; import com.b3tuning.b3console.view.BaseView; import com.b3tuning.b3console.view.config.CanBusConfigView; import com.b3tuning.b3console.view.utils.buttonInputField.IntegerButtonInputField; import de.saxsys.mvvmfx.InjectViewModel; import de.saxsys.mvvmfx.utils.validation...
36.902655
108
0.791607
df359f42d0c22d52a7cbab80e868b9308c22f034
556
/* * Created on Nov 10, 2006 * * To change the template for this generated file go to * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments */ package biomight.chemistry.molecule.receptor; /** * @author SurferJim * * To change the template for this generated type comment go to * ...
24.173913
73
0.714029
04c6f028646c41290744fca38565e7736ff33059
1,898
/* * 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 ...
33.298246
75
0.75922
53db9d56c6d3960a7d691f156112dbb14a38807e
1,388
package edu.wpi.first.embeddedtools.nativedeps; import java.util.ArrayList; import java.util.List; import java.util.Optional; import org.gradle.api.Project; import org.gradle.nativeplatform.BuildType; import org.gradle.nativeplatform.Flavor; import org.gradle.nativeplatform.NativeBinarySpec; import org.gradle.nativep...
29.531915
155
0.694524
773ba58dcada93b0253a1073f64bfa96723d4a2f
9,382
/** * Copyright 2004-2014 The Kuali Foundation * * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php * * Unless requ...
40.969432
122
0.656683
a64ba444e48c84e6e0fb93e5d4053f2d6dce42bb
788
package java007; import java.util.Scanner; public class P06 { public static void main(String[] args) { // TODO Auto-generated method stub int count = 0; System.out.println("Please input a text"); Scanner sc = new Scanner(System.in); String text = sc.nextLine(); String cutText[] = text.split(" "); Str...
21.297297
48
0.59264
75f09a4837bf94e156d809ebc0ff5e68e0224b6a
847
package cn.rzedu.sf.user.mapper; import cn.rzedu.sf.user.entity.UserLoginLog; import cn.rzedu.sf.user.vo.UserLoginLogVO; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import java.time.LocalDateTime; import java.util.List; /** * 用户每日登陆记录 Mapper 接口 * * ...
19.25
86
0.727273
b084c32d6e930640c586caff36439125b1b15b6e
1,440
package com.huazie.fleaframework.jersey.server.filter; import com.huazie.fleaframework.common.slf4j.FleaLogger; import com.huazie.fleaframework.common.slf4j.impl.FleaLoggerProxy; import com.huazie.fleaframework.jersey.common.JerseyXmlDigesterHelper; import com.huazie.fleaframework.jersey.common.filter.config.FleaJerse...
30.638298
112
0.733333
78b05cc669d22dd5dde542bb32b01c3420face41
1,234
package com.mixmaru.my_contracts_j.domain.repository; import com.mixmaru.my_contracts_j.domain.entity.CorporationUserEntity; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.transact...
32.473684
86
0.723663
58d6aa4e8cdbeda0f1eb5e0612e68f9d53f7c2e2
24,411
/* * Copyright 2018 Netflix, 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...
53.887417
149
0.678874
f1a195ea6b9f19e9c0c3cdded0862c897dda467f
617
package com.br.springreactivewebflux.application.ports.out; import com.br.springreactivewebflux.adapter.outbound.database.entity.ProdutoDocumento; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; import java.util.UUID; public interface ProdutoServiceRepositoryOutPort { Flux<ProdutoDocumento...
41.133333
88
0.833063
89fce3143c9b042017104036e15edafe9014109a
2,421
/** Copyright © 2018, Okta, Inc. * * Licensed under the MIT license, the "License"; * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed to in writing, software...
32.716216
76
0.687319
70c94adb942448e7737f6384e063fb38f66547eb
735
package com.luxoft.mx.tool.ui.views.empty; import com.vaadin.flow.component.littemplate.LitTemplate; import com.vaadin.flow.router.Route; import com.vaadin.flow.router.PageTitle; import com.luxoft.mx.tool.ui.views.MainLayout; import com.vaadin.flow.router.RouteAlias; import com.vaadin.flow.component.Tag; import com.va...
30.625
59
0.755102
3b189d04691834522d9d167a418f1469d9eec110
393
package design.pattern.by.jpsoroulas._3_beharioral._4_chain; import lombok.Data; @Data public class ItSupportRequest { private RequestType type; private boolean handled = false; public ItSupportRequest() { this.type = RequestType.LEVEL1; } ItSupportRequest(RequestType type) { this.type = type; ...
16.375
60
0.720102
8de7c64c84b33f73b99f21b3d596012a647f7f62
184
package com.github.javahello.erm.generator.core.codegen.ddl; /** * 输出 fix ddl */ public interface IFixDDL { /** * FIX * @return FIX DDL */ ICovDDL fix(); }
12.266667
60
0.576087
8500e5c8f7aec36f1752d5d95b248ebc2ffc9a7e
1,022
package tigeax.customwings.menus.editor.selectvaluemenus.items; import tigeax.customwings.menus.editor.selectvaluemenus.ParticleSelectMenuPage; import tigeax.customwings.util.ParticleItem; import tigeax.customwings.util.menu.ItemClickEvent; import tigeax.customwings.util.menu.ItemMenu; import tigeax.customwings.util.m...
29.2
79
0.732877
b3aea872c946fc645efb603005b1a47c4aae69d7
1,316
/** * Copyright (C) 2012 Ness Computing, 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 ...
31.333333
88
0.696809
b4caa64d964ff1f7510919299cc56f8d33a0226f
1,607
/** * */ package states; import java.util.ArrayList; import org.jbox2d.common.Vec2; import org.jbox2d.dynamics.World; import entities.MoB; import gfx.SpriteSheet; import handlers.CollisionListener; import handlers.GameStateManager; /** * @author TofuSensei * */ public class GameBase extends...
19.597561
71
0.616055
d2a3378498dbef20753dd1639f283ad3e18bf3a4
5,142
package sample.utils; import cinder.app.App; import cinder.app.Window; import cinder.params.InterfaceGl; import org.moe.natj.cxx.CxxObject; import org.moe.natj.cxx.CxxRuntime; import org.moe.natj.general.ptr.BoolPtr; import org.moe.natj.general.ptr.FloatPtr; import org.moe.natj.general.ptr.IntPtr; import glm.detail.IV...
34.979592
109
0.680086
9801cb26c987b8d0ae631781070eb8c95a6beb2c
2,843
package com.microsoft.bingads.api.test.entities.campaign.read; import com.microsoft.bingads.api.test.entities.ObjectComparer; import com.microsoft.bingads.api.test.entities.campaign.BulkCampaignTest; import com.microsoft.bingads.bulk.entities.BulkCampaign; import com.microsoft.bingads.campaignmanagement.Setting; impor...
35.5375
102
0.609567
c779d1aeb77f79b94b5624f3e4f43b732ac9397b
447
package org.android.spdy; import java.util.Map; public class SpdyDataProvider { byte[] data; public boolean finished; Map<String, String> postBody; public SpdyDataProvider(byte[] bArr) { this.finished = true; this.data = bArr; this.postBody = null; } public SpdyDataPr...
20.318182
54
0.612975
235ff5c64cd6d3db08a44fa6f7ed645436adc569
247
package com.alibaba.fastcreate.adapter; import com.alibaba.fastcreate.model.ClazzModel; import java.util.List; public interface ClazzModelBuild { ClazzModel buildModel(List list, Object object); void init(List list, Object object); }
19
52
0.773279
1edf09296f3e6b0d4de5177b162e4454cd94a359
2,505
package org.mindinformatics.gwt.framework.component.ui.toolbar; import org.mindinformatics.gwt.framework.src.Application; import org.mindinformatics.gwt.framework.src.IApplication; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.shared.HandlerReg...
30.925926
83
0.791617
4f5c2596ba02fcbeb2ed02c5eea9d4b802862ad7
6,563
/* * 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 ...
36.06044
99
0.571995
cc8bc7d505734fc0d9b473c115b4102f663b1120
304
public class Cat extends Animal { private final static String MEEOW = "MEEOW"; public Cat(String name, String favouriteFood) { super(name, favouriteFood); } @Override public String explainSelf() { return super.baseExplain() + System.lineSeparator() + MEEOW; } }
23.384615
68
0.651316
4e271900585efa0a5b25fcce28589cda4a672f45
795
package framework; public class JSSelect extends JSContainer implements InputField<String> { public JSSelect(String name) { super(name, "select"); } public JSSelect addOption(JSOption option) { addChild(option); return this; } @Override public String getValue() { String val = getAttribu...
19.875
74
0.640252
60abc4e2b6e35a6b2abfd8123b9de2d6e2f7ef0f
4,775
/* * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Distribution License v. 1.0, which is available at * http://www.eclipse.org/org/documents/edl-v10.php. * * SPDX-License-Identifier: ...
28.76506
106
0.636649
96cc4888f2c8bd3f7066cb0a9724738604159bde
5,754
/* * Copyright (c) 2018 YCSB contributors. All rights reserved. * <p> * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with the License. You * may obtain a copy of the License at * <p> * http://www.apache.org/licenses/LICENSE-2.0 * <p> * Unless ...
33.260116
113
0.730275
e016abc8de638fe4290db386c7fcaa47c1b3646e
817
package extracells.api.definitions; public interface IPartDefinition { appeng.api.definitions.IItemDefinition partConversionMonitor(); appeng.api.definitions.IItemDefinition partFluidAnnihilationPlane(); appeng.api.definitions.IItemDefinition partFluidExportBus(); appeng.api.definitions.IItemDefin...
29.178571
72
0.807834
e72a5406ebcade90ed0678334c5f49bbd20fa2e1
15,480
package fun.epoch.mall.service; import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageInfo; import fun.epoch.mall.common.Constant; import fun.epoch.mall.common.Constant.OrderStatus; import fun.epoch.mall.dao.*; import fun.epoch.mall.entity.*; import fun.epoch.mall.exception.OrderCreateException; im...
41.28
172
0.641473
c6aef6fcb424833d5377868bc1b52a3940853e9d
48,114
package com.p4f.esp32camai; import android.app.AlertDialog; import android.app.Dialog; import android.content.DialogInterface; import android.content.res.AssetManager; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.gr...
49.095918
171
0.514944
f60691495217a78d772111493128cca3ea5cf1e3
312
package org.laeq.model.converter.jackson; import com.fasterxml.jackson.databind.util.StdConverter; import org.laeq.model.Category; public class CategoryConverterSerialize extends StdConverter<Category, Integer> { @Override public Integer convert(Category value) { return value.getId(); } }
26
81
0.762821
614b0c0e061f952530a0ce66a04ed712c38e35bc
6,186
package util; import java.util.Collection; import java.util.Iterator; import java.util.List; import javax.servlet.http.HttpServletRequest; import dao.CommDAO; public class PageManager { private PageManager() { } // 默认一页最大记录数 public static final int DEFAULTPAGESIZE = 20; // 分页段 public static final int s...
21.93617
79
0.607986
aeb9763077add2d425bfcf0eee65910c365b9355
2,309
package apijson.demo.server.config; import apijson.demo.server.common.UtilConstants; import apijson.demo.server.utils.JwtUtils; import com.zhangls.apijson.utils.StringUtil; import io.jsonwebtoken.Claims; import io.jsonwebtoken.ExpiredJwtException; import io.jsonwebtoken.SignatureException; import lombok.extern.slf4j.S...
34.984848
123
0.665656
38389c8c67fbde0c87c5f1c48990ae0a0f20111f
11,106
package org.jeecg.modules.demo.bankstatement.controller; import java.util.*; import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.poi.ss.formula.funct...
39.243816
126
0.606519
1fe23e426119614e73c92223a509032b99d721ec
1,190
package org.usfirst.frc.team2928.robot.commands; import org.usfirst.frc.team2928.robot.Robot; import edu.wpi.first.wpilibj.command.Command; public class ShootCommand extends Command { public ShootCommand() { requires(Robot.shooterSolen); } public ShootCommand(String name) { super(name); requ...
18.888889
52
0.688235
770dfed26e6912647901dfbf7fd7e212a64ebd29
2,624
package com.egoveris.te.base.helper; import org.jbpm.api.task.Task; import org.zkforge.fckez.FCKeditor; import org.zkoss.bind.BindUtils; import org.zkoss.zk.ui.Executions; import org.zkoss.zk.ui.event.Event; import org.zkoss.zk.ui.event.EventListener; import org.zkoss.zul.Window; import com.egoveris.te.base.util.Tram...
32.395062
107
0.68407
da216129a1c1c156e76c6692b91a19f3579d16eb
2,349
/* * Copyright 2018 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...
41.946429
106
0.778203
c83d3bc55bf62b209dee047d0872e4b0243aca24
290
package lambda.runnable; public class ThreadEx{ public static void main (String arg[]){ Runnable task = new Runnable(){ @Override public void run(){ System.out.println("Task #1 is running"); } }; Thread thread = new Thread(task); thread.start(); } }
15.263158
50
0.617241
cf98cde32d5f6fb3ca6eb62916f14d7bae2d9b59
1,296
package com.comcast.pop.modules.queue.api; import java.util.Collection; /** * Limited interface for a queue (based on the java Queue interface) */ public interface ItemQueue<T> { /** * Adds the specified item to the Queue * @param item The item to add * @return true on success, false otherwise ...
26.44898
76
0.634259
619edfea881ee5d22b1ba01806bc759a66c42f22
4,206
package reciter.xml.retriever.pubmed; import java.util.Date; import java.util.Iterator; import java.util.Set; import java.util.stream.Collectors; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Component; import reciter.algorithm.util.ReCiterStringUtil; import reciter.mo...
35.344538
127
0.72563
89dac883e3ad4633b332778df131f37b87ee60b8
6,016
package com.codepath.apps.twittor; import androidx.appcompat.app.AppCompatActivity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.Gravity; import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.widget.ImageView; import a...
40.92517
152
0.606217
1a167e002de73607dde8e7bb6c029989d26fd927
3,177
package hudson.tasks.test; import edu.hm.hafner.echarts.Build; import edu.hm.hafner.echarts.BuildResult; import edu.umd.cs.findbugs.annotations.NonNull; import hudson.model.Run; import java.util.Iterator; import java.util.NoSuchElementException; public class TestResultActionIterable implements Iterable<BuildResult<Ab...
34.532609
119
0.598678
758c3de31da2bd5301748a6051a9784fce5920fb
1,361
package com.redhat.qe.kiali.ui.components; import com.redhat.qe.kiali.ui.KialiWebDriver; import com.redhat.qe.kiali.ui.UIAbstract; /** * @author Jeeva Kandasamy (jkandasa) */ public class Sort extends UIAbstract { private static final String ORDER_BY_ASC = ".//*[contains(@class, \"sort-direction\") and contain...
26.173077
125
0.59662
c65df03edda8b354248cc721478a4882a4600e46
2,560
package com.wut.pipeline; import java.util.Map; import com.wut.model.map.MappedData; import com.wut.support.settings.SystemSettings; public class User { private String customer; private String id; private String password; private String firstName; private String lastName; private String token; private String ...
25.346535
91
0.730859
c7e817e39cd50781f15948c0a7c1c37fa85f8fc1
7,489
package tests; import duke.data.Impression; import duke.data.Investigation; import duke.data.Medicine; import duke.data.Observation; import duke.data.Patient; import duke.data.PatientData; import duke.data.Plan; import duke.data.Result; import duke.exception.DukeException; import org.junit.jupiter.api.BeforeEach; impo...
42.310734
111
0.674456
55efd9dbcbb93633a4787a9d6c06496695bedd07
1,598
package hudson.cli; import hudson.Extension; import java.io.PrintStream; import jenkins.model.Jenkins; import jenkins.security.SecurityListener; import org.acegisecurity.Authentication; import org.kohsuke.args4j.CmdLineException; /** * Saves the current credential to allow future commands to run without explicit cre...
29.054545
121
0.719024
7c65dbc00e1b1fa7107e1e4275053cbf6f3b7037
1,939
/* 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 writing, software * distribut...
29.830769
103
0.76689
494303baf1be8555f5fba66198f0fe43cf7013e0
1,780
/* * Copyright 2017 NEOautus Ltd. (http://neoautus.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 required by applicab...
28.253968
98
0.710112
03f7df0b9fef8c9ba871d78a9f81e503206af994
1,576
package com.android.flappybird; import com.badlogic.gdx.ApplicationAdapter; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; public class FlappyBird extends ApplicationAdapter { private SpriteBatch batc...
25.419355
78
0.668782
c1f428907d39b7bb163782cb59215e3500528ca8
1,681
package cn.shiyanjun.platform.scheduled.common; import com.alibaba.fastjson.JSONObject; import cn.shiyanjun.platform.api.constants.TaskStatus; import cn.shiyanjun.platform.api.utils.Time; import cn.shiyanjun.platform.scheduled.constants.ScheduledConstants; public final class TaskInfo extends TaskID { long schedule...
24.014286
70
0.766805
9c1cd47483d9e4eb019ea8165c01f8d4d110b9c6
33,248
package net.herit.business.api; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.File; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Enumeration; import java.util....
33.583838
147
0.678296
59b5bb2e84992f06659d041be269381d4d170362
328
package com.dhl.serv.repository; import com.dhl.serv.domain.ArticleHash; import org.springframework.data.jpa.repository.*; import java.util.List; /** * Spring Data JPA repository for the ArticleHash entity. */ @SuppressWarnings("unused") public interface ArticleHashRepository extends JpaRepository<ArticleHash,Lon...
20.5
80
0.786585
741cb93c377eb7c6903288d940d76050ebcdda54
6,044
package com.zsp.utilone.validate; import java.util.ArrayList; import java.util.List; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Created on 2018/4/11. * * @author 郑少鹏 * @desc RegularUtils */ public class RegularUtils { /** * all numbers * <p> * Phone number + IoT numb...
24.975207
218
0.5364
cfbe47e724b0469243d256e664c92bf913c8b30f
430
package timer; 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.SOURCE) public @interface Timer { // Statement index of Start and End for measurem...
25.294118
56
0.727907
9e9868124c16265dd421e5a8f26e47d90c19bea6
4,639
package io.joshatron.tak.ai.neuralnet; import io.joshatron.tak.engine.exception.TakEngineException; import io.joshatron.tak.engine.game.GameState; import io.joshatron.tak.engine.game.Player; import io.joshatron.tak.ai.player.SimpleNeuralPlayer; import java.io.File; import java.util.ArrayList; import java.util.Compara...
35.412214
114
0.529856
83420671467ba3430bb75db75cc566ab444057c5
7,276
/** * 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...
38.497354
96
0.672622
f09de5d0317dfa263d800a25a60e907565d64b5b
3,433
package com.example.hy.recruitnew; import android.content.Intent; import android.content.pm.ActivityInfo; import android.os.Build; import android.os.Bundle; import android.view.DisplayCutout; import android.view.View; import android.view.WindowManager; import android.view.animation.AlphaAnimation; import android.view....
35.030612
127
0.709583
22a9b20bebc7f9d693d01b9943b1c51be0570715
1,109
package com.badugi.game.logic.model.vo.supreme; import java.io.Serializable; import java.util.List; public class DealerResultVo implements Serializable{ /** * */ private static final long serialVersionUID = 1L; private String cmd; private Long fbId; private Long totalWinChips; private List<DealerWinVo> dea...
23.104167
96
0.744815
c2510ecb550563af559f3abb162b3794548e1f76
1,573
package com.javarush.task.task24.task2407; /* В работе вам иногда будет нужно закастить класс к какому-нибудь интерфейсу (тут Sayable), который не реализован в текущем классе */ public class Cat implements Pet { private String name; public Cat(String name) { this.name = name; } /** * Эт...
28.089286
92
0.516847
18f0f824738fa0b6a0be515a904790b9391d0d2f
1,883
/******************************************************************************* * Copyright (c) 2011, 2012 Oracle and/or its affiliates. All rights reserved. * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1...
37.66
131
0.618694
6e806c428d8ffb203cd27fbfe40915c55c20d5c0
14,270
/* * Copyright (C) 2017 by Fonoster Inc (http://fonoster.com) * http://github.com/fonoster/astive * * This file is part of Astive * * 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 * ...
32.21219
107
0.54555
ae54e1530b92350af612c1966b7f9ab4d8380f0a
401
package com.example.xiacijie.feelsbook; import java.util.Comparator; /** a helper class * that do the object sorting */ public class ObjectSortUtil implements Comparator<Feel> { // https://stackoverflow.com/questions/2784514/sort-arraylist-of-custom-objects-by-property @Override public int compare(Feel o...
26.733333
94
0.725686
2fa5e64008fcd7e2c51cd53c68e3e032f108e8e9
97
@Import("com.typesafe.scalalogging") package org.veripacks.data.t8; import org.veripacks.Import;
24.25
36
0.804124
3ff2c7f30df0dcdd17b4a3d49495f250cb127d92
2,289
package net.veierland.aixd; import net.veierland.aixd.R; import android.app.Activity; import android.app.ProgressDialog; import android.net.Uri; import android.os.Bundle; import android.view.Window; import android.webkit.WebView; import android.webkit.WebViewClient; public class AixIntro extends Activity { public ...
31.791667
109
0.662735
a907507a2847dd485f2b55ba9d1154167c834e8f
1,480
package one.jodi.action; import com.google.inject.Inject; import one.jodi.base.bootstrap.ActionRunner; import one.jodi.base.bootstrap.RunConfig; import one.jodi.base.bootstrap.UsageException; import one.jodi.bootstrap.EtlRunConfig; import one.jodi.etl.service.interfaces.TransformationPrintServiceProvider; import java...
36.097561
114
0.716216
fdfcb960c4ed2adc7129960e6d110d3b6666a0b6
1,176
// This file is part of PDQ (https://github.com/ProofDrivenQuerying/pdq) which is released under the MIT license. // See accompanying LICENSE for copyright notice and full details. package uk.ac.ox.cs.pdq.planner.linear.explorer.node.metadata; import uk.ac.ox.cs.pdq.planner.linear.explorer.SearchNode; // TO...
25.565217
114
0.70068
fc27fefe301a1dbbf47bb5a4e4c87e3ca2c60523
1,573
package com.sdyx.report.domain; import com.baomidou.mybatisplus.annotation.*; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; import java.io.Serializable; import java.util.Date; /** * 数据库配置信息对象 report_database * * @auth...
16.216495
53
0.594406
a9e762421ec5ec0b4adf146dadb50d169e3c0dc8
13,793
/* * Copyright 2015-2017 OpenCB * * 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 ...
43.787302
138
0.723338
f9a3130a6143014532f0e7327ead940dd50503e6
793
package club.zhcs.agent.ext.beetl; import org.beetl.core.Context; import org.beetl.core.Function; import org.nutz.lang.Lang; import org.nutz.mvc.Mvcs; import club.zhcs.agent.Agent.SessionKeys; /** * * @author kerbores * * @email kerbores@gmail.com * */ public class LoginUserFun implements Function { /* * ...
22.027778
78
0.692308