<commit_before>import React from 'react';
import { connect } from 'react-redux';
import shouldPureComponentUpdate from 'react-pure-render/function';
import MobilePage from '../containers/MobilePage';
import AssetPickerContainer from './AssetPickerContainer';
import { assetPickerMobileSelector } from './AssetPickerSelectors';

@connect(assetPickerMobileSelector)
export default class AssetPickerMobile extends React.Component {
	static contextTypes = {
		router: React.PropTypes.object,
	};

	shouldComponentUpdate = shouldPureComponentUpdate;

	render() {
		const { router } = this.context;
		return (
			<MobilePage toolbarShown={false} backBtnBarTitle="Asset">
				<AssetPickerContainer {...this.props} onClose={() => router.goBack()} />
			</MobilePage>
		);
	}
}<commit_msg>Fix mobile asset reset issue (#343)<commit_after>import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import shouldPureComponentUpdate from 'react-pure-render/function';
import MobilePage from '../containers/MobilePage';
import AssetPickerContainer from './AssetPickerContainer';
import { assetPickerMobileSelector } from './AssetPickerSelectors';

@connect(assetPickerMobileSelector)
export default class AssetPickerMobile extends React.Component {
	static contextTypes = {
		router: React.PropTypes.object,
		actions: PropTypes.object,
	};
	static propTypes = {
		actions: PropTypes.object,
	};
	shouldComponentUpdate = shouldPureComponentUpdate;
	componentWillMount() {
		const { actions } = this.props;
		actions.resetAssetPickerFilter();
	}
	render() {
		const { router } = this.context;
		return (
			<MobilePage toolbarShown={false} backBtnBarTitle="Asset">
				<AssetPickerContainer {...this.props} onClose={() => router.goBack()} />
			</MobilePage>
		);
	}
}
{'fraction_non_alphanumeric': 0.12331081081081081, 'fraction_numerical': 0.0016891891891891893, 'mean_word_length': 5.438405797101449, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '2255887', 'n_tokens_mistral': 527, 'n_tokens_neox': 492, 'n_words': 117}