<commit_before><?php
/**
 * Skeleton Core Package class
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */

namespace Skeleton\Core;

class Package {

	/**
	 * Name
	 *
	 * @access public
	 * @var string $name
	 */
	public $name = null;

	/**
	 * Path
	 *
	 * @access public
	 * @var string $path
	 */
	public $path = null;

	/**
	 * Template path
	 *
	 * @access public
	 * @var string $path
	 */
	public $template_path = null;

	/**
	 * Asset dir
	 *
	 * @access public
	 * @var string $path
	 */
	public $asset_path = null;

	/**
	 * Get all
	 *
	 * @access public
	 * @return array $packages
	 */
	public static function get_all() {
		/**
		 * Search for other Skeleton packages installed
		 */
		$composer_dir = realpath(__DIR__ . '/../../../../../');
		$installed = file_get_contents($composer_dir . '/composer/installed.json');
		$installed = json_decode($installed);

		$packages = [];
		foreach ($installed as $install) {
			$package = $install->name;
			list($vendor, $name) = explode('/', $package);
			if ($vendor != 'tigron') {
				continue;
			}
			if (strpos($name, 'skeleton-package') !== 0) {
				continue;
			}

			$package = new self();
			$package->name = $name;
			$package->path = $composer_dir . '/tigron/' . $name;
			$package->template_path = $composer_dir . '/tigron/' . $name . '/template';
			$package->asset_path = $composer_dir . '/tigron/' . $name . '/media';

			$packages[] = $package;
		}
		return $packages;
	}

}<commit_msg>bash: add: command not found<commit_after><?php
/**
 * Skeleton Core Package class
 *
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 */

namespace Skeleton\Core;

class Package {

	/**
	 * Name
	 *
	 * @access public
	 * @var string $name
	 */
	public $name = null;

	/**
	 * Path
	 *
	 * @access public
	 * @var string $path
	 */
	public $path = null;

	/**
	 * Template path
	 *
	 * @access public
	 * @var string $path
	 */
	public $template_path = null;

	/**
	 * Asset dir
	 *
	 * @access public
	 * @var string $path
	 */
	public $asset_path = null;

	/**
	 * Get all
	 *
	 * @access public
	 * @return array $packages
	 */
	public static function get_all() {
		/**
		 * Search for other Skeleton packages installed
		 */
		$composer_dir = realpath(__DIR__ . '/../../../../../');
		$installed = file_get_contents($composer_dir . '/composer/installed.json');
		$installed = json_decode($installed);

		$packages = [];
		foreach ($installed as $install) {
			$package = $install->name;
			list($vendor, $name) = explode('/', $package);
			if ($vendor != 'tigron') {
				continue;
			}
			if (strpos($name, 'skeleton-package') !== 0) {
				continue;
			}

			$package = new self();
			$package->name = $name;
			$package->path = $composer_dir . '/tigron/' . $name;
			$package->template_path = $composer_dir . '/tigron/' . $name . '/template';
			$package->asset_path = $composer_dir . '/tigron/' . $name . '/media';
			$package->migration_path = $composer_dir . '/tigron/' . $name . '/migration';

			$packages[] = $package;
		}
		return $packages;
	}

}
{'fraction_non_alphanumeric': 0.18914473684210525, 'fraction_numerical': 0.0006578947368421052, 'mean_word_length': 2.6905339805825244, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 26, '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': '2948892', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1005, 'n_words': 249}