<commit_before>// @flow

import Headers from "../common/Headers.jsx";
import EventCardsContainer from "../componentsBySection/FindEvents/EventCardsContainer.jsx";
import EventFilterContainer from "../componentsBySection/FindEvents/filters/EventFilterContainer.jsx";
import React from 'react';
import type {FindGroupsArgs} from "../stores/GroupSearchStore";
import urls from "../utils/url";
import EventSearchDispatcher from "../stores/EventSearchDispatcher.js";
import _ from "lodash";

class FindEventsController extends React.PureComponent {
  constructor(): void {
    super();
  }

  componentWillMount(): void {
    let args: FindGroupsArgs = urls.arguments(document.location.search);
    args = _.pick(args, ['keyword', 'page']);
    EventSearchDispatcher.dispatch({
      type: 'INIT',
      findEventsArgs: !_.isEmpty(args) ? args : null,
      searchSettings: {
        updateUrl: true
      }});
  }

  render(): React$Node {
    return (
      <React.Fragment>
        <Headers
          title="DemocracyLab"
          description="Optimizing the connection between skilled volunteers and tech-for-good events"
        />
        <div className="FindEventsController-root">
          <div className="container">
            <div className="row">
              <EventFilterContainer />
              <EventCardsContainer showSearchControls={true}/>
            </div>
          </div>
        </div>
      </React.Fragment>
    );
  }

}

export default FindEventsController;
<commit_msg>removes render of Event Filter Container, centers current content until that's in place<commit_after>// @flow

import Headers from "../common/Headers.jsx";
import EventCardsContainer from "../componentsBySection/FindEvents/EventCardsContainer.jsx";
import EventFilterContainer from "../componentsBySection/FindEvents/filters/EventFilterContainer.jsx";
import React from 'react';
import type {FindGroupsArgs} from "../stores/GroupSearchStore";
import urls from "../utils/url";
import EventSearchDispatcher from "../stores/EventSearchDispatcher.js";
import _ from "lodash";

class FindEventsController extends React.PureComponent {
  constructor(): void {
    super();
  }

  componentWillMount(): void {
    let args: FindGroupsArgs = urls.arguments(document.location.search);
    args = _.pick(args, ['keyword', 'page']);
    EventSearchDispatcher.dispatch({
      type: 'INIT',
      findEventsArgs: !_.isEmpty(args) ? args : null,
      searchSettings: {
        updateUrl: true
      }});
  }


//TODO: When enabling EventfilterContainer, remove "justify-content-center" class from row div
  render(): React$Node {
    return (
      <React.Fragment>
        <Headers
          title="DemocracyLab"
          description="Optimizing the connection between skilled volunteers and tech-for-good events"
        />
        <div className="FindEventsController-root">
          <div className="container">
            <div className="row justify-content-center">
              {/*EventFilterContainer />*/}
              <EventCardsContainer showSearchControls={true}/>
            </div>
          </div>
        </div>
      </React.Fragment>
    );
  }

}

export default FindEventsController;

{'fraction_non_alphanumeric': 0.12053850970569818, 'fraction_numerical': 0.0, 'mean_word_length': 3.1014120667522467, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 25, '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': '526624', 'n_tokens_mistral': 850, 'n_tokens_neox': 836, 'n_words': 207}