<commit_before>ScopeSelector = require '../lib/scope-selector'

describe "ScopeSelector", ->
  describe ".matches(scopes)", ->
    it "matches the asterix", ->
      expect(new ScopeSelector('*').matches(['a'])).toBeTruthy()
      expect(new ScopeSelector('*').matches(['b', 'c'])).toBeTruthy()
      expect(new ScopeSelector('a.*.c').matches(['a.b.c'])).toBeTruthy()
      expect(new ScopeSelector('a.*.c').matches(['a.b.c.d'])).toBeTruthy()
      expect(new ScopeSelector('a.*.c').matches(['a.b.d.c'])).toBeFalsy()

    it "matches prefixes", ->
      expect(new ScopeSelector('a').matches(['a'])).toBeTruthy()<commit_msg>Update scope-selector path in spec<commit_after>ScopeSelector = require '../src/scope-selector'

describe "ScopeSelector", ->
  describe ".matches(scopes)", ->
    it "matches the asterix", ->
      expect(new ScopeSelector('*').matches(['a'])).toBeTruthy()
      expect(new ScopeSelector('*').matches(['b', 'c'])).toBeTruthy()
      expect(new ScopeSelector('a.*.c').matches(['a.b.c'])).toBeTruthy()
      expect(new ScopeSelector('a.*.c').matches(['a.b.c.d'])).toBeTruthy()
      expect(new ScopeSelector('a.*.c').matches(['a.b.d.c'])).toBeFalsy()

    it "matches prefixes", ->
      expect(new ScopeSelector('a').matches(['a'])).toBeTruthy()
{'fraction_non_alphanumeric': 0.24034672970843185, 'fraction_numerical': 0.0, 'mean_word_length': 4.38135593220339, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '6488914', 'n_tokens_mistral': 431, 'n_tokens_neox': 426, 'n_words': 57}