<commit_before>/* eslint-disable */

const Nightmare = require('nightmare');
const nightmare = Nightmare({ show: true });

nightmare
  .goto('https://duckduckgo.com')
  .type('#search_form_input_homepage', 'github nightmare')
  .click('#search_button_homepage')
  .wait('#zero_click_wrapper .c-info__title a')
  .evaluate(function () {
    return document.querySelector('#zero_click_wrapper .c-info__title a').href;
  })
  .end()
  .then(function (result) {
    console.log(result);
  })
  .catch(function (error) {
    console.error('Search failed:', error);
  });<commit_msg>feat: test baidu.com by nightmare<commit_after>/* eslint-disable */

const Nightmare = require('nightmare');
const nightmare = Nightmare({ show: true });

nightmare
  .goto('https://baidu.com')
  .type('#kw', 'github nightmare')
  .click('#su')
  .wait('.result.c-container .t.c-title-en a')
  .evaluate(function () {
    return document.querySelector('.result.c-container .t.c-title-en a').href;
  })
  .end()
  .then(function (result) {
    console.log(result);
  })
  .catch(function (error) {
    console.error('Search failed:', error);
  });
{'fraction_non_alphanumeric': 0.18699910952804988, 'fraction_numerical': 0.0, 'mean_word_length': 4.155963302752293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '1311076', 'n_tokens_mistral': 376, 'n_tokens_neox': 375, 'n_words': 70}