<commit_before>// React imports
import React, { Component } from 'react';
import PropTypes from 'prop-types';
// Material UI component imports
import Paper from 'material-ui/Paper';
import Divider from 'material-ui/Divider';
// Flexbox
import { Row, Col } from 'react-flexbox-grid';
// Application Components:
import MyEditor from './MyEditor';


// Styling
import './ClinicalNotes.css';

class ClinicalNotes extends Component {

  // constructor(props) {
  //   super(props);
  // }

  handleHER2StatusChange = (newStatus) => {
    this.props.onHER2StatusChange(newStatus);
  }

  handleERStatusChange = (newStatus) => {
    this.props.onERStatusChange(newStatus);
  }

  handlePRStatusChange = (newStatus) => {
    this.props.onPRStatusChange(newStatus);
  }

  handleStagingTUpdate = (newVal) => {
    this.props.onStagingTUpdate(newVal);
  }

  handleStagingNUpdate = (newVal) => {
    this.props.onStagingNUpdate(newVal);
  }

  handleStagingMUpdate = (newVal) => {
    this.props.onStagingMUpdate(newVal);
  }

  handleStageUpdate = (newVal) => {
    this.props.onStageUpdate(newVal)
  }

  handleSummaryUpdate = (newVal) => {
      this.props.onSummaryUpdate(newVal)
  }

  handleStructuredFieldEntered = (currentFocus) => {
    this.props.onStructuredFieldEntered(currentFocus);
  }

  handleStructuredFieldExited = (currentFocus) => {
    this.props.onStructuredFieldExited(currentFocus);
  }

  handleSelectionChange = (selectedText) => {
    if (this.props.onSelectionChange != null) {
      //console.log("ClinicalNotes selectedText=" + selectedText);
      this.props.onSelectionChange(selectedText);
    }
  }

  
  // Old progression updates
  handleProgressionUpdate = (newProgression) => {
    this.props.onProgressionUpdate(newProgression);
  }
  handleNewProgression = (newProgression) => {
    this.props.onNewProgression(newProgression);
  }
  // 
<commit_msg>removed more progression legacy code<commit_after>// React imports
import React, { Component } from 'react';
import PropTypes from 'prop-types';
// Material UI component imports
import Paper from 'material-ui/Paper';
import Divider from 'material-ui/Divider';
// Flexbox
import { Row, Col } from 'react-flexbox-grid';
// Application Components:
import MyEditor from './MyEditor';


// Styling
import './ClinicalNotes.css';

class ClinicalNotes extends Component {

  // constructor(props) {
  //   super(props);
  // }

  handleHER2StatusChange = (newStatus) => {
    this.props.onHER2StatusChange(newStatus);
  }

  handleERStatusChange = (newStatus) => {
    this.props.onERStatusChange(newStatus);
  }

  handlePRStatusChange = (newStatus) => {
    this.props.onPRStatusChange(newStatus);
  }

  handleStagingTUpdate = (newVal) => {
    this.props.onStagingTUpdate(newVal);
  }

  handleStagingNUpdate = (newVal) => {
    this.props.onStagingNUpdate(newVal);
  }

  handleStagingMUpdate = (newVal) => {
    this.props.onStagingMUpdate(newVal);
  }

  handleStageUpdate = (newVal) => {
    this.props.onStageUpdate(newVal)
  }

  handleSummaryUpdate = (newVal) => {
      this.props.onSummaryUpdate(newVal)
  }

  handleStructuredFieldEntered = (currentFocus) => {
    this.props.onStructuredFieldEntered(currentFocus);
  }

  handleStructuredFieldExited = (currentFocus) => {
    this.props.onStructuredFieldExited(currentFocus);
  }

  handleSelectionChange = (selectedText) => {
    if (this.props.onSelectionChange != null) {
      //console.log("ClinicalNotes selectedText=" + selectedText);
      this.props.onSelectionChange(selectedText);
    }
  }

{'fraction_non_alphanumeric': 0.12937853107344632, 'fraction_numerical': 0.0011299435028248588, 'mean_word_length': 3.9386331938633194, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, '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': '3487881', 'n_tokens_mistral': 1156, 'n_tokens_neox': 1107, 'n_words': 181}