<commit_before># Enable/disable Xdebug for PHP CLI scripts.
# This file is managed by Puppet.

xdebug_on() {
    # XXX: xdebug 2.7.0 is currently broken (T247587). warn the user
    if [[ "$(php -r 'print(phpversion("xdebug"));')" == "2.7.0" ]]; then
        echo "WARNING: xdebug 2.7.0 is broken. see https://phabricator.wikimedia.org/T247587 for more information and workarounds"
    fi

    # http://xdebug.org/docs/remote#starting
    export XDEBUG_CONFIG='idekey=xdebug remote_host=<%= scope['host_ip'] %>'
    # http://blog.jetbrains.com/webide/2012/03/new-in-4-0-easier-debugging-of-remote-php-command-line-scripts/
    export PHP_IDE_CONFIG='serverName=<%= scope['::role::mediawiki::hostname'] %>'
}
xdebug_off() {<commit_msg>Revert "Warn users that xdebug 2.7.0 is broken"<commit_after># Enable/disable Xdebug for PHP CLI scripts.
# This file is managed by Puppet.

xdebug_on() {
    # http://xdebug.org/docs/remote#starting
    export XDEBUG_CONFIG='idekey=xdebug remote_host=<%= scope['host_ip'] %>'
    # http://blog.jetbrains.com/webide/2012/03/new-in-4-0-easier-debugging-of-remote-php-command-line-scripts/
    export PHP_IDE_CONFIG='serverName=<%= scope['::role::mediawiki::hostname'] %>'
}
xdebug_off() {
{'fraction_non_alphanumeric': 0.1678951678951679, 'fraction_numerical': 0.03276003276003276, 'mean_word_length': 4.29004329004329, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, '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': '2480267', 'n_tokens_mistral': 466, 'n_tokens_neox': 436, 'n_words': 85}