<commit_before>

import React, { Component } from 'react';
import { Provider, connect } from 'react-redux';
import MapView from 'react-native-maps';
import { events } from './data';
import { createStore, applyMiddleware } from 'redux';
import { apiMiddleware, reducer } from './redux';
import { MKButton, MKColor } from 'react-native-material-kit';

import Entertainment from '../assets/Entertainment.png';
import FoodStand from '../assets/FoodStand.png';
import Obstacle from '../assets/Obstacle.png';
import Yourfriends from '../assets/Yourfriends.png';
import StreetMarket from '../assets/StreetMarket.png';
import Meetup from '../assets/Meetup.png';
import MarkerPopup from './MarkerPopup';

import {
  ActivityIndicator,
  RefreshControl,
  AppRegistry,
  StyleSheet,
  Text,
  View,
  Dimensions,
} from 'react-native';

const { width, height } = Dimensions.get('window')

const SCREEN_HEIGHT = height;
const SCREEN_WIDTH = width;
const ASPECT_RATIO = width / height;
const LATITUDE_DELTA = 0.0922;
const LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO;

const markerIcons = {
  'Entertainment': Entertainment,
  'Food Stand': FoodStand,
  'Obstacle': Obstacle,
  'Your friends': Yourfriends,
  'Street Market': StreetMarket,
  'Meet up': Meetup
}

const ColoredFab = MKButton.plainFab()
  .withStyle({top: 280, left: 150})
  .withBackgroundColor(MKColor.BlueGrey)
  .build();

@connect(
  state => ({
    events: state.events,
    loading: state.loading,
  }),
  dispatch => ({
    refresh: () => dispatch({type: 'GET_EVENT_DATA'}),
  }),
)

export default class Events extends Component {
  constructor(props) {
    super(props);
    this.state = {
      region: {
        latitude: 43.644546,
        longitude: -79.395170,
        latitudeDelta: 0.0922,
        longitudeDelta: 0.0421,
      },

    }
  };<commit_msg>android icon position compatibility<commit_after>

import React, { Component } from 'react';
import { Provider, connect } from 'react-redux';
import MapView from 'react-native-maps';
import { events } from './data';
import { createStore, applyMiddleware } from 'redux';
import { apiMiddleware, reducer } from './redux';
import { MKButton, MKColor } from 'react-native-material-kit';

import Entertainment from '../assets/Entertainment.png';
import FoodStand from '../assets/FoodStand.png';
import Obstacle from '../assets/Obstacle.png';
import Yourfriends from '../assets/Yourfriends.png';
import StreetMarket from '../assets/StreetMarket.png';
import Meetup from '../assets/Meetup.png';
import MarkerPopup from './MarkerPopup';

import {
  ActivityIndicator,
  RefreshControl,
  AppRegistry,
  StyleSheet,
  Text,
  View,
  Dimensions,
} from 'react-native';

const { width, height } = Dimensions.get('window')

const SCREEN_HEIGHT = height;
const SCREEN_WIDTH = width;
const ASPECT_RATIO = width / height;
const LATITUDE_DELTA = 0.0922;
const LONGITUDE_DELTA = LATITUDE_DELTA * ASPECT_RATIO;

const markerIcons = {
  'Entertainment': Entertainment,
  'Food Stand': FoodStand,
  'Obstacle': Obstacle,
  'Your friends': Yourfriends,
  'Street Market': StreetMarket,
  'Meet up': Meetup
}

const ColoredFab = MKButton.plainFab()
  .withStyle({top: (height-400), left: (width-250)})
  .withBackgroundColor(MKColor.BlueGrey)
  .build();

@connect(
  state => ({
    events: state.events,
    loading: state.loading,
  }),
  dispatch => ({
    refresh: () => dispatch({type: 'GET_EVENT_DATA'}),
  }),
)

export default class Events extends Component {
  constructor(props) {
    super(props);
    this.state = {
      region: {
        latitude: 43.644546,
        longitude: -79.395170,
        latitudeDelta: 0.0922,
        longitudeDelta: 0.0421,
      },

    }
  };
{'fraction_non_alphanumeric': 0.13748308525033828, 'fraction_numerical': 0.020027063599458727, 'mean_word_length': 3.9148936170212765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3370005', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1183, 'n_words': 299}