<commit_before>#!/usr/bin/env python3
DEFAULT_CONFIG_PATH = '/etc/kosandr.conf'
DEFAULT_INSTALL_PATH = '/opt/kosandr'

from IPC.icloakipc import IPCClient
from IPC.shellutils import file_exists as sh_file_exists, read_file as sh_read_file
from sh import mkdir as sh_mkdir

import time


#utils file

#config file path to dictionary
def get_conf_from_path(path):
   return {}

#main file

class Config:
   def __init__(self, install_path=None, config_path=None):

      #guess
      if install_path is None and config_path is None:
         install_path, config_path = self.guess_config_location()

      #we got config file, but idk where nstall_path is
      elif config_path is not None and install_path is None:
         pass

      #we have install_path (which has symlink to config_path)
      elif install_path is not None:
         sh_read_file(install_path + '/' + 'kosandr.conf')

   def guess_config_location(self):
      install_path = DEFAULT_INSTALL_PATH
      config_path = DEFAULT_CONFIG_PATH
      return install_path, config_path

   def self_install(self):
      mkdir('/tmp/ha')

class Kosandr:
   def __init__(self, install_path=None, config_path=None):
      self.conf = Config(install_path, config_path)

   def init_ipc_client(address='/tmp/ipc_example.sock',
                       namespace='test',<commit_msg>Working on config.<commit_after>#!/usr/bin/env python3
DEFAULT_CONFIG_PATH = '/etc/kosandr.conf'
DEFAULT_INSTALL_PATH = '/opt/kosandr'

from IPC.icloakipc import IPCClient
from IPC.shellutils import file_exists as sh_file_exists, read_file as sh_read_file
from sh import mkdir as sh_mkdir

import time


#utils file

#config file path to dictionary
def get_conf_from_path(path):
   return {}

#main file

class Config:
   def __init__(self, install_path=None, config_path=None):

      #guess
      if install_path is None and config_path is None:
         install_path, config_path = self.guess_config_location()

      #we got config file, but idk where nstall_path is
      elif config_path is not None and install_path is None:
         pass

      #we have install_path (which has symlink to config_path)
      elif install_path is not None:
         sh_read_file(install_path + '/' + 'kosandr.conf')

   def init_with_pathes(self):

   def guess_config_location(self):
      self.install_path = DEFAULT_INSTALL_PATH
      self.config_path = DEFAULT_CONFIG_PATH
      self.init_with_pathes()
      return install_path, config_path

   def self_install(self):
      mkdir('/tmp/ha')

class Kosandr:
   def __init__(self, install_path=None, config_path=None):
      self.conf = Config(install_path, config_path)

   def init_ipc_client(address='/tmp/ipc_example.sock',
                       namespace='test',
{'fraction_non_alphanumeric': 0.07753913360029123, 'fraction_numerical': 0.0007280669821623589, 'mean_word_length': 3.564784053156146, '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': '2074285', 'n_tokens_mistral': 902, 'n_tokens_neox': 875, 'n_words': 234}