<commit_before>import compose from 'lodash/flowRight';
import React, {Component, PropTypes} from 'react';

import SearchBar from '../../components/searchbar';


const Home = () => (
    <div data-demo='home'>
        <SearchBar queryAction={lol=> console.log('fjkdljsf')} hasFocus term='trucDedans'/>
    </div>
);
Home.displayName = 'Home';
export default Home;<commit_msg>[Example] fix<commit_after>import compose from 'lodash/flowRight';
import React, {Component, PropTypes} from 'react';
import {unitSearchActions, searchAction as search} from '../actions/search-actions';
import {connect as connectToSearch} from '../../behaviours/search';
import {connect as connectToState} from 'react-redux';
import {AdvancedSearch} from '../../components/advanced-search';
import {SearchBar} from '../../components/searchbar';
import ToolBar from '../../components/toolbar';

const searchOptions= {
    searchName : 'advancedSearch',
    unitSearch : unitSearchActions
};
const ConnectedComponentAdvancedSearch = compose (
    connectToSearch(searchOptions)
)(AdvancedSearch);
const SearchBarComponent = ({unitSearchDispatch: { group, query, scopeFunction},scope, scopes}) => (
    <SearchBar group={group} query={query} scopes={scopes} scope={scope} scopeFunction={scopeFunction}/>
);
const ConnectedSearchBarComponent = compose(
  connectToSearch(searchOptions)
)(SearchBarComponent);



const Home = () => (
    <div data-demo='home'>
        <div data-demo='header' className='mdl-shadow--3dp'>
            <h2>Que recherchez-vous ?</h2>
            <ConnectedSearchBarComponent />
        </div>
        <div data-demo='content'>
            <ConnectedComponentAdvancedSearch/>;
        </div>
    </div>
);
Home.displayName = 'Home';
export default Home;
{'fraction_non_alphanumeric': 0.1506849315068493, 'fraction_numerical': 0.0017123287671232876, 'mean_word_length': 4.36085626911315, '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': '6169114', 'n_tokens_mistral': 504, 'n_tokens_neox': 494, 'n_words': 121}