{"size": 1021, "ext": "js", "max_stars_repo_path": "SnowProCorp.ShipmentsWeb/Scripts/Utilities.js", "max_stars_repo_name": "baywet/corebusinesso365appsample", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "SnowProCorp.ShipmentsWeb/Scripts/Utilities.js", "max_issues_repo_name": "baywet/corebusinesso365appsample", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "SnowProCorp.ShipmentsWeb/Scripts/Utilities.js", "max_forks_repo_name": "baywet/corebusinesso365appsample", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 44.3913043478, "max_line_length": 122, "alphanum_fraction": 0.6728697356}
﻿var NegotiumUtilities = window.NegotiumUtilities || {};

NegotiumUtilities.getQueryStringParameter = function (paramToRetrieve) {
    var params = document.URL.split("?")[1].split("&");
    var strParams = "";
    for (var i = 0; i < params.length; i = i + 1) {
        var singleParam = params[i].split("=");
        if (singleParam[0] == paramToRetrieve)
            return singleParam[1];
    }
}

NegotiumUtilities.GetSharePointSecurityParams = function ()
{
    var re = /#$/;
    var params = {
        SPHostUrl: decodeURIComponent(NegotiumUtilities.getQueryStringParameter("SPHostUrl")).replace(re, ""),
        SPLanguage: decodeURIComponent(NegotiumUtilities.getQueryStringParameter("SPLanguage")).replace(re, ""),
        SPClientTag: decodeURIComponent(NegotiumUtilities.getQueryStringParameter("SPClientTag")).replace(re, ""),
        SPProductNumber: decodeURIComponent(NegotiumUtilities.getQueryStringParameter("SPProductNumber")).replace(re, "")
    };
    return $.param(params);
}