From b6bcbbe8464edd4a16a7458432602b2d9f5f20ee Mon Sep 17 00:00:00 2001 From: Jinglei Ren Date: Wed, 6 Sep 2017 21:49:33 +0800 Subject: [PATCH] Fix wrong paths in notebooks and move graphs to lib --- {graphs => lib/graphs}/__init__.py | 0 {graphs => lib/graphs}/call_commit_graph.py | 0 {graphs => lib/graphs}/call_graph/__init__.py | 0 {graphs => lib/graphs}/call_graph/c.py | 0 {graphs => lib/graphs}/call_graph/cpp.py | 0 {graphs => lib/graphs}/call_graph/java.py | 0 {graphs => lib/graphs}/call_graph/utils.py | 0 {graphs => lib/graphs}/commit_graph.py | 0 {graphs => lib/graphs}/cpp_tools.py | 0 {graphs => lib/graphs}/detect_change.py | 0 {graphs => lib/graphs}/devrank.py | 0 {graphs => lib/graphs}/git_tools.py | 0 {graphs => lib/graphs}/pagerank.py | 0 {graphs => lib/graphs}/parse_patch.py | 0 {graphs => lib/graphs}/patch_parser.py | 0 {graphs => lib/graphs}/processor.py | 0 {graphs => lib/graphs}/ruby_tools.py | 0 {graphs => lib/graphs}/srcml.py | 0 {graphs => lib/graphs}/write_graph_to_dot.py | 0 notebooks/apache_devrank.ipynb | 192 ++++++--- notebooks/call_graph_cpp.ipynb | 28 +- notebooks/commit_graph_demo.ipynb | 401 ++---------------- notebooks/linux_kernel.ipynb | 34 +- notebooks/process_fs_patch.ipynb | 61 ++- notebooks/test_processor.ipynb | 90 +--- notebooks/weight_opt.ipynb | 80 +--- 26 files changed, 279 insertions(+), 607 deletions(-) rename {graphs => lib/graphs}/__init__.py (100%) rename {graphs => lib/graphs}/call_commit_graph.py (100%) rename {graphs => lib/graphs}/call_graph/__init__.py (100%) rename {graphs => lib/graphs}/call_graph/c.py (100%) rename {graphs => lib/graphs}/call_graph/cpp.py (100%) rename {graphs => lib/graphs}/call_graph/java.py (100%) rename {graphs => lib/graphs}/call_graph/utils.py (100%) rename {graphs => lib/graphs}/commit_graph.py (100%) rename {graphs => lib/graphs}/cpp_tools.py (100%) rename {graphs => lib/graphs}/detect_change.py (100%) rename {graphs => lib/graphs}/devrank.py (100%) rename {graphs => lib/graphs}/git_tools.py (100%) rename {graphs => lib/graphs}/pagerank.py (100%) rename {graphs => lib/graphs}/parse_patch.py (100%) rename {graphs => lib/graphs}/patch_parser.py (100%) rename {graphs => lib/graphs}/processor.py (100%) rename {graphs => lib/graphs}/ruby_tools.py (100%) rename {graphs => lib/graphs}/srcml.py (100%) rename {graphs => lib/graphs}/write_graph_to_dot.py (100%) diff --git a/graphs/__init__.py b/lib/graphs/__init__.py similarity index 100% rename from graphs/__init__.py rename to lib/graphs/__init__.py diff --git a/graphs/call_commit_graph.py b/lib/graphs/call_commit_graph.py similarity index 100% rename from graphs/call_commit_graph.py rename to lib/graphs/call_commit_graph.py diff --git a/graphs/call_graph/__init__.py b/lib/graphs/call_graph/__init__.py similarity index 100% rename from graphs/call_graph/__init__.py rename to lib/graphs/call_graph/__init__.py diff --git a/graphs/call_graph/c.py b/lib/graphs/call_graph/c.py similarity index 100% rename from graphs/call_graph/c.py rename to lib/graphs/call_graph/c.py diff --git a/graphs/call_graph/cpp.py b/lib/graphs/call_graph/cpp.py similarity index 100% rename from graphs/call_graph/cpp.py rename to lib/graphs/call_graph/cpp.py diff --git a/graphs/call_graph/java.py b/lib/graphs/call_graph/java.py similarity index 100% rename from graphs/call_graph/java.py rename to lib/graphs/call_graph/java.py diff --git a/graphs/call_graph/utils.py b/lib/graphs/call_graph/utils.py similarity index 100% rename from graphs/call_graph/utils.py rename to lib/graphs/call_graph/utils.py diff --git a/graphs/commit_graph.py b/lib/graphs/commit_graph.py similarity index 100% rename from graphs/commit_graph.py rename to lib/graphs/commit_graph.py diff --git a/graphs/cpp_tools.py b/lib/graphs/cpp_tools.py similarity index 100% rename from graphs/cpp_tools.py rename to lib/graphs/cpp_tools.py diff --git a/graphs/detect_change.py b/lib/graphs/detect_change.py similarity index 100% rename from graphs/detect_change.py rename to lib/graphs/detect_change.py diff --git a/graphs/devrank.py b/lib/graphs/devrank.py similarity index 100% rename from graphs/devrank.py rename to lib/graphs/devrank.py diff --git a/graphs/git_tools.py b/lib/graphs/git_tools.py similarity index 100% rename from graphs/git_tools.py rename to lib/graphs/git_tools.py diff --git a/graphs/pagerank.py b/lib/graphs/pagerank.py similarity index 100% rename from graphs/pagerank.py rename to lib/graphs/pagerank.py diff --git a/graphs/parse_patch.py b/lib/graphs/parse_patch.py similarity index 100% rename from graphs/parse_patch.py rename to lib/graphs/parse_patch.py diff --git a/graphs/patch_parser.py b/lib/graphs/patch_parser.py similarity index 100% rename from graphs/patch_parser.py rename to lib/graphs/patch_parser.py diff --git a/graphs/processor.py b/lib/graphs/processor.py similarity index 100% rename from graphs/processor.py rename to lib/graphs/processor.py diff --git a/graphs/ruby_tools.py b/lib/graphs/ruby_tools.py similarity index 100% rename from graphs/ruby_tools.py rename to lib/graphs/ruby_tools.py diff --git a/graphs/srcml.py b/lib/graphs/srcml.py similarity index 100% rename from graphs/srcml.py rename to lib/graphs/srcml.py diff --git a/graphs/write_graph_to_dot.py b/lib/graphs/write_graph_to_dot.py similarity index 100% rename from graphs/write_graph_to_dot.py rename to lib/graphs/write_graph_to_dot.py diff --git a/notebooks/apache_devrank.ipynb b/notebooks/apache_devrank.ipynb index d2b425a235f..cb3a22a9dc3 100644 --- a/notebooks/apache_devrank.ipynb +++ b/notebooks/apache_devrank.ipynb @@ -4,7 +4,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -16,11 +17,15 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ "# import dependencies and set default alpha value\n", + "import sys\n", + "if '../lib' not in sys.path: sys.path.append('../lib')\n", + "\n", "import math\n", "import pickle\n", "import pprint\n", @@ -28,7 +33,8 @@ "import matplotlib.pyplot as plt\n", "from graphs.call_commit_graph import CallCommitGraph\n", "from scipy.stats import spearmanr, kendalltau\n", - "default_alpha = 0.85\n", + "\n", + "default_alpha = 0.8\n", "pp = pprint.PrettyPrinter(indent=4)\n", "\n", "def write_hash_to_csv(hh, fname):\n", @@ -45,7 +51,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Load Call-Commit Graph" ] @@ -54,7 +63,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -63,13 +73,13 @@ "# pickle_path = \"../data/httpd-finished.pickle\"\n", "# repo_name = \"httpd\"\n", "\n", - "pickle_path = \"../data/flink-1st-7100.pickle\"\n", + "pickle_path = \"../data/call-commit-graphs/flink-1st-7100.pickle\"\n", "repo_name = \"flink\"\n", "\n", - "# pickle_path = \"../data/kafka-finished.pickle\"\n", + "# pickle_path = \"../data/call-commit-graphs/kafka-finished.pickle\"\n", "# repo_name = \"kafka\"\n", "\n", - "# pickle_path = \"../data/systemml-finished.pickle\"\n", + "# pickle_path = \"../data/call-commit-graphs/systemml-finished.pickle\"\n", "# repo_name = \"systemml\"\n", "\n", "repo_path = \"../repos/\" + repo_name\n", @@ -80,7 +90,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## DevRank Share" ] @@ -89,7 +102,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -121,7 +135,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -133,7 +148,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## LocRank" ] @@ -142,7 +160,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -173,7 +192,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -183,7 +203,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## CommitRank" ] @@ -192,7 +215,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -222,7 +246,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -231,7 +256,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Calculate Gini Coefficient" ] @@ -240,7 +268,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -256,7 +285,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Basic Validation of Analysis Result" ] @@ -265,7 +297,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -284,7 +317,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -296,7 +330,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -320,7 +355,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Get Developer Role from Apache" ] @@ -329,7 +367,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -344,7 +383,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -359,7 +399,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -374,7 +415,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -389,7 +431,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -404,7 +447,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -427,7 +471,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Compare top k contributors given by DevRank and LocRank" ] @@ -436,7 +483,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -458,7 +506,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Fig2 in the paper: Overlapping of LocRank and DevRank" ] @@ -467,7 +518,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -497,7 +549,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Fig3 in the paper: Developers' relative share changes between LocRank and DevRank" ] @@ -506,7 +561,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -538,7 +594,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Fig5 in the paper: DevRank scaled by commit type" ] @@ -547,7 +606,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -580,12 +640,15 @@ " plt.legend(['2x bug', '4x bug', '2x feature', '4x feature'], loc='best')\n", " plt.show()\n", " \n", - "figure5(0.8, c2t[repo_name])" + "figure5(0.8, c2t['flink'])" ] }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Accuracy of predicting committers" ] @@ -594,7 +657,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -617,7 +681,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -635,7 +700,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -655,7 +721,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Mismatch between Apache Roster and Analysis Result" ] @@ -664,7 +733,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -677,7 +747,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -690,7 +761,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -703,7 +775,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -717,7 +790,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -737,7 +811,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Correlation Coefficient and Significance Test" ] @@ -746,7 +823,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -780,7 +858,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Gini Coefficients over Alpha" ] @@ -789,7 +870,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -810,9 +892,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": { diff --git a/notebooks/call_graph_cpp.ipynb b/notebooks/call_graph_cpp.ipynb index 7c8ddf1d6e5..5eeaa77356e 100644 --- a/notebooks/call_graph_cpp.ipynb +++ b/notebooks/call_graph_cpp.ipynb @@ -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", @@ -71,7 +75,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -231,7 +236,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -281,7 +287,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -292,7 +299,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -303,7 +311,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -314,7 +323,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [] @@ -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": { diff --git a/notebooks/commit_graph_demo.ipynb b/notebooks/commit_graph_demo.ipynb index 51494a003f2..7d6ba7e9ae1 100644 --- a/notebooks/commit_graph_demo.ipynb +++ b/notebooks/commit_graph_demo.ipynb @@ -2,391 +2,37 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "import sys\n", + "sys.path.append('../lib')\n", + "\n", + "from graphs.commit_graph import draw_commit_graph" + ] + }, + { + "cell_type": "code", + "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "------ No.1 7f3e6254389aa07464803da1a0557e629dda8507 ------\n", - "------ No.2 41e0775637a0d357b5c494570f1ff4c531d2d73c ------\n", - "------ No.3 fb940870cac5f5694a276cbc86b44a214b1f2fc4 ------\n", - "------ No.4 71ad735ad1b495f9462ffe41a45fa0e2dee9b3d0 ------\n", - "------ No.5 8be8e3b3afca9b901e95eb5e8420ffa76dc6be57 ------\n", - "------ No.6 80ae4433757bfe5fffa9f0a669facbc751222ead ------\n", - "------ No.7 d961a12b33be4683692c6a68b05d0c981e626b9f ------\n", - "------ No.8 7af8fbaadda376d39a5b94294491d76f513ebe10 ------\n", - "------ No.9 d3647ac7595f87d392e96560c56d8467b4a4d33a ------\n", - "------ No.10 6872bbafe2d6e83d8051b9829d7d49951717c83c ------\n", - "Take a look at this commit!!! 6872bbafe2d6e83d8051b9829d7d49951717c83c\n", - "------ No.11 43f36b9f1698d6d6ccb370675c897cb4ae2b40ff ------\n", - "------ No.12 db5df9878640a29e337cd8f789450ac4f9b2d4bc ------\n", - "------ No.13 f0c2a091066acb943a4a40f1ba5fdafa67e53543 ------\n", - "------ No.14 7ac98d6a24b7f8cbd29f99f7be7b928523400623 ------\n", - "Take a look at this commit!!! 7ac98d6a24b7f8cbd29f99f7be7b928523400623\n", - "------ No.15 beb7d25fa74ee3654d403fd1127d2de4e51db4e1 ------\n", - "------ No.16 fd8fc57c7310755b6aac8aa9943aa2f780979210 ------\n", - "------ No.17 f5e81e6f2f486105b5adaaf7ba06c5c78cc9ef89 ------\n", - "------ No.18 92e12fd722d26ab3f2ff7ab354a2d54dc68f027c ------\n", - "------ No.19 93008d889d43752dcf39efbdeec1a29e04128ce1 ------\n", - "------ No.20 4bf38c5d494001214a9562ebfc31238ab07bb72e ------\n", - "------ No.21 7e69fd39d47e70cb4415f0fa67b8ce8007808771 ------\n", - "------ No.22 cde6ae7021bef91a765a535fb54084018eb83bd0 ------\n", - "------ No.23 69ce852a6ad498bd1690e26eb911c9bef4396e0b ------\n", - "------ No.24 246eff2b885d2ef552e23a86623389d9a52e67d0 ------\n", - "------ No.25 bb63c89f953fedfd00d68fc3f904d0da4aa60a46 ------\n", - "------ No.26 17c4f2e7f1de0def09ac2a87331f86edcafeaa97 ------\n", - "------ No.27 851b512baaf62bc38eefd76b0595231901d53e5a ------\n", - "------ No.28 f9030e8871528875f2980102fa8a609605c5d461 ------\n", - "------ No.29 ae4247fbbe12c86fb846147b50eaa379cde293ea ------\n", - "------ No.30 ced6c7cfcbb3c8d529bd94ae34f68fe2b07543a2 ------\n", - "------ No.31 4314ac67a1700787761352e2e95f1962d68be787 ------\n", - "------ No.32 209e01d4bd99e8ba66ff5f4e5f48e826f9212e38 ------\n", - "------ No.33 995f1e7b1b64f50e5e3460bf8d9236fad518a052 ------\n", - "------ No.34 0ab4443f80b4b177ce1b940a42865bb72a5ddc93 ------\n", - "------ No.35 1a43108db4c734922d455329ef66bf82964a8eb1 ------\n", - "------ No.36 82e0c8302ce0108c69f000cd0bbfe81a05960313 ------\n", - "------ No.37 d2695e823c8357d9f1805fa345f02e2dc6ff5eea ------\n", - "------ No.38 236d3221318c906934d40a3cd5a47f26ccb1ce5c ------\n", - "------ No.39 f22a7c31d01b741f4e93a65311829eff59e4e5ea ------\n", - "------ No.40 92129fdc1a39880cd3edd64eb1ad858f0f4b4807 ------\n", - "------ No.41 87065ad0cf449b8d418f3afb57ba586d367d2172 ------\n", - "------ No.42 c9ce3bb1d65ba2f6f408ccd95c678fb314d95100 ------\n", - "------ No.43 d1e7e1222f3b9447c9966f2697e870764a801407 ------\n", - "------ No.44 f06fed75f265b024c9980db84ef1bfdc658722f2 ------\n", - "------ No.45 fb8f4c943fe7364a038a9bbf0607690aec07231f ------\n", - "------ No.46 98fcc33dbf94c7da021cec472f135299107fa0da ------\n", - "------ No.47 35b15d34600b873aef3ecd1c60edc866de2bbbac ------\n", - "------ No.48 f571cfbf16fa8db0d90acf60fb8d498373098c26 ------\n", - "------ No.49 e0cde6274a3b2ee1fc5b08507fb823d28eb30d9b ------\n", - "------ No.50 0ebecb381d6c2199c9b1040957616f6296b7396f ------\n", - "------ No.51 c2fa31d12c4c8691f52ee69db64487327703ac3c ------\n", - "------ No.52 f10a54fa9edfa69eed55eff61fc52fff5fb36980 ------\n", - "------ No.53 fa61927639235cc6c5a4e4b2b4c5225de05f72be ------\n", - "------ No.54 976a3fe4b6b370404d417d3355b5408a29e68c34 ------\n", - "------ No.55 6d174cf91e5a24dea211094d6a1039823567142b ------\n", - "------ No.56 e8950e603a9e4820dc332cbbd0560ce4238179a5 ------\n", - "------ No.57 bf3a5a9bbc7af07c6688f0c467562102b5741c70 ------\n", - "------ No.58 d0b82363cd880b7aff27301642d4d04dbc65dfc7 ------\n", - "------ No.59 1088c5410d20b454865c75e9b4d99a70649935fa ------\n", - "------ No.60 f9c8e3be8ecbfd2c93f5b42701ed520d5e194a77 ------\n", - "------ No.61 f4820eb4f629f1ab7dcffe98a2cc4a9bcac8a118 ------\n", - "------ No.62 30b9a7f56e32ed08ddf3d869eb704f1a1c27b846 ------\n", - "------ No.63 2274f2632084aeef36c6e380a4bb21fc6eb3c4a7 ------\n", - "------ No.64 dfdc713b4502920dbe3d0806691dbd8e8be525c0 ------\n", - "------ No.65 475631f954f6e73a86afa138490cc1a74062a614 ------\n", - "------ No.66 d500c700edb1509165095107db1738b5de20cf02 ------\n", - "------ No.67 a3faee204da4e6c8f6890413222083fd35bd8d22 ------\n", - "------ No.68 59d5b4403debbf4e9947156f05f0813706504630 ------\n", - "------ No.69 612dceadcff7ac571926852e0d79ba4220f17453 ------\n", - "------ No.70 2701c24f88c047bc2f8d4b2cea68bfed8123b59c ------\n", - "------ No.71 48e2dd2bf1511bc6951a90891c0a36d7813e09d0 ------\n", - "------ No.72 e32ee29fd1b3dee2c35ec1bc6e9f71dd2e3e8a15 ------\n", - "------ No.73 acd788e851126ce494e42d6b063f0f95b5457e03 ------\n", - "------ No.74 a3f9cd8c3197fda2ad2976ec8faed8fc5e723957 ------\n", - "------ No.75 f1d5e5914b222bed71a4570e1d5525e3439dde0a ------\n", - "------ No.76 b2647be885f778988742e5e573099f024bde8e5d ------\n", - "------ No.77 1a9ac5ef1b3b02bccbc8dc02071f9e28b3f91147 ------\n", - "------ No.78 38e3295809d9d418195325167cf4bae92a450bb5 ------\n", - "------ No.79 aade2bd0a1856c374495becae37534b2cfd32626 ------\n", - "------ No.80 7895b7316eed3019bb3e1306d7e8312599d0e0e9 ------\n", - "------ No.81 8d8c6ef9eeed84d1fc4dc348c7a6d821605e60a7 ------\n", - "------ No.82 ac6367c13341e35d94739db0b69189682d53b221 ------\n", - "------ No.83 3b6e0476d46631d3fd3c011c3d489bcbde80315c ------\n", - "------ No.84 8ec7427d5512070aea02ccf76072ee6de5055743 ------\n", - "------ No.85 b65ff51f5f5d228f306c2cd8641168843105d435 ------\n", - "------ No.86 e4a36e396c0f6c091300d7c4cb3f043048f96ccb ------\n", - "------ No.87 78fd3044ae68ee83e3414cb894ea08e74d332d46 ------\n", - "------ No.88 fd8c065911e0b350e195681add721eb897550abc ------\n", - "------ No.89 9e1c6df2e7950548cc94f179f0d4f862fe121beb ------\n", - "------ No.90 14737c4167c4e909647a938886f5f0b741625f2b ------\n", - "------ No.91 68746ca4963cf2b77e5480dcbffd6d47890f0723 ------\n", - "------ No.92 8a74aeef8ff717aa6791d6f8b9382c4d0d51ed1b ------\n", - "------ No.93 e0a90cdbe8172e307c7d1baefc639d99574420a1 ------\n", - "------ No.94 6c1ab579c1dea0994b3216d5f9589d012d2388d9 ------\n", - "------ No.95 a768a61787f4098a6c2b6929cb00d78099f214f3 ------\n", - "------ No.96 651f414c31013cf38f6c7e1cd129a306920db00a ------\n", - "------ No.97 0dbc31215605a031fa8ad5a74beab79b7192bc6e ------\n", - "------ No.98 7f67de2dcc9b896f6f1214c221466a2c7d48f93f ------\n", - "------ No.99 5d2fe465d10087cfcc39068f128f73eae93c6c14 ------\n", - "------ No.100 574ba6e319845bc114b7e79dbc26a2623bb704ea ------\n", - "------ Used time: 10.939192056655884 ------\n" - ] - } - ], + "outputs": [], "source": [ - "from graphs.commit_graph import draw_commit_graph\n", "draw_commit_graph('../repos/audience1st', 'RUBY', num_commits=100)" ] }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "------ No.1 83d7c66a8df18890925076110ea0f3e96828e3fb ------\n", - "------ No.2 912cb208f9f4b2ca9e7214add915f69f3bcf2f52 ------\n", - "------ No.3 583dd4cc1fe72c25a1e17bf1644f113e8fc6d2fc ------\n", - "------ No.4 0cb945d1939eb62eb41e5cae000287402d57f599 ------\n", - "------ No.5 fa0ea5672f7e8d6331e06e30ad93ef1a4245cb7f ------\n", - "------ No.6 ac2885fd480bb2db28254f8460e65cf78c6adab1 ------\n", - "------ No.7 33a0ecc72567132af8fb5a204a4bbd162ab4476e ------\n", - "------ No.8 8f86c2379330f5d8606ebee11faba3a3469cf24f ------\n", - "------ No.9 45f88ee8aa94c8bf64d36715d1947e2b7c14faf8 ------\n", - "------ No.10 2ad85b1c023b123960d4a4fb830cb2808cb9b870 ------\n", - "------ No.11 8996e53573d073a960a5f48d2c0e1deeef4c57fa ------\n", - "------ No.12 5619a15402099b1209db9ed7f71e1e55548ddebe ------\n", - "------ No.13 0eb626ccb15f0de4491e4b17fa350a8c3f9215db ------\n", - "------ No.14 49403949ff1fe9b4dcfc6ceb35cb3535f389e24a ------\n", - "------ No.15 642daa664715cd1fc37d8698a5537db97403966a ------\n", - "------ No.16 f8001064fb5a0b09d7150b8448b63a006b165dea ------\n", - "------ No.17 6cdfc86538a48990de9e8f4c99768df105dde5bb ------\n", - "------ No.18 17dd9c5c200406da430794ac9bd4ab217892bb23 ------\n", - "------ No.19 7995430b3fc4d8f837a52764d07009fdd90351f6 ------\n", - "------ No.20 92c2d1e9e44610c91aca51a4e9ae1313329e2374 ------\n", - "------ No.21 6756e180f3bd01ffcd37131d3912a08aeee3ae20 ------\n", - "------ No.22 3bc951248c7243f07f6d203992652e0722e86563 ------\n", - "------ No.23 b061d8e9a034df8d2549870e4a81d89fc69224db ------\n", - "------ No.24 4b21ba03bb69603c01e70d84cb0c6880ee9b8430 ------\n", - "------ No.25 0b0be162931621dcd003fbbcd980c3128e9e46a8 ------\n", - "------ No.26 f666ff64c7f1cb91a8a3227b4e53f5b158be044e ------\n", - "------ No.27 96533d402f8f46b24c4bcfbc2147426fff699772 ------\n", - "------ No.28 fd825dd3efc93805a6ff32b0103d71d1235aed76 ------\n", - "------ No.29 3abbb30c616b3af224b22588cc1950c126823842 ------\n", - "------ No.30 95917a8ad087a55608d39e2b3d84fe10ffec07de ------\n", - "------ No.31 8f1fa758d59c8a3127ae5ef5019b958bb4ec12fa ------\n", - "------ No.32 f65fb265b320a3c9f3cd739ad99666582046021d ------\n", - "------ No.33 7922aa46f2aa5ec71f03550487da35eaec74ebcd ------\n", - "------ No.34 a3858560dcffb52434e719fe4a8b06fd37530feb ------\n", - "------ No.35 dad78a3461b5aa2782fbe165a38806aa32f591da ------\n", - "------ No.36 9410254ba49e1c48760a9f4075a0aa39c0571de0 ------\n", - "------ No.37 07f941995c61878d8abfd1b18875eacda8225cc7 ------\n", - "------ No.38 efc590b3e64a3de3334064e3e948fa23d290935c ------\n", - "------ No.39 d30a5cc9563f63ab13ec050055c11e39e74f160c ------\n", - "------ No.40 40f2fce07b86100d8e708861d14d65c0461fb575 ------\n", - "------ No.41 959f5f86436b29105682ee21eebe80b207a641de ------\n", - "------ No.42 e8f0c0a81460ae795d658d370e8d005d69c044ed ------\n", - "------ No.43 b5127cd2267b831a937823759b8fa8f9d78783d8 ------\n", - "------ No.44 afb35ce4575f44ba290242ef10768a6c9a4daa9e ------\n", - "------ No.45 f73317204c11c3a389619a139d109a5149101f01 ------\n", - "------ No.46 9f33463c633ed63a2f41d867e35102f5c7595a62 ------\n", - "------ No.47 4b2e3893a26650afa9dbacf461270e73475fbdd0 ------\n", - "------ No.48 712801f7faf82c2270b6353f135fce13d1646f72 ------\n", - "------ No.49 a141f0b82da4f56ee51293a59a1cb860ee1e861a ------\n", - "------ No.50 da9a137360794b69b2f30f51ce066040c7a416c0 ------\n", - "------ No.51 79e290db4c54021fdecd227d2cc8059d8568d2c5 ------\n", - "------ No.52 f21c385abd7f547c2a9fbe711e7511fab6f0798d ------\n", - "------ No.53 aa6a951e5e25876a43768d48600ccbdbf5ff62d2 ------\n", - "------ No.54 9c11a87a3eaaa96a47a0f52460d40c7a5039d6e4 ------\n", - "------ No.55 02794069be5f6d3d89f3f9b627871847a4c5b093 ------\n", - "------ No.56 acdc69fa013885f4ad833410bd10bfe4a3d9ff4a ------\n", - "------ No.57 9ab194b8992e6a4c39d5040858e76ee2fc51ce15 ------\n", - "------ No.58 14d0dbbf1682cc06d27bba803ea5ca5d73969253 ------\n", - "------ No.59 68e2fec9b7bf762471ab6a184acec03f0beb5a8d ------\n", - "------ No.60 29e2061812832a341967afe367e7fc51ea84c43b ------\n", - "------ No.61 f40802d909e7cd5df5b7062688e7db6461c51dfc ------\n", - "------ No.62 4a0e35b1dd9cda3a70a2715a9be0013c8bba7922 ------\n", - "------ No.63 604c027cac7cc4a1f8aff14af205a75a2b6c409e ------\n", - "------ No.64 b8d84534860c331ed6eb759f9657d51b3ad4026b ------\n", - "------ No.65 6f9425179a3a099beb1f9d80e9ff29c01714ab5e ------\n", - "------ No.66 48db5622196b26ed5ab64ea64ff1fd7abd9c9050 ------\n", - "------ No.67 7a42fef6e27463eee70afaf3e4169dc63fcac40d ------\n", - "------ No.68 9e5edb3838ad3e574e951a3f5d2362b856432d04 ------\n", - "------ No.69 195e5fe6a219cbe3d5f377460f7b7c3b7bcb3179 ------\n", - "------ No.70 a2a1ed1955d2c1462075291be54e2136d36b48ae ------\n", - "------ No.71 53c83342b7bffaacf5a1700a612e4164c1fdba79 ------\n", - "------ No.72 88979077df9288b32666aa794120a491e0d4e795 ------\n", - "------ No.73 281342032e9e613e05bd374a759f4777d45d1587 ------\n", - "------ No.74 f378c72ea57c2b6b86d11d2a4fe1d984f022c109 ------\n", - "------ No.75 c5b782ee26184edde847ef426928374f10218b55 ------\n", - "------ No.76 d6fe54b7c6d532c1dfbc2bf5f3da945a865569fc ------\n", - "------ No.77 14068b468ec6fb047f384e535411287eae9267bd ------\n", - "------ No.78 598043f453b5a4ecd57db36bc51306feb6f2ab6e ------\n", - "------ No.79 44c6ba2f15f21f1559260e91dfcb8f765bea5c15 ------\n", - "------ No.80 5a90d5ab1b8363067eefa63036b37c77e0a46940 ------\n", - "------ No.81 658c09a27791663219ef06380991cbdd02e2ef7a ------\n", - "------ No.82 006ef2053f83bdec756df5acc475e48e242d685c ------\n", - "------ No.83 624c824a3d463b1e61181be6ff9fafeb59741288 ------\n", - "------ No.84 29389e0a8d900f928bdc7cd436ee4bf417cdf9f4 ------\n", - "------ No.85 7b51c6d0f8e3436c0f7fbe68e280adb9692f9f3f ------\n", - "------ No.86 b9e44be1248d471f5a16832c757cb9acf452a459 ------\n", - "------ No.87 475707e0c52ae839da4bb8466e05da4e7be7f5c9 ------\n", - "------ No.88 c65aa36dc193e0737fa1d0e267b34f5d916c5d8e ------\n", - "------ No.89 b042aa76c42a96fa9b304526e88694f0cbdd9f3d ------\n", - "------ No.90 5af7848a0200159ee00761ae3519ef04410c6661 ------\n", - "------ No.91 92b7d176fa16c1faf0ccf03106c1c99fe07987c3 ------\n", - "------ No.92 8b539e2286b49300aa6f4978ded17b053873e3cd ------\n", - "------ No.93 4a6cd323d0296e42c6beb3a3d5dc9058fa5d661f ------\n", - "------ No.94 541117944bbf7968762f7b170f36f909e0c6dbaa ------\n", - "------ No.95 92be132ee668868ca1285086377326f46354b7ef ------\n", - "------ No.96 8a4fac9cc5f65961ed1c8395ee5fbed4850d1a21 ------\n", - "------ No.97 5146871f16de1883e4c82966fbf222d0cd3cb108 ------\n", - "------ No.98 dfb5ed637985b717c3cbaf690a5262333b3c874c ------\n", - "------ No.99 eceedeeb863a6d13145ed217ef9676cc468cce41 ------\n", - "------ No.100 34bc672e63cb143f2638e38fc06fa2385d00b160 ------\n", - "------ Used time: 10.76974606513977 ------\n", - "------ No.101 c243aef148a7d4db6860e5013022a0d44bcfb4b9 ------\n", - "------ No.102 fca98265b5bc4a642b19dfef5a5b28cdbfe3d414 ------\n", - "------ No.103 b2e4ef35edd06f3e9db491674f274507d708b479 ------\n", - "------ No.104 1f854bc14f70920ff608f239f92dd77259e979bd ------\n", - "------ No.105 9d3cdd6a13672f406195a15812ee49efde409239 ------\n", - "------ No.106 9050a3f2598129db3221bc0b5d322deaa69778c9 ------\n", - "------ No.107 0e745c83a9efddc8619022d2fc98d0eec4dcc0d9 ------\n", - "------ No.108 842167d0444c1e3b0109d759f9a52cf7fbdd7ceb ------\n", - "------ No.109 a16afaf0089b028ac8d0fbc49459c872916da8ab ------\n", - "------ No.110 5b8362696c09885b0669ea8b9e09b3ec9784abdb ------\n", - "------ No.111 4e6327fdb2a5d0d2a52ddabb6e1c4fc3e0b381ac ------\n", - "------ No.112 efa0e7860fb762ae0fd4095f33463619d9937689 ------\n", - "------ No.113 716d338b0735a15a1993a07c4fa31de6eb37c474 ------\n", - "------ No.114 7cc19260b1784a368957174173276fd54c6d874c ------\n", - "------ No.115 504614c0fe52fc0aeb5963079e08c6f2700c7916 ------\n", - "------ No.116 5898be26286dd526595fd57c170f129491d554a6 ------\n", - "------ No.117 f53c2f732145543c3409c4c11a8b0ddfba62ccdf ------\n", - "------ No.118 080636906a1cc101446e1668c8236b58814129de ------\n", - "------ No.119 42de842012b0e58025f7b84894b0642ec0459e39 ------\n", - "------ No.120 875cfb46b18da33b8be89387a7ae8e220f77ece7 ------\n", - "------ No.121 6deccdf229a6b1ae0a8355a272e5021c0f75fdd6 ------\n", - "------ No.122 4acab8e610c9b8ab85872a56bfd042d86dd87f3e ------\n", - "------ No.123 105a3ce8adfc18a5eab5b3fc479f24d98b3734e4 ------\n", - "------ No.124 40482f715f3bdc5c8e08f3ef385acc57544fd31a ------\n", - "------ No.125 890b9e0263d851e3622ab75c2e2451ba9ff9b1bb ------\n", - "------ No.126 92b49064ac8722fbbc5f6a1b9a51eb7593099edf ------\n", - "------ No.127 e0335339f80abfaf52b1f528175a4b70c3be0980 ------\n", - "------ No.128 8a06ed3d4d0d2483fe5a3359d6c00f9220df1c81 ------\n", - "------ No.129 debf7b19e8a8ba46d2839c4f0bb6bd3f4f147a3b ------\n", - "------ No.130 78bd525ff6a1e00006888d774dfde6b27a946b45 ------\n", - "------ No.131 fed1d8d9ebe236565d66b03adfbf3426dbb9915c ------\n", - "------ No.132 317ba5741ca51cc99f8196857e63be6a1171b57d ------\n", - "------ No.133 53b9e16e7fdb4e634ea37cec3df71e793b5c75f6 ------\n", - "------ No.134 7a0550a5ff7e9f4dbe7e259c1b90d76531a40216 ------\n", - "------ No.135 18ddbfe72267aeb063c48a75ba8d58474677d13c ------\n", - "------ No.136 f79c32dad52b304349f2ce234a2d1c2ee0cb0d81 ------\n", - "------ No.137 d59b48f422016c3e462dc37d46c67a57a70f7b54 ------\n", - "------ No.138 43614bdf2b70f52a27f505c6baacf01988d5fd52 ------\n", - "------ No.139 8a80c5b19fadee327b7ba10ad0de92cbe174d3c9 ------\n", - "------ No.140 ece9061e55c35d300ce3cba9e6d3cc8d603035fe ------\n", - "------ No.141 ebeff33fd417e106b0e75b1f789ce65dfe5c6bf3 ------\n", - "------ No.142 83277316e95fbbe62028b91a14d4472e55abf4d3 ------\n", - "------ No.143 505735b03f624ae914c5be2dc792c9d515823706 ------\n", - "------ No.144 4561953fbe4372a39ffc75a4664a4d9e45bec173 ------\n", - "------ No.145 ff07cbf1e2b3d52330e7656e075c225e0e89f9f4 ------\n", - "------ No.146 3d779f42098abeb2a8e49e574786b575e3904527 ------\n", - "------ No.147 f2cc101a8e5a20bf35c07cda122713456af15631 ------\n", - "------ No.148 3e6034ad6d6b1279f16fff8db5a206d9d08b5e80 ------\n", - "------ No.149 11adb8ad1c0da56cb7dfc3a75402ae8cf139cb35 ------\n", - "------ No.150 698f7a0eb9c4320357da3c2e89daa7d61ce5ae03 ------\n", - "------ No.151 5aa243d63cbfca676a626d81a1ccd22eb4f39402 ------\n", - "------ No.152 81f514daa1e47a447212a8d91f369144f58a8a46 ------\n", - "------ No.153 35095bdf6302c6a64ce11ec35c60b8824a55c9b1 ------\n", - "------ No.154 23bc1e77b61abe5907bd9b0dd20e96371a5ad303 ------\n", - "------ No.155 117faf6ab5a0a8d3ce34f71a3bd0349dd05fac9d ------\n", - "------ No.156 edc9ed4852f88a5be576eeeee16dd08437a029db ------\n", - "------ No.157 8955c2c88e5adb4dee166e80195d4410beed60a0 ------\n", - "------ No.158 a063f86078ae5647f0988892a57915d6bc335c95 ------\n", - "------ No.159 72a99f6ca0c55ee614e691cd658ffe9050a68699 ------\n", - "------ No.160 0a977ea56f7ab4ca73b6ccd2d9a45dee292f869f ------\n", - "------ No.161 f9a08099a7f6b746f934aeaea0a436faff6bd266 ------\n", - "------ No.162 55032e66d0c08813bcadf04b5acade1815e28a20 ------\n", - "------ No.163 a225b1796cc047276a955321e0b276e7aa3c2e6e ------\n", - "------ No.164 ae0e99141621503d2a8e98908512bc1588f84188 ------\n", - "------ No.165 6f4acddc9b01bf996db9d64eb28680942820d138 ------\n", - "------ No.166 3d2c9c6fd9612832c654aae354ef45fe31327c8d ------\n", - "------ No.167 8c78334bc5e881d02d71bea18558a7b19d935565 ------\n", - "------ No.168 39173556440c6dc3ddeebf5a6eb94cdd2615c4ee ------\n", - "------ No.169 aaecc25a99b350f19d620c2fbde85c7a991fde73 ------\n", - "------ No.170 e5996a18b2c99871f59ea21faa456b851f3edb56 ------\n", - "------ No.171 7094f09ba3fc367ae756ffb82e951b17a4121a36 ------\n", - "------ No.172 a66a73019b1e174b3da8169f7fca7adf3443f3bc ------\n", - "------ No.173 979bc0126cb802e64ab971924065f14aef81e05c ------\n", - "------ No.174 2d811d83efb4250ccb7ce624252739bf9148b4aa ------\n", - "------ No.175 73b2e0c8386af5916e3d2fe0c7e009ea5401f75b ------\n", - "------ No.176 a19a577b08f54c72e1a4600abf46720cc4137155 ------\n", - "------ No.177 fcf7fa18017ce7a9fd24aedd62d5164131666c2e ------\n", - "------ No.178 cc8fd38f56d7475dfa0af4c359cb549cd4d6d39c ------\n", - "------ No.179 65a89b2a46e818a01d2a8c88a530c61e3a363c99 ------\n", - "------ No.180 098012447e7f625ed21f3bcc19804d06c180c32a ------\n", - "------ No.181 1dc7592de8ce29994b2cf6ff884eb05b9ed82341 ------\n", - "------ No.182 b6af3d2a1f7255a36a1d7b9bb75c9f25409eb4fd ------\n", - "------ No.183 c1e2e274f4a0241f2ed15b9be1e06b941a7469fb ------\n", - "------ No.184 2e69a90496c5817789a7a92d8b8438b0d5b21158 ------\n", - "------ No.185 c7c0bdbff7e87e6d79bc1ae61476f250046cedb3 ------\n", - "------ No.186 602bca885147f1854f18562b160ac27558657583 ------\n", - "------ No.187 7f7f87a23cd7285699989d5eb87930d4e8f6374b ------\n", - "------ No.188 cf6a35391fbbcc273f3ef2dea00316c08ad71369 ------\n", - "------ No.189 c202103331a315dcd2fa922b6d899da57610be60 ------\n", - "------ No.190 5b8886d9da3bb07140bfb1ff2d2b215b2dff584b ------\n", - "------ No.191 f050c6f6dd4b1d3626574b0d23bb41125f7b75ca ------\n", - "------ No.192 93e3f1309f1a0788839c69f7699a9411c297eb1f ------\n", - "------ No.193 49a9c44eb3e3d0f9df51efda1f8ab3f90dca479e ------\n", - "------ No.194 af322a77a334bbf2fbb927b5c66cf6b45f7cd0fd ------\n", - "------ No.195 7ecaead2058fb0a34840a1c3bf58b4fb644492c1 ------\n", - "------ No.196 977ae1750233a0de231a47b246fc78b08f1635e8 ------\n", - "------ No.197 c64db64c8a3904aea91c22277a448073b83b0ac0 ------\n", - "------ No.198 d3a86ea899954a30e0a2e13db8ab203f70f50391 ------\n", - "------ No.199 56d7fb235301aedc4db16f9af2e58c87e97fdd8d ------\n", - "------ No.200 ded2df7b4ceb28f260fde0429b225e471a9983b9 ------\n", - "------ Used time: 12.997183084487915 ------\n", - "------ No.201 01cc5f9273a154085c1d6b842ac21cfd351093c9 ------\n", - "------ No.202 169976065292b954bc20b877675ca2a1ff685b9c ------\n", - "------ No.203 72f4199f875987b00a7060ca4b6cf1d72f6397e9 ------\n", - "------ No.204 e825a770d37b5e69473028012d9c3f0bd04b7cb0 ------\n", - "------ No.205 8dca39d2294fb887bac510879937a01e7647d96e ------\n", - "------ No.206 449e1c4950107b376d98629e72a655da2f4b1ca7 ------\n", - "------ No.207 4ca945882d92cb1cbd3dc0a7ecd9b85c3fc26db3 ------\n", - "------ No.208 8b11c6a234f6cacb0588b7cfb1d8ff226353b747 ------\n", - "------ No.209 6a674d54ad2ae913fd709894a471dbf65eca0a23 ------\n", - "------ No.210 23b2aa172cdce3e2478ab6db9435cb0e4b8114ba ------\n", - "------ No.211 b3d364a9dddb0840ffb990681e988d6c140e0008 ------\n", - "------ No.212 2eea94952255e601bcb168ccd94fac5203d9b213 ------\n", - "------ No.213 f52e3660bd01dd7c1e69ef4cb56cc0f67d87d9bf ------\n", - "------ No.214 0b28be5010ad381cb57c334713a8a0a03dc95676 ------\n", - "------ No.215 268d8c850bf948f8bfa5890fa7b21eb2e79e8ab4 ------\n", - "------ No.216 810bf4db6b9e6bea2505c0a4e84dd410ad3e730b ------\n", - "------ No.217 f071557d7a440ec749efa1c85a101e4e86f19838 ------\n", - "------ No.218 39b9be28f286bf48a39688354325d21ade06db02 ------\n", - "------ No.219 ba6627d2d62215f22ff7705d363a060e42cca962 ------\n", - "------ No.220 0baf174aa6ec4d97fabd1aa1f9eb883e6503add5 ------\n", - "------ No.221 3dd7140226a6c5eaae33cee32556e31595c901a9 ------\n", - "------ No.222 66cde2276a5df7a567ac7a59d5a5e56f09dafc57 ------\n", - "------ No.223 4e5f230dac06120faccfa1b4b4a766de5c4d097a ------\n", - "------ No.224 2aae75bbae3adcf72e36a27569bc107e8cee4ed6 ------\n", - "------ No.225 bbabbc4bb945bfcbb2ddd3bce5c07d22b8d66b02 ------\n", - "------ No.226 cafcfb0fb0c22e25a07e9961788d3536e48c7116 ------\n", - "------ No.227 4d875215f6823e0a9eb6b9082327ddcafc12f353 ------\n", - "------ No.228 fa8fac80e2852b7039839e5046a0716d984a4645 ------\n", - "------ No.229 0ca5cd09783c1977ee78d123f3c78449acee6b7b ------\n", - "------ No.230 741a0e310596657dd29714cb497c38ad593ba3c0 ------\n", - "------ No.231 26b6b6e78c427ee26fefefeeea6469bb6a122ce2 ------\n", - "------ No.232 07110df7eb5903cb249645954c0f6a825bd7e9b3 ------\n", - "------ No.233 14c9b3425acd8a52aee6d8e2ea32bba28259e0d2 ------\n", - "------ No.234 8716b859a1852f15147710135866dcf0518caa6d ------\n", - "------ No.235 8b8bfbdb53057c81cf54163549140991b78fbf94 ------\n", - "------ No.236 05e24a9012d23faaa4e7bfc6e08fe4d8772d10b8 ------\n", - "------ No.237 c3964c772c76d1f3a95129617b1ba2959ee0f073 ------\n", - "------ No.238 28bccdda2d722903ee3f3156229dc4f01d253749 ------\n", - "------ No.239 4070a4bc7a6dceee0aff464cfa8af9c0ffe7dd30 ------\n", - "------ No.240 94f325e71545ba54808c6c4460234fac85f81e11 ------\n", - "------ No.241 96c657e50342e1113ee30b51a08643dc98af5e49 ------\n", - "------ No.242 89f3834af3b110a6c1e742fc7ae23e09112c0ae1 ------\n", - "------ No.243 b4c04b5f7f2e47a4e8ba3f89134d90bd5c2a0201 ------\n", - "------ No.244 ed1ef4b2a087684f49e84a496fe52bb17ce688e5 ------\n", - "------ No.245 5cfa292f392cbbceb61bd6b40f4da308533890cf ------\n", - "------ No.246 0e8ba757b22eac18d4ba2a3915a85cb89b7dd424 ------\n", - "------ No.247 aabd00a105312646d86359f8b5c42eb2d7797dd8 ------\n" - ] - } - ], + "outputs": [], "source": [ - "from graphs.commit_graph import draw_commit_graph\n", "draw_commit_graph('../repos/Sexain-Memcontroller', 'CPP')" ] }, @@ -394,7 +40,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -483,9 +130,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": { diff --git a/notebooks/linux_kernel.ipynb b/notebooks/linux_kernel.ipynb index 9801e393384..31cd88d5258 100644 --- a/notebooks/linux_kernel.ipynb +++ b/notebooks/linux_kernel.ipynb @@ -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", @@ -24,7 +28,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -42,7 +47,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -56,7 +62,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -70,7 +77,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -83,7 +91,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -136,7 +145,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -147,7 +157,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -158,7 +169,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [] @@ -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": { diff --git a/notebooks/process_fs_patch.ipynb b/notebooks/process_fs_patch.ipynb index 024a7296022..8576d95c88a 100644 --- a/notebooks/process_fs_patch.ipynb +++ b/notebooks/process_fs_patch.ipynb @@ -2,7 +2,10 @@ "cells": [ { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Read Data Files" ] @@ -11,7 +14,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -23,7 +27,10 @@ { "cell_type": "code", "execution_count": null, - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "outputs": [], "source": [ "fs_extractor = extractor.FSPatchExtractor()\n", @@ -42,7 +49,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Supplement Data With Info from Linux Repo" ] @@ -51,7 +61,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -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", @@ -107,7 +122,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Correct Misspelled Bug Consequence Type" ] @@ -116,7 +134,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -131,7 +150,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Remove data points without message" ] @@ -140,7 +162,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -153,7 +176,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Save Data for Future Convenience" ] @@ -162,7 +188,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -172,7 +199,10 @@ }, { "cell_type": "markdown", - "metadata": {}, + "metadata": { + "deletable": true, + "editable": true + }, "source": [ "## Output Patch Data to XML Files" ] @@ -181,7 +211,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [ @@ -217,7 +248,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.4.3" + "version": "3.5.2" } }, "nbformat": 4, diff --git a/notebooks/test_processor.ipynb b/notebooks/test_processor.ipynb index c77f9ce36c1..d9d5bafaa52 100644 --- a/notebooks/test_processor.ipynb +++ b/notebooks/test_processor.ipynb @@ -2,90 +2,29 @@ "cells": [ { "cell_type": "code", - "execution_count": 1, + "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", "from graphs.processor import Processor\n", + "\n", "p = Processor('../repos/linux-kernel')" ] }, { "cell_type": "code", - "execution_count": 2, + "execution_count": null, "metadata": { - "collapsed": false + "deletable": true, + "editable": true }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "------ No.1 a3c77c67a443e631febf708bb0c376caede31657 ------\n", - "a3c77c67a443e631febf708bb0c376caede31657:M M A R M M M M M\n", - "------ No.2 f797f9cc5485b50c35c106b462e1bc432ec37f90 ------\n", - "f797f9cc5485b50c35c106b462e1bc432ec37f90:M\n", - "------ No.3 6df3cecbb95345981718b38d357c50bc3425420a ------\n", - "6df3cecbb95345981718b38d357c50bc3425420a:M\n", - "------ No.4 e2c16499515aa044676a14b97a1b8a35f879152a ------\n", - "e2c16499515aa044676a14b97a1b8a35f879152a:M\n", - "------ No.5 223230e78900e5f0be984f7697cb9bf172d71a35 ------\n", - "223230e78900e5f0be984f7697cb9bf172d71a35:M\n", - "------ No.6 92c6dc59b7c1ca514021502c7eef53b9f2c738fd ------\n", - "92c6dc59b7c1ca514021502c7eef53b9f2c738fd:M\n", - "------ No.7 9a47696970bc8233818d370011e2fddae5cfce9f ------\n", - "9a47696970bc8233818d370011e2fddae5cfce9f:M\n", - "------ No.8 efa93dbedd0e2eacf49ea6fff1fe4397d520cf61 ------\n", - "efa93dbedd0e2eacf49ea6fff1fe4397d520cf61:M\n", - "------ No.9 dcf78d80a6c2de829ec08c8e663a3370e982d616 ------\n", - "dcf78d80a6c2de829ec08c8e663a3370e982d616:M\n", - "------ No.10 4845f3333765b732aa2d7ea6d72fd03cfec4fbf3 ------\n", - "4845f3333765b732aa2d7ea6d72fd03cfec4fbf3:M M M M\n", - "------ No.11 1016888fb69662936b32ab767c7419a3be9a69d3 ------\n", - "1016888fb69662936b32ab767c7419a3be9a69d3:M\n", - "------ No.12 bcfff0b471a60df350338bcd727fc9b8a6aa54b2 ------\n", - "bcfff0b471a60df350338bcd727fc9b8a6aa54b2:M\n", - "------ No.13 9c56187d3c345cc0e7a2f162b8c32543175d7bf7 ------\n", - "9c56187d3c345cc0e7a2f162b8c32543175d7bf7:M\n", - "------ No.14 c374f127e4ff17a318b9ae95a5bf65f370c2d0b1 ------\n", - "c374f127e4ff17a318b9ae95a5bf65f370c2d0b1:M\n", - "------ No.15 a2ef79e1840ebbd0b5907e53c755efd5662112a1 ------\n", - "a2ef79e1840ebbd0b5907e53c755efd5662112a1:M\n", - "------ No.16 5db92850d3ab72b830a0fe6e30eaec8462801408 ------\n", - "5db92850d3ab72b830a0fe6e30eaec8462801408:M\n", - "------ No.17 e41fb09b2fa15db095d3ee981299f488d7b48dfe ------\n", - "e41fb09b2fa15db095d3ee981299f488d7b48dfe:M\n", - "------ No.18 58125f95c62a44f12bb71c58ef70f0068d20c7a2 ------\n", - "58125f95c62a44f12bb71c58ef70f0068d20c7a2:M\n", - "------ No.19 c081474c184b34136e09e1e335f41356a11c7b68 ------\n", - "c081474c184b34136e09e1e335f41356a11c7b68:M\n", - "------ No.20 90ef713b6368dcfe7a74bcc0026b998b4c44d5bc ------\n", - "90ef713b6368dcfe7a74bcc0026b998b4c44d5bc:M\n", - "------ No.21 fea7722fd7b45c6957caed84251d95269319fe16 ------\n", - "fea7722fd7b45c6957caed84251d95269319fe16:M M\n", - "------ No.22 95220a2ea334b5ff2168cc9bf31c0e08b29bae21 ------\n", - "95220a2ea334b5ff2168cc9bf31c0e08b29bae21:M\n", - "------ No.23 043cf3fd20a22df5957c28888f4c8d41438f2140 ------\n", - "043cf3fd20a22df5957c28888f4c8d41438f2140:M M M M\n", - "------ No.24 22f11c4e662ef0bdd87f09370a76c83ed738d5fd ------\n", - "22f11c4e662ef0bdd87f09370a76c83ed738d5fd:M M\n", - "------ No.25 97008082eacab047c189028202e055280f799ace ------\n", - "97008082eacab047c189028202e055280f799ace:M M\n", - "------ No.26 db3b5848ea6440968fcdd29b80514d0de044bb7c ------\n", - "db3b5848ea6440968fcdd29b80514d0de044bb7c:M\n", - "------ No.27 caf2857ac6e0ba2651e722f05d5f7d3ec8ef2615 ------\n", - "caf2857ac6e0ba2651e722f05d5f7d3ec8ef2615:M M\n", - "------ No.28 794f5bfa77955c4455f6d72d8b0e2bee25f1ff0c ------\n", - "794f5bfa77955c4455f6d72d8b0e2bee25f1ff0c:M\n", - "------ No.29 dfd11c2e61d3c0c417d341866ed53c44933b65b4 ------\n", - "dfd11c2e61d3c0c417d341866ed53c44933b65b4:M\n", - "------ No.30 9ee1c939d1cb936b1f98e8d81aeffab57bae46ab ------\n", - "9ee1c939d1cb936b1f98e8d81aeffab57bae46ab:M\n" - ] - } - ], + "outputs": [], "source": [ "p.process('v2.6.12', 30, verbose=True)" ] @@ -94,7 +33,8 @@ "cell_type": "code", "execution_count": null, "metadata": { - "collapsed": true + "deletable": true, + "editable": true }, "outputs": [], "source": [] @@ -103,9 +43,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": { diff --git a/notebooks/weight_opt.ipynb b/notebooks/weight_opt.ipynb index e7f82a2d1ad..7dd12106233 100644 --- a/notebooks/weight_opt.ipynb +++ b/notebooks/weight_opt.ipynb @@ -2,10 +2,7 @@ "cells": [ { "cell_type": "markdown", - "metadata": { - "deletable": true, - "editable": true - }, + "metadata": {}, "source": [ "## Preparation\n", "### Install\n", @@ -16,10 +13,7 @@ }, { "cell_type": "markdown", - "metadata": { - "deletable": true, - "editable": true - }, + "metadata": {}, "source": [ "## Objective function to be *minimized*\n", "The first argument is the weight vector" @@ -28,11 +22,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": false, - "deletable": true, - "editable": true - }, + "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", @@ -52,10 +42,7 @@ }, { "cell_type": "markdown", - "metadata": { - "deletable": true, - "editable": true - }, + "metadata": {}, "source": [ "## Searching parameters" ] @@ -63,11 +50,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": true, - "deletable": true, - "editable": true - }, + "metadata": {}, "outputs": [], "source": [ "lower_bound = [1, 1, 1, 1] # Min of each weight\n", @@ -95,11 +78,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": false, - "deletable": true, - "editable": true - }, + "metadata": {}, "outputs": [], "source": [ "from pyswarm import pso\n", @@ -113,21 +92,14 @@ }, { "cell_type": "markdown", - "metadata": { - "collapsed": true, - "deletable": true, - "editable": true - }, + "metadata": {}, "source": [ "## Persper-specific processing" ] }, { "cell_type": "markdown", - "metadata": { - "deletable": true, - "editable": true - }, + "metadata": {}, "source": [ "### Load JIRA issue data sets" ] @@ -135,11 +107,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": false, - "deletable": true, - "editable": true - }, + "metadata": {}, "outputs": [], "source": [ "import pickle\n", @@ -150,10 +118,7 @@ }, { "cell_type": "markdown", - "metadata": { - "deletable": true, - "editable": true - }, + "metadata": {}, "source": [ "### Convert type string to index in the weight vector\n", "This facilitates using the weight vector." @@ -162,15 +127,11 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": false, - "deletable": true, - "editable": true - }, + "metadata": {}, "outputs": [], "source": [ "import sys\n", - "sys.path.append('lib')\n", + "sys.path.append('../lib')\n", "import labeler\n", "from labeler import apache_type\n", "\n", @@ -193,10 +154,7 @@ }, { "cell_type": "markdown", - "metadata": { - "deletable": true, - "editable": true - }, + "metadata": {}, "source": [ "### Get commit-to-type mappings\n", "**NOTE:** The type here refers to the index of a type in the weight vector.\n", @@ -206,11 +164,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": false, - "deletable": true, - "editable": true - }, + "metadata": {}, "outputs": [], "source": [ "def get_commit_type(datasets, repo_name):\n", @@ -229,11 +183,7 @@ { "cell_type": "code", "execution_count": null, - "metadata": { - "collapsed": true, - "deletable": true, - "editable": true - }, + "metadata": {}, "outputs": [], "source": [] }