real-ladybug 0.0.1.dev1__cp312-cp312-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of real-ladybug might be problematic. Click here for more details.

Files changed (114) hide show
  1. real_ladybug/__init__.py +83 -0
  2. real_ladybug/_lbug.cp312-win_amd64.pyd +0 -0
  3. real_ladybug/_lbug.exp +0 -0
  4. real_ladybug/_lbug.lib +0 -0
  5. real_ladybug/async_connection.py +226 -0
  6. real_ladybug/connection.py +323 -0
  7. real_ladybug/constants.py +7 -0
  8. real_ladybug/database.py +307 -0
  9. real_ladybug/prepared_statement.py +51 -0
  10. real_ladybug/py.typed +0 -0
  11. real_ladybug/query_result.py +511 -0
  12. real_ladybug/torch_geometric_feature_store.py +185 -0
  13. real_ladybug/torch_geometric_graph_store.py +131 -0
  14. real_ladybug/torch_geometric_result_converter.py +282 -0
  15. real_ladybug/types.py +39 -0
  16. real_ladybug-0.0.1.dev1.dist-info/METADATA +88 -0
  17. real_ladybug-0.0.1.dev1.dist-info/RECORD +114 -0
  18. real_ladybug-0.0.1.dev1.dist-info/WHEEL +5 -0
  19. real_ladybug-0.0.1.dev1.dist-info/licenses/LICENSE +21 -0
  20. real_ladybug-0.0.1.dev1.dist-info/top_level.txt +3 -0
  21. real_ladybug-0.0.1.dev1.dist-info/zip-safe +1 -0
  22. real_ladybug-source/scripts/antlr4/hash.py +2 -0
  23. real_ladybug-source/scripts/antlr4/keywordhandler.py +47 -0
  24. real_ladybug-source/scripts/collect-extensions.py +68 -0
  25. real_ladybug-source/scripts/collect-single-file-header.py +126 -0
  26. real_ladybug-source/scripts/export-dbs.py +101 -0
  27. real_ladybug-source/scripts/export-import-test.py +345 -0
  28. real_ladybug-source/scripts/extension/purge-beta.py +34 -0
  29. real_ladybug-source/scripts/generate-cpp-docs/collect_files.py +122 -0
  30. real_ladybug-source/scripts/generate-tinysnb.py +34 -0
  31. real_ladybug-source/scripts/get-clangd-diagnostics.py +233 -0
  32. real_ladybug-source/scripts/migrate-lbug-db.py +308 -0
  33. real_ladybug-source/scripts/multiplatform-test-helper/collect-results.py +71 -0
  34. real_ladybug-source/scripts/multiplatform-test-helper/notify-discord.py +68 -0
  35. real_ladybug-source/scripts/pip-package/package_tar.py +90 -0
  36. real_ladybug-source/scripts/pip-package/setup.py +130 -0
  37. real_ladybug-source/scripts/run-clang-format.py +408 -0
  38. real_ladybug-source/scripts/setup-extension-repo.py +67 -0
  39. real_ladybug-source/scripts/test-simsimd-dispatch.py +45 -0
  40. real_ladybug-source/scripts/update-nightly-build-version.py +81 -0
  41. real_ladybug-source/third_party/brotli/scripts/dictionary/step-01-download-rfc.py +16 -0
  42. real_ladybug-source/third_party/brotli/scripts/dictionary/step-02-rfc-to-bin.py +34 -0
  43. real_ladybug-source/third_party/brotli/scripts/dictionary/step-03-validate-bin.py +35 -0
  44. real_ladybug-source/third_party/brotli/scripts/dictionary/step-04-generate-java-literals.py +85 -0
  45. real_ladybug-source/third_party/pybind11/tools/codespell_ignore_lines_from_errors.py +35 -0
  46. real_ladybug-source/third_party/pybind11/tools/libsize.py +36 -0
  47. real_ladybug-source/third_party/pybind11/tools/make_changelog.py +63 -0
  48. real_ladybug-source/tools/python_api/build/real_ladybug/__init__.py +83 -0
  49. real_ladybug-source/tools/python_api/build/real_ladybug/async_connection.py +226 -0
  50. real_ladybug-source/tools/python_api/build/real_ladybug/connection.py +323 -0
  51. real_ladybug-source/tools/python_api/build/real_ladybug/constants.py +7 -0
  52. real_ladybug-source/tools/python_api/build/real_ladybug/database.py +307 -0
  53. real_ladybug-source/tools/python_api/build/real_ladybug/prepared_statement.py +51 -0
  54. real_ladybug-source/tools/python_api/build/real_ladybug/py.typed +0 -0
  55. real_ladybug-source/tools/python_api/build/real_ladybug/query_result.py +511 -0
  56. real_ladybug-source/tools/python_api/build/real_ladybug/torch_geometric_feature_store.py +185 -0
  57. real_ladybug-source/tools/python_api/build/real_ladybug/torch_geometric_graph_store.py +131 -0
  58. real_ladybug-source/tools/python_api/build/real_ladybug/torch_geometric_result_converter.py +282 -0
  59. real_ladybug-source/tools/python_api/build/real_ladybug/types.py +39 -0
  60. real_ladybug-source/tools/python_api/src_py/__init__.py +83 -0
  61. real_ladybug-source/tools/python_api/src_py/async_connection.py +226 -0
  62. real_ladybug-source/tools/python_api/src_py/connection.py +323 -0
  63. real_ladybug-source/tools/python_api/src_py/constants.py +7 -0
  64. real_ladybug-source/tools/python_api/src_py/database.py +307 -0
  65. real_ladybug-source/tools/python_api/src_py/prepared_statement.py +51 -0
  66. real_ladybug-source/tools/python_api/src_py/py.typed +0 -0
  67. real_ladybug-source/tools/python_api/src_py/query_result.py +511 -0
  68. real_ladybug-source/tools/python_api/src_py/torch_geometric_feature_store.py +185 -0
  69. real_ladybug-source/tools/python_api/src_py/torch_geometric_graph_store.py +131 -0
  70. real_ladybug-source/tools/python_api/src_py/torch_geometric_result_converter.py +282 -0
  71. real_ladybug-source/tools/python_api/src_py/types.py +39 -0
  72. real_ladybug-source/tools/python_api/test/conftest.py +230 -0
  73. real_ladybug-source/tools/python_api/test/disabled_test_extension.py +73 -0
  74. real_ladybug-source/tools/python_api/test/ground_truth.py +430 -0
  75. real_ladybug-source/tools/python_api/test/test_arrow.py +694 -0
  76. real_ladybug-source/tools/python_api/test/test_async_connection.py +159 -0
  77. real_ladybug-source/tools/python_api/test/test_blob_parameter.py +145 -0
  78. real_ladybug-source/tools/python_api/test/test_connection.py +49 -0
  79. real_ladybug-source/tools/python_api/test/test_database.py +234 -0
  80. real_ladybug-source/tools/python_api/test/test_datatype.py +372 -0
  81. real_ladybug-source/tools/python_api/test/test_df.py +564 -0
  82. real_ladybug-source/tools/python_api/test/test_dict.py +112 -0
  83. real_ladybug-source/tools/python_api/test/test_exception.py +54 -0
  84. real_ladybug-source/tools/python_api/test/test_fsm.py +227 -0
  85. real_ladybug-source/tools/python_api/test/test_get_header.py +49 -0
  86. real_ladybug-source/tools/python_api/test/test_helper.py +8 -0
  87. real_ladybug-source/tools/python_api/test/test_issue.py +147 -0
  88. real_ladybug-source/tools/python_api/test/test_iteration.py +96 -0
  89. real_ladybug-source/tools/python_api/test/test_networkx.py +437 -0
  90. real_ladybug-source/tools/python_api/test/test_parameter.py +340 -0
  91. real_ladybug-source/tools/python_api/test/test_prepared_statement.py +117 -0
  92. real_ladybug-source/tools/python_api/test/test_query_result.py +54 -0
  93. real_ladybug-source/tools/python_api/test/test_query_result_close.py +44 -0
  94. real_ladybug-source/tools/python_api/test/test_scan_pandas.py +676 -0
  95. real_ladybug-source/tools/python_api/test/test_scan_pandas_pyarrow.py +714 -0
  96. real_ladybug-source/tools/python_api/test/test_scan_polars.py +165 -0
  97. real_ladybug-source/tools/python_api/test/test_scan_pyarrow.py +167 -0
  98. real_ladybug-source/tools/python_api/test/test_timeout.py +11 -0
  99. real_ladybug-source/tools/python_api/test/test_torch_geometric.py +640 -0
  100. real_ladybug-source/tools/python_api/test/test_torch_geometric_remote_backend.py +111 -0
  101. real_ladybug-source/tools/python_api/test/test_udf.py +207 -0
  102. real_ladybug-source/tools/python_api/test/test_version.py +6 -0
  103. real_ladybug-source/tools/python_api/test/test_wal.py +80 -0
  104. real_ladybug-source/tools/python_api/test/type_aliases.py +10 -0
  105. real_ladybug-source/tools/rust_api/update_version.py +47 -0
  106. real_ladybug-source/tools/shell/test/conftest.py +218 -0
  107. real_ladybug-source/tools/shell/test/test_helper.py +60 -0
  108. real_ladybug-source/tools/shell/test/test_shell_basics.py +325 -0
  109. real_ladybug-source/tools/shell/test/test_shell_commands.py +656 -0
  110. real_ladybug-source/tools/shell/test/test_shell_control_edit.py +438 -0
  111. real_ladybug-source/tools/shell/test/test_shell_control_search.py +468 -0
  112. real_ladybug-source/tools/shell/test/test_shell_esc_edit.py +232 -0
  113. real_ladybug-source/tools/shell/test/test_shell_esc_search.py +162 -0
  114. real_ladybug-source/tools/shell/test/test_shell_flags.py +645 -0
