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

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

use DoubleOptIn\PhpCli\Console\Command\ActionsCommand;
use DoubleOptIn\PhpCli\Console\Command\LogCommand;
use DoubleOptIn\PhpCli\Console\Command\ValidateCommand;
use Symfony\Component\Console\Application;

$apiEndpoint = 'http://localhost:8000';
$siteToken = '';
$clientId = '';
$clientSecret = '';

$config = new DoubleOptIn\ClientApi\Config\ClientConfig($clientId, $clientSecret, $siteToken, $apiEndpoint);

$client = new DoubleOptIn\ClientApi\Client\Api($config);

$application = new Application('Double Opt-in cli', '0.0.1');
$application->add(new ActionsCommand($client));
$application->add(new LogCommand($client));
$application->add(new ValidateCommand($client));
$application->run();<commit_msg>modified command configuration to have an action required as argument<commit_after>#!/usr/bin/env php
<?php

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

use DoubleOptIn\PhpCli\Console\Command\ActionsCommand;
use DoubleOptIn\PhpCli\Console\Command\LogCommand;
use DoubleOptIn\PhpCli\Console\Command\ValidateCommand;
use Symfony\Component\Console\Application;

$config = \DoubleOptIn\ClientApi\Config\ConfigFactory::fromFile(__DIR__.'/config.php');

$client = new DoubleOptIn\ClientApi\Client\Api($config);

$application = new Application('Double Opt-in cli', '0.0.1');
$application->add(new ActionsCommand($client));
$application->add(new LogCommand($client));
$application->add(new ValidateCommand($client));
$application->run();
{'fraction_non_alphanumeric': 0.15871979098628347, 'fraction_numerical': 0.006531678641410843, 'mean_word_length': 7.105820105820106, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '4763073', 'n_tokens_mistral': 486, 'n_tokens_neox': 474, 'n_words': 81}