<commit_before><?php defined('SYSPATH') or die('No direct script access.');
//error_reporting(E_ALL);
//error_reporting(E_ALL);
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
class eveAPIWalletJournalTypes
{
	const playerTrading = 1;
	const marketTransaction = 2;
	const playerDonation = 10;
	const bountyPrizes = 17;
	const insurance = 19;
	const CSPA = 35;
	const corpAccountWithdrawal = 37;
	const brokerFee = 46;
	const manufacturing = 56;
	const bountyPrize = 85;
	
	// etc.
}
	
class Controller_Cron extends Controller 
{
	private function processBillingTransactionsResult( $transactions, $previousID, &$maxID, &$fromID )
	{
		$stop = FALSE;
		$transactions = $transactions->toArray();
		if( count( $transactions ) > 0 )
		{
			foreach( $transactions as $trans )
			{
				$maxID = max($maxID, $trans['refID']);
				$fromID = min($fromID, $trans['refID']);
				
				if( $previousID == $trans['refID'] )	//we hit the last processed entry
				{
					$stop = TRUE;
				}
			
				if( $trans['refTypeID'] == eveAPIWalletJournalTypes::playerDonation || $trans['refTypeID'] == eveAPIWalletJournalTypes::corpAccountWithdrawal)
				{
					$entryCode = trim(str_replace('DESC:','',$trans['reason']));
					$entryCode = $this->superclean($entryCode);
					if( !empty($entryCode) )
					{
						preg_match('/^siggy-([a-zA-Z0-9]{14,})/', $entryCode, $matches);<commit_msg>Do strtolower on payment codes. In case people uppercase letters...sigh.<commit_after><?php defined('SYSPATH') or die('No direct script access.');
//error_reporting(E_ALL);
//error_reporting(E_ALL);
ini_set('display_errors', 'on');
ini_set('display_startup_errors', 'on');
class eveAPIWalletJournalTypes
{
	const playerTrading = 1;
	const marketTransaction = 2;
	const playerDonation = 10;
	const bountyPrizes = 17;
	const insurance = 19;
	const CSPA = 35;
	const corpAccountWithdrawal = 37;
	const brokerFee = 46;
	const manufacturing = 56;
	const bountyPrize = 85;
	
	// etc.
}
	
class Controller_Cron extends Controller 
{
	private function processBillingTransactionsResult( $transactions, $previousID, &$maxID, &$fromID )
	{
		$stop = FALSE;
		$transactions = $transactions->toArray();
		if( count( $transactions ) > 0 )
		{
			foreach( $transactions as $trans )
			{
				$maxID = max($maxID, $trans['refID']);
				$fromID = min($fromID, $trans['refID']);
				
				if( $previousID == $trans['refID'] )	//we hit the last processed entry
				{
					$stop = TRUE;
				}
			
				if( $trans['refTypeID'] == eveAPIWalletJournalTypes::playerDonation || $trans['refTypeID'] == eveAPIWalletJournalTypes::corpAccountWithdrawal)
				{
					$entryCode = trim(str_replace('DESC:','',$trans['reason']));
					$entryCode = strtolower($this->superclean($entryCode));
					if( !empty($entryCode) )
					{
						preg_match('/^siggy-([a-zA-Z0-9]{14,})/', $entryCode, $matches);
{'fraction_non_alphanumeric': 0.15948124780932352, 'fraction_numerical': 0.016123378899404135, 'mean_word_length': 4.415559772296016, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '1674770', 'n_tokens_mistral': 1152, 'n_tokens_neox': 963, 'n_words': 208}