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
aeabdd058cc7d9ff7558ac46ead9006cb8e32d6b
1,298
package org.swingeasy; import java.awt.Component; import javax.swing.JCheckBox; import javax.swing.JTree; import javax.swing.tree.TreeCellRenderer; /** * @author Jurgen */ public class ECheckBoxTreeNodeRenderer implements TreeCellRenderer { private JCheckBox delegate; public ECheckBoxTreeNodeRenderer() { ...
28.844444
143
0.694915
6bb24b8b436b458cb7cfc40d01d11f3a6aa71505
3,798
package com.angelo.blackpearl; import android.content.Context; import android.content.SharedPreferences; import android.util.Log; import com.android.volley.Cache; import com.android.volley.Network; import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.Response; import c...
33.315789
150
0.654292
884464abd145abe7b3e144a78296ee96cb59d520
1,463
package com.faforever.gw.model; import com.yahoo.elide.annotation.Include; import lombok.NoArgsConstructor; import lombok.Setter; import org.hibernate.annotations.GenericGenerator; import javax.persistence.*; import java.io.Serializable; import java.util.UUID; @Entity @Table(name="gw_battle_participant") @Setter @In...
22.859375
87
0.678059
507d28bfa871932e19231ff5b0bd1384a4e9a176
2,644
package net.voxelindustry.brokkcolor; import java.util.Objects; import static java.lang.Integer.max; import static java.lang.Math.floor; import static java.lang.Math.min; public class Color32 { public static final Color32 ALPHA = of(-128, -128, -128, -128); private final byte red; private final byte gre...
25.180952
110
0.527988
f7d6bfd9c9963315183b6e5ac4d1769972a3754d
793
import leetcode.LeetCode004; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class LeetCode004Test { public static void sample1() { var sl = new LeetCode004.Solution(); var bufferedReader = new BufferedReader(new InputStreamReader(System.in)); ...
24.78125
82
0.571248
0d248d63b321a0a24c31b901ad9d8d727cd1aada
432
package org.unidal.cat.core.document; import org.unidal.web.mvc.AbstractModule; import org.unidal.web.mvc.annotation.ModuleMeta; import org.unidal.web.mvc.annotation.ModulePagesMeta; @ModuleMeta(name = "doc", defaultInboundAction = "home", defaultTransition = "default", defaultErrorAction = "default") @ModulePagesMet...
28.8
119
0.796296
a72d97f0e1ad60d8d405459f718f39b6b239e1f5
380
package net.kwmt27.codesearch.model; /** * https://developer.github.com/v3/repos/#list-your-repositories */ public enum SortType { Created("created"), Updated("updated"), Pushed("pushed"), FullName("full_name"); private String type; SortType(String type) { this.type = type; } ...
15.833333
64
0.610526
acd0536aad71d8890c119b695b72c3c58b606614
3,291
/* * Copyright Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file ...
21.37013
116
0.632331
c1d1ecaa0dd58f4118605813151f361691411e44
1,500
package se.mickelus.tetra.craftingeffect.condition; import net.minecraft.core.BlockPos; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.entity.player.Player; import net.minecraft.world.item.ItemStack; import net.minecraft.world.item.Items; import net.minecraft.world.level.Level; import net....
33.333333
125
0.702
8d3a4cbec42f759f73c2cd2eb371f8370cc8e655
664
package test.gov.nih.nci.cacoresdk.domain.manytomany; import junit.framework.Test; import junit.framework.TestSuite; import test.gov.nih.nci.cacoresdk.domain.manytomany.bidirectional.M2MBidirectionalTest; import test.gov.nih.nci.cacoresdk.domain.manytomany.unidirectional.M2MUnidirectionalTest; public class Man...
36.888889
101
0.799699
3483668431e96ed73397e86513f5de63e3842b5a
1,201
package ru.i_novus.ms.rdm.n2o.api.constant; import java.util.Arrays; import java.util.List; public class DataRecordConstants { public static final String DATA_ACTION_CREATE = "create"; public static final String DATA_ACTION_UPDATE = "update"; private static final List<String> DATA_ACTIONS = Arrays.asLis...
35.323529
107
0.740216
f8a232207a071244dea05db7cc77708ea6b6bfab
2,393
package de.l3s.eventkg.nlp; import java.io.FileNotFoundException; import java.io.InputStream; import java.util.HashSet; import java.util.Set; import de.l3s.eventkg.meta.Language; import jep.JepException; import opennlp.tools.util.Span; public class OpenNLPOrBreakIteratorNLPUtils implements NLPUtils { NLPUtils nlpU...
39.883333
515
0.744254
4c900a72ec0715b58db14617ba1e892aab5028b4
183
package com.codegym.task.task19.task1904; import java.io.IOException; public interface PersonScanner { Person read() throws IOException; void close() throws IOException; }
18.3
41
0.759563
bba611715cd024d7117a30e43b0985b8b2d3ff43
1,409
// // (C) Copyright 2015 Martin E. Nordberg III // Apache 2.0 License // package org.barlom.domain.metamodel.spi.commands; import javax.json.JsonObject; import java.util.UUID; /** * Service provide callback interface for completing a command after it has been persisted. */ @FunctionalInterface public interface IMe...
27.096154
91
0.633073
88623acf1557590dd6499ec7688b99af3cdac64a
1,261
/** * Copyright 2020 Webank. * * <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 required by applicable law or agreed to i...
26.829787
99
0.739096
81ef430c3849d0ac6c13eee838374f7f4293fd2f
2,383
/* * 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...
32.643836
99
0.637851
22810fe2562ec3fbdee22fa323b2d1ac15ac9134
2,204
// ============================================================================ // // Copyright (C) 2006-2021 Talend Inc. - www.talend.com // // This source code is available under agreement available at // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt // // You should have receiv...
43.215686
129
0.725953
8d04525289fc6871d8e5a73c23df9e9914b8cee2
348
package com.yk.dao; import com.yk.entity.SiteSetting; import java.util.List; public interface SiteSettingMapper { List<SiteSetting> getSiteSettingData(); Integer updateById(SiteSetting siteSetting); Integer deleteByIds(Long[] deleteIds); Integer addSetting(SiteSetting siteSetting); List<Site...
18.315789
48
0.755747
de6d03c084201af27e837ea773c4fdcfde06e413
2,033
package com.iov42.solutions.core.sdk.utils; import com.iov42.solutions.core.sdk.CryptoBackend; import java.lang.reflect.Constructor; /** * Sets the {@link CryptoBackend} to be used within the iov42 core library. * This class provides static access to an instance of {@link CryptoBackend} for convenience. * <p> * ...
35.051724
121
0.662076
1c44b4403a2e5572aa6fd16b581628493569bb22
3,888
package com.diozero.remote.server.websocket; /*- * #%L * Organisation: mattjlewis * Project: Device I/O Zero - Remote Server * Filename: MessageWrapperTypes.java * * This file is part of the diozero project. More information about this project * can be found at http://www.diozero.com/ * %...
48
98
0.769033
5e71c6fa66980cbd0c6d75c4cc52206a0d03ac63
4,953
/* * Copyright (c) 2008, Ueda Laboratory LMNtal Group <lmntal@ueda.info.waseda.ac.jp> * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * 1. Redistributions of source code m...
24.765
85
0.727842
cfa3533e1c45b6e4b5ffea9cd069bfac8862e16f
9,584
package me.varunon9.saathmetravel.ui.chat; import android.arch.lifecycle.ViewModelProviders; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.supp...
41.851528
101
0.621244
b8e30a941850a098ae1aa45a42ef69907e319d4d
4,354
import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import com.sun.j3d.utils.geometry.*; import com.sun.j3d.utils.universe.*; import com.sun.j3d.utils.image.*; import javax.media.j3d.*; import javax.vecmath.*; public class Tamagochi extends JFrame implements LeeRed { static St...
29.619048
80
0.658934
70b4cea882ce36d03c542ac700108eebaa0ed501
1,588
package top.lingkang.sessioncore.base.impl; import org.springframework.data.redis.core.RedisTemplate; import top.lingkang.sessioncore.base.FinalRepository; import top.lingkang.sessioncore.config.FinalSessionProperties; import top.lingkang.sessioncore.wrapper.FinalSession; import javax.servlet.http.HttpServletRequest;...
26.466667
106
0.721662
2a88b701d20f44a4339ef244c9656b3f79983ad8
738
package com.example.solid.ocp.negative; import org.junit.Before; import org.junit.Test; /** * Created by sbiliaiev on 09/02/2019. */ public class MoneyTransferTest { private MoneyTransfer transfer; @Before public void setup() { transfer = new MoneyTransfer(); } @Test public void w...
20.5
60
0.649051
46eb14aebda10166844bd4474ab59d2295dd08fb
3,651
/** * Copyright 2017-2019 The GreyCat Authors. 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> * Un...
34.443396
103
0.592988
8e8a55c506e7569b8509718d9718eb81bf456e04
1,556
package com.yyu.fwk.formula.expression.calculate; import junit.framework.Assert; import org.junit.Ignore; import org.junit.Test; import com.yyu.fwk.formula.expression.OperatorTestBase; import com.yyu.fwk.formula.stackversion.OperatorEnum; import com.yyu.fwk.formula.stackversion.expression.Expression; import com.yyu....
26.372881
68
0.749357
f68833dee22ff327df2a098a5707afeace8f7c2f
7,514
package seedu.address.model.occasion; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static seedu.address.logic.commands.CommandOccasionTestUtil.VALID_OCCASIONLOCATION_TWO; import static seedu.address.logic.commands.CommandOcca...
39.547368
119
0.762577
dbbd87a5cd3a9961396ac1f1041f39d5ea978dc2
1,882
import java.util.Scanner; public class Question92{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); String input = sc.nextLine(); // Write code below... String num1=""; String num2=""; char op='a'; int equal=0; int flag=0; int j=0; int check=0; int ch=0; ...
19.402062
89
0.471307
40fefa12678975ed9c0a0bb4952a18a17813647c
5,404
package de.gerrygames.the5zig.clientviaversion.protocols.protocol1_8to1_7_6_10.chunks; import io.netty.buffer.ByteBuf; import us.myles.ViaVersion.api.PacketWrapper; import us.myles.ViaVersion.api.type.Type; import us.myles.ViaVersion.api.type.types.CustomByteType; import java.io.IOException; import java.lang.reflect....
32.166667
114
0.707809
73fe14cf787c222dbe81b8f87894f530d371ac5b
1,153
/** * */ package com.github.reinert.jjschema.v1; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.Type; import java.util.Set; import com.github.reinert.jjschema.ManagedReference; /** * @author guqk * */ public class DefaultBehaviorPropertyWrapper extends PropertyWrapper...
34.939394
153
0.789245
91ad3ef394d025889ffef4edfe585223d8627a74
1,733
package org.benetech.servicenet.adapter.healthleads.persistence; import org.benetech.servicenet.adapter.healthleads.model.HealthleadsBaseData; import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.Set; class Storage { private Map<Class<? extends ...
36.104167
118
0.679746
048adca783c11af88c723c80a09d77a5ff51e342
9,761
/* * Copyright 2021 Red Hat, Inc. and/or its affiliates * and other contributors as indicated by the @author tags. * * 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.apach...
44.981567
175
0.683229
49e9c86b74bdc1efc6b9ccf42901d700f187c807
2,003
package amai.org.conventions.model; import java.io.Serializable; import java.util.Collections; import java.util.List; import amai.org.conventions.utils.Objects; public class StandsArea extends Place implements Serializable { private int id; private Integer imageResource; private float imageWidth; private float i...
19.259615
83
0.732901
4a41805f1b0a566c3fa1501906ec7bd56026e025
2,389
package org.apache.spark.smstorage; //import org.apache.hadoop.mapred.datacache.JniShm; public class ShareMemTest { public static void main(String[] args) { // JniShm shm = JniShm.getInstance(); // // int mb = 1024*1024; // int gb = 1024*1024*1024; // //long size = 1024*mb; // long size = 128*m...
28.783133
110
0.587275
55fdd1676cce9f7fbf1691e5a82abaa33bcbce83
8,694
package org.yeshen.video.librtmp.unstable.net.sender.rtmp.packets; import org.yeshen.video.librtmp.unstable.net.sender.rtmp.Util; import org.yeshen.video.librtmp.unstable.net.sender.rtmp.io.SessionInfo; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.HashMap; impo...
35.777778
144
0.606855
d59f7a29e0c2ced89fa82d96dc50f2a744fa3269
2,082
package net.anschau.cnab.caixa.cnab240; import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; /** * @author Edenir Norberto Anschau (edenir.ans@gmail.com) */ class HeaderArquivo { private final Beneficiario beneficiario; private final int nsa; private final LocalDateTime dataHoraGeracao;...
37.178571
82
0.695965
cc3345c55e4ad115ac3872467ebd1f0d89c5aea6
1,177
package com.christopher.enhancedcraft.item; import com.christopher.enhancedcraft.init.ItemInit; import net.minecraft.item.IItemTier; import net.minecraft.item.Item; import net.minecraft.item.ItemGroup; import net.minecraft.item.SwordItem; import net.minecraft.item.crafting.Ingredient; public class PlatinumSword exten...
26.155556
75
0.5548
b092cef56ae0a386b65c1831142942cd25cdd9a9
4,741
/** * */ package com.athene.core.provider; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List; import java.util.Map; import com.athene.ParameterUtils; import com.at...
25.766304
101
0.67644
52ff8826a958e41d09547fa58337c6b0b2baed2c
4,980
/** * Copyright 2020 Smart Society Services B.V. * * 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 */ package org.opensmartgridplatform.ad...
48.349515
172
0.766466
10b58acfa3cd89da967f328b903f47df6825d9e0
337
package com.design.designpattern.behavioral.chain; /** * 抽象处理者角色 */ public abstract class Producter { private Producter next; public void setNext(Producter next) { this.next = next; } public Producter getNext() { return next; } //处理请求的方法 public abstract void product(St...
16.047619
50
0.646884
12ff0055ea58f9d390a2f90bc919887a7b98f750
2,456
package org.jboss.resteasy.reactive.common.providers.serialisers; import java.io.IOException; import java.io.InputStream; import java.lang.annotation.Annotation; import java.lang.reflect.Type; import java.math.BigDecimal; import java.math.BigInteger; import javax.ws.rs.WebApplicationException; import javax.ws.rs.core....
52.255319
114
0.689739
40bc38ba9043c0c99268997997e6f725fdc039fa
3,745
package org.websync.utils; import org.websync.browserConnection.SessionWebSerializer; import org.websync.ember.EmberSerializer; import org.websync.sessionweb.PsiSessionWebProvider; import org.websync.sessionweb.models.SessionWeb; import com.intellij.openapi.application.ApplicationManager; import com.intellij.openapi.p...
37.079208
92
0.619226
96ef27b8361dc61f3b47854d7c5911fe8baa0b78
11,260
/* * #%L * ImageJ software for multidimensional image processing and analysis. * %% * Copyright (C) 2009 - 2013 Board of Regents of the University of * Wisconsin-Madison, Broad Institute of MIT and Harvard, and Max Planck * Institute of Molecular Cell Biology and Genetics. * %% * Redistribution and use in sourc...
35.077882
127
0.733037
36a0dfb24d458729c320a353902633c5b41a2103
498
package test; import org.apache.log4j.Logger; import org.junit.Test; public class Log4jTest { private Logger log = Logger.getLogger(Log4jTest.class); @Test public void logtest() { log.debug("===========debug Level============="); log.info("===========info Level=============");...
22.636364
58
0.463855
bd33bc377d562abc611c884e1eb4d95abfba973a
1,563
/** * Copyright (c) 2005 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v2.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v20.html * * Contributor...
28.418182
119
0.662188
a7bd8358c3891eab225c4523e7a648dca4473d59
182
package models; import java.util.List; //ViewModels public class HomeViewModel { //List of Symptoms public List<String> symptoms; //Patient info //public Patient patient; }
12.133333
30
0.736264
2e19181c4e1c74cf063358d5c3492e7c1d2e221a
3,390
/* * Copyright 2020 Jakob Hjelm (Komposten) * * This file is part of LeapJna. * * LeapJna is a free Java library: you can use, redistribute it and/or modify * it under the terms of the MIT license as written in the LICENSE file in the root * of this project. */ package komposten.leapjna.leapc.data; import com....
28.25
89
0.702655
b5c36dfa30528efed808e6f7d50f95264f9e3249
607
package com.jeeplus.weixin.mapper; import com.jeeplus.weixin.entities.UserInfoModel; public interface UserInfoModelMapper { int deleteByPrimaryKey(Integer recordid); int insert(UserInfoModel record); int insertSelective(UserInfoModel record); UserInfoModel selectByPrimaryKey(Integer recordid); ...
22.481481
58
0.775947
0c614e5d21aa175a110f1e4bd48eefbb168512db
612
package br.pucminas.periodo2.Grafica; /** * Impressora */ public class Impressora { protected final Tanque tanqueColorido; protected final Tanque tanquePB; public Impressora() { tanqueColorido = new TanqueColorido(); tanquePB = new TanquePretoBranco(); } public void imprimir(Doc...
18.545455
50
0.607843
a1ed7cf23f0dacb00012385794284a52908c832e
19,332
/** * (c) 2016 uchicom */ package com.uchicom.tm.window; import java.awt.BorderLayout; import java.awt.Dimension; import java.awt.GraphicsConfiguration; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.GridLayout; import java.awt.HeadlessException; import java.awt.Insets...
29.741538
145
0.681513
7d7a7e7acab74d03928cd09d9b6115fe7bdc36af
360
package com.codingdojo.authentication.repositories; import java.util.List; import org.springframework.data.repository.CrudRepository; import org.springframework.stereotype.Repository; import com.codingdojo.authentication.models.Team; @Repository public interface TeamRepository extends CrudRepository<Team, Long> { Li...
30
68
0.833333
d0ee8a9c9dc252a2c0c6c4c5c1768ff8c5ad1fcc
1,455
/* * Copyright 2015 The SageTV Authors. 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...
38.289474
96
0.760137
14d145cbdd86165c8c820976c257f275d3057b3f
709
package io.smallrye.stork.test; import io.smallrye.stork.api.ServiceDiscovery; import io.smallrye.stork.api.config.ServiceConfig; import io.smallrye.stork.api.config.ServiceDiscoveryType; import io.smallrye.stork.spi.ServiceDiscoveryProvider; import io.smallrye.stork.spi.StorkInfrastructure; @ServiceDiscoveryType("em...
37.315789
121
0.820874
460484d9c97131df0649f72ab7f0a8613cea2bfd
3,873
package io.smartlogic.smartchat.api; import android.content.Context; import android.util.Base64; import android.webkit.MimeTypeMap; import org.apache.http.Header; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpGet; import org.apache.http.impl.c...
36.885714
112
0.674671
5d46abfb0fef6759302dabdaaed615de4caeb8d8
1,261
package com.atguigu.gulimall.product.config; import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer; import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; import org.springframework.context.annotation...
36.028571
97
0.767645
a0ff4fd69e57c6f13de7c81455203f25c9fa5337
737
/* ###################################################################################### ## ## ## (c) 2006-2012 Cable Television Laboratories, Inc. All rights reserved. Any use ## ## of this documentation/package is subject to the t...
46.0625
87
0.371777
f9ac74fcc8d2cb2e777aaf620a4a6b4afcf4f55a
1,389
package com.example.control_panel; import org.junit.Test; import static org.junit.Assert.assertEquals; public class MoveCalculatorTest { @Test public void testScrollTable() { int[][] moveTable = new int[][]{ {0, -100, -200, -300, -400}, // i = 0 {100, 0, -100, -200, -3...
37.540541
120
0.431965
b4072ecf6fab6c5d743870f3df292d6b7eb8d803
9,978
package ch.swaechter.libreshare.web.components.account; import ch.swaechter.libreshare.web.components.Converter; import ch.swaechter.libreshare.web.components.account.dto.*; import ch.swaechter.libreshare.web.components.account.table.Account; import ch.swaechter.libreshare.web.components.settings.SettingsService; impo...
35.763441
145
0.678693
1db77b9b5e4cced18542473fe76492b7c28e40cd
3,515
package de.pascaldierich.watchdog.ui.adapter; import android.content.Context; import android.support.v7.widget.CardView; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import android.widget.Tex...
31.666667
111
0.652347
a017194c685a80ece8c904a1d24cc92752881a04
828
package ru.parsentev.models; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * TODO: comment * * @author parsentev * @since 08.07.2016 */ public class User { private int id; private String name; public User(int id, String name) { this.id = id; this.name = name; } ...
20.195122
85
0.559179
ee225cab1b3e555f7527730a3ee3e01ef6ca9184
573
package com.github.grantjforrester.uservice.starter.service; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.security.access.annotation.Secured; import org.springframework.stereotype.Service; @Service public class HelloService { private static final Logger LOG = LoggerFactory....
26.045455
82
0.726003
f2f1daad5159eadc060dffd1d05c9e295ebab1b9
4,217
package com.qi.richtexteditor.controller; import cn.hutool.core.date.DateUtil; import cn.hutool.core.io.FileUtil; import com.qi.richtexteditor.common.result.FileUploadErrorInfoEnum; import com.qi.richtexteditor.common.result.GlobalErrorInfoException; import com.qi.richtexteditor.common.result.UploadResultBody; import ...
32.945313
117
0.611809
7c4530f7760187050838f35e4395173fdd60c023
4,366
/* * Copyright 2020 Daniele Moro <daniele.moro@polimi.it> * Davide Sanvito <davide.sanvito@neclab.eu> * * 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...
36.383333
87
0.67705
8de85a7e32a4f5c1a835fe2661da34fa1f9a654b
2,608
package gui.dialogitems; import gui.I_ContainerView; import gui.I_SimpleView; import gui.renders.I_Render; import javafx.event.ActionEvent; import javafx.event.EventHandler; import javafx.geometry.Point2D; import javafx.scene.Cursor; import javafx.scene.Node; import javafx.scene.canvas.GraphicsContext; import javafx.s...
18.237762
83
0.706672
3ac75425442085e14ddb27807c48b698ea4f664e
1,858
/** * */ package com.cloudibpm.core.organization; //import com.cloudibpm.core.CornerMark; /** * @author TKuser * @created on 2008-07 * @modified on 2016-07-27 14:36pm */ public class AbstractOrganizationComponent extends AbstractOrganization { /** * serialVersionUID */ private static final long serialVe...
18.215686
73
0.681916
aa71551b4eee7547828c646b5199dae40bcaf75e
2,324
package io.noties.markwon.sample; import android.text.Spanned; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import androidx.annotation.NonNull; import io.noties.adapt.Item; import io.noties.markwon.Markwon; import io.noties.markwon.utils...
28.691358
108
0.677711
37ffdadf3dc281cc99e69684fe09cab2b31f74e7
1,784
package poker.domain; import java.util.Arrays; import java.util.Comparator; import java.util.List; import lombok.AccessLevel; import lombok.AllArgsConstructor; import poker.checker.CheckerFactory; import poker.checker.api.HandValueChecker; import poker.domain.card.Card; @AllArgsConstructor(access = AccessLevel.PRIVAT...
27.030303
125
0.738229
0e513515caeac7567d3702af93ba331e76e700e6
13,921
package com.filesystem; import java.util.ArrayList; import java.util.Arrays; import java.util.List; class CommandTest { private FileSystem fs = new FileSystem(64,24,4); private static int passed = 0; private static int failed = 0; void runAllTests() { // create try { Crea...
24.252613
97
0.470081
89da3a076054b5aed0cb865fc1361bf309f24cbb
2,384
package com.jaimedantas.fiitaxcalculator.business; import com.jaimedantas.fiitaxcalculator.model.FiiData; import com.jaimedantas.fiitaxcalculator.model.FiiTax; import org.junit.jupiter.api.Test; import java.math.BigDecimal; import static org.junit.jupiter.api.Assertions.*; class TaxCalculatorTest { @Test v...
35.058824
87
0.713507
f2447ced16eb47b164d41afaefc689bc4af6df75
1,009
package ssd8.exam2.bean; import java.io.Serializable; import java.util.ArrayList; /** * 用户实体类 * * @author Hanxy * @version 1.0.0 * @see java.io.Serializable */ public class User implements Serializable{ private String username; private String password; public User(String username, String password)...
19.784314
68
0.624381
3e29dbd432669bb6b20c00fb83a54d706c17de71
1,218
package id.ac.tazkia.payment.virtualaccount; import com.fasterxml.jackson.databind.ObjectMapper; import id.ac.tazkia.payment.virtualaccount.dto.VaPayment; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context....
31.230769
69
0.764368
7ff25bd24d2fa7db8c669e23ddb91fd66077a345
898
package uk.gov.digital.ho.hocs.casework.api.dto; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Getter; import org.springframework.lang.NonNull; import javax.validation.constraints.NotEmpty; @AllArgsConstructor @Getter public class UpdateCorrespondentRequest { ...
19.106383
54
0.719376
41a925c4e1fae3616660d9ddeaf9757bd4364997
644
package polymorphism; import java.util.List; import org.springframework.context.support.AbstractApplicationContext; import org.springframework.context.support.GenericXmlApplicationContext; public class CollectionBeanClient { public static void main(String[] args) { // TODO Auto-generated method stub AbstractA...
25.76
98
0.77795
a8a5bb369826f86841d524fed0c06f367fd8b712
57
package com.cw; public class ConcurrentHashMapDemo { }
9.5
36
0.77193
b5d29aeea5660daabb79fcb241e0227677eb1974
4,848
/* * Copyright (c) 2015 The Jupiter Project * * Licensed under the Apache License, version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at: * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or...
35.647059
103
0.571163
e66420f05d2ee7a4c0d1d272181f269d0263fa97
2,121
package com.webank.servicemanagement.utils; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; import com.google.common.base.Strings; public class DateUtils { public static java.util.Date c...
32.136364
101
0.628477
232699ad6f45fd7c9b6e92781cce1d91998a4652
4,233
package com.main; import java.util.ArrayList; import java.util.List; import resources.Piston; import utils.FinalContainer; import com.lac.petrinet.configuration.providers.PNMLConfigurationReader; import com.lac.petrinet.core.PetriNet; import com.lac.petrinet.exceptions.PetriNetException; import com.productioncell.du...
35.571429
97
0.741082
3b7ab941c80a99db8b775c7192402bb377327c9c
1,282
/* * Copyright 2017 Google 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 ...
32.871795
89
0.767551
5077760cdf5b5f7acfacf8c3565a090e839d1833
4,268
package com.jiaxy.conf.server.facade; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.DelayQueue; /** * Description: <br/> * <p/> *...
30.485714
121
0.532568
0841d3bc4409ec29fcbd8076db72fbb216690065
7,653
// CONTENT UI TEST . JAVA package cat.calidos.morfeu.webapp; import static com.codeborne.selenide.Selenide.open; import static org.junit.Assert.*; import java.util.List; import org.junit.Before; import org.junit.Test; import cat.calidos.morfeu.webapp.ui.UICatalogue; import cat.calidos.morfeu.webapp.ui.UICatalogues...
33.419214
120
0.703646
80011365cf3d2cf58ce98f8a32ca4851576d9b49
1,076
package com.ratku.sample.dao; import java.util.Date; import javax.transaction.Transactional; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.JpaSpecificationExecutor; import org.springframework.data.jpa.repository.Modifying; import org.springframework.data...
35.866667
151
0.792751
1d312be9ca51b75b0f80910f52363b079dc76de1
9,848
// // Decompiled by Procyon v0.5.36 // package groovy.swing.factory; import org.codehaus.groovy.runtime.callsite.CallSiteArray; import groovy.lang.Closure; import org.codehaus.groovy.runtime.callsite.CallSite; import groovy.lang.MissingPropertyException; import org.codehaus.groovy.runtime.GStringImpl; import groovy...
47.346154
246
0.666531
32e8023294e018bb5546031477e449d88666f74e
7,264
/* * Spreadsheet by Madhawa */ package spreadsheet.gui; import java.awt.Component; import java.awt.event.FocusEvent; import java.awt.event.FocusListener; import javax.swing.DefaultCellEditor; import javax.swing.JTable; import javax.swing.JTextField; import javax.swing.event.CaretEvent; import javax.swing.event.C...
32.573991
161
0.636013
af597cdc373030eb1f9d2bee9ea325f32a704850
2,841
package cn.sz.pxd.floatword.dialog; import cn.sz.pxd.floatword.AppConf; import cn.sz.pxd.floatword.Word; import cn.sz.pxd.floatword.WordFrame; import cn.sz.pxd.floatword.service.WordFileService; import javax.swing.*; import javax.swing.table.DefaultTableModel; import javax.swing.table.TableRowSorter; import...
36.423077
89
0.591341
e0d859ab936314d127f84d43baaf4b22d7564c46
910
package de.davelee.trams.operations.response; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; /** * This class tests the StopsResponse class and ensures that its works correctly. * @author Dave Lee */ public class StopsResponseTest { @Test public void testS...
30.333333
94
0.606593
d05d9f31b7ded0394445a22abd5d7248ae4e0726
1,875
package strings; import java.util.HashMap; import java.util.Iterator; import java.util.Map; /** * Given a sequence of strings, the task is to find out the second most repeated * (or frequent) string in the given sequence. * * Note: No two strings are the second most repeated, there will be always a * single str...
26.041667
90
0.674667
c945bcf8827a34f6788abb3af126c9af172bf4e3
4,727
package slimeknights.tconstruct.library.materials.traits; import io.netty.buffer.Unpooled; import net.minecraft.network.FriendlyByteBuf; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import slimeknights.tconstruct.fixture.MaterialFixture; import slimeknights.tconstruct.fixture.MaterialStat...
46.80198
179
0.785276
8052dec5cd3dbbfc29de45c51a316cd0254573b1
21,194
/* * Copyright 2000-2012 JetBrains s.r.o. * * 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 agre...
35.382304
165
0.708219
bb93ca1bfc842ccbff0878678c344ac29fc1233e
1,708
package io.manbang.ebatis.sample; //import com.github.xiaoymin.swaggerbootstrapui.annotations.EnableSwaggerBootstrapUI; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframe...
40.666667
104
0.620609
deaac246a3eabd1c19a4298edbe37daab7e90fe7
671
package org.jetlinks.community.logging.entity; import io.swagger.v3.oas.annotations.media.Schema; import lombok.*; import org.hswebframework.web.api.crud.entity.GenericEntity; import javax.persistence.*; @Getter @Setter @Table(name = "device_log") @NoArgsConstructor @AllArgsConstructor @Builder @Data public class De...
19.735294
60
0.727273
fb2abf1eb5ed356655b780faf89e609bec1aadf0
4,479
package seedu.address.model; import static java.util.Objects.requireNonNull; import java.nio.file.Path; import java.nio.file.Paths; import java.util.Objects; import seedu.address.commons.core.GuiSettings; /** * Represents User's preferences. */ public class UserPrefs implements ReadOnlyUserPrefs { private Gu...
32.223022
84
0.684528
12f8f114604e52ab329dfa92c58782e5411de2fc
398
package br.com.oobj.controlefinanceiro; import org.springframework.boot.test.context.TestConfiguration; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.TestPropertySource; @ActiveProfiles("test") @TestConfiguration @TestPropertySource(locations = "classpath:appl...
30.615385
73
0.824121
8914c4ad7227f794ed240c25475c9347663a654e
14,443
package org.intranet.graphics.raytrace.steps; import org.intranet.graphics.raytrace.Shape; import org.intranet.graphics.raytrace.World; import org.intranet.graphics.raytrace.primitive.Color; import org.intranet.graphics.raytrace.primitive.Matrix; import org.intranet.graphics.raytrace.primitive.Point; import org...
30.278826
180
0.655542
a6229378050aa369d4504b0125919f36781a5e23
9,333
/* * Copyright 2013 David Jurgens * * This file is part of the Cluster-Comparison package and is covered under the * terms and conditions therein. * * The Cluster-Comparison package is free software: you can redistribute it * and/or modify it under the terms of the GNU General Public License version 2 * as publ...
44.442857
84
0.654881
cb2e1aaa13fd884672fc106041485f016a012e76
1,885
package info.manuelmayer.licensed.test; import java.time.LocalDate; import java.time.ZoneOffset; import javax.servlet.http.HttpServletRequest; import org.junit.runner.RunWith; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.boot.test.context.TestConfiguration; import...
31.416667
92
0.796817
a34490193f47ae09c581fc5e4a1fdb9b81b9ca66
4,631
package com.yangsx95.da; import org.junit.Test; import java.util.Arrays; public class ClassicSortTest { public static void selectionSort(int[] arr) { if (arr == null || arr.length < 2) { return; } // 找出 0 ~ n-1 中的最小值的索引 // 找出 1 ~ n-1 中的最小值的索引 // 找出 2 ~ n-1 中的...
26.016854
85
0.418916
dd9ac0df57cfab17c4b3547030c2711b99964c96
9,005
/* * 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 ...
35.734127
120
0.663409
f84075dc5606f87e6086ed5ea4e83c6290f2be40
5,037
package com.zc.express.view.widget; import android.annotation.SuppressLint; import android.content.Context; import android.graphics.Rect; import android.util.AttributeSet; import android.view.MotionEvent; import android.view.View; import android.view.animation.TranslateAnimation; import android.widget.ScrollView; /**...
27.52459
105
0.567997
ad4ff1cd792938f98ab66f8617f95f33de674b2f
2,114
/********************************************************************************* * (Draw lines using the arrow keys) Write a program that draws line segments * * using the arrow keys. The line starts from the center of the pane and draws * * toward east, north, west, or south when the right-arrow key, up-arrow...
38.436364
82
0.621097