<commit_before>/*
 * =============================================================================
 * 
 *   Copyright (c) 2011-2012, The THYMELEAF team (http://www.thymeleaf.org)
 * 
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 * 
 * =============================================================================
 */
package org.thymeleaf.testing.templateengine.standard.testfile;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;






public final class StandardTestFileNaming {

    
    public static final char COMMENT_PREFIX_CHAR = '#';
    public static final char DIRECTIVE_PREFIX_CHAR = '%';
    public static final String DIRECTIVE_TEMPLATE_MODE = "MODE";
    public static final String DIRECTIVE_CACHE = "CACHE";
    public static final String DIRECTIVE_CONTEXT = "CONTEXT";
    public static final String DIRECTIVE_FRAGMENT = "FRAGMENT";
    public static final String DIRECTIVE_INPUT = "INPUT";
    public static final String DIRECTIVE_OUTPUT = "OUTPUT";
    
    
    public static final Set<String> DIRECTIVES_ALL;
    public static final Set<String> DIRECTIVES_ALL_BUT_INPUT_OUTPUT;
    public static final Set<String> DIRECTIVES_INPUT;
    public static final Set<String> DIRECTIVES_OUTPUT;
    
    
    
    static {
        
        final Set<String> allButInputOutput = new HashSet<String>();
        allButInputOutput.add(DIRECTIVE_TEMPLATE_MODE);
        allButInputOutput.add(DIRECTIVE_CACHE);
        allButInputOutput.add(DIRECTIVE_CONTEXT);
        allButInputOutput.add(DIRECTIVE_FRAGMENT);
        
        final Set<String> input = new HashSet<String>();
        input.add(DIRECTIVE_INPUT);
        
        final Set<String> output = new HashSet<String>();
        output.add(DIRECTIVE_OUTPUT);
        
        final Set<String> all = new HashSet<String>();
        all.addAll(allButInputOutput);
        all.addAll(input);
        all.addAll(output);
        
        DIRECTIVES_ALL = Collections.unmodifiableSet(all);
        DIRECTIVES_ALL_BUT_INPUT_OUTPUT = Collections.unmodifiableSet(allButInputOutput);
        DIRECTIVES_INPUT = Collections.unmodifiableSet(input);
        DIRECTIVES_OUTPUT = Collections.unmodifiableSet(output);
        
    }
    

    
    
    private StandardTestFileNaming() {
        super();
    }
    
}
<commit_msg>Added NAME as a possible directive.<commit_after>/*
 * =============================================================================
 * 
 *   Copyright (c) 2011-2012, The THYMELEAF team (http://www.thymeleaf.org)
 * 
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 * 
 * =============================================================================
 */
package org.thymeleaf.testing.templateengine.standard.testfile;

import java.util.Collections;
import java.util.HashSet;
import java.util.Set;






public final class StandardTestFileNaming {

    
    public static final char COMMENT_PREFIX_CHAR = '#';
    public static final char DIRECTIVE_PREFIX_CHAR = '%';
    public static final String DIRECTIVE_TEMPLATE_NAME = "NAME";
    public static final String DIRECTIVE_TEMPLATE_MODE = "MODE";
    public static final String DIRECTIVE_CACHE = "CACHE";
    public static final String DIRECTIVE_CONTEXT = "CONTEXT";
    public static final String DIRECTIVE_FRAGMENT = "FRAGMENT";
    public static final String DIRECTIVE_INPUT = "INPUT";
    public static final String DIRECTIVE_OUTPUT = "OUTPUT";
    
    
    public static final Set<String> DIRECTIVES_ALL;
    public static final Set<String> DIRECTIVES_ALL_BUT_INPUT_OUTPUT;
    public static final Set<String> DIRECTIVES_INPUT;
    public static final Set<String> DIRECTIVES_OUTPUT;
    
    
    
    static {
        
        final Set<String> allButInputOutput = new HashSet<String>();
        allButInputOutput.add(DIRECTIVE_TEMPLATE_NAME);
        allButInputOutput.add(DIRECTIVE_TEMPLATE_MODE);
        allButInputOutput.add(DIRECTIVE_CACHE);
        allButInputOutput.add(DIRECTIVE_CONTEXT);
        allButInputOutput.add(DIRECTIVE_FRAGMENT);
        
        final Set<String> input = new HashSet<String>();
        input.add(DIRECTIVE_INPUT);
        
        final Set<String> output = new HashSet<String>();
        output.add(DIRECTIVE_OUTPUT);
        
        final Set<String> all = new HashSet<String>();
        all.addAll(allButInputOutput);
        all.addAll(input);
        all.addAll(output);
        
        DIRECTIVES_ALL = Collections.unmodifiableSet(all);
        DIRECTIVES_ALL_BUT_INPUT_OUTPUT = Collections.unmodifiableSet(allButInputOutput);
        DIRECTIVES_INPUT = Collections.unmodifiableSet(input);
        DIRECTIVES_OUTPUT = Collections.unmodifiableSet(output);
        
    }
    

    
    
    private StandardTestFileNaming() {
        super();
    }
    
}

{'fraction_non_alphanumeric': 0.1296137339055794, 'fraction_numerical': 0.004120171673819743, 'mean_word_length': 3.321958456973294, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '685040', 'n_tokens_mistral': 1629, 'n_tokens_neox': 1553, 'n_words': 422}