<commit_before>import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Accordion from 'components/accordion';
import NoContent from 'components/no-content';
import Loading from 'components/loading';
import DefinitionList from 'components/definition-list';

import layout from 'styles/layout.scss';
import styles from './ndcs-country-accordion-styles.scss';

class NdcsCountryAccordion extends PureComponent {
  // eslint-disable-line react/prefer-stateless-function
  render() {
    const { ndcsData, loading, compare, locations, category } = this.props;
    return (
      <div className={styles.wrapper}>
        {loading && <Loading light className={styles.loader} />}
        {!loading && (!ndcsData || !ndcsData.length) && (
          <NoContent
            message={
              locations ? (
                'No content for this category'
              ) : (
                'Select a country to start'
              )
            }
            icon
            className={styles.noContent}
          />
        )}
        {!loading && ndcsData && ndcsData.length &&
          <div>
            {ndcsData && ndcsData.length && category === 'sectoral_information' ? (
              <Accordion
                className={styles.accordion}
                param="section"
                data={ndcsData}
              >
                {ndcsData &&
                  ndcsData.length > 0 &&<commit_msg>remove 0<commit_after>import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import Accordion from 'components/accordion';
import NoContent from 'components/no-content';
import Loading from 'components/loading';
import DefinitionList from 'components/definition-list';

import layout from 'styles/layout.scss';
import styles from './ndcs-country-accordion-styles.scss';

class NdcsCountryAccordion extends PureComponent {
  // eslint-disable-line react/prefer-stateless-function
  render() {
    const { ndcsData, loading, compare, locations, category } = this.props;
    return (
      <div className={styles.wrapper}>
        {loading && <Loading light className={styles.loader} />}
        {!loading && (!ndcsData || !ndcsData.length) && (
          <NoContent
            message={
              locations ? (
                'No content for this category'
              ) : (
                'Select a country to start'
              )
            }
            icon
            className={styles.noContent}
          />
        )}
        {!loading && ndcsData && ndcsData.length > 0 &&
          <div>
            {ndcsData && ndcsData.length && category === 'sectoral_information' ? (
              <Accordion
                className={styles.accordion}
                param="section"
                data={ndcsData}
              >
                {ndcsData &&
                  ndcsData.length > 0 &&
{'fraction_non_alphanumeric': 0.11288641889544981, 'fraction_numerical': 0.0013893713094824591, 'mean_word_length': 1.9813664596273293, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 16, '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': '1570325', 'n_tokens_mistral': 770, 'n_tokens_neox': 737, 'n_words': 176}