<commit_before>helpers  = require '../helpers/helpers.js'
utils    = require '../utils/utils.js'
teamsHelpers = require '../helpers/teamshelpers.js'


module.exports =


  # createTeam: (browser) ->

  #   user = utils.getUser(yes)

  #   browser.url helpers.getUrl()
  #   browser.maximizeWindow()

  #   teamsHelpers.setCookie(browser)

  #   teamsHelpers.openTeamsPage(browser)
  #   teamsHelpers.fillSignUpFormOnTeamsHomePage(browser, user)
  #   teamsHelpers.enterTeamURL(browser)
  #   # teamsHelpers.enterEmailDomains(browser)
  #   # teamsHelpers.enterInvites(browser)
  #   teamsHelpers.fillUsernamePasswordForm(browser, user)
  #   # teamsHelpers.setupStackPage(browser)
  #   # teamsHelpers.congratulationsPage(browser)
  #   # teamsHelpers.loginToTeam(browser, user)

  #   browser.end()


  # loginTeam: (browser) ->

  #   teamsHelpers.loginTeam(browser)
  #   browser.end()


  # openTeamSettings: (browser) ->

  #   teamsHelpers.loginTeam(browser)
  #   teamsHelpers.clickTeamSettings(browser)

  #   browser.end()


  # seeTeamNameOnSideBar: (browser) ->

  #   user = teamsHelpers.loginTeam(browser)

  #   teamsHelpers.seeTeamNameOnsideBar(browser, user.teamSlug)
  #   browser.end()


  # checkTeamSettings: (browser) ->

  #   user = teamsHelpers.loginTeam(browser)
  #   teamsHelpers.clickTeamSettings(browser)

  #   teamSettingsSelector = '.AppModal--admin-tabs .general-settings'

  #   browser
  #     .waitForElementVisible  teamSettingsSelector, 20000
  #     .waitForElementVisible  'input[name=title]', 20000
  #     .assert.valueContains   'input[name=title]', user.name
  #     .waitForElementVisible  'input[name=url]', 20000
  #     .assert.valueContains   'input[name=url]', user.teamSlug
  #     .waitForElementVisible  '.avatar-upload .avatar', 20000
  #     .end()


  # stacks: (browser) ->

  #   modalSelector         = '.kdmodal-content .AppModal-content'
  #   providerSelector      = "#{modalSelector} .stack-onboarding .provider-selection"
  #   machineSelector       = "#{providerSelector} .providers"
  #   stackPreview          = "#{modalSelector} .stack-preview"
  #   codeSelector          = "#{stackPreview} .has-markdown"
  #   footerSelector        = "#{modalSelector} .stacks .footer"
  #   nextButtonSelector    = "#{footerSelector} button.next"
  #   awsSelector           = "#{machineSelector} .aws"
  #   configurationSelector = "#{modalSelector} .configuration .server-configuration"
  #   inputSelector         = "#{configurationSelector} .Database"
  #   mysqlSelector         = "#{inputSelector} .mysql input.checkbox + label"
  #   postgresqlSelector    = "#{inputSelector} .postgresql input.checkbox + label"
  #   server1PageSelector   = "#{modalSelector} .code-setup .server-1"
  #   githubSelector        = "#{server1PageSelector} .box-wrapper .github"
  #   bitbucketSelector     = "#{server1PageSelector} .box-wrapper .bitbucket"
  #   editorSelector        = "#{modalSelector} .editor-main"

  #   teamsHelpers.loginTeam(browser)
  #   teamsHelpers.startStackCreate(browser)

  #   browser
  #     .waitForElementVisible  providerSelector, 20000
  #     .waitForElementVisible  awsSelector, 20000
  #     .waitForElementVisible  "#{machineSelector} .koding" , 20000 # Assertion
  #     .click                  awsSelector
  #     .waitForElementVisible  stackPreview, 20000
  #     .waitForElementVisible  codeSelector, 20000
  #     .assert.containsText    codeSelector, 'koding_group_slug'
  #     .waitForElementVisible  footerSelector, 20000
  #     .waitForElementVisible  nextButtonSelector, 20000
  #     .pause                  2000 # wait for animation
  #     .click                  nextButtonSelector
  #     .waitForElementVisible  configurationSelector, 20000
  #     .pause                  2000 # wait for animation
  #     .waitForElementVisible  mysqlSelector, 20000
  #     .click                  mysqlSelector
  #     .pause                  2000 # wait for animation
  #     .waitForElementVisible  postgresqlSelector, 20000
  #     .click                  postgresqlSelector
  #     .waitForElementVisible  stackPreview, 20000
  #     .assert.containsText    codeSelector, 'mysql postgresql'
  #     .waitForElementVisible  nextButtonSelector, 20000
  #     .pause                  2000 # wait for animation
  #     .click                  nextButtonSelector
  #     .waitForElementVisible  server1PageSelector, 20000
  #     .waitForElementVisible  githubSelector, 20000 # Assertion
  #     .waitForElementVisible  bitbucketSelector, 20000 # Assertion
  #     .waitForElementVisible  nextButtonSelector, 20000
  #     .click                  nextButtonSelector
  #     .waitForElementVisible  "#{modalSelector} .define-stack-view", 20000
  #     .waitForElementVisible  editorSelector, 20000
  #     .assert.containsText    editorSelector, 'aws_instance'
  #     .end()


  # inviteUser: (browser) ->

  #   invitationsModalSelector = ".kdmodal-content  .AppModal--admin-tabs .invitations"
  #   inviteButtonSelector     = "#{invitationsModalSelector} button.invite"
  #   inviteUserView           = "#{invitationsModalSelector} .invite-view"
  #   emailInputSelector       = "#{inviteUserView} .invite-inputs input.user-email"
  #   userEmail                = "#{helpers.getFakeText().split(' ')[0]}<EMAIL>"
  #   inviteMemberButton       = "#{invitationsModalSelector} button.invite-members"
  #   cancelButton             = "#{invitationsModalSelector} button.cancel"
  #   notificationView         = '.kdnotification'
  #   pendingMemberView        = "#{invitationsModalSelector} .kdlistitemview-member.pending"

  #   user = teamsHelpers.loginTeam(browser)
  #   teamsHelpers.clickTeamSettings(browser)

  #   teamsHelpers.openInvitationsTab(browser)

  #   browser
  #     .waitForElementVisible  inviteButtonSelector, 20000
  #     .click                  inviteButtonSelector
  #     .waitForElementVisible  inviteUserView, 20000
  #     .waitForElementVisible  emailInputSelector, 20000
  #     .setValue               emailInputSelector, userEmail
  #     .waitForElementVisible  inviteMemberButton, 20000
  #     .click                  inviteMemberButton
  #     .waitForElementVisible  notificationView, 20000
  #     .assert.containsText    notificationView, 'All invites sent'
  #     .waitForElementVisible  cancelButton, 20000
  #     .click                  cancelButton
  #     .waitForElementVisible  pendingMemberView, 20000
  #     .assert.containsText    pendingMemberView, userEmail
  #     .end()
