<commit_before>import React 		from 'react/addons';
import Dialog 		from '../../components/dialog';
import UserStore    from '../../stores/user';
import api  		from '../../utils/api';

export default React.createClass({
    propTypes: {
        onDismiss: React.PropTypes.func.isRequired
    },

    getInitialState() {
		return { 
			infoReceived:   false,
			clientVersion:  process.env.VERSION || 'unknown',
    		apiVersion:     null,
    		imgVersion:     null
    	}
	},

    componentWillMount(){
    	let token = UserStore.getToken();

    	api.queryApiVersion({ token }).then((res) => {
            this.state.apiVersion = res.version  || 'unknown';
            this.setState({infoReceived : true});
    	}, (err) => { 
            this.state.apiVersion = 'error'; 
            this.setState({infoReceived : true}); 
        });
		
    	api.queryImgVersion({ token }).then((res) => {
			this.state.imgVersion = res.version || 'unknown';
            this.setState({infoReceived : true});
    	}, (err) => {
            this.state.imgVersion = 'error';
            this.setState({infoReceived : true});
        });
    },<commit_msg>Removed some tabs and spaces<commit_after>import Reac		from 'react/addons';
import Dialo		from '../../components/dialog';
import UserStore	from '../../stores/user';
import ap		from '../../utils/api';

export default React.createClass({
    propTypes: {
        onDismiss: React.PropTypes.func.isRequired
    },

    getInitialState() {
	return { 
	    infoReceived:   false,
	    clientVersion:  process.env.VERSION || 'unknown',
    	    apiVersion:     null,
    	    imgVersion:     null
    	    }
    },

    componentWillMount(){
    	let token = UserStore.getToken();

    	api.queryApiVersion({ token }).then((res) => {
            this.state.apiVersion = res.version  || 'unknown';
            this.setState({infoReceived : true});
    	}, (err) => { 
            this.state.apiVersion = 'error'; 
            this.setState({infoReceived : true}); 
        });
		
    	api.queryImgVersion({ token }).then((res) => {
	    this.state.imgVersion = res.version || 'unknown';
            this.setState({infoReceived : true});
    	}, (err) => {
            this.state.imgVersion = 'error';
            this.setState({infoReceived : true});
        });
    },
{'fraction_non_alphanumeric': 0.15645371577574968, 'fraction_numerical': 0.0, 'mean_word_length': 2.1707988980716255, 'pattern_counts': {'":': 0, '<': 3, '<?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': '3822538', 'n_tokens_mistral': 700, 'n_tokens_neox': 683, 'n_words': 130}