<commit_before>import * as React from 'react'
import * as ReactDOM from 'react-dom'

import {CachedDictionaryService, cachedDictionary} from '../../../src/core/dictionaryManagementService'
import Config from '../config'
import ConfigKeys from '../../../src/configKeys'

let dict = new CachedDictionaryService(new Config(), {
	global: ConfigKeys.official_dict,
	local: ConfigKeys.user_dict,
	cache: ConfigKeys.cached_dict
});

export class DictionaryJSON extends React.Component<void,cachedDictionary> {
	state :cachedDictionary = {cache: []};
	constructor(){
		super();
		dict.cache.then(cache => this.setState(cache));
	}
	public render() {
		return <DictJSON cache={this.state.cache} />
	}
}

class DictJSON extends React.Component<cachedDictionary,void> {
	protected get formattedCache() {
		let contents = this.props.cache.map(entry => `"${entry.key}":"${entry.value}"`).join(',');
		return `{${contents}}`
	}
	public render() {
		return <div>
				{this.formattedCache}
			</div>
	}
}
<commit_msg>Updated the formatting of the exported json<commit_after>import * as React from 'react'
import * as ReactDOM from 'react-dom'

import {CachedDictionaryService, cachedDictionary} from '../../../src/core/dictionaryManagementService'
import Config from '../config'
import ConfigKeys from '../../../src/configKeys'

let dict = new CachedDictionaryService(new Config(), {
	global: ConfigKeys.official_dict,
	local: ConfigKeys.user_dict,
	cache: ConfigKeys.cached_dict
});

export class DictionaryJSON extends React.Component<void,cachedDictionary> {
	state :cachedDictionary = {cache: []};
	constructor(){
		super();
		dict.cache.then(cache => this.setState(cache));
	}
	public render() {
		return <DictJSON cache={this.state.cache} />
	}
}

class DictJSON extends React.Component<cachedDictionary,void> {
	protected get formattedCache() {
		let contents = this.props.cache.map(entry => `\t"${entry.key}":"${entry.value}"`).join(',\n');
		return `{\n${contents}\n}`
	}
	public render() {
		return <pre>
				{this.formattedCache}
			</pre>
	}
}

{'fraction_non_alphanumeric': 0.1607843137254902, 'fraction_numerical': 0.0, 'mean_word_length': 4.781869688385269, 'pattern_counts': {'":': 2, '<': 13, '<?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': '1990102', 'n_tokens_mistral': 651, 'n_tokens_neox': 626, 'n_words': 146}