<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import ListItem from '../ListItem';

const List = styled.div`
  min-width: 180px;
  overflow: hidden;
  overflow-y: auto;
  maxheight: ${10.5 * 32 /* 10.5 items */};
`;

function TooltipLinkList({ links, LinkWrapper }) {
  return (
    <List>
      {links.map(({ title, href, onClick, active, isGatsby, ...props }, index) => (
        <ListItem
          /* eslint-disable react/no-array-index-key */
          key={index}
          title={title}
          onClick={onClick}
          active={active}
          href={href}<commit_msg>update popover max-height to be calculated based on correct number of items<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import ListItem from '../ListItem';

const List = styled.div`
  min-width: 180px;
  overflow: hidden;
  overflow-y: auto;
  maxheight: ${11.5 * 32 /* 11.5 items */};
`;

function TooltipLinkList({ links, LinkWrapper }) {
  return (
    <List>
      {links.map(({ title, href, onClick, active, isGatsby, ...props }, index) => (
        <ListItem
          /* eslint-disable react/no-array-index-key */
          key={index}
          title={title}
          onClick={onClick}
          active={active}
          href={href}
{'fraction_non_alphanumeric': 0.14421669106881405, 'fraction_numerical': 0.016105417276720352, 'mean_word_length': 2.7247956403269753, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3399090', 'n_tokens_mistral': 429, 'n_tokens_neox': 415, 'n_words': 114}