<commit_before>'use strict';

hexo.extend.helper.register('list_social', function listSocial() {
  var result = '';
  var social = this.theme.social || {};
  for (var type in social) {
    if (social.hasOwnProperty(type)) {
      result += '<a href="' + this.url_for_social(type) + '" alt="' + type + '"><iron-icon icon="social-iconset:' + type + '"></iron-icon></a>'
    }
  }
  return result;
});

hexo.extend.helper.register('url_for_social', function urlForSocial(type) {
  var value = this.theme.social[type];
  switch (type) {
    case 'github':
      return 'https://github.com/' + value;
    case 'googleplus':
      return 'https://plus.google.com/' + value;
    case 'twitter':
      return 'https://twitter.com/' + value;
    default:
      return '#';
  }
});<commit_msg>Allow value customization in url_for_social helper<commit_after>'use strict';

hexo.extend.helper.register('list_social', function listSocial() {
  var result = '';
  var social = this.theme.social || {};
  for (var type in social) {
    if (social.hasOwnProperty(type)) {
      result += '<a href="' + this.url_for_social(type) + '" alt="' + type + '"><iron-icon icon="social-iconset:' + type + '"></iron-icon></a>'
    }
  }
  return result;
});

hexo.extend.helper.register('url_for_social', function urlForSocial(type, value) {
  value = value || this.theme.social[type];
  switch (type) {
    case 'github':
      return 'https://github.com/' + value;
    case 'googleplus':
      return 'https://plus.google.com/' + value;
    case 'twitter':
      return 'https://twitter.com/' + value;
    default:
      return '#';
  }
});
{'fraction_non_alphanumeric': 0.18761609907120744, 'fraction_numerical': 0.0, 'mean_word_length': 3.320855614973262, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 6, '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': '6167246', 'n_tokens_mistral': 526, 'n_tokens_neox': 519, 'n_words': 114}