<commit_before>const React = require("react");
const DEFAULT_LENGTH = 3;
const SiteIcon = require("components/SiteIcon/SiteIcon");
const ICON_SIZE = 40;

const ActivityFeedItem = React.createClass({
  render() {
    const site = this.props;
    const title = site.bookmarkTitle || site.title;
    return (<li className="feed-item">
      <SiteIcon ref="icon" className="feed-icon" site={site} width={ICON_SIZE} height={ICON_SIZE} />
      <div className="feed-details">
        <div className="feed-description">
          <h4 className="feed-title" ref="title">{title}</h4>
          <a className="feed-link" href={site.url} ref="link">{site.url}</a>
        </div>
        <div className="feed-stats">
          <div>1:26pm</div>
          <div>...</div>
        </div>
      </div>
    </li>);
  }
});

ActivityFeedItem.propTypes = {
  url: React.PropTypes.string.isRequired,<commit_msg>refactor(ActivityFeed): Remove leading http(s)://(www.) from displayed URLs<commit_after>const React = require("react");
const DEFAULT_LENGTH = 3;
const SiteIcon = require("components/SiteIcon/SiteIcon");
const ICON_SIZE = 40;

const ActivityFeedItem = React.createClass({
  render() {
    const site = this.props;
    const title = site.bookmarkTitle || site.title;
    const prettyUrl = site.url.replace(/^https?:\/\/(www\.)?/i, "");
    return (<li className="feed-item">
      <SiteIcon ref="icon" className="feed-icon" site={site} width={ICON_SIZE} height={ICON_SIZE} />
      <div className="feed-details">
        <div className="feed-description">
          <h4 className="feed-title" ref="title">{title}</h4>
          <a className="feed-link" href={site.url} ref="link">{prettyUrl}</a>
        </div>
        <div className="feed-stats">
          <div>1:26pm</div>
          <div>...</div>
        </div>
      </div>
    </li>);
  }
});

ActivityFeedItem.propTypes = {
  url: React.PropTypes.string.isRequired,
{'fraction_non_alphanumeric': 0.17834728033472802, 'fraction_numerical': 0.008368200836820083, 'mean_word_length': 3.232300884955752, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 37, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2489613', 'n_tokens_mistral': 618, 'n_tokens_neox': 608, 'n_words': 116}