sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
c82303eaf02753da33b134fcbd9f5dfcde0b2895d02a9250aa9468749d6fddba
Java
1,675
63
// // This file is auto-generated. Please don't modify it! // package org.opencv.features2d; import org.opencv.features2d.DescriptorMatcher; import org.opencv.features2d.FlannBasedMatcher; // C++: class FlannBasedMatcher //javadoc: FlannBasedMatcher public class FlannBasedMatcher extends DescriptorMatcher { pro...
241f49062f0134e560e78933867b7b87f23389cd51f8b12ec268de8d9616dea0
Java
1,698
43
// Generated by `RayCallGenerator.java`. DO NOT EDIT. package io.ray.api; import io.ray.api.call.PyActorTaskCaller; import io.ray.api.function.PyActorMethod; /** * This class provides type-safe interfaces for remote actor calls. **/ interface PyActorCall { default <R> PyActorTaskCaller<R> task(PyActorMethod<R> ...
ae237f678d0a2b7a27ae3c10e555568db0b79797e9289a7d2298dfb992efa916
Java
1,730
52
package io.ray.runtime; import io.ray.api.id.UniqueId; import java.nio.ByteBuffer; import java.util.Arrays; import javax.xml.bind.DatatypeConverter; import org.testng.Assert; import org.testng.annotations.Test; public class UniqueIdTest { @Test public void testConstructUniqueId() { // Test `fromHexString()` ...
44dd7fc7b3b451d4a3a0130621accd3e5bc1ef9f696863fb57a27fc832c88ea7
Java
1,751
49
package io.ray.serve.poll; import com.google.protobuf.InvalidProtocolBufferException; import io.ray.serve.exception.RayServeException; import java.io.Serializable; import java.util.HashMap; import java.util.Map; public class LongPollResult implements Serializable { private static final long serialVersionUID = 6603...
7cfcf359e911f7db3c35f3697f55f4016207469f2fc531376ce3305a4f9908c2
Java
1,778
64
package io.ray.api.function; /** * A class that represents a method of a Python actor. * * <p>Note, information about the actor will be inferred from the actor handle, so it's not * specified in this class. * * <pre> * there is a Python actor class A. * * \@ray.remote * class A(object): * def foo(self):...
8cf201fe97b3ddd5ecb61643e1e5cfa066a4fe8c116b591a7bffd8833d082e6a
Java
1,783
57
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.Ray; import java.util.Optional; import org.testng.Assert; import org.testng.annotations.BeforeClass; import org.testng.annotations.Test; public class NamedActorTest extends BaseTest { public static class Counter { private int value = 0; ...
0177d5f637abdcb2d29e26bb73f44ea519abad25e577094de95b3a91aa1dde29
Java
1,801
49
// Generated by `RayCallGenerator.java`. DO NOT EDIT. package io.ray.api; import io.ray.api.call.CppActorTaskCaller; import io.ray.api.function.CppActorMethod; /** This class provides type-safe interfaces for remote actor calls. */ interface CppActorCall { default <R> CppActorTaskCaller<R> task(CppActorMethod<R> ...
32e25f28050403e9d8bf64cda7037295e7ecd4085ffd385fa3a12b68d3dbf173
Java
1,810
56
// // This file is auto-generated. Please don't modify it! // package org.opencv.objdetect; import java.util.ArrayList; import java.util.List; import org.opencv.core.Mat; import org.opencv.core.MatOfInt; import org.opencv.core.MatOfRect; import org.opencv.utils.Converters; // C++: class Objdetect //javadoc: Objdetect...
5a125493f8234a7090ec0e50ddff459c0f9ae97e8dbadb62b4c56235a120442c
Java
1,811
63
package io.ray.api.runtimecontext; import io.ray.api.BaseActorHandle; import io.ray.api.id.ActorId; import io.ray.api.id.JobId; import io.ray.api.id.TaskId; import io.ray.api.id.UniqueId; import io.ray.api.runtimeenv.RuntimeEnv; import java.util.List; /** A class used for getting information of Ray runtime. */ public...
328ebd028d7c82070b7e779898d90563393d504da62649588ab0b378e145cdfe
Java
1,821
73
package io.ray.test; import com.google.common.collect.ImmutableList; import io.ray.api.ObjectRef; import io.ray.api.Ray; import io.ray.api.WaitResult; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; public class WaitTest extends BaseTest { private st...
964a90f6dff5924b4055a472c983273db3e4a59a9eba4361103ee2b94a9b6b40
Java
1,823
63
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.Ray; import io.ray.api.exception.RayTaskException; import org.testng.Assert; import org.testng.annotations.Test; public class TaskExceptionTest extends BaseTest { private static class UnserializableClass {} private static class Unserializable...
3fe906cec697a1bded98bfa852a9b587d6ffe6793e231b2f01693454bb495e67
Java
1,827
56
package io.ray.test; import io.ray.api.PlacementGroups; import io.ray.api.options.PlacementGroupCreationOptions; import io.ray.api.placementgroup.PlacementGroup; import io.ray.api.placementgroup.PlacementStrategy; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; /** A...
22f335185b3be1cb27fdca04a35d6aa21db31e5eaedecf8f95bf4d720d52231d
Java
1,846
87
package io.ray.serve.deployment; import io.ray.serve.config.DeploymentConfig; import java.io.Serializable; import java.util.Map; public class DeploymentWrapper implements Serializable { private static final long serialVersionUID = -5366203408463039652L; private String name; private String deploymentDef; p...
3fbd09cb7251431630d808a6042030517fca970e4dfb9143c568039fd5fb886d
Java
1,848
58
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.ObjectRef; import io.ray.api.Ray; import io.ray.api.id.ActorId; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.testng.Assert; import org.testng.annotations.Test; public class LocalModeT...
579d45bd6589ef71f2039f3fb5fa7b794101badc24aca5b962c95a9619022c29
Java
1,848
45
package io.ray.serve.docdemo.test; import io.ray.serve.BaseServeTest; import io.ray.serve.docdemo.StrategyCalcOnRayServe; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.testng.Assert; import org.testng.annotations.Test; public class StrategyCalcOnRayServeTes...
1aa17940ae143bdff14877184bbe5befb80934588ff3673da0d21fb0c75fb615
Java
1,850
68
package io.ray.runtime.functionmanager; import java.lang.reflect.Constructor; import java.lang.reflect.Executable; import java.lang.reflect.Method; import java.util.Optional; /** Represents a Ray function (either a Method or a Constructor in Java) and its metadata. */ public class RayFunction { /** The executor ob...
60429ec5b36ada708bc1736ed17a1b1c006c2f360e91633c6e4c9be3906186e3
Java
1,853
71
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
2ac9d6a09274146e7be8589224788a9095676406cdd53eb40a1b5e9fb6fa6cd9
Java
1,884
66
package io.ray.serve.util; import java.lang.reflect.Constructor; import java.lang.reflect.Method; import java.util.HashMap; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.testng.Assert; import org.testng.annotations.Test; public class ReflectUtilTest { static class ReflectExample { ...
9b75923c48a6ef29741106cd064dbbe7698a275e02a578c1bc2bf41aefe81f13
Java
1,904
76
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
da9c0d69c566474a540274a2911b6f6f9f997d606f19931293e955a13cf4505c
Java
1,917
58
package io.ray.runtime.util; import io.ray.api.Ray; import io.ray.runtime.AbstractRayRuntime; import java.lang.reflect.Array; import java.lang.reflect.Field; import java.lang.reflect.Method; public final class MethodUtils { public static String getSignature(Method m) { String sig; try { Field signatu...
31292f179f09cea5ba1dd8efc25931a7e858bf3f186b0bec72529f00c46301da
Java
1,919
57
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
417a31d957f71322c378679d3d68f3f547e1e537d8c5b203c6b9b8eafe0a77c5
Java
1,932
66
// // This file is auto-generated. Please don't modify it! // package org.opencv.photo; import java.util.ArrayList; import java.util.List; import org.opencv.core.Mat; import org.opencv.photo.MergeExposures; import org.opencv.utils.Converters; // C++: class MergeDebevec //javadoc: MergeDebevec public class MergeDebev...
993d375367e8cc968a497554c9718f082ada433e25ba9597b5ae339be6005bfd
Java
1,939
60
package io.ray.runtime.util; import com.google.common.base.Preconditions; import com.google.gson.Gson; import io.ray.runtime.config.RayConfig; import io.ray.runtime.config.RunMode; import java.util.HashMap; /** The utility class to read system config from native code. */ public class SystemConfig { private static ...
a7bada5c52df72df3392496402e2e8b029475e78163285fdc9f3e8e0849e00e8
Java
1,948
66
// // This file is auto-generated. Please don't modify it! // package org.opencv.photo; import java.util.ArrayList; import java.util.List; import org.opencv.core.Mat; import org.opencv.photo.MergeExposures; import org.opencv.utils.Converters; // C++: class MergeRobertson //javadoc: MergeRobertson public class MergeR...
02dbc05edc2b29655218154c2c72555e051e4ca469350c195eb54bfe96393e0d
Java
1,950
72
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
2a16a47d705cd89b1655e485f43de94c83d3c12c57e965ca521034fb8121cb93
Java
1,952
96
// // This file is auto-generated. Please don't modify it! // package org.opencv.photo; import org.opencv.photo.Tonemap; // C++: class TonemapDrago //javadoc: TonemapDrago public class TonemapDrago extends Tonemap { protected TonemapDrago(long addr) { super(addr); } // internal usage only public static...
5c21dfca7e842163f1025409b0b76e1bd479cc28e08c190f36a2a69ac37af4f6
Java
1,958
70
package io.ray.runtime.metric; import com.google.common.base.Preconditions; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.stream.Collectors; /** * Histogram measurement is mapped to histogram object in stats. In order to reduce JNI calls * ov...
673b7fa690a73b856d0fd7d1deacdf662c2f0370bdfad9b0427463b9a770a3d7
Java
1,963
80
package io.ray.benchmark; import io.ray.api.ActorHandle; import java.io.Serializable; public class PressureTestParameter implements Serializable { private static final long serialVersionUID = -52054601722982473L; private Integer clientNum = 1; // number of test client private PressureTestType pressureTestTyp...
8489b3dbde40d907654494ed4f153404da902ee3c861688d4988b4bb484cca14
Java
1,963
56
// // This file is auto-generated. Please don't modify it! // package org.opencv.video; import org.opencv.core.Algorithm; import org.opencv.core.Mat; // C++: class SparseOpticalFlow //javadoc: SparseOpticalFlow public class SparseOpticalFlow extends Algorithm { protected SparseOpticalFlow(long addr) { super(add...
e41e07f198f7d2d227edd2a4b9e00a8f5dfb10fb7b2755890b3136f1c3fbdcbc
Java
1,981
63
package io.ray.api.call; import io.ray.api.ActorHandle; import io.ray.api.Ray; import io.ray.api.concurrencygroup.ConcurrencyGroup; import io.ray.api.function.RayFuncR; import io.ray.api.runtimeenv.RuntimeEnv; import java.util.ArrayList; import java.util.Collections; import java.util.List; /** * A helper to create j...
378ebcb1d1638344ff76ab55c194517cf82e580257703a9877941a0b4dc5afd3
Java
1,982
60
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.Ray; import io.ray.api.exception.PendingCallsLimitExceededException; import io.ray.api.id.ObjectId; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.Assert; import org.testng.annotations.BeforeClass; import org.testng.annot...
af0ef771a2ed61b8d317400de4ecc0fa9e1422739a2bc861bdfed651e204fc1a
Java
1,982
80
package lychi.util; import java.util.Map; import java.util.List; import java.util.ArrayList; import java.util.TreeMap; public class UnionFind { int[] nodes; int[] sizes; public UnionFind (int N) { nodes = new int[N]; sizes = new int[N]; for (int i = 0; i < N; ++i) { no...
5119deb8a36143806248f3987a1aae6fedbc445bd8dd651b1aef1461694c08cb
Java
1,990
96
// // This file is auto-generated. Please don't modify it! // package org.opencv.photo; import org.opencv.photo.Tonemap; // C++: class TonemapMantiuk //javadoc: TonemapMantiuk public class TonemapMantiuk extends Tonemap { protected TonemapMantiuk(long addr) { super(addr); } // internal usage only publi...
c7d9e761e7e1e423ce94949cc59481662c92f3da95dd818c269c479505d40243
Java
2,007
81
/* * #%L * Modified based on Point.java of the ImageJ AnalyzeSkeleton_ plugin by Ignacio Arganda-Carreras. * * Major Modifications: * Added functions: clone() and infDist(). * * Diana Bank, Inle Bush, and Elena Zhong, Chun Han Lab, Cornell University * #L% */ package dend; /** This class represents a 3D point...
51e5038b60cbd5a37bb6862038ae8229c374274c815e5d86a770924818eccbd4
Java
2,009
66
package io.ray.benchmark; import io.ray.api.ActorHandle; import io.ray.api.ObjectRef; import io.ray.api.Ray; import org.testng.annotations.Test; public class ActorPressTest extends RayBenchmarkTest { @Test public void singleLatencyTest() { int times = 10; ActorHandle<Adder> adder = Ray.actor(ActorPressTe...
b295b862bae500da4cb35ebda12429e29839f1e5d6e7f55541113d3db9fccf0a
Java
2,017
73
// // This file is auto-generated. Please don't modify it! // package org.opencv.video; import org.opencv.core.Algorithm; import org.opencv.core.Mat; // C++: class BackgroundSubtractor //javadoc: BackgroundSubtractor public class BackgroundSubtractor extends Algorithm { protected BackgroundSubtractor(long addr)...
4bffaa8243b7bc9c0f278ddae6ea91b85f549099240d8c4a7739296a84f1b80a
Java
2,031
48
package io.ray.runtime.serializer; import com.google.protobuf.ByteString; import com.google.protobuf.InvalidProtocolBufferException; import io.ray.api.exception.CrossLanguageException; import io.ray.api.exception.RayException; import io.ray.runtime.generated.Common.Language; public class RayExceptionSerializer { p...
3c49e93853b999b2511e9de4143e7c7da47b0442c4fb338404c746d7dbda94a6
Java
2,037
71
package io.ray.docdemo; import io.ray.api.ActorHandle; import io.ray.api.ObjectRef; import io.ray.api.Ray; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; /** * This class contains demo code of the Ray introduction doc * (https://docs.ray.io/en/master/index.html and * https:/...
c4b7a451b77f51c8815889a621bd31a11858336094a0651846e2bf376d417d5f
Java
2,037
81
package io.ray.serve.docdemo; import io.ray.serve.api.Serve; import io.ray.serve.deployment.Application; import io.ray.serve.deployment.Deployment; import java.util.HashMap; import java.util.Map; import java.util.concurrent.atomic.AtomicInteger; public class ManageDeployment { // docs-create-start public static ...
216e4ee22974119060431906a4ce7a5b8cafb8ecdbcd295bb0d53823d5f4fb03
Java
2,040
82
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
20af4eb33b8f6ac531c541d85e3503b8978e9b0f9be8938854a169d694e3c1c6
Java
2,044
66
package org.opencv.android; import java.text.DecimalFormat; import org.opencv.core.Core; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.util.Log; public class FpsMeter { private static final String TAG = "FpsMeter"; private static f...
1c59ea7110cf542eac12dbfba9ed87db2fa934e5f88eb14bb48b1900d6e94fef
Java
2,048
83
// // This file is auto-generated. Please don't modify it! // package org.opencv.features2d; import org.opencv.features2d.BFMatcher; import org.opencv.features2d.DescriptorMatcher; // C++: class BFMatcher //javadoc: BFMatcher public class BFMatcher extends DescriptorMatcher { protected BFMatcher(long addr) { su...
4a98c5af1f58a66efba764762f98283fa38ec5872faa41a01ff13712bb75e39f
Java
2,053
74
package io.ray.runtime.context; import com.google.protobuf.InvalidProtocolBufferException; import io.ray.api.id.ActorId; import io.ray.api.id.JobId; import io.ray.api.id.TaskId; import io.ray.api.id.UniqueId; import io.ray.api.runtimeenv.RuntimeEnv; import io.ray.runtime.generated.Common.Address; import io.ray.runtime...
677a20bb413f3015870669da30fe2c9cb85952ab1ecd33168ae98e40a5085aa5
Java
2,066
56
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
28e4b184e1c35697ae682e00a13656cf7151eee91673b665fe9811308b5932a4
Java
2,121
80
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
5b0acb64249a3160253dfdc2aeb8eb8513d84332c119226bbd12436d18d8ea44
Java
2,134
113
// // This file is auto-generated. Please don't modify it! // package org.opencv.core; import java.lang.String; // C++: class Algorithm //javadoc: Algorithm public class Algorithm { protected final long nativeObj; protected Algorithm(long addr) { nativeObj = addr; } public long getNativeObjAddr() { ret...
48ddcc83db49d02dc05e6ec1dc89d7346891613040c2e607b888dbfdb3ceb4af
Java
2,142
88
/* * 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. */ /** * * @author phm */ public class Nucleus { // Cell index private int index; // Cell surface private double...
79da724f6783bc4f7d05d139799efde07cc62554caad8f426dde70cf4e7d2b50
Java
2,142
71
package io.ray.api.function; /** * A class that represents a Python remote function. * * <pre> * example_package/ * ├──__init__.py * └──example_module.py * * in example_module.py there is a function. * * \@ray.remote * def bar(v): * return v * * then we can call the Python function bar: * * {@code ...
adf5602a88ff2bbb45b395f0e245f2411a5d8fa892e64ca5bfdde2eea9b5a1ed
Java
2,142
67
/* * #%L * Modified based on ExceptionHandler.java of the ImageJ Strahler Analysis plugin by Tiago Ferreira. * * Major Modifications: * Edited displayed text. * * Diana Bank, Inle Bush, and Elena Zhong, Chun Han Lab, Cornell University * #L% */ package dend; import java.io.CharArrayWriter; import java.io.Prin...
0ac926f73bd4d725143bcce3c0018f4a8202498377402dcbb6769e6cdd21ef5b
Java
2,162
88
/* * 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 Genes_Tools; /** * * @author phm */ public class Nucleus { // Cell index private int index; // Cell surfac...
62cd2e282233b12206e9dd727f0a5193f95fab6addbf1838273622df59d5e834
Java
2,187
75
package io.ray.runtime.metric; import com.google.common.base.MoreObjects; /** Configurations of the metric. */ public class MetricConfig { private static final long DEFAULT_TIME_INTERVAL_MS = 5000L; private static final int DEFAULT_THREAD_POLL_SIZE = 1; private static final long DEFAULT_SHUTDOWN_WAIT_TIME_MS =...
cc608f52b7c91cdb14d5911d724e6908017b9b6808c2efe0dbd52de2e8880433
Java
2,209
66
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.Ray; import io.ray.api.id.ActorId; import io.ray.api.id.JobId; import io.ray.api.id.TaskId; import io.ray.api.id.UniqueId; import io.ray.api.runtimecontext.NodeInfo; import io.ray.runtime.gcs.GcsClient; import java.nio.ByteBuffer; import java.util.A...
d62795fe4e92e5aa5d4d6e037cad94e5160725682245c65ca993e1a253fde035
Java
2,217
97
package io.ray.serve.deployment; import io.ray.serve.config.DeploymentConfig; import io.ray.serve.config.ReplicaConfig; public class DeploymentInfo { private String name; private DeploymentConfig deploymentConfig; private ReplicaConfig replicaConfig; private Long startTimeMs; private String actorName; ...
52e653aa6496a64494bb7f54809a1aed75ec0882ab6f84b2ff0e60fea46b9ab7
Java
2,224
96
package io.ray.api.id; import java.io.Serializable; import java.nio.ByteBuffer; import java.util.Arrays; import javax.xml.bind.DatatypeConverter; public abstract class BaseId implements Serializable { private static final long serialVersionUID = 8588849129675565761L; private final byte[] id; private transient i...
d7223aa67459297a80636e3ce9da0b81712f826294c88ef8ae2ab5d4ddc8a5a8
Java
2,240
73
package io.ray.performancetest.test; import com.google.common.base.Preconditions; import io.ray.api.ActorHandle; import io.ray.api.ObjectRef; import io.ray.api.Ray; import io.ray.performancetest.Receiver; import io.ray.performancetest.Source; import java.util.ArrayList; import java.util.List; import java.util.stream.C...
49538a80730fde5358bf27d847591cd2432c3a02cd9ab46c97167e228718d1e0
Java
2,295
84
package io.ray.serve.metrics; import io.ray.api.Ray; public enum RayServeMetrics { SERVE_HANDLE_REQUEST_COUNTER( "serve_handle_request_counter", "The number of handle.remote() calls that have been made on this handle."), SERVE_NUM_ROUTER_REQUESTS( "serve_num_router_requests", "The number of req...
843fff59ad3cd420a495b909a65da4298b0994a11ef9796c5c1cfba4e97f6b10
Java
2,299
81
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.PlacementGroups; import io.ray.api.Ray; import io.ray.api.id.ActorId; import io.ray.api.options.PlacementGroupCreationOptions; import io.ray.api.placementgroup.PlacementGroup; import io.ray.api.placementgroup.PlacementStrategy; import java.util.Arra...
95cc0816e6e6bc5d38c6be95c39b0acb672ce5b2f713959851e6da1081c46238
Java
2,306
83
package org.opencv.core; import org.opencv.core.Point; //javadoc: KeyPoint public class KeyPoint { /** * Coordinates of the keypoint. */ public Point pt; /** * Diameter of the useful keypoint adjacent area. */ public float size; /** * Computed orientation of the keypoint ...
b54e6aa8facf57ec4cf33afb779dd6de4fe20ccccdaa09594bd7a552500a168a
Java
2,309
70
package io.ray.api.options; import java.io.Serializable; import java.util.Collections; import java.util.HashMap; import java.util.Map; /** The options class for RayCall or ActorCreation. */ public abstract class BaseTaskOptions implements Serializable { private final Map<String, Double> resources; public BaseTa...
97bc7d28ae1bf5dfb51bffb949a53c83adfede30aceada93db953e7f6a98c7b4
Java
2,312
73
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.Ray; import io.ray.api.options.ActorLifetime; import java.io.IOException; import java.util.concurrent.TimeUnit; import org.testng.Assert; import org.testng.annotations.Test; @Test(groups = {"cluster"}) public class ActorLifetimeTest { private st...
f6676e70de4e76ab16901cd0e369d993ff1f43dc60a5bb05e85c42700498d13e
Java
2,321
67
package io.ray.test; import com.google.common.collect.ImmutableList; import io.ray.api.ActorHandle; import io.ray.api.Ray; import io.ray.api.id.JobId; import io.ray.runtime.util.SystemUtil; import java.io.File; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.Assert; import org.testng.annotat...
27224bbb573145042b7f2e3c06ee6ac5587d70e40eadb7a22eb0a597c37a9607
Java
2,329
68
package gov.nih.nlm.malaria_screener.others; import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Build; import android.provider.Settings; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; ...
72386154e336def2a8d6e9ed6ee38e7a5fa463d3c2c832d54cfa996dc196b7ae
Java
2,342
70
package io.ray.serve.poll; import org.testng.Assert; import org.testng.annotations.Test; public class KeyTypeTest { @Test public void equalsTest() { KeyType k1 = new KeyType(LongPollNamespace.ROUTE_TABLE, "k1"); KeyType k2 = new KeyType(LongPollNamespace.ROUTE_TABLE, "k1"); KeyType k3 = new KeyType(L...
23e634d8154458cc0d12613b86fc6f4b65e3879659d29844a6ca967babb7deda
Java
2,353
92
package io.ray.serve.poll; import io.ray.serve.exception.RayServeException; import java.io.Serializable; import java.util.Objects; import org.apache.commons.lang3.StringUtils; /** Key type of long poll. */ public class KeyType implements Serializable { private static final long serialVersionUID = -8838552786234630...
af4e22ad87f6f2361d4787b6ffd06e6527e9d5d8b23757f962172042781dbb69
Java
2,353
72
package io.ray.api; import io.ray.api.id.PlacementGroupId; import io.ray.api.options.PlacementGroupCreationOptions; import io.ray.api.placementgroup.PlacementGroup; import java.util.List; /** This class contains all public APIs of Placement Group. */ public class PlacementGroups { /** * Create a placement group...
baa97f22e21b3899cd7cc039d825d06f32fbf3533c68cd11025c7420a005c630
Java
2,366
74
// Generated by `BaseConcurrencyGroupBuilderGenerator.java`. DO NOT EDIT. package io.ray.api.concurrencygroup; import io.ray.api.function.RayFunc; import io.ray.api.function.RayFunc1; import io.ray.api.function.RayFunc2; import io.ray.api.function.RayFunc3; import io.ray.api.function.RayFunc4; import io.ray.api.funct...
d027e8066b4059ccd9b88bfa8a1c7dd8d6b22ed8bdf8edef2b9daeaf7a2c047d
Java
2,368
65
package io.ray.serve.common; import com.google.common.collect.Lists; import java.util.List; /** Ray Serve common constants. */ public class Constants { /** Name of deployment reconfiguration method implemented by user. */ public static final String RECONFIGURE_METHOD = "reconfigure"; /** Default histogram buc...
9132c9f98b6b6b6225a9b3a15a01c1f29bb10e82999b276a4ce495995cfcaa03
Java
2,370
55
package io.ray.runtime.utils.parallelactor; import io.ray.api.ActorHandle; import io.ray.api.ObjectRef; import io.ray.api.Ray; import io.ray.api.concurrencygroup.ConcurrencyGroup; import io.ray.api.concurrencygroup.ConcurrencyGroupBuilder; import io.ray.api.function.RayFunc; import io.ray.api.function.RayFuncR; import...
ae8ca2db9a0bb7d1c17701e5d0a18557cab4d53165c5126f184d1476e9a794d8
Java
2,389
80
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.ObjectRef; import io.ray.api.Ray; import io.ray.api.exception.RayTimeoutException; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; @Test public class GetTimeoutTest extends BaseTest {...
93473114afe81dcc4a86328a6b5677c2fa39a3296b7551051936b588116077e7
Java
2,404
114
// // This file is auto-generated. Please don't modify it! // package org.opencv.photo; import org.opencv.core.Mat; import org.opencv.photo.CalibrateCRF; // C++: class CalibrateRobertson //javadoc: CalibrateRobertson public class CalibrateRobertson extends CalibrateCRF { protected CalibrateRobertson(long addr) ...
d945fa8434951fe58888ff38124c2abcd6f6d2f607d1cb4296c889bb623b3d93
Java
2,413
74
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
25629595edb1cf2d60380661069542436221030435a68f8010c3a357366fa972
Java
2,432
70
package io.ray.runtime.util.generator; import java.io.File; import java.io.IOException; import java.nio.charset.Charset; import org.apache.commons.io.FileUtils; /** A util class that generates all the RayFuncX classes under io.ray.api.function package. */ public class RayFuncGenerator extends BaseGenerator { priva...
de12f9e00ea6587cc7891496388457559490450f2b403c082ab5f0aecc384143
Java
2,455
82
package io.ray.serve; import io.ray.api.Ray; import io.ray.serve.api.Serve; import io.ray.serve.api.ServeControllerClient; import io.ray.serve.common.Constants; import io.ray.serve.config.RayServeConfig; import io.ray.serve.poll.LongPollClientFactory; import java.util.Map; import org.slf4j.Logger; import org.slf4j.Log...
7c2d70cce84cd5b5183f2751af2e5e402ebdf80ae562c06b96319ca38c9fb634
Java
2,458
77
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. ==========================...
f3089a2eef2fcf354f80bbb7eb07e18181ea99313ae8d86191bd985e618155ef
Java
2,461
77
/* Copyright 2019 The TensorFlow 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 applicable law or agr...
957d5c63102f38d9461b1681804dd7ca420e690c02f6a4a221be5c45257b9986
Java
2,464
77
/* Copyright 2019 The TensorFlow 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 applicable law or agr...
43e2aabe9c04926d27cfdfab14c1e40b7aa4c47595f392b1715bfb25094470c4
Java
2,479
65
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
1af21a6c8c85dacc3d322d8eaa5dbce1f3b191c7169f3eb1bd752312ac8a5549
Java
2,499
91
// // This file is auto-generated. Please don't modify it! // package org.opencv.features2d; import org.opencv.core.Mat; import org.opencv.core.TermCriteria; import org.opencv.features2d.BOWTrainer; // C++: class BOWKMeansTrainer //javadoc: BOWKMeansTrainer public class BOWKMeansTrainer extends BOWTrainer { pro...
dea8c6d3cd60f209eed66c0dc33d13d0edf8d611a4d6dc865bcf43eac1f8cc7d
Java
2,502
67
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.Ray; import io.ray.runtime.util.SystemUtil; import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.Assert; import org.test...
0413b5e77a349b822543230aeddfd42eb9ee75dc01008bbb1d926617039d70f7
Java
2,511
66
package Orion_Stardist; import java.io.File; import java.io.IOException; import java.net.URL; import java.nio.file.Files; import java.nio.file.StandardCopyOption; import java.util.LinkedHashMap; import java.util.Map; import org.scijava.util.FileUtils; public class StarDist2DModel { static final String MODEL...
9158427d6e45474c7d38c8b3e7744c3a944ec11e2f81b9687ad82c356f0dacd4
Java
2,531
90
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
3f411ad8af0c5c0dc2947723a6ea25c456c1943985dc1351856fe8a19af184be
Java
2,546
96
package io.ray.test; import com.google.common.collect.ImmutableList; import io.ray.api.ActorHandle; import io.ray.api.ObjectRef; import io.ray.api.Ray; import java.util.ArrayList; import java.util.List; import org.testng.Assert; import org.testng.annotations.Test; @Test(groups = {"cluster"}) public class StressTest e...
304727673e591128aea46d9190f81309e0bde78df3692b3fd9ff86fcaadf91d5
Java
2,571
66
package Orion_Stardist; import java.io.File; import java.io.IOException; import java.net.URL; import java.nio.file.Files; import java.nio.file.StandardCopyOption; import java.util.LinkedHashMap; import java.util.Map; import org.scijava.util.FileUtils; public class Orion_StarDist2DModel { static final String...
13f13be73f1cc495f5e692236c67df0aff69ddef6e622a95b8842e5d6a2e33e8
Java
2,578
87
package io.ray.serve.dag; import java.util.HashMap; import java.util.Map; import java.util.UUID; import java.util.function.Function; public abstract class DAGNode implements DAGNodeBase { private final Object[] boundArgs; private final Map<String, Object> boundOptions; private final Map<String, Object> bound...
2eba989c2616b219f4d37b5c2cb283621c337130229c2aabea88d20d5d8aac1e
Java
2,623
104
package org.opencv.android; import org.opencv.core.Core; import java.util.StringTokenizer; import android.util.Log; class StaticHelper { public static boolean initOpenCV(boolean InitCuda) { boolean result; String libs = ""; if(InitCuda) { loadLibrary("cudart"); ...
2d5d25c7a41a57dc3d0ebeb8fc7ddb1045d92410565992ddcde30aab583ae727
Java
2,631
97
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
dac981f461f2b87628a7320d00bd384345a075bacbdcbc4ad0b929001d32ae9a
Java
2,642
130
// // This file is auto-generated. Please don't modify it! // package org.opencv.photo; import org.opencv.photo.CalibrateCRF; // C++: class CalibrateDebevec //javadoc: CalibrateDebevec public class CalibrateDebevec extends CalibrateCRF { protected CalibrateDebevec(long addr) { super(addr); } // internal us...
c434443a6e41ef919758249ba8b83d555d1508372153910b459e1b6d2fc3ed8d
Java
2,662
89
package io.ray.runtime.context; import com.google.common.base.Preconditions; import com.google.protobuf.ByteString; import io.ray.api.id.ActorId; import io.ray.api.id.JobId; import io.ray.api.id.TaskId; import io.ray.api.id.UniqueId; import io.ray.api.runtimeenv.RuntimeEnv; import io.ray.runtime.generated.Common.Addre...
ff2f0bd11a9158f7e6857d8548879e5f8b7ab0d65817bb17119e94fef1dfd4b0
Java
2,667
97
package io.ray.serve.config; import java.io.Serializable; public class AutoscalingConfig implements Serializable { private static final long serialVersionUID = 9135422781025005216L; private int minReplicas = 1; private int maxReplicas = 1; private int targetOngoingRequests = 1; /** How often to scrape for m...
2dc5ce1981a409a699f2ff4376ceaf0dbeb14bad9bf705fd03b975219aaed89e
Java
2,672
71
package io.ray.serve.docdemo.test; import com.google.gson.Gson; import io.ray.serve.BaseServeTest; import io.ray.serve.docdemo.HttpStrategyCalcOnRayServe; import java.io.IOException; import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.hc.client5.http.fluent...
3457041c1328e528df98b2bc8601b8fee1ee46f930fc5deb0e9c32619610e81c
Java
2,680
65
package io.ray.runtime.serializer; import java.math.BigInteger; import java.util.ArrayList; import org.apache.commons.lang3.tuple.Pair; import org.testng.Assert; import org.testng.annotations.Test; public class SerializerTest { @Test public void testBasicSerialization() { // Test serialize / deserialize prim...
b1762c5d895b419bd9270f0a7731fa2a1252b8da3b48893687de0560db2eae53
Java
2,738
87
package io.ray.runtime.task; import io.ray.api.BaseActorHandle; import io.ray.api.id.ActorId; import io.ray.api.id.ObjectId; import io.ray.api.id.PlacementGroupId; import io.ray.api.options.ActorCreationOptions; import io.ray.api.options.CallOptions; import io.ray.api.options.PlacementGroupCreationOptions; import io.r...
c5392694e17301a88381bb321b4d4293a867b930511b4399a2d6e5fa8401ce95
Java
2,755
72
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
cc03154c6202ae0b848a250b85078c8cc77a366836c74bb769a16b3ae2594947
Java
2,769
93
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
b71f6792dcac1bee3a9019c71f5c493e4ed8cab13c2522a96937011107a5be55
Java
2,777
98
package io.ray.api.call; import io.ray.api.options.CallOptions; import io.ray.api.placementgroup.PlacementGroup; import io.ray.api.runtimeenv.RuntimeEnv; import java.util.Map; /** * Base helper to call remote function. * * @param <T> The type of the concrete task caller */ public class BaseTaskCaller<T extends Ba...
b0266d245cb9b05382500bf0cf249662da1a3ef598b0b1920e96a68a4c4737dc
Java
2,802
124
// Theo Walker // Max Planck Florida Institute // naroom@gmail.com package cellMagicWand; public class CartesianPixel { public int x; public int y; public double r; public double theta; public CartesianPixel(double r, double theta, int cx, int cy, int maxX, int maxY){ this.r = r; this.th...
9cf323601ea3453cafbc1c87b10884b4ce1e10ce35812d5efdb9f0b68630133b
Java
2,833
83
package io.ray.test; import io.ray.api.ActorHandle; import io.ray.api.ObjectRef; import io.ray.api.Ray; import io.ray.runtime.actor.NativeActorHandle; import io.ray.runtime.util.SystemUtil; import java.lang.ref.Reference; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.Set; import org...
b46bdf1c4116d58ea1a4e0d258aeda6bb8048e02f8e7390d644cbabb746e0b91
Java
2,849
97
/* Copyright 2020 The Malaria Screener Authors. All Rights Reserved. This software was developed under contract funded by the National Library of Medicine, which is part of the National Institutes of Health, an agency of the Department of Health and Human Services, United States Government. Licensed under GNU General...
b6e8c7af19e9f3d600b418bd66de0a72ac3e3fc5c37e9441062ebea151079a3d
Java
2,851
132
// // This file is auto-generated. Please don't modify it! // package org.opencv.imgproc; import org.opencv.core.Algorithm; import org.opencv.core.Mat; import org.opencv.core.Size; // C++: class CLAHE //javadoc: CLAHE public class CLAHE extends Algorithm { protected CLAHE(long addr) { super(addr); } // int...
571bf2fa5a75f403682965414966c060ea3432f5e3fecdf18fcc72fbd1a1b32e
Java
2,852
81
package io.ray.serve.dag; import io.ray.serve.deployment.Deployment; import io.ray.serve.handle.DeploymentHandle; import io.ray.serve.util.CommonUtil; import io.ray.serve.util.DAGUtil; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import org.apache.com...