<commit_before>import { Component, OnInit } from '@angular/core';

import { AcceptableAnswersComponent } from './acceptable-answers/acceptable-answers.component';
import { TagsComponent } from './tags/tags.component';

import { TagService } from './tags/tag.service';

// import { QuestionModel } from './question.model';

@Component({
    moduleId: module.id,
    selector: 'create-question',
    templateUrl: 'create-question.component.html',
    directives: [
        AcceptableAnswersComponent,
        TagsComponent
    ],
    providers: [
        TagService
    ]
})
export class CreateQuestionComponent implements OnInit {
    public otherAcceptableAnswers: any[];
    enteredAnswers: string[];

    manageAcceptableAnswers(event: any) {
        this.otherAcceptableAnswers = event.value;
        this.enteredAnswers = this.otherAcceptableAnswers;
    }

    removeAnswer(value: string) {
        var index = this.otherAcceptableAnswers.indexOf(value);
        this.otherAcceptableAnswers.splice(index, 1);
    }

    submitted = false;
    dateCreated:any;

    levels = [
        'Associate',
        'Staff',
        'Senior',
        'Principal'
    ];

/*
    model = new QuestionModel(
        'What is your age?',
        this.levels[2],
        this.selectedTags = [
            {"_id": "124", "tag": "angular", "count": 2},
            {"_id": "345", "tag": "javascript", "count": 3}
        ],
        'Some age',
        ['Another age', 'One more age', 'another age'],
        'ACME',
        null
    );
*/
    onSubmit() {
        this.submitted = true;
    }

    constructor() { }

    ngOnInit() { }

    // Remove this when done creating the form
    get diagnostic() { return JSON.stringify(this.model); }

}<commit_msg>removed diagnostic on the create question component<commit_after>import { Component, OnInit } from '@angular/core';

import { AcceptableAnswersComponent } from './acceptable-answers/acceptable-answers.component';
import { TagsComponent } from './tags/tags.component';

import { TagService } from './tags/tag.service';

// import { QuestionModel } from './question.model';

@Component({
    moduleId: module.id,
    selector: 'create-question',
    templateUrl: 'create-question.component.html',
    directives: [
        AcceptableAnswersComponent,
        TagsComponent
    ],
    providers: [
        TagService
    ]
})
export class CreateQuestionComponent implements OnInit {
    public otherAcceptableAnswers: any[];
    enteredAnswers: string[];

    manageAcceptableAnswers(event: any) {
        this.otherAcceptableAnswers = event.value;
        this.enteredAnswers = this.otherAcceptableAnswers;
    }

    removeAnswer(value: string) {
        var index = this.otherAcceptableAnswers.indexOf(value);
        this.otherAcceptableAnswers.splice(index, 1);
    }

    submitted = false;
    dateCreated:any;

    levels = [
        'Associate',
        'Staff',
        'Senior',
        'Principal'
    ];

/*
    model = new QuestionModel(
        'What is your age?',
        this.levels[2],
        this.selectedTags = [
            {"_id": "124", "tag": "angular", "count": 2},
            {"_id": "345", "tag": "javascript", "count": 3}
        ],
        'Some age',
        ['Another age', 'One more age', 'another age'],
        'ACME',
        null
    );
*/
    onSubmit() {
        this.submitted = true;
    }

    constructor() { }

    ngOnInit() { }



}
{'fraction_non_alphanumeric': 0.13471654003506722, 'fraction_numerical': 0.0058445353594389245, 'mean_word_length': 2.5143737166324436, 'pattern_counts': {'":': 12, '<': 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': '2360452', 'n_tokens_mistral': 1058, 'n_tokens_neox': 990, 'n_words': 219}