<commit_before># tc-lean

Some code for maintaining an grooming the trello boards we use to track development at TC.

## Usage

Tasks are triggered using rake.

TODO: instructions for discovering the required key, token and board ID

### Setting a card type for all cards on a board

Loops over all cards on a board. Any that are missing a card-type tag (bug, feature, etc)
will prompt the user to choose a type:

    TRELLO_BOARD_ID=xxx TRELLO_PUBLIC_KEY=yyy TRELLO_MEMBER_TOKEN=zzz bundle exec rake set_types<commit_msg>expand README<commit_after># tc-lean

Some code for maintaining an grooming the trello boards we use to track development at TC.

## Usage

Tasks are triggered using rake.

TODO: instructions for discovering the required key, token and board ID

### Setting a card type for all cards on a board

Loops over all cards on a board. Any that are missing a card-type tag (bug, feature, etc)
will prompt the user to choose a type:

    TRELLO_BOARD_ID=xxx TRELLO_PUBLIC_KEY=yyy TRELLO_MEMBER_TOKEN=zzz bundle exec rake set_types

### Display the breakdown of card types on a board

Loops over all lists on a board and prints the count of each card-type it holds:

    TRELLO_BOARD_ID=xxx TRELLO_PUBLIC_KEY=yyy TRELLO_MEMBER_TOKEN=zzz bundle exec rake breakdown

### Count the total number of cards on a board

    TRELLO_BOARD_ID=xxx TRELLO_PUBLIC_KEY=yyy TRELLO_MEMBER_TOKEN=zzz bundle exec rake count_cards
{'fraction_non_alphanumeric': 0.04353932584269663, 'fraction_numerical': 0.0, 'mean_word_length': 4.610236220472441, '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': '5572361', 'n_tokens_mistral': 451, 'n_tokens_neox': 454, 'n_words': 202}