<commit_before>import React from 'react'
import PropTypes from 'prop-types'

import PublicToolbar from './PublicToolbar'
import Viewer from 'drive/web/modules/viewer/PublicViewer'
import styles from 'drive/web/modules/viewer/barviewer.styl'

const LightFileViewer = ({ files, isFile }) => (
  <div className={styles['viewer-wrapper-with-bar']}>
    <PublicToolbar files={files} renderInBar isFile={isFile} />
    <Viewer files={files} currentIndex={0} dark={false} showToolbar={false} />
  </div>
)

LightFileViewer.propTypes = {
  files: PropTypes.array.isRequired,
  isFile: PropTypes.bool.isRequired
}
export default LightFileViewer<commit_msg>fix: Wrap Viewer in a position relative<commit_after>import React from 'react'
import PropTypes from 'prop-types'

import PublicToolbar from './PublicToolbar'
import Viewer from 'drive/web/modules/viewer/PublicViewer'
import styles from 'drive/web/modules/viewer/barviewer.styl'

const LightFileViewer = ({ files, isFile }) => (
  <div className={styles['viewer-wrapper-with-bar']}>
    <PublicToolbar files={files} isFile={isFile} />
    <div className={'u-pos-relative u-h-100'}>
      <Viewer files={files} currentIndex={0} dark={false} showToolbar={false} />
    </div>
  </div>
)

LightFileViewer.propTypes = {
  files: PropTypes.array.isRequired,
  isFile: PropTypes.bool.isRequired
}
export default LightFileViewer
{'fraction_non_alphanumeric': 0.13523391812865498, 'fraction_numerical': 0.003654970760233918, 'mean_word_length': 5.308755760368664, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '1363326', 'n_tokens_mistral': 430, 'n_tokens_neox': 442, 'n_words': 96}