<commit_before>// Type definitions for ember-test-helpers 0.6
// Project: https://github.com/emberjs/ember-test-helpers#readme
// Definitions by: <NAME> <https://github.com/dwickern>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

declare module 'ember-test-helpers' {
    import Ember from 'ember';
    import { TemplateFactory } from 'htmlbars-inline-precompile';
    import RSVP from "rsvp";

    interface ModuleCallbacks {
        integration?: boolean;
        unit?: boolean;
        needs?: string[];

        beforeSetup?(): void;
        setup?(): void;
        teardown?(): void;
        afterTeardown?(): void;

        [key: string]: any;
    }

    interface TestContext {
        get(key: string): any;
        getProperties<K extends string>(...keys: K[]): Pick<any, K>;
        set<V>(key: string, value: V): V;
        setProperties<P extends { [key: string]: any }>(hash: P): P;
        on(actionName: string, handler: (this: TestContext, ...args: any[]) => any): void;
        send(actionName: string): void;
        $: JQueryStatic;
        subject(options?: {}): any;
        render(template?: string | string[] | TemplateFactory): void;
        clearRender(): void;
        registry: Ember.Registry;
        container: Ember.Container;
        dispatcher: Ember.EventDispatcher;
        register(fullName: string, factory: any): void;<commit_msg>add application and store to test context<commit_after>// Type definitions for ember-test-helpers 0.6
// Project: https://github.com/emberjs/ember-test-helpers#readme
// Definitions by: <NAME> <https://github.com/dwickern>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.4

declare module 'ember-test-helpers' {
    import Ember from 'ember';
    import DS from 'ember-data';
    import { TemplateFactory } from 'htmlbars-inline-precompile';
    import RSVP from "rsvp";

    interface ModuleCallbacks {
        integration?: boolean;
        unit?: boolean;
        needs?: string[];

        beforeSetup?(): void;
        setup?(): void;
        teardown?(): void;
        afterTeardown?(): void;

        [key: string]: any;
    }

    interface TestContext {
        get(key: string): any;
        getProperties<K extends string>(...keys: K[]): Pick<any, K>;
        set<V>(key: string, value: V): V;
        setProperties<P extends { [key: string]: any }>(hash: P): P;
        on(actionName: string, handler: (this: TestContext, ...args: any[]) => any): void;
        send(actionName: string): void;
        $: JQueryStatic;
        subject(options?: {}): any;
        render(template?: string | string[] | TemplateFactory): void;
        clearRender(): void;
        registry: Ember.Registry;
        container: Ember.Container;
        dispatcher: Ember.EventDispatcher;
        application: Ember.Application;
        store: DS.Store;
        register(fullName: string, factory: any): void;
{'fraction_non_alphanumeric': 0.1446923597025017, 'fraction_numerical': 0.002704530087897228, 'mean_word_length': 2.7935897435897434, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, 'https://': 6, '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': '4608365', 'n_tokens_mistral': 864, 'n_tokens_neox': 854, 'n_words': 229}