fea0351e92bf4f060371ad62907d26ef25c25a50,src/python/pants/option/arg_splitter.py,ArgSplitter,__init__,#ArgSplitter#Any#,31

Before Change


    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

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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

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: pantsbuild/pants
Commit Name: bf9599809214cbc3082eb7f39c0ad3155822a2c5
Time: 2014-02-12
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_compile/scala/zinc_analysis.py
Class Name: ZincAnalysis
Method Name: split


Project Name: AlexsLemonade/refinebio
Commit Name: 59345529cf7663dc4e2b491c483ca47dd50567a4
Time: 2019-11-06
Author: arielsvn@gmail.com
File Name: foreman/data_refinery_foreman/foreman/management/commands/create_compendia.py
Class Name: Command
Method Name: handle


Project Name: pantsbuild/pants
Commit Name: 32479c73b83a9a875a28d1adce327573b39af37e
Time: 2014-04-30
Author: benjy@foursquare.com
File Name: src/python/pants/commands/goal.py
Class Name: Goal
Method Name: setup_parser


Project Name: andresriancho/w3af
Commit Name: 3a1b04fd5a519f6e981d714350b234061cdc38e9
Time: 2018-07-18
Author: andres.riancho@gmail.com
File Name: w3af/plugins/grep/strange_headers.py
Class Name: strange_headers
Method Name: grep