<commit_before>function CanoSignupDialogNode(params) {
    var self=this,
        canopy = params.canopyClient,
        dispatcher = params.dispatcher,
        $me;

    $.extend(this, new CanoNode());

    this.get$ = function() {
        return $me;
    }

    this.onLive = function() {
        $("#signup_button").off('click').on("click", function() {
            var username = $("#signup_username").val();
            var email = $("#signup_email").val();
            var password = $("#signup_password").val();
            var password_confirm = $("#signup_password2").val();
            canopy.createAccount(username, email, password, password_confirm,
                function() {
                    dispatcher.showPage("main");
                },
                function() {
                    alert("Create acct failed");
                }
            );
        });
        $("#signup_submit").off('click').on('click', function() {
            self.expand();
            if (params.onExpand())
                params.onExpand();
        });<commit_msg>Create account in signup form<commit_after>function CanoSignupDialogNode(params) {
    var self=this,
        canopy = params.canopyClient,
        dispatcher = params.dispatcher,
        $me;

    $.extend(this, new CanoNode());

    this.get$ = function() {
        return $me;
    }

    this.onLive = function() {
        $("#signup_button").off('click').on("click", function() {
            var username = $("#signup_username").val();
            var email = $("#signup_email").val();
            var password = $("#signup_password").val();
            var passwordConfirm = $("#signup_<PASSWORD>").val();
            canopy.createAccount({
                username: username, 
                email: email, 
                password: password, 
                passwordConfirm: <PASSWORD>,
                onSuccess: function() {
                    dispatcher.showPage("main");
                },
                onError: function() {
                    alert("Create acct failed");
                }
            });
        });
        $("#signup_submit").off('click').on('click', function() {
            self.expand();
            if (params.onExpand())
                params.onExpand();
        });
{'fraction_non_alphanumeric': 0.15188762071992976, 'fraction_numerical': 0.0004389815627743635, 'mean_word_length': 1.6592765460910153, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4646507', 'n_tokens_mistral': 601, 'n_tokens_neox': 573, 'n_words': 107}