<commit_before>import React from 'react'
import createReactClass from 'create-react-class'
import {Button, Modal, ModalBody, ModalHeader} from 'reactstrap'

const ReceivePayment = createReactClass({

  getInitialState: () => ({modal: false}),

  toggle: function () {
    this.setState({
      modal: !this.state.modal
    })
  },

  render: function () {
    return (
      <div>
        <Button color='primary' onClick={this.toggle}> Receive </Button>
        <Modal isOpen={this.state.modal} toggle={this.toggle}>
          <ModalHeader toggle={this.toggle}>Modal title</ModalHeader>
          <ModalBody>
            {this.props.address}
          </ModalBody>
        </Modal>
      </div>
    )<commit_msg>Show the receiving address with a qr code<commit_after>import QRCode from 'qrcode.react'
import React from 'react'
import createReactClass from 'create-react-class'
import {Button, Modal, ModalBody, ModalHeader} from 'reactstrap'

const ReceivePayment = createReactClass({

  getInitialState: () => ({modal: false}),

  toggle: function () {
    this.setState({
      modal: !this.state.modal
    })
  },

  render: function () {
    return (
      <div>
        <Button color='primary' onClick={this.toggle}> Receive </Button>
        <Modal isOpen={this.state.modal} toggle={this.toggle}>
          <ModalHeader toggle={this.toggle}>
            {this.props.address}
          </ModalHeader>
          <ModalBody>
            <QRCode value={this.props.address} size={256} />
          </ModalBody>
        </Modal>
      </div>
    )
{'fraction_non_alphanumeric': 0.1383322559793148, 'fraction_numerical': 0.0019392372333548805, 'mean_word_length': 2.7572815533980584, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 26, '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': '1756907', 'n_tokens_mistral': 461, 'n_tokens_neox': 454, 'n_words': 106}