<commit_before>// external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

// internal
import { MarkdownComponent } from './ngx-markdown.component';
import { MarkdownDirective } from './ngx-markdown.directive';
import { MarkdownService } from './ngx-markdown.service';

@NgModule({
  declarations: [
    MarkdownComponent,
    MarkdownDirective
  ],
  imports: [ CommonModule ],
  exports: [
    MarkdownComponent,
    MarkdownDirective,
  ],
  providers: [
    MarkdownService
  ],
})
export class MarkdownModule { }<commit_msg>refactor(MarkdownModule): add forRoot and forChild static method<commit_after>// external
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

// internal
import { MarkdownComponent } from './ngx-markdown.component';
import { MarkdownDirective } from './ngx-markdown.directive';
import { MarkdownService } from './ngx-markdown.service';

@NgModule({
  declarations: [
    MarkdownComponent,
    MarkdownDirective
  ],
  imports: [ CommonModule ],
  exports: [
    MarkdownComponent,
    MarkdownDirective
  ]
})
export class MarkdownModule {
  static forRoot() {
    return {
      ngModule: MarkdownModule,
      providers: [
        MarkdownService
      ]
    }
  }
  static forChild() {
    return {
      ngModule: MarkdownModule
    }    
  }
}
{'fraction_non_alphanumeric': 0.11985294117647059, 'fraction_numerical': 0.0, 'mean_word_length': 3.521594684385382, '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': '1974821', 'n_tokens_mistral': 409, 'n_tokens_neox': 408, 'n_words': 90}