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
2eb87dad939523a48ba4f810b8e3ca09dfd66b80
1,197
package com.packtpub.a3ws.ch4.samples.vo; import java.util.ArrayList; import java.util.List; public class BookVO { private String id; private String title; private String description; private String isbn; private String author; private String publisher; private List<ReviewFormBean> reviews = new ArrayList<Rev...
19.622951
72
0.719298
18a1bc13b3d1092c13ff6d0917f8b05d6f4ed1ef
323
package edu.tamu.scholars.middleware.view.model; import javax.persistence.MappedSuperclass; import edu.tamu.scholars.middleware.model.Named; @MappedSuperclass public abstract class View extends Named { private static final long serialVersionUID = 413593021970972190L; public View() { super(); } ...
19
69
0.752322
75b5c072929fc74d0185896310944e1f85f9c440
1,148
// AbstrRelationMapBased.java, created Fri Jun 30 11:17:10 2000 by salcianu // Copyright (C) 2000 Alexandru SALCIANU <salcianu@alum.mit.edu> // Licensed under the terms of the GNU GPL; see COPYING for details. package jwutil.collections; import java.io.Serializable; import java.util.Collections; import java.util.Map; ...
24.425532
85
0.655923
b11054ef98a4e7f19062a17c9e765d7a0e00f93f
355
package com.abel; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; /** * Created by yangyibo on 2018/6/28. */ @SpringBootApplication public class PersonApplication { public static void main(String[] args) { SpringApplication.run(Pers...
23.666667
68
0.766197
083530e829e44baf3be75e94ce807e85e1faf90f
6,452
/* * Copyright 2018 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
36.451977
99
0.759454
0c03b1469c4e811d44779acc160da5fcaee8b351
3,965
begin_unit|revision:0.9.5;language:Java;cregit-version:0.0.1 begin_comment comment|/** * 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 license...
18.791469
814
0.788651
efc1d90575016f74eb208a773d11aa5915ce9c81
1,961
/** * Copyright (C) 2013 – 2015 SLUB Dresden & Avantgarde Labs GmbH (<code@dswarm.org>) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICEN...
38.45098
114
0.800612
92ff6e47fadc6154d028993320319d5dd47e9146
2,476
package com.linepro.modellbahn.service.impl; /** * AufbauService. CRUD service for Aufbau * @author $Author:$ * @version $Id:$ */ import static com.linepro.modellbahn.ModellBahnApplication.PREFIX; import java.util.Optional; import javax.transaction.Transactional; import org.springframework.beans.factory.annota...
38.092308
163
0.702342
550e89bf949548251a644925f27752b246ce13a9
1,221
/** * 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...
24.918367
63
0.710074
c6c6e61444aba53498a5ed979a2aeb3f024db684
600
package com.ieasy360.app.upgrade; public class UpdateConstants { // protected static final String APP_UPDATE_SERVER_URL = "http://192.168.205.33:8080/Hello/api/update"; // json {"url":"http://192.168.205.33:8080/Hello/medtime_v3.0.1_Other_20150116.apk","versionCode":2,"updateMessage":"版本更新信息"} //我这里服务器返回的j...
37.5
127
0.756667
b44e24872702efe17d8d1cb22b6029271366a3e7
2,365
package jetbrains.mps.lang.editor.figures.library; /*Generated by MPS */ import jetbrains.jetpad.model.property.Property; import jetbrains.jetpad.model.property.ValueProperty; import jetbrains.jetpad.cell.TextCell; import jetbrains.jetpad.cell.toView.CellView; import jetbrains.jetpad.values.Color; import jetbrains.je...
35.833333
110
0.731078
dba3e078a31f6ccbbf83c12200e7724abb2eb750
2,254
package com.github.lehjr.modularpowerarmor.item.tool; import com.github.lehjr.modularpowerarmor.capabilities.PowerFistCap; import com.github.lehjr.mpalib.util.string.AdditionalInfo; import net.minecraft.client.util.ITooltipFlag; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft....
34.151515
125
0.696096
f7c1c6e1f821dd807fe8c5b0a343c8ba8a363666
6,658
/* * Copyright 2020 Google 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
34.497409
135
0.687744
871989e5012e0606f4e9dc7f125db88627c6075c
116
package main.java; public class GLPoly extends GLCurve { public GLPoly(GLVec... vecs){ super(vecs); } }
11.6
37
0.655172
8bf3f50631e252fb8a9d0546f9e7a57eb253fa9d
411
package com.mxpio.mxpioboot.jpa.initiator; import org.springframework.context.ApplicationContext; /** * JpaUtil可用接口 * JpaUtil在启动时候会进行初始化动作,初始化之前用JpaUtil<br> * 会报错,如果需要在项目启动的时候用JpaUtil,可以通过实现JpaUtilAble接口,<br> * 从而确保JpaUtil已经被初始化 * @author Kevin Yang (mailto:muxiangqiu@gmail.com) * @since 2017年11月16日 */ public ...
25.6875
64
0.805353
972a392a6aa9bdd082aa69c0fcd76692a9879b6f
952
package com.sensiblemetrics.api.alpenidos.pattern.service_layer.spell; import com.sensiblemetrics.api.alpenidos.pattern.service_layer.common.BaseEntity; import com.sensiblemetrics.api.alpenidos.pattern.service_layer.spellbook.Spellbook; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstruct...
22.139535
83
0.734244
3d0e1ae0abba8e377decf30721f327d22af41c17
37,864
/* * MIT License * * Copyright (c) 2021 MASES s.r.l. * * 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, cop...
76.95935
794
0.774165
dbdb4117bd443ec7f1afbda1310708cdbfbd4c43
2,787
package ru.otus.spring01; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; i...
34.8375
131
0.714029
b57621b57be56e845e8bb6d9964069240d01a365
1,139
package de.uni.bielefeld.sc.hterhors.psink.scio.semanticmr.slot_filling.result.goldmodrules; import de.hterhors.semanticmr.crf.structure.annotations.AbstractAnnotation; import de.hterhors.semanticmr.crf.variables.Instance.GoldModificationRule; import de.uni.bielefeld.sc.hterhors.psink.scio.semanticmr.SCIOEntityTypes; ...
39.275862
106
0.820018
105d899746a5fb76c8a69557acfd63f4577d145c
1,011
package com.alicloud.openservices.tablestore.timestream.model.expression; import com.alicloud.openservices.tablestore.model.search.query.GeoBoundingBoxQuery; import com.alicloud.openservices.tablestore.model.search.query.Query; import org.junit.Assert; import org.junit.Test; /** * Created by yanglian on 2019/4/10. ...
37.444444
88
0.740851
cf51a3e8db8b8226f42a81ec1388c94daf6745f2
4,340
package database; import java.util.Stack; import java.util.List; import java.util.ArrayList; import java.util.Collections; import java.util.function.Predicate; import java.util.Comparator; import java.time.LocalDate; import java.io.*; import structures.Person; import structures.Location; import database.Server; impo...
26.625767
74
0.70553
f4257efa1f0765733429073aa737780114c8f434
10,845
/** * Copyright (C) 2009 - present by OpenGamma Inc. and the OpenGamma group of companies * * Please see distribution for license. */ package com.opengamma.financial.interestrate; import com.opengamma.financial.interestrate.annuity.definition.AnnuityCouponFixed; import com.opengamma.financial.interestrate.annuity...
40.01845
117
0.846289
1d93b40e61310c5b8b83f90ef17b78e73c2f91c8
2,105
/* *@Author Shubham Maurya *@Date April 20, 2019 *@Company pnstech Inc.*/ package com.pnstech.finalactivity; import android.content.Intent; import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.support.v7.widget.LinearLayoutManager; i...
33.951613
131
0.704988
d2172c8b6596740778f4f93d9b92a8d6c5a638ef
10,645
package com.datastax.mcac.insights.events; /** * Copyright DataStax, Inc. * * Please see the included license file for details. */ import java.io.IOError; import java.io.IOException; import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; import java.lang.reflect.Field; import j...
35.016447
138
0.601221
b396879371d2ece635ba9e5ecfafa0381d1e8c09
2,121
/* * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one * or more contributor license agreements. Licensed under the Elastic License * 2.0 and the Server Side Public License, v 1; you may not use this file except * in compliance with, at your election, the Elastic License 2.0 or the Server...
45.12766
125
0.736917
ab13e0868024104c1235e1ad7de4c543abc2c9cd
1,507
package com.tangkuo.cn.rpc.mina; import java.io.IOException; import java.net.InetSocketAddress; import java.nio.charset.Charset; import org.apache.mina.core.service.IoAcceptor; import org.apache.mina.core.session.IdleStatus; import org.apache.mina.filter.codec.ProtocolCodecFilter; import org.apache.mina.filt...
31.395833
79
0.737226
65a814dbbb495e6cc6e21c58c7231d6576c7302d
786
package com.skw359.diamond; import org.bukkit.plugin.java.JavaPlugin; public final class Diamond extends JavaPlugin { @Override public void onEnable() { // Plugin startup logic System.out.println("\033[36;1mDIAMOND >> \033[32;1;2mAuthenticating Java environment (build 1.8.0+) \033[0m"); ...
35.727273
119
0.66285
1e06978ff8324e2350d993ecd0b02328fb32f368
3,027
package automation.testing.test.cucumber.test; import com.aventstack.extentreports.ExtentReports; import com.aventstack.extentreports.reporter.ExtentHtmlReporter; import com.aventstack.extentreports.reporter.configuration.ChartLocation; import com.github.mkolisnyk.cucumber.runner.*; import cucumber.api.CucumberOptions...
61.77551
221
0.765114
97b86309bb99c655795c332e611d4d54b77f2de7
2,345
/* * Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com. * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program is free software: you can redistribute it and/or modify * it under the terms...
24.175258
78
0.73774
b0991daa7635f03a4f1bf8344cfdd0493ab2267d
15,594
/******************************************************************************* * Copyright (c) 1998, 2015 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.0 ...
37.217184
110
0.645761
5b87030a8f07a1019740b0624c3df7454662d533
4,072
import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Graph{ private static class Edge{ int node; int next; Edge(int node, int next){ this.node = node; this.next = next; } } final static int NIL = -1; private int[] he...
22.251366
82
0.485265
f8be8d62ba63caed88b648f4f58e1ef411317660
3,891
package breadth_first_search; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.LinkedList; import java.util.Queue; import java.util.StringTokenizer; /** * * @author minchoba * 백준 14052번 : 연구소 * * @see https://www.acmicpc.net/problem/14052/ * */ public class Boj14502 { private...
23.871166
78
0.536366
4864f9e4679e5612e76e5720b53e09d09d205e59
2,113
package gunging.ootilities.gunging_ootilities_plugin.misc.mmmechanics; import gunging.ootilities.gunging_ootilities_plugin.OotilityCeption; import gunging.ootilities.gunging_ootilities_plugin.containers.GOOPCManager; import io.lumine.mythic.api.adapters.AbstractEntity; import io.lumine.mythic.api.adapters.AbstractLoca...
37.732143
99
0.715097
afa9dd3d0eb1f76f532d91c784ef96b0f0721adf
296
package io.github.bigbio.pgatk.io.common.psms; import io.github.bigbio.pgatk.io.common.modification.IModification; import java.util.List; /** * Created by jg on 24.09.14. */ public interface IPeptideSpectrumMatch { String getSequence(); List<IModification> getModifications(); }
16.444444
67
0.739865
37ad3797f0c2953623cdd8c5fc0646605ca9df6f
1,255
package net.azagwen.accessible_dev_blocks; import net.azagwen.accessible_dev_blocks.option.AdbGameOptions; import net.fabricmc.api.EnvType; import net.fabricmc.api.Environment; import net.minecraft.client.MinecraftClient; import net.minecraft.text.LiteralText; import net.minecraft.util.shape.VoxelShape; import net.min...
36.911765
124
0.726693
b0d6711e4d819778d1687b3ec167ca48f3c33ba2
782
package dojo.extract_subclass; /* * A labor mezőtől függően az osztály máshogyan számol. Emeljük ki ezt a viselkedést egy LaborItem osztályba! */ public class JobItem { private final double unitPrice; private final int quantity; private final Employee employee; private final boolean labor; public JobItem(dou...
20.578947
109
0.725064
5323fee47bdeb2741e47d03632f9f81e8c21a64e
935
package com.mvmlabs.springboot.dao; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data.jpa.repository.Query; import org.springframework.data.repository.PagingAndSortingRepository; import com.mvmlabs.springboot.domain.User; /** * Spring Data repository for interacting with user...
25.27027
85
0.695187
f36e82d20d7449f500aa3d8a87f34129abcf3ec8
1,355
package io.blushine.utils; import java.text.SimpleDateFormat; import java.util.Locale; import java.util.TimeZone; /** * Various time methods */ public class Time { /** ISO Date */ public static final String ISO_DATE = "yyyy-MM-dd'T'HH:mm:ss.SSSX"; /** * Create a simple date format from the ISO date * @return sim...
28.829787
97
0.758672
517d2af3fd81ff3a8bfef2208931af337bf56489
470
package com.force.formula.impl; import com.force.formula.FormulaException; import com.force.formula.util.FormulaI18nUtils; public class NestedFormulaException extends FormulaException { private static final long serialVersionUID = 1L; public NestedFormulaException(Throwable t, String fieldName) { super(...
33.571429
126
0.776596
b75449e561c44ebe02325784c77704f014d8db22
1,757
package com.weique.overhaul.v2.mvp.model.entity; import java.util.List; public class DataReportInfoBean { /** * typeName : 网格员 * departmentName : 徐州市鼓楼区 * departments : [{"Id":"bb25830d-f8fe-4b33-ab31-1cc08a5bc106","Name":"丰财街道办事处","FullPath":"徐州市鼓楼区/丰财街道办事处/","Level":2,"Count":62},{"Id":"839901b...
39.931818
924
0.67786
2a5c519822ebcee943e683eacec00d37a3b527d9
3,696
// Copyright 2013 Viewfinder. All rights reserved. // Author: Mike Purtell package co.viewfinder; import co.viewfinder.Time; import android.app.Activity; import android.graphics.Bitmap; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androi...
39.741935
111
0.752706
7c01eff7da48a6bdf5d4c66d2b0f41d8008196a8
2,316
package MulanBaseline; import experiment.BResult_delete4; import org.apache.commons.io.FileUtils; import java.io.File; import java.io.IOException; import java.util.List; /** * @author 郭朝彤 * @date 2017/7/13. */ public class PreprocessData { public static void main(String[] args) { CreateXML(); ...
37.354839
149
0.568653
32fa2faa4bc95dffa35c5e69ca23b8aac28a3434
41,661
/* *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...
32.220418
178
0.785675
7d95269dbf01a98e882671f2c8ee099dfa6c4fcc
2,650
// Copyright (c) 2003-2014, Jodd Team (jodd.org). All Rights Reserved. package jodd.jtx.meta; import org.junit.Test; import java.lang.reflect.Method; import static jodd.jtx.JtxIsolationLevel.*; import static jodd.jtx.JtxPropagationBehavior.*; import static org.junit.Assert.assertEquals; public class TransactionAnn...
34.415584
128
0.806792
200acd5829e4688b4a779859cc99f56260aee4f5
2,146
package homework.gamestore.commands.game; import homework.gamestore.commands.Command; import homework.gamestore.domain.dtos.GameEditDto; import homework.gamestore.services.GameService; import homework.gamestore.services.UserService; import java.math.BigDecimal; import java.time.LocalDate; import java.time.format.Date...
34.063492
128
0.573625
b7c4d6ed93f146714aba6dc891319b6a18ed206f
311
package controllers; import play.mvc.Controller; import play.mvc.Result; //TODO: This should generate individual describing the configuration, instead of constraints public class Main extends Controller { public static Result index() { return ok( views.html.tan.startView.render("Welcome - TAN")); } }
23.923077
92
0.765273
32c20068571c6aab3879242beebb0932c506ca28
2,102
package com.github.nmorel.gwtjackson.objectify.shared; import com.github.nmorel.gwtjackson.shared.ObjectReaderTester; import com.github.nmorel.gwtjackson.shared.ObjectWriterTester; import com.googlecode.objectify.Ref; public final class BeanRefTester extends ObjectifyAbstractTester { public static final BeanRefT...
30.028571
80
0.501427
fa1d4b31f661e8c2c76cf4f6db253ca99a6dcdd2
699
package com.huajiao.comm.monitor; import java.util.Locale; class MissInfo { private int max_id; private int least_timeout; private String _roomid; /** * @param max_id * @param least_timeout */ public MissInfo(int max_id, int least_timeout, String roomid) { super(); this.max_id = max_id; this.least_...
17.04878
88
0.693848
c7410112671672225b4127bcc7d4e23b88611a74
1,822
package no.nav.arbeidsgiver.kandidat.kandidatsok.es.domene; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.Date; import java.util.Objects; @JsonIgnoreProperties(ignoreUnknown = true) public class EsAnnenErfaring { private Date fraDato; private Date tilDato; private Stri...
24.293333
102
0.61416
2ed40a23cdf94de780211651d7ad1d058718744b
884
import java.util.*; public class CCC_2009_J4 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int w = sc.nextInt(); Stack<String> words = new Stack(); words.add("TODAY"); words.add("LUCK"); words.add("GOOD"); words.add("CCC"); words.add("TO"); words.add("WELCOME"); ...
19.644444
74
0.561086
da6324d9fae514031db47035167eea177fdf6a31
13,562
/* * Generated by the Jasper component of Apache Tomcat * Version: Apache Tomcat/8.0.15 * Generated at: 2015-01-07 00:05:49 UTC * Note: The last modified time of this file was set to * the last modified time of the source file after * generation to assist with modification tracking. */ package org.ap...
41.987616
173
0.561864
ff066a2b06b8e4f4146842593aa68ec920daeb93
342
package com.innoq.mploed.ddd.creditAgency; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class CreditAgencyApplication { public static void main(String[] args) { SpringApplication.run(CreditAgencyApplic...
28.5
68
0.807018
1771039c6b135f5cffb3d167f518a1f825bdef34
2,101
/** * This class is the teacher's solution * for the Nested loop exercises from lab7 * originally from 360-420 Prog for Sci * there are other ways to do this, you * are seeing the solution that came to * mind today. * * @author PMCampbell * @version today **/ import java.util.Scanner; public class NestedLoo...
26.2625
61
0.615421
f4b2317fc5df143628787bb96623fa9f0d5da295
5,644
package byow.lab13; import byow.Core.RandomUtils; import edu.princeton.cs.introcs.StdDraw; import java.awt.Color; import java.awt.Font; import java.util.Random; public class MemoryGame { /** The width of the window of this game. */ private int width; /** The height of the window of this game....
38.135135
99
0.581148
064c39893ff1ddc4b5e87c6f5200f2fa321deecd
422
package gaarason.database.contracts.builder; import gaarason.database.query.Builder; public interface Lock<T> { /** * lock in share mode 不会阻塞其它事务读取被锁定行记录的值 * 相对适用于,两张以及多张表存在业务关系时的一致性要求,性能稍好,但易发生死锁 * @return 查询构造器 */ Builder<T> sharedLock(); /** * for update 会阻塞其他锁定性读对锁定行的读取 ...
20.095238
45
0.661137
b55c22e6779c12d1fe629618472e1adeb5a92f81
141
package com.diter.motiondetection; public interface MotionDetectorCallback { void onMotionDetected(byte[] img); void onTooDark(); }
20.142857
41
0.758865
f9d5674c3b4c52a59830f3ddea636c7a405455ba
944
package com.ruoyi.system.mapper; import java.util.List; import org.apache.ibatis.annotations.Mapper; import com.ruoyi.system.domain.SysNotice; /** * 公告 数据层 * * @author ruoyi */ @Mapper public interface SysNoticeMapper { /** * 查询公告信息 * * @param noticeId 公告ID * @retur...
16.857143
57
0.53072
89db340d7d5dcb8f6df14f44ea39b14084b48690
1,302
package Logica; import Logica.Risorse.Risorsa; import java.util.ArrayList; /** * classe per le componenti attualmente mostrate all'utente * @author Francesco Rocchetti */ public class ComponentiMostrati { private ArrayList<Componente> alc; public ComponentiMostrati(){ alc = new ArrayList<>(); ...
21.344262
61
0.545315
fa4ddd00aed82bf647e650e9c908bf78372e5c10
4,471
/* * Copyright (C) 2016 Google Inc. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
32.165468
99
0.613062
72f1263b4968c674a2902f573d1810456935cc4c
3,136
/* * Copyright 2019 Miroslav Pokorny (github.com/mP1) * * 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 applic...
39.2
156
0.702487
e4ac90835fceed1e26ef9939b36a668ff96a45be
340
package com.xinglefly.event; public class NetWorkEvent { private boolean isNetwork; public boolean isNetwork() { return isNetwork; } public void setIsNetwork(boolean isNetwork) { this.isNetwork = isNetwork; } public NetWorkEvent(boolean isNetwork) { this.isNetwork =...
17
49
0.655882
96d7f2e3eebc5b91b26d97d7a28b043a3afcd618
1,956
package com.staff.staffapp; public class Constants { public static final String BUSINESS_PRODUCTS_URL="https://fathomless-tor-95579.herokuapp.com/api/businesses"; public static final String PERSONAL_PRODUCTS_URL="https://fathomless-tor-95579.herokuapp.com/api/personals"; public static final String BUSINESS...
59.272727
120
0.752556
8bd71381132cb9b79fcc84c079c9157b28235c89
5,508
package com.alimama.mdrill.index.utils; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * 确保tdate类型转换成正确的符合solr的格式 * @author peng.chen * */ public class TdateFormat { public static final String yyyymmdd_regex = "(\\d{4})(\\d{2})(\\d{2})"; public static final Pattern yyyymmd...
34.641509
231
0.661402
d04f4e42788cbf1b9461b7552ce6b4b666151bc2
2,466
/* * The MIT License * * Copyright 2013-2015 Florian Barras. * * 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, c...
27.707865
80
0.694242
210535770e5f3aaa80213f7d7a9f6aa3bea07329
4,007
/* * Copyright (c) 2018 - 2020, Thales DIS CPL Canada, 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 * * Un...
41.739583
161
0.600948
93e58b4f2fce4fff40bd47dc72cd97ceed20735b
486
package netflix.adminresources; @AdminPage public class HealthCheckPlugin extends AbstractAdminPageInfo { public static final String PAGE_ID = "karyon2_healthCheck"; public static final String NAME = "HealthCheck"; public HealthCheckPlugin() { super(PAGE_ID, NAME); } @Override public...
21.130435
63
0.6893
03024bc18ed57bce3487def602f6f8ecc330d18f
1,620
package com.space.cornerstone.framework.core.redis; import com.space.cornerstone.framework.core.util.RedisLockUtil; import lombok.extern.slf4j.Slf4j; /** * 锁的延长时间守护线程 * * @author chen qi * @date 2020-10-29 18:50 **/ @Slf4j public class LockExpandDaemonRunnable implements Runnable { private final RedisClient...
27.931034
102
0.588272
b84f7dde2b7e8b2aec9d9f8e5606a34fbc8114b8
778
package io.pivotal.db; import org.springframework.data.gemfire.mapping.Region; import org.springframework.data.gemfire.repository.Query; import org.springframework.data.gemfire.repository.query.annotation.Import; import org.springframework.data.repository.CrudRepository; import io.pivotal.model.Property; @Region("Pr...
32.416667
76
0.802057
8a2321ff68f2bac477a0cfc6810b9ea54acf5590
11,060
/* * Copyright (C) 2021 Gwinnett County Experimental Aircraft Association * * 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 * *...
35.335463
100
0.608951
2aced7fcd1671347e66fb291a5e9b8715e62b393
193
package catv.product; /** * Created by Ray on 2016/2/14. */ public class CyberPctBusiness extends PctBusiness { public CyberPctBusiness(String pcttype) { super(pcttype); } }
17.545455
51
0.678756
ff4dbd788cdd51ace94c713996dbaecc7148c683
357
package com.xiaoTools.util.ClassLoaderUtilTest; import com.xiaoTools.util.classLoaderUtil.ClassLoaderUtil; import org.junit.Test; public class ClassLoaderUtilTest { @Test public void test_getClassLoader(){ // jdk.internal.loader.ClassLoaders$AppClassLoader@55054057 ClassLoader a = ClassLoaderUtil.getClassLoad...
21
61
0.795518
256cd5401a82a3cb448189fe6183fc9368806ee3
589
package org.openstreetmap.atlas.tags.filters.matcher.parsing.tree; import java.util.List; /** * @author lcram */ public class BangOperator extends UnaryOperator { public BangOperator(final ASTNode child) { super(child); } @Override public String getName() { return "BANG_" + ...
17.848485
76
0.628183
d4351b26c449f40fd8112a0b64d06803490a5b9a
2,950
/* * This file was automatically generated by EvoSuite * Fri Aug 24 09:33:05 GMT 2018 */ package Newzgrabber; import org.junit.Test; import static org.junit.Assert.*; import Newzgrabber.Base64Decoder; import Newzgrabber.BufferedCustomInputStream; import Newzgrabber.Newzgrabber; import java.io.ByteArrayOutputStream...
42.142857
176
0.767458
4da4fc1b173c87d4f2a933465c561938ff56abbe
10,684
/* * Licensed to the Hipparchus project under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The Hipparchus project licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
47.066079
122
0.627948
75f39a2ea59d4dc759c16059d1810b383e396b3c
565
package commonadapter.adapters.nds.lane.attrMaps; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @JsonInclude(JsonInclude.Include.NON_NULL) @JsonPropertyOrder({ "isExternalLinkReference", ...
33.235294
58
0.80885
f4a077a4ba21c26497993a98f60831d160803cf1
7,083
/******************************************************************************* * Copyright (c) 2014-2016 European Molecular Biology Laboratory, * Heidelberg, Germany. * * Licensed under the Apache License, Version 2.0 (the * "License"); you may not use this file except in * compliance with the License. You ma...
33.728571
129
0.62883
8225a17df2b638c1f3ecf4486c9c42013d32a28e
23,672
package io.choerodon.iam.app.service.impl; import io.choerodon.asgard.saga.annotation.Saga; import io.choerodon.asgard.saga.producer.StartSagaBuilder; import io.choerodon.asgard.saga.producer.TransactionalProducer; import io.choerodon.core.exception.CommonException; import io.choerodon.core.iam.ResourceLevel; import i...
49.010352
150
0.648868
a2c974f7e64a41060bc05184df1865157afba7d9
3,959
package com.webstarters.lazycomponents.controller; import java.io.File; import java.io.IOException; import java.io.StringWriter; import java.io.Writer; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.util.Arrays; import java.util.HashMap; import ...
41.239583
150
0.777974
617bcb9f694080a7e1f085d01350945549ada1d6
2,183
package com.rts.services.security; import org.springframework.security.core.Authentication; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.context.SecurityContextHolder; public class UserType { private boolean selected = false; private boolean opera...
18.5
90
0.642694
c49e0b51034c07ba2fe50cb7317183ba33a32f1c
198
/** * */ package grapheus.persistence.exception; /** * @author black * */ public class DbNotReadyException extends RuntimeException { private static final long serialVersionUID = 1L; }
13.2
59
0.70202
a00d86b15c3fd77208167c4a39941deb4cb10e16
4,868
package edu.cmu.sv.ws.ssnoc.common.utils; import edu.cmu.sv.ws.ssnoc.data.po.MemoryPO; import edu.cmu.sv.ws.ssnoc.data.po.UserPO; import edu.cmu.sv.ws.ssnoc.dto.Memory; import edu.cmu.sv.ws.ssnoc.dto.User; import edu.cmu.sv.ws.ssnoc.data.po.StatusPO; import edu.cmu.sv.ws.ssnoc.dto.Status; import edu.cmu.sv.ws.ssnoc.da...
23.291866
77
0.668447
bc6e831fb28d3bed7fda1773584014815c832345
2,053
/** * Copyright 2018-2020 stylefeng & fengshuonan (https://gitee.com/stylefeng) * <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 ...
28.123288
79
0.717487
11553c9ec7cae2cf2292aab87fa9bb650fee1682
812
package edu.millersville.uml_editor.modelTest; import edu.millersville.uml_editor.model.*; import static org.junit.Assert.assertEquals; import org.junit.Test; public class RelationshipTest { /* test constructor and getters */ @Test public void testConstructorandGetters() { ClassObject class1 = new ClassObje...
35.304348
99
0.741379
3363f7e0f41c732c3cb0a9d36fabf79a16b6753a
451
public static boolean binarySearch(int target, int{} numbers) { int floor = -1; int ceilingIndex = numbers.length; while (floor + 1 < ceiling) { int searchRange = ceiling - floor; int halfRange = searchRange / 2; int middle = floor + halfRange; int middleVal = numbers[middle]; if (middleVal == target)...
16.703704
63
0.631929
2a7ec6b4da64dcd4afc479aa0d59a35bd452816a
4,985
import java.io.*; import java.net.*; import java.util.*; import java.security.*; class BlockChain { int index; List<Object> chain = new ArrayList<Object>(); HashMap<String, DSA> dsa; BlockChain(HashMap<String, DSA> dsa)throws Exception { this.index=0; this.dsa=dsa; chain.add(createGenisis()); } ...
29.672619
169
0.601805
3e419280091fe10ff0e72d1fc7724a3585a84e36
9,942
/* * 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 distributed under t...
49.462687
182
0.742406
f4f12399820c7794a19d8e3ff4031634f1386298
5,618
/* * ==================================================================== * StreamEPS Platform * * (C) Copyright 2012. * * Distributed under the Modified BSD License. * Copyright notice: The copyright for this software and a full listing * of individual contributors are as shown in the packaged copyright...
39.843972
93
0.698113
5c964363bc2f5c5abbe4436b6ea8b497c94f18f4
4,934
/* * Copyright 2016 Ashwin Nath Chatterji * * 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 ...
33.337838
96
0.592217
51bd3dcd43f0f1ee2006241fe16480f18d02f447
1,422
package com.sc2toolslab.sc2bm.ui.presenters; import com.sc2toolslab.sc2bm.domain.RaceEnum; import com.sc2toolslab.sc2bm.ui.providers.BuildOrdersProvider; import com.sc2toolslab.sc2bm.ui.providers.IFilterUpdated; import com.sc2toolslab.sc2bm.ui.views.INavDrawerView; public class NavDrawerPresenter implements IPresente...
35.55
115
0.817159
2e76e58b066179077ca117a2c89bda80ccb07fd0
2,010
package com.tml.server.system.controller; import com.tml.api.system.entity.GatewayBlockListLog; import com.tml.common.core.entity.CommonResult; import com.tml.common.core.entity.QueryRequest; import com.tml.common.core.entity.constant.StringConstant; import com.tml.common.core.exception.BrightException; import com.tml...
37.222222
151
0.768657
9c99bfbc2a9e9c10ffae1d3d5aa2f61ddeaff146
1,162
package com.dlam.pptowers.entities; import net.minecraft.block.entity.BlockEntityType; import net.minecraft.entity.projectile.ProjectileEntity; import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Position; import net.minecraft.util.math.PositionImpl; /* Used for towers that fire projectiles ...
38.733333
123
0.697935
26175b3bb4385e1761d56005d4f90c6f4df28683
316
package caca.extraction; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class PathFinderApplication { public static void main(String[] args) { SpringApplication.run(PathFinderApplication.class, args); } }
22.571429
68
0.825949
0c98b5208fb1d28c0cd73fba4cfcbaf0f1e9af36
1,041
package com.ettrema.http; import com.ettrema.http.caldav.ITip; import com.ettrema.http.caldav.ITip.StatusResponse; /** * * @author brad */ public class SchedulingResponseItem { // Eg mailto:wilfredo@example.com private String recipient; private ITip.StatusResponse status; private String iCalText;...
20.411765
93
0.659942
025c73fb577ce16b357f1f6e3b2ceed74bfded83
622
package test.org.springdoc.api.app33; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.responses.ApiResponse; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RestCo...
34.555556
87
0.768489
64f59c8adcd894c62dfb1ade383bb2fbe9fde40a
1,150
package com.sample.casino.model; import java.text.DecimalFormat; /** * Bean <code>QueryResult</code> is used to store queries from <code>slotmachines</code> table. */ public class QueryResult { private String id; private double sentiment; private String casinoid; private double sum; private i...
17.96875
95
0.681739
88c0aea1723d599078f764377394b2bafea76b72
1,958
package com.rossos.cryptography; import java.util.Scanner; /** * @author Daniel Rossos * */ public class Vigenere extends Cipher{ private String key; /** * @param encOrDec int deciding to encode (0) or decode (1) * @param phrase String for encoding or decoding * @param key String that will be comp...
25.763158
68
0.620531
3540755bcc13855d82c58f8ad337da5a1a372cb3
1,335
package dk.in2isoft.onlineobjects.services; import java.util.List; import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSessionEvent; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.eclipse.jdt.annotation.Nullable; import com.google.common.collect.Lists...
27.244898
98
0.764794
bfe4cb1a2bb82d2df522b39c6b019d2e484b9454
390
public class S372 { public int superPow(int a, int[] b) { return dfs(a, b, b.length - 1); } int dfs(int a, int[] b, int u) { if (u == -1) return 1; return pow(dfs(a, b, u - 1), 10) * pow(a, b[u]) % 1337; } int pow(int a, int b) { int ans = 1; a %= 1337; ...
21.666667
63
0.433333
af38c3a747fdd04cfc65f6a5c408d8bacd073d0a
6,536
/* * 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.441558
120
0.747705
e53801554aba2ec144495e61229e8e6fb2f4fff2
312
package Eventos; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.entity.PlayerDeathEvent; public class DeathEvent implements Listener { @EventHandler public void morrer(PlayerDeathEvent e) { e.setDeathMessage(null); e.setDroppedExp(0); } }
20.8
49
0.753205