<commit_before>
"use strict";

var protobufjs = require('protobufjs');
var fs = require('fs');
var path = require('path');

var map = {
    0: 'Version',
    1: 'UDPTunnel',
    2: 'Authenticate',
    3: 'Ping',
    4: 'Reject',
    5: 'ServerSync',
    6: 'ChannelRemove',
    7: 'ChannelState',
    8: 'UserRemove',
    9: 'UserState',
    10: 'BanList',
    11: 'TextMessage',
    12: 'PermissionDenied',
    13: 'ACL',
    14: 'QueryUsers',
    15: 'CryptSetup',
    16: 'ContextActionModify',
    17: 'ContextAction',
    18: 'UserList',
    19: 'VoiceTarget',
    20: 'PermissionQuery',
    21: 'CodecVersion',
    22: 'UserStats',
    23: 'RequestBlob',
    24: 'ServerConfig',
    25: 'SuggestConfig'
};

var builder = protobufjs.loadProtoFile(path.join(__dirname, mumble.proto));
var mumble = builder.build('MumbleProto');
var messages = {};
var context = {schema: mumble};

module.exports.buildPacket = function (type, payload) {
    return new context.schema[type](payload || {})
}

module.exports.decodePacket = function (type_id, payload) {
    var type = map[type_id]
    return new context.schema[type].decode(payload || {})
}

module.exports.idByName = {};
module.exports.nameById = {};
<commit_msg>use Mumbe.proto filename<commit_after>
"use strict";

var protobufjs = require('protobufjs');
var fs = require('fs');
var path = require('path');

var map = {
    0: 'Version',
    1: 'UDPTunnel',
    2: 'Authenticate',
    3: 'Ping',
    4: 'Reject',
    5: 'ServerSync',
    6: 'ChannelRemove',
    7: 'ChannelState',
    8: 'UserRemove',
    9: 'UserState',
    10: 'BanList',
    11: 'TextMessage',
    12: 'PermissionDenied',
    13: 'ACL',
    14: 'QueryUsers',
    15: 'CryptSetup',
    16: 'ContextActionModify',
    17: 'ContextAction',
    18: 'UserList',
    19: 'VoiceTarget',
    20: 'PermissionQuery',
    21: 'CodecVersion',
    22: 'UserStats',
    23: 'RequestBlob',
    24: 'ServerConfig',
    25: 'SuggestConfig'
};

var builder = protobufjs.loadProtoFile(path.join(__dirname, 'Mumble.proto'));
var mumble = builder.build('MumbleProto');
var messages = {};
var context = {schema: mumble};

module.exports.buildPacket = function (type, payload) {
    return new context.schema[type](payload || {})
}

module.exports.decodePacket = function (type_id, payload) {
    var type = map[type_id]
    return new context.schema[type].decode(payload || {})
}

module.exports.idByName = {};
module.exports.nameById = {};

{'fraction_non_alphanumeric': 0.1706917724109701, 'fraction_numerical': 0.034383954154727794, 'mean_word_length': 3.6463878326996197, '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': '1743883', 'n_tokens_mistral': 867, 'n_tokens_neox': 834, 'n_words': 198}