<commit_before>dojo.require('esri.map');
dojo.require('esri.graphic');
dojo.require('esri.geometry');
dojo.require('esri.tasks.geometry');
var map, planeG, gameTickInterval, destP, destG, time, plane, kbrd=false;
var items=['trousers','sour pickles','ice axes','trombones','voodoo dolls'];
function init() {
require(['dojo/text!./places.json', 'dojo/text!./plane.json'],function (a,b) {
    capitals = JSON.parse(a);
    planeG = JSON.parse(b);
    map = new esri.Map('mapDiv', {basemap: 'streets',center: [-100, 50],
      zoom: 3 });
  });
}
function pickOne(array) {return array[Math.floor(Math.random()*array.length)]}
function start() {
  document.getElementById('start').disabled = true;
  document.getElementById('summary').className = 'invisible';
  time = 0;
  var from = capitals[Math.floor(Math.random() * capitals.length)];
  var dest = pickOne(capitals);
  document.getElementById('instructions').className = 'message';
  document.getElementById('what').innerHTML = pickOne(items);
  document.getElementById('where').innerHTML=dest.capital+', '+dest.country;
  destP = new esri.geometry.Point(dest.y, dest.x);
  destG = new esri.Graphic(destP, new esri.symbol.SimpleMarkerSymbol())
  map.graphics.add(destG);
  if (!plane) {
    plane = new esri.Graphic(planeG);
    map.graphics.add(plane);
    plane.cent = { x:-1663297.5653581168, y: 6448545.565071885};
    plane.rot = 1.57079633; // 12 o'clock due to how plane drawed
  }
  gameTickInterval = window.setInterval(tick, 33);
  document.onkeypress = function (e) {
    var c = e.charCode;
    if (c in {97:'',122:'',91:''}) rotate(plane, 10); // keys: z, a, [<commit_msg>Initial rotation to fly horizontally<commit_after>dojo.require('esri.map');
dojo.require('esri.graphic');
dojo.require('esri.geometry');
dojo.require('esri.tasks.geometry');
var map, planeG, gameTickInterval, destP, destG, time, plane, kbrd=false;
var items=['trousers','sour pickles','ice axes','trombones','voodoo dolls'];
function init() {
require(['dojo/text!./places.json', 'dojo/text!./plane.json'],function (a,b) {
    capitals = JSON.parse(a);
    planeG = JSON.parse(b);
    map = new esri.Map('mapDiv', {basemap: 'streets',center: [-100, 50],
      zoom: 3 });
  });
}
function pickOne(array) {return array[Math.floor(Math.random()*array.length)]}
function start() {
  document.getElementById('start').disabled = true;
  document.getElementById('summary').className = 'invisible';
  time = 0;
  var from = capitals[Math.floor(Math.random() * capitals.length)];
  var dest = pickOne(capitals);
  document.getElementById('instructions').className = 'message';
  document.getElementById('what').innerHTML = pickOne(items);
  document.getElementById('where').innerHTML=dest.capital+', '+dest.country;
  destP = new esri.geometry.Point(dest.y, dest.x);
  destG = new esri.Graphic(destP, new esri.symbol.SimpleMarkerSymbol())
  map.graphics.add(destG);
  if (!plane) {
    plane = new esri.Graphic(planeG);
    map.graphics.add(plane);
    plane.cent = { x:-1663297.5653581168, y: 6448545.565071885};
    plane.rot = 1.57079633; // 12 o'clock due to how plane drawed
    rotate(plane, 90);
  }
  gameTickInterval = window.setInterval(tick, 33);
  document.onkeypress = function (e) {
    var c = e.charCode;
    if (c in {97:'',122:'',91:''}) rotate(plane, 10); // keys: z, a, [
{'fraction_non_alphanumeric': 0.1838456901748041, 'fraction_numerical': 0.0379746835443038, 'mean_word_length': 4.874336283185841, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5343788', 'n_tokens_mistral': 1238, 'n_tokens_neox': 1137, 'n_words': 222}