<commit_before># deckofcards

A simple implementation of a deck of playing cards.

## API

### Card

Cards are a combination of a rank (`2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`,
`T` (Ten), `J` (Jack), `Q` (Queen), `K` (King), `A` (Ace)) and a suit
(`S` (Spades), `C` (Clubs), `H` (Hearts), `D` (Diamonds)).

#### constructor(rank, suit)

Accepts a rank and a suit. Will throw on invalid input.

#### static parse(s)

Parses a card string (e.g. `4C`) and returns a new `Card`.

### static stringify(c)<commit_msg>README.md: fix indenting<commit_after># deckofcards

A simple implementation of a deck of playing cards.

## API

### Card

Cards are a combination of a rank (`2`, `3`, `4`, `5`, `6`, `7`, `8`, `9`,
`T` (Ten), `J` (Jack), `Q` (Queen), `K` (King), `A` (Ace)) and a suit
(`S` (Spades), `C` (Clubs), `H` (Hearts), `D` (Diamonds)).

#### constructor(rank, suit)

Accepts a rank and a suit. Will throw on invalid input.

#### static parse(s)

Parses a card string (e.g. `4C`) and returns a new `Card`.

#### static stringify(c)
{'fraction_non_alphanumeric': 0.2180232558139535, 'fraction_numerical': 0.01744186046511628, 'mean_word_length': 4.217171717171717, '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': '3644220', 'n_tokens_mistral': 406, 'n_tokens_neox': 398, 'n_words': 155}