<commit_before>import React, { useState } from "react"
import { makeStyles } from "@material-ui/core/styles"
import IconButton from "@material-ui/core/IconButton"
import Menu from "@material-ui/core/Menu"
import MenuItem from "@material-ui/core/MenuItem"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import AppBarHelp from "./AppBarHelp"

const useStyles = makeStyles((theme) => ({
  icon: {
    color: "#fff",
    paddingRight: "5px",
  },
  menuItem: {
    fontSize: "0.8rem",
  },
}))

const dropdownItems = ["Download PDF", "Download CSV"]

/**
 * AppBarRightMenu contains the icon and display logic
 * for the right menu in the app bar.
 */

const AppBarRightMenu = () => {
  const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)
  const classes = useStyles()
  const open = Boolean(anchorEl)

  const handleClose = () => {
    setAnchorEl(null)
  }

  return (
    <>
      <IconButton
        size="small"
        className={classes.icon}
        onClick={(event) => setAnchorEl(event.currentTarget)}
        title="More options"
        aria-label="More options for stock catalog page">
        <FontAwesomeIcon icon="ellipsis-v" />
      </IconButton>
      <Menu id="menu" anchorEl={anchorEl} open={open} onClose={handleClose}>
        {dropdownItems.map((item) => (
          <MenuItem
            key={item}
            onClick={handleClose}
            className={classes.menuItem}>
            <FontAwesomeIcon icon="download" size="sm" />
            &nbsp; {item}
          </MenuItem>
        ))}
      </Menu><commit_msg>refactor: remove download icon until ready<commit_after>import React, { useState } from "react"
import { makeStyles } from "@material-ui/core/styles"
// import IconButton from "@material-ui/core/IconButton"
import Menu from "@material-ui/core/Menu"
import MenuItem from "@material-ui/core/MenuItem"
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"
import AppBarHelp from "./AppBarHelp"

const useStyles = makeStyles((theme) => ({
  icon: {
    color: "#fff",
    paddingRight: "5px",
  },
  menuItem: {
    fontSize: "0.8rem",
  },
}))

const dropdownItems = ["Download PDF", "Download CSV"]

/**
 * AppBarRightMenu contains the icon and display logic
 * for the right menu in the app bar.
 */

const AppBarRightMenu = () => {
  const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)
  const classes = useStyles()
  const open = Boolean(anchorEl)

  const handleClose = () => {
    setAnchorEl(null)
  }

  return (
    <>
      {/* <IconButton
        size="small"
        className={classes.icon}
        onClick={(event) => setAnchorEl(event.currentTarget)}
        title="More options"
        aria-label="More options for stock catalog page">
        <FontAwesomeIcon icon="ellipsis-v" />
      </IconButton> */}
      <Menu id="menu" anchorEl={anchorEl} open={open} onClose={handleClose}>
        {dropdownItems.map((item) => (
          <MenuItem
            key={item}
            onClick={handleClose}
            className={classes.menuItem}>
            <FontAwesomeIcon icon="download" size="sm" />
            &nbsp; {item}
          </MenuItem>
        ))}
      </Menu>
{'fraction_non_alphanumeric': 0.1403894472361809, 'fraction_numerical': 0.0018844221105527637, 'mean_word_length': 2.9369592088998764, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6646376', 'n_tokens_mistral': 956, 'n_tokens_neox': 957, 'n_words': 226}