<commit_before>'use strict';

import React from 'react';
import ReactNative from 'react-native';
let { View, StyleSheet, TextInput, Text, PickerIOS} = ReactNative;


import {DatePickerComponent} from '../lib/DatePickerComponent';

export class DatePickerField extends React.Component{
  setDate(date){
    this.refs.datePickerComponent.setDate(date);
  }
  render(){
    return(<DatePickerComponent
      {...this.props}
      ref='datePickerComponent'
      labelStyle={formStyles.fieldText}
      valueStyle = {formStyles.fieldValue}

      valueContainerStyle = {[formStyles.alignRight,
          formStyles.horizontalContainer,this.props.valueContainerStyle]}
      containerStyle={[
        formStyles.fieldContainer,
        formStyles.horizontalContainer,
        this.props.containerStyle,
      ]}
      />)
    }

  }

      let formStyles = StyleSheet.create({
        form:{
<commit_msg>Allowing more styles of datePicker to be set through props.<commit_after>'use strict';

import React from 'react';
import ReactNative from 'react-native';
let { View, StyleSheet, TextInput, Text, PickerIOS} = ReactNative;


import {DatePickerComponent} from '../lib/DatePickerComponent';

export class DatePickerField extends React.Component{
  setDate(date){
    this.refs.datePickerComponent.setDate(date);
  }
  render(){
    return(<DatePickerComponent
      {...this.props}
      ref='datePickerComponent'
      labelStyle={[formStyles.fieldText, this.props.labelStyle]}
      valueStyle = {[formStyles.fieldValue,this.props.valueStyle]}

      valueContainerStyle = {[formStyles.alignRight,
          formStyles.horizontalContainer,this.props.valueContainerStyle]}
      containerStyle={[
        formStyles.fieldContainer,
        formStyles.horizontalContainer,
        this.props.containerStyle,
      ]}
      />)
    }

  }

      let formStyles = StyleSheet.create({
        form:{

{'fraction_non_alphanumeric': 0.10935023771790808, 'fraction_numerical': 0.0, 'mean_word_length': 3.4669811320754715, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7200652', 'n_tokens_mistral': 530, 'n_tokens_neox': 529, 'n_words': 102}