<commit_before><?php

/**
 * This example demonstrates (in a very rudimentary way) how to export a list
 * of expense details to a CSV file.
 *
 * Please note, this example is for educational purposes only, and should not be
 * considered quality production code.
 */

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

use Trackops\Api\Client;

date_default_timezone_set('UTC');

// Create a new API Client using the customer subdomain, username, and api token
$api = new Client('subdomain', 'username', 'apitoken');
<commit_msg>Move example code to environment vars<commit_after><?php

/**
 * This example demonstrates (in a very rudimentary way) how to export a list
 * of expense details to a CSV file.
 *
 * Please note, this example is for educational purposes only, and should not be
 * considered quality production code.
 */

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

use Trackops\Api\Client;

date_default_timezone_set('UTC');

// Create a new API Client using the customer subdomain, username, and api token
$api = new Client(getenv('TRACKOPS_API_SUBDOMAIN'), getenv('TRACKOPS_API_USERNAME'), getenv('TRACKOPS_API_TOKEN'));

{'fraction_non_alphanumeric': 0.10442477876106195, 'fraction_numerical': 0.0, 'mean_word_length': 4.712121212121212, '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': '4657045', 'n_tokens_mistral': 334, 'n_tokens_neox': 328, 'n_words': 127}