5fbe118729532067c8d427a9ba3ce5a9d0e15917,cellprofiler/measurements.py,,find_metadata_tokens,#Any#,470
Before Change
if not m:
m = re.search("\\\\g[<](.+?)[>]", pattern)
if not m:
m = re.search("\\(\\?P[<](.+?)[>]", pattern)
if not m:
break
result.append(m.groups()[0])
pattern = pattern[m.end():]
After Change
// Convert Matlab to Python
pattern = re.sub("(\\(\\?)([<].+?[>])","\\1P\\2",pattern)
match = re.search("(|(%s))"%pattern, "")
return match.groupdict().keys()
def extract_metadata(pattern, text):
Return a dictionary of metadata extracted from the text
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: CellProfiler/CellProfiler
Commit Name: 5fbe118729532067c8d427a9ba3ce5a9d0e15917
Time: 2010-05-12
Author: thouis@1fc53939-2000-0410-845c-e8453a809027
File Name: cellprofiler/measurements.py
Class Name:
Method Name: find_metadata_tokens
Project Name: cve-search/cve-search
Commit Name: 10f98f742e47df11d47aa746699a009b6c6cb85b
Time: 2013-04-01
Author: a@foo.be
File Name: search_fulltext.py
Class Name:
Method Name:
Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 5012fd52fb0e4633a7ef39c2eb32017388c7eb37
Time: 2019-07-15
Author: yuyanting@google.com
File Name: perfkitbenchmarker/linux_packages/iperf.py
Class Name:
Method Name: YumInstall