<commit_before>﻿import contentView = require("ui/content-view");
import view = require("ui/core/view");
import dts = require("ui/page");
import frame = require("ui/frame");
import styleScope = require("ui/styling/style-scope");
import fs = require("file-system");
import fileSystemAccess = require("file-system/file-system-access");
import bindable = require("ui/core/bindable");
import dependencyObservable = require("ui/core/dependency-observable");
import enums = require("ui/enums");
import frameCommon = require("ui/frame/frame-common");
import proxy = require("ui/core/proxy");

var OPTIONS_MENU = "optionsMenu";

var navigationBarHiddenProperty = new dependencyObservable.Property(
    "navigationBarHidden",
    "Page",
    new proxy.PropertyMetadata(false, dependencyObservable.PropertyMetadataSettings.AffectsLayout)
    );

function onNavigationBarHiddenPropertyChanged(data: dependencyObservable.PropertyChangeData) {
    console.log("onNavigationBarHiddenPropertyChanged("+data.newValue+")");
    var page = <Page>data.object;
    if (page.isLoaded) {
        page._updateNavigationBar(data.newValue);
    }
}

(<proxy.PropertyMetadata>navigationBarHiddenProperty.metadata).onSetNativeValue = onNavigationBarHiddenPropertyChanged;

export module knownCollections {
    export var optionsMenu = "optionsMenu";
}

export class Page extends contentView.ContentView implements dts.Page, view.AddArrayFromBuilder {
    public static navigationBarHiddenProperty = navigationBarHiddenProperty;
    public static navigatingToEvent = "navigatingTo";
    public static navigatedToEvent = "navigatedTo";
    public static navigatingFromEvent = "navigatingFrom";
    public static navigatedFromEvent = "navigatedFrom";
    public static shownModallyEvent = "shownModally";

    private _navigationContext: any;

    private _cssApplied: boolean;
    private _styleScope: styleScope.StyleScope = new styleScope.StyleScope();
    private _optionsMenu: OptionsMenu;

    constructor(options?: dts.Options) {
        super(options);
        this._optionsMenu = new OptionsMenu(this);
    }

    public onLoaded() {
        this._applyCss();
        this._updateNavigationBar(this.navigationBarHidden);
        super.onLoaded();
    }

    get navigationBarHidden(): boolean {
        console.log("page-common get navigationBarHidden: " + this._getValue(Page.navigationBarHiddenProperty));
        return this._getValue(Page.navigationBarHiddenProperty);
    }

    set navigationBarHidden(value: boolean) {
        console.log("page-common set navigationBarHidden: " + value);
        this._setValue(Page.navigationBarHiddenProperty, value);
    }

    public _updateNavigationBar(hidden: boolean) {
        console.log("page-common._updateNavigationBar("+hidden+")");
    }

    get navigationContext(): any {
        return this._navigationContext;
    }

    get css(): string {
        if (this._styleScope) {
            return this._styleScope.css;
        }
        return undefined;
    }
    set css(value: string) {
        this._styleScope.css = value;
        this._refreshCss();
    }

    get optionsMenu(): OptionsMenu {
        return this._optionsMenu;
    }<commit_msg>Removed several console logs.<commit_after>﻿import contentView = require("ui/content-view");
import view = require("ui/core/view");
import dts = require("ui/page");
import frame = require("ui/frame");
import styleScope = require("ui/styling/style-scope");
import fs = require("file-system");
import fileSystemAccess = require("file-system/file-system-access");
import bindable = require("ui/core/bindable");
import dependencyObservable = require("ui/core/dependency-observable");
import enums = require("ui/enums");
import frameCommon = require("ui/frame/frame-common");
import proxy = require("ui/core/proxy");

var OPTIONS_MENU = "optionsMenu";

var navigationBarHiddenProperty = new dependencyObservable.Property(
    "navigationBarHidden",
    "Page",
    new proxy.PropertyMetadata(false, dependencyObservable.PropertyMetadataSettings.AffectsLayout)
    );

function onNavigationBarHiddenPropertyChanged(data: dependencyObservable.PropertyChangeData) {
    console.log("onNavigationBarHiddenPropertyChanged("+data.newValue+")");
    var page = <Page>data.object;
    if (page.isLoaded) {
        page._updateNavigationBar(data.newValue);
    }
}

(<proxy.PropertyMetadata>navigationBarHiddenProperty.metadata).onSetNativeValue = onNavigationBarHiddenPropertyChanged;

export module knownCollections {
    export var optionsMenu = "optionsMenu";
}

export class Page extends contentView.ContentView implements dts.Page, view.AddArrayFromBuilder {
    public static navigationBarHiddenProperty = navigationBarHiddenProperty;
    public static navigatingToEvent = "navigatingTo";
    public static navigatedToEvent = "navigatedTo";
    public static navigatingFromEvent = "navigatingFrom";
    public static navigatedFromEvent = "navigatedFrom";
    public static shownModallyEvent = "shownModally";

    private _navigationContext: any;

    private _cssApplied: boolean;
    private _styleScope: styleScope.StyleScope = new styleScope.StyleScope();
    private _optionsMenu: OptionsMenu;

    constructor(options?: dts.Options) {
        super(options);
        this._optionsMenu = new OptionsMenu(this);
    }

    public onLoaded() {
        this._applyCss();
        this._updateNavigationBar(this.navigationBarHidden);
        super.onLoaded();
    }

    get navigationBarHidden(): boolean {
        return this._getValue(Page.navigationBarHiddenProperty);
    }

    set navigationBarHidden(value: boolean) {
        this._setValue(Page.navigationBarHiddenProperty, value);
    }

    public _updateNavigationBar(hidden: boolean) {
        //
    }

    get navigationContext(): any {
        return this._navigationContext;
    }

    get css(): string {
        if (this._styleScope) {
            return this._styleScope.css;
        }
        return undefined;
    }
    set css(value: string) {
        this._styleScope.css = value;
        this._refreshCss();
    }

    get optionsMenu(): OptionsMenu {
        return this._optionsMenu;
    }
{'fraction_non_alphanumeric': 0.10727657496337295, 'fraction_numerical': 0.0, 'mean_word_length': 4.086092715231788, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7450438', 'n_tokens_mistral': 1658, 'n_tokens_neox': 1616, 'n_words': 336}