<commit_before>	var React = require('react/addons');
	var _ = require('lodash');
	var API = require('../data/api');
	var DropdownMenu     = require('component/DropdownMenu.jsx');

	var DocOverview = React.createClass({
		propTypes: {
			overview: React.PropTypes.string.isRequired,
		},

		getOverview: function() {
				var self = this;
				API.document({id:7}).then(function(data){
					this.props.overview = data.objects[0]
					return data.objects[0]
			});
		},

	  render() {
			var doc_overview = {
											'doc_name':'sample document name',
											'created_by':'john',
											'source_datapoint_count':101010,
											'source_datapoint_zero_count':244,
											'source_datapoint_null_count':8980,
											'master_datapoint_count':101,
											'campaign_col':'start_date',
											'region_code_col':'wardcode',
											'source_datapoint_time_elapsed': 72,
											'latest_refresh_master_time_elapsed': 7
											}


			return <div>
			<h2> Document Name: {doc_overview.doc_file} </h2>
			<h2> Uploaded By: {doc_overview.created_by} </h2>
			<h2> Master Datapoint Count: {doc_overview.master_datapoint_count} </h2>
			<h2> Source Datapoint Count: {doc_overview.source_datapoint_count} </h2>
			<h2> Document to Source Datapoint: {doc_overview.source_datapoint_time_elapsed} </h2>
			<h2> Latest Master Refresh: {doc_overview.latest_refresh_master_time_elapsed} </h2>
			<DropdownMenu
				text='Campaign Column'
				searchable={true}
				onSearch={this._setPattern}
			>
			</DropdownMenu>
			<DropdownMenu
				text='Region Column'
				searchable={true}
				onSearch={this._setPattern}
			>
			</DropdownMenu><commit_msg>figuring out to how to pull data for a particular doc_id<commit_after>	var React = require('react/addons');
	var _ = require('lodash');
	var API = require('../data/api');
	var DropdownMenu     = require('component/DropdownMenu.jsx');

	var DocOverview = React.createClass({
		propTypes: {
			overview: React.PropTypes.string.isRequired,
		},

		// getOverview: function() {
		// 		var self = this;
		// 		API.document({id:7}).then(function(data){
		// 			this.props.overview = data.objects[0]
		// 			console.log(this.props.overview)
		// 			console.log('something')
		// 			return data.objects[0]
		// 	});
		// },

	  render() {
			var self = this;
			var doc_overview = API.document({id:7}).done(function(data){

				console.log(' DATAAA ')
				console.log(data.objects)
				return data
				// console.log(data.response)

			})


			// console.log(this.props)

			// then(function(data){
			//
			//
			// 		return data.toString()// objects
			//
			// });
			// var doc_overview = {
			// 								'doc_name':'sample document name',
			// 								'created_by':'john',
			// 								'source_datapoint_count':101010,
			// 								'source_datapoint_zero_count':244,
			// 								'source_datapoint_null_count':8980,
			// 								'master_datapoint_count':101,
			// 								'campaign_col':'start_date',
			// 								'region_code_col':'wardcode',
			// 								'source_datapoint_time_elapsed': 72,
			// 								'latest_refresh_master_time_elapsed': 7
			// 								}

			return <div>
			<h2> Document Name: {doc_overview.doc_file} </h2>
			<h2> Uploaded By: {doc_overview.created_by} </h2>
			<h2> Master Datapoint Count: {doc_overview.master_datapoint_count} </h2>
			<h2> Source Datapoint Count: {doc_overview.source_datapoint_count} </h2>
			<h2> Document to Source Datapoint: {doc_overview.source_datapoint_time_elapsed} </h2>
			<h2> Latest Master Refresh: {doc_overview.latest_refresh_master_time_elapsed} </h2>
			<DropdownMenu
				text='Campaign Column'
				searchable={true}
				onSearch={this._setPattern}
			>
			</DropdownMenu>
			<DropdownMenu
				text='Region Column'
				searchable={true}
				onSearch={this._setPattern}
			>
			</DropdownMenu>
{'fraction_non_alphanumeric': 0.14319371727748692, 'fraction_numerical': 0.01806282722513089, 'mean_word_length': 2.980208333333333, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, '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': '2246715', 'n_tokens_mistral': 1777, 'n_tokens_neox': 1356, 'n_words': 216}