<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import Parser from './Parser';

export default function EmbeddedVideo(props) {
  const {
    className,
    href,
    width,
    showText,
    allowFullScreen,
    autoPlay,
    showCaptions,
    children,
    onParse,
  } = props;

  return (
    <Parser className={className} onParse={onParse}>
      <div
        className="fb-video"
        data-href={href}
        data-width={width}
        data-show-text={showText}
        data-show-captions={showCaptions}
        data-autoplay={autoPlay}
        data-allowfullscreen={allowFullScreen}
      >
        {children}
      </div>
    </Parser>
  );
}

EmbeddedVideo.propTypes = {
  className: PropTypes.string,
  href: PropTypes.string.isRequired,
  width: PropTypes.oneOfType([
    PropTypes.number.isRequired,
    PropTypes.string.isRequired,
  ]),
  showText: PropTypes.bool.isRequired,
  allowFullScreen: PropTypes.bool,
  autoPlay: PropTypes.bool,
  showCaptions: PropTypes.bool
  children: PropTypes.node,
  onParse: PropTypes.func
};

EmbeddedVideo.defaultProps = {
  href: 'http://www.facebook.com',
  width: 500, // 350 - 750
  showText: false,
  allowFullScreen: false,
  autoPlay: false,
  showCaptions: false,
  children: undefined,
  className: undefined,
  onParse: undefined,
};<commit_msg>fix typo in PropTypes<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import Parser from './Parser';

export default function EmbeddedVideo(props) {
  const {
    className,
    href,
    width,
    showText,
    allowFullScreen,
    autoPlay,
    showCaptions,
    children,
    onParse,
  } = props;

  return (
    <Parser className={className} onParse={onParse}>
      <div
        className="fb-video"
        data-href={href}
        data-width={width}
        data-show-text={showText}
        data-show-captions={showCaptions}
        data-autoplay={autoPlay}
        data-allowfullscreen={allowFullScreen}
      >
        {children}
      </div>
    </Parser>
  );
}

EmbeddedVideo.propTypes = {
  className: PropTypes.string,
  href: PropTypes.string.isRequired,
  width: PropTypes.oneOfType([
    PropTypes.number.isRequired,
    PropTypes.string.isRequired,
  ]),
  showText: PropTypes.bool.isRequired,
  allowFullScreen: PropTypes.bool,
  autoPlay: PropTypes.bool,
  showCaptions: PropTypes.bool,
  children: PropTypes.node,
  onParse: PropTypes.func
};

EmbeddedVideo.defaultProps = {
  href: 'http://www.facebook.com',
  width: 500, // 350 - 750
  showText: false,
  allowFullScreen: false,
  autoPlay: false,
  showCaptions: false,
  children: undefined,
  className: undefined,
  onParse: undefined,
};
{'fraction_non_alphanumeric': 0.1180633147113594, 'fraction_numerical': 0.0067039106145251395, 'mean_word_length': 3.1450617283950617, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '7620907', 'n_tokens_mistral': 864, 'n_tokens_neox': 860, 'n_words': 171}