<commit_before>from fabric.api import *
from fabric.tasks import execute

def execute_update_packages(env, hosts):
    print hosts
    print env
    execute(update_packages, hosts=hosts, env=env)

def update_packages(env):
    local("echo Updating package repositories...")
    sudo('apt-get update')<commit_msg>Cleaned up task definitions a bit.<commit_after>from fabric.api import *
from fabric.tasks import execute

#----------------------------------------------------------
## Update Ubuntu packages.

def execute_update_packages(env, hosts):
    execute(update_packages, hosts=hosts, env=env)

def update_packages(env):
    local("echo Updating package repositories...")
    sudo('apt-get update')

#----------------------------------------------------------
{'fraction_non_alphanumeric': 0.24083769633507854, 'fraction_numerical': 0.0, 'mean_word_length': 2.3849557522123894, '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': '3908984', 'n_tokens_mistral': 198, 'n_tokens_neox': 186, 'n_words': 53}