index int64 | repo_id string | file_path string | content string |
|---|---|---|---|
0 | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring/service/ChecklistService.java | package ai.driftkit.workflows.spring.service;
import ai.driftkit.common.utils.TextSimilarityUtil;
import ai.driftkit.workflows.core.domain.enhanced.EnhancedReasoningPlan;
import ai.driftkit.workflows.spring.domain.ChecklistItemEntity;
import ai.driftkit.workflows.spring.repository.ChecklistItemRepository;
import lombo... |
0 | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring/service/ImageModelService.java | package ai.driftkit.workflows.spring.service;
import ai.driftkit.clients.core.ModelClientFactory;
import ai.driftkit.common.domain.Grade;
import ai.driftkit.common.domain.ImageMessageTask;
import ai.driftkit.common.domain.ImageMessageTask.GeneratedImage;
import ai.driftkit.common.domain.LLMRequest;
import ai.driftkit.... |
0 | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring/service/LLMMemoryProvider.java | package ai.driftkit.workflows.spring.service;
import ai.driftkit.common.domain.*;
import ai.driftkit.workflows.core.chat.ChatMemory;
import ai.driftkit.workflows.core.chat.TokenWindowChatMemory;
import ai.driftkit.workflows.core.chat.SimpleTokenizer;
import ai.driftkit.workflows.core.chat.Message;
import org.apache.co... |
0 | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring/service/ModelRequestContext.java | package ai.driftkit.workflows.spring.service;
import ai.driftkit.common.domain.MessageTask;
import ai.driftkit.common.domain.client.ResponseFormat;
import ai.driftkit.workflows.spring.domain.ModelRequestTrace.ContextType;
import ai.driftkit.workflows.spring.domain.ModelRequestTrace.RequestType;
import ai.driftkit.work... |
0 | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring/service/ModelRequestService.java | package ai.driftkit.workflows.spring.service;
import ai.driftkit.clients.openai.client.OpenAIModelClient;
import ai.driftkit.common.domain.MessageTask;
import ai.driftkit.common.domain.client.*;
import ai.driftkit.common.domain.client.ResponseFormat;
import ai.driftkit.context.core.util.PromptUtils;
import ai.driftkit... |
0 | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring/service/TasksService.java | package ai.driftkit.workflows.spring.service;
import ai.driftkit.common.domain.*;
import ai.driftkit.workflows.core.chat.Message;
import ai.driftkit.workflows.spring.domain.ChatEntity;
import ai.driftkit.workflows.spring.domain.MessageTaskEntity;
import ai.driftkit.workflows.spring.repository.ChatRepository;
import ai... |
0 | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring | java-sources/ai/driftkit/driftkit-workflows-spring-boot-starter/0.8.1/ai/driftkit/workflows/spring/tracing/SpringRequestTracingProvider.java | package ai.driftkit.workflows.spring.tracing;
import ai.driftkit.common.domain.client.ModelTextRequest;
import ai.driftkit.common.domain.client.ModelTextResponse;
import ai.driftkit.common.domain.client.ModelImageRequest;
import ai.driftkit.common.domain.client.ModelImageResponse;
import ai.driftkit.common.domain.clie... |
0 | java-sources/ai/edgestore/engine/1.0.1-alpha03/ai/edgestore | java-sources/ai/edgestore/engine/1.0.1-alpha03/ai/edgestore/engine/Lib.java | package ai.edgestore.engine;
public class Lib {
}
|
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/data/Transport.java | package ai.eloquent.data;
import ai.eloquent.raft.RaftLifecycle;
import java.util.concurrent.ExecutorService;
import java.util.function.Consumer;
/**
* An interface for a transport layer used in the Eloquent codebase.
*
* @author <a href="mailto:gabor@eloquent.ai">Gabor Angeli</a>
*/
public interface Transport {... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/data/UDPBroadcastProtos.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: UDPBroadcast.proto
package ai.eloquent.data;
public final class UDPBroadcastProtos {
private UDPBroadcastProtos() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static voi... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/data/UDPTransport.java | package ai.eloquent.data;
import ai.eloquent.io.IOUtils;
import ai.eloquent.monitoring.Prometheus;
import ai.eloquent.raft.RaftLifecycle;
import ai.eloquent.util.*;
import com.google.protobuf.ByteString;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.FileNotFoundException;
import java.io.IOEx... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/error/RaftErrorListener.java | package ai.eloquent.error;
/**
* An error listener, for when something goes wrong in Raft.
*/
@FunctionalInterface
public interface RaftErrorListener {
/**
* Register than an error has occurred in Raft.
*
* @param incidentKey A unique key for the incident type.
* @param debugMessage A more detailed deb... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/io/IOUtils.java | package ai.eloquent.io;
import ai.eloquent.util.RuntimeIOException;
import java.io.*;
import java.net.URL;
import java.net.URLConnection;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
/**
* Helper Class for various I/O related things.
*/
public class IOUtils {
private static fin... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/monitoring/Prometheus.java | package ai.eloquent.monitoring;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nullable;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Objects;
/**
* A facade for handling cal... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/EloquentRaftAlgorithm.java | package ai.eloquent.raft;
import ai.eloquent.monitoring.Prometheus;
import ai.eloquent.raft.EloquentRaftProto.*;
import ai.eloquent.util.RuntimeInterruptedException;
import ai.eloquent.util.TimerUtils;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import com.sun.mana... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/EloquentRaftNode.java | package ai.eloquent.raft;
import ai.eloquent.error.RaftErrorListener;
import ai.eloquent.util.*;
import com.google.protobuf.ByteString;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.time.Duration;
import java.u... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/EloquentRaftProto.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: EloquentRaft.proto
package ai.eloquent.raft;
public final class EloquentRaftProto {
private EloquentRaftProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void ... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/InstantTransport.java | package ai.eloquent.raft;
import ai.eloquent.util.SafeTimerTask;
import ai.eloquent.util.Span;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.nio.ByteBuffer;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.ExecutionException;
import java.u... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/KeyValueStateMachine.java | package ai.eloquent.raft;
import ai.eloquent.error.RaftErrorListener;
import ai.eloquent.monitoring.Prometheus;
import ai.eloquent.util.IdentityHashSet;
import ai.eloquent.util.StackTrace;
import ai.eloquent.util.SystemUtils;
import ai.eloquent.util.TimerUtils;
import com.google.protobuf.ByteString;
import com.google.... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/KeyValueStateMachineProto.java | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: KeyValueStateMachine.proto
package ai.eloquent.raft;
public final class KeyValueStateMachineProto {
private KeyValueStateMachineProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/LocalTransport.java | package ai.eloquent.raft;
import ai.eloquent.util.*;
import com.google.protobuf.InvalidProtocolBufferException;
import ai.eloquent.util.IdentityHashSet;
import ai.eloquent.util.RuntimeInterruptedException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.PrintWriter;
import java.io.StringWriter... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/NetRaftTransport.java | package ai.eloquent.raft;
import ai.eloquent.data.UDPBroadcastProtos;
import ai.eloquent.data.UDPTransport;
import ai.eloquent.util.ConcurrencyUtils;
import ai.eloquent.util.IdentityHashSet;
import ai.eloquent.util.SafeTimerTask;
import ai.eloquent.util.Span;
import com.google.protobuf.InvalidProtocolBufferException;
... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftAlgorithm.java | package ai.eloquent.raft;
import java.util.Collections;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.function.Consumer;
import ai.eloquent.m... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftBackedCache.java | package ai.eloquent.raft;
import ai.eloquent.util.Pointer;
import ai.eloquent.util.SafeTimerTask;
import ai.eloquent.util.TimerUtils;
import com.google.protobuf.InvalidProtocolBufferException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
i... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftFailsafe.java | package ai.eloquent.raft;
/**
* Failsafes are custom detectors that can make use of deploy-specific information (for example, spying on Kubernetes
* config) to cheat on CAP theorem limits about detecting cluster deadlocks.
*/
public interface RaftFailsafe {
/**
* This gets called every heartbeat from an Eloque... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftGrpc.java | package ai.eloquent.raft;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCall... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftLifecycle.java | package ai.eloquent.raft;
import ai.eloquent.util.*;
import ai.eloquent.web.TrackedExecutorService;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.Duration;
import java.util.*;
import java.util.concurrent.*;
import java.util.con... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftLog.java | package ai.eloquent.raft;
import ai.eloquent.monitoring.Prometheus;
import ai.eloquent.util.FunctionalUtils;
import ai.eloquent.util.TimerUtils;
import com.sun.management.GcInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.Ma... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftLogEntryLocation.java | package ai.eloquent.raft;
import java.util.Objects;
/**
* A little helper class for a log entry location for a Raft log.
*
* @author <a href="mailto:gabor@eloquent.ai">Gabor Angeli</a>
*/
public class RaftLogEntryLocation {
/** The term of this log entry. */
public final long term;
/**
* The index of t... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftState.java | package ai.eloquent.raft;
import ai.eloquent.util.Span;
import com.google.protobuf.ByteString;
import java.util.*;
import java.util.concurrent.ExecutorService;
/**
* The state of a Raft node.
*
* @author <a href="mailto:gabor@eloquent.ai">Gabor Angeli</a>
*/
public class RaftState {
/**
* The leadership st... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftStateMachine.java | package ai.eloquent.raft;
import com.google.protobuf.ByteString;
import com.google.protobuf.InvalidProtocolBufferException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
import java.util.concurrent.ExecutorService;
/**
* This is the interface that any state machine needs to implement ... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/RaftTransport.java | package ai.eloquent.raft;
import ai.eloquent.util.SafeTimerTask;
import ai.eloquent.util.Span;
import java.io.IOException;
import java.time.Duration;
import java.util.Collection;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/SingleThreadedRaftAlgorithm.java | package ai.eloquent.raft;
import ai.eloquent.util.IdentityHashSet;
import ai.eloquent.util.RuntimeInterruptedException;
import ai.eloquent.util.SafeTimerTask;
import ai.eloquent.util.StackTrace;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nullable;
import javax.annotation.Nonnull;... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/Theseus.java | package ai.eloquent.raft;
import ai.eloquent.error.RaftErrorListener;
import ai.eloquent.util.Lazy;
import ai.eloquent.util.SafeTimerTask;
import ai.eloquent.util.TimerUtils;
import ai.eloquent.web.TrackedExecutorService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.annotation.Nullable;
impor... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/UnsatisfiableQuorumFailsafe.java | package ai.eloquent.raft;
import ai.eloquent.data.UDPTransport;
import ai.eloquent.util.IOSupplier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.IOException;
import java.net.InetAddress;
import java.time.Duration;
import java.util.Collections;
/**
* This failsafe checks for the following... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/raft/package-info.java | /**
* Theseus: Eloquent's Raft implementation.
*/
package ai.eloquent.raft; |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/stats/IntCounter.java | package ai.eloquent.stats;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
public class IntCounter<E> {
@SuppressWarnings({"NonSerializableFieldInSerializableClass"})
private Map<E, Integer> map;
private int defaultValue = 0;
// CONSTRUCTOR
/**
* Constructs a new (empty) Counter.... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/test/IntegrationTests.java | package ai.eloquent.test;
/**
* Mark a test as being slow and requiring external integrations (e.g., Rabbit). Usage:
*
* <pre>@Category(IntegrationTests.class)</pre>
*
* @author <a href="mailto:gabor@eloquent.ai">Gabor Angeli</a>
*/
public interface IntegrationTests {
}
|
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/test/SlowTests.java | package ai.eloquent.test;
/**
* Mark a test as being a slow fuzz-test.
*
* <pre>@Category(SlowTests.class)</pre>
*
* @author <a href="mailto:gabor@eloquent.ai">Gabor Angeli</a>
*/
public interface SlowTests {
}
|
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/ConcurrencyUtils.java | package ai.eloquent.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.lang.management.LockInfo;
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadInfo;
import java.lang.management.ThreadMXBean;
import java.util.Collection;
import java.util.List;
import java.util... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/FunctionalUtils.java | package ai.eloquent.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Stream;
/**
* Utility functions for working with monads (e.g., Java's {@link Optional}) or
* creating monad-style operations.
*
* @author <... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/IOSupplier.java | package ai.eloquent.util;
import java.io.IOException;
import java.util.function.Supplier;
/**
* A supplier which can throw an IOexception.
*
* @author <a href="mailto:gabor@eloquent.ai">Gabor Angeli</a>
*/
@FunctionalInterface
public interface IOSupplier<E> {
/**
* @see Supplier#get()
*/
E get() throws... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/IdentityHashSet.java | package ai.eloquent.util;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.*;
/** This class provides a <code>IdentityHashMap</code>-backed
* implementation of the <code>Set</code> interface. This means that
* whether a... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/Lazy.java | package ai.eloquent.util;
import java.lang.ref.SoftReference;
import java.util.function.Supplier;
/**
* An instantiation of a lazy object.
*
* @author Gabor Angeli <gabor@eloquent.ai>
*/
public abstract class Lazy<E> {
/** If this lazy should cache, this is the cached value. */
private SoftReference<E> ... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/Pair.java | package ai.eloquent.util;
import java.io.DataOutputStream;
import java.util.List;
/**
* Pair is a Class for holding mutable pairs of objects.
*/
public class Pair <T1,T2> implements Comparable<Pair<T1,T2>> {
/**
* Direct access is deprecated. Use first().
*
* @serial
*/
public T1 first;
/**
... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/Pointer.java | package ai.eloquent.util;
import java.io.Serializable;
import java.util.Optional;
/**
* A pointer to an object, to get around not being able to access non-final
* variables within an anonymous function.
*
* @author Gabor Angeli
*/
public class Pointer<T> implements Serializable {
/** The serial version uid to ... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/RunnableThrowsException.java | package ai.eloquent.util;
/**
* A {@link Runnable} that can throw an exception.
*
* @author <a href="mailto:gabor@eloquent.ai">Gabor Angeli</a>
*/
@FunctionalInterface
public interface RunnableThrowsException {
/** @see Runnable#run() */
void run() throws Exception;
}
|
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/RuntimeIOException.java | package ai.eloquent.util;
/**
* An unchecked version of {@link java.io.IOException}.
*/
public class RuntimeIOException extends RuntimeException {
private static final long serialVersionUID = -8572218999165094626L;
/**
* Creates a new exception.
*/
public RuntimeIOException() {
}
/**
* Creates ... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/RuntimeInterruptedException.java | package ai.eloquent.util;
/**
* An unchecked version of {@link java.lang.InterruptedException}. Thrown by
* classes that pay attention to if they were interrupted, such as the LexicalizedParser.
*/
public class RuntimeInterruptedException extends RuntimeException {
public RuntimeInterruptedException() {
super... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/SafeTimer.java | package ai.eloquent.util;
import java.time.Duration;
import java.util.Timer;
import java.util.TimerTask;
/**
* This is a Timer that only accepts SafeTimerTasks as tasks.
*/
public interface SafeTimer {
/**
* This retrieves the current time on this box. This is only here so that it can be mocked.
*/
long ... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/SafeTimerMock.java | package ai.eloquent.util;
import com.google.common.collect.ArrayListMultimap;
import com.google.common.collect.Multimap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.Duration;
import java.util.*;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Condition;
import jav... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/SafeTimerReal.java | package ai.eloquent.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.time.Duration;
import java.util.Timer;
/**
* Created by keenon on 2/16/18.
*/
public class SafeTimerReal implements SafeTimer {
/**
* An SLF4J Logger for this class.
*/
private static final Logger log = LoggerF... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/SafeTimerTask.java | package ai.eloquent.util;
import ai.eloquent.raft.RaftLifecycle;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.TimerTask;
import java.util.concurrent.Executor;
import java.util.concurrent.ExecutorService;
import ... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/Span.java | package ai.eloquent.util;
import java.io.Serializable;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* A span, inclusive of {@link Span#begin} and exclusive of {@link Span#end}.
*
* @author gabor
*/
public class Span implements Iterable<Long>, Comparable<Span>, Serializable {
/** The s... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/StackTrace.java | package ai.eloquent.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
/**
* A stack trace, with the appropriate formatting and {@link Object#equals(Object)} and {@link Object#hashCode()}
* defined so that we can, e.g., store the... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/StringUtils.java | package ai.eloquent.util;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.function.Function;
import java.util.stream.Stream;
public class StringUtils {
public static final String[] EMPTY_STRING_ARRAY = new String[0];
/**
* Joins each elem in the {@link Iterable} wi... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/SystemUtils.java | package ai.eloquent.util;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Optional;
public class SystemUtils {
/**
* The hostname of this machine
*/
public static final String HOST;
static {
// Get the hostname
String host;
try {
host = InetAddress.g... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/ThrowableSupplier.java | package ai.eloquent.util;
import java.util.function.Supplier;
/**
* A supplier which can throw an exception.
*
* @author <a href="mailto:gabor@eloquent.ai">Gabor Angeli</a>
*/
@FunctionalInterface
public interface ThrowableSupplier<E> {
/**
* @see Supplier#get()
*/
E get() throws Throwable;
}
|
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/TimerUtils.java | package ai.eloquent.util;
import java.time.Instant;
/**
* Utilities for working with time.
* God I hate time.
*
* @author Gabor Angeli
*/
public class TimerUtils {
/**
* UNIT TESTS ONLY.
* Setting this to true will set the time to Thu Nov 02 2017 15:50:00 PT
*/
public static boolean mockNow = false... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/Uninterruptably.java | package ai.eloquent.util;
import ai.eloquent.util.RuntimeInterruptedException;
import java.time.Duration;
/**
* Created by keenon on 11/27/16.
*
* It turns out Thread.sleep() isn't guaranteed to wait the whole time, and can get woken up at random moments. If you
* really want the behavior that almost everyone wa... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/util/ZipUtils.java | package ai.eloquent.util;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.*;
import java.util.zip.DeflaterInputStream;
import java.util.zip.GZIPInputStream;
import java.util.zip.GZIPOutputStream;
import java.util.zip.InflaterInputStream;
/**
* Some utilities with working with GZip streams
*... |
0 | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent | java-sources/ai/eloquent/theseus/0.3.0/ai/eloquent/web/TrackedExecutorService.java | package ai.eloquent.web;
import ai.eloquent.error.RaftErrorListener;
import ai.eloquent.monitoring.Prometheus;
import ai.eloquent.stats.IntCounter;
import ai.eloquent.util.StackTrace;
import ai.eloquent.util.SystemUtils;
import ai.eloquent.util.TimerUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
impo... |
0 | java-sources/ai/engagely/openbot/1.0.16/ai/engagely/openbot/model/utils | java-sources/ai/engagely/openbot/1.0.16/ai/engagely/openbot/model/utils/helpers/TouchImageView.java | package ai.engagely.openbot.model.utils.helpers;
import android.content.Context;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.GestureDetector;
import android.view.MotionEvent;
im... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/ApacheAsyncHttpSender.java | package ai.engageminds.sdk;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import org.apache.http.client.methods.HttpPost;
imp... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/ApacheHttpSender.java | package ai.engageminds.sdk;
import org.apache.http.Header;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.StatusLine;
import org.apache.http.client.HttpClient;
import org.apache.http.client.config.CookieSpecs;
import org.apache.http.client.config.RequestConfig;
import or... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/EmSdk.java | package ai.engageminds.sdk;
import ai.engageminds.sdk.dto.EventRequest;
import ai.engageminds.sdk.dto.EventResponse;
import lombok.Builder;
import lombok.Getter;
import java.io.ByteArrayOutputStream;
import java.nio.charset.StandardCharsets;
import java.util.Collections;
import java.util.List;
import java.util.functi... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/FastJson2Provider.java | package ai.engageminds.sdk;
import com.alibaba.fastjson2.JSON;
/**
* default implement of JsonProvider with Fastjson
*/
public class FastJson2Provider implements JsonProvider {
@Override
public byte[] format(Object o) {
return JSON.toJSONBytes(o);
}
@Override
public <T> T parse(byte[] ... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/FastJsonProvider.java | package ai.engageminds.sdk;
import com.alibaba.fastjson.JSON;
/**
* default implement of JsonProvider with Fastjson
*/
public class FastJsonProvider implements JsonProvider {
@Override
public byte[] format(Object o) {
return JSON.toJSONBytes(o);
}
@Override
public <T> T parse(byte[] bs... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/HttpSender.java | package ai.engageminds.sdk;
import lombok.Data;
import java.util.HashMap;
import java.util.Map;
import java.util.function.BiConsumer;
public interface HttpSender {
String UA = "em-sdk-java/" + EmSdk.VERSION;
/**
* send http reqeust, method POST
*/
void send(Request req, BiConsumer<Response, E... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/JacksonProvider.java | package ai.engageminds.sdk;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationFeature;
import com.fasterxml.jackson.databind.ObjectMapper;
/**
* default implement of ... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/JsonProvider.java | package ai.engageminds.sdk;
public interface JsonProvider {
byte[] format(Object o) throws Exception;
<T> T parse(byte[] bs, Class<T> clazz) throws Exception;
}
|
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/dto/CommonRequest.java | package ai.engageminds.sdk.dto;
import ai.engageminds.sdk.EmSdk;
import lombok.Data;
import java.util.Map;
@Data
public class CommonRequest {
private final int sdk = 3; // 当前SDK类型, 0:iOS,1:Android,2:JS,3:ServerJava,4:ServerGo,5:ServerPython
private final String sdkv = EmSdk.VERSION;
private lon... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/dto/Event.java | package ai.engageminds.sdk.dto;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Data
public class Event {
private long ts; ... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/dto/EventRequest.java | package ai.engageminds.sdk.dto;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.ArrayList;
import java.util.List;
@EqualsAndHashCode(callSuper = true)
@Data
public class EventRequest extends CommonRequest {
private List<Event> events;
public EventRequest addEvent(Event e) {
if ... |
0 | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk | java-sources/ai/engageminds/em-sdk-java/1.0.0/ai/engageminds/sdk/dto/EventResponse.java | package ai.engageminds.sdk.dto;
import lombok.Data;
import java.util.List;
@Data
public class EventResponse {
private int code;
private String msg;
private List<Event> events;
}
|
0 | java-sources/ai/eto/rikai_2.12/0.1.14/org/mlflow | java-sources/ai/eto/rikai_2.12/0.1.14/org/mlflow/tracking/RiMlflowHttpCaller.java | /*
* Copyright 2021 Rikai Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
0 | java-sources/ai/eto/rikai_2.12/0.1.14/org/mlflow | java-sources/ai/eto/rikai_2.12/0.1.14/org/mlflow/tracking/RikaiMlflowClient.java | /*
* Copyright 2021 Rikai Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/Allocations.java | package ai.evolv;
import ai.evolv.exceptions.AscendKeyError;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/Allocator.java | package ai.evolv;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.MoreExecutors;
import com.google.common.util.concurrent.SettableFuture;
import com.google.gson.JsonArray;
import com.google.gson.JsonParser;
import java.net.URI;
import java.net.URL;
import org.slf4j... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/AscendAction.java | package ai.evolv;
public interface AscendAction<T> {
/**
* Applies a given value to a set of instructions.
* @param value any value that was requested
*/
void apply(T value);
}
|
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/AscendAllocationStore.java | package ai.evolv;
import com.google.gson.JsonArray;
public interface AscendAllocationStore {
/**
* Retrieves a JsonArray.
* <p>
* Retrieves a JsonArray that represents the participant's allocations.
* If there are no stored allocations, should return an empty JsonArray.
* </p>
... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/AscendClient.java | package ai.evolv;
public interface AscendClient {
/**
* Retrieves a value from the participant's allocation, returns a default upon error.
* <p>
* Given a unique key this method will retrieve the key's associated value. A
* default value can also be specified in case any errors occur d... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/AscendClientFactory.java | package ai.evolv;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.gson.JsonArray;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class AscendClientFactory {
private static final Logger LOGGER = LoggerFactory.getLogger(AscendClientFactory.class);
/**
* Crea... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/AscendClientImpl.java | package ai.evolv;
import ai.evolv.exceptions.AscendKeyError;
import ai.evolv.generics.GenericClass;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.gson.JsonArray;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class AscendClientImpl implements AscendClient {
private stati... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/AscendConfig.java | package ai.evolv;
public class AscendConfig {
static final String DEFAULT_HTTP_SCHEME = "https";
static final String DEFAULT_DOMAIN = "participants.evolv.ai";
static final String DEFAULT_API_VERSION = "v1";
private static final int DEFAULT_ALLOCATION_STORE_SIZE = 1000;
private final String httpS... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/AscendParticipant.java | package ai.evolv;
import java.util.HashMap;
import java.util.Map;
import java.util.UUID;
public class AscendParticipant {
private final String sessionId;
private String userId;
private Map<String, String> userAttributes;
private AscendParticipant(String userId, String sessionId, Map<String, String> ... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/Audience.java | package ai.evolv;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.HashMap;
import java.util.Map;
public class Audience {
@FunctionalInterface
interface Function<A, B> {
boolean apply(A one, B two);
}
private Map<Stri... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/DefaultAllocationStore.java | package ai.evolv;
import com.google.gson.JsonArray;
public class DefaultAllocationStore implements AscendAllocationStore {
private LruCache cache;
DefaultAllocationStore(int size) {
this.cache = new LruCache(size);
}
@Override
public JsonArray get(String uid) {
return cache.getE... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/EventEmitter.java | package ai.evolv;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.net.URI;
import java.net.URL;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class EventEmitter {
private static final Logger LOGGER = LoggerFactory.getLogger(Executi... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/Execution.java | package ai.evolv;
import ai.evolv.exceptions.AscendKeyError;
import ai.evolv.generics.GenericClass;
import com.google.gson.JsonArray;
import java.util.HashSet;
import java.util.Set;
class Execution<T> {
private final String key;
private final T defaultValue;
private final AscendAction function;
pri... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/ExecutionQueue.java | package ai.evolv;
import ai.evolv.exceptions.AscendKeyError;
import com.google.gson.JsonArray;
import java.util.concurrent.ConcurrentLinkedQueue;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class ExecutionQueue {
private static final Logger LOGGER = LoggerFactory.getLogger(ExecutionQueue.class);
... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/HttpClient.java |
package ai.evolv;
import com.google.common.util.concurrent.ListenableFuture;
public interface HttpClient {
/**
* Performs a GET request using the provided url.
* <p>
* This call is asynchronous, the request is sent and a completable future
* is returned. The future is completed when ... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/LruCache.java | package ai.evolv;
import com.google.gson.JsonArray;
class LruCache {
private MaxSizeHashMap<String, JsonArray> cache;
LruCache(int cacheSize) {
this.cache = new MaxSizeHashMap<>(cacheSize);
}
JsonArray getEntry(String key) {
if (cache.containsKey(key)) {
JsonArray entry ... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/MaxSizeHashMap.java | package ai.evolv;
import java.util.LinkedHashMap;
import java.util.Map;
public class MaxSizeHashMap<K, V> extends LinkedHashMap<K, V> {
private final int maxSize;
public MaxSizeHashMap(int maxSize) {
this.maxSize = maxSize;
}
@Override
protected boolean removeEldestEntry(Map.Entry<K, V> ... |
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/exceptions/AscendKeyError.java | package ai.evolv.exceptions;
public class AscendKeyError extends Exception {
public AscendKeyError(String errorMessage) {
super(errorMessage);
}
}
|
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/generics/GenericClass.java | package ai.evolv.generics;
public class GenericClass<T> {
private final Class<T> type;
public GenericClass(Class<T> type) {
this.type = type;
}
public Class<T> getMyType() {
return this.type;
}
}
|
0 | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv | java-sources/ai/evolv/ascend-android-sdk/0.6.1/ai/evolv/httpclients/OkHttpClient.java | package ai.evolv.httpclients;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.common.util.concurrent.SettableFuture;
import ai.evolv.HttpClient;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.ConnectionPool;... |
0 | java-sources/ai/evolv/ascend-sdk/0.7.1/ai | java-sources/ai/evolv/ascend-sdk/0.7.1/ai/evolv/Allocations.java | package ai.evolv;
import ai.evolv.exceptions.AscendKeyError;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashSet;
import java.util.List;
import java.util.Set... |
0 | java-sources/ai/evolv/ascend-sdk/0.7.1/ai | java-sources/ai/evolv/ascend-sdk/0.7.1/ai/evolv/Allocator.java | package ai.evolv;
import com.google.gson.JsonArray;
import com.google.gson.JsonParser;
import java.net.URI;
import java.net.URL;
import java.util.concurrent.CompletableFuture;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
class Allocator {
private static final Logger LOGGER = LoggerFactory.getLogge... |
0 | java-sources/ai/evolv/ascend-sdk/0.7.1/ai | java-sources/ai/evolv/ascend-sdk/0.7.1/ai/evolv/AscendClientFactory.java | package ai.evolv;
import com.google.gson.JsonArray;
import java.util.concurrent.CompletableFuture;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class AscendClientFactory {
private static final Logger LOGGER = LoggerFactory.getLogger(AscendClientFactory.class);
/**
* Creates instanc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.