<commit_before>// Compiled using typings@0.6.8
// Source: node_modules\free-style\dist\free-style.d.ts
declare module 'react-free-style~free-style' {
/**
 * Valid CSS property names.
 */
export type PropertyName = string;
/**
 * Valid CSS property values.
 */
export type PropertyValue = void | number | string | string[] | number[];
/**
 * User styles object.
 */
export type UserStyles = any;
/**
 * Cacheable interface.
 */
export interface ICacheable<T> {
    id: string;
    clone(): T;
}
/**
 * Common interface all style classes conform to.
 */
export interface IStyle<T> extends ICacheable<T> {
    getStyles(): string;
}
/**
 * Change listeners are registered to react to CSS changes.
 */
export interface ChangeListenerFunction {
    (type?: string, style?: ICacheable<any>[], parent?: any): any;
}
/**
 * Implement a cache/event emitter.
 */
export class Cache<T extends ICacheable<any>> {
    private _children;
    private _keys;
    private _counts;
    private _listeners;
    private _mergeListener;
    private _childListener;
    constructor();
    values(): T[];
    empty(): void;
    add<U extends T>(style: U): U;
    get(style: T): T;
    count(style: T): number;
    remove(style: T): void;
    addChangeListener(fn: ChangeListenerFunction): void;
    removeChangeListener(fn: ChangeListenerFunction): void;
    emitChange(type: string, path: ICacheable<any>[]): void;
    merge<U extends Cache<T>>(style: U): void;
    unmerge<U extends Cache<T>>(style: U): void;
}
/**
 * Selector is a dumb class made to represent nested CSS selectors.
 */
export class Selector implements ICacheable<Selector> {
    selector: string;
    id: string;
    constructor(selector: string, id?: string);
    clone(): Selector;
}
/**
 * The style container registers a style string with selectors.
 */
export class Style extends Cache<Selector> implements IStyle<Style> {
    style: string;
    id: string;
    constructor(style: string, id?: string);
    getStyles(): string;
    clone(): Style;
}
/**
 * Implement rule logic for style output.
 */
export class Rule extends Cache<Rule | Style> implements IStyle<Rule> {
    rule: string;
    style: string;
    id: string;
    constructor(rule: string, style?: string, id?: string);
    getStyles(): string;
    clone(): Rule;
}
/**
 * The FreeStyle class implements the API for everything else.
 */
export class FreeStyle extends Cache<Rule | Style> implements IStyle<FreeStyle> {
    id: string;
    constructor(id?: string);
    url(url: string): string;
    join(...classList: Array<string | Object | void | string[]>): string;
    registerStyle(styles: UserStyles): string;
    registerRule(rule: string, styles: UserStyles): void;
    registerKeyframes(keyframes: UserStyles): string;
    inject(target?: HTMLElement): HTMLElement;
    getStyles(): string;
    clone(): FreeStyle;
}
/**
 * Exports a simple function to create a new instance.
 */
export function create(): FreeStyle;
}

