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

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

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


<div class="description">
  <h4>Description</h4>

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

  <% if (item.extends) { %>
    <p>Extends <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>
  <% } %>
</div>

<div>
  <h4>Syntax</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">final</span>
<% } %>

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

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

<% 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}}
      {{else}}
      {{#if extended_from}}
    <p>Inherited from
      <a href="#">{{extended_from}}</a>:
      {{else}}
      {{#providedBy}}
    <p>Provided by the <a href="../modules/{{.}}.html">{{.}}</a> module.</p>
    {{/providedBy}}
    <p>
      {{#if foundAt}}
      Defined in
      {{/if}}
      {{/if}}
      {{/if}}
      {{#if foundAt}}
      <a href="{{foundAt}}">`{{{file}}}:{{{line}}}`</a>
      {{/if}}
    </p>

    {{#if deprecationMessage}}
    <p>Deprecated: {{deprecationMessage}}</p>
    {{/if}}

    {{#if since}}
    <p>Available since {{since}}</p>
    {{/if}}
  </div>-->

<% if (item.params) { %>
<div class="params">
  <h4>Parameters</h4>
  <table>
  <% for (var i=0; i<item.params.length; i++) { %>
    <tr>
    <td>
    <% var p = item.params[i] %>
    <% if (p.optional) { %>
      <code class="language-javascript"><%=p.name%></code>
    <% } else { %>
      <code class="language-javascript"><%=p.name%></code>
    <% } %> 
    <%if (p.optdefault) { %>=<%=p.optdefault%><% } %>
    </td>
    <td>
    <% if (p.type) { %>
      <span class="param-type label label-info"><%=p.type%></span>: <%=p.description%></span> 
    <% } %>
    <% if (p.multiple) {%>
      <span class="flag multiple" title="This argument may occur one or more times.">multiple</span>
    <% } %>
    </td>
    </tr>
  <% } %>
  </table>
</div>
<% } %>

<% if (item.constructor || item.return) { %>
<div>
	<h4>Returns</h4>
	  <% if (item.constructor) { %>
      <p class='returns'><span class="param-type label label-info"><%=item.name%></span>: a new object</p>
    <% } else if (item.return.type) { %>
      <p class='returns'><span class="param-type label label-info"><%=item.return.type%></span>: <%= item.return.description %></p>
    <% } %>
</div>
<% } %><commit_msg>fixing return type in docs closes #2195<commit_after><h3><%=item.name%><% if (item.isMethod) { %>()<% } %></h3>

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

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


<div class="description">
  <h4>Description</h4>

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

  <% if (item.extends) { %>
    <p>Extends <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>
  <% } %>
</div>

<div>
  <h4>Syntax</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">final</span>
<% } %>

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

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

<% 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}}
      {{else}}
      {{#if extended_from}}
    <p>Inherited from
      <a href="#">{{extended_from}}</a>:
      {{else}}
      {{#providedBy}}
    <p>Provided by the <a href="../modules/{{.}}.html">{{.}}</a> module.</p>
    {{/providedBy}}
    <p>
      {{#if foundAt}}
      Defined in
      {{/if}}
      {{/if}}
      {{/if}}
      {{#if foundAt}}
      <a href="{{foundAt}}">`{{{file}}}:{{{line}}}`</a>
      {{/if}}
    </p>

    {{#if deprecationMessage}}
    <p>Deprecated: {{deprecationMessage}}</p>
    {{/if}}

    {{#if since}}
    <p>Available since {{since}}</p>
    {{/if}}
  </div>-->

<% if (item.params) { %>
<div class="params">
  <h4>Parameters</h4>
  <table>
  <% for (var i=0; i<item.params.length; i++) { %>
    <tr>
    <td>
    <% var p = item.params[i] %>
    <% if (p.optional) { %>
      <code class="language-javascript"><%=p.name%></code>
    <% } else { %>
      <code class="language-javascript"><%=p.name%></code>
    <% } %> 
    <%if (p.optdefault) { %>=<%=p.optdefault%><% } %>
    </td>
    <td>
    <% if (p.type) { %>
      <span class="param-type label label-info"><%=p.type%></span>: <%=p.description%></span> 
    <% } %>
    <% if (p.multiple) {%>
      <span class="flag multiple" title="This argument may occur one or more times.">multiple</span>
    <% } %>
    </td>
    </tr>
  <% } %>
  </table>
</div>
<% } %>

<% if (item.constructor || item.return) { %>
<div>
	<h4>Returns</h4>
    <% if (item.return.type) { %>
      <p class='returns'><span class="param-type label label-info"><%=item.return.type%></span>: <%= item.return.description %></p>
    <% } else if (item.constructor) { %>
      <p class='returns'><span class="param-type label label-info"><%=item.name%></span>: a new object</p>
    <% } %>
</div>
<% } %>
{'fraction_non_alphanumeric': 0.2600945798472172, 'fraction_numerical': 0.005092761004001455, 'mean_word_length': 3.2038735983690114, 'pattern_counts': {'":': 0, '<': 363, '<?xml version=': 0, '>': 361, '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': '4255436', 'n_tokens_mistral': 3262, 'n_tokens_neox': 2983, 'n_words': 564}