<commit_before>import React, {Component} from 'react';
import ReactDOM from 'react-dom';
const MapApi = require('leaflet');
import {Button,Glyphicon,OverlayTrigger,Popover,Checkbox,Well} from 'react-bootstrap';

const buttonStyle = {
    width : '120px'
}

const layerStyle = {
    width : '150px'
}
const mapPopOver = (
  <Popover id="popover-positioned-left" title="Map">
     <Button style={buttonStyle}>    <Glyphicon glyph='fullscreen'/> Pan</Button><br/>
       <Button style={buttonStyle}>    <Glyphicon glyph='repeat'/> Rotate</Button><br/>
         <Button style={buttonStyle}>    <Glyphicon glyph='resize-full'/> FullScreen</Button><br/>
           <Button style={buttonStyle}>    <Glyphicon glyph='pencil'/> Draw</Button><br/>

  </Popover>
);


const searchPopOver = (
  <Popover id="popover-positioned-left" title="Map">
  Tmp
  </Popover>
);


const layersPopOver = (
  <Popover id="popover-positioned-left" title="Map">
    <div style={layerStyle}>
      <Button bsClass='btn btn-danger' style={{float:'right',marginTop:'-5px',padding:'2px'}}><Glyphicon glyph='remove' style={{fontSize:'90%'}}/>     </Button>
    <Checkbox>
      Facebook
    </Checkbox>
    <Glyphicon glyph='picture' style={{margin : '3px',fontSize:'150%',opacity:'0.25'}}/>
    <Glyphicon glyph='picture' style={{margin : '3px',fontSize:'150%',opacity:'0.50'}}/>
    <Glyphicon glyph='picture' style={{margin : '3px',fontSize:'150%',opacity:'0.75'}}/>
    <Glyphicon glyph='picture' style={{margin : '3px',fontSize:'150%',opacity:'1'}}/>
      <hr/>
    </div>

<div style={layerStyle}>
      <Button bsClass='btn btn-danger' style={{float:'right',marginTop:'-5px',padding:'2px'}}><Glyphicon glyph='remove' style={{fontSize:'90%'}}/>     </Button>
    <Checkbox><commit_msg>#29 Addded Search Control to the Map Tools<commit_after>import React, {Component} from 'react';
import ReactDOM from 'react-dom';
const MapApi = require('leaflet');
import {Button,Glyphicon,OverlayTrigger,Popover,Checkbox,FormGroup,ControlLabel,HelpBlock,FormControl} from 'react-bootstrap';


function FieldGroup({ id, label, help, ...props }) {
    return (
        <FormGroup controlId={id}>
            <ControlLabel>{label}</ControlLabel>
            <FormControl {...props} />
            {help && <HelpBlock>{help}</HelpBlock>}
        </FormGroup>
    );
}


const buttonStyle = {
    width : '120px'
}

const layerStyle = {
    width : '150px'
}
const mapPopOver = (
  <Popover id="popover-positioned-left" title="Map">
     <Button style={buttonStyle}>    <Glyphicon glyph='fullscreen'/> Pan</Button><br/>
       <Button style={buttonStyle}>    <Glyphicon glyph='repeat'/> Rotate</Button><br/>
         <Button style={buttonStyle}>    <Glyphicon glyph='resize-full'/> FullScreen</Button><br/>
           <Button style={buttonStyle}>    <Glyphicon glyph='pencil'/> Draw</Button><br/>

  </Popover>
);


const searchPopOver = (
  <Popover id="popover-positioned-left" title="Map">
    <FieldGroup label="Search"  type="text"/>
  </Popover>
);


const layersPopOver = (
  <Popover id="popover-positioned-left" title="Map">
    <div style={layerStyle}>
      <Button bsClass='btn btn-danger' style={{float:'right',marginTop:'-5px',padding:'2px'}}><Glyphicon glyph='remove' style={{fontSize:'90%'}}/>     </Button>
    <Checkbox>
      Facebook
    </Checkbox>
    <Glyphicon glyph='picture' style={{margin : '3px',fontSize:'150%',opacity:'0.25'}}/>
    <Glyphicon glyph='picture' style={{margin : '3px',fontSize:'150%',opacity:'0.50'}}/>
    <Glyphicon glyph='picture' style={{margin : '3px',fontSize:'150%',opacity:'0.75'}}/>
    <Glyphicon glyph='picture' style={{margin : '3px',fontSize:'150%',opacity:'1'}}/>
      <hr/>
    </div>

<div style={layerStyle}>
      <Button bsClass='btn btn-danger' style={{float:'right',marginTop:'-5px',padding:'2px'}}><Glyphicon glyph='remove' style={{fontSize:'90%'}}/>     </Button>
    <Checkbox>
{'fraction_non_alphanumeric': 0.19882141942095824, 'fraction_numerical': 0.021009479887266206, 'mean_word_length': 4.4601398601398605, 'pattern_counts': {'":': 0, '<': 87, '<?xml version=': 0, '>': 87, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4210622', 'n_tokens_mistral': 1347, 'n_tokens_neox': 1293, 'n_words': 227}