<commit_before>/*
heatmap.jquery v1.0
https://github.com/msuz/heatmap.jquery
*/
; (function($) {

  $.fn.heatmap = function(n, params) {
    var $self = this;
    var conf = $.extend({
      'mode': 'default',
      'min': 0.0,
      'max': 1.0,
    }, params);
    
    var x = (n - conf.min) / (conf.max - conf.min);
    console.log(n, x);
    var rgb = $self.heatmapCalc(conf.mode, x);
    $self.css(
      'background-color',
      'rgb(' + rgb.join(',') + ')'
    );
    
    return $self;
  };

  $.fn.heatmapCalc = function(name, n) {
    return _calcFunctions[name](n);
  };

  var _calcFunctions = new Array();
  
  _calcFunctions.white = function(n) {
    return [255, 255, 255];<commit_msg>delete console.log<commit_after>/*
heatmap.jquery v1.0
https://github.com/msuz/heatmap.jquery
*/
; (function($) {

  $.fn.heatmap = function(n, params) {
    var $self = this;
    var conf = $.extend({
      'mode': 'default',
      'min': 0.0,
      'max': 1.0,
    }, params);
    
    var x = (n - conf.min) / (conf.max - conf.min);
    var rgb = $self.heatmapCalc(conf.mode, x);
    $self.css(
      'background-color',
      'rgb(' + rgb.join(',') + ')'
    );
    
    return $self;
  };

  $.fn.heatmapCalc = function(name, n) {
    return _calcFunctions[name](n);
  };

  var _calcFunctions = new Array();
  
  _calcFunctions.white = function(n) {
    return [255, 255, 255];
{'fraction_non_alphanumeric': 0.19797687861271676, 'fraction_numerical': 0.02167630057803468, 'mean_word_length': 2.345410628019324, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '162877', 'n_tokens_mistral': 564, 'n_tokens_neox': 523, 'n_words': 106}