<commit_before>// Generated by CoffeeScript 1.12.2
(function() {
  (function() {
    var $, setFrozenColPositions;
    $ = jQuery;
    setFrozenColPositions = function() {
      var $listForm, frozenColumns;
      $listForm = $('#bulk_form');
      if (!$listForm.is('.ra-sidescroll')) {
        return;
      }
      frozenColumns = $listForm.data('ra-sidescroll');
      return $listForm.find('table tr').each(function(index, tr) {
        var firstPosition;
        firstPosition = 0;
        return $(tr).children().slice(0, frozenColumns).each(function(idx, td) {
          var tdLeft;
          $(td).addClass('ra-sidescroll-frozen');
          if (idx === frozenColumns - 1) {
            $(td).addClass('last-of-frozen');
          }
          tdLeft = $(td).position().left;
          if (idx === 0) {
            firstPosition = tdLeft;
          }
          return td.style.left = (tdLeft - firstPosition) + "px";
        });
      });
    };
    $(window).on('load', setFrozenColPositions);
    return $(document).on('rails_admin.dom_ready', setFrozenColPositions);
  })();

}).call(this);<commit_msg>Fixup: tidy up generated JavaScript<commit_after>(function($) {
  function setFrozenColPositions() {
    var $listForm, frozenColumns;

    $listForm = $('#bulk_form');
    if (!$listForm.is('.ra-sidescroll')) {
      return;
    }
    frozenColumns = $listForm.data('ra-sidescroll');

    $listForm.find('table tr').each(function(index, tr) {
      var firstPosition  = 0;

      $(tr).children().slice(0, frozenColumns).each(function(idx, td) {
        var tdLeft;
        $(td).addClass('ra-sidescroll-frozen');
        if (idx === frozenColumns - 1) {
          $(td).addClass('last-of-frozen');
        }
        tdLeft = $(td).position().left;
        if (idx === 0) {
          firstPosition = tdLeft;
        }
        td.style.left = (tdLeft - firstPosition) + "px";
      });
    });
  };

  $(window).on('load', setFrozenColPositions);
  $(document).on('rails_admin.dom_ready', setFrozenColPositions);
})(jQuery);
{'fraction_non_alphanumeric': 0.17673048600883653, 'fraction_numerical': 0.005891016200294551, 'mean_word_length': 2.5017182130584192, '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': '3828068', 'n_tokens_mistral': 671, 'n_tokens_neox': 653, 'n_words': 109}