<commit_before>import * as getStream from "get-stream";

import * as _ from "lodash";

import { List, Map } from "immutable";

import * as targetLanguages from "./Language/All";
import { OptionDefinition } from "./RendererOptions";
import { TargetLanguage } from "./TargetLanguage";
import { SerializedRenderResult, Annotation, serializeRenderResult } from "./Source";
import { IssueAnnotationData } from "./Annotation";
import { defined, assert, panic } from "./Support";
import { CompressedJSON, Value } from "./CompressedJSON";
import { urlsFromURLGrammar } from "./URLGrammar";
import { combineClasses } from "./CombineClasses";
import { schemaToType } from "./JSONSchemaInput";
import { TypeInference } from "./Inference";
import { inferMaps } from "./InferMaps";
import { TypeGraphBuilder } from "./TypeBuilder";
import { TypeGraph } from "./TypeGraph";
import { readGraphQLSchema } from "./GraphQL";
import { Readable } from "stream";

const stringToStream = require("string-to-stream");
const fetch = require("node-fetch");

export function getTargetLanguage(name: string): TargetLanguage {
    const language = targetLanguages.languageNamed(name);
    if (language) {
        return language;
    }
    throw new Error(`'${name}' is not yet supported as an output language.`);
}

export type RendererOptions = { [name: string]: string };

export interface Sample<T> {
    source: T;
}

export interface Source<T> {
    name: string;
    samples: Sample<T>[];
}<commit_msg>Re-export essential types and data<commit_after>import * as getStream from "get-stream";
import * as _ from "lodash";
import { List, Map } from "immutable";
import { Readable } from "stream";

import * as targetLanguages from "./Language/All";
import { OptionDefinition } from "./RendererOptions";
import { TargetLanguage } from "./TargetLanguage";
import { SerializedRenderResult, Annotation, serializeRenderResult } from "./Source";
import { IssueAnnotationData } from "./Annotation";
import { defined, assert, panic } from "./Support";
import { CompressedJSON, Value } from "./CompressedJSON";
import { urlsFromURLGrammar } from "./URLGrammar";
import { combineClasses } from "./CombineClasses";
import { schemaToType } from "./JSONSchemaInput";
import { TypeInference } from "./Inference";
import { inferMaps } from "./InferMaps";
import { TypeGraphBuilder } from "./TypeBuilder";
import { TypeGraph } from "./TypeGraph";
import { readGraphQLSchema } from "./GraphQL";

// Re-export essential types and functions
export { TargetLanguage } from "./TargetLanguage";
export { SerializedRenderResult, Annotation } from "./Source";
export { all as languages, languageNamed } from "./Language/All";
export { OptionDefinition } from "./RendererOptions";

const stringToStream = require("string-to-stream");
const fetch = require("node-fetch");

export function getTargetLanguage(name: string): TargetLanguage {
    const language = targetLanguages.languageNamed(name);
    if (language) {
        return language;
    }
    throw new Error(`'${name}' is not yet supported as an output language.`);
}

export type RendererOptions = { [name: string]: string };

export interface Sample<T> {
    source: T;
}

export interface Source<T> {
    name: string;
    samples: Sample<T>[];
}
{'fraction_non_alphanumeric': 0.13409021172138694, 'fraction_numerical': 0.0, 'mean_word_length': 4.68935427574171, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1143337', 'n_tokens_mistral': 876, 'n_tokens_neox': 876, 'n_words': 291}