<commit_before>import React from 'react';
import {
  View
} from 'react-native';
import ScrollableTabView from 'react-native-scrollable-tab-view';

import styles from './styles';

function getIndexBar(slides) {
  const dots = [];
  for (let i = 0; i < slides.tabs.length; i++) {
    const dotStyle = slides.activeTab === i ? [styles.dot, styles.dotActive] : styles.dot;
    dots.push(<View key={i} style={dotStyle} />);
  }
  return <View style={styles.indexBar}><View style={styles.indexBar}>{dots}</View></View>;
}

function StepsSlider(props) {
  return (
    <ScrollableTabView
      locked
      tabBarPosition="overlayBottom"
      renderTabBar={props.hideIndex ? () => <View /> : getIndexBar}
      prerenderingSiblingsNumber={1}
      {...props}
    >
      {props.children}
    </ScrollableTabView>
  );
}

StepsSlider.propTypes = {
  hideIndex: React.PropTypes.bool,
  children: React.PropTypes.node.isRequired<commit_msg>Doesn't load siblings in slider component<commit_after>import React from 'react';
import {
  View
} from 'react-native';
import ScrollableTabView from 'react-native-scrollable-tab-view';

import styles from './styles';

function getIndexBar(slides) {
  const dots = [];
  for (let i = 0; i < slides.tabs.length; i++) {
    const dotStyle = slides.activeTab === i ? [styles.dot, styles.dotActive] : styles.dot;
    dots.push(<View key={i} style={dotStyle} />);
  }
  return <View style={styles.indexBar}><View style={styles.indexBar}>{dots}</View></View>;
}

function StepsSlider(props) {
  return (
    <ScrollableTabView
      locked
      tabBarPosition="overlayBottom"
      renderTabBar={props.hideIndex ? () => <View /> : getIndexBar}
      prerenderingSiblingsNumber={0}
      {...props}
    >
      {props.children}
    </ScrollableTabView>
  );
}

StepsSlider.propTypes = {
  hideIndex: React.PropTypes.bool,
  children: React.PropTypes.node.isRequired
{'fraction_non_alphanumeric': 0.1506342494714588, 'fraction_numerical': 0.0021141649048625794, 'mean_word_length': 3.7803030303030303, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '4218508', 'n_tokens_mistral': 624, 'n_tokens_neox': 611, 'n_words': 122}