<commit_before>import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import ReactCSSTransitionGroup from 'react/lib/ReactCSSTransitionGroup'
import _find from 'lodash/find'
import { AuthModal, ErrorModal, KeyboardNavigation } from 'containers'
import { Header, SearchModule, KeyboardModeButton, LoadingScreen } from 'components'
import 'styles/core.scss'

const debug = false

const mapStateToProps = ({ layout, allCards, myCards, user }) => ({
  allCardsFetching: allCards.fetching,
  myCardsLoading: myCards.loading,
  userAuthPending: user.authPending
})

class CoreLayout extends Component {
  state = { showSpinner: true }

  componentWillReceiveProps ({ allCardsFetching, myCardsLoading, userAuthPending }) {
    if (debug && this.state.showSpinner) console.warn('allCardsFetching:', allCardsFetching, 'myCardsLoading:', myCardsLoading, 'userAuthPending', userAuthPending)<commit_msg>Turned on debug mode for testing data loading on Heroku<commit_after>import React, { Component, PropTypes } from 'react'
import { connect } from 'react-redux'
import ReactCSSTransitionGroup from 'react/lib/ReactCSSTransitionGroup'
import _find from 'lodash/find'
import { AuthModal, ErrorModal, KeyboardNavigation } from 'containers'
import { Header, SearchModule, KeyboardModeButton, LoadingScreen } from 'components'
import 'styles/core.scss'

const debug = true

const mapStateToProps = ({ layout, allCards, myCards, user }) => ({
  allCardsFetching: allCards.fetching,
  myCardsLoading: myCards.loading,
  userAuthPending: user.authPending
})

class CoreLayout extends Component {
  state = { showSpinner: true }

  componentWillReceiveProps ({ allCardsFetching, myCardsLoading, userAuthPending }) {
    if (debug && this.state.showSpinner) console.info('allCardsFetching:', allCardsFetching, 'myCardsLoading:', myCardsLoading, 'userAuthPending', userAuthPending)

{'fraction_non_alphanumeric': 0.1003167898627244, 'fraction_numerical': 0.0, 'mean_word_length': 6.549800796812749, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3612960', 'n_tokens_mistral': 575, 'n_tokens_neox': 583, 'n_words': 144}