<commit_before><?php

$consumerId = 'your_consumer_id';
$apiKey = 'your_api_key';
$emailToCheck = '<EMAIL>';

$apiUrl = 'https://api.vietnamworks.com/users/status/?email='.urlencode($emailToCheck);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // ignore SSL verification

curl_setopt($ch, CURLOPT_HTTPHEADER, array("CONSUMER-ID: $consumerId"));
curl_setopt($ch, CURLOPT_HTTPHEADER, array("CONTENT-MD5: $apiKey"));

$response = curl_exec($ch);
$info = curl_getinfo($ch);

// error case return code 400
if ($info['http_code'] == 400) {
    $response = json_decode($response, true);
    echo 'Server returned an error with message: '.$response['message'];
} elseif ($info['http_code'] == 200)  {
    $response = json_decode($response, true);
    echo 'Status of email '.$emailToCheck.' is: '.$response['accountStatus'];
} else {
    //unknow error
    echo "Server returned unknown error: \n".print_r($info, true)."\nResponse: $response";
}

curl_close($ch);<commit_msg>fix typo<commit_after><?php

$consumerId = 'your_consumer_id';
$apiKey = 'your_api_key';
$emailToCheck = '<EMAIL>';

$apiUrl = 'https://api.vietnamworks.com/users/status/?email='.urlencode($emailToCheck);

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // ignore SSL verification

curl_setopt($ch, CURLOPT_HTTPHEADER, array("CONSUMER-ID: $consumerId"));
curl_setopt($ch, CURLOPT_HTTPHEADER, array("CONTENT-MD5: $apiKey"));

$response = curl_exec($ch);
$info = curl_getinfo($ch);

// error case return code 400
if ($info['http_code'] == 400) {
    $response = json_decode($response, true);
    echo 'Server returned an error with message: '.$response['message'];
} elseif ($info['http_code'] == 200)  {
    $response = json_decode($response, true);
    echo 'Status of email '.$emailToCheck.' is: '.$response['accountStatus'];
} else {
    //unknown error
    echo "Server returned unknown error: \n".print_r($info, true)."\nResponse: $response";
}

curl_close($ch);
{'fraction_non_alphanumeric': 0.17843866171003717, 'fraction_numerical': 0.00929368029739777, 'mean_word_length': 5.990259740259741, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 2, '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': '1408335', 'n_tokens_mistral': 794, 'n_tokens_neox': 739, 'n_words': 158}