<commit_before>#!/usr/bin/env php
<?php

/*
 * Interactive script to generate password hashes.
 *
 */

// This is the base directory of the SimpleSAMLphp installation
$baseDir = dirname(dirname(__FILE__));

// Add library autoloader
require_once($baseDir . '/lib/_autoload.php');


echo "Enter password: ";
$password = trim(fgets(STDIN));

if (empty($password)) {
    echo "Need at least one character for a password\n";
    exit(1);
}

echo "\n  " . SimpleSAML\Utils\Crypto::pwHash($password) . "\n\n";<commit_msg>Fix static call to non-static method<commit_after>#!/usr/bin/env php
<?php

/*
 * Interactive script to generate password hashes.
 *
 */

// This is the base directory of the SimpleSAMLphp installation
$baseDir = dirname(dirname(__FILE__));

// Add library autoloader
require_once($baseDir . '/lib/_autoload.php');


echo "Enter password: ";
$password = trim(fgets(STDIN));

if (empty($password)) {
    echo "Need at least one character for a password\n";
    exit(1);
}

$cryptoUtils = new SimpleSAML\Utils\Crypt();
echo "\n  " . $cryptoUtils->pwHash($password) . "\n\n";
{'fraction_non_alphanumeric': 0.15363385464581417, 'fraction_numerical': 0.0018399264029438822, 'mean_word_length': 4.08411214953271, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '173020', 'n_tokens_mistral': 372, 'n_tokens_neox': 356, 'n_words': 99}