<commit_before>#!/usr/env/python
"""
See LICENSE file for copyright and license details.
"""

from os.path import isfile
import shutil
import os, sys
from decimal import getcontext

class ControllerMain():
    """ Contains the bussiness logic of the application. """
    
    def __init__(self, config):
        """ Construct basic QApplication, add widgets and start exec_loop """
        # initialise special vars
        self.config = config #object
        # Decimal precision
        getcontext().prec = 4

    # Methods
    ## General
    def run(self, show_profile):
        """
            Start the app.
        """
        #TODO: do the calculations + print the result
        if show_profile:
            print('Test: profile implemented yet.')

    def backup(self):
        """
            Make a backup of the output file.<commit_msg>Passing parameters.<commit_after>#!/usr/env/python
"""
See LICENSE file for copyright and license details.
"""

from os.path import isfile
import shutil
import os, sys
from decimal import getcontext
from modules.config import ConfigParser

class ControllerMain():
    """ Contains the bussiness logic of the application. """
    
    def __init__(self, use, pool, tax, commission, shares, price, buy, automatic):
        """ Construct basic QApplication, add widgets and start exec_loop """
        # initialise special vars
        self.config = config #object
        # Decimal precision
        getcontext().prec = 4
        # Parameters
        self.use = use
        self.pool = pool
        self.tax = tax
        self.commission = commission
        self.shares = shares
        self.price = price
        self.buy = buy
        self.automatic = automatic

    # Methods
    ## General
    def run(self):
        """
            Start the app.
        """
        #TODO: do the calculations + print the result
        if show_profile:
            print('Test: profile implemented yet.')

    def backup(self):
        """
            Make a backup of the output file.
{'fraction_non_alphanumeric': 0.08951533135509397, 'fraction_numerical': 0.0009891196834817012, 'mean_word_length': 2.190851735015773, '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': '81593', 'n_tokens_mistral': 524, 'n_tokens_neox': 511, 'n_words': 191}