<commit_before>hqDefine('icds/js/manage_hosted_ccz', [
    'jquery',
    'knockout',
    'underscore',
    'hqwebapp/js/assert_properties',
    'hqwebapp/js/initial_page_data',
    'hqwebapp/js/components.ko',    // pagination widget
    'translations/js/app_translations',
], function (
    $,
    ko,
    _,
    assertProperties,
    initialPageData
) {
    'use strict';
    $(function () {
        var hostedCCZ = function (options) {
            assertProperties.assertRequired(options, [
                'id',
                'app_name',
                'app_version_tag',
                'file_name',
                'link',
                'link_name',
                'note',
                'profile_name',
                'status',
                'version',
            ]);
            var self = {
                id: options.id,
                appName: options.app_name,
                appVersionTag: options.app_version_tag,
                fileName: options.file_name,
                link: options.link,
                link_name: options.link_name,
                profileName: options.profile_name,
                note: options.note,
                status: options.status,
                version: options.version,
            };
            self.removeUrl = initialPageData.reverse("remove_hosted_ccz", self.id);
            self.recreateUrl = initialPageData.reverse("recreate_hosted_ccz", self.id);
            self.viewUrl = initialPageData.reverse("hosted_ccz", self.link);
            return self;
        };
        var hostedCCZsView = function (options) {
            assertProperties.assertRequired(['url']);

            var self = {};
            self.hostings = ko.observableArray();

            // Search options
            self.linkId = ko.observable();
            self.appId = ko.observable();
            self.version = ko.observable();
            self.profileId = ko.observable();
            self.status = ko.observable();

            // Pagination
            self.itemsPerPage = ko.observable(5);
            self.totalItems = ko.observable();
            self.showPaginationSpinner = ko.observable(false);
            self.currentPage = ko.observable(1);
            self.goToPage = function (page) {
                self.showPaginationSpinner(true);
                self.currentPage(page);
                $.ajax({
                    url: options.url,
                    data: {
                        page: page,
                        limit: self.itemsPerPage(),
                        link_id: self.linkId(),<commit_msg>Fixed link URL<commit_after>hqDefine('icds/js/manage_hosted_ccz', [
    'jquery',
    'knockout',
    'underscore',
    'hqwebapp/js/assert_properties',
    'hqwebapp/js/initial_page_data',
    'hqwebapp/js/components.ko',    // pagination widget
    'translations/js/app_translations',
], function (
    $,
    ko,
    _,
    assertProperties,
    initialPageData
) {
    'use strict';
    $(function () {
        var hostedCCZ = function (options) {
            assertProperties.assertRequired(options, [
                'id',
                'app_name',
                'app_version_tag',
                'file_name',
                'link_name',
                'note',
                'profile_name',
                'status',
                'version',
            ]);
            var self = {
                id: options.id,
                appName: options.app_name,
                appVersionTag: options.app_version_tag,
                fileName: options.file_name,
                link_name: options.link_name,
                profileName: options.profile_name,
                note: options.note,
                status: options.status,
                version: options.version,
            };
            self.removeUrl = initialPageData.reverse("remove_hosted_ccz", self.id);
            self.recreateUrl = initialPageData.reverse("recreate_hosted_ccz", self.id);
            self.viewUrl = initialPageData.reverse("hosted_ccz", self.link_name);
            return self;
        };
        var hostedCCZsView = function (options) {
            assertProperties.assertRequired(['url']);

            var self = {};
            self.hostings = ko.observableArray();

            // Search options
            self.linkId = ko.observable();
            self.appId = ko.observable();
            self.version = ko.observable();
            self.profileId = ko.observable();
            self.status = ko.observable();

            // Pagination
            self.itemsPerPage = ko.observable(5);
            self.totalItems = ko.observable();
            self.showPaginationSpinner = ko.observable(false);
            self.currentPage = ko.observable(1);
            self.goToPage = function (page) {
                self.showPaginationSpinner(true);
                self.currentPage(page);
                $.ajax({
                    url: options.url,
                    data: {
                        page: page,
                        limit: self.itemsPerPage(),
                        link_id: self.linkId(),
{'fraction_non_alphanumeric': 0.10932601880877743, 'fraction_numerical': 0.0007836990595611285, 'mean_word_length': 1.4555074555074554, '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': '2132812', 'n_tokens_mistral': 1402, 'n_tokens_neox': 1343, 'n_words': 218}