<commit_before>import React, { Component } from 'react';
import { denormalize } from 'normalizr';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Grid, Row, Col } from 'react-bootstrap';
import { hashHistory } from 'react-router';

import { fetchSurvey, fetchDuplicateCount, publishSurvey, retireSurvey, addSurveyToGroup, removeSurveyFromGroup, deleteSurvey, updateStageSurvey, updateSurveyTags } from '../../actions/survey_actions';
import { setSteps } from '../../actions/tutorial_actions';
import { setStats } from '../../actions/landing';
import { addPreferred, removePreferred } from '../../actions/preferred_actions';
import { setBreadcrumbPath, addBreadcrumbItem } from '../../actions/breadcrumb_actions';

import LoadingSpinner from '../../components/LoadingSpinner';
import NotFoundAlert from '../../containers/NotFoundAlert';
import SurveyShow from '../../components/surveys/SurveyShow';
import { surveyProps } from '../../prop-types/survey_props';
import { surveySchema } from '../../schema';
import { sectionProps } from '../../prop-types/section_props';
import CommentList from '../../containers/CommentList';
import currentUserProps from '../../prop-types/current_user_props';
import { publishersProps } from "../../prop-types/publisher_props";

class SurveyShowContainer extends Component {
  componentWillMount() {
    this.props.fetchSurvey(this.props.params.surveyId);
    this.props.fetchDuplicateCount(this.props.params.surveyId);
  }

  componentDidMount() {
    this.props.setSteps([
      {
        title: 'Help',
        text: 'Click next to see a step by step walkthrough for using this page. To see more detailed information about this application and actions you can take <a class="tutorial-link" href="#help">click here to view the full Help Documentation.</a> Accessible versions of these steps are also duplicated in the help documentation.',
        selector: '.help-link',
        position: 'bottom',
      },<commit_msg>added google tag<commit_after>import React, { Component } from 'react';
import { denormalize } from 'normalizr';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Grid, Row, Col } from 'react-bootstrap';
import { hashHistory } from 'react-router';

import { fetchSurvey, fetchDuplicateCount, publishSurvey, retireSurvey, addSurveyToGroup, removeSurveyFromGroup, deleteSurvey, updateStageSurvey, updateSurveyTags } from '../../actions/survey_actions';
import { setSteps } from '../../actions/tutorial_actions';
import { setStats } from '../../actions/landing';
import { addPreferred, removePreferred } from '../../actions/preferred_actions';
import { setBreadcrumbPath, addBreadcrumbItem } from '../../actions/breadcrumb_actions';

import LoadingSpinner from '../../components/LoadingSpinner';
import NotFoundAlert from '../../containers/NotFoundAlert';
import SurveyShow from '../../components/surveys/SurveyShow';
import { surveyProps } from '../../prop-types/survey_props';
import { surveySchema } from '../../schema';
import { sectionProps } from '../../prop-types/section_props';
import CommentList from '../../containers/CommentList';
import currentUserProps from '../../prop-types/current_user_props';
import { publishersProps } from "../../prop-types/publisher_props";

class SurveyShowContainer extends Component {
  componentWillMount() {
    this.props.fetchSurvey(this.props.params.surveyId);
    this.props.fetchDuplicateCount(this.props.params.surveyId);
  }

  componentDidMount() {
    ga('send', 'pageview', window.location.toString());
    this.props.setSteps([
      {
        title: 'Help',
        text: 'Click next to see a step by step walkthrough for using this page. To see more detailed information about this application and actions you can take <a class="tutorial-link" href="#help">click here to view the full Help Documentation.</a> Accessible versions of these steps are also duplicated in the help documentation.',
        selector: '.help-link',
        position: 'bottom',
      },
{'fraction_non_alphanumeric': 0.1389090909090909, 'fraction_numerical': 0.0, 'mean_word_length': 4.249363867684479, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5824874', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1116, 'n_words': 327}