<commit_before>var React = require('react');
var Graph = require('./Graph.cs.jsx');

module.exports = React.createClass({
	getDefaultProps: function() {
		return {
			// general
			height: '500',		// defines the universe's height
			width: '500',		// defines the universe's width
			data: {series:[{ type : 'Stairs', data : {series:[]}, axe : 'left', color: 'black', opacity:1}], type: 'number'},
			title: '',
			titleFSize: 30,
			// axis
				// label of axis
			xLabel: '',
			yLabel: '',
			xLabelFSize: 15,
			yLabelFSize: 15,
				// axis
			axis: undefined,	// left = (bottom,left), right = {top,right}, overrides x,y-axis
			xaxis: 'bottom',	// bottom || top
			yaxis: 'left',		// left || right
				// margins
			axisMargin: {l: 10, b: 10, r: 10, t: 10}, // left, bottom, right, top
			outerMargin: {},        // left, bottom, right, top
			// lower level descriptions
			axisProps: {},
		};
	},
	render: function(){
		// we imposed some stuff, whatever the user says
		var props = this.props;
		props.graphProps = [];
		props.data.type = 'number';
		props.ymin = 0.0; // a density [of probability] is always > 0
		// we provide some defaults
		for(var i = 0; i < this.props.data.series.length; i++){
			props.graphProps.push({
				color:     this.props.data.series[i].color     || 'black', 
				stairs:    'right',
				fill:      this.props.data.series[i].color     || 'black', 
				opacity:   this.props.data.series[i].opacity   || (1 - (0.8 * i /(props.data.series.length - 1))),  // from 1 to 0.2
				mark:      this.props.data.series[i].mark      || false, 
				markSize:  this.props.data.series[i].markSize  || 3, 
				markColor: this.props.data.series[i].markColor || this.props.data.series[i].color || 'black'
			});
		}
		return <Graph {...props}/>;
	}
});<commit_msg>L'ordre des histos n'était pas du dernier au premier<commit_after>var React = require('react');
var Graph = require('./Graph.cs.jsx');

module.exports = React.createClass({
	getDefaultProps: function() {
		return {
			// general
			height: '500',		// defines the universe's height
			width: '500',		// defines the universe's width
			data: {series:[{ type : 'Stairs', data : {series:[]}, axe : 'left', color: 'black', opacity:1}], type: 'number'},
			title: '',
			titleFSize: 30,
			// axis
				// label of axis
			xLabel: '',
			yLabel: '',
			xLabelFSize: 15,
			yLabelFSize: 15,
				// axis
			axis: undefined,	// left = (bottom,left), right = {top,right}, overrides x,y-axis
			xaxis: 'bottom',	// bottom || top
			yaxis: 'left',		// left || right
				// margins
			axisMargin: {l: 10, b: 10, r: 10, t: 10}, // left, bottom, right, top
			outerMargin: {},        // left, bottom, right, top
			// lower level descriptions
			axisProps: {},
		};
	},
	render: function(){
		// we imposed some stuff, whatever the user says
		var props = this.props;
		props.graphProps = [];
		props.data.type = 'number';
		props.ymin = 0.0; // a density [of probability] is always > 0
		// we provide some defaults
		for(var i = 0; i < this.props.data.series.length; i++){
			props.graphProps.push({
				color:     this.props.data.series[i].color     || 'black', 
				stairs:    'right',
				fill:      this.props.data.series[i].color     || 'black', 
				opacity:   this.props.data.series[i].opacity   || (0.2 + (0.6 * i /(props.data.series.length - 1))),  // from 1 to 0.2
				mark:      this.props.data.series[i].mark      || false, 
				markSize:  this.props.data.series[i].markSize  || 3, 
				markColor: this.props.data.series[i].markColor || this.props.data.series[i].color || 'black'
			});
		}
		return <Graph {...props}/>;
	}
});
{'fraction_non_alphanumeric': 0.18426156830146856, 'fraction_numerical': 0.01856469936270435, 'mean_word_length': 2.6799184505606526, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '7105363', 'n_tokens_mistral': 1463, 'n_tokens_neox': 1247, 'n_words': 324}