<commit_before>/*!
 * d3.chart.sankey - v0.3.0
 * License: MIT
 * Date: 2016-11-14
 */
(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory(require("d3"), require("d3.chart"));
	else if(typeof define === 'function' && define.amd)
		define(["d3", "d3.chart"], factory);
	else {
		var a = typeof exports === 'object' ? factory(require("d3"), require("d3.chart")) : factory(root["d3"], root["d3"]["chart"]);
		for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
	}
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_5__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	"use strict";
	/*jshint node: true */

	var Sankey = __webpack_require__(1);

	Sankey.Sankey = Sankey;
	Sankey.Base = __webpack_require__(4);
	Sankey.Selection = __webpack_require__(6);
	Sankey.Path = __webpack_require__(7);

	module.exports = Sankey;


/***/ },
/* 1 */
/***/ function(module, exports, __webpack_require__) {

	"use strict";
	/*jshint node: true */

	var d3 = __webpack_require__(2);
	//var sankey = require("d3-plugins-sankey"); // @todo move loader to config and make it work
	var sankey = __webpack_require__(3);
	var Base = __webpack_require__(4);

	module.exports = Base.extend("Sankey", {

		initialize: function() {
			var chart = this;

			chart.d3.sankey = sankey();
			chart.d3.path = chart.d3.sankey.link();
			chart.d3.sankey.size([chart.features.width, chart.features.height]);

			chart.features.spread = false;
			chart.features.iterations = 32;
			chart.features.nodeWidth = chart.d3.sankey.nodeWidth();
			chart.features.nodePadding = chart.d3.sankey.nodePadding();
			chart.features.alignLabel = "auto";

			chart.layers.links = chart.layers.base.append("g").classed("links", true);
			chart.layers.nodes = chart.layers.base.append("g").classed("nodes", true);


			chart.on("change:sizes", function() {
				chart.d3.sankey.nodeWidth(chart.features.nodeWidth);
				chart.d3.sankey.nodePadding(chart.features.nodePadding);
			});

			chart.layer("links", chart.layers.links, {
				dataBind: function(data) {
					return this.selectAll(".link").data(data.links);
				},

				insert: function() {
					return this.append("path").classed("link", true);
				},

				events: {
					"enter": function() {
						this.on("mouseover",  function(e) { chart.trigger("link:mouseover", e); });
						this.on("mouseout",   function(e) { chart.trigger("link:mouseout",  e); });
						this.on("click",      function(e) { chart.trigger("link:click",     e); });
						this.on('dblclick',   function(e) { chart.trigger("link:dblclick",  e); });
					},

					"merge": function() {
						this
							.attr("d", chart.d3.path)
							.style("stroke", colorLinks)
							.style("stroke-width", function(d) { return Math.max(1, d.dy); })
							.sort(function(a, b) { return b.dy - a.dy; });
					},

					"exit": function() {
						this.remove();
					}
				}
			});

			chart.layer("nodes", chart.layers.nodes, {
				dataBind: function(data) {
					return this.selectAll(".node").data(data.nodes);
				},

				insert: function() {
					return this.append("g").classed("node", true).attr("data-node-id", function(d) {
						return d.id;
					});
				},

				events: {
					"enter": function() {
						this.append("rect");
						this.append("text")
							.attr("dy", ".35em")
							.attr("transform", null);

						this.on("mouseover",  function(e) { chart.trigger("node:mouseover", e); });
						this.on("mouseout",   function(e) { chart.trigger("node:mouseout",  e); });
						this.on("click",      function(e) { chart.trigger("node:click",     e); });
						this.on("click", 	  function(e) { chart.trigger("node:dblclick",  e); });
					},<commit_msg>Changed click event to dblclick event.<commit_after>/*!
 * d3.chart.sankey - v0.3.0
 * License: MIT
 * Date: 2016-11-14
 */
(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory(require("d3"), require("d3.chart"));
	else if(typeof define === 'function' && define.amd)
		define(["d3", "d3.chart"], factory);
	else {
		var a = typeof exports === 'object' ? factory(require("d3"), require("d3.chart")) : factory(root["d3"], root["d3"]["chart"]);
		for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
	}
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__, __WEBPACK_EXTERNAL_MODULE_5__) {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};

/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {

/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId])
/******/ 			return installedModules[moduleId].exports;

/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			exports: {},
/******/ 			id: moduleId,
/******/ 			loaded: false
/******/ 		};

/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);

/******/ 		// Flag the module as loaded
/******/ 		module.loaded = true;

/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}


/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;

/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;

/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";

/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports, __webpack_require__) {

	"use strict";
	/*jshint node: true */

	var Sankey = __webpack_require__(1);

	Sankey.Sankey = Sankey;
	Sankey.Base = __webpack_require__(4);
	Sankey.Selection = __webpack_require__(6);
	Sankey.Path = __webpack_require__(7);

	module.exports = Sankey;


/***/ },
/* 1 */
/***/ function(module, exports, __webpack_require__) {

	"use strict";
	/*jshint node: true */

	var d3 = __webpack_require__(2);
	//var sankey = require("d3-plugins-sankey"); // @todo move loader to config and make it work
	var sankey = __webpack_require__(3);
	var Base = __webpack_require__(4);

	module.exports = Base.extend("Sankey", {

		initialize: function() {
			var chart = this;

			chart.d3.sankey = sankey();
			chart.d3.path = chart.d3.sankey.link();
			chart.d3.sankey.size([chart.features.width, chart.features.height]);

			chart.features.spread = false;
			chart.features.iterations = 32;
			chart.features.nodeWidth = chart.d3.sankey.nodeWidth();
			chart.features.nodePadding = chart.d3.sankey.nodePadding();
			chart.features.alignLabel = "auto";

			chart.layers.links = chart.layers.base.append("g").classed("links", true);
			chart.layers.nodes = chart.layers.base.append("g").classed("nodes", true);


			chart.on("change:sizes", function() {
				chart.d3.sankey.nodeWidth(chart.features.nodeWidth);
				chart.d3.sankey.nodePadding(chart.features.nodePadding);
			});

			chart.layer("links", chart.layers.links, {
				dataBind: function(data) {
					return this.selectAll(".link").data(data.links);
				},

				insert: function() {
					return this.append("path").classed("link", true);
				},

				events: {
					"enter": function() {
						this.on("mouseover",  function(e) { chart.trigger("link:mouseover", e); });
						this.on("mouseout",   function(e) { chart.trigger("link:mouseout",  e); });
						this.on("click",      function(e) { chart.trigger("link:click",     e); });
						this.on('dblclick',   function(e) { chart.trigger("link:dblclick",  e); });
					},

					"merge": function() {
						this
							.attr("d", chart.d3.path)
							.style("stroke", colorLinks)
							.style("stroke-width", function(d) { return Math.max(1, d.dy); })
							.sort(function(a, b) { return b.dy - a.dy; });
					},

					"exit": function() {
						this.remove();
					}
				}
			});

			chart.layer("nodes", chart.layers.nodes, {
				dataBind: function(data) {
					return this.selectAll(".node").data(data.nodes);
				},

				insert: function() {
					return this.append("g").classed("node", true).attr("data-node-id", function(d) {
						return d.id;
					});
				},

				events: {
					"enter": function() {
						this.append("rect");
						this.append("text")
							.attr("dy", ".35em")
							.attr("transform", null);

						this.on("mouseover",  function(e) { chart.trigger("node:mouseover", e); });
						this.on("mouseout",   function(e) { chart.trigger("node:mouseout",  e); });
						this.on("click",      function(e) { chart.trigger("node:click",     e); });
						this.on("dblclick",   function(e) { chart.trigger("node:dblclick",  e); });
					},
{'fraction_non_alphanumeric': 0.22623333657682204, 'fraction_numerical': 0.009341247445752652, 'mean_word_length': 3.433994823123382, 'pattern_counts': {'":': 8, '<': 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': '5172154', 'n_tokens_mistral': 3886, 'n_tokens_neox': 3404, 'n_words': 625}