<commit_before>/*:
@plugindesc accacc server
@author wayabi.software
*/


function AccAcc() {
    this.hz = 0.0;
    this.power = 0.0;
    this.power_last = 0.0;
    this.x_power = 0.0;
    this.y_power = 0.0;
    this.z_power = 0.0;
    this.time_last = new Date().getTime();

    this.address_server = "";
    this.port_server = 0;

    var server = null;
    var clients = null;

    AccAcc.prototype.start_server = function (address, port) {
        if (server != null) return;
        if (address == null || address.length == 0) {
            address = getLocalAddress().ipv4[0].address;
        }
        
        this.address_server = address;
        this.port_server = port;
        var net = require('net');

        server = net.createServer();
        server.maxConnections = 1;

        function Client(socket) {
            this.socket = socket;
        }
        Client.prototype.writeData = function (d) {
            var socket = this.socket;
            //socket.remoteAddress
            //socket.remotePort
            if (socket.writable) {<commit_msg>delete a line not use<commit_after>/*:
@plugindesc accacc server
@author wayabi.software
*/


function AccAcc() {
    this.hz = 0.0;
    this.power = 0.0;
    this.power_last = 0.0;
    this.x_power = 0.0;
    this.y_power = 0.0;
    this.z_power = 0.0;

    this.address_server = "";
    this.port_server = 0;

    var server = null;
    var clients = null;

    AccAcc.prototype.start_server = function (address, port) {
        if (server != null) return;
        if (address == null || address.length == 0) {
            address = getLocalAddress().ipv4[0].address;
        }
        
        this.address_server = address;
        this.port_server = port;
        var net = require('net');

        server = net.createServer();
        server.maxConnections = 1;

        function Client(socket) {
            this.socket = socket;
        }
        Client.prototype.writeData = function (d) {
            var socket = this.socket;
            //socket.remoteAddress
            //socket.remotePort
            if (socket.writable) {
{'fraction_non_alphanumeric': 0.1241117953576504, 'fraction_numerical': 0.016106110847939364, 'mean_word_length': 1.8813096862210095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3775212', 'n_tokens_mistral': 677, 'n_tokens_neox': 646, 'n_words': 145}