<commit_before><?php

// Omise keys.
define('OMISE_PUBLIC_KEY', getenv('PUBLIC_KEY'));
define('OMISE_SECRET_KEY', getenv('SECRET_KEY'));
define('OMISE_API_VERSION', '2017-11-02');

include __DIR__ . '/traits/ChargeTrait.php';

function dd($value)
{
    print_r($value);
    die();
}

$token = OmiseToken::create([
    'card' => [
        'name' => '<NAME>',
        'number' => '4242424242424242',
        'expiration_month' => 11,
        'expiration_year' => date('Y', strtotime('+2 years')),
        'city' => 'Bangkok',
        'postal_code' => '10320',
        'security_code' => 123
    ]
]);

$customer = OmiseCustomer::create([
    'email' => '<EMAIL>',
    'description' => '<NAME>',
    'card' => $token['id']
]);

define('OMISE_CUSTOMER_ID', $customer['id']);
define('OMISE_CARD_ID', $customer['cards']['data'][0]['id']);
<commit_msg>[PLUGINS-270] : remove ::add-mask:: from env<commit_after><?php

// Omise keys.
$publicKey = str_replace('::add-mask::', '', getenv('PUBLIC_KEY'));
$secretKey = str_replace('::add-mask::', '', getenv('SECRET_KEY'));

define('OMISE_PUBLIC_KEY', $publicKey);
define('OMISE_SECRET_KEY', $secretKey);
define('OMISE_API_VERSION', '2017-11-02');

include __DIR__ . '/traits/ChargeTrait.php';

function dd($value)
{
    print_r($value);
    die();
}

$token = OmiseToken::create([
    'card' => [
        'name' => '<NAME>',
        'number' => '4242424242424242',
        'expiration_month' => 11,
        'expiration_year' => date('Y', strtotime('+2 years')),
        'city' => 'Bangkok',
        'postal_code' => '10320',
        'security_code' => 123
    ]
]);

$customer = OmiseCustomer::create([
    'email' => '<EMAIL>',
    'description' => '<NAME>',
    'card' => $token['id']
]);

define('OMISE_CUSTOMER_ID', $customer['id']);
define('OMISE_CARD_ID', $customer['cards']['data'][0]['id']);

{'fraction_non_alphanumeric': 0.23449401523394994, 'fraction_numerical': 0.040805223068552776, 'mean_word_length': 4.180281690140845, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 31, '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': '3551783', 'n_tokens_mistral': 745, 'n_tokens_neox': 691, 'n_words': 104}