<commit_before>// ==UserScript==
// @name        OSN HAX
// @namespace   com.oracle.osn.hax
// @description Hacks and modifications to enhance your Oracle Social Network user experience
// @include     https://osn-fusioncrm.oracle.com/osn/web/*
// @version     1.0
// @grant       none
// @run-at      document-start
// ==/UserScript==
function waitAndInstall(){
  var userName = document.getElementById('userName');
  if(userName === null){
    setTimeout(function(){waitAndInstall();},1000);
  }
  else{
    window.OSNH = {
        BASE_URLS: {
            'release':'https://stbeehive.oracle.com/content/dav/st/osn-hax/release/',
            'testing':'https://osn-hax.herokuapp.com/',
            'development':'https://c9.io/exjones/osn-hax/workspace/'
        },
        loadConfig:function(){
            var config = (typeof(window.localStorage) !== 'undefined') ? window.localStorage['OSNHAX_config'] : null;
            if(config === null || config === "") config = '{"channel":"release","components":null}';
            return JSON.parse(config);
        },
        saveConfig:function(obj){
            if(typeof(window.localStorage) !== 'undefined'){<commit_msg>Changed null checking in config load<commit_after>// ==UserScript==
// @name        OSN HAX
// @namespace   com.oracle.osn.hax
// @description Hacks and modifications to enhance your Oracle Social Network user experience
// @include     https://osn-fusioncrm.oracle.com/osn/web/*
// @version     1.0
// @grant       none
// @run-at      document-start
// ==/UserScript==
function waitAndInstall(){
  var userName = document.getElementById('userName');
  if(userName === null){
    setTimeout(function(){waitAndInstall();},1000);
  }
  else{
    window.OSNH = {
        BASE_URLS: {
            'release':'https://stbeehive.oracle.com/content/dav/st/osn-hax/release/',
            'testing':'https://osn-hax.herokuapp.com/',
            'development':'https://c9.io/exjones/osn-hax/workspace/'
        },
        loadConfig:function(){
            var config = (typeof(window.localStorage) !== 'undefined') ? window.localStorage['OSNHAX_config'] : null;
            if(typeof(config) === 'undefined' || config === '') config = '{"channel":"release","components":null}';
            return JSON.parse(config);
        },
        saveConfig:function(obj){
            if(typeof(window.localStorage) !== 'undefined'){
{'fraction_non_alphanumeric': 0.17336683417085427, 'fraction_numerical': 0.005862646566164154, 'mean_word_length': 2.7445141065830723, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '3167247', 'n_tokens_mistral': 741, 'n_tokens_neox': 714, 'n_words': 122}