<commit_before><?php

namespace Lob;

use InvalidArgumentException;
use Lob\Resource\Addresses;
use Lob\Resource\BankAccounts;
use Lob\Resource\Checks;
use Lob\Resource\IntlVerifications;
use Lob\Resource\Letters;
use Lob\Resource\Postcards;
use Lob\Resource\SelfMailers;
use Lob\Resource\USAutocompletions;
use Lob\Resource\USVerifications;
use Lob\Resource\USZipLookups;

class Lob
{
    private $version;
    private $apiKey;
    private $clientVersion;

    public function __construct($apiKey = null, $version = null)
    {
        if (!is_null($apiKey)) {
            $this->setApiKey($apiKey);
        }
        $this->version = $version;
        $this->clientVersion = '3.0.6';
    }

    public function getApiKey()
    {
        return $this->apiKey;
    }

    public function setApiKey($apiKey)
    {
        if (!is_string($apiKey) || empty($apiKey)) {
            throw new InvalidArgumentException('API Key must be a non-empty string.');<commit_msg>chore: bump version 3.0.6 --> 3.1.0 (#115)<commit_after><?php

namespace Lob;

use InvalidArgumentException;
use Lob\Resource\Addresses;
use Lob\Resource\BankAccounts;
use Lob\Resource\Checks;
use Lob\Resource\IntlVerifications;
use Lob\Resource\Letters;
use Lob\Resource\Postcards;
use Lob\Resource\SelfMailers;
use Lob\Resource\USAutocompletions;
use Lob\Resource\USVerifications;
use Lob\Resource\USZipLookups;

class Lob
{
    private $version;
    private $apiKey;
    private $clientVersion;

    public function __construct($apiKey = null, $version = null)
    {
        if (!is_null($apiKey)) {
            $this->setApiKey($apiKey);
        }
        $this->version = $version;
        $this->clientVersion = '3.1.0';
    }

    public function getApiKey()
    {
        return $this->apiKey;
    }

    public function setApiKey($apiKey)
    {
        if (!is_string($apiKey) || empty($apiKey)) {
            throw new InvalidArgumentException('API Key must be a non-empty string.');
{'fraction_non_alphanumeric': 0.12212570260602963, 'fraction_numerical': 0.007664793050587634, 'mean_word_length': 3.157112526539278, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 12, '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': '6368238', 'n_tokens_mistral': 646, 'n_tokens_neox': 631, 'n_words': 136}