<commit_before>doccher.go: docker miniclone in Go
==================================

## Preparing your environment

This docker miniclone works only in Linux.
You have to prepare a chroot ready directory before running it. There is a prebuilt busy box image in the images directory.
https://github.com/jpetazzo/docker-busybox/raw/master/rootfs.tar

**All the following commands need to be executed as a privileged user (i.e. `root` or using `sudo`)**

```
mkdir /home/doccher
tar xvf images/rootfs.tar /home/doccher
```
if the second command doesn't work you can also try `tar xvf images/rootfs.tar -C /home/docker`. 

## Usage (from source)

**All the following commands need to be executed as a privileged user (i.e. `root` or using `sudo`)**

```
go run doccher.go run bash
```

## Usage (from binary)

```
go build doccher.go
./doccher run bash
```

## Credits

Original code by <NAME> [1] and <NAME> [2]

[1] https://www.infoq.com/articles/build-a-container-golang

[2] https://youtu.be/HPuvDm8IC-4?list=PLDWZ5uzn69eyh791ZTkEA9OaTxVpGY8_g<commit_msg>minor fixes<commit_after>doccher.go: docker miniclone in Go
==================================

## Preparing your environment

This docker miniclone works only in Linux.
You have to prepare a chroot ready directory before running it. There is a prebuilt busy box image in the images directory.
https://github.com/jpetazzo/docker-busybox/raw/master/rootfs.tar

**All the following commands need to be executed as a privileged user (i.e. `root` or using `sudo`)**

```
mkdir /home/doccher
tar xvf images/rootfs.tar -C /home/doccher
```

## Usage (from source)

**All the following commands need to be executed as a privileged user (i.e. `root` or using `sudo`)**

```
export PATH=$PATH:/bin
go run doccher.go run bash
```

## Usage (from binary)

```
go build doccher.go
export PATH=$PATH:/bin
./doccher run bash
```

## Credits

Original code by <NAME> [1] and <NAME> [2]

[1] https://www.infoq.com/articles/build-a-container-golang

[2] https://youtu.be/HPuvDm8IC-4?list=PLDWZ5uzn69eyh791ZTkEA9OaTxVpGY8_g
{'fraction_non_alphanumeric': 0.15138282387190685, 'fraction_numerical': 0.013585638039786511, 'mean_word_length': 4.455026455026455, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, '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': '3352546', 'n_tokens_mistral': 752, 'n_tokens_neox': 688, 'n_words': 236}