532c5db2b1520bc7422fa106576b11e36f4721ab,Orange/canvas/help/manager.py,,create_html_inventory_provider,#Any#,337
Before Change
// Extract all format fields
format_iter = formatter.parse(target)
fields = list(map(itemgetter(1), format_iter))
fields = [_f for _f in set(fields) if _f]
if "DEVELOP_ROOT" in fields:
if not is_develop_egg(dist):
// skip the location
After Change
format_iter = formatter.parse(target)
fields = {name for _, name, _, _ in format_iter if name}
if not set(fields) <= set(replacements.keys()):
log.warning("Invalid replacement fields %s",
set(fields) - set(replacements.keys()))
continue
target = formatter.format(target, **replacements)
targeturl = QUrl(target)
if not targeturl.isValid():
continue
islocal = targeturl.scheme() == "" or targeturl.scheme() == "file"
if islocal:
if not os.path.exists(target):
log.info("Local doc root "%s" does not exist", target)
continue
inventory = QUrl.fromLocalFile(target)
else:
inventory = QUrl(target)
return provider.HtmlIndexProvider(
inventory=inventory, xpathquery=xpathquery)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: biolab/orange3
Commit Name: 532c5db2b1520bc7422fa106576b11e36f4721ab
Time: 2015-08-06
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/help/manager.py
Class Name:
Method Name: create_html_inventory_provider
Project Name: biolab/orange3
Commit Name: 532c5db2b1520bc7422fa106576b11e36f4721ab
Time: 2015-08-06
Author: ales.erjavec@fri.uni-lj.si
File Name: Orange/canvas/help/manager.py
Class Name:
Method Name: create_html_provider
Project Name: ilastik/ilastik
Commit Name: 1f08e48e0508cbbeb762ce3277c341169e7df0c4
Time: 2015-11-18
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/labelingImport.py
Class Name: LabelImportOptionsDlg
Method Name: _initInsertPositionMappingWidgets
Project Name: ilastik/ilastik
Commit Name: 1f08e48e0508cbbeb762ce3277c341169e7df0c4
Time: 2015-11-18
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/labeling/labelingImport.py
Class Name: LabelImportOptionsDlg
Method Name: __init__