<commit_before>'use strict'
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import empty from '../Mixin/Helper/Empty.js'

export default class RoommateRow extends Component {
  constructor(props) {
    super(props)
    this.state = {}
  }

  paragraphIfNotEmpty(value, label = null) {
    if (empty(value)) {
      return null
    } else {
      return <div>
        <strong>{label}</strong>{value}</div>
    }
  }

  render() {
    const {roommate} = this.props
    const para = this.paragraphIfNotEmpty
    let {description} = roommate
    if (description.length > 100) {
      description = description.substring(0, 100) + '...'
    }

    return (
      <div className="card card-default mb-3">
        <div className="card-header">
          <h4 className="mb-0">
            <strong>Move in:</strong>&nbsp; {roommate.move_in_date}
          </h4>
        </div><commit_msg>Added link to roommate title to view.<commit_after>'use strict'
import React, {Component} from 'react'
import PropTypes from 'prop-types'
import empty from '../Mixin/Helper/Empty.js'

export default class RoommateRow extends Component {
  constructor(props) {
    super(props)
    this.state = {}
  }

  paragraphIfNotEmpty(value, label = null) {
    if (empty(value)) {
      return null
    } else {
      return <div>
        <strong>{label}</strong>{value}</div>
    }
  }

  render() {
    const {roommate} = this.props
    const para = this.paragraphIfNotEmpty
    let {description} = roommate
    if (description.length > 100) {
      description = description.substring(0, 100) + '...'
    }

    return (
      <div className="card card-default mb-3">
        <div className="card-header">
          <a href={`./properties/Roommate/${roommate.id}`}><h4 className="mb-0">
            <strong>Move in:</strong>&nbsp; {roommate.move_in_date}
          </h4></a>
        </div>
{'fraction_non_alphanumeric': 0.14361420243773185, 'fraction_numerical': 0.011658717541070483, 'mean_word_length': 2.666019417475728, 'pattern_counts': {'":': 0, '<': 27, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '511996', 'n_tokens_mistral': 590, 'n_tokens_neox': 575, 'n_words': 136}