-
Notifications
You must be signed in to change notification settings - Fork 3
Fixing an issue with the security of the server by replacing all the … #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…urrlib calls with requests.
Thanks for the contribution @marwan-abdellah - I will have a look! |
"""Making use of the REST API (NeuroMorpho.org v7, and updated to v8.5) to query the database.""" | ||
|
||
import re, sys, os, requests | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing space
""" | ||
|
||
if not os.path.isdir(directory): | ||
os.mkdir(directory) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing space
for neuron in range(0, num_neurons): | ||
# get each file | ||
if index == -1: get_swc_by_neuron_name(neurons['_embedded']['neuronResources'][neuron]['neuron_name']) | ||
if index == -1: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing space
@@ -0,0 +1,1008 @@ | |||
import os | |||
import joblib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused import, remove please.
@@ -0,0 +1,1008 @@ | |||
import os | |||
import joblib | |||
import subprocess |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace
def execute_commands_parallel(shell_commands): | ||
from joblib import Parallel, delayed | ||
Parallel(n_jobs=os.cpu_count())(delayed(execute_command)(i) for i in shell_commands) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trailing whitespace
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the comments @marwan-abdellah, thanks!
…urrlib calls with requests.