<commit_before>// <NAME>
TelevisionController = ApplicationController.extend();

Router.route('/rede-meionorte', {
  fastRender: true,
  name: 'television',
  yieldRegions: {
    'headerTelevision': {to: 'header'},
    'navigationTelevision': {to: 'navigation'}
  },
  waitOn: function() {
    Meteor.remote.subscribe('program');
    Meteor.remote.subscribe('category');
  }
});

// Ao Entrar
Template.television.onRendered(function(){

   $('.button-collapse').sideNav({
      menuWidth: 300,
      edge: 'left',
      closeOnClick: true
    }
  );

  $('.modal-trigger').leanModal({
    dismissible: true,
    opacity:1,
    in_duration: 300,
    out_duration: 200,
    ready: function() {

    },
    complete: function() {

    }
  });
});

// Ao Sair
Template.television.onDestroyed(function(){

  // $('#modal-about, #modal-edit-profile, #modal-error-report').closeModal();
  document.querySelector('body').classList.remove('show-message');
  $('ul.tabsTV').tabs();

});

Template.programs.helpers({
  'programList': function(){
    var categoryId = null;
    var programs = [];

    var category = Category.find(
      {},
      {sort: {description:"asc"}}
    ).map(
      function(c) {
        return {
          _id: c._id,
          description: c.description
        };
      }
    );

    var program = Program.find(
      {},
      {sort: {category_id:"asc"}}
    ).map(
      function(p) {
        return {
          _id: p._id,
          image_avatar: p.image_avatar,
          category_id: p.category_id
        };
      }
    );

    for(cID in category){
      for(pID in program){
        if(program[pID].category_id === category[cID]._id){
          console.log(program[pID]._id);
          programs[pID] = {
            program_id: program[pID]._id,
            image_avatar: program[pID].image_avatar,
            category_name: category[cID].description,
            categoryValid: categoryId !== program[pID].category_id
          };
          categoryId = category[cID]._id;
        }
      }
    }

    return programs;
  }
});<commit_msg>Remocao de console.log<commit_after>// <NAME>
TelevisionController = ApplicationController.extend();

Router.route('/rede-meionorte', {
  fastRender: true,
  name: 'television',
  yieldRegions: {
    'headerTelevision': {to: 'header'},
    'navigationTelevision': {to: 'navigation'}
  },
  waitOn: function() {
    Meteor.remote.subscribe('program');
    Meteor.remote.subscribe('category');
  }
});

// Ao Entrar
Template.television.onRendered(function(){

   $('.button-collapse').sideNav({
      menuWidth: 300,
      edge: 'left',
      closeOnClick: true
    }
  );

  $('.modal-trigger').leanModal({
    dismissible: true,
    opacity:1,
    in_duration: 300,
    out_duration: 200,
    ready: function() {

    },
    complete: function() {

    }
  });
});

// Ao Sair
Template.television.onDestroyed(function(){

  // $('#modal-about, #modal-edit-profile, #modal-error-report').closeModal();
  document.querySelector('body').classList.remove('show-message');
  $('ul.tabsTV').tabs();

});

Template.programs.helpers({
  'programList': function(){
    var categoryId = null;
    var programs = [];

    var category = Category.find(
      {},
      {sort: {description:"asc"}}
    ).map(
      function(c) {
        return {
          _id: c._id,
          description: c.description
        };
      }
    );

    var program = Program.find(
      {},
      {sort: {category_id:"asc"}}
    ).map(
      function(p) {
        return {
          _id: p._id,
          image_avatar: p.image_avatar,
          category_id: p.category_id
        };
      }
    );

    for(cID in category){
      for(pID in program){
        if(program[pID].category_id === category[cID]._id){
          programs[pID] = {
            program_id: program[pID]._id,
            image_avatar: program[pID].image_avatar,
            category_name: category[cID].description,
            categoryValid: categoryId !== program[pID].category_id
          };
          categoryId = category[cID]._id;
        }
      }
    }

    return programs;
  }
});
{'fraction_non_alphanumeric': 0.16146341463414635, 'fraction_numerical': 0.004878048780487805, 'mean_word_length': 2.3532297628781684, 'pattern_counts': {'":': 0, '<': 5, '<?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': '7402', 'n_tokens_mistral': 1349, 'n_tokens_neox': 1304, 'n_words': 215}