<commit_before>/**
 * @author <NAME>, based on the template provided by <NAME>

	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
	OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
	NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
	HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
	WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
	OTHER DEALINGS IN THE SOFTWARE.

 */
var jsvizObj;
function jsviz_init() {

	var TIMEDBUILD = window.location.href.indexOf("TIMEDBUILD")>0 ? true : false;

	/* 1) Create a new SnowflakeLayout.
	 * 
	 * If you're going to place the graph in an HTML Element, other
	 * than the <body>, remember that it must have a known size and
	 * position (via element.offsetWidth, element.offsetHeight,
	 * element.offsetTop, element.offsetLeft).
	 */
	this.divLocation = $('jsviz_div');
	//var layout = new SnowflakeLayout( divLocation, true );  commented out because it doesn't support cyclical graphs
	this.layout  = new ForceDirectedLayout( this.divLocation, true); // doesn't properly detect SVG support in ff3
	var layout = this.layout;
	layout.view.skewBase=420; //275;
	layout.setSize();

	/* 2) Configure the layout.
	 * 
	 * This configuration defines how we handle the addition of
	 * different kinds of nodes to the graph. For each "type" of
	 * node, we tell the layout how to create a "model" and "view"
	 * of the new node.
	 */
	
	layout.config._default = {

	/* The "model" defines the underlying structure of our graph.
	 * For a SnowflakeModel, we need to define the following for
	 * each node:
	 * 
	 * - childRadius: the edge length to this node's children
	 * - fanAngle: the maximum angle in which child nodes will be
	 *   layed out
	 * - rootAngle: the base angle of the graph at the origin (this
	 *   is automatically determined for all child nodes)
	 * 
	 * These parameters determine how this new node will interact
	 * with other nodes in our graph. The "model" attribute of a
	 * class in our configuration must return a JavaScript Object
	 * containing these values.
	 */

		model: function( dataNode ) {
			return {
				/*
				childRadius: 40,
				fanAngle: dataNode.root ? 360: 100,
				rootAngle: 0
				*/
				mass: 0.6
			};
		},

	/* The "view" defines what the nodes in our graph look like.
	 * The "view" attribute of a class must return a DOM element -- 
	 * JSViz supports most HTML and SVG elements. You can control
	 * the appearence and behavior of view elements just like any
	 * DOM element: 
	 * 
	 * CSS: Point to a CSS style sheet using the "className"<commit_msg>playing with mass values in jsviz.js<commit_after>/**
 * @author <NAME>, based on the template provided by <NAME>

	THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
	EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
	OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
	NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
	HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
	WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
	FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
	OTHER DEALINGS IN THE SOFTWARE.

 */
var jsvizObj;
function jsviz_init() {

	var TIMEDBUILD = window.location.href.indexOf("TIMEDBUILD")>0 ? true : false;

	/* 1) Create a new SnowflakeLayout.
	 * 
	 * If you're going to place the graph in an HTML Element, other
	 * than the <body>, remember that it must have a known size and
	 * position (via element.offsetWidth, element.offsetHeight,
	 * element.offsetTop, element.offsetLeft).
	 */
	this.divLocation = $('jsviz_div');
	//var layout = new SnowflakeLayout( divLocation, true );  commented out because it doesn't support cyclical graphs
	this.layout  = new ForceDirectedLayout( this.divLocation, true); // doesn't properly detect SVG support in ff3
	var layout = this.layout;
	layout.view.skewBase=420; //275;
	layout.setSize();

	/* 2) Configure the layout.
	 * 
	 * This configuration defines how we handle the addition of
	 * different kinds of nodes to the graph. For each "type" of
	 * node, we tell the layout how to create a "model" and "view"
	 * of the new node.
	 */
	
	layout.config._default = {

	/* The "model" defines the underlying structure of our graph.
	 * For a SnowflakeModel, we need to define the following for
	 * each node:
	 * 
	 * - childRadius: the edge length to this node's children
	 * - fanAngle: the maximum angle in which child nodes will be
	 *   layed out
	 * - rootAngle: the base angle of the graph at the origin (this
	 *   is automatically determined for all child nodes)
	 * 
	 * These parameters determine how this new node will interact
	 * with other nodes in our graph. The "model" attribute of a
	 * class in our configuration must return a JavaScript Object
	 * containing these values.
	 */

		model: function( dataNode ) {
			return {
				/*
				childRadius: 40,
				fanAngle: dataNode.root ? 360: 100,
				rootAngle: 0
				*/
				mass: 0.5
			};
		},

	/* The "view" defines what the nodes in our graph look like.
	 * The "view" attribute of a class must return a DOM element -- 
	 * JSViz supports most HTML and SVG elements. You can control
	 * the appearence and behavior of view elements just like any
	 * DOM element: 
	 * 
	 * CSS: Point to a CSS style sheet using the "className"
{'fraction_non_alphanumeric': 0.0778816199376947, 'fraction_numerical': 0.007696536558548653, 'mean_word_length': 3.376904570970329, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '7120834', 'n_tokens_mistral': 1687, 'n_tokens_neox': 1481, 'n_words': 732}