<commit_before><h3><%=item.name%><% if (item.isMethod) { %>()<% } %></h3>

<% if (item.example) { %>
<div class="example">
  <h4><span id="reference-example">Example</span></h4>
  <span class="visuallyhidden">Examples for <%=item.name%></span>

	<div class="example-content" data-alt="<%= item.alt %>">
    <%= item.example %>
  </div>
</div>
<% } %>


<div class="description">

  <% if (item.deprecated) { %>
    <p>
      <span style="color: #ED225D;">Deprecated:</span>
      <code class="language-javascript"><%=item.name%><% if (item.isMethod) { %>()<% } %></code>
      is deprecated and will be removed in a future version of p5.

      <% if (item.deprecationMessage) { %><%=item.deprecationMessage%><% } %>
    </p>
  <% } %>
      
    
  <h4><span id="reference-description">Description</span></h4>

  <span class='description-text'><%= item.description %></span>

  <% if (item.extends) { %>
    <p><span id="reference-extends">Extends</span> <a href="/reference/#/<%=item.extends%>" title="<%=item.extends%> reference"><%=item.extends%></a></p>
  <% } %>

  <% if (item.module === 'p5.dom') { %>
    <p>This function requires you include the p5.dom library.  Add the following into the head of your index.html file:
      <pre><code class="language-javascript">&lt;script language="javascript" type="text/javascript" src="path/to/p5.dom.js"&gt;&lt;/script&gt;</code></pre>
    </p>
  <% } %>
  <% if (item.module === 'p5.sound') { %>
    <p>This function requires you include the p5.sound library.  Add the following into the head of your index.html file:
      <pre><code class="language-javascript">&lt;script language="javascript" type="text/javascript" src="path/to/p5.sound.js"&gt;&lt;/script&gt;</code></pre>
    </p>
  <% } %>

  <% if (item.constRefs) { %>
    <p>Used by:
  <%
      var refs = item.constRefs;
      for (var i = 0; i < refs.length; i ++) {
        var ref = refs[i];
        var name = ref;
        if (name.substr(0, 3) === 'p5.') {
          name = name.substr(3);
        }
	if (i !== 0) {
          if (i == refs.length - 1) {
            %> and <%
          } else {
            %>, <%
          }
        }
        %><a href="./#/<%= ref.replace('.', '/') %>"><%= name %>()</a><%
      }
  %>
    </p>
  <% } %>

</div>

<% if (isConstructor || !isClass) { %>

<div>
  <h4><span id="reference-syntax">Syntax</span></h4>
  <p>
    <% syntaxes.forEach(function(syntax) { %>
    <pre><code class="language-javascript"><%= syntax %></code></pre>
    <% }) %>
  </p>
</div>


<% if (item.return) { %>
<span class="returns-inline">
  <span class="type"></span>
</span>
<% } %>

<!--
<% if (item.deprecated) { %>
<span class="flag deprecated"<% if (item.deprecationMessage) { %> title="<%=item.deprecationMessage%>"<% } %>>deprecated</span>
<% } %>
-->

<% if (item.access) { %>
<span class="flag <%=item.access%>"><%= item.access %></span>
<% } %>

<% if (item.final) { %>
<span class="flag final">constant</span>
<% } %>

<% if (item.chainable) { %>
<p class="label label-success chainable">chainable</p>
<% } %>

<% if (item.async) { %>
<span class="flag async">async</span>
<% } %>

<!--  <div class="meta">
    {{#if overwritten_from}}
    <p>Inherited from
      <a href="#">
        {{overwritten_from/class}}
      </a>
      {{#if foundAt}}
      but overwritten in
      {{/if}}<commit_msg>remove obsolete code<commit_after><h3><%=item.name%><% if (item.isMethod) { %>()<% } %></h3>

<% if (item.example) { %>
<div class="example">
  <h4><span id="reference-example">Example</span></h4>
  <span class="visuallyhidden">Examples for <%=item.name%></span>

	<div class="example-content" data-alt="<%= item.alt %>">
    <%= item.example %>
  </div>
</div>
<% } %>


<div class="description">

  <% if (item.deprecated) { %>
    <p>
      <span style="color: #ED225D;">Deprecated:</span>
      <code class="language-javascript"><%=item.name%><% if (item.isMethod) { %>()<% } %></code>
      is deprecated and will be removed in a future version of p5.

      <% if (item.deprecationMessage) { %><%=item.deprecationMessage%><% } %>
    </p>
  <% } %>
      
    
  <h4><span id="reference-description">Description</span></h4>

  <span class='description-text'><%= item.description %></span>

  <% if (item.extends) { %>
    <p><span id="reference-extends">Extends</span> <a href="/reference/#/<%=item.extends%>" title="<%=item.extends%> reference"><%=item.extends%></a></p>
  <% } %>

  <% if (item.module === 'p5.dom') { %>
    <p>This function requires you include the p5.dom library.  Add the following into the head of your index.html file:
      <pre><code class="language-javascript">&lt;script language="javascript" type="text/javascript" src="path/to/p5.dom.js"&gt;&lt;/script&gt;</code></pre>
    </p>
  <% } %>
  <% if (item.module === 'p5.sound') { %>
    <p>This function requires you include the p5.sound library.  Add the following into the head of your index.html file:
      <pre><code class="language-javascript">&lt;script language="javascript" type="text/javascript" src="path/to/p5.sound.js"&gt;&lt;/script&gt;</code></pre>
    </p>
  <% } %>

  <% if (item.constRefs) { %>
    <p>Used by:
  <%
      var refs = item.constRefs;
      for (var i = 0; i < refs.length; i ++) {
        var ref = refs[i];
        var name = ref;
        if (name.substr(0, 3) === 'p5.') {
          name = name.substr(3);
        }
	if (i !== 0) {
          if (i == refs.length - 1) {
            %> and <%
          } else {
            %>, <%
          }
        }
        %><a href="./#/<%= ref.replace('.', '/') %>"><%= name %>()</a><%
      }
  %>
    </p>
  <% } %>

</div>

<% if (isConstructor || !isClass) { %>

<div>
  <h4><span id="reference-syntax">Syntax</span></h4>
  <p>
    <% syntaxes.forEach(function(syntax) { %>
    <pre><code class="language-javascript"><%= syntax %></code></pre>
    <% }) %>
  </p>
</div>


<% if (item.return) { %>
<span class="returns-inline">
  <span class="type"></span>
</span>
<% } %>

<% if (item.access) { %>
<span class="flag <%=item.access%>"><%= item.access %></span>
<% } %>

<% if (item.final) { %>
<span class="flag final">constant</span>
<% } %>

<% if (item.chainable) { %>
<p class="label label-success chainable">chainable</p>
<% } %>

<% if (item.async) { %>
<span class="flag async">async</span>
<% } %>

<!--  <div class="meta">
    {{#if overwritten_from}}
    <p>Inherited from
      <a href="#">
        {{overwritten_from/class}}
      </a>
      {{#if foundAt}}
      but overwritten in
      {{/if}}
{'fraction_non_alphanumeric': 0.2445468509984639, 'fraction_numerical': 0.007680491551459293, 'mean_word_length': 2.984700122399021, 'pattern_counts': {'":': 0, '<': 267, '<?xml version=': 0, '>': 263, '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': '2881803', 'n_tokens_mistral': 2510, 'n_tokens_neox': 2307, 'n_words': 450}