<commit_before>import React from 'react';
import { ScrollView, StyleSheet, StatusBar, Platform, Alert } from 'react-native';
import { Container, Header, Content, List, ListItem, Text, Separator } from 'native-base';
import { MaterialIcons } from '@expo/vector-icons';

export default class SettingsScreen extends React.Component {
  static navigationOptions = ({ navigation }) => ({
    title: 'Settings',
    tabBarLabel: 'Settings',
    headerStyle: {
      height: Platform.OS === 'ios' ? 64 : (56 + StatusBar.currentHeight),
      paddingTop: Platform.OS === 'ios' ? 20 : StatusBar.currentHeight,
    },
    tabBarIcon: ({ tintColor }) => (
      <MaterialIcons
        name="settings"
        size={25}
        color={tintColor}
      />
    ),
  })

  _clearRequestHistory = () => {
    Alert.alert(
      'DELETE HISTORY?',
      'All requests in your history will be deleted from the device.',
      [
        { text: 'Cancel' },
        { text: 'Ok', onPress: () => this.props.screenProps.clearRequestHistory() },
      ]
    );
  }

  render() {
    return (
      <Container>
        <Content>
          <List>
            <Separator bordered>
              <Text>APPLICATION</Text>
            </Separator>
            <ListItem>
              <Text>
                  Change theme
              </Text>
            </ListItem>
            <ListItem onPress={this._clearRequestHistory}>
              <Text>
                  Delete request history
              </Text>
            </ListItem>
            <Separator bordered>
              <Text>DEVELOPMENT</Text>
            </Separator>
            <ListItem>
              <Text>
                  Contributors
              </Text>
            </ListItem>
          </List>
        </Content>
      </Container>
    );
  }<commit_msg>#33 | Add link to contributors<commit_after>import React from 'react';
import { ScrollView, StyleSheet, StatusBar, Platform, Alert, Linking } from 'react-native';
import { Container, Header, Content, List, ListItem, Text, Separator } from 'native-base';
import { MaterialIcons } from '@expo/vector-icons';

export default class SettingsScreen extends React.Component {
  static navigationOptions = ({ navigation }) => ({
    title: 'Settings',
    tabBarLabel: 'Settings',
    headerStyle: {
      height: Platform.OS === 'ios' ? 64 : (56 + StatusBar.currentHeight),
      paddingTop: Platform.OS === 'ios' ? 20 : StatusBar.currentHeight,
    },
    tabBarIcon: ({ tintColor }) => (
      <MaterialIcons
        name="settings"
        size={25}
        color={tintColor}
      />
    ),
  })

  _clearRequestHistory = () => {
    Alert.alert(
      'DELETE HISTORY?',
      'All requests in your history will be deleted from the device.',
      [
        { text: 'Cancel' },
        { text: 'Ok', onPress: () => this.props.screenProps.clearRequestHistory() },
      ]
    );
  }

  _viewContributors = () => {
    Linking.openURL('https://github.com/jessecordeiro/supernova-mobile/graphs/contributors');
  }

  render() {
    return (
      <Container>
        <Content>
          <List>
            <Separator bordered>
              <Text>APPLICATION</Text>
            </Separator>
            <ListItem>
              <Text>
                  Change theme
              </Text>
            </ListItem>
            <ListItem onPress={this._clearRequestHistory}>
              <Text>
                  Delete request history
              </Text>
            </ListItem>
            <Separator bordered>
              <Text>DEVELOPMENT</Text>
            </Separator>
            <ListItem onPress={this._viewContributors}>
              <Text>
                  Contributors
              </Text>
            </ListItem>
          </List>
        </Content>
      </Container>
    );
  }
{'fraction_non_alphanumeric': 0.12783342119135477, 'fraction_numerical': 0.004744333157617291, 'mean_word_length': 1.7863436123348018, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 66, 'https://': 1, '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': '7188882', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1032, 'n_words': 234}