-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fixing an issue with the security of the server by replacing all the … #6
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! |
|
||
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
num_neurons = len(neurons['_embedded']['neuronResources']) | ||
count = 0 | ||
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.