<commit_before>(function( $ ){
var element;
var methods = {
  process : function(csv,fields){
    var self = methods;
    element = this; // set element for build_containers()

    if (fields == undefined)
      fields = [];

    pivot.init({fields: fields, csv: csv});

    self.build_containers();
    self.build_toggle_fields('#label-fields', 'labels', pivot.fields().labelable, 'labelable');
    self.build_toggle_fields('#summary-fields', 'summary', pivot.fields().summarizable, 'summary');

    $('body').pivot_display('build_filter_list');

    $('.labelable').change(function(event) {
      self.update_label_fields();
    });

    $('.summary').change(function(event) {
      self.update_summary_fields();
    });
  },
  build_containers : function(){

    var containers = '<div style="margin-left:-20px;*zoom:1;">' +
                     '  <div style="width:300px;float:left;margin-left:20px;">' +
                     '  <h2>Filter Fields</h2>' +
                     '   <div id="filter-list"></div>' +
                     '  </div>' +
                     '  <div style="width:300px;float:left;margin-left:20px;">' +
                     '  <h2>Label Fields</h2>' +
                     '   <div id="label-fields"></div>' +
                     '  </div>' +
                     '  <div style="width:300px;float:left;margin-left:20px;">' +
                     '  <h2>Summary Fields</h2>' +
                     '   <div id="summary-fields"></div>' +
                     '  </div>' +
                     '</div>';<commit_msg>Add skipBuildContainers to jquery_pivot.<commit_after>(function( $ ){
var element;
var methods = {
  process : function(csv,fields,skipBuildContainers){
    var self = methods;
    element = this; // set element for build_containers()

    if (fields == undefined)
      fields = [];

    pivot.init({fields: fields, csv: csv});

    if (skipBuildContainers === undefined || skipBuildContainers === false) self.build_containers();

    self.build_toggle_fields('#label-fields', 'labels', pivot.fields().labelable, 'labelable');
    self.build_toggle_fields('#summary-fields', 'summary', pivot.fields().summarizable, 'summary');

    $('body').pivot_display('build_filter_list');

    $('.labelable').change(function(event) {
      self.update_label_fields();
    });

    $('.summary').change(function(event) {
      self.update_summary_fields();
    });
  },
  build_containers : function(){

    var containers = '<div style="margin-left:-20px;*zoom:1;">' +
                     '  <div style="width:300px;float:left;margin-left:20px;">' +
                     '  <h2>Filter Fields</h2>' +
                     '   <div id="filter-list"></div>' +
                     '  </div>' +
                     '  <div style="width:300px;float:left;margin-left:20px;">' +
                     '  <h2>Label Fields</h2>' +
                     '   <div id="label-fields"></div>' +
                     '  </div>' +
                     '  <div style="width:300px;float:left;margin-left:20px;">' +
                     '  <h2>Summary Fields</h2>' +
                     '   <div id="summary-fields"></div>' +
                     '  </div>' +
                     '</div>';
{'fraction_non_alphanumeric': 0.17903930131004367, 'fraction_numerical': 0.014971927635683094, 'mean_word_length': 2.065965583173996, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '4715807', 'n_tokens_mistral': 1011, 'n_tokens_neox': 928, 'n_words': 139}