<commit_before># -*- coding: utf-8 -*-
from . import Command as _Command
from ...vendor import git_extensions as git


class Sync(_Command):
    def _run(self):
        for repo in [
            self.config['TF_DEPLOYMENT_REPO'],
            self.config['TF_VARS_STAGING_REPO'],
            self.config['TF_VARS_PRODUCTION_REPO'],
        ]:
            if repo is None:
                continue
            git.sync_updates(repo, push=True)
            git.sync_submodule_updates(repo)
        return None<commit_msg>feat(sync): add a success message after sync<commit_after># -*- coding: utf-8 -*-
from . import Command as _Command
from ...vendor import git_extensions as git
from .. import io


class Sync(_Command):
    def _run(self):
        for repo in [
            self.config['TF_DEPLOYMENT_REPO'],
            self.config['TF_VARS_STAGING_REPO'],
            self.config['TF_VARS_PRODUCTION_REPO'],
        ]:
            if repo is None:
                continue
            git.sync_updates(repo, push=True)
            git.sync_submodule_updates(repo)
        io.ok('repository sync complete')
        return None
{'fraction_non_alphanumeric': 0.10115350488021295, 'fraction_numerical': 0.001774622892635315, 'mean_word_length': 2.0904109589041098, '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': '217803', 'n_tokens_mistral': 341, 'n_tokens_neox': 330, 'n_words': 79}