<commit_before>import React from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';

import CourseStore from '../../stores/course_store.coffee';
import UserCoursesStore from '../../stores/user_courses_store.coffee';
import CourseActions from '../../actions/course_actions.js';
import ValidationStore from '../../stores/validation_store.coffee';
import ValidationActions from '../../actions/validation_actions.js';
import ServerActions from '../../actions/server_actions.js';

import Modal from '../common/modal.jsx';
import TextInput from '../common/text_input.jsx';
import DatePicker from '../common/date_picker.jsx';
import TextAreaInput from '../common/text_area_input.jsx';
import CourseUtils from '../../utils/course_utils.js';
import CourseDateUtils from '../../utils/course_date_utils.coffee';
import TransitionGroup from 'react-addons-css-transition-group';

import _ from 'lodash';

import { getUserId } from '../../stores/user_id_store.js';
import { getDefaultCourseType, getCourseStringPrefix } from '../../stores/course_attributes_store';

const getState = () => {
  return {
    course: CourseStore.getCourse(),
    error_message: ValidationStore.firstMessage(),
    user_courses: _.reject(UserCoursesStore.getUserCourses(), { type: 'LegacyCourse' })
  };
};

const CourseCreator = React.createClass({
  displayName: 'CourseCreator',

  mixins: [CourseStore.mixin, ValidationStore.mixin, UserCoursesStore.mixin],

  getInitialState() {
    const inits = {
      tempCourseId: '',
      isSubmitting: false,
      shouldShowForm: false,
      shouldShowCourseDropdown: false,
      default_course_type: getDefaultCourseType(),
      course_string_prefix: getCourseStringPrefix()
    };
    return $.extend({}, inits, getState());
  },
<commit_msg>Fix misnamed bit of state<commit_after>import React from 'react';
import ReactDOM from 'react-dom';
import { Link } from 'react-router';

import CourseStore from '../../stores/course_store.coffee';
import UserCoursesStore from '../../stores/user_courses_store.coffee';
import CourseActions from '../../actions/course_actions.js';
import ValidationStore from '../../stores/validation_store.coffee';
import ValidationActions from '../../actions/validation_actions.js';
import ServerActions from '../../actions/server_actions.js';

import Modal from '../common/modal.jsx';
import TextInput from '../common/text_input.jsx';
import DatePicker from '../common/date_picker.jsx';
import TextAreaInput from '../common/text_area_input.jsx';
import CourseUtils from '../../utils/course_utils.js';
import CourseDateUtils from '../../utils/course_date_utils.coffee';
import TransitionGroup from 'react-addons-css-transition-group';

import _ from 'lodash';

import { getUserId } from '../../stores/user_id_store.js';
import { getDefaultCourseType, getCourseStringPrefix } from '../../stores/course_attributes_store';

const getState = () => {
  return {
    course: CourseStore.getCourse(),
    error_message: ValidationStore.firstMessage(),
    user_courses: _.reject(UserCoursesStore.getUserCourses(), { type: 'LegacyCourse' })
  };
};

const CourseCreator = React.createClass({
  displayName: 'CourseCreator',

  mixins: [CourseStore.mixin, ValidationStore.mixin, UserCoursesStore.mixin],

  getInitialState() {
    const inits = {
      tempCourseId: '',
      isSubmitting: false,
      shouldShowForm: false,
      showCourseDropdown: false,
      default_course_type: getDefaultCourseType(),
      course_string_prefix: getCourseStringPrefix()
    };
    return $.extend({}, inits, getState());
  },

{'fraction_non_alphanumeric': 0.14517029592406477, 'fraction_numerical': 0.0, 'mean_word_length': 4.371814092953524, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '16365', 'n_tokens_mistral': 1059, 'n_tokens_neox': 1036, 'n_words': 232}