<commit_before>import * as React from 'react';

import { StyledSeparator } from './styles';

export interface IProps {
  i?: number;
  visible?: boolean;
  menuVisible: boolean;
}

export default class MenuSeparator extends React.Component<IProps, {}> {
  private timeout: any;

  public static defaultProps = {
    visible: true,
  };

  public state = {
    animation: false,
  };

  public componentWillReceiveProps(nextProps: IProps) {
    const { menuVisible } = this.props;
    if (nextProps.menuVisible && !menuVisible) {
      clearTimeout(this.timeout);
      this.timeout = setTimeout(() => {<commit_msg>Fix error with context menu separator<commit_after>import * as React from 'react';

import { StyledSeparator } from './styles';

export interface IProps {
  i?: number;
  visible?: boolean;
  menuVisible?: boolean;
}

export default class MenuSeparator extends React.Component<IProps, {}> {
  private timeout: any;

  public static defaultProps = {
    visible: true,
  };

  public state = {
    animation: false,
  };

  public componentWillReceiveProps(nextProps: IProps) {
    const { menuVisible } = this.props;
    if (nextProps.menuVisible && !menuVisible) {
      clearTimeout(this.timeout);
      this.timeout = setTimeout(() => {
{'fraction_non_alphanumeric': 0.11731843575418995, 'fraction_numerical': 0.0, 'mean_word_length': 3.786259541984733, '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': '2398746', 'n_tokens_mistral': 365, 'n_tokens_neox': 359, 'n_words': 101}