<commit_before>import React from "react";
import { Row, Col, Button } from "helpers/reactstrap";
import { Mutation } from "react-apollo";
import gql from "graphql-tag.macro";
// All task-based reports auto-advanced based on the validation of the task.
const TaskButtons = ({ system }) => {
  const task = system.tasks.find(t => !t.verified);
  const stepCount = system.tasks.findIndex(t => t.id === task.id) + 1;
  if (task) {
    return (
      <Row>
        <Col sm={3}>
          {task.station && !task.assigned && (
            <Mutation
              mutation={gql`
                mutation AssignTask($id: ID!, $stepId: ID!, $station: String) {
                  assignTaskReportStep(<commit_msg>fix(Tasks): Fix a minor UI error. Closes #2467<commit_after>import React from "react";
import { Row, Col, Button } from "helpers/reactstrap";
import { Mutation } from "react-apollo";
import gql from "graphql-tag.macro";
// All task-based reports auto-advanced based on the validation of the task.
const TaskButtons = ({ system }) => {
  const task = system.tasks.find(t => !t.verified) || {};
  const stepCount = system.tasks.findIndex(t => t.id === task.id) + 1;
  if (task) {
    return (
      <Row>
        <Col sm={3}>
          {task.station && !task.assigned && (
            <Mutation
              mutation={gql`
                mutation AssignTask($id: ID!, $stepId: ID!, $station: String) {
                  assignTaskReportStep(
{'fraction_non_alphanumeric': 0.14483714483714483, 'fraction_numerical': 0.005544005544005544, 'mean_word_length': 2.63727959697733, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 13, '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': '3228323', 'n_tokens_mistral': 455, 'n_tokens_neox': 441, 'n_words': 126}