<commit_before>utils   = require '../utils/utils.js'
helpers = require '../helpers/helpers.js'
faker   = require 'faker'
assert  = require 'assert'

activitySelector = '[testpath=activity-list] section:nth-of-type(1) [testpath=ActivityListItemView]:first-child'

module.exports =


  searchActivity: (browser) ->

    post     = helpers.postActivity(browser)
    selector = '[testpath=activity-list] [testpath=ActivityListItemView]:first-child'
    word     = post.split(' ')[0]

    browser
      .setValue                 '.kdtabhandlecontainer .search-input', word + '\n'
      .waitForElementVisible    '.kdtabpaneview.search', 25000
      .waitForElementVisible    selector, 25000
      .pause                    25000
      .assert.containsText      selector, word # Assertion
      .end()


  showMoreCommentLink: (browser) ->
<commit_msg>Tests:Activity:Others: Disabled search activity test.<commit_after>utils   = require '../utils/utils.js'
helpers = require '../helpers/helpers.js'
faker   = require 'faker'
assert  = require 'assert'

activitySelector = '[testpath=activity-list] section:nth-of-type(1) [testpath=ActivityListItemView]:first-child'

module.exports =


  # searchActivity: (browser) ->

  #   post     = helpers.postActivity(browser)
  #   selector = '[testpath=activity-list] [testpath=ActivityListItemView]:first-child'
  #   word     = post.split(' ')[0]

  #   browser
  #     .setValue                 '.kdtabhandlecontainer .search-input', word + '\n'
  #     .waitForElementVisible    '.kdtabpaneview.search', 25000
  #     .waitForElementVisible    selector, 25000
  #     .pause                    25000
  #     .assert.containsText      selector, word # Assertion
  #     .end()


  showMoreCommentLink: (browser) ->

{'fraction_non_alphanumeric': 0.12827822120866592, 'fraction_numerical': 0.019384264538198404, 'mean_word_length': 2.8741721854304636, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '5087203', 'n_tokens_mistral': 559, 'n_tokens_neox': 529, 'n_words': 100}