• Home
  • Raw
  • Download

Lines Matching refs:relevance

201 def updateWord(name, symbol, relevance):  argument
217 (name, symbol, relevance))
222 (relevance, name, symbol))
224 print "Update word (%s, %s, %s) failed command" % (name, symbol, relevance)
225 …print "UPDATE words SET relevance = %d where name = '%s' and symbol = '%s'" % (relevance, name, sy…
321 def updateWordHTML(name, resource, desc, id, relevance): argument
347 (name, resource, desc, id, relevance))
352 (desc, id, relevance, name, resource))
354 print "Update symbol (%s, %s, %d) failed command" % (name, resource, relevance)
355 …d='%s', relevance='%d' where name='%s' and resource='%s'""" % (desc, id, relevance, name, resource)
414 def updateWordArchive(name, id, relevance): argument
430 (name, id, relevance))
435 (relevance, name, id))
437 print "Update word archive (%s, %d, %d) failed command" % (name, id, relevance)
438 …print """UPDATE wordsArchive SET relevance='%d' where name='%s' and ID='%d'""" % (relevance, name,…
527 def addWord(word, module, symbol, relevance): argument
547 relevance = relevance + d[(module, symbol)]
552 wordsDict[word][(module, symbol)] = relevance
553 return relevance
555 def addString(str, module, symbol, relevance): argument
567 def addWordHTML(word, resource, id, section, relevance): argument
592 relevance = relevance + r
598 d[resource] = (relevance, id, section)
599 return relevance
601 def addStringHTML(str, resource, id, section, relevance): argument
610 r = addWordHTML(word, resource, id, section, relevance)
615 print "addWordHTML failed: %s %s %d" % (word, resource, relevance)
620 def addWordArchive(word, id, relevance): argument
639 relevance = relevance + r
645 d[id] = relevance
646 return relevance
648 def addStringArchive(str, id, relevance): argument
658 r = addWordArchive(word, id, relevance)
664 print "addWordArchive failed: %s %s %d" % (word, id, relevance)
1147 relevance = refs[id]
1148 updateWordArchive(word, id, relevance)
1167 (relevance, id, section) = refs[resource]
1168 updateWordHTML(word, resource, section, id, relevance)