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

Before Change


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

Frequency: 3

Non-data size: 3

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: rtqichen/torchdiffeq
Commit Name: 625784c31f592f3b760b53faa0c2f31b57be238a
Time: 2020-07-30
Author: 33688385+patrick-kidger@users.noreply.github.com
File Name: torchdiffeq/_impl/misc.py
Class Name:
Method Name: _check_inputs


Project Name: undertheseanlp/underthesea
Commit Name: e8852f5ea7b3b5d222f0d6140f9375bd3826d2e4
Time: 2017-05-08
Author: brother.rain.1024@gmail.com
File Name: underthesea/word_sent/model.py
Class Name: CRFModel
Method Name: predict