<commit_before>
* Definitions

** Cluster
A group of machines to run Docker workloads managed by Azure Container
Service

** DonateTask
A unit of work that runs on space cluster capacity. This is the
workload that our donate application will schedule.

** Host
A single Docker host in our Cluster

** Queued
Waiting to execute

** Workload
Tasks that are scheulde to run on the cluster. The cluster will
automatically run workloads when a host becomes avaailabe.

* Backlog
** TODO Dockerize the application
** TODO Setup the application to run on a test cluster using Chronos
** DONE Write application as psuedo code

*** Run every x seconds
*** Check if there is a workload queued 
*** If there is a queued workload 
**** If the is a free host
Do nothing as ACS will schedule the workload to the available host.
**** If the is no free host 
Kill enought DonateTasks to allow queued tasks to run
*** If no queued workload
**** If the is a free host
Run as many DonateTasks as there are hosts available
**** If the is no free host 
Do nothing

** DONE Validate psuedo code
Free Hosts = 5
Working Hosts = 0
Workloads Queued = 0
Workloads Running = 0
DonateTasks Running = 0

Free Hosts = 4
Working Hosts = 1
Workloads Queued = 0
Workloads Running = 0
DonateTasks Running = 1
<commit_msg>some ;making it public' tasks<commit_after>
* Definitions

** Cluster
A group of machines to run Docker workloads managed by Azure Container
Service

** DonateTask
A unit of work that runs on space cluster capacity. This is the
workload that our donate application will schedule.

** Host
A single Docker host in our Cluster

** Queued
Waiting to execute

** Workload
Tasks that are scheulde to run on the cluster. The cluster will
automatically run workloads when a host becomes avaailabe.

* Backlog
** TODO Rename to DonatR
Every project should have a cute name. This one will be called DonatR.
** TODO Refactor the code to remove hard coded values
Things like the application name and Marathon endpoints are hard coded
** TODO Create a GitHub repo and upload the code
** TODO Create a readmen
** TODO Dockerize the application
** TODO Setup the application to run on a test cluster using Chronos
** DONE Write application as psuedo code

*** Run every x seconds
*** Check if there is a workload queued 
*** If there is a queued workload 
**** If the is a free host
Do nothing as ACS will schedule the workload to the available host.
**** If the is no free host 
Kill enought DonateTasks to allow queued tasks to run
*** If no queued workload
**** If the is a free host
Run as many DonateTasks as there are hosts available
**** If the is no free host 
Do nothing

** DONE Validate psuedo code
Free Hosts = 5
Working Hosts = 0
Workloads Queued = 0
Workloads Running = 0
DonateTasks Running = 0

Free Hosts = 4
Working Hosts = 1
Workloads Queued = 0
Workloads Running = 0
DonateTasks Running = 1

{'fraction_non_alphanumeric': 0.04994797086368366, 'fraction_numerical': 0.00693721817551162, 'mean_word_length': 4.122557726465364, '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': '288462', 'n_tokens_mistral': 824, 'n_tokens_neox': 779, 'n_words': 462}