<commit_before>import { Box, Icon, Row, Text } from '@tlon/indigo-react';
import { Contacts, Invites } from '@urbit/api';
import React, { Component, ReactElement } from 'react';
import defaultApps from '~/logic/lib/default-apps';
import Sigil from '~/logic/lib/sigil';
import { cite, uxToHex } from '~/logic/lib/util';
import { IconRef } from '~/types/util';
import withState from '~/logic/lib/withState';
import useContactState from '~/logic/state/contact';
import useHarkState from '~/logic/state/hark';
import useLaunchState from '~/logic/state/launch';
import useInviteState from '~/logic/state/invite';

function OmniboxResultChord(props: {
  label: string;
  modifier?: string;

}) {
  const { label, modifier } = props;

  return (
    <Text display={['none', 'inline']} color="white" ml="2">
      {label}
      { modifier ? (<Text display="inline-block" ml="1" p="1" borderRadius="1" color="blue" backgroundColor="white">{modifier}</Text>) : null}
      <Text display="inline-block" ml="1" color="blue" borderRadius="1" p="1" backgroundColor="white">↩</Text>
    </Text>
  );
}

interface OmniboxResultProps {
  contacts: Contacts;
  cursor: string;
  icon: string;
  invites: Invites;
  link: string;
  navigate: () => void;
  notificationsCount: number;
  runtimeLag: any;
  selected: string;
  setSelection: () =>  void;
  subtext: string;
  text: string;
  shift?: string;
}

interface OmniboxResultState {
  isSelected: boolean;
  hovered: boolean;
}

export class OmniboxResult extends Component<OmniboxResultProps, OmniboxResultState> {
  result: React.RefObject<typeof Row>;
  constructor(props: OmniboxResultProps) {
    super(props);
    this.state = {
      isSelected: false,
      hovered: false
    };
    this.setHover = this.setHover.bind(this);
    this.result = React.createRef();<commit_msg>OmniboxResult: update props<commit_after>import { Box, Icon, Row, Text } from '@tlon/indigo-react';
import { Contacts, Invites } from '@urbit/api';
import React, { Component, ReactElement } from 'react';
import defaultApps from '~/logic/lib/default-apps';
import Sigil from '~/logic/lib/sigil';
import { cite, uxToHex } from '~/logic/lib/util';
import { IconRef } from '~/types/util';
import withState from '~/logic/lib/withState';
import useContactState from '~/logic/state/contact';
import useHarkState from '~/logic/state/hark';
import useLaunchState from '~/logic/state/launch';
import useInviteState from '~/logic/state/invite';

function OmniboxResultChord(props: {
  label: string;
  modifier?: string;

}) {
  const { label, modifier } = props;

  return (
    <Text display={['none', 'inline']} color="white" ml="2">
      {label}
      { modifier ? (<Text display="inline-block" ml="1" p="1" borderRadius="1" color="blue" backgroundColor="white">{modifier}</Text>) : null}
      <Text display="inline-block" ml="1" color="blue" borderRadius="1" p="1" backgroundColor="white">↩</Text>
    </Text>
  );
}

interface OmniboxResultProps {
  contacts: Contacts;
  cursor: string;
  icon: string;
  invites: Invites;
  link: string;
  navigate: () => void;
  notificationsCount: number;
  runtimeLag: any;
  selected: string;
  setSelection: () =>  void;
  subtext: string;
  text: string;
  shiftLink?: string;
  shiftDescription?: string;
  description?: string;
}

interface OmniboxResultState {
  isSelected: boolean;
  hovered: boolean;
}

export class OmniboxResult extends Component<OmniboxResultProps, OmniboxResultState> {
  result: React.RefObject<typeof Row>;
  constructor(props: OmniboxResultProps) {
    super(props);
    this.state = {
      isSelected: false,
      hovered: false
    };
    this.setHover = this.setHover.bind(this);
    this.result = React.createRef();
{'fraction_non_alphanumeric': 0.15125370719870584, 'fraction_numerical': 0.0037746023186842814, 'mean_word_length': 4.512630014858841, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, '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': '6538119', 'n_tokens_mistral': 1262, 'n_tokens_neox': 1219, 'n_words': 293}