<commit_before>import React, { Component } from 'react';
import { Text, Navigator } from 'react-native';

import Guide from '../screens/guide';

export default class Navigation extends Component {

  constructor(props){
    super(props);
  }

  renderScene(route, nav){

    const page = <Guide/>;

    switch(route.page){
      case 'home':
      return page;
      default:
      break;
    }
  }

  render() {
    return (
      <Navigator
        initialRoute={{ page: 'home'}}<commit_msg>dynamic nav page<commit_after>import React, { Component } from 'react';
import { Text, Navigator } from 'react-native';

import Guide from '../screens/guide';

export default class Navigation extends Component {

  constructor(props){
    super(props);
  }

  renderScene(route, nav){

    let Component = null;

    switch(route.page){
      case 'home':
      Component = Guide;
      default:
      break;
    }

    return <Component/>;
  }

  render() {
    return (
      <Navigator
        initialRoute={{ page: 'home',component: Guide}}
{'fraction_non_alphanumeric': 0.12921890067502412, 'fraction_numerical': 0.0, 'mean_word_length': 2.760869565217391, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6174542', 'n_tokens_mistral': 314, 'n_tokens_neox': 299, 'n_words': 84}