<commit_before>var buttons = require('sdk/ui/button/action');
var tabs = require("sdk/tabs");

var button = buttons.ActionButton({
  id: "mozilla-link",
  label: "Visit Mozilla",
  icon: {
    "16": "./icon-16.png",
    "32": "./icon-32.png",
    "64": "./icon-64.png"
  },
  onClick: handleClick
});

function handleClick(state) {
	// tabs.open("http://dewey.petra.ac.id/catalog/ft_detail.php?knokat=19762");
	tabs.open("http://dewey.petra.ac.id/catalog/ft_detail.php?knokat=14162");
	// console.log(tabs.activeTab.url);

}

// show content of tab in console
// tabs.on('activate', function(tab) {
// 	console.log('active: ' + tabs.activeTab.url);
// 	var worker = tab.attach({
// 		contentScript: 'self.port.emit("html", document.body.innerHTML);'
// 	});
// 	worker.port.on("html", function(message) {
// 		console.log(message);
// 	});
// });

var pageMod = require("sdk/page-mod");

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

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

pageMod.PageMod({
	include: "http://dewey.petra.ac.id/catalog/ft_detail.php*",
	contentScriptFile: [data.url("jquery-1.12.0.min.js"), data.url("jszip.min.js"), data.url("jszip-utils.min.js"), "./dewey-content-script.js"],
	contentStyleFile: [data.url("materialize/css/materialize.css"), "./dewey-style.css"],
});

// var { attach, detach } = require('sdk/content/mod');
// var { style } = require('sdk/stylesheet/style');
// var { ToggleButton } = require('sdk/ui/button/toggle');

// var style = Style({
// 	uri: './style.css'
// });

// var button = ToggleButton({
// 	id: "styleist",
// 	label: "stylist",
// 	icon: "./icon-16.png",
// 	onChange: function(state) {
// 		if(state.checked) {
// 			attach(style, tabs.activeTab);
// 		}
// 		else {<commit_msg>Include materialize.js, use minified version of css library<commit_after>var buttons = require('sdk/ui/button/action');
var tabs = require("sdk/tabs");

var button = buttons.ActionButton({
  id: "mozilla-link",
  label: "Visit Mozilla",
  icon: {
    "16": "./icon-16.png",
    "32": "./icon-32.png",
    "64": "./icon-64.png"
  },
  onClick: handleClick
});

function handleClick(state) {
	// tabs.open("http://dewey.petra.ac.id/catalog/ft_detail.php?knokat=19762");
	tabs.open("http://dewey.petra.ac.id/catalog/ft_detail.php?knokat=14162");
	// console.log(tabs.activeTab.url);

}

// show content of tab in console
// tabs.on('activate', function(tab) {
// 	console.log('active: ' + tabs.activeTab.url);
// 	var worker = tab.attach({
// 		contentScript: 'self.port.emit("html", document.body.innerHTML);'
// 	});
// 	worker.port.on("html", function(message) {
// 		console.log(message);
// 	});
// });

var pageMod = require("sdk/page-mod");

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

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

pageMod.PageMod({
	include: "http://dewey.petra.ac.id/catalog/ft_detail.php*",
	contentScriptFile: [data.url("jquery-1.12.0.min.js"), data.url("jszip.min.js"), data.url("jszip-utils.min.js"), data.url("materialize/js/materialize.min.js"), "./dewey-content-script.js"],
	contentStyleFile: [data.url("materialize/css/materialize.min.css"), "./dewey-style.css"],
});

// var { attach, detach } = require('sdk/content/mod');
// var { style } = require('sdk/stylesheet/style');
// var { ToggleButton } = require('sdk/ui/button/toggle');

// var style = Style({
// 	uri: './style.css'
// });

// var button = ToggleButton({
// 	id: "styleist",
// 	label: "stylist",
// 	icon: "./icon-16.png",
// 	onChange: function(state) {
// 		if(state.checked) {
// 			attach(style, tabs.activeTab);
// 		}
// 		else {
{'fraction_non_alphanumeric': 0.2316831683168317, 'fraction_numerical': 0.015841584158415842, 'mean_word_length': 3.533333333333333, 'pattern_counts': {'":': 6, '<': 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': '6655558', 'n_tokens_mistral': 1381, 'n_tokens_neox': 1320, 'n_words': 202}