<commit_before>'use strict';
var React = require('react');
var ReactNative = require('react-native');
var PropTypes = require('prop-types');

var {
  StyleSheet,
  Text,
  Image,
  View,
  TouchableHighlight,
} = ReactNative;

var FBLoginManager = require('NativeModules').FBLoginManager;

var FBLoginMock = React.createClass({
  propTypes: {
    style: View.propTypes.style,
    onPress: PropTypes.func,
    onLogin: PropTypes.func,
    onLogout: PropTypes.func,
  },

  getInitialState: function(){
    return {
      user: null,
    };
  },

  handleLogin: function(){
    var _this = this;
    FBLoginManager.login(function(error, data){
      if (!error) {
        _this.setState({ user : data});
        _this.props.onLogin && _this.props.onLogin();
      } else {
        console.log(error, data);
      }
    });
  },
<commit_msg>update examples<commit_after>'use strict';
var React = require('react');
var ReactNative = require('react-native');
var PropTypes = require('prop-types');

var {
  StyleSheet,
  Text,
  Image,
  View,
  ViewPropTypes,
  TouchableHighlight,
} = ReactNative;

var FBLoginManager = require('NativeModules').FBLoginManager;

var FBLoginMock = React.createClass({
  propTypes: {
    style: ViewPropTypes.style,
    onPress: PropTypes.func,
    onLogin: PropTypes.func,
    onLogout: PropTypes.func,
  },

  getInitialState: function(){
    return {
      user: null,
    };
  },

  handleLogin: function(){
    var _this = this;
    FBLoginManager.login(function(error, data){
      if (!error) {
        _this.setState({ user : data});
        _this.props.onLogin && _this.props.onLogin();
      } else {
        console.log(error, data);
      }
    });
  },

{'fraction_non_alphanumeric': 0.14049586776859505, 'fraction_numerical': 0.0, 'mean_word_length': 3.1140776699029127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '7308993', 'n_tokens_mistral': 545, 'n_tokens_neox': 560, 'n_words': 112}