<commit_before># Ted's iPhone RDoc template
#
# Based on the Hongli Lai template:
# http://izumi.plan99.net/blog/
#
# Based on the Jamis template:
# http://weblog.jamisbuck.org/2005/4/8/rdoc-template
module RDoc
module Page

FONTS = ""

STYLE = <<CSS
body {
  font-family: Helvetica;
  font-size: 32pt;
}
CSS

XHTML_PREAMBLE = %{<?xml version="1.0" encoding="%charset%"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
}

HEADER = XHTML_PREAMBLE + <<ENDHEADER
<html>
  <head>
    <title>
      %title%
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
    <link rel="stylesheet" href="%style_url%" type="text/css" media="screen" />
    <script language="JavaScript" type="text/javascript">
    // <![CDATA[

        function toggleSource( id )
        {
          var elem
          var link

          if( document.getElementById )
          {
            elem = document.getElementById( id )
            link = document.getElementById( "l_" + id )
          }
          else if ( document.all )
          {
            elem = eval( "document.all." + id )
            link = eval( "document.all.l_" + id )
          }
          else
            return false;

          if( elem.style.display == "block" )
          {
            elem.style.display = "none"
            link.innerHTML = "show source"
          }
          else
          {
            elem.style.display = "block"
            link.innerHTML = "hide source"
          }
        }

        function openCode( url )
        {
          window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
        }
      // ]]>
    </script>
  </head>
  <body>
ENDHEADER

FILE_PAGE = <<HTML
  <div>
    File: %short_name%
  </div>
  <div>
    Path: %full_path%
  </div>
  <div>
    Modified: %dtm_modified%
  </div>
HTML

CLASS_PAGE = <<HTML
  <div>
    %classmod%
  </div>
  <div>
    %full_name%
  </div>
  <div>
START:infiles
      HREF:full_path_url:full_path:
END:infiles
  </div>
  <div>
IF:parent
    Parent:
IF:par_url
      <a href="%par_url%">
ENDIF:par_url
        %parent%
IF:par_url
      </a>
ENDIF:par_url
ENDIF:parent
  </div>
HTML

METHOD_LIST = <<HTML
<div>
IF:diagram
  <div>
    %diagram%
  </div>
ENDIF:diagram

IF:description
  <div>
    %description%
  </div>
ENDIF:description

IF:requires
  <div>
    Required Files
    <ul>
START:requires
      <li>HREF:aref:name:</li>
END:requires
    </ul>
  </div>
ENDIF:requires

IF:toc
  <div><commit_msg>changed key/value pair lists into dictionary tags DL/DT/DD<commit_after># Ted's iPhone RDoc template
#
# Based on the Hongli Lai template:
# http://izumi.plan99.net/blog/
#
# Based on the Jamis template:
# http://weblog.jamisbuck.org/2005/4/8/rdoc-template
module RDoc
module Page

FONTS = ""

STYLE = <<CSS
body {
  font-family: Helvetica;
  font-size: 32pt;
}
CSS

XHTML_PREAMBLE = %{<?xml version="1.0" encoding="%charset%"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
}

HEADER = XHTML_PREAMBLE + <<ENDHEADER
<html>
  <head>
    <title>
      %title%
    </title>
    <meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
    <link rel="stylesheet" href="%style_url%" type="text/css" media="screen" />
    <script language="JavaScript" type="text/javascript">
    // <![CDATA[

        function toggleSource( id )
        {
          var elem
          var link

          if( document.getElementById )
          {
            elem = document.getElementById( id )
            link = document.getElementById( "l_" + id )
          }
          else if ( document.all )
          {
            elem = eval( "document.all." + id )
            link = eval( "document.all.l_" + id )
          }
          else
            return false;

          if( elem.style.display == "block" )
          {
            elem.style.display = "none"
            link.innerHTML = "show source"
          }
          else
          {
            elem.style.display = "block"
            link.innerHTML = "hide source"
          }
        }

        function openCode( url )
        {
          window.open( url, "SOURCE_CODE", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=480,width=750" ).focus();
        }
      // ]]>
    </script>
  </head>
  <body>
ENDHEADER

FILE_PAGE = <<HTML
  <h1>
    %short_name%
  </h1>
  <dl>
    <dt>
      Path
    </dt>
    <dd>
      %full_path%
    </dd>
    <dt>
      Modified
    </dt>
    <dd>
      %dtm_modified%
    </dd>
  </dl>
HTML

CLASS_PAGE = <<HTML
  <div>
    %classmod%
  </div>
  <div>
    %full_name%
  </div>
  <div>
START:infiles
      HREF:full_path_url:full_path:
END:infiles
  </div>
  <div>
IF:parent
    Parent:
IF:par_url
      <a href="%par_url%">
ENDIF:par_url
        %parent%
IF:par_url
      </a>
ENDIF:par_url
ENDIF:parent
  </div>
HTML

METHOD_LIST = <<HTML
<div>
IF:diagram
  <div>
    %diagram%
  </div>
ENDIF:diagram

IF:description
  <div>
    %description%
  </div>
ENDIF:description

IF:requires
  <dl>
    <dt>
      Required Files
    </dt>
    <dd>
      <ul>
START:requires
        <li>HREF:aref:name:</li>
END:requires
      </ul>
    </dd>
  </dl>
ENDIF:requires

IF:toc
  <div>
{'fraction_non_alphanumeric': 0.1498510796723753, 'fraction_numerical': 0.009307520476545048, 'mean_word_length': 2.0511073253833048, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 2, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, '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': '2983471', 'n_tokens_mistral': 2017, 'n_tokens_neox': 1906, 'n_words': 391}