<commit_before>import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { NativeRouter, Route } from 'react-router-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { StyleSheet } from 'react-native';
import { createRenderer } from 'fela-native';
import { ApolloProvider } from '@apollo/react-common';
import { Provider } from 'react-redux';
import { MainRoute } from './modules/modules';
import { persistStore, persistReducer } from 'redux-persist';
import { PersistGate } from 'redux-persist/integration/react';
// import { RendererProvider } from 'react-fela';
import { ConnectedRouter } from 'connected-react-router';
// import { NavigationContainer, DefaultTheme, DarkTheme } from '@react-navigation/native';
// import { NativeRouter } from 'react-router-native';
import {
  createReduxStore,
  history,
} from './config/redux-config';
import { createApolloClient } from './config/apollo-client';
// import env from './config/public-config';
// import config from './config';
// import useColorScheme from './hooks/useColorScheme';
// import useCachedResources from './hooks/useCachedResources';

// import { MainRoute } from './modules';

const client = createApolloClient();

// let store: any;
// if ((module as any).hot && (module as any).hot.data && (module as any).hot.data.store) {
//   // console.log('Restoring Redux store:', JSON.stringify((module as any).hot.data.store.getState()));
//   store = (module as any).hot.data.store;
//   // replace the reducers always as we don't have ablity to find
//   // new reducer added through our `modules`
//   store.replaceReducer(
//     persistReducer(persistConfig, storeReducer((module as any).hot.data.history || history)),
//   );
// } else {
//   store = createReduxStore();
// }

const store = createReduxStore();
const renderer = createRenderer();

// console.log('---CONFIG--new-', config, env);
export default function App() {
  // const isLoadingComplete = useCachedResources();

  // if (!isLoadingComplete) {
  //   return null;
  // }
  let persistor = persistStore(store as any);
  return (
    <SafeAreaProvider>
      <Provider store={store}>
        <ApolloProvider client={client}><commit_msg>cleanup<commit_after>import { StatusBar } from 'expo-status-bar';
import React from 'react';
import { NativeRouter, Route } from 'react-router-native';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import { StyleSheet } from 'react-native';
import { createRenderer } from 'fela-native';
import { ApolloProvider } from '@apollo/react-common';
import { Provider } from 'react-redux';
import { MainRoute } from './modules/modules';
import { persistStore, persistReducer } from 'redux-persist';
import { PersistGate } from 'redux-persist/integration/react';
// import { RendererProvider } from 'react-fela';
import { ConnectedRouter } from 'connected-react-router';
import {
  createReduxStore,
  history,
} from './config/redux-config';
import { createApolloClient } from './config/apollo-client';

const client = createApolloClient();

const store = createReduxStore();
const renderer = createRenderer();

// console.log('---CONFIG--new-', config, env);
export default function App() {

  let persistor = persistStore(store as any);
  return (
    <SafeAreaProvider>
      <Provider store={store}>
        <ApolloProvider client={client}>
{'fraction_non_alphanumeric': 0.15025140490979, 'fraction_numerical': 0.0, 'mean_word_length': 4.243410852713178, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3813198', 'n_tokens_mistral': 1004, 'n_tokens_neox': 974, 'n_words': 265}