<commit_before># Releasing LabKing

The release process broadly follows the Git Flow process.

First, make sure your local copy is up-to-date:

```
git checkout master && git pull
git checkout develop && git pull
```

Then do the Git Flow release:

```
git flow release start 0.0.1
# Bump the version in package.json now!
git flow release finish 0.0.1
```

Now we need to push the release commits and tags to GitHub:

```
git checkout master && git push
git checkout develop && git push
git push --tags
```

### Uploading the release & assets to GitHub

To create the release in the [LabKing project releases](https://github.com/spikeheap/labking/releases) page, we can use the [`hub`](https://github.com/github/hub) command.

First lets clean our development environment and get the released version:

```
git checkout 0.0.1
rm -rf dist
```

Then we can build the project:

```
gulp build:quick
```

We need a distribution zip file with `labking` as the base directory:

```
mv dist labking
zip -r labking_0.0.1.zip labking
```

Finally we can push this up to GitHub using the following:

```
git release create -a labking_0.0.1.zip -m "Preview release of participant search, view and record creation" 0.0.1
```

If you've added the changes, you can use the changelog instead:

```
git release create -a labking_0.0.1.zip -f CHANGELOG.md 0.0.1
```<commit_msg>Fixes typo<commit_after># Releasing LabKing

The release process broadly follows the Git Flow process.

First, make sure your local copy is up-to-date:

```
git checkout master && git pull
git checkout develop && git pull
```

Then do the Git Flow release:

```
git flow release start 0.0.1
# Bump the version in package.json now!
git flow release finish 0.0.1
```

Now we need to push the release commits and tags to GitHub:

```
git checkout master && git push
git checkout develop && git push
git push --tags
```

### Uploading the release & assets to GitHub

To create the release in the [LabKing project releases](https://github.com/spikeheap/labking/releases) page, we can use the [`hub`](https://github.com/github/hub) command.

First lets clean our development environment and get the released version:

```
git checkout 0.0.1
rm -rf dist
```

Then we can build the project:

```
gulp build:quick
```

We need a distribution zip file with `labking` as the base directory:

```
mv dist labking
zip -r labking_0.0.1.zip labking
```

Finally we can push this up to GitHub using the following:

```
hub release create -a labking_0.0.1.zip -m "Preview release of participant search, view and record creation" 0.0.1
```

If you've added the changes, you can use the changelog instead:

```
hub release create -a labking_0.0.1.zip -f CHANGELOG.md 0.0.1
```
{'fraction_non_alphanumeric': 0.10305483989694517, 'fraction_numerical': 0.017666543982333457, 'mean_word_length': 3.941818181818182, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, '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': '207492', 'n_tokens_mistral': 898, 'n_tokens_neox': 823, 'n_words': 379}