<commit_before>import React, { PropTypes, Component } from 'react';
import FullTradeCard from '../fulltrade/FullTradeCard';

export default class TradesGrid extends Component {

    static propTypes = {
        actions: PropTypes.object.isRequired,
        activeTradeIndex: PropTypes.number.isRequired,
        ticks: PropTypes.object.isRequired,
        currency: PropTypes.string.isRequired,
        ticksForAllSymbols: PropTypes.object.isRequired,
        trades: PropTypes.array.isRequired,
        contracts: PropTypes.object.isRequired,
        currency: PropTypes.string.isRequired,
    };

    render() {
        const { actions, activeTradeIndex, currency, trades, ticksForAllSymbols, contracts } = this.props;
        
        return (
            <div className="trades-grid">
                {trades.map((trade, index) =>
                    (contracts[trade.symbol] && <FullTradeCard
                        key={index}
                        index={index}
                        currency={currency}
                        actions={actions}
                        trade={trade}
                        isActive={index === activeTradeIndex}
                        ticks={ticksForAllSymbols[trade.symbol]}
                        contract={contracts[trade.symbol]}
                        currency={currency}
                    />)
                )}
            </div>
        );
    }
}<commit_msg>Rename ticks to ticksForAllSymbols<commit_after>import React, { PropTypes, Component } from 'react';
import FullTradeCard from '../fulltrade/FullTradeCard';

export default class TradesGrid extends Component {

    static propTypes = {
        actions: PropTypes.object.isRequired,
        activeTradeIndex: PropTypes.number.isRequired,
        currency: PropTypes.string.isRequired,
        ticksForAllSymbols: PropTypes.object.isRequired,
        trades: PropTypes.array.isRequired,
        contracts: PropTypes.object.isRequired,
    };

    render() {
        const { actions, activeTradeIndex, currency, trades, ticksForAllSymbols, contracts } = this.props;

        return (
            <div className="trades-grid">
                {trades.map((trade, index) =>
                    (contracts[trade.symbol] && <FullTradeCard
                        key={index}
                        index={index}
                        currency={currency}
                        actions={actions}
                        trade={trade}
                        isActive={index === activeTradeIndex}
                        ticks={ticksForAllSymbols[trade.symbol]}
                        contract={contracts[trade.symbol]}
                    />)
                )}
            </div>
        );
    }
}
{'fraction_non_alphanumeric': 0.09690493736182756, 'fraction_numerical': 0.0, 'mean_word_length': 1.6696165191740413, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '2232883', 'n_tokens_mistral': 686, 'n_tokens_neox': 652, 'n_words': 120}