<commit_before>import { PropTypes } from "react";

const PrimaryButton = ({ disabled, classes, onClick, text, icon, value, style, dataId }) => (

  <button
    className={classes}
    onClick={onClick}
    disabled={disabled}
    value={value}
    data-id={dataId}
    style={style}
  >
    {text} {icon}
  </button>

);

PrimaryButton.propTypes = {
  disabled: PropTypes.func,
  classes: PropTypes.string,
  onClick: PropTypes.func,
  text: PropTypes.string,
  icon: PropTypes.string,
  value: PropTypes.string,
  style: PropTypes.string,
  dataId: PropTypes.string,
};

const SecondaryButton = ({ disabled, onClick }) => {
  const classes = [
    "btn--thin",
    "btn--small",
    "display-inline-block",
    "push-left@lap-and-up",
    "push-half-left@handheld",
  ];
  let style = {};

  if (disabled) {
    classes.push("btn--disabled");
    // this should be fixed in junction
    style = {
      backgroundColor: "transparent !important", // handle hover :(
    };
  } else {
    classes.push("btn--dark-tertiary");
  }

  return (
    <button
      style={style}
      disabled={disabled}
      className={classes.join(" ")}
      onClick={onClick}
    >
      Register
    </button>
  );
};

SecondaryButton.propTypes = {
  disabled: PropTypes.bool,
  onClick: PropTypes.func,
};

const Guest = ({ disabled, onClick, text }) => {
  const classes = [
    "outlined--bottom",
    "outlined--light",
  ];

  let style = {
    display: "inline",
  };

  if (disabled) {
    classes.push("text-light-tertiary");
    style = { ...style, ...{ cursor: "text" } };
  } else {
    classes.push("text-dark-tertiary");
    style = { ...style, ...{ cursor: "pointer" } };
  }

  return (
    <div className="display-block soft-half-top">
      <h6 className={classes.join(" ")} style={style} onClick={onClick}>
        {text || "Give as Guest"}
      </h6>
    </div>
  );
};

Guest.propTypes = {
  disabled: PropTypes.bool,
  onClick: PropTypes.func,
  text: PropTypes.text,
};

export {
  PrimaryButton,
  SecondaryButton,
  Guest,
};
<commit_msg>linted Buttons.js<commit_after>import { PropTypes } from "react";

const PrimaryButton = ({ disabled, classes, onClick, text, icon, value, style, dataId }) => (

  <button
    className={classes}
    onClick={onClick}
    disabled={disabled}
    value={value}
    data-id={dataId}
    style={style}
  >
    {text} {icon}
  </button>

);

PrimaryButton.propTypes = {
  disabled: PropTypes.func,
  classes: PropTypes.string,
  onClick: PropTypes.func,
  text: PropTypes.string,
  icon: PropTypes.string,
  value: PropTypes.string,
  style: PropTypes.string,
  dataId: PropTypes.string,
};

const SecondaryButton = ({ disabled, onClick }) => {
  const classes = [
    "btn--thin",
    "btn--small",
    "display-inline-block",
    "push-left@lap-and-up",
    "push-half-left@handheld",
  ];
  let style = {};

  if (disabled) {
    classes.push("btn--disabled");
    // this should be fixed in junction
    style = {
      backgroundColor: "transparent !important", // handle hover :(
    };
  } else {
    classes.push("btn--dark-tertiary");
  }

  return (
    <button
      style={style}
      disabled={disabled}
      className={classes.join(" ")}
      onClick={onClick}
    >
      Register
    </button>
  );
};

SecondaryButton.propTypes = {
  disabled: PropTypes.bool,
  onClick: PropTypes.func,
};

const Guest = ({ disabled, onClick, text }) => {
  const classes = [
    "outlined--bottom",
    "outlined--light",
  ];

  let style = {
    display: "inline",
  };

  if (disabled) {
    classes.push("text-light-tertiary");
    style = { ...style, ...{ cursor: "text" } };
  } else {
    classes.push("text-dark-tertiary");
    style = { ...style, ...{ cursor: "pointer" } };
  }

  /* eslint-disable */
  return (
    <div className="display-block soft-half-top">
      <h6 className={classes.join(" ")} style={style} onClick={onClick}>
        {text || "Give as Guest"}
      </h6>
    </div>
  );

  /* eslint-enable */
};

Guest.propTypes = {
  disabled: PropTypes.bool,
  onClick: PropTypes.func,
  text: PropTypes.text,
};

export {
  PrimaryButton,
  SecondaryButton,
  Guest,
};

{'fraction_non_alphanumeric': 0.1716562047320135, 'fraction_numerical': 0.0009657170449058426, 'mean_word_length': 2.7801094890510947, 'pattern_counts': {'":': 0, '<': 19, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5277161', 'n_tokens_mistral': 1381, 'n_tokens_neox': 1383, 'n_words': 273}