<commit_before>require 'spec_helper'

describe 'zxcvbn over a set of example passwords' do
  include Zxcvbn

  TEST_PASSWORDS = [
    '<PASSWORD>',
    '<PASSWORD>@!',
    '<PASSWORD>',
    '<PASSWORD>',
    'coRrecth0rseba++ery9.23.2007staple$',

    'D0g..................',
    'abcdefghijk987654321',
    'neverforget13/3/1997',
    '<PASSWORD>wsx3edc',

    'temp<PASSWORD>',
    'briansmith',
    'briansmith<PASSWORD>',
    'password1',
    '<PASSWORD>',
    '<PASSWORD>',
    'ScoRpi0ns',
    'do you know',

    'ryanhunter2000',
    'rianhunter2000',

    'asdfghju7654rewq',
    'AOEUIDHG&*()LS_',

    '12345678',
    'defghi6789',

    'rosebud',
    'Rosebud',
    'ROSEBUD',
    'rosebuD',
    'ros3bud99',
    'r0s3bud99',
    'R<PASSWORD>',

    'verlineVANDERMARK',

    'eheuczkqyq',
    'rWibMFACxAUGZmxhVncy',
    'Ba9ZyWABu99[BK#6MBgbH88Tofv)vs$w'
  ]

  it 'gives back the same score' do
    JsZxcvbnHelpers::TEST_PASSWORDS.each do |password|
      zxcvbn(password).should eq js_zxcvbn(password)
    end
  end
end<commit_msg>Mark integration spec as pending<commit_after>require 'spec_helper'

describe 'zxcvbn over a set of example passwords' do
  include Zxcvbn

  TEST_PASSWORDS = [
    '<PASSWORD>',
    '<PASSWORD>@!',
    '<PASSWORD>',
    '<PASSWORD>le',
    'coRrecth0rseba++ery9.23.2007staple$',

    'D0g..................',
    'abcdefghijk987654321',
    'neverforget13/3/1997',
    '1qaz2wsx3edc',

    '<PASSWORD>',
    'briansmith',
    'briansmith4mayor',
    '<PASSWORD>',
    '<PASSWORD>',
    'thx1138',
    'ScoRpi0ns',
    'do you know',

    'ryanhunter2000',
    'rianhunter2000',

    'asdfghju7654rewq',
    'AOEUIDHG&*()LS_',

    '12345678',
    'defghi6789',

    'rosebud',
    'Rosebud',
    'ROSEBUD',
    'rosebuD',
    'ros3bud99',
    'r0s3bud99',
    'R0$38uD99',

    'verlineVANDERMARK',

    'eheuczkqyq',
    'rWibMFACxAUGZmxhVncy',
    'Ba9ZyWABu99[BK#6MBgbH88Tofv)vs$w'
  ]

  it 'gives back the same score' do
    pending do
      JsZxcvbnHelpers::TEST_PASSWORDS.each do |password|
        zxcvbn(password).should eq <PASSWORD>zxcvbn(password)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.16526217228464418, 'fraction_numerical': 0.06601123595505617, 'mean_word_length': 2.8996350364963503, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '6478057', 'n_tokens_mistral': 1006, 'n_tokens_neox': 916, 'n_words': 138}