<commit_before>import React from 'react'
import {object, array} from 'prop-types'
import {connect} from 'react-redux'
import styled, {ThemeProvider, injectGlobal} from 'styled-components'
import ThemePicker from 'containers/ThemePicker'
import {getTheme} from 'redux/selectors'

injectGlobal`
  body {
    margin: 0;
    overflow: hidden;
  }
`

const Root = styled.div`
  background-color: ${({theme}) => theme.background};
  color: ${({theme}) => theme.color};
  font: 11px sans-serif;
  padding: 8px;
`

const ThemedApp = ({theme, children}) => (
  <ThemeProvider theme={theme}>
    <Root>
      {children}
      <ThemePicker />
    </Root>
  </ThemeProvider>
)

ThemedApp.propTypes = {
  theme: object,
  children: array
}

const mapStateToProps = (state, ownProps) => ({
  theme: getTheme(state)
})

export default connect(mapStateToProps)(ThemedApp)
<commit_msg>ignore wrong eslint warning<commit_after>import React from 'react'
import {object, array} from 'prop-types'
import {connect} from 'react-redux'
import styled, {ThemeProvider, injectGlobal} from 'styled-components'
import ThemePicker from 'containers/ThemePicker'
import {getTheme} from 'redux/selectors'

/* eslint-disable no-unused-expressions */
injectGlobal`
  body {
    margin: 0;
    overflow: hidden;
  }
`

const Root = styled.div`
  background-color: ${({theme}) => theme.background};
  color: ${({theme}) => theme.color};
  font: 11px sans-serif;
  padding: 8px;
`

const ThemedApp = ({theme, children}) => (
  <ThemeProvider theme={theme}>
    <Root>
      {children}
      <ThemePicker />
    </Root>
  </ThemeProvider>
)

ThemedApp.propTypes = {
  theme: object,
  children: array
}

const mapStateToProps = (state, ownProps) => ({
  theme: getTheme(state)
})

export default connect(mapStateToProps)(ThemedApp)

{'fraction_non_alphanumeric': 0.14333519241494702, 'fraction_numerical': 0.004461795872838818, 'mean_word_length': 4.3552238805970145, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 21, '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': '2984062', 'n_tokens_mistral': 594, 'n_tokens_neox': 584, 'n_words': 149}