<commit_before><script>
    $(document).ready(function () {
        function myImgToolbarCustInit(elementName) {
                return '';
        }
        function setHit($elements, item, data) {
            var filename = item.src.substring(item.src.lastIndexOf('/')+1);
        }
        $("#nanoAlbum").nanoGallery({
            thumbnailWidth: 'auto', 
            thumbnailHeight: 180,
            items: [
                <?php foreach ($photo as $value): ?>{
                        src: '<?= base_url() ?>img/user/<?= $user[0]->login ?>/<?= $album[0]->id ?>/<?= $value->name ?>_wm<?= $value->extension ?>',
                        srct: '<?= base_url() ?>img/user/<?= $user[0]->login ?>/<?= $album[0]->id ?>/<?= $value->name ?>_thumb<?= $value->extension ?>',
                        title: '<?= $album[0]->name ?>',
                        description: '<?= $value->text ?>'
                    }<?php echo end($photo) == $value ? '' : ','; ?>
                <?php endforeach; ?>
                    ],
            thumbnailHoverEffect: 'scale120,borderLighter',
            viewerToolbar: {
                autoMinimize: 0,
                standard: 'closeButton,previousButton,nextButton,label,custom1'
            },
            thumbnailLabel: {
            display: false
            },<commit_msg>ajax for hits<commit_after><script>
    $(document).ready(function () {
        function myImgToolbarCustInit(elementName) {
                return '';
        }
        function setHit($elements, item, data) {
            var filename = item.src.substring(item.src.lastIndexOf('/')+1);
            $.post( "<?= base_url() ?>hits/", { album: <?= $album[0]->id ?>, photo: filename } );
        }
        $("#nanoAlbum").nanoGallery({
            thumbnailWidth: 'auto', 
            thumbnailHeight: 180,
            items: [
                <?php foreach ($photo as $value): ?>{
                        src: '<?= base_url() ?>img/user/<?= $user[0]->login ?>/<?= $album[0]->id ?>/<?= $value->name ?>_wm<?= $value->extension ?>',
                        srct: '<?= base_url() ?>img/user/<?= $user[0]->login ?>/<?= $album[0]->id ?>/<?= $value->name ?>_thumb<?= $value->extension ?>',
                        title: '<?= $album[0]->name ?>',
                        description: '<?= $value->text ?>'
                    }<?php echo end($photo) == $value ? '' : ','; ?>
                <?php endforeach; ?>
                    ],
            thumbnailHoverEffect: 'scale120,borderLighter',
            viewerToolbar: {
                autoMinimize: 0,
                standard: 'closeButton,previousButton,nextButton,label,custom1'
            },
            thumbnailLabel: {
            display: false
            },
{'fraction_non_alphanumeric': 0.1901098901098901, 'fraction_numerical': 0.010622710622710623, 'mean_word_length': 1.659201557935735, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 58, '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': '2479769', 'n_tokens_mistral': 800, 'n_tokens_neox': 765, 'n_words': 127}