<commit_before># Encoding: utf-8
# Copyright (c) 2013 the original author or authors.
#
# 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.

require 'spec_helper'
require 'build/dependency/dependency_helper'
require 'build/dependency/tc_server'

describe Build::Dependency::TcServer do
  include_context 'dependency_helper'

  it 'should create tc Server CI URI' do
    expect_version_uri '2.9.5.CI-123', 'http://dist.springsource.com.s3.amazonaws.com/snapshot/TCS/vfabric-tc-server-standard-2.9.5.CI-123.tar.gz'
  end

  it 'should create tc Server RELEASE URI' do
    expect_version_uri '2.9.5.RELEASE', 'http://dist.springsource.com.s3.amazonaws.com/release/TCS/vfabric-tc-server-standard-2.9.5.RELEASE.tar.gz'
  end

  it 'should create tc Server SR URI' do
    expect_version_uri '2.9.5.SR1', 'http://dist.springsource.com.s3.amazonaws.com/release/TCS/vfabric-tc-server-standard-2.9.5.SR1.tar.gz'
  end

  it 'should return the MMMQ for normalized' do
    expect(dependency.send(:normalize, '2.9.5.RELEASE')).to eq('2.9.5_RELEASE')
  end

end<commit_msg>Fixing the tc-server tests<commit_after># Encoding: utf-8
# Copyright (c) 2013 the original author or authors.
#
# 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.

require 'spec_helper'
require 'build/dependency/dependency_helper'
require 'build/dependency/tc_server'

describe Build::Dependency::TcServer do
  include_context 'dependency_helper'

  it 'should create tc Server CI URI' do
    expect_version_uri '3.2.5.SR2', 'http://repo.eng.pivotal.io/artifactory/simple/tcserver-releases/tcserver/standard/pivotal-tc-server-standard/3.2.5.SR2/pivotal-tc-server-standard-3.2.5.SR2.tar.gz'
  end

  it 'should create tc Server RELEASE URI' do
    expect_version_uri '2.9.5.RELEASE', 'http://repo.eng.pivotal.io/artifactory/simple/tcserver-releases/tcserver/standard/vfabric-tc-server-standard/2.9.5.RELEASE/vfabric-tc-server-standard-2.9.5.RELEASE.tar.gz'
  end

  it 'should create tc Server SR URI' do
    expect_version_uri '2.9.5.SR1', 'http://repo.eng.pivotal.io/artifactory/simple/tcserver-releases/tcserver/standard/vfabric-tc-server-standard/2.9.5.SR1/vfabric-tc-server-standard-2.9.5.SR1.tar.gz'
  end

  it 'should return the MMMQ for normalized' do
    expect(dependency.send(:normalize, '2.9.5.RELEASE')).to eq('2.9.5_RELEASE')
  end

end
{'fraction_non_alphanumeric': 0.11495298756445253, 'fraction_numerical': 0.027904155292690323, 'mean_word_length': 4.210110584518167, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '962044', 'n_tokens_mistral': 1119, 'n_tokens_neox': 1074, 'n_words': 300}