<commit_before>import json
import urllib3
import requests

from command import CommandFactory 
from exception import HttpException

class Server:
  _url = None
  _factory = None
  _requests = None

  def _parse(self, json):
    values = {}
    values['uid'] = json['uid']
    values['command'] = json['command']
    values['timeout'] = json['timeout'] if 'timeout' in json else None
    values['parameters'] = json['parameters'] if 'parameters' in json else {}
    return values<commit_msg>Add enum status<commit_after>import json
import urllib3
import requests

from enum import Enum

from command import CommandFactory 
from exception import HttpException

class Server:
  class Status(Enum):
    ok = 'OK'
    error = 'ERROR'
    timeout = 'TIMEOUT'

  _url = None

  _factory = None
  _requests = None

  def _parse(self, json):
    values = {}
    values['uid'] = json['uid']
    values['command'] = json['command']
    values['timeout'] = json['timeout'] if 'timeout' in json else None
    values['parameters'] = json['parameters'] if 'parameters' in json else {}
    return values
{'fraction_non_alphanumeric': 0.1140754369825207, 'fraction_numerical': 0.0018399264029438822, 'mean_word_length': 3.9680365296803655, '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': '3358537', 'n_tokens_mistral': 311, 'n_tokens_neox': 307, 'n_words': 107}