<commit_before>import React from "react";
import { connect } from "react-redux";
import PoliticalRatioChart from "components/political_ratio_chart.jsx";

const FbpacFeltronsUnconnected = ({ homepage_stats }) => (
  <div className="feltrons">
  <div className="feltron-static"></div>
    <div className="top-feltrons-container">
      <div className="top-feltrons political-ratio">
        <h3>More Political Ads Lately?</h3>
        <PoliticalRatioChart
          weekly_political_ratio={
            homepage_stats && homepage_stats.weekly_political_ratio
              ? homepage_stats.weekly_political_ratio.slice(
                  0,
                  homepage_stats.weekly_political_ratio.length - 1
                )
              : null
          }
        />
      </div>
      <div className="top-feltrons top-target">
        <h3>Top targeted traits</h3>
        <div className="flexy">
          <div className="">
            <p>Facebook users similar to the advertiser's current customers</p>
            <p>and</p>
            <p>Users on a particular Facebook list</p>
          </div>
        </div>
      </div>
    </div>
    <div className="stats-sentence">
      <p>
        <strong>{homepage_stats && homepage_stats.user_count
          ? homepage_stats.user_count
            .toString()
            .replace(/\B(?=(\d{3})+(?!\d))/g, ",")
          : "--"}</strong>
         {" "}readers like you have helped collect{" "}
        <strong>{homepage_stats && homepage_stats.political_ads_total
          ? homepage_stats.political_ads_total
            .toString()
            .replace(/\B(?=(\d{3})+(?!\d))/g, ",")
          : "--"}</strong>
        {" "}political ads.
      </p>
    </div>
  </div>
);<commit_msg>show this weeks political ads count, not political ratio<commit_after>import React from "react";
import { connect } from "react-redux";
import PoliticalAdsChart from "components/political_ads_chart.jsx";

const FbpacFeltronsUnconnected = ({ homepage_stats }) => (
  <div className="feltrons">
    <div className="feltron-static" />
    <div className="top-feltrons-container">
      <div className="top-feltrons political-ratio">
        <h3>This Week's Political Ads</h3>
        <PoliticalAdsChart
          political_ads_per_day={
            homepage_stats && homepage_stats.political_ads_per_day
              ? homepage_stats.political_ads_per_day.slice(
                0,
                homepage_stats.political_ads_per_day.length - 1
              )
              : null
          }
        />
      </div>
      <div className="top-feltrons top-target">
        <h3>Top targeted traits</h3>
        <div className="flexy">
          <div className="">
            <p>Facebook users similar to the advertiser's current customers</p>
            <p>and</p>
            <p>Users on a particular Facebook list</p>
          </div>
        </div>
      </div>
    </div>
    <div className="stats-sentence">
      <p>
        <strong>
          {homepage_stats && homepage_stats.user_count
            ? homepage_stats.user_count
                .toString()
                .replace(/\B(?=(\d{3})+(?!\d))/g, ",")
            : "--"}
        </strong>{" "}
        readers like you have helped collect{" "}
        <strong>
          {homepage_stats && homepage_stats.political_ads_total
            ? homepage_stats.political_ads_total
                .toString()
                .replace(/\B(?=(\d{3})+(?!\d))/g, ",")
            : "--"}
        </strong>{" "}
        political ads.
      </p>
    </div>
  </div>
);
{'fraction_non_alphanumeric': 0.14181409716371807, 'fraction_numerical': 0.004493119910137602, 'mean_word_length': 1.9413707679603633, 'pattern_counts': {'":': 0, '<': 68, '<?xml version=': 0, '>': 70, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2365119', 'n_tokens_mistral': 1101, 'n_tokens_neox': 1035, 'n_words': 196}