<commit_before><?php
/**
 * Directory handling class
 *
 * <pre>
 * // Get the content of a directory
 * $dir = new dir('/path/to/dir');
 * $dir->get();
 * </pre>
 *
 * @package		file
 * @author		<NAME> <<EMAIL>>
 * @access		public
 * @link		http://grandcentral.fr
 */
class dir implements Iterator
{
	protected $key;
	protected $root;
	protected static $nogood = array('Thumbs.db', '.DS_Store', '.svn', '.', '..');
	protected static $nogoodsimple = array('.', '..');
	public $data = array();

/**
 * Instantiate a directory defined by its root
 *
 * @param	string	The path to the directory
 * @access	public
 */
	public function __construct($root)
	{
		$this->root = $root;
		$this->_set_key();
	}

/**
 * Change the key (the name) of the directory
 *
 * @access	private<commit_msg>class dir: exclude .gitignore<commit_after><?php
/**
 * Directory handling class
 *
 * <pre>
 * // Get the content of a directory
 * $dir = new dir('/path/to/dir');
 * $dir->get();
 * </pre>
 *
 * @package		file
 * @author		<NAME> <<EMAIL>>
 * @access		public
 * @link		http://grandcentral.fr
 */
class dir implements Iterator
{
	protected $key;
	protected $root;
	protected static $nogood = array('Thumbs.db', '.DS_Store', '.svn', '.gitignore', '.', '..');
	protected static $nogoodsimple = array('.', '..');
	public $data = array();

/**
 * Instantiate a directory defined by its root
 *
 * @param	string	The path to the directory
 * @access	public
 */
	public function __construct($root)
	{
		$this->root = $root;
		$this->_set_key();
	}

/**
 * Change the key (the name) of the directory
 *
 * @access	private
{'fraction_non_alphanumeric': 0.18421052631578946, 'fraction_numerical': 0.0, 'mean_word_length': 3.399449035812672, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 19, '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': '6525177', 'n_tokens_mistral': 551, 'n_tokens_neox': 546, 'n_words': 159}