<commit_before>require 'rest-client'
require 'json'
require 'builder'
require 'rexml/document'
include REXML
require File.expand_path("../../../utils/common", __FILE__)

Transform /^\/(<[^"]*>)$/ do |uri_placeholder|
  uri = "/v1/" + Transform(uri_placeholder)
  #puts "URI = #{uri}"
  uri
end

Transform /^\/(<[^"]*>)\/(<[^"]*>)$/ do |uri_placeholder1, uri_placeholder2|
  uri = "/v1/" + Transform(uri_placeholder1) + "/" + Transform(uri_placeholder2)
  #puts "URI = #{uri}"
  uri
end

Transform /^\/([^"]*)\/(<[^"]*>)$/ do |uri_placeholder1, uri_placeholder2|
  uri = "/v1/" + uri_placeholder1 + "/" + Transform(uri_placeholder2)<commit_msg>Fix issue w/ ambiguous transforms<commit_after>require 'rest-client'
require 'json'
require 'builder'
require 'rexml/document'
include REXML
require File.expand_path("../../../utils/common", __FILE__)

Transform /^\/(<[^"]*>)$/ do |uri_placeholder|
  uri = "/v1/" + Transform(uri_placeholder)
  #puts "URI = #{uri}"
  uri
end

Transform /^\/(<[^"]*>)\/(<[^"]*>)$/ do |uri_placeholder1, uri_placeholder2|
  uri = "/v1/" + Transform(uri_placeholder1) + "/" + Transform(uri_placeholder2)
  #puts "URI = #{uri}"
  uri
end

Transform /^\/([^"<>]*)\/(<[^"]*>)$/ do |uri_placeholder1, uri_placeholder2|
  uri = "/v1/" + uri_placeholder1 + "/" + Transform(uri_placeholder2)
{'fraction_non_alphanumeric': 0.23470948012232415, 'fraction_numerical': 0.016819571865443424, 'mean_word_length': 4.546610169491525, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 12, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2140484', 'n_tokens_mistral': 486, 'n_tokens_neox': 463, 'n_words': 93}