@@ -0,0 +1,73 @@
1
+ from __future__ import annotations
2
+
3
+ import hashlib
4
+ import os
5
+ import platform
6
+ import urllib.request
7
+ from pathlib import Path
8
+
9
+ import pytest
10
+ from type_aliases import ConnDB
11
+
12
+ EXTENSION_CMAKE_PREFIX = 'add_definitions(-DLBUG_EXTENSION_VERSION="'
13
+
14
+
15
+ @pytest.fixture
16
+ def extension_extension_dir_prefix() -> str:
17
+ system = platform.system()
18
+ extension_extension_dir_prefix = None
19
+ if system == "Windows":
20
+ extension_extension_dir_prefix = "win_amd64"
21
+ elif system == "Linux":
22
+ extension_extension_dir_prefix = (
23
+ "linux_arm64" if platform.machine() == "aarch64" or platform.machine() == "arm64" else "linux_amd64"
24
+ )
25
+ elif system == "Darwin":
26
+ extension_extension_dir_prefix = "osx_arm64" if platform.machine() == "arm64" else "osx_amd64"
27
+ return extension_extension_dir_prefix
28
+
29
+
30
+ def test_extension_install_httpfs(conn_db_readwrite: ConnDB, tmpdir: str, extension_extension_dir_prefix: str) -> None:
31
+ current_dir = Path(__file__).resolve().parent
32
+ cmake_list_file = Path(current_dir).parent.parent.parent / "CMakeLists.txt"
33
+ extension_version = None
34
+ with Path.open(cmake_list_file) as f:
35
+ for line in f:
36
+ if EXTENSION_CMAKE_PREFIX in line:
37
+ extension_version = line.split(EXTENSION_CMAKE_PREFIX)[1].split('"')[0]
38
+ break
39
+ userdir = os.path.expanduser("~") # noqa: PTH111
40
+ extension_path = (
41
+ Path(userdir)
42
+ .joinpath(
43
+ ".lbug",
44
+ "extension",
45
+ extension_version,
46
+ extension_extension_dir_prefix,
47
+ "httpfs",
48
+ "libhttpfs.lbug_extension",
49
+ )
50
+ .resolve()
51
+ )
52
+ opener = urllib.request.build_opener()
53
+ opener.addheaders = [("User-agent", "Lbug Test Suite")]
54
+ urllib.request.install_opener(opener)
55
+ download_url = f"http://extension.ladybugdb.com/v{extension_version}/{extension_extension_dir_prefix}/httpfs/libhttpfs.lbug_extension"
56
+ temp_path = Path(tmpdir) / "libhttpfs.lbug_extension"
57
+ urllib.request.urlretrieve(download_url, temp_path)
58
+
59
+ conn, _ = conn_db_readwrite
60
+ conn.execute("INSTALL hTtpFs")
61
+
62
+ assert Path.exists(extension_path)
63
+
64
+ extension_size = Path(extension_path).stat().st_size
65
+ expected_size = Path(temp_path).stat().st_size
66
+
67
+ with Path.open(extension_path, "rb") as f:
68
+ extension_md5 = hashlib.md5(f.read()).hexdigest()
69
+ with Path.open(temp_path, "rb") as f:
70
+ expected_md5 = hashlib.md5(f.read()).hexdigest()
71
+
72
+ assert extension_size == expected_size
73
+ assert extension_md5 == expected_md5
@@ -0,0 +1,430 @@
1
+ from datetime import date, datetime, timedelta
2
+ from uuid import UUID
3
+ from real_ladybug.constants import ID, LABEL
4
+
5
+ TINY_SNB_PERSONS_GROUND_TRUTH = {
6
+ 0: {
7
+ "ID": 0,
8
+ "fName": "Alice",
9
+ "gender": 1,
10
+ "isStudent": True,
11
+ "isWorker": False,
12
+ "age": 35,
13
+ "eyeSight": 5.0,
14
+ "birthdate": date(1900, 1, 1),
15
+ "registerTime": datetime(2011, 8, 20, 11, 25, 30),
16
+ "lastJobDuration": timedelta(days=1082, seconds=46920),
17
+ "workedHours": [10, 5],
18
+ "usedNames": ["Aida"],
19
+ "courseScoresPerTerm": [[10, 8], [6, 7, 8]],
20
+ "grades": [96, 54, 86, 92],
21
+ "height": 1.731,
22
+ "u": UUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11"),
23
+ LABEL: "person",
24
+ ID: {"offset": 0, "table": 0},
25
+ },
26
+ 2: {
27
+ "ID": 2,
28
+ "fName": "Bob",
29
+ "gender": 2,
30
+ "isStudent": True,
31
+ "isWorker": False,
32
+ "age": 30,
33
+ "eyeSight": 5.1,
34
+ "birthdate": date(1900, 1, 1),
35
+ "registerTime": datetime(2008, 11, 3, 15, 25, 30, 526),
36
+ "lastJobDuration": timedelta(days=3750, seconds=46800, microseconds=24),
37
+ "workedHours": [12, 8],
38
+ "usedNames": ["Bobby"],
39
+ "courseScoresPerTerm": [[8, 9], [9, 10]],
40
+ "grades": [98, 42, 93, 88],
41
+ "height": 0.99,
42
+ "u": UUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a12"),
43
+ LABEL: "person",
44
+ ID: {"offset": 1, "table": 0},
45
+ },
46
+ 3: {
47
+ "ID": 3,
48
+ "fName": "Carol",
49
+ "gender": 1,
50
+ "isStudent": False,
51
+ "isWorker": True,
52
+ "age": 45,
53
+ "eyeSight": 5.0,
54
+ "birthdate": date(1940, 6, 22),
55
+ "registerTime": datetime(1911, 8, 20, 2, 32, 21),
56
+ "lastJobDuration": timedelta(days=2, seconds=1451),
57
+ "workedHours": [4, 5],
58
+ "usedNames": ["Carmen", "Fred"],
59
+ "courseScoresPerTerm": [[8, 10]],
60
+ "grades": [91, 75, 21, 95],
61
+ "height": 1.00,
62
+ "u": UUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a13"),
63
+ LABEL: "person",
64
+ ID: {"offset": 2, "table": 0},
65
+ },
66
+ 5: {
67
+ "ID": 5,
68
+ "fName": "Dan",
69
+ "gender": 2,
70
+ "isStudent": False,
71
+ "isWorker": True,
72
+ "age": 20,
73
+ "eyeSight": 4.8,
74
+ "birthdate": date(1950, 7, 23),
75
+ "registerTime": datetime(2031, 11, 30, 12, 25, 30),
76
+ "lastJobDuration": timedelta(days=3750, seconds=46800, microseconds=24),
77
+ "workedHours": [1, 9],
78
+ "usedNames": ["Wolfeschlegelstein", "Daniel"],
79
+ "courseScoresPerTerm": [[7, 4], [8, 8], [9]],
80
+ "grades": [76, 88, 99, 89],
81
+ "height": 1.30,
82
+ "u": UUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a14"),
83
+ LABEL: "person",
84
+ ID: {"offset": 3, "table": 0},
85
+ },
86
+ 7: {
87
+ "ID": 7,
88
+ "fName": "Elizabeth",
89
+ "gender": 1,
90
+ "isStudent": False,
91
+ "isWorker": True,
92
+ "age": 20,
93
+ "eyeSight": 4.7,
94
+ "birthdate": date(1980, 10, 26),
95
+ "registerTime": datetime(1976, 12, 23, 11, 21, 42),
96
+ "lastJobDuration": timedelta(days=2, seconds=1451),
97
+ "workedHours": [2],
98
+ "usedNames": ["Ein"],
99
+ "courseScoresPerTerm": [[6], [7], [8]],
100
+ "grades": [96, 59, 65, 88],
101
+ "height": 1.463,
102
+ "u": UUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a15"),
103
+ LABEL: "person",
104
+ ID: {"offset": 4, "table": 0},
105
+ },
106
+ 8: {
107
+ "ID": 8,
108
+ "fName": "Farooq",
109
+ "gender": 2,
110
+ "isStudent": True,
111
+ "isWorker": False,
112
+ "age": 25,
113
+ "eyeSight": 4.5,
114
+ "birthdate": date(1980, 10, 26),
115
+ "registerTime": datetime(1972, 7, 31, 13, 22, 30, 678559),
116
+ "lastJobDuration": timedelta(seconds=1080, microseconds=24000),
117
+ "workedHours": [3, 4, 5, 6, 7],
118
+ "usedNames": ["Fesdwe"],
119
+ "courseScoresPerTerm": [[8]],
120
+ "grades": [80, 78, 34, 83],
121
+ "height": 1.51,
122
+ "u": UUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a16"),
123
+ LABEL: "person",
124
+ ID: {"offset": 5, "table": 0},
125
+ },
126
+ 9: {
127
+ "ID": 9,
128
+ "fName": "Greg",
129
+ "gender": 2,
130
+ "isStudent": False,
131
+ "isWorker": False,
132
+ "age": 40,
133
+ "eyeSight": 4.9,
134
+ "birthdate": date(1980, 10, 26),
135
+ "registerTime": datetime(1976, 12, 23, 4, 41, 42),
136
+ "lastJobDuration": timedelta(days=3750, seconds=46800, microseconds=24),
137
+ "workedHours": [1],
138
+ "usedNames": ["Grad"],
139
+ "courseScoresPerTerm": [[10]],
140
+ "grades": [43, 83, 67, 43],
141
+ "height": 1.6,
142
+ "u": UUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a17"),
143
+ LABEL: "person",
144
+ ID: {"offset": 6, "table": 0},
145
+ },
146
+ 10: {
147
+ "ID": 10,
148
+ "fName": "Hubert Blaine Wolfeschlegelsteinhausenbergerdorff",
149
+ "gender": 2,
150
+ "isStudent": False,
151
+ "isWorker": True,
152
+ "age": 83,
153
+ "eyeSight": 4.9,
154
+ "birthdate": date(1990, 11, 27),
155
+ "registerTime": datetime(2023, 2, 21, 13, 25, 30),
156
+ "lastJobDuration": timedelta(days=1082, seconds=46920),
157
+ "workedHours": [10, 11, 12, 3, 4, 5, 6, 7],
158
+ "usedNames": ["Ad", "De", "Hi", "Kye", "Orlan"],
159
+ "courseScoresPerTerm": [[7], [10], [6, 7]],
160
+ "grades": [77, 64, 100, 54],
161
+ "height": 1.323,
162
+ "u": UUID("a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a18"),
163
+ LABEL: "person",
164
+ ID: {"offset": 7, "table": 0},
165
+ },
166
+ }
167
+
168
+ TINY_SNB_ORGANISATIONS_GROUND_TRUTH = {
169
+ 1: {
170
+ "ID": 1,
171
+ "name": "ABFsUni",
172
+ "orgCode": 325,
173
+ "mark": 3.7,
174
+ "score": -2,
175
+ "history": "10 years 5 months 13 hours 24 us",
176
+ "licenseValidInterval": timedelta(days=1085),
177
+ "rating": 1.0,
178
+ "state": {"revenue": 138, "location": ["toronto", "montr,eal"], "stock": {"price": [96, 56], "volume": 1000}},
179
+ "info": 3.12,
180
+ LABEL: "organisation",
181
+ ID: {"offset": 0, "table": 1},
182
+ },
183
+ 4: {
184
+ "ID": 4,
185
+ "name": "CsWork",
186
+ "orgCode": 934,
187
+ "mark": 4.1,
188
+ "score": -100,
189
+ "history": "2 years 4 days 10 hours",
190
+ "licenseValidInterval": timedelta(days=9414),
191
+ "rating": 0.78,
192
+ "state": {
193
+ "revenue": 152,
194
+ "location": ['"vanco,uver north area"'],
195
+ "stock": {"price": [15, 78, 671], "volume": 432},
196
+ },
197
+ "info": "abcd",
198
+ LABEL: "organisation",
199
+ ID: {"offset": 1, "table": 1},
200
+ },
201
+ 6: {
202
+ "ID": 6,
203
+ "name": "DEsWork",
204
+ "orgCode": 824,
205
+ "mark": 4.1,
206
+ "score": 7,
207
+ "history": "2 years 4 hours 22 us 34 minutes",
208
+ "licenseValidInterval": timedelta(days=3, seconds=36000, microseconds=100000),
209
+ "rating": 0.52,
210
+ "state": {
211
+ "revenue": 558,
212
+ "location": ["'very long city name'", "'new york'"],
213
+ "stock": {"price": [22], "volume": 99},
214
+ },
215
+ "info": date(2023, 12, 15),
216
+ LABEL: "organisation",
217
+ ID: {"offset": 2, "table": 1},
218
+ },
219
+ }
220
+
221
+ TINY_SNB_KNOWS_GROUND_TRUTH = {
222
+ 0: [2, 3, 5],
223
+ 2: [0, 3, 5],
224
+ 3: [0, 2, 5],
225
+ 5: [0, 2, 3],
226
+ 7: [8, 9],
227
+ }
228
+
229
+ TINY_SNB_KNOWS_PROPERTIES_GROUND_TRUTH = {
230
+ (0, 2): {
231
+ "date": date(2021, 6, 30),
232
+ "meetTime": datetime(1986, 10, 21, 21, 8, 31, 521000),
233
+ "validInterval": timedelta(days=3750, seconds=46800, microseconds=24),
234
+ "comments": ["rnme", "m8sihsdnf2990nfiwf"],
235
+ "summary": {
236
+ "locations": ["'toronto'", "'waterloo'"],
237
+ "transfer": {"day": date(2021, 1, 2), "amount": [100, 200]},
238
+ },
239
+ "notes": 1,
240
+ "someMap": {"a": "b"},
241
+ },
242
+ (0, 3): {
243
+ "date": date(2021, 6, 30),
244
+ "meetTime": datetime(1946, 8, 25, 19, 7, 22),
245
+ "validInterval": timedelta(days=7232),
246
+ "comments": ["njnojppo9u0jkmf", "fjiojioh9h9h89hph"],
247
+ "summary": {"locations": None, "transfer": None},
248
+ "notes": date(2020, 10, 10),
249
+ "someMap": {"c": "d", "e": "f", "1": "2"},
250
+ },
251
+ (0, 5): {
252
+ "date": date(2021, 6, 30),
253
+ "meetTime": datetime(2012, 12, 11, 20, 7, 22),
254
+ "validInterval": timedelta(days=10),
255
+ "comments": ["ioji232", "jifhe8w99u43434"],
256
+ "summary": {"locations": ["'shanghai'"], "transfer": {"day": date(1990, 9, 10), "amount": [10]}},
257
+ "notes": "nice weather",
258
+ "someMap": None,
259
+ },
260
+ (2, 0): {
261
+ "date": date(2021, 6, 30),
262
+ "meetTime": datetime(1946, 8, 25, 19, 7, 22),
263
+ "validInterval": timedelta(days=3750, seconds=46800, microseconds=24),
264
+ "comments": ["2huh9y89fsfw23", "23nsihufhw723"],
265
+ "summary": {"locations": ["'paris'"], "transfer": {"day": date(2000, 1, 1), "amount": [20, 5000]}},
266
+ "notes": 4,
267
+ "someMap": None,
268
+ },
269
+ (2, 3): {
270
+ "date": date(1950, 5, 14),
271
+ "meetTime": datetime(1946, 8, 25, 19, 7, 22),
272
+ "validInterval": timedelta(seconds=1380),
273
+ "comments": ["fwehu9h9832wewew", "23u9h989sdfsss"],
274
+ "summary": {"locations": ["'paris'"], "transfer": {"day": date(2011, 5, 1), "amount": [2000, 5340]}},
275
+ "notes": "cool stuff found",
276
+ "someMap": None,
277
+ },
278
+ (2, 5): {
279
+ "date": date(1950, 5, 14),
280
+ "meetTime": datetime(2012, 12, 11, 20, 7, 22),
281
+ "validInterval": timedelta(days=7232),
282
+ "comments": ["fwh9y81232uisuiehuf", "ewnuihxy8dyf232"],
283
+ "summary": {"locations": ["'vancouver'"], "transfer": {"day": date(2020, 1, 1), "amount": [120, 50]}},
284
+ "notes": "matthew perry",
285
+ "someMap": None,
286
+ },
287
+ (3, 0): {
288
+ "date": date(2021, 6, 30),
289
+ "meetTime": datetime(2002, 7, 31, 11, 42, 53, 123420),
290
+ "validInterval": timedelta(days=41, seconds=21600),
291
+ "comments": ["fnioh8323aeweae34d", "osd89e2ejshuih12"],
292
+ "summary": {
293
+ "locations": ["'london'", "'toronto'"],
294
+ "transfer": {"day": date(2012, 11, 21), "amount": [223, 5230]},
295
+ },
296
+ "notes": 10,
297
+ "someMap": None,
298
+ },
299
+ (3, 2): {
300
+ "date": date(1950, 5, 14),
301
+ "meetTime": datetime(2007, 2, 12, 12, 11, 42, 123000),
302
+ "validInterval": timedelta(seconds=1680, microseconds=30000),
303
+ "comments": ["fwh983-sdjisdfji", "ioh89y32r2huir"],
304
+ "summary": {
305
+ "locations": ["'paris'", "'beijing'"],
306
+ "transfer": {"day": date(2011, 3, 11), "amount": [2323, 50]},
307
+ },
308
+ "notes": 1,
309
+ "someMap": None,
310
+ },
311
+ (3, 5): {
312
+ "date": date(2000, 1, 1),
313
+ "meetTime": datetime(1998, 10, 2, 13, 9, 22, 423000),
314
+ "validInterval": timedelta(microseconds=300000),
315
+ "comments": ["psh989823oaaioe", "nuiuah1nosndfisf"],
316
+ "summary": {"locations": [], "transfer": {"day": date(1980, 11, 21), "amount": [20, 5]}},
317
+ "notes": 2,
318
+ "someMap": None,
319
+ },
320
+ (5, 0): {
321
+ "date": date(2021, 6, 30),
322
+ "meetTime": datetime(1936, 11, 2, 11, 2, 1),
323
+ "validInterval": timedelta(microseconds=480),
324
+ "comments": ["fwewe"],
325
+ "summary": {
326
+ "locations": ["'shanghai'", "'nanjing'"],
327
+ "transfer": {"day": date(1998, 11, 12), "amount": [22, 53240]},
328
+ },
329
+ "notes": 15,
330
+ "someMap": None,
331
+ },
332
+ (5, 2): {
333
+ "date": date(1950, 5, 14),
334
+ "meetTime": datetime(1982, 11, 11, 13, 12, 5, 123000),
335
+ "validInterval": timedelta(seconds=1380),
336
+ "comments": ["fewh9182912e3", "h9y8y89soidfsf", "nuhudf78w78efw", "hioshe0f9023sdsd"],
337
+ "summary": {"locations": ["'paris'"], "transfer": {"day": date(2000, 1, 1), "amount": [20, 5000]}},
338
+ "notes": "happy new year",
339
+ "someMap": None,
340
+ },
341
+ (5, 3): {
342
+ "date": date(2000, 1, 1),
343
+ "meetTime": datetime(1999, 4, 21, 15, 12, 11, 420000),
344
+ "validInterval": timedelta(days=2, microseconds=52000),
345
+ "comments": ["23h9sdslnfowhu2932", "shuhf98922323sf"],
346
+ "summary": {"locations": ["'paris'"], "transfer": {"day": date(2000, 1, 1), "amount": [20, 5000]}},
347
+ "notes": 4,
348
+ "someMap": None,
349
+ },
350
+ (7, 8): {
351
+ "date": date(1905, 12, 12),
352
+ "meetTime": datetime(2025, 1, 1, 11, 22, 33, 520000),
353
+ "validInterval": timedelta(seconds=2878),
354
+ "comments": ["ahu2333333333333", "12weeeeeeeeeeeeeeeeee"],
355
+ "summary": {
356
+ "locations": ["'toronto'", "'thisisalongcityname'"],
357
+ "transfer": {"day": date(1930, 11, 22), "amount": [18, 323]},
358
+ },
359
+ "notes": 8,
360
+ "someMap": None,
361
+ },
362
+ (7, 9): {
363
+ "date": date(1905, 12, 12),
364
+ "meetTime": datetime(2020, 3, 1, 12, 11, 41, 655200),
365
+ "validInterval": timedelta(seconds=2878),
366
+ "comments": ["peweeeeeeeeeeeeeeeee", "kowje9w0eweeeeeeeee"],
367
+ "summary": {
368
+ "locations": ["'waterloo'"],
369
+ "transfer": {"day": date(2000, 1, 1), "amount": [1000, 5000]},
370
+ },
371
+ "notes": 10,
372
+ "someMap": None,
373
+ },
374
+ }
375
+
376
+ TINY_SNB_WORKS_AT_GROUND_TRUTH = {
377
+ 3: [4],
378
+ 5: [6],
379
+ 7: [6],
380
+ }
381
+
382
+ TINY_SNB_WORKS_AT_PROPERTIES_GROUND_TRUTH = {(3, 4): {"year": 2015}, (5, 6): {"year": 2010}, (7, 6): {"year": 2015}}
383
+
384
+ TENSOR_LIST_GROUND_TRUTH = {
385
+ 0: {
386
+ "boolTensor": [True, False],
387
+ "doubleTensor": [[0.1, 0.2], [0.3, 0.4]],
388
+ "intTensor": [[[1, 2], [3, 4]], [[5, 6], [7, 8]]],
389
+ },
390
+ 3: {
391
+ "boolTensor": [True, False],
392
+ "doubleTensor": [[0.1, 0.2], [0.3, 0.4]],
393
+ "intTensor": [[[3, 4], [5, 6]], [[7, 8], [9, 10]]],
394
+ },
395
+ 4: {
396
+ "boolTensor": [False, True],
397
+ "doubleTensor": [[0.4, 0.8], [0.7, 0.6]],
398
+ "intTensor": [[[5, 6], [7, 8]], [[9, 10], [11, 12]]],
399
+ },
400
+ 5: {
401
+ "boolTensor": [True, True],
402
+ "doubleTensor": [[0.4, 0.9], [0.5, 0.2]],
403
+ "intTensor": [[[7, 8], [9, 10]], [[11, 12], [13, 14]]],
404
+ },
405
+ 6: {
406
+ "boolTensor": [False, True],
407
+ "doubleTensor": [[0.2, 0.4], [0.5, 0.1]],
408
+ "intTensor": [[[9, 10], [11, 12]], [[13, 14], [15, 16]]],
409
+ },
410
+ 8: {
411
+ "boolTensor": [False, True],
412
+ "doubleTensor": [[0.6, 0.4], [0.6, 0.1]],
413
+ "intTensor": [[[11, 12], [13, 14]], [[15, 16], [17, 18]]],
414
+ },
415
+ }
416
+
417
+ PERSONLONGSTRING_GROUND_TRUTH = {
418
+ "AAAAAAAAAAAAAAAAAAAA": {
419
+ "name": "AAAAAAAAAAAAAAAAAAAA",
420
+ "spouse": "Bob",
421
+ },
422
+ "Bob": {
423
+ "name": "Bob",
424
+ "spouse": "AAAAAAAAAAAAAAAAAAAA",
425
+ },
426
+ }
427
+
428
+ PERSONLONGSTRING_KNOWS_GROUND_TRUTH = {
429
+ "AAAAAAAAAAAAAAAAAAAA": ["Bob"],
430
+ }