<commit_before>import React from 'react';
import { StyleSheet, View } from 'react-native';

import { STATUSBAR_HEIGHT } from '../styles';
import { ZulipButton } from '../common';
import { homeNarrow, specialNarrow } from '../utils/narrow';
import NavButton from './NavButton';
import SubscriptionsContainer from '../streamlist/SubscriptionsContainer';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingTop: STATUSBAR_HEIGHT,
    flexDirection: 'column',
  },
  iconList: {
    flexDirection: 'row',
    justifyContent: 'space-between',
  },
  button: {
    margin: 8,
  },
});

export default class StreamSidebar extends React.Component {

  handleAllStreams = () =>
    this.props.pushRoute('settings');

  handleSearch = (narrow) => {
    const { pushRoute } = this.props;
    pushRoute('search');
  };

  handleSettings = (narrow) => {
    const { pushRoute } = this.props;
    pushRoute('settings');
  };

  render() {<commit_msg>Open SubscriptionsScreen on clicking All Streams in left drawer.<commit_after>import React from 'react';
import { StyleSheet, View } from 'react-native';

import { STATUSBAR_HEIGHT } from '../styles';
import { ZulipButton } from '../common';
import { homeNarrow, specialNarrow } from '../utils/narrow';
import NavButton from './NavButton';
import SubscriptionsContainer from '../streamlist/SubscriptionsContainer';

const styles = StyleSheet.create({
  container: {
    flex: 1,
    paddingTop: STATUSBAR_HEIGHT,
    flexDirection: 'column',
  },
  iconList: {
    flexDirection: 'row',
    justifyContent: 'space-between',
  },
  button: {
    margin: 8,
  },
});

export default class StreamSidebar extends React.Component {

  handleAllStreams = () => {
    const { pushRoute } = this.props;
    pushRoute('subscriptions');
  };

  handleSearch = (narrow) => {
    const { pushRoute } = this.props;
    pushRoute('search');
  };

  handleSettings = (narrow) => {
    const { pushRoute } = this.props;
    pushRoute('settings');
  };

  render() {
{'fraction_non_alphanumeric': 0.1449203187250996, 'fraction_numerical': 0.00199203187250996, 'mean_word_length': 3.7049180327868854, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3916536', 'n_tokens_mistral': 611, 'n_tokens_neox': 600, 'n_words': 149}