Skip to content

Commit

Permalink
Work around type checking error
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-zeller committed Oct 14, 2023
1 parent 3d31ce3 commit 219c680
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notebooks/WhenToStopFuzzing.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -806,8 +806,8 @@
"# frequency of rare trigrams\n",
"plt.figure(num=None, figsize=(12, 4), dpi=80, facecolor='w', edgecolor='k')\n",
"plt.subplot(1, 2, 1)\n",
"plt.hist(frequencies, range=[1, 21], bins=numpy.arange(1, 21) - 0.5)\n",
"plt.xticks(range(1, 21))\n",
"plt.hist(frequencies, range=[1, 21], bins=numpy.arange(1, 21) - 0.5) # type: ignore\n",
"plt.xticks(range(1, 21)) # type: ignore\n",
"plt.xlabel('# of occurances (e.g., 1 represents singleton trigrams)')\n",
"plt.ylabel('Frequency of occurances')\n",
"plt.title('Figure 1. Frequency of Rare Trigrams')\n",
Expand Down Expand Up @@ -1860,10 +1860,10 @@
"\n",
"plt.subplot(1, 3, 2)\n",
"line_cur, = plt.plot(trace_ts[:time], label=\"Ongoing fuzzing campaign\")\n",
"line_pred, = plt.plot(prediction_ts, linestyle='--',\n",
"line_pred, = plt.plot(prediction_ts, linestyle='--', # type: ignore\n",
" color='black', label=\"Predicted progress\")\n",
"plt.legend(handles=[line_cur, line_pred])\n",
"plt.xticks(range(0, trials + 1, int(time)))\n",
"plt.xticks(range(0, trials + 1, int(time))) # type: ignore\n",
"plt.xlabel('# of fuzz inputs')\n",
"plt.ylabel('# of traces exercised')\n",
"\n",
Expand All @@ -1873,7 +1873,7 @@
"line_pred, = plt.plot(prediction_ts, linestyle='--',\n",
" color='black', label=\"Predicted progress\")\n",
"plt.legend(handles=[line_emp, line_cur, line_pred])\n",
"plt.xticks(range(0, trials + 1, int(time)))\n",
"plt.xticks(range(0, trials + 1, int(time))) # type: ignore\n",
"plt.xlabel('# of fuzz inputs')\n",
"plt.ylabel('# of traces exercised');"
]
Expand Down

0 comments on commit 219c680

Please sign in to comment.