<commit_before>import { API } from 'api/index';
import React from 'react';

export class ScenarioName extends React.Component {

  static get propTypes() {
    return {
      scenario: React.PropTypes.object.isRequired,
      onSelectScenario: React.PropTypes.func
    }
  }

  _removeScenario(scenarioId) {
    API.removeScenario(scenarioId);
  }

  _duplicateScenario(scenarioId) {<commit_msg>add drop to scenario name<commit_after>import { API } from 'api/index';
import { DropTarget } from 'react-dnd';
import React from 'react';

import DRAG_SOURCE_TYPES from 'api/constants/drag-source-types';

const dropContract = {
  drop(props, monitor) {
    API.addMockedRequestToScenario(props.scenario.id, monitor.getItem().requestId);
  }
};

function mapDNDToProps(connect) {
  return {
    dropTarget: connect.dropTarget()
  }
}

@DropTarget(DRAG_SOURCE_TYPES.MOCKED_REQUEST, dropContract, mapDNDToProps)
export class ScenarioName extends React.Component {

  static get propTypes() {
    return {
      scenario: React.PropTypes.object.isRequired,
      onSelectScenario: React.PropTypes.func
    }
  }

  _removeScenario(scenarioId) {
    API.removeScenario(scenarioId);
  }

  _duplicateScenario(scenarioId) {
{'fraction_non_alphanumeric': 0.10478547854785479, 'fraction_numerical': 0.0, 'mean_word_length': 4.343612334801762, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3291695', 'n_tokens_mistral': 396, 'n_tokens_neox': 395, 'n_words': 74}