<commit_before>/* global __TARGET__ */
import React from 'react'
import { connect } from 'react-redux'
import { showModal } from 'react-cozy-helpers'
import { translate } from 'cozy-ui/react/I18n'
import confirm from '../../lib/confirm'

import FolderView from '../../components/FolderView'
import DeleteConfirm from '../../components/DeleteConfirm'
import { ShareModal } from 'sharing'
import Toolbar from './Toolbar'
import { isRenaming, getRenamingFile, startRenamingAsync } from './rename'
import { isFile, isReferencedByAlbum } from './files'
import { isAvailableOffline } from './availableOffline'
import { ConnectedToggleMenuItem } from '../../components/FileActionMenu'

import {
  createFolder,
  abortAddFolder,
  openFileWith,
  downloadFiles,
  trashFiles,
  toggleAvailableOffline
} from '../../actions'

const isAnyFileReferencedByAlbum = files => {
  for (let i = 0, l = files.length; i < l; ++i) {
    if (isReferencedByAlbum(files[i])) return true
  }
  return false
}

const mapStateToProps = (state, ownProps) => ({
  isTrashContext: ownProps.isTrashContext,
  canUpload: ownProps.canUpload,
  canCreateFolder: ownProps.canCreateFolder,
  isRenaming: isRenaming(state),
  renamingFile: getRenamingFile(state),
  Toolbar,
  isAvailableOffline: isAvailableOffline(state)
})

const mapDispatchToProps = (dispatch, ownProps) => ({<commit_msg>refactor: removed unnecessary prop declarations in mapStateToProps<commit_after>/* global __TARGET__ */
import React from 'react'
import { connect } from 'react-redux'
import { showModal } from 'react-cozy-helpers'
import { translate } from 'cozy-ui/react/I18n'
import confirm from '../../lib/confirm'

import FolderView from '../../components/FolderView'
import DeleteConfirm from '../../components/DeleteConfirm'
import { ShareModal } from 'sharing'
import Toolbar from './Toolbar'
import { isRenaming, getRenamingFile, startRenamingAsync } from './rename'
import { isFile, isReferencedByAlbum } from './files'
import { isAvailableOffline } from './availableOffline'
import { ConnectedToggleMenuItem } from '../../components/FileActionMenu'

import {
  createFolder,
  abortAddFolder,
  openFileWith,
  downloadFiles,
  trashFiles,
  toggleAvailableOffline
} from '../../actions'

const isAnyFileReferencedByAlbum = files => {
  for (let i = 0, l = files.length; i < l; ++i) {
    if (isReferencedByAlbum(files[i])) return true
  }
  return false
}

const mapStateToProps = (state, ownProps) => ({
  isRenaming: isRenaming(state),
  renamingFile: getRenamingFile(state),
  Toolbar,
  isAvailableOffline: isAvailableOffline(state)
})

const mapDispatchToProps = (dispatch, ownProps) => ({
{'fraction_non_alphanumeric': 0.12698412698412698, 'fraction_numerical': 0.0022675736961451248, 'mean_word_length': 4.729437229437229, 'pattern_counts': {'":': 0, '<': 5, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '506266', 'n_tokens_mistral': 816, 'n_tokens_neox': 804, 'n_words': 212}