<commit_before>import React from 'react';
import { RadioItem, RadioGroup } from '../_common';
import { digitMatchOptions } from '../_constants/TradeParams';

export default class TradeTypeSelectorCard extends React.Component {

	static propTypes = {
		actions: React.PropTypes.object.isRequired,
		onChange: React.PropTypes.func,
		tickTrade: React.PropTypes.object.isRequired,
	};

	render() {
		const {actions, tickTrade} = this.props;
		const {tradeSelection} = tickTrade.get('tradeType');
		const onChangeTradeTypeChanged = e => {
			actions.updateTickTradeParameters({ tradeType: e.target.value });
			// this.getPrice();
			window.console.log(e.target.value);
		};
		window.console.log(tradeSelection);
		return (
			<div>
				<fieldset className="radio-selector">
					<RadioItem label="Rise" name="trade-type" value="CALL" img="img/trade-rise.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Fall" name="trade-type" value="PUT" img="img/trade-fall.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<fieldset className="radio-selector">
					<RadioItem label="Digit Match" name="trade-type" value="DIGITMATCH" img="img/trade-match.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Digit Differs" name="trade-type" value="DIGITDIFF" img="img/trade-differs.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<label>Last Digit Prediction</label><RadioGroup name="digit-match" options={digitMatchOptions} {...this.props}/>
				<fieldset className="radio-selector">
					<RadioItem label="Asian Up" name="trade-type" value="ASIANU" img="img/trade-asianup.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Asian Down" name="trade-type" value="ASIAND" img="img/trade-asiandown.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<fieldset className="radio-selector">
					<RadioItem label="Higher" name="trade-type" value="?1" img="img/trade-higher.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Lower" name="trade-type" value="?2" img="img/trade-lower.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<label>Barrier offset</label><input type="number" defaultValue={123} />(123)
				<fieldset className="radio-selector">
					<RadioItem label="Touches" name="trade-type" value="ONETOUCH" img="img/trade-touch.svg" onChange={onChangeTradeTypeChanged} /><commit_msg>Add new trate types<commit_after>import React from 'react';
import { RadioItem, RadioGroup } from '../_common';
import { digitMatchOptions } from '../_constants/TradeParams';

export default class TradeTypeSelectorCard extends React.Component {

	static propTypes = {
		actions: React.PropTypes.object.isRequired,
		onChange: React.PropTypes.func,
		tickTrade: React.PropTypes.object.isRequired,
	};

	render() {
		const {actions, tickTrade} = this.props;
		const {tradeSelection} = tickTrade.get('tradeType');
		const onChangeTradeTypeChanged = e => {
			actions.updateTickTradeParameters({ tradeType: e.target.value });
			// this.getPrice();
			window.console.log(e.target.value);
		};
		window.console.log(tradeSelection);
		return (
			<div>
				<fieldset className="radio-selector">
					<RadioItem label="Rise" name="trade-type" value="CALL" img="img/trade-rise.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Fall" name="trade-type" value="PUT" img="img/trade-fall.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<fieldset className="radio-selector">
					<RadioItem label="Digit Match" name="trade-type" value="DIGITMATCH" img="img/trade-match.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Digit Differs" name="trade-type" value="DIGITDIFF" img="img/trade-differs.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<fieldset className="radio-selector">
					<RadioItem label="Digit Over" name="trade-type" value="DIGITOVER" img="img/trade-digitover.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Digit Under" name="trade-type" value="DIGITUNDER" img="img/trade-digitunder.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<fieldset className="radio-selector">
					<RadioItem label="Digit Even" name="trade-type" value="DIGITEVEN" img="img/trade-digiteven.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Digit Odd" name="trade-type" value="DIGITODD" img="img/trade-digitodd.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<label>Last Digit Prediction</label><RadioGroup name="digit-match" options={digitMatchOptions} {...this.props}/>
				<fieldset className="radio-selector">
					<RadioItem label="Asian Up" name="trade-type" value="ASIANU" img="img/trade-asianup.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Asian Down" name="trade-type" value="ASIAND" img="img/trade-asiandown.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<fieldset className="radio-selector">
					<RadioItem label="Higher" name="trade-type" value="?1" img="img/trade-higher.svg" onChange={onChangeTradeTypeChanged} />
					<RadioItem label="Lower" name="trade-type" value="?2" img="img/trade-lower.svg" onChange={onChangeTradeTypeChanged} />
				</fieldset>
				<label>Barrier offset</label><input type="number" defaultValue={123} />(123)
				<fieldset className="radio-selector">
					<RadioItem label="Touches" name="trade-type" value="ONETOUCH" img="img/trade-touch.svg" onChange={onChangeTradeTypeChanged} />
{'fraction_non_alphanumeric': 0.15745148297326986, 'fraction_numerical': 0.0029293299157817647, 'mean_word_length': 5.442216981132075, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 63, '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': '2134072', 'n_tokens_mistral': 1998, 'n_tokens_neox': 1725, 'n_words': 295}