fea0351e92bf4f060371ad62907d26ef25c25a50,src/python/pants/option/arg_splitter.py,ArgSplitter,__init__,#ArgSplitter#Any#,31
Before Change
// Note: This algorithm for finding the lead scopes relies on the fact that enclosing
// scopes are earlier than enclosed scopes in the list.
leaf_scopes = set()
for scope in known_scopes:
if scope:
outer_scope, _, _ = scope.rpartition(".")
if outer_scope in leaf_scopes:
leaf_scopes.discard(outer_scope)
leaf_scopes.add(scope)
for scope in leaf_scopes:
self._known_scoping_prefixes["{0}-".format(scope.replace(".", "-"))] = scope
@property
After Change
// Check for prefixes in reverse order, so we match the longest prefix first.
self._known_scoping_prefixes = [("{0}-".format(scope.replace(".", "-")), scope)
for scope in filter(None, sorted(self._known_scopes, reverse=True) )]
@property
def is_help(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances Project Name: pantsbuild/pants
Commit Name: fea0351e92bf4f060371ad62907d26ef25c25a50
Time: 2014-10-10
Author: benjy@foursquare.com
File Name: src/python/pants/option/arg_splitter.py
Class Name: ArgSplitter
Method Name: __init__
Project Name: IDSIA/sacred
Commit Name: 443e179cfaf8f5502002fbd8e480685d2991eade
Time: 2017-09-14
Author: qwlouse@gmail.com
File Name: sacred/initialize.py
Class Name:
Method Name: create_run
Project Name: pantsbuild/pants
Commit Name: 6229c419d8f1b63cac22f23f24e19ef28d89b0a3
Time: 2018-06-27
Author: dawagner@gmail.com
File Name: src/python/pants/backend/graph_info/tasks/cloc.py
Class Name: CountLinesOfCode
Method Name: console_output
Project Name: huyingxi/Synonyms
Commit Name: 4a44eff88fe62c76183418e4ffd779f28b973ef3
Time: 2018-05-27
Author: hailiang.hl.wang@gmail.com
File Name: synonyms/synonyms.py
Class Name:
Method Name: _nearby_levenshtein_distance