<commit_before>import React from 'react';
import { View, TouchableOpacity, Image, Text, StyleSheet } from 'react-native';

declare module 'react-native' {
    interface TextProps {
      accessibilityRole?: string;
    }
}

const NavigationBar = ({navigationImage, onNavigationPress, navigationHref, tintColor, title, titleFontSize = 20}) => {
    return (
        <View style={{height: 56, flexDirection: 'row', alignItems: 'center', paddingStart: 16}}>
            {navigationImage && (
                <View href={navigationHref} style={{width: 56}}>
                    <TouchableOpacity onPress={onNavigationPress}>
                        <Image source={navigationImage} style={{width: 24, height: 24, tintColor}} />
                    </TouchableOpacity>
                </View>
            )}
            <Text accessibilityRole="heading" style={{flex: 1, fontSize: titleFontSize}}>{title}</Text>
        </View>
    );
}

const styles = StyleSheet.create({
    bar: {
    },
});


export default NavigationBar;<commit_msg>Calculated tint colors from props<commit_after>import React from 'react';
import { View, TouchableOpacity, Image, Text, StyleSheet } from 'react-native';

declare module 'react-native' {
    interface TextProps {
      accessibilityRole?: string;
    }
}

const NavigationBar = ({navigationImage, onNavigationPress, navigationHref, barTintColor, tintColor, title, titleFontSize = 20}) => {
    var barTintColor = (typeof barTintColor === 'function' ? barTintColor(true) : barTintColor) || '#fff';
    var tintColor = (typeof tintColor === 'function' ? tintColor(true) : tintColor) || '#000';
    return (
        <View style={{height: 56, flexDirection: 'row', alignItems: 'center', paddingStart: 16, backgroundColor: barTintColor}}>
            {navigationImage && (
                <View href={navigationHref} style={{width: 56}}>
                    <TouchableOpacity onPress={onNavigationPress}>
                        <Image source={navigationImage} style={{width: 24, height: 24, tintColor}} />
                    </TouchableOpacity>
                </View>
            )}
            <Text accessibilityRole="heading" style={{flex: 1, fontSize: titleFontSize}}>{title}</Text>
        </View>
    );
}

const styles = StyleSheet.create({
    bar: {
    },
});


export default NavigationBar;
{'fraction_non_alphanumeric': 0.13513513513513514, 'fraction_numerical': 0.012441012441012441, 'mean_word_length': 2.8866666666666667, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '4323991', 'n_tokens_mistral': 683, 'n_tokens_neox': 638, 'n_words': 158}