Skip to content

Commit

Permalink
notebook: updated calculation of bug fixes that include test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTimperley committed Jun 23, 2021
1 parent 5f2b09c commit 93afbcb
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions notebooks/robust.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -361,6 +361,9 @@
" skipped = 0\n",
" \n",
" for description in DATASET.fixed():\n",
" # restrict our attention to start-up and run-time bugs\n",
" if description.bug.phase not in (\"startup\", \"runtime\"):\n",
" continue\n",
" try:\n",
" if does_fix_include_test(description):\n",
" is_provided += 1\n",
Expand Down Expand Up @@ -497,8 +500,8 @@
" \n",
" for description in DATASET.values():\n",
" if cve not in fault_codes:\n",
" fault_codes[fault] = 0\n",
" fault_codes[fault] += 1\n",
" fault_codes[fault] = 0\n",
" fault_codes[fault] += 1\n",
"\n",
"calculate_cwe_frequency()"
]
Expand Down Expand Up @@ -527,7 +530,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.5"
"version": "3.7.9"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 93afbcb

Please sign in to comment.