<commit_before>describe "Package management", ->
  fs = require("fs")
  verifyJson = (fn) -> 
    JSON.parse(fs.readFileSync("bower.json", "utf-8"))
  it "NPM", ->
    verifyJson "package.json"
  it "Component", ->
    verifyJson "component.json"
  it "Bower", ->
    bowerJson = require('bower-json')
    json = verifyJson "bower.json"
    bowerJson.validate(json)
<commit_msg>Skip package management specs in browser<commit_after>describe "Package management", ->
  return unless typeof window == 'undefined'

  fs = require("fs")
  verifyJson = (fn) ->
    JSON.parse(fs.readFileSync("bower.json", "utf-8"))
  it "NPM", ->
    verifyJson "package.json"
  it "Component", ->
    verifyJson "component.json"
  it "Bower", ->
    bowerJson = require('bower-json')
    json = verifyJson "bower.json"
    bowerJson.validate(json)
{'fraction_non_alphanumeric': 0.16203143893591293, 'fraction_numerical': 0.0024183796856106408, 'mean_word_length': 3.625698324022346, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '5090433', 'n_tokens_mistral': 280, 'n_tokens_neox': 274, 'n_words': 60}