<commit_before>## <%= title %>
<%= definition['description'] %>

<%- if definition['properties'] %>
### Attributes
<table>
  <tr>
    <th>Name</th>
    <th>Type</th>
    <th>Description</th>
    <th>Example</th>
  </tr>
  <%- extract_attributes(schema, definition['properties']).each do |(key, type, description, example)| %>
  <tr>
    <td><strong><%= key %></strong></td>
    <td><em><%= type %></em></td>
    <td><%= description %></td>
    <td><%= example %></td>
  </tr>
  <%- end %>
</table>

<%- end %>
<%- definition['links'].each do |link, datum| %>
<%- path = link['href'].gsub(%r|(\{\([^\)]+\)\})|) do |ref|
  ref = ref.gsub('%2F', '/').gsub('%23', '#').gsub(%r|[\{\(\)\}]|, '')
  resource = ref.split('#/definitions/').last.split('/definitions/identity').first.gsub('-', '_')
  identity_key, identity_value = schema.dereference(ref)
  if identity_value.has_key?('anyOf')<commit_msg>more generic ref fixup in doc<commit_after>## <%= title %>
<%= definition['description'] %>

<%- if definition['properties'] %>
### Attributes
<table>
  <tr>
    <th>Name</th>
    <th>Type</th>
    <th>Description</th>
    <th>Example</th>
  </tr>
  <%- extract_attributes(schema, definition['properties']).each do |(key, type, description, example)| %>
  <tr>
    <td><strong><%= key %></strong></td>
    <td><em><%= type %></em></td>
    <td><%= description %></td>
    <td><%= example %></td>
  </tr>
  <%- end %>
</table>

<%- end %>
<%- definition['links'].each do |link, datum| %>
<%- path = link['href'].gsub(%r|(\{\([^\)]+\)\})|) do |ref|
  ref = ref.gsub('%2F', '/').gsub('%23', '#').gsub(%r|[\{\(\)\}]|, '')
  resource = ref.match(%r{^#/definitions/([^/]*)}).captures.first
  identity_key, identity_value = schema.dereference(ref)
  if identity_value.has_key?('anyOf')
{'fraction_non_alphanumeric': 0.2996613995485327, 'fraction_numerical': 0.003386004514672686, 'mean_word_length': 3.966386554621849, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 77, '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': '635857', 'n_tokens_mistral': 713, 'n_tokens_neox': 666, 'n_words': 116}