<commit_before>package coursesketch.recognition.framework;

import protobuf.srl.commands.Commands;
import protobuf.srl.sketch.Sketch;
import java.util.List;

/**
 * Created by <NAME> on 4/13/2016.
 */
public interface TemplateDatabaseInterface {

    /**
     * Adds a template to be saved for use in recognition later.
     *
     * @param interpretation The interpretation of the template.
     * @param template The template that is being saved.
     */
    public void addTemplate(Sketch.SrlInterpretation interpretation, Sketch.SrlSketch template);

    /**
     * Adds a template to be saved for use in recognition later.
     *
     * @param interpretation The interpretation of the template.
     * @param template The template that is being saved.
     */
    public void addTemplate(Sketch.SrlInterpretation interpretation, Sketch.SrlShape template);

    /**
     * Adds a template to be saved for use in recognition later.
     *
     * @param interpretation The interpretation of the template.
     * @param template The template that is being saved.
     */
    public void addTemplate(Sketch.SrlInterpretation interpretation, Sketch.SrlStroke template);

    /**
     * Returns a Template based on it's interpretation
     *
     * @param interpretation The interpretation of the template.
     * @return Returns a list of SrlObjects based on the interpretation.
     */
    public List<Sketch.RecognitionTemplate> getTemplate(Sketch.SrlInterpretation interpretation);
}<commit_msg>Added methods to the template database.<commit_after>package coursesketch.recognition.framework;

import protobuf.srl.commands.Commands;
import protobuf.srl.sketch.Sketch;
import java.util.List;

/**
 * Created by <NAME> on 4/13/2016.
 */
public interface TemplateDatabaseInterface {

    /**
     * Adds a template to be saved for use in recognition later.
     *
     * @param interpretation The interpretation of the template.
     * @param template The template that is being saved.
     */
    public void addTemplate(Sketch.SrlInterpretation interpretation, Sketch.SrlSketch template);

    /**
     * Adds a template to be saved for use in recognition later.
     *
     * @param interpretation The interpretation of the template.
     * @param template The template that is being saved.
     */
    public void addTemplate(Sketch.SrlInterpretation interpretation, Sketch.SrlShape template);

    /**
     * Adds a template to be saved for use in recognition later.
     *
     * @param interpretation The interpretation of the template.
     * @param template The template that is being saved.
     */
    public void addTemplate(Sketch.SrlInterpretation interpretation, Sketch.SrlStroke template);

    /**
     * Returns a Template based on it's interpretation
     *
     * @param interpretation The interpretation of the template.
     * @return Returns a list of SrlObjects based on the interpretation.
     */
    public List<Sketch.RecognitionTemplate> getTemplate(Sketch.SrlInterpretation interpretation);

    /**
     * @return All templates stored.
     */
    public List<Sketch.RecognitionTemplate> getTemplate();

    /**
     * @return All interpretations stored.
     */
    public List<Sketch.SrlInterpretation> getAllInterpretations();
}
{'fraction_non_alphanumeric': 0.07699386503067485, 'fraction_numerical': 0.004294478527607362, 'mean_word_length': 3.2186287192755496, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5399117', 'n_tokens_mistral': 861, 'n_tokens_neox': 833, 'n_words': 299}