<commit_before>/* global google */
import {
  default as React,
  Component,
} from "react";

import {
  withGoogleMap,
  GoogleMap,
  Marker,
} from "react-google-maps/lib";

import SearchBox from "react-google-maps/lib/places/SearchBox";
import RentalQueries from "../../welcome/components/RentalQueries";


const INPUT_STYLE = {
  boxSizing: `border-box`,
  MozBoxSizing: `border-box`,
  border: `1px solid transparent`,
  width: `72vh`,
  height: `10vh`,
  marginTop: `0px`,
  padding: `0 12px`,
  borderRadius: `5px`,
  boxShadow: `0 2px 2px rgba(33, 33, 33, 0.4)`,
  fontSize: `14px`,
  outline: `none`,
  textOverflow: `ellipses`,
  background: `navy`,
  color: `white`,
  opacity: `0.69`
};

const SearchBoxExampleGoogleMap = withGoogleMap(props => (
  <GoogleMap
    ref={props.onMapMounted}
    defaultZoom={13}
    center={props.center}
    onBoundsChanged={props.onBoundsChanged}
  >
    <SearchBox
      ref={props.onSearchBoxMounted}
      bounds={props.bounds}
      controlPosition={google.maps.ControlPosition.CENTER}
      onPlacesChanged={props.onPlacesChanged}
      inputPlaceholder="Find your new Hôm"
      inputStyle={INPUT_STYLE}
    />
    <RentalQueries />
    {props.markers.map((marker, index) => (
      <Marker position={marker.position} key={index} />
    ))}
  </GoogleMap>
));

/*
 * https://developers.google.com/maps/documentation/javascript/examples/places-searchbox
 *
 * Add <script src="https://maps.googleapis.com/maps/api/js"></script> to your HTML to provide google.maps reference
 */
export default class SearchBoxExample extends Component {
  state = {
    bounds: null,
    center: {
      lat: 37.7749,
      lng: -122.4194,
    },
    markers: [],
    priceRange: 'lowest', 
    propertyType: 'room',   
  };<commit_msg>Default state set for property type and price range<commit_after>/* global google */
import {
  default as React,
  Component,
} from "react";

import {
  withGoogleMap,
  GoogleMap,
  Marker,
} from "react-google-maps/lib";

import SearchBox from "react-google-maps/lib/places/SearchBox";
import RentalQueries from "../../welcome/components/RentalQueries";


const INPUT_STYLE = {
  boxSizing: `border-box`,
  MozBoxSizing: `border-box`,
  border: `1px solid transparent`,
  width: `72vh`,
  height: `10vh`,
  marginTop: `0px`,
  padding: `0 12px`,
  borderRadius: `5px`,
  boxShadow: `0 2px 2px rgba(33, 33, 33, 0.4)`,
  fontSize: `14px`,
  outline: `none`,
  textOverflow: `ellipses`,
  background: `navy`,
  color: `white`,
  opacity: `0.69`
};

const SearchBoxExampleGoogleMap = withGoogleMap(props => (
  <GoogleMap
    ref={props.onMapMounted}
    defaultZoom={13}
    center={props.center}
    onBoundsChanged={props.onBoundsChanged}
  >
    <SearchBox
      ref={props.onSearchBoxMounted}
      bounds={props.bounds}
      controlPosition={google.maps.ControlPosition.CENTER}
      onPlacesChanged={props.onPlacesChanged}
      inputPlaceholder="Find your new Hôm"
      inputStyle={INPUT_STYLE}
    />
    <RentalQueries />
    {props.markers.map((marker, index) => (
      <Marker position={marker.position} key={index} />
    ))}
  </GoogleMap>
));

/*
 * https://developers.google.com/maps/documentation/javascript/examples/places-searchbox
 *
 * Add <script src="https://maps.googleapis.com/maps/api/js"></script> to your HTML to provide google.maps reference
 */
export default class SearchBoxExample extends Component {
  state = {
    bounds: null,
    center: {
      lat: 37.7749,
      lng: -122.4194,
    },
    markers: [],
    priceRange: 'lowest', 
    propertyType: 'apartment',   
  };
{'fraction_non_alphanumeric': 0.14640961162335847, 'fraction_numerical': 0.022911427773120982, 'mean_word_length': 3.5373891001267426, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, 'https://': 4, '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': '5320176', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1201, 'n_words': 248}