<commit_before>## Softball Coaching

This python code allows me to randomly select players to sit each
inning, and assigns the fielders to positions based on their fielding
preferences.

**coach.py** has been revamped to include a Team() class. Your team is
now an object that you can add/remove players from, and assign
positions for. Example usage is given below...

#### How to coach a softball game without doing too much thinking.

#### OR Less thinking, more hitting.

*For now, open an ipython session, and do:*

from coach import *

*Create a Team object*

demons = Team()

*To get set up for the game, import regulars and add players as required*

demons.regulars()

demons.add()  #repeat as necessary

*If someone leaves early, or a regular doesn't show, remove them*

demons.remove()

*Each time a new inning starts, run*

demons.inning()

*which will print out a random selection of sitting and fielding players for each position. If no one could be matched to a position, the program will suggest a volunteer.*<commit_msg>added python formatting to README<commit_after>Softball Coaching
============

This python code allows me to randomly select players to sit each
inning, and assigns the fielders to positions based on their fielding
preferences.

**coach.py** has been revamped to include a Team() class. Your team is
now an object that you can add/remove players from, and assign
positions for. Example usage is given below...

#### How to coach a softball game without doing too much thinking.

#### OR Less thinking, more hitting.

*For now, open an ipython session, and do:*

'''python

from coach import *

#create a Team object

demons = Team()

#to get set up for the game, import regulars and add players as required

demons.regulars()

demons.add()  #repeat as necessary

#if someone leaves early, or a regular doesn't show, remove them

demons.remove()

#each time a new inning starts, run

demons.inning()

'''

*This last line will print out a random selection of sitting and fielding players for each position. If no one could be matched to a position, the program will suggest a volunteer.*
{'fraction_non_alphanumeric': 0.07355021216407355, 'fraction_numerical': 0.0, 'mean_word_length': 4.291770573566085, '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': '1230242', 'n_tokens_mistral': 579, 'n_tokens_neox': 569, 'n_words': 323}