Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix testcases for updated model #73

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified examples/sample_data/resume_1.pdf
Binary file not shown.
12 changes: 6 additions & 6 deletions tests/outputs/correct_docx_output.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
## Test document

## Here is an example chart:
Here is an example chart:


| Investor Metrics | FY23 Q1 | FY23 Q2 | FY23 Q3 | FY23 Q4 | FY24 Q1 |
|------------------|---------|---------|---------|---------|---------|
|---|---|---|---|---|---|
| Office Commercial products and cloud services revenue growth (y/y) | 7% / 13% | 7% / 14% | 13% / 17% | 12% / 14% | 15% / 14% |
| Office Consumer products and cloud services revenue growth (y/y) | 7% / 11% | (2)% / 3% | 1% / 4% | 3% / 6% | 3% / 4% |
| Office 365 Commercial seat growth (y/y) | 14% | 12% | 11% | 11% | 10% |
| Office 365 Commercial seat growth (a/o) | 14% | 12% | 11% | 11% | 10% |
| Microsoft 365 Consumer subscribers (in millions) | 65.1 | 67.7 | 70.8 | 74.9 | 76.7 |
| Dynamics products and cloud services revenue growth (y/y) | 15% / 22% | 13% / 20% | 17% / 21% | 19% / 21% | 22% / 21% |
| LinkedIn revenue growth (y/y) | 17% / 21% | 10% / 14% | 8% / 11% | 6% / 8% | 8% |


Growth rates include non-GAAP CC growth (GAP % / CC %)

Done.
Growth rates include non-GAAP CC growth (GAAP % / CC %)
330 changes: 193 additions & 137 deletions tests/outputs/correct_pdf_output.txt
Original file line number Diff line number Diff line change
@@ -1,137 +1,193 @@
STOXX INDEX METHODOLOGY GUIDE CONTENTS

3/529

## 7. STOXX BENCHMARK INDICES (BMI)

| 7.1. STOXX GLOBAL INDICES | 52 |
|---------------------------|-----|
| 7.1.1. OVERVIEW | 52 |
| 7.1.2. INDEX REVIEW | 53 |
| 7.1.3. ONGOING MAINTENANCE | 55 |

| 7.2 STOXX GLOBAL 1800 AND DERIVED INDICES | 56 |
|-------------------------------------------|-----|
| 7.2.1. OVERVIEW | 56 |
| 7.2.2. INDEX REVIEW | 56 |
| 7.2.3. ONGOING MAINTENANCE | 58 |

| 7.3 SIZE INDICES BASED ON THE STOXX GLOBAL INDICES | 60 |
|---------------------------------------------------|-----|
| 7.3.1. OVERVIEW | 60 |
| 7.3.2. INDEX REVIEW | 60 |
| 7.3.3. ONGOING MAINTENANCE | 62 |

| 7.4 SECTOR INDICES BASED ON THE STOXX GLOBAL INDICES | 63 |
|-----------------------------------------------------|-----|
| 7.4.1. OVERVIEW | 63 |
| 7.4.2. INDEX REVIEW | 63 |
| 7.4.3. ONGOING MAINTENANCE | 64 |

| 7.5 STOXX EUROPE 600 AND EURO STOXX SUPERSECTOR INDICES: 30% / 15% CAPS | 65 |
|------------------------------------------------------------------------|-----|
| 7.5.1. OVERVIEW | 65 |
| 7.5.2. INDEX REVIEW | 65 |
| 7.5.3. ONGOING MAINTENANCE | 66 |

| 7.6 STOXX REGIONAL REAL ESTATE INDICES: 20% CAPS67 | 67 |
|-----------------------------------------------------|-----|
| 7.6.1. OVERVIEW | 67 |
| 7.6.2. INDEX REVIEW | 67 |
| 7.6.3. ONGOING MAINTENANCE | 67 |

| 7.7 STOXX EMERGING MARKETS 800 LO | 68 |
|-------------------------------------|-----|
| 7.7.1. OVERVIEW | 68 |
| 7.7.2. INDEX REVIEW | 68 |
| 7.7.3. ONGOING MAINTENANCE | 68 |

