<commit_before># Code

## The lifeblood of development

We write a lot of code. <commit_msg>Fills out some of the Code doc<commit_after># Code

## The lifeblood of development

There are many bad and good ways to write code. We aim for the latter. 

### Git

This should come as no surprise, but git is vital to our workflow. On occasion we'll use other SCMs, but git is used in 99% of the projects. Most of the time this is managed through services such as GitHub, Gitlab, or Bitbucket.

#### Workflow

We follow a ["fork and pull-request"](https://guides.github.com/introduction/flow/) model of software development. At a high level that means that everyone should fork the main repository to their own version. This allows each developer to have their own sandbox to play in without worrying of screwing things up for anyone else. It also means that if you do break everything completely, you can delete it all and fork it again.

Here's how it works:

1. Fork the main or `upstream` repository. Now you have your own version of the repository. This is your `orign` repo.
2. Clone it to your local machine.
3. Create branches for features and bugfixes. These should be intelligently named. `spline-reticulator` or `issue-23-fix-data-deletion` are good. `fixes` is bad.
4. Commit early and often. Commit messages should also be intelligent and describe what changed. It is recommended taking the present tense with commit messages, so that it completes this sentence: "This commit...".
5. Push the commits to that branch on `origin` (remember this is your fork)
6. When ready, create a Pull Request (or Merge Request on Gitlab). This should have a good title and descriptive message.
7. The developer should assign another developer (or more) to review the PR.
8. Reviewers can comment on code, request changes, or approve it.
9. Once approved, the PR can be merged into the `master` branch.
{'fraction_non_alphanumeric': 0.060221870047543584, 'fraction_numerical': 0.006867406233491812, 'mean_word_length': 4.07774798927614, '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': '2165852', 'n_tokens_mistral': 499, 'n_tokens_neox': 479, 'n_words': 307}