<commit_before>import React, { Component, PropTypes } from 'react';
import { asyncConnect } from 'redux-connect';
import Helmet from 'react-helmet';
import getAsyncLoaders from 'utils/getAsyncLoaders';

import Meta from './Meta';
import * as Home from 'components/Home';
import * as Footer from 'components/Footer';
import * as Shared from 'components/Shared';

/**
 * Async data loading
 */
const loaders = getAsyncLoaders([
    {
        component: Home.Episodes,
        params: {
            type: 'new'
        }
    },
    {
        component: Home.Episodes,
        params: {
            type: 'now'
        }
    },
    {
        component: Home.Episodes,
        params: {
            type: 'recommended'
        }
    }
]);
/**
 * END Async data loading
 */

@asyncConnect(
    loaders,
    ({ browser }) => {
        return { browser };
    }
)
/* eslint-disable react/prefer-stateless-function */
export default class HomePage extends Component {
    static propTypes = {
        browser: PropTypes.object.isRequired
    };

    render() {
        const { browser } = this.props;

        return (
            <div>
                <Helmet { ...Meta() }/>
                <Shared.Header mediaType={ browser.mediaType }/>
                <Shared.Timeline mediaType={ browser.mediaType }/>
                <Home.Banner mediaType={ browser.mediaType }/>
                <Home.Live mediaType={ browser.mediaType }/>
                <Home.Shows mediaType={ browser.mediaType }/>
                <Home.Articles mediaType={ browser.mediaType }/>
                <Home.Top mediaType={ browser.mediaType }/>
                <Home.Episodes
                    title={ 'Сейчас смотрят' }
                    type="now"
                    scrollDisable
                    canRefresh
                    view="grid"
                />
                <Footer.Banners mediaType={ browser.mediaType }/>
                <Footer.Shows mediaType={ browser.mediaType }/>
                <Footer.Form mediaType={ browser.mediaType }/>
                <Footer.Navigation mediaType={ browser.mediaType }/>
            </div>
        );
    }
}

/*
 <Home.Episodes
 title={ 'Новые выпуски' }
 type="new"
 dynamic={ false }
 canRefresh={ false }
 view="grid"
 />
 <Home.Episodes
 title={ 'Рекомендуемые выпуски' }
 type="recommended"
 dynamic={ false }
 canRefresh={ false }
 view="row"
 />
 */<commit_msg>was returned episodes components<commit_after>import React, { Component, PropTypes } from 'react';
import { asyncConnect } from 'redux-connect';
import Helmet from 'react-helmet';
import getAsyncLoaders from 'utils/getAsyncLoaders';

import Meta from './Meta';
import * as Home from 'components/Home';
import * as Footer from 'components/Footer';
import * as Shared from 'components/Shared';

/**
 * Async data loading
 */
const loaders = getAsyncLoaders([
    {
        component: Home.Episodes,
        params: {
            type: 'new'
        }
    },
    {
        component: Home.Episodes,
        params: {
            type: 'now'
        }
    },
    {
        component: Home.Episodes,
        params: {
            type: 'recommended'
        }
    }
]);
/**
 * END Async data loading
 */

@asyncConnect(
    loaders,
    ({ browser }) => {
        return { browser };
    }
)
/* eslint-disable react/prefer-stateless-function */
export default class HomePage extends Component {
    static propTypes = {
        browser: PropTypes.object.isRequired
    };

    render() {
        const { browser } = this.props;

        return (
            <div>
                <Helmet { ...Meta() }/>
                <Shared.Header mediaType={ browser.mediaType }/>
                <Shared.Timeline mediaType={ browser.mediaType }/>
                <Home.Banner mediaType={ browser.mediaType }/>
                <Home.Live mediaType={ browser.mediaType }/>
                <Home.Shows mediaType={ browser.mediaType }/>
                <Home.Articles mediaType={ browser.mediaType }/>
                <Home.Top mediaType={ browser.mediaType }/>
                <Home.Episodes
                    title={ 'Сейчас смотрят' }
                    type="now"
                    scrollDisable
                    canRefresh
                    view="grid"
                />
                <Home.Episodes
                    title={ 'Новые выпуски' }
                    type="new"
                    dynamic={ false }
                    canRefresh={ false }
                    view="grid"
                />
                <Home.Episodes
                    title={ 'Рекомендуемые выпуски' }
                    type="recommended"
                    dynamic={ false }
                    canRefresh={ false }
                    view="row"
                />
                <Footer.Banners mediaType={ browser.mediaType }/>
                <Footer.Shows mediaType={ browser.mediaType }/>
                <Footer.Form mediaType={ browser.mediaType }/>
                <Footer.Navigation mediaType={ browser.mediaType }/>
            </div>
        );
    }
}
{'fraction_non_alphanumeric': 0.1199287551949337, 'fraction_numerical': 0.0, 'mean_word_length': 1.5551061678463094, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 12, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3598491', 'n_tokens_mistral': 1405, 'n_tokens_neox': 1358, 'n_words': 301}