<commit_before>/**
 * @flow
 *
 * All About Olaf
 * Student Work page
 */

import React from 'react'
import {StyleSheet, Text, FlatList} from 'react-native'
import {TabBarIcon} from '../../components/tabbar-icon'
import type {TopLevelViewPropsType} from '../../types'
import * as c from '../../components/colors'
import {ListSeparator} from '../../components/list'
import {tracker} from '../../../analytics'
import bugsnag from '../../../bugsnag'
import {NoticeView} from '../../components/notice'
import LoadingView from '../../components/loading'
import delay from 'delay'
import {JobRow} from './job-row'
import type {ThinJobType} from './types'

const jobsUrl = 'https://apps.carleton.edu/campus/sfs/employment/feeds/jobs'

const styles = StyleSheet.create({
  listContainer: {
    backgroundColor: c.white,
  },
})

const fetchJobs = (): Array<ThinJobType> =>
  fetchXml(jobsUrl).then(resp => resp.rss.channel.item)

export default class StudentWorkView extends React.PureComponent {
  static navigationOptions = {
    headerBackTitle: 'Job Postings',
    tabBarLabel: 'Job Postings',
    tabBarIcon: TabBarIcon('briefcase'),
  }

  props: TopLevelViewPropsType

  state: {
    jobs: Array<JobType>,
    loaded: boolean,
    refreshing: boolean,
    error: boolean,<commit_msg>fix flow error in student work<commit_after>/**
 * @flow
 *
 * All About Olaf
 * Student Work page
 */

import React from 'react'
import {StyleSheet, Text, FlatList} from 'react-native'
import {TabBarIcon} from '../../components/tabbar-icon'
import type {TopLevelViewPropsType} from '../../types'
import * as c from '../../components/colors'
import {ListSeparator} from '../../components/list'
import {tracker} from '../../../analytics'
import bugsnag from '../../../bugsnag'
import {NoticeView} from '../../components/notice'
import LoadingView from '../../components/loading'
import delay from 'delay'
import {JobRow} from './job-row'
import type {ThinJobType} from './types'

const jobsUrl = 'https://apps.carleton.edu/campus/sfs/employment/feeds/jobs'

const styles = StyleSheet.create({
  listContainer: {
    backgroundColor: c.white,
  },
})

const fetchJobs = (): Array<ThinJobType> =>
  fetchXml(jobsUrl).then(resp => resp.rss.channel.item)

export default class StudentWorkView extends React.PureComponent {
  static navigationOptions = {
    headerBackTitle: 'Job Postings',
    tabBarLabel: 'Job Postings',
    tabBarIcon: TabBarIcon('briefcase'),
  }

  props: TopLevelViewPropsType

  state: {
    jobs: Array<ThinJobType>,
    loaded: boolean,
    refreshing: boolean,
    error: boolean,
{'fraction_non_alphanumeric': 0.15473887814313347, 'fraction_numerical': 0.0, 'mean_word_length': 3.7888888888888888, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 11, 'https://': 2, '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': '4808838', 'n_tokens_mistral': 788, 'n_tokens_neox': 791, 'n_words': 216}