<commit_before><?php

namespace Modularity\Module;

class Table extends \Modularity\Module
{
    public function __construct()
    {
        $this->register(
            'table',
            __("Table",'modularity-plugin'),
            __("Tables",'modularity-plugin'),
            __("Outputs a flexible table with options.",'modularity-plugin'),
            array(), //supports
            null, //icon 
            'acf-dynamic-table-field/acf-anagram_dynamic_table_field.php' //included plugin
        );
    }
}
<commit_msg>Config for ACF function Table module<commit_after><?php

namespace Modularity\Module;

class Table extends \Modularity\Module
{
    public function __construct()
    {
        $this->register(
            'table',
            __("Table",'modularity-plugin'),
            __("Tables",'modularity-plugin'),
            __("Outputs a flexible table with options.",'modularity-plugin'),
            array(), //supports
            null, //icon 
            'acf-dynamic-table-field/acf-anagram_dynamic_table_field.php' //included plugin
        );
    }
    
    public function acfFields()
    {
	 	if( function_exists('acf_add_local_field_group') ):
			
			acf_add_local_field_group(array (
				'key' => 'group_5666a2a71d806',
				'title' => 'Table Editor',
				'fields' => array (
					array (
						'key' => 'field_5666a2ae23643',
						'label' => 'Table',
						'name' => 'mod_table',
						'type' => 'dynamic_table',
						'instructions' => 'Enter your table contents, and select appearance and functionality options below. ',
						'required' => 1,
						'conditional_logic' => 0,
						'wrapper' => array (
							'width' => '',
							'class' => '',
							'id' => '',
						),
						'tableclass' => 'modularity-table',
						'maxrows' => '',
						'disable_sort' => 0,
						'fixed_columns' => 0,
						'default_headers' => '',
						'default_header' => '',
						'readonly' => 0,
						'disabled' => 0,
						'sub_fields' => array (
						),
					),
					array (
						'key' => 'field_5666a3e0d2d29',
						'label' => 'Enable pagination',
						'name' => 'mod_table_pagination',
						'type' => 'true_false',
						'instructions' => '',
						'required' => 0,
						'conditional_logic' => 0,
						'wrapper' => array (
							'width' => 55,
							'class' => '',
							'id' => '',
						),
						'message' => 'Yes, use pagination on this table',
						'default_value' => 1,
					),
					array (
						'key' => 'field_5666a59673385',
						'label' => 'Number of posts/page',
						'name' => 'mod_table_pagination_count',
						'type' => 'number',
						'instructions' => '',
						'required' => 0,
						'conditional_logic' => array (
							array (
								array (
									'field' => 'field_5666a3e0d2d29',
									'operator' => '==',
									'value' => '1',
								),
							),
						),
						'wrapper' => array (
							'width' => 45,
							'class' => '',
							'id' => '',
						),
						'default_value' => 10,
						'placeholder' => '',
						'prepend' => '',
						'append' => '',
						'min' => 1,
						'max' => 500,
						'step' => '',
						'readonly' => 0,
						'disabled' => 0,
					),
					array (
						'key' => 'field_5666a459d2d2a',
						'label' => 'Enable search',
						'name' => 'mod_table_search',
						'type' => 'true_false',
						'instructions' => '',
						'required' => 0,
						'conditional_logic' => 0,
						'wrapper' => array (
							'width' => 55,
							'class' => '',
							'id' => '',
						),
						'message' => 'Yes, use search on this table',
						'default_value' => 1,
					),
					array (
						'key' => 'field_5666a63a48379',
						'label' => 'Search query',
						'name' => 'mod_table_search_query',
						'type' => 'text',
						'instructions' => '',
						'required' => 0,
						'conditional_logic' => array (
							array (
								array (
									'field' => 'field_5666a459d2d2a',
									'operator' => '==',
									'value' => '1',
								),
							),
						),
						'wrapper' => array (
							'width' => 45,
							'class' => '',
							'id' => '',
						),
						'default_value' => 'Search in list',
						'placeholder' => '',
						'prepend' => '',
						'append' => '',
						'maxlength' => '',
						'readonly' => 0,
						'disabled' => 0,
					),
				),
				'location' => array (
					array (
						array (
							'param' => 'post_type',
							'operator' => '==',
							'value' => 'mod-table',
						),
					),
				),
				'menu_order' => 0,
				'position' => 'normal',
				'style' => 'default',
				'label_placement' => 'top',
				'instruction_placement' => 'label',
				'hide_on_screen' => '',
				'active' => 1,
				'description' => '',
			));
			
		endif;   
		
	}
    
}

{'fraction_non_alphanumeric': 0.18884853663747062, 'fraction_numerical': 0.02456740012817774, 'mean_word_length': 1.8776889981561156, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 110, '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': '1851671', 'n_tokens_mistral': 2321, 'n_tokens_neox': 1541, 'n_words': 284}