<commit_msg>minor: fix syntax error on commented out test<commit_after>helpers  = require '../helpers/helpers.js'
utils    = require '../utils/utils.js'
teamsHelpers = require '../helpers/teamshelpers.js'


module.exports = {}


  # createTeam: (browser) ->

  #   user = utils.getUser(yes)

  #   browser.url helpers.getUrl()
  #   browser.maximizeWindow()

  #   teamsHelpers.setCookie(browser)

  #   teamsHelpers.openTeamsPage(browser)
  #   teamsHelpers.fillSignUpFormOnTeamsHomePage(browser, user)
  #   teamsHelpers.enterTeamURL(browser)
  #   # teamsHelpers.enterEmailDomains(browser)
  #   # teamsHelpers.enterInvites(browser)
  #   teamsHelpers.fillUsernamePasswordForm(browser, user)
  #   # teamsHelpers.setupStackPage(browser)
  #   # teamsHelpers.congratulationsPage(browser)
  #   # teamsHelpers.loginToTeam(browser, user)

  #   browser.end()


  # loginTeam: (browser) ->

  #   teamsHelpers.loginTeam(browser)
  #   browser.end()


  # openTeamSettings: (browser) ->

  #   teamsHelpers.loginTeam(browser)
  #   teamsHelpers.clickTeamSettings(browser)

  #   browser.end()


  # seeTeamNameOnSideBar: (browser) ->

  #   user = teamsHelpers.loginTeam(browser)

  #   teamsHelpers.seeTeamNameOnsideBar(browser, user.teamSlug)
  #   browser.end()


  # checkTeamSettings: (browser) ->

  #   user = teamsHelpers.loginTeam(browser)
  #   teamsHelpers.clickTeamSettings(browser)

  #   teamSettingsSelector = '.AppModal--admin-tabs .general-settings'

  #   browser
  #     .waitForElementVisible  teamSettingsSelector, 20000
  #     .waitForElementVisible  'input[name=title]', 20000
  #     .assert.valueContains   'input[name=title]', user.name
  #     .waitForElementVisible  'input[name=url]', 20000
  #     .assert.valueContains   'input[name=url]', user.teamSlug
  #     .waitForElementVisible  '.avatar-upload .avatar', 20000
  #     .end()


  # stacks: (browser) ->

  #   modalSelector         = '.kdmodal-content .AppModal-content'
  #   providerSelector      = "#{modalSelector} .stack-onboarding .provider-selection"
  #   machineSelector       = "#{providerSelector} .providers"
  #   stackPreview          = "#{modalSelector} .stack-preview"
  #   codeSelector          = "#{stackPreview} .has-markdown"
  #   footerSelector        = "#{modalSelector} .stacks .footer"
  #   nextButtonSelector    = "#{footerSelector} button.next"
  #   awsSelector           = "#{machineSelector} .aws"
  #   configurationSelector = "#{modalSelector} .configuration .server-configuration"
  #   inputSelector         = "#{configurationSelector} .Database"
  #   mysqlSelector         = "#{inputSelector} .mysql input.checkbox + label"
  #   postgresqlSelector    = "#{inputSelector} .postgresql input.checkbox + label"
  #   server1PageSelector   = "#{modalSelector} .code-setup .server-1"
  #   githubSelector        = "#{server1PageSelector} .box-wrapper .github"
  #   bitbucketSelector     = "#{server1PageSelector} .box-wrapper .bitbucket"
  #   editorSelector        = "#{modalSelector} .editor-main"

  #   teamsHelpers.loginTeam(browser)
  #   teamsHelpers.startStackCreate(browser)

  #   browser
  #     .waitForElementVisible  providerSelector, 20000
  #     .waitForElementVisible  awsSelector, 20000
  #     .waitForElementVisible  "#{machineSelector} .koding" , 20000 # Assertion
  #     .click                  awsSelector
  #     .waitForElementVisible  stackPreview, 20000
  #     .waitForElementVisible  codeSelector, 20000
  #     .assert.containsText    codeSelector, 'koding_group_slug'
  #     .waitForElementVisible  footerSelector, 20000
  #     .waitForElementVisible  nextButtonSelector, 20000
  #     .pause                  2000 # wait for animation
  #     .click                  nextButtonSelector
  #     .waitForElementVisible  configurationSelector, 20000
  #     .pause                  2000 # wait for animation
  #     .waitForElementVisible  mysqlSelector, 20000
  #     .click                  mysqlSelector
  #     .pause                  2000 # wait for animation
  #     .waitForElementVisible  postgresqlSelector, 20000
  #     .click                  postgresqlSelector
  #     .waitForElementVisible  stackPreview, 20000
  #     .assert.containsText    codeSelector, 'mysql postgresql'
  #     .waitForElementVisible  nextButtonSelector, 20000
  #     .pause                  2000 # wait for animation
  #     .click                  nextButtonSelector
  #     .waitForElementVisible  server1PageSelector, 20000
  #     .waitForElementVisible  githubSelector, 20000 # Assertion
  #     .waitForElementVisible  bitbucketSelector, 20000 # Assertion
  #     .waitForElementVisible  nextButtonSelector, 20000
  #     .click                  nextButtonSelector
  #     .waitForElementVisible  "#{modalSelector} .define-stack-view", 20000
  #     .waitForElementVisible  editorSelector, 20000
  #     .assert.containsText    editorSelector, 'aws_instance'
  #     .end()


  # inviteUser: (browser) ->

  #   invitationsModalSelector = ".kdmodal-content  .AppModal--admin-tabs .invitations"
  #   inviteButtonSelector     = "#{invitationsModalSelector} button.invite"
  #   inviteUserView           = "#{invitationsModalSelector} .invite-view"
  #   emailInputSelector       = "#{inviteUserView} .invite-inputs input.user-email"
  #   userEmail                = "#{helpers.getFakeText().split(' ')[0]}<EMAIL>"
  #   inviteMemberButton       = "#{invitationsModalSelector} button.invite-members"
  #   cancelButton             = "#{invitationsModalSelector} button.cancel"
  #   notificationView         = '.kdnotification'
  #   pendingMemberView        = "#{invitationsModalSelector} .kdlistitemview-member.pending"

  #   user = teamsHelpers.loginTeam(browser)
  #   teamsHelpers.clickTeamSettings(browser)

  #   teamsHelpers.openInvitationsTab(browser)

  #   browser
  #     .waitForElementVisible  inviteButtonSelector, 20000
  #     .click                  inviteButtonSelector
  #     .waitForElementVisible  inviteUserView, 20000
  #     .waitForElementVisible  emailInputSelector, 20000
  #     .setValue               emailInputSelector, userEmail
  #     .waitForElementVisible  inviteMemberButton, 20000
  #     .click                  inviteMemberButton
  #     .waitForElementVisible  notificationView, 20000
  #     .assert.containsText    notificationView, 'All invites sent'
  #     .waitForElementVisible  cancelButton, 20000
  #     .click                  cancelButton
  #     .waitForElementVisible  pendingMemberView, 20000
  #     .assert.containsText    pendingMemberView, userEmail
  #     .end()

{'fraction_non_alphanumeric': 0.10181012754907202, 'fraction_numerical': 0.025509814404643703, 'mean_word_length': 2.7745748054194292, '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': '5505843', 'n_tokens_mistral': 4117, 'n_tokens_neox': 3853, 'n_words': 637}