<commit_before>
angular.module('coderace.race', ['ui.codemirror'])

.controller('raceController', function ($scope, $rootScope, Race, socket){
  var master = false;
  $scope.room = false;
  $scope.opponentLeft = false;
  $scope.opponentPassed = false;
  $scope.username = Race.username;
  // codemirror options
  
  // codemirror 
  $scope.editorOptions = {
    mode: 'javascript',
    theme: 'cobalt',
    lineNumbers: true,
    lineWrapping: true,
    showCursorWhenSelecting: true,
    autofocus: true,
    keyMap: 'sublime',
    autoCloseBrackets: true,
    tabSize: 2,
    extraKeys: {"Ctrl-Space": "autocomplete"},
    gutters: ['CodeMirror-lint-markers'],
    lint: true
  };

  function autocomplete(){
    CodeMirror.showHint({hint: CodeMirror.hint.anyword});
  }

  function getRandomArbitrary(min, max) {
    return Math.floor(Math.random() * (max - min) + min);
  }//generate a random number

  // var random = getRandomArbitrary(0, Race.count+1);//random is between 0 and the number of questions
  // $scope.code = Race.start[random]; //set a temp value to put in the text area. This needs to be abstracted.
  // $scope.question = Race.question[random];

  var challengeInputs;
<commit_msg>[fix] change to theme from cobalt to 3024-night<commit_after>
angular.module('coderace.race', ['ui.codemirror'])

.controller('raceController', function ($scope, $rootScope, Race, socket){
  var master = false;
  $scope.room = false;
  $scope.opponentLeft = false;
  $scope.opponentPassed = false;
  $scope.username = Race.username;
  // codemirror options
  
  // codemirror 
  $scope.editorOptions = {
    mode: 'javascript',
    theme: '3024-night',
    lineNumbers: true,
    lineWrapping: true,
    showCursorWhenSelecting: true,
    autofocus: true,
    keyMap: 'sublime',
    autoCloseBrackets: true,
    tabSize: 2,
    extraKeys: {"Ctrl-Space": "autocomplete"},
    gutters: ['CodeMirror-lint-markers'],
    lint: true
  };

  function autocomplete(){
    CodeMirror.showHint({hint: CodeMirror.hint.anyword});
  }

  function getRandomArbitrary(min, max) {
    return Math.floor(Math.random() * (max - min) + min);
  }//generate a random number

  // var random = getRandomArbitrary(0, Race.count+1);//random is between 0 and the number of questions
  // $scope.code = Race.start[random]; //set a temp value to put in the text area. This needs to be abstracted.
  // $scope.question = Race.question[random];

  var challengeInputs;

{'fraction_non_alphanumeric': 0.13747954173486088, 'fraction_numerical': 0.006546644844517185, 'mean_word_length': 3.6132075471698113, 'pattern_counts': {'":': 2, '<': 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': '4537209', 'n_tokens_mistral': 829, 'n_tokens_neox': 790, 'n_words': 203}