<commit_before>#pragma once
#include "VAnimation.h"
#include <SFML/System/String.hpp>
#include <iostream>
#include <map>
#include <vector>
#include <numeric>

class VAnimationManager
{
private:
	std::map<sf::String, VAnimation*> animationList;
	sf::String currentAnim;
	int current = 0;
	int lastFrame = -1;
	int animWidth = 0, animHeight = 0;
	int frameWidth = 0, frameHeight = 0;
	int offsetX = 0, offsetY = 0;
	bool pause = false;

public:
	VAnimationManager() {}
	VAnimationManager(int TextureWidth, int TextureHeight, int FrameWidth, int FrameHeight, int OffsetX, int OffsetY)
	{
		animWidth = TextureWidth / FrameWidth;
		animHeight = TextureHeight / FrameHeight;
		frameWidth = FrameWidth;
		frameHeight = FrameHeight;
		offsetX = OffsetX;
		offsetY = OffsetY;
	}<commit_msg>Only set up animation if the frame size is greater than 0.<commit_after>#pragma once
#include "VAnimation.h"
#include <SFML/System/String.hpp>
#include <iostream>
#include <map>
#include <vector>
#include <numeric>

class VAnimationManager
{
private:
	std::map<sf::String, VAnimation*> animationList;
	sf::String currentAnim;
	int current = 0;
	int lastFrame = -1;
	int animWidth = 0, animHeight = 0;
	int frameWidth = 0, frameHeight = 0;
	int offsetX = 0, offsetY = 0;
	bool pause = false;

public:
	VAnimationManager() {}
	VAnimationManager(int TextureWidth, int TextureHeight, int FrameWidth, int FrameHeight, int OffsetX, int OffsetY)
	{
        if (FrameWidth > 0 && FrameHeight > 0)
        {
            animWidth = TextureWidth / FrameWidth;
            animHeight = TextureHeight / FrameHeight;
		}

		frameWidth = FrameWidth;
		frameHeight = FrameHeight;
		offsetX = OffsetX;
		offsetY = OffsetY;
	}
{'fraction_non_alphanumeric': 0.10821998817267889, 'fraction_numerical': 0.011235955056179775, 'mean_word_length': 4.3544303797468356, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '4979981', 'n_tokens_mistral': 589, 'n_tokens_neox': 550, 'n_words': 164}