3b9042c743facfbd1e641784f21e29a95db2aac2,t2t_csaky/scripts/remove.py,,main,#,5

Before Change



  with open(args.input, "r") as fin, open(out_file, "w") as fou:
    for line in fin:
      ou_line = []
      for word in line.strip().split():
        if word not in tokens:
          ou_line.append(word)
      fou.write(" ".join(ou_line) + "\n")


if __name__ == "__main__":

After Change



  with open(args.input, "r") as fin, open(out_file, "w") as fou:
    for line in fin:
      fou.write(" ".join([word for word in line.strip().split()
                          if word not in tokens]) + "\n")


if __name__ == "__main__":
  main()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: 3b9042c743facfbd1e641784f21e29a95db2aac2
Time: 2018-09-20
Author: purgai.patrik@gmail.com
File Name: t2t_csaky/scripts/remove.py
Class Name:
Method Name: main


Project Name: suavecode/SUAVE
Commit Name: b60c2b7edaac23593f3ea59bbe91b7b10a864ec9
Time: 2015-03-07
Author: tmomose@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/AVL/write_input_deck.py
Class Name:
Method Name: write_input_deck


Project Name: luispedro/mahotas
Commit Name: 64624fb2b46a228fef1141e1ded84e52acccaf6e
Time: 2015-06-09
Author: luis@luispedro.org
File Name: bin/mahotas-features.py
Class Name:
Method Name: main