<commit_before>$(document).ready(function(){
  // REGISTER DOM ELEMENTS
  const $title = $('#title');
  const $id = $("#id");

  // INITIALIZE FIREBASE
  firebase.initializeApp({
    apiKey: "<KEY>",
    authDomain: "f2e2020-bd468.firebaseapp.com",
    databaseURL: "https://f2e2020-bd468.firebaseio.com",
    projectId: "f2e2020-bd468",
    storageBucket: "f2e2020-bd468.appspot.com",
    messagingSenderId: "832044128799",
    appId: "1:832044128799:web:5dedad46efcd2c3253932a",
    measurementId: "G-QWW610MX3Z"
  });

  let db = firebase.firestore();
  let usersRef = db.collection("users");
  // usersRef.add({
  //   "name": "NTUE",
  //   "age": 13,
  //   "tel": {
  //     "tel1": "111-111",
  //     "tel2": "222-111"
  //   }
  // });

  let docRef = usersRef.doc("1167");

  // docRef.get().then(function(doc){
  //   $id.html(`doc 1167' name = ${doc.data().name}`)
  // });



  // docRef.set({
  //   "name": "Alex1",
  //   "age": 27,
  //   "tel": {
  //     "tel1": "111-111",
  //     "tel2": "222-111"
  //   }
  // });

  docRef.update({
    "name": "<NAME>"
  });

  docRef.onSnapshot(
    function(doc){
      $title.html(`user name = ${doc.data().name}, user age = ${doc.data().age}`);
    }
  );

});
<commit_msg>change error<commit_after>$(document).ready(function(){
  // REGISTER DOM ELEMENTS
  const $title = $('#title');
  const $doc = $("#doc");

  // INITIALIZE FIREBASE
  firebase.initializeApp({
    apiKey: "<KEY>",
    authDomain: "f2e2020-bd468.firebaseapp.com",
    databaseURL: "https://f2e2020-bd468.firebaseio.com",
    projectId: "f2e2020-bd468",
    storageBucket: "f2e2020-bd468.appspot.com",
    messagingSenderId: "832044128799",
    appId: "1:832044128799:web:5dedad46efcd2c3253932a",
    measurementId: "G-QWW610MX3Z"
  });

  let db = firebase.firestore();
  let usersRef = db.collection("users");
  // usersRef.add({
  //   "name": "NTUE",
  //   "age": 13,
  //   "tel": {
  //     "tel1": "111-111",
  //     "tel2": "222-111"
  //   }
  // });

  let docRef = usersRef.doc("1167");
  docRef.get().then(function(doc){
    $("#doc").html(`doc 1167 name = ${doc.data().name}`)
  });



  // docRef.set({
  //   "name": "Alex1",
  //   "age": 27,
  //   "tel": {
  //     "tel1": "111-111",
  //     "tel2": "222-111"
  //   }
  // });

  docRef.update({
    "name": "<NAME>"
  });

  docRef.onSnapshot(
    function(doc){
      $title.html(`user name = ${doc.data().name}, user age = ${doc.data().age}`);
    }
  );

});

{'fraction_non_alphanumeric': 0.23238866396761135, 'fraction_numerical': 0.09149797570850203, 'mean_word_length': 2.5605187319884726, 'pattern_counts': {'":': 22, '<': 7, '<?xml version=': 0, '>': 7, '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': '7537621', 'n_tokens_mistral': 1148, 'n_tokens_neox': 993, 'n_words': 149}