<commit_before>import React from 'react';
import { noop } from 'lodash';
import { bool, func, oneOf, number, string } from 'prop-types';
import { connect } from 'react-redux';
import Dialog from 'material-ui/es/Dialog';
import { FilePicker, ProgressDialog } from 'veritone-react-common';

import * as filePickerModule from '../../redux/modules/filePicker';
import widget from '../../shared/widget';

@connect(
  (state, { _widgetId }) => ({
    open: filePickerModule.isOpen(state, _widgetId),
    pickerState: filePickerModule.state(state, _widgetId),
    progressPercent: filePickerModule.progressPercent(state, _widgetId),
    success: filePickerModule.didSucceed(state, _widgetId),
    error: filePickerModule.didError(state, _widgetId),
    warning: filePickerModule.didWarn(state, _widgetId),
    statusMessage: filePickerModule.statusMessage(state, _widgetId)
  }),
  {
    pick: filePickerModule.pick,
    endPick: filePickerModule.endPick,
    uploadRequest: filePickerModule.uploadRequest
  },
  null,
  { withRef: true }
)
class FilePickerWidget extends React.Component {
  static propTypes = {
    _widgetId: string.isRequired,
    open: bool,
    pick: func,
    endPick: func,
    uploadRequest: func,<commit_msg>inport from normal material-ui<commit_after>import React from 'react';
import { noop } from 'lodash';
import { bool, func, oneOf, number, string } from 'prop-types';
import { connect } from 'react-redux';
import Dialog from 'material-ui/Dialog';
import { FilePicker, ProgressDialog } from 'veritone-react-common';

import * as filePickerModule from '../../redux/modules/filePicker';
import widget from '../../shared/widget';

@connect(
  (state, { _widgetId }) => ({
    open: filePickerModule.isOpen(state, _widgetId),
    pickerState: filePickerModule.state(state, _widgetId),
    progressPercent: filePickerModule.progressPercent(state, _widgetId),
    success: filePickerModule.didSucceed(state, _widgetId),
    error: filePickerModule.didError(state, _widgetId),
    warning: filePickerModule.didWarn(state, _widgetId),
    statusMessage: filePickerModule.statusMessage(state, _widgetId)
  }),
  {
    pick: filePickerModule.pick,
    endPick: filePickerModule.endPick,
    uploadRequest: filePickerModule.uploadRequest
  },
  null,
  { withRef: true }
)
class FilePickerWidget extends React.Component {
  static propTypes = {
    _widgetId: string.isRequired,
    open: bool,
    pick: func,
    endPick: func,
    uploadRequest: func,
{'fraction_non_alphanumeric': 0.12074554294975688, 'fraction_numerical': 0.0, 'mean_word_length': 4.611363636363636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2011305', 'n_tokens_mistral': 747, 'n_tokens_neox': 740, 'n_words': 176}