f1106d2c7e4580a1c2947fa8dd181aec1babf517,estnltk/database/database.py,Database,keyword_documents,#Database#Any#Any#Any#,120

Before Change


            "layers": keywords
        }

        data = json.dumps(data)

        //print("search results:")
        //for doc_id in self.es.search(index=self.index)["hits"]["hits"]:
        //     print(doc_id)

        request = urllib2.Request(url, data)
        recived_data = urllib2.urlopen(request)
        print(recived_data.read())

        data_out = json.loads(data)
        print(data_out)
        print(data_out["hits"]["total"])

    def keyword_matches(self, keywords, layer=None):

After Change


        print("%d documents found" % search["hits"]["total"])

        for doc in search["hits"]["hits"]:
            print("%s) %s" % (doc["_id"], doc["_source"]["content"]))



    def keyword_matches(self, keywords, layer=None):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: estnltk/estnltk
Commit Name: f1106d2c7e4580a1c2947fa8dd181aec1babf517
Time: 2015-09-05
Author: Annett.Saarik@hotmail.com
File Name: estnltk/database/database.py
Class Name: Database
Method Name: keyword_documents


Project Name: estnltk/estnltk
Commit Name: f44cb644187ca69159fd79fb917077520c3ea031
Time: 2014-11-28
Author: brainscauseminds@gmail.com
File Name: estnltk/examples/ex01.py
Class Name:
Method Name:


Project Name: commonsense/conceptnet5
Commit Name: 76906fa1ce59dcaeb73e409b8929d8421c269bea
Time: 2019-03-22
Author: rspeer@luminoso.com
File Name: conceptnet5/db/query.py
Class Name: AssertionFinder
Method Name: sample_dataset