<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import { SafeAreaView, ScrollView, StyleSheet } from 'react-native';
import { DrawerItems } from 'react-navigation';

import modules from '../../../';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingTop: 20
  }
});

const DrawerComponent = props => {
  const skippedItems = Object.keys(modules.drawerItems).filter((name, _, items) => items[name].skip);
  return (
    <ScrollView style={styles.container}>
      <SafeAreaView forceInset={{ top: 'always', horizontal: 'never' }}>
        <DrawerItems
          {...props}
          onItemPress={({ focused, route }) => {
            if (!skippedItems.includes(route.routeName)) {
              props.onItemPress({ focused, route });
            }
          }}
        />
      </SafeAreaView>
    </ScrollView>
  );
};<commit_msg>Fix getting skippedItems<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import { SafeAreaView, ScrollView, StyleSheet } from 'react-native';
import { DrawerItems } from 'react-navigation';

import modules from '../../../';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingTop: 20
  }
});

const DrawerComponent = props => {
  const skippedItems = Object.keys(modules.drawerItems).filter(name => modules.drawerItems[name].skip);
  return (
    <ScrollView style={styles.container}>
      <SafeAreaView forceInset={{ top: 'always', horizontal: 'never' }}>
        <DrawerItems
          {...props}
          onItemPress={({ focused, route }) => {
            if (!skippedItems.includes(route.routeName)) {
              props.onItemPress({ focused, route });
            }
          }}
        />
      </SafeAreaView>
    </ScrollView>
  );
};
{'fraction_non_alphanumeric': 0.15328467153284672, 'fraction_numerical': 0.003368893879842785, 'mean_word_length': 2.759493670886076, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '1220767', 'n_tokens_mistral': 519, 'n_tokens_neox': 513, 'n_words': 117}