<commit_before>/*
 * rpcserver.cpp
 *
 *  Created on: 28. 2. 2017
 *      Author: ondra
 */

#include  <condition_variable>
#include <mutex>
#include "rpc.h"

#include "array.h"
#include "object.h"
#include "operations.h"
#include "validator.h"
#include "fnv.h"
namespace json {




RpcRequest::ParseRequest::ParseRequest(const Value & request) {

	methodName = request["method"];
	params = request["params"];
	context = request["context"];
	id = request["id"];
	version = request["version"];


}

RpcRequest::ParseRequest::ParseRequest(const Value &methodName, const Value &params, const Value &id, const Value &context, const Value &version)
	:methodName(methodName)
	,params(params)
	,id(id)
	,context(context)<commit_msg>fixed incorrect named version field<commit_after>/*
 * rpcserver.cpp
 *
 *  Created on: 28. 2. 2017
 *      Author: ondra
 */

#include  <condition_variable>
#include <mutex>
#include "rpc.h"

#include "array.h"
#include "object.h"
#include "operations.h"
#include "validator.h"
#include "fnv.h"
namespace json {




RpcRequest::ParseRequest::ParseRequest(const Value & request) {

	methodName = request["method"];
	params = request["params"];
	context = request["context"];
	id = request["id"];
	version = request["jsonrpc"];


}

RpcRequest::ParseRequest::ParseRequest(const Value &methodName, const Value &params, const Value &id, const Value &context, const Value &version)
	:methodName(methodName)
	,params(params)
	,id(id)
	,context(context)
{'fraction_non_alphanumeric': 0.15353260869565216, 'fraction_numerical': 0.009510869565217392, 'mean_word_length': 5.3218884120171674, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5174781', 'n_tokens_mistral': 508, 'n_tokens_neox': 482, 'n_words': 121}