100+ results for 'glob.glob lang:python'
Not the results you expected?
octopress.py (https://bitbucket.org/gyk001/st2cfg.git) Python · 189 lines
base.py (https://gitlab.com/pooja043/Globus_Docker_2) Python · 164 lines
test_import_tools.py (https://github.com/SEL-Columbia/formhub.git) Python · 79 lines
17 def images_count(username="bob"):
18 images = glob.glob(
19 os.path.join(settings.MEDIA_ROOT, username, 'attachments', '*'))
20 return len(images)
34 Instance.objects.all().delete() # ?
35 if settings.TESTING_MODE:
36 images = glob.glob(
37 os.path.join(
38 settings.MEDIA_ROOT, self.user.username, 'attachments', '*'))
gconfsettings.py (https://bitbucket.org/cfield/ubuntu-tweak.git) Python · 159 lines
whole_surface_avgs.py (https://gitlab.com/Cadair/driver-widths-paper) Python · 82 lines
work-around-vs-dependency-tracking-bugs.py (https://bitbucket.org/zenoalbisser/webkit.git) Python · 66 lines
models.py (https://bitbucket.org/rukku/webandgis.git) Python · 76 lines
filebased.py (https://gitlab.com/benji-bou/urotechchallenge-Serenity) Python · 153 lines
develop.py (https://github.com/jsgf/tahoe-lafs.git) Python · 165 lines
show-tool-versions.py (https://github.com/jsgf/tahoe-lafs.git) Python · 162 lines
histogram_analysis.py (https://bitbucket.org/wschurman/colorapp-analysis.git) Python · 97 lines
mktraj.py (https://gitlab.com/exaalt/parsplice) Python · 106 lines
endovis_instrument_2015.py (https://github.com/warmspringwinds/pytorch-segmentation-detection.git) Python · 225 lines
handlers.py (https://github.com/jenshnielsen/ipython.git) Python · 86 lines
__init__.py (https://github.com/oppian/oppian.git) Python · 86 lines
createarrayinfo.py (https://github.com/gatoatigrado/pyplusplusclone.git) Python · 169 lines
avatar-test.py (https://github.com/heca/rextest2.git) Python · 167 lines
_fortran.py (https://github.com/mantidproject/3rdpartylibs-mac.git) Python · 154 lines
loaddata.py (https://bitbucket.org/smichal88/tag-highlight-git-repo-mirror.git) Python · 143 lines
git.py (https://github.com/mitnk/dotfiles.git) Python · 228 lines
summary_writer_test.py (https://gitlab.com/wilane/tensorflow) Python · 151 lines
xbb_blast.py (https://github.com/NYCiGEM/NYC_Software_2011.git) Python · 161 lines
anvio.py (https://github.com/nekrut/galaxy.git) Python · 165 lines
test_image.py (https://github.com/pytorch/vision.git) Python · 159 lines
check-git-repo-availability.py (https://gitlab.com/onitake/fdroiddata) Python · 74 lines
tests.py (https://github.com/ask/puka.git) Python · 89 lines
31 def main_coverage(TESTS):
32 TEST_NAMES = [f.rpartition('.')[0] for f in glob.glob("test_*.py")]
33 TEST_NAMES.sort()
36 os.chdir(sys.argv[1])
37 BAD_MODULES=(sys.argv[3] if len(sys.argv) >= 4 else '').split(',')
38 MODULE_NAMES=[sys.argv[2] + '.' +f[0:-3] for f in glob.glob("*.py") if f not in BAD_MODULES]
39 MODULE_NAMES.sort()
40 os.chdir(pwd)
autoTracto2regions.py (https://github.com/LinjieChen/Slicer3.git) Python · 76 lines
queue.py (https://github.com/noplay/scrapy.git) Python · 177 lines
plot.py (https://bitbucket.org/6tisch/simulator.git) Python · 157 lines
example.py (https://gitlab.com/jonnialva90/iridium-browser) Python · 121 lines
xtr_cls_fic_lst.py (https://gitlab.com/liuxin429go/toolbox) Python · 143 lines
recipe-576437.py (https://github.com/ActiveState/code.git) Python · 71 lines
tasks.py (https://github.com/Suggsgested/lernanta.git) Python · 103 lines
scan_server_dlls.py (https://github.com/akesling/chromium.git) Python · 141 lines
features_extractor.py (https://github.com/microsoft/SPTAG.git) Python · 169 lines
gen-build.py (https://github.com/tzuryby/mod_conference-admin.git) Python · 172 lines
misc.py (https://github.com/fabiomdiniz/Frey.git) Python · 114 lines
generate_overlays.py (git://github.com/alexanderhiam/PyBBIO.git) Python · 87 lines
inotifyexec.py (https://bitbucket.org/mikebentley15/configurations.git) Python · 130 lines
googlenet_tinyyolov3.py (https://github.com/Xilinx/Vitis-AI.git) Python · 98 lines
conftest.py (https://github.com/micasense/imageprocessing.git) Python · 190 lines
45 @pytest.fixture()
46 def panel_rededge_file_list(files_dir):
47 return sorted(glob.glob(os.path.join(files_dir, 'IMG_0000_*.tif')))
49 @pytest.fixture()
50 def non_panel_rededge_file_list(files_dir):
51 return sorted(glob.glob(os.path.join(files_dir, 'IMG_0001_*.tif')))
53 @pytest.fixture()
59 @pytest.fixture()
60 def panel_altum_file_list(altum_files_dir):
61 return sorted(glob.glob(os.path.join(altum_files_dir, 'IMG_0000_*.tif')))
63 @pytest.fixture()
base.py (https://github.com/deepmind/kapitan.git) Python · 169 lines
FileManager.py (https://github.com/introlab/OpenIMU.git) Python · 82 lines
test_dirdbm.py (https://github.com/RoDaniel/featurehouse.git) Python · 106 lines
test_handler_tb_stats.py (https://github.com/Project-MONAI/MONAI.git) Python · 72 lines
gentmpkconfig.py (https://github.com/sonydevworld/spresense.git) Python · 73 lines
util.py (https://github.com/shantigilbert/Sx05RE.git) Python · 96 lines
analyze_result_log.py (https://github.com/yaneurao/YaneuraOu.git) Python · 104 lines
provision.py (https://github.com/zulip/python-zulip-api.git) Python · 80 lines
se_batch.py (https://github.com/anicolson/DeepXi.git) Python · 56 lines
game.py (https://gitlab.com/leoDumontier/OnVerraPlusTard) Python · 128 lines
33 def __init__(self, name=None, initial=None, current=None, static=None):
34 for path in glob.glob("mud/games/projet/*new*.yml"):
35 os.remove(path)
36 self._for_reset = {"name" : name ,
57 def yaml_load_all_glob(self, pattern):
58 l = []
59 for filename in glob.glob(pattern):
60 l.extend(self.yaml_load_all(filename))
61 return l
75 def yaml_load_glob(self, pattern):
76 d = {}
77 for filename in glob.glob(pattern):
78 d.update(self.yaml_load(filename))
79 return d
make_dos_files.py (https://gitlab.com/ppferreira/mzrte2) Python · 167 lines
20 for current_atom in self.atoms: #maps through the atoms
21 for current_orbital in self.orbitals: #maps through the orbitals
22 current_orbital_files = glob.glob(f'{prefix}*({current_atom})*({current_orbital})*')
24 num_files = len(current_orbital_files) #number of files in current orbital
101 #test area
102 if __name__ == '__main__':
103 dirs = glob.glob('S*')
104 dirs = sorted(dirs)
105 print(dirs)
124 os.chdir(currentDir)
126 clusters = glob.glob('MnZrTe2*')
127 clusters = sorted(clusters)
128 for currentCluster in clusters:
make_dos_files.py (https://gitlab.com/ppferreira/mzrte2) Python · 167 lines
20 for current_atom in self.atoms: #maps through the atoms
21 for current_orbital in self.orbitals: #maps through the orbitals
22 current_orbital_files = glob.glob(f'{prefix}*({current_atom})*({current_orbital})*')
24 num_files = len(current_orbital_files) #number of files in current orbital
101 #test area
102 if __name__ == '__main__':
103 dirs = glob.glob('S*')
104 dirs = sorted(dirs)
105 print(dirs)
124 os.chdir(currentDir)
126 clusters = glob.glob('CuZrTe2*')
127 clusters = sorted(clusters)
128 for currentCluster in clusters:
pack.py (https://github.com/LeelaChessZero/lczero-training.git) Python · 85 lines
test_lorapayload.py (https://github.com/jieter/python-lora.git) Python · 77 lines
18 def fixtures():
19 for device_path in glob.glob(os.path.join(FIXTURES_PATH, "*")):
20 if device_path.endswith("README.md"):
21 continue
27 # text all the files ending in xml in the path we just discovered
28 for fixture_filename in glob.glob(os.path.join(device_path, "payload*.xml")):
30 fixture = "/".join(fixture_filename.split("/")[-2:])
voice_conversion_test.py (https://github.com/Hiroshiba/become-yukarin.git) Python · 76 lines
37 try:
38 if p.suffix in ['.npy', '.npz']:
39 fn = glob.glob(str(input_wave_directory / p.stem) + '.*')[0]
40 p = Path(fn)
41 wave = acoustic_converter(p)
51 config = create_config(base_model / 'config.json')
53 input_paths = list(sorted([Path(p) for p in glob.glob(str(config.dataset.input_glob))]))
54 numpy.random.RandomState(config.dataset.seed).shuffle(input_paths)
55 path_train = input_paths[0]
data_preprocess.py (https://github.com/athon2/BraTS2018_NvNet.git) Python · 126 lines
gen_vid_thunks.py (https://github.com/StanfordSNR/gg.git) Python · 93 lines
reparseprops.py (https://github.com/brmson/Sentence-selection.git) Python · 95 lines
cleanup.py (https://github.com/gigantum/gigantum-client.git) Python · 69 lines
32 root_dir = os.path.join(root_dir, 'servers', testutils.current_server_id())
33 if os.name == 'nt':
34 user_projects = glob.glob(f'{root_dir}\*\*\labbooks\selenium-project-*')
35 else:
36 user_projects = glob.glob(f'{root_dir}/*/*/labbooks/selenium-project-*')
48 dataset_file_cache_dir = os.path.join(root_dir, '.labmanager', 'datasets', testutils.current_server_id())
49 if os.name == 'nt':
50 user_datasets = glob.glob(f'{server_dir}\*\*\datasets\selenium-dataset-*')
51 cache_datasets = glob.glob(f'{dataset_file_cache_dir}\*\*\selenium-dataset-*')
52 else:
53 user_datasets = glob.glob(f'{root_dir}/*/*/datasets/selenium-dataset-*')
54 cache_datasets = glob.glob(f'{dataset_file_cache_dir}/*/*/selenium-dataset-*')
estim_mp_sparse_mat.py (https://gitlab.com/kyrgyzov/lsa_slurm) Python · 110 lines
processor.py (https://github.com/blackeagle01/Abnormal_Event_Detection.git) Python · 120 lines
netperf.py (https://github.com/thearn/OpenMDAO-Framework.git) Python · 132 lines
local.py (https://github.com/Roguelazer/mrjob.git) Python · 86 lines
35 def ls(self, path_glob):
36 for path in glob.glob(path_glob):
37 if os.path.isdir(path):
38 for dirname, _, filenames in os.walk(path):
51 def path_exists(self, path_glob):
52 return bool(glob.glob(path_glob))
54 def path_join(self, dirname, filename):
58 def rm(self, path_glob):
59 for path in glob.glob(path_glob):
60 if os.path.isdir(path):
61 log.debug('Recursively deleting %s' % path)
firefox_media_tests_buildbot.py (https://github.com/rillian/firefox.git) Python · 122 lines
unsupportedsavestates.py (https://github.com/poliva/pyqtggpo.git) Python · 152 lines
gotoolchain.py (https://github.com/openbmc/openbmc.git) Python · 71 lines
simple_track_dataloader.py (https://github.com/argoai/argoverse-api.git) Python · 150 lines
116 ply_fpaths: List of strings, representing paths to ply files in this log
117 """
118 ply_fpaths = sorted(glob.glob(f"{self.data_dir}/{log_id}/lidar/PC_*.ply"))
119 return ply_fpaths
128 for a specific camera
129 """
130 cam_img_fpaths = sorted(glob.glob(f"{self.data_dir}/{log_id}/{camera_name}/{camera_name}_*.jpg"))
131 return cam_img_fpaths
getsplitresmask.py (https://bitbucket.org/sstaggal/staggware.git) Python · 122 lines
workspace_commands.py (https://github.com/andreikop/completer.git) Python · 237 lines
samplesheet.py (https://github.com/kdaily/bcbb.git) Python · 108 lines
posix_apps.py (https://gitlab.com/victorl/PX4Firmware) Python · 148 lines
test.py (https://github.com/hbutsuak95/monolayout.git) Python · 158 lines
rebal.py (https://github.com/RoDaniel/featurehouse.git) Python · 321 lines
nightly_test_niflheim.el6.py (https://gitlab.com/marcindulak/gpaw) Python · 119 lines
setup.py (https://bitbucket.org/agaricusb/minecraftforge.git) Python · 113 lines
gpgsign.py (https://gitlab.com/krt/fdroidserver.git) Python · 78 lines
1d_profile_quantization.py (https://gitlab.com/IPMsim/DataAnalysis) Python · 79 lines
16 def exhaust_directory(directory, histogram, validity_condition, boundary_condition, quantization):
17 number_of_profiles = 0
18 for filepath in glob.glob(os.path.join(directory, xml_reader.pattern)):
19 profiles = xml_reader.extract_profiles_from_file(filepath)
20 profiles = filter(validity_condition, profiles) # filter to obtain good quality profiles
snippet.py (https://github.com/gistable/gistable.git) Python · 73 lines
transport.py (https://github.com/chdorner/titanium_mobile.git) Python · 143 lines
build_web_page.py (https://gitlab.com/naagafreeman/ase) Python · 134 lines
data_reader_DNN_v2.py (https://github.com/jtkim-kaist/VAD.git) Python · 177 lines
15 self._output_dir = output_dir
16 self._norm_dir = norm_dir
17 self._input_file_list = sorted(glob.glob(input_dir+'/*.bin'))
18 self._input_spec_list = sorted(glob.glob(input_dir+'/*.txt'))
19 self._output_file_list = sorted(glob.glob(output_dir+'/*.bin'))
20 self._file_len = len(self._input_file_list)
21 self._name = name
test_shelve.py (https://bitbucket.org/x893/sirflive.git) Python · 135 lines
pilfile.py (https://github.com/gpolo/pil-py3k.git) Python · 93 lines
dbserve.py (https://github.com/adrianpike/wwscc.git) Python · 134 lines
_auxiliary.py (https://gitlab.com/cocorbin/development.git) Python · 134 lines
vocabulary_backup.py (https://gitlab.com/Seiris/annot.git) Python · 173 lines
46 else:
47 # get vocabularies app
48 ls_appon = glob.glob( "appon*" )
49 ls_appon.sort()
50 # reset queryset
90 s_version_latest = obj_n.version_latest
91 s_regexfixture = s_appon+"/fixtures/*_"+s_vocabulary+"_"+s_version_latest+"_backup.json"
92 ls_backuppathfile = glob.glob( s_regexfixture )
93 i_latest = 0
94 s_backuplatest = None
netplan.py (https://github.com/CanonicalLtd/subiquity.git) Python · 163 lines
test_plotStrike.py (https://github.com/MTgeophysics/mtpy.git) Python · 76 lines
24 def _test_gen(edi_path):
25 def default(self):
26 edi_file_list = glob.glob(os.path.join(edi_path, "*.edi"))
27 pt_obj = PlotStrike(fn_list=edi_file_list, plot_yn='n', save_figure_path=self._temp_dir, fig_size=(8, 6), fig_dpi=100)
28 pt_obj.plot()
35 def rotation(self):
36 edi_file_list = glob.glob(os.path.join(edi_path, "*.edi"))
37 # change rotation
38 pt_obj = PlotStrike(fn_list=edi_file_list, plot_yn='n', rot_z=90, fig_size=(8, 6), fig_dpi=100)
42 def type(self):
43 edi_file_list = glob.glob(os.path.join(edi_path, "*.edi"))
44 # plot type
45 pt_obj = PlotStrike(fn_list=edi_file_list, plot_yn='n', plot_type=1, fig_size=(8, 6), fig_dpi=100)
mongo_schema.py (https://github.com/yandex/yandex-taxi-testsuite.git) Python · 83 lines
fake_filesystem_unittest_test.py (https://gitlab.com/jonnialva90/iridium-browser) Python · 107 lines
74 def test_glob(self):
75 '''Fake glob module is bound'''
76 self.assertCountEqual(glob.glob('/test/dir1/dir*'),
77 [])
78 self.fs.CreateDirectory('/test/dir1/dir2a')
79 self.assertCountEqual(glob.glob('/test/dir1/dir*'),
80 ['/test/dir1/dir2a'])
81 self.fs.CreateDirectory('/test/dir1/dir2b')
82 self.assertCountEqual(glob.glob('/test/dir1/dir*'),
83 ['/test/dir1/dir2a', '/test/dir1/dir2b'])
fedora_epel_push.py (https://github.com/GunioRobot/cobbler.git) Python · 147 lines
85 # find the tarballs
86 tarsearch = "%s/*.tar.gz" % rpmbuild
87 tars = glob.glob(tarsearch)
88 if len(tars) != 1:
89 croak("expected to find just one tar.gz in %s, no luck") % rpmbuild
101 # find a specfile
102 specsearch = "%s/*.spec" % projdir
103 specs = glob.glob(specsearch)
104 if len(specs) != 1:
105 croak("need one and only one specfile in %s" % projdir)
spack.py (https://gitlab.com/polyphemus/core.git) Python · 112 lines
34 def dependency(self, path, exclude_dependency, build_dir=None):
35 path = os.path.abspath(path)
36 species_file = glob.glob(os.path.join(path, "*.species")) + \
37 glob.glob(os.path.join(path, "species"))
38 reactions_file = glob.glob(os.path.join(path, "*.reactions")) + \
39 glob.glob(os.path.join(path, "reactions"))
40 spack_config = glob.glob(os.path.join(path, "spack_config"))
41 if spack_config:
42 spack_config = spack_config[0]
mcdoc.py (https://github.com/paniwani/ITK.git) Python · 171 lines
109 d = sys.path[0]+"/../.."
110 cmm = os.path.abspath(d+"/*/*/*/itk-module.cmake")
111 for fname in glob.glob(cmm):
112 f = file(fname, "r")
113 mcontent = f.read()
115 module = re.search(r"itk_module\(([^ )]+)", mcontent).group(1)
116 dname = os.path.dirname(fname)
117 for fname2 in glob.glob(dname+"/include/*.h"):
118 setGroup(fname2, module)
119 return 0
130 for fname in files:
131 if os.path.isdir(fname):
132 for fname2 in glob.glob(fname+"/*.h"):
133 count += 1
134 ret = max( ret, checkGroup(fname2, module) )
test_functional.py
(https://bitbucket.org/birkenfeld/sphinx-contrib/)
Python · 231 lines
✨ Summary
This Python code tests the functionality of a Sphinx documentation generator, specifically its ability to render PlantUML diagrams in various formats (HTML, LaTeX, PDF). It creates temporary directories and files, runs Sphinx with different builders and options, and verifies that the generated output matches expected results. The tests cover various scenarios, including simple diagrams, captions, alignment, and non-ASCII characters.
This Python code tests the functionality of a Sphinx documentation generator, specifically its ability to render PlantUML diagrams in various formats (HTML, LaTeX, PDF). It creates temporary directories and files, runs Sphinx with different builders and options, and verifies that the generated output matches expected results. The tests cover various scenarios, including simple diagrams, captions, alignment, and non-ASCII characters.
65 Hello
66 """
67 pngfiles = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
68 assert len(pngfiles) == 1
69 svgfiles = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.svg'))
92 Hello
93 """
94 files = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
95 assert len(files) == 1
96 imgtags = [l for l in readfile('index.html').splitlines()
129 \u3042
130 """
131 files = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
132 content = readfile(files[0]).splitlines()
133 assert b'-charset utf-8' in content[0]
encodingtest.py (https://github.com/wehriam/awspider.git) Python · 169 lines
common_stats.py (https://github.com/erjiang/polyworld.git) Python · 194 lines
base_check_version.py (https://gitlab.com/libvirt/autotest.git) Python · 69 lines
utils.py (https://github.com/atareao/Touchpad-Indicator.git) Python · 71 lines
upload-node-headers.py (https://github.com/brave/muon.git) Python · 147 lines
sort+group.py (https://github.com/RoDaniel/featurehouse.git) Python · 124 lines
89 hdir = os.path.dirname(hdir)
90 sdir = os.path.dirname(sdir)
91 files = glob.glob(os.path.join(hdir, "*", "*", "*"))
92 if sdir != hdir:
93 files.extend(glob.glob(os.path.join(sdir, "*", "*", "*")))
94 else:
95 files = glob.glob(os.path.join(hdir, "*", "*"))
96 files.extend(glob.glob(os.path.join(sdir, "*", "*")))
jailreader.py (https://github.com/RoDaniel/featurehouse.git) Python · 143 lines
purchases_to_jrows.py (https://github.com/datagym-ru/retailhero-recomender-baseline.git) Python · 161 lines
gyptest-all.py (https://bitbucket.org/jjgod/qt-vtl.git) Python · 94 lines
common.py (https://gitlab.com/oryx/openembedded-core) Python · 58 lines
utils.py (https://gitlab.com/bsuper/convnet-keras) Python · 178 lines
15 os.chdir(input_dir) # go to /images/
16 print "Count is: {0}".format(count)
17 print glob.glob("./*") # ./train, ./test, ./val
18 for ttv in glob.glob("./*"):
19 folders_list = glob.glob(ttv + "/*") # ./train/face ...
20 for folder in folders_list:
21 print folder
22 fldername = folder.split("/")[-1] # face or no_face
23 outfolder = "./" + ttv.split("/")[-1] + "/new_" + fldername + "/"
24 files_list = glob.glob(folder + "/*")
25 for f in files_list:
26 try:
42 oldwd = os.getcwd()
43 os.chdir(input_dir)
44 print glob.glob("./*") # ./train, ./teset, ./val
45 for ttv in glob.glob("./*"):
make_rst.py (https://gitlab.com/tlunet/casper) Python · 202 lines
email_input.py (https://github.com/JRMeyer/tensorflow-tutorial.git) Python · 162 lines
joystick.py (https://github.com/ncsurobotics/seawolf5.git) Python · 219 lines
utils.py (https://bitbucket.org/darcyg/shenzhou-iv-stm32f107-rt-thread.git) Python · 132 lines
icon_handler.py (https://bitbucket.org/fox06/updatesprocessor.git) Python · 70 lines
compile.py (https://github.com/esitarski/CrossMgr.git) Python · 121 lines
48 # Check if any of the help files need rebuilding.
49 doNothing = True
50 for fname in glob.glob("./*.txt"):
51 fbase = os.path.splitext(os.path.basename(fname))[0]
52 fhtml = os.path.join( '..', HtmlDocFolder, fbase + '.html' )
78 links = f.read()
80 for fname in glob.glob("./*.txt"):
81 print( fname, '...' )
82 with io.open(fname, 'r') as f:
102 ZipFileName = 'SeriesMgrDocHtml.zip'
103 zf = zipfile.ZipFile( ZipFileName, 'w' )
104 for fname in glob.glob("./*.html"):
105 if not ('prolog' in fname or 'epilog' in fname):
106 zf.write( fname )
fabfile.py (https://github.com/yyuu/fabfile-kyototycoon.git) Python · 119 lines
33 opt.target = os.path.realpath('./target')
34 ## kyotocabinet
35 opt.kc_archive = (lambda: glob.glob('kyotocabinet-*.tar.gz')[-1])
36 opt.kc_extracted = (lambda: os.path.splitext(os.path.splitext(opt.kc_archive)[0])[0])
37 opt.kc_patches = (lambda: opt.kc_extracted + '.patches')
38 ## kyototycon
39 opt.archive = (lambda: glob.glob('kyototycoon-*.tar.gz')[-1])
40 opt.extracted = (lambda: os.path.splitext(os.path.splitext(opt.archive)[0])[0])
41 opt.patches = (lambda: opt.extracted + '.patches')
14-top-Topics-jsons.py (https://gitlab.com/jaumetet/crossreads) Python · 66 lines
test_functional.py (https://bitbucket.org/birkenfeld/sphinx-contrib) Python · 196 lines
60 Hello
61 """
62 pngfiles = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
63 assert len(pngfiles) == 1
64 svgfiles = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.svg'))
87 Hello
88 """
89 files = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
90 assert len(files) == 1
91 imgtags = [l for l in readfile('index.html').splitlines()
123 \u3042
124 """
125 files = glob.glob(os.path.join(_outdir, '_images', 'plantuml-*.png'))
126 content = readfile(files[0]).splitlines()
127 assert '-charset utf-8' in content[0]
util.py (https://github.com/apple/foundationdb.git) Python · 76 lines
make_data.py (https://github.com/qidane/openmicroscopy.git) Python · 98 lines
process_function_template.py (https://github.com/ricardogsilva/Quantum-GIS.git) Python · 139 lines
__init__.py (https://gitlab.com/abhi1tb/build) Python · 114 lines
plugin_utils.py (https://bitbucket.org/spaetz/pyblosxom_blog) Python · 167 lines
get_wiki_articles_run.py (https://github.com/dedan/runs-gensim.git) Python · 149 lines
_psposix.py (https://bitbucket.org/chenfuzhi/scan_proxy_ip.git) Python · 121 lines
individual_coverage.py (https://github.com/mitmproxy/mitmproxy.git) Python · 84 lines
65 excluded = ['mitmproxy/contrib/', 'mitmproxy/test/', 'mitmproxy/tools/', 'mitmproxy/platform/']
66 src_files = glob.glob('mitmproxy/**/*.py', recursive=True)
67 src_files = [f for f in src_files if os.path.basename(f) != '__init__.py']
68 src_files = [f for f in src_files if not any(os.path.normpath(p) in f for p in excluded)]
test.py (https://gitlab.com/pranith/gem5) Python · 48 lines
fegba2lt_mapsprites.py (https://gitlab.com/Nick2001/lex-talionis) Python · 174 lines
create_resources_text_script.py (http://swingamesdk.googlecode.com/svn/trunk/) Python · 118 lines
cite.py (https://gitlab.com/dylan-ashley/minerva-python) Python · 95 lines
make-apt-cdrom.py (https://repo.or.cz/camarabuntu.git) Python · 114 lines
conversionstest.py (https://github.com/bendk/miro.git) Python · 160 lines
eventparse.py (https://github.com/labx-technologies-llc/mb-linux-labx.git) Python · 93 lines
setup.py (https://bitbucket.org/vionika/spin.android.git) Python · 73 lines
index.py (https://github.com/Yell0wra1n/star.git) Python · 73 lines
most2geoclaw.py (https://github.com/dlgeorge/clawpack-4.x.git) Python · 107 lines
34 Converts MOST output files to fort.t files.
35 """
36 files = glob.glob(r'%s*' % fnameprefix)
37 files.sort()
38 s = r"%s(?P<hours>[0-9]*)h(?P<minutes>[0-9]*)m(?P<seconds>[0-9]*)s" \
66 Converts MOST output files to fort.q files.
67 """
68 files = glob.glob(r'%s*' % fnameprefix)
69 files.sort()
70 frameno = 1
prp_PyPack.py (https://github.com/H-uru/PyPRP.git) Python · 124 lines
pak_utils.py (https://bitbucket.org/MateuszBoryckiHG/magiccasino-buildscripts.git) Python · 126 lines
second_phos_ratio.py (https://github.com/ecell/epdp.git) Python · 281 lines
tests.py (https://github.com/fone4u/nodebox-pyobjc.git) Python · 59 lines
manager.py (https://github.com/log2timeline/dftimewolf.git) Python · 129 lines
test_isoinfo.py (https://gitlab.com/libosinfo/osinfo-db) Python · 60 lines
setup.py (https://github.com/ericliang/matplotlib.git) Python · 76 lines
setup.py (https://github.com/0902horn/urlwatch-modified.git) Python · 71 lines
playVideo.py (https://gitlab.com/argenos/VirtualBlackboard) Python · 89 lines
checkmate.py (https://github.com/vonclites/checkmate.git) Python · 149 lines
pyportage.py (https://github.com/meeuw/portage-python.git) Python · 137 lines
112 pn = sys.argv[2]
113 x = XPAK(ftbz2)
114 for dir in glob.glob('/usr/portage/*-*')+glob.glob('/usr/portage/virtual*'): shutil.rmtree(dir)
115 try:
116 os.remove('/usr/portage/profiles/categories')
131 print splitebuildname(re.split('\[ebuild.*\] ', line)[1][:-1])['pn']
133 for dir in glob.glob('/usr/portage/*-*')+glob.glob('/usr/portage/virtual'): shutil.rmtree(dir)
134 try:
135 os.remove('/usr/portage/profiles/categories')
test_detectors.py (https://github.com/facebookresearch/maskrcnn-benchmark.git) Python · 143 lines
data_parser.py (https://github.com/felipecode/coiltraine.git) Python · 68 lines
build-win-installer.py (https://github.com/blackberry/WebKit-Smartphone.git) Python · 97 lines
test-lz4-versions.py (https://gitlab.com/adam.lukaitis/lz4) Python · 147 lines
86 print('Compress test.dat by all released lz4c and lz4c32')
87 os.chdir(tmp_dir)
88 for lz4 in glob.glob("*.lz4"):
89 os.remove(lz4)
90 for tag in tags:
96 print('Full list of compressed files')
97 lz4s = sorted(glob.glob('*.lz4'))
98 for lz4 in lz4s:
99 print(lz4 + ' : ' + repr(os.path.getsize(lz4)))
102 print('')
103 print('Duplicated files')
104 lz4s = sorted(glob.glob('*.lz4'))
105 for i, lz4 in enumerate(lz4s):
106 if not os.path.isfile(lz4):
sample-modelnet40.py (https://github.com/AlexGeControl/3D-Point-Cloud-Analytics.git) Python · 82 lines
distro_stats.py (https://github.com/mono/release.git) Python · 107 lines
sgd.py (https://github.com/flypythoncom/cs224n_2019.git) Python · 133 lines
autoedit.py (https://github.com/freephys/Langtangen.git) Python · 165 lines
simulators.py (https://github.com/BlueBrain/BluePyOpt.git) Python · 164 lines
post_pgrc.py (https://github.com/sslab-gatech/mosaic.git) Python · 171 lines
mouse_and_match.py (git://pkgs.fedoraproject.org/opencv) Python · 73 lines
56 cv.setMouseCallback("gray", onmouse)
57 '''Loop through all the images in the directory'''
58 for infile in glob.glob( os.path.join(path, '*.*') ):
59 ext = os.path.splitext(infile)[1][1:] #get the filename extenstion
60 if ext == "png" or ext == "jpg" or ext == "bmp" or ext == "tiff" or ext == "pbm":