<commit_before># -*- coding: utf-8 -*-
import os
from fabric.api import *
import config
import david

# Example usage
env.hosts = ['david@david:19848']


APP_ROOT = os.path.dirname(os.path.abspath(__file__)) + '/david'
TRANSLATION_ROOT = APP_ROOT + '/translations'


REMOTE_APP_ROOT = '/srv/user/david/app/tongdawei.cc'
REMOTE_ALEMBIC_CONFIG_FILE = REMOTE_APP_ROOT + '/local_alembic.ini'


def babel():
    babel_init()
    babel_update()
    babel_compile()

def babel_extract():
    local('pybabel extract -F david/babel.cfg '<commit_msg>remove specified ssh port code<commit_after># -*- coding: utf-8 -*-
import os
from fabric.api import *
import config
import david

# Example usage
env.hosts = ['david@david']


APP_ROOT = os.path.dirname(os.path.abspath(__file__)) + '/david'
TRANSLATION_ROOT = APP_ROOT + '/translations'


REMOTE_APP_ROOT = '/srv/user/david/app/tongdawei.cc'
REMOTE_ALEMBIC_CONFIG_FILE = REMOTE_APP_ROOT + '/local_alembic.ini'


def babel():
    babel_init()
    babel_update()
    babel_compile()

def babel_extract():
    local('pybabel extract -F david/babel.cfg '
{'fraction_non_alphanumeric': 0.13473877176901924, 'fraction_numerical': 0.006416131989000917, 'mean_word_length': 4.432835820895522, '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': '3977223', 'n_tokens_mistral': 435, 'n_tokens_neox': 400, 'n_words': 80}