Originally intended to fix a bug in edit openning fils with non-ascii characters. Now all data is assumed to be manipulated as unicode. Therefore all values returned by functions from content are unicode. There are a few exception in order to download non-unicode data without failing to decode. These exception are marked by the 'byte_' prefix. The io package is used instead of builtin open for all file transactions. The fake_env test helper has to be modified (hacked, to be honnest) since fake_filesystem does not offer a mock of io. This is still WIP. Two issues still have to be solved: - first there is an UnicodeWarning raised by bibparser, - also config is still directly using builtin open.
60 lines
2.6 KiB
Python
60 lines
2.6 KiB
Python
from __future__ import unicode_literals
|
|
|
|
|
|
bibtex_external0 = """
|
|
@techreport{Page99,
|
|
number = {1999-66},
|
|
month = {November},
|
|
author = {Lawrence Page and Sergey Brin and Rajeev Motwani and Terry Winograd},
|
|
note = {Previous number = SIDL-WP-1999-0120},
|
|
title = {The PageRank Citation Ranking: Bringing Order to the Web.},
|
|
type = {Technical Report},
|
|
publisher = {Stanford InfoLab},
|
|
year = {1999},
|
|
institution = {Stanford InfoLab},
|
|
url = {http://ilpubs.stanford.edu:8090/422/},
|
|
abstract = "The importance of a Web page is an inherently subjective matter, which depends on the readers interests, knowledge and attitudes. But there is still much that can be said objectively about the relative importance of Web pages. This paper describes PageRank, a mathod for rating Web pages objectively and mechanically, effectively measuring the human interest and attention devoted to them. We compare PageRank to an idealized random Web surfer. We show how to efficiently compute PageRank for large numbers of pages. And, we show how to apply PageRank to search and to user navigation.",
|
|
}
|
|
"""
|
|
|
|
bibtex_raw0 = """@techreport{
|
|
Page99,
|
|
author = "Page, Lawrence and Brin, Sergey and Motwani, Rajeev and Winograd, Terry",
|
|
publisher = "Stanford InfoLab",
|
|
title = "The PageRank Citation Ranking: Bringing Order to the Web.",
|
|
url = "http://ilpubs.stanford.edu:8090/422/",
|
|
abstract = "The importance of a Web page is an inherently subjective matter, which depends on the readers interests, knowledge and attitudes. But there is still much that can be said objectively about the relative importance of Web pages. This paper describes PageRank, a mathod for rating Web pages objectively and mechanically, effectively measuring the human interest and attention devoted to them. We compare PageRank to an idealized random Web surfer. We show how to efficiently compute PageRank for large numbers of pages. And, we show how to apply PageRank to search and to user navigation.",
|
|
number = "1999-66",
|
|
month = "November",
|
|
note = "Previous number = SIDL-WP-1999-0120",
|
|
year = "1999",
|
|
type = "Technical Report",
|
|
institution = "Stanford InfoLab"
|
|
}
|
|
|
|
"""
|
|
|
|
metadata_raw0 = """docfile: docsdir://Page99.pdf
|
|
tags: [search, network]
|
|
added: '2013-11-14 13:14:20'
|
|
"""
|
|
|
|
turing_bib = """@article{turing1950computing,
|
|
title={Computing machinery and intelligence},
|
|
author={Turing, Alan M},
|
|
journal={Mind},
|
|
editor={Edward A. Feigenbaum and Julian Feldman},
|
|
volume={59},
|
|
number={236},
|
|
pages={433--460},
|
|
year={1950},
|
|
publisher={JSTOR}
|
|
}
|
|
|
|
"""
|
|
|
|
turing_meta = """\
|
|
tags: [AI, computer]
|
|
added: '2013-11-14 13:14:20'
|
|
"""
|