<commit_before>import React, {Component} from "react";
import PropTypes from "prop-types";
import {Link} from "react-router-dom";
import {FormattedDate} from "react-intl";
import {connect} from "alt-react";
import WalletActions from "actions/WalletActions";
import WalletManagerStore from "stores/WalletManagerStore";
import BackupStore from "stores/BackupStore";
import WalletDb from "stores/WalletDb";
import BackupActions, {
    backup,
    decryptWalletBackup
} from "actions/BackupActions";
import {saveAs} from "file-saver";
import Translate from "react-translate-component";
import {PrivateKey} from "bitsharesjs";
import SettingsActions from "actions/SettingsActions";
import {backupName} from "common/backupUtils";
import {getWalletName} from "branding";
import {Button, Input, Notification} from "bitshares-ui-style-guide";
import counterpart from "counterpart";

const connectObject = {
    listenTo() {
        return [WalletManagerStore, BackupStore];
    },
    getProps() {
        let wallet = WalletManagerStore.getState();
        let backup = BackupStore.getState();
        return {wallet, backup};
    }
};

//The default component is WalletManager.jsx
class BackupCreate extends Component {
    render() {
        return (
            <div style={{maxWidth: "40rem"}}>
                <Create
                    noText={this.props.noText}
                    newAccount={
                        this.props.location && this.props.location.query
                            ? this.props.location.query.newAccount<commit_msg>#1964 Replace old components with ant components in BackupRestore, NewWalletName, Download, Create, Upload, DecryptBackup components that are used in backup settings component on Backup page of settings<commit_after>import React, {Component} from "react";
import PropTypes from "prop-types";
import {Link} from "react-router-dom";
import {FormattedDate} from "react-intl";
import {connect} from "alt-react";
import WalletActions from "actions/WalletActions";
import WalletManagerStore from "stores/WalletManagerStore";
import BackupStore from "stores/BackupStore";
import WalletDb from "stores/WalletDb";
import BackupActions, {
    backup,
    decryptWalletBackup
} from "actions/BackupActions";
import {saveAs} from "file-saver";
import Translate from "react-translate-component";
import {PrivateKey} from "bitsharesjs";
import SettingsActions from "actions/SettingsActions";
import {backupName} from "common/backupUtils";
import {getWalletName} from "branding";
import {Button, Input, Notification} from "bitshares-ui-style-guide";
import counterpart from "counterpart";
import {Button, Input} from "bitshares-ui-style-guide";

const connectObject = {
    listenTo() {
        return [WalletManagerStore, BackupStore];
    },
    getProps() {
        let wallet = WalletManagerStore.getState();
        let backup = BackupStore.getState();
        return {wallet, backup};
    }
};

//The default component is WalletManager.jsx
class BackupCreate extends Component {
    render() {
        return (
            <div style={{maxWidth: "40rem"}}>
                <Create
                    noText={this.props.noText}
                    newAccount={
                        this.props.location && this.props.location.query
                            ? this.props.location.query.newAccount
{'fraction_non_alphanumeric': 0.10578363799820198, 'fraction_numerical': 0.00239736290080911, 'mean_word_length': 3.516914749661705, 'pattern_counts': {'":': 0, '<': 7, '<?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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4205735', 'n_tokens_mistral': 910, 'n_tokens_neox': 914, 'n_words': 256}