<commit_before><?php
/**
* MintIdentifier 
*
* @copyright Copyright 2014 <NAME>
* @license http://opensource.org/licenses/MIT MIT
*/

/**
 * The background job that mints an identifier.
 *
 * @package Omeka\Plugins\Identity
 */

class MintIdentifier extends Omeka_Job_AbstractJob
{

	public function mint()
	{
	        // minting an ARK using NOID
                //$str = exec("noid -f $path mint 1");

                Zend_Registry::get('job_dispatcher')->sendLongRunning(
                'Neatline_ImportItems', array('noid', '-f', '$path', 'mint', '1')
               ); 

	}

}

?>
<commit_msg>removing old commented out code that used exec to execute an external command to mint and identifier<commit_after><?php
/**
* MintIdentifier 
*
* @copyright Copyright 2014 <NAME>
* @license http://opensource.org/licenses/MIT MIT
*/

/**
 * The background job that mints an identifier.
 *
 * @package Omeka\Plugins\Identity
 */

class MintIdentifier extends Omeka_Job_AbstractJob
{

	public function mint()
	{
	        // minting an ARK using NOID
                Zend_Registry::get('job_dispatcher')->sendLongRunning(
                'Neatline_ImportItems', array('noid', '-f', '$path', 'mint', '1')
               ); 

	}

}

?>

{'fraction_non_alphanumeric': 0.13588283157038242, 'fraction_numerical': 0.008950366151342554, 'mean_word_length': 2.75, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3054997', 'n_tokens_mistral': 400, 'n_tokens_neox': 374, 'n_words': 96}