<commit_before>import React from 'react';
import {TransitionMotion, spring} from 'react-motion';

export default ({ direction, ...data }) => (
    <TransitionMotion
        willLeave={() => ({left: spring(direction * -400, {precision: 10})})}
        willEnter={() => ({left: direction * 400})}
        styles={[{
            key: data.stateNavigator.stateContext.state.key,
            data: data,
            style: {left: spring(0, {precision: 10})}
        }]}>
        {interpolatedStyles =>
            <div>
                {interpolatedStyles.map(config => {
                    var Component = config.data.component;
                    return <div className="view" key={config.key} style={{left: config.style.left}}>
                        <Component {...config.data} />
                    </div>;
                })}
            </div>
        }
    </TransitionMotion>
);<commit_msg>Destructured data into component and props<commit_after>import React from 'react';
import {TransitionMotion, spring} from 'react-motion';

export default ({ direction, ...data }) => (
    <TransitionMotion
        willLeave={() => ({left: spring(direction * -400, {precision: 10})})}
        willEnter={() => ({left: direction * 400})}
        styles={[{
            key: data.stateNavigator.stateContext.state.key,
            data: data,
            style: {left: spring(0, {precision: 10})}
        }]}>
        {interpolatedStyles =>
            <div>
                {interpolatedStyles.map(config => {
                    var {component: Component, ...props} = config.data;
                    return <div className="view" key={config.key} style={{left: config.style.left}}>
                        <Component {...props} />
                    </div>;
                })}
            </div>
        }
    </TransitionMotion>
);
{'fraction_non_alphanumeric': 0.15683060109289618, 'fraction_numerical': 0.012021857923497269, 'mean_word_length': 1.7954198473282443, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, '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': '1779840', 'n_tokens_mistral': 511, 'n_tokens_neox': 472, 'n_words': 109}