def regen(keywords): commits = DBQ.findByKeywords(keywords) for c in commits: c.dbkeywords = c.getSynonyms() c.save() sys.stdout.write(".") sys.stdout.flush() print ""
def regen(keywords): commits= DBQ.findByKeywords(keywords) for c in commits: c.dbkeywords = c.getSynonyms() c.save() sys.stdout.write(".") sys.stdout.flush() print ""
def get(self, keywords): commits = DBQ.findByKeywords(keywords) feed = getFeed() for c in commits: feed.items.append(c.toRSSItem()) self.set_header('Content-Type', 'application/rss+xml') xml = feed.to_xml() self.write(xml) return
def get(self, keywords): commits = DBQ.findByKeywords(keywords) feed = getFeed() for c in commits: feed.items.append(c.toRSSItem()) self.set_header('Content-Type', 'application/rss+xml') xml = feed.to_xml() self.write(xml) return
def get(self, keywords): commits = DBQ.findByKeywords(keywords) feed = RSS2(title="Crypto.is Code Audit Feed", description="Just a thing, right?", link="https://crypto.is", lastBuildDate=datetime.datetime.utcnow()) for c in commits: feed.items.append(c.toRSSItem()) self.set_header('Content-Type', 'application/rss+xml') xml = feed.to_xml() self.write(xml) return
def regen(keywords): commits = DBQ.findByKeywords(keywords) for c in commits: sys.stdout.write("(" + str(c.repo.id) + ":" + c.uniqueid + ":") sys.stdout.flush() diffs = c.getChangedTexts(c.getChangedTextMetadata()) sys.stdout.write("1") sys.stdout.flush() c.dbkeywords = c.getSynonyms(diffs) sys.stdout.write("2") sys.stdout.flush() c.save() sys.stdout.write("3)") sys.stdout.flush() print ""
def regen(keywords): commits= DBQ.findByKeywords(keywords) for c in commits: sys.stdout.write("(" + str(c.repo.id) + ":" + c.uniqueid + ":") sys.stdout.flush() diffs = c.getChangedTexts(c.getChangedTextMetadata()) sys.stdout.write("1") sys.stdout.flush() c.dbkeywords = c.getSynonyms(diffs) sys.stdout.write("2") sys.stdout.flush() c.save() sys.stdout.write("3)") sys.stdout.flush() print ""
def get(self, keywords): commits = DBQ.findByKeywords(keywords) feed = RSS2( title = "Crypto.is Code Audit Feed", description = "Just a thing, right?", link = "https://crypto.is", lastBuildDate = datetime.datetime.utcnow() ) for c in commits: feed.items.append(c.toRSSItem()) self.set_header('Content-Type', 'application/rss+xml') xml = feed.to_xml() self.write(xml) return
def browse(keywords): commits = DBQ.findByKeywords(keywords) for c in commits: print "---------" c.pprint()
def browse(keywords): commits = DBQ.findByKeywords(keywords) for c in commits: print "---------" c.pprint()