<commit_before><?php		
 $output = '<div><h4>{{content_title}}</h4>		
 			<div>{{category_selection}}</div>		
 	</div>';		
 		
 		
 $categories = get_categories( array(		
                   'orderby' => 'name',		
                   'order'   => 'ASC'		
               ) );		
 $categoriesArray = array('recent_option'=>'Recent Posts');		
 $options = '<option value="recent_option">Recent Posts</option>';		
 foreach($categories as $category){		
 	$categoriesArray[$category->term_id] = $category->name;		
 	$options.= '<option value="'.$category->term_id.'">'.$category->name.'</option>';		
 }		
 return array(		
 		'label' =>'Posts',		
 		'name' => 'contents',		
 		'fields' => array(		
 						array(		
 						'type'		=>'text',		
 						'name'		=>"content_title",		
 						'label'		=>'Title of content',		
 						'default'	=>'Category',		
 						),		
 						array(		
 							'type'	=>'select',		
 							'name'=>"category_selection",		
 							'label'=>"Select content type",		
 							'default'=>'recent_option',		
 							'options' => $options,		
 							'options_details'=>$categoriesArray		
 						),		
 						array(		
 						'type'		=>'text',		
 						'name'		=>"show_total_posts",		
 						'label'		=>'No of posts',		
 						'default'	=>'3',		
 						),
 						array(		
 						'type'		=>'select',
 						'name'		=>"ampforwp_show_excerpt",
 						'label'		=>"Show content excerpt(Default: yes)",		
						'default'	=>'Yes',		
						'options'	=> '<option value="yes">Yes</option><option value="no">No</option>',		
						'options_details'=>array('yes'=>'Yes', 'no'=>'No')
 						)		
 					),		
 		'front_template'=> $output		
 );		<commit_msg>#888 by default selection of is excerpt yes/no<commit_after><?php		
 $output = '<div><h4>{{content_title}}</h4>		
 			<div>{{category_selection}}</div>		
 	</div>';		
 		
 		
 $categories = get_categories( array(		
                   'orderby' => 'name',		
                   'order'   => 'ASC'		
               ) );		
 $categoriesArray = array('recent_option'=>'Recent Posts');		
 $options = '<option value="recent_option">Recent Posts</option>';		
 foreach($categories as $category){		
 	$categoriesArray[$category->term_id] = $category->name;		
 	$options.= '<option value="'.$category->term_id.'">'.$category->name.'</option>';		
 }		
 return array(		
 		'label' =>'Posts',		
 		'name' => 'contents',		
 		'fields' => array(		
 						array(		
 						'type'		=>'text',		
 						'name'		=>"content_title",		
 						'label'		=>'Title of content',		
 						'default'	=>'Category',		
 						),		
 						array(		
 							'type'	=>'select',		
 							'name'=>"category_selection",		
 							'label'=>"Select content type",		
 							'default'=>'recent_option',		
 							'options' => $options,		
 							'options_details'=>$categoriesArray		
 						),		
 						array(		
 						'type'		=>'text',		
 						'name'		=>"show_total_posts",		
 						'label'		=>'No of posts',		
 						'default'	=>'3',		
 						),
 						array(		
 						'type'		=>'select',
 						'name'		=>"ampforwp_show_excerpt",
 						'label'		=>"Show content excerpt(Default: yes)",		
						'default'	=>'yes',		
						'options'	=> '<option value="yes">Yes</option><option value="no">No</option>',		
						'options_details'=>array('yes'=>'Yes', 'no'=>'No')
 						)		
 					),		
 		'front_template'=> $output		
 );		
{'fraction_non_alphanumeric': 0.19933754893104486, 'fraction_numerical': 0.0027100271002710027, 'mean_word_length': 2.166825548141087, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 97, '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': '2741323', 'n_tokens_mistral': 1599, 'n_tokens_neox': 1167, 'n_words': 183}