<commit_before>import moment from 'moment'

const { getPerson, searchForPeople } = require('./')

describe('searching dbpedia', () => {
  it('retrieves an individual result', (done) => {
    searchForPeople('<NAME>').then(lst => {
      expect(lst.length).toEqual(2)

      console.log('[Jo<NAME>]')
      console.log(lst[0].birthDate)
      console.log(moment('1938-6-16'))
      console.log(lst[0].birthDate.isSame(moment('1938-6-16')))

      expect(lst[0].uri).toEqual('http://dbpedia.org/resource/Joyce_Carol_Oates')<commit_msg>Give the DBPedia search test more time to run<commit_after>import moment from 'moment'

const { getPerson, searchForPeople } = require('./')

describe('searching dbpedia', () => {
  var originalTimeout;

  beforeEach(() => {
    originalTimeout = jasmine.DEFAULT_TIMEOUT_INTERVAL
    jasmine.DEFAULT_TIMEOUT_INTERVAL = 10000
  });

  afterEach(() => jasmine.DEFAULT_TIMEOUT_INTERVAL = originalTimeout)

  it('retrieves an individual result', (done) => {
    searchForPeople('<NAME>').then(lst => {
      expect(lst.length).toEqual(2)

      console.log('[Jo<NAME>]')
      console.log(lst[0].birthDate)
      console.log(moment('1938-6-16'))
      console.log(lst[0].birthDate.isSame(moment('1938-6-16')))

      expect(lst[0].uri).toEqual('http://dbpedia.org/resource/Joyce_Carol_Oates')
{'fraction_non_alphanumeric': 0.17562452687358063, 'fraction_numerical': 0.031037093111279335, 'mean_word_length': 4.330645161290323, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '2116590', 'n_tokens_mistral': 473, 'n_tokens_neox': 435, 'n_words': 61}