<commit_before>package coursesketch.recognition.framework;

import coursesketch.recognition.framework.exceptions.ShapeConversionException;
import protobuf.srl.sketch.Sketch;

import java.util.Map;

/**
 * Created by <NAME> on 4/20/2016.
 */
public interface ShapeConverterInterface {
    /**
     * Used to create a wrapper around shape, stroke and point.
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbObject(Sketch.SrlObject object) throws ShapeConversionException;

    /**
     * Used to create a shape for the database
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbShape(Sketch.SrlShape srlShape) throws ShapeConversionException;

    /**
     * Used to create a stroke for the database
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbStroke(final Sketch.SrlStroke srlStroke) throws ShapeConversionException;

    /**
     * Used to create a point for the database
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbPoint(final Sketch.SrlPoint srlPoint) throws ShapeConversionException;

    /**
     * Used to create an interpretation for the database
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbInterpreation(final Sketch.SrlInterpretation srlInterpretation) throws ShapeConversionException;

    /**
     * Parses the interpretation from the database.
     *
     * @return A parsed interpretation.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Sketch.SrlInterpretation parseInterpretation(final Map interpretationObject) throws ShapeConversionException;<commit_msg>fixed spelling error<commit_after>package coursesketch.recognition.framework;

import coursesketch.recognition.framework.exceptions.ShapeConversionException;
import protobuf.srl.sketch.Sketch;

import java.util.Map;

/**
 * Created by <NAME> on 4/20/2016.
 */
public interface ShapeConverterInterface {
    /**
     * Used to create a wrapper around shape, stroke and point.
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbObject(Sketch.SrlObject object) throws ShapeConversionException;

    /**
     * Used to create a shape for the database
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbShape(Sketch.SrlShape srlShape) throws ShapeConversionException;

    /**
     * Used to create a stroke for the database
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbStroke(final Sketch.SrlStroke srlStroke) throws ShapeConversionException;

    /**
     * Used to create a point for the database
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbPoint(final Sketch.SrlPoint srlPoint) throws ShapeConversionException;

    /**
     * Used to create an interpretation for the database
     *
     * @return A map in a format that can be stored in the database.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Map makeDbInterpretation(final Sketch.SrlInterpretation srlInterpretation) throws ShapeConversionException;

    /**
     * Parses the interpretation from the database.
     *
     * @return A parsed interpretation.
     * @throws ShapeConversionException thrown during a failed conversion.
     */
    Sketch.SrlInterpretation parseInterpretation(final Map interpretationObject) throws ShapeConversionException;
{'fraction_non_alphanumeric': 0.06284916201117319, 'fraction_numerical': 0.0032588454376163874, 'mean_word_length': 3.2502472799208704, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '378731', 'n_tokens_mistral': 1152, 'n_tokens_neox': 1099, 'n_words': 419}