// Compiled using typings@0.6.8
// Source: node_modules\react-free-style\dist\react-free-style.d.ts
declare module 'react-free-style/dist/react-free-style2' {
import React = require('react');
export import FreeStyle = require('react-free-style~free-style');
/**
 * Create a specialized free style instance.
 */
export class ReactFreeStyle extends FreeStyle.FreeStyle {
    /**
     * Expose the `StyleElement` for use.
     */
    Element: typeof StyleElement;
    /**
     * Create a React component that inherits from a user component. This is
     * required for methods on the user component to continue working once
     * wrapped with the style functionality.
     */
    component<P, C>(Component: React.ComponentClass<P, C>): React.ComponentClass<P, C>;
}
/**
 * Create the <style /> element.
 */
export class StyleElement extends React.Component<{}, {}, {}> {
    static displayName: string;
    static contextTypes: React.ValidationMap<any>;
    onChange: () => void;
    componentWillMount(): void;
    componentWillUnmount(): void;
    render(): React.DOMElement<{<commit_msg>Add link to issue explaining why react-free-style typings were modified<commit_after>// Compiled using typings@0.6.8
// Source: node_modules\free-style\dist\free-style.d.ts
declare module 'react-free-style~free-style' {
/**
 * Valid CSS property names.
 */
export type PropertyName = string;
/**
 * Valid CSS property values.
 */
export type PropertyValue = void | number | string | string[] | number[];
/**
 * User styles object.
 */
export type UserStyles = any;
/**
 * Cacheable interface.
 */
export interface ICacheable<T> {
    id: string;
    clone(): T;
}
/**
 * Common interface all style classes conform to.
 */
export interface IStyle<T> extends ICacheable<T> {
    getStyles(): string;
}
/**
 * Change listeners are registered to react to CSS changes.
 */
export interface ChangeListenerFunction {
    (type?: string, style?: ICacheable<any>[], parent?: any): any;
}
/**
 * Implement a cache/event emitter.
 */
export class Cache<T extends ICacheable<any>> {
    private _children;
    private _keys;
    private _counts;
    private _listeners;
    private _mergeListener;
    private _childListener;
    constructor();
    values(): T[];
    empty(): void;
    add<U extends T>(style: U): U;
    get(style: T): T;
    count(style: T): number;
    remove(style: T): void;
    addChangeListener(fn: ChangeListenerFunction): void;
    removeChangeListener(fn: ChangeListenerFunction): void;
    emitChange(type: string, path: ICacheable<any>[]): void;
    merge<U extends Cache<T>>(style: U): void;
    unmerge<U extends Cache<T>>(style: U): void;
}
/**
 * Selector is a dumb class made to represent nested CSS selectors.
 */
export class Selector implements ICacheable<Selector> {
    selector: string;
    id: string;
    constructor(selector: string, id?: string);
    clone(): Selector;
}
/**
 * The style container registers a style string with selectors.
 */
export class Style extends Cache<Selector> implements IStyle<Style> {
    style: string;
    id: string;
    constructor(style: string, id?: string);
    getStyles(): string;
    clone(): Style;
}
/**
 * Implement rule logic for style output.
 */
export class Rule extends Cache<Rule | Style> implements IStyle<Rule> {
    rule: string;
    style: string;
    id: string;
    constructor(rule: string, style?: string, id?: string);
    getStyles(): string;
    clone(): Rule;
}
/**
 * The FreeStyle class implements the API for everything else.
 */
export class FreeStyle extends Cache<Rule | Style> implements IStyle<FreeStyle> {
    id: string;
    constructor(id?: string);
    url(url: string): string;
    join(...classList: Array<string | Object | void | string[]>): string;
    registerStyle(styles: UserStyles): string;
    registerRule(rule: string, styles: UserStyles): void;
    registerKeyframes(keyframes: UserStyles): string;
    inject(target?: HTMLElement): HTMLElement;
    getStyles(): string;
    clone(): FreeStyle;
}
/**
 * Exports a simple function to create a new instance.
 */
export function create(): FreeStyle;
}

// Compiled using typings@0.6.8
// Source: node_modules\react-free-style\dist\react-free-style.d.ts
// NOTE: This has been renamed from 'react-free-style/dist/react-free-style' to
//       'react-free-style/dist/react-free-style2' due to the issue described in
//       https://github.com/Microsoft/TypeScript/issues/6427
declare module 'react-free-style/dist/react-free-style2' {
import React = require('react');
export import FreeStyle = require('react-free-style~free-style');
/**
 * Create a specialized free style instance.
 */
export class ReactFreeStyle extends FreeStyle.FreeStyle {
    /**
     * Expose the `StyleElement` for use.
     */
    Element: typeof StyleElement;
    /**
     * Create a React component that inherits from a user component. This is
     * required for methods on the user component to continue working once
     * wrapped with the style functionality.
     */
    component<P, C>(Component: React.ComponentClass<P, C>): React.ComponentClass<P, C>;
}
/**
 * Create the <style /> element.
 */
export class StyleElement extends React.Component<{}, {}, {}> {
    static displayName: string;
    static contextTypes: React.ValidationMap<any>;
    onChange: () => void;
    componentWillMount(): void;
    componentWillUnmount(): void;
    render(): React.DOMElement<{
{'fraction_non_alphanumeric': 0.1311377245508982, 'fraction_numerical': 0.0022754491017964074, 'mean_word_length': 3.6968503937007875, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 57, 'https://': 1, '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': '1116078', 'n_tokens_mistral': 2397, 'n_tokens_neox': 2418, 'n_words': 774}