<commit_before># Cookbook Name:: nodebrew
# Resource:: node

actions :install, :uninstall
default_action :install

def initialize(*args)
  super
  @action = :install
end

attribute :version,
  :kind_of => String,
  :name_attribute => true,
  :regex => /^(v?[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}|latest|stable)$/,
  :required => true
attribute :binary,
  :kind_of => [TrueClass, FalseClass],
  :default => false<commit_msg>support user for resources/node<commit_after># Cookbook Name:: nodebrew
# Resource:: node

actions :install, :uninstall
default_action :install

def initialize(*args)
  super
  @action = :install
end

attribute :version,
  :kind_of => String,
  :name_attribute => true,
  :regex => /^(v?[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}|latest|stable)$/,
  :required => true
attribute :binary,
  :kind_of => [TrueClass, FalseClass],
  :default => false
attribute :user,
  :kind_of => String,
  :default => 'root'
{'fraction_non_alphanumeric': 0.18681318681318682, 'fraction_numerical': 0.01978021978021978, 'mean_word_length': 4.877419354838709, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '7613779', 'n_tokens_mistral': 324, 'n_tokens_neox': 321, 'n_words': 76}