Skip to content

Commit

Permalink
Remove needless files and temporarily fix an issue with Jupyter using…
Browse files Browse the repository at this point in the history
… the wrong path for python imports.
  • Loading branch information
Ryan Deschamps committed Apr 13, 2017
1 parent 6cdbff2 commit e52f975
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 223 deletions.
6 changes: 0 additions & 6 deletions descriptor/.ipynb_checkpoints/Create_Graph-checkpoint.ipynb

This file was deleted.

169 changes: 0 additions & 169 deletions descriptor/Create_Graph.ipynb

This file was deleted.

40 changes: 14 additions & 26 deletions descriptor/PopulateSeedsCPP.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,29 +55,25 @@
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"# TinyDB is a very simple NoSQL database used for small projects. It's not ideal for large projects\n",
"# because it is file-based, meaning only one person can change the database at a time.\n",
"#\n",
"# We are also importing the time library so that we can include some timestamps as part of the work.\n",
"\n",
"import sys\n",
"sys.path.append('/opt/anaconda/anaconda3/lib/python3.6/site-packages')\n",
"import tinydb as tdb\n",
"import time\n",
"import networkx\n",
"import gdflib"
"#import networkx"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {
"collapsed": false
},
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"# set up database\n",
Expand All @@ -96,16 +92,14 @@
},
{
"cell_type": "code",
"execution_count": 44,
"metadata": {
"collapsed": false
},
"execution_count": 5,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"set()\n"
"{'seed_backup', 'collections', 'collections_backup', '_default', 'seed_main'}\n"
]
}
],
Expand Down Expand Up @@ -154,9 +148,7 @@
{
"cell_type": "code",
"execution_count": 45,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -264,9 +256,7 @@
{
"cell_type": "code",
"execution_count": 49,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -326,9 +316,7 @@
{
"cell_type": "code",
"execution_count": 63,
"metadata": {
"collapsed": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand Down Expand Up @@ -473,5 +461,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}
2 changes: 1 addition & 1 deletion descriptor/data/WALK.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"seed_backup": {"1": {"TIMESTAMP": 1488049265.426975, "description": "\n Also called the \"Progressive Nationalist Party\", it is a \"progressive and environment protection oriented\n political party\" that seeks the \"political, economic and cultural assimilation of Canada, into the\n United States, under the _Security and Prosperity Partnership_ (SPP).\"\n ", "latest_crawl": "2012-11-03", "url": "http://agoracosmopolite.com", "videos": 0, "seed_name": "Cosmopolitan Party of Canada", "times_captured": 59, "WALK_collection_folder": "TORONTO_Canadian_Political_Parties", "collection_title": "Canadian Political Parties and Political Interest Groups", "first_crawl": "2005-10-04"}, "2": {"url": "http://agoracosmopolite.com", "videos": 0, "times_captured": 59, "seed_name": "Cosmopolitan Party of Canada", "WALK_collection_folder": "TORONTO_Canadian_Political_Parties", "latest_crawl": "2012-11-03", "description": "\n Also called the \"Progressive Nationalist Party\", it is a \"progressive and environment protection oriented\n political party\" that seeks the \"political, economic and cultural assimilation of Canada, into the\n United States, under the _Security and Prosperity Partnership_ (SPP).\"\n ", "collection_title": "Canadian Political Parties and Political Interest Groups", "TIMESTAMP": 1488049284.002535, "first_crawl": "2005-10-04"}}, "collections": {"1": {"institutional_description": "\n \n Canadian Political Parties and Political Interest Groups will archive the websites of all \n the national Canadian political parties, and a number of special interest groups across \n the political spectrum.\n \n ", "crawl_viz_description": "\n \n - Between March 06 and January 07 and then again between July 09 & November 09, Policy Alternatives had the\n largest amount of activity.\n - A rise in activity for equalvoice.ca (advocacy for women in political leadership) between December 09 and \n November 2011.\n - Of the major parties, the Liberal Party of Canada and the Green Party had the most activity.\n \n ", "gephi_avg_weighted_degree": 0, "gephi_file_name": "", "WALK_collection_folder": "TORONTO_Canadian_Political_Parties", "TIMESTAMP": 1488049223.72829, "WALK_description": "\n \n Contains the web archives for the main parties (Liberal, Conservatives, NDP, Bloc, Green) but \n also a wide range marginal parties (Cosmopolitan Party, Canadian Action, Christian Heritage and\n so on). The \"special interest groups\" include the David Suzuki Foundation (an environmental \n advocacy group) and fairvote.ca (advocacy for changing the electoral system).\n \n ", "something wrong": false, "gephi_description": "\n ", "gephi_avg_degree": 0, "gephi_clustering_coefficient": 0, "collection_title": "Canadian Political Parties and Political Interest Groups", "crawl_viz_link_file": "TORONTO_Canadian_Political_Parties-urls.html"}}, "seed_main": {"1": {"collection_title": "Canadian Political Parties and Political Interest Groups", "WALK_collection_folder": "TORONTO_Canadian_Political_Parties", "url": "http://agoracosmopolite.com", "videos": 0, "seed_name": "Cosmopolitan Party of Canada", "times_captured": 59, "TIMESTAMP": 1488049284.002535, "first_crawl": "2005-10-04", "description": "\n Also called the \"Progressive Nationalist Party\", it is a \"progressive and environment protection oriented\n political party\" that seeks the \"political, economic and cultural assimilation of Canada, into the\n United States, under the _Security and Prosperity Partnership_ (SPP).\"\n ", "latest_crawl": "2012-11-03"}}}
{"seed_backup": {"1": {"times_captured": 59, "TIMESTAMP": 1488049265.426975, "url": "http://agoracosmopolite.com", "latest_crawl": "2012-11-03", "first_crawl": "2005-10-04", "WALK_collection_folder": "TORONTO_Canadian_Political_Parties", "seed_name": "Cosmopolitan Party of Canada", "collection_title": "Canadian Political Parties and Political Interest Groups", "description": "\n Also called the \"Progressive Nationalist Party\", it is a \"progressive and environment protection oriented\n political party\" that seeks the \"political, economic and cultural assimilation of Canada, into the\n United States, under the _Security and Prosperity Partnership_ (SPP).\"\n ", "videos": 0}, "2": {"times_captured": 59, "collection_title": "Canadian Political Parties and Political Interest Groups", "url": "http://agoracosmopolite.com", "latest_crawl": "2012-11-03", "first_crawl": "2005-10-04", "WALK_collection_folder": "TORONTO_Canadian_Political_Parties", "seed_name": "Cosmopolitan Party of Canada", "TIMESTAMP": 1488049284.002535, "description": "\n Also called the \"Progressive Nationalist Party\", it is a \"progressive and environment protection oriented\n political party\" that seeks the \"political, economic and cultural assimilation of Canada, into the\n United States, under the _Security and Prosperity Partnership_ (SPP).\"\n ", "videos": 0}}, "collections": {"1": {"gephi_clustering_coefficient": 0, "institutional_description": "\n \n Canadian Political Parties and Political Interest Groups will archive the websites of all \n the national Canadian political parties, and a number of special interest groups across \n the political spectrum.\n \n ", "WALK_description": "\n \n Contains the web archives for the main parties (Liberal, Conservatives, NDP, Bloc, Green) but \n also a wide range marginal parties (Cosmopolitan Party, Canadian Action, Christian Heritage and\n so on). The \"special interest groups\" include the David Suzuki Foundation (an environmental \n advocacy group) and fairvote.ca (advocacy for changing the electoral system).\n \n ", "WALK_collection_folder": "TORONTO_Canadian_Political_Parties", "gephi_file_name": "", "crawl_viz_description": "\n \n - Between March 06 and January 07 and then again between July 09 & November 09, Policy Alternatives had the\n largest amount of activity.\n - A rise in activity for equalvoice.ca (advocacy for women in political leadership) between December 09 and \n November 2011.\n - Of the major parties, the Liberal Party of Canada and the Green Party had the most activity.\n \n ", "something wrong": false, "collection_title": "Canadian Political Parties and Political Interest Groups", "gephi_avg_weighted_degree": 0, "gephi_description": "\n ", "gephi_avg_degree": 0, "TIMESTAMP": 1488049223.72829, "crawl_viz_link_file": "TORONTO_Canadian_Political_Parties-urls.html"}}, "collections_backup": {}, "_default": {}, "seed_main": {"1": {"times_captured": 59, "collection_title": "Canadian Political Parties and Political Interest Groups", "url": "http://agoracosmopolite.com", "latest_crawl": "2012-11-03", "first_crawl": "2005-10-04", "WALK_collection_folder": "TORONTO_Canadian_Political_Parties", "seed_name": "Cosmopolitan Party of Canada", "TIMESTAMP": 1488049284.002535, "description": "\n Also called the \"Progressive Nationalist Party\", it is a \"progressive and environment protection oriented\n political party\" that seeks the \"political, economic and cultural assimilation of Canada, into the\n United States, under the _Security and Prosperity Partnership_ (SPP).\"\n ", "videos": 0}}}
21 changes: 0 additions & 21 deletions descriptor/g.graphml

This file was deleted.

0 comments on commit e52f975

Please sign in to comment.