<commit_before>import React, { Component } from 'react';
import SliderNavContainer from '../../common/containers/SliderNavContainer.js';
import PromoBannerContainer from '../../common/containers/PromoBannerContainer.js';
import { Link } from 'react-router';
import CartContainer from '../../common/containers/CartContainer.js';
import jquery from 'jquery';
import $ from 'jquery';


export default class Nav extends Component {


  constructor(props) {
    super(props);
    this.shrinkScroll = this.shrinkScroll.bind(this);

  }

  componentDidMount() {
    window.addEventListener("scroll", this.shrinkScroll);
  }

  scrollRight(e) {
    const leftPos = $(".scroller").scrollLeft();
    $('.scroller').animate({scrollLeft : leftPos + 56}, 300);
  }

  scrollLeft(e) {
    const leftPos = $(".scroller").scrollLeft();
    $('.scroller').animate({scrollLeft : leftPos - 56}, 300);
  }


  shrinkScroll(e) {
    const scrollTop = e.srcElement.body.scrollTop;
    const nav = document.getElementsByClassName("nav")[0];
    nav.classList.toggle("sh", scrollTop > 0);
  }

  render() {
    const logo = this.props.componentContent.logo;
    const cdnImageBase = this.props.cdnImageBase;
    return (
      <div className="nav t_b">
        <Link to="/">
          <img src={cdnImageBase + logo} className="t_b"/>
        </Link>
        <ul className="scroller">
          <li className="t_b sr" onClick={this.scrollLeft.bind(this)}><Link to="/shop" className="n_l t_b" activeClassName="act">Shop</Link></li>
          <li className="t_b sr" onClick={this.scrollLeft.bind(this)}><Link to="/about" className="n_l t_b" activeClassName="act">About</Link></li>          
          <li className="t_b sr" onClick={this.scrollRight.bind(this)}><Link to="/charities" className="n_l t_b" activeClassName="act">Charities</Link></li>
        </ul>
        <CartContainer {...this.props} />
        <div className="banner">25% Profits To Charity <span className="hideMobile"> – Handmade Goods For The Good – Free Shipping On Us!</span></div>
      </div>
    );
  }
}<commit_msg>updates banner headline<commit_after>import React, { Component } from 'react';
import SliderNavContainer from '../../common/containers/SliderNavContainer.js';
import PromoBannerContainer from '../../common/containers/PromoBannerContainer.js';
import { Link } from 'react-router';
import CartContainer from '../../common/containers/CartContainer.js';
import jquery from 'jquery';
import $ from 'jquery';


export default class Nav extends Component {


  constructor(props) {
    super(props);
    this.shrinkScroll = this.shrinkScroll.bind(this);

  }

  componentDidMount() {
    window.addEventListener("scroll", this.shrinkScroll);
  }

  scrollRight(e) {
    const leftPos = $(".scroller").scrollLeft();
    $('.scroller').animate({scrollLeft : leftPos + 56}, 300);
  }

  scrollLeft(e) {
    const leftPos = $(".scroller").scrollLeft();
    $('.scroller').animate({scrollLeft : leftPos - 56}, 300);
  }


  shrinkScroll(e) {
    const scrollTop = e.srcElement.body.scrollTop;
    const nav = document.getElementsByClassName("nav")[0];
    nav.classList.toggle("sh", scrollTop > 0);
  }

  render() {
    const logo = this.props.componentContent.logo;
    const cdnImageBase = this.props.cdnImageBase;
    return (
      <div className="nav t_b">
        <Link to="/">
          <img src={cdnImageBase + logo} className="t_b"/>
        </Link>
        <ul className="scroller">
          <li className="t_b sr" onClick={this.scrollLeft.bind(this)}><Link to="/shop" className="n_l t_b" activeClassName="act">Shop</Link></li>
          <li className="t_b sr" onClick={this.scrollLeft.bind(this)}><Link to="/about" className="n_l t_b" activeClassName="act">About</Link></li>
          <li className="t_b sr" onClick={this.scrollRight.bind(this)}><Link to="/charities" className="n_l t_b" activeClassName="act">Charities</Link></li>
        </ul>
        <CartContainer {...this.props} />
        <div className="banner">Goods for the Good - Free Shipping On Us <span className="hideMobile"></span></div>
      </div>
    );
  }
}
{'fraction_non_alphanumeric': 0.16678876678876678, 'fraction_numerical': 0.006349206349206349, 'mean_word_length': 3.6334841628959276, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 53, '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': '4543563', 'n_tokens_mistral': 1306, 'n_tokens_neox': 1245, 'n_words': 261}