Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-zeller committed Nov 10, 2024
1 parent 0e3f3ca commit c41acfc
Show file tree
Hide file tree
Showing 195 changed files with 35,336 additions and 37,364 deletions.
5 changes: 1 addition & 4 deletions docs/beta/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -11965,9 +11965,6 @@
<article>
<div tabindex="-1" id="notebook" class="border-box-sizing">
<div class="container" id="notebook-container">
<p><div class="banner">Help shaping the future of The Debugging Book and
<a target=_new href="https://docs.google.com/forms/d/e/1FAIpQLScyO6j5EsrtS0pse7qVHeDoOj188JgC8SepWFZIO32N6gre8Q/viewform?usp=sf_link">take part in our 2024 reader survey!</a></div></p>


<div class="input_markdown">
<div class="cell border-box-sizing text_cell rendered">
Expand Down Expand Up @@ -12124,7 +12121,7 @@

<div class="output_subarea output_stream output_stderr output_text">
<pre>Traceback (most recent call last):
File &#34;/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_67647/1830731544.py&#34;, line 4, in &lt;cell line: 3&gt;
File &#34;/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_1042/1830731544.py&#34;, line 4, in &lt;cell line: 3&gt;
raise NotFoundError
NotFoundError: &#39;404&#39; (expected)
</pre>
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/01_Intro.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Part I: Whetting Your Appetite" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/01_Intro.html
# Last change: 2024-06-30 19:19:31+02:00
# Last change: 2024-11-09 17:09:40+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/02_Observing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Part II: Observing Executions" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/02_Observing.html
# Last change: 2024-06-30 19:19:53+02:00
# Last change: 2024-11-09 17:10:09+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/03_Dependencies.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Part III: Flows and Dependencies" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/03_Dependencies.html
# Last change: 2024-06-30 19:20:29+02:00
# Last change: 2024-11-09 17:10:53+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/04_Reducing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Part IV: Reducing Failure Causes" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/04_Reducing.html
# Last change: 2024-06-30 19:20:56+02:00
# Last change: 2024-11-09 17:11:25+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/05_Abstracting.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Part V: Abstracting Failures" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/05_Abstracting.html
# Last change: 2024-06-30 19:21:26+02:00
# Last change: 2024-11-09 17:11:59+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/06_Repairing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Part VI: Automatic Repair" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/06_Repairing.html
# Last change: 2024-06-30 19:27:58+02:00
# Last change: 2024-11-09 17:13:01+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/07_In_the_Large.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Part VII: Debugging in the Large" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/07_In_the_Large.html
# Last change: 2024-06-30 19:28:07+02:00
# Last change: 2024-11-09 17:13:12+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/99_Appendices.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Appendices" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/99_Appendices.html
# Last change: 2024-06-30 19:30:06+02:00
# Last change: 2024-11-09 17:27:48+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
12 changes: 6 additions & 6 deletions docs/beta/code/Assertions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Asserting Expectations" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/Assertions.html
# Last change: 2024-06-30 19:20:25+02:00
# Last change: 2024-11-09 17:10:48+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down Expand Up @@ -55,9 +55,9 @@
>>> with ExpectError():
>>> y = my_square_root(-1)
Traceback (most recent call last):
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_53336/76616918.py", line 2, in
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_74444/76616918.py", line 2, in
y = my_square_root(-1)
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_53336/2617682038.py", line 2, in my_square_root
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_74444/2617682038.py", line 2, in my_square_root
assert x >= 0
AssertionError (expected)
Expand All @@ -77,11 +77,11 @@
>>> with ExpectError():
>>> x = managed_mem[2]
Traceback (most recent call last):
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_53336/1296110967.py", line 2, in
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_74444/1296110967.py", line 2, in
x = managed_mem[2]
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_53336/2465984283.py", line 3, in __getitem__
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_74444/2465984283.py", line 3, in __getitem__
return self.read(address)
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_53336/2898840933.py", line 9, in read
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_74444/2898840933.py", line 9, in read
assert self.allocated[address], \
AssertionError: Reading from unallocated memory (expected)
Expand Down
10 changes: 5 additions & 5 deletions docs/beta/code/ChangeCounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Where the Bugs are" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/ChangeCounter.html
# Last change: 2024-06-30 18:57:45+02:00
# Last change: 2024-11-09 18:09:29+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down Expand Up @@ -66,10 +66,6 @@
>>> change_counter.messages.get(('README.md',), None)
['Doc update',
'Doc update',
'Doc update',
'Doc update',
'Doc update',
'Doc update',
'Fix: corrected rule for rendered notebooks (#24)\nNew: strip out any tags\nNew: when rendering .md files, replace videos by proper image',
'Doc update',
Expand All @@ -82,6 +78,10 @@
'Update',
'Doc update',
'Doc update',
'Doc update',
'Doc update',
'Doc update',
'Doc update',
'Updated README',
'Doc update',
'Doc update']
Expand Down
6 changes: 3 additions & 3 deletions docs/beta/code/ChangeDebugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Isolating Failure-Inducing Changes" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/ChangeDebugger.html
# Last change: 2024-06-30 19:21:22+02:00
# Last change: 2024-11-09 17:11:54+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down Expand Up @@ -96,9 +96,9 @@ def remove_html_markup(s): # type: ignore
>>> with ExpectError(AssertionError):
>>> test()
Traceback (most recent call last):
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_54974/4262003862.py", line 3, in
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_78522/4262003862.py", line 3, in
test()
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_54974/3045937450.py", line 2, in test
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_78522/3045937450.py", line 2, in test
assert remove_html_markup('"foo"') == '"foo"'
AssertionError (expected)
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/ClassDiagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Class Diagrams" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/ClassDiagram.html
# Last change: 2024-06-30 18:57:54+02:00
# Last change: 2024-11-09 17:28:36+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/DDSetDebugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Generalizing Failure Circumstances" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/DDSetDebugger.html
# Last change: 2024-06-30 19:22:02+02:00
# Last change: 2024-11-09 17:33:15+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
10 changes: 5 additions & 5 deletions docs/beta/code/Debugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "How Debuggers Work" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/Debugger.html
# Last change: 2024-06-30 19:20:09+02:00
# Last change: 2024-11-09 17:10:36+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down Expand Up @@ -57,9 +57,9 @@
(debugger) help
break -- Set a breakoint in given line. If no line is given, list all breakpoints
break -- Set a breakpoint in given line. If no line is given, list all breakpoints
continue -- Resume execution
delete -- Delete breakoint in line given by `arg`.
delete -- Delete breakpoint in line given by `arg`.
Without given line, clear all breakpoints
help -- Give help on given `command`. If no command is given, give help on all
list -- Show current function. If `arg` is given, show its source code.
Expand Down Expand Up @@ -465,7 +465,7 @@ def list_command(self, arg: str = "") -> None:

