<commit_before>#include "BodymovinParser.h"
#include "FilepathHelper.h"

#include <fstream>

#include <assert.h>
#include <string.h>

namespace gum
{

BodymovinParser::BodymovinParser()
	: m_frame_rate(0)
	, m_width(0)
	, m_height(0)
	, m_start_frame(0)
	, m_end_frame(0)
{
}

void BodymovinParser::Parse(const Json::Value& val, const std::string& dir)
{
	Clear();

	ParseHeader(val);
	ParseAssets(val["assets"], dir);
	ParseLayers(val["layers"], m_layers);
}

void BodymovinParser::Clear()<commit_msg>fix compile<commit_after>#include "BodymovinParser.h"
#include "FilepathHelper.h"

#include <fstream>
#include <algorithm>

#include <assert.h>
#include <string.h>

namespace gum
{

BodymovinParser::BodymovinParser()
	: m_frame_rate(0)
	, m_width(0)
	, m_height(0)
	, m_start_frame(0)
	, m_end_frame(0)
{
}

void BodymovinParser::Parse(const Json::Value& val, const std::string& dir)
{
	Clear();

	ParseHeader(val);
	ParseAssets(val["assets"], dir);
	ParseLayers(val["layers"], m_layers);
}

void BodymovinParser::Clear()
{'fraction_non_alphanumeric': 0.1652003910068426, 'fraction_numerical': 0.009775171065493646, 'mean_word_length': 7.0, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 10, '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': '1988010', 'n_tokens_mistral': 432, 'n_tokens_neox': 425, 'n_words': 68}