<commit_before>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import with_statement
import os

from fabric.api import local, hide, execute, sudo, put, with_settings, run
from fabric.decorators import task, hosts
from fabric.util import abort
from fabric.state import env

env.build_host = ''
env.repo_host = 'iftp.zalando.net'
env.repo_root = '/data/zalando/iftp.zalando.net/htdocs/repo/apt'

# some repo_* commands must run as root, because sudo won't allow access to the GPG keyring

@hosts(env.repo_host)
@task
def repo_list(dist='precise'):
    sudo('reprepro -b {0} list {1}'.format(env.repo_root, dist))

@hosts(env.repo_host)
@with_settings(user='root')
@task
def repo_add(package, dist='precise'):
    put('./{0}'.format(package), '{0}/import/'.format(env.repo_root))
    run('reprepro -b {0} includedeb {1} {0}/import/{2}'.format(env.repo_root, dist, package))

@hosts(env.repo_host)
@with_settings(user='root')<commit_msg>fixing module import error<commit_after>#!/usr/bin/env python
# -*- coding: utf-8 -*-

from __future__ import with_statement
import os

from fabric.api import local, hide, execute, sudo, put, with_settings, run
from fabric.decorators import task, hosts
from fabric.utils import abort
from fabric.state import env

env.build_host = ''
env.repo_host = 'iftp.zalando.net'
env.repo_root = '/data/zalando/iftp.zalando.net/htdocs/repo/apt'

# some repo_* commands must run as root, because sudo won't allow access to the GPG keyring

@hosts(env.repo_host)
@task
def repo_list(dist='precise'):
    sudo('reprepro -b {0} list {1}'.format(env.repo_root, dist))

@hosts(env.repo_host)
@with_settings(user='root')
@task
def repo_add(package, dist='precise'):
    put('./{0}'.format(package), '{0}/import/'.format(env.repo_root))
    run('reprepro -b {0} includedeb {1} {0}/import/{2}'.format(env.repo_root, dist, package))

@hosts(env.repo_host)
@with_settings(user='root')
{'fraction_non_alphanumeric': 0.15706806282722513, 'fraction_numerical': 0.009424083769633508, 'mean_word_length': 5.245098039215686, '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': '1238416', 'n_tokens_mistral': 695, 'n_tokens_neox': 678, 'n_words': 166}