diff --git a/scripts/closeness-calculator.py b/scripts/closeness-calculator.py deleted file mode 100644 index cd162fbd..00000000 --- a/scripts/closeness-calculator.py +++ /dev/null @@ -1,21 +0,0 @@ -import sys -import os -import subprocess -import base64 -if not os.path.exists('onionr.sh'): - os.chdir('../') -sys.path.append("src/") -from streamfill import identify_neighbors - -onions = [] -p = subprocess.Popen(["scripts/generate-onions.py", '5'], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) -for line in iter(p.stdout.readline, b''): - line = line.decode() - onions.append(line.strip()) - - -for onion in onions: - print(onion, identify_neighbors(onion, onions, 3)) - diff --git a/scripts/floodfill-network-visualizer.py b/scripts/floodfill-network-visualizer.py deleted file mode 100644 index 70e6f9c8..00000000 --- a/scripts/floodfill-network-visualizer.py +++ /dev/null @@ -1,33 +0,0 @@ -import networkx as nx -import matplotlib.pyplot as plt -import sys -import os -import subprocess -import base64 -if not os.path.exists('onionr.sh'): - os.chdir('../') -sys.path.append("src/") -from streamfill import identify_neighbors - -G = nx.Graph() -size = 1000 - -onions = [] -p = subprocess.Popen(["scripts/generate-onions.py", str(size)], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) -for line in iter(p.stdout.readline, b''): - line = line.decode().strip() - onions.append(line) - G.add_node(line[:6]) - -for onion in onions: - neighbors = identify_neighbors(onion, onions, 0.15 * size) - for neighbor in neighbors: - G.add_edge(onion[:6], neighbor[:6]) - -#nx.draw(G, with_labels=True, font_weight='bold') -#nx.draw_shell(G, with_labels=True) -#nx.draw_random(G, with_labels=True) -nx.draw_kamada_kawai(G) -plt.savefig("graph.png") \ No newline at end of file diff --git a/src/__init__.py b/src/__init__.py index c0e32547..5d4a62ca 100755 --- a/src/__init__.py +++ b/src/__init__.py @@ -24,18 +24,18 @@ except ModuleNotFoundError: 'https://stackoverflow.com/a/1875095\n') sys.exit(1) """ - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. +This program is free software: you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation, either version 3 of the License, or +(at your option) any later version. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program. If not, see . +You should have received a copy of the GNU General Public License +along with this program. If not, see . """ # Set the user's locale for encoding reasons