Skip to content

Commit c493250

Browse files
Doc update
1 parent 7fad54e commit c493250

17 files changed

+2463
-2426
lines changed

docs/beta/code/Alhazen.py

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# "Learning from Failures" - a chapter of "The Debugging Book"
55
# Web site: https://www.debuggingbook.org/html/Alhazen.html
6-
# Last change: 2025-01-07 11:04:38+01:00
6+
# Last change: 2025-01-07 11:35:49+01:00
77
#
88
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
99
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
@@ -66,7 +66,10 @@
6666
If the predicate evaluates to `True`, follow the left path; if it evaluates to `False`, follow the right path.
6767
A leaf node (no children) will give you the final decision `class = BUG` or `class = NO_BUG`.
6868
69-
So if the predicate states ` == 'sqrt' <= 0.5`, this means that if the function is _not_ `sqrt`, follow the left (`True`) path. If it is `sqrt`, follow the right (`False`) path.
69+
So if the predicate states ` == 'sqrt' <= 0.5`, this means that
70+
71+
* If the function is _not_ `sqrt` (the predicate ` == 'sqrt'` is negative, see above, and hence less than 0.5), follow the left (`True`) path.
72+
* If the function _is_ `sqrt` (the predicate ` == 'sqrt'` is positive), follow the right (`False`) path.
7073
7174
The `samples` field shows the number of sample inputs that contributed to this decision.
7275
The `gini` field (aka Gini impurity) indicates how many samples fall into the displayed class (`BUG` or `NO_BUG`).
@@ -77,9 +80,9 @@
7780
7881
>>> print(alhazen.friendly_decision_tree())
7982
if <= 4.5000:
80-
if <= 42.1500:
81-
if == 'sqrt':
82-
if <= -11.9137:
83+
if == 'sqrt':
84+
if <= 42.2000:
85+
if <= -11.8470:
8386
BUG
8487
else:
8588
NO_BUG
@@ -336,6 +339,13 @@ def execute_samples(sample_list):
336339

337340

338341

342+
### Internal and "Friendly" Feature Names
343+
344+
if __name__ == '__main__':
345+
print('\n### Internal and "Friendly" Feature Names')
346+
347+
348+
339349
### Implementing Feature Classes
340350

341351
if __name__ == '__main__':

docs/beta/code/Tours.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# "Tours through the Book" - a chapter of "The Debugging Book"
55
# Web site: https://www.debuggingbook.org/html/Tours.html
6-
# Last change: 2025-01-07 11:01:55+01:00
6+
# Last change: 2025-01-07 11:33:11+01:00
77
#
88
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
99
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
88 Bytes
Binary file not shown.
56 Bytes
Binary file not shown.
2.81 KB
Binary file not shown.

docs/beta/html/00_Index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12120,7 +12120,7 @@
1212012120
<div class="text_cell_render border-box-sizing rendered_html"><h3 id="C">C<a class="anchor-link" href="#C">&#182;</a></h3><ul>
1212112121
<li>C-Reduce &mdash; <a href="DeltaDebugger.html#Background">Reducing Failure-Inducing Inputs (Background)</a></li>
1212212122
<li><code>CachingCallReducer</code> class &mdash; <a href="DeltaDebugger.html#Testing,-Logging,-and-Caching">Reducing Failure-Inducing Inputs (Testing, Logging, and Caching)</a></li>
12123-
<li><code>CALC_GRAMMAR</code> &mdash; <a href="Alhazen.html#Inputs-and-Grammars">Learning from Failures (Inputs and Grammars)</a>, <a href="Alhazen.html#Decision-Trees">Learning from Failures (Decision Trees)</a></li>
12123+
<li><code>CALC_GRAMMAR</code> &mdash; <a href="Alhazen.html#Inputs-and-Grammars">Learning from Failures (Inputs and Grammars)</a>, <a href="Alhazen.html#Internal-and-&quot;Friendly&quot;-Feature-Names">Learning from Failures (Internal and "Friendly" Feature Names)</a>, <a href="Alhazen.html#Decision-Trees">Learning from Failures (Decision Trees)</a></li>
1212412124
<li>call stack &mdash; <a href="StackInspector.html#Inspecting-Call-Stacks">Inspecting Call Stacks (Inspecting Call Stacks)</a></li>
1212512125
<li><code>call()</code> &mdash; <a href="Slicer.html#Excursion:-Tracking-Calls-and-Arguments">Tracking Failure Origins (Excursion: Tracking Calls and Arguments)</a>, <a href="Slicer.html#Excursion:-Calls-and-Returns">Tracking Failure Origins (Excursion: Calls and Returns)</a>, <a href="DeltaDebugger.html#Collecting-a-Call">Reducing Failure-Inducing Inputs (Collecting a Call)</a>, <a href="DeltaDebugger.html#Repeating-a-Call">Reducing Failure-Inducing Inputs (Repeating a Call)</a></li>
1212612126
<li><code>CallCollector</code> class &mdash; <a href="Slicer.html#Excursion:-Implementing-Dynamic-Instrumentation">Tracking Failure Origins (Excursion: Implementing Dynamic Instrumentation)</a>, <a href="DeltaDebugger.html#Collecting-a-Call">Reducing Failure-Inducing Inputs (Collecting a Call)</a>, <a href="DeltaDebugger.html#Collecting-a-Call">Reducing Failure-Inducing Inputs (Collecting a Call)</a>, <a href="DeltaDebugger.html#Repeating-a-Call">Reducing Failure-Inducing Inputs (Repeating a Call)</a>, <a href="DeltaDebugger.html#Repeating-a-Call">Reducing Failure-Inducing Inputs (Repeating a Call)</a></li>

