<commit_before>package com.brg.generate;

import com.brg.domain.DatabaseType;
import com.brg.domain.RuleOperand;
import com.brg.domain.RuleValueBundle;
import org.stringtemplate.v4.ST;


public class OracleExport implements ExportTemplate {

    private ST template;

    @Override
    public String fillTemplate(RuleValueBundle bundle, RuleOperand operand) {
        for(String key: bundle.getKeys()) {
            String templateKey = key.replaceAll("\\.", "_");

            this.template.add(templateKey, bundle.getValue(key));
        }

        // Add operator
        if (operand != null) {
            this.template.add("operand", operand.getSign());
        }

        return this.template.render();
    }

    @Override
    public DatabaseType getType() {
        return DatabaseType.ORACLE;
    }

    @Override
    public String getCode() {
        return null;
    }


    @Override<commit_msg>Added the 2 new methods on OracleExport class.<commit_after>package com.brg.generate;

import com.brg.domain.DatabaseType;
import com.brg.domain.RuleOperand;
import com.brg.domain.RuleValueBundle;
import org.stringtemplate.v4.ST;


public class OracleExport implements ExportTemplate {

    private ST template;

    @Override
    public String fillTemplate(RuleValueBundle bundle, RuleOperand operand) {
        for(String key: bundle.getKeys()) {
            String templateKey = key.replaceAll("\\.", "_");

            this.template.add(templateKey, bundle.getValue(key));
        }

        // Add operator
        if (operand != null) {
            this.template.add("operand", operand.getSign());
        }

        return this.template.render();
    }

    @Override
    public DatabaseType getType() {
        return DatabaseType.ORACLE;
    }

    @Override
    public void setName(String n){

    }

    @Override
    public void setCode(String c){
        
    }

    @Override
    public String getCode() {
        return null;
    }


    @Override
{'fraction_non_alphanumeric': 0.10512950736414424, 'fraction_numerical': 0.0015236160487557136, 'mean_word_length': 2.4744268077601412, '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': '6606855', 'n_tokens_mistral': 565, 'n_tokens_neox': 546, 'n_words': 126}