<commit_before>'use strict';
declare var plugin: any, google: any;

import { Modal, NavController, Platform } from 'ionic-angular';
import { Component } from 'angular2/core';
import { MapManager } from './manager';

@Component({
    selector: 'google-maps',
    templateUrl: 'build/components/maps/template.html',
    inputs: [],
    directives: [],
})

export class GoogleMaps {
    
    private nav: NavController;
    private platform: Platform;
    private canvas: HTMLElement;
    private map: any;
    private manager: MapManager;
    
    constructor(platform: Platform, nav: NavController) {
        this.platform = platform;
        this.nav = nav;
        this.manager = MapManager.getInstance();
        this.initializePage();
    }
    
    private initializePage(): void {
        this.platform.ready().then(() => { 
            this.canvas = document.getElementById("map_canvas");
            this.map = plugin.google.maps.Map.getMap(this.canvas);
            this.map.addEventListener(plugin.google.maps.event.MAP_READY, () => {
                console.log("Map ready");
            });
        });
    }
}<commit_msg>Changing method 'initializePage' to happen during lifecycle 'ngOnInit'<commit_after>'use strict';
declare var plugin: any, google: any;

import { Modal, NavController, Platform } from 'ionic-angular';
import { Component } from 'angular2/core';
import { MapManager } from './manager';

@Component({
    selector: 'google-maps',
    templateUrl: 'build/components/maps/template.html',
    inputs: [],
    directives: [],
})

export class GoogleMaps {
    
    private nav: NavController;
    private platform: Platform;
    private canvas: HTMLElement;
    private map: any;
    private manager: MapManager;
    
    constructor(platform: Platform, nav: NavController) {
        this.platform = platform;
        this.nav = nav;
        this.manager = MapManager.getInstance();
    }
    
    private ngOnInit(): void {
        this.platform.ready().then(() => { 
            this.canvas = document.getElementById("map_canvas");
            this.map = plugin.google.maps.Map.getMap(this.canvas);
            this.map.addEventListener(plugin.google.maps.event.MAP_READY, () => {
                console.log("Map ready");
            });
        });
    }
}
{'fraction_non_alphanumeric': 0.1321084864391951, 'fraction_numerical': 0.0008748906386701663, 'mean_word_length': 2.7006472491909386, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6793995', 'n_tokens_mistral': 635, 'n_tokens_neox': 627, 'n_words': 144}