<commit_before>'use strict';

/**
 * @function
 * @ignore
 * @name jQuery#extend
 * @description This documents the jQuery method adds the Social class to the C1V0 namespace.
 */
$.extend( true, C1V0 || {}, {
  /**
   * Social profiles module.
   * @namespace
   * @this {social}
   * @alias C1V0.social
   */
  social: {
    /**
     * HTTP data path.
     */
    path: C1V0.config.social,

    /**
     * jQuery reference to the social links list.
     *
     * @type {object}
     */
    $container: $('#social #links ul'),

    /** Initializer. */
    init: function() {
      this.http = new HttpSocket(this.path);
      this.http.get(this.renderSocialList, this.failure);
    },

    /** Renders social profile links onto the page. */
    renderSocialList: function() {
      const profiles = [...this.data];
      const frag = document.createDocumentFragment();

      profiles.forEach(function(profile) {
        const a = $('<a></a>', {
          'href': profile.href,
          'title': '<NAME> on ' + profile.name
        });
        const i = $('<i class="' + profile.icon + '"></i>');
        const li = $('<li></li>').append(a);

        $(a).append(i);
        $(frag).append(li);<commit_msg>feat(social): add the rel='me' attribute to social links (#49)<commit_after>'use strict';

/**
 * @function
 * @ignore
 * @name jQuery#extend
 * @description This documents the jQuery method adds the Social class to the C1V0 namespace.
 */
$.extend( true, C1V0 || {}, {
  /**
   * Social profiles module.
   * @namespace
   * @this {social}
   * @alias C1V0.social
   */
  social: {
    /**
     * HTTP data path.
     */
    path: C1V0.config.social,

    /**
     * jQuery reference to the social links list.
     *
     * @type {object}
     */
    $container: $('#social #links ul'),

    /** Initializer. */
    init: function() {
      this.http = new HttpSocket(this.path);
      this.http.get(this.renderSocialList, this.failure);
    },

    /** Renders social profile links onto the page. */
    renderSocialList: function() {
      const profiles = [...this.data];
      const frag = document.createDocumentFragment();

      profiles.forEach(function(profile) {
        const a = $('<a></a>', {
          href: profile.href,
          rel: 'me',
          title: '<NAME> on ' + profile.name
        });
        const i = $('<i class="' + profile.icon + '"></i>');
        const li = $('<li></li>').append(a);

        $(a).append(i);
        $(frag).append(li);
{'fraction_non_alphanumeric': 0.17620967741935484, 'fraction_numerical': 0.007258064516129033, 'mean_word_length': 2.226267880364109, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, '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': '2239542', 'n_tokens_mistral': 774, 'n_tokens_neox': 760, 'n_words': 197}