<commit_before>Rasem::SVG_ALIAS = {
  :group  => :g,
  :rectangle => :rect,
}

Rasem::SVG_EXPANSION = {
  :line   => [:x1,:y1,:x2,:y2],
  :circle => [:cx,:cy,:r],
  :image  => [:x,:y,:width,:height,:"xlink:href"],
  :ellipse => [:cx,:cy,:rx,:ry],
  :text   => [:x,:y],
  :tspan   => [:x,:y, :dx, :dy],

  :rect   => lambda do |args|<commit_msg>add a method with unnamed for xlink:href, aliased as link<commit_after>Rasem::SVG_ALIAS = {
  :group  => :g,
  :rectangle => :rect,
  :link => :a,
}

Rasem::SVG_EXPANSION = {
  :line   => [:x1,:y1,:x2,:y2],
  :circle => [:cx,:cy,:r],
  :image  => [:x,:y,:width,:height,:"xlink:href"],
  :ellipse => [:cx,:cy,:rx,:ry],
  :text   => [:x,:y],
  :tspan   => [:x,:y, :dx, :dy],
  :a      => [:"xlink:href"],

  :rect   => lambda do |args|
{'fraction_non_alphanumeric': 0.28957528957528955, 'fraction_numerical': 0.010296010296010296, 'mean_word_length': 3.893081761006289, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '4189740', 'n_tokens_mistral': 401, 'n_tokens_neox': 396, 'n_words': 60}