<commit_before>﻿define(['requester'], function (httpRequester) {
    var Controller = (function () {
        function Controller(url) {
            this.sourceUrl = url;
        }

        function pausecomp(millis) {
            var date = new Date();
            var curDate = null;

            do {
                curDate = new Date();
            } while (curDate - date < millis);
        }

        function renderAlbums(data) {
            var albums = data;
           
            for (var i = 0; i < albums.length-1; i++) {
                $('#wrapper')
                    .append($('<div/>')
                        .append($('<span/>').text(albums[i].Name))
                        .append($('<button/>')
                            .text('Album')
                            .attr('id', albums[i].id)
                            .on('click', function () {
                                $('#wrapper').empty();
                                
                                var album = albums[i];
                                if (album !== 'undefined') {
                                    var photos = album.Photos;
                                    renderPhotos(photos);
                                }
                            }))
                        .append($('<br/>')));<commit_msg>Fix albums<commit_after>﻿define(['requester'], function (httpRequester) {
    var Controller = (function () {
        function Controller(url) {
            this.sourceUrl = url;
        }

        function pausecomp(millis) {
            var date = new Date();
            var curDate = null;

            do {
                curDate = new Date();
            } while (curDate - date < millis);
        }

        function renderAlbums(data) {
            var albums = data;
           
            for (var i = 0; i < albums.length; i++) {
                $('#wrapper')
                    .append($('<div/>')
                        .append($('<span/>').text(albums[i].Name))
                        .append($('<button/>')
                            .text('Album')
                            .attr('id', i)
                            .on('click', function () {
                                $('#wrapper').empty();
                                $this = $(this);
                                index = $this.attr('id');
                                var album = albums[index];
                                if (album !== 'undefined') {
                                    var photos = album.Photos;
                                    renderPhotos(photos);
                                }
                            }))
                        .append($('<br/>')));
{'fraction_non_alphanumeric': 0.13101406365655072, 'fraction_numerical': 0.0011102886750555144, 'mean_word_length': 0.8288227334235453, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4734913', 'n_tokens_mistral': 630, 'n_tokens_neox': 589, 'n_words': 124}