<commit_before>grammar MySQLBase;

import MySQLKeyword,Keyword,Symbol,DataType, BaseRule;

symbol:
    ID
    ;

fkSymbol:
    ID
    ;  
 
indexAndKey:
    INDEX|KEY
    ;
      
characterAndCollate:
    characterSet collateClause
    ;
    
characterSet:
    (CHARACTER | CHAR) SET charsetName
    |CHARSET EQ_OR_ASSIGN? charsetName
    ;
    
charsetName:
    ID
    |BINARY
    ;

collateClause:
    COLLATE ID
    ;

characterAndCollateWithEqual:
    characterSetWithEqual collateClauseWithEqual
    ;<commit_msg>collateClause and collateClauseWithEqual is option in alter table<commit_after>grammar MySQLBase;

import MySQLKeyword,Keyword,Symbol,DataType, BaseRule;

symbol:
    ID
    ;

fkSymbol:
    ID
    ;  
 
indexAndKey:
    INDEX|KEY
    ;
      
characterAndCollate:
    characterSet collateClause?
    ;
    
characterSet:
    (CHARACTER | CHAR) SET charsetName
    |CHARSET EQ_OR_ASSIGN? charsetName
    ;
    
charsetName:
    ID
    |BINARY
    ;

collateClause:
    COLLATE ID
    ;

characterAndCollateWithEqual:
    characterSetWithEqual collateClauseWithEqual?
    ;
{'fraction_non_alphanumeric': 0.060550458715596334, 'fraction_numerical': 0.0, 'mean_word_length': 2.868794326241135, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6645996', 'n_tokens_mistral': 380, 'n_tokens_neox': 374, 'n_words': 69}