<commit_before>(function () {
    "use strict";
    // Initialise Vue variable
    var gallery;

    gallery = new Vue({
        // Attach the Vue object to the master parent called #gallery
        // Gallery will include all the photos and the photo gallery itself
        el: "#gallery",

        data: {
            // Toggle photo gallery visibility
            isVisible: false,
            // Current photo title
            title: '',
            // Current image src
            image: '',
            // Next and Previous object
            // from the current photo selected
            next: null,
            previous: null
        },

        methods: {
            // When click on an anchor of image this will triggered
            viewImage: function () {
                // TODO: This seems utter bullshit, refactor this pls
                this.next = event.target.parentNode.nextElementSibling;
                this.previous = event.target.parentNode.previousElementSibling;
                this.title = event.target.parentNode.getAttribute("data-title");
                this.image = event.target.parentNode.getAttribute("data-original");
                // Show the gallery itself
                this.isVisible = !this.isVisible;
                event.preventDefault();
            },
            // Close the gallery
            closeGallery: function (event) {
                this.isVisible = false;
                this.title = '';<commit_msg>Fixed firefox bug<commit_after>(function () {
    "use strict";
    // Initialise Vue variable
    var gallery;

    gallery = new Vue({
        // Attach the Vue object to the master parent called #gallery
        // Gallery will include all the photos and the photo gallery itself
        el: "#gallery",

        data: {
            // Toggle photo gallery visibility
            isVisible: false,
            // Current photo title
            title: '',
            // Current image src
            image: '',
            // Next and Previous object
            // from the current photo selected
            next: null,
            previous: null
        },

        methods: {
            // When click on an anchor of image this will triggered
            viewImage: function (event) {
                // TODO: This seems utter bullshit, refactor this pls
                this.next = event.target.parentNode.nextElementSibling;
                this.previous = event.target.parentNode.previousElementSibling;
                this.title = event.target.parentNode.getAttribute("data-title");
                this.image = event.target.parentNode.getAttribute("data-original");
                // Show the gallery itself
                this.isVisible = !this.isVisible;
                event.preventDefault();
            },
            // Close the gallery
            closeGallery: function (event) {
                this.isVisible = false;
                this.title = '';
{'fraction_non_alphanumeric': 0.08545269582909461, 'fraction_numerical': 0.0, 'mean_word_length': 1.485256950294861, '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': '3163450', 'n_tokens_mistral': 676, 'n_tokens_neox': 660, 'n_words': 217}