<commit_before>import {NgModule} from '@angular/core';
import {COMPILER_PROVIDERS} from '@angular/compiler';

import {AgGridNg2} from './agGridNg2';
import {AgComponentFactory} from './agComponentFactory';
import {Ng2FrameworkFactory} from './ng2FrameworkFactory';

@NgModule({
    imports: [
    ],
    declarations: [
        AgGridNg2
    ],
    exports: [
        AgGridNg2
    ],
    providers: [
        AgComponentFactory,
        Ng2FrameworkFactory,
        COMPILER_PROVIDERS
    ]
})
export class AgGridModule {
}
<commit_msg>Allow agmodule to be declared anywhere<commit_after>import {NgModule} from '@angular/core';
import {COMPILER_PROVIDERS} from '@angular/compiler';

import {AgGridNg2} from './agGridNg2';
import {AgComponentFactory} from './agComponentFactory';
import {Ng2FrameworkFactory} from './ng2FrameworkFactory';

@NgModule({
    imports: [],
    declarations: [
        AgGridNg2
    ],
    exports: [
        AgGridNg2
    ]
})
export class AgGridModule {
    static forRoot()
    {
        return {
            ngModule: AgGridModule,
            providers: [ // singletons across the whole app
                AgComponentFactory,
                Ng2FrameworkFactory,
                COMPILER_PROVIDERS
            ],
        };
    }
}

{'fraction_non_alphanumeric': 0.1066350710900474, 'fraction_numerical': 0.011058451816745656, 'mean_word_length': 2.62, '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': '5355317', 'n_tokens_mistral': 387, 'n_tokens_neox': 390, 'n_words': 81}