Benign huggingface Download

OneScience-Group/flex_ddG_tutorial/scripts

Imports Python's subprocess modulePython subprocess captures output streams
SHA-256bfbb27b5bebb5923207433113fa85f137862da88b563f5543c496c05fc367cd2

Evidence

Imports Python's subprocess module lines 1–17
⋯4 lines
5import argparse
6import functools
7import subprocess
8import re
9import shutil
⋯8 lines
English function-word token "the" lines 18–25
18:7… _multiprocessing:
19 import multiprocessing
20
21# The Reporter class is useful for printing output for tasks which will take a long time
22# Really, you should just use tqdm now, but I used this before I knew about tqdm and it removes a dependency
23
24# Time in seconds function
25# Converts datetime timedelta object to num …
English function-word token "with" lines 59–65
59:21… al_count -= 1
60
61 def report(self, n):
62 with self._lock:
63 self.n = n
64 time_now = datetime.datetime.now()
65 i …
Python lists directory entries lines 152–159
152:22… ruct_dbs( input_dir ):
153 return_list = []
154
155 for path in [os.path.join(input_dir, x) for x in os.listdir( input_dir )]:
156 if os.path.isdir( path ):
157 return_list.extend( recursive_find_struct_dbs( path ) )
158 elif os.path.isfile( path ) and os.path.basename( path ) == struct_db3_file:
159 return_list.append( path ) …
Python file opened for write or append lines 172–189
172:29… s.path.join(working_directory, 'structure_output.txt' )
173 if not use_multiprocessing:
174 print(rosetta_outfile_path)
175 rosetta_outfile = open( rosetta_outfile_path, 'w')
176 if not use_multiprocessing:
177 print( ' '.join( args ) )
178 # No shell: joining the arguments into a string breaks as soon as a path contains a space.
179 rosetta_process = subprocess.Popen(
180 args,
181 stdout=rosetta_outfile, stderr=subprocess.STDOUT, close_fds = True, cwd = working_directory,
182 )
183 return_code = rosetta_process.wait()
⋯6 lines

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.