<commit_before>import React, { PropTypes } from 'react';
import { WebView } from 'react-native';

const ArticlePage = () => (
  <WebView
    source={{ uri: this.props.navigation.state.params.url }}
    style={{ flex: 1, marginTop: 20 }}
  />
);

ArticlePage.propTypes = {
  navigation: PropTypes.shape({
    state: PropTypes.shape({
      params: PropTypes.shape({
        url: PropTypes.string.isRequired,
      }).isRequired,
    }).isRequired,
  }).isRequired,
};

export default ArticlePage;<commit_msg>Fixed article page navigation<commit_after>import React, { PropTypes, Component } from 'react';
import { WebView } from 'react-native';

export default class ArticlePage extends Component {
  static propTypes = {
    navigation: PropTypes.shape({
      state: PropTypes.shape({
        params: PropTypes.shape({
          url: PropTypes.string.isRequired,
        }).isRequired,
      }).isRequired,
    }).isRequired,
  };

  render() {
    return (
      <WebView
        source={{ uri: this.props.navigation.state.params.url }}
        style={{ flex: 1, marginTop: 20 }}
      />
    );
  }
}
{'fraction_non_alphanumeric': 0.14337568058076225, 'fraction_numerical': 0.0054446460980036296, 'mean_word_length': 2.9676258992805757, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 6, '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': '1438640', 'n_tokens_mistral': 324, 'n_tokens_neox': 328, 'n_words': 77}