<commit_before>import React from 'react-native';
import Auth from '../auth';

import Subreddit from './Subreddit';
import Topic from './Topic';
import Favorites from './Favorites';

let {
  View,
  Text,
  TouchableHighlight,
  StyleSheet,
  Navigator
} = React;

var styles = StyleSheet.create({
  pageContainer: {
    marginTop: 70,
    backgroundColor: 'white',
    flex: 1
  },
  buttonText: {
    fontSize: 18,
    color: 'white',
    alignSelf: 'center'
  },
  button: {
    height: 44,
    flexDirection: 'row',
    backgroundColor: '#48BBEC',
    alignSelf: 'stretch',
    justifyContent: 'center'
  }
});

let NavigationBarRouteMapper = {
  LeftButton(route, navigator, index) {
    return (
      <TouchableHighlight onPress={() => {
        if (index > 0) {
          navigator.pop();
        }
      }}>
        <Text>Back</Text>
      </TouchableHighlight>
    );
  },

  RightButton() {
    return null;
  },

  Title(route) {<commit_msg>don't show back button on root view<commit_after>import React from 'react-native';
import Auth from '../auth';

import Subreddit from './Subreddit';
import Topic from './Topic';
import Favorites from './Favorites';

let {
  View,
  Text,
  TouchableHighlight,
  StyleSheet,
  Navigator
} = React;

var styles = StyleSheet.create({
  pageContainer: {
    marginTop: 70,
    backgroundColor: 'white',
    flex: 1
  },
  buttonText: {
    fontSize: 18,
    color: 'white',
    alignSelf: 'center'
  },
  button: {
    height: 44,
    flexDirection: 'row',
    backgroundColor: '#48BBEC',
    alignSelf: 'stretch',
    justifyContent: 'center'
  }
});

let NavigationBarRouteMapper = {
  LeftButton(route, navigator, index) {
    if (index > 0) {
      return (
        <TouchableHighlight onPress={() => {
          if (index > 0) {
            navigator.pop();
          }
        }}>
        <Text>Back</Text>
        </TouchableHighlight>
      );
    }
  },

  RightButton() {
    return null;
  },

  Title(route) {
{'fraction_non_alphanumeric': 0.14220416455053325, 'fraction_numerical': 0.010665312341289994, 'mean_word_length': 2.5623869801084993, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 16, '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': '3061106', 'n_tokens_mistral': 670, 'n_tokens_neox': 643, 'n_words': 155}