<commit_before>#!/usr/bin/env node

// send new nodifier notifications to system notification-daemon
var nodifierConnect = require('nodifier_connect');
var socket = new nodifierConnect();

socket.on('newNotification', function(data) {
    var title = "";
    if(data.source) {
        title += data.source;
    }
    if(data.context) {
        if(data.source)
            title += ' ';
        title += '(' + data.context + ')';
    }

    launchDetached('notify-send', [title, data.text]);
    launchDetached('paplay', ['/usr/share/sounds/freedesktop/stereo/message.oga']);
});

var spawn = require('child_process').spawn;
var launchDetached = function(program, args) {
    var child = spawn(program, args, {
        detached: true,
    });
    child.unref();
};
<commit_msg>show notification id in desktop notifications<commit_after>#!/usr/bin/env node

// send new nodifier notifications to system notification-daemon
var nodifierConnect = require('nodifier_connect');
var socket = new nodifierConnect();

socket.on('newNotification', function(data) {
    var title = '';

    if(data.unreadID) {
        title += '#' + data.unreadID +': ';
    }
    if(data.source) {
        title += data.source;
    }
    if(data.context) {
        if(data.source)
            title += ' ';
        title += '(' + data.context + ')';
    }

    launchDetached('notify-send', [title, data.text]);
    launchDetached('paplay', ['/usr/share/sounds/freedesktop/stereo/message.oga']);
});

var spawn = require('child_process').spawn;
var launchDetached = function(program, args) {
    var child = spawn(program, args, {
        detached: true,
    });
    child.unref();
};

{'fraction_non_alphanumeric': 0.1621458710066305, 'fraction_numerical': 0.0, 'mean_word_length': 3.0987654320987654, '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': '1060628', 'n_tokens_mistral': 528, 'n_tokens_neox': 513, 'n_words': 102}