<commit_before>import React, { Component } from 'react';
import { connect } from 'react-redux';
import actions from '../actions/index.js';
import { fetchFPKey } from '../utils/utils';
const filepicker = require('filepicker-js');

let FILE_PICKER_KEY;
if (process.env.TRAVIS) {
  FILE_PICKER_KEY = 'no key';
} else if (process.env.HEROKU) {
  console.log('fetching key from process.env...');
  FILE_PICKER_KEY = fetchFPKey(console.log);
} else if (!process.env.TRAVIS && !process.env.HEROKU) {
  FILE_PICKER_KEY = require('../../server/keys/filePicker.js').FILE_PICKER_KEY;
}
console.log('FILE_PICKER_KEY', FILE_PICKER_KEY);

class ImageUpload extends Component {<commit_msg>add FILE_PICKER_KEY env variable to TRAVIS<commit_after>import React, { Component } from 'react';
import { connect } from 'react-redux';
import actions from '../actions/index.js';
import { fetchFPKey } from '../utils/utils';
const filepicker = require('filepicker-js');

let FILE_PICKER_KEY;
if (process.env.FILE_PICKER_KEY) {
  FILE_PICKER_KEY = process.env.FILE_PICKER_KEY;
} else if (process.env.HEROKU) {
  console.log('fetching key from process.env...');
  FILE_PICKER_KEY = fetchFPKey(console.log);
} else if (!process.env.TRAVIS && !process.env.HEROKU) {
  FILE_PICKER_KEY = require('../../server/keys/filePicker.js').FILE_PICKER_KEY;
}
console.log('FILE_PICKER_KEY', FILE_PICKER_KEY);

class ImageUpload extends Component {
{'fraction_non_alphanumeric': 0.15231316725978647, 'fraction_numerical': 0.0, 'mean_word_length': 5.139737991266376, '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': '499647', 'n_tokens_mistral': 494, 'n_tokens_neox': 492, 'n_words': 100}