| 7.8 STOXX INDUSTRY AND SUPERSECTOR LEGACY INDICES | 70 |
|---------------------------------------------------|-----|
| 7.8.1. OVERVIEW | 70 |
| 7.8.2. INDEX REVIEW | 71 |
| 7.8.3. ONGOING MAINTENANCE | 71 |

| 7.9 EURO STOXX SUPERSECTOR 5/10/40 INDICES | 72 |
|---------------------------------------------|-----|
| 7.9.1. OVERVIEW | 72 |
| 7.9.2. INDEX REVIEW | 72 |
| 7.9.3. ONGOING MAINTENANCE | 73 |

| 7.10 STOXX EUROPE 600 INDUSTRY 30-15 INDICES | 74 |
|----------------------------------------------|-----|
| 7.10.1. OVERVIEW | 74 |
| 7.10.2. INDEX REVIEW | 74 |
| 7.10.3. ONGOING MAINTENANCE | 75 |

| 7.11. STOXX SEMICONDUCTOR 30 INDEX | 76 |
|-------------------------------------|-----|
| 7.11.1. OVERVIEW | 76 |
| 7.11.2. INDEX REVIEW | 76 |
| 7.11.3. ONGOING MAINTENANCE | 77 |

## 8. STOXX EQUAL WEIGHT INDICES

| 8.1. STOXX EQUAL WEIGHT INDICES | 78 |
|--------------------------------|-----|
| 8.1.1. OVERVIEW | 78 |
| 8.1.2. INDEX REVIEW | 78 |
| 8.1.3. ONGOING MAINTENANCE | 78 |

## 9. STOXX BLUE-CHIP INDICES

| 9.1 STOXX GLOBAL AND COUNTRY BLUE-CHIP INDICES | 80 |
|------------------------------------------------|-----|
| 9.1.1. OVERVIEW | 80 |
| 9.1.2. INDEX REVIEW | 81 |
| 9.1.3. ONGOING MAINTENANCE | 84 |

| 9.2 EURO STOXX 50 | 85 |
|-------------------|-----|
| 9.2.1. OVERVIEW | 85 |
| 9.2.2. INDEX REVIEW | 85 |
| 9.2.3. ONGOING MAINTENANCE | 86 |

| 9.3 STOXX REGIONAL BLUE-CHIP INDICES | 88 |
|-------------------------------------|-----|
| 9.3.1. OVERVIEW | 88 |
| 9.3.2. INDEX REVIEW | 88 |
| 9.3.3. ONGOING MAINTENANCE | 89 |

| 9.4 STOXX GLOBAL 150 | 91 |
|----------------------|-----|
| 9.4.1. OVERVIEW | 91 |
| 9.4.2. INDEX REVIEW | 91 |
| 9.4.3. ONGOING MAINTENANCE | 91 |

| 9.5 STOXX BALKAN 50 EQUAL WEIGHT | 92 |
|-----------------------------------|-----|
| 9.5.1. OVERVIEW | 92 |
| 9.5.2. INDEX REVIEW | 92 |
| 9.5.3. ONGOING MAINTENANCE | 93 |

| 9.6 STOXX CANADA 60 | 94 |
|---------------------|-----|
| 9.6.1. OVERVIEW | 94 |
| 9.6.2. INDEX REVIEW | 94 |
| 9.6.3. ONGOING MAINTENANCE | 95 |

## 10. STOXX DIVIDEND INDICES

| 10.1 STOXX SELECT DIVIDEND INDICES | 96 |
|-----------------------------------|-----|
| 10.1.1. OVERVIEW | 96 |
| 10.1.2. INDEX REVIEW | 96 |
| 10.1.3. STOXX SELECT DIVIDEND INDICES | 99 |
| 10.1.4. ONGOING MAINTENANCE | 101 |

