<commit_before>/* global angular */
(function(){
  'use strict';

angular.module('burybox').controller('TimeController', function(){

var time = this;

time.open = {
  opendate: null
}

time.toFirebase = {
  endDate: ' '
}

time.submit = function(){
  var timestamp = time.open.opendate.getTime();
  time.toFirebase.endDate = timestamp;
  console.log(timestamp);
/*  var firebase = new Firebase('https://sweltering-inferno-1762.firebaseio.com/');
  timestamp.data = firebaseObject(firebase);

  timestamp.submit = function() {
    timestamp.data.$add {(
      timestamp: time.toFirebase.endDate = timestamp
    )}*/

}

var today = Date.now();

console.log(today);
/* var opendate = new Date(time.opendate);

//console.log(opendate);
    // probably needs to be NG-Model to tie view to date shown here
//var x = today <= opendate;
//console.log(x)
});
if (today >= opendate)
{
  ngRoute('/closedbox')
}
else {
  return;
};*/
});
})();<commit_msg>got my timestamp to go to firebase<commit_after>/* global angular Firebase*/
(function(){
  'use strict';

angular.module('burybox').controller('TimeController', function($firebaseArray){

var time = this;
var today = Date.now();
console.log(today);

time.open = {opendate: null}

time.toFirebase = {endDate: ' '}

time.submit = function(){
  var timestamp = time.open.opendate.getTime();
  time.data.$add(timestamp).then(function(response){
    console.log(response);
  })
  console.log(timestamp);
};

var ref = new Firebase('https://sweltering-inferno-1762.firebaseio.com/user');
var authData = ref.getAuth();
var timestampRef = ref.child(authData.uid + '/opendate');

time.data = $firebaseArray(timestampRef);


//ng-model="time.open.opendate"
//ng-submit="time.submit()"

});
})();
{'fraction_non_alphanumeric': 0.1789838337182448, 'fraction_numerical': 0.004618937644341801, 'mean_word_length': 4.315950920245399, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '1533879', 'n_tokens_mistral': 606, 'n_tokens_neox': 588, 'n_words': 118}