<commit_before>'use strict';
var React = require('react');
var _ = require('../underscore_ext');

var styles = {
	YAxisLabel: {
		WebkitTransform: 'translate(-100%, 0) rotate(270deg)',
		MozTransform: 'translate(-100%, 0) rotate(270deg)',
		msTransform: 'translate(-100%, 0) rotate(270deg)',
		OTransform: 'translate(-100%, 0) rotate(270deg)',
		transform: 'translate(-100%, 0) rotate(270deg)',
		WebkitTransformOrigin: '0 100%',
		MozTransformOrigin: '0 100%',
		msTransformOrigin: '0 100%',
		OTransformOrigin: '0 100%',
		transformOrigin: '100% 0'
	},
	YAxisWrapper: {
		overflow: 'hidden'
	}
};

var YAxisLabel = React.createClass({
	render: function () {
		// XXX would prefer to enforce that these keys are present & destructure
		var height = _.getIn(this.props, ['zoom', 'height']),
			index = _.getIn(this.props, ['zoom', 'index']) || 0,
			count = _.getIn(this.props, ['zoom', 'count']) || 0,
			length = _.getIn(this.props, ['samples', 'length']) || 0,
			fraction = count === length ? '' :
				`Zoomed to ${index} - ${index + count - 1} (N=${count})`,<commit_msg>YAxisLabel: make the Zoom lable more biologists friendly  Zoomed to 0-2 (N=11) -> 1-3 (N=11)<commit_after>'use strict';
var React = require('react');
var _ = require('../underscore_ext');

var styles = {
	YAxisLabel: {
		WebkitTransform: 'translate(-100%, 0) rotate(270deg)',
		MozTransform: 'translate(-100%, 0) rotate(270deg)',
		msTransform: 'translate(-100%, 0) rotate(270deg)',
		OTransform: 'translate(-100%, 0) rotate(270deg)',
		transform: 'translate(-100%, 0) rotate(270deg)',
		WebkitTransformOrigin: '0 100%',
		MozTransformOrigin: '0 100%',
		msTransformOrigin: '0 100%',
		OTransformOrigin: '0 100%',
		transformOrigin: '100% 0'
	},
	YAxisWrapper: {
		overflow: 'hidden'
	}
};

var YAxisLabel = React.createClass({
	render: function () {
		// XXX would prefer to enforce that these keys are present & destructure
		var height = _.getIn(this.props, ['zoom', 'height']),
			index = _.getIn(this.props, ['zoom', 'index']) || 0,
			count = _.getIn(this.props, ['zoom', 'count']) || 0,
			length = _.getIn(this.props, ['samples', 'length']) || 0,
			fraction = count === length ? '' :
				`Zoomed to ${index + 1} - ${index + count} (N=${count})`,
{'fraction_non_alphanumeric': 0.19605204127411396, 'fraction_numerical': 0.05652759084791386, 'mean_word_length': 4.51980198019802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '733071', 'n_tokens_mistral': 908, 'n_tokens_neox': 751, 'n_words': 200}