<commit_before>/**
 * Represents a column of pull requests on the page.
 *
 * Column takes care of rendering a column template onto the page. Each Column
 * receives an array of Pull objects via its update method and converts them to
 * jQuery elements, which it inserts into its rendering.
 */
define(['jquery', 'underscore', 'Templates', 'bootstrap'],
 function($, _, Templates, bootstrap) {
   /**
    * Constructor
    *
    * @param elementFilter - An ElementFilter which will be used to transform
    * the displayed elements in this column.
    *
    * @param spec - The specification for this column. This is a JavaScript
    * object which provides information about the name and id of this column
    * and about the page template. It allows this function to be more
    * general-purpose.
    */
   var constructor = function(elementFilter, indicatorFilter, spec) {
      var self = this;

      // The DOM node that holds all the elements for this column. Remove it, and
      // it is as if this column never existed (although there's still the
      // columnRestore button--to really remove the entire column, you have to
      // remove that too.)
      var column;

      // The button to uncollapse this column.
      var columnRestore;

      // The part of this column that actually holds pull elements.
      var container;

      // Private methods
      
      /**
       * Renders a template with provided data and appends the resulting node
       * to the end of the JQuery object container.
       */
      var renderInto = function renderInto(template, data, container) {
         var templateFunction = Templates.get(template);
         var html = templateFunction(data);
         var node = $(html);
         container.append(node);

         return $(node);
      };

      /**
       * Renders the button that can be used to restore the column when it is<commit_msg>remove extra jQuery wrap<commit_after>/**
 * Represents a column of pull requests on the page.
 *
 * Column takes care of rendering a column template onto the page. Each Column
 * receives an array of Pull objects via its update method and converts them to
 * jQuery elements, which it inserts into its rendering.
 */
define(['jquery', 'underscore', 'Templates', 'bootstrap'],
 function($, _, Templates, bootstrap) {
   /**
    * Constructor
    *
    * @param elementFilter - An ElementFilter which will be used to transform
    * the displayed elements in this column.
    *
    * @param spec - The specification for this column. This is a JavaScript
    * object which provides information about the name and id of this column
    * and about the page template. It allows this function to be more
    * general-purpose.
    */
   var constructor = function(elementFilter, indicatorFilter, spec) {
      var self = this;

      // The DOM node that holds all the elements for this column. Remove it, and
      // it is as if this column never existed (although there's still the
      // columnRestore button--to really remove the entire column, you have to
      // remove that too.)
      var column;

      // The button to uncollapse this column.
      var columnRestore;

      // The part of this column that actually holds pull elements.
      var container;

      // Private methods
      
      /**
       * Renders a template with provided data and appends the resulting node
       * to the end of the JQuery object container.
       */
      var renderInto = function renderInto(template, data, container) {
         var templateFunction = Templates.get(template);
         var html = templateFunction(data);
         var node = $(html);
         container.append(node);

         return node;
      };

      /**
       * Renders the button that can be used to restore the column when it is
{'fraction_non_alphanumeric': 0.0728180862250263, 'fraction_numerical': 0.0, 'mean_word_length': 2.5231481481481484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4290682', 'n_tokens_mistral': 931, 'n_tokens_neox': 902, 'n_words': 456}