<commit_before>import * as firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import * as rebase from 're-base';

const {
  REACT_APP_DATABASE,
  REACT_APP_PROD_KEY,
  REACT_APP_STAGING_KEY,
} = process.env;

const production = {
  apiKey: `${REACT_APP_PROD_KEY}`,
  authDomain: 'jordan-janzen.firebaseapp.com',
  databaseURL: 'https://jordan-janzen.firebaseio.com',
};

const staging = {
  apiKey: `${REACT_APP_STAGING_KEY}`,
  authDomain: 'jordan-janzen-staging.firebaseapp.com',
  databaseURL: 'https://jordan-janzen-staging.firebaseio.com',
};

const appDatabase = REACT_APP_DATABASE === 'production' ? production : staging;
const app = firebase.initializeApp(appDatabase);
export const database = firebase.database(app);
export const auth = firebase.auth();
export const provider = new firebase.auth.GoogleAuthProvider();
export const base = rebase.createClass(database);

export const isLoggedIn = () => {
  return !!firebase.auth().currentUser;
};
<commit_msg>clearn up base exports<commit_after>import * as firebase from 'firebase/app';
import 'firebase/auth';
import 'firebase/database';
import * as rebase from 're-base';

const {
  REACT_APP_DATABASE,
  REACT_APP_PROD_KEY,
  REACT_APP_STAGING_KEY,
} = process.env;

const production = {
  apiKey: `${REACT_APP_PROD_KEY}`,
  authDomain: 'jordan-janzen.firebaseapp.com',
  databaseURL: 'https://jordan-janzen.firebaseio.com',
};

const staging = {
  apiKey: `${REACT_APP_STAGING_KEY}`,
  authDomain: 'jordan-janzen-staging.firebaseapp.com',
  databaseURL: 'https://jordan-janzen-staging.firebaseio.com',
};

const appDatabase = REACT_APP_DATABASE === 'production' ? production : staging;
const app = firebase.initializeApp(appDatabase);
const database = firebase.database(app);
const auth = firebase.auth();
const provider = new firebase.auth.GoogleAuthProvider();
const base = rebase.createClass(database);

const isLoggedIn = () => {
  return !!firebase.auth().currentUser;
};

export { auth, database, provider, base, isLoggedIn };

{'fraction_non_alphanumeric': 0.1386969397828233, 'fraction_numerical': 0.0, 'mean_word_length': 5.711920529801325, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '6455719', 'n_tokens_mistral': 711, 'n_tokens_neox': 702, 'n_words': 136}