<commit_before>import React from 'react';
import { StyleSheet, Text, View, Button, ScrollView } from 'react-native';
import { helpline } from '../content/helpline.js';
import { translatedText, translatedTitle, printLinks } from '../routes/shared.js';

export default class HelplineScreen extends React.Component {
  static navigationOptions = {
    title: translatedTitle(helpline, 0)
  };
  get content() {
    var contentArr = [];
    for (let i = 1; i < helpline.length; i++) {
      if (helpline[i].links) {
        contentArr.push(printLinks(helpline[i].links));
      } else {
        contentArr.push(
          <View key = {i}>
            <Text>{translatedText(helpline, i)}</Text>
          </View>
        )
      }
    }
    return contentArr;
  }
  render() {
    return (
      <ScrollView>
        {this.content}
      </ScrollView>
    );
  }
};<commit_msg>basic styling for helpline page<commit_after>import React from 'react';
import { StyleSheet, Text, View, Button, ScrollView } from 'react-native';
import BasicText from './sub/basicText.js';
import { helpline } from '../content/helpline.js';
import { translatedText, translatedTitle, printLinks } from '../routes/shared.js';
import { globals } from '../styles/globals.js';

export default class HelplineScreen extends React.Component {
  static navigationOptions = {
    title: translatedTitle(helpline, 0)
  };
  get content() {
    var contentArr = [];
    for (let i = 1; i < helpline.length; i++) {
      if (helpline[i].links) {
        contentArr.push(printLinks(helpline[i].links));
      } else {
        contentArr.push(
          <View key = {i}>
            <BasicText>{translatedText(helpline, i)}</BasicText>
          </View>
        )
      }
    }
    return contentArr;
  }
  render() {
    return (
      <ScrollView style={[globals.green, globals.base]}>
          {this.content}
      </ScrollView>
    );
  }
};
{'fraction_non_alphanumeric': 0.14338235294117646, 'fraction_numerical': 0.0021008403361344537, 'mean_word_length': 2.6494252873563218, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 15, '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': '7621813', 'n_tokens_mistral': 599, 'n_tokens_neox': 591, 'n_words': 138}