<commit_before>/***************************************************
 * Page
 ***************************************************/

@page {
  margin: 10%;
}

@page:first {
  @bottom-left {
    border-top: none;
    color: transparent;
  }
  @bottom-right {
    border-top: none;
    color: transparent;
  }
  @top-right {
    color: transparent;
  }
}

@page:right {
  @bottom-left {
    margin: 10pt 0 30pt 0;
    border-top: .25pt solid #666;
    font-size: 9pt;
    color: #333;
    content: string(book-chapter);
  }
  @bottom-right {
    margin: 10pt 0 30pt 0;
    border-top: .25pt solid #666;
    content: counter(page);
    font-size: 9pt;
  }
}

@page:left {
  @bottom-right {
    margin: 10pt 0 30pt 0;
    border-top: .25pt solid #666;
    content: string(sub-chapter);
    font-size: 9pt;
    color: #333;
  }
  @bottom-left {
    margin: 10pt 0 30pt 0;
    border-top: .25pt solid #666;
    content: counter(page);
    font-size: 9pt;
  }
}

div.book-title {
  break-after: always;
}

div.book-title h1.title-page {
  border-bottom: none;
  position: absolute;
  text-align: center;
  top: 40%;
  width: 100%;
  font-size: 200%;
  string-set: book-title self;
}

@media screen {
  div.toc a {
    color: gray;
  }
}

@media print {
  a {
    color: black;
    text-decoration: none;
  }
  div.toc a::after {
    content: leader(dotted) target-counter(-ro-attr(href url), page);
  }
  div.index a::after {
    content: target-counter(-ro-attr(href url), page);
  }
}

div.toc {
  break-after: always;
}

div.toc li.toc-heading-1 {
  font-weight: bold;
  font-size: 125%;
  padding-top: 5px;
}

div.toc li.toc-heading-2 {
  font-weight: normal;
  padding-bottom: 0px;
}

div.toc > h2 {
  break-before: avoid;
}

div.toc div {
  margin-bottom: 1.5pt;
}

div.toc ul,
div.index ul {
  list-style-type: none;
}

h1 {
  border-bottom: .25pt solid #666;
  break-before: always;
  text-align: right;
  string-set: book-chapter self;
}

h2 {
  string-set: sub-chapter self;
}

div.index h3 {
  font-weight: bold;
}<commit_msg>Avoid page brake after table title.<commit_after>/***************************************************
 * Page
 ***************************************************/

@page {
  margin: 10%;
}

@page:first {
  @bottom-left {
    border-top: none;
    color: transparent;
  }
  @bottom-right {
    border-top: none;
    color: transparent;
  }
  @top-right {
    color: transparent;
  }
}

@page:right {
  @bottom-left {
    margin: 10pt 0 30pt 0;
    border-top: .25pt solid #666;
    font-size: 9pt;
    color: #333;
    content: string(book-chapter);
  }
  @bottom-right {
    margin: 10pt 0 30pt 0;
    border-top: .25pt solid #666;
    content: counter(page);
    font-size: 9pt;
  }
}

@page:left {
  @bottom-right {
    margin: 10pt 0 30pt 0;
    border-top: .25pt solid #666;
    content: string(sub-chapter);
    font-size: 9pt;
    color: #333;
  }
  @bottom-left {
    margin: 10pt 0 30pt 0;
    border-top: .25pt solid #666;
    content: counter(page);
    font-size: 9pt;
  }
}

div.book-title {
  break-after: always;
}

div.book-title h1.title-page {
  border-bottom: none;
  position: absolute;
  text-align: center;
  top: 40%;
  width: 100%;
  font-size: 200%;
  string-set: book-title self;
}

@media screen {
  div.toc a {
    color: gray;
  }
}

@media print {
  a {
    color: black;
    text-decoration: none;
  }
  div.toc a::after {
    content: leader(dotted) target-counter(-ro-attr(href url), page);
  }
  div.index a::after {
    content: target-counter(-ro-attr(href url), page);
  }
}

div.toc {
  break-after: always;
}

div.toc li.toc-heading-1 {
  font-weight: bold;
  font-size: 125%;
  padding-top: 5px;
}

div.toc li.toc-heading-2 {
  font-weight: normal;
  padding-bottom: 0px;
}

div.toc > h2 {
  break-before: avoid;
}

div.toc div {
  margin-bottom: 1.5pt;
}

div.toc ul,
div.index ul {
  list-style-type: none;
}

h1 {
  border-bottom: .25pt solid #666;
  break-before: always;
  text-align: right;
  string-set: book-chapter self;
}

h2 {
  string-set: sub-chapter self;
}

div.index h3 {
  font-weight: bold;
}

table caption {
  break-after: avoid;
}
{'fraction_non_alphanumeric': 0.19616411750424861, 'fraction_numerical': 0.04030104394270454, 'mean_word_length': 2.755697356426618, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5507661', 'n_tokens_mistral': 1752, 'n_tokens_neox': 1586, 'n_words': 365}