<commit_before>#!/bin/bash

echo "Enter the path to your wp-config.php file: "
read WP_CONFIG_PATH

# Quick hack to make PHP var available
table_prefix='$table_prefix'

DB_DETAILS=(`/usr/bin/env php <<EOL
<?php
require "$WP_CONFIG_PATH/wp-config.php";
echo DB_USER . "\n";
echo DB_PASSWORD . "\n";
echo DB_NAME . "\n";
echo DB_HOST . "\n";
echo $table_prefix;
?>
EOL`)<commit_msg>Load wp-load.php instead of wp-config.php to handle symlinked config files<commit_after>#!/bin/bash

echo "Enter the path to your WordPress install: "
read WP_CONFIG_PATH

# Quick hack to make PHP var available
table_prefix='$table_prefix'

DB_DETAILS=(`/usr/bin/env php <<EOL
<?php
require "$WP_CONFIG_PATH/wp-load.php";
echo DB_USER . "\n";
echo DB_PASSWORD . "\n";
echo DB_NAME . "\n";
echo DB_HOST . "\n";
echo $table_prefix;
?>
EOL`)
{'fraction_non_alphanumeric': 0.1491442542787286, 'fraction_numerical': 0.0, 'mean_word_length': 4.609589041095891, 'pattern_counts': {'":': 0, '<': 9, '<?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': '6570734', 'n_tokens_mistral': 311, 'n_tokens_neox': 304, 'n_words': 88}