docs/beta/html/00_Table_of_Contents.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12311,7 +12311,7 @@ <h4 id="Inspecting-Call-Stacks"><a href="StackInspector.html">Inspecting Call St
1231112311
The content of this project is licensed under the
1231212312
<a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" target=_blank>Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
1231312313
The source code that is part of the content, as well as the source code used to format and display that content is licensed under the <a href="https://github.com/uds-se/debuggingbook/blob/master/LICENSE.md#mit-license">MIT License</a>.
12314-
<a href="https://github.com/uds-se/debuggingbook/commits/master/notebooks/00_Table_of_Contents.ipynb" target=_blank)>Last change: 2025-01-07 11:05:13+01:00</a> &bull;
12314+
<a href="https://github.com/uds-se/debuggingbook/commits/master/notebooks/00_Table_of_Contents.ipynb" target=_blank)>Last change: 2025-01-07 11:36:02+01:00</a> &bull;
1231512315
<a href="#citation" id="cite" onclick="revealCitation()">Cite</a> &bull;
1231612316
<a href="https://cispa.de/en/impressum" target=_blank>Imprint</a>
1231712317
</p>
@@ -12327,7 +12327,7 @@ <h4 id="Inspecting-Call-Stacks"><a href="StackInspector.html">Inspecting Call St
1232712327
<a name="citation"></a>
1232812328
<h2>How to Cite this Work</h2>
1232912329
<p>
12330-
Andreas Zeller: "<a href="https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html">The Debugging Book</a>". In Andreas Zeller, "<a href="https://www.debuggingbook.org/beta/">The Debugging Book</a>", <a href="https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html">https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html</a>. Retrieved 2025-01-07 11:05:13+01:00.
12330+
Andreas Zeller: "<a href="https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html">The Debugging Book</a>". In Andreas Zeller, "<a href="https://www.debuggingbook.org/beta/">The Debugging Book</a>", <a href="https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html">https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html</a>. Retrieved 2025-01-07 11:36:02+01:00.
1233112331
</p>
1233212332
<pre>
1233312333
@incollection{debuggingbook2025:00_Table_of_Contents,
@@ -12337,9 +12337,9 @@ <h2>How to Cite this Work</h2>
1233712337
year = {2025},
1233812338
publisher = {CISPA Helmholtz Center for Information Security},
1233912339
howpublished = {\url{https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html}},
12340-
note = {Retrieved 2025-01-07 11:05:13+01:00},
12340+
note = {Retrieved 2025-01-07 11:36:02+01:00},
1234112341
url = {https://www.debuggingbook.org/beta/html/00_Table_of_Contents.html},
12342-
urldate = {2025-01-07 11:05:13+01:00}
12342+
urldate = {2025-01-07 11:36:02+01:00}
1234312343
}
1234412344
</pre>
1234512345
</div>

0 commit comments

Comments
 (0)