<commit_before>
const app = async () => {
  require('es6-promise').polyfill();
  require('isomorphic-fetch');
  const
    bodyParser = require('body-parser'),
    config = require('config'),
    crypto = require('crypto'),
    express = require('express'),
    https = require('https'),
    request = require('request'),
    createButton = require('./readjson'),
    utillArray = require('./utill_array'),
    firebase = require('./firebase'),
    tunnelConfig = require('./tunnel.json'),
    summary = require('./summary')

  // config.serverURL = tunnelConfig.serverURL
  // console.log("config ", config, tunnelConfig)


  let keys = await getKeys()
  let numberOfQuestions = await firebase.getNumberOfQuestions()
  let user
  let results
  let answerForEachQuestion
  let currentQuestionKey
  let startedAt
  let round = 1
  let done = 0
  let skill = "es6"
  let userScore = 0


  function setState(userId, state) {
    if (!userData.hasOwnProperty(userId)) {
      userData[userId] = { state }
    } else {<commit_msg>test setState<commit_after>
const app = async () => {
  require('es6-promise').polyfill();
  require('isomorphic-fetch');
  const
    bodyParser = require('body-parser'),
    config = require('config'),
    crypto = require('crypto'),
    express = require('express'),
    https = require('https'),
    request = require('request'),
    createButton = require('./readjson'),
    utillArray = require('./utill_array'),
    firebase = require('./firebase'),
    tunnelConfig = require('./tunnel.json'),
    summary = require('./summary')

  // config.serverURL = tunnelConfig.serverURL
  // console.log("config ", config, tunnelConfig)


  let keys = await getKeys()
  let numberOfQuestions = await firebase.getNumberOfQuestions()
  let user
  let results
  let answerForEachQuestion
  let currentQuestionKey
  let startedAt
  let round = 1
  let done = 0
  let skill = "es6"
  let userScore = 0
  let userData


  function setState(userId, state) {
    if (!userData.hasOwnProperty(userId)) {
      userData[userId] = { state }
    } else {
{'fraction_non_alphanumeric': 0.14154144449830344, 'fraction_numerical': 0.004847309743092583, 'mean_word_length': 3.5462555066079293, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1412526', 'n_tokens_mistral': 610, 'n_tokens_neox': 599, 'n_words': 147}