<commit_before>import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import tt from 'counterpart';
import settings from './settings';

export default class MobileAppButton extends Component {
    shouldComponentUpdate() {
        return false;
    }
    render() {
        if (!process.env.BROWSER) {
            return null;
        }
        
        const android = navigator.userAgent.match(/android/i);

        if (!android) {
            return null;
        }

        const { path } = this.props
        return (
            <a
                role="button"
                className="btn visit-app-btn"
                // onClick={e =>this._onClick(this.props.path)}
                href={`https://sandbox.golos.app.io${path === '/' ? `/trending` : `${path}`}`}
            >
                {tt('mobile_app_button.open_in_app')}
            </a>
        );
    }

    _onClick = (path) => {
        browserHistory.push(`/app${path}`)
    };
}<commit_msg>only for testing<commit_after>import React, { Component } from 'react';
import { browserHistory } from 'react-router';
import tt from 'counterpart';
import settings from './settings';

export default class MobileAppButton extends Component {
    shouldComponentUpdate() {
        return false;
    }
    render() {
        if (!process.env.BROWSER) {
            return null;
        }
        
        const android = navigator.userAgent.match(/android/i);

        if (!android) {
            return null;
        }
        const { path } = this.props
        return (
            <a
                role="button"
                className="btn visit-app-btn"
                // onClick={e =>this._onClick(this.props.path)}
                href={`golosioapp://${$STM_Config.site_domain}${path === '/' ? `/trending` : `${path}`}`}
            >
                {tt('mobile_app_button.open_in_app')}
            </a>
        );
    }

    _onClick = (path) => {
        browserHistory.push(`/app${path}`)
    };
}
{'fraction_non_alphanumeric': 0.14207650273224043, 'fraction_numerical': 0.0, 'mean_word_length': 1.7216216216216216, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 1, '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': '3105577', 'n_tokens_mistral': 585, 'n_tokens_neox': 569, 'n_words': 114}