<commit_before>﻿# include <Siv3D.hpp>
# include "asc/AscTCPStringClient.hpp"

void Main()
{
	asc::TCPStringClient client;
	client.connect(IPv4::localhost(), 1435);

	while (System::Update())
	{
		if (client.isConnected())
		{
			std::string str = "Hello\n";
			String wstr = L"";

			client.send(str.data(), sizeof(char) * str.length());

			Print(L"Send: ", Widen(str));

			if (client.readLine(wstr))
			{
				Println(L"Receive: ", wstr);
			}
			else
			{
				Println(L"Failed");
				client.disconnect();
			}
		}

		if (client.hasError())
		{
			client.disconnect();

			client.connect(IPv4::localhost(), 1435);
		}
	}
}<commit_msg>Print FrameCount.<commit_after>﻿# include <Siv3D.hpp>
# include "asc/AscTCPStringClient.hpp"

void Main()
{
	asc::TCPStringClient client;
	client.connect(IPv4::localhost(), 1435);

	while (System::Update())
	{
		Println(L"Loop: ", System::FrameCount());

		if (client.isConnected())
		{
			std::string str = "Hello\n";
			String wstr;

			client.send(str.data(), sizeof(char) * str.length());

			Print(L"Send: ", Widen(str));

			if (client.readLine(wstr))
			{
				Println(L"Receive: ", wstr);
			}
			else
			{
				Println(L"Failed");
			}
		}

		if (client.hasError())
		{
			client.disconnect();

			client.connect(IPv4::localhost(), 1435);
		}
	}
}
{'fraction_non_alphanumeric': 0.1945736434108527, 'fraction_numerical': 0.017054263565891473, 'mean_word_length': 3.5618374558303887, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5224390', 'n_tokens_mistral': 597, 'n_tokens_neox': 490, 'n_words': 77}