<commit_before>import React from "react";
import PropTypes from "prop-types";
import Typography from "@material-ui/core/Typography";
import Link from "@material-ui/core/Link";
import Divider from "@material-ui/core/Divider";

import makeStyles from "./style";

function Content({ content, hidden }) {
  const classes = makeStyles();
  let head, body;
  if (content.type === "image") {
    head = (
      <p>
        <span>Link</span>
        <Link color="secondary" target="_blank" href={content.src}>
          {content.src}
        </Link>
      </p>
    );
    body = (
      <Typography hidden={!!hidden}>
        <img src={content.src} alt={content.alt} title={content.alt} />
      </Typography>
    );
  } else if (content.type === "embedded" && content.player === "youtube") {
    body = (
      <div className={classes.videoContainer}>
        <iframe key="jarr-proccessed-content"
          title="JARR processed Player"
          id="ytplayer"
          type="text/html"
          src={"http://www.youtube.com/embed/" + content.videoId}
          frameborder="0"
        />
      </div>
    );<commit_msg>UI: using https for youtube embedded content<commit_after>import React from "react";
import PropTypes from "prop-types";
import Typography from "@material-ui/core/Typography";
import Link from "@material-ui/core/Link";
import Divider from "@material-ui/core/Divider";

import makeStyles from "./style";

function Content({ content, hidden }) {
  const classes = makeStyles();
  let head, body;
  if (content.type === "image") {
    head = (
      <p>
        <span>Link</span>
        <Link color="secondary" target="_blank" href={content.src}>
          {content.src}
        </Link>
      </p>
    );
    body = (
      <Typography hidden={!!hidden}>
        <img src={content.src} alt={content.alt} title={content.alt} />
      </Typography>
    );
  } else if (content.type === "embedded" && content.player === "youtube") {
    body = (
      <div className={classes.videoContainer}>
        <iframe key="jarr-proccessed-content"
          title="JARR processed Player"
          id="ytplayer"
          type="text/html"
          src={"https://www.youtube.com/embed/" + content.videoId}
          frameborder="0"
        />
      </div>
    );
{'fraction_non_alphanumeric': 0.16298586572438162, 'fraction_numerical': 0.0008833922261484099, 'mean_word_length': 2.589540412044374, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 1, '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': '6956972', 'n_tokens_mistral': 680, 'n_tokens_neox': 677, 'n_words': 156}