<commit_before>var React = require('react');
var Router = require('react-router');
var ServerRequests = require('../utils/ServerRequests');
var AddDoodleEntryCom = require('../components/AddDoodleEntry');
var Authentication = require('../utils/Authentication');


var AddDoodleEntry = React.createClass({
	mixins: [Authentication],

	render: function(){
		return (
			<div className="container">
				<AddDoodleEntryCom />
			</div>
		);
	}
});

module.exports = AddDoodleEntry;<commit_msg>drawing works but doesn't save<commit_after>var React = require('react');
var Router = require('react-router');
var ServerRequests = require('../utils/ServerRequests');
var AddDoodleEntryCom = require('../components/AddDoodleEntry');
var GraffitiCom = require('../components/Graffiti');
var Authentication = require('../utils/Authentication');


var AddDoodleEntry = React.createClass({
	mixins: [Authentication],

	getInitialState: function(){
		return {
			canvasFunc: null,
			readOnly: false
		};
	},

	render: function(){
		return (
			<div className="container">
				<div className="col-xs-12 col-md-7">
					<GraffitiCom
						readOnly={this.state.readOnly}
						registerCanvas={this.registerCanvas}
					/>
				</div>
			</div>
		);
	},

	registerCanvas: function(getCanvasFunc){
		this.setState({
			canvasFunc: getCanvasFunc
		});
	}

});

module.exports = AddDoodleEntry;
{'fraction_non_alphanumeric': 0.15670553935860057, 'fraction_numerical': 0.002186588921282799, 'mean_word_length': 4.47011952191235, 'pattern_counts': {'":': 0, '<': 11, '<?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': '6936145', 'n_tokens_mistral': 481, 'n_tokens_neox': 422, 'n_words': 82}