<commit_before>import React from 'react'
import 'styles/core.scss'
import { actions as quoteActions } from '../redux/modules/getquotes'
import { connect } from 'react-redux'
import _ from 'lodash'
import styles from '../styles/QuotesListStyles.scss'
import QuoteTile from '../components/quote-tile'

const mapStateToProps = (state) => ({
  quotes: state.quotes
})

export class QuotesList extends React.Component {

  static propTypes = {
    quotes: React.PropTypes.object,
    fetch: React.PropTypes.func,
    getQuotes: React.PropTypes.func
  }

  componentDidMount () {
    this.props.getQuotes()
  }

  filterList () {
    console.log(this)
  }

  render () {
    let categories = _.countBy(this.props.quotes, 'category')
    console.log(categories)<commit_msg>getting selected filter value<commit_after>import React from 'react'
import 'styles/core.scss'
import { actions as quoteActions } from '../redux/modules/getquotes'
import { connect } from 'react-redux'
import _ from 'lodash'
import styles from '../styles/QuotesListStyles.scss'
import QuoteTile from '../components/quote-tile'

const mapStateToProps = (state) => ({
  quotes: state.quotes
})

export class QuotesList extends React.Component {

  static propTypes = {
    quotes: React.PropTypes.object,
    fetch: React.PropTypes.func,
    getQuotes: React.PropTypes.func
  }

  componentDidMount () {
    this.props.getQuotes()
  }

  filterList (e) {
    console.log(this)
    console.log(e.target.value)
  }

  render () {
    let categories = _.countBy(this.props.quotes, 'category')
    console.log(categories)
{'fraction_non_alphanumeric': 0.12460468058191018, 'fraction_numerical': 0.0, 'mean_word_length': 3.793939393939394, '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': '1646314', 'n_tokens_mistral': 507, 'n_tokens_neox': 500, 'n_words': 114}