<commit_before>import React, {Component} from 'react';
import axios from 'axios';
import CrimeMap from './crime_map';
import CrimeDisplayer from './crime_displayer';
import CrimeAdder from './crime_adder';
const API_KEY = 'hey! missing GOOGLEMAPS KEY';
const ROOT_URL = "http://localhost:1337/api";

class App extends Component {
  constructor(props) {
    super(props);

    this.state = {
      crimes: [],
      markers:[],
      curentCrime: null
    }

    this.updateMapWithFilters = this.updateMapWithFilters.bind(this);
  }
  componentDidMount()
  {
    console.log("calling in DID MOUNT");
    axios.get(ROOT_URL+ "/crimes")
    .then(response => {
      this.setState({
        crimes: response.data
      });
      const nMarkers = [];

      for (let i = 0; i < this.state.crimes.length; i++)
      {
        const position = new google.maps.LatLng(
            this.state.crimes[i].latitude,
            this.state.crimes[i].longitude
        );<commit_msg>cambiando http local for https en heroku<commit_after>import React, {Component} from 'react';
import axios from 'axios';
import CrimeMap from './crime_map';
import CrimeDisplayer from './crime_displayer';
import CrimeAdder from './crime_adder';
const API_KEY = 'hey! missing GOOGLEMAPS KEY';
const ROOT_URL =  "https://nocrimeback.herokuapp.com/api";//"http://localhost:1337/api";

class App extends Component {
  constructor(props) {
    super(props);

    this.state = {
      crimes: [],
      markers:[],
      curentCrime: null
    }

    this.updateMapWithFilters = this.updateMapWithFilters.bind(this);
  }
  componentDidMount()
  {
    console.log("calling in DID MOUNT");
    axios.get(ROOT_URL+ "/crimes")
    .then(response => {
      this.setState({
        crimes: response.data
      });
      const nMarkers = [];

      for (let i = 0; i < this.state.crimes.length; i++)
      {
        const position = new google.maps.LatLng(
            this.state.crimes[i].latitude,
            this.state.crimes[i].longitude
        );
{'fraction_non_alphanumeric': 0.13582089552238805, 'fraction_numerical': 0.004975124378109453, 'mean_word_length': 2.8304761904761904, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, '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': '315713', 'n_tokens_mistral': 661, 'n_tokens_neox': 642, 'n_words': 144}