<commit_before>// Library for making equilateral polygons in HTML SVG format
// Author: <NAME>

/**
 *  Updates points attribute on HTML Polygon to render an equilateral triangle
 *  @param polygonElmnt and HTML (dom) polygon element to have its points attribute updated
 *  @param radius half of the width/height of the triangle to render
 *  @param center (point) object with x and y properties
 *  @param rotation in radians
 */
function svgRenderTriangle(polygonElmnt, radius, center={x:0,y:0}, rotate=0) {
    svgRenderNGon(polygonElmnt, radius, center, 3, rotate);
}

/**
 *  Updates points attribute on HTML Polygon to render a square
 *  @param polygonElmnt and HTML (dom) polygon element to have its points attribute updated
 *  @param radius half of the width/height of the square to render
 *  @param center (point) object with x and y properties
 *  @param rotation in radians
 */
function svgRenderSquare(polygonElmnt, radius, center={x:0,y:0}, rotate=0) {
    svgRenderNGon(polygonElmnt, radius, center, 4, rotate);
}

/**
 *  Updates points attribute on HTML Polygon to render a pentagon
 *  @param polygonElmnt and HTML (dom) polygon element to have its points attribute updated<commit_msg>update default orientation of svgRenderSquare() - make sides parallel to screen edges<commit_after>// Library for making equilateral polygons in HTML SVG format
// Author: <NAME>

/**
 *  Updates points attribute on HTML Polygon to render an equilateral triangle
 *  @param polygonElmnt and HTML (dom) polygon element to have its points attribute updated
 *  @param radius half of the width/height of the triangle to render
 *  @param center (point) object with x and y properties
 *  @param rotation in radians
 */
function svgRenderTriangle(polygonElmnt, radius, center={x:0,y:0}, rotate=0) {
    svgRenderNGon(polygonElmnt, radius, center, 3, rotate);
}

/**
 *  Updates points attribute on HTML Polygon to render a square
 *  @param polygonElmnt and HTML (dom) polygon element to have its points attribute updated
 *  @param radius half of the width/height of the square to render
 *  @param center (point) object with x and y properties
 *  @param rotation in radians
 */
function svgRenderSquare(polygonElmnt, radius, center={x:0,y:0}, rotate=Math.PI/4) {
    svgRenderNGon(polygonElmnt, radius, center, 4, rotate);
}

/**
 *  Updates points attribute on HTML Polygon to render a pentagon
 *  @param polygonElmnt and HTML (dom) polygon element to have its points attribute updated
{'fraction_non_alphanumeric': 0.08065810593900481, 'fraction_numerical': 0.006420545746388443, 'mean_word_length': 4.503311258278146, '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': '2505195', 'n_tokens_mistral': 745, 'n_tokens_neox': 710, 'n_words': 309}