Skip to content

Commit

Permalink
deploy: 0c07309
Browse files Browse the repository at this point in the history
  • Loading branch information
rlskoeser committed Nov 4, 2024
1 parent 666e1cf commit b487aea
Show file tree
Hide file tree
Showing 43 changed files with 1,123 additions and 411 deletions.
4 changes: 2 additions & 2 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: a345c9ff2db146449973423b31342d02
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: f7d200915b7b550f5c004e266578c90b
tags: 645f666f9bcd5a90fca523b33c5a78b7
33 changes: 13 additions & 20 deletions _modules/cached_property.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>cached_property &#8212; Princeton Prosody Archive 3.13.2 documentation</title>
<title>cached_property &#8212; Princeton Prosody Archive 3.14.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/basic.css?v=c058f7c8" />
<link rel="stylesheet" type="text/css" href="../_static/basic.css?v=686e5160" />
<link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=27fed22d" />
<script src="../_static/documentation_options.js?v=f92f4e34"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/documentation_options.js?v=e4f4b189"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
Expand All @@ -31,24 +31,18 @@
<div class="body" role="main">

<h1>Source code for cached_property</h1><div class="highlight"><pre>
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>

<span class="n">__author__</span> <span class="o">=</span> <span class="s2">&quot;Daniel Greenfeld&quot;</span>
<span class="n">__email__</span> <span class="o">=</span> <span class="s2">&quot;[email protected]&quot;</span>
<span class="n">__version__</span> <span class="o">=</span> <span class="s2">&quot;1.5.2&quot;</span>
<span></span><span class="n">__author__</span> <span class="o">=</span> <span class="s2">&quot;Daniel Roy Greenfeld&quot;</span>
<span class="n">__email__</span> <span class="o">=</span> <span class="s2">&quot;[email protected]&quot;</span>
<span class="n">__version__</span> <span class="o">=</span> <span class="s2">&quot;2.0.1&quot;</span>
<span class="n">__license__</span> <span class="o">=</span> <span class="s2">&quot;BSD&quot;</span>

<span class="kn">from</span> <span class="nn">functools</span> <span class="kn">import</span> <span class="n">wraps</span>
<span class="kn">from</span> <span class="nn">time</span> <span class="kn">import</span> <span class="n">time</span>
<span class="kn">import</span> <span class="nn">threading</span>

<span class="k">try</span><span class="p">:</span>
<span class="kn">import</span> <span class="nn">asyncio</span>
<span class="k">except</span> <span class="p">(</span><span class="ne">ImportError</span><span class="p">,</span> <span class="ne">SyntaxError</span><span class="p">):</span>
<span class="n">asyncio</span> <span class="o">=</span> <span class="kc">None</span>
<span class="kn">import</span> <span class="nn">asyncio</span>


<span class="k">class</span> <span class="nc">cached_property</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="k">class</span> <span class="nc">cached_property</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> A property that is only computed once per instance and then replaces itself</span>
<span class="sd"> with an ordinary attribute. Deleting the attribute resets the property.</span>
Expand All @@ -63,15 +57,14 @@ <h1>Source code for cached_property</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="n">obj</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="k">return</span> <span class="bp">self</span>

<span class="k">if</span> <span class="n">asyncio</span> <span class="ow">and</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">iscoroutinefunction</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">):</span>
<span class="k">if</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">iscoroutinefunction</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">):</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_wrap_in_coroutine</span><span class="p">(</span><span class="n">obj</span><span class="p">)</span>

<span class="n">value</span> <span class="o">=</span> <span class="n">obj</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="o">.</span><span class="vm">__name__</span><span class="p">]</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span><span class="n">obj</span><span class="p">)</span>
<span class="k">return</span> <span class="n">value</span>

<span class="k">def</span> <span class="nf">_wrap_in_coroutine</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">obj</span><span class="p">):</span>
<span class="nd">@wraps</span><span class="p">(</span><span class="n">obj</span><span class="p">)</span>
<span class="nd">@asyncio</span><span class="o">.</span><span class="n">coroutine</span>
<span class="k">def</span> <span class="nf">wrapper</span><span class="p">():</span>
<span class="n">future</span> <span class="o">=</span> <span class="n">asyncio</span><span class="o">.</span><span class="n">ensure_future</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span><span class="n">obj</span><span class="p">))</span>
<span class="n">obj</span><span class="o">.</span><span class="vm">__dict__</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="o">.</span><span class="vm">__name__</span><span class="p">]</span> <span class="o">=</span> <span class="n">future</span>
Expand All @@ -80,7 +73,7 @@ <h1>Source code for cached_property</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">wrapper</span><span class="p">()</span>


