<commit_before>// @flow
/* eslint-disable jsx-a11y/href-no-hash */

import * as React from "react";
import { Dropdown, Menu } from "antd";
import type { APIDatasetType } from "admin/api_flow_types";

type Props = {
  dataset: APIDatasetType,
};

type State = {};

export default class DatasetActionView extends React.PureComponent<Props, State> {
  render() {
    const dataset = this.props.dataset;

    const menu = (
      <Menu>
        <Menu.Item key="existing">
          <a
            href={`/datasets/${dataset.name}/trace?typ=volumeTracing`}
            title="Create volume tracing"
          >
            Use Existing Segmentation Layer
          </a>
        </Menu.Item>
        <Menu.Item key="new">
          <a
            href={`/datasets/${dataset.name}/trace?typ=volumeTracing`}<commit_msg>use fallback param also in advanced dataset view (#2033)<commit_after>// @flow
/* eslint-disable jsx-a11y/href-no-hash */

import * as React from "react";
import { Dropdown, Menu } from "antd";
import type { APIDatasetType } from "admin/api_flow_types";

type Props = {
  dataset: APIDatasetType,
};

type State = {};

export default class DatasetActionView extends React.PureComponent<Props, State> {
  render() {
    const dataset = this.props.dataset;

    const menu = (
      <Menu>
        <Menu.Item key="existing">
          <a
            href={`/datasets/${dataset.name}/trace?typ=volumeTracing&withFallback=true`}
            title="Create volume tracing"
          >
            Use Existing Segmentation Layer
          </a>
        </Menu.Item>
        <Menu.Item key="new">
          <a
            href={`/datasets/${dataset.name}/trace?typ=volumeTracing&withFallback=false`}
{'fraction_non_alphanumeric': 0.13337250293772032, 'fraction_numerical': 0.004700352526439483, 'mean_word_length': 2.570230607966457, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, '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': '2279764', 'n_tokens_mistral': 534, 'n_tokens_neox': 524, 'n_words': 119}