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
335f40ba11e52553d3ba0a3c8df9790ef41951ca
1,650
/** * Copyright (c) 2011-2014, hubin (jobob@qq.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 applicable ...
17.934783
80
0.677576
3fe01db33eba1856de3ab3d72792fa39476e4d05
2,090
package mage.cards.h; import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; import mage.abilities.effects.AsThoughEffectImpl; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.AsThoughEffectType; import mage.constant...
29.43662
136
0.734928
0d5670760a60618cda5663485572cc4020048b08
602
package com.adaptris.jmx.remote.provider.activemq; import java.io.IOException; import java.util.Map; import javax.management.remote.JMXConnector; import javax.management.remote.JMXConnectorProvider; import javax.management.remote.JMXServiceURL; import com.adaptris.jmx.remote.jms.JmsJmxConnectorClient; public class ...
31.684211
107
0.825581
50a37b60cbcfcd183771f17b4bc3671b01beca21
3,878
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package android.support.v4.app; import android.os.Parcel; import android.os.Parcelable; // Referenced classes of package android.support.v4.app: // bb ...
36.242991
108
0.571429
bb7257b55d4172906b894e4a7d85336539aa8fc4
7,020
package mekanism.client.gui; import java.io.IOException; import mekanism.api.Coord4D; import mekanism.client.gui.element.GuiEnergyInfo; import mekanism.client.gui.element.GuiFluidGauge; import mekanism.client.gui.element.GuiGasGauge; import mekanism.client.gui.element.GuiGauge; import mekanism.client.gui.element.GuiP...
46.490066
215
0.781197
1d3a664ab63eb36697c0c9ecf792bddb7723d75d
2,018
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH under * one or more contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright ownership. * Licensed under the Zeebe Community License 1.0. You may not use this file * ...
45.863636
98
0.806244
72f78b893544564726e81c2e12564d6bf4940f32
5,474
package fr.bletrazer.mailbox.sql; import java.io.ByteArrayInputStream; import java.io.IOException; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.time.Duration; import java.util.ArrayList; import java.util.List; import java.util.UUID; import org.bukkit.craftbuk...
26.965517
181
0.694191
b8f3db6e11c1e5aa6c29e2055ad00939217427d7
106
class TypeParameters<T> { <T> T m() { } } class TypeParameters<T, S> { <S> S m() { } }
8.833333
28
0.443396
5d80e71a4088eb8d46aad2f60b8213e298f86b59
2,985
/** * This class is part of the Programming the Internet of Things * project, and is available via the MIT License, which can be * found in the LICENSE file at the top level of this repository. * * Copyright (c) 2020 by Andrew D. King */ package programmingtheiot.gda.connection; import programmingtheiot.common...
37.3125
100
0.737353
3571cfb084f0222ddaa674347e850269823058f5
5,248
/** * generated by Xtext 2.23.0 */ package org.sodalite.sdl.ansible.ui.wizard; import com.google.common.collect.Iterables; import java.util.Collections; import java.util.List; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.jdt.core.JavaCore; import org.eclipse.xte...
44.854701
211
0.699123
15d30412cd0e139ceaf4acac43dd5eea7bd62c3b
3,947
package io.takari.jdkget.it; import static org.junit.Assert.assertFalse; import java.io.File; import java.io.FileNotFoundException; import java.io.IOException; import java.io.PrintStream; import java.util.stream.Stream; import org.apache.commons.io.FileUtils; import org.apache.commons.lang3.StringUtils; import org.j...
30.596899
126
0.630099
258ea8936c936040bc9f8348e76df8badcf1994d
1,129
package me.fixeddev.ezchat.replacer; import org.bukkit.Bukkit; import org.bukkit.entity.Player; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; import java.util.logging.Level; public abstract class PlaceholderReplacer { private static PlaceholderReplacer instance; pr...
30.513514
107
0.64039
851127814ca5c7b19bb5e7379fe0fbe7a3a596df
3,114
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 licen...
18.210526
826
0.782595
f08543a6fe944e84e8ad7cfc36ee57914e0bc95f
3,518
package org.apache.commons.lang3.concurrent; import java.util.concurrent.Callable; import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; public abstract class BackgroundInitializer<T> implements Concurren...
30.591304
89
0.640421
6e71fbfbddc0a82e313a47a07efb0ebcee16f5e6
252
package org.jsmart.zerocode.core.report; public interface ZeroCodeReportGenerator { void generateCsvReport(); /** * Spike chat is disabled by default * */ void generateHighChartReport(); void generateExtentReport(); }
18
42
0.68254
af9109da0a36e8edbabbfb99cc72feee79136360
1,320
package com.andcreations.ae.studio.plugins.text.editor; import javax.swing.text.BadLocationException; import javax.swing.text.Element; import org.fife.ui.rsyntaxtextarea.RSyntaxDocument; /** * @author Mikolaj Gucki */ @SuppressWarnings("serial") class TextEditorDocument extends RSyntaxDocument { /*...
29.333333
81
0.625
f1c681681a6d1aa071416a4ecb4bc5ac92b7cee5
108
package br.dao; import br.model.Disciplina; public class DisciplinaDAO extends GenericDAO<Disciplina> { }
15.428571
59
0.796296
653de49a51dcec49dd566e250cb8810a43147a78
1,056
package org.magic.api.notifiers.impl; import java.io.IOException; import javax.swing.JOptionPane; import org.magic.api.beans.MTGNotification; import org.magic.api.beans.MTGNotification.FORMAT_NOTIFICATION; import org.magic.api.beans.MTGNotification.MESSAGE_TYPE; import org.magic.api.interfaces.abstracts.AbstractMTGN...
25.756098
123
0.785985
f6b77dcdeef9fdbc356e64ef17ba09c228e08a0c
803
package edu.ucla.cs.cs144; import java.io.IOException; import javax.servlet.Servlet; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class ItemServlet extends HttpServlet implements Servle...
32.12
117
0.753425
ae30bb724c359cc5434f0a266b35500fb1737dca
283
package com.outbrain.swinfra.config.provider; import java.util.Map; /** * Implement this API to be able to provide configuration properties to our projects ;) * * @author Eran Harel */ public interface ConfigurationProvider { public Map<Object, Object> getConfiguration(); }
21.769231
87
0.75265
292c17fd1602bce0055b908ce01f092af81c7041
906
package no.ntnu.idi.apollo69server.game_engine.entity_systems; import com.badlogic.ashley.core.Engine; import com.badlogic.ashley.core.Entity; import com.badlogic.ashley.core.EntitySystem; import com.badlogic.ashley.core.Family; import com.badlogic.ashley.utils.ImmutableArray; import no.ntnu.idi.apollo69server.game_e...
27.454545
102
0.746137
99f703a6af028ec57f10ad5f8f1f9aece10be164
266
package com.qingshop.mall.modules.mall.service; import com.baomidou.mybatisplus.extension.service.IService; import com.qingshop.mall.modules.mall.entity.MallShipFree; /** * 指定条件包邮表 服务类 */ public interface IMallShipFreeService extends IService<MallShipFree> { }
22.166667
70
0.804511
324ff3a2ba43d73acc02e80b2d2444fe6ab01add
1,091
package lexicon.levenshtein; import org.apache.commons.text.similarity.LevenshteinDistance; public class LevenshteinTest { private final LevenshteinDistance levenshteinDistance; public LevenshteinTest() { levenshteinDistance = new LevenshteinDistance(); } public String distance(Strin...
38.964286
120
0.679193
23ea1620b9c2dd75388dd56712f6738baabd6e98
3,055
/* * 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 lab.pkg6_brauliocalix; import java.util.ArrayList; /** * * @author User */ public class Series { /* Nombre, tiempo de ...
24.055118
268
0.628151
ebd7d82dafd242185a7c5f673bdeccc6c0e17bdc
2,960
package org.mybatis.generator.extend; import java.text.SimpleDateFormat; import java.util.Date; import org.mybatis.generator.api.IntrospectedColumn; import org.mybatis.generator.api.IntrospectedTable; import org.mybatis.generator.api.dom.java.CompilationUnit; import org.mybatis.generator.api.dom.java.Field; ...
29.306931
99
0.705743
f76bbee843f1ac7a4eef3f3411189b793de53d17
3,655
package com.disruptor.netty.common; <<<<<<< HEAD /** * Created with IntelliJ IDEA. * Description: * User: kkc * Email: wochiyouzhi@gmail.com * Date: 2018-11-01 * Time: 上午9:57 */ ======= >>>>>>> e34cfaaf75c090c83b307d83bb7c1c8af07acefb import io.netty.handler.codec.marshalling.DefaultMarshallerProvider; import i...
42.011494
106
0.78933
9d363dce52faee98bdc2a935eb26f291ac186fb4
4,783
package org.k2.util.reflection; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Arrays; import org.k2.util.reflection.exception.MissingAnnotationError; import org.k2.util.reflection.exception.ReflectionError; public class ReflectionUtils { p...
33.447552
152
0.680535
2a16beae135a48fb07162f188968bdc4ceef0496
4,679
package com.medicapital.server.util; import static com.medicapital.server.log.Tracer.tracer; import java.util.Date; import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.PasswordAuthentication; import javax.mail.Session; import javax.mail.Transport; i...
29.062112
101
0.722163
97be1e7db364fdec4aefa0cac6b2c418ec7e98b5
241
package by.htp.classWork; public class T2000 extends Terminator{ public T2000(Target target) { super(target); } public void showTarget(){ System.out.println(T2000.class.getSimpleName() + " target: "); super.showTarget(); } }
16.066667
64
0.697095
5224a25693c979fab2cea348c2c8946b87f99ba2
2,390
/******************************************************************************* * Copyright 2016 Jalian Systems Pvt. Ltd. * * 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:...
32.297297
90
0.591213
21b2938405e44a14b0f9f73918c437ad8c0b82c1
1,011
package man.survey; import java.util.List; public class Section implements QuestionFormatter { private int id; private List<Question> questions; public Section(int id, List<Question> questions) { this.id = id; this.questions = questions; } public Section() {} public List<Qu...
19.442308
56
0.580613
fedd26186077b3d1d115b428f428b0c1ead23132
2,981
package Base; import javafx.fxml.*; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.input.MouseEvent; import javafx.scene.layout.AnchorPane; import javafx.stage.Stage; import java.io.IOException; public class Base { //Stage mainWindow; //Scene sceneProduct, sceneSupplier; // @...
32.053763
110
0.56055
049c1a2785f563e9fd0af7042c0cd835ef9137bd
2,283
package io.github.sdwfqin.widget; import android.content.Context; import android.content.res.TypedArray; import android.text.Editable; import android.text.InputType; import android.text.TextWatcher; import android.util.AttributeSet; import androidx.appcompat.widget.AppCompatEditText; /** * 描述:Double类型的EditText * ...
28.185185
103
0.59965
9cbda7e320ac9a9c318a5ccd5c2a34ee747ab41d
2,041
/* * Copyright (C) 2016 The Android Open Source 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 app...
37.109091
92
0.678099
b22332170d28ae806c948073d292678217a09bec
1,691
package dailydiary.handlers; import java.util.ArrayList; import java.util.List; import java.util.Map; import com.amazon.ask.model.Slot; import com.amazon.ask.response.ResponseBuilder; import dailydiary.extension.DateTimeExtenstion; import dailydiary.models.Event; public class GetLastEventHandler extends GetEventsHa...
33.156863
105
0.735068
c1211b4335b74ad0043d3f3910e20f077d46ef3a
421
package com.netcracker.ncstore.dto; import lombok.AllArgsConstructor; import lombok.Getter; import java.time.Instant; import java.util.Locale; /** * DTO used for transferring information about discount */ @AllArgsConstructor @Getter public class DiscountPriceRegionDTO { private final double price; private ...
21.05
55
0.781473
3681a0ec97609eb300afad54b1870a7d874bb430
4,984
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ____ _ _____ _ * / ___| _ __ _ __(_)_ __ __ |_ _| _ _ __| |__ ___ * \___ \| '_ \| '__| | '_ \ / _` || || | | | '__| '_ \ / _ \ * ___) | |_) |...
32.575163
121
0.536517
c723fa57335244d2ded3f06257fd228336ef4c35
1,916
/* * Copyright 2000-2015 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...
39.102041
114
0.788622
828c4929a839b8b397af13cd310c3639b00b89de
916
/** Describes a quantity of an article to purchase. */ public class LineItem { private int quantity; private Product theProduct; /** Constructs an item from the product and quantity. @param aProduct the product @param aQuantity the item quantity */ public LineItem(Pro...
22.9
65
0.585153
b6a404cdbf49b0ae04aa6ee94c1e3dbe5c0e9aab
494
package com.alibaba.chaosblade.exec.plugin.http; import com.alibaba.chaosblade.exec.common.aop.Plugin; import com.alibaba.chaosblade.exec.common.model.ModelSpec; import com.alibaba.chaosblade.exec.plugin.http.model.HttpModelSpec; /** * @Author yuhan * @package: com.alibaba.chaosblade.exec.plugin.restTemplate * @Da...
26
67
0.753036
ec342e0b2f0ef55060047d15d35ba4947510a498
2,984
/* * Copyright (c) 2005, The JUNG Authors * All rights reserved. * * This software is open-source under the BSD license; see either "license.txt" * or https://github.com/tomnelson/jungrapht-visualization/blob/master/LICENSE for a description. * * * Created on Apr 12, 2005 */ package org.jungrapht.visualization...
32.434783
100
0.694705
45ae7502971037251d55c0920831a4f9f2fafcd2
1,429
package org.jessenpan.leetcode.backtracking; import java.util.ArrayList; import java.util.List; /** * @author jessenpan * tag:backtracing */ public class S93RestoreIPAddresses { private List<String> ips = new ArrayList<>(); public List<String> restoreIpAddresses(String s) { findValidIpAddress(s, ...
27.480769
94
0.530441
a2e55ecde34a66ce94e990423d06ebd6e02a1749
4,374
package com.example.demo.controller; import com.example.demo.entity.Register; import com.example.demo.service.RegisterService; import lombok.extern.java.Log; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import...
32.4
105
0.63946
10f8f040b9aa041b48e7224b2a379f623fb774df
659
package com.amos.flyinn.summoner; import android.view.MotionEvent; import com.amos.shared.TouchEvent; import java.io.IOException; import java.io.ObjectOutputStream; import java.net.Socket; public class FakeInputSender { private ObjectOutputStream output; public FakeInputSender() { } public void c...
24.407407
100
0.713202
6ad87d0cd022671aa5e5e49130089050bb95d576
41,957
/* * 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 edu.kit.datamanager.metastore2.util; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.d...
52.380774
174
0.769621
e4a00a9e4134efccc5b7140ddae91544ce61a0c0
665
package org.rosen.automation.project.screenplay.interactions; import net.serenitybdd.screenplay.Actor; import net.serenitybdd.screenplay.Interaction; import net.serenitybdd.screenplay.actions.Click; import org.rosen.automation.project.screenplay.pages.Main; import static net.serenitybdd.screenplay.Tasks.instrumented;...
33.25
65
0.796992
6f9d47a01f3b8dfa33c0797127b491492d55f634
1,086
package io.github.micansid.guiautomation.control.screen; import io.github.micansid.guiautomation.algorithm.find.ImagePositionFinder; import io.github.micansid.guiautomation.algorithm.find.SimpleFinder; import io.github.micansid.guiautomation.control.awt.AwtScreenshotSupplier; import io.github.micansid.guiautomation.ut...
32.909091
80
0.794659
59e3051f57589f213145c8b6191544a3a97ca818
1,187
/* * Copyright (c) 2011-2017 OpenDDR LLC and others. 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 * ...
31.236842
81
0.682393
5da29f0e022fd93070d83e0aa6fd3586a7aef14c
8,181
/* * Copyright 2012-2019 MarkLogic Corporation * * 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...
39.907317
134
0.721428
fdd9709e47226224db8a4ae6c84766c3145fd4f6
3,217
/* * 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 ...
46.623188
100
0.734535
184bf976c6ae0423618586b5c942256fb670ec4e
5,481
// Copyright 2000-2021 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.openapi.vcs.changes.ui; import com.intellij.ide.dnd.*; import com.intellij.ide.dnd.aware.DnDAwareTree; import com.intellij.openapi.Disposable; import com.int...
34.471698
140
0.719577
c4f51c9f32a43c0b1bbe6b868556471bd5f9d28c
2,620
package de.idrinth.waraddonclient.model; import de.idrinth.waraddonclient.Config; import de.idrinth.waraddonclient.service.FileLogger; import de.idrinth.waraddonclient.service.Request; import de.idrinth.waraddonclient.service.XmlParser; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; ...
26.734694
119
0.6
fc0fb9dc665f593041ea0e2140d601675d12fea0
2,317
package org.snpeff.outputFormatter; import java.util.HashSet; import org.snpeff.interval.Gene; import org.snpeff.interval.Marker; import org.snpeff.interval.Regulation; import org.snpeff.interval.Variant; import org.snpeff.snpEffect.VariantEffect; /** * Formats: Show all annotations that intersect the BED input fil...
26.329545
96
0.633578
1e6b55fde839414769acb7afd070d5a9382669ff
352
package br.com.kek.tictactoe.enums; public enum OptionMoveEnum { MOVE_X("X"), MOVE_O("O"); private String value; private OptionMoveEnum(String value) { this.value = value; } public String getValue() { return value; } public OptionMoveEnum getReversePlayer() { return this.getValue().equals(MOVE_X.getV...
16.761905
69
0.704545
a4a078652d44abc63a1570fe8f155e97b1521156
10,049
package malcjohn; public class Aufgabe_2 { /** * @param args */ public static void main(String[] args) { /** * * Das ist die 1 Unteraufgabe */ // Neuer Anfang mir Docs // beliebig - meine "grossen Zahlen" int grosseZahl = (Integer.MAX_VALUE / 2); // 1073741823 int grosseZahl2...
35.259649
82
0.668823
64564b0c4f019a1abe422c85f8455fae28b0b8f6
32,816
/*! * Copyright 2010 - 2015 Pentaho Corporation. 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 requi...
40.563659
121
0.740553
ff5e2aef1d505ce6ebc678c975fb37f468277880
370
package io.renren.modules.house.service; import com.baomidou.mybatisplus.service.IService; import io.renren.common.utils.PageUtils; import io.renren.modules.house.entity.TmMbodycardEntity; import java.util.List; import java.util.Map; public interface TmMbodycardService extends IService<TmMbodycardEntity> { Page...
24.666667
73
0.813514
285d8fe67f621e5c7ed573bc4e55cb25a132be6a
1,068
/* */ package com.cyc.baseclient.inference.metrics; import com.cyc.base.inference.InferenceParameterValue; import com.cyc.base.inference.metrics.InferenceMetric; import com.cyc.base.inference.metrics.InferenceMetricsI; import java.util.HashSet; import com.cyc.base.cycobject.CycList; import com.cyc.base.cycobject.Cy...
28.864865
136
0.773408
9046647b9526f6b683addbb521e66cf7b95db32e
2,336
// This file is auto-generated, don't edit it. Thanks. package com.aliyun.dingtalkindustry_1_0.models; import com.aliyun.tea.*; public class QueryUserExtInfoResponseBody extends TeaModel { // 扩展属性 @NameInMap("content") public java.util.List<QueryUserExtInfoResponseBodyContent> content; public static ...
33.855072
113
0.687072
149e43951bd32b9825b294b4de646ee029268011
778
package org.deuce.benchmark.stmbench7.impl.backend; import java.util.ArrayList; import org.deuce.benchmark.stmbench7.annotations.ContainedInAtomic; import org.deuce.benchmark.stmbench7.backend.ImmutableCollection; /** * A simple implementation of a small-size set * (used by Assembly and AtomicPart objects). */ @C...
21.611111
67
0.757069
6559507fd65e13ab124fda9d604305c16681109d
1,129
package com.html5parser.constants; public class HTML5Elements { public static final String[] FORMATTING = { "a", "b", "big", "code", "em", "font", "i", "nobr", "s", "small", "strike", "strong", "tt", "u" }; public static final String[] SPECIAL = { "address", "applet", "area", "article", "aside", "bas...
47.041667
76
0.534101
b238dff65740fe0e692b05c89dda04f67589816a
2,168
package com.code10.isa.controller; import com.code10.isa.controller.exception.BadRequestException; import com.code10.isa.model.Restaurant; import com.code10.isa.model.dto.EmployeeRegisterDto; import com.code10.isa.model.user.Manager; import com.code10.isa.model.user.Waiter; import com.code10.isa.service.AuthService; i...
33.875
95
0.733395
7ebededa1c7888e31da850d940906290cd5ed0a7
2,419
package de.nx42.maps4cim.util.arr2d; import static org.junit.Assert.fail; import org.junit.Test; public class GapInterpolatorTest { protected static final short g = -9; protected static final short[][] testArr = new short[][]{ { g,1,1,2,2,2 }, { 1,1,g,g,2,2 }, { 1,1,g,2,2,2 }, ...
28.458824
68
0.424142
4d7ec35f7c38728b873ec71c49824919aa8a8e3a
3,988
package org.bouncycastle.asn1.cmp; import org.bouncycastle.asn1.ASN1Encodable; import org.bouncycastle.asn1.ASN1EncodableVector; import org.bouncycastle.asn1.ASN1OctetString; import org.bouncycastle.asn1.ASN1Sequence; import org.bouncycastle.asn1.DEREncodable; import org.bouncycastle.asn1.DERInteger; import org.bouncy...
28.485714
95
0.545888
7b1250259f333e58898589c9a172e7553dc07b61
4,468
package com.kieferhagin.gravestones; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import net.canarymod.Canary; import net.canarymod.api.chat.ChatComponent; import net.canarymod.api.entity.living.humanoid.Player; import net.canarymod.api.factory.ChatComponentFactory; import net...
32.613139
97
0.751343
05d1b416798ab8646a33f467851b576e0a2cdc47
121
package crazypants.enderio.item.darksteel; public interface IDarkSteelItem { int getIngotsRequiredForFullRepair(); }
17.285714
42
0.818182
4c6eef6c9d3bb9ebc665e3423843defe9324c61f
5,238
/* * Copyright (c) 2014 Simon Robinson * * 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 ...
35.391892
114
0.781405
05bee8cbdd1305963bc91ba5c1c21e2d4390485f
928
// <별점 테러 방지 프로그램 /> // "제품에 대한 별점 중에서 최솟값과 최댓값을 뺀 별점들의 평균값을 구하는 프로그램" public class RatingAverage { public static void main(String[] args) { //[1] Input int[] ratings = { 1, 2, 3, 4, 5 }; // int ratings[] = { 1, 2, 3, 4, 5 }; int max = ratings[0]; // 0번째 인덱스의 값으로 초기화 int min = rating...
32
80
0.449353
de6b5a3e9ee6ce65fb41763f75503d335a04db8e
350
package ro.ase.acs.observer; import java.util.HashMap; public class Website extends Observabil { private HashMap<String, String> newsletters=new HashMap<>(); public void adaugaNewsletter(String subiect, String mesaj) { newsletters.put(subiect, mesaj); } public String getContinut(String subiect) { return n...
21.875
61
0.757143
3e68f933717edc937f76193fec253f63008b5771
3,661
package org.jdna.eloaa.server.qmonitor; /* * #%L * GwtMaterial * %% * Copyright (C) 2015 - 2016 GwtMaterialDesign * %% * 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:...
32.114035
107
0.614313
d81da642852a2212455c98c3d25bb9242da36749
1,890
package ml.varpeti.hf04java; import android.os.Bundle; import android.support.v7.app.AppCompatActivity; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.util.Log; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.Da...
28.208955
78
0.648148
328eb59a5aa17b19684b6736e5da8576cd599911
3,382
package com.example.invoke.dao; import com.example.invoke.dto.CommonDto; import com.example.invoke.model.Miui; import com.example.invoke.model.MiuiExample; import java.util.List; import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Select; import org.springframework.stereotype.Repository; ...
32.519231
165
0.679184
c454b260c88a7c5ded91f6f347a9439ea2e4bb87
1,848
package com.heroland.competition.dal.pojo; import java.util.Date; public class HerolandSchoolCourse { private Long id; private String schoolKey; private Long courseId; private Integer obligatory; private Boolean isDeleted; private String creator; private String modifier; private...
19.452632
69
0.622835
aecc754ad50451266b1d470df9769b85da4dbd4d
637
package com.codersoft.cms.wechat.mp.builder; import com.codersoft.cms.wechat.mp.service.WeixinService; import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage; import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage; import org.slf4j.Logger; import org.slf4j.LoggerFactory; /** * * 功能描述: 处理类 * * @param: * @ret...
24.5
70
0.759812
85c4eb8eda63c8df82daf3ed18ef7f831c37608f
344
package cn.sy.mapper; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import cn.sy.domain.TbUser; import cn.sy.domain.User; @Mapper public interface TbUserMapper { List<TbUser> findAll(); TbUser findById(@Param("userId")...
17.2
52
0.744186
10b18f5aeced64eaa726ddee72df1321e7811e85
832
package vlqhoang.project.smartchoice.ProductPriceComparatorService.unitTests.repository; import org.junit.jupiter.api.Test; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.autoconfigure.orm.jpa.DataJpaTest; import vlqhoang.project.smartchoice.ProductPriceComparatorSe...
33.28
100
0.819712
3d36f48634944bf390af810083e0b6b2ccc04526
1,186
package ac.cn.saya.singleton; /** * @Title: SingletonUtil1 * @ProjectName java-utils * @Description: TODO * @Author liunengkai * @Date: 2019-07-10 20:45 * @Description: * 单例模式(懒汉式-线程不安全) */ public class SingletonUtil3 { public static void main(String []args){ for (int i = 0 ; i < 10 ; i++){ ...
17.441176
83
0.53457
3e4b766df61d523d7e3e24ff95ca848f56f795ac
1,752
package MyService; import ProofOfWork.Creator; import Data.FileThread; import java.io.IOException; import java.net.Socket; import java.security.NoSuchAlgorithmException; import java.util.logging.Level; import java.util.logging.Logger; import jdk.net.Sockets; import P2PTransfer.* ; /* * To change this l...
32.444444
82
0.593607
6e1c9146dc367cd41e803428e53ab2e37099fec1
885
package cn.org.imaginary.common.common; import javax.mail.internet.MimeMessage; /** * Author : imaginary * Date : 2017/5/23 16 34 * Version : V1.0 * Desc : */ public interface MimeMessagePreparator { /** * Prepare the given new MimeMessage instance. * @param mimeMessage ...
36.875
90
0.707345
ce5e974d27a6570d59b071b6bd32f358170f194f
1,606
package me.violinsolo.testlibsapp.base; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.fragment.app.Fragment; import androidx.viewbinding.ViewBinding; /** ...
27.689655
132
0.702366
9989a5ba79684a6aaa9718c7267eaed5a44e2ed4
8,109
package scratch.UCERF3.enumTreeBranches; import java.io.File; import java.io.IOException; import java.net.URL; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.dom4j.Document; import org.opensha.commons.util.ExceptionUtils; import org.opensha.commons.util.XMLUtils; import or...
40.343284
136
0.739055
eeb364a615967dd43b7aba1c51b750111ee09faf
358
package com.javaguru.shoppinglist.service.validation; import com.javaguru.shoppinglist.domain.Product; public interface ProductValidationRule { void validate(Product product); default void checkNotNull(Product product) { if (product == null) { throw new ProductValidationException("Product ...
27.538462
77
0.712291
050cbafcbf6e318e4f568b32526819ba04631b9c
4,855
/** * */ package cern.accsoft.steering.aloha.plugin.traj.meas.data; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import Jama.Matrix; import cern.accsoft.steering.aloha.bean.AlohaBeanFactory; import cern.accsoft.steering.aloha.bean.aware.NoiseWeighterAware; impo...
28.226744
83
0.739032
74dcfed7367a9976275553fcd640b8ea83f11c59
1,815
package org.talend.designer.esb.webservice; import java.io.IOException; import javax.wsdl.Definition; import javax.wsdl.WSDLException; import org.talend.core.model.repository.IRepositoryViewObject; import org.talend.designer.esb.webservice.ws.wsdlinfo.Function; import org.talend.designer.esb.webservice.ws.wsdlutil.C...
22.134146
80
0.771901
320be2206d401854047b9eafa7215ef5ed406f6e
5,233
package es.sacyl.gsa.inform.ctrl; import es.sacyl.gsa.inform.bean.UsuarioBean; import ezvcard.Ezvcard; import ezvcard.VCard; import ezvcard.VCardVersion; import ezvcard.property.Email; import ezvcard.property.Label; import ezvcard.property.Organization; import ezvcard.property.StructuredName; import ezvcard.property.T...
30.424419
91
0.572329
1e28b1a2044269e0d000f71698c3ed84347f2792
7,678
package com.tasdemir.tasklist; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.ArrayList; import java.util.Date; import java.util.List; import javax.servlet.http.HttpServletRequest; import org.hibernate.Session; import org.hibernate.SessionFactory; import org.hibernate.Transactio...
33.823789
119
0.685725
22d30ebf791a700c9be229f7b8d2fed5504b72db
12,515
/* * 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 ...
47.226415
184
0.68366
25141d5b0cff20975a4ac80a5b61034b52c6ef56
1,410
package com.sethholloway.sorts; import java.util.ArrayList; import java.util.List; import static org.junit.Assert.assertTrue; import org.junit.Before; import org.junit.Test; import com.sethholloway.sorts.*; public class SortTest { Sort qs; Sort ss; Sort ms; List<Integer> sortedList; List<Integer> unsortedList;...
21.692308
51
0.712057
159dff4429b53c185ed96bf6559eabb330e3baf5
3,977
package org.waal70.canbus.util; import org.apache.logging.log4j.core.Filter; import org.apache.logging.log4j.core.Layout; import org.apache.logging.log4j.core.LogEvent; import org.apache.logging.log4j.core.appender.AbstractAppender; import org.apache.logging.log4j.core.config.plugins.Plugin; import org.apache.logging....
38.990196
133
0.548403
93b90ee72143e14c47513b54c7ffc03dc2b7590a
8,591
/* -*- c-basic-offset: 4; indent-tabs-mode: nil; -*- //------100-columns-wide------>|*/ // for license please see accompanying LICENSE.txt file (available also at http://www.xmlpull.org/) package org.xmlpull.v1.util; import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.X...
33.428016
100
0.594692
6149f75a29594ec4e699f62fd1693012da99627c
5,283
/** * Copyright (c) 2011, SOCIETIES Consortium (WATERFORD INSTITUTE OF TECHNOLOGY (TSSG), HERIOT-WATT UNIVERSITY (HWU), SOLUTA.NET * (SN), GERMAN AEROSPACE CENTRE (Deutsches Zentrum fuer Luft- und Raumfahrt e.V.) (DLR), Zavod za varnostne tehnologije * informacijske družbe in elektronsko poslovanje (SETCCE), INS...
33.649682
131
0.707553
9f94edb9339c8557cd6878d65bb76d124593fe0d
2,760
package com.cubeio.thriftwrapjdbc; import java.util.Map; import java.util.Optional; import org.apache.thrift.TException; import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.protocol.TProtocol; import org.apache.thrift.transport.TSocket; import org.apache.thrift.transport.TTransport; import io...
36.8
117
0.736594
15064a98365079141620699afe1e4914514b0b11
854
package com.lorne.alipay.test.controller; import com.lorne.alipay.test.service.TestService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.anno...
23.081081
156
0.73185
42e5c257c493465a1ec51ed83905a10f6ad4db0a
121
package org.apache.lucene.luke.app.desktop.util.lang; @FunctionalInterface public interface Callable { void call(); }
17.285714
53
0.77686
629945f22c7e984adab0adfe56cb19ade0a063c6
4,049
package im.actor.runtime.js.webrtc; import com.google.gwt.core.client.JavaScriptObject; import im.actor.runtime.js.entity.JsClosure; import im.actor.runtime.js.entity.JsClosureError; public class JsPeerConnection extends JavaScriptObject { public static native JsPeerConnection create(JsPeerConnectionConfig conf...
39.31068
128
0.653989
02222e87795e12651a330b21c6ba5c0267af3d3c
2,332
package net.sf.jabb.cache; import static org.junit.Assert.*; import java.util.concurrent.Executors; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; import net.sf.ehcache.CacheException; import net.sf.ehcache.CacheManager; import org.junit.Test; public class Abstr...
24.808511
127
0.711407
4f879011de39260eaede0de578707111511e8021
2,475
package com.netease.edu.sample.parameter; public class WhiteboardG2RecordFileInfoCallbackParam { private String eventType; private RecordFileData data; public String getEventType() { return eventType; } public void setEventType(String eventType) { this.eventType = eventType; ...
19.8
56
0.536162
0604ec6ef91f61fcca8cd0955762b8bfce78a22e
7,458
/* * Copyright (c) 2010-2017 Evolveum and contributors * * This work is dual-licensed under the Apache License 2.0 * and European Union Public License. See LICENSE file for details. */ package com.evolveum.midpoint.provisioning.ucf.api; import com.evolveum.midpoint.prism.PrismObject; import com.evolveum.midpoint....
35.179245
143
0.687316
cf2f1e6d1e9e81cdd8b6b0c399aa0c2eabc4c931
1,455
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.kpdus.com/jad.html // Decompiler options: packimports(3) annotate safe package com.google.android.gms.auth.api.accounttransfer; import android.os.RemoteException; import com.google.android.gms.internal.auth.zzaf; import com.g...
32.333333
104
0.63299
eefd66612dfad29ecfc33d545d6d555d47de6fe4
4,226
package tech.heartin.books.serverlesscookbook; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.BufferedReader; import com.amazonaws.services.lambda.runtime.RequestStreamHandler; import com.amazonaw...
34.92562
93
0.604591