<commit_before><?php
	/** Heymaster Base Adapter
	 * 
	 * @author		<NAME>, <<EMAIL>>
	 * @version		2012-12-02-2
	 */
	
	namespace Heymaster\Adapters;
	
	use Heymaster\Config,
		Heymaster\Section,
		Heymaster\Action,
		Heymaster\Command,
		Heymaster\Configs\FileConfig;
	
	abstract class BaseAdapter extends \Nette\Object implements IAdapter
	{
		const SECTION_BEFORE = 'before',
			SECTION_AFTER = 'after';
		
		const KEY_ACTIONS = 'actions',
			KEY_RUNNABLE = 'run';
		
		
		/**
		 * @return	array
		 */
		public static function createConfiguration()
		{
			$config = array(
				'config' => new FileConfig,
				'sections' => array(
					self::SECTION_BEFORE => new Section,
					self::SECTION_AFTER => new Section,
				),
			);
			
			$config['config']->output = TRUE;
			
			$config['sections'][self::SECTION_BEFORE]->name = self::SECTION_BEFORE;
			$config['sections'][self::SECTION_AFTER]->name = self::SECTION_AFTER;
			
			return $config;
		}
		
		
		
		public static function createConfig()
		{
			return new Config;
		}
		
		
		
		/**
		 * @return	Heymaster\Action
		 */
		public static function createAction()
		{
			$action = new Action;
			$action->config = self::createConfig();
			
			return $action;
		}
		
		
		
		/**
		 * @return	Heymaster\Command
		 */
		public static function createCommand()
		{
			$command = new Command;
			$command->config = self::createConfig();
			
			return $command;
		}
	}
<commit_msg>Heymaster\Adapters\BaseAdapter: added static method createSection()<commit_after><?php
	/** Heymaster Base Adapter
	 * 
	 * @author		<NAME>, <<EMAIL>>
	 * @version		2012-12-04-1
	 */
	
	namespace Heymaster\Adapters;
	
	use Heymaster\Config,
		Heymaster\Section,
		Heymaster\Action,
		Heymaster\Command,
		Heymaster\Configs\FileConfig;
	
	abstract class BaseAdapter extends \Nette\Object implements IAdapter
	{
		const SECTION_BEFORE = 'before',
			SECTION_AFTER = 'after';
		
		const KEY_ACTIONS = 'actions',
			KEY_RUNNABLE = 'run';
		
		
		/**
		 * @return	array
		 */
		public static function createConfiguration()
		{
			$config = array(
				'config' => new FileConfig,
				'sections' => array(
					self::SECTION_BEFORE => self::createSection(),
					self::SECTION_AFTER => self::createSection(),
				),
			);
			
			$config['config']->output = TRUE;
			
			$config['sections'][self::SECTION_BEFORE]->name = self::SECTION_BEFORE;
			$config['sections'][self::SECTION_AFTER]->name = self::SECTION_AFTER;
			
			return $config;
		}
		
		
		
		public static function createConfig()
		{
			return new Config;
		}
		
		
		
		/**
		 * @return	Heymaster\Action
		 */
		public static function createAction()
		{
			$action = new Action;
			$action->config = self::createConfig();
			
			return $action;
		}
		
		
		
		/**
		 * @return	Heymaster\Command
		 */
		public static function createCommand()
		{
			$command = new Command;
			$command->config = self::createConfig();
			
			return $command;
		}
		
		
		
		/**
		 * @return	Heymaster\Command
		 */
		public static function createSection()
		{
			$section = new Section;
			$section->config = self::createConfig();
			
			return $section;
		}
	}

{'fraction_non_alphanumeric': 0.13650895140664962, 'fraction_numerical': 0.005754475703324808, 'mean_word_length': 2.896637608966376, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 28, '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': '2824974', 'n_tokens_mistral': 1309, 'n_tokens_neox': 1007, 'n_words': 203}