<commit_before>from __future__ import with_statement
from fabric.api import env, local, roles
from fabric.contrib.project import rsync_project
from util import slashed
from targetenvs import _needs_targetenv


def build_docs():
    local("cd %(toolsdir)s &&"
            " groovy build_rinfo_docs.groovy --clean %(docbuild)s"%env)

@roles('doc')
def deploy_docs():
    _needs_targetenv()
    rsync_project(env.docs_webroot, slashed(env.docbuild),
            exclude=".*", delete=True)

<commit_msg>manage:win32/cygwin fix<commit_after>from __future__ import with_statement
from fabric.api import env, local, roles
from fabric.contrib.project import rsync_project
from util import slashed, cygpath
from targetenvs import _needs_targetenv
import sys

def build_docs():
    local("cd %(toolsdir)s &&"
            " groovy build_rinfo_docs.groovy --clean %(docbuild)s"%env)

@roles('doc')
def deploy_docs():
    _needs_targetenv()
    if sys.platform == 'win32':
        build_path = cygpath(slashed(env.docbuild))
    else:
        build_path = slashed(env.docbuild)
    rsync_project(env.docs_webroot, build_path,
            exclude=".*", delete=True)


{'fraction_non_alphanumeric': 0.10841283607979185, 'fraction_numerical': 0.003469210754553339, 'mean_word_length': 4.245454545454545, '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': '1739487', 'n_tokens_mistral': 385, 'n_tokens_neox': 373, 'n_words': 88}