<commit_before>/* Flot plugin for rendering pie charts.

Copyright (c) 2007-2013 IOLA and <NAME>.
Licensed under the MIT license.

The plugin assumes that each series has a single data value, and that each
value is a positive integer or zero.  Negative numbers don't make sense for a
pie chart, and have unpredictable results.  The values do NOT need to be
passed in as percentages; the plugin will calculate the total and per-slice
percentages internally.

* Created by <NAME>

* Updated with contributions from btburnett3, <NAME> and <NAME>

* Adapted to Mootools by SergioCrisostomo - jsFiddle: http://jsfiddle.net/238XE/

*/

(function(mooflot) {

	// Maximum redraw attempts when fitting labels within the plot

	var REDRAW_ATTEMPTS = 10;

	// Factor by which to shrink the pie when fitting labels within the plot

	var REDRAW_SHRINK = 0.95;

	function init(plot) {

		var canvas = null,
			target = null,
			options = null,
			maxRadius = null,
			centerLeft = null,
			centerTop = null,
			processed = false,
			ctx = null;

		// interactive variables

		var highlights = [];

		// add hook to determine if pie plugin in enabled, and then perform necessary operations
<commit_msg>Update to YAML header in JS file<commit_after>/*
---
script: moo.flot.pie.js
name: mooflot pie
description: Pie chart plugin for flot library ported to work with mootools. 
    The plugin assumes that each series has a single data value, and that each
    value is a positive integer or zero.  Negative numbers don't make sense for a
    pie chart, and have unpredictable results.  The values do NOT need to be
    passed in as percentages; the plugin will calculate the total and per-slice
    percentages internally.
license: [ Re-release MIT license 2011, Originally released under the MIT license by IOLA, December 2007.]
authors:
  - Medendorp (creator)
  - btburnett3
  - <NAME>
  - <NAME>
  - <NAME>

requires:
  - core/1.3 - 1.4: '*'
  - more
  - more/utilities/color
  - moo.flot
  
provides: [flot.piecharts]
...
*/

/* Flot plugin for rendering pie charts.

Copyright (c) 2007-2013 IOLA and <NAME>.
Licensed under the MIT license.

The plugin assumes that each series has a single data value, and that each
value is a positive integer or zero.  Negative numbers don't make sense for a
pie chart, and have unpredictable results.  The values do NOT need to be
passed in as percentages; the plugin will calculate the total and per-slice
percentages internally.

* Created by <NAME>

* Updated with contributions from btburnett3, <NAME> and <NAME>

* Adapted to Mootools by SergioCrisostomo - jsFiddle: http://jsfiddle.net/D996U/

*/

(function(mooflot) {

	// Maximum redraw attempts when fitting labels within the plot

	var REDRAW_ATTEMPTS = 10;

	// Factor by which to shrink the pie when fitting labels within the plot

	var REDRAW_SHRINK = 0.95;

	function init(plot) {

		var canvas = null,
			target = null,
			options = null,
			maxRadius = null,
			centerLeft = null,
			centerTop = null,
			processed = false,
			ctx = null;

		// interactive variables

		var highlights = [];

		// add hook to determine if pie plugin in enabled, and then perform necessary operations

{'fraction_non_alphanumeric': 0.07246376811594203, 'fraction_numerical': 0.014807813484562067, 'mean_word_length': 3.4097222222222223, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '3180981', 'n_tokens_mistral': 1049, 'n_tokens_neox': 906, 'n_words': 422}