<commit_before>var RegStatusCard = {
    name: 'RegStatusCard',
    dom_target: undefined,

    render_init: function() {
        WSData.fetch_notice_data(RegStatusCard.render_upon_data);
    },
    render_upon_data: function() {
        //If more than one data source, multiple callbacks point to this function
        //Delay rendering until all requests are complete
        //Do something smart about not showing error if AJAX is pending
        if (!RegStatusCard._has_all_data()) {
            RegStatusCard.dom_target.html(CardWithError.render());
            return;
        }
        RegStatusCard._render();
    },

    _has_all_data: function () {
        if (WSData.notice_data()) {
            return true;
        }
        return false;
    },

    _render: function () {
        var source = $("#reg_status_card").html();
        var template = Handlebars.compile(source);
        var reg_notices = Notices.get_notices_for_tag("reg_card_messages");
        var reg_holds = Notices.get_notices_for_tag("reg_card_holds");
        var reg_date = Notices.get_notices_for_tag("est_reg_date");

        //Get hold count from notice attrs
        var hold_count = 0;
        $.each(reg_holds, function(idx, notice) {
            $.each(notice['attributes'], function(idx, attribute){
                if (attribute['name'] === "Holds") {<commit_msg>Reg card error title for MUWM-1779<commit_after>var RegStatusCard = {
    name: 'RegStatusCard',
    dom_target: undefined,

    render_init: function() {
        WSData.fetch_notice_data(RegStatusCard.render_upon_data,RegStatusCard.render_error);
    },
    render_upon_data: function() {
        //If more than one data source, multiple callbacks point to this function
        //Delay rendering until all requests are complete
        //Do something smart about not showing error if AJAX is pending
        if (!RegStatusCard._has_all_data()) {
            RegStatusCard.render_error();
            return;
        }
        RegStatusCard._render();
    },

    _has_all_data: function () {
        if (WSData.notice_data()) {
            return true;
        }
        return false;
    },
    render_error: function () {1779
        RegStatusCard.dom_target.html(CardWithError.render("Registration"));
    },

    _render: function () {
        var source = $("#reg_status_card").html();
        var template = Handlebars.compile(source);
        var reg_notices = Notices.get_notices_for_tag("reg_card_messages");
        var reg_holds = Notices.get_notices_for_tag("reg_card_holds");
        var reg_date = Notices.get_notices_for_tag("est_reg_date");

        //Get hold count from notice attrs
        var hold_count = 0;
        $.each(reg_holds, function(idx, notice) {
            $.each(notice['attributes'], function(idx, attribute){
                if (attribute['name'] === "Holds") {
{'fraction_non_alphanumeric': 0.10885544277213861, 'fraction_numerical': 0.0035001750087504373, 'mean_word_length': 2.5859473023839397, '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': '2876157', 'n_tokens_mistral': 831, 'n_tokens_neox': 807, 'n_words': 187}