<commit_before>// ==UserScript==
// @id             <EMAIL>
// @name           iitc: Max-Links-Plugin
// @version        0.1
// @updateURL      https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/max-links.user.js
// @downloadURL    https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/max-links.user.js
// @description    Calculates how to link the portals to create the maximum number of fields.
// @include        http://www.ingress.com/intel*
// @match          http://www.ingress.com/intel*
// ==/UserScript==

function wrapper() {
  // ensure plugin framework is there, even if iitc is not yet loaded
  if(typeof window.plugin !== 'function') 
    window.plugin = function() {};

  // PLUGIN START ////////////////////////////////////////////////////////

  // use own namespace for plugin
  window.plugin.maxLinks = function() {};
  
  // const values
  var MAX_DRAWN_LINKS = 400;
  var MAX_DRAWN_LINKS_INCREASED_LIMIT = 1000;
  var STROKE_STYLE = {
                       color: '#FF0000',
                       opacity: 1,
                       weight:2,
                       clickable: false,
                       smoothFactor: 10
                     };
  var delaunayScriptLocation = "https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/dist/delaunay.js";

  window.plugin.maxLinks.layer = null;

  var updating = false;
  var renderLimitReached = false;

  window.plugin.maxLinks.updateLayer = function() {
    if (updating || window.plugin.maxLinks.layer === null || !window.map.hasLayer(window.plugin.maxLinks.layer))
      return;
    updating = true;
    window.plugin.maxLinks.layer.clearLayers();<commit_msg>fixed coding style<commit_after>// ==UserScript==
// @id             <EMAIL>
// @name           iitc: Max-Links-Plugin
// @version        0.1
// @updateURL      https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/max-links.user.js
// @downloadURL    https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/plugins/max-links.user.js
// @description    Calculates how to link the portals to create the maximum number of fields.
// @include        http://www.ingress.com/intel*
// @match          http://www.ingress.com/intel*
// ==/UserScript==

function wrapper() {
  // ensure plugin framework is there, even if iitc is not yet loaded
  if(typeof window.plugin !== 'function') 
    window.plugin = function() {};

  // PLUGIN START ////////////////////////////////////////////////////////

  // use own namespace for plugin
  window.plugin.maxLinks = function() {};
  
  // const values
  var MAX_DRAWN_LINKS = 400;
  var MAX_DRAWN_LINKS_INCREASED_LIMIT = 1000;
  var STROKE_STYLE = {
    color: '#FF0000',
    opacity: 1,
    weight:2,
    clickable: false,
    smoothFactor: 10
  };
  var delaunayScriptLocation = 'https://raw.github.com/breunigs/ingress-intel-total-conversion/gh-pages/dist/delaunay.js';

  window.plugin.maxLinks.layer = null;

  var updating = false;
  var renderLimitReached = false;

  window.plugin.maxLinks.updateLayer = function() {
    if (updating || window.plugin.maxLinks.layer === null || !window.map.hasLayer(window.plugin.maxLinks.layer))
      return;
    updating = true;
    window.plugin.maxLinks.layer.clearLayers();
{'fraction_non_alphanumeric': 0.16389476867251285, 'fraction_numerical': 0.010281221651043242, 'mean_word_length': 2.3179538615847544, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 4, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6580566', 'n_tokens_mistral': 1053, 'n_tokens_neox': 1000, 'n_words': 203}