<commit_before>import React, { Component } from 'react';
import {
    StyleSheet,
    FlatList,
    View
} from 'react-native';
import Prediction from './Prediction';

class Predictions extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <View style={style.container}>
                <FlatList
                    data={this.props.predictions}
                    keyExtractor={this._keyExtractor}
                    renderItem={this._renderItem} />
            </View>
        );
    }

    _keyExtractor = (prediction) => {
        return prediction.id;
    }

    _renderItem = (data) => {
        return (
            <Prediction
                prediction={data.item}
                title={data.item.description}
                description={data.item.description}
                onPress={this.props.onPressPrediction} />
        );
    }
}

export const style = StyleSheet.create({
    container: {
        backgroundColor: 'white',
    },
});
<commit_msg>Use correct properties from predictions response<commit_after>import React, { Component } from 'react';
import {
    StyleSheet,
    FlatList,
    View
} from 'react-native';
import Prediction from './Prediction';

class Predictions extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <View style={style.container}>
                <FlatList
                    data={this.props.predictions}
                    keyExtractor={this._keyExtractor}
                    renderItem={this._renderItem} />
            </View>
        );
    }

    _keyExtractor = (prediction) => {
        return prediction.place_id;
    }

    _renderItem = (data) => {
        return (
            <Prediction
                prediction={data.item}
                title={data.item.structured_formatting.main_text}
                description={data.item.structured_formatting.secondary_text}
                onPress={this.props.onPressPrediction} />
        );
    }
}

export const style = StyleSheet.create({
    container: {
        backgroundColor: 'white',
    },
});

{'fraction_non_alphanumeric': 0.11162790697674418, 'fraction_numerical': 0.0, 'mean_word_length': 1.7576923076923077, 'pattern_counts': {'":': 0, '<': 11, '<?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': '305969', 'n_tokens_mistral': 586, 'n_tokens_neox': 563, 'n_words': 103}