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

import 'rxjs/add/operator/map';

import template from './place.component.html'

import { Places } from '../../../../both/collections/places.collection'
import { Place } from '../../../../both/models/place.model'

@Component({
  selector: 'place',
  template: template,
})
export class PlaceComponent  implements OnInit {
  place: Place;
  places: Observable<Place[]>;

  constructor(
    private route: ActivatedRoute
  ) {}

  ngOnInit() {
    this.route.params
      .map(params => params['place_id'])
      .subscribe(place_id => {
        this.place = Places.findOne({place_id: place_id});
      });
  }
}<commit_msg>feat(client): update Place document title<commit_after>import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { Observable } from 'rxjs/Observable';
import { Title }     from '@angular/platform-browser';

import 'rxjs/add/operator/map';

import template from './place.component.html'

import { Places } from '../../../../both/collections/places.collection'
import { Place } from '../../../../both/models/place.model'

@Component({
  selector: 'place',
  template: template,
})
export class PlaceComponent  implements OnInit {
  place: Place;
  places: Observable<Place[]>;

  constructor(
    private route: ActivatedRoute, private titleService: Title
  ) {}

  ngOnInit() {
    this.route.params
      .map(params => params['place_id'])
      .subscribe(place_id => {
        this.place = Places.findOne({place_id: place_id});
        if (this.place) {
          this.titleService.setTitle( this.place.formatted_address);
        }
      });
  }
}
{'fraction_non_alphanumeric': 0.1619047619047619, 'fraction_numerical': 0.0, 'mean_word_length': 3.3454987834549876, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '4658660', 'n_tokens_mistral': 531, 'n_tokens_neox': 525, 'n_words': 121}