<commit_before>/*
 * <NAME>
 * 2016 Labhacker
 */

SERVER = "http://comidaimigrante.labhacker.org.br"

// Initialize your app
var Frm7 = new Framework7({
   //swipePanel: 'left'
   fastClicks: false,
   modalTemplate: $('#popover-template').html(),
   template7Pages: true,
});
// Export selectors engine
var $$ = Dom7;

// Add view
var mainView = Frm7.addView('.view-main', {
    // Because we use fixed-through navbar we can enable dynamic navbar
    //dynamicNavbar: true
    domCache: true, // enable inline pages
});

// Callbacks to run specific code for specific pages, for example for About page:
Frm7.onPageInit('about', function (page) {
    // run createContentPage func after link was clicked
    /*$$('.create-page').on('click', function () {
        createContentPage();
    });*/
});

var templates = {
  searchFilters: Template7.compile($$('#search-name-filters-template').html()),
  searchName: Template7.compile($$('#search-name-results-template').html()),
  popover: Template7.compile($$('#popover-template').html()),

  // hoje true = aberto/fechado hoje
  // hoje false = lista de parágrafos com horários
  formataHorario: function(horarios, hoje) {
    var nhorarios = horarios.length;
    var agora = new moment();
    if(hoje) {
      for(var i = 0; i < nhorarios; i++) {
        if(horarios[i].weekday = agora.isoWeekday()) {
          var abre = new moment(horarios[i].from_hour, "HH:mm:ss");
          var fecha = new moment(horarios[i].to_hour, "HH:mm:ss");<commit_msg>bugfix exibindo horários<commit_after>/*
 * <NAME>
 * 2016 Labhacker
 */

SERVER = "http://comidaimigrante.labhacker.org.br"

// Initialize your app
var Frm7 = new Framework7({
   //swipePanel: 'left'
   fastClicks: false,
   modalTemplate: $('#popover-template').html(),
   template7Pages: true,
});
// Export selectors engine
var $$ = Dom7;

// Add view
var mainView = Frm7.addView('.view-main', {
    // Because we use fixed-through navbar we can enable dynamic navbar
    //dynamicNavbar: true
    domCache: true, // enable inline pages
});

// Callbacks to run specific code for specific pages, for example for About page:
Frm7.onPageInit('about', function (page) {
    // run createContentPage func after link was clicked
    /*$$('.create-page').on('click', function () {
        createContentPage();
    });*/
});

var templates = {
  searchFilters: Template7.compile($$('#search-name-filters-template').html()),
  searchName: Template7.compile($$('#search-name-results-template').html()),
  popover: Template7.compile($$('#popover-template').html()),

  // hoje true = aberto/fechado hoje
  // hoje false = lista de parágrafos com horários
  formataHorario: function(horarios, hoje) {
    var nhorarios = horarios.length;
    var agora = new moment();
    if(hoje) {
      for(var i = 0; i < nhorarios; i++) {
        if(horarios[i].weekday == agora.isoWeekday()) {
          var abre = new moment(horarios[i].from_hour, "HH:mm:ss");
          var fecha = new moment(horarios[i].to_hour, "HH:mm:ss");
{'fraction_non_alphanumeric': 0.16067864271457086, 'fraction_numerical': 0.009314703925482368, 'mean_word_length': 3.5082458770614693, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, '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': '6470106', 'n_tokens_mistral': 984, 'n_tokens_neox': 979, 'n_words': 245}