<commit_before>'use strict';

var data = require('sdk/self').data;

{{#if extend_ff_index}}
{{> extend_ff_index }}
{{/if}}

{{#if homepage_url}}
require("sdk/preferences/service").set('browser.startup.homepage', '{{homepage_url}}');
{{/if}}

{{#if browser_action}}
require('sdk/ui/button/action').ActionButton({
  {{#if browser_action.id}}id: "{{browser_action.id}}",{{/if}}
  label: "{{browser_action.default_title}}",
  icon: {{json browser_action.default_icon}},
  onClick: {{#if browser_action.callback}}{{browser_action.callback}}{{else}}function(state) {
    tabs.open(data.url("{{browser_action.default_popup}}"));
  }{{/if}}
});
{{/if}}

{{#if page_action}}
require('sdk/ui/button/action').ActionButton({
  {{#if page_action.id}}id: "{{page_action.id}}",{{/if}}
  label: "{{page_action.default_title}}",
  icon: {{json page_action.default_icon}},
  onClick: {{#if page_action.callback}}{{page_action.callback}}{{else}}function(state) {
    tabs.open(data.url("{{page_action.default_popup}}"));
  }{{/if}}
});
{{/if}}

{{#if content_scripts}}<commit_msg>remove duplicate code<commit_after>'use strict';

var data = require('sdk/self').data;

{{#if extend_ff_index}}
{{> extend_ff_index }}
{{/if}}

{{#if homepage_url}}
require("sdk/preferences/service").set('browser.startup.homepage', '{{homepage_url}}');
{{/if}}

{{#if page_action}}
require('sdk/ui/button/action').ActionButton({
  {{#if page_action.id}}id: "{{page_action.id}}",{{/if}}
  label: "{{page_action.default_title}}",
  icon: {{json page_action.default_icon}},
  onClick: {{#if page_action.callback}}{{page_action.callback}}{{else}}function(state) {
    tabs.open(data.url("{{page_action.default_popup}}"));
  }{{/if}}
});
{{/if}}

{{#if content_scripts}}
{'fraction_non_alphanumeric': 0.24565469293163383, 'fraction_numerical': 0.0, 'mean_word_length': 7.032558139534884, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2065778', 'n_tokens_mistral': 628, 'n_tokens_neox': 625, 'n_words': 84}