<commit_before><?php

require __DIR__.'/vendor/autoload.php';

use Openl10n\Api\Client;
use Guzzle\Http\Exception\ClientErrorResponseException;
use Guzzle\Http\Exception\ServerErrorResponseException;

$client = new Client(array(
    'hostname' => 'openl10n.local',
    'login'    => 'user',
    'password' => '<PASSWORD>',
));

try {

    $command = $client->getCommand('ListProjects');
    $projects = $client->execute($command);

    echo sprintf('%d projects found:', count($projects)).PHP_EOL;
    foreach ($projects as $project) {
        echo '  - '.$project['name'].PHP_EOL;
    }<commit_msg>Fixed vhost.<commit_after><?php

require __DIR__.'/vendor/autoload.php';

use Openl10n\Api\Client;
use Guzzle\Http\Exception\ClientErrorResponseException;
use Guzzle\Http\Exception\ServerErrorResponseException;

$client = new Client(array(
    'hostname' => 'openl10n.dev',
    'login'    => 'user',
    'password' => '<PASSWORD>',
));

try {

    $command = $client->getCommand('ListProjects');
    $projects = $client->execute($command);

    echo sprintf('%d projects found:', count($projects)).PHP_EOL;
    foreach ($projects as $project) {
        echo '  - '.$project['name'].PHP_EOL;
    }
{'fraction_non_alphanumeric': 0.17322175732217573, 'fraction_numerical': 0.0066945606694560665, 'mean_word_length': 4.177489177489178, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '7336210', 'n_tokens_mistral': 399, 'n_tokens_neox': 393, 'n_words': 69}