<commit_before>import React  from 'react';
import storage from '../../lib/session-storage.js';

import Footer from '../../components/signup-form/footer.js';
import Header from '../../components/signup-form/header.js';
import { SimpleNav } from '../../components/net-neutrality/nav.js';
import Logo from '../../components/signup-form/logo.js';
import FccFormSticky from '../../components/signup-form/signup-form-sticky.js';
import FccForm from '../../components/net-neutrality/fcc-form.js';
import FccFormContainer from '../../components/signup-form/signup-form-container.js';
import SignupForm from '../../components/net-neutrality/signup-form.js';
import FormBody from '../../components/signup-form/form-body.js';
import Modal from '../../components/modal.js';

const DONATE_CTA_DELAY = 750; // in milliseconds

var Signup = React.createClass({
  getInitialState: function() {
    return {
      showModal: false,
      dismissedModal: false,
      signupSuccess: false
    };
  },
  componentDidMount: function() {
    if (typeof window !== "undefined" && window.addEventListener) {
      this._withScroll = e => this.handleScroll(e);
      window.addEventListener('scroll', this._withScroll);
    }
  },
  componentWillUnmount() {
    if (this._withScroll) {
      window.removeEventListener('scroll', this._withScroll);
    }
  },
  handleScroll: function(e) {
    if (this._ctaTimeout) {
      clearTimeout(this._ctaTimeout);
    }
    this._ctaTimeout = setTimeout(() => this.spawnDonateCTA(), DONATE_CTA_DELAY);
  },
  spawnDonateCTA: function() {
    if (!storage.getItem('dismissedModal')) {
      this.setState({<commit_msg>Remove NN scroll modal for now<commit_after>import React  from 'react';
import storage from '../../lib/session-storage.js';

import Footer from '../../components/signup-form/footer.js';
import Header from '../../components/signup-form/header.js';
import { SimpleNav } from '../../components/net-neutrality/nav.js';
import Logo from '../../components/signup-form/logo.js';
import FccFormSticky from '../../components/signup-form/signup-form-sticky.js';
import FccForm from '../../components/net-neutrality/fcc-form.js';
import FccFormContainer from '../../components/signup-form/signup-form-container.js';
import SignupForm from '../../components/net-neutrality/signup-form.js';
import FormBody from '../../components/signup-form/form-body.js';
import Modal from '../../components/modal.js';

const DONATE_CTA_DELAY = 750; // in milliseconds

var Signup = React.createClass({
  getInitialState: function() {
    return {
      showModal: false,
      dismissedModal: false,
      signupSuccess: false
    };
  },
  componentDidMount: function() {
  // We don't need a scroll triggered modal but it's likely this will come back
  //   if (typeof window !== "undefined" && window.addEventListener) {
  //     this._withScroll = e => this.handleScroll(e);
  //     window.addEventListener('scroll', this._withScroll);
  //   }
  },
  componentWillUnmount() {
    if (this._withScroll) {
      window.removeEventListener('scroll', this._withScroll);
    }
  },
  handleScroll: function(e) {
    if (this._ctaTimeout) {
      clearTimeout(this._ctaTimeout);
    }
    this._ctaTimeout = setTimeout(() => this.spawnDonateCTA(), DONATE_CTA_DELAY);
  },
  spawnDonateCTA: function() {
    if (!storage.getItem('dismissedModal')) {
      this.setState({
{'fraction_non_alphanumeric': 0.16523541604974828, 'fraction_numerical': 0.0017767249037607344, 'mean_word_length': 3.4041720990873534, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '6702761', 'n_tokens_mistral': 1024, 'n_tokens_neox': 1038, 'n_words': 210}