Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 5 additions & 21 deletions internal_quality_analysis-github.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "a3bcddb987f2383e",
"metadata": {
"ExecuteTime": {
Expand Down Expand Up @@ -89,24 +89,6 @@
" 'axes.edgecolor' : 'white'})"
]
},
{
"cell_type": "markdown",
"id": "8acf667d30c388a4",
"metadata": {},
"source": [
"### DATAFRAME SETTINGS"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "8abe491f7ee0858",
"metadata": {},
"outputs": [],
"source": [
"pd.set_option(\"display.max_rows\", None, \"display.max_columns\", None)"
]
},
{
"cell_type": "markdown",
"id": "3644ede13815812",
Expand Down Expand Up @@ -617,6 +599,8 @@
" dates = temp.groupby(['Created at']).mean().reset_index()\n",
" dates['Created at'] = pd.to_datetime(dates['Created at'])\n",
"\n",
" dates['Ci Feedback Time']=(dates['Ci Feedback Time']-dates['Ci Feedback Time'].min())/(dates['Ci Feedback Time'].max()-dates['Ci Feedback Time'].min())\n",
"\n",
" plt.figure(figsize=(15, 7))\n",
" plt.plot(range(len(dates)), dates['Ci Feedback Time'], marker='o', color='b', label='Feedback Time')\n",
" plt.xlabel(\"Created at\")\n",
Expand Down Expand Up @@ -733,13 +717,13 @@
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"pygments_lexer": "ipython3",
"version": "3.11.2"
}
},
Expand Down
38 changes: 6 additions & 32 deletions internal_quality_analysis-sonarqube.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -105,34 +105,6 @@
" 'axes.edgecolor' : 'white'})"
]
},
{
"cell_type": "markdown",
"metadata": {
"pycharm": {
"name": "#%% md\n"
}
},
"source": [
"### DATAFRAME SETTINGS"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false,
"jupyter": {
"outputs_hidden": false
},
"pycharm": {
"name": "#%%\n"
}
},
"outputs": [],
"source": [
"pd.set_option(\"display.max_rows\", None, \"display.max_columns\", None)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down Expand Up @@ -979,7 +951,7 @@
" plt.plot(data['test_success'], linewidth=3, marker='v', markersize=10, label=\"test_success - Passed tests\")\n",
" plt.plot(data['fast_tests'], linewidth=3, marker='^', markersize=10, label=\"fast_tests - Fast test builds\")\n",
" plt.plot(data['coverage'], linewidth=3, marker='>', markersize=10, label=\"coverage - Coverage\")\n",
"\n",
" plt.ylim(-0.05 ,1.05)\n",
" plt.title(f\"{name} - Metrics\", fontsize=20)\n",
" plt.legend(loc='best')\n",
" plt.show()"
Expand Down Expand Up @@ -1053,6 +1025,7 @@
"\n",
"plt.title(\"Code Quality\", fontsize=20)\n",
"plt.legend(loc='best')\n",
"plt.ylim(-0.05 ,1.05)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -1088,6 +1061,7 @@
"\n",
"plt.title(\"Testing Status\", fontsize=20)\n",
"plt.legend(loc='best')\n",
"plt.ylim(-0.05 ,1.05)\n",
"plt.show()"
]
},
Expand Down Expand Up @@ -1184,7 +1158,7 @@
" plt.plot(metrics['Maintainability'], linewidth=3, marker='o', markersize=10, label=\"Maintainability\")\n",
" plt.plot(metrics['Reliability'], linewidth=3, marker='*', markersize=10, label=\"Reliability\")\n",
"\n",
" plt.ylim(0.1,1.1)\n",
" plt.ylim(-0.05 ,1.05)\n",
" plt.title(f'{name} - Maintainability and Reliability', fontsize=20)\n",
" plt.legend(loc='best')\n",
" plt.show()\n",
Expand All @@ -1193,7 +1167,7 @@
"\n",
" plt.plot(metrics['total'], linewidth=3, marker='X', markersize=5)\n",
"\n",
" plt.ylim(0.1,1.1)\n",
" plt.ylim(-0.05 ,1.05)\n",
" plt.title(f'{name} - Total', fontsize=20)\n",
" plt.show()"
]
Expand Down Expand Up @@ -1280,7 +1254,7 @@
"for name, data in metrics.items():\n",
" plt.plot(data['total'], linewidth=3, marker='o', markersize=10, label=name)\n",
"\n",
"plt.ylim(.1,1)\n",
"plt.ylim(-0.05 ,1.05)\n",
"plt.title(\"Total - Quality indicator\", fontsize=20)\n",
"plt.legend(loc='best')\n",
"plt.show()"
Expand Down
2 changes: 1 addition & 1 deletion parser_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def save_github_metrics_issues():
page = 1

while True:
response = requests.get(api_url_issues, params={'state': 'all', 'per_page': 100, 'page': page})
response = requests.get(api_url_issues, params={'state': 'all', 'per_page': 100, 'page': page, 'labels': 'US,bug,FEATURE,enhancement'})

page_issues = response.json()
if not page_issues:
Expand Down