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 |
|---|---|---|---|---|---|---|
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheScheduledExecutor.java | package com.netflix.evcache.pool;
import java.lang.management.ManagementFactory;
import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ScheduledThreadPoolExecutor;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
import javax.management.MBeanServer;
import j... | 3,546 | 42.256098 | 172 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheClient.java | package com.netflix.evcache.pool;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.AbstractMap.Simp... | 80,890 | 44.572394 | 223 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/EVCacheClientPoolManager.java | package com.netflix.evcache.pool;
import java.io.IOException;
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.CopyOnWriteArrayList;
import java.util.concurrent.ScheduledFuture;
import jav... | 13,386 | 45.162069 | 245 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/observer/EVCacheConnectionObserverMBean.java | package com.netflix.evcache.pool.observer;
import java.net.SocketAddress;
import java.util.Set;
public interface EVCacheConnectionObserverMBean {
int getActiveServerCount();
Set<SocketAddress> getActiveServerNames();
int getInActiveServerCount();
Set<SocketAddress> getInActiveServerNames();
l... | 370 | 18.526316 | 49 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/pool/observer/EVCacheConnectionObserver.java | package com.netflix.evcache.pool.observer;
import java.lang.management.ManagementFactory;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import javax.management.MBeanServer;
impo... | 7,118 | 38.994382 | 167 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/connection/IConnectionBuilder.java | package com.netflix.evcache.connection;
import com.netflix.evcache.pool.EVCacheClient;
import net.spy.memcached.ConnectionFactory;
public interface IConnectionBuilder {
ConnectionFactory getConnectionFactory(EVCacheClient client);
} | 241 | 21 | 65 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/connection/BaseAsciiConnectionFactory.java | package com.netflix.evcache.connection;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.channels.SocketChannel;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
im... | 6,541 | 33.613757 | 240 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/connection/ConnectionFactoryBuilder.java | package com.netflix.evcache.connection;
import com.netflix.archaius.api.Property;
import com.netflix.evcache.pool.EVCacheClient;
import com.netflix.evcache.util.EVCacheConfig;
import net.spy.memcached.ConnectionFactory;
public class ConnectionFactoryBuilder implements IConnectionBuilder {
public ConnectionFacto... | 1,355 | 51.153846 | 170 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/connection/BaseConnectionFactory.java | package com.netflix.evcache.connection;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.channels.SocketChannel;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.ArrayBlockingQueue;
import java.util.concurrent.BlockingQueue;
im... | 6,236 | 33.081967 | 240 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/dto/KeyMapDto.java | package com.netflix.evcache.dto;
import com.netflix.evcache.EVCacheKey;
import java.util.Map;
public class KeyMapDto {
Map<String, EVCacheKey> keyMap;
boolean isKeyHashed;
public KeyMapDto(Map<String, EVCacheKey> keyMap, boolean isKeyHashed) {
this.keyMap = keyMap;
this.isKeyHashed = isK... | 487 | 19.333333 | 75 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/dto/EVCacheResponseStatus.java | package com.netflix.evcache.dto;
public class EVCacheResponseStatus {
private String status;
public EVCacheResponseStatus(String status) {
this.status = status;
}
public String getStatus() {
return status;
}
public void setStatus(String status) {
this.status = status;... | 329 | 17.333333 | 49 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/event/EVCacheEventListener.java | package com.netflix.evcache.event;
import java.util.EventListener;
import com.netflix.evcache.EVCacheException;
public interface EVCacheEventListener extends EventListener {
void onStart(EVCacheEvent e);
void onComplete(EVCacheEvent e);
void onError(EVCacheEvent e, Throwable t);
boolean onThrottl... | 364 | 21.8125 | 63 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/event/EVCacheEvent.java | package com.netflix.evcache.event;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.netflix.evcache.EVCache.Call;
import com.netflix.evcache.metrics.EVCacheMetricsFactory;
import com.netflix.evcache... | 6,371 | 27.070485 | 209 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/event/hotkey/HotKeyListener.java | package com.netflix.evcache.event.hotkey;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.TimeUnit;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
... | 9,489 | 41.177778 | 222 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/event/throttle/ThrottleListener.java | package com.netflix.evcache.event.throttle;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;
import javax.inject.Inject;
import javax.inject.Singleton;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.archaius.api.Pro... | 2,963 | 34.285714 | 160 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheFutures.java | package com.netflix.evcache.operation;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import java.util.concurrent.atomic.AtomicInteger;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
imp... | 4,321 | 30.318841 | 132 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheAsciiOperationFactory.java | package com.netflix.evcache.operation;
import net.spy.memcached.protocol.ascii.AsciiOperationFactory;
import net.spy.memcached.protocol.ascii.ExecCmdOperation;
import net.spy.memcached.protocol.ascii.ExecCmdOperationImpl;
import net.spy.memcached.protocol.ascii.MetaDebugOperation;
import net.spy.memcached.protocol.asc... | 1,396 | 36.756757 | 85 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheItemMetaData.java | package com.netflix.evcache.operation;
/**
* <B><u>Meta </u></B>
* <br>
* The meta debug command is a human readable dump of all available internal
* metadata of an item, minus the value.<br>
* <br>
* <b><i>me <key>r\n</i></b><br>
* <br>
* <key> means one key string.<br>
* <br>
* The response looks lik... | 4,061 | 27.405594 | 116 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheItem.java | package com.netflix.evcache.operation;
public class EVCacheItem<T> {
private final EVCacheItemMetaData item;
private T data = null;
private int flag = 0;
public EVCacheItem() {
item = new EVCacheItemMetaData();
}
public EVCacheItemMetaData getItemMetaData() {
return item;
... | 710 | 17.230769 | 87 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheBulkGetFuture.java | package com.netflix.evcache.operation;
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap... | 12,067 | 40.902778 | 246 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheFuture.java | package com.netflix.evcache.operation;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.netflix.evcache.pool.EVCacheClient;
import... | 2,457 | 25.717391 | 121 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheOperationFuture.java | package com.netflix.evcache.operation;
import com.google.common.util.concurrent.ThreadFactoryBuilder;
import java.lang.management.GarbageCollectorMXBean;
import java.lang.management.ManagementFactory;
import java.lang.management.RuntimeMXBean;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Lis... | 17,633 | 41.186603 | 362 | java |
EVCache | EVCache-master/evcache-core/src/main/java/com/netflix/evcache/operation/EVCacheLatchImpl.java | package com.netflix.evcache.operation;
import java.time.Duration;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledFuture;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.sl... | 19,747 | 39.302041 | 338 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/EVCacheNodeMBean.java | package net.spy.memcached;
public interface EVCacheNodeMBean extends EVCacheNode {
} | 86 | 16.4 | 55 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/EVCacheMemcachedNodeROImpl.java | package net.spy.memcached;
import java.io.IOException;
import java.net.SocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.util.Collection;
import net.spy.memcached.ops.Operation;
public class EVCacheMemcachedNodeROImpl implements Memc... | 4,223 | 22.864407 | 78 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/EVCacheMemcachedClient.java | package net.spy.memcached;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import j... | 46,371 | 54.668667 | 305 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/EVCacheConnection.java | package net.spy.memcached;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.channels.CancelledKeyException;
import java.nio.channels.ClosedSelectorException;
import java.util.Collection;
import java.util.ConcurrentModificationException;
import java.util.List;
import java.util.Map;
import ... | 3,348 | 32.158416 | 115 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/EVCacheNode.java | package net.spy.memcached;
import java.util.List;
import com.netflix.evcache.EVCache;
import com.netflix.evcache.pool.EVCacheClient;
import com.netflix.evcache.pool.ServerGroup;
import com.netflix.spectator.api.Tag;
public interface EVCacheNode extends MemcachedNode {
void registerMonitors();
boolean isAvai... | 1,105 | 16.015385 | 52 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/binary/EVCacheNodeImpl.java | package net.spy.memcached.protocol.binary;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.channels.SocketChannel;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.a... | 11,480 | 33.374251 | 172 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaDebugOperation.java | package net.spy.memcached.protocol.ascii;
import net.spy.memcached.ops.Operation;
import net.spy.memcached.ops.OperationCallback;
public interface MetaDebugOperation extends Operation {
/**
* Operation callback for the get request.
*/
public interface Callback extends OperationCallback {
/**
... | 586 | 26.952381 | 57 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/ExecCmdOperation.java | package net.spy.memcached.protocol.ascii;
import net.spy.memcached.ops.Operation;
import net.spy.memcached.ops.OperationCallback;
public interface ExecCmdOperation extends Operation {
/**
* Callback for cmd operation.
*/
interface Callback extends OperationCallback {
}
}
| 299 | 20.428571 | 53 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/ExecCmdOperationImpl.java | package net.spy.memcached.protocol.ascii;
import java.nio.ByteBuffer;
import java.util.Arrays;
import net.spy.memcached.ops.OperationState;
import net.spy.memcached.ops.OperationStatus;
import net.spy.memcached.ops.StatusCode;
public class ExecCmdOperationImpl extends OperationImpl implements ExecCmdOperation {
... | 1,363 | 24.735849 | 85 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaArithmeticOperationImpl.java | package net.spy.memcached.protocol.ascii;
import net.spy.memcached.KeyUtil;
import net.spy.memcached.ops.Mutator;
import net.spy.memcached.ops.MutatorOperation;
import net.spy.memcached.ops.OperationCallback;
import net.spy.memcached.ops.OperationStatus;
import net.spy.memcached.ops.OperationState;
import net.spy.memc... | 3,946 | 31.891667 | 113 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaGetOperationImpl.java | package net.spy.memcached.protocol.ascii;
import java.nio.ByteBuffer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.spy.memcached.KeyUtil;
import net.spy.memcached.ops.OperationCallback;
import net.spy.memcached.ops.OperationState;
import net.spy.memcached.ops.OperationStatus;
import net.spy.m... | 4,878 | 36.530769 | 107 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaGetOperation.java | package net.spy.memcached.protocol.ascii;
import net.spy.memcached.ops.Operation;
import net.spy.memcached.ops.OperationCallback;
public interface MetaGetOperation extends Operation {
/**
* Operation callback for the get request.
*/
public interface Callback extends OperationCallback {
/**
... | 881 | 28.4 | 58 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/MetaDebugOperationImpl.java | package net.spy.memcached.protocol.ascii;
import java.nio.ByteBuffer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import net.spy.memcached.KeyUtil;
import net.spy.memcached.ops.OperationState;
import net.spy.memcached.ops.OperationStatus;
import net.spy.memcached.ops.StatusCode;
public class MetaDebugO... | 2,185 | 32.630769 | 99 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/EVCacheAsciiNodeImpl.java | package net.spy.memcached.protocol.ascii;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
import java.nio.channels.SocketChannel;
import java.util.List;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.a... | 7,162 | 29.096639 | 170 | java |
EVCache | EVCache-master/evcache-core/src/main/java/net/spy/memcached/protocol/ascii/EVCacheOperationImpl.java | package net.spy.memcached.protocol.ascii;
import net.spy.memcached.ops.OperationCallback;
public class EVCacheOperationImpl extends OperationImpl {
protected EVCacheOperationImpl(OperationCallback cb) {
super(cb);
}
@Override
public void handleLine(String line) {
// TODO Auto-gener... | 459 | 18.166667 | 58 | java |
json-io | json-io-master/src/test/groovy/com/cedarsoftware/util/io/ObjectHolder.java | package com.cedarsoftware.util.io;
/**
* @author Kai Hufenbach
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* 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... | 2,109 | 24.119048 | 83 | java |
json-io | json-io-master/src/test/groovy/com/cedarsoftware/util/io/TestObjectHolder.java | package com.cedarsoftware.util.io;
import org.junit.Test;
import java.util.HashMap;
import java.util.Map;
import static org.junit.Assert.assertTrue;
/**
* @author Kai Hufenbach
*
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* Licensed under the Apache License, Version 2... | 2,383 | 34.058824 | 148 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestNotLenientNanInfinity.java | package com.cedarsoftware.util.io;
import org.junit.Test;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import org.junit.BeforeClass;
/**
* @author John DeRegnaucourt ([email protected])
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* ... | 2,822 | 29.354839 | 83 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestSimpleValues.java | /*
*
*/
package com.cedarsoftware.util.io;
import static org.junit.Assert.assertEquals;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
/**
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* Licensed under the Apache License, Version 2.0 (th... | 3,858 | 26.176056 | 117 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestLenientNanInfinity.java | package com.cedarsoftware.util.io;
import org.junit.AfterClass;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
import org.junit.BeforeClass;
/**
* @author John DeRegnaucourt ([email protected])
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* Licensed und... | 3,477 | 28.726496 | 83 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestGsonNotHandleMapWithNonStringKeysButJsonIoCan.java | package com.cedarsoftware.util.io;
import com.google.gson.Gson;
import org.junit.Test;
import java.awt.*;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* @author John DeRegnaucourt ([email protected])
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* Licensed unde... | 2,358 | 37.672131 | 122 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestGsonNotHandleStaticInnerButJsonIoCan.java | package com.cedarsoftware.util.io;
import com.google.gson.Gson;
import org.junit.Test;
import static org.junit.Assert.assertTrue;
/**
* @author John DeRegnaucourt ([email protected])
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* Licensed under the Apache License, Version ... | 1,876 | 27.014925 | 83 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestEmptyEnumSetOnJDK17.java | package com.cedarsoftware.util.io;
import com.google.gson.Gson;
import org.junit.Test;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.Map;
/**
* @author John DeRegnaucourt ([email protected])
* <br>
* Copyright (c) Cedar Software LLC
* <br><br... | 1,597 | 27.035088 | 83 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestEmptyListForJdk17.java | package com.cedarsoftware.util.io;
import java.util.Collections;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
/**
* @author John DeRegnaucourt ([email protected])
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* Licensed under the Apache License, Ve... | 1,304 | 31.625 | 83 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestGsonNotHandleCycleButJsonIoCan.java | package com.cedarsoftware.util.io;
import com.google.gson.Gson;
import org.junit.Test;
import static org.junit.Assert.fail;
/**
* @author John DeRegnaucourt ([email protected])
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* Licensed under the Apache License, Version 2.0 (t... | 1,919 | 27.235294 | 83 | java |
json-io | json-io-master/src/test/java/com/cedarsoftware/util/io/TestGsonNotHandleHeteroCollections.java | package com.cedarsoftware.util.io;
import com.google.gson.Gson;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import static junit.framework.TestCase.fail;
/**
* @author John DeRegnaucourt ([email protected])
* <br>
* Co... | 2,601 | 33.693333 | 97 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/ObjectResolver.java | package com.cedarsoftware.util.io;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.ArrayDeque;
import java.util.Arrays;
import java.util.Collection;
import java.util.Deque;... | 35,413 | 39.380844 | 162 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/JsonReader.java | package com.cedarsoftware.util.io;
import java.io.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.nio.charset.StandardCharsets;
import java.sql.Timestamp;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concu... | 30,820 | 36.26844 | 160 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/JsonIoException.java | package com.cedarsoftware.util.io;
/**
* Custom RuntimeException subclass that is used as the main exception thrown by
* json-io.
*
* @author John DeRegnaucourt ([email protected])
* <br>
* Copyright (c) Cedar Software LLC
* <br><br>
* Licensed under the Apache License, Version 2... | 3,151 | 36.975904 | 83 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/Writers.java | package com.cedarsoftware.util.io;
import java.io.IOException;
import java.io.Writer;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.text.Format;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Locale;
import java.u... | 13,917 | 33.19656 | 121 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/FastPushbackBufferedReader.java | package com.cedarsoftware.util.io;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
/**
* This class adds significant performance increase over using the JDK
* PushbackReader. This is due to this class not using synchronization
* as it is not needed.
*/
public class FastPushbackB... | 2,339 | 17.870968 | 92 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/Readers.java | package com.cedarsoftware.util.io;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Date;
import java.util.Deque;
import java.util.LinkedHashMap;
import java.util.Locale;
import java.util.Map;
import java.util.TimeZone;
import java.util.UU... | 32,398 | 36.283084 | 182 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/JsonParser.java | package com.cedarsoftware.util.io;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import static com.cedarsoftware.util.io.JsonObject.*;
/**
* Parse the JSON input stream supplied by the FastPushbackReader to the constructor.
* The enti... | 19,054 | 32.488576 | 119 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/JsonWriter.java | package com.cedarsoftware.util.io;
import java.io.*;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.*;
import java.util.Map.Entry;
import java.util.concurrent.atomic... | 82,131 | 32.550654 | 210 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/JsonObject.java | package com.cedarsoftware.util.io;
import java.lang.reflect.Array;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
/**
* This class holds a JSON object in a LinkedHashMap.
* LinkedHashMap used to keep fields in... | 9,622 | 24.86828 | 145 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/MapResolver.java | package com.cedarsoftware.util.io;
import java.lang.reflect.Field;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import java.util.Deque;
import java.util.List;
import java.util.Map;
/**
* <p>The MapResolver converts the raw Maps created from the JsonPars... | 9,379 | 43.037559 | 161 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/FastPushbackReader.java | package com.cedarsoftware.util.io;
import java.io.Closeable;
import java.io.IOException;
public interface FastPushbackReader extends Closeable {
int getCol();
int getLine();
void unread(int c) throws IOException;
int read() throws IOException;
String getLastSnippet();
}
| 298 | 15.611111 | 55 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/MetaUtils.java | package com.cedarsoftware.util.io;
import java.lang.reflect.*;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.net.MalformedURLException;
import java.net.URL;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.*;
import java.util.concurrent.ConcurrentHashMap;
import ja... | 39,442 | 35.759553 | 147 | java |
json-io | json-io-master/src/main/java/com/cedarsoftware/util/io/Resolver.java | package com.cedarsoftware.util.io;
import com.cedarsoftware.util.io.JsonReader.MissingFieldHandler;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.util.*;
import static com.cedarsoftware.util.io.JsonObject.ITEMS;
import static com.cedarsoftware.util.io.JsonObject.KEYS;
/**
* This class... | 25,669 | 36.861357 | 161 | java |
nominatim-java-api | nominatim-java-api-master/src/test/java/fr/dudie/nominatim/client/JsonNominatimClientTest.java | package fr.dudie.nominatim.client;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eith... | 14,024 | 36.300532 | 165 | java |
nominatim-java-api | nominatim-java-api-master/src/test/java/fr/dudie/nominatim/client/request/NominatimSearchRequestTest.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 3,770 | 32.669643 | 136 | java |
nominatim-java-api | nominatim-java-api-master/src/test/java/fr/dudie/nominatim/client/request/NominatimLookupRequestTest.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 2,649 | 28.775281 | 95 | java |
nominatim-java-api | nominatim-java-api-master/src/test/java/fr/dudie/nominatim/client/request/NominatimReverseRequestTest.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 2,894 | 33.879518 | 112 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/NominatimResponseHandler.java | package fr.dudie.nominatim.client;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eith... | 2,835 | 29.494624 | 124 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/JsonNominatimClient.java | package fr.dudie.nominatim.client;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eith... | 11,525 | 35.359621 | 136 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/NominatimOptions.java | package fr.dudie.nominatim.client;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eith... | 3,963 | 25.965986 | 76 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/NominatimClient.java | package fr.dudie.nominatim.client;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eith... | 5,463 | 31.718563 | 123 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/ReverseQuery.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 991 | 29.060606 | 71 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/SearchQuery.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 1,413 | 32.666667 | 119 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/LookupQuery.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 975 | 27.705882 | 71 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/CoordinatesReverseQuery.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 2,654 | 26.371134 | 121 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/OsmTypeAndIdLookupQuery.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 1,994 | 27.913043 | 121 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/NominatimLookupRequest.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 3,408 | 29.168142 | 121 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/OsmTypeAndIdReverseQuery.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 2,279 | 24.054945 | 121 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/ExtendedSearchQuery.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 3,372 | 21.045752 | 121 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/QueryParameterAnnotationHandler.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 5,644 | 33.845679 | 122 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/NominatimSearchRequest.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 11,457 | 29.636364 | 121 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/NominatimRequest.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 1,602 | 31.06 | 114 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/NominatimReverseRequest.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 4,263 | 29.457143 | 121 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/SimpleSearchQuery.java | package fr.dudie.nominatim.client.request;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundati... | 1,619 | 25.129032 | 71 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/QueryParameter.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 2,134 | 29.942029 | 114 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/QueryParameterSerializer.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 1,214 | 28.634146 | 71 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/DoubleSerializer.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 1,396 | 31.488372 | 107 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/BooleanSerializer.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 1,482 | 29.895833 | 107 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/BoundingBoxSerializer.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 2,041 | 34.206897 | 107 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/ListSerializer.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 1,729 | 29.350877 | 107 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/ToStringSerializer.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 1,609 | 31.857143 | 107 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/PolygonFormat.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 1,644 | 25.111111 | 71 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/client/request/paramhelper/OsmType.java | package fr.dudie.nominatim.client.request.paramhelper;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Softw... | 1,911 | 24.837838 | 86 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/gson/ArrayOfPolygonPointsDeserializer.java | package fr.dudie.nominatim.gson;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either... | 2,713 | 29.840909 | 97 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/gson/PolygonPointDeserializer.java | package fr.dudie.nominatim.gson;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either... | 2,453 | 29.296296 | 97 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/gson/BoundingBoxDeserializer.java | package fr.dudie.nominatim.gson;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either... | 2,710 | 30.523256 | 96 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/gson/ArrayOfAddressElementsDeserializer.java | package fr.dudie.nominatim.gson;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either... | 2,933 | 30.891304 | 98 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/model/BoundingBox.java | package fr.dudie.nominatim.model;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eithe... | 4,124 | 17.415179 | 71 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/model/Element.java | package fr.dudie.nominatim.model;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eithe... | 2,673 | 22.875 | 94 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/model/PolygonPoint.java | package fr.dudie.nominatim.model;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eithe... | 2,634 | 20.25 | 71 | java |
nominatim-java-api | nominatim-java-api-master/src/main/java/fr/dudie/nominatim/model/Address.java | package fr.dudie.nominatim.model;
/*
* [license]
* Nominatim Java API client
* ~~~~
* Copyright (C) 2010 - 2014 Dudie
* ~~~~
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, eithe... | 12,257 | 21.784387 | 99 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.