<commit_before>/*
* Cepat Sembuh v1.0
* Copyright 2016 <NAME>
*/

// Firebase go online whenever the application is open
document.addEventListener("deviceready", function () {
    Firebase.goOnline();
});

// Not available faskes
$('#not-available').on('click', function() {
	alert("Faskes is not available")
})

// Get no antrian function
function getNoAntri(tipe, username, name) {
  var faskesRef = new Firebase("https://cepatsembuh.firebaseio.com/" + tipe + "/faskes/" + username + '/antrian');
  console.log('Url :' + "https://cepatsembuh.firebaseio.com/" + tipe + "/faskes/" + username + '/antrian');
	alert('Fitur ini membutuhkan internet untuk mengambil data');
  faskesRef.on("value", function(snapshot) {
    alert('No antrian: ' + snapshot.val());
  });
}

function updateData(tipe, username, name) {
  var faskesRef = new Firebase("https://cepatsembuh.firebaseio.com/" + tipe + "/faskes/" + username + '/antrian');
  faskesRef.on("value", function(snapshot) {
    data = snapshot.val().antrian;
    plus = 1;
    glee = data + plus
    console.log('Updating data.. ');
    faskesRef.set({
      antrian: glee,
      nama: name
    });
  })
}<commit_msg>Hellfire by sheamus make your brain work.<commit_after>/*
* Cepat Sembuh v1.0
* Copyright 2016 <NAME>
*/

// Firebase go online whenever the application is open
document.addEventListener("deviceready", function () {
    Firebase.goOnline();
});

// Not available faskes
$('#not-available').on('click', function() {
	alert("Faskes is not available")
})

function updateData(tipe, username, name) {
  var faskesRef = new Firebase("https://cepatsembuh.firebaseio.com/" + tipe + "/faskes/" + username);
  faskesRef.on("value", function(snapshot) {
    data = snapshot.val().antrian;
    plus = 1;
    glee = data + plus
    console.log('Updating data.. ');
    faskesRef.set({
      antrian: glee,
      nama: name
    });
  })
}


// Get no antrian function
function getNoAntri(tipe, username, name) {
  var faskesRef = new Firebase("https://cepatsembuh.firebaseio.com/" + tipe + "/faskes/" + username);
  console.log('Url :' + "https://cepatsembuh.firebaseio.com/" + tipe + "/faskes/" + username);
	alert('Fitur ini membutuhkan internet untuk mengambil data');
  faskesRef.on("value", function(snapshot) {
    alert('No antrian: ' + snapshot.val().antrian);
  });
  updateData(tipe, username, name);
}
{'fraction_non_alphanumeric': 0.16878172588832488, 'fraction_numerical': 0.005922165820642978, 'mean_word_length': 3.826530612244898, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, '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': '3902468', 'n_tokens_mistral': 825, 'n_tokens_neox': 806, 'n_words': 184}