<commit_before>- tip = exercise_tip.tip
.card.mb-2
  .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab"
    .card-title.mb-0
      a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}"
        .clearfix role="button"
          i.fa aria-hidden="true"
          span
            = t('activerecord.models.tip.one')
            =< exercise_tip.rank
            = ": #{tip.title}" if tip.title?
  .card.card-collapse.collapse id="tip-collapse-#{exercise_tip.id}" aria-labelledby="tip-heading-#{exercise_tip.id}" role="tabpanel" data-exercise-tip-id=exercise_tip.id
    .card-body.p-3
      h5
        = t('exercises.implement.tips.description')
      = tip.description
      - if tip.example?
        h5.mt-2
          = t('exercises.implement.tips.example')
        pre
          code.mh-100 class="language-#{tip.file_type.editor_mode.gsub("ace/mode/", "")}"
            = tip.example
      .mb-4
      = render(partial: 'tips/collapsed_card', collection: exercise_tip.children, as: :exercise_tip)<commit_msg>Fix styling for multiple, nested cards<commit_after>- tip = exercise_tip.tip
.card class="#{exercise_tip.parent_exercise_tip_id? ? 'mt-2' : ''}"
  .card-header.p-2 id="tip-heading-#{exercise_tip.id}" role="tab"
    .card-title.mb-0
      a.collapsed aria-controls="tip-collapse-#{exercise_tip.id}" aria-expanded="false" data-parent="#tips" data-toggle="collapse" href="#tip-collapse-#{exercise_tip.id}"
        .clearfix role="button"
          i.fa aria-hidden="true"
          span
            = t('activerecord.models.tip.one')
            =< exercise_tip.rank
            = ": #{tip.title}" if tip.title?
  .card.card-collapse.collapse id="tip-collapse-#{exercise_tip.id}" aria-labelledby="tip-heading-#{exercise_tip.id}" role="tabpanel" data-exercise-tip-id=exercise_tip.id
    .card-body.p-3
      h5
        = t('exercises.implement.tips.description')
      = tip.description
      - if tip.example?
        h5.mt-2
          = t('exercises.implement.tips.example')
        pre
          code.mh-100 class="language-#{tip.file_type.editor_mode.gsub("ace/mode/", "")}"
            = tip.example
      = render(partial: 'tips/collapsed_card', collection: exercise_tip.children, as: :exercise_tip)
{'fraction_non_alphanumeric': 0.1672384219554031, 'fraction_numerical': 0.009005145797598629, 'mean_word_length': 2.7996742671009773, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 3, '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': '2220634', 'n_tokens_mistral': 806, 'n_tokens_neox': 787, 'n_words': 101}