<commit_before>'use strict';

var cache = new LastFMCache();

/* Create a LastFM object: keys defined in config.js */
var lastfm = new LastFM({
    apiKey        : apiKey,
    apiSecret : apiSecret,
    cache         : cache
});

var events, node, contentnode = $(document.body).find('.row');

var util = {
    getEventObject: function (event) {
        if (event.artists.artist) {
            $(node.find('p')[0]).append(
                '<a href = "' + event.url + '">'
                + [].concat(event.artists.artist).join(', ')
                + '</a>'
                + '<br>');
            debugger;
            return {
                eventid: event.id,
                artists: event.artists,
                venueid: event.venue.id,
                venuelabel: event.venue.name + event.venue.location.postalcode + event.venue.location.city,
                venuecity: event.venue.location.city,
                date: event.startDate,
                day: event.startDate, //mapping wochentag
                attendance: event.attendance,
                attendees: '' //event.getAttendees
            }
        }
        return {};
    },

    getNode: function () {
        //return $('<div class="span4"><h2>Heading</h2><p></p><p><a class="btn" href="#">View details &raquo;</a></p></div>')
        return $('<div class="span4"><h2>Heading</h2><p></p></div>')
    },

    getDefaultVenues: function () {
        return {<commit_msg>added date of event to view<commit_after>'use strict';

var cache = new LastFMCache();

/* Create a LastFM object: keys defined in config.js */
var lastfm = new LastFM({
    apiKey        : apiKey,
    apiSecret : apiSecret,
    cache         : cache
});

var events, node, contentnode = $(document.body).find('.row');

var util = {
    toIso: function (date) {    
        var dd = date.getDate(),
            mm = date.getMonth() + 1,
            yyyy = date.getFullYear();
        //leading zero
        dd = dd < 10 ? '0' + dd : dd;
        mm = mm < 10 ? '0' + mm : mm;
        return yyyy + '-' + mm + '-' + dd;
    },

    getEventObject: function (event) {
        if (event.artists.artist) {
            $(node.find('p')[0]).append(
                util.toIso(new Date(event.startDate))
                + ': '
                + '<a href = "' + event.url + '">'
                + [].concat(event.artists.artist).join(', ')
                + '</a>'
                + '<br>');

            return {
                eventid: event.id,
                artists: event.artists,
                venueid: event.venue.id,
                venuelabel: event.venue.name + event.venue.location.postalcode + event.venue.location.city,
                venuecity: event.venue.location.city,
                date: event.startDate,
                day: event.startDate, //mapping wochentag
                attendance: event.attendance,
                attendees: '' //event.getAttendees
            }
        }
        return {};
    },

    getNode: function () {
        //return $('<div class="span4"><h2>Heading</h2><p></p><p><a class="btn" href="#">View details &raquo;</a></p></div>')
        return $('<div class="span4"><h2>Heading</h2><p></p></div>')
    },

    getDefaultVenues: function () {
        return {
{'fraction_non_alphanumeric': 0.16251920122887864, 'fraction_numerical': 0.0064516129032258064, 'mean_word_length': 1.675431388660641, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 41, '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': '590053', 'n_tokens_mistral': 1020, 'n_tokens_neox': 976, 'n_words': 201}