<commit_before>/* Davidbot app.js */

function play(){
  var think = document.getElementById('think');
  think.play();
  }

function search(){
  var newURL = "http://lmgtfy.com/?q=" + $('#question').val();
  chrome.tabs.create({ url: newURL });
  return false;
};

function delay(fnc, time){
  setTimeout(fnc, time);
  return false;
};

document.addEventListener('DOMContentLoaded', function() {
  var submit = document.getElementById('submit');
  submit.addEventListener('click', function(){
      event.preventDefault();
      play()
      setTimeout(search, 2000);
      });
  });

var apiBase = 'http://api.hipchat.com/v2/room/1093325/notification?auth_token='
var auth_token = '<KEY>'

document.addEventListener('DOMContentLoaded', function() {
  var linkToShare = '';
  var currentTab = document.getElementById('hipchat');
  currentTab.addEventListener('click', function(){
    event.preventDefault();
      event.preventDefault();
      chrome.tabs.query({currentWindow: true, active: true}, function(tabs){
      $.ajax({
        type: 'POST',
        url: apiBase + auth_token,
        data: JSON.stringify({
          'message' : $('#question').val() + " " + tabs[0].url,
          'color'   : 'purple',<commit_msg>davidBot now searches<commit_after>/* Davidbot app.js */

function play(){
  var think = document.getElementById('think');
  think.play();
  }

function search(){
  var newURL = "http://lmgtfy.com/?q=" + $('#question').val();
  chrome.tabs.create({ url: newURL });
  return false;
};

function delay(fnc, time){
  setTimeout(fnc, time);
  return false;
};

document.addEventListener('DOMContentLoaded', function() {
  var submit = document.getElementById('submit');
  submit.addEventListener('click', function(){
      event.preventDefault();
      search()
      setTimeout(search, 2000);
      });
  });

var apiBase = 'http://api.hipchat.com/v2/room/1093325/notification?auth_token='
var auth_token = '<KEY>'

document.addEventListener('DOMContentLoaded', function() {
  var linkToShare = '';
  var currentTab = document.getElementById('hipchat');
  currentTab.addEventListener('click', function(){
    event.preventDefault();
      event.preventDefault();
      chrome.tabs.query({currentWindow: true, active: true}, function(tabs){
      $.ajax({
        type: 'POST',
        url: apiBase + auth_token,
        data: JSON.stringify({
          'message' : $('#question').val() + " " + tabs[0].url,
          'color'   : 'purple',
{'fraction_non_alphanumeric': 0.17479674796747968, 'fraction_numerical': 0.01056910569105691, 'mean_word_length': 3.7418111753371868, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3046608', 'n_tokens_mistral': 736, 'n_tokens_neox': 720, 'n_words': 147}