<commit_before>#!/bin/sh

exec_dir=$(dirname $0)

if [ "$OSTYPE" = "cygwin" ]; then
  system_root=`cygpath "$SYSTEMROOT"`
  PATH="/usr/bin:$system_root/system32:$system_root:$system_root/system32/WBEM"
  export PATH
  PYTHON_PROG="$exec_dir/../../../third_party/python_24/python.exe"
else
  PYTHON_PROG=python
  # When not using the included python, we don't get automatic site.py paths.
  # Specifically, run_webkit_tests needs the paths in:
  # third_party/python_24/Lib/site-packages/google.pth
  PYTHONPATH="${exec_dir}/../../../tools/python:$PYTHONPATH"
  export PYTHONPATH
fi

"$PYTHON_PROG" "$exec_dir/rebaseline.py" "$@"<commit_msg>When using rebaseline tool in cygwin, svn related shell commands fail due to directory format. Fixing the problem by using cygwin python instead of the included python for windows.<commit_after>#!/bin/sh

exec_dir=$(dirname $0)

PYTHON_PROG=python
# When not using the included python, we don't get automatic site.py paths.
# Specifically, rebaseline.py needs the paths in:
# third_party/python_24/Lib/site-packages/google.pth
PYTHONPATH="${exec_dir}/../../../tools/python:$PYTHONPATH"
export PYTHONPATH

"$PYTHON_PROG" "$exec_dir/rebaseline.py" "$@"
{'fraction_non_alphanumeric': 0.1411764705882353, 'fraction_numerical': 0.010084033613445379, 'mean_word_length': 4.984924623115578, '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': '7544353', 'n_tokens_mistral': 440, 'n_tokens_neox': 410, 'n_words': 96}