<commit_before>"use strict";
var Email = require('email').Email,
  handlebars = require('handlebars');

var MAILING_LIST, SENDER_EMAIL;

if (process.env.NODE_ENV == 'production') {
  MAILING_LIST = "<EMAIL>";
  SENDER_EMAIL = "<EMAIL>";
} else {
  MAILING_LIST = "<EMAIL>";
  SENDER_EMAIL = "<EMAIL>";
}

var subjectTemplate = handlebars.compile("{{ status }}: {{ title }}"),
  fromTemplate = handlebars.compile("{{ name }} <{{email}}>"),
  bodyTemplate = handlebars.compile("{{ title }}\n\n{{ href }}{{ feedbackDate }}\n\nAbstract\n\n{{ abstract }}\n\nStatus of the Document\n\n{{ sotd }}");

function notifyWideReview(spec) {
  console.log("Notification for wide review: " + spec.href);
  var status = spec.status;
  if (spec.obsoletes === undefined) {
    status = "FPWD";
  }
  var context = {
    title: spec.title,
    date: spec.date,
    href: spec.href,
    status: status,
    sotd: spec.sotd,
    abstract: spec.abstract,
    feedbackDate: (spec.feedbackDate === undefined) ?
      "" : "\n\nfeedback due by: " + spec.feedbackDate,
    timestamp: Date.now()
  };

  var msg = new Email({
    messageId: context.href,
    to: [MAILING_LIST],
    body: bodyTemplate(context),
    subject: subjectTemplate(context),
    from: "Notifier <" + SENDER_EMAIL + ">"
  });

  msg.send(function (err) {
    if (err !== null) {
      console.log("Failure to notify for wide review for " + spec.href);<commit_msg>Added Call for Wide Review<commit_after>"use strict";
var Email = require('email').Email,
  handlebars = require('handlebars');

var MAILING_LIST, SENDER_EMAIL;

if (process.env.NODE_ENV == 'production') {
  MAILING_LIST = "<EMAIL>";
  SENDER_EMAIL = "<EMAIL>";
} else {
  MAILING_LIST = "<EMAIL>";
  SENDER_EMAIL = "<EMAIL>";
}

var subjectTemplate = handlebars.compile("{{ status }}: {{ title }}{{cfwd}}"),
  fromTemplate = handlebars.compile("{{ name }} <{{email}}>"),
  bodyTemplate = handlebars.compile("{{ title }}\n\n{{ href }}{{ feedbackDate }}\n\nAbstract\n\n{{ abstract }}\n\nStatus of the Document\n\n{{ sotd }}");

function notifyWideReview(spec) {
  console.log("Notification for wide review: " + spec.href);
  var status = spec.status;
  if (spec.obsoletes === undefined) {
    status = "FPWD";
  }
  var context = {
    title: spec.title,
    date: spec.date,
    href: spec.href,
    status: status,
    sotd: spec.sotd,
    abstract: spec.abstract,
    feedbackDate: (spec.feedbackDate === undefined) ?
      "" : "\n\nfeedback due by: " + spec.feedbackDate,
    timestamp: Date.now()
  };
  if (spec.sotd.indexOf("wide review") !== -1) {
    context.cfwd = " (Call for Wide Review)";
  } else {
    context.cfwd = "";
  }

  var msg = new Email({
    messageId: context.href,
    to: [MAILING_LIST],
    body: bodyTemplate(context),
    subject: subjectTemplate(context),
    from: "Notifier <" + SENDER_EMAIL + ">"
  });

  msg.send(function (err) {
    if (err !== null) {
      console.log("Failure to notify for wide review for " + spec.href);
{'fraction_non_alphanumeric': 0.176747311827957, 'fraction_numerical': 0.0003360215053763441, 'mean_word_length': 3.608359133126935, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2186668', 'n_tokens_mistral': 1033, 'n_tokens_neox': 1020, 'n_words': 235}