From 3ed5975e238623ec1fc5b301f0c3cee04df75b22 Mon Sep 17 00:00:00 2001 From: caoying03 Date: Fri, 17 Nov 2017 15:48:19 +0800 Subject: [PATCH] remove useless html. --- .pre-commit-config.yaml | 8 - .../convert_markdown_into_html.py | 95 ---- ctr/index.html | 403 ----------------- dssm/index.html | 328 -------------- generate_chinese_poetry/index.html | 65 --- generate_sequence_by_rnn_lm/index.html | 226 ---------- globally_normalized_reader/index.html | 119 ----- hsigmoid/index.html | 226 ---------- image_classification/index.html | 302 ------------- ltr/index.html | 422 ------------------ nce_cost/index.html | 217 --------- nested_sequence/index.html | 73 --- .../text_classification/index.html | 302 ------------- neural_qa/index.html | 188 -------- nmt_without_attention/index.html | 412 ----------------- scene_text_recognition/index.html | 192 -------- scheduled_sampling/index.html | 277 ------------ sequence_tagging_for_ner/index.html | 236 ---------- ssd/index.html | 293 ------------ text_classification/index.html | 262 ----------- 20 files changed, 4646 deletions(-) delete mode 100644 .pre-commit-hooks/convert_markdown_into_html.py delete mode 100644 ctr/index.html delete mode 100644 dssm/index.html delete mode 100644 generate_chinese_poetry/index.html delete mode 100644 generate_sequence_by_rnn_lm/index.html delete mode 100644 globally_normalized_reader/index.html delete mode 100644 hsigmoid/index.html delete mode 100644 image_classification/index.html delete mode 100644 ltr/index.html delete mode 100644 nce_cost/index.html delete mode 100644 nested_sequence/index.html delete mode 100644 nested_sequence/text_classification/index.html delete mode 100644 neural_qa/index.html delete mode 100644 nmt_without_attention/index.html delete mode 100644 scene_text_recognition/index.html delete mode 100644 scheduled_sampling/index.html delete mode 100644 sequence_tagging_for_ner/index.html delete mode 100644 ssd/index.html delete mode 100644 text_classification/index.html diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8ff36e098b..ede1c53a4a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -33,11 +33,3 @@ entry: bash .clang_format.hook -i language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|cuh|proto)$ -- repo: local - hooks: - - id: convert-markdown-into-html - name: convert-markdown-into-html - description: Convert README.md into index.html - entry: python .pre-commit-hooks/convert_markdown_into_html.py - language: system - files: .+README\.md$ diff --git a/.pre-commit-hooks/convert_markdown_into_html.py b/.pre-commit-hooks/convert_markdown_into_html.py deleted file mode 100644 index 66f44ef23c..0000000000 --- a/.pre-commit-hooks/convert_markdown_into_html.py +++ /dev/null @@ -1,95 +0,0 @@ -import argparse -import re -import sys - -HEAD = """ - - - - - - - - - - - - - - - - -
-
- - - - - - - -""" - - -def convert_markdown_into_html(argv=None): - parser = argparse.ArgumentParser() - parser.add_argument('filenames', nargs='*', help='Filenames to fix') - args = parser.parse_args(argv) - - retv = 0 - - for filename in args.filenames: - with open( - re.sub(r"README", "index", re.sub(r"\.md$", ".html", filename)), - "w") as output: - output.write(HEAD) - with open(filename) as input: - for line in input: - output.write(line) - output.write(TAIL) - - return retv - - -if __name__ == '__main__': - sys.exit(convert_markdown_into_html()) diff --git a/ctr/index.html b/ctr/index.html deleted file mode 100644 index 78dc8e8259..0000000000 --- a/ctr/index.html +++ /dev/null @@ -1,403 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/dssm/index.html b/dssm/index.html deleted file mode 100644 index 5c4a1a9d31..0000000000 --- a/dssm/index.html +++ /dev/null @@ -1,328 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/generate_chinese_poetry/index.html b/generate_chinese_poetry/index.html deleted file mode 100644 index a5dba006b9..0000000000 --- a/generate_chinese_poetry/index.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/generate_sequence_by_rnn_lm/index.html b/generate_sequence_by_rnn_lm/index.html deleted file mode 100644 index 17e81d9e52..0000000000 --- a/generate_sequence_by_rnn_lm/index.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/globally_normalized_reader/index.html b/globally_normalized_reader/index.html deleted file mode 100644 index c8c23c5bad..0000000000 --- a/globally_normalized_reader/index.html +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/hsigmoid/index.html b/hsigmoid/index.html deleted file mode 100644 index 738e81f25a..0000000000 --- a/hsigmoid/index.html +++ /dev/null @@ -1,226 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/image_classification/index.html b/image_classification/index.html deleted file mode 100644 index 48009093f9..0000000000 --- a/image_classification/index.html +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/ltr/index.html b/ltr/index.html deleted file mode 100644 index 59fb2d3260..0000000000 --- a/ltr/index.html +++ /dev/null @@ -1,422 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/nce_cost/index.html b/nce_cost/index.html deleted file mode 100644 index 1a7d8271a0..0000000000 --- a/nce_cost/index.html +++ /dev/null @@ -1,217 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/nested_sequence/index.html b/nested_sequence/index.html deleted file mode 100644 index 51f66f93f7..0000000000 --- a/nested_sequence/index.html +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/nested_sequence/text_classification/index.html b/nested_sequence/text_classification/index.html deleted file mode 100644 index 1838415cec..0000000000 --- a/nested_sequence/text_classification/index.html +++ /dev/null @@ -1,302 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/neural_qa/index.html b/neural_qa/index.html deleted file mode 100644 index 53786d97ab..0000000000 --- a/neural_qa/index.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/nmt_without_attention/index.html b/nmt_without_attention/index.html deleted file mode 100644 index cf610710dd..0000000000 --- a/nmt_without_attention/index.html +++ /dev/null @@ -1,412 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/scene_text_recognition/index.html b/scene_text_recognition/index.html deleted file mode 100644 index 4331b2b963..0000000000 --- a/scene_text_recognition/index.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/scheduled_sampling/index.html b/scheduled_sampling/index.html deleted file mode 100644 index 8d327c4b1a..0000000000 --- a/scheduled_sampling/index.html +++ /dev/null @@ -1,277 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/sequence_tagging_for_ner/index.html b/sequence_tagging_for_ner/index.html deleted file mode 100644 index 389f4d502c..0000000000 --- a/sequence_tagging_for_ner/index.html +++ /dev/null @@ -1,236 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/ssd/index.html b/ssd/index.html deleted file mode 100644 index 6a27889016..0000000000 --- a/ssd/index.html +++ /dev/null @@ -1,293 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - - diff --git a/text_classification/index.html b/text_classification/index.html deleted file mode 100644 index 21e4e14dac..0000000000 --- a/text_classification/index.html +++ /dev/null @@ -1,262 +0,0 @@ - - - - - - - - - - - - - - - - - -
-
- - - - - - -