<commit_before>/*++

Copyright (c) 2013 <NAME>

Module Name:

    drawingshape.c

Abstract:

    This file contains the function definitions for the DRAWING_SHAPE type.

--*/

#include <irisshadingmodelp.h>

//
// Types
//

// struct _DRAWING_SHAPE {
//     PCDRAWING_SHAPE_VTABLE DrawingShapeVTable;
// };

//
// Functions
//

_Check_return_
_Ret_maybenull_
PDRAWING_SHAPE
DrawingShapeAllocate(
    _In_ PCDRAWING_SHAPE_VTABLE DrawingShapeVTable,
    _Field_size_bytes_(DataSizeInBytes) PCVOID Data,
    _In_ SIZE_T DataSizeInBytes,
    _In_ SIZE_T DataAlignment
    )
{
    PSHAPE Shape;

    Shape = ShapeAllocate(&DrawingShapeVTable->ShapeVTable,
                          Data,
                          DataSizeInBytes,
                          DataAlignment);

    return (PDRAWING_SHAPE) Shape;
}

PCTEXTURE
DrawingShapeGetTexture(
    _In_opt_ PCDRAWING_SHAPE DrawingShape,<commit_msg>Removes comment in drawing shape<commit_after>/*++

Copyright (c) 2013 <NAME>

Module Name:

    drawingshape.c

Abstract:

    This file contains the function definitions for the DRAWING_SHAPE type.

--*/

#include <irisshadingmodelp.h>

//
// Functions
//

_Check_return_
_Ret_maybenull_
PDRAWING_SHAPE
DrawingShapeAllocate(
    _In_ PCDRAWING_SHAPE_VTABLE DrawingShapeVTable,
    _Field_size_bytes_(DataSizeInBytes) PCVOID Data,
    _In_ SIZE_T DataSizeInBytes,
    _In_ SIZE_T DataAlignment
    )
{
    PSHAPE Shape;

    Shape = ShapeAllocate(&DrawingShapeVTable->ShapeVTable,
                          Data,
                          DataSizeInBytes,
                          DataAlignment);

    return (PDRAWING_SHAPE) Shape;
}

PCTEXTURE
DrawingShapeGetTexture(
    _In_opt_ PCDRAWING_SHAPE DrawingShape,
{'fraction_non_alphanumeric': 0.07255705090696314, 'fraction_numerical': 0.004681100058513751, 'mean_word_length': 2.7831858407079646, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2252518', 'n_tokens_mistral': 612, 'n_tokens_neox': 581, 'n_words': 114}