<commit_before># Github mgmt

A Python script that creates teams in an organisation, gives each team a
repository with the same name as the team, and adds members. Teams to be created and members are read from a CSV file.

## Prerequisites

The script uses the [PyGithub](http://jacquev6.net/PyGithub/v1/introduction.html) library to use the Github API v3.

## Usage

First, create a configuration file called `config`. See [config.example](config.example) for an example. Copy it over and adapt to your own situation. The configuration should be in JSON format and contains a.o. user credentials. For this reason, the `config` file will be ignored by Git.

Next, create a CSV file `users.csv` (currently still hard coded) with two columns containing team names and login names of members. Order of rows and columns is irrelevant.

```csv
login,team
bob,project2
alice,project1
dave,project2<commit_msg>Clarified CSV file requirements<commit_after># Github mgmt

A Python script that creates teams in an organisation, gives each team a
repository with the same name as the team, and adds members. Teams to be created and members are read from a CSV file.

## Prerequisites

The script uses the [PyGithub](http://jacquev6.net/PyGithub/v1/introduction.html) library to use the Github API v3.

## Usage

First, create a configuration file called `config`. See [config.example](config.example) for an example. Copy it over and adapt to your own situation. The configuration should be in JSON format and contains a.o. user credentials. For this reason, the `config` file will be ignored by Git.

Next, create a CSV file `users.csv` (currently still hard coded) with two columns containing team names and login names of members. The file should have a header row containing "login" and "team". Order of rows and columns is irrelevant.

```csv
login,team
bob,project2
alice,project1
dave,project2
{'fraction_non_alphanumeric': 0.06511381683430387, 'fraction_numerical': 0.006352567496029645, 'mean_word_length': 4.625, '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': '5227891', 'n_tokens_mistral': 520, 'n_tokens_neox': 496, 'n_words': 273}