<commit_before>import PropTypes from "prop-types";
import React from 'react';
import {
  Row,
  Col
} from 'reactstrap';
import classNames from 'classnames';

const orderClassName = (address) => {
  return classNames({
    badge: true,
    'badge-success': address,
    'badge-secondary': !address
  });
}

const Contract = ({contract}) => (
  <Row className="border-bottom border-primary pb-3 mt-4">
    <Col xs={1} className="text-center">
      <h4><span className={orderClassName(contract.address)}>{contract.index + 1}</span></h4>
    </Col>
    <Col xs={11}>
      {contract.address &&
        <React.Fragment>
          <h5>{contract.className} deployed at {contract.address}</h5>
          <p><strong>Arguments:</strong> {contract.args}</p>
        </React.Fragment><commit_msg>Fix rendering of argument on deployment<commit_after>import PropTypes from "prop-types";
import React from 'react';
import {
  Row,
  Col
} from 'reactstrap';
import classNames from 'classnames';

const orderClassName = (address) => {
  return classNames({
    badge: true,
    'badge-success': address,
    'badge-secondary': !address
  });
}

const Contract = ({contract}) => (
  <Row className="border-bottom border-primary pb-3 mt-4">
    <Col xs={1} className="text-center">
      <h4><span className={orderClassName(contract.address)}>{contract.index + 1}</span></h4>
    </Col>
    <Col xs={11}>
      {contract.address &&
        <React.Fragment>
          <h5>{contract.className} deployed at {contract.address}</h5>
          <p><strong>Arguments:</strong> {JSON.stringify(contract.args)}</p>
        </React.Fragment>
{'fraction_non_alphanumeric': 0.16666666666666666, 'fraction_numerical': 0.012391573729863693, 'mean_word_length': 3.601139601139601, 'pattern_counts': {'":': 0, '<': 35, '<?xml version=': 0, '>': 39, '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': '2132837', 'n_tokens_mistral': 500, 'n_tokens_neox': 499, 'n_words': 112}