eaab14a5e970f0901494ae488c3cb88f991c2a76,source/test.py,,simple_inclusive,#Any#,36

Before Change



def simple_inclusive(sentences):
    for sentence in sentences:
        for word in sentence.split(" "):
            if word in indicatives:
                print (sentence)

// exclusive
// minimum_spaces = 2
// minimum_lettres = 12
conventions = ["c.[0-9]+[ACTG]>[ACTG]"]
// list comprehension for "p.Lys76Asn" e.g. [(p.X[0-9]+Y) with X in aa, Y in aa]
// V232fs --> frameshift
// delta Phe581

After Change


            itotal += 1
            if word in indicatives:
                // print (sentence, isen, iword, itotal)
                for i in xrange(iword - 1, len(words) - 1):
                    if words[i] in positions:
                        // print (words[i], "found")
                        found.append([itotal, i - iword + 1])
                        break
                    elif words[i] == words[len(words) - 1]:
                        print ("not found")
    return found
// print (words[iword - 1])

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: Rostlab/nalaf
Commit Name: eaab14a5e970f0901494ae488c3cb88f991c2a76
Time: 2015-05-16
Author: carsten.uhlig@gmail.com
File Name: source/test.py
Class Name:
Method Name: simple_inclusive


Project Name: emedvedev/attention-ocr
Commit Name: 860dc3903f01527b9fa57d50da63910c4cea6c2f
Time: 2016-11-13
Author: ubuntu@ip-172-31-22-240.us-west-2.compute.internal
File Name: src/model/model.py
Class Name: Model
Method Name: __init__


Project Name: UFAL-DSG/tgen
Commit Name: f4e324d0b6cba699928d5b0f3d6c5e2168730f0f
Time: 2015-11-09
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/rank_nn.py
Class Name: EmbNNRanker
Method Name: _extract_feats