<commit_before>import React, {PropTypes}                 from 'react';
import { connect }                        from 'react-redux';
import {DragDropContext}                  from 'react-dnd';
import HTML5Backend                       from 'react-dnd-html5-backend';

import Actions                            from '../../actions/current_board';
import Constants                          from '../../constants';
import { getParentKey, setDocumentTitle } from '../../utils';
import ListForm                           from '../../components/lists/form';
import ListCard                           from '../../components/lists/card';
import CardModal                          from '../../components/cards/modal';
import BoardUsers                         from '../../components/boards/users';

@DragDropContext(HTML5Backend)

class BoardsShowView extends React.Component {
  componentDidMount() {
    const { socket } = this.props;

    if (!socket) {
      return false;
    }

    this.props.dispatch(Actions.connectToChannel(socket, this.props.params.id));
  }

  componentWillUpdate(nextProps, nextState) {
    const { socket } = this.props;
    const { currentBoard } = nextProps;

    setDocumentTitle(currentBoard.name);

    if (socket) {
      return false;<commit_msg>Bug fix<commit_after>import React, {PropTypes}                 from 'react';
import { connect }                        from 'react-redux';
import {DragDropContext}                  from 'react-dnd';
import HTML5Backend                       from 'react-dnd-html5-backend';

import Actions                            from '../../actions/current_board';
import Constants                          from '../../constants';
import { getParentKey, setDocumentTitle } from '../../utils';
import ListForm                           from '../../components/lists/form';
import ListCard                           from '../../components/lists/card';
import CardModal                          from '../../components/cards/modal';
import BoardUsers                         from '../../components/boards/users';

@DragDropContext(HTML5Backend)

class BoardsShowView extends React.Component {
  componentDidMount() {
    const { socket } = this.props;

    if (!socket) {
      return false;
    }

    this.props.dispatch(Actions.connectToChannel(socket, this.props.params.id));
  }

  componentWillUpdate(nextProps, nextState) {
    const { socket } = this.props;
    const { currentBoard } = nextProps;

    if (currentBoard.name !== undefined) setDocumentTitle(currentBoard.name);

    if (socket) {
      return false;
{'fraction_non_alphanumeric': 0.12252811167119039, 'fraction_numerical': 0.0023264831329972858, 'mean_word_length': 1.8571428571428572, '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': '5918200', 'n_tokens_mistral': 634, 'n_tokens_neox': 631, 'n_words': 151}