<commit_before>// ==UserScript==
// @name         NEXT
// @description  The next generation of Agar.io extension
// @version      0.0.1
// @author       NEXT
// @match        http://agar.io/*
// @match        https://agar.io/*
// @run-at       document-start
// @grant        GM_xmlhttpRequest
// ==/UserScript==
window.stop(), document.documentElement.innerHTML = null, GM_xmlhttpRequest({
  method: "GET",
  url: "http://localhost:8080/",
  onload: function(e) {
    document.open(), document.write(e.responseText), document.close()
  }
});
<commit_msg>NEXT-43 Update userscript to support dev and production version<commit_after>// ==UserScript==
// @name         NEXT
// @description  The next generation of Agar.io extension
// @version      0.0.1
// @author       NEXT
// @match        http://agar.io/*
// @match        https://agar.io/*
// @run-at       document-start
// @grant        GM_xmlhttpRequest
// ==/UserScript==
window.stop();
document.documentElement.innerHTML = null;

var urlMaps = {
  '/': 'http://snsa.github.io/NEXT/',
  '/dev': 'http://localhost:8080/'
};

var url = urlMaps[location.pathname] || urlMaps['/'];

GM_xmlhttpRequest({
  method: 'GET',
  url: url,
  onload: function(e) {
    document.open(), document.write(e.responseText), document.close()
  }
});

{'fraction_non_alphanumeric': 0.18245341614906832, 'fraction_numerical': 0.012422360248447204, 'mean_word_length': 2.704022988505747, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '1523426', 'n_tokens_mistral': 431, 'n_tokens_neox': 413, 'n_words': 91}