<commit_before># Prerequisites

### Required software

* [GitLab 6.x][1]
* [pyapi-gitlab @ 4d778d7][2]
* [GNU coreutils][3]
* [git 1.8.4][4]

If you plan on mirroring SVN repositories as well then you'll need the following additional options.

* [git-svn][7]

If you plan on mirroring BZR repositories then you'll need the following aditional options.

* [git-bzr-helper][8]

### Required software install snippets

#### python-gitlab

    yum install python-setuptools
    git clone https://github.com/Itxaka/python-gitlab.git
    cd python-gitlab
    git checkout 4d778d780161869550d8e514cdc50df2398f844e
    python setup.py install


#### Installing git

If you use package management then it will likely be best for you to install git via package management for your OS.  You can find the source to git at the [git-core project][5].  For instructions on other platforms see the [Getting Started - Installing Git section of the git book][6].

    yum install perl-ExtUtils-MakeMaker zlib zlib-devel openssh libcurl libcurl-devel expat expat-devel gettext gettext-devel
    cd /usr/local/src/
    git clone https://code.google.com/p/git-core/
    cd git-core/
    git tag
    git checkout v1.8.4
    make configure
    ./configure --prefix=/usr/local
    make
    make install

Your git should now be located in `/usr/local/bin/git`.  You should edit `/etc/profile` and place `/usr/local/bin` at the beginning of your `$PATH`.

#### git-bzr-helper

    sudo -i -u gitmirror
    mkdir ~/bin
    wget https://raw.github.com/felipec/git/fc/master/git-remote-bzr.py -O ~/bin/git-remote-bzr<commit_msg>Noting minimum git version<commit_after># Prerequisites

### Required software

* [GitLab 6.x][1]
* [pyapi-gitlab @ 4d778d7][2]
* [GNU coreutils][3]
* [git 1.6.5][4] or later (git 1.6.5 introduced transport helpers)

If you plan on mirroring SVN repositories as well then you'll need the following additional options.

* [git-svn][7]

If you plan on mirroring BZR repositories then you'll need the following aditional options.

* [git-bzr-helper][8]

### Required software install snippets

#### python-gitlab

    yum install python-setuptools
    git clone https://github.com/Itxaka/python-gitlab.git
    cd python-gitlab
    git checkout 4d778d780161869550d8e514cdc50df2398f844e
    python setup.py install


#### Installing git

As an exampl

If you use package management then it will likely be best for you to install git via package management for your OS.  You can find the source to git at the [git-core project][5].  For instructions on other platforms see the [Getting Started - Installing Git section of the git book][6].

    yum install perl-ExtUtils-MakeMaker zlib zlib-devel openssh libcurl libcurl-devel expat expat-devel gettext gettext-devel
    cd /usr/local/src/
    git clone https://code.google.com/p/git-core/
    cd git-core/
    git tag
    git checkout v1.8.4
    make configure
    ./configure --prefix=/usr/local
    make
    make install

Your git should now be located in `/usr/local/bin/git`.  You should edit `/etc/profile` and place `/usr/local/bin` at the beginning of your `$PATH`.

#### git-bzr-helper

    sudo -i -u gitmirror
    mkdir ~/bin
    wget https://raw.github.com/felipec/git/fc/master/git-remote-bzr.py -O ~/bin/git-remote-bzr
{'fraction_non_alphanumeric': 0.10137404580152672, 'fraction_numerical': 0.03083969465648855, 'mean_word_length': 3.3738317757009346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '5861450', 'n_tokens_mistral': 1172, 'n_tokens_neox': 1066, 'n_words': 366}