<commit_before>import React from 'react';
import {momentFromNow} from '../../lib/util';
import Button from 'material-ui/Button';
import Card, { CardActions, CardContent } from 'material-ui/Card';
import Typography from 'material-ui/Typography';
import './StartAuctionInfo.css';

export const StartAuctionInfo = (props) => {
  const endsmomentFromNow = momentFromNow(props.unsealStartsAt);
  const txHashUrl = process.env.REACT_APP_ETHERSCAN_URL + props.auctionTXHash;

  return (
    <Card raised className="StartAuctionInfo">
      <CardContent>
        <Typography type="title" component="div">
          ENS: {props.searchResult.searchName}.eth
        </Typography>
        <Typography type="title" component="div">
          <p>Reveal Auction On</p>
          <div>{props.unsealStartsAt.toString()}</div>
          <div>{endsmomentFromNow.toString()}</div>
        </Typography>
        <Typography type="title" component="div">
          Email: {props.email}
        </Typography>
        <Typography type="title" component="div">
          ETH: {props.ethBid}
        </Typography>
        <Typography type="title" component="div">
          Secret: {props.secret}
        </Typography><commit_msg>fix reveal ends time show up ui<commit_after>import React from 'react';
import {momentFromNow} from '../../lib/util';
import Button from 'material-ui/Button';
import Card, { CardActions, CardContent } from 'material-ui/Card';
import Typography from 'material-ui/Typography';
import './StartAuctionInfo.css';

export const StartAuctionInfo = (props) => {
  const endsMomentFromNow = momentFromNow(props.unsealStartsAt);
  const hidden = props.unsealStartsAt.year() === 1970
  const txHashUrl = process.env.REACT_APP_ETHERSCAN_URL + props.auctionTXHash;

  return (
    <Card raised className="StartAuctionInfo">
      <CardContent>
        <Typography type="title" component="div">
          ENS: {props.searchResult.searchName}.eth
        </Typography>
        { hidden ? null :
          (
            <Typography type="title" component="div">
              <p>Reveal Auction On</p>
              <div>{props.unsealStartsAt.toString()}</div>
              <div>{endsMomentFromNow.toString()}</div>
            </Typography>
          )
        }
        <Typography type="title" component="div">
          Email: {props.email}
        </Typography>
        <Typography type="title" component="div">
          ETH: {props.ethBid}
        </Typography>
        <Typography type="title" component="div">
          Secret: {props.secret}
        </Typography>
{'fraction_non_alphanumeric': 0.1358313817330211, 'fraction_numerical': 0.00156128024980484, 'mean_word_length': 2.9249617151607965, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 41, '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': '4816011', 'n_tokens_mistral': 758, 'n_tokens_neox': 751, 'n_words': 157}