<commit_before>/*	opendatacon
 *
 *	Copyright (c) 2014:
 *
 *		DCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi
 *		yxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA==
 *
 *	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 in writing, software
 *	distributed under the License is distributed on an "AS IS" BASIS,
 *	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *	See the License for the specific language governing permissions and
 *	limitations under the License.
 */
//
//  main.cpp
//  opendatacon
//
//  Created by <NAME> on 30/11/2014.
//
//

#include "WebUI.h"

extern "C" WebUI* new_WebUIPlugin(const std::string& Name, const std::string& File, const Json::Value& Overrides)
{
	std::string ip = "0.0.0.0";
	uint16_t port = 443;
	std::string web_root = "";
	std::string tcp_port = "";
	if(Overrides.isObject())
	{
		if(Overrides.isMember("IP"))
			ip= Overrides["IP"].asString();

		if(Overrides.isMember("Port"))
			port = Overrides["Port"].asUInt();

		if (Overrides.isMember("WebRoot"))
			web_root = Overrides["WebRoot"].asString();
		if (Overrides.isMember("TCP"))
			tcp_port = Overrides["TCP"]["Port"].asString();
	}

	return new WebUI(port, web_root, tcp_port);
}

extern "C" void delete_WebUIPlugin(WebUI* aIUI_ptr)
{
	delete aIUI_ptr;
	return;
}
<commit_msg>Renamed TCP / Port -> LogPort, which makes more sense in the conf<commit_after>/*	opendatacon
 *
 *	Copyright (c) 2014:
 *
 *		DCrip3fJguWgVCLrZFfA7sIGgvx1Ou3fHfCxnrz4svAi
 *		yxeOtDhDCXf1Z4ApgXvX5ahqQmzRfJ2DoX8S05SqHA==
 *
 *	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 in writing, software
 *	distributed under the License is distributed on an "AS IS" BASIS,
 *	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *	See the License for the specific language governing permissions and
 *	limitations under the License.
 */
//
//  main.cpp
//  opendatacon
//
//  Created by <NAME> on 30/11/2014.
//
//

#include "WebUI.h"

extern "C" WebUI* new_WebUIPlugin(const std::string& Name, const std::string& File, const Json::Value& Overrides)
{
	std::string ip = "0.0.0.0";
	uint16_t port = 443;
	std::string web_root = "";
	std::string tcp_port = "";
	if(Overrides.isObject())
	{
		if(Overrides.isMember("IP"))
			ip= Overrides["IP"].asString();

		if(Overrides.isMember("Port"))
			port = Overrides["Port"].asUInt();

		if (Overrides.isMember("WebRoot"))
			web_root = Overrides["WebRoot"].asString();
		if (Overrides.isMember("LogPort"))
			tcp_port = Overrides["LogPort"].asString();
	}

	return new WebUI(port, web_root, tcp_port);
}

extern "C" void delete_WebUIPlugin(WebUI* aIUI_ptr)
{
	delete aIUI_ptr;
	return;
}

{'fraction_non_alphanumeric': 0.13380736910148675, 'fraction_numerical': 0.023917259211376857, 'mean_word_length': 4.219224283305228, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, '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': '4759015', 'n_tokens_mistral': 1215, 'n_tokens_neox': 1163, 'n_words': 298}