| 10.2 STOXX ASEAN-FIVE SELECT DIVIDEND 50 | 104 |
|---------------------------------------------|-----|
| 10.2.1. OVERVIEW | 104 |
| 10.2.2. INDEX REVIEW | 104 |
| 10.2.3. ONGOING MAINTENANCE | 105 |

| 10.3 STOXX ASEAN SELECT DIVIDEND 30 | 106 |
|-------------------------------------|-----|

STOXX logo with text "Part of DEUTSCHE BÖRSE GROUP"
STOXX INDEX METHODOLOGY GUIDE



# CONTENTS

6.5.1. OVERVIEW
49
7.11. STOXX SEMICONDUCTOR 30 INDEX
76
6.5.2. INDEX REVIEW
49
7.11.1. OVERVIEW
76
6.5.3. ONGOING MAINTENANCE
51
7.11.2. INDEX REVIEW
76
7.11.3. ONGOING MAINTENANCE
77
7. STOXX BENCHMARK INDICES (BMI)
52
8. STOXX EQUAL WEIGHT INDICES
78
7.1. STOXX GLOBAL INDICES
52
7.1.1. OVERVIEW
52
8.1. STOXX EQUAL WEIGHT INDICES
78
7.1.2. INDEX REVIEW
53
8.1.1. OVERVIEW
78
7.1.3. ONGOING MAINTENANCE
55
8.1.2. INDEX REVIEW
78
8.1.3. ONGOING MAINTENANCE
78
72 STOXX GLOBAL 1800 AND DERIVED INDICES
56
7.2.1. OVERVIEW
56
9. STOXX BLUE-CHIP INDICES
80
7.2.2. INDEX REVIEW
56
7.2.3. ONGOING MAINTENANCE
58
9.1. STOXX GLOBAL AND COUNTRY BLUE-CHIP INDICES 80
73 SIZE INDICES BASED ON THE STOXX GLOBAL
9.1.1. OVERVIEW
80
INDICES
60
9.1.2. INDEX REVIEW
81
7.3.1. OVERVIEW
60
9.1.3. ONGOING MAINTENANCE
84
7.3.2. INDEX REVIEW
60
7.3.3. ONGOING MAINTENANCE
92 EURO STOXX 50
62
85
9.2.1. OVERVIEW
85
7.4 SECTOR INDICES BASED ON THE STOXX GLOBAL
9.2.2. INDEX REVIEW
85
INDICES
63
9.2.3. ONGOING MAINTENANCE
86
7.4.1. OVERVIEW
63
7.4.2. INDEX REVIEW
93 STOXX REGIONAL BLUE-CHIP INDICES
88
63
7.4.3. ONGOING MAINTENANCE
64
9.3.1. OVERVIEW
88
9.3.2. INDEX REVIEW
88
7.5 STOXX EUROPE 600 AND EURO STOXX SUPERSECTOR
9.3.3. ONGOING MAINTENANCE
89
INDICES: 30% / 15% CAPS
65
7.5.1. OVERVIEW
9.4 STOXX GLOBAL 150
91
65
7.5.2. INDEX REVIEW
9.4.1. OVERVIEW
65
91
7.5.3. ONGOING MAINTENANCE
9.4.2. INDEX REVIEW
91
66
9.4.3. ONGOING MAINTENANCE
91
7.6 STOXX REGIONAL REAL ESTATE INDICES: 20% CAPS67
7.6.1. OVERVIEW
95 STOXX BALKAN 50 EQUAL WEIGHT
92
67
7.6.2. INDEX REVIEW
67
9.5.1. OVERVIEW
92
7.6.3. ONGOING MAINTENANCE
9.5.2. INDEX REVIEW
92
67
9.5.3. ONGOING MAINTENANCE
93
7.7. STOXX EMERGING MARKETS 800 LO
68
7.7.1. OVERVIEW
96 STOXX CANADA 60
94
68
7.7.2. INDEX REVIEW
9.6.1. OVERVIEW
68
94
7.7.3. ONGOING MAINTENANCE
9.6.2. INDEX REVIEW
94
68
9.6.3. ONGOING MAINTENANCE
95
7.8 STOXX INDUSTRY AND SUPERSECTOR LEGACY
INDICES
70
10. STOXX DIVIDEND INDICES
96
7.8.1. OVERVIEW
70
7.8.2. INDEX REVIEW
71
10.1. STOXX SELECT DIVIDEND INDICES
96
7.8.3. ONGOING MAINTENANCE
71
10.1.1. OVERVIEW
96
7.9 EURO STOXX SUPERSECTOR 5/10/40 INDICES
10.1.2. INDEX REVIEW
96
72
10.1.3. STOXX SELECT DIVIDEND INDICES
99
7.9.1. OVERVIEW
72
10.1.4. ONGOING MAINTENANCE
101
7.9.2. INDEX REVIEW
72
7.9.3. ONGOING MAINTENANCE
73
102 STOXX ASEAN-FIVE SELECT DIVIDEND 50
104
10.2.1. OVERVIEW
7.10 STOXX EUROPE 600 INDUSTRY 30-15 INDICES
104
74
10.2.2. INDEX REVIEW
104
7.10.1. OVERVIEW
74
10.2.3. ONGOING MAINTENANCE
105
7.10.2. INDEX REVIEW
74
7.10.3 ONGOING MAINTENANCE
75
10.3 STOXX ASEAN SELECT DIVIDEND 30
106

