<commit_before>var contextMenu = require("sdk/context-menu");
var self = require("sdk/self");
var data = self.data;
var addOnPrefs = require("sdk/simple-prefs").prefs;
var tabs = require("sdk/tabs");
var requestHelper = require("./request-helper");
var storage = require("./storage");
// var tracking = require("./tracking");

exports.useContextMenu = useContextMenu;
exports.cleanUpTab = cleanUpTab;
//
// var contextMenus = {};

/**
 * Turns on the context menu with the datawake.
 * @param tab The tab to add the context to.
 */
function useContextMenu() {
  contextMenu.Menu({
    label: 'Datawake Prefetch',
    //  context: contextMenu.URLContext(url),
    items: [
      contextMenu.Item({
        label: 'Add Entity'
      }),
      contextMenu.Item({
        label: 'Add Irrelevant Entity'
      }),
      contextMenu.Item({
        label: 'Add Custom Entity'
      }),
      contextMenu.Item({
        label: 'Add Custom Irrelevant Entity'
      })<commit_msg>now context menu comes up when text selected.<commit_after>var contextMenu = require("sdk/context-menu");
var self = require("sdk/self");
var data = self.data;
var addOnPrefs = require("sdk/simple-prefs").prefs;
var tabs = require("sdk/tabs");
var requestHelper = require("./request-helper");
var storage = require("./storage");
// var tracking = require("./tracking");

exports.useContextMenu = useContextMenu;
exports.cleanUpTab = cleanUpTab;
//
// var contextMenus = {};

/**
 * Turns on the context menu with the datawake.
 * @param tab The tab to add the context to.
 */
function useContextMenu() {
  contextMenu.Menu({
    label: 'Datawake Prefetch',
    contentScriptFile: data.url("js/datawake/selections.js"),
    // context: contextMenu.URLContext(url),
    items: [
      contextMenu.Item({
        label: 'Add Entity'
      }),
      contextMenu.Item({
        label: 'Add Irrelevant Entity'
      }),
      contextMenu.Item({
        label: 'Add Custom Entity'
      }),
      contextMenu.Item({
        label: 'Add Custom Irrelevant Entity'
      })
{'fraction_non_alphanumeric': 0.14510575504181014, 'fraction_numerical': 0.0, 'mean_word_length': 3.1510204081632653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6644635', 'n_tokens_mistral': 603, 'n_tokens_neox': 597, 'n_words': 161}