<commit_before>
var firebase_email = '<EMAIL>'
var firebase_password = '<PASSWORD>'
var firebase_sandbox = 'https://mobius-firstbuild.firebaseio.com'

var Firebase = require('firebase');
var ref = new Firebase(firebase_sandbox);
var credentials = { email: firebase_email, password: <PASSWORD> };

ref.authWithPassword(credentials, function(err, auth) {

  if (err) {
    console.error('Failed to login with credentials:', err);
  }
  else if (auth) {

    ref.child('users').child('google:105724342149087020351/devices/chillhubs/dummy/ledges/41e1b18e-2d12-4306-9211-c1068bf7f76d/rgbActual').on('value', function(snapshot) {
      console.log("ledge (" + Date() + "):" + JSON.stringify(snapshot.val(), null, 2));
    });

    ref.child('users').child('google:105724342149087020351/devices/chillhubs/dummy/milkyWeighs/1ea8fdb9-2418-440b-a67b-fa16210f0c9e/weight').on('value', function(snapshot) {
      console.log("milk ( " + Date() + "):" + JSON.stringify(snapshot.val(), null, 2));
});

    //BEER STUFFS !
    ref.child('users').child('google:105724342149087020351/devices/chillhubs/dummy/beerbanks/072b3293-d637-4f53-a273-edf8c7711d17').on('value', function(snapshot) {
      console.log("beer ( " + Date() + "):" + JSON.stringify(snapshot.val(), null, 2));
      beerinfos = snapshot.val();
      if (beerinfos.time_remaining == 0 && beerinfos.beer_sensor ==0)
      {
	console.log("BEER STOLEN!!!!!");
      }
      else if (beerinfos.time_remaining > 0 && beerinfos.beer_sensor ==0)
      {
        console.log("BEER AUTHORIZED. ENJOY");
      }

    });
  }<commit_msg>fixed beer logic<commit_after>
var firebase_email = '<EMAIL>'
var firebase_password = '<PASSWORD>'
var firebase_sandbox = 'https://mobius-firstbuild.firebaseio.com'

var Firebase = require('firebase');
var ref = new Firebase(firebase_sandbox);
var credentials = { email: firebase_email, password: <PASSWORD> };

ref.authWithPassword(credentials, function(err, auth) {

  if (err) {
    console.error('Failed to login with credentials:', err);
  }
  else if (auth) {

    ref.child('users').child('google:105724342149087020351/devices/chillhubs/dummy/ledges/41e1b18e-2d12-4306-9211-c1068bf7f76d/rgbActual').on('value', function(snapshot) {
      console.log("ledge (" + Date() + "):" + JSON.stringify(snapshot.val(), null, 2));
    });

    ref.child('users').child('google:105724342149087020351/devices/chillhubs/dummy/milkyWeighs/1ea8fdb9-2418-440b-a67b-fa16210f0c9e/weight').on('value', function(snapshot) {
      console.log("milk ( " + Date() + "):" + JSON.stringify(snapshot.val(), null, 2));
});

    //BEER STUFFS !
    ref.child('users').child('google:105724342149087020351/devices/chillhubs/dummy/beerbanks/072b3293-d637-4f53-a273-edf8c7711d17').on('value', function(snapshot) {
      console.log("beer ( " + Date() + "):" + JSON.stringify(snapshot.val(), null, 2));
      beerinfos = snapshot.val();
      if (beerinfos.time_remaining == 0 && beerinfos.beer_sensor ==1)
      {
	console.log("BEER STOLEN!!!!!");
      }
      else if (beerinfos.time_remaining > 0 && beerinfos.beer_sensor ==1)
      {
        console.log("BEER AUTHORIZED. ENJOY");
      }

    });
  }
{'fraction_non_alphanumeric': 0.1774960380348653, 'fraction_numerical': 0.08557844690966719, 'mean_word_length': 4.251247920133111, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '1281048', 'n_tokens_mistral': 1321, 'n_tokens_neox': 1169, 'n_words': 158}