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
cfc33cc44379b5bfc5f708629414738c1e9ff279
181
package de.dirkdittmar.offheapCache; import java.util.concurrent.ConcurrentMap; public interface CompactableConcurrentMap<K, V> extends ConcurrentMap<K, V> { void compact(); }
18.1
77
0.790055
b52d6308cb206d2626cc3f1f3d979ae58640dddd
493
package ua.com.fielden.platform.dao.exceptions; /** * Runtime exception that is thrown when attempting to save an entity as new, but it already exists. * * @author TG Team * */ public class EntityAlreadyExists extends EntityCompanionException { private static final long serialVersionUID = 1L; public Ent...
24.65
100
0.709939
fa9eea62750a6ab0cb31f2265c94f56c4f7797f3
668
package com.dynamicintegration.Dynamic1; import com.thingmagic.ReadExceptionListener; import com.thingmagic.Reader; import com.thingmagic.ReaderException; import java.util.ArrayList; public class D1ReadExceptionListener implements ReadExceptionListener { private final ArrayList<ReaderException> exceptions = new ...
24.740741
76
0.744012
72efa5bae06d6e82746e3bd1e222d9d7ce3d1610
4,095
package software.amazon.kendra.datasource.convert.cde; import static org.assertj.core.api.Assertions.assertThat; import static software.amazon.kendra.datasource.TestUtils.DATE_INSTANT; import static software.amazon.kendra.datasource.TestUtils.DATE_STRING; import static software.amazon.kendra.datasource.TestUtils.LONG;...
46.011236
104
0.787302
1c554a862b39d6c35a75b54d6fe494344dbcfa9e
226
package strict.query; public class QueryToken { public String token; public double textRankScore=0; public double posRankScore=0; public double coreRankScore=0; public double totalScore=0; public double bordaScore=0; }
20.545455
31
0.792035
b36890e7fb4e08793d7d85af4b61191644af5067
1,039
package com.fangjc1986.ezmpro.sys.service.impl; import com.fangjc1986.ezmpro.sys.model.AccountLog; import com.fangjc1986.ezmpro.sys.model.User; import com.fangjc1986.support.service.BaseMongoService; import com.fangjc1986.support.util.IPUtils; import org.springframework.data.mongodb.core.query.Update; import org.sprin...
24.162791
73
0.694899
b6254bfd5c8d8152a95b38b6f0e1842dcb3253b6
3,475
package dagger.internal.codegen.collect; import dagger.internal.codegen.base.Util; import java.util.AbstractMap; import java.util.LinkedHashMap; import java.util.Map; import java.util.Objects; import java.util.Set; public class ImmutableMap<X, Y> extends AbstractMap<X, Y> { private static final ImmutableMap<?, ?> ...
25.181159
94
0.621871
388123c451455d15d2e480b80b8352ba89a52698
655
package com.emc.rpsp.fal.wrappers; import com.emc.rpsp.fal.commons.SystemReportSettings; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement;...
25.192308
54
0.835115
337c0a96671e3c4d96b11bf570b84711c1f699e4
2,182
/* * @(#)SpecimenPrecessionError.java created 08/10/2002 Mesiano * * Copyright (c) 2002 Luca Lutterotti All Rights Reserved. * * This software is the research result of Luca Lutterotti and it is * provided as it is as confidential and proprietary information. * You shall not disclose such Confidential Informatio...
25.97619
81
0.72044
c847a53bb969c0b1d028087cf4d5f014a7546f0a
1,117
package com.hopding.merp.android; import java.util.regex.Matcher; import java.util.regex.Pattern; /** * Used to validate IP address strings: * <p> * <a href="https://www.mkyong.com/regular-expressions/how-to-validate-ip-address-with-regular-expression/"> * www.mkyong.com/regular-expressions/how-to-validate-ip...
31.914286
108
0.602507
dcf5852fa975f46cb025a4e0c62537c83193039c
2,037
package JIn.java.exam06; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.net.Socket; import java.net.UnknownHostException; public class MyClient { private Socket socket = null; priv...
24.841463
82
0.614138
d88fe205d72876b46fd4ff89f4d7c1d14c420cfb
2,393
/** * 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...
39.229508
109
0.745508
59b9ca8fc696863d6e4b6e1bfbd85722990d3d91
2,305
package com.project.convertedCode.globalNamespace.namespaces.Symfony.namespaces.Component.namespaces.Console.namespaces.Formatter.classes; import java.lang.invoke.MethodHandles; import com.runtimeconverter.runtime.passByReference.PassByReferenceArgs; import com.runtimeconverter.runtime.classes.RuntimeClassBase; import...
37.786885
138
0.735792
179b5bf0bf7f85134233b81227ad57100765d5d7
1,308
/** * https://leetcode.com/problems/odd-even-linked-list/ * Author: KKDJoseph * Method: 目标是把奇偶位置的元素分开,一开始想的是用fast和slow双指针,但是想到.next.next会有null的情况 * 所以就只用一个指针往下走,两个指针用来记录odd和even * 取巧的一点是,每次得到了当前的odd和even,你要让temp指针往下走完之后,把odd与他的next断开,因为他的next是even的节点 * 不断开就会成环,两串就会交织在一起 * * Time Complexity: O(n) * Space Comple...
27.829787
77
0.565749
a948bb4e9d8ff9e85ab702db62d77056847f1f0a
2,258
package seedu.address.model; import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotEquals; import static org.junit.jupiter.api.As...
34.738462
87
0.726306
cafbd67c46ba8c6052acf7c3c3708a3fe3da4b19
12,792
/* * 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 ...
31.663366
146
0.659162
621072cb596cfcf43113be749007f40a3a534bb5
973
package fi.nls.oskari.control.statistics.plugins; import fi.nls.oskari.annotation.Oskari; import fi.nls.oskari.worker.ScheduledJob; import java.util.Map; /** * Triggers update on plugins that support it */ @Oskari("StatisticsDatasources") public class ScheduledStatisticsDatasourceUpdate extends ScheduledJob { ...
30.40625
108
0.672148
67175af90756e926b76eb909e4076f0b4ee98b82
976
package com.koushikdutta.async; import com.koushikdutta.async.a.b; public class F implements b { private StringBuilder a = new StringBuilder(); private G b; static { if (!F.class.desiredAssertionStatus()); for (boolean bool = true; ; bool = false) { c = bool; return; } } pu...
18.074074
83
0.518443
94e232c0934acd076be1c9d070ccb5b0c0b20b8d
3,263
package net.gdface.facelog; import static com.google.common.base.Preconditions.*; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.google.common.base.Strings; /** * 令牌状态上下文 * @author guyadong * */ public class TokenContext { public static final Logger logger = LoggerFactory.getLogger(Toke...
22.349315
88
0.676984
5517a121381a97431158e39a234925d184cd30f2
1,137
package uk.me.richardcook.sinatra.generator.dao; import org.springframework.stereotype.Repository; import org.springframework.transaction.annotation.Transactional; import uk.me.richardcook.sinatra.generator.model.ForOther; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import jav...
26.44186
119
0.747581
0fc02bb2adfa9c03348bfe9c3aedccb33e86c90a
9,944
/* * Copyright 2016-2018 Michal Harish, michal.harish@gmail.com * * 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 u...
36.558824
140
0.653761
a30881d2d67081083624975d8950ef30358c9ce2
437
package shows; import java.util.LinkedList; public class ShowList extends LinkedList<Show> { public boolean contains (Show show) { for (Show testShow : this) { if (testShow.getURL().equals(show.getURL())) { return true; } } return false; } public void print() { int counter = 0; for (Show curr...
19
63
0.645309
1e31e53428f2517a7d91e89d74d31f0156c20a4e
68,119
package ij.plugin; import ij.*; import ij.process.*; import ij.gui.*; import ij.io.*; import ij.plugin.Animator; import java.awt.*; import java.awt.image.*; import java.io.*; import java.util.*; import javax.imageio.ImageIO; /** <pre> * ImageJ Plugin for reading an AVI file into an image stack * (one slice per video...
43.250159
155
0.68191
6c9607e7ea9e7368220a3dcdca4d07fa45d6e25c
14,544
/* * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free ...
35.130435
117
0.633113
7cf3c1861616e7c78bcd741f8656aabad05a7646
236
package problem_001; public class Problem_001 { public static void main(String []args) { int sum = 0; for(int i = 1; i < 1000; i++) sum += (i % 3 ==0 || i % 5 == 0) ? i : 0; System.out.print(sum); //233168 } }
21.454545
45
0.529661
1f7a5d36454e2a9d905c08753e02c87553d1f522
620
package io.github.ust.mico.readandforward; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.kafka.core.KafkaTemplate; import org.springframework.stereotype.Component; import lombok.extern.slf4j.Slf4j; @Component @Slf4...
24.8
63
0.766129
6ce2213387bf35f768e4a14b0fcd775a90580b55
1,213
package org.jeecg.modules.cable.mapper; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import org.apache.ibatis.annotations.Param; import org.jeecg.modules.cable.entity.Inventory; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import org.jeecg.modules.cable.vo.InventoryListVo; import org.j...
30.325
141
0.736191
717575529f2e8f3e00bd56e09eed4617ff1c68cc
2,285
package org.broadinstitute.hellbender.engine.spark.datasources; import htsjdk.variant.variantcontext.VariantContext; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.io.LongWritable; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api...
38.083333
114
0.709847
e1f1f1f7bc9f855e198fcec0ebc9648c9015a869
3,408
package es.codeurjc.gp_rest.objects; import java.util.ArrayList; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.OneToMany; import javax...
24.342857
99
0.664613
22cbf47556ec4b30dd024d1ce7388526e1e8782d
1,875
/* * Copyright by Zoltán Cseresnyés, Ruman Gerst * * Research Group Applied Systems Biology - Head: Prof. Dr. Marc Thilo Figge * https://www.leibniz-hki.de/en/applied-systems-biology.html * HKI-Center for Systems Biology of Infection * Leibniz Institute for Natural Product Research and Infection Biology - Hans Kn...
29.296875
100
0.665067
b080c445498101b1499d297adf86c2a922c8f0bc
520
package com.example.server; import lombok.extern.log4j.Log4j2; import org.springframework.messaging.handler.annotation.MessageMapping; import reactor.core.publisher.Flux; import java.time.Duration; /** * @author cui */ @Log4j2 public class KeeperHandler { @MessageMapping("client-status") public Flux<String...
26
116
0.730769
ee70b90595ed8c2e516b9e89ad4a1342874133bb
8,441
package org.apache.log4j; import java.text.MessageFormat; import java.util.ArrayList; import java.util.Enumeration; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.log4j.helpers.AppenderAttachableImpl; import org.apache.log4j.helpers.LogLog; import or...
30.919414
185
0.573747
ead8d9f375c766377cbdad9a47b10461eb97a124
2,030
package com.revolsys.raster; import org.jeometry.common.data.type.DataType; public abstract class AbstractBand implements Band { private DataType dataType; private int height; private int width; @Override public byte getByte(final double x, final double y) { // TODO Auto-generated method stub ret...
20.09901
70
0.692118
55054f42f5c7279e01468ae58d6ab6e3a263ddff
1,472
package bungee.vaccum.module.teamchat; import bungee.vaccum.api.vBungeeAPI; import bungee.vaccum.module.teamchat.commands.TeamChatCommand; import bungee.vaccum.module.teamchat.listener.JoinListener; import net.md_5.bungee.api.plugin.Plugin; import java.io.IOException; import java.util.ArrayList; import java.util.UUID...
32
152
0.699728
4d12f977b1bf502ebe5e1eba72f3ba72ffe90fce
5,141
public void run() { Socket s = null; OutputStream out = null; DataInputStream in = null; try { int count = 0; while (count < 3) { count++; int portAsInt = 0; try { ...
45.495575
111
0.414705
1cda4c4b338bc9e2130b2bd3a6089bfa8b95f91a
57
package dsa.container; public class ContainerTestFX { }
11.4
30
0.789474
8bcb0a50ce4be7bc8ba39b5777d17360ab4d6435
8,620
/******************************************************************************* * ___ _ ____ ____ * / _ \ _ _ ___ ___| |_| _ \| __ ) * | | | | | | |/ _ \/ __| __| | | | _ \ * | |_| | |_| | __/\__ \ |_| |_| | |_) | * \__\_\\__,_|\___||___/\__|____/|____/ * * Copyright (c...
33.281853
106
0.501624
1f769eaccf8cedbde0bcf7fc8b03bf04759ea7a2
930
package org.symphonyoss.symphony.apps.authentication.spring.configuration; import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Bean; import org.springframework.cont...
35.769231
88
0.831183
7dbd7ffae6f7b97643d8679befd6afb3fc6100a4
844
package ultimategdbot.guildsettings; import sx.blah.discord.handle.obj.IGuild; import sx.blah.discord.handle.obj.IRole; import ultimategdbot.exceptions.InvalidValueException; import ultimategdbot.util.AppTools; /** * Guild setting which value is a Discord role * * @author Alex1304 * */ public abstract class Rol...
22.210526
72
0.735782
819f404586e724ffbaf65b6428d618e7fe0eb609
484
package br.com.otavio.data.analysis.entity; import java.math.BigDecimal; public class SaleItem { private final String id; private final int quantity; private final BigDecimal price; public SaleItem(final String id, final int quantity, final BigDecimal price) { this.id = id; this.quantity = quantity; this....
17.285714
79
0.719008
48b34513d5209c1b5cacb0eb0d5b530d5c936576
295
/** * Puzzle game using Java AWT * Copyright @ 2011 Trac Quang Hoa */ package hoaftq.puzzle.game; /** * Entry class of puzzle game */ public class Puzzle { public static void main(String[] args) { GameFrame gameFrame = new GameFrame(); gameFrame.setVisible(true); } }
18.4375
42
0.650847
03b9c449f6cd169c6fbcdc4a8118b041ff0c2329
2,420
/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ package com.aws.greengrass.lambdatransformer.integrationtests; import com.aws.greengrass.dependency.State; import com.aws.greengrass.lifecyclemanager.GlobalStateChangeListener; import com.aws.greengrass...
39.672131
123
0.756198
935ce350834ccf4c577c526d8157d530d27b96c3
341
package graphics.component; import entity.Component; import math.Vector3f; import math.Vector4f; public class LineRenderComponent implements Component { public Vector3f p1, p2; public Vector4f color; public LineRenderComponent(Vector3f p1, Vector3f p2, Vector4f color) { this.p1 = p1; this.p2 = p2; this.c...
17.05
69
0.747801
bd7fec5f305938f244b4ec2067272d37ea5c11e0
725
package egovframework.com.cmm.service.impl; import egovframework.rte.psl.dataaccess.EgovAbstractMapper; import javax.annotation.Resource; import org.apache.ibatis.session.SqlSessionFactory; /** * EgovComAbstractDAO.java 클래스 * * @author 서준식 * @since 2011. 9. 23. * @version 1.0 * @see * * <pre> * << 개정이력(M...
20.714286
68
0.644138
bfc6327a72e87fef1c82fe1f5acd7392d33174d0
18,761
package hr.fer.zemris.jcms.service2.course.assessments; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import hr.fer.zemris.jcms.beans.cached.CourseScoreTable; import hr.fer.zemris.jcms.bean...
40.873638
222
0.674857
29011470c6e99f335c94d3516596eb5f1c6ff8c8
14,234
package connplantsv2.connplantsv2; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.HttpURLConnection; import java.net.MalformedURLException; import java.net.URL; import java.sql.Statement; import javax.xml.parsers.Docu...
31.146608
171
0.698117
71b9e3c89aead93d07ba0a575417f1a63ff1d443
3,250
package DSS.GestFuncionarios; import DSS.Exceptions.CredenciaisInvalidasException; import DSS.Exceptions.UsernameJaExisteException; import DSS.Exceptions.UsernameNaoExisteException; import java.util.Map; /** * Interface IGestFuncionariosFacade que contém os seguintes métodos */ public interface IGestFuncionariosFa...
36.516854
156
0.736
9e3868de8cc1807ea84948b633ed03845dcfb9e1
2,163
/* * Copyright (c) 2017 Ampool, 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 applicabl...
27.379747
100
0.701803
97690a54a78346ee83c7da2b06951a3d657a9cca
1,694
package net.chinhung.application.component.order.impl.create; import net.chinhung.application.component.order.Create; import net.chinhung.application.component.order.CreateResult; import net.chinhung.application.component.inventory.InventoryComponent; import net.chinhung.application.component.inventory.InventoryQuery;...
42.35
129
0.744982
30a98d87d76bfa70a8ae68032fcf96e819ebaa05
1,642
package com.example.paywhere.web.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import springfox.documentation.builders.ApiInfoBuilder; import springfox.documentation.builders.PathSelectors; import springfox.documentation.builders.RequestHandler...
35.695652
130
0.724726
06cfee539f42389312ec835b4cfb9d864500a2ad
12,989
/* * Project:Easy Web Framework * Description: * EasyFK stands for Easy Web Framework.It's an open source product for E-Business / E-Commerce.It * was launched by a chinese Hezhiping(QQ:110476592) in 2015.The goal of EasyFK is to provide a * foundation and starting point for reliable, secure , simple-to-use ,cost...
39.006006
200
0.62014
1d52de6355a9e67fe6d4bb1db997a2c963d4c8c4
1,389
package com.jibug.frpc.common.config; import com.jibug.frpc.common.cluster.enums.RequestType; import com.jibug.frpc.common.codec.compress.CompressEnum; import com.jibug.frpc.common.codec.serialize.SerializeProtocolEnum; /** * @author heyingcai */ public class MethodConfig { private String methodName; priv...
22.403226
79
0.703384
f7b0acabdfa74d22cf228ff2bb5e5ec1c384f19c
443
package com.silentmatt.dss; import java.io.File; import java.net.URL; import java.util.List; public interface Configuration { boolean colorTestOutput(); boolean compressOutput(); List<String> getDefines(); File getOutputFile(); URL getURL(); boolean isSuccess(); boolean isTest(); ...
14.766667
34
0.683973
12b470352c63880c7ef9b0034a11ad32fb825949
458
package poo.conta; public class ContaEspecial extends Conta { private double bonus; public ContaEspecial (String numero) { super(numero); bonus = 0; } public void renderBonus() { super.creditar(bonus); bonus = 0; ...
22.9
46
0.484716
6c1a5b156e9fe98df818cc03da627309ce4460c0
3,133
/* * Copyright (C) 2021 xuexiangjys(xuexiangjys@163.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 a...
24.865079
128
0.604213
0de81b850828618abefbf614450fa6f6b4cced1d
2,434
/* * Copyright 2016 SEARCH-The National Consortium for Justice Information and Statistics * * 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-...
31.61039
88
0.772802
abdbf49e004bfa57bc4c643069ce727bc2add748
264
package cn.com.smart.report.dao; import org.springframework.stereotype.Repository; import cn.com.smart.dao.impl.BaseDaoImpl; import cn.com.smart.report.bean.entity.TReportField; @Repository public class ReportFieldDao extends BaseDaoImpl<TReportField> { }
22
63
0.806818
9a3e24f83626055b4b2ee085fdb9a4f9d70d3687
927
/* */ package org.apache.aingle.reflect; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Declares that a Java type should be represented by an AIngle union ...
34.333333
91
0.77562
55a1b9e52928515829511273e4a16e51434940d1
1,473
package medium._074; /** * <pre> * author : 残渊 * time : 2019/06/18 * desc : 编写一个高效的算法来判断 m x n 矩阵中,是否存在一个目标值。该矩阵具有如下特性: * 每行中的整数从左到右按升序排列。 * 每行的第一个整数大于前一行的最后一个整数 * </pre> */ public class Solution { /** * 输入: * matrix = [ * [1, 3, 5, 7], * [1...
23.380952
70
0.412084
f829586d0a23e65600ba0abf2f72d9831a320f3d
2,786
package com.moon.core.lang; import com.moon.core.io.FileUtil; import com.moon.core.util.MapUtil; import org.junit.jupiter.api.Test; import java.util.Date; import java.util.Map; import static org.junit.jupiter.api.Assertions.assertEquals; /** * @author moonsky */ public class ArrayUtilTest { @Test void te...
35.265823
103
0.591529
b3c214814b587714edb5203ce8e2f6d97a5249f8
2,877
/* *************************************************************************** * Mica - the Java(tm) Graphics Framework * *************************************************************************** * NOTICE: Permission to use, copy, and modify this software and its * * docum...
47.95
98
0.456031
15fc564c65cb3c1252f3e31e14015edb8c6c72d6
1,195
package de.longor.talecraft.voxelator.shapes; import net.minecraft.util.BlockPos; import net.minecraft.util.MathHelper; import de.longor.talecraft.util.BlockRegion; import de.longor.talecraft.util.MutableBlockPos; import de.longor.talecraft.voxelator.CachedWorldDiff; import de.longor.talecraft.voxelator.VXShape; publ...
28.452381
101
0.754812
4458ed38e2217ec60034491ebfa94dc62fc1ebcb
8,331
/* * Fabric3 * Copyright (c) 2009-2015 Metaform Systems * * 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...
35.451064
160
0.581923
f546a00bcc2fd07a3df017fbacfb87d8c62265a6
4,368
package com.evernym.sdk.vcx; import com.evernym.sdk.vcx.schema.InvalidSchemahandleException; import com.evernym.sdk.vcx.schema.SchemaApi; import com.evernym.sdk.vcx.vcx.VcxApi; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.DisplayName; import org.junit.j...
45.030928
165
0.743819
ad76e17e6327d733ad776b0e7deca26cf7285919
422
package scripts; import ir.soroushtabesh.hearthstone.controllers.game.scripts.MinionBehavior; import ir.soroushtabesh.hearthstone.controllers.game.viewmodels.MinionObject; public class Taunt extends MinionBehavior { @Override public void onCardPlay() { if (!(getOwnerObject() instanceof MinionObject)) ...
28.133333
77
0.720379
8e6ca435b9ce29af86932b0ce79335c21d88d786
6,382
/* * Copyright [2013-2021], Alibaba Group Holding Limited * * 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...
36.468571
115
0.646662
38aed255822d600f76499fecee6c2cadf3c46a54
5,730
package com.alipay.api.response; import java.util.Date; import java.util.List; import com.alipay.api.internal.mapping.ApiField; import com.alipay.api.internal.mapping.ApiListField; import com.alipay.api.domain.TradeFundBill; import com.alipay.api.AlipayResponse; /** * ALIPAY API: alipay.trade.query respo...
21.222222
120
0.698778
28e5b811a3eea41060fdb5076e7148cb467b0634
507
package com.huan.common.aspect.check; import javax.validation.groups.Default; import java.lang.annotation.*; /** * 在方法、类、参数上添加该注解开启校验 * * @author <a href = "mailto:njpkhuan@gmail.com" > huan </a > * @date 2021/1/26 * @since 1.0.0 */ @Target({ElementType.TYPE, ElementType.METHOD, ElementType.PARAMETER}) @Retenti...
23.045455
70
0.708087
57ced5650c65ed2e745de59543a72f6dbef1b29d
1,371
package pers.li.funning.utils; import org.springframework.web.context.ContextLoader; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.request.RequestAttributes; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.contex...
35.153846
113
0.765864
0f3cc4e761f7bc4002038f039ee142a35754c27c
1,114
package com.udacity.critter.domain.model.user; import lombok.Getter; import lombok.Setter; import java.util.Set; import javax.persistence.*; import java.time.DayOfWeek; import lombok.NoArgsConstructor; import lombok.AllArgsConstructor; @Entity @Getter @Setter @NoArgsConstructor @AllArgsConstructor @Table(name = "empl...
24.217391
57
0.710952
bff49d5fdfa825c0c6869ef029e1a064acc0e1f9
297
package org.enricogiurin.ocp11.practice.ch3; public class Dinosaur { class Pterodactyl extends Dinosaur {} public void roar() { var dino = new Dinosaur(); dino.new Pterodactyl(); //valid new Dinosaur.Pterodactyl(); //valid ...Dinosaur prefix is optional } }
24.75
74
0.653199
155901ded9b33fb21073cba9f9c6ebb8c00c6ab8
3,330
/* * 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 Interface.Home; public class JpHome extends javax.swing.JPanel { /** * Creates new form JpHome */ public Jp...
44.4
127
0.691592
013f08a169c81895ffc7f2cb7fb7d473d567d277
105
package com.monitor4all.tinySpring.service; public interface HelloService { void sayHelloWorld(); }
17.5
43
0.780952
91db069a537a9d32e884898b61eb098e12bcb09a
3,345
/* * 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 ...
42.884615
94
0.749776
54f994c7855dba6d9027142aa78fe09d473227a6
494
package glomer.mongodb.exception; public class DocumentHasChildrenException extends Exception { private static final long serialVersionUID = 1L; public DocumentHasChildrenException() { } public DocumentHasChildrenException(String message) { super(message); } public DocumentHasChildr...
22.454545
74
0.714575
54abbc31175820bcacb8bc1227f0c774fc1a9c18
3,953
package de.wackernagel.android.example.sidekick; import android.content.Intent; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Te...
35.936364
109
0.627119
889135fef746c5792bf0ca28a927c680825459a7
2,037
package AlgeRule; import AlgeNode.AlgeNode; import AlgeNode.SPJNode; import AlgeNode.EmptyNode; import SymbolicRexNode.BoolPredicate; import SymbolicRexNode.RexNodeUtility; import SymbolicRexNode.RexNotIn; import SymbolicRexNode.SymbolicColumn; import Z3Helper.z3Utility; import com.microsoft.z3.BoolExpr; import com.mi...
35.12069
140
0.667649
6c71ed6eb69e4dd7200843c180e1907f9c4921e3
2,918
package search; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.lucene.analysis.en.EnglishAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.ScoreDoc; import org.deeplearning4j.models...
44.212121
120
0.727553
35c536e9470b73d3a264f332209972de5dd51373
1,733
/* * Copyright Terracotta, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
33.980392
93
0.757646
9436448bc15e77b52685515299ffdb43d1046588
1,447
/** * Copyright 5AM Solutions Inc, ESAC, ScenPro & SAIC * * Distributed under the OSI-approved BSD 3-Clause License. * See http://ncip.github.com/caintegrator/LICENSE.txt for details. */ package gov.nih.nci.caintegrator.application.study; import gov.nih.nci.caintegrator.domain.AbstractCaIntegrator2Object; import ...
30.145833
108
0.724257
88ac389cd68a35e4a74e1c5ff8e66e160b0e37ec
377
public class Solution { public int reverse(int a) { String str = String.valueOf(a); StringBuilder sb = new StringBuilder(str); String rev = sb.reverse().toString(); try{ if(a<0){ return(Integer.valueOf(rev)*-1); }else{ return(Integer.valueOf(rev)); } ...
17.952381
50
0.535809
e6cb4b06de4f9032e49c050c575bc54dcac0a339
1,709
// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package com.intellij.uiDesigner; import com.intellij.designer.DesignerEditorPanelFacade; import com.intellij.designer.LightToolWindowManager; import com.intellij.designer.ToggleE...
38.840909
140
0.794617
3246672a0030337e4d4320adce9585643f1d05de
5,201
package com.gentics.mesh.etc.config; import java.util.HashMap; import java.util.Map; import com.fasterxml.jackson.annotation.JsonIgnore; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyDescription; import com.gentics.mesh.etc.config.env.EnvironmentVariable; im...
30.958333
162
0.772928
3637894f2616eeb43857d3237b9ccf839f8f69ad
4,400
package recyclerview; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.cardview.widget.CardView; import androidx.recyclerview.widget.DiffUtil; import android...
41.509434
181
0.700455
ab0c6c34d98c219ddea625d2b1bcb10898b2adc4
1,843
package net.fushizen.invokedynamic.proxy; import org.junit.Test; import static org.junit.Assert.assertEquals; public class ArbitraryConstructorTests { public static class Superclass { final boolean b; final char c; final short s; final int i; final long l; final fl...
27.507463
99
0.467173
20b8fe72edb75b33f16f9af7747aae9c2bec02d4
311
package com.bootdo.clouddoadmin.constants; /** * @author bootdo 1992lcg@163.com * @version V1.0 */ public class Constants { public static final String USER_TOKEN_ID = "userId"; public static final String USER_TOKEN_NAME = "name"; public static final String JWT_PRIVATE_KEY = "wwwwbootdocom"; }
23.923077
65
0.729904
21e936043ac41fab12029d8b4af78c90b4c72455
1,335
package com.jakubeeee.iotaccess.core; import org.testcontainers.containers.PostgreSQLContainer; /** * Singleton class used for initialization of docker container able to run PostgreSQL database for testing purposes. It * specifies the database version, publishes database url, username and password as environmental ...
34.230769
119
0.731086
ca26c0e318e1235a442b1845e4790671efefcc77
1,442
package com.imm; import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; /** * 启动程序 * * @author imm */ @SpringBootApplic...
42.411765
79
0.389736
bd293e89afc47a2a0da22183277250e7aeb7146a
258
package com.davidbracewell.apollo.linear; /** * @author David B. Bracewell */ public class DenseFloatNDArrayTest extends BaseNDArrayTest { public DenseFloatNDArrayTest() { super(NDArrayFactory.DENSE_FLOAT); } }// END OF DenseDoubleNDArrayTest
23.454545
60
0.755814
0eaee574ac682cb7f15c15af5a71dcd467caea4e
1,884
package com.qa.ims.persistence.domain; public class Order { private Long order_id; private Long cust_id; private Double totalPrice; public Order(Long cust_id, Double totalPrice) { this.cust_id = cust_id; this.totalPrice = totalPrice; } public Order(Long order_id, Long cust_id, Double totalPrice) { this....
22.164706
86
0.666136
9175fc49ba4dba3f119650a42bc5f95185f1c790
5,565
/* * 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 ...
43.476563
105
0.647799
03e7ada0477476653590e1a547d5ce0c9dc7ffd5
139
package com.aliexpress.tool.jcombo; public class JCombo { public static void main(String args[]) { new MainWindow(); } }
15.444444
44
0.647482
255b6e2bf54a689a73c63433bc48f9b78ab15e78
1,099
package fun.yanwk.helloquarkus.rest.json; import javax.ws.rs.*; import java.util.Collections; import java.util.LinkedHashMap; import java.util.Set; @Path("/fruits") @Produces("application/json") // 虽然 RESTEasy 支持自动协商, @Consumes("application/json") // 但 Quarkus 强烈建议添加这两个注解,有助于 native 构建时分析所需 JAX-RS provider 种类,缩减程序大小。...
23.891304
116
0.646952
3217ebb460e1091706d478efd974b01fc81f93b1
370
package kr.co.sosang.sosofriends.admin.dao; import java.util.List; import java.util.Map; import kr.co.sosang.sosofriends.admin.domain.NoticeInfo; public interface AdminDAO { public int getlastNum(String k_code) throws Exception; public int addItems(Map<String, Object> param)throws Exception; public List<Map<St...
23.125
66
0.794595
8b894e83802ec8117d252558baada39ba07c80dd
32,310
/* * 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.controle.view; import com.controle.dao.CondominioDAO; import com.controle.dao.DAOFactory; import com.controle.modelo.Condo...
56.387435
191
0.653791
b9478d2c99532e1516747d270beab6fdba78972d
3,118
package som.interpreter.nodes.specialized; import com.oracle.truffle.api.CompilerDirectives; import com.oracle.truffle.api.Truffle; import com.oracle.truffle.api.dsl.Specialization; import com.oracle.truffle.api.frame.VirtualFrame; import com.oracle.truffle.api.nodes.DirectCallNode; import som.interpreter.nodes.Expre...
31.18
137
0.700128
441f2a139e5fa9641b6495779bf16f1a088a0de2
25,396
/* Copyright 2004-2019 Jim Voris * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law o...
64.293671
152
0.614979
960466717c5f8f3adb3d9f6c605a68e716de67dc
3,198
package com.cy.core.systemsetting.service; import java.rmi.MarshalException; import java.util.List; import java.util.Map; import com.alibaba.fastjson.JSON; import com.cy.base.entity.Message; import com.cy.common.utils.StringUtils; import com.cy.system.Global; import org.springframework.beans.factory.annotation.Autowi...
27.568966
105
0.74828
e371f1781bbef3827e9f979bde13820061f24b6d
96
package frc.robot.subsystems.arm; public interface IArmOI { public double getArmAngle(); }
16
33
0.75
bf42640cabe15959a4c0daf02e7c206f37032e2f
1,552
package com.camunda.demo.outerspace.wjax.service; import javax.ejb.Stateless; import javax.persistence.EntityManager; import javax.persistence.PersistenceContext; import com.camunda.demo.outerspace.wjax.entity.Article; import com.camunda.demo.outerspace.wjax.entity.StockItem; @Stateless public class StockService { ...
30.431373
148
0.717784