<commit_before>from fabric.api import env, local, run, cd

code_dir = '/vagrant'

def vagrant():
    env.user = 'vagrant'
    env.hosts = ['127.0.0.1:2222']
    result = local('vagrant ssh-config |grep IdentityFile', capture=True)
    env.key_filename = result.split()[1]

def build(release="stable"):
    run('rvm gemset use blog-%s' % release)
    with cd(code_dir):
        run('bundle install')

def serve():
    with cd(code_dir):
        run('bundle exec jekyll serve --watch')
<commit_msg>force static data polling for changes(Jekyll issue #2926 workaround)<commit_after>from fabric.api import env, local, run, cd

code_dir = '/vagrant'

def vagrant():
    env.user = 'vagrant'
    env.hosts = ['127.0.0.1:2222']
    result = local('vagrant ssh-config |grep IdentityFile', capture=True)
    env.key_filename = result.split()[1]

def build(release="stable"):
    run('rvm gemset use blog-%s' % release)
    with cd(code_dir):
        run('bundle install')

def serve(drafts=False):
    with cd(code_dir):
        if drafts:
            run('bundle exec jekyll serve --force_polling --drafts')
        run('bundle exec jekyll serve --force_polling')

{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.022510822510822513, 'mean_word_length': 3.42911877394636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1908790', 'n_tokens_mistral': 407, 'n_tokens_neox': 388, 'n_words': 102}