f1106d2c7e4580a1c2947fa8dd181aec1babf517,estnltk/database/database.py,Database,keyword_documents,#Database#Any#Any#Any#,120
Before Change
//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)
After Change
es = self.__es
for keyword in keywords:
search = es.search(index="test", doc_type=self.__doc_type, body={"query": {"match_all": {"content": "Aegna"}}})
print("%d documents found" % search["hits"]["total"])
print("%d documents found" % search["hits"]["total"])
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: samuelclay/NewsBlur
Commit Name: 4f6ffcfbd130fd714c77dbb9e8d95c7ec6e2ebb7
Time: 2011-09-15
Author: samuel@ofbrooklyn.com
File Name: api/newsblur.py
Class Name: API
Method Name: statistics
Project Name: samuelclay/NewsBlur
Commit Name: 4f6ffcfbd130fd714c77dbb9e8d95c7ec6e2ebb7
Time: 2011-09-15
Author: samuel@ofbrooklyn.com
File Name: api/newsblur.py
Class Name: API
Method Name: classifier