<commit_before># Author:: Ashrith (<<EMAIL>>)
# Cookbook Name:: scm
# Attributes:: default
#
# Copyright 2013, cloudwick
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

include_attribute "java" # loads java/attributes/default.rb

default[:scm][:version] = '4'
default[:scm][:reposerver] = 'http://archive.cloudera.com'
case node['platform']
when "redhat","centos"
  default[:scm][:yumpath] = "/cm4/redhat/#{node['platform_version']}/#{node['kernel']['machine']}/cm/"
when "ubuntu"
  default[:scm][:aptpath] = "/cm4/ubuntu/#{node['lsb']['codename']}/#{node['kernel']['machine']  =~ /x86_64/ ? 'amd64' : 'i686'}/cm"
  default[:scm][:aptrelease] = "#{node['lsb']['codename']}-cm4"
  default[:scm][:aptrepos] = " contrib"
  default[:scm][:archive_key] = "#{node[:scm][:reposerver]}#{node[:scm][:aptpath]}/archive.key"
else
  Chef::Log.error("Unknown Platform Family [#{node['platform']}]")
end
default[:scm][:server_port] = '7182'
default[:scm][:java_home] = node[:java][:home]<commit_msg>Adds support for multiple cm versions (including v5)<commit_after># Author:: Ashrith (<<EMAIL>>)
# Cookbook Name:: scm
# Attributes:: default
#
# Copyright 2013, cloudwick
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

include_attribute "java" # loads java/attributes/default.rb

default[:scm][:version] = '4'
default[:scm][:reposerver] = 'http://archive.cloudera.com'
case node['platform']
when "redhat","centos"
  default[:scm][:yumpath] = "/cm#{node[:scm][:version]}/redhat/#{node['platform_version']}/#{node['kernel']['machine']}/cm/#{node[:scm][:version]}"
when "ubuntu"
  default[:scm][:aptpath] = "/cm#{node[:scm][:version]}/ubuntu/#{node['lsb']['codename']}/#{node['kernel']['machine']  =~ /x86_64/ ? 'amd64' : 'i686'}/cm"
  default[:scm][:aptrelease] = "#{node['lsb']['codename']}-cm#{node[:scm][:version]}"
  default[:scm][:aptrepos] = " contrib"
  default[:scm][:archive_key] = "#{node[:scm][:reposerver]}#{node[:scm][:aptpath]}/archive.key"
else
  Chef::Log.error("Unknown Platform Family [#{node['platform']}]")
end
default[:scm][:server_port] = '7182'
default[:scm][:java_home] = node[:java][:home]
{'fraction_non_alphanumeric': 0.18863049095607234, 'fraction_numerical': 0.015503875968992248, 'mean_word_length': 6.202325581395349, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3610937', 'n_tokens_mistral': 1049, 'n_tokens_neox': 1016, 'n_words': 260}