<commit_before>// __tests__/date-picker-tests.js
jest.unmock('../src/components/elements/inputs/date/datetime-picker')

import React from 'react'
import TestUtils from 'react-addons-test-utils'
import DateTimePicker from '../src/components/elements/inputs/date/datetime-picker'

describe('Basic date time picker with value 2012-01-31 14:35:00', () => {
  let dateTimePicker

  beforeEach(() => {
    const renderer = TestUtils.createRenderer()
    renderer.render(
      <DateTimePicker value='2012-01-31T14:35:00+00:00' />
    )
    dateTimePicker = renderer.getRenderOutput()
  })

  it('sets the year to 2012', () => {
    const year = dateTimePicker.props.children[0]
    expect(year.props.value.getUTCFullYear()).toEqual(2012)
  })

  it('sets the month to 0', () => {
    const month = dateTimePicker.props.children[1]
    expect(month.props.value.getUTCMonth()).toEqual(0)
  })

  it('sets the day to 31', () => {
    const day = dateTimePicker.props.children[2]
    expect(day.props.value.getUTCDate()).toEqual(31)
  })

  it('sets the hour to 14', () => {
    const hour = dateTimePicker.props.children[3]
    expect(hour.props.value.getUTCHours()).toEqual(14)
  })

  it('sets the minutes to 35', () => {
    const minutes = dateTimePicker.props.children[5]
    console.log(dateTimePicker.props.children[5].props.value)
    expect(minutes.props.value.getUTCMinutes()).toEqual(35)
  })
})<commit_msg>fix remove console.log<commit_after>// __tests__/date-picker-tests.js
jest.unmock('../src/components/elements/inputs/date/datetime-picker')

import React from 'react'
import TestUtils from 'react-addons-test-utils'
import DateTimePicker from '../src/components/elements/inputs/date/datetime-picker'

describe('Basic date time picker with value 2012-01-31 14:35:00', () => {
  let dateTimePicker

  beforeEach(() => {
    const renderer = TestUtils.createRenderer()
    renderer.render(
      <DateTimePicker value='2012-01-31T14:35:00+00:00' />
    )
    dateTimePicker = renderer.getRenderOutput()
  })

  it('sets the year to 2012', () => {
    const year = dateTimePicker.props.children[0]
    expect(year.props.value.getUTCFullYear()).toEqual(2012)
  })

  it('sets the month to 0', () => {
    const month = dateTimePicker.props.children[1]
    expect(month.props.value.getUTCMonth()).toEqual(0)
  })

  it('sets the day to 31', () => {
    const day = dateTimePicker.props.children[2]
    expect(day.props.value.getUTCDate()).toEqual(31)
  })

  it('sets the hour to 14', () => {
    const hour = dateTimePicker.props.children[3]
    expect(hour.props.value.getUTCHours()).toEqual(14)
  })

  it('sets the minutes to 35', () => {
    const minutes = dateTimePicker.props.children[5]
    expect(minutes.props.value.getUTCMinutes()).toEqual(35)
  })
})
{'fraction_non_alphanumeric': 0.16057866184448463, 'fraction_numerical': 0.043037974683544304, 'mean_word_length': 3.8869257950530036, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 19, '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': '345067', 'n_tokens_mistral': 987, 'n_tokens_neox': 912, 'n_words': 161}