<commit_before>'use strict';

var R6MapsControls = (function($, window, document, R6MapsLangTerms, undefined) {
  var mapControl = $('#map-control'),
    objectiveControl = $('#objective-control'),
    floorControl = $('#floor-control'),
    zoomControl = $('#zoom-range'),
    SELECTED_CLASS = 'selected',
    ZOOMED_IN_FAR_CLASS = 'zoomed-in-far',
    ZOOMED_OUT_FAR_CLASS = 'zoomed-out-far';

  var populateMapOptions = function populateMapOptions(mapData) {
    var optionsAsString = '';

    for (var mapKey in mapData) {
      if (mapData.hasOwnProperty(mapKey)) {
        optionsAsString += '<option value="' + mapKey + '">' + mapData[mapKey].name + '</option>';
      }
    }
    mapControl.html(optionsAsString);
  };

  var getCurrentlySelectedMap = function getCurrentlySelectedMap() {
    return mapControl.val();
  };

  var trySelectMap = function trySelectMap(map) {
    trySelectOption(mapControl, map);
  };

  var setupMapChangeEvent = function setupMapChangeEvent(callback) {
    mapControl.on('change', callback);
  };

  var populateObjectiveOptions = function populateObjectiveOptions(objectives) {
    var options = '',
      objectiveTerms = R6MapsLangTerms.terms.objectives;

    options += '<option value="all">' + objectiveTerms['showAll'] + '</option>';
    objectives.forEach(function(objective) {
      options += '<option value="' + objective + '">' + objectiveTerms[objective] + '</option>';
    });<commit_msg>Correcting eslint issue<commit_after>'use strict';

var R6MapsControls = (function($, window, document, R6MapsLangTerms, undefined) {
  var mapControl = $('#map-control'),
    objectiveControl = $('#objective-control'),
    floorControl = $('#floor-control'),
    zoomControl = $('#zoom-range'),
    SELECTED_CLASS = 'selected',
    ZOOMED_IN_FAR_CLASS = 'zoomed-in-far',
    ZOOMED_OUT_FAR_CLASS = 'zoomed-out-far';

  var populateMapOptions = function populateMapOptions(mapData) {
    var optionsAsString = '';

    for (var mapKey in mapData) {
      if (mapData.hasOwnProperty(mapKey)) {
        optionsAsString += '<option value="' + mapKey + '">' + mapData[mapKey].name + '</option>';
      }
    }
    mapControl.html(optionsAsString);
  };

  var getCurrentlySelectedMap = function getCurrentlySelectedMap() {
    return mapControl.val();
  };

  var trySelectMap = function trySelectMap(map) {
    trySelectOption(mapControl, map);
  };

  var setupMapChangeEvent = function setupMapChangeEvent(callback) {
    mapControl.on('change', callback);
  };

  var populateObjectiveOptions = function populateObjectiveOptions(objectives) {
    var options = '',
      objectiveTerms = R6MapsLangTerms.terms.objectives;

    options += '<option value="all">' + objectiveTerms.showAll + '</option>';
    objectives.forEach(function(objective) {
      options += '<option value="' + objective + '">' + objectiveTerms[objective] + '</option>';
    });
{'fraction_non_alphanumeric': 0.14690632561354994, 'fraction_numerical': 0.002073971655720705, 'mean_word_length': 4.186379928315413, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '331207', 'n_tokens_mistral': 889, 'n_tokens_neox': 861, 'n_words': 166}