<commit_before>#!/bin/bash

registry=operator.local
registry_port=4000

cp ~/.ssh/authorized_keys ~root/.ssh/authorized_keys

install_docker() {
    echo "Installing Docker"
    apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys <KEY>
    echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
    apt-get update
    apt-get install -y  docker-engine=1.8.2*
    sed -i -r "s,^[# ]*DOCKER_OPTS=.+$,DOCKER_OPTS=\"--insecure-registry $registry:$registry_port --registry-mirror=http://$registry:$registry_port\"," /etc/default/docker
    restart docker
}

install_python_deps() {
    echo "Installing Python"
    # Python
    apt-get update
    apt-get install -y python-mysqldb python-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt-dev
    easy_install pip
    pip install --upgrade docker-py
}

install_ntp() {
    echo "Installing NTP"
    # NTP
    apt-get install -y ntp
}

install_docker
install_ntp
install_python_deps<commit_msg>Fix installation<commit_after>#!/bin/bash

registry=operator.local
registry_port=4000

cp ~/.ssh/authorized_keys ~root/.ssh/authorized_keys

install_docker() {
    echo "Installing Docker"
    apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys <KEY>
    echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list
    apt-get update
    apt-get install -y  docker-engine=1.8.2*
    sed -i -r "s,^[# ]*DOCKER_OPTS=.+$,DOCKER_OPTS=\"--insecure-registry $registry:$registry_port --registry-mirror=http://$registry:$registry_port\"," /etc/default/docker
    restart docker
}

install_python_deps() {
    echo "Installing Python"
    # Python
    apt-get update
    apt-get install -y python-mysqldb python-dev build-essential libssl-dev libffi-dev libxml2-dev libxslt-dev
    curl -s https://bootstrap.pypa.io/get-pip.py | sudo python
    pip install --upgrade docker-py
}

install_ntp() {
    echo "Installing NTP"
    # NTP
    apt-get install -y ntp
}

install_docker
install_ntp
install_python_deps
{'fraction_non_alphanumeric': 0.13372376769155686, 'fraction_numerical': 0.009760858955588092, 'mean_word_length': 3.495614035087719, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '7298214', 'n_tokens_mistral': 781, 'n_tokens_neox': 722, 'n_words': 149}