<commit_before>import React from 'react'
import {Button, Col, Container, Row} from 'reactstrap'

import {getDDO} from '/imports/bitcoin/DDO'

const printDDO = (did) => async () => {
  console.log('Fetching the DDO from the blockchain...')
  const DDO = await getDDO(did)
  console.log('DDO is:')
  console.log(DDO)
}

const Developer = ({did}) => (
  <Container fluid>
    <Row className='mt-3'>
      <Col md='6' className='mx-auto'>
        <div>
          <Button color='primary' onClick={printDDO(did)} block> Show DDO </Button>
        </div>
      </Col>
    </Row>
  </Container>
)

export default Developer<commit_msg>Pretty print DDO<commit_after>import React from 'react'
import {Button, Col, Container, Row} from 'reactstrap'

import {getDDO} from '/imports/bitcoin/DDO'

const printDDO = (did) => async () => {
  console.log('Fetching the DDO from the blockchain...')
  const DDO = await getDDO(did)
  const prettyDDO = JSON.stringify(DDO, null, 2)
  console.log('DDO is:')
  console.log(prettyDDO)
}

const Developer = ({did}) => (
  <Container fluid>
    <Row className='mt-3'>
      <Col md='6' className='mx-auto'>
        <div>
          <Button color='primary' onClick={printDDO(did)} block> Show DDO </Button>
        </div>
      </Col>
    </Row>
  </Container>
)

export default Developer
{'fraction_non_alphanumeric': 0.1618320610687023, 'fraction_numerical': 0.003816793893129771, 'mean_word_length': 3.3410596026490067, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3591979', 'n_tokens_mistral': 454, 'n_tokens_neox': 446, 'n_words': 120}