<commit_before>var url_path = window.location.pathname;

if (isViewingContent(url_path)) {
  getCookies();
}

function getCookies() {
  chrome.runtime.sendMessage({want: "cookies"}, function(response) {
    console.log(response.cookies);
    console.log("Download URL: " + getDownloadLink(response.cookies));
    console.log("File name: " + getFileName());
    console.log("Extension (check js comments): " + determineExt());
    console.log("Course ID: " + getCourseIdNumber());
    console.log("Course Label: " + getCourseLabel());
    addDriveButton(response.cookies);
    addDropboxButton(response.cookies);
  });
}

// Returns true if user is viewing a 
// file to download, false otherwise
function isViewingContent(url_path) {
  // if path contains "viewContent"
  if (url_path.indexOf("viewContent") > -1) {
    return true;<commit_msg>Removed console logs here, placed them in appropriate functions<commit_after>var url_path = window.location.pathname;

if (isViewingContent(url_path)) {
  getCookies();
}

function getCookies() {
  chrome.runtime.sendMessage({want: "cookies"}, function(response) {
    addDriveButton(response.cookies);
    addDropboxButton(response.cookies);
  });
}

// Returns true if user is viewing a 
// file to download, false otherwise
function isViewingContent(url_path) {
  // if path contains "viewContent"
  if (url_path.indexOf("viewContent") > -1) {
    return true;
{'fraction_non_alphanumeric': 0.13574982231698648, 'fraction_numerical': 0.0014214641080312722, 'mean_word_length': 4.746938775510204, 'pattern_counts': {'":': 0, '<': 3, '<?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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '330044', 'n_tokens_mistral': 440, 'n_tokens_neox': 426, 'n_words': 97}