<commit_before>/*global rg2:false */
/*global console:false */
/*global localStorage:false */
/*global rg2Config:false */
(function () {
  var config, options, dictionary;

  config = {
    DEFAULT_SCALE_FACTOR : 1.1,
    TAB_EVENTS : 0,
    TAB_COURSES : 1,
    TAB_RESULTS : 2,
    TAB_DRAW : 3,
    TAB_LOGIN : 4,
    TAB_CREATE : 5,
    TAB_EDIT : 6,
    TAB_MAP : 7,
    INVALID_MAP_ID: 9999,
    // translated when output so leave as English here
    DEFAULT_NEW_COMMENT : "Type your comment",
    DEFAULT_EVENT_COMMENT : "Comments (optional)",
    // added to resultid when saving a GPS track
    GPS_RESULT_OFFSET : 50000,
    MASS_START_REPLAY : 1,
    REAL_TIME_REPLAY : 2,
    // dropdown selection value
    MASS_START_BY_CONTROL : 99999,
    VERY_HIGH_TIME_IN_SECS : 99999,
    // screen sizes for different layouts
    BIG_SCREEN_BREAK_POINT : 800,
    SMALL_SCREEN_BREAK_POINT : 500,
    PURPLE : '#b300ff',
    RED : '#ff0000',
    GREEN : '#00ff00',
    GREY : '#e0e0e0',
    RED_30 : 'rgba(255,0,0,0.3)',
    GREEN_30 : 'rgba(0,255,0,0.3)',
    WHITE : '#ffffff',
    BLACK : '#000000',
    RUNNER_DOT_RADIUS : 6,
    HANDLE_DOT_RADIUS : 7,
    HANDLE_COLOUR: '#ff0000',
    // parameters for call to draw courses
    DIM : 0.75,
    FULL_INTENSITY : 1.0,
    // values of event format
    NORMAL_EVENT : 1,
    EVENT_WITHOUT_RESULTS : 2,
    SCORE_EVENT : 3,
    // version gets set automatically by grunt file during build process
    RG2VERSION: '1.2.7',
    TIME_NOT_FOUND : 9999,
    // values for evt.which
    RIGHT_CLICK : 3,
    DO_NOT_SAVE_COURSE: 9999,
    FORMAT_NORMAL: 1,
    FORMAT_NO_RESULTS: 2,
    FORMAT_SCORE_EVENT: 3,
    DISPLAY_ALL_COURSES: 99999
  };

  options = {
    // initialised to default values: overwritten from storage later
    mapIntensity : 1,
    routeIntensity : 1,
    replayFontSize : 12,
    courseWidth : 3,
    routeWidth : 4,
    circleSize : 20,
    snap : true,
    showThreeSeconds : false,
    showGPSSpeed : false,
    // align map with next control at top when drawing route
    alignMap: false
  };

  // translation function
  function t(str) {
    if (dictionary.hasOwnProperty(str)) {
      return dictionary[str];
    }
    return str;
  }

  function translateTextFields() {
    var i, selector, text;
    selector = ["#rg2-events-tab a", "#rg2-courses-tab a", "#rg2-results-tab a", "#rg2-draw-tab a", '#rg2-draw-title', '#draw-text-1', '#draw-text-2', '#draw-text-3',
      '#draw-text-4', '#draw-text-5', '#rg2-load-gps-title', '.rg2-options-dialog .ui-dialog-title'];
    text = ['Events', 'Courses', 'Results', 'Draw', 'Draw route', 'Left click to add/lock/unlock a handle', 'Green - draggable', 'Red - locked', 'Right click to delete a handle',
      'Drag a handle to adjust track around locked point(s)', 'Load GPS file (GPX or TCX)', 'Configuration options'];
    for (i = 0; i < selector.length; i += 1) {
      $(selector[i]).text(t(text[i]));
    }
  }

  function translateTitleProperties() {
    var i, selector, text;
    selector = ["#rg2-hide-info-panel-icon", '#btn-about', '#btn-options', '#btn-zoom-out', '#btn-zoom-in', '#btn-reset', '#btn-show-splits', '#rg2-splits-table', '#btn-slower',
      '#btn-faster', '#btn-rotate-right', '#btn-rotate-left'];
    text = ["Hide info panel", 'Help', 'Options', 'Zoom out', 'Zoom in', 'Reset', 'Splits', 'Splits table', 'Slower', 'Faster', 'Rotate right', 'Rotate-left'];
    for (i = 0; i < selector.length; i += 1) {
      $(selector[i]).prop('title', t(text[i]));
    }
  }<commit_msg>Correct rotation translation<commit_after>/*global rg2:false */
/*global console:false */
/*global localStorage:false */
/*global rg2Config:false */
(function () {
  var config, options, dictionary;

  config = {
    DEFAULT_SCALE_FACTOR : 1.1,
    TAB_EVENTS : 0,
    TAB_COURSES : 1,
    TAB_RESULTS : 2,
    TAB_DRAW : 3,
    TAB_LOGIN : 4,
    TAB_CREATE : 5,
    TAB_EDIT : 6,
    TAB_MAP : 7,
    INVALID_MAP_ID: 9999,
    // translated when output so leave as English here
    DEFAULT_NEW_COMMENT : "Type your comment",
    DEFAULT_EVENT_COMMENT : "Comments (optional)",
    // added to resultid when saving a GPS track
    GPS_RESULT_OFFSET : 50000,
    MASS_START_REPLAY : 1,
    REAL_TIME_REPLAY : 2,
    // dropdown selection value
    MASS_START_BY_CONTROL : 99999,
    VERY_HIGH_TIME_IN_SECS : 99999,
    // screen sizes for different layouts
    BIG_SCREEN_BREAK_POINT : 800,
    SMALL_SCREEN_BREAK_POINT : 500,
    PURPLE : '#b300ff',
    RED : '#ff0000',
    GREEN : '#00ff00',
    GREY : '#e0e0e0',
    RED_30 : 'rgba(255,0,0,0.3)',
    GREEN_30 : 'rgba(0,255,0,0.3)',
    WHITE : '#ffffff',
    BLACK : '#000000',
    RUNNER_DOT_RADIUS : 6,
    HANDLE_DOT_RADIUS : 7,
    HANDLE_COLOUR: '#ff0000',
    // parameters for call to draw courses
    DIM : 0.75,
    FULL_INTENSITY : 1.0,
    // values of event format
    NORMAL_EVENT : 1,
    EVENT_WITHOUT_RESULTS : 2,
    SCORE_EVENT : 3,
    // version gets set automatically by grunt file during build process
    RG2VERSION: '1.2.7',
    TIME_NOT_FOUND : 9999,
    // values for evt.which
    RIGHT_CLICK : 3,
    DO_NOT_SAVE_COURSE: 9999,
    FORMAT_NORMAL: 1,
    FORMAT_NO_RESULTS: 2,
    FORMAT_SCORE_EVENT: 3,
    DISPLAY_ALL_COURSES: 99999
  };

  options = {
    // initialised to default values: overwritten from storage later
    mapIntensity : 1,
    routeIntensity : 1,
    replayFontSize : 12,
    courseWidth : 3,
    routeWidth : 4,
    circleSize : 20,
    snap : true,
    showThreeSeconds : false,
    showGPSSpeed : false,
    // align map with next control at top when drawing route
    alignMap: false
  };

  // translation function
  function t(str) {
    if (dictionary.hasOwnProperty(str)) {
      return dictionary[str];
    }
    return str;
  }

  function translateTextFields() {
    var i, selector, text;
    selector = ["#rg2-events-tab a", "#rg2-courses-tab a", "#rg2-results-tab a", "#rg2-draw-tab a", '#rg2-draw-title', '#draw-text-1', '#draw-text-2', '#draw-text-3',
      '#draw-text-4', '#draw-text-5', '#rg2-load-gps-title', '.rg2-options-dialog .ui-dialog-title'];
    text = ['Events', 'Courses', 'Results', 'Draw', 'Draw route', 'Left click to add/lock/unlock a handle', 'Green - draggable', 'Red - locked', 'Right click to delete a handle',
      'Drag a handle to adjust track around locked point(s)', 'Load GPS file (GPX or TCX)', 'Configuration options'];
    for (i = 0; i < selector.length; i += 1) {
      $(selector[i]).text(t(text[i]));
    }
  }

  function translateTitleProperties() {
    var i, selector, text;
    selector = ["#rg2-hide-info-panel-icon", '#btn-about', '#btn-options', '#btn-zoom-out', '#btn-zoom-in', '#btn-reset', '#btn-show-splits', '#rg2-splits-table', '#btn-slower',
      '#btn-faster', '#btn-rotate-right', '#btn-rotate-left'];
    text = ["Hide info panel", 'Help', 'Options', 'Zoom out', 'Zoom in', 'Reset', 'Splits', 'Splits table', 'Slower', 'Faster', 'Rotate right', 'Rotate left'];
    for (i = 0; i < selector.length; i += 1) {
      $(selector[i]).prop('title', t(text[i]));
    }
  }
{'fraction_non_alphanumeric': 0.15106895087073482, 'fraction_numerical': 0.03907687951295483, 'mean_word_length': 3.0296634341129494, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, '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': '2037999', 'n_tokens_mistral': 2755, 'n_tokens_neox': 2504, 'n_words': 639}