From 805611dcc1c7b6251c6d1b9df7ef2fbf45b6efff Mon Sep 17 00:00:00 2001 From: Chase Brunette-Pak Date: Mon, 23 Sep 2019 11:00:37 -0400 Subject: [PATCH 1/2] cbrunet1.ipynb --- cbrunet1.ipynb | 102 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 cbrunet1.ipynb diff --git a/cbrunet1.ipynb b/cbrunet1.ipynb new file mode 100644 index 0000000..b817f97 --- /dev/null +++ b/cbrunet1.ipynb @@ -0,0 +1,102 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "/usr/local/lib/python3.5/dist-packages/ipykernel_launcher.py:11: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.\n", + " # This is added back by InteractiveShellApp.init_path()\n" + ] + }, + { + "data": { + "text/plain": [ + "ObjectId('5d7e6769e1eaff62f15de0d2')" + ] + }, + "execution_count": 1, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import pprint\n", + "import re\n", + "import pymongo, json\n", + "\n", + "pp = pprint.PrettyPrinter(indent=1,width=65)\n", + "\n", + "client = pymongo.MongoClient (host=\"da1.eecs.utk.edu\")\n", + "db = client ['fdac19mp2']\n", + "coll = db ['audris']\n", + "# for each dataset\n", + "coll.insert_one ( { 'topic':'git URLs', 'first dataset': 'largest projects', 'license': 'NA', 'description': 'The list of projects on github with the largest number of starts', 'urls': [ 'url1', 'url2' ] } )\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "{'_id': ObjectId('5d7e6769e1eaff62f15de0d2'),\n", + " 'description': 'The list of projects on github with the '\n", + " 'largest number of starts',\n", + " 'first dataset': 'largest projects',\n", + " 'license': 'NA',\n", + " 'topic': 'git URLs',\n", + " 'urls': ['url1', 'url2']}\n" + ] + } + ], + "source": [ + "import pprint\n", + "import pymongo, json\n", + "client = pymongo.MongoClient (host=\"da1.eecs.utk.edu\")\n", + "db = client ['fdac19mp2']\n", + "coll = db ['audris']\n", + "pp = pprint.PrettyPrinter(indent=1,width=65)\n", + "for r in coll. find():\n", + " print(pp .pformat (r)) " + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "collapsed": true + }, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "Python 3", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.5.2" + } + }, + "nbformat": 4, + "nbformat_minor": 1 +} From 3c13b9b410192cb2a78f897e0f99caf3603c1900 Mon Sep 17 00:00:00 2001 From: Chase Brunette-Pak Date: Wed, 2 Oct 2019 13:35:48 -0400 Subject: [PATCH 2/2] Juptier did not save data during last pull request --- cbrunet1.ipynb | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/cbrunet1.ipynb b/cbrunet1.ipynb index b817f97..3502155 100644 --- a/cbrunet1.ipynb +++ b/cbrunet1.ipynb @@ -5,18 +5,10 @@ "execution_count": 1, "metadata": {}, "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "/usr/local/lib/python3.5/dist-packages/ipykernel_launcher.py:11: DeprecationWarning: insert is deprecated. Use insert_one or insert_many instead.\n", - " # This is added back by InteractiveShellApp.init_path()\n" - ] - }, { "data": { "text/plain": [ - "ObjectId('5d7e6769e1eaff62f15de0d2')" + "" ] }, "execution_count": 1, @@ -33,9 +25,10 @@ "\n", "client = pymongo.MongoClient (host=\"da1.eecs.utk.edu\")\n", "db = client ['fdac19mp2']\n", - "coll = db ['audris']\n", + "coll = db ['cbrunet1']\n", + "\n", "# for each dataset\n", - "coll.insert_one ( { 'topic':'git URLs', 'first dataset': 'largest projects', 'license': 'NA', 'description': 'The list of projects on github with the largest number of starts', 'urls': [ 'url1', 'url2' ] } )\n" + "coll.insert_one ( { 'topic':'Comic Repos', 'first dataset': 'Over all comics', 'license': 'NA', 'description': 'Repos that will hold various different comics', 'urls': [ 'https://www.kaggle.com/cenkbircanoglu/comic-books-classification', 'https://www.kaggle.com/claudiodavi/superhero-set', 'https://readcomicsonline.ru/', 'https://getcomics.info/', 'https://readcomiconline.to/', 'https://www.comicextra.com/', 'https://comiconlinefree.com/'] } )\n" ] }, { @@ -94,7 +87,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.2" + "version": "3.6.7" } }, "nbformat": 4,