<commit_before>var $$ = React.createElement;
var Substance = require("substance");
var SubjectsModel = require("./subjects_model");

var SUBJECTS = require("./subjects_fixture");

// Edit Subject Reference Panel
// ----------------

var EditSubjectReferencePanel = React.createClass({
  displayName: "Edit Subject Reference",

  handleCancel: function(e) {
    e.preventDefault();
    // Go to regular entities panel
    this.props.writerCtrl.replaceState({
      contextId: "entities"
    });
  },

  // State relevant things
  // ------------

  getInitialState: function() {
    var subjects = new SubjectsModel(this.props.writerCtrl.doc, SUBJECTS);<commit_msg>Go back to subjects when canceling subject tagging.<commit_after>var $$ = React.createElement;
var Substance = require("substance");
var SubjectsModel = require("./subjects_model");

var SUBJECTS = require("./subjects_fixture");

// Edit Subject Reference Panel
// ----------------

var EditSubjectReferencePanel = React.createClass({
  displayName: "Edit Subject Reference",

  handleCancel: function(e) {
    e.preventDefault();
    // Go to regular entities panel
    this.props.writerCtrl.replaceState({
      contextId: "subjects"
    });
  },

  // State relevant things
  // ------------

  getInitialState: function() {
    var subjects = new SubjectsModel(this.props.writerCtrl.doc, SUBJECTS);
{'fraction_non_alphanumeric': 0.1603221083455344, 'fraction_numerical': 0.0, 'mean_word_length': 3.2852664576802506, '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': '3870016', 'n_tokens_mistral': 377, 'n_tokens_neox': 368, 'n_words': 92}