class Debugger(Debugger):
def break_command(self, arg: str = "") -> None:
"""Set a breakoint in given line. If no line is given, list all breakpoints"""
"""Set a breakpoint in given line. If no line is given, list all breakpoints"""

if arg:
self.breakpoints.add(int(arg))
Expand Down Expand Up @@ -502,7 +502,7 @@ def break_command(self, arg: str = "") -> None:

class Debugger(Debugger):
def delete_command(self, arg: str = "") -> None:
"""Delete breakoint in line given by `arg`.
"""Delete breakpoint in line given by `arg`.
Without given line, clear all breakpoints"""

if arg:
Expand Down
6 changes: 3 additions & 3 deletions docs/beta/code/DeltaDebugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Reducing Failure-Inducing Inputs" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/DeltaDebugger.html
# Last change: 2024-06-30 19:21:06+02:00
# Last change: 2024-11-09 17:11:35+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down Expand Up @@ -51,9 +51,9 @@
>>> with ExpectError(ZeroDivisionError):
>>> myeval('1 + 2 * 3 / 0')
Traceback (most recent call last):
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_54673/4002351332.py", line 2, in
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_77462/4002351332.py", line 2, in
myeval('1 + 2 * 3 / 0')
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_54673/2200911420.py", line 2, in myeval
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_77462/2200911420.py", line 2, in myeval
return eval(inp)
File "", line 1, in
ZeroDivisionError: division by zero (expected)
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/DynamicInvariants.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Mining Function Specifications" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/DynamicInvariants.html
# Last change: 2024-06-30 19:21:49+02:00
# Last change: 2024-11-09 17:34:13+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
8 changes: 4 additions & 4 deletions docs/beta/code/ExpectError.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Error Handling" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/ExpectError.html
# Last change: 2024-06-30 19:30:29+02:00
# Last change: 2024-11-09 17:28:13+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down Expand Up @@ -47,7 +47,7 @@
>>> with ExpectError():
>>> x = 1 / 0
Traceback (most recent call last):
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_65665/2664980466.py", line 2, in
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_98441/2664980466.py", line 2, in
x = 1 / 0
ZeroDivisionError: division by zero (expected)
Expand All @@ -63,9 +63,9 @@
3 seconds have passed
Traceback (most recent call last):
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_65665/1223755941.py", line 2, in
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_98441/1223755941.py", line 2, in
long_running_test()
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_65665/3930412460.py", line 4, in long_running_test
File "/var/folders/n2/xd9445p97rb3xh7m1dfx8_4h0006ts/T/ipykernel_98441/3930412460.py", line 4, in long_running_test
time.sleep(1)
File "Timeout.ipynb", line 43, in timeout_handler
raise TimeoutError()
Expand Down
2 changes: 1 addition & 1 deletion docs/beta/code/Intro_Debugging.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Introduction to Debugging" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/Intro_Debugging.html
# Last change: 2024-06-30 19:19:49+02:00
# Last change: 2024-11-09 17:10:04+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down
12 changes: 6 additions & 6 deletions docs/beta/code/PerformanceDebugger.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Debugging Performance Issues" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/PerformanceDebugger.html
# Last change: 2024-06-30 19:27:54+02:00
# Last change: 2024-11-09 17:46:22+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down Expand Up @@ -59,14 +59,14 @@
243 16% for c in s:
244 15% assert tag or not quote
245 0%
246 14% if c == '' and not quote:
249 2% tag = False
250 8% elif (c == '"' or c == "'") and tag:
246 15% if c == '' and not quote:
249 3% tag = False
250 9% elif (c == '"' or c == "'") and tag:
251 0% quote = not quote
252 9% elif not tag:
253 5% out = out + c
253 4% out = out + c
254 0%
255 2% return out
255 3% return out
Expand Down
4 changes: 2 additions & 2 deletions docs/beta/code/Repairer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# "Repairing Code Automatically" - a chapter of "The Debugging Book"
# Web site: https://www.debuggingbook.org/html/Repairer.html
# Last change: 2024-06-30 18:45:54+02:00
# Last change: 2024-11-09 17:47:41+01:00
#
# Copyright (c) 2021-2023 CISPA Helmholtz Center for Information Security
# Copyright (c) 2018-2020 Saarland University, authors, and contributors
Expand Down Expand Up @@ -500,7 +500,7 @@ def visit(self, node: ast.AST) -> ast.AST:
self.mutations += 1

if self.log:
print(f"{node.lineno:4}:{op.__name__ + ':':7} "
print(f"{node.lineno:4}:{op.__name__ + ':':7} " # type: ignore
f"{self.format_node(node)} "
f"becomes {self.format_node(new_node)}")

Expand Down
Loading

0 comments on commit c41acfc

Please sign in to comment.