Exemplo n.º 1
0
 def filter_by_keywords(self, keywords):
     if(keywords == None):
         return self
     filtered = AdVector()
     filtered.setLabel(self.label)
     for ad in self.data:
         if(ad.contains(keywords)):
             filtered.add(ad)
     return filtered
Exemplo n.º 2
0
 def filter_by_keywords(self, keywords):
     if (keywords == None):
         return self
     filtered = AdVector()
     filtered.setLabel(self.label)
     for ad in self.data:
         if (ad.contains(keywords)):
             filtered.add(ad)
     return filtered
 def freq_contains(self, nonces):
     count = 0
     for ad in self.data:
         if (ad.contains(nonces)):
             count += 1
     return count
Exemplo n.º 4
0
 def freq_contains(self, nonces):
     count = 0
     for ad in self.data:
         if(ad.contains(nonces)):
             count +=1
     return count