<commit_before>
var widgets = require ("sdk/widget");
var tabs = require ("sdk/tabs");
var data = require ("sdk/self").data;

var EksiPanel = require ("sdk/panel").Panel ({
  position: {
    left: 0,
    top: 0,
    right: 0,
    bottom: 0
  },
  contentURL: data.url ("index.html"),
  contentScriptFile: [
    data.url ('js/main.js')
  ]
});

EksiPanel.on ("show", function (){
  EksiPanel.port.emit ("show");
});


var widget = widgets.Widget ({
  id: "eksi-okuyucu",
  label: "Eksi Okuyucu",
  contentURL: require ("sdk/self").data.url ("img/icon.png"),
  onClick: function () {
    EksiPanel.show ();
  }
});<commit_msg>open index in new tab instead of panel<commit_after>
var widgets = require ("sdk/widget");
var tabs = require ("sdk/tabs");
var data = require ("sdk/self").data;

var widget = widgets.Widget ({
  id: "eksi-okuyucu",
  label: "Eksi Okuyucu",
  contentURL: data.url ("img/icon.png"),
  onClick: function () {
    //EksiPanel.show ();
    tabs.open({
      url: data.url("index.html"),
      inBackground: false,
      onReady: function(tab)
      {
        tab.attach({
          contentScriptFile: data.url("js/main.js"),
        });
      }
    });
  }
});
{'fraction_non_alphanumeric': 0.18728813559322033, 'fraction_numerical': 0.003389830508474576, 'mean_word_length': 2.9630872483221475, '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': '1159089', 'n_tokens_mistral': 432, 'n_tokens_neox': 416, 'n_words': 96}