<commit_before>var Blogs = React.createClass({
	getInitialState: function() {
		return {
			blogs: this.handleLoad()
		}
	},

	handleLoad: function() {
	  $.ajax({
	    url: '/blogs',
	    dataType: 'json',
	    cache: false,
	    success: function(data) {
	        this.setState({projects: data})
	    }.bind(this),
	    error: function(xhr, status, err) {
	      console.error('/blogs', status, err.toString());
	      console.error(this.state.projects);
	    }.bind(this)
	  });
	},
	loadCheck:function () {
		var blogs = this.state.blogs
		var blogsHolder = []
		if (this.state.projects !== undefined) {
			blogs.map(function(index, el)) {
				var blog = < Blog data={blogs[el]} />
				blogsHolder.push(blog)
			}
		}
		return blogsHolder
	},
	render:function() {
		var loadedBlogs = this.loadCheck()
		return (
			<div>
				<br />
				{loadedBlogs}
				<br />
			</div>

		)
	}
})<commit_msg>adds syntax fix and removes undefined states<commit_after>var Blogs = React.createClass({
	getInitialState: function() {
		return {
			blogs: this.handleLoad()
		}
	},

	handleLoad: function() {
	  $.ajax({
	    url: '/blogs',
	    dataType: 'json',
	    cache: false,
	    success: function(data) {
	        this.setState({blogs: data})
	    }.bind(this),
	    error: function(xhr, status, err) {
	      console.error('/blogs', status, err.toString());
	      console.error(this.state.blogs);
	    }.bind(this)
	  });
	},
	loadCheck:function () {
		var blogs = this.state.blogs
		var blogsHolder = []
		if (this.state.blogs !== undefined) {
			blogs.map(function(index, el) {
				var blog = < Blog data={blogs[el]} />
				blogsHolder.push(blog)
			})
		}
		return blogsHolder
	},
	render:function() {
		var loadedBlogs = this.loadCheck()
		return (
			<div>
				<br />
				{loadedBlogs}
				<br />
			</div>
		)
	}
})
{'fraction_non_alphanumeric': 0.16859504132231404, 'fraction_numerical': 0.0, 'mean_word_length': 2.6910569105691056, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1886531', 'n_tokens_mistral': 735, 'n_tokens_neox': 617, 'n_words': 124}