<commit_before>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using WebIDLCollector.IDLTypes;
using WebIDLCollector.TypeMirrorTypes;

namespace WebIDLCollector.Builders
{
    public class JsonDataBuilder
    {
        private readonly SpecData _specData;

        public JsonDataBuilder(SpecData allCombinedSpecData)
        {
            _specData = allCombinedSpecData;
        }

        public void GenerateFile()
        {
            var typeMirrorFile = "typeMirror/SpecMirror.js";
            Console.WriteLine("Creating JsonObject");
            var jsonString = CreateJsonObject();
            if (File.Exists(typeMirrorFile))<commit_msg>Export directly to builder project<commit_after>﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using WebIDLCollector.IDLTypes;
using WebIDLCollector.TypeMirrorTypes;

namespace WebIDLCollector.Builders
{
    public class JsonDataBuilder
    {
        private readonly SpecData _specData;

        public JsonDataBuilder(SpecData allCombinedSpecData)
        {
            _specData = allCombinedSpecData;
        }

        public void GenerateFile()
        {
            var typeMirrorFile = @"D:\GitHub\Project-Parity\PropertyDiffer\PropertyDiffer\TypeMirrorJsonFiles\SpecMirror.js";
            Console.WriteLine("Creating JsonObject");
            var jsonString = CreateJsonObject();
            if (File.Exists(typeMirrorFile))
{'fraction_non_alphanumeric': 0.0748663101604278, 'fraction_numerical': 0.0, 'mean_word_length': 3.0569105691056913, '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': '6269802', 'n_tokens_mistral': 415, 'n_tokens_neox': 398, 'n_words': 85}