<commit_before><?php

class SeoMetaTag extends DataObject {

    private static $db = array(
        'Name'      => 'Varchar(512)',
        'Value'     => 'Varchar(512)',
        'Type'      => 'Varchar(512)'
    );

    private static $belongs_many_many = array(
        'Page'      => 'Page',
    );

    private static $summary_fields = array(
        'Name'      => 'Name',
        'Value'     => 'Value',
        'Type'      => 'Type'
    );

    private static $default_sort = 'Name';

    private static $singular_name = 'Meta Tag';
    
    private static $plural_name = 'Meta Tags';

    public function getCMSFields() 
    {
        $fields = parent::getCMSFields();

        $fields->removeByName('Main');

        $fields->addFieldsToTab('Root.SEO', array(
            HeaderField::create('Meta Tag'),
            DropdownField::create('Type','Tag type',$this->tagTypes()),
            TextField::create('Name'),
            TextField::create('Value'),
            HiddenField::create('PageID')
        ));

        return $fields;
    }

    private function tagTypes()
    {
        return array(
            1 => '<meta name="name" content="value">',
            2 => '<meta property="name" content="value">',
        );
    }
}<commit_msg>update meta tag model keys<commit_after><?php

class SeoMetaTag extends DataObject {

    private static $db = array(
        'Name'      => 'Varchar(512)',
        'Value'     => 'Varchar(512)',
        'Type'      => 'Varchar(512)'
    );

    private static $belongs_many_many = array(
        'Page'      => 'Page',
    );

    private static $summary_fields = array(
        'Name'      => 'Name',
        'Value'     => 'Value',
        'Type'      => 'Type'
    );

    private static $default_sort = 'Name';

    private static $singular_name = 'Meta Tag';
    
    private static $plural_name = 'Meta Tags';

    public function getCMSFields() 
    {
        $fields = parent::getCMSFields();

        $fields->removeByName('Main');

        $fields->addFieldsToTab('Root.SEO', array(
            HeaderField::create('Meta Tag'),
            DropdownField::create('Type','Tag type',$this->tagTypes()),
            TextField::create('Name'),
            TextField::create('Value'),
            HiddenField::create('PageID')
        ));

        return $fields;
    }

    private function tagTypes()
    {
        return array(
            'name'     => '<meta name="name" content="value">',
            'property' => '<meta property="name" content="value">'
        );
    }
}
{'fraction_non_alphanumeric': 0.1578740157480315, 'fraction_numerical': 0.007874015748031496, 'mean_word_length': 2.0577617328519855, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 31, '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': '2613311', 'n_tokens_mistral': 766, 'n_tokens_neox': 724, 'n_words': 154}