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

Before Change


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

Frequency: 3

Non-data size: 3

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: mathics/Mathics
Commit Name: 5a8afe8256c9586a9dff05e4c16b69d53f5857ae
Time: 2016-08-08
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/inout.py
Class Name: On
Method Name: apply


Project Name: Scitator/catalyst
Commit Name: ce9ef7662cad1788017899cda41dbca3cc396b71
Time: 2019-03-22
Author: grinchuk.alexey@gmail.com
File Name: catalyst/rl/offpolicy/sampler.py
Class Name: Sampler
Method Name: run