<commit_before>registerPlugin({
    name: 'SinusForMinecraft',
    version: '1.0',
    description: 'Connect Sinusbot with a BungeeCord or Bukkit Server',
    author: 'Alw3ys <<EMAIL>>',
    vars: {},
    autorun: false
}, function(sinusbot, config) {
    var event = require('event');
    event.on('track', function(trackEvent) {
        var net = require('net');
        var engine = require('engine');
        var conn = net.connect({ host: '127.0.0.1', port: 1234 }, function(err) {
            if (err) engine.log(err);
        });
        
        if (conn) conn.write(JSON.stringify({
            title: trackEvent.title(),
            artist: trackEvent.artist(),
            duration: trackEvent.duration()
        }));
    });
});<commit_msg>more readable code<commit_after>registerPlugin({
    name: 'SinusForMinecraft',
    version: '1.0',
    description: 'Connect Sinusbot with a BungeeCord or Bukkit Server',
    author: 'Alw3ys <<EMAIL>>',
    vars: {},
    autorun: false
}, function(sinusbot, config) {
    var event = require('event');
    event.on('track', function(trackEvent) {
        var net = require('net');
        var engine = require('engine');
        var conn = net.connect({ host: '127.0.0.1', port: 1234 }, function(err) {
            if (err) engine.log(err);
        });
        
        if (conn) {
            var trackInfo = { title:trackEvent.title(), artist:trackEvent.artist(), duration:trackEvent.duration() };
            conn.write(JSON.stringify(trackInfo));
        }
    });
});
{'fraction_non_alphanumeric': 0.16, 'fraction_numerical': 0.017049180327868854, 'mean_word_length': 2.5324074074074074, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '3841265', 'n_tokens_mistral': 478, 'n_tokens_neox': 470, 'n_words': 107}