<commit_before><?php

ini_set('default_charset', 'UTF-8');

# Trick for easier development.
if (array_key_exists("REMOTE_ADDR", $_SERVER) and $_SERVER['REMOTE_ADDR'] == "127.0.0.1") {
  $scheme = (isset($_SERVER['HTTPS']) and !empty($_SERVER['HTTPS'])) ? "https" : "http";
  define("BASE_URL", "${scheme}://${_SERVER['HTTP_HOST']}/");
} else {<commit_msg>Correctly detect localhost on IPv6.<commit_after><?php

ini_set('default_charset', 'UTF-8');

# Trick for easier development.
if (array_key_exists("REMOTE_ADDR", $_SERVER) and
    ($_SERVER['REMOTE_ADDR'] == "127.0.0.1" or $_SERVER['REMOTE_ADDR'] == "::1")) {
  $scheme = (isset($_SERVER['HTTPS']) and !empty($_SERVER['HTTPS'])) ? "https" : "http";
  define("BASE_URL", "${scheme}://${_SERVER['HTTP_HOST']}/");
} else {
{'fraction_non_alphanumeric': 0.24289405684754523, 'fraction_numerical': 0.020671834625323, 'mean_word_length': 6.75, 'pattern_counts': {'":': 1, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '5068246', 'n_tokens_mistral': 295, 'n_tokens_neox': 276, 'n_words': 51}