<commit_before>import React    from 'react';
import NavMenu  from './NavMenu';

export default class Header extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    let navMenu;

    if (this.props.config.headerMenuLinks.length > 0) {
      navMenu = <NavMenu links={this.props.config.headerMenuLinks} />
    }

    return (
      <header className="masthead" style={{backgroundColor: '#4C5664'}}>
        <div className="container">
          <a href={this.props.config.rootUrl} className="masthead-logo">{this.props.config.name}</a>
          {navMenu}
        </div>
      </header>
    );
  }
}
<commit_msg>Add header background color based on config<commit_after>import React    from 'react';
import NavMenu  from './NavMenu';

export default class Header extends React.Component {
  constructor(props) {
    super(props);
  }

  render() {
    let navMenu;

    if (this.props.config.headerMenuLinks.length > 0) {
      navMenu = <NavMenu links={this.props.config.headerMenuLinks} />
    }

    return (
      <header className="masthead" style={{backgroundColor: this.props.config.headerColor}}>
        <div className="container">
          <a href={this.props.config.rootUrl} className="masthead-logo">{this.props.config.name}</a>
          {navMenu}
        </div>
      </header>
    );
  }
}

{'fraction_non_alphanumeric': 0.14221556886227546, 'fraction_numerical': 0.005239520958083832, 'mean_word_length': 2.909356725146199, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, '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': '1027703', 'n_tokens_mistral': 419, 'n_tokens_neox': 410, 'n_words': 82}