<commit_before>// Peity jQuery plugin version 2.0.4
// (c) 2014 <NAME>
//
// http://benpickles.github.io/peity
//
// Released under MIT license.
(function($, document, Math) {
  var svgElement = function(tag, attrs) {
    var elem = document.createElementNS("http://www.w3.org/2000/svg", tag)

    $.each(attrs, function(name, value) {
      elem.setAttribute(name, value)
    })

    return elem
  }

  // https://gist.github.com/madrobby/3201472
  var svgSupported = "createElementNS" in document && svgElement("svg", {}).createSVGRect

  var pixel = 1 / (window.devicePixelRatio || 1)

  var peity = $.fn.peity = function(type, options) {
    if (svgSupported) {
      this.each(function() {
        var $this = $(this)
        var chart = $this.data("peity")

        if (chart) {
          if (type) chart.type = type
          $.extend(chart.opts, options)<commit_msg>Can use $.attr for that.<commit_after>// Peity jQuery plugin version 2.0.4
// (c) 2014 <NAME>
//
// http://benpickles.github.io/peity
//
// Released under MIT license.
(function($, document, Math) {
  var svgElement = function(tag, attrs) {
    var elem = document.createElementNS("http://www.w3.org/2000/svg", tag)
    $(elem).attr(attrs)
    return elem
  }

  // https://gist.github.com/madrobby/3201472
  var svgSupported = 'createElementNS' in document && svgElement('svg').createSVGRect

  var pixel = 1 / (window.devicePixelRatio || 1)

  var peity = $.fn.peity = function(type, options) {
    if (svgSupported) {
      this.each(function() {
        var $this = $(this)
        var chart = $this.data("peity")

        if (chart) {
          if (type) chart.type = type
          $.extend(chart.opts, options)
{'fraction_non_alphanumeric': 0.1608515671200473, 'fraction_numerical': 0.024837374334713187, 'mean_word_length': 2.718681318681319, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '5582400', 'n_tokens_mistral': 594, 'n_tokens_neox': 555, 'n_words': 132}