<commit_before>/// <reference types="geojson" />

type Feature = GeoJSON.Feature<any>;
type Features = GeoJSON.FeatureCollection<any>;

/**
 * http://turfjs.org/docs.html#flatten
 */
declare function flatten(features: Feature | Features);
declare namespace flatten { }
export = flatten;<commit_msg>Add complex input & output typescript handling<commit_after>/// <reference types="geojson" />

import {
    Point, Points, MultiPoint, MultiPoints,
    LineString, LineStrings, MultiLineString, MultiLineStrings,
    Polygon, Polygons, MultiPolygon, MultiPolygons,
    Feature, Features} from '@turf/helpers'

interface Flatten {
    /**
     * http://turfjs.org/docs/#flatten
     */
    (geojson: Point | Points | MultiPoint | MultiPoints): Points;
    (geojson: LineString | LineStrings | MultiLineString | MultiLineStrings): LineStrings;
    (geojson: Polygons | Polygons | MultiPolygons | MultiPolygons): Polygons;
    (geojson: Feature | Features): Features;
}

declare const flatten: Flatten;
declare namespace flatten { }
export = flatten;
{'fraction_non_alphanumeric': 0.12164750957854406, 'fraction_numerical': 0.0, 'mean_word_length': 4.588235294117647, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4310824', 'n_tokens_mistral': 317, 'n_tokens_neox': 307, 'n_words': 78}