<commit_before>'use strict'

document.addEventListener('mousedown', event => {

    if (event.target.classList.contains('header') && event.button == 0) {

        const nodeObject = node[ event.target.ref ];
        new Draggable(event, nodeObject.nodeElement, nodeObject, () => { nodeObject.update() });

    } else if (event.target.classList.contains('snapDock')) {

        const dockObject = dock[ event.target.ref ];
        new Linkable(event, dockObject);

    } else if (event.target.classList.contains('objects') && event.button == 2) {

        new Draggable(event, event.target, Canvas);

    } else if (event.target.tagName == 'path') {

        _(event.target.id);

    } else {

        _(event.target)

    }

});<commit_msg>linking nodes is done by dragging left mouse click (was not specified)<commit_after>'use strict'

document.addEventListener('mousedown', event => {

    if (event.target.classList.contains('header') && event.button == 0) {

        const nodeObject = node[ event.target.ref ];
        new Draggable(event, nodeObject.nodeElement, nodeObject, () => { nodeObject.update() });

    } else if (event.target.classList.contains('snapDock') && event.button == 0) {

        const dockObject = dock[ event.target.ref ];
        new Linkable(event, dockObject);

    } else if (event.target.classList.contains('objects') && event.button == 2) {

        new Draggable(event, event.target, Canvas);

    } else if (event.target.tagName == 'path') {

        _(event.target.id);

    } else {

        _(event.target)

    }

});
{'fraction_non_alphanumeric': 0.15468549422336328, 'fraction_numerical': 0.003209242618741977, 'mean_word_length': 3.0284237726098193, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6058634', 'n_tokens_mistral': 482, 'n_tokens_neox': 455, 'n_words': 99}