edd74909eb1cef75e88e50af6fee48bb6615b7fb,my/tokenize.py,,main,#,47

Before Change


      STDOUT.write("token %6s: %s\n" % kind_token)
      end = match.end()
    if end < len(line):
      STDOUT.write("Unmatched: %s\n" % repr(line[end:]))
  return

After Change


    if not line:
      STDOUT.write("\n")
    tokens = list(Tokenize(line))
    if not tokens:
      continue
    if all(kind in ("native", "punct", "space") for (kind, token) in tokens):
      STDOUT.write("%s\n" % " ".join(token for (kind, token) in tokens
                                     if kind == "native"))
    else:
      STDERR.write("%s\n" % line)
  return
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: google/language-resources
Commit Name: edd74909eb1cef75e88e50af6fee48bb6615b7fb
Time: 2016-05-26
Author: mjansche@google.com
File Name: my/tokenize.py
Class Name:
Method Name: main


Project Name: mozilla/mozregression
Commit Name: ff6867f7e6ac296bf8ced8fb19e4d460898b8029
Time: 2015-11-12
Author: wittynwise2005@gmail.com
File Name: gui/mozregui/pref_editor.py
Class Name: PreferencesModel
Method Name: data


Project Name: google/language-resources
Commit Name: 1a0c8ee08d03397b3e08d6421427afdcbde88945
Time: 2016-06-12
Author: mjansche@google.com
File Name: my/grapheme_cluster.py
Class Name:
Method Name:


Project Name: coala/coala-bears
Commit Name: cad76bebfc96516d2ae22a3486f7702440938e3b
Time: 2016-07-21
Author: zgadi_2007@yahoo.com
File Name: bears/generate_package.py
Class Name:
Method Name: main