<commit_before>import PropTypes         from 'prop-types';
import React             from 'react';
import { IconTradeType } from '../Types';

const IconTradeCategory = ({ category }) => {
    let IconCategory;
    if (category) {
        switch (category) {
            case 'rise_fall':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='call'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='put'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'high_low':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='call_barrier'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='put_barrier'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'end':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='expirymiss'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='expiryrange'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'stay':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='range'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='upordown'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'match_diff':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='digitmatch'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='digitdiff'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'even_odd':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='digitodd'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='digiteven'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'over_under':
                IconCategory = (
                    <React.Fragment><commit_msg>swap even and odd<commit_after>import PropTypes         from 'prop-types';
import React             from 'react';
import { IconTradeType } from '../Types';

const IconTradeCategory = ({ category }) => {
    let IconCategory;
    if (category) {
        switch (category) {
            case 'rise_fall':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='call'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='put'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'high_low':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='call_barrier'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='put_barrier'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'end':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='expirymiss'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='expiryrange'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'stay':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='range'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='upordown'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'match_diff':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='digitmatch'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='digitdiff'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'even_odd':
                IconCategory = (
                    <React.Fragment>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='digiteven'
                            />
                        </div>
                        <div className='category-wrapper'>
                            <IconTradeType
                                className='category-type'
                                type='digitodd'
                            />
                        </div>
                    </React.Fragment>
                );
                break;
            case 'over_under':
                IconCategory = (
                    <React.Fragment>
{'fraction_non_alphanumeric': 0.07666026051676277, 'fraction_numerical': 0.0, 'mean_word_length': 0.5892432982694266, 'pattern_counts': {'":': 0, '<': 101, '<?xml version=': 0, '>': 103, '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': '983964', 'n_tokens_mistral': 1835, 'n_tokens_neox': 1694, 'n_words': 268}