<commit_before># TermRecord

TermRecord is **a simple terminal session recorder** with easy-to-share
**self-contained HTML** output!

## Installation

```bash
sudo pip install TermRecord
TermRecord -o /tmp/session.html
```

On Mac OS X you will need `ttyrec` as well:

```bash
sudo brew install ttyrec
sudo easy_install pip # only if you don't have pip yet
sudo pip install TermRecord
```

## Demos

Here is a selection of demos showing off the capabilities of TermRecord across
a variety of shell sessions:

- [Using TermRecord](http://theonewolf.github.io/TermRecord/demo-static.html)<commit_msg>README.md: adding source executions instructions<commit_after># TermRecord

TermRecord is **a simple terminal session recorder** with easy-to-share
**self-contained HTML** output!

## Installation

```bash
sudo pip install TermRecord
TermRecord -o /tmp/session.html
```

On Mac OS X you will need `ttyrec` as well:

```bash
sudo brew install ttyrec
```

If you want to run from source and not install:

```bash
git clone https://github.com/theonewolf/TermRecord.git
src/TermRecord -o /tmp/test.html -m templates/static.jinja2
```

replacing `/tmp/test.html` with whatever you want the output file to be named.

## Demos

Here is a selection of demos showing off the capabilities of TermRecord across
a variety of shell sessions:

- [Using TermRecord](http://theonewolf.github.io/TermRecord/demo-static.html)
{'fraction_non_alphanumeric': 0.099644128113879, 'fraction_numerical': 0.0007117437722419929, 'mean_word_length': 4.669354838709677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '3645931', 'n_tokens_mistral': 445, 'n_tokens_neox': 412, 'n_words': 166}