<commit_before>// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP

import React, { Component } from 'react';
import ReactDOM from 'react-dom';

import Responsive from 'grommet/utils/Responsive';
import classnames from 'classnames';

import Box from 'grommet/components/Box';
import Section from 'grommet/components/Section';
import Heading from 'grommet/components/Heading';
import Button from 'grommet/components/Button';

import Section1 from '../sections/Section1';
import Section2 from '../sections/Section2';
import Background from './Background';
import Nav from './Nav';

import '../../scss/index.scss';

// Global timer to monitor scrolling.
let SCROLL_TIMER;

class Home extends Component {
  constructor() {
    super();
    this._onResponsive = this._onResponsive.bind(this);
    this._updateProgress = this._updateProgress.bind(this);
    this._startScrollingTimer = this._startScrollingTimer.bind(this);

    this.state = {
      layout: 'large',
      progress: 0,
      color: 'light',
      layerActive: false,
      isScrolling: false
    };
  }

  componentDidMount() {
    this._responsive = Responsive.start(this._onResponsive);
    window.addEventListener('scroll', this._updateProgress);
    window.addEventListener('resize', this._updateProgress);
    ReactDOM.findDOMNode(this.refs.home).addEventListener('scroll', this._updateProgress);<commit_msg>Removed css import.<commit_after>// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP

import React, { Component } from 'react';
import ReactDOM from 'react-dom';

import Responsive from 'grommet/utils/Responsive';
import classnames from 'classnames';

import Box from 'grommet/components/Box';
import Section from 'grommet/components/Section';
import Heading from 'grommet/components/Heading';
import Button from 'grommet/components/Button';

import Section1 from '../sections/Section1';
import Section2 from '../sections/Section2';
import Background from './Background';
import Nav from './Nav';

//import '../../scss/index.scss';

// Global timer to monitor scrolling.
let SCROLL_TIMER;

class Home extends Component {
  constructor() {
    super();
    this._onResponsive = this._onResponsive.bind(this);
    this._updateProgress = this._updateProgress.bind(this);
    this._startScrollingTimer = this._startScrollingTimer.bind(this);

    this.state = {
      layout: 'large',
      progress: 0,
      color: 'light',
      layerActive: false,
      isScrolling: false
    };
  }

  componentDidMount() {
    this._responsive = Responsive.start(this._onResponsive);
    window.addEventListener('scroll', this._updateProgress);
    window.addEventListener('resize', this._updateProgress);
    ReactDOM.findDOMNode(this.refs.home).addEventListener('scroll', this._updateProgress);
{'fraction_non_alphanumeric': 0.12365591397849462, 'fraction_numerical': 0.00931899641577061, 'mean_word_length': 4.388030888030888, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '782603', 'n_tokens_mistral': 811, 'n_tokens_neox': 782, 'n_words': 199}