<commit_before>/**
 * ArcadeBoy by <NAME> (MIT) 2014
 *
 * frontend.js
 * -----------
 * Logic for the arcade display.
 * This involves animations and input.
 */

var launching = false;

// slide gameshows to the left
function moveLeft() {
    if (launching) { return; }

    var left = $('.gameshow.left').last()
    // if there is any games on the left
    if (left[0]) {
        // move the original featured game over
        $('.gameshow.featured')
            .removeClass("featured")
            .addClass("right")

        left
            .removeClass("left")
            .addClass("featured")
    }

    hideOthers();
}

// slide gameshows to right
function moveRight() {
    if (launching) { return; }

    var right = $('.gameshow.right').first()
    // if there is any games on the left
    if (right[0]) {
        // move the original featured game over
        $('.gameshow.featured')
            .removeClass("featured")
            .addClass("left")

        right
            .removeClass("right")
            .addClass("featured")
    }

    hideOthers();
}

function setCategory(name) {
    if (!name || name.length == 0) {
        $("#category")
            .addClass("hidden")<commit_msg>Games wrap around<commit_after>/**
 * ArcadeBoy by <NAME> (MIT) 2014
 *
 * frontend.js
 * -----------
 * Logic for the arcade display.
 * This involves animations and input.
 */

var launching = false;

// slide gameshows to the left
function moveLeft() {
    if (launching) { return; }

    var left = $('.gameshow.left').last()
    // if there is any games on the left
    if (left[0]) {
        // move the original featured game over
        $('.gameshow.featured')
            .removeClass("featured")
            .addClass("right")

        left
            .removeClass("left")
            .addClass("featured")
    } else {
        $('.gameshow')
            .removeClass("featured")
            .removeClass("right")
            .addClass("left")
        .last()
            .addClass("featured")
            .removeClass("left")
    }

    hideOthers();
}

// slide gameshows to right
function moveRight() {
    if (launching) { return; }

    var right = $('.gameshow.right').first()
    // if there is any games on the left
    if (right[0]) {
        // move the original featured game over
        $('.gameshow.featured')
            .removeClass("featured")
            .addClass("left")

        right
            .removeClass("right")
            .addClass("featured")
    } else {
        $('.gameshow')
            .removeClass("featured")
            .removeClass("left")
            .addClass("right")
        .first()
            .addClass("featured")
            .removeClass("right")
    }

    hideOthers();
}

function setCategory(name) {
    if (!name || name.length == 0) {
        $("#category")
            .addClass("hidden")
{'fraction_non_alphanumeric': 0.15143056524773202, 'fraction_numerical': 0.004884856943475227, 'mean_word_length': 1.8080313418217433, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1426791', 'n_tokens_mistral': 836, 'n_tokens_neox': 799, 'n_words': 215}