<commit_before>pipe.once('package:initialize', function (pagelet) {
  'use strict';

  //
  // We don't need to have any other information from the pagelet then the
  // placeholders/elements that contain our packages-pagelet placeholders.
  //
  pagelet = $(pagelet.placeholders);

  //
  // Show more rows when we click on the table footer.
  //
  pagelet.on('click', '.details .show-all', function click(e) {
    if (!~this.href.indexOf('#')) return; // We have a dependencies pagelet.

    e.preventDefault();

    var element = $(this)
      , text = element.text()
      , state = element.data('state')
      , parent = element.parents('.fourcol');

    //
    // Show the rows that were hidden and remove the table foot as we're already
    // showing all the fields now.
    //
    parent.find('.gone')[state ? 'fadeOut' : 'fadeIn']();
    element.text(element.data('text')).data('text', text).data('state', !state);
  });
});<commit_msg>[fix] Adjust to the new layout<commit_after>pipe.once('package:initialize', function (pagelet) {
  'use strict';

  //
  // We don't need to have any other information from the pagelet then the
  // placeholders/elements that contain our packages-pagelet placeholders.
  //
  pagelet = $(pagelet.placeholders);

  //
  // Show more rows when we click on the table footer.
  //
  pagelet.on('click', '.details .show-all', function click(e) {
    if (!~this.href.indexOf('#')) return; // We have a dependencies pagelet.

    e.preventDefault();

    var element = $(this)
      , text = element.text()
      , state = element.data('state')
      , parent = element.parents('.sixcol');

    //
    // Show the rows that were hidden and remove the table foot as we're already
    // showing all the fields now.
    //
    parent.find('.gone')[state ? 'fadeOut' : 'fadeIn']();
    element.text(element.data('text')).data('text', text).data('state', !state);
  });
});
{'fraction_non_alphanumeric': 0.16142557651991615, 'fraction_numerical': 0.0, 'mean_word_length': 2.9442148760330578, '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': '1809258', 'n_tokens_mistral': 581, 'n_tokens_neox': 562, 'n_words': 173}