<commit_before>import React from 'react';

const classNames = require('classnames');

function Download({ downloadLink }) {
  return (
    <>
      {!downloadLink && (
        <p>
          No data to download. Click on <i>Show nodes</i> to fetch some data
          first.
        </p>
      )}
      <button
        id="download"
        className={classNames('btn', 'btn-primary', {
          disabled: !downloadLink,
        })}
        type="button"
        href={downloadLink}
      >
        <i className="fas fa-arrow-alt-circle-down" />
        &nbsp;
        <span>Download</span>
      </button>
    </>
  );
}

export default Download;
<commit_msg>Fix download button<commit_after>import React from 'react';

const classNames = require('classnames');

function Download({ downloadLink }) {
  return (
    <>
      {!downloadLink && (
        <p>
          No data to download. Click on <i>Show nodes</i> to fetch some data
          first.
        </p>
      )}
      <a
        id="download"
        className={classNames('btn', 'btn-primary', {
          disabled: !downloadLink,
        })}
        type="button"
        href={downloadLink}
      >
        <i className="fas fa-arrow-alt-circle-down" />
        &nbsp;
        <span>Download</span>
      </a>
    </>
  );
}

export default Download;

{'fraction_non_alphanumeric': 0.14285714285714285, 'fraction_numerical': 0.0, 'mean_word_length': 1.8818380743982495, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 19, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4987422', 'n_tokens_mistral': 393, 'n_tokens_neox': 388, 'n_words': 90}