<commit_before>#!/usr/bin/env python
# -*- coding: utf8 -*-
#
# Copyright (c) 2013 <NAME>
#
# Licensed under the MIT License,
# https://github.com/baptistelabat/robokite
# Authors: <NAME>
#
# Used http://www.linuxforu.com/2012/04/getting-started-with-html5-websockets/
 
import tornado.web
import tornado.websocket
import tornado.ioloop
import os
import datetime
import time
import json
import math
import sys
import threading
sys.path.append(os.getcwd())
sys.path.append('../../../Sensors')
import mobileState
clients = []
global mobile

try:
  # Get the mobile orientation
  mobile = mobileState.mobileState()
  a = threading.Thread(None, mobileState.mobileState.checkUpdate, None, (mobile,))
  a.start()
except KeyboardInterrupt:
 mobile.stop_requested = True


class MainHandler(tornado.web.RequestHandler):
    def get(self):<commit_msg>Adapt to new version of mobilestate<commit_after>#!/usr/bin/env python
# -*- coding: utf8 -*-
#
# Copyright (c) 2013 <NAME>
#
# Licensed under the MIT License,
# https://github.com/baptistelabat/robokite
# Authors: <NAME>
#
# Used http://www.linuxforu.com/2012/04/getting-started-with-html5-websockets/
 
import tornado.web
import tornado.websocket
import tornado.ioloop
import os
import datetime
import time
import json
import math
import sys
import threading
sys.path.append(os.getcwd())
sys.path.append('../../../Sensors')
import mobileState
clients = []
global mobile

try:
  # Get the mobile orientation
  mobile = mobileState.mobileState()
  mobile.open()
except KeyboardInterrupt:
 mobile.stop_requested = True


class MainHandler(tornado.web.RequestHandler):
    def get(self):
{'fraction_non_alphanumeric': 0.1290719114935464, 'fraction_numerical': 0.014751075599262446, 'mean_word_length': 4.5563139931740615, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '6808308', 'n_tokens_mistral': 561, 'n_tokens_neox': 522, 'n_words': 131}