<commit_before>import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import React, {
  View,
  Text,
  StyleSheet
} from 'react-native'

import Question from '../components/Question'
import * as Actions from '../actions'

const keysLength = xs => Object.keys(xs).length

const App = ({ questions, position, actions }) => {
  return (
    <View style={{ marginTop: 65, flex: 1 }}>
      <Text style={styles.subHeader}>
        {position + 1}/{keysLength(questions)}
      </Text>
      <Question {...questions[position]}
        position={position}
        onConfirmAnswer={actions.confirmAnswer}
        onSelectAnswer={actions.selectAnswer}
      />
    </View>
  )
}

export default connect(
  // map state to props
  (state) => ({ ...state }),
  // map dispatch to props,
  (dispatch) => ({ actions: bindActionCreators(Actions, dispatch) })
)(App)

const styles = StyleSheet.create({<commit_msg>fix case<commit_after>import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import React, {
  View,
  Text,
  StyleSheet
} from 'react-native'

import Question from '../components/Question'
import * as actions from '../actions'

const keysLength = xs => Object.keys(xs).length

const App = ({ questions, position, actions }) => {
  return (
    <View style={{ marginTop: 65, flex: 1 }}>
      <Text style={styles.subHeader}>
        {position + 1}/{keysLength(questions)}
      </Text>
      <Question {...questions[position]}
        position={position}
        onConfirmAnswer={actions.confirmAnswer}
        onSelectAnswer={actions.selectAnswer}
      />
    </View>
  )
}

export default connect(
  // map state to props
  (state) => ({ ...state }),
  // map dispatch to props,
  (dispatch) => ({ actions: bindActionCreators(actions, dispatch) })
)(App)

const styles = StyleSheet.create({
{'fraction_non_alphanumeric': 0.15176151761517614, 'fraction_numerical': 0.004336043360433604, 'mean_word_length': 3.2534562211981566, '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': '772353', 'n_tokens_mistral': 563, 'n_tokens_neox': 543, 'n_words': 144}