<commit_before>import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import Helmet from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import {
  selectAsyncState,
  selectRelaisId,
  selectCommandesRelais,
  selectTypesProduits,
  selectFournisseurs,
  selectCommandesUtilisateurs,
  selectProduits } from './selectors';

import {
  selectAuthUtilisateurId,
} from 'containers/CompteUtilisateur/selectors';

import RefreshIndicator from 'material-ui/RefreshIndicator';
import styles from './styles.css';
import choux from './choux.jpg';
import Semainier from './components/Semainier';
import Offre from 'components/Offre';
import Panel from 'components/Panel';
import moment from 'moment';

import { loadCommandes, ajouter } from './actions';

export class Commande extends React.Component { // eslint-disable-line react/prefer-stateless-function
  static propTypes = {
    commandes: PropTypes.object,
    commandesUtilisateurs: PropTypes.object,
    utilisateurId: PropTypes.string.isRequired,
    relaiId: PropTypes.string,
    produits: PropTypes.object,
    fournisseurs: PropTypes.array,
    typesProduits: PropTypes.object,
    loadCommandes: PropTypes.func.isRequired,
    pushState: PropTypes.func.isRequired,
  }

  componentDidMount() {
    const { commandes, loadCommandes } = this.props; // eslint-disable-line
    if (!commandes) {
      loadCommandes();
    }
  }
<commit_msg>correction chargement commande<commit_after>import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import Helmet from 'react-helmet';
import { createStructuredSelector } from 'reselect';
import {
  selectAsyncState,
  selectRelaisId,
  selectCommandesRelais,
  selectTypesProduits,
  selectFournisseurs,
  selectCommandesUtilisateurs,
  selectProduits } from './selectors';

import {
  selectAuthUtilisateurId,
} from 'containers/CompteUtilisateur/selectors';

import RefreshIndicator from 'material-ui/RefreshIndicator';
import styles from './styles.css';
import choux from './choux.jpg';
import Semainier from './components/Semainier';
import Offre from 'components/Offre';
import Panel from 'components/Panel';
import moment from 'moment';

import { loadCommandes, ajouter } from './actions';

export class Commande extends React.Component { // eslint-disable-line react/prefer-stateless-function
  static propTypes = {
    commandes: PropTypes.object,
    commandesUtilisateurs: PropTypes.object,
    utilisateurId: PropTypes.string.isRequired,
    relaiId: PropTypes.string,
    produits: PropTypes.object,
    fournisseurs: PropTypes.array,
    typesProduits: PropTypes.object,
    loadCommandes: PropTypes.func.isRequired,
    pushState: PropTypes.func.isRequired,
  }

  componentDidMount() {
    const { commandes, loadCommandes, relaiId } = this.props; // eslint-disable-line
    if (!commandes) {
      loadCommandes({ relaiId });
    }
  }

{'fraction_non_alphanumeric': 0.10615640599001663, 'fraction_numerical': 0.0, 'mean_word_length': 4.6716981132075475, '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': '1860302', 'n_tokens_mistral': 884, 'n_tokens_neox': 911, 'n_words': 212}