<commit_before>// This component exists to add letter spacing on Android.
// https://github.com/facebook/react-native/pull/13199

import React from "react";
import StylePropTypes from "react-style-proptype";
import PropTypes from "prop-types";
import WebViewAutoHeight from "./WebView-auto-height";

const ArticleHeadline = ({ text, style, baseUrl }) => {
  const html = `
    <div>
      <style>
        @font-face {
          font-family: TimesModernBold;
          src: url(/fonts/TimesModern-Bold.woff2) format("woff2"), url(/fonts/TimesModern-Bold.woff) format("woff"), url(/fonts/TimesModern-Bold.ttf) format("truetype");
          font-weight: 400;
          font-style: normal;
        }
        p {
          color: #1D1D1B;
          font-size: 22px;
          line-height: 25px;
          margin-bottom: 8px;
          font-family: TimesModernBold;
          font-weight: 400;
          letter-spacing: 0.5px;
        }
      </style>
      <p>${text}</p>
    </div>
  `;

  return <WebViewAutoHeight source={{ html, baseUrl }} style={style} />;
};

ArticleHeadline.propTypes = {
  text: PropTypes.string.isRequired,
  style: StylePropTypes,
  baseUrl: PropTypes.string
};

ArticleHeadline.defaultProps = {
  style: null,
  baseUrl: "https://www.thetimes.co.uk/"
};

export default ArticleHeadline;<commit_msg>fix: style warning on android. Styles are not used in WebView<commit_after>// This component exists to add letter spacing on Android.
// https://github.com/facebook/react-native/pull/13199

import React from "react";
import PropTypes from "prop-types";
import WebViewAutoHeight from "./WebView-auto-height";

const ArticleHeadline = ({ text, baseUrl }) => {
  const html = `
    <div>
      <style>
        @font-face {
          font-family: TimesModernBold;
          src: url(/fonts/TimesModern-Bold.woff2) format("woff2"), url(/fonts/TimesModern-Bold.woff) format("woff"), url(/fonts/TimesModern-Bold.ttf) format("truetype");
          font-weight: 400;
          font-style: normal;
        }
        p {
          color: #1D1D1B;
          font-size: 22px;
          line-height: 25px;
          margin-bottom: 8px;
          font-family: TimesModernBold;
          font-weight: 400;
          letter-spacing: 0.5px;
        }
      </style>
      <p>${text}</p>
    </div>
  `;

  return <WebViewAutoHeight source={{ html, baseUrl }} />;
};

ArticleHeadline.propTypes = {
  text: PropTypes.string.isRequired,
  baseUrl: PropTypes.string
};

ArticleHeadline.defaultProps = {
  baseUrl: "https://www.thetimes.co.uk/"
};

export default ArticleHeadline;
{'fraction_non_alphanumeric': 0.13925523661753297, 'fraction_numerical': 0.017843289371605897, 'mean_word_length': 2.622191011235955, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 4, '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': '251109', 'n_tokens_mistral': 878, 'n_tokens_neox': 826, 'n_words': 177}