<commit_before>define(["jquery"],function($){

    /*
        AccountError is used to report errors through error callback function
        (see details below ). Example usage:

        new AccountError("password","<PASSWORD>")

    */

    var AccountError = function(fieldName, errorDescription){
        return {
            getFieldName : function(){
                return fieldName;
            },

            getErrorDescription : function(){
                return errorDescription;
            }
        };
    };



    /*
        Every method accepts 0 or more data values and two callbacks (success and error)

        Success callback spec:

            function success(data){
                // data includes any additonal data you want to pass back
            }

        Error callback spec:

            function error(errors){
                // errors is a list of AccountError instances
            }

    */


    return {

        isValidDomain : function(domain){
            return (
                /^[a-z]{1}[a-z0-9-]{1,18}[a-z0-9]{1}\.codenvy\.com/g
            ).exec(domain) !== null ;
        },

        signUp : function(email,domain,success,error){

            //example

            //hit the server with the data we got back

<commit_msg>add trace on sign up<commit_after>define(["jquery"],function($){

    /*
        AccountError is used to report errors through error callback function
        (see details below ). Example usage:

        new AccountError("password","<PASSWORD>")

    */

    var AccountError = function(fieldName, errorDescription){
        return {
            getFieldName : function(){
                return fieldName;
            },

            getErrorDescription : function(){
                return errorDescription;
            }
        };
    };



    /*
        Every method accepts 0 or more data values and two callbacks (success and error)

        Success callback spec:

            function success(data){
                // data includes any additonal data you want to pass back
            }

        Error callback spec:

            function error(errors){
                // errors is a list of AccountError instances
            }

    */


    return {

        isValidDomain : function(domain){
            return (
                /^[a-z]{1}[a-z0-9-]{1,18}[a-z0-9]{1}\.codenvy\.com/g
            ).exec(domain) !== null ;
        },

        signUp : function(email,domain,success,error){

            console.log("signing you up", email, domain);

            //example

            //hit the server with the data we got back


{'fraction_non_alphanumeric': 0.09931245225362872, 'fraction_numerical': 0.007639419404125287, 'mean_word_length': 1.5526315789473684, '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': '899378', 'n_tokens_mistral': 679, 'n_tokens_neox': 622, 'n_words': 191}