Skip to content

Commit

Permalink
Fix wrong paths in notebooks and move graphs to lib
Browse files Browse the repository at this point in the history
  • Loading branch information
basicthinker committed Sep 6, 2017
1 parent 088d98d commit b6bcbbe
Show file tree
Hide file tree
Showing 26 changed files with 279 additions and 607 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
192 changes: 137 additions & 55 deletions notebooks/apache_devrank.ipynb

Large diffs are not rendered by default.

28 changes: 19 additions & 9 deletions notebooks/call_graph_cpp.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"import sys\n",
"if '../lib' not in sys.path: sys.path.append('../lib')\n",
"\n",
"import numpy as np\n",
"from lxml import etree\n",
"from numpy import linalg as LA\n",
Expand Down Expand Up @@ -71,7 +75,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -231,7 +236,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -281,7 +287,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -292,7 +299,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -303,7 +311,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -314,7 +323,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": []
Expand All @@ -323,9 +333,9 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [conda root]",
"display_name": "Python 3",
"language": "python",
"name": "conda-root-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
401 changes: 24 additions & 377 deletions notebooks/commit_graph_demo.ipynb

Large diffs are not rendered by default.

34 changes: 23 additions & 11 deletions notebooks/linux_kernel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"import sys\n",
"if '../lib' not in sys.path: sys.path.append('../lib')\n",
"\n",
"import glob\n",
"import pdb\n",
"import cProfile\n",
Expand All @@ -24,7 +28,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -42,7 +47,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -56,7 +62,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -70,7 +77,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -83,7 +91,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -136,7 +145,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -147,7 +157,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -158,7 +169,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": []
Expand All @@ -167,9 +179,9 @@
"metadata": {
"anaconda-cloud": {},
"kernelspec": {
"display_name": "Python [conda root]",
"display_name": "Python 3",
"language": "python",
"name": "conda-root-py"
"name": "python3"
},
"language_info": {
"codemirror_mode": {
Expand Down
61 changes: 46 additions & 15 deletions notebooks/process_fs_patch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"## Read Data Files"
]
Expand All @@ -11,7 +14,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -23,7 +27,10 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"fs_extractor = extractor.FSPatchExtractor()\n",
Expand All @@ -42,7 +49,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"## Supplement Data With Info from Linux Repo"
]
Expand All @@ -51,7 +61,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -69,10 +80,14 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
"import sys\n",
"if '../lib' not in sys.path: sys.path.append('../lib')\n",
"\n",
"from git import Commit\n",
"from graphs.patch_parser import PatchParser\n",
"\n",
Expand Down Expand Up @@ -107,7 +122,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"## Correct Misspelled Bug Consequence Type"
]
Expand All @@ -116,7 +134,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -131,7 +150,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"## Remove data points without message"
]
Expand All @@ -140,7 +162,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -153,7 +176,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"## Save Data for Future Convenience"
]
Expand All @@ -162,7 +188,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand All @@ -172,7 +199,10 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"deletable": true,
"editable": true
},
"source": [
"## Output Patch Data to XML Files"
]
Expand All @@ -181,7 +211,8 @@
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
"deletable": true,
"editable": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -217,7 +248,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.3"
"version": "3.5.2"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit b6bcbbe

Please sign in to comment.