<commit_before>import React from 'react'

const urlStyle = {
  opacity: 0.3,
  fontSize: '0.7rem'
}

export default class Url extends React.Component {
  getUrlStyle = () => Object.assign(
    {},
    urlStyle,
    this.props.tab.shouldHighlight && { opacity: 1 }
  )

  render () {
    const { tab: { url }, getHighlightNode } = this.props
    return (
      <div style={this.getUrlStyle()}>
        {getHighlightNode(url)}
      </div>
    )
  }
}<commit_msg>Use css to truncate tab url<commit_after>import React from 'react'

const urlStyle = {
  opacity: 0.3,
  fontSize: '0.7rem',
  overflow: 'hidden',
  textOverflow: 'ellipsis'
}

export default class Url extends React.Component {
  getUrlStyle = () => Object.assign(
    {},
    urlStyle,
    this.props.tab.shouldHighlight && { opacity: 1 }
  )

  render () {
    const { tab: { url }, getHighlightNode } = this.props
    return (
      <div style={this.getUrlStyle()}>
        {getHighlightNode(url)}
      </div>
    )
  }
}
{'fraction_non_alphanumeric': 0.1440162271805274, 'fraction_numerical': 0.010141987829614604, 'mean_word_length': 2.767175572519084, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5804423', 'n_tokens_mistral': 344, 'n_tokens_neox': 330, 'n_words': 75}