<commit_before>var rAppid;

/** ECMA SCRIPT COMPLIANT**/
if(!String.prototype.trim){
    String.prototype.trim = function () {
        return this.replace(/^\s+|\s+$/g, '');
    };
}

(function (exports, inherit, requirejs, define, underscore, XMLHttpRequest, flow, document) {

    if (!requirejs) {
        throw "require.js is needed";
    }

    if (!define) {
        throw "define is needed";
    }

    if (!underscore) {
        throw "underscore is needed"
    }

    if (!flow) {
        throw "flow.js is needed";
    }

    /***
     * marks a function to be executed asycn
     * @return {*}
     */
    Function.prototype.async = function () {
        this._async = true;
        return this;
    };

    // global requirejs setup
    requirejs.config({
        paths: {
            "xaml": "js/plugins/xaml",
            "json": "js/plugins/json"
        }
    });

    var xamlApplication = /^(xaml!)?(.+?)(\.xml)?$/;

    var Rewrite = function (from, to) {
            this.$from = from;
            this.$to = to;
        },
        defaultNamespaceMap = {
            "http://www.w3.org/1999/xhtml": "js.html"
        },
        defaultRewriteMap = [
            new Rewrite(/^js.html.(input)$/, "js/html/Input"),
            new Rewrite(/^js.html.(select)$/, "js/html/Select"),
            new Rewrite(/^js.html.(textarea)$/, "js/html/TextArea"),
            new Rewrite(/^js.html.(option)$/, "js/html/Option"),
            new Rewrite(/^js.html.(.+)$/, "js/html/DomElement")
        ];

    var _rAppid = {

        createApplicationContext: function(applicationDomain, mainClass, config, callback) {

            config = config || {};

            var internalCreateApplicationContext = function (config) {

                config.xamlClasses = config.xamlClasses || [];<commit_msg>fixed rewritemap<commit_after>var rAppid;

/** ECMA SCRIPT COMPLIANT**/
if(!String.prototype.trim){
    String.prototype.trim = function () {
        return this.replace(/^\s+|\s+$/g, '');
    };
}

(function (exports, inherit, requirejs, define, underscore, XMLHttpRequest, flow, document) {

    if (!requirejs) {
        throw "require.js is needed";
    }

    if (!define) {
        throw "define is needed";
    }

    if (!underscore) {
        throw "underscore is needed"
    }

    if (!flow) {
        throw "flow.js is needed";
    }

    /***
     * marks a function to be executed asycn
     * @return {*}
     */
    Function.prototype.async = function () {
        this._async = true;
        return this;
    };

    // global requirejs setup
    requirejs.config({
        paths: {
            "xaml": "js/plugins/xaml",
            "json": "js/plugins/json"
        }
    });

    var xamlApplication = /^(xaml!)?(.+?)(\.xml)?$/;

    var Rewrite = function (from, to) {
            this.$from = from;
            this.$to = to;
        },
        defaultNamespaceMap = {
            "http://www.w3.org/1999/xhtml": "js.html"
        },
        defaultRewriteMap = [
            new Rewrite(/^js\/html\/(a)$/, "js/html/a"),
            new Rewrite(/^js\/html\/(input)$/, "js/html/Input"),
            new Rewrite(/^js\/html\/(select)$/, "js/html/Select"),
            new Rewrite(/^js\/html\/(textarea)$/, "js/html/TextArea"),
            new Rewrite(/^js\/html\/(option)$/, "js/html/Option"),
            new Rewrite(/^js\/html\/(.+)$/, "js/html/DomElement")
        ];

    var _rAppid = {

        createApplicationContext: function(applicationDomain, mainClass, config, callback) {

            config = config || {};

            var internalCreateApplicationContext = function (config) {

                config.xamlClasses = config.xamlClasses || [];
{'fraction_non_alphanumeric': 0.17001629549158065, 'fraction_numerical': 0.0027159152634437804, 'mean_word_length': 1.8795934323690384, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '697917', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1117, 'n_words': 228}