gnunetbib

Bibliography (BibTeX, based on AnonBib)
Log | Files | Refs | README | LICENSE

commit 83a6e022774cdccafb05866e072a1c94fa78f23e
parent 3139041e358f38c8948e5beb1cea4ef62b3d0932
Author: Nick Mathewson <nickm@torproject.org>
Date:   Mon, 24 Nov 2008 20:06:18 +0000

exclude useless owens.mit.edu urls.

svn:r306

Diffstat:
Mrank.py | 15+++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/rank.py b/rank.py @@ -141,6 +141,16 @@ def TestScholarFormat(): assert(getCite("Stop-and-Go MIXes: Providing Probabilistic Anonymity in an Open System", False)[0] > 0) assert(getCite("Mixes protected by Dragons and Pixies: an empirical study", False, save=False)[0] == None) +def urlIsUseless(u): + if u.find("freehaven.net/anonbib/") >= 0: + # Our own cache is not the primary citation for anything. + return True + elif u.find("owens.mit.edu") >= 0: + # These citations only work for 'members of the MIT community'. + return True + else: + return False + URLTYPES=[ "pdf", "ps", "txt", "ps_gz", "html" ] if __name__ == '__main__': @@ -171,10 +181,7 @@ if __name__ == '__main__': if haveOne: continue print ent.key, "has no URLs given." - urls = [ u for u in getPaperURLs(ent['title']) - if u.find("freehaven.net/anonbib") < 0 ] + urls = [ u for u in getPaperURLs(ent['title']) if not urlIsUseless(u) ] for u in urls: print "\t", u - -