5fbe118729532067c8d427a9ba3ce5a9d0e15917,cellprofiler/measurements.py,,find_metadata_tokens,#Any#,470

Before Change


                if not m:
                    break
        result.append(m.groups()[0])
        pattern = pattern[m.end():]
    return result

def extract_metadata(pattern, text):
    Return a dictionary of metadata extracted from the text

After Change


              "(?P<METADATA_TAG>...match-exp..)" (Python-style search)
     
    // 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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: mynlp/ccg2lambda
Commit Name: f91c6aaadfed8c6dc7ee58f459c4aa369fcba882
Time: 2017-01-12
Author: pascual@nii.ac.jp
File Name: scripts/abduction_tools.py
Class Name:
Method Name: GetPremisesThatMatchConclusionArgs


Project Name: jaakkopasanen/AutoEq
Commit Name: 5e21d853134fd4197ff7440b91645277a458dc00
Time: 2019-04-27
Author: jaakko.o.pasanen@gmail.com
File Name: crinacle/names.py
Class Name:
Method Name: main