<commit_before>Template.generatedFiles.helpers({
  'files': function() {
    if (Session.get('generatedFiles') === undefined)
      return [];
      
    let files = [];

    for (let f of Session.get('generatedFiles')){
      files.push(Collections.PDF.findOne(f));
    }

    return files;
  }
});

Template.generatedFiles.events({
  'click .generatedPDFLink': function(event) {
    event.preventDefault();

    let url = 'data:application/pdf;base64,';
    Meteor.call('PDF.get',
      event.target.name, (err, res) => {
        console.log(err);
        window.open(url + res);<commit_msg>fix(git): Fix merge on commits<commit_after>Template.generatedFiles.helpers({
  'files': function() {
    if (Session.get('generatedFiles') === undefined)
      return [];

    let files = [];

    for (let f of Session.get('generatedFiles')){
      files.unshift(Collections.PDF.findOne(f));
    }

    return files;
  }
});

Template.generatedFiles.events({
  'click .generatedPDFLink': function(event) {
    event.preventDefault();

    let url = 'data:application/pdf;base64,';
    Meteor.call('PDF.get',
      event.target.name, (err, res) => {
        console.log(err);
        window.open(url + res);
{'fraction_non_alphanumeric': 0.1675, 'fraction_numerical': 0.0033333333333333335, 'mean_word_length': 3.1557093425605536, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1684960', 'n_tokens_mistral': 383, 'n_tokens_neox': 374, 'n_words': 67}