<commit_before>import { fetchResource } from '../web/io';
import { Client, broadcast } from '../web/bridge';
import { View } from '../../bindings/html/view';
import { Remote } from '../../bindings/html/remote';

import FTLASTParser from '../../lib/format/ftl/ast/parser';
import FTLEntriesParser from '../../lib/format/ftl/entries/parser';

import { Context } from '../../lib/context';
import { Env } from '../../lib/env';
import { L10nError } from '../../lib/errors';
import { emit, addEventListener, removeEventListener } from '../../lib/events';
import { prioritizeLocales } from '../../lib/intl';
import { MockContext, lang } from '../../lib/mocks';
import { walkEntry, walkValue, pseudo } from '../../lib/pseudo';
import { format } from '../../lib/resolver';

window.L20n = {
  fetchResource, Client, Remote, View, broadcast,
  FTLASTParser, FTLEntriesParser,
  Context, Env, L10nError, emit, addEventListener, removeEventListener,
  prioritizeLocales, MockContext, lang,
  walkEntry, walkValue, pseudo, format
};<commit_msg>expose createEntriesFromAST in the tooling runtime<commit_after>import { fetchResource } from '../web/io';
import { Client, broadcast } from '../web/bridge';
import { View } from '../../bindings/html/view';
import { Remote } from '../../bindings/html/remote';

import FTLASTParser from '../../lib/format/ftl/ast/parser';
import FTLEntriesParser from '../../lib/format/ftl/entries/parser';
import {createEntriesFromAST} from '../../lib/format/ftl/entries/transformer';

import { Context } from '../../lib/context';
import { Env } from '../../lib/env';
import { L10nError } from '../../lib/errors';
import { emit, addEventListener, removeEventListener } from '../../lib/events';
import { prioritizeLocales } from '../../lib/intl';
import { MockContext, lang } from '../../lib/mocks';
import { walkEntry, walkValue, pseudo } from '../../lib/pseudo';
import { format } from '../../lib/resolver';

window.L20n = {
  fetchResource, Client, Remote, View, broadcast,
  FTLASTParser, FTLEntriesParser, createEntriesFromAST,
  Context, Env, L10nError, emit, addEventListener, removeEventListener,
  prioritizeLocales, MockContext, lang,
  walkEntry, walkValue, pseudo, format
};
{'fraction_non_alphanumeric': 0.18835304822565968, 'fraction_numerical': 0.00545950864422202, 'mean_word_length': 3.708779443254818, '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': '6174060', 'n_tokens_mistral': 626, 'n_tokens_neox': 646, 'n_words': 176}