<commit_before>var note = {noteTime: "", timeUrl: ""} //jenbex testing note controller functions without lack of note object blocking us

PinPoint.NoteController = function(){
	this.notes = []
	this.time = ""
};
//pushed new notes into notes array
PinPoint.NoteController.storeNote = function(note){
	this.notes.push(note);
};

//gets time at moment when user hits create note button
PinPoint.NoteController.getTime = function(pageDetails){
	time = pageDetails.time;
	PinPoint.NoteController.giveTime(time);
};


// assigns time passed from getTime to noteTime attribute
PinPoint.NoteController.giveTime = function(note, time){
	note.noteTime = time;
};

//gets url from current page
PinPoint.NoteController.getUrl = function(note){
	var url = ""
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs){
		url = tabs[0].url;
		PinPoint.NoteController.formatTimeUrl(note, url)
	});
};<commit_msg>Change NoteController to accept 'notes' as argument and concat 'notes' into array.<commit_after>var note = {noteTime: "", timeUrl: ""} //jenbex testing note controller functions without lack of note object blocking us
//LocalStorage is parsed into note objects and passed into the
//NoteController to be shown in the pop-up.
PinPoint.NoteController = function(notes){
	this.notes = [];
	this.notes = this.notes.concat(notes)
};

//pushed new notes into notes array
PinPoint.NoteController.storeNote = function(note){
	this.notes.push(note);
};

//gets time at moment when user hits create note button
PinPoint.NoteController.getTime = function(pageDetails){
	time = pageDetails.time;
	PinPoint.NoteController.giveTime(time);
};


// assigns time passed from getTime to noteTime attribute
PinPoint.NoteController.giveTime = function(note, time){
	note.noteTime = time;
};

//gets url from current page
PinPoint.NoteController.getUrl = function(note){
	var url = ""
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs){
		url = tabs[0].url;
		PinPoint.NoteController.formatTimeUrl(note, url)
	});
};
{'fraction_non_alphanumeric': 0.12049382716049382, 'fraction_numerical': 0.0009876543209876543, 'mean_word_length': 5.065868263473054, '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': '5297242', 'n_tokens_mistral': 605, 'n_tokens_neox': 590, 'n_words': 179}