<commit_before>/* NSC -- new Scala compiler
 * Copyright 2007-2010 LAMP/EPFL
 * @author  <NAME>, <NAME>
 */

package scala.tools.nsc
package doc
package html
package page

import model._

import scala.collection._
import scala.xml._

class Index(universe: Universe) extends HtmlPage {

  def path = List("index.html")

  def title = {
    val s = universe.settings
    ( if (!s.doctitle.isDefault) s.doctitle.value else "" ) +
    ( if (!s.docversion.isDefault) (" " + s.docversion.value) else "" )
  }

  def headers =
    <xml:group>
      <link href={ relativeLinkTo(List("index.css", "lib")) }  media="screen" type="text/css" rel="stylesheet"/>
      <script type="text/javascript" src={ relativeLinkTo{List("index.js", "lib")} }></script>
      <script type="text/javascript" src={ relativeLinkTo{List("scheduler.js", "lib")} }></script>
    </xml:group>

  def body =
    <body>
      <div id="library">
        <img class='class icon' src='lib/class.png'/>
        <img class='trait icon' src='lib/trait.png'/>
        <img class='object icon' src='lib/object.png'/>
        <img class='package icon' src='lib/package.png'/>
      </div>
      <div id="browser">
        <div id="filter"></div>
        <div class="pack" id="tpl">{
          def isExcluded(dtpl: DocTemplateEntity) = {
            val qname = dtpl.qualifiedName
            (qname.startsWith("scala.Tuple") || qname.startsWith("scala.Product") || qname.startsWith("scala.Function")) &&
              !(qname=="scala.Function1" || qname=="scala.Function2" || qname=="scala.Function" ||
                      qname=="scala.Product1" || qname=="scala.Product2" || qname=="scala.Product" ||
                      qname=="scala.Tuple1" || qname=="scala.Tuple2")
          }
          def packageElem(pack: model.Package): NodeSeq = {
            <xml:group>
              { if (!pack.isRootPackage)
                  <h3><a class="tplshow" href={ relativeLinkTo(pack) }>{ pack.qualifiedName }</a></h3>
                else NodeSeq.Empty
              }
              <ol class="templates">{<commit_msg>[scaladoc] Not all 23 AbstractFunction classes ...<commit_after>/* NSC -- new Scala compiler
 * Copyright 2007-2010 LAMP/EPFL
 * @author  <NAME>, <NAME>
 */

package scala.tools.nsc
package doc
package html
package page

import model._

import scala.collection._
import scala.xml._

class Index(universe: Universe) extends HtmlPage {

  def path = List("index.html")

  def title = {
    val s = universe.settings
    ( if (!s.doctitle.isDefault) s.doctitle.value else "" ) +
    ( if (!s.docversion.isDefault) (" " + s.docversion.value) else "" )
  }

  def headers =
    <xml:group>
      <link href={ relativeLinkTo(List("index.css", "lib")) }  media="screen" type="text/css" rel="stylesheet"/>
      <script type="text/javascript" src={ relativeLinkTo{List("index.js", "lib")} }></script>
      <script type="text/javascript" src={ relativeLinkTo{List("scheduler.js", "lib")} }></script>
    </xml:group>

  def body =
    <body>
      <div id="library">
        <img class='class icon' src='lib/class.png'/>
        <img class='trait icon' src='lib/trait.png'/>
        <img class='object icon' src='lib/object.png'/>
        <img class='package icon' src='lib/package.png'/>
      </div>
      <div id="browser">
        <div id="filter"></div>
        <div class="pack" id="tpl">{
          def isExcluded(dtpl: DocTemplateEntity) = {
            val qname = dtpl.qualifiedName
            ( ( qname.startsWith("scala.Tuple") || qname.startsWith("scala.Product") ||
                qname.startsWith("scala.Function") || qname.startsWith("scala.runtime.AbstractFunction")
              ) && !(
                qname == "scala.Tuple1" || qname == "scala.Tuple2" ||
                qname == "scala.Product" || qname == "scala.Product1" || qname == "scala.Product2" ||
                qname == "scala.Function" || qname == "scala.Function1" || qname == "scala.Function2" ||
                qname == "scala.runtime.AbstractFunction0" || qname == "scala.runtime.AbstractFunction1" ||
                qname == "scala.runtime.AbstractFunction2"
              )
            )
          }
          def packageElem(pack: model.Package): NodeSeq = {
            <xml:group>
              { if (!pack.isRootPackage)
                  <h3><a class="tplshow" href={ relativeLinkTo(pack) }>{ pack.qualifiedName }</a></h3>
                else NodeSeq.Empty
              }
              <ol class="templates">{
{'fraction_non_alphanumeric': 0.16946121171473283, 'fraction_numerical': 0.008271853342275877, 'mean_word_length': 2.5035238841033673, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 8}, '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': '7387647', 'n_tokens_mistral': 1447, 'n_tokens_neox': 1394, 'n_words': 284}