code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
package java.util; import java.io.Serializable; /** * This class provides a hashtable-backed implementation of the * Set interface, with predictable traversal order. * <p> * * It uses a hash-bucket approach; that is, hash collisions are handled * by linking the new node off of the pre-existing node (or list of ...
llvm-gcc-4.2-2.9/libjava/classpath/java/util/LinkedHashSet.java
0.951695
0.46132
LinkedHashSet.java
starcoder
package com.badlogic.gdx.utils; import java.util.Arrays; import com.badlogic.gdx.math.MathUtils; /** A resizable, ordered or unordered char array. Avoids the boxing that occurs with ArrayList<Character>. If unordered, this * class avoids a memory copy when removing elements (the last element is moved to the ...
gdx/src/com/badlogic/gdx/utils/CharArray.java
0.843219
0.529324
CharArray.java
starcoder
package com.google.gerrit.client.diff; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** Helper class to handle calculations involving line gaps. */ class LineMapper { private int lineA; private int lineB; private List<LineGap> lineMapAtoB; private List<LineGap> lineMapBtoA...
gerrit-gwtui/src/main/java/com/google/gerrit/client/diff/LineMapper.java
0.915564
0.50415
LineMapper.java
starcoder
package com.ardor3d.scenegraph; import com.ardor3d.math.type.ReadOnlyVector2; import com.ardor3d.math.type.ReadOnlyVector3; import com.ardor3d.util.geom.BufferUtils; public class FloatBufferDataUtil { public static FloatBufferData makeNew(final ReadOnlyVector2[] coords) { if (coords == null) { ...
ardor3d-core/src/main/java/com/ardor3d/scenegraph/FloatBufferDataUtil.java
0.864968
0.422207
FloatBufferDataUtil.java
starcoder
package org.apache.spark.sql.catalyst.expressions; import java.math.BigDecimal; import java.math.BigInteger; import java.nio.ByteBuffer; import org.apache.spark.sql.types.*; import org.apache.spark.unsafe.Platform; import org.apache.spark.unsafe.array.ByteArrayMethods; import org.apache.spark.unsafe.types.CalendarInt...
sql/catalyst/src/main/java/org/apache/spark/sql/catalyst/expressions/UnsafeArrayData.java
0.838977
0.586227
UnsafeArrayData.java
starcoder
package io.crate.expression.scalar.geo; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import io.crate.expression.symbol.Function; import io.crate.expression.symbol.Literal; import io.crate.expression.symbol.Symbol; import io.crate.data.Input; import io.crate.geo.GeoJSON...
sql/src/main/java/io/crate/expression/scalar/geo/IntersectsFunction.java
0.861829
0.436502
IntersectsFunction.java
starcoder
package com.epi; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; import java.util.PriorityQueue; import java.util.Random; public class MergeSortedArrays { // @include private static class ArrayEntry {...
java/src/main/java/com/epi/MergeSortedArrays.java
0.818845
0.407333
MergeSortedArrays.java
starcoder
package physics; import java.awt.*; /* * MagneticField extends Field to simulate the effects of a magnetic field on charged particles, * which depends on their charge, their velocity, and the direction and magnitude of the field. * --<NAME>, 4-23-2012 */ public class MagneticField extends Field { //The strength...
AngryMagnets/src/physics/MagneticField.java
0.606032
0.404802
MagneticField.java
starcoder
package groovy.util; import groovy.lang.Closure; import groovy.test.GroovyAssert; import junit.framework.TestCase; import org.codehaus.groovy.runtime.InvokerHelper; import org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation; import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Log...
subprojects/groovy-test/src/main/java/groovy/util/GroovyTestCase.java
0.885743
0.474388
GroovyTestCase.java
starcoder
package com.google.devtools.build.lib.concurrent; import com.google.common.collect.HashMultiset; import com.google.common.collect.Multiset; import com.google.devtools.build.lib.concurrent.ThreadSafety.ThreadSafe; import com.google.devtools.build.lib.util.Preconditions; import java.util.Set; import java.util.concurrent...
src/main/java/com/google/devtools/build/lib/concurrent/MultisetSemaphore.java
0.932776
0.583678
MultisetSemaphore.java
starcoder
package com.github.jad.utils.rx2; import com.github.jad.utils.dto.VolatileRef; import com.github.jad.utils.rx2.dto.ObservableFromFlowable; import com.github.jad.utils.rx2.dto.SmartBuffer; import com.github.jad.utils.rx2.dto.ValWrapper; import io.reactivex.*; import io.reactivex.schedulers.Schedulers; import java.util...
rx2-utils/src/main/java/com/github/jad/utils/rx2/RxUtils.java
0.723505
0.40589
RxUtils.java
starcoder
package me.ycdev.android.demo.archcomp.github.data; import android.arch.persistence.room.Room; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.After; import org.junit.Before; import org.junit.Test; import org.junit...
app/src/androidTest/java/me/ycdev/android/demo/archcomp/github/data/GitHubDaoTest.java
0.532911
0.400749
GitHubDaoTest.java
starcoder
package org.togglz.core.activation; import org.togglz.core.Feature; import org.togglz.core.repository.FeatureState; import org.togglz.core.spi.ActivationStrategy; import org.togglz.core.user.FeatureUser; import org.togglz.core.util.Strings; /** * <p> * An abstract activation strategy that is designed to support cas...
core/src/main/java/org/togglz/core/activation/AbstractPropertyDrivenActivationStrategy.java
0.922286
0.4165
AbstractPropertyDrivenActivationStrategy.java
starcoder
package uk.co.samholder.genetiq.representation.vector; import java.util.Arrays; /** * Vector representation - useful for cases where a fixed length vector of floats is required. * @author <NAME> */ public class Vector { private final float[] values; public Vector(int dimensions) { values ...
src/main/java/uk/co/samholder/genetiq/representation/vector/Vector.java
0.953416
0.562537
Vector.java
starcoder
package androidx.core.view; import android.os.Build; import android.view.View; import android.view.WindowInsetsAnimationController; import androidx.annotation.FloatRange; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.annotation.RequiresApi; import androidx.core.graphics.Inse...
core/core/src/main/java/androidx/core/view/WindowInsetsAnimationControllerCompat.java
0.930774
0.403361
WindowInsetsAnimationControllerCompat.java
starcoder
package org.gecko.notary.service.itest; import static org.assertj.core.api.Assertions.assertThatExceptionOfType; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit...
org.gecko.notary.service.itest/src/org/gecko/notary/service/itest/TransactionQueryIntegrationTest.java
0.7641
0.406509
TransactionQueryIntegrationTest.java
starcoder
package ai.djl.modality.nlp; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; /** The simple implementation of Vocabulary. */ public class Si...
api/src/main/java/ai/djl/modality/nlp/SimpleVocabulary.java
0.950192
0.422803
SimpleVocabulary.java
starcoder
package org.opencb.opencga.storage.hadoop.variant.index.family; import org.apache.commons.lang.StringUtils; import org.opencb.biodata.models.variant.Variant; import org.opencb.opencga.storage.hadoop.variant.index.annotation.AnnotationIndexEntry; import org.opencb.opencga.storage.hadoop.variant.index.sample.SampleIndex...
opencga-storage/opencga-storage-hadoop/opencga-storage-hadoop-core/src/main/java/org/opencb/opencga/storage/hadoop/variant/index/family/MendelianErrorSampleIndexEntryIterator.java
0.897094
0.4081
MendelianErrorSampleIndexEntryIterator.java
starcoder
package org.apache.iceberg.transforms; import com.google.common.base.Preconditions; import java.util.Locale; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.iceberg.PartitionSpec; import org.apache.iceberg.Schema; import org.apache.iceberg.types.Type; /** * Factory methods for trans...
api/src/main/java/org/apache/iceberg/transforms/Transforms.java
0.954626
0.430626
Transforms.java
starcoder
package com.amazonaws.services.kinesis.aggregators; import java.util.LinkedHashMap; import java.util.List; /** * Object which encapsulates all label values to be tracked and managed within * the Aggregator framework. Adheres to the properties of strict ordering by * insert sequence, equality on the basis of values...
src/com/amazonaws/services/kinesis/aggregators/LabelSet.java
0.924925
0.441131
LabelSet.java
starcoder
package com.fromlabs.inventory.supplierservice.supplier.specification; import com.fromlabs.inventory.supplierservice.common.specifications.BaseSpecification; import com.fromlabs.inventory.supplierservice.supplier.SupplierEntity; import org.springframework.data.jpa.domain.Specification; import static com.fromlabs.inve...
supplier-service/src/main/java/com/fromlabs/inventory/supplierservice/supplier/specification/SupplierSpecification.java
0.858719
0.402216
SupplierSpecification.java
starcoder
package io.atlasmap.spi; import java.util.Optional; import io.atlasmap.api.AtlasConversionException; import io.atlasmap.v2.FieldType; public interface AtlasConversionService { Optional<AtlasConverter<?>> findMatchingConverter(FieldType source, FieldType target); Optional<AtlasConverter<?>> findMatchingConv...
lib/api/src/main/java/io/atlasmap/spi/AtlasConversionService.java
0.919009
0.450118
AtlasConversionService.java
starcoder
package org.webrtc; import android.graphics.Matrix; import android.opengl.GLES11Ext; import android.opengl.GLES20; import android.support.annotation.Nullable; import java.nio.ByteBuffer; /** * Java version of webrtc::VideoFrame and webrtc::VideoFrameBuffer. A difference from the C++ * version is that no explicit ta...
webrtc-made/src/main/java/org/webrtc/VideoFrame.java
0.923277
0.415136
VideoFrame.java
starcoder
package com.autoStock.chart; /** * @author <NAME> * */ import java.awt.Graphics2D; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.entity.EntityCollection; import org.jfree.chart.plot.CrosshairState; import org.jfree.chart.plot.PlotOrien...
src/com/autoStock/chart/XYSmoothLineAndShapeRenderer.java
0.728072
0.505554
XYSmoothLineAndShapeRenderer.java
starcoder
package org.redisson.api; import java.util.Collection; import java.util.concurrent.TimeUnit; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** * Reactive interface for BlockingQueue object * * @author <NAME> * @param <V> the type of elements held in this collection */ public interface ...
redisson/src/main/java/org/redisson/api/RBlockingQueueReactive.java
0.939568
0.45647
RBlockingQueueReactive.java
starcoder
package zamorozka.ui; import java.util.Random; import net.minecraft.client.Minecraft; import net.minecraft.entity.Entity; import net.minecraft.entity.EntityLivingBase; import net.minecraft.util.math.MathHelper; public class AngleUtility { private float minYawSmoothing, maxYawSmoothing, minPitchSmoothing, maxPitc...
zamorozka/ui/AngleUtility.java
0.871925
0.536374
AngleUtility.java
starcoder
package org.weibei.bouncycastle.pqc.crypto.ntru; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.util.ArrayList; import java.util.List; import org.weibei.bouncycastle.crypto.params.AsymmetricKey...
weibei-bouncycastle/src/main/java/org/weibei/bouncycastle/pqc/crypto/ntru/NTRUSigningPrivateKeyParameters.java
0.895546
0.411939
NTRUSigningPrivateKeyParameters.java
starcoder
package org.joml; import java.io.Externalizable; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectOutput; //#ifdef __HAS_NIO__ import java.nio.ByteBuffer; import java.nio.FloatBuffer; //#endif import java.text.DecimalFormat; import java.text.NumberFormat; import org.joml.Math; import org.j...
src/org/joml/Matrix4x3f.java
0.715722
0.452657
Matrix4x3f.java
starcoder
package org.apache.iceberg.orc; import java.util.Arrays; import java.util.List; import java.util.Map; import org.apache.iceberg.relocated.com.google.common.collect.Lists; import org.apache.iceberg.types.Types; import org.apache.orc.storage.ql.exec.vector.BytesColumnVector; import org.apache.orc.storage.ql.exec.vector....
orc/src/main/java/org/apache/iceberg/orc/OrcValueReaders.java
0.870597
0.607459
OrcValueReaders.java
starcoder
package java.sql; import java.io.InputStream; import java.io.Reader; import java.math.BigDecimal; import java.net.URL; /** * The interface for an output stream used to write attributes of an SQL <i>User * Defined Type</i> (UDT) to the database. This interface is used for custom * mapping of types and is called by ...
third_party/android/platform-libcore/android-platform-libcore/luni/src/main/java/java/sql/SQLOutput.java
0.930695
0.536252
SQLOutput.java
starcoder
package javax.json; import java.math.BigDecimal; import java.math.BigInteger; /** * A builder for creating {@link JsonArray} models from scratch, and for * modifying a existing {@code JsonArray}. * <p>A {@code JsonArrayBuilder} can start with an empty or a non-empty * JSON array model. This interface provides met...
carControl/WebContent/WEB-INF/lib/jsonp_1.1_api/main/java/javax/json/JsonArrayBuilder.java
0.965119
0.509032
JsonArrayBuilder.java
starcoder
package infinity.ecs.core; import infinity.ecs.utils.BitArray; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; /** * Can be used to create an immutable mask that resembles a group of several types of * {@link Component}s. Can be compared to othe...
src/infinity/ecs/core/ComponentMask.java
0.85561
0.406626
ComponentMask.java
starcoder
package com.sogokids.common.util; import com.alibaba.fastjson.util.TypeUtils; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; public class TimeUtil { public static class TimeUnit { public static final int MONTH = 1; public static f...
src/main/java/com/sogokids/common/util/TimeUtil.java
0.775732
0.470797
TimeUtil.java
starcoder
package nl.han.ica.OOPDProcessingEngineHAN.View; import nl.han.ica.OOPDProcessingEngineHAN.Objects.GameObject; /** * Extend this class if you want to make your own following viewport implementation. */ public abstract class FollowingViewport extends Viewport { /** * The GameObject the Viewport is followi...
src/main/java/nl/han/ica/OOPDProcessingEngineHAN/View/FollowingViewport.java
0.913741
0.525612
FollowingViewport.java
starcoder
package nl.colorize.multimedialib.graphics; import com.google.common.collect.ImmutableList; import nl.colorize.multimedialib.mock.MockImage; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; public class Sprit...
test/nl/colorize/multimedialib/graphics/SpriteTest.java
0.90731
0.574395
SpriteTest.java
starcoder
package org.ejml.interfaces.decomposition; import org.ejml.data.Complex64F; import org.ejml.data.Matrix; /** * <p> * This is a generic interface for computing the eigenvalues and eigenvectors of a matrix. * Eigenvalues and eigenvectors have the following property:<br> * <br> * A*v=&lambda;*v<br> * <br> * wher...
main/core/src/org/ejml/interfaces/decomposition/EigenDecomposition.java
0.948597
0.604574
EigenDecomposition.java
starcoder
package org.neo4j.driver.reactive; import org.neo4j.driver.Query; import org.reactivestreams.Publisher; import java.util.Map; import java.util.concurrent.CompletableFuture; import org.neo4j.driver.AccessMode; import org.neo4j.driver.Session; import org.neo4j.driver.TransactionConfig; import org.neo4j.driver.Values; ...
driver/src/main/java/org/neo4j/driver/reactive/RxSession.java
0.91776
0.41117
RxSession.java
starcoder
public class Scandit { /** * @brief A convenience class for rectangles. */ public class Rect { /** * @param x The x coordinate. * @param y The y coordinate. * @param width The rectangle's width. * @param height The rectangle's height. */ public Rect(Number x, Number y, Number width...
docs/Scandit.java
0.872143
0.641142
Scandit.java
starcoder
package nl.ap.mst.Tree; import nl.ap.mst.Graph.Node; import java.util.ArrayList; import java.util.List; public class Tree { List<TreeNode> nodes; public Tree() { nodes = new ArrayList<>(); } public void Add(TreeNode node) { if (Has(node)) return; nodes.add(node...
src/main/java/nl/ap/mst/Tree/Tree.java
0.548432
0.484075
Tree.java
starcoder
package model.gameplay.MVCInteraction.API; import controller.ConfigObjects.Config; import java.util.List; /*** * The service GameControlAPI provides is to provide the Controller * with all methods it needs to know about the current state of the Model, so that * it facilitates all Model-Controller communication....
model/gameplay/MVCInteraction/API/GameControlAPI.java
0.878353
0.41941
GameControlAPI.java
starcoder
package us.ihmc.robotArmTwo; import us.ihmc.euclid.referenceFrame.ReferenceFrame; import us.ihmc.robotArmOne.RobotArmOne; import us.ihmc.robotArmOne.SevenDoFArmParameters.SevenDoFArmJointEnum; import us.ihmc.robotics.referenceFrames.CenterOfMassReferenceFrame; import us.ihmc.robotics.screwTheory.InverseDynamicsJoint; ...
robot-arm-two/src/main/java/us/ihmc/robotArmTwo/RobotArmTwo.java
0.921503
0.619932
RobotArmTwo.java
starcoder
package com.mongodb.starter.practice; /* Given two non-negative integers, num1 and num2 represented as string, return the sum of num1 and num2 as a string. You must solve the problem without using any built-in library for handling large integers (such as BigInteger). You must also not convert the inputs to integers...
src/main/java/com/mongodb/starter/practice/AddStrings.java
0.575946
0.505676
AddStrings.java
starcoder
package com.worksap.nlp.sudachi; import com.worksap.nlp.sudachi.dictionary.WordInfo; /** * A node of {@link Lattice}. * * <p> * The node has the parameters of connection, the position in the input text, * and the information of morpheme as {@link WordInfo} * * <p> * Allocation of a node in the plugins must be...
src/main/java/com/worksap/nlp/sudachi/LatticeNode.java
0.857694
0.468973
LatticeNode.java
starcoder
package paint_interval; import java.util.Arrays; /* You are given a range [first, last], initially white. You need to paint it black. For this purpose you have a set of triples [(f, l, cost), ...] - where each triple means that you can paint range [f, l] for `cost` coins (limitations: cost is floating point >= 0...
src/paint_interval/Painter.java
0.753739
0.507812
Painter.java
starcoder
import static org.junit.Assert.*; import org.junit.*; public class UnionFindTest { @Test public void testNumComponents() { UnionFind uf = new UnionFind(5); assertEquals(uf.components(), 5); uf.unify(0, 1); assertEquals(uf.components(), 4); uf.unify(1, 0); as...
datastructures/unionfind/UnionFindTest.java
0.87335
0.840913
UnionFindTest.java
starcoder
package org.h2.dev.util; import java.nio.ByteBuffer; import java.util.Arrays; /** * An ANS (Asymmetric Numeral Systems) compression tool. * It uses the range variant. */ public class AnsCompression { private static final long TOP = 1L << 24; private static final int SHIFT = 12; private static final in...
payara5/h2db/src/tools/org/h2/dev/util/AnsCompression.java
0.907371
0.548734
AnsCompression.java
starcoder
package cesiumlanguagewriter; import agi.foundation.compatibility.*; import agi.foundation.compatibility.annotations.CS2JInfo; import agi.foundation.compatibility.annotations.CS2JWarning; import agi.foundation.compatibility.ArgumentNullException; import agi.foundation.compatibility.ArgumentOutOfRangeException; import...
src/main/java/cesiumlanguagewriter/Spherical.java
0.898227
0.489564
Spherical.java
starcoder
import Entities.Car; import java.util.ArrayList; import java.util.Collections; /** * Cars manager * Can be used to calculate fuel and distance operations * * @author V.U.Kurhei * @version 1.0 */ public class CarManager { public static ArrayList<Car> cars = new ArrayList<>(); private final static String...
src/CarManager.java
0.904762
0.467028
CarManager.java
starcoder
package org.apache.commons.math.linear; import java.io.Serializable; import java.util.Arrays; import java.util.Iterator; import org.apache.commons.math.MathRuntimeException; import org.apache.commons.math.util.MathUtils; /** * This class implements the {@link RealVector} interface with a double array. * @version $...
examples/math_70/src/main/java/org/apache/commons/math/linear/ArrayRealVector.java
0.958187
0.687555
ArrayRealVector.java
starcoder
package com.ajah.util; import java.util.ArrayList; import java.util.Arrays; import java.util.logging.Level; import lombok.extern.java.Log; /** * Utility methods for arrays. * * @author <a href="http://efsavage.com"><NAME></a>, * <a href="mailto:<EMAIL>"><EMAIL></a>. */ @Log public class ArrayUtils { ...
ajah-util/src/main/java/com/ajah/util/ArrayUtils.java
0.893752
0.580947
ArrayUtils.java
starcoder
package org.lwjgl.opengles; import java.nio.*; import static org.lwjgl.system.Checks.*; import static org.lwjgl.system.JNI.*; import static org.lwjgl.system.MemoryUtil.*; /** * Native bindings to the <a href="https://www.khronos.org/registry/gles/extensions/EXT/EXT_base_instance.txt">EXT_base_instance</a> extension...
Dependencies/opengles/src/org/lwjgl/opengles/EXTBaseInstance.java
0.86757
0.419351
EXTBaseInstance.java
starcoder
package org.latlab.core.learner.geast; import org.latlab.core.data.MixedDataSet; import org.latlab.core.model.Gltm; import org.latlab.core.reasoner.NaturalCliqueTree; import org.latlab.core.reasoner.NaturalCliqueTreePropagation; import org.latlab.core.reasoner.NaturalCliqueTreePropagation.LocalPropagationMemento; /**...
src/main/java/org/latlab/core/learner/geast/SeparateTreePropagation.java
0.661923
0.545104
SeparateTreePropagation.java
starcoder
package java.security.acl; import java.util.Enumeration; import java.security.Principal; /** * This is the interface used for representing one entry in an Access * Control List (ACL).<p> * <p> * An ACL can be thought of as a data structure with multiple ACL entry * objects. Each ACL entry object contains a set o...
sourcecode7/src/java/security/acl/AclEntry.java
0.933673
0.40204
AclEntry.java
starcoder
package net.minecraftforge.client.extensions; import com.mojang.blaze3d.matrix.MatrixStack; import net.minecraft.util.Direction; import net.minecraft.util.math.vector.*; /* * Replacement interface for ModelRotation to allow custom transformations of vanilla models. * You should probably use TRSRTransformation direc...
build/tmp/expandedArchives/forge-1.16.5-36.2.19_mapped_official_1.16.5-sources.jar_96953985799bf045b80c10dc6b54685a/net/minecraftforge/client/extensions/IForgeTransformationMatrix.java
0.86306
0.426441
IForgeTransformationMatrix.java
starcoder
package com.arcsoft.office.fc.ss.util; import java.math.BigInteger; import static com.arcsoft.office.fc.ss.util.IEEEDouble.*; /** * Represents a 64 bit IEEE double quantity expressed with both decimal and binary exponents * Does not handle negative numbers or zero * <p/> * The value of a {@link ExpandedDouble} i...
src/com/arcsoft/office/fc/ss/util/ExpandedDouble.java
0.864182
0.474631
ExpandedDouble.java
starcoder
package hex.deeplearning; import hex.DataInfo; import hex.FrameTask; import water.DKV; import water.H2O; import water.Key; import water.util.Log; import water.util.RandomUtils; import java.util.Arrays; import java.util.Random; public class DeepLearningTask extends FrameTask<DeepLearningTask> { final private boolea...
h2o-algos/src/main/java/hex/deeplearning/DeepLearningTask.java
0.726329
0.405272
DeepLearningTask.java
starcoder
package mara.mybox.data; import java.awt.Rectangle; /** * @Author Mara * @CreateDate 2018-11-11 12:23:40 * @Version 1.0 * @Description * @License Apache License Version 2.0 */ public class DoubleRectangle implements DoubleShape { protected double smallX, smallY, bigX, bigY, width, height; protected dou...
released/MyBox/src/main/java/mara/mybox/data/DoubleRectangle.java
0.909239
0.478529
DoubleRectangle.java
starcoder
package algolib.graphs.algorithms; import java.util.HashMap; import java.util.HashSet; import java.util.Map; import java.util.PriorityQueue; import java.util.Set; import java.util.function.Function; import java.util.stream.Collectors; import algolib.graphs.DirectedGraph; import algolib.graphs.Edge; import algolib.gra...
src/algolib/graphs/algorithms/Paths.java
0.94419
0.407805
Paths.java
starcoder
package io.github.isoteriktech.xgdx.x2d.components.renderer; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.g2d.TextureRegion; import com.badlogic.gdx.math.Vector2; import com.badlogic.gdx.math.Vector3...
src/main/java/io/github/isoteriktech/xgdx/x2d/components/renderer/SpriteRenderer.java
0.948238
0.551604
SpriteRenderer.java
starcoder
package gnu.math; import java.math.BigDecimal; public abstract class RealNum extends Complex implements Comparable { public abstract Numeric add(Object obj, int i); public abstract Numeric div(Object obj); public abstract boolean isNegative(); public abstract Numeric mul(Object obj); public ab...
gnu/math/RealNum.java
0.806129
0.661322
RealNum.java
starcoder
package org.redisson.api; import org.redisson.executor.CronExpression; /** * Cron expression object used in {@link RScheduledExecutorService}. * Fully compatible with quartz cron expression. * * @see RScheduledExecutorService#schedule(Runnable, CronSchedule) * * @author <NAME> * */ public final class CronSc...
redisson/src/main/java/org/redisson/api/CronSchedule.java
0.939734
0.454896
CronSchedule.java
starcoder
package edu.wpi.first.wpilibj; import edu.wpi.first.wpiutil.CircularBuffer; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * A class that implements a moving-window median filter. Useful for reducing measurement noise, * especially with processes that generate occasional, extr...
wpimath/src/main/java/edu/wpi/first/wpilibj/MedianFilter.java
0.92632
0.464476
MedianFilter.java
starcoder
package br.com.carlosrafaelgn.iotdcp; import android.util.SparseArray; import java.util.ArrayList; import java.util.Collections; import java.util.List; @SuppressWarnings({"unused", "WeakerAccess"}) public final class IoTProperty { static final class Buffer { final byte[] buffer; int length; Buffer(int maxLen...
app/src/main/java/br/com/carlosrafaelgn/iotdcp/IoTProperty.java
0.688573
0.432363
IoTProperty.java
starcoder
package de.dennisguse.opentracks.fragments; import android.location.Location; import android.os.Looper; import androidx.test.core.app.ApplicationProvider; import androidx.test.ext.junit.runners.AndroidJUnit4; import org.junit.AfterClass; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Test; i...
src/androidTest/java/de/dennisguse/opentracks/fragments/ChartFragmentTest.java
0.909293
0.492554
ChartFragmentTest.java
starcoder
package com.temple.geo.model.geonames; import com.temple.util.Nameable; /** * TODOC * @author flominou */ public enum Feature implements Nameable { // Patterns // ^([A-Z])\.([0-9A-Z]+)\t([^\t]*)\t([^\t]*)$ // to // $2('$1', "$3", "$4"), UNKNOWN(FeatureType.X, "unknown", null), ADM1(FeatureType.A, "first-ord...
geo/temple.geo.service.client/ejbModule/com/temple/geo/model/geonames/Feature.java
0.589126
0.590661
Feature.java
starcoder
package com.example.a301pro.Models; import com.google.firebase.firestore.GeoPoint; /** * This model initializes the property of a borrowed book as well as gets the data of a book */ public class Borrowed { private String bookID; private String imageId; private String ISBN; private String bookName; ...
301pro/app/src/main/java/com/example/a301pro/Models/Borrowed.java
0.882143
0.488954
Borrowed.java
starcoder
package org.neverfear.util; /** * Utility class for manipulating bytes */ public final class Bytes { private static final int LONG_BYTE_SIZE = Long.SIZE / Byte.SIZE; private static final int INT_BYTE_SIZE = Integer.SIZE / Byte.SIZE; private Bytes() {} /** * Reverses the byte ordering of a long * * @par...
src/main/java/org/neverfear/util/Bytes.java
0.931851
0.691289
Bytes.java
starcoder
package javax.jdo.query; /** * Representation of a numeric expression. * * @param <T> Number type */ public interface NumericExpression<T> extends ComparableExpression<T> { /** * Method to return an expression for this expression added to the passed expression. * @param expr The other expression ...
api/src/main/java/javax/jdo/query/NumericExpression.java
0.924526
0.726765
NumericExpression.java
starcoder
package LinkedList_problem; import java.util.PriorityQueue; /** * 题目描述:给你一个链表数组,每个链表都已经按升序排列。 * 请你将所有链表合并到一个升序链表中,返回合并后的链表。 */ public class Solution23 { // 1、优先队列:用容量为K的最小堆优先队列,把链表的头结点都放进去,然后出队当前 // 优先队列中最小的,挂上链表,然后让 出队的那个节点指向的下一个节点 入队, // 如此反复,再出队当前优先队列中最小的,直到优先队列为空。 // 时间复杂度:O(n*log(k)),n是所有链表中...
data_struct_study/src/LinkedList_problem/Solution23.java
0.570092
0.557183
Solution23.java
starcoder
package nl.wernerdegroot.applicatives.processor.validation; import nl.wernerdegroot.applicatives.processor.domain.TypeParameter; import nl.wernerdegroot.applicatives.processor.domain.typeconstructor.TypeConstructor; import java.util.List; import java.util.Objects; import java.util.Optional; public class TemplateClas...
processor/src/main/java/nl/wernerdegroot/applicatives/processor/validation/TemplateClassWithMethods.java
0.864796
0.422386
TemplateClassWithMethods.java
starcoder
package com.raylib.java.rlgl; public class rlVertexBuffer{ int elementCount; // Number of elements in the buffer (QUADS) float[] vertices; // Vertex position (XYZ - 3 components per vertex) (shader-location = 0) float[] texcoords; // Vertex texture coordinates (UV - 2 compone...
src/com/raylib/java/rlgl/rlVertexBuffer.java
0.721351
0.474814
rlVertexBuffer.java
starcoder
package java.sql; /** * An interface for the custom mapping of an SQL <i>User Defined Type</i> (UDT) * to a Java class. The Java class object is added to the connection's type map * paired with the SQL name of the corresponding UDT. * <p> * Usually within an implementation of {@code SQLData}, there is a correspon...
classlib/modules/sql/src/main/java/java/sql/SQLData.java
0.927544
0.551996
SQLData.java
starcoder
package com.github.chen0040.ml.linearalg; import com.github.chen0040.ml.linearalg.cholesky.Cholesky; import com.github.chen0040.ml.linearalg.cholesky.CholeskyFactorization; import com.github.chen0040.ml.linearalg.eigens.EigenVectorFactorization; import com.github.chen0040.ml.linearalg.eigens.UT; import com.github.chen...
ml-components/ml-linearalg/src/main/java/com/github/chen0040/ml/linearalg/Matrix.java
0.852997
0.654922
Matrix.java
starcoder
package world.thismagical.dao; /* User: Alasdair Date: 5/14/2020 Time: 8:09 PM `.------:::--...``.` ...
src/world/thismagical/dao/PagingDao.java
0.527803
0.497498
PagingDao.java
starcoder
package com.jhlabs.image; import java.awt.*; import java.awt.image.*; public class Curve { public float[] x; public float[] y; public Curve() { x = new float[] { 0, 1 }; y = new float[] { 0, 1 }; } public Curve( Curve curve ) { x = (float[])curve.x.clone(); y = (float[])curve.y.clone(); } public ...
src/main/java/com/jhlabs/image/Curve.java
0.512205
0.400632
Curve.java
starcoder
package humbug.mdl; import java.util.Objects; /** * Position represents the position of an object on a board and is defined by * row and column. * * @author <NAME> (g54931) */ public class Position { private int row; private int column; /** * Default constructor for Position object. */ ...
src/main/java/humbug/mdl/Position.java
0.936474
0.491273
Position.java
starcoder
package org.apache.iceberg.expressions; import java.util.List; import java.util.Set; import org.apache.iceberg.exceptions.ValidationException; import org.apache.iceberg.relocated.com.google.common.base.Joiner; import org.apache.iceberg.relocated.com.google.common.base.Preconditions; import org.apache.iceberg.relocated...
api/src/main/java/org/apache/iceberg/expressions/UnboundPredicate.java
0.871023
0.416737
UnboundPredicate.java
starcoder
package com.opengamma.strata.pricer.impl.tree; import java.util.Arrays; import com.opengamma.strata.collect.array.DoubleArray; import com.opengamma.strata.collect.array.DoubleMatrix; /** * Option function interface used in trinomial tree option pricing. */ public interface OptionFunction { /** * Obtains time...
modules/pricer/src/main/java/com/opengamma/strata/pricer/impl/tree/OptionFunction.java
0.940565
0.702275
OptionFunction.java
starcoder
package halias; import java.util.ArrayList; import java.util.List; /** * Class for handling a single day's weather data of a single place of observation. */ public class DailyWeather { public Double tempDaySum; public Integer tempDayN; //public Double tempNightSum; //public Integer tempNightN; public List<Wi...
src/halias/DailyWeather.java
0.770724
0.574932
DailyWeather.java
starcoder
package box2dLight; import com.badlogic.gdx.graphics.Color; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.Mesh; import com.badlogic.gdx.graphics.Mesh.VertexDataType; import com.badlogic.gdx.graphics.VertexAttribute; import com.badlogic.gdx.graphics.VertexAttributes.Usage; import com.badlogic....
src/box2dLight/PositionalLight.java
0.906988
0.510313
PositionalLight.java
starcoder
package org.apache.geode.redis.internal.commands.executor.list; import static org.apache.geode.distributed.ConfigurationProperties.GEODE_FOR_REDIS_PORT; import static org.apache.geode.test.dunit.rules.RedisClusterStartupRule.BIND_ADDRESS; import static org.assertj.core.api.Assertions.assertThat; import java.util.Arra...
geode-for-redis/src/distributedTest/java/org/apache/geode/redis/internal/commands/executor/list/RPushDUnitTest.java
0.655446
0.434821
RPushDUnitTest.java
starcoder
package net.sourceforge.pmd.lang.java.ast; public class JavaParserVisitorAdapter implements JavaParserVisitor { @Override public Object visit(JavaNode node, Object data) { return node.childrenAccept(this, data); } @Override public Object visit(ASTExtendsList node, Object data) { r...
pmd-java/src/main/java/net/sourceforge/pmd/lang/java/ast/JavaParserVisitorAdapter.java
0.783947
0.691256
JavaParserVisitorAdapter.java
starcoder
E 后面需要重复的pattern,用括号包起来。 ``` /* Hackerrank https://www.hackerrank.com/contests/regular-expresso/challenges/matching-same-text-again-again Matching Same Text Again & Again \𝗀𝗋𝗈𝗎𝗉_𝗇𝗎𝗆𝖻𝖾𝗋\group_number This tool (\1 references the first capturin...
java/sha/Others/Matching Same Text Again & Again.java
0.83471
0.981962
Matching Same Text Again & Again.java
starcoder
package com.ardor3d.extension.effect.particle; import java.io.IOException; import com.ardor3d.math.Line3; import com.ardor3d.math.MathUtils; import com.ardor3d.math.Quaternion; import com.ardor3d.math.Vector3; import com.ardor3d.math.type.ReadOnlyLine3; import com.ardor3d.math.type.ReadOnlyMatrix3; import com.ardor3d...
ardor3d-effects/src/main/java/com/ardor3d/extension/effect/particle/SimpleParticleInfluenceFactory.java
0.918963
0.490785
SimpleParticleInfluenceFactory.java
starcoder
package io.vavr; import io.vavr.collection.Iterator; import io.vavr.collection.List; import java.util.Objects; import java.util.function.Predicate; /** * Defines general-purpose predicates which are particularly useful when working with {@link API.Match}. * @deprecated Will be removed in the next major version, al...
src/main/java/io/vavr/Predicates.java
0.931812
0.472866
Predicates.java
starcoder
package io.trivium.dep.org.iq80.leveldb.table; import io.trivium.dep.com.google.common.base.Preconditions; import io.trivium.dep.org.iq80.leveldb.CompressionType; import io.trivium.dep.org.iq80.leveldb.util.Slice; import io.trivium.dep.org.iq80.leveldb.util.SliceInput; import io.trivium.dep.org.iq80.leveldb.util.Slice...
src/io/trivium/dep/org/iq80/leveldb/table/BlockTrailer.java
0.802401
0.430028
BlockTrailer.java
starcoder
package com.jakubpetriska.gameengine.api; import com.jakubpetriska.gameengine.api.components.BoxCollider; import com.jakubpetriska.gameengine.api.math.Matrix44; import com.jakubpetriska.gameengine.api.math.Vector3; import com.jakubpetriska.gameengine.engine.ISystem; import com.jakubpetriska.gameengine.utilities.String...
engine/src/main/java/com/jakubpetriska/gameengine/api/CollisionsSystem.java
0.873215
0.503723
CollisionsSystem.java
starcoder
package org.cdsframework.util.cds.vmr.tree; import java.util.List; import org.cdsframework.util.LogUtils; import org.opencds.vmr.v1_0.schema.CD; import org.opencds.vmr.v1_0.schema.ObservationResult; import org.primefaces.model.DefaultTreeNode; import org.primefaces.model.TreeNode; /** * * @author HLN Consulting, LL...
src/main/java/org/cdsframework/util/cds/vmr/tree/ObservationResultTreeNodeOutputAssist.java
0.814201
0.445952
ObservationResultTreeNodeOutputAssist.java
starcoder
package com.github.jakimli.pandaria.steps.verification; import com.github.jakimli.pandaria.domain.variable.Variables; import com.github.jakimli.pandaria.domain.VerificationContext; import cucumber.api.java.en.Then; import org.springframework.beans.factory.annotation.Autowired; import static org.hamcrest.CoreMatchers....
pandaria-core/src/main/java/com/github/jakimli/pandaria/steps/verification/StringVerificationSteps.java
0.767646
0.502747
StringVerificationSteps.java
starcoder
package robocode.robotinterfaces.peer; /** * The standard robot peer for standard robot types like {@link robocode.Robot}, * {@link robocode.AdvancedRobot}, and {@link robocode.TeamRobot}. * <p> * A robot peer is the object that deals with game mechanics and rules, and * makes sure your robot abides by them. * ...
robocode.api/src/main/java/robocode/robotinterfaces/peer/IStandardRobotPeer.java
0.946101
0.634458
IStandardRobotPeer.java
starcoder
package codedraw.events; import java.awt.*; /** * This argument is given every time the CodeDraw window is moved. */ public class WindowMoveEvent { public WindowMoveEvent(Point canvasPosition, Point windowPosition) { this.canvasPosition = canvasPosition.getLocation(); this.windowPosition = windowPosition.getLo...
src/main/java/codedraw/events/WindowMoveEvent.java
0.941379
0.449393
WindowMoveEvent.java
starcoder
* Provides run-time semantic analysis of the projection list for the * scan operator. The project list can include table columns and a * variety of special columns. Requested columns can exist in the table, * or may be "missing" with null values applied. The code here prepares * a run-time projection plan based on...
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/scan/project/package-info.java
0.888753
0.729351
package-info.java
starcoder
package boofcv.abst.segmentation; import boofcv.alg.InputSanityCheck; import boofcv.alg.segmentation.ComputeRegionMeanColor; import boofcv.alg.segmentation.ImageSegmentationOps; import boofcv.alg.segmentation.ms.MergeSmallRegions; import boofcv.alg.segmentation.watershed.WatershedVincentSoille1991; import boofcv.core....
main/boofcv-feature/src/main/java/boofcv/abst/segmentation/Watershed_to_ImageSuperpixels.java
0.861115
0.514766
Watershed_to_ImageSuperpixels.java
starcoder
package org.oscm.internal.vo; import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import java.util.UUID; import org.oscm.internal.types.enumtypes.PriceModelType; import org.oscm.internal.types.enumtypes.PricingPeriod; import javax.ws.rs.core.MediaType; /** * Represents a price model. *...
oscm-extsvc-internal/src/main/java/org/oscm/internal/vo/VOPriceModel.java
0.909862
0.459379
VOPriceModel.java
starcoder
public class Card { //Instance Variables private String cardName; private int energyCost; private int damageValue; private int blockValue; //Constructor /** * This method creates a Card object to store the card name, energy * cost requirment, damage value, block value, and draw value. * @param...
Demo 2 Files/Card.java
0.601828
0.442155
Card.java
starcoder
package net.finmath.montecarlo; import java.util.Arrays; import java.util.function.DoubleBinaryOperator; import java.util.function.DoubleSupplier; import java.util.function.DoubleUnaryOperator; import java.util.function.IntToDoubleFunction; import java.util.stream.DoubleStream; import java.util.stream.IntStream; impo...
src/main/java8/net/finmath/montecarlo/RandomVariableLazyEvaluation.java
0.689096
0.414603
RandomVariableLazyEvaluation.java
starcoder
package yapion.parser; import yapion.annotations.deserialize.YAPIONLoadExclude; import yapion.annotations.serialize.YAPIONSaveExclude; import yapion.exceptions.parser.YAPIONParserException; import yapion.exceptions.utils.YAPIONIOException; import yapion.hierarchy.typegroups.YAPIONAnyType; import yapion.hierarchy.type...
src/main/java/yapion/parser/YAPIONParser.java
0.883299
0.476153
YAPIONParser.java
starcoder
package com.itemanalysis.psychometrics.distribution; import org.junit.Test; import static org.junit.Assert.*; public class NormalDistributionApproximationTest { @Test public void testQuadrature() { NormalDistributionApproximation norm = new NormalDistributionApproximation(-4.0, 4.0, ...
test/com/itemanalysis/psychometrics/distribution/NormalDistributionApproximationTest.java
0.702836
0.482063
NormalDistributionApproximationTest.java
starcoder
* MaskSubgraph.java * ------------------------- * (C) Copyright 2007-2008, by France Telecom * * Original Author: <NAME> and Contributors. * * $Id$ * * Changes * ------- * 05-Jun-2007 : Initial revision (GB); * */ package org.jgrapht.graph; import java.util.*; import org.jgrapht.*; /** * An unmodifia...
src/org/jgrapht/graph/MaskSubgraph.java
0.959431
0.46873
MaskSubgraph.java
starcoder
package org.fastcatsearch.ir.dictionary; import org.apache.lucene.store.InputStreamDataInput; import org.apache.lucene.store.OutputStreamDataOutput; import org.fastcatsearch.ir.io.CharVector; import org.fastcatsearch.ir.io.DataInput; import org.fastcatsearch.ir.io.DataOutput; import org.fastcatsearch.ir.util.CharVecto...
server/src/main/java/org/fastcatsearch/ir/dictionary/MapDictionary.java
0.51879
0.442396
MapDictionary.java
starcoder