<commit_before>require 'formula'

class Npm <Formula
  url 'http://github.com/isaacs/npm/tarball/v0.2.3'
  homepage 'http://github.com/isaacs/npm'
  md5 'b910a8d98c6aec87f67428ba67fa6ade'
  head 'git://github.com/isaacs/npm.git'

  depends_on 'node'

  skip_clean 'share/npm/bin'

  def executable; <<-EOS
#!/bin/sh
exec "#{libexec}/cli.js" "$@"
EOS
  end

  def node_lib
    HOMEBREW_PREFIX+"lib/node"
  end

  def share_bin
    HOMEBREW_PREFIX+"share/npm/bin"
  end

  def install
    # Set a root & binroot that won't get wiped between updates
    share_bin.mkpath
    inreplace 'lib/utils/default-config.js' do |s|<commit_msg>update npm to 0.2.3-6<commit_after>require 'formula'

class Npm <Formula
  url 'http://github.com/isaacs/npm/tarball/v0.2.3-6'
  homepage 'http://github.com/isaacs/npm'
  md5 '91e9f070ea62214812737d1cbb304039'
  head 'git://github.com/isaacs/npm.git'

  depends_on 'node'

  skip_clean 'share/npm/bin'

  def executable; <<-EOS
#!/bin/sh
exec "#{libexec}/cli.js" "$@"
EOS
  end

  def node_lib
    HOMEBREW_PREFIX+"lib/node"
  end

  def share_bin
    HOMEBREW_PREFIX+"share/npm/bin"
  end

  def install
    # Set a root & binroot that won't get wiped between updates
    share_bin.mkpath
    inreplace 'lib/utils/default-config.js' do |s|
{'fraction_non_alphanumeric': 0.13385826771653545, 'fraction_numerical': 0.04251968503937008, 'mean_word_length': 3.4131944444444446, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7182912', 'n_tokens_mistral': 569, 'n_tokens_neox': 506, 'n_words': 102}