{"size": 583, "ext": "js", "max_stars_repo_path": "source/CFG_File.js", "max_stars_repo_name": "cpetry/csv_finance_charts", "max_stars_repo_stars_event_min_datetime": "2022-03-18T09:51:33.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-18T09:51:33.000Z", "max_issues_repo_path": "source/CFG_File.js", "max_issues_repo_name": "cpetry/csv_finance_charts", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "source/CFG_File.js", "max_forks_repo_name": "cpetry/csv_finance_charts", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.8064516129, "max_line_length": 69, "alphanum_fraction": 0.5660377358}
class CFG_File
{
    constructor(data){
        this.parse(data);
    }

    parse(data)
    {
        var jsonData = JSON.parse(data);

        this._csv_files = [];
        for (const [key, value] of Object.entries(jsonData.csvFiles))
            this._csv_files.push({name: key, path: value});

        this._categories = [];
        this._categories = jsonData.categories
    }

    getCSVFileInfos()
    {
        return this._csv_files;
    }

    getCategories()
    {
        return this._categories;
    }
}

if (typeof module !== 'undefined')
    module.exports = CFG_File;