<commit_before><?php
/**
 * Install repository
 */

$testingVariables = include __DIR__ . '/testing.variables.php';

// install testing repository first
$repoPath = $testingVariables['repositoryPath'];
$repoUrl = $testingVariables['repositoryUrl'];
if (!is_dir($repoPath)) {
    // create repository if not exists
    mkdir($repoPath, 0755);
    $cmd = "hg clone $repoUrl $repoPath";
    exec($cmd, $output, $statusCode);
    if ($statusCode !== 0) {
        echo "\nCan\'t create repository from $repoUrl to $repoPath\n";
        exit(1);
    }
} else {
    // pull repository if exists
    $currentPath = getcwd();
    chdir($repoPath);
    $cmd = "hg pull";
    exec($cmd, $output, $statusCode);
    chdir($currentPath);
    if ($statusCode !== 0) {
        echo "\Can\'t pull repository from $repoUrl to $repoPath\n";
        exit(1);
    }
}<commit_msg>update repository script<commit_after><?php
/**
 * Install repository
 */

$testingVariables = include __DIR__ . '/testing.variables.php';

// install testing repository first
$repoPath = $testingVariables['repositoryPath'];
$repoUrl = $testingVariables['repositoryUrl'];
if (!is_dir($repoPath)) {
    // create repository if not exists
    mkdir($repoPath, 0755);
    $cmd = "hg clone $repoUrl $repoPath";
    exec($cmd, $output, $statusCode);
    if ($statusCode !== 0) {
        echo "\nCan\'t create repository from $repoUrl to $repoPath\n";
        exit(1);
    }
} else {
    // pull repository if exists
    $currentPath = getcwd();
    chdir($repoPath);
    $cmd = "hg pull";
    exec($cmd, $output, $statusCode);
    chdir($currentPath);
    if ($statusCode !== 0) {
        echo "\Can\'t pull repository from $repoUrl to $repoPath\n";
        exit(1);
    }
}

return $testingVariables['repositoryPath'];
{'fraction_non_alphanumeric': 0.15914221218961624, 'fraction_numerical': 0.009029345372460496, 'mean_word_length': 3.3033980582524274, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '7631006', 'n_tokens_mistral': 555, 'n_tokens_neox': 539, 'n_words': 146}