<commit_before>import React from "react";
import { MessageBar, MessageBarManager } from "react-native-message-bar";

export default class MessageBarNavigator extends React.Component {
    constructor(props){
        super(props);
        this.refName = props.refName;
    }
    componentDidMount() {
        MessageBarManager.registerMessageBar(this.refs[this.refName]);
    }

    componentWillUnmount() {
        MessageBarManager.unregisterMessageBar();
    }

    render() {
        return <MessageBar ref={this.refName} />;
    }
}<commit_msg>design<commit_after>import React from "react";
import { MessageBar, MessageBarManager } from "react-native-message-bar";

export default class MessageBarNavigator extends React.Component {
    constructor(props) {
        super(props);
        this.refName = props.refName;
    }
    componentDidMount() {
        MessageBarManager.registerMessageBar(this.refs[this.refName]);
    }

    componentWillUnmount() {
        MessageBarManager.unregisterMessageBar();
    }

    render() {
        return <MessageBar
            ref={this.refName}
            viewTopInset={20}
        />;
    }
}
{'fraction_non_alphanumeric': 0.10964912280701754, 'fraction_numerical': 0.0017543859649122807, 'mean_word_length': 2.975609756097561, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4609752', 'n_tokens_mistral': 322, 'n_tokens_neox': 315, 'n_words': 55}