<commit_before>Rectangle = require '../drawing-tools/rectangle'
Pinpoint = require '../drawing-tools/pinpoint'
FreeDraw = require '../drawing-tools/free-draw-tool'
TextTask = require '../tasks/text'
TextareaTask = require '../tasks/textarea'
SingleMagnifierPoint = require '../drawing-tools/single-magnifier-point'

module.exports =
  key: 'herbarium'
  label: 'Herbarium'
  subjectGroup: '5523e3577b9f994c14000001'
  firstTask: 'barcode'
  examples: require '../content/examples'
  tutorialSteps: require '../content/tutorial-steps'
  tasks:
    barcode:
      type: 'drawing'
      question: 'Find the barcode and handwritten label for this specimen'
      choices: [{
        type: SingleMagnifierPoint
        label: 'Barcode'
        value: 'barcode'
        color: '#660066'
        checked: true
      },{
        type: Rectangle
        label: 'Specimen label'
        value: 'specimen-label'
        color: '#006666'
      }]
      next: 'verify'
    verify:
      type: 'text'
      question: 'Verify the written specimen label'
      defaults: {}
      choices: [{
        label: 'Species'
        key: 'species'
        value: ''
      },{
        label: 'Date'
        key: 'date'
        value: ''
      },{
        label: 'Locality'
        key: 'locality'
        value: ''
      },{
        label: 'Label comments'
        key: 'comments'
        value: ''
      }]
      next: 'vc'
    vc:
      type: 'text'
      question: 'There may be a VC number and registration label also on the sheet.'
      defaults: {}
      choices: [{
        label: 'Vice-county'
        key: 'vc'
        value: ''
        length: 3
      },{
        label: 'Registration'
        key: 'registration'
        value: ''
      }]
      next: 'flowering'
    flowering:
      type: 'drawing'
      question: 'Identify the flowering stage of this specimen.'
      next: 'marking'
      confirmButtonLabel: 'Finish'
      choices: [{
        type: Pinpoint
        label: 'Flowering stage'
        value: 'flowering'
        details: [{
          type: 'radio'
          key: 'flowering'
          choices: [{
            label: 'mainly in bud'
            value: 'bud'
          },{
            label: 'mainly in flower'
            value: 'flower'
          },{
            label: 'flowering over/in fruit/seed'
            value: 'over'
          }]
        }]
      }]<commit_msg>Herbarium flowering stage Use a magnifier point tool. Add a "don't know" option.<commit_after>Rectangle = require '../drawing-tools/rectangle'
Pinpoint = require '../drawing-tools/pinpoint'
FreeDraw = require '../drawing-tools/free-draw-tool'
TextTask = require '../tasks/text'
TextareaTask = require '../tasks/textarea'
MagnifierPoint = require '../drawing-tools/magnifier-point'
SingleMagnifierPoint = require '../drawing-tools/single-magnifier-point'

module.exports =
  key: 'herbarium'
  label: 'Herbarium'
  subjectGroup: '5523e3577b9f994c14000001'
  firstTask: 'barcode'
  examples: require '../content/examples'
  tutorialSteps: require '../content/tutorial-steps'
  tasks:
    barcode:
      type: 'drawing'
      question: 'Find the barcode and handwritten label for this specimen'
      choices: [{
        type: SingleMagnifierPoint
        label: 'Barcode'
        value: 'barcode'
        color: '#660066'
        checked: true
      },{
        type: Rectangle
        label: 'Specimen label'
        value: 'specimen-label'
        color: '#006666'
      }]
      next: 'verify'
    verify:
      type: 'text'
      question: 'Verify the written specimen label'
      defaults: {}
      choices: [{
        label: 'Species'
        key: 'species'
        value: ''
      },{
        label: 'Date'
        key: 'date'
        value: ''
      },{
        label: 'Locality'
        key: 'locality'
        value: ''
      },{
        label: 'Label comments'
        key: 'comments'
        value: ''
      }]
      next: 'vc'
    vc:
      type: 'text'
      question: 'There may be a VC number and registration label also on the sheet.'
      defaults: {}
      choices: [{
        label: 'Vice-county'
        key: 'vc'
        value: ''
        length: 3
      },{
        label: 'Registration'
        key: 'registration'
        value: ''
      }]
      next: 'flowering'
    flowering:
      type: 'drawing'
      question: 'Identify the flowering stage of this specimen.'
      next: 'marking'
      confirmButtonLabel: 'Finish'
      choices: [{
        type: MagnifierPoint
        label: 'Flowering stage'
        value: 'flowering'
        details: [{
          type: 'radio'
          key: 'flowering'
          choices: [{
            label: 'mainly in bud'
            value: 'bud'
          },{
            label: 'mainly in flower'
            value: 'flower'
          },{
            label: 'flowering over/in fruit/seed'
            value: 'over'
          },{
            label: 'I don\'t know'
            value: 'dont-know'
          }]
        }]
      }]
{'fraction_non_alphanumeric': 0.1251760917689676, 'fraction_numerical': 0.013282350573556048, 'mean_word_length': 1.7827547592385218, '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': '4596047', 'n_tokens_mistral': 1558, 'n_tokens_neox': 1461, 'n_words': 387}