cd263663b3332ac10da6721dee8f52804639f19b,src/python/pants/option/arg_splitter.py,ArgSplitter,split_args,#ArgSplitter#Any#,37

Before Change


    if self._at_double_dash():
      self._unconsumed_args.pop()

    target = self._consume_target()
    while target:
      targets.append(target)
      target = self._consume_target()

    // We parse the word "help" as a scope, but it"s not a real one, so ignore it.
    scope_to_flags.pop("help", None)
    return scope_to_flags, targets

  def _consume_scope(self):

After Change


      scope_to_flags[flag_scope].append(descoped_flag)
    scope, flags = self._consume_scope()
    while scope:
      scope_to_flags[scope].extend([])  // Force the scope to appear, even if empty.
      for flag in flags:
        flag_scope, descoped_flag = self._descope_flag(flag, default_scope=scope)
        scope_to_flags[flag_scope].append(descoped_flag)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pantsbuild/pants
Commit Name: cd263663b3332ac10da6721dee8f52804639f19b
Time: 2014-10-01
Author: benjyw@gmail.com
File Name: src/python/pants/option/arg_splitter.py
Class Name: ArgSplitter
Method Name: split_args


Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: 06b9fdb0079116af3e79021a4fb27a2caac1ad97
Time: 2018-01-24
Author: yuhanliu@google.com
File Name: sklearn/hpsearch/gke_parallel.py
Class Name: GKEParallel
Method Name: _partition_search_spaces


Project Name: PyThaiNLP/pythainlp
Commit Name: 6b32aff33ba3894a4d5ae5632fd315189b3909fb
Time: 2018-10-13
Author: arthit@gmail.com
File Name: pythainlp/tokenize/__init__.py
Class Name:
Method Name: syllable_tokenize