<commit_before>/**
 * ListPopover - Popover rendered with a selectable list.
 */
"use strict";

var React = require('react-native');
var SCREEN_HEIGHT = require('Dimensions').get('window').height;
var {
  ListView,
  PropTypes,
  StyleSheet,
  Text,
  TouchableOpacity,
  View
} = React;
var noop = () => {};
var ds = new ListView.DataSource({rowHasChanged: (r1,r2)=>(r1!==r2)});


var ListPopover = React.createClass({
  propTypes: {
    list: PropTypes.array.isRequired,
    isVisible: PropTypes.bool,
    onClick: PropTypes.func,
    onClose: PropTypes.func,
  },
  getDefaultProps: function() {
    return {
      list: [""],
      isVisible: false,
      onClick: noop,
      onClose: noop
    };
  },
  getInitialState: function() {
    return {
      dataSource: ds.cloneWithRows(this.props.list)
    };<commit_msg>Use Dimensions<commit_after>/**
 * ListPopover - Popover rendered with a selectable list.
 */
"use strict";

var React = require('react-native');
var {
  ListView,
  PropTypes,
  StyleSheet,
  Text,
  Dimensions,
  TouchableOpacity,
  View
} = React;
var SCREEN_HEIGHT = Dimensions.get('window').height;
var noop = () => {};
var ds = new ListView.DataSource({rowHasChanged: (r1,r2)=>(r1!==r2)});


var ListPopover = React.createClass({
  propTypes: {
    list: PropTypes.array.isRequired,
    isVisible: PropTypes.bool,
    onClick: PropTypes.func,
    onClose: PropTypes.func,
  },
  getDefaultProps: function() {
    return {
      list: [""],
      isVisible: false,
      onClick: noop,
      onClose: noop
    };
  },
  getInitialState: function() {
    return {
      dataSource: ds.cloneWithRows(this.props.list)
    };
{'fraction_non_alphanumeric': 0.1462378640776699, 'fraction_numerical': 0.0048543689320388345, 'mean_word_length': 3.350923482849604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '293763', 'n_tokens_mistral': 556, 'n_tokens_neox': 565, 'n_words': 118}