<commit_before>/**
 *  Knockout Pagination Component
 *
 *  Include the <pagination> element on on your knockout page with the following parameters:
 *      goToPage(page): A function that updates your view with new items for the given page.
 *      perPage: A knockout observable that holds the number of items per page.
 *          This will be updated when the user changes the number of items using the dropdown.
 *          This should be used in your `goToPage` function to return the correct number of items.
 *      totalItems: A knockout observable that returns the total number of items
 *      inlinePageListOnly: Optional. True or false. If true, leave off the "Showing X to Y of Z entries"
 *          text and the associated dropdown.
 *      showSpinner: Optional. An observable. If provided, the widget will replace the current page number
 *          with a spinner when this observable's value is truthy. Useful for ajax-based pagination
 *          (calling code should set the observable to true before kicking off ajax request, then false
 *          in the success and error callbacks).
 *      slug: Optional. A string unique among pagination widgets. If provided, used to save perPage value
 *          in a cookie.
 *      onLoad: Required with slug. A function called when all of the pagination library is finished loading.
 *          Please call the initial goToPage(1) call inside the onLoad function in your app.
 *      itemsTextTemplate: Optional. A string that contains <%= firstItem %>, <%= lastItem %>, <%= maxItems %>
 *          which shows up next to the left of the limit dropdown.
 *
 *  See releases_table.html for an example.
 */

hqDefine('hqwebapp/js/components/pagination', [
    'knockout',
    'underscore',
], function (<commit_msg>clarify onLoad after poking around a little bit more to see if other parts of HQ need it. Still unclear.<commit_after>/**
 *  Knockout Pagination Component
 *
 *  Include the <pagination> element on on your knockout page with the following parameters:
 *      goToPage(page): A function that updates your view with new items for the given page.
 *      perPage: A knockout observable that holds the number of items per page.
 *          This will be updated when the user changes the number of items using the dropdown.
 *          This should be used in your `goToPage` function to return the correct number of items.
 *      totalItems: A knockout observable that returns the total number of items
 *      inlinePageListOnly: Optional. True or false. If true, leave off the "Showing X to Y of Z entries"
 *          text and the associated dropdown.
 *      showSpinner: Optional. An observable. If provided, the widget will replace the current page number
 *          with a spinner when this observable's value is truthy. Useful for ajax-based pagination
 *          (calling code should set the observable to true before kicking off ajax request, then false
 *          in the success and error callbacks).
 *      slug: Optional. A string unique among pagination widgets. If provided, used to save perPage value
 *          in a cookie.
 *      onLoad: Optional, useful with slug. A function called when all of the pagination library is finished loading.
 *          This is extremely useful when using slug to store the pagination state in a cookie. Sometimes
 *          the pagination widget loads after the library utilizing it, resulting in an undefined perPage.
 *          To avoid this, please call the first goToPage(1) call inside the specified onLoad function.
 *      itemsTextTemplate: Optional. A string that contains <%= firstItem %>, <%= lastItem %>, <%= maxItems %>
 *          which shows up next to the left of the limit dropdown.
 *
 *  See releases_table.html for an example.
 */

hqDefine('hqwebapp/js/components/pagination', [
    'knockout',
    'underscore',
], function (
{'fraction_non_alphanumeric': 0.06000515065670873, 'fraction_numerical': 0.0005150656708730364, 'mean_word_length': 3.020703933747412, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '3108697', 'n_tokens_mistral': 990, 'n_tokens_neox': 933, 'n_words': 511}