<commit_before>#!/usr/bin/env python

import ConfigParser
import os

DEPLOY_CONFIG = "../deploy.cfg"

class DeployConfig:
  '''
  The deploy config class.
  '''
  def __init__(self, file_name):
    self.config_file = os.path.abspath(file_name)
    self.config_parser = ConfigParser.SafeConfigParser()
    self.config_parser.optionxform = str
    self.config_parser.read([self.config_file])

  def get_supervisor_config(self):
    '''
    Get the supervisor config items from the deploy config file.
    '''
    config = {
      'server_port': self.config_parser.getint('supervisor', 'server_port'),
      'user': self.config_parser.get('supervisor', 'user'),<commit_msg>Fix missing importing of log module<commit_after>#!/usr/bin/env python

import ConfigParser
import os

from log import Log

DEPLOY_CONFIG = "../deploy.cfg"

class DeployConfig:
  '''
  The deploy config class.
  '''
  def __init__(self, file_name):
    self.config_file = os.path.abspath(file_name)
    self.config_parser = ConfigParser.SafeConfigParser()
    self.config_parser.optionxform = str
    self.config_parser.read([self.config_file])

  def get_supervisor_config(self):
    '''
    Get the supervisor config items from the deploy config file.
    '''
    config = {
      'server_port': self.config_parser.getint('supervisor', 'server_port'),
      'user': self.config_parser.get('supervisor', 'user'),
{'fraction_non_alphanumeric': 0.12436731742588576, 'fraction_numerical': 0.0, 'mean_word_length': 3.996389891696751, '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': '5684058', 'n_tokens_mistral': 447, 'n_tokens_neox': 435, 'n_words': 94}