<commit_before># -*- coding: utf-8 -*-
import os
from fabric.api import abort, cd, env, local, put, run, settings

current_dir = os.path.abspath(os.path.dirname(__file__))
env.user = 'ubuntu'
env.tsuru_path = '/home/%s/tsuru' % env.user


def stop():
    with settings(warn_only=True):
        run('killall -KILL webserver collector')


def build():
    goos = local("go env GOOS", capture=True)
    goarch = local("go env GOARCH", capture=True)
    if goos != "linux" or goarch != "amd64":
        abort("tsuru must be built on linux_amd64 for deployment, you're on %s_%s" % (goos, goarch))
    local("mkdir -p dist")
    local("go install ./...")
    local("go build -o dist/collector collector/main.go")
    local("go build -o dist/webserver api/webserver/main.go")


def clean():
    local("rm -rf dist")<commit_msg>fabfile: using go clean instead of go install<commit_after># -*- coding: utf-8 -*-
import os
from fabric.api import abort, cd, env, local, put, run, settings

current_dir = os.path.abspath(os.path.dirname(__file__))
env.user = 'ubuntu'
env.tsuru_path = '/home/%s/tsuru' % env.user


def stop():
    with settings(warn_only=True):
        run('killall -KILL webserver collector')


def build():
    goos = local("go env GOOS", capture=True)
    goarch = local("go env GOARCH", capture=True)
    if goos != "linux" or goarch != "amd64":
        abort("tsuru must be built on linux_amd64 for deployment, you're on %s_%s" % (goos, goarch))
    local("mkdir -p dist")
    local("go clean ./...")
    local("go build -o dist/collector collector/main.go")
    local("go build -o dist/webserver api/webserver/main.go")


def clean():
    local("rm -rf dist")
{'fraction_non_alphanumeric': 0.15748502994011976, 'fraction_numerical': 0.005988023952095809, 'mean_word_length': 3.4441489361702127, 'pattern_counts': {'":': 2, '<': 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': '7602802', 'n_tokens_mistral': 588, 'n_tokens_neox': 565, 'n_words': 168}