<commit_before>//
// Flump - Copyright 2012 Three Rings Design

package flump.export {

import flash.filesystem.File;
import flash.utils.ByteArray;
import flash.utils.IDataOutput;

import flump.xfl.XflLibrary;

public class JSONFormat extends Format
{
    public static function readJSON (file :File) :Object {
        const bytes :ByteArray = Files.read(file);
        return JSON.parse(bytes.readUTFBytes(bytes.length))
    }

    public function JSONFormat (destDir :File, lib :XflLibrary, conf :ExportConf) {
        super(destDir, lib, conf);
        _prefix = conf.name + "/" + lib.location;
        _metaFile =  _destDir.resolvePath(_prefix + "/resources.json");
    }
<commit_msg>Let's make it library.json to match StarlingFormat.<commit_after>//
// Flump - Copyright 2012 Three Rings Design

package flump.export {

import flash.filesystem.File;
import flash.utils.ByteArray;
import flash.utils.IDataOutput;

import flump.xfl.XflLibrary;

public class JSONFormat extends Format
{
    public static function readJSON (file :File) :Object {
        const bytes :ByteArray = Files.read(file);
        return JSON.parse(bytes.readUTFBytes(bytes.length))
    }

    public function JSONFormat (destDir :File, lib :XflLibrary, conf :ExportConf) {
        super(destDir, lib, conf);
        _prefix = conf.name + "/" + lib.location;
        _metaFile =  _destDir.resolvePath(_prefix + "/library.json");
    }

{'fraction_non_alphanumeric': 0.10835694050991501, 'fraction_numerical': 0.0056657223796034, 'mean_word_length': 3.4574132492113563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1683399', 'n_tokens_mistral': 433, 'n_tokens_neox': 419, 'n_words': 112}