<commit_before>var format = require('util').format,
  prefix = format('%s://%s', process.env.PROTOCOL, process.env.DOMAIN);

var url = function() {
  var args = Array.prototype.slice.call(arguments);
  args[0] = prefix + args[0];
  return format.apply(null, args);
}

module.exports = {

  Route: {
    profile: function(user) {
      return url('/u/%s', user.id);
    },

    seed: function(seed, community) {
      return url('/c/%s/s/%s', community.get('slug'), seed.id);
    },

    unfollow: function(seed) {
      return url('/email/unfollow/%s', seed.id);
    }
  }

}<commit_msg>make links to seeds in emails open comments<commit_after>var format = require('util').format,
  prefix = format('%s://%s', process.env.PROTOCOL, process.env.DOMAIN);

var url = function() {
  var args = Array.prototype.slice.call(arguments);
  args[0] = prefix + args[0];
  return format.apply(null, args);
}

module.exports = {

  Route: {
    profile: function(user) {
      return url('/u/%s', user.id);
    },

    seed: function(seed, community) {
      return url('/c/%s/s/%s/comments', community.get('slug'), seed.id);
    },

    unfollow: function(seed) {
      return url('/email/unfollow/%s', seed.id);
    }
  }

}
{'fraction_non_alphanumeric': 0.19208573784006594, 'fraction_numerical': 0.0032976092333058533, 'mean_word_length': 3.1718213058419242, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5251970', 'n_tokens_mistral': 418, 'n_tokens_neox': 414, 'n_words': 83}