<commit_before>import * as React from 'react';
import { ChatListItem as XChatListItem } from 'components';

class ChatListItem extends React.Component<any, any> {
  public static displayName = 'Telegram(ChatListItem)';

  public render() {
    const { peerID, unread_count, message } = this.props.chat;
    const { users, chats, activeChat } = this.props.parentProps;

    let props = {
      name: null,
      active: false,
      onClick: null,
      unreadCount: null,
    };
    let peer;

    if (peerID > 0) {
      const user = users.getById(peerID);
      props.name = user.first_name + ' ' + user.last_name;
      peer = user;
    } else {
      const chat = chats.getById(-peerID);
      props.name = chat.title;
      peer = chat;
    }

    const fromUser = users.getById(message.from_id);
    props = Object.assign({}, props, {
      id: peerID,
      active: peerID === activeChat,<commit_msg>refactor(ChatListItem): missing prop<commit_after>import * as React from 'react';
import { ChatListItem as XChatListItem } from 'components';

class ChatListItem extends React.Component<any, any> {
  public static displayName = 'Telegram(ChatListItem)';

  public render() {
    const { peerID, unread_count, message } = this.props.chat;
    const { users, chats, activeChat } = this.props.parentProps;

    let props = {
      id: null,
      name: null,
      active: false,
      onClick: null,
      unreadCount: null,
    };
    let peer;

    if (peerID > 0) {
      const user = users.getById(peerID);
      props.name = user.first_name + ' ' + user.last_name;
      peer = user;
    } else {
      const chat = chats.getById(-peerID);
      props.name = chat.title;
      peer = chat;
    }

    const fromUser = users.getById(message.from_id);
    props = Object.assign({}, props, {
      id: peerID,
      active: peerID === activeChat,
{'fraction_non_alphanumeric': 0.12250404749055585, 'fraction_numerical': 0.0010793308148947653, 'mean_word_length': 2.715430861723447, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '7484570', 'n_tokens_mistral': 595, 'n_tokens_neox': 586, 'n_words': 151}