<commit_before>[![Gem Version](https://badge.fury.io/rb/lab2hub.svg)](https://badge.fury.io/rb/lab2hub)
# Lab2hub

Easily migrate your projects from GitLab to GitHub.

## Installation

```sh
gem install lab2hub
```

## Usage

```sh
lab2hub --config
vi config.yaml
lab2hub PROJECT_NAME_ON_GITLAB
```

### config.yaml

`config.yaml` file contains the private access tokens for GitHub and GitLab,
and those tokens are neccessary to access your private repositories on GitLab and
create new repositories on GitHub.

Create `config.yaml` file in the currently working with `lab2hub --config`, and
open the file with an text editor, and then replace `GITHUB_PERSONAL_ACCESS_TOKEN` and `GITLAB_PRIVATE_TOKEN` with your own tokens:

```yaml
github: GITHUB_PERSONAL_ACCESS_TOKEN
gitlab: GITLAB_PRIVATE_TOKEN
```

Access tokens can be generated and obtained from here:

- GitHub: https://github.com/settings/tokens
- GitLab: https://gitlab.com/profile/account

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
<commit_msg>Add known issues to README<commit_after>[![Gem Version](https://badge.fury.io/rb/lab2hub.svg)](https://badge.fury.io/rb/lab2hub)
# Lab2hub

Easily migrate your projects from GitLab to GitHub.

## Installation

```sh
gem install lab2hub
```

## Usage

```sh
lab2hub --config
vi config.yaml
lab2hub PROJECT_NAME_ON_GITLAB
```

## Known issues (TODO)

- [ ] Attachments in issue notes(comments)
- [ ] Milestones
- [ ] Labels
- [ ] Wiki

### config.yaml

`config.yaml` file contains the private access tokens for GitHub and GitLab,
and those tokens are neccessary to access your private repositories on GitLab and
create new repositories on GitHub.

Create `config.yaml` file in the currently working with `lab2hub --config`, and
open the file with an text editor, and then replace `GITHUB_PERSONAL_ACCESS_TOKEN` and `GITLAB_PRIVATE_TOKEN` with your own tokens:

```yaml
github: GITHUB_PERSONAL_ACCESS_TOKEN
gitlab: GITLAB_PRIVATE_TOKEN
```

Access tokens can be generated and obtained from here:

- GitHub: https://github.com/settings/tokens
- GitLab: https://gitlab.com/profile/account

## Development

After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.

{'fraction_non_alphanumeric': 0.0966183574879227, 'fraction_numerical': 0.005636070853462158, 'mean_word_length': 4.80607476635514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2417500', 'n_tokens_mistral': 809, 'n_tokens_neox': 769, 'n_words': 282}