<commit_before>package hu.bme.mit.codemodel.rifle.database;

import java.util.HashMap;
import java.util.Map;

public class Query {
    private String statementTemplate;
    private Map<String, Object> statementParameters = new HashMap<>();

    public Query() {}

    public Query(String template) {
        this.statementTemplate = template;
    }

    public Query(String template, Map<String, Object> parameters) {
        this.statementTemplate = template;
        this.statementParameters = parameters;
    }

    public String getStatementTemplate() {
        return statementTemplate;
    }

    public Map<String, Object> getStatementParameters() {
        return statementParameters;
    }

    public synchronized void append(String template, Map<String, Object> parameters) {
        StringBuilder builder = new StringBuilder(this.statementTemplate);
        builder.append(template);
        this.statementTemplate = builder.toString();
        this.statementParameters.putAll(parameters);
    }<commit_msg>Queryies can only be parameterized<commit_after>package hu.bme.mit.codemodel.rifle.database;

import java.util.HashMap;
import java.util.Map;

public class Query {
    private String statementTemplate;
    private Map<String, Object> statementParameters = new HashMap<>();

    public Query() {}

    public Query(String template, Map<String, Object> parameters) {
        this.statementTemplate = template;
        this.statementParameters = parameters;
    }

    public String getStatementTemplate() {
        return statementTemplate;
    }

    public Map<String, Object> getStatementParameters() {
        return statementParameters;
    }

    public synchronized void append(String template, Map<String, Object> parameters) {
        StringBuilder builder = new StringBuilder(this.statementTemplate);
        builder.append(template);
        this.statementTemplate = builder.toString();
        this.statementParameters.putAll(parameters);
    }
{'fraction_non_alphanumeric': 0.08971109984794728, 'fraction_numerical': 0.0, 'mean_word_length': 3.517162471395881, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4672583', 'n_tokens_mistral': 485, 'n_tokens_neox': 472, 'n_words': 123}