<commit_before>import React from "react";
import Translate from "react-translate-component";
import ChainTypes from "../Utility/ChainTypes";
import AssetName from "../Utility/AssetName";
import MarketLink from "../Utility/MarketLink";
import BindToChainState from "../Utility/BindToChainState";
import utils from "common/utils";
import BalanceComponent from "../Utility/BalanceComponent";
import WalletApi from "api/WalletApi";
import WalletDb from "stores/WalletDb";
import counterpart from "counterpart";
import {ChainStore} from "bitsharesjs";
import AmountSelector from "../Utility/AmountSelector";
import withWorthLessSettlementFlag from "../Utility/withWorthLessSettlementFlag";
import TranslateWithLinks from "../Utility/TranslateWithLinks";
import {Modal, Button} from "bitshares-ui-style-guide";

const WorthLessSettlementWarning = withWorthLessSettlementFlag(
    ({
        worthLessSettlement,
        asset,
        shortBackingAsset,
        marketPrice,
        settlementPrice
    }) => {
        switch (worthLessSettlement) {
            case false:
                return (
                    <div>
                        <TranslateWithLinks
                            string="exchange.worth_less_settlement_warning"
                            keys={[
                                {
                                    value: (
                                        <MarketLink
                                            base={asset.get("id")}
                                            quote={shortBackingAsset.get("id")}
                                        />
                                    ),
                                    arg: "market_link"
                                }
                            ]}
                        />
                        <br />
                        &nbsp;&nbsp;
                        <Translate content="exchange.price_market" />
                        :&nbsp;&nbsp;
                        {marketPrice}
                        <br />
                        &nbsp;&nbsp;
                        <Translate content="exchange.settle" />
                        :&nbsp;&nbsp;<commit_msg>flag the wrong way ...<commit_after>import React from "react";
import Translate from "react-translate-component";
import ChainTypes from "../Utility/ChainTypes";
import AssetName from "../Utility/AssetName";
import MarketLink from "../Utility/MarketLink";
import BindToChainState from "../Utility/BindToChainState";
import utils from "common/utils";
import BalanceComponent from "../Utility/BalanceComponent";
import WalletApi from "api/WalletApi";
import WalletDb from "stores/WalletDb";
import counterpart from "counterpart";
import {ChainStore} from "bitsharesjs";
import AmountSelector from "../Utility/AmountSelector";
import withWorthLessSettlementFlag from "../Utility/withWorthLessSettlementFlag";
import TranslateWithLinks from "../Utility/TranslateWithLinks";
import {Modal, Button} from "bitshares-ui-style-guide";

const WorthLessSettlementWarning = withWorthLessSettlementFlag(
    ({
        worthLessSettlement,
        asset,
        shortBackingAsset,
        marketPrice,
        settlementPrice
    }) => {
        switch (worthLessSettlement) {
            case true:
                return (
                    <div>
                        <TranslateWithLinks
                            string="exchange.worth_less_settlement_warning"
                            keys={[
                                {
                                    value: (
                                        <MarketLink
                                            base={asset.get("id")}
                                            quote={shortBackingAsset.get("id")}
                                        />
                                    ),
                                    arg: "market_link"
                                }
                            ]}
                        />
                        <br />
                        &nbsp;&nbsp;
                        <Translate content="exchange.price_market" />
                        :&nbsp;&nbsp;
                        {marketPrice}
                        <br />
                        &nbsp;&nbsp;
                        <Translate content="exchange.settle" />
                        :&nbsp;&nbsp;
{'fraction_non_alphanumeric': 0.09055479138010088, 'fraction_numerical': 0.0, 'mean_word_length': 1.262966804979253, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6595662', 'n_tokens_mistral': 977, 'n_tokens_neox': 937, 'n_words': 201}