<commit_before>import React from 'react';
import { connect } from 'react-redux';

import Navigation from 'components/Navigation';
import ChartsContainer from 'components/ChartsContainer';
import GlobalVarsControl from 'components/GlobalVarsControl';
import EnergyComponentEditor from 'components/EnergyComponentEditor';
import EnergyComponentList from 'components/EnergyComponentList';
import Footer from 'components/Footer';

import { changeKexp,
         changeKrdel,
         changeArea,
         addEnergyComponent,
         removeEnergyComponent,
         editEnergyComponent,
         fetchData } from 'actions/actions.js';

class App extends React.Component {

  // Carga datos desde API al inicializar
  componentWillMount() { this.props.dispatch(fetchData()); }

  // Carga datos desde API al cambiar las propiedades (y antes de renderizar hijos)
  componentWillReceiveProps(nextProps) { this.props.dispatch(fetchData()); }

  render() {
    const { kexp, krdel, area, selectedkey, components, storedcomponent, dispatch } = this.props;
    return (
      <div>
        <Navigation projectName="DB-HE NZEB" />
        <div className="container">
          <ChartsContainer width="100%" height="200px" /><commit_msg>Añadir acción que faltaba para EnergyComponentList<commit_after>import React from 'react';
import { connect } from 'react-redux';

import Navigation from 'components/Navigation';
import ChartsContainer from 'components/ChartsContainer';
import GlobalVarsControl from 'components/GlobalVarsControl';
import EnergyComponentEditor from 'components/EnergyComponentEditor';
import EnergyComponentList from 'components/EnergyComponentList';
import Footer from 'components/Footer';

import { changeKexp,
         changeKrdel,
         changeArea,
         addEnergyComponent,
         removeEnergyComponent,
         editEnergyComponent,
         selectEnergyComponent,
         fetchData } from 'actions/actions.js';

class App extends React.Component {

  // Carga datos desde API al inicializar
  componentWillMount() { this.props.dispatch(fetchData()); }

  // Carga datos desde API al cambiar las propiedades (y antes de renderizar hijos)
  componentWillReceiveProps(nextProps) { this.props.dispatch(fetchData()); }

  render() {
    const { kexp, krdel, area, selectedkey, components, storedcomponent, dispatch } = this.props;
    return (
      <div>
        <Navigation projectName="DB-HE NZEB" />
        <div className="container">
          <ChartsContainer width="100%" height="200px" />
{'fraction_non_alphanumeric': 0.09423459244532803, 'fraction_numerical': 0.004771371769383698, 'mean_word_length': 4.1138211382113825, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '198808', 'n_tokens_mistral': 681, 'n_tokens_neox': 658, 'n_words': 184}