<commit_before>/**
 * Dribbble App
 * Github url: https://github.com/future-challenger/react-native-dribbble-app
 * @flow
 */

import React from 'react';
import {
  AppRegistry,
  StyleSheet,
  Navigator,
  View,
  Image,
  Text,
  TouchableOpacity,
  TouchableHighlight
} from 'react-native';

import { connect } from 'react-redux'

import ShotList from "./app/ShotList";
import Icon from "react-native-vector-icons/FontAwesome";

import Tabs from './app/lib/TabCore';
import DemoList from './app/test/demoList';
// import DemoLayoutAnimation from './app/tutorial/DemoLayoutAnimation';
import TutorialList from './app/tutorial/TutorialList';

const THEME_COLOR = '#ea4c89';

export default class DribbbleApp extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
        selectedTab: "all"
    };

    this.initialRoute = {
			title: '',
			component: null,
			index: 0,
			passProps: {

			}
		}

    //bind
    this._renderContent = this._renderContent.bind(this);
    this._renderScene = this._renderScene.bind(this);
  }

  _renderScene(route: Route, navigator: Navigator) {
    console.log(`###render scene in nav route: ${route.title}`);
  	if (route.component) {
  		return React.createElement(route.component
  			, {...this.props, ...route.passProps, navigator, route});
  	}
  }
<commit_msg>redux<commit_after>/**
 * Dribbble App
 * Github url: https://github.com/future-challenger/react-native-dribbble-app
 * @flow
 */

import React from 'react';
import {
  AppRegistry,
  StyleSheet,
  Navigator,
  View,
  Image,
  Text,
  TouchableOpacity,
  TouchableHighlight
} from 'react-native';

import { connect } from 'react-redux'

import ShotList from "./app/ShotList";
import Icon from "react-native-vector-icons/FontAwesome";

import Tabs from './app/lib/TabCore';
import DemoList from './app/test/demoList';
// import DemoLayoutAnimation from './app/tutorial/DemoLayoutAnimation';
import TutorialList from './app/tutorial/TutorialList';

const THEME_COLOR = '#ea4c89';

const mapDispatchToProps = (dispatch) => {
  return {
    
  }
}

export default class DribbbleApp extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
        selectedTab: "all"
    };

    this.initialRoute = {
			title: '',
			component: null,
			index: 0,
			passProps: {

			}
		}

    //bind
    this._renderContent = this._renderContent.bind(this);
    this._renderScene = this._renderScene.bind(this);
  }

  _renderScene(route: Route, navigator: Navigator) {
    console.log(`###render scene in nav route: ${route.title}`);
  	if (route.component) {
  		return React.createElement(route.component
  			, {...this.props, ...route.passProps, navigator, route});
  	}
  }

{'fraction_non_alphanumeric': 0.13913362701908957, 'fraction_numerical': 0.002936857562408223, 'mean_word_length': 3.4599018003273323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '7085241', 'n_tokens_mistral': 950, 'n_tokens_neox': 901, 'n_words': 192}