STOXX



DEUTSCHE BORSE
GROUP
4 changes: 1 addition & 3 deletions tests/outputs/correct_png_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
| Office 365 Commercial seat growth (y/y) | 14% | 12% | 11% | 11% | 10% |
| Microsoft 365 Consumer subscribers (in millions) | 65.1 | 67.7 | 70.8 | 74.9 | 76.7 |
| Dynamics products and cloud services revenue growth (y/y) | 15% / 22% | 13% / 20% | 17% / 21% | 19% / 21% | 22% / 21% |
| LinkedIn revenue growth (y/y) | 17% / 21% | 10% / 14% | 8% / 11% | 6% / 8% | 8% |

Growth rates include non-GAAP CC growth (GAAP % / CC %).
| LinkedIn revenue growth (y/y) | 17% / 21% | 10% / 14% | 8% / 11% | 6% / 8% | 8% |
6 changes: 4 additions & 2 deletions tests/outputs/correct_pptx_output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@

• Chart 1 example


| Investor Metrics | FY23 Q1 | FY23 Q2 | FY23 Q3 | FY23 Q4 | FY24 Q1 |
|-----------------|---------|---------|---------|---------|---------|
|---|---|---|---|---|---|
| Office Commercial products and cloud services revenue growth (y/y) | 7% / 13% | 7% / 14% | 13% / 17% | 12% / 14% | 15% / 14% |
| Office Consumer products and cloud services revenue growth (y/y) | 7% / 11% | (2)% / 3% | 1% / 4% | 3% / 6% | 3% / 4% |
| Office 365 Commercial seat growth (y/y) | 14% | 12% | 11% | 11% | 10% |
| Microsoft 365 Consumer subscribers (in millions) | 65.1 | 67.7 | 70.8 | 74.9 | 76.7 |
| Dynamics products and cloud services revenue growth (y/y) | 15% / 22% | 13% / 20% | 17% / 21% | 19% / 21% | 22% / 21% |
| LinkedIn revenue growth (y/y) | 17% / 21% | 10% / 14% | 8% / 11% | 6% / 8% | 8% |


Growth rates include non-GAAP CC growth (GAAP % / CC %).
## Thanks
Thanks
2 changes: 1 addition & 1 deletion tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def test_pdf_sync_parse(self):
# extract
markdown_list, elapsed_time = self.ap.parse(file_path=working_file)
markdown = "\n".join(markdown_list)

print(markdown)
self.assertFalse(markdown.startswith("Error:"), markdown)
correct_output = get_ground_truth(correct_output_file)
percentage = compare_markdown(markdown, correct_output)
Expand Down