<commit_before><?php

  include_once(EXTENSIONS . '/typography/lib/html_helpers.php');

	Class formatterTypography extends TextFormatter {
		
		private static $_typo;
		
		function about(){
			return array(
			  'name' => 'Typography Text Formatter',
        'version' => '1.0.1',
        'release-date' => '2010-03-30',
        'author' => array(
          'name' => '<NAME>',
          'website' => 'http://www.tonyarnold.com',
          'email' => '<EMAIL>'),
        'description' => 'Format entries using the PHP Typography HTML formatter.'
			);
		}	
		
		public function run($string){
  		if(!self::$_typo){
  			include_once(EXTENSIONS . '/typography/lib/php-typography/php-typography.php');
  			self::$_typo = new phpTypography();
  		}
		  
      $result = self::$_typo->process($string, TRUE);
      $result = utf8tohtml($result, FALSE);
      $result = html_convert_entities($result);

			return $result;
		}
		<commit_msg>Disabling hyphenation for the plain typography formatter. I mostly use this for titles, so it was wreaking havoc.<commit_after><?php

  include_once(EXTENSIONS . '/typography/lib/html_helpers.php');

	Class formatterTypography extends TextFormatter {
		
		private static $_typo;
		
		function about(){
			return array(
			  'name' => 'Typography Text Formatter',
        'version' => '1.0.1',
        'release-date' => '2010-03-30',
        'author' => array(
          'name' => '<NAME>',
          'website' => 'http://www.tonyarnold.com',
          'email' => '<EMAIL>'),
        'description' => 'Format entries using the PHP Typography HTML formatter.'
			);
		}	
		
		public function run($string){
  		if(!self::$_typo){
  			include_once(EXTENSIONS . '/typography/lib/php-typography/php-typography.php');
  			self::$_typo = new phpTypography();
  			self::$_typo->set_hyphenation(false);
  		}
		  
      $result = self::$_typo->process($string, TRUE);
      $result = utf8tohtml($result, FALSE);
      $result = html_convert_entities($result);

			return $result;
		}
		
{'fraction_non_alphanumeric': 0.15831265508684864, 'fraction_numerical': 0.011910669975186104, 'mean_word_length': 2.884393063583815, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6189191', 'n_tokens_mistral': 726, 'n_tokens_neox': 653, 'n_words': 134}