<commit_before><%@ page import="grails.converters.JSON" contentType="text/javascript" %>
<%@ page import="grails.util.Environment" %>
<%@ page import="ozone.security.SecurityUtils" %>

var Ozone = Ozone || {};
//externalize any config properties here as javascript properties
//this should be only place where these config properties are exposed to javascript

Ozone.config = ${conf};

//add in contextPath
Ozone.config.webContextPath = window.location.pathname;

// fixes 'Error: Illegal Operator !=' error in IE
Ozone.config.webContextPath = Ozone.config.webContextPath.replace(/\;jsessionid=.*/g,'');

if(Ozone.config.webContextPath.charAt(Ozone.config.webContextPath.length - 1) === '/') {
    Ozone.config.webContextPath = Ozone.config.webContextPath.substr(0,Ozone.config.webContextPath.length - 1);
}

Ozone.config.carousel = {
    restrictedTagGroupsRegex: new RegExp('^(.*,)?\s*'+Ozone.config.pendingApprovalTagGroupName+'\s*(,.*)?$','im'),
    pendingApprovalTagGroupName:Ozone.config.pendingApprovalTagGroupName,
    approvedTagGroupName: Ozone.config.approvedTagGroupName
};

Ozone.config.user = ${user};

Ozone.config.widgetNames = ${widgetNames};

Ozone.config.banner = ${bannerState};

Ozone.config.currentTheme = ${currentTheme};

Ozone.config.loginCookieName = ${Environment.current == Environment.DEVELOPMENT ? "null" : "'" + ozone.security.SecurityUtils.LOGIN_COOKIE_NAME + "'"};

Ozone.config.prefsLocation = window.location.protocol + "//" + window.location.host + window.location.pathname + "prefs";

//for consistency add the properties onto the new OWF namespace
var OWF  = OWF || {};
OWF.config = Ozone.config;
OWF.getContainerUrl = function() {
    //figure out from preference location
    var pref = Ozone.config.prefsLocation;
    return pref.substring(0, pref.length - 6);
};
<commit_msg>Fix illegal operator in IE7<commit_after><%@ page import="grails.converters.JSON" contentType="text/javascript" %>
<%@ page import="grails.util.Environment" %>
<%@ page import="ozone.security.SecurityUtils" %>

var Ozone = Ozone || {};
//externalize any config properties here as javascript properties
//this should be only place where these config properties are exposed to javascript

Ozone.config = ${conf};

//add in contextPath
Ozone.config.webContextPath = window.location.pathname;

// fixes 'Error: Illegal Operator !=' error in IE
Ozone.config.webContextPath = Ozone.config.webContextPath.replace(/\;jsessionid=.*/g,'');

if(Ozone.config.webContextPath.charAt(Ozone.config.webContextPath.length - 1) === '/') {
    Ozone.config.webContextPath = Ozone.config.webContextPath.substr(0,Ozone.config.webContextPath.length - 1);
}

Ozone.config.carousel = {
    restrictedTagGroupsRegex: new RegExp('^(.*,)?\s*'+Ozone.config.pendingApprovalTagGroupName+'\s*(,.*)?$','im'),
    pendingApprovalTagGroupName:Ozone.config.pendingApprovalTagGroupName,
    approvedTagGroupName: Ozone.config.approvedTagGroupName
};

Ozone.config.user = ${user};

Ozone.config.widgetNames = ${widgetNames};

Ozone.config.banner = ${bannerState};

Ozone.config.currentTheme = ${currentTheme};

Ozone.config.loginCookieName = ${Environment.current == Environment.DEVELOPMENT ? "null" : "'" + ozone.security.SecurityUtils.LOGIN_COOKIE_NAME + "'"};

Ozone.config.prefsLocation = window.location.protocol + "//" + window.location.host + window.location.pathname + "prefs";

Ozone.config.prefsLocation = Ozone.config.prefsLocation.replace(/\;jsessionid=.*/g,'');

//for consistency add the properties onto the new OWF namespace
var OWF  = OWF || {};
OWF.config = Ozone.config;
OWF.getContainerUrl = function() {
    //figure out from preference location
    var pref = Ozone.config.prefsLocation;
    return pref.substring(0, pref.length - 6);
};

{'fraction_non_alphanumeric': 0.14688233759457345, 'fraction_numerical': 0.002869814766501435, 'mean_word_length': 4.477142857142857, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5270208', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1187, 'n_words': 220}