<commit_before>'use strict';

import React from 'react';
import {
	StyleSheet,
	View,
	Text,
	AppState,
	Navigator,
	TouchableHighlight,
	ScrollView,
	Image,
	MapView,
	ListView,
	Animated,
	RefreshControl,
	Modal
} from 'react-native';

import EventCard from './events/EventCard'

// Node Modules
var TimerMixin = 		require('react-timer-mixin');
var Realm = 			require('realm');

// App Settings / Util / CSS
var AppSettings = 		require('../AppSettings');
var css = 				require('../styles/css');
var general = 			require('../util/general');
var logger = 			require('../util/logger');
var shuttle = 			require('../util/shuttle');

// UCSD Nodes / Shuttles
var ucsd_nodes = 		require('../json/ucsd_nodes.json');
var shuttle_routes = 	require('../json/shuttle_routes_master.json');

// Views
var ShuttleStop = 		require('./ShuttleStop');
var SurfReport = 		require('./SurfReport');
var TopStoriesDetail = 	require('./TopStoriesDetail');
var DestinationDetail = require('./DestinationDetail');
var WebWrapper = 		require('./WebWrapper');

var Home = React.createClass({

	realm: null,
	AppSettings: null,
	mixins: [TimerMixin],
	shuttleCardRefreshInterval: 1 * 60 * 1000,		// Refresh ShuttleCard every 1 minute
	shuttleCardGPSRefreshInterval: .25 * 1000,		// Look for GPS data every 250ms (1/4s) for 15s before failing
	shuttleCardGPSRefreshLimit: 60,
	shuttleCardGPSRefreshCounter: 0,
	shuttleReloadAnim: new Animated.Value(0),
	shuttleMainReloadAnim: new Animated.Value(0),
	shuttleClosestStops: [{ dist: 100000000 },{ dist: 100000000 }],
	weatherReloadAnim: new Animated.Value(0),
	fetchTopStoriesErrorInterval: 15 * 1000,		// Retry every 15 seconds
	fetchTopStoriesErrorLimit: 3,
	fetchTopStoriesErrorCounter: 0,
	eventsDefaultResults: 3,
	topStoriesDefaultResults: 3,
	nearbyMaxResults: 5,
	nearbyAnnotations: [],
	regionRefreshInterval: 60 * 1000,
	copyrightYear: new Date().getFullYear(),
<commit_msg>cleanup<commit_after>'use strict';

import React from 'react';
import {
	StyleSheet,
	View,
	Text,
	AppState,
	TouchableHighlight,
	ScrollView,
	Image,
	MapView,
	ListView,
	Animated,
	RefreshControl,
	Modal
} from 'react-native';

import EventCard from './events/EventCard'

// Node Modules
var TimerMixin = 		require('react-timer-mixin');
var Realm = 			require('realm');

// App Settings / Util / CSS
var AppSettings = 		require('../AppSettings');
var css = 				require('../styles/css');
var general = 			require('../util/general');
var logger = 			require('../util/logger');
var shuttle = 			require('../util/shuttle');

// UCSD Nodes / Shuttles
var ucsd_nodes = 		require('../json/ucsd_nodes.json');
var shuttle_routes = 	require('../json/shuttle_routes_master.json');

// Views
var ShuttleStop = 		require('./ShuttleStop');
var SurfReport = 		require('./SurfReport');
var TopStoriesDetail = 	require('./TopStoriesDetail');
var DestinationDetail = require('./DestinationDetail');
var WebWrapper = 		require('./WebWrapper');

var Home = React.createClass({

	realm: null,
	AppSettings: null,
	mixins: [TimerMixin],
	shuttleCardRefreshInterval: 1 * 60 * 1000,		// Refresh ShuttleCard every 1 minute
	shuttleCardGPSRefreshInterval: .25 * 1000,		// Look for GPS data every 250ms (1/4s) for 15s before failing
	shuttleCardGPSRefreshLimit: 60,
	shuttleCardGPSRefreshCounter: 0,
	shuttleReloadAnim: new Animated.Value(0),
	shuttleMainReloadAnim: new Animated.Value(0),
	shuttleClosestStops: [{ dist: 100000000 },{ dist: 100000000 }],
	weatherReloadAnim: new Animated.Value(0),
	fetchTopStoriesErrorInterval: 15 * 1000,		// Retry every 15 seconds
	fetchTopStoriesErrorLimit: 3,
	fetchTopStoriesErrorCounter: 0,
	topStoriesDefaultResults: 3,
	nearbyMaxResults: 5,
	nearbyAnnotations: [],
	regionRefreshInterval: 60 * 1000,
	copyrightYear: new Date().getFullYear(),

{'fraction_non_alphanumeric': 0.13409453000531069, 'fraction_numerical': 0.033722782793414764, 'mean_word_length': 4.724924012158055, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '6840510', 'n_tokens_mistral': 1437, 'n_tokens_neox': 1259, 'n_words': 301}