<commit_before>import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {fetchAbout} from '../actions/aboutActions';
import Banner from '../components/Banner';
import Section from '../components/Section';

class About extends Component {
  // Ajax call to get API data before the component mounts
  componentWillMount() {
    this.props.fetchAbout(this.props.route.path);
  }
  
  render() {
    // Destructure the about object
    const {title, caption, image_url, banner_url, content, resume_site_url, resume_download_url, tools } = this.props.about;
    return (
      <div>
        <Banner title={title} caption={caption} featured_image={banner_url} dark />
        <Section description={content} image_url={image_url} items={tools} primary_site_url={resume_site_url} secondary_site_url={resume_download_url} label={"Tools Of The Trade:"} primary_button={"View Resume Site"} secondary_button={"Download Resume"}/>
      </div>
    ); 
  }
}

// Map State To Props
function mapStateToProps({about}) {
  return {about};
}

// Bind the actions and dispatch them
function mapDispatchToProps(dispatch) {
  return bindActionCreators({fetchAbout}, dispatch);
}

// About Props Validation
About.propTypes = {
  fetchAbout: PropTypes.func,
  about: PropTypes.object,
  route: PropTypes.object
};

export default connect(mapStateToProps, mapDispatchToProps)(About);<commit_msg>Fix text for Button titles passed from About container<commit_after>import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {fetchAbout} from '../actions/aboutActions';
import Banner from '../components/Banner';
import Section from '../components/Section';

class About extends Component {
  // Ajax call to get API data before the component mounts
  componentWillMount() {
    this.props.fetchAbout(this.props.route.path);
  }
  
  render() {
    // Destructure the about object
    const {title, caption, image_url, banner_url, content, resume_site_url, resume_download_url, tools } = this.props.about;
    return (
      <div>
        <Banner title={title} caption={caption} featured_image={banner_url} dark />
        <Section description={content} image_url={image_url} items={tools} primary_site_url={resume_site_url} secondary_site_url={resume_download_url} label={"Tools Of The Trade:"} primary_site_button={"View Resume Site"} secondary_site_button={"Download Resume"}/>
      </div>
    ); 
  }
}

// Map State To Props
function mapStateToProps({about}) {
  return {about};
}

// Bind the actions and dispatch them
function mapDispatchToProps(dispatch) {
  return bindActionCreators({fetchAbout}, dispatch);
}

// About Props Validation
About.propTypes = {
  fetchAbout: PropTypes.func,
  about: PropTypes.object,
  route: PropTypes.object
};

export default connect(mapStateToProps, mapDispatchToProps)(About);
{'fraction_non_alphanumeric': 0.1198780900778869, 'fraction_numerical': 0.0, 'mean_word_length': 4.826429980276134, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3792957', 'n_tokens_mistral': 863, 'n_tokens_neox': 858, 'n_words': 233}