<commit_before>class Rotten.Engine

    @CANVAS = 0
    @WEBGL = 1

    constructor: (view) ->
        if not view
            @view = document.createElement "canvas"
            @view.style.position = "absolute"
            @view.style.top = "0px"
            @view.style.left = "0px"
            @view.width = Rotten.Utils.screenWidth()
            @view.height = Rotten.Utils.screenHeight()
            document.body.appendChild @view
        else
            @view = view

        @width = @view.width
        @height = @view.height


    getContext: ->
        throw new Error "[Rotten.Engine] Your render should override getContext() method"

    getWidth: ->
        @width

    getHeight: ->
        @height

    setBackgroundColor: (color) ->
        throw new Error "[Rotten.Engine] Your render should override setBackgroundColor() method"

    clearRect: ->
        throw new Error "[Rotten.Engine] Your render should override clearRect() method"<commit_msg>update missing abstract arguments<commit_after>class Rotten.Engine

    @CANVAS = 0
    @WEBGL = 1

    constructor: (view) ->
        if not view
            @view = document.createElement "canvas"
            @view.style.position = "absolute"
            @view.style.top = "0px"
            @view.style.left = "0px"
            @view.width = Rotten.Utils.screenWidth()
            @view.height = Rotten.Utils.screenHeight()
            document.body.appendChild @view
        else
            @view = view

        @width = @view.width
        @height = @view.height


    getContext: ->
        throw new Error "[Rotten.Engine] Your render should override getContext() method"

    getWidth: ->
        @width

    getHeight: ->
        @height

    setBackgroundColor: (color) ->
        throw new Error "[Rotten.Engine] Your render should override setBackgroundColor() method"

    clearRect: (x, y, width, height) ->
        throw new Error "[Rotten.Engine] Your render should override clearRect() method"
{'fraction_non_alphanumeric': 0.10656565656565657, 'fraction_numerical': 0.00404040404040404, 'mean_word_length': 2.029051987767584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, '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': '1747035', 'n_tokens_mistral': 555, 'n_tokens_neox': 532, 'n_words': 148}