<commit_before>import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../i18n/Translate';
import connectToStores from '../utils/connectToStores';
import AuthenticatedComponent from '../components/AuthenticatedComponent';
import ProposalRecommendationList from '../components/ui/ProposalRecommendationList/ProposalRecommendationList';
import ProposalCard from '../components/Proposal/ProposalCard/ProposalCard.js';
import BottomNavBar from '../components/BottomNavBar/BottomNavBar.js';
import TopNavBar from '../components/TopNavBar/TopNavBar.js';
import BottomNotificationBar from "../components/ui/BottomNotificationBar/BottomNotificationBar";
import WorkersStore from '../stores/WorkersStore';
import ProposalStore from '../stores/ProposalStore';
import ProposalRecommendationsStore from '../stores/ProposalRecommendationsStore';
import * as ProposalActionCreators from '../actions/ProposalActionCreators';
import '../../scss/pages/proposals.scss';
import * as ProposalActionCreators from "../actions/ProposalActionCreators";

function requestData(props) {
    ProposalActionCreators.requestRecommendations();
}

function getState(props) {
    const networks = WorkersStore.getAll();
    const error = WorkersStore.getConnectError();
    const isLoading = WorkersStore.isLoading();

    const recommendations = ProposalRecommendationsStore.getAll();

    return {
        networks,
        error,
        isLoading,
        recommendations
    };
}

@AuthenticatedComponent<commit_msg>QS-1570: Fix ProposalsPage duplicated library<commit_after>import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../i18n/Translate';
import connectToStores from '../utils/connectToStores';
import AuthenticatedComponent from '../components/AuthenticatedComponent';
import ProposalRecommendationList from '../components/ui/ProposalRecommendationList/ProposalRecommendationList';
import ProposalCard from '../components/Proposal/ProposalCard/ProposalCard.js';
import BottomNavBar from '../components/BottomNavBar/BottomNavBar.js';
import TopNavBar from '../components/TopNavBar/TopNavBar.js';
import BottomNotificationBar from "../components/ui/BottomNotificationBar/BottomNotificationBar";
import WorkersStore from '../stores/WorkersStore';
import ProposalStore from '../stores/ProposalStore';
import ProposalRecommendationsStore from '../stores/ProposalRecommendationsStore';
import '../../scss/pages/proposals.scss';
import * as ProposalActionCreators from "../actions/ProposalActionCreators";

function requestData(props) {
    ProposalActionCreators.requestRecommendations();
}

function getState(props) {
    const networks = WorkersStore.getAll();
    const error = WorkersStore.getConnectError();
    const isLoading = WorkersStore.isLoading();

    const recommendations = ProposalRecommendationsStore.getAll();

    return {
        networks,
        error,
        isLoading,
        recommendations
    };
}

@AuthenticatedComponent
{'fraction_non_alphanumeric': 0.10923535253227408, 'fraction_numerical': 0.0026481297583581596, 'mean_word_length': 5.243801652892562, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7195222', 'n_tokens_mistral': 815, 'n_tokens_neox': 772, 'n_words': 174}