<commit_before>App_Class = function (app, appAssets) {
	this._app = app;
	this._appAssets = appAssets;
};

App_Class.prototype.init = function () {
	F2.log(this)
	this._container = $("#" + this._app.instanceId);
	this._app.updateHeight();
	
	this.bindEvents();

	console.log("¡Vámonos! Flickr interestingness coming up...");

	this.getPhotos();
};

App_Class.prototype.bindEvents = function(){
	var self = this;

	// bind 'about this app' change event
	F2.Events.on(F2.Constants.Events.APP_VIEW_CHANGE + this._app.instanceId, $.proxy(this._handleViewChange, this));

	//bind 'back to home' event 
	$("div[data-f2-view='about'] a", this._container).bind("click",function(e){
		self._handleViewChange("home");
	});
}

App_Class.prototype._handleViewChange = function(view) {

	$("div." + F2.Constants.Css.APP_VIEW, this._container).addClass("hide");
	$("div." + F2.Constants.Css.APP_VIEW + "[data-f2-view='"+view+"']", this._container).removeClass("hide");<commit_msg>Updates to Flickr example app to support About view.<commit_after>App_Class = function (app, appAssets) {
	this._app = app;
	this._appAssets = appAssets;
};

App_Class.prototype.init = function () {

	this._container = $("#" + this._app.instanceId);
	this._app.updateHeight();
	
	this.bindEvents();

	console.log("¡Vámonos! Flickr interestingness coming up...");

	this.getPhotos();
};

App_Class.prototype.bindEvents = function(){
	var self = this;

	// bind 'about this app' change event
	F2.Events.on(F2.Constants.Events.APP_VIEW_CHANGE + this._app.instanceId, $.proxy(this._handleViewChange, this));

	//bind 'back to home' event 
	$("div[data-f2-view='about'] a", this._container).bind("click",function(e){
		self._handleViewChange("home");
	});
}

App_Class.prototype._handleViewChange = function(view) {

	$("div." + F2.Constants.Css.APP_VIEW, this._container).addClass("hide");
	$("div." + F2.Constants.Css.APP_VIEW + "[data-f2-view='"+view+"']", this._container).removeClass("hide");
{'fraction_non_alphanumeric': 0.18794688457609807, 'fraction_numerical': 0.006639427987742594, 'mean_word_length': 5.083850931677019, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4429621', 'n_tokens_mistral': 696, 'n_tokens_neox': 675, 'n_words': 114}