<commit_before>import React, { Component } from "react";
import { connect } from "react-redux";
import Spinner from "react-spinner";
import { map } from "lodash";
import { loadMoments } from "../../actions";
import MomentList from "../../components/MomentList";
import { MomentCard } from "../../components/StoryTimeline";

export class Search extends Component {
  onSearchClicked(e) {
    const {loadMoments} = this.props;

    loadMoments({ momentId: "" });

    e.preventDefault();
  }
  onSurpriseMeClicked(e) {
    e.preventDefault();
  }
  render() {
    const renderSearchResults = () => {
      const {loading, moments} = this.props;

      if (loading) {
        return (
          <div className="text-center lead">
            <p>Searching...</p>
            <Spinner />
          </div>
        );
      } else {
        return (
          <div>
            {map(moments, (moment) => {
              return <MomentCard key={moment.id} id={moment.id} title={moment.title} metStart={moment.metStart} content={moment.description} />;
            })}<commit_msg>Actually fixed linting errors?<commit_after>import React, { Component } from "react";
import { connect } from "react-redux";
import Spinner from "react-spinner";
import { map } from "lodash";
import { loadMoments } from "../../actions";
import { MomentCard } from "../../components/StoryTimeline";

export class Search extends Component {
  onSearchClicked(e) {
    const {loadMoments} = this.props;

    loadMoments({ momentId: "" });

    e.preventDefault();
  }
  onSurpriseMeClicked(e) {
    e.preventDefault();
  }
  render() {
    const renderSearchResults = () => {
      const {loading, moments} = this.props;

      if (loading) {
        return (
          <div className="text-center lead">
            <p>Searching...</p>
            <Spinner />
          </div>
        );
      } else {
        return (
          <div>
            {map(moments, (moment) => {
              return <MomentCard key={moment.id} id={moment.id} title={moment.title} metStart={moment.metStart} content={moment.description} />;
            })}
{'fraction_non_alphanumeric': 0.15534441805225654, 'fraction_numerical': 0.0, 'mean_word_length': 2.413290113452188, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '4015780', 'n_tokens_mistral': 629, 'n_tokens_neox': 615, 'n_words': 141}