<commit_before>'use strict';

var blogophonMustacheQuoters = {
  icsQuote: function() {
    return function(text, render) {
      var newText = render(text)
        .replace(/(\n|\r|\r\n)/g, "\\n")
        .replace(/(,|;)/g, '\\$1');
      if (newText.length > 30) {
        newText = newText.match(/[\s\S]{1,72}/g).join("\r\n ");
        newText = "\r\n "+newText;
      }
      return newText;
    };
  },
  ymlQuote: function() {
    return function(text, render) {
      text = render(text);
      if (text.match(/[':#{}[]]/) && !text.match(/^\d[\d:\-+T]+\d$/)) {
        text = "'" + text.replace(/(')/g, '$1$1') + "'";
      }
      return text;
    };
  },
  noLineBreak: function() {
    return function(text, render) {
      return render(text).replace(/\s*[\n|\r]+/g, ' ');
    };
  },
  nl2br: function() {
    return function(text, render) {
      return render(text).replace(/[\n|\r]+/g, '<br />$0');
    };
  },
  noNewline: function() {
    return function(text, render) {
      return render(text).replace(/[\n|\r]+/g, ' ');
    };
  },
  i18n: function() {
    return function(text, render) {
      // change text
      return render(text);
    };
  },
  encodeURIComponent: function() {
    return function(text, render) {<commit_msg>Fixed YAML quoter<commit_after>'use strict';

var blogophonMustacheQuoters = {
  icsQuote: function() {
    return function(text, render) {
      var newText = render(text)
        .replace(/(\n|\r|\r\n)/g, "\\n")
        .replace(/(,|;)/g, '\\$1');
      if (newText.length > 30) {
        newText = newText.match(/[\s\S]{1,72}/g).join("\r\n ");
        newText = "\r\n "+newText;
      }
      return newText;
    };
  },
  ymlQuote: function() {
    return function(text, render) {
      text = render(text);
      if (text.match(/[':#{}\[\]]/) && !text.match(/^\d[\d:\-+T]+\d$/)) {
        text = "'" + text.replace(/(')/g, '$1$1') + "'";
      }
      return text;
    };
  },
  noLineBreak: function() {
    return function(text, render) {
      return render(text).replace(/\s*[\n|\r]+/g, ' ');
    };
  },
  nl2br: function() {
    return function(text, render) {
      return render(text).replace(/[\n|\r]+/g, '<br />$0');
    };
  },
  noNewline: function() {
    return function(text, render) {
      return render(text).replace(/[\n|\r]+/g, ' ');
    };
  },
  i18n: function() {
    return function(text, render) {
      // change text
      return render(text);
    };
  },
  encodeURIComponent: function() {
    return function(text, render) {
{'fraction_non_alphanumeric': 0.23107569721115537, 'fraction_numerical': 0.009561752988047808, 'mean_word_length': 2.273794002607562, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2222502', 'n_tokens_mistral': 924, 'n_tokens_neox': 907, 'n_words': 158}