<commit_before>import nimx.types
import nimx.context
import nimx.image
import nimx.animation
import nimx.property_visitor

import json, strutils

import rod_types
import rod.node
import rod.ray
import rod.tools.serializer
import rod.component

#import image_blur

type Sprite* = ref object of Component
    offset*: Point
    images*: seq[Image]
    currentFrame*: int
    motionBlurRadius*: float
    prevRootOffset: Vector3

proc image*(s: Sprite): Image =
    if not s.images.isNil and s.images.len > s.currentFrame:
        result = s.images[s.currentFrame]

proc `image=`*(s: Sprite, i: Image) =<commit_msg>fix import (#110)<commit_after>import nimx.types
import nimx.context
import nimx.image
import nimx.animation
import nimx.property_visitor

import json, strutils

import rod.rod_types
import rod.node
import rod.ray
import rod.tools.serializer
import rod.component

#import image_blur

type Sprite* = ref object of Component
    offset*: Point
    images*: seq[Image]
    currentFrame*: int
    motionBlurRadius*: float
    prevRootOffset: Vector3

proc image*(s: Sprite): Image =
    if not s.images.isNil and s.images.len > s.currentFrame:
        result = s.images[s.currentFrame]

proc `image=`*(s: Sprite, i: Image) =
{'fraction_non_alphanumeric': 0.09415584415584416, 'fraction_numerical': 0.004058441558441558, 'mean_word_length': 4.180672268907563, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5415367', 'n_tokens_mistral': 410, 'n_tokens_neox': 391, 'n_words': 118}