<commit_before>import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { Http } from '@angular/http';

import { Plan } from '../Class/plan.model';

import { PlanService } from '../Services/plan.service';

@Component({
  selector: 'app-root',
  templateUrl: './newPlan.component.html',
  styleUrls: ['../app.component.css']
})
export class NewPlanComponent {

    constructor(private http:Http, private planService: PlanService){}
    newPlan(title:string, category:string, date:string, place:string,
     address:string, prize:number, description:string){
        let plan = new Plan(title, category, date, place, address, prize, description);
        this.planService.addPlan(plan).subscribe(
            plan => console.log (plan)
        )
    }
}<commit_msg>small corrections<commit_after>import { Component } from '@angular/core';
import { Router, ActivatedRoute } from '@angular/router';
import { Http } from '@angular/http';

import { Plan } from '../Class/plan.model';

import { PlanService } from '../Services/plan.service';

@Component({
  selector: 'app-root',
  templateUrl: './newPlan.component.html',
  styleUrls: ['../app.component.css']
})
export class NewPlanComponent {

    constructor(private router:Router, private http:Http, private planService: PlanService){}

    newPlan(title:string, category:string, date:string, place:string,
     address:string, prize:number, description:string){
        let plan = new Plan(title, category, date, place, address, prize, description);
        this.planService.addPlan(plan).subscribe(
            plan => console.log (plan)
        );
        this.router.navigate(['/index']);
    }
}
{'fraction_non_alphanumeric': 0.15008828722778106, 'fraction_numerical': 0.0, 'mean_word_length': 3.956268221574344, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '6433920', 'n_tokens_mistral': 494, 'n_tokens_neox': 489, 'n_words': 118}