{"size": 1727, "ext": "js", "max_stars_repo_path": "WebContent/jsweet/plgns/js/jsweetbegin.js", "max_stars_repo_name": "JaneJingtian/JSweetWeb", "max_stars_repo_stars_event_min_datetime": "2019-09-19T19:31:19.000Z", "max_stars_repo_stars_event_max_datetime": "2019-09-19T19:31:19.000Z", "max_issues_repo_path": "WebContent/jsweet/plgns/js/jsweetbegin.js", "max_issues_repo_name": "JaneJingtian/JSweetWeb", "max_issues_repo_issues_event_min_datetime": "2020-03-04T23:33:56.000Z", "max_issues_repo_issues_event_max_datetime": "2021-12-09T21:34:15.000Z", "max_forks_repo_path": "WebContent/jsweet/plgns/js/jsweetbegin.js", "max_forks_repo_name": "JaneJingtian/JSweetWeb", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 5, "max_forks_count": null, "avg_line_length": 30.8392857143, "max_line_length": 82, "alphanum_fraction": 0.521134916}
window.jsweetGetRoot=function () {
    var path = document.location.pathname
    var deletePath = document.getElementsByTagName("base")[0].getAttribute("href")
    var numberOfSlash = function (pathName) {
        var num = 0;
        for (var i = 0; i < pathName.length; i++) {
            if (pathName.charAt(i) == '/') {
                num = num + 1;
            }
        }
        return num;

    }
    //get the number of "/" and  delete.
    var validSlash = numberOfSlash(path) - numberOfSlash(deletePath) - 1
    //a method that find the valid length of the virtual path. 
    var virtualPath = function (validSlash, path) {
        var len = 0;
        var traversedSlash = 0;
        for (var i = 0; i < path.length; i++) {
            if (traversedSlash == validSlash && path.charAt(i) == '/') {
                len = i;
            }
            if (path.charAt(i) == '/') {
                traversedSlash = traversedSlash + 1;
            }
        }
        return len;
    }
    var ans = path.substring(0, virtualPath(validSlash, path));
     return ans
}

require.config(
    {
        baseUrl:jsweetGetRoot(),
        paths: {
           // basic modal 
           JSweetDlg:'jsweet/plgns/src/common/JSWTDialog',
           JSweetHTMLDir:'jsweet/plgns/html',
           JSweetForm:'jsweet/plgns/src/common/JSweetForm',
           JSweetGrid:'jsweet/plgns/src/common/JSweetGrid',
           JSweetPage:'jsweet/plgns/src/common/JSWTPage'
         },
        waitSeconds: 0,
        shim: {
          
        },
        map: {
          '*': {
            'css': 'jsweet/plgns/deps/require/plugin/require-css/css.min',
            'text': 'jsweet/plgns/deps/require/plugin/text'
          }
        }
    }
)