<commit_before>import React from 'react';
import {ListView, ActivityIndicator} from 'react-native';
import style from '../Style';
import {StackNavigator} from 'react-navigation';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import axios from 'axios';
import GroupRow from './containers/groupRow';

export default class Home extends React.Component {

    static navigationOptions = {
        drawerLabel: 'Liste des groupes',
        drawerIcon: ({tintColor}) => (
            <MaterialIcons
                name="search"
                size={24}
                style={{color: tintColor}}
            />
        ),
        title: 'Liste des groupes'
    };

    constructor(props) {
        super(props);
        this.state = {
            list: null
        };
        this.fetchList();
    }

    fetchList() {
        axios.get('https://hackjack.info/et/json.php')
            .then((response) => {
                let groupList = [];
                for (let groupName in response.data) {
                    if (response.data.hasOwnProperty(groupName)) {
                        groupList.push({name: groupName, code: response.data[groupName]})
                    }
                }
                console.log(groupList);
                this.setState({list: groupList});
            })
    }

    render() {
        if (this.state.list === null) {
            return (
                <ActivityIndicator style={style.containerView} size="large" animating={true}/>
            );
        } else {
            const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
            return (
                <ListView
                    dataSource={ds.cloneWithRows(this.state.list)}
                    pageSize={10}
                    renderRow={(row, j, index) => <GroupRow group={row} index={parseInt(index)}/>}
                />
            );
        }
    }
}<commit_msg>Remove console.log<commit_after>import React from 'react';
import {ListView, ActivityIndicator} from 'react-native';
import style from '../Style';
import {StackNavigator} from 'react-navigation';
import MaterialIcons from 'react-native-vector-icons/MaterialIcons';
import axios from 'axios';
import GroupRow from './containers/groupRow';

export default class Home extends React.Component {

    static navigationOptions = {
        drawerLabel: 'Liste des groupes',
        drawerIcon: ({tintColor}) => (
            <MaterialIcons
                name="search"
                size={24}
                style={{color: tintColor}}
            />
        ),
        title: 'Liste des groupes'
    };

    constructor(props) {
        super(props);
        this.state = {
            list: null
        };
        this.fetchList();
    }

    fetchList() {
        axios.get('https://hackjack.info/et/json.php')
            .then((response) => {
                let groupList = [];
                for (let groupName in response.data) {
                    if (response.data.hasOwnProperty(groupName)) {
                        groupList.push({name: groupName, code: response.data[groupName]})
                    }
                }
                this.setState({list: groupList});
            })
    }

    render() {
        if (this.state.list === null) {
            return (
                <ActivityIndicator style={style.containerView} size="large" animating={true}/>
            );
        } else {
            const ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
            return (
                <ListView
                    dataSource={ds.cloneWithRows(this.state.list)}
                    pageSize={10}
                    renderRow={(row, j, index) => <GroupRow group={row} index={parseInt(index)}/>}
                />
            );
        }
    }
}
{'fraction_non_alphanumeric': 0.12738686895108553, 'fraction_numerical': 0.00418519487313628, 'mean_word_length': 1.6138072453861927, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '7614792', 'n_tokens_mistral': 1036, 'n_tokens_neox': 1001, 'n_words': 210}