<commit_before><script type="text/javascript">
  // Selector function
  var $ = function(sel){ return document.querySelector(sel); };

    function showStatus(msg, classId) {
      var status = $('#status'); 
      status.className = ""
      status.innerHTML = msg;
      if (classId) {
        status.classList.add(classId);
      }
    }

  // use async call to determine initial state of dropdown lists
  // from contents of chart cells
  var columnDefs;

  // Setup map visualization via Charts API
  google.load('visualization', '1.0', { 'packages': ['map'] });
  google.setOnLoadCallback(getGoogleMap);

  google.script.run.withSuccessHandler(function(res){
    var refs = {};
    for(var idx in res){
      refs[res[idx].name] = res[idx];
    }
    columnDefs = refs;
  }).clientGetVariables();

  function getCoordinates(){
    var latitude = $('#latitude').value;
    var longitude = $('#longitude').value;
    
    showStatus('Getting map...');
    
    google.script.run
      .withSuccessHandler(
        function(res) {
          getGoogleMap(event, res);
          showStatus(null);
        }
      ).clientGetCoordinates(latitude, longitude)
  }

  function getGoogleMap(event, coordinates){
    var load = [];
    if (coordinates) {
      load = coordinates;
    } else {
      load = [['Lat', 'Long', 'Name'], [41.8339042, -88.0123485, 'Placeholder']];
    }<commit_msg>Fix map in Firefox<commit_after><script type="text/javascript">
  // Selector function
  var $ = function(sel){ return document.querySelector(sel); };

    function showStatus(msg, classId) {
      var status = $('#status'); 
      status.className = ""
      status.innerHTML = msg;
      if (classId) {
        status.classList.add(classId);
      }
    }

  // use async call to determine initial state of dropdown lists
  // from contents of chart cells
  var columnDefs;

  // Setup map visualization via Charts API
  google.load('visualization', '1.0', { 'packages': ['map'] });
  google.setOnLoadCallback(getGoogleMap);

  google.script.run.withSuccessHandler(function(res){
    var refs = {};
    for(var idx in res){
      refs[res[idx].name] = res[idx];
    }
    columnDefs = refs;
  }).clientGetVariables();

  function getCoordinates(){
    var latitude = $('#latitude').value;
    var longitude = $('#longitude').value;
    
    showStatus('Getting map...');
    
    google.script.run
      .withSuccessHandler(
        function(res) {
          getGoogleMap(null, res);
          showStatus(null);
        }
      ).clientGetCoordinates(latitude, longitude)
  }

  function getGoogleMap(event, coordinates){
    var load = [];
    if (coordinates) {
      load = coordinates;
    } else {
      load = [['Lat', 'Long', 'Name'], [41.8339042, -88.0123485, 'Placeholder']];
    }
{'fraction_non_alphanumeric': 0.14676258992805755, 'fraction_numerical': 0.014388489208633094, 'mean_word_length': 2.7785326086956523, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2830144', 'n_tokens_mistral': 871, 'n_tokens_neox': 822, 'n_words': 193}