<commit_before>React = require 'react'
FileButton = require '../../../components/file-button'
alert = require '../../../lib/alert'
Details = require '../../../components/details'
TriggeredModalForm = require 'modal-form/triggered'
surveyEditorHelp = require './editor-help'
AutoSave = require '../../../components/auto-save'
handleInputChange = require '../../../lib/handle-input-change'
NextTaskSelector = require '../next-task-selector'
`import MediaArea from '../../../pages/lab/media-area/';`
{Markdown} = require 'markdownz'
Papa = require 'papaparse'

module.exports = React.createClass
  displayName: 'SurveyTaskEditor'

  getDefaultProps: ->
    workflow: null
    task: {}
    taskPrefix: ''

  getInitialState: ->
    importErrors: []
    resettingFiles: false
    editing: 'data'
    # copying entire task Object to edit in @state...
    task: JSON.parse JSON.stringify @props.task
    choicesName: null<commit_msg>Fix classification summary tests<commit_after>React = require 'react'
FileButton = require '../../../components/file-button'
alert = require '../../../lib/alert'
Details = require '../../../components/details'
TriggeredModalForm = require 'modal-form/triggered'
surveyEditorHelp = require './editor-help'
AutoSave = require '../../../components/auto-save'
handleInputChange = require '../../../lib/handle-input-change'
NextTaskSelector = require '../next-task-selector'
# `import MediaArea from '../../../pages/lab/media-area/';`
MediaArea = require('../../../pages/lab/media-area/').default
{Markdown} = require 'markdownz'
Papa = require 'papaparse'

module.exports = React.createClass
  displayName: 'SurveyTaskEditor'

  getDefaultProps: ->
    workflow: null
    task: {}
    taskPrefix: ''

  getInitialState: ->
    importErrors: []
    resettingFiles: false
    editing: 'data'
    # copying entire task Object to edit in @state...
    task: JSON.parse JSON.stringify @props.task
    choicesName: null
{'fraction_non_alphanumeric': 0.17260981912144702, 'fraction_numerical': 0.0, 'mean_word_length': 3.2831858407079646, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '397022', 'n_tokens_mistral': 553, 'n_tokens_neox': 564, 'n_words': 136}