<commit_before># ApMan
## Analytics Package Manager

### Introduction
ApMan is a python wrapper which can be used to call scripts (i.e. analytics such as customer churn, next best product) in a standardised and robust manner. 

Packages are constructed as a folder and configuration file containing all commands, parameters and virtual environments needed for the analytic. ApMan is then used to run these packages robustly, catching any handled or unhandled exceptions, as well as the package result and stout/stedd, and storing all this information in a central log.

### Creating a package

* Create a folder, named after the analytic e.g. churn (preferably within the 'packages' folder)
    ~~~~
    cd packages
    mkdir churn
    ~~~~
* Within this Create a virtual environment folder (venv) within this folder.
	virtualenv venv
* Activate this virtual environment, and install any necessary libraries.<commit_msg>readme.md edited online with Bitbucket<commit_after># ApMan
## Analytics Package Manager

### Introduction
ApMan is a python wrapper which can be used to call scripts (i.e. analytics such as customer churn, next best product) in a standardised and robust manner. 

Packages are constructed as a folder and configuration file containing all commands, parameters and virtual environments needed for the analytic. ApMan is then used to run these packages robustly, catching any handled or unhandled exceptions, as well as the package result and stout/stedd, and storing all this information in a central log.

### Creating a package

* Create a folder, named after the analytic e.g. churn (preferably within the 'packages' folder)

cd packages
mkdir churn

* Within this Create a virtual environment folder (venv) within this folder.
	virtualenv venv
* Activate this virtual environment, and install any necessary libraries.
{'fraction_non_alphanumeric': 0.048343291689299295, 'fraction_numerical': 0.0, 'mean_word_length': 4.685185185185185, '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': '2031728', 'n_tokens_mistral': 442, 'n_tokens_neox': 417, 'n_words': 259}