<commit_before>package better.jsonrpc.server;

import better.jsonrpc.annotations.JsonRpcParam;
import better.jsonrpc.core.JsonRpcTransport;
import better.jsonrpc.exceptions.AnnotationsErrorResolver;
import better.jsonrpc.exceptions.DefaultErrorResolver;
import better.jsonrpc.exceptions.ErrorResolver;
import better.jsonrpc.exceptions.MultipleErrorResolver;
import better.jsonrpc.util.ProtocolUtils;
import better.jsonrpc.util.ReflectionUtil;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fasterxml.jackson.databind.type.TypeFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

/**
 * A JSON-RPC server
 *
 * Log levels:
 *
 *   DEBUG will show requests and responses
 *
 */
public class JsonRpcServer {

	protected static final Logger LOG = LoggerFactory.getLogger(JsonRpcServer.class);

    /** Default error resolver */
	public static final ErrorResolver DEFAULT_ERRROR_RESOLVER
		= new MultipleErrorResolver(AnnotationsErrorResolver.INSTANCE, DefaultErrorResolver.INSTANCE);

    /** Protocol interfaces for this server*/
    private Class<?>[] mRemoteInterfaces;

    /** Error resolver to be used */
    private ErrorResolver mErrorResolver = null;

    /** Accept pre-JSON-RPC-2.0 requests */
    private boolean mBackwardsCompatible = true;<commit_msg>Comment<commit_after>package better.jsonrpc.server;

import better.jsonrpc.annotations.JsonRpcParam;
import better.jsonrpc.core.JsonRpcTransport;
import better.jsonrpc.exceptions.AnnotationsErrorResolver;
import better.jsonrpc.exceptions.DefaultErrorResolver;
import better.jsonrpc.exceptions.ErrorResolver;
import better.jsonrpc.exceptions.MultipleErrorResolver;
import better.jsonrpc.util.ProtocolUtils;
import better.jsonrpc.util.ReflectionUtil;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.JavaType;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.NullNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.fasterxml.jackson.databind.type.TypeFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;

/**
 * A JSON-RPC server
 *
 * Log levels:
 *
 *   DEBUG will show requests and responses
 *
 */
public class JsonRpcServer {

	protected static final Logger LOG = LoggerFactory.getLogger(JsonRpcServer.class);

    /** Default error resolver */
	public static final ErrorResolver DEFAULT_ERRROR_RESOLVER
		= new MultipleErrorResolver(AnnotationsErrorResolver.INSTANCE, DefaultErrorResolver.INSTANCE);

    /** Protocol interfaces for this server */
    private Class<?>[] mRemoteInterfaces;

    /** Error resolver to be used */
    private ErrorResolver mErrorResolver = null;

    /** Accept pre-JSON-RPC-2.0 requests */
    private boolean mBackwardsCompatible = true;
{'fraction_non_alphanumeric': 0.09616908850726552, 'fraction_numerical': 0.0021136063408190224, 'mean_word_length': 5.527586206896552, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 16}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '13801', 'n_tokens_mistral': 1143, 'n_tokens_neox': 1055, 'n_words': 225}