<commit_before>/*!
 * jQuery Configr Ribbons Plugin v0.1
 * https://github.com/configr/configr-ribbons
 *
 * Copyright 2013 <NAME> <<EMAIL>>
 * Copyright 2013 <NAME> <<EMAIL>>
 */
(function($) {
  "use strict";

  $.fn.configr = function(options) {
    return this.each(function() {

      // merge custom and default options
      options = $.extend({
        color: 'purple',
        referral: ''
      }, options);

      // build ribbon image url
      var media_url = 'http://media.confi.gr/ribbon/';
      var ribbon = media_url + options['color'] + '.png';

      // include html content
      $(this).html(
          '<div style="position:absolute;top:0;right:0;'
        + 'width:119px;height:119px;text-indent:-9999px;cursor:hand;'
        + 'cursor:pointer;outline:0;border:none;"><a href="http://confi.gr/?r='
        + options['referral'] + '" title="Managed via Configr">'
        + '<img src="' + ribbon + '" style="position:absolute;top:-1px;'
        + 'right:0px;width:119px;height:119px;text-indent:-9999px;'
        + 'z-index:2;outline:0;border:none;"/></a></div>'
      );
    });
  };
})(jQuery);<commit_msg>Remove "referral" parameter if not setup.<commit_after>/*!
 * jQuery Configr Ribbons Plugin v0.1
 * https://github.com/configr/configr-ribbons
 *
 * Copyright 2013 <NAME> <<EMAIL>>
 * Copyright 2013 <NAME> <<EMAIL>>
 */
(function($) {
  "use strict";

  $.fn.configr = function(options) {
    return this.each(function() {

      // merge custom and default options
      options = $.extend({
        color: 'purple',
        referral: ''
      }, options);

      // build ribbon image url
      var media_url = 'http://media.confi.gr/ribbon/';
      var ribbon = media_url + options['color'] + '.png';

      // build referral url
      var referral = 'http://confi.gr'
      if (options['referral'])
        referral += '?r=' + options['referral']

      // include html content
      $(this).html(
          '<div style="position:absolute;top:0;right:0;'
        + 'width:119px;height:119px;text-indent:-9999px;cursor:hand;'
        + 'cursor:pointer;outline:0;border:none;"><a href="' + referral
        + '" title="Managed via Configr"><img src="' + ribbon + '" '
        + 'style="position:absolute;top:-1px;right:0px;width:119px;'
        + 'height:119px;text-indent:-9999px;z-index:2;outline:0;'
        + 'border:none;"/></a></div>'
      );
    });
  };
})(jQuery);
{'fraction_non_alphanumeric': 0.1919401744910677, 'fraction_numerical': 0.030743664312422102, 'mean_word_length': 2.8222222222222224, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 2, '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': '2067928', 'n_tokens_mistral': 857, 'n_tokens_neox': 780, 'n_words': 144}