<commit_before>$(function() {
    function setAgendaCount(){
        var count = $('#agenda-count-hidden').val() || MapasCulturais.gettext.agendaSingles['none'];
        $('#agenda-count').text(count);
        $('#agenda-count-plural').css('display', count == 1 || count == MapasCulturais.gettext.agendaSingles['none'] ? 'none' : 'inline');
    }

    function formatDate(date){
        return date.split('/').reverse().join('-');
    }

    function setSpreadsheetUrl(){
        var apiExportURL = MapasCulturais.baseURL + 'api/';
        var selectData = MapasCulturais.searchQueryFields;
        var entity = 'event';
        var dateFrom = formatDate($('#agenda-from-visible').val());
        var dateTo = formatDate($('#agenda-to-visible').val());
        var searchData = {};
        var action = 'findByLocation';
        var Description = MapasCulturais.EntitiesDescription[entity];
        var querystring = '';
        var exportSelect = ['singleUrl,type,terms'];
        var dontExportSelect = {
            user: true,
            publicLocation: true,
            status: true
        }

        //event listener para mudança nos campos de data
        $('#agenda-from-visible, #agenda-to-visible').on('change', function(){
            setSpreadsheetUrl();
        });

        //agente(owner), espaço ou projeto
        var entityToFilter;

        if(MapasCulturais.entity.object.controllerId === 'space' || MapasCulturais.entity.object.controllerId === 'project'){
            entityToFilter = MapasCulturais.entity.object.controllerId;
        }else{
            entityToFilter = 'owner';
        }

        console.log(entityToFilter);
        //itens referentes aos eventos
        selectData += ',classificacaoEtaria,project.name,project.singleUrl,occurrences.{*,space.{*}}';
        searchData['@from'] = dateFrom;
        searchData['@to'] = dateTo;
        searchData[entityToFilter] = 'EQ('+MapasCulturais.entity.id+')';
        searchData['@select'] = 'id,name,location';
        searchData['@order'] = 'name ASC';
        Object.keys(Description).forEach(function(prop) {
            if(prop[0] == '_'){
                return;<commit_msg>remocao de console log<commit_after>$(function() {
    function setAgendaCount(){
        var count = $('#agenda-count-hidden').val() || MapasCulturais.gettext.agendaSingles['none'];
        $('#agenda-count').text(count);
        $('#agenda-count-plural').css('display', count == 1 || count == MapasCulturais.gettext.agendaSingles['none'] ? 'none' : 'inline');
    }

    function formatDate(date){
        return date.split('/').reverse().join('-');
    }

    function setSpreadsheetUrl(){
        var apiExportURL = MapasCulturais.baseURL + 'api/';
        var selectData = MapasCulturais.searchQueryFields;
        var entity = 'event';
        var dateFrom = formatDate($('#agenda-from-visible').val());
        var dateTo = formatDate($('#agenda-to-visible').val());
        var searchData = {};
        var action = 'findByLocation';
        var Description = MapasCulturais.EntitiesDescription[entity];
        var querystring = '';
        var exportSelect = ['singleUrl,type,terms'];
        var dontExportSelect = {
            user: true,
            publicLocation: true,
            status: true
        }

        //event listener para mudança nos campos de data
        $('#agenda-from-visible, #agenda-to-visible').on('change', function(){
            setSpreadsheetUrl();
        });

        //agente(owner), espaço ou projeto
        var entityToFilter;

        if(MapasCulturais.entity.object.controllerId === 'space' || MapasCulturais.entity.object.controllerId === 'project'){
            entityToFilter = MapasCulturais.entity.object.controllerId;
        }else{
            entityToFilter = 'owner';
        }
        
        //itens referentes aos eventos
        selectData += ',classificacaoEtaria,project.name,project.singleUrl,occurrences.{*,space.{*}}';
        searchData['@from'] = dateFrom;
        searchData['@to'] = dateTo;
        searchData[entityToFilter] = 'EQ('+MapasCulturais.entity.id+')';
        searchData['@select'] = 'id,name,location';
        searchData['@order'] = 'name ASC';
        Object.keys(Description).forEach(function(prop) {
            if(prop[0] == '_'){
                return;
{'fraction_non_alphanumeric': 0.15498839907192574, 'fraction_numerical': 0.0009280742459396752, 'mean_word_length': 2.628787878787879, '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': '1697515', 'n_tokens_mistral': 1263, 'n_tokens_neox': 1262, 'n_words': 213}