<commit_before>import React, { Component } from "react"
import PropTypes from "prop-types"
import { connect } from "react-redux"
import IconMenu from "material-ui/IconMenu"
import IconButton from "material-ui/IconButton"
import FontIcon from "material-ui/FontIcon"
import MenuItem from "material-ui/MenuItem"
import { green500 } from "material-ui/styles/colors"
import JobEditRawJSON from "../JobEditRawJSON/JobEditRawJSON"
import JobActionStop from "../JobActionStop/JobActionStop"
import JobActionRestart from "../JobActionRestart/JobActionRestart"
import JobActionEvaluate from "../JobActionEvaluate/JobActionEvaluate"
import { NOMAD_JOB_SHOW_DIALOG } from "../../sagas/event"

class JobActionMenu extends Component {
  handleClick = key => {
    return () => {
      this.props.dispatch({ type: NOMAD_JOB_SHOW_DIALOG, payload: key })
    }
  }

  render() {
    const icon = (
      <IconButton>
        <FontIcon className="material-icons" color="white">
          more_vert
        </FontIcon>
      </IconButton>
    )

    return (
      <span>
        <JobEditRawJSON />
        <JobActionStop />
        <JobActionRestart />
        <JobActionEvaluate />

        <IconMenu
          iconButtonElement={icon}
          style={{ background: green500, borderRadius: "50%" }}
          anchorOrigin={{ horizontal: "left", vertical: "top" }}
          targetOrigin={{ horizontal: "left", vertical: "top" }}
        >
          <MenuItem
            primaryText="Edit job"
            rightIcon={<FontIcon className="material-icons">edit</FontIcon>}
            onTouchTap={this.handleClick("edit")}
          />
          <MenuItem
            primaryText="Re-evaluate job"
            rightIcon={<FontIcon className="material-icons">refresh</FontIcon>}
            onTouchTap={this.handleClick("evaluate")}
          />
          <MenuItem
            primaryText="Stop job"
            rightIcon={<FontIcon className="material-icons">stop</FontIcon>}
            onTouchTap={this.handleClick("stop")}
          />
          <MenuItem
            primaryText="Restart job"
            rightIcon={<FontIcon className="material-icons">refresh</FontIcon>}
            onTouchTap={this.handleClick("restart")}
          />
        </IconMenu><commit_msg>change icon for job restart<commit_after>import React, { Component } from "react"
import PropTypes from "prop-types"
import { connect } from "react-redux"
import IconMenu from "material-ui/IconMenu"
import IconButton from "material-ui/IconButton"
import FontIcon from "material-ui/FontIcon"
import MenuItem from "material-ui/MenuItem"
import { green500 } from "material-ui/styles/colors"
import JobEditRawJSON from "../JobEditRawJSON/JobEditRawJSON"
import JobActionStop from "../JobActionStop/JobActionStop"
import JobActionRestart from "../JobActionRestart/JobActionRestart"
import JobActionEvaluate from "../JobActionEvaluate/JobActionEvaluate"
import { NOMAD_JOB_SHOW_DIALOG } from "../../sagas/event"

class JobActionMenu extends Component {
  handleClick = key => {
    return () => {
      this.props.dispatch({ type: NOMAD_JOB_SHOW_DIALOG, payload: key })
    }
  }

  render() {
    const icon = (
      <IconButton>
        <FontIcon className="material-icons" color="white">
          more_vert
        </FontIcon>
      </IconButton>
    )

    return (
      <span>
        <JobEditRawJSON />
        <JobActionStop />
        <JobActionRestart />
        <JobActionEvaluate />

        <IconMenu
          iconButtonElement={icon}
          style={{ background: green500, borderRadius: "50%" }}
          anchorOrigin={{ horizontal: "left", vertical: "top" }}
          targetOrigin={{ horizontal: "left", vertical: "top" }}
        >
          <MenuItem
            primaryText="Edit job"
            rightIcon={<FontIcon className="material-icons">edit</FontIcon>}
            onTouchTap={this.handleClick("edit")}
          />
          <MenuItem
            primaryText="Re-evaluate job"
            rightIcon={<FontIcon className="material-icons">refresh</FontIcon>}
            onTouchTap={this.handleClick("evaluate")}
          />
          <MenuItem
            primaryText="Stop job"
            rightIcon={<FontIcon className="material-icons">stop</FontIcon>}
            onTouchTap={this.handleClick("stop")}
          />
          <MenuItem
            primaryText="Restart job"
            rightIcon={<FontIcon className="material-icons">loop</FontIcon>}
            onTouchTap={this.handleClick("restart")}
          />
        </IconMenu>
{'fraction_non_alphanumeric': 0.12419889502762431, 'fraction_numerical': 0.0035359116022099448, 'mean_word_length': 2.6353413654618474, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 53, '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': '4149305', 'n_tokens_mistral': 1272, 'n_tokens_neox': 1251, 'n_words': 249}