<commit_before>//Import shapes
import {textShape} from "./text.js";
import {lineShape} from "./line.js";
import {rectangleShape} from "./rectangle.js";
import {circleShape} from "./circle.js";
import {arcShape} from "./arc.js";
import {segmentShape} from "./segment.js";
import {areaShape} from "./area.js";
import {polylineShape} from "./polyline.js";

//Shape types
const shapeTypes = {
    "text": textShape,
    "line": lineShape,
    "rectangle": rectangleShape,
    "circle": circleShape,
    "arc": arcShape,
    "segment": segmentShape,
    "area": areaShape,
    "polyline": polylineShape
};

//Get a shape object
export function getShape (name) {
    return shapeTypes[name];
}
<commit_msg>[shapes] Registered path shape generator<commit_after>//Import shapes
import {textShape} from "./text.js";
import {lineShape} from "./line.js";
import {rectangleShape} from "./rectangle.js";
import {circleShape} from "./circle.js";
import {arcShape} from "./arc.js";
import {segmentShape} from "./segment.js";
import {areaShape} from "./area.js";
import {polylineShape} from "./polyline.js";
import {pathShape} from "./path.js";

//Shape types
const shapeTypes = {
    "text": textShape,
    "line": lineShape,
    "rectangle": rectangleShape,
    "circle": circleShape,
    "arc": arcShape,
    "segment": segmentShape,
    "area": areaShape,
    "polyline": polylineShape,
    "path": pathShape
};

//Get a shape object
export function getShape (name) {
    return shapeTypes[name];
}

{'fraction_non_alphanumeric': 0.16408876933423, 'fraction_numerical': 0.0, 'mean_word_length': 4.095890410958904, 'pattern_counts': {'":': 17, '<': 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': '6570431', 'n_tokens_mistral': 463, 'n_tokens_neox': 461, 'n_words': 138}