<span class="k">class</span> <span class="nc">threaded_cached_property</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="k">class</span> <span class="nc">threaded_cached_property</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> A cached_property version for use in environments where multiple threads</span>
<span class="sd"> might concurrently try to access the property.</span>
Expand All @@ -107,7 +100,7 @@ <h1>Source code for cached_property</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">obj_dict</span><span class="o">.</span><span class="n">setdefault</span><span class="p">(</span><span class="n">name</span><span class="p">,</span> <span class="bp">self</span><span class="o">.</span><span class="n">func</span><span class="p">(</span><span class="n">obj</span><span class="p">))</span>


<span class="k">class</span> <span class="nc">cached_property_with_ttl</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="k">class</span> <span class="nc">cached_property_with_ttl</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> A property that is only computed once per instance and then replaces itself</span>
<span class="sd"> with an ordinary attribute. Setting the ttl to a number expresses how long</span>
Expand Down Expand Up @@ -251,7 +244,7 @@ <h3 id="searchlabel">Quick search</h3>
&#169;2024, CDH @ Princeton University.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.0.2</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
10 changes: 5 additions & 5 deletions _modules/django/db/models/fields/related_descriptors.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>django.db.models.fields.related_descriptors &#8212; Princeton Prosody Archive 3.13.2 documentation</title>
<title>django.db.models.fields.related_descriptors &#8212; Princeton Prosody Archive 3.14.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../../../_static/basic.css?v=c058f7c8" />
<link rel="stylesheet" type="text/css" href="../../../../../_static/basic.css?v=686e5160" />
<link rel="stylesheet" type="text/css" href="../../../../../_static/alabaster.css?v=27fed22d" />
<script src="../../../../../_static/documentation_options.js?v=f92f4e34"></script>
<script src="../../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../../_static/documentation_options.js?v=e4f4b189"></script>
<script src="../../../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../../search.html" />
Expand Down Expand Up @@ -1668,7 +1668,7 @@ <h3 id="searchlabel">Quick search</h3>
&#169;2024, CDH @ Princeton University.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.0.2</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
10 changes: 5 additions & 5 deletions _modules/django/db/models/query_utils.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>django.db.models.query_utils &#8212; Princeton Prosody Archive 3.13.2 documentation</title>
<title>django.db.models.query_utils &#8212; Princeton Prosody Archive 3.14.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../../_static/basic.css?v=c058f7c8" />
<link rel="stylesheet" type="text/css" href="../../../../_static/basic.css?v=686e5160" />
<link rel="stylesheet" type="text/css" href="../../../../_static/alabaster.css?v=27fed22d" />
<script src="../../../../_static/documentation_options.js?v=f92f4e34"></script>
<script src="../../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../../_static/documentation_options.js?v=e4f4b189"></script>
<script src="../../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../../../../genindex.html" />
<link rel="search" title="Search" href="../../../../search.html" />
Expand Down Expand Up @@ -585,7 +585,7 @@ <h3 id="searchlabel">Quick search</h3>
&#169;2024, CDH @ Princeton University.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.0.2</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
10 changes: 5 additions & 5 deletions _modules/django/forms/widgets.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>django.forms.widgets &#8212; Princeton Prosody Archive 3.13.2 documentation</title>
<title>django.forms.widgets &#8212; Princeton Prosody Archive 3.14.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../_static/basic.css?v=c058f7c8" />
<link rel="stylesheet" type="text/css" href="../../../_static/basic.css?v=686e5160" />
<link rel="stylesheet" type="text/css" href="../../../_static/alabaster.css?v=27fed22d" />
<script src="../../../_static/documentation_options.js?v=f92f4e34"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/documentation_options.js?v=e4f4b189"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand Down Expand Up @@ -1308,7 +1308,7 @@ <h3 id="searchlabel">Quick search</h3>
&#169;2024, CDH @ Princeton University.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.0.2</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
10 changes: 5 additions & 5 deletions _modules/eulxml/xmlmap/fields.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>eulxml.xmlmap.fields &#8212; Princeton Prosody Archive 3.13.2 documentation</title>
<title>eulxml.xmlmap.fields &#8212; Princeton Prosody Archive 3.14.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../_static/basic.css?v=c058f7c8" />
<link rel="stylesheet" type="text/css" href="../../../_static/basic.css?v=686e5160" />
<link rel="stylesheet" type="text/css" href="../../../_static/alabaster.css?v=27fed22d" />
<script src="../../../_static/documentation_options.js?v=f92f4e34"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/documentation_options.js?v=e4f4b189"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand Down Expand Up @@ -1319,7 +1319,7 @@ <h3 id="searchlabel">Quick search</h3>
&#169;2024, CDH @ Princeton University.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.0.2</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
12 changes: 7 additions & 5 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Overview: module code &#8212; Princeton Prosody Archive 3.13.2 documentation</title>
<title>Overview: module code &#8212; Princeton Prosody Archive 3.14.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../_static/basic.css?v=c058f7c8" />
<link rel="stylesheet" type="text/css" href="../_static/basic.css?v=686e5160" />
<link rel="stylesheet" type="text/css" href="../_static/alabaster.css?v=27fed22d" />
<script src="../_static/documentation_options.js?v=f92f4e34"></script>
<script src="../_static/doctools.js?v=9a2dae69"></script>
<script src="../_static/documentation_options.js?v=e4f4b189"></script>
<script src="../_static/doctools.js?v=9bcbadda"></script>
<script src="../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../genindex.html" />
<link rel="search" title="Search" href="../search.html" />
Expand Down Expand Up @@ -40,10 +40,12 @@ <h1>All modules for which code is available</h1>
<li><a href="ppa/archive/forms.html">ppa.archive.forms</a></li>
<li><a href="ppa/archive/gale.html">ppa.archive.gale</a></li>
<li><a href="ppa/archive/hathi.html">ppa.archive.hathi</a></li>
<li><a href="ppa/archive/management/commands/eebo_import.html">ppa.archive.management.commands.eebo_import</a></li>
<li><a href="ppa/archive/management/commands/gale_import.html">ppa.archive.management.commands.gale_import</a></li>
<li><a href="ppa/archive/management/commands/generate_textcorpus.html">ppa.archive.management.commands.generate_textcorpus</a></li>
<li><a href="ppa/archive/management/commands/hathi_excerpt.html">ppa.archive.management.commands.hathi_excerpt</a></li>
<li><a href="ppa/archive/management/commands/hathi_import.html">ppa.archive.management.commands.hathi_import</a></li>
<li><a href="ppa/archive/management/commands/hathi_rsync.html">ppa.archive.management.commands.hathi_rsync</a></li>
<li><a href="ppa/archive/models.html">ppa.archive.models</a></li>
<li><a href="ppa/archive/solr.html">ppa.archive.solr</a></li>
<li><a href="ppa/archive/views.html">ppa.archive.views</a></li>
Expand Down Expand Up @@ -121,7 +123,7 @@ <h3 id="searchlabel">Quick search</h3>
&#169;2024, CDH @ Princeton University.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.0.2</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
10 changes: 5 additions & 5 deletions _modules/ppa/archive/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>ppa.archive.admin &#8212; Princeton Prosody Archive 3.13.2 documentation</title>
<title>ppa.archive.admin &#8212; Princeton Prosody Archive 3.14.0 documentation</title>
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=fa44fd50" />
<link rel="stylesheet" type="text/css" href="../../../_static/basic.css?v=c058f7c8" />
<link rel="stylesheet" type="text/css" href="../../../_static/basic.css?v=686e5160" />
<link rel="stylesheet" type="text/css" href="../../../_static/alabaster.css?v=27fed22d" />
<script src="../../../_static/documentation_options.js?v=f92f4e34"></script>
<script src="../../../_static/doctools.js?v=9a2dae69"></script>
<script src="../../../_static/documentation_options.js?v=e4f4b189"></script>
<script src="../../../_static/doctools.js?v=9bcbadda"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
Expand Down Expand Up @@ -533,7 +533,7 @@ <h3 id="searchlabel">Quick search</h3>
&#169;2024, CDH @ Princeton University.

|
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.0.2</a>
Powered by <a href="https://www.sphinx-doc.org/">Sphinx 8.1.3</a>
&amp; <a href="https://alabaster.readthedocs.io">Alabaster 1.0.0</a>

</div>
Expand Down
Loading

0 comments on commit b487aea

Please sign in to comment.