<commit_before>#!/bin/bash -e
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# runit.sh sets up PYTHONPATH to use python scripts straight from the CLI.
# try `scripts/common/runit.sh python -i`
# or  `../common/runit.sh runtest.py --help`

# determine runit.sh's location, to find build directory regardless of where it
# is called from.
SCRIPTFILE=`[[ $0 == /* ]] && echo "$0" || echo "${PWD}/${0#./}"`
SCRIPTDIR=${SCRIPTFILE%/*}
BUILD=`cd $SCRIPTDIR/../../; pwd` # canonicalize path

PYTHONPATH="$PYTHONPATH:$BUILD/third_party/buildbot_8_4p1"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/buildbot_slave_8_4"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/twisted_10_2"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/jinja2"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/sqlalchemy_0_7_1"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/sqlalchemy_migrate_0_7_1"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/tempita_0_5"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/decorator_3_3_1"
PYTHONPATH="$PYTHONPATH:$BUILD/scripts"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party"
PYTHONPATH="$PYTHONPATH:$BUILD/site_config"
PYTHONPATH="$PYTHONPATH:$BUILD/../build_internal/site_config"
PYTHONPATH="$PYTHONPATH:." "$@"
<commit_msg>Force runit.sh to use the builtin cd command.<commit_after>#!/bin/bash -e
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# runit.sh sets up PYTHONPATH to use python scripts straight from the CLI.
# try `scripts/common/runit.sh python -i`
# or  `../common/runit.sh runtest.py --help`

# determine runit.sh's location, to find build directory regardless of where it
# is called from.
SCRIPTFILE=`[[ $0 == /* ]] && echo "$0" || echo "${PWD}/${0#./}"`
SCRIPTDIR=${SCRIPTFILE%/*}
BUILD=`builtin cd $SCRIPTDIR/../../; pwd` # canonicalize path

PYTHONPATH="$PYTHONPATH:$BUILD/third_party/buildbot_8_4p1"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/buildbot_slave_8_4"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/twisted_10_2"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/jinja2"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/sqlalchemy_0_7_1"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/sqlalchemy_migrate_0_7_1"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/tempita_0_5"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party/decorator_3_3_1"
PYTHONPATH="$PYTHONPATH:$BUILD/scripts"
PYTHONPATH="$PYTHONPATH:$BUILD/third_party"
PYTHONPATH="$PYTHONPATH:$BUILD/site_config"
PYTHONPATH="$PYTHONPATH:$BUILD/../build_internal/site_config"
PYTHONPATH="$PYTHONPATH:." "$@"

{'fraction_non_alphanumeric': 0.15119760479041916, 'fraction_numerical': 0.020209580838323353, 'mean_word_length': 6.703170028818444, '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': '5360349', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1001, 'n_words': 186}