repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/Framer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 1,093 | 34.290323 | 98 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/GridOnlineViewer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 9,370 | 33.836431 | 143 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/AllRobotFollower.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 3,403 | 35.212766 | 98 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/GridEpisodeRunner.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 3,660 | 36.357143 | 158 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/GridFileWriter.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 7,217 | 42.221557 | 243 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/DrawingUtils.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 3,192 | 30.93 | 117 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/TargetDrawer.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 1,651 | 27.482759 | 74 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/MLPDrawer.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 25,625 | 43.957895 | 239 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/BoundingBoxDrawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 1,973 | 31.360656 | 98 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/SensorReadingsSectorDrawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 4,410 | 42.245098 | 167 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/PolyDrawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 2,958 | 31.516484 | 98 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/MemoryDrawer.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 1,791 | 31 | 108 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/PostureDrawer.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 3,733 | 37.494845 | 148 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/Drawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 4,848 | 32.673611 | 117 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/VoxelDrawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 3,973 | 41.731183 | 129 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/SubtreeDrawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 3,070 | 36 | 160 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/SpectrumDrawer.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 4,889 | 41.155172 | 210 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/FootprintDrawer.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 3,995 | 36.345794 | 136 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/StackedScopedReadingsDrawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 3,574 | 42.597561 | 183 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/SignalDrawer.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 4,628 | 41.081818 | 150 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/InfoDrawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 4,287 | 33.304 | 127 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/Drawers.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 8,121 | 31.618474 | 224 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/viewers/drawers/LidarDrawer.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 3,298 | 36.067416 | 102 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/behavior/Footprint.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 1,550 | 23.619048 | 74 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/behavior/PoseUtils.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 6,185 | 48.095238 | 202 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/behavior/BehaviorUtils.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 13,695 | 42.897436 | 175 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/behavior/Gait.java | /*
* Copyright (c) "Eric Medvet" 2021.
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is dis... | 2,129 | 26.662338 | 113 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/tasks/FinalPosture.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 2,446 | 32.520548 | 98 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/tasks/Task.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 1,080 | 32.78125 | 98 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/tasks/AbstractTask.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 2,204 | 32.923077 | 157 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/tasks/locomotion/Outcome.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 9,325 | 36.757085 | 180 | java |
null | VSRCollectiveControlViaSNCA-main/src/main/java/it/units/erallab/hmsrobots/tasks/locomotion/Locomotion.java | /*
* Copyright (C) 2021 Eric Medvet <[email protected]> (as Eric Medvet <[email protected]>)
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
*... | 9,798 | 43.949541 | 171 | java |
EVCache | EVCache-master/evcache-client-sample/src/main/java/com/netflix/evcache/sample/EVCacheClientZipkinTracingSample.java | package com.netflix.evcache.sample;
import brave.Tracing;
import com.netflix.evcache.EVCache;
import com.netflix.evcache.EVCacheException;
import com.netflix.evcache.EVCacheTracingEventListener;
import com.netflix.evcache.pool.EVCacheClientPoolManager;
import zipkin2.Span;
import java.util.ArrayList;
import java.util... | 5,090 | 34.601399 | 100 | java |
EVCache | EVCache-master/evcache-client-sample/src/main/java/com/netflix/evcache/sample/EVCacheClientSample.java | package com.netflix.evcache.sample;
import com.netflix.evcache.EVCache;
import com.netflix.evcache.EVCacheException;
import java.util.concurrent.Future;
/**
* Created by senugula on 3/24/16.
* Updated by akpratt on 5/13/16.
*/
/**
* This standalone program demonstrates how to use EVCacheClient for
* set/get op... | 5,562 | 36.33557 | 136 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/EVCacheModule.java | package com.netflix.evcache;
import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
import com.google.inject.*;
import com.netflix.archaius.api.annotations.ConfigurationSource;
import com.netflix.evcache.connection.DIConnectionModule;
import com.netflix.evcache.connection.IConnectionBuilder;
impor... | 2,567 | 29.571429 | 113 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/pool/DIEVCacheKetamaNodeLocatorConfiguration.java | package com.netflix.evcache.pool;
import com.netflix.appinfo.InstanceInfo;
import com.netflix.discovery.EurekaClient;
import com.netflix.discovery.shared.Application;
import net.spy.memcached.MemcachedNode;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.net.InetSocketAddress;
import java.net.Soc... | 3,153 | 41.621622 | 166 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/pool/eureka/EurekaNodeListProvider.java | package com.netflix.evcache.pool.eureka;
import com.google.common.net.InetAddresses;
import com.netflix.appinfo.AmazonInfo;
import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.appinfo.DataCenterInfo;
import com.netflix.appinfo.InstanceInfo;
import com.netflix.appinfo.InstanceInfo.InstanceStatus;
impo... | 12,052 | 55.586854 | 215 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/pool/eureka/DIEVCacheNodeListProvider.java | package com.netflix.evcache.pool.eureka;
import javax.inject.Inject;
import javax.inject.Provider;
import com.netflix.archaius.api.PropertyRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.discovery.EurekaClient;
import com.netf... | 1,513 | 35.047619 | 138 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/connection/DIAsciiConnectionFactory.java | package com.netflix.evcache.connection;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.archaius.api.Property;
import com.netflix.discovery.EurekaClient;
import com.netflix.evcache.metrics.EVCacheMetricsFactory;
import com.netflix.evcache.pool.DIEVCacheKetamaNodeLoc... | 1,447 | 37.105263 | 162 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/connection/DIConnectionFactoryBuilderProvider.java | package com.netflix.evcache.connection;
import com.netflix.archaius.api.Property;
import com.netflix.archaius.api.PropertyRepository;
import com.netflix.discovery.EurekaClient;
import com.netflix.evcache.pool.EVCacheClient;
import com.netflix.evcache.util.EVCacheConfig;
import net.spy.memcached.ConnectionFactory;
im... | 2,188 | 33.746032 | 163 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/connection/DIConnectionFactory.java | package com.netflix.evcache.connection;
import com.netflix.archaius.api.Property;
import com.netflix.discovery.EurekaClient;
import com.netflix.evcache.metrics.EVCacheMetricsFactory;
import com.netflix.evcache.pool.DIEVCacheKetamaNodeLocatorConfiguration;
import com.netflix.evcache.pool.EVCacheClient;
import com.netfl... | 1,212 | 36.90625 | 162 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/connection/DIConnectionModule.java | package com.netflix.evcache.connection;
import com.google.inject.AbstractModule;
import com.google.inject.Singleton;
@Singleton
public class DIConnectionModule extends AbstractModule {
public DIConnectionModule() {
}
@Override
protected void configure() {
bind(IConnectionBuilder.class).toPro... | 595 | 20.285714 | 92 | java |
EVCache | EVCache-master/evcache-client/src/main/java/com/netflix/evcache/version/VersionTracker.java | package com.netflix.evcache.version;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.evcache.metrics.EVCacheMetricsFactory;
import com.netflix.evcache.po... | 2,316 | 32.1 | 104 | java |
EVCache | EVCache-master/evcache-client/test/com/netflix/evcache/test/EVCacheTestDI.java | package com.netflix.evcache.test;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;
import java.util.Map;
import java.util.Properties;
import java.util.*;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import com.netflix.evcache.*;
import com.netfl... | 19,099 | 38.70894 | 358 | java |
EVCache | EVCache-master/evcache-client/test/com/netflix/evcache/test/DIBase.java | package com.netflix.evcache.test;
import com.google.inject.Injector;
import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.archaius.config.MapConfig;
import com.netflix.archaius.guice.ArchaiusModule;
import com.netflix.discovery.guice.EurekaClientModule;
import com.netflix.evcache.EVCache;
import com.... | 12,604 | 41.87415 | 215 | java |
EVCache | EVCache-master/evcache-zipkin-tracing/src/test/java/com/netflix/evcache/EVCacheTracingEventListenerUnitTests.java | package com.netflix.evcache;
import brave.Tracing;
import com.netflix.evcache.event.EVCacheEvent;
import com.netflix.evcache.pool.EVCacheClient;
import com.netflix.evcache.pool.EVCacheClientPoolManager;
import net.spy.memcached.CachedData;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Ans... | 5,064 | 38.88189 | 124 | java |
EVCache | EVCache-master/evcache-zipkin-tracing/src/main/java/com/netflix/evcache/EVCacheTracingEventListener.java | package com.netflix.evcache;
import brave.Span;
import brave.Tracer;
import com.netflix.evcache.event.EVCacheEvent;
import com.netflix.evcache.event.EVCacheEventListener;
import com.netflix.evcache.pool.EVCacheClient;
import com.netflix.evcache.pool.EVCacheClientPoolManager;
import net.spy.memcached.CachedData;
import... | 6,573 | 32.886598 | 121 | java |
EVCache | EVCache-master/evcache-zipkin-tracing/src/main/java/com/netflix/evcache/EVCacheTracingTags.java | package com.netflix.evcache;
public class EVCacheTracingTags {
public static String CACHE_NAME_PREFIX = "evcache.cache_name_prefix";
public static String APP_NAME = "evcache.app_name";
public static String STATUS = "evcache.status";
public static String LATENCY = "evcache.latency";
public static St... | 706 | 43.1875 | 73 | java |
EVCache | EVCache-master/evcacheproxy/src/main/java/com/netflix/evcservice/service/StatusPage.java | package com.netflix.evcservice.service;
import com.google.inject.Singleton;
import java.io.PrintWriter;
import com.netflix.server.base.BaseStatusPage;
/**
* Created by senugula on 03/22/15.
*/
@Singleton
public class StatusPage extends BaseStatusPage {
private static final long serialVersionUID = 1L;
@Overrid... | 473 | 22.7 | 64 | java |
EVCache | EVCache-master/evcacheproxy/src/main/java/com/netflix/evcache/service/EVCacheServiceModule.java | package com.netflix.evcache.service;
import com.google.inject.AbstractModule;
import com.netflix.appinfo.ApplicationInfoManager;
import com.netflix.config.ConfigurationManager;
import com.netflix.discovery.guice.EurekaModule;
import com.netflix.evcache.EVCacheModule;
import com.netflix.evcache.connection.ConnectionMod... | 1,903 | 37.857143 | 114 | java |
EVCache | EVCache-master/evcacheproxy/src/main/java/com/netflix/evcache/service/HealthCheckHandlerImpl.java | package com.netflix.evcache.service;
import com.google.inject.Singleton;
import com.netflix.server.base.BaseHealthCheckServlet;
/**
* Created by senugula on 03/22/15.
*/
@Singleton
public class HealthCheckHandlerImpl extends BaseHealthCheckServlet {
public int getStatus() {
return 200; // TODO
}
} | 320 | 20.4 | 68 | java |
EVCache | EVCache-master/evcacheproxy/src/main/java/com/netflix/evcache/service/StartServer.java | package com.netflix.evcache.service;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletContextEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.google.inject.Injector;
import com.google.inject.servlet.ServletModule;
import com.netflix.evcache.EVCacheClientLibrary;
... | 2,968 | 39.121622 | 114 | java |
EVCache | EVCache-master/evcacheproxy/src/main/java/com/netflix/evcache/service/transcoder/RESTServiceTranscoder.java | package com.netflix.evcache.service.transcoder;
import net.spy.memcached.CachedData;
import net.spy.memcached.transcoders.SerializingTranscoder;
/**
* Created by senugula on 6/23/16.
*/
public class RESTServiceTranscoder extends SerializingTranscoder {
static final int COMPRESSED = 2;
public RESTServiceTra... | 777 | 21.228571 | 88 | java |
EVCache | EVCache-master/evcacheproxy/src/main/java/com/netflix/evcache/service/resources/EVCacheRESTService.java | package com.netflix.evcache.service.resources;
import com.google.inject.Inject;
import com.google.inject.Singleton;
import com.netflix.evcache.EVCache;
import com.netflix.evcache.EVCacheException;
import com.netflix.evcache.EVCacheLatch;
import com.netflix.evcache.EVCacheLatch.Policy;
import com.netflix.evcache.servic... | 6,689 | 38.585799 | 146 | java |
EVCache | EVCache-master/evcache-core/src/test/java/com/netflix/evcache/test/SimpleEVCacheTest.java | package com.netflix.evcache.test;
import java.util.Arrays;
import java.util.Map;
import java.util.Properties;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Future;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeU... | 13,769 | 37.144044 | 798 | java |
EVCache | EVCache-master/evcache-core/src/test/java/com/netflix/evcache/test/Base.java | package com.netflix.evcache.test;
import java.util.Arrays;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import org.apache.log4j.Appender;
import org.apache.log4j.... | 12,670 | 40.544262 | 215 | java |
EVCache | EVCache-master/evcache-core/src/test/java/com/netflix/evcache/test/MockEVCacheTest.java | package com.netflix.evcache.test;
import static org.mockito.Matchers.anyCollection;
import static org.mockito.Matchers.anyInt;
import static org.mockito.Matchers.anyObject;
import static org.mockito.Matchers.anyString;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import static org.te... | 7,762 | 33.811659 | 130 | java |
EVCache | EVCache-master/evcache-core/src/test/java/com/netflix/evcache/test/SimpleEurekaEVCacheTest.java | package com.netflix.evcache.test;
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.Future;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.ThreadPoolExecu... | 11,595 | 35.2375 | 798 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheTranscoder.java | package com.netflix.evcache;
import com.netflix.evcache.util.EVCacheConfig;
import net.spy.memcached.CachedData;
public class EVCacheTranscoder extends EVCacheSerializingTranscoder {
public EVCacheTranscoder() {
this(EVCacheConfig.getInstance().getPropertyRepository().get("default.evcache.max.data.size"... | 1,090 | 26.974359 | 149 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheInternal.java | package com.netflix.evcache;
import com.netflix.evcache.operation.EVCacheItem;
import com.netflix.evcache.operation.EVCacheItemMetaData;
import com.netflix.evcache.pool.EVCacheClientPoolManager;
import net.spy.memcached.CachedData;
import net.spy.memcached.MemcachedNode;
import net.spy.memcached.transcoders.Transcoder... | 3,023 | 38.272727 | 203 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheClientPoolConfigurationProperties.java | package com.netflix.evcache;
import java.time.Duration;
public class EVCacheClientPoolConfigurationProperties {
/**
* Prefix to be applied to keys.
*/
private String keyPrefix;
/**
* Time-to-live in seconds.
*/
private Duration timeToLive;
/**
* Whether or not retry is to be enabled.
*/
... | 1,386 | 20.015152 | 77 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheKey.java | package com.netflix.evcache;
import java.util.HashMap;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.archaius.api.Property;
import com.netflix.evcache.util.KeyHasher;
import com.netflix.evcache.util.KeyHasher.HashingAlgorithm;
public class EVCacheKey {
private... | 9,449 | 47.71134 | 364 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCache.java | package com.netflix.evcache;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.Future;
import javax.annotation.Nullable;
import javax.injec... | 68,640 | 44.638963 | 462 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheImplMBean.java | package com.netflix.evcache;
public interface EVCacheImplMBean extends EVCache {
} | 84 | 16 | 51 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheImpl.java | package com.netflix.evcache;
import static com.netflix.evcache.util.Sneaky.sneakyThrow;
import java.lang.management.ManagementFactory;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.I... | 189,277 | 54.686378 | 315 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheSerializingTranscoder.java | /**
* Copyright (C) 2006-2009 Dustin Sallings
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merg... | 7,865 | 35.929577 | 149 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheGetOperationListener.java | package com.netflix.evcache;
import com.netflix.evcache.operation.EVCacheOperationFuture;
import net.spy.memcached.internal.GenericCompletionListener;
public interface EVCacheGetOperationListener<T> extends GenericCompletionListener<EVCacheOperationFuture<T>> {
}
| 268 | 25.9 | 110 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheException.java | package com.netflix.evcache;
public class EVCacheException extends Exception {
private static final long serialVersionUID = -3885811159646046383L;
public EVCacheException(String message) {
super(message);
}
public EVCacheException(String message, Throwable cause) {
super(message, cau... | 332 | 22.785714 | 71 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheLatch.java | package com.netflix.evcache;
import java.util.List;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import com.netflix.evcache.event.EVCacheEvent;
import net.spy.memcached.internal.OperationCompletionListener;
/**
* EVCacheLatch is a blocking mechanism that allows one or more threads to ... | 6,305 | 32.903226 | 197 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheInternalImpl.java | package com.netflix.evcache;
import com.netflix.archaius.api.PropertyRepository;
import com.netflix.evcache.operation.EVCacheItem;
import com.netflix.evcache.operation.EVCacheItemMetaData;
import com.netflix.evcache.pool.EVCacheClient;
import com.netflix.evcache.pool.EVCacheClientPoolManager;
import com.netflix.evcach... | 10,703 | 51.990099 | 232 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheReadQueueException.java | package com.netflix.evcache;
public class EVCacheReadQueueException extends EVCacheException {
private static final long serialVersionUID = -7660503904923117538L;
public EVCacheReadQueueException(String message) {
super(message);
}
public EVCacheReadQueueException(String message, Throwable c... | 366 | 25.214286 | 71 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheInMemoryCache.java | package com.netflix.evcache;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Callable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
import ja... | 12,483 | 46.287879 | 216 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheConnectException.java | package com.netflix.evcache;
import java.io.IOException;
public class EVCacheConnectException extends IOException {
private static final long serialVersionUID = 8065483548278456469L;
public EVCacheConnectException(String message) {
super(message);
}
public EVCacheConnectException(String mes... | 383 | 23 | 70 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/EVCacheMissException.java | package com.netflix.evcache;
public class EVCacheMissException extends EVCacheException {
private static final long serialVersionUID = 222337840463312890L;
public EVCacheMissException(String message) {
super(message);
}
public EVCacheMissException(String message, Throwable cause) {
s... | 351 | 21 | 69 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/config/EVCachePersistedProperties.java | package com.netflix.evcache.config;
import java.net.URL;
import java.net.URLEncoder;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.archaius.config.PollingDynamicConfig;
import c... | 6,075 | 44.343284 | 181 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/ServerGroupCircularIterator.java | package com.netflix.evcache.util;
import java.util.Iterator;
import java.util.Set;
import com.netflix.evcache.pool.ServerGroup;
/**
* A circular iterator for ReplicaSets. This ensures that all ReplicaSets are
* equal number of requests.
*
* @author smadappa
*/
public class ServerGroupCircularIterator {
pri... | 3,144 | 27.333333 | 108 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/KeyHasher.java | package com.netflix.evcache.util;
import java.util.Arrays;
import java.util.Base64;
import java.util.Base64.Encoder;
import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.ConsoleAppender;
import org.apache.log4j.Level;
import org.apache.log4j.PatternLayout;
import org.slf4j.Logger;
import org.slf4j.Logge... | 5,770 | 36.718954 | 205 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/Pair.java | package com.netflix.evcache.util;
public class Pair<E1, E2> {
public E1 first() {
return first;
}
public void setFirst(E1 first) {
this.first = first;
}
public E2 second() {
return second;
}
public void setSecond(E2 second) {
this.second = second;
}
... | 469 | 16.407407 | 38 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/CircularIterator.java | package com.netflix.evcache.util;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Iterator;
/**
* A circular iterator for ReplicaSets. This ensures that all ReplicaSets are
* equal number of requests.
*
* @author smadappa
*/
public class CircularIterator<T> {
private Entry<T> e... | 3,802 | 29.669355 | 131 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/RetryCount.java | package com.netflix.evcache.util;
public class RetryCount {
private int retryCount;
public RetryCount() {
retryCount = 1;
}
public void incr() {
retryCount++;
}
public int get(){
return retryCount;
}
}
| 255 | 16.066667 | 33 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/EVCacheBulkDataDto.java | package com.netflix.evcache.util;
import com.netflix.evcache.EVCacheKey;
import java.util.List;
import java.util.Map;
public class EVCacheBulkDataDto<T> {
private Map<String, T> decanonicalR;
private List<EVCacheKey> evcKeys;
public EVCacheBulkDataDto(Map<String, T> decanonicalR, List<EVCacheKey> evcKey... | 769 | 22.333333 | 86 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/ZoneFallbackIterator.java | /**
* Copyright 2013 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 3,080 | 26.756757 | 79 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/EVCacheConfig.java | package com.netflix.evcache.util;
import java.lang.reflect.Type;
import java.util.function.Consumer;
import java.util.function.Function;
import javax.inject.Inject;
import com.netflix.archaius.DefaultPropertyFactory;
import com.netflix.archaius.api.Property;
import com.netflix.archaius.api.PropertyListener;
import ... | 5,051 | 30.575 | 92 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/SupplierUtils.java | package com.netflix.evcache.util;
import java.util.concurrent.Callable;
import java.util.function.Supplier;
public final class SupplierUtils {
private SupplierUtils() {
}
public static <T> Supplier<T> wrap(Callable<T> callable) {
return () -> {
try {
return callable.ca... | 534 | 21.291667 | 62 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/util/Sneaky.java | package com.netflix.evcache.util;
/**
* Sneaky can be used to sneakily throw checked exceptions without actually declaring this in your method's throws clause.
* This somewhat contentious ability should be used carefully, of course.
*/
public class Sneaky {
public static RuntimeException sneakyThrow(Throwable t... | 610 | 31.157895 | 122 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/metrics/EVCacheMetricsFactory.java | package com.netflix.evcache.metrics;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.StringTokenizer;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicLong;... | 20,630 | 47.888626 | 154 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheNodeLocator.java | package com.netflix.evcache.pool;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import com.netflix.archaius.api.Property;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | 8,737 | 38.36036 | 185 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheNodeList.java | package com.netflix.evcache.pool;
import java.io.IOException;
import java.net.UnknownServiceException;
import java.util.Map;
public interface EVCacheNodeList {
/**
* Discover memcached instances suitable for our use from the Discovery
* Service.
*
*
* @param appName The EVCache app for... | 752 | 30.375 | 116 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheScheduledExecutorMBean.java | package com.netflix.evcache.pool;
public interface EVCacheScheduledExecutorMBean {
boolean isShutdown();
boolean isTerminating();
boolean isTerminated();
int getCorePoolSize();
int getMaximumPoolSize();
int getQueueSize();
int getPoolSize();
int getActiveCount();
int getLar... | 399 | 13.814815 | 48 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheClientPoolMBean.java | package com.netflix.evcache.pool;
import java.util.Map;
public interface EVCacheClientPoolMBean {
int getInstanceCount();
Map<String, String> getInstancesByZone();
Map<String, Integer> getInstanceCountByZone();
Map<String, String> getReadZones();
Map<String, Integer> getReadInstanceCountByZon... | 681 | 19.666667 | 55 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheServerGroupConfig.java | package com.netflix.evcache.pool;
import java.net.InetSocketAddress;
import java.util.Set;
public class EVCacheServerGroupConfig {
private final ServerGroup serverGroup;
private final Set<InetSocketAddress> inetSocketAddress;
public EVCacheServerGroupConfig(ServerGroup serverGroup, Set<InetSocketAddress>... | 775 | 24.866667 | 104 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheKetamaNodeLocatorConfiguration.java | package com.netflix.evcache.pool;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.HashMap;
import java.util.Map;
import com.netflix.archaius.api.Property;
import com.netflix.evcache.util.EVCacheConfig;
import net.spy.memcached.MemcachedNode;
import net.spy.memcached.util.DefaultKet... | 2,757 | 38.971014 | 170 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheExecutorMBean.java | package com.netflix.evcache.pool;
public interface EVCacheExecutorMBean {
boolean isShutdown();
boolean isTerminating();
boolean isTerminated();
int getCorePoolSize();
int getMaximumPoolSize();
int getQueueSize();
int getPoolSize();
int getActiveCount();
int getLargestPoolS... | 390 | 13.481481 | 39 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheValue.java | package com.netflix.evcache.pool;
import java.io.Serializable;
import java.util.Arrays;
public class EVCacheValue implements Serializable {
/**
*
*/
private static final long serialVersionUID = 3182483105524224448L;
private final String key;
private final byte[] value;
private final in... | 2,336 | 24.966667 | 135 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheClientUtil.java | package com.netflix.evcache.pool;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import com.netflix.evcache.EVCacheKey;
import net.spy.memcached.transcoders.Transcoder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.evcache.EVCacheLatch;
import com.netflix.evca... | 4,652 | 51.875 | 296 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/ChunkTranscoder.java | package com.netflix.evcache.pool;
import net.spy.memcached.CachedData;
import net.spy.memcached.transcoders.BaseSerializingTranscoder;
import net.spy.memcached.transcoders.Transcoder;
/**
* A local transcoder used only by EVCache client to ensure we don't try to deserialize chunks
*
* @author smadappa
*
*/
publ... | 768 | 20.361111 | 98 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/ServerGroup.java | package com.netflix.evcache.pool;
public class ServerGroup implements Comparable<ServerGroup> {
private final String zone;
private final String name;
public ServerGroup(String zone, String name) {
super();
this.zone = zone;
this.name = name;
}
public String getZone() {
... | 1,559 | 24.16129 | 96 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/SimpleNodeListProvider.java | package com.netflix.evcache.pool;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.nio.charset.Charset;
import java.time.Duration;
import java.util.*;
import java.util.concurrent.TimeUnit;
import com.netflix.archaius.api.Property... | 12,043 | 49.818565 | 215 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheExecutor.java | package com.netflix.evcache.pool;
import java.lang.management.ManagementFactory;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;
import javax.management.MBeanServer;
import java... | 3,512 | 42.37037 | 172 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheClientPool.java | package com.netflix.evcache.pool;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
impor... | 86,014 | 50.816265 | 259 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.