<commit_before>import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import constants from '../constants';

const StyledLink = styled(Link)`
  font-weight: ${constants.fontWeightMedium};
  color: ${constants.textColorPrimary};
  text-transform: uppercase;

  &:hover {
    color: ${constants.textColorPrimary};
    opacity: 0.6;
  }
`;

const AppLogo = ({ size, strings, onClick }) => (
  <StyledLink to="/" onClick={onClick}>
    <span style={{ fontSize: size }}>
      {`<${strings.app_name}/>`}
    </span>
  </StyledLink>
);<commit_msg>add conditional check to <AppLogo /><commit_after>import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import styled from 'styled-components';
import constants from '../constants';

const StyledLink = styled(Link)`
  font-weight: ${constants.fontWeightMedium};
  color: ${constants.textColorPrimary};
  text-transform: uppercase;

  &:hover {
    color: ${constants.textColorPrimary};
    opacity: 0.6;
  }
`;

const AppLogo = ({ size, strings, onClick }) => (
  <StyledLink to="/" onClick={onClick}>
    <span style={{ fontSize: size }}>
      {strings.app_name && `<${strings.app_name}/>`}
    </span>
  </StyledLink>
);
{'fraction_non_alphanumeric': 0.16944243301955106, 'fraction_numerical': 0.002896451846488052, 'mean_word_length': 4.315384615384615, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 16, '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': '4644811', 'n_tokens_mistral': 452, 'n_tokens_neox': 449, 'n_words': 112}