<commit_before>import {Component, OnInit} from '@angular/core';
import {Hotel, Country} from '../../model/backend-typings';
import {HotelService} from '../../shared/hotel.service';
import {Router} from '@ngrx/router';
import {CountryService} from '../../shared/country.service';
import {MaterializeDirective} from 'angular2-materialize';
import {Observable} from 'rxjs/Observable';

@Component({
  selector: 'hotel-new',
  directives: [MaterializeDirective],
  providers: [HotelService, CountryService],
  template: require('./hotel-new.component.html')
})
export class HotelNewComponent implements OnInit {
  hotel: Hotel;
  countries: Country[];

  constructor(private hotelService: HotelService,
              private countryService: CountryService,
              private router: Router) {
    this.hotel = {} as Hotel;
  }

  ngOnInit() {
    this.countryService.getAllCountries().subscribe(c =>{
      this.countries = c;
    });
  }

  saveHotel() {<commit_msg>Minor cleanups.<commit_after>import {Component, OnInit} from '@angular/core';
import {Hotel, Country} from '../../model/backend-typings';
import {HotelService} from '../../shared/hotel.service';
import {Router} from '@ngrx/router';
import {CountryService} from '../../shared/country.service';
import {MaterializeDirective} from 'angular2-materialize';

@Component({
  selector: 'hotel-new',
  directives: [MaterializeDirective],
  providers: [HotelService, CountryService],
  template: require('./hotel-new.component.html')
})
export class HotelNewComponent implements OnInit {
  hotel: Hotel = {};
  countries: Country[];

  constructor(private hotelService: HotelService,
              private countryService: CountryService,
              private router: Router) {
  }

  ngOnInit() {
    this.countryService.getAllCountries().subscribe(c =>{
      this.countries = c;
    });
  }

  saveHotel() {
{'fraction_non_alphanumeric': 0.1483663631494376, 'fraction_numerical': 0.0010712372790573112, 'mean_word_length': 4.103825136612022, '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': '5829775', 'n_tokens_mistral': 538, 'n_tokens_neox': 547, 'n_words': 126}