<commit_before>// Namespace
var MG = {};

//==============================================================================
// Constants
//==============================================================================

NAMESPACE_SVG   = "http://www.w3.org/2000/svg";
NAMESPACE_XLINK = "http://www.w3.org/1999/xlink";

//

MG.BARRIERS_ROOT_ELEMENT_ID  = "barriers";
MG.HUD_ROOT_ELEMENT_ID       = "hud";
MG.MENU_ROOT_ELEMENT_ID      = "menu";

MG.BARRIER_SPACING = 650.0;
MG.TUNNEL_RADIUS = 100;
MG.MISSILE_LENGTH = 50.0;

MG.LINE_OF_SIGHT = 1600.0;
MG.FIELD_OF_VIEW = 60.0;
MG.PROJECTION_PLANE_DISTANCE = 100;



//==============================================================================
// Utility Functions
//==============================================================================


MG.suspendRedraw = function () {
      // asv doesn't implement suspendRedraw, so we wrap this in a try-block:
      try {
            document.documentElement.suspendRedraw(0);
      }
      catch(e) {}
};


MG.unsuspendRedraw = function () {
      try {
            document.documentElement.suspendRedraw(0);
      }
      catch(e) {}
};


MG.hideMouse = function () {
    var i;
    for (i=0; i<document.styleSheets.length; i++) {
        var styleSheet = document.styleSheets[i];

        if (styleSheet.title === 'style-hide-mouse') {
            styleSheet.disabled = false;
        }
    }
};

MG.showMouse = function () {
    var i;
    for (i=0; i<document.styleSheets.length; i++) {
        var styleSheet = document.styleSheets[i];

        if (styleSheet.title === 'style-hide-mouse') {
            styleSheet.disabled = true;
        }
    }
};



MG.getViewportWidth = function () {
  // TODO
  return 100.0;
};

MG.getViewportHeight = function () {
  // TODO
  return 100.0;
};

<commit_msg>Fixed copy and paste error that caused firefox not to render.<commit_after>// Namespace
var MG = {};

//==============================================================================
// Constants
//==============================================================================

NAMESPACE_SVG   = "http://www.w3.org/2000/svg";
NAMESPACE_XLINK = "http://www.w3.org/1999/xlink";

//

MG.BARRIERS_ROOT_ELEMENT_ID  = "barriers";
MG.HUD_ROOT_ELEMENT_ID       = "hud";
MG.MENU_ROOT_ELEMENT_ID      = "menu";

MG.BARRIER_SPACING = 650.0;
MG.TUNNEL_RADIUS = 100;
MG.MISSILE_LENGTH = 50.0;

MG.LINE_OF_SIGHT = 1600.0;
MG.FIELD_OF_VIEW = 60.0;
MG.PROJECTION_PLANE_DISTANCE = 100;



//==============================================================================
// Utility Functions
//==============================================================================


MG.suspendRedraw = function () {
      // asv doesn't implement suspendRedraw, so we wrap this in a try-block:
      try {
            document.documentElement.suspendRedraw(0);
      }
      catch(e) {}
};


MG.unsuspendRedraw = function () {
      try {
            document.documentElement.unsuspendRedraw(0);
      }
      catch(e) {}
};


MG.hideMouse = function () {
    var i;
    for (i=0; i<document.styleSheets.length; i++) {
        var styleSheet = document.styleSheets[i];

        if (styleSheet.title === 'style-hide-mouse') {
            styleSheet.disabled = false;
        }
    }
};

MG.showMouse = function () {
    var i;
    for (i=0; i<document.styleSheets.length; i++) {
        var styleSheet = document.styleSheets[i];

        if (styleSheet.title === 'style-hide-mouse') {
            styleSheet.disabled = true;
        }
    }
};



MG.getViewportWidth = function () {
  // TODO
  return 100.0;
};

MG.getViewportHeight = function () {
  // TODO
  return 100.0;
};


{'fraction_non_alphanumeric': 0.2945842450765864, 'fraction_numerical': 0.023522975929978117, 'mean_word_length': 3.0997757847533634, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6994260', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1132, 'n_words': 194}