<commit_before>
import React, { Component, PropTypes } from 'react';
import ContentNavigation from 'components/ContentNavigation';

const selections = [
  { title: 'actions', path: 'search-actions'},
  { title: 'campaigns', path: 'search-campaigns'},
  { title: 'people', path: 'search-campaigns'},
];

const baseUrl = '/search';

class SearchNav extends Component {
  static propTypes = {
    children: PropTypes.node.isRequired,
    selected: PropTypes.string.isRequired
  };

  render() {
    const selected = selections.findIndex( (i) => {
      return i.path === this.props.selected;
    });

    return (
      <div>
        <ContentNavigation
          baseUrl={baseUrl}
          selections={selections}
          selected={selected}
        />
        {this.props.children}
      </div>
    );
  }
}

export default SearchNav;
<commit_msg>Removing 'people' search from searchnav even though searchnav is deprecated in designs.<commit_after>
import React, { Component, PropTypes } from 'react';
import ContentNavigation from 'components/ContentNavigation';

const selections = [
  { title: 'actions', path: 'search-actions'},
  { title: 'campaigns', path: 'search-campaigns'},
];

const baseUrl = '/search';

class SearchNav extends Component {
  static propTypes = {
    children: PropTypes.node.isRequired,
    selected: PropTypes.string.isRequired
  };

  render() {
    const selected = selections.findIndex( (i) => {
      return i.path === this.props.selected;
    });

    return (
      <div>
        <ContentNavigation
          baseUrl={baseUrl}
          selections={selections}
          selected={selected}
        />
        {this.props.children}
      </div>
    );
  }
}

export default SearchNav;

{'fraction_non_alphanumeric': 0.13008130081300814, 'fraction_numerical': 0.0, 'mean_word_length': 2.979214780600462, 'pattern_counts': {'":': 0, '<': 9, '<?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': '3863433', 'n_tokens_mistral': 497, 'n_tokens_neox': 488, 'n_words': 121}