Skip to content

Commit

Permalink
report
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Jun 10, 2014
1 parent 505f578 commit 3b7f1ee
Show file tree
Hide file tree
Showing 24 changed files with 495 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
common/person-profile.txt*
old-result
report/output

*.py[cod]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ To run the command line tool, you'll need the following installed:

Usage:
```bash
./paper-downloadr.py -t "Distinctive image features from scale-invariant keypoints" -d /tmp
./paper-downloader.py -t "Distinctive image features from scale-invariant keypoints" -d /tmp
```

To deploy the server, you'll need:
Expand Down
4 changes: 2 additions & 2 deletions common/fetcher/__init__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!../../manage/exec-in-virtualenv.sh
# -*- coding: UTF-8 -*-
# File: __init__.py
# Date: 二 6月 10 02:55:19 2014 +0000
# Date: Tue Jun 10 22:44:13 2014 +0800
# Author: Yuxin Wu <[email protected]>

from lib.downloader import direct_download, ProgressPrinter
from lib.textutil import title_beautify
from ukutil import check_pdf, import_all_modules, ensure_unicode
from lib.ukutil import check_pdf, import_all_modules, ensure_unicode
from uklogger import *
from job import SearchResult
from lib.exc import RecoverableErr
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions common/pdfprocess.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!../manage/exec-in-virtualenv.sh
# -*- coding: UTF-8 -*-
# File: pdfprocess.py
# Date: 二 6月 10 03:25:40 2014 +0000
# Date: Tue Jun 10 22:44:22 2014 +0800
# Author: Yuxin Wu <[email protected]>

import tempfile
Expand All @@ -10,7 +10,7 @@

from uklogger import *
from ukdbconn import get_mongo
from ukutil import check_pdf, pdf_compress
from lib.ukutil import check_pdf, pdf_compress
from lib.pdf2html import PDF2Html
from lib.textutil import parse_file_size
import contentsearch
Expand Down
4 changes: 2 additions & 2 deletions common/searcher/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: __init__.py
# Date: Mon May 26 20:01:28 2014 +0800
# Date: Tue Jun 10 22:44:33 2014 +0800
# Author: Yuxin Wu <[email protected]>

from ukutil import import_all_modules
from lib.ukutil import import_all_modules
from uklogger import *
from functools import wraps

Expand Down
4 changes: 2 additions & 2 deletions common/searcher/gscholar.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: gscholar.py
# Date: 一 6月 09 16:40:44 2014 +0000
# Date: Tue Jun 10 22:44:29 2014 +0800
# Author: Yuxin Wu <[email protected]>


from . import register_searcher
from job import SearchResult
from uklogger import *
from lib.textutil import title_correct, filter_title_fileformat, title_beautify
from ukutil import ensure_unicode, ensure_bin_str
from lib.ukutil import ensure_unicode, ensure_bin_str

import re
import requests
Expand Down
4 changes: 2 additions & 2 deletions common/xpengine/indexer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: indexer.py
# Date: 一 6月 09 16:47:56 2014 +0000
# Date: Tue Jun 10 22:44:06 2014 +0800
# Author: Yuxin Wu <[email protected]>

__all__ = ['xapian_indexer']
Expand All @@ -12,7 +12,7 @@
import xappy
from xappy import IndexerConnection, FieldActions, UnprocessedDocument, Field
from xappy import errors
from ukutil import ensure_unicode_anytype as ensure_unicode
from lib.ukutil import ensure_unicode_anytype as ensure_unicode

from xpcommon import FIELD_NUM, STOPWORDS

Expand Down
4 changes: 2 additions & 2 deletions paper-downloader.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: paper-downloader.py
# Date: 二 5月 27 04:47:56 2014 +0000
# Date: Tue Jun 10 22:44:54 2014 +0800
# Author: Yuxin Wu <[email protected]>

# Command line script to use paper-downloader
Expand All @@ -21,7 +21,7 @@
from job import JobContext
import fetcher
from fetcher import do_fetcher_download
from ukutil import pdf_compress
from lib.ukutil import pdf_compress
from uklogger import *
import ukconfig
ukconfig.download_method = 'wget'
Expand Down
36 changes: 36 additions & 0 deletions report/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
TARGET=report
TEX=xelatex -interaction=nonstopmode -shell-escape
BIBTEX=bibtex
READER=mupdf

all: rebuild

rebuild output/$(TARGET).pdf: *.tex *.bib output
cd output && rm -f *.tex *.bib && ln -s ../*.tex ../*.bib .
cd output && $(TEX) $(TARGET).tex
cp output/$(TARGET).pdf ../ -f
cp output/$(TARGET).pdf ./ -f


output:
mkdir output -p
cd output && rm -f img src && ln -s ../img ../src ./

view: output/$(TARGET).pdf
$(READER) output/$(TARGET).pdf &

clean:
rm -rf output

# compile twice to get cross reference right
final : *.tex *.bib output
cd output && rm -f *.tex *.bib && ln -s ../*.tex ../*.bib .
cd output && $(TEX) $(TARGET).tex && $(BIBTEX) $(TARGET).aux && \
$(TEX) $(TARGET).tex && $(TEX) $(TARGET).tex

count:
@word_count *.tex

run: view

.PHONY: all view clean rebuild run
Binary file added report/img/Sopaperlogo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/img/author.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/img/chaos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/img/index.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/img/reading.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/img/redirect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/img/reference.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/img/summary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added report/img/various.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 3b7f1ee

Please sign in to comment.