<commit_before>// check if lcars-no-alt class is on the document body
// if so then disable right click on page
$(function() {
    var $body = $(document.body);
    if ($body.hasClass("lcars-no-alt")) {
        $body.attr("oncontextmenu", "return false");
    }

    document.onmousedown = function(event) {
        if (event.button == 2) {
            return false;
        }
    };
})
<commit_msg>actually add the fastclick handler<commit_after>// check if lcars-no-alt class is on the document body
// if so then disable right click on page
$(function() {
    var $body = $(document.body);
    FastClick.attach($body);
    if ($body.hasClass("lcars-no-alt")) {
        $body.attr("oncontextmenu", "return false");
    }

    document.onmousedown = function(event) {
        if (event.button == 2) {
            return false;
        }
    };
});

{'fraction_non_alphanumeric': 0.14840989399293286, 'fraction_numerical': 0.002355712603062426, 'mean_word_length': 2.4979423868312756, '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': '6298233', 'n_tokens_mistral': 270, 'n_tokens_neox': 260, 'n_words': 73}