<commit_before><?php
	/* Main */

	/* Defaults parcel contents category */
	// TODO: make this user-specified?
	$contents = 'Home & Garden';

	$inputFile = 'ebay_sanitised.csv';
	$outputFile = 'hermes_' . date('y_m_d') . '.csv';

	/* Initial ebay csv data */
	$ebayArray = array();

	/* Re-arranged myHermes csv data */
	$hermesArray = array();


<commit_msg>Select import csv filename from commandline with -f switch.<commit_after><?php


	$params = getopt('f:');

	if (!count($params)) {
		$pathInfo = pathinfo(__FILE__);
		echo 'Please provide a file by calling this script like "php ' . $pathInfo['basename'] . ' -f yourfile.csv"' . PHP_EOL;
		die();
	}


	/* Main */

	/* Defaults parcel contents category */
	// TODO: make this user-specified?
	$contents = 'Home & Garden';

	$inputFile = $params['f'];
	$outputFile = 'hermes_' . date('y_m_d') . '.csv';

	/* Initial ebay csv data */
	$ebayArray = array();

	/* Re-arranged myHermes csv data */
	$hermesArray = array();



{'fraction_non_alphanumeric': 0.17484662576687116, 'fraction_numerical': 0.0, 'mean_word_length': 3.45, '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': '456009', 'n_tokens_mistral': 365, 'n_tokens_neox': 338, 'n_words': 92}