<commit_before>#!/bin/bash
#
# Usage:
#   ./wp-dev.sh <function name>

# This wrapper just sets PYTHONPATH and then WEBPIPE_DEV, so that wp.sh
# won't set PYTHONPATH.

main() {
  local this_dir=$(dirname $0)
  export PYTHONPATH=$this_dir:~/hg/tnet/python:~/hg/json-template/python
  export WEBPIPE_DEV=1
  exec $this_dir/wp.sh "$@"
}

main "$@"
<commit_msg>When there is a symlink to wp-dev.sh, allow it to find wp.sh.<commit_after>#!/bin/bash
#
# Usage:
#   ./wp-dev.sh <function name>

# This wrapper just sets PYTHONPATH and then WEBPIPE_DEV, so that wp.sh
# won't set PYTHONPATH.

main() {
  local this_dir=$(dirname $(readlink -f $0))
  export PYTHONPATH=$this_dir:~/hg/tnet/python:~/hg/json-template/python
  export WEBPIPE_DEV=1
  exec $this_dir/wp.sh "$@"
}

main "$@"

{'fraction_non_alphanumeric': 0.1583011583011583, 'fraction_numerical': 0.005148005148005148, 'mean_word_length': 3.9554140127388533, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3331243', 'n_tokens_mistral': 337, 'n_tokens_neox': 313, 'n_words': 73}