@terpjs/spec 0.14.0

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.
Files changed (392) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +417 -0
  3. package/VERSION +1 -0
  4. package/app-check-report.schema.json +122 -0
  5. package/assurance-profile.schema.json +70 -0
  6. package/catalog/backend/alembic_downgrades_not_empty.json +22 -0
  7. package/catalog/backend/base_query_not_overridden.json +27 -0
  8. package/catalog/backend/canonical_module_shape.json +22 -0
  9. package/catalog/backend/datetime_columns_are_timezone_aware.json +23 -0
  10. package/catalog/backend/escape_hatch_budget.json +21 -0
  11. package/catalog/backend/events_reference_catalog.json +27 -0
  12. package/catalog/backend/input_schemas_exclude_managed_columns.json +27 -0
  13. package/catalog/backend/input_str_fields_have_max_length.json +22 -0
  14. package/catalog/backend/jobs_reference_catalog.json +27 -0
  15. package/catalog/backend/list_routes_paginate.json +32 -0
  16. package/catalog/backend/modules_declare_policy.json +26 -0
  17. package/catalog/backend/mutations_emit_audit.json +26 -0
  18. package/catalog/backend/mutations_require_write_role.json +32 -0
  19. package/catalog/backend/no_adhoc_background_runtime.json +22 -0
  20. package/catalog/backend/no_adhoc_config_decrypt.json +27 -0
  21. package/catalog/backend/no_adhoc_logging_config.json +22 -0
  22. package/catalog/backend/no_adhoc_middleware.json +27 -0
  23. package/catalog/backend/no_adhoc_permission_literals.json +27 -0
  24. package/catalog/backend/no_app_instantiation.json +22 -0
  25. package/catalog/backend/no_blocking_sleep.json +22 -0
  26. package/catalog/backend/no_cross_module_imports.json +21 -0
  27. package/catalog/backend/no_dependency_overrides.json +27 -0
  28. package/catalog/backend/no_destructive_migrations.json +22 -0
  29. package/catalog/backend/no_dynamic_sql.json +22 -0
  30. package/catalog/backend/no_empty_tests.json +22 -0
  31. package/catalog/backend/no_eval_or_exec.json +22 -0
  32. package/catalog/backend/no_hardcoded_credentials.json +21 -0
  33. package/catalog/backend/no_internal_imports.json +22 -0
  34. package/catalog/backend/no_manual_actor_stamping.json +27 -0
  35. package/catalog/backend/no_manual_ownership_checks.json +32 -0
  36. package/catalog/backend/no_manual_scope_filtering.json +27 -0
  37. package/catalog/backend/no_manual_table_schema.json +22 -0
  38. package/catalog/backend/no_manual_version_assignment.json +22 -0
  39. package/catalog/backend/no_mutable_default_args.json +22 -0
  40. package/catalog/backend/no_naive_datetime.json +22 -0
  41. package/catalog/backend/no_oversized_python_files.json +22 -0
  42. package/catalog/backend/no_print.json +22 -0
  43. package/catalog/backend/no_raw_app_routes.json +26 -0
  44. package/catalog/backend/no_raw_connection_access.json +27 -0
  45. package/catalog/backend/no_raw_file_references.json +27 -0
  46. package/catalog/backend/no_raw_outbound_http.json +22 -0
  47. package/catalog/backend/no_raw_session_construction.json +22 -0
  48. package/catalog/backend/no_star_imports.json +22 -0
  49. package/catalog/backend/no_todo_fixme.json +22 -0
  50. package/catalog/backend/no_unique_columns_on_soft_delete_models.json +22 -0
  51. package/catalog/backend/offset_queries_declare_ordering.json +22 -0
  52. package/catalog/backend/path_id_params_are_uuid.json +22 -0
  53. package/catalog/backend/policy_refs_resolve.json +27 -0
  54. package/catalog/backend/public_modules_are_read_only.json +26 -0
  55. package/catalog/backend/reads_use_base_query.json +27 -0
  56. package/catalog/backend/response_model_not_table_model.json +27 -0
  57. package/catalog/backend/routes_declare_response_model.json +27 -0
  58. package/catalog/backend/safe_methods_are_read_only.json +31 -0
  59. package/catalog/backend/schemas_exclude_sensitive_fields.json +32 -0
  60. package/catalog/backend/session_imported_from_sqlmodel.json +22 -0
  61. package/catalog/backend/table_models_use_base_table.json +22 -0
  62. package/catalog/backend/tables_have_migrations.json +27 -0
  63. package/catalog/backend/tenant_scoped_models_use_scoped_service.json +22 -0
  64. package/catalog/backend/ungoverned_escape_hatch.json +21 -0
  65. package/catalog/backend/update_schemas_inherit_base_update_schema.json +32 -0
  66. package/catalog/frontend/escape-hatch.json +21 -0
  67. package/catalog/frontend/generated-client-only.json +26 -0
  68. package/catalog/frontend/layout-contract.json +26 -0
  69. package/catalog/frontend/no-cross-module-imports.json +21 -0
  70. package/catalog/frontend/no-deep-imports.json +25 -0
  71. package/catalog/frontend/no-dom-html-injection.json +22 -0
  72. package/catalog/frontend/no-eval.json +21 -0
  73. package/catalog/frontend/no-inline-styling.json +25 -0
  74. package/catalog/frontend/no-style-imports.json +24 -0
  75. package/catalog/frontend/no-unsafe-href.json +21 -0
  76. package/catalog/frontend/no-unsafe-target-blank.json +21 -0
  77. package/catalog/frontend/router-links.json +22 -0
  78. package/catalog/frontend/token-styled-elements.json +25 -0
  79. package/catalog/schema.json +95 -0
  80. package/corpus/PENDING.json +4 -0
  81. package/corpus/RESIDUALS.json +21 -0
  82. package/corpus/backend/alembic_downgrades_not_empty/compliant-01/modules/notes/migrations/versions/0001_change.py +6 -0
  83. package/corpus/backend/alembic_downgrades_not_empty/violation-01/modules/notes/migrations/versions/0001_change.py +6 -0
  84. package/corpus/backend/base_query_not_overridden/compliant-01/modules/notes/service.py +8 -0
  85. package/corpus/backend/base_query_not_overridden/compliant-02/modules/notes/service.py +8 -0
  86. package/corpus/backend/base_query_not_overridden/violation-01/modules/notes/service.py +8 -0
  87. package/corpus/backend/base_query_not_overridden/violation-02/expected-findings.json +7 -0
  88. package/corpus/backend/base_query_not_overridden/violation-02/modules/notes/service.py +8 -0
  89. package/corpus/backend/canonical_module_shape/compliant-01/modules/notes/models.py +6 -0
  90. package/corpus/backend/canonical_module_shape/compliant-01/modules/notes/module.py +7 -0
  91. package/corpus/backend/canonical_module_shape/compliant-01/modules/notes/router.py +3 -0
  92. package/corpus/backend/canonical_module_shape/compliant-01/modules/notes/schemas.py +10 -0
  93. package/corpus/backend/canonical_module_shape/compliant-01/modules/notes/service.py +5 -0
  94. package/corpus/backend/canonical_module_shape/violation-01/modules/notes/router.py +3 -0
  95. package/corpus/backend/datetime_columns_are_timezone_aware/compliant-01/modules/notes/models.py +12 -0
  96. package/corpus/backend/datetime_columns_are_timezone_aware/violation-01/modules/notes/models.py +12 -0
  97. package/corpus/backend/datetime_columns_are_timezone_aware/violation-02/modules/notes/models.py +13 -0
  98. package/corpus/backend/datetime_columns_are_timezone_aware/violation-03/modules/notes/models.py +15 -0
  99. package/corpus/backend/escape_hatch_budget/compliant-01/escape-hatch-budget.json +3 -0
  100. package/corpus/backend/escape_hatch_budget/compliant-01/modules/notes/service.py +2 -0
  101. package/corpus/backend/escape_hatch_budget/compliant-02/escape-hatch-budget.json +1 -0
  102. package/corpus/backend/escape_hatch_budget/compliant-02/modules/notes/service.py +4 -0
  103. package/corpus/backend/escape_hatch_budget/violation-01/escape-hatch-budget.json +1 -0
  104. package/corpus/backend/escape_hatch_budget/violation-01/modules/notes/service.py +2 -0
  105. package/corpus/backend/escape_hatch_budget/violation-02/escape-hatch-budget.json +3 -0
  106. package/corpus/backend/escape_hatch_budget/violation-02/modules/notes/service.py +4 -0
  107. package/corpus/backend/events_reference_catalog/compliant-01/modules/notes/module.py +9 -0
  108. package/corpus/backend/events_reference_catalog/violation-01/modules/notes/module.py +8 -0
  109. package/corpus/backend/input_schemas_exclude_managed_columns/compliant-01/modules/notes/schemas.py +6 -0
  110. package/corpus/backend/input_schemas_exclude_managed_columns/violation-01/expected-findings.json +7 -0
  111. package/corpus/backend/input_schemas_exclude_managed_columns/violation-01/modules/notes/schemas.py +9 -0
  112. package/corpus/backend/input_schemas_exclude_managed_columns/violation-02/expected-findings.json +12 -0
  113. package/corpus/backend/input_schemas_exclude_managed_columns/violation-02/modules/notes/router.py +14 -0
  114. package/corpus/backend/input_str_fields_have_max_length/compliant-01/modules/notes/schemas.py +4 -0
  115. package/corpus/backend/input_str_fields_have_max_length/violation-01/modules/notes/schemas.py +2 -0
  116. package/corpus/backend/jobs_reference_catalog/compliant-01/modules/notes/service.py +5 -0
  117. package/corpus/backend/jobs_reference_catalog/violation-01/modules/notes/service.py +2 -0
  118. package/corpus/backend/list_routes_paginate/compliant-01/modules/notes/router.py +6 -0
  119. package/corpus/backend/list_routes_paginate/violation-01/modules/notes/router.py +3 -0
  120. package/corpus/backend/modules_declare_policy/compliant-01/modules/notes/module.py +7 -0
  121. package/corpus/backend/modules_declare_policy/violation-01/modules/notes/module.py +6 -0
  122. package/corpus/backend/mutations_emit_audit/compliant-01/modules/notes/service.py +9 -0
  123. package/corpus/backend/mutations_emit_audit/violation-01/modules/notes/service.py +4 -0
  124. package/corpus/backend/mutations_require_write_role/compliant-01/modules/notes/module.py +7 -0
  125. package/corpus/backend/mutations_require_write_role/compliant-01/modules/notes/router.py +3 -0
  126. package/corpus/backend/mutations_require_write_role/compliant-02/modules/notes/module.py +7 -0
  127. package/corpus/backend/mutations_require_write_role/compliant-02/modules/notes/router.py +3 -0
  128. package/corpus/backend/mutations_require_write_role/violation-01/expected-findings.json +7 -0
  129. package/corpus/backend/mutations_require_write_role/violation-01/modules/notes/module.py +7 -0
  130. package/corpus/backend/mutations_require_write_role/violation-01/modules/notes/router.py +3 -0
  131. package/corpus/backend/mutations_require_write_role/violation-02/expected-findings.json +7 -0
  132. package/corpus/backend/mutations_require_write_role/violation-02/modules/notes/module.py +7 -0
  133. package/corpus/backend/mutations_require_write_role/violation-02/modules/notes/router.py +5 -0
  134. package/corpus/backend/mutations_require_write_role/violation-03/expected-findings.json +7 -0
  135. package/corpus/backend/mutations_require_write_role/violation-03/modules/notes/module.py +10 -0
  136. package/corpus/backend/mutations_require_write_role/violation-03/modules/notes/router.py +3 -0
  137. package/corpus/backend/no_adhoc_background_runtime/compliant-01/modules/notes/service.py +9 -0
  138. package/corpus/backend/no_adhoc_background_runtime/violation-01/modules/notes/service.py +5 -0
  139. package/corpus/backend/no_adhoc_background_runtime/violation-02/modules/notes/service.py +3 -0
  140. package/corpus/backend/no_adhoc_config_decrypt/compliant-01/modules/billing/service.py +2 -0
  141. package/corpus/backend/no_adhoc_config_decrypt/violation-01/modules/billing/service.py +2 -0
  142. package/corpus/backend/no_adhoc_logging_config/compliant-01/modules/notes/service.py +3 -0
  143. package/corpus/backend/no_adhoc_logging_config/violation-01/modules/notes/service.py +3 -0
  144. package/corpus/backend/no_adhoc_middleware/compliant-01/main.py +3 -0
  145. package/corpus/backend/no_adhoc_middleware/violation-01/main.py +4 -0
  146. package/corpus/backend/no_adhoc_middleware/violation-02/main.py +5 -0
  147. package/corpus/backend/no_adhoc_permission_literals/compliant-01/modules/notes/module.py +3 -0
  148. package/corpus/backend/no_adhoc_permission_literals/compliant-02/modules/notes/router.py +5 -0
  149. package/corpus/backend/no_adhoc_permission_literals/violation-01/expected-findings.json +7 -0
  150. package/corpus/backend/no_adhoc_permission_literals/violation-01/modules/notes/module.py +1 -0
  151. package/corpus/backend/no_adhoc_permission_literals/violation-02/expected-findings.json +7 -0
  152. package/corpus/backend/no_adhoc_permission_literals/violation-02/modules/notes/router.py +2 -0
  153. package/corpus/backend/no_adhoc_permission_literals/violation-03/expected-findings.json +12 -0
  154. package/corpus/backend/no_adhoc_permission_literals/violation-03/modules/notes/module.py +10 -0
  155. package/corpus/backend/no_app_instantiation/compliant-01/main.py +3 -0
  156. package/corpus/backend/no_app_instantiation/violation-01/main.py +3 -0
  157. package/corpus/backend/no_blocking_sleep/compliant-01/modules/notes/service.py +2 -0
  158. package/corpus/backend/no_blocking_sleep/violation-01/modules/notes/service.py +5 -0
  159. package/corpus/backend/no_cross_module_imports/compliant-01/modules/a/service.py +1 -0
  160. package/corpus/backend/no_cross_module_imports/violation-01/modules/a/service.py +1 -0
  161. package/corpus/backend/no_cross_module_imports/violation-02/modules/a/service.py +1 -0
  162. package/corpus/backend/no_dependency_overrides/compliant-01/main.py +12 -0
  163. package/corpus/backend/no_dependency_overrides/violation-01/main.py +11 -0
  164. package/corpus/backend/no_destructive_migrations/compliant-01/modules/notes/migrations/versions/0001_change.py +3 -0
  165. package/corpus/backend/no_destructive_migrations/compliant-02/modules/notes/migrations/versions/0001_change.py +8 -0
  166. package/corpus/backend/no_destructive_migrations/violation-01/expected-findings.json +7 -0
  167. package/corpus/backend/no_destructive_migrations/violation-01/modules/notes/migrations/versions/0001_change.py +2 -0
  168. package/corpus/backend/no_destructive_migrations/violation-02/expected-findings.json +7 -0
  169. package/corpus/backend/no_destructive_migrations/violation-02/modules/notes/migrations/versions/0001_change.py +2 -0
  170. package/corpus/backend/no_destructive_migrations/violation-03/expected-findings.json +7 -0
  171. package/corpus/backend/no_destructive_migrations/violation-03/modules/notes/migrations/versions/0001_change.py +3 -0
  172. package/corpus/backend/no_destructive_migrations/violation-04/expected-findings.json +12 -0
  173. package/corpus/backend/no_destructive_migrations/violation-04/modules/notes/migrations/versions/0001_change.py +6 -0
  174. package/corpus/backend/no_destructive_migrations/violation-05/expected-findings.json +12 -0
  175. package/corpus/backend/no_destructive_migrations/violation-05/modules/notes/migrations/versions/0001_change.py +3 -0
  176. package/corpus/backend/no_dynamic_sql/compliant-01/modules/notes/service.py +1 -0
  177. package/corpus/backend/no_dynamic_sql/compliant-02/modules/notes/service.py +20 -0
  178. package/corpus/backend/no_dynamic_sql/violation-01/modules/notes/service.py +2 -0
  179. package/corpus/backend/no_dynamic_sql/violation-02/modules/notes/service.py +2 -0
  180. package/corpus/backend/no_dynamic_sql/violation-03/modules/notes/service.py +7 -0
  181. package/corpus/backend/no_dynamic_sql/violation-04/modules/notes/service.py +16 -0
  182. package/corpus/backend/no_empty_tests/compliant-01/tests/test_notes.py +2 -0
  183. package/corpus/backend/no_empty_tests/violation-01/tests/test_notes.py +2 -0
  184. package/corpus/backend/no_eval_or_exec/compliant-01/modules/notes/service.py +2 -0
  185. package/corpus/backend/no_eval_or_exec/violation-01/modules/notes/service.py +2 -0
  186. package/corpus/backend/no_hardcoded_credentials/compliant-01/modules/billing/service.py +3 -0
  187. package/corpus/backend/no_hardcoded_credentials/compliant-02/modules/billing/service.py +18 -0
  188. package/corpus/backend/no_hardcoded_credentials/violation-01/expected-findings.json +7 -0
  189. package/corpus/backend/no_hardcoded_credentials/violation-01/modules/billing/service.py +2 -0
  190. package/corpus/backend/no_hardcoded_credentials/violation-02/expected-findings.json +7 -0
  191. package/corpus/backend/no_hardcoded_credentials/violation-02/modules/billing/service.py +1 -0
  192. package/corpus/backend/no_hardcoded_credentials/violation-03/expected-findings.json +22 -0
  193. package/corpus/backend/no_hardcoded_credentials/violation-03/modules/billing/service.py +11 -0
  194. package/corpus/backend/no_hardcoded_credentials/violation-04/expected-findings.json +12 -0
  195. package/corpus/backend/no_hardcoded_credentials/violation-04/modules/billing/service.py +8 -0
  196. package/corpus/backend/no_hardcoded_credentials/violation-05/expected-findings.json +12 -0
  197. package/corpus/backend/no_hardcoded_credentials/violation-05/modules/billing/service.py +4 -0
  198. package/corpus/backend/no_internal_imports/compliant-01/modules/notes/service.py +1 -0
  199. package/corpus/backend/no_internal_imports/violation-01/modules/notes/service.py +1 -0
  200. package/corpus/backend/no_manual_actor_stamping/compliant-01/modules/notes/service.py +5 -0
  201. package/corpus/backend/no_manual_actor_stamping/compliant-02/modules/notes/schemas.py +12 -0
  202. package/corpus/backend/no_manual_actor_stamping/violation-01/modules/notes/service.py +3 -0
  203. package/corpus/backend/no_manual_actor_stamping/violation-02/expected-findings.json +7 -0
  204. package/corpus/backend/no_manual_actor_stamping/violation-02/modules/notes/service.py +4 -0
  205. package/corpus/backend/no_manual_ownership_checks/compliant-01/modules/journals/service.py +3 -0
  206. package/corpus/backend/no_manual_ownership_checks/compliant-02/modules/journals/schemas.py +11 -0
  207. package/corpus/backend/no_manual_ownership_checks/violation-01/modules/journals/service.py +3 -0
  208. package/corpus/backend/no_manual_ownership_checks/violation-02/expected-findings.json +7 -0
  209. package/corpus/backend/no_manual_ownership_checks/violation-02/modules/journals/service.py +9 -0
  210. package/corpus/backend/no_manual_ownership_checks/violation-03/expected-findings.json +7 -0
  211. package/corpus/backend/no_manual_ownership_checks/violation-03/modules/notes/jobs.py +1 -0
  212. package/corpus/backend/no_manual_ownership_checks/violation-03/modules/notes/models.py +7 -0
  213. package/corpus/backend/no_manual_ownership_checks/violation-03/modules/notes/module.py +11 -0
  214. package/corpus/backend/no_manual_ownership_checks/violation-03/modules/notes/service.py +7 -0
  215. package/corpus/backend/no_manual_scope_filtering/compliant-01/modules/notes/service.py +8 -0
  216. package/corpus/backend/no_manual_scope_filtering/compliant-02/modules/notes/schemas.py +12 -0
  217. package/corpus/backend/no_manual_scope_filtering/violation-01/modules/notes/service.py +2 -0
  218. package/corpus/backend/no_manual_scope_filtering/violation-02/modules/notes/service.py +2 -0
  219. package/corpus/backend/no_manual_scope_filtering/violation-03/expected-findings.json +7 -0
  220. package/corpus/backend/no_manual_scope_filtering/violation-03/modules/notes/service.py +7 -0
  221. package/corpus/backend/no_manual_table_schema/compliant-01/modules/notes/models.py +6 -0
  222. package/corpus/backend/no_manual_table_schema/violation-01/modules/notes/models.py +8 -0
  223. package/corpus/backend/no_manual_version_assignment/compliant-01/modules/notes/service.py +5 -0
  224. package/corpus/backend/no_manual_version_assignment/violation-01/modules/notes/service.py +3 -0
  225. package/corpus/backend/no_manual_version_assignment/violation-02/modules/notes/service.py +3 -0
  226. package/corpus/backend/no_manual_version_assignment/violation-03/modules/notes/service.py +3 -0
  227. package/corpus/backend/no_mutable_default_args/compliant-01/modules/notes/service.py +3 -0
  228. package/corpus/backend/no_mutable_default_args/violation-01/modules/notes/service.py +2 -0
  229. package/corpus/backend/no_naive_datetime/compliant-01/modules/notes/service.py +2 -0
  230. package/corpus/backend/no_naive_datetime/violation-01/modules/notes/service.py +2 -0
  231. package/corpus/backend/no_naive_datetime/violation-02/modules/notes/service.py +2 -0
  232. package/corpus/backend/no_oversized_python_files/compliant-01/modules/notes/service.py +9 -0
  233. package/corpus/backend/no_oversized_python_files/violation-01/modules/notes/service.py +530 -0
  234. package/corpus/backend/no_print/compliant-01/modules/notes/service.py +7 -0
  235. package/corpus/backend/no_print/violation-01/modules/notes/service.py +2 -0
  236. package/corpus/backend/no_raw_app_routes/compliant-01/main.py +12 -0
  237. package/corpus/backend/no_raw_app_routes/violation-01/main.py +10 -0
  238. package/corpus/backend/no_raw_app_routes/violation-02/main.py +16 -0
  239. package/corpus/backend/no_raw_app_routes/violation-03/main.py +12 -0
  240. package/corpus/backend/no_raw_app_routes/violation-04/main.py +10 -0
  241. package/corpus/backend/no_raw_app_routes/violation-05/main.py +12 -0
  242. package/corpus/backend/no_raw_app_routes/violation-06/main.py +10 -0
  243. package/corpus/backend/no_raw_connection_access/compliant-01/modules/notes/service.py +5 -0
  244. package/corpus/backend/no_raw_connection_access/violation-01/modules/notes/service.py +2 -0
  245. package/corpus/backend/no_raw_connection_access/violation-02/modules/notes/service.py +2 -0
  246. package/corpus/backend/no_raw_file_references/compliant-01/modules/notes/models.py +10 -0
  247. package/corpus/backend/no_raw_file_references/violation-01/modules/notes/models.py +9 -0
  248. package/corpus/backend/no_raw_outbound_http/compliant-01/modules/notes/service.py +2 -0
  249. package/corpus/backend/no_raw_outbound_http/compliant-03/modules/notes/service.py +12 -0
  250. package/corpus/backend/no_raw_outbound_http/violation-01/expected-findings.json +7 -0
  251. package/corpus/backend/no_raw_outbound_http/violation-01/modules/notes/service.py +1 -0
  252. package/corpus/backend/no_raw_outbound_http/violation-02/expected-findings.json +7 -0
  253. package/corpus/backend/no_raw_outbound_http/violation-02/modules/notes/service.py +1 -0
  254. package/corpus/backend/no_raw_outbound_http/violation-03/expected-findings.json +7 -0
  255. package/corpus/backend/no_raw_outbound_http/violation-03/modules/notes/service.py +1 -0
  256. package/corpus/backend/no_raw_outbound_http/violation-04/expected-findings.json +12 -0
  257. package/corpus/backend/no_raw_outbound_http/violation-04/modules/notes/service.py +7 -0
  258. package/corpus/backend/no_raw_outbound_http/violation-05/expected-findings.json +12 -0
  259. package/corpus/backend/no_raw_outbound_http/violation-05/modules/notes/service.py +5 -0
  260. package/corpus/backend/no_raw_outbound_http/violation-06/expected-findings.json +12 -0
  261. package/corpus/backend/no_raw_outbound_http/violation-06/modules/notes/service.py +2 -0
  262. package/corpus/backend/no_raw_session_construction/compliant-01/modules/notes/service.py +3 -0
  263. package/corpus/backend/no_raw_session_construction/violation-01/modules/notes/service.py +3 -0
  264. package/corpus/backend/no_star_imports/compliant-01/modules/notes/service.py +1 -0
  265. package/corpus/backend/no_star_imports/violation-01/modules/notes/service.py +1 -0
  266. package/corpus/backend/no_todo_fixme/compliant-01/modules/notes/service.py +3 -0
  267. package/corpus/backend/no_todo_fixme/violation-01/modules/notes/service.py +3 -0
  268. package/corpus/backend/no_unique_columns_on_soft_delete_models/compliant-01/modules/notes/models.py +17 -0
  269. package/corpus/backend/no_unique_columns_on_soft_delete_models/violation-01/expected-findings.json +7 -0
  270. package/corpus/backend/no_unique_columns_on_soft_delete_models/violation-01/modules/notes/models.py +6 -0
  271. package/corpus/backend/no_unique_columns_on_soft_delete_models/violation-02/expected-findings.json +7 -0
  272. package/corpus/backend/no_unique_columns_on_soft_delete_models/violation-02/modules/notes/models.py +13 -0
  273. package/corpus/backend/no_unique_columns_on_soft_delete_models/violation-03/expected-findings.json +7 -0
  274. package/corpus/backend/no_unique_columns_on_soft_delete_models/violation-03/modules/notes/models.py +16 -0
  275. package/corpus/backend/offset_queries_declare_ordering/compliant-01/modules/notes/service.py +4 -0
  276. package/corpus/backend/offset_queries_declare_ordering/violation-01/modules/notes/service.py +2 -0
  277. package/corpus/backend/path_id_params_are_uuid/compliant-01/modules/notes/router.py +6 -0
  278. package/corpus/backend/path_id_params_are_uuid/violation-01/modules/notes/router.py +6 -0
  279. package/corpus/backend/policy_refs_resolve/compliant-01/modules/notes/module.py +7 -0
  280. package/corpus/backend/policy_refs_resolve/violation-01/modules/notes/module.py +8 -0
  281. package/corpus/backend/public_modules_are_read_only/compliant-01/modules/notes/module.py +7 -0
  282. package/corpus/backend/public_modules_are_read_only/compliant-01/modules/notes/router.py +3 -0
  283. package/corpus/backend/public_modules_are_read_only/violation-01/expected-findings.json +7 -0
  284. package/corpus/backend/public_modules_are_read_only/violation-01/modules/notes/module.py +7 -0
  285. package/corpus/backend/public_modules_are_read_only/violation-01/modules/notes/router.py +3 -0
  286. package/corpus/backend/public_modules_are_read_only/violation-02/expected-findings.json +7 -0
  287. package/corpus/backend/public_modules_are_read_only/violation-02/modules/notes/module.py +7 -0
  288. package/corpus/backend/public_modules_are_read_only/violation-02/modules/notes/router.py +5 -0
  289. package/corpus/backend/reads_use_base_query/compliant-01/modules/notes/models.py +6 -0
  290. package/corpus/backend/reads_use_base_query/compliant-01/modules/notes/service.py +8 -0
  291. package/corpus/backend/reads_use_base_query/compliant-02/modules/notes/models.py +9 -0
  292. package/corpus/backend/reads_use_base_query/compliant-02/modules/notes/service.py +9 -0
  293. package/corpus/backend/reads_use_base_query/violation-01/modules/notes/models.py +6 -0
  294. package/corpus/backend/reads_use_base_query/violation-01/modules/notes/service.py +9 -0
  295. package/corpus/backend/reads_use_base_query/violation-02/expected-findings.json +7 -0
  296. package/corpus/backend/reads_use_base_query/violation-02/modules/notes/models.py +6 -0
  297. package/corpus/backend/reads_use_base_query/violation-02/modules/notes/service.py +8 -0
  298. package/corpus/backend/response_model_not_table_model/compliant-01/modules/notes/models.py +6 -0
  299. package/corpus/backend/response_model_not_table_model/compliant-01/modules/notes/router.py +3 -0
  300. package/corpus/backend/response_model_not_table_model/compliant-01/modules/notes/schemas.py +5 -0
  301. package/corpus/backend/response_model_not_table_model/violation-01/modules/notes/models.py +6 -0
  302. package/corpus/backend/response_model_not_table_model/violation-01/modules/notes/router.py +3 -0
  303. package/corpus/backend/routes_declare_response_model/compliant-01/modules/notes/router.py +8 -0
  304. package/corpus/backend/routes_declare_response_model/violation-01/modules/notes/router.py +3 -0
  305. package/corpus/backend/safe_methods_are_read_only/compliant-01/modules/notes/router.py +6 -0
  306. package/corpus/backend/safe_methods_are_read_only/compliant-02/modules/notes/router.py +5 -0
  307. package/corpus/backend/safe_methods_are_read_only/violation-01/expected-findings.json +7 -0
  308. package/corpus/backend/safe_methods_are_read_only/violation-01/modules/notes/router.py +3 -0
  309. package/corpus/backend/safe_methods_are_read_only/violation-02/expected-findings.json +7 -0
  310. package/corpus/backend/safe_methods_are_read_only/violation-02/modules/notes/router.py +5 -0
  311. package/corpus/backend/safe_methods_are_read_only/violation-03/expected-findings.json +7 -0
  312. package/corpus/backend/safe_methods_are_read_only/violation-03/modules/notes/router.py +3 -0
  313. package/corpus/backend/schemas_exclude_sensitive_fields/compliant-01/modules/users/schemas.py +5 -0
  314. package/corpus/backend/schemas_exclude_sensitive_fields/compliant-02/modules/accounts/schemas.py +12 -0
  315. package/corpus/backend/schemas_exclude_sensitive_fields/violation-01/expected-findings.json +7 -0
  316. package/corpus/backend/schemas_exclude_sensitive_fields/violation-01/modules/users/schemas.py +3 -0
  317. package/corpus/backend/schemas_exclude_sensitive_fields/violation-02/expected-findings.json +7 -0
  318. package/corpus/backend/schemas_exclude_sensitive_fields/violation-02/modules/connectors/router.py +8 -0
  319. package/corpus/backend/schemas_exclude_sensitive_fields/violation-03/expected-findings.json +17 -0
  320. package/corpus/backend/schemas_exclude_sensitive_fields/violation-03/modules/integrations/schemas.py +7 -0
  321. package/corpus/backend/session_imported_from_sqlmodel/compliant-01/modules/notes/service.py +5 -0
  322. package/corpus/backend/session_imported_from_sqlmodel/violation-01/modules/notes/service.py +5 -0
  323. package/corpus/backend/table_models_use_base_table/compliant-01/modules/notes/models.py +6 -0
  324. package/corpus/backend/table_models_use_base_table/violation-01/modules/notes/models.py +5 -0
  325. package/corpus/backend/tables_have_migrations/compliant-01/modules/notes/migrations/versions/0a1b2c3d4e5f_create_notes_tables.py +22 -0
  326. package/corpus/backend/tables_have_migrations/compliant-01/modules/notes/models.py +6 -0
  327. package/corpus/backend/tables_have_migrations/compliant-02/capabilities/ledger/models.py +6 -0
  328. package/corpus/backend/tables_have_migrations/violation-01/expected-findings.json +7 -0
  329. package/corpus/backend/tables_have_migrations/violation-01/modules/notes/models.py +6 -0
  330. package/corpus/backend/tables_have_migrations/violation-02/expected-findings.json +7 -0
  331. package/corpus/backend/tables_have_migrations/violation-02/modules/notes/models.py +10 -0
  332. package/corpus/backend/tenant_scoped_models_use_scoped_service/compliant-01/modules/projects/models.py +6 -0
  333. package/corpus/backend/tenant_scoped_models_use_scoped_service/compliant-01/modules/projects/service.py +5 -0
  334. package/corpus/backend/tenant_scoped_models_use_scoped_service/compliant-02/modules/projects/models.py +8 -0
  335. package/corpus/backend/tenant_scoped_models_use_scoped_service/compliant-02/modules/projects/service.py +5 -0
  336. package/corpus/backend/tenant_scoped_models_use_scoped_service/violation-01/modules/projects/models.py +6 -0
  337. package/corpus/backend/tenant_scoped_models_use_scoped_service/violation-01/modules/projects/service.py +5 -0
  338. package/corpus/backend/ungoverned_escape_hatch/compliant-01/modules/notes/service.py +5 -0
  339. package/corpus/backend/ungoverned_escape_hatch/compliant-02/modules/notes/service.py +4 -0
  340. package/corpus/backend/ungoverned_escape_hatch/violation-01/modules/notes/service.py +2 -0
  341. package/corpus/backend/update_schemas_inherit_base_update_schema/compliant-01/modules/notes/schemas.py +2 -0
  342. package/corpus/backend/update_schemas_inherit_base_update_schema/violation-01/modules/notes/schemas.py +2 -0
  343. package/corpus/backend/update_schemas_inherit_base_update_schema/violation-02/modules/notes/schemas.py +5 -0
  344. package/corpus/frontend/escape-hatch/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  345. package/corpus/frontend/escape-hatch/violation-01/src/modules/widgets/Widget.tsx +4 -0
  346. package/corpus/frontend/escape-hatch/violation-02/src/modules/widgets/Widget.tsx +7 -0
  347. package/corpus/frontend/escape-hatch/violation-03/src/modules/widgets/Widget.tsx +7 -0
  348. package/corpus/frontend/generated-client-only/compliant-01/src/modules/widgets/Widget.tsx +6 -0
  349. package/corpus/frontend/generated-client-only/compliant-02/src/modules/widgets/Widget.tsx +21 -0
  350. package/corpus/frontend/generated-client-only/compliant-03/src/modules/widgets/Widget.tsx +7 -0
  351. package/corpus/frontend/generated-client-only/compliant-04/src/modules/widgets/Widget.tsx +17 -0
  352. package/corpus/frontend/generated-client-only/violation-01/src/modules/widgets/Widget.tsx +3 -0
  353. package/corpus/frontend/generated-client-only/violation-02/src/modules/widgets/Widget.tsx +9 -0
  354. package/corpus/frontend/generated-client-only/violation-03/src/modules/widgets/Widget.tsx +14 -0
  355. package/corpus/frontend/generated-client-only/violation-04/src/modules/widgets/Widget.tsx +6 -0
  356. package/corpus/frontend/layout-contract/compliant-01/layout-contract.json +3 -0
  357. package/corpus/frontend/layout-contract/compliant-01/src/modules/widgets/Widget.tsx +8 -0
  358. package/corpus/frontend/layout-contract/violation-01/layout-contract.json +3 -0
  359. package/corpus/frontend/layout-contract/violation-01/src/modules/widgets/Widget.tsx +8 -0
  360. package/corpus/frontend/no-cross-module-imports/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  361. package/corpus/frontend/no-cross-module-imports/violation-01/src/modules/widgets/Widget.tsx +3 -0
  362. package/corpus/frontend/no-deep-imports/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  363. package/corpus/frontend/no-deep-imports/violation-01/src/modules/widgets/Widget.tsx +2 -0
  364. package/corpus/frontend/no-dom-html-injection/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  365. package/corpus/frontend/no-dom-html-injection/compliant-02/src/modules/widgets/Widget.tsx +11 -0
  366. package/corpus/frontend/no-dom-html-injection/violation-01/src/modules/widgets/Widget.tsx +3 -0
  367. package/corpus/frontend/no-dom-html-injection/violation-02/src/modules/widgets/Widget.tsx +7 -0
  368. package/corpus/frontend/no-dom-html-injection/violation-03/src/modules/widgets/Widget.tsx +12 -0
  369. package/corpus/frontend/no-eval/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  370. package/corpus/frontend/no-eval/compliant-02/src/modules/widgets/Widget.tsx +11 -0
  371. package/corpus/frontend/no-eval/violation-01/src/modules/widgets/Widget.tsx +3 -0
  372. package/corpus/frontend/no-eval/violation-02/src/modules/widgets/Widget.tsx +7 -0
  373. package/corpus/frontend/no-eval/violation-03/src/modules/widgets/Widget.tsx +10 -0
  374. package/corpus/frontend/no-eval/violation-04/src/modules/widgets/Widget.tsx +6 -0
  375. package/corpus/frontend/no-inline-styling/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  376. package/corpus/frontend/no-inline-styling/violation-01/src/modules/widgets/Widget.tsx +3 -0
  377. package/corpus/frontend/no-inline-styling/violation-02/src/modules/widgets/Widget.tsx +6 -0
  378. package/corpus/frontend/no-style-imports/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  379. package/corpus/frontend/no-style-imports/violation-01/src/modules/widgets/Widget.tsx +2 -0
  380. package/corpus/frontend/no-unsafe-href/compliant-01/src/modules/widgets/Widget.tsx +3 -0
  381. package/corpus/frontend/no-unsafe-href/violation-01/src/modules/widgets/Widget.tsx +3 -0
  382. package/corpus/frontend/no-unsafe-target-blank/compliant-01/src/modules/widgets/Widget.tsx +3 -0
  383. package/corpus/frontend/no-unsafe-target-blank/violation-01/src/modules/widgets/Widget.tsx +3 -0
  384. package/corpus/frontend/router-links/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  385. package/corpus/frontend/router-links/violation-01/src/modules/widgets/Widget.tsx +3 -0
  386. package/corpus/frontend/token-styled-elements/compliant-01/src/modules/widgets/Widget.tsx +4 -0
  387. package/corpus/frontend/token-styled-elements/compliant-02/src/modules/widgets/Widget.tsx +4 -0
  388. package/corpus/frontend/token-styled-elements/violation-01/src/modules/widgets/Widget.tsx +3 -0
  389. package/findings.schema.json +40 -0
  390. package/package.json +23 -0
  391. package/restricted-surface.json +10 -0
  392. package/scorecard.schema.json +52 -0
@@ -0,0 +1,530 @@
1
+ """An oversized service that piles many responsibilities into one file."""
2
+
3
+ from terp.core import BaseService
4
+
5
+ from .models import Note
6
+
7
+
8
+ class NoteService(BaseService[Note]):
9
+ model = Note
10
+
11
+ CONSTANT_1 = 1 # filler line making the file exceed the cap
12
+ CONSTANT_2 = 2 # filler line making the file exceed the cap
13
+ CONSTANT_3 = 3 # filler line making the file exceed the cap
14
+ CONSTANT_4 = 4 # filler line making the file exceed the cap
15
+ CONSTANT_5 = 5 # filler line making the file exceed the cap
16
+ CONSTANT_6 = 6 # filler line making the file exceed the cap
17
+ CONSTANT_7 = 7 # filler line making the file exceed the cap
18
+ CONSTANT_8 = 8 # filler line making the file exceed the cap
19
+ CONSTANT_9 = 9 # filler line making the file exceed the cap
20
+ CONSTANT_10 = 10 # filler line making the file exceed the cap
21
+ CONSTANT_11 = 11 # filler line making the file exceed the cap
22
+ CONSTANT_12 = 12 # filler line making the file exceed the cap
23
+ CONSTANT_13 = 13 # filler line making the file exceed the cap
24
+ CONSTANT_14 = 14 # filler line making the file exceed the cap
25
+ CONSTANT_15 = 15 # filler line making the file exceed the cap
26
+ CONSTANT_16 = 16 # filler line making the file exceed the cap
27
+ CONSTANT_17 = 17 # filler line making the file exceed the cap
28
+ CONSTANT_18 = 18 # filler line making the file exceed the cap
29
+ CONSTANT_19 = 19 # filler line making the file exceed the cap
30
+ CONSTANT_20 = 20 # filler line making the file exceed the cap
31
+ CONSTANT_21 = 21 # filler line making the file exceed the cap
32
+ CONSTANT_22 = 22 # filler line making the file exceed the cap
33
+ CONSTANT_23 = 23 # filler line making the file exceed the cap
34
+ CONSTANT_24 = 24 # filler line making the file exceed the cap
35
+ CONSTANT_25 = 25 # filler line making the file exceed the cap
36
+ CONSTANT_26 = 26 # filler line making the file exceed the cap
37
+ CONSTANT_27 = 27 # filler line making the file exceed the cap
38
+ CONSTANT_28 = 28 # filler line making the file exceed the cap
39
+ CONSTANT_29 = 29 # filler line making the file exceed the cap
40
+ CONSTANT_30 = 30 # filler line making the file exceed the cap
41
+ CONSTANT_31 = 31 # filler line making the file exceed the cap
42
+ CONSTANT_32 = 32 # filler line making the file exceed the cap
43
+ CONSTANT_33 = 33 # filler line making the file exceed the cap
44
+ CONSTANT_34 = 34 # filler line making the file exceed the cap
45
+ CONSTANT_35 = 35 # filler line making the file exceed the cap
46
+ CONSTANT_36 = 36 # filler line making the file exceed the cap
47
+ CONSTANT_37 = 37 # filler line making the file exceed the cap
48
+ CONSTANT_38 = 38 # filler line making the file exceed the cap
49
+ CONSTANT_39 = 39 # filler line making the file exceed the cap
50
+ CONSTANT_40 = 40 # filler line making the file exceed the cap
51
+ CONSTANT_41 = 41 # filler line making the file exceed the cap
52
+ CONSTANT_42 = 42 # filler line making the file exceed the cap
53
+ CONSTANT_43 = 43 # filler line making the file exceed the cap
54
+ CONSTANT_44 = 44 # filler line making the file exceed the cap
55
+ CONSTANT_45 = 45 # filler line making the file exceed the cap
56
+ CONSTANT_46 = 46 # filler line making the file exceed the cap
57
+ CONSTANT_47 = 47 # filler line making the file exceed the cap
58
+ CONSTANT_48 = 48 # filler line making the file exceed the cap
59
+ CONSTANT_49 = 49 # filler line making the file exceed the cap
60
+ CONSTANT_50 = 50 # filler line making the file exceed the cap
61
+ CONSTANT_51 = 51 # filler line making the file exceed the cap
62
+ CONSTANT_52 = 52 # filler line making the file exceed the cap
63
+ CONSTANT_53 = 53 # filler line making the file exceed the cap
64
+ CONSTANT_54 = 54 # filler line making the file exceed the cap
65
+ CONSTANT_55 = 55 # filler line making the file exceed the cap
66
+ CONSTANT_56 = 56 # filler line making the file exceed the cap
67
+ CONSTANT_57 = 57 # filler line making the file exceed the cap
68
+ CONSTANT_58 = 58 # filler line making the file exceed the cap
69
+ CONSTANT_59 = 59 # filler line making the file exceed the cap
70
+ CONSTANT_60 = 60 # filler line making the file exceed the cap
71
+ CONSTANT_61 = 61 # filler line making the file exceed the cap
72
+ CONSTANT_62 = 62 # filler line making the file exceed the cap
73
+ CONSTANT_63 = 63 # filler line making the file exceed the cap
74
+ CONSTANT_64 = 64 # filler line making the file exceed the cap
75
+ CONSTANT_65 = 65 # filler line making the file exceed the cap
76
+ CONSTANT_66 = 66 # filler line making the file exceed the cap
77
+ CONSTANT_67 = 67 # filler line making the file exceed the cap
78
+ CONSTANT_68 = 68 # filler line making the file exceed the cap
79
+ CONSTANT_69 = 69 # filler line making the file exceed the cap
80
+ CONSTANT_70 = 70 # filler line making the file exceed the cap
81
+ CONSTANT_71 = 71 # filler line making the file exceed the cap
82
+ CONSTANT_72 = 72 # filler line making the file exceed the cap
83
+ CONSTANT_73 = 73 # filler line making the file exceed the cap
84
+ CONSTANT_74 = 74 # filler line making the file exceed the cap
85
+ CONSTANT_75 = 75 # filler line making the file exceed the cap
86
+ CONSTANT_76 = 76 # filler line making the file exceed the cap
87
+ CONSTANT_77 = 77 # filler line making the file exceed the cap
88
+ CONSTANT_78 = 78 # filler line making the file exceed the cap
89
+ CONSTANT_79 = 79 # filler line making the file exceed the cap
90
+ CONSTANT_80 = 80 # filler line making the file exceed the cap
91
+ CONSTANT_81 = 81 # filler line making the file exceed the cap
92
+ CONSTANT_82 = 82 # filler line making the file exceed the cap
93
+ CONSTANT_83 = 83 # filler line making the file exceed the cap
94
+ CONSTANT_84 = 84 # filler line making the file exceed the cap
95
+ CONSTANT_85 = 85 # filler line making the file exceed the cap
96
+ CONSTANT_86 = 86 # filler line making the file exceed the cap
97
+ CONSTANT_87 = 87 # filler line making the file exceed the cap
98
+ CONSTANT_88 = 88 # filler line making the file exceed the cap
99
+ CONSTANT_89 = 89 # filler line making the file exceed the cap
100
+ CONSTANT_90 = 90 # filler line making the file exceed the cap
101
+ CONSTANT_91 = 91 # filler line making the file exceed the cap
102
+ CONSTANT_92 = 92 # filler line making the file exceed the cap
103
+ CONSTANT_93 = 93 # filler line making the file exceed the cap
104
+ CONSTANT_94 = 94 # filler line making the file exceed the cap
105
+ CONSTANT_95 = 95 # filler line making the file exceed the cap
106
+ CONSTANT_96 = 96 # filler line making the file exceed the cap
107
+ CONSTANT_97 = 97 # filler line making the file exceed the cap
108
+ CONSTANT_98 = 98 # filler line making the file exceed the cap
109
+ CONSTANT_99 = 99 # filler line making the file exceed the cap
110
+ CONSTANT_100 = 100 # filler line making the file exceed the cap
111
+ CONSTANT_101 = 101 # filler line making the file exceed the cap
112
+ CONSTANT_102 = 102 # filler line making the file exceed the cap
113
+ CONSTANT_103 = 103 # filler line making the file exceed the cap
114
+ CONSTANT_104 = 104 # filler line making the file exceed the cap
115
+ CONSTANT_105 = 105 # filler line making the file exceed the cap
116
+ CONSTANT_106 = 106 # filler line making the file exceed the cap
117
+ CONSTANT_107 = 107 # filler line making the file exceed the cap
118
+ CONSTANT_108 = 108 # filler line making the file exceed the cap
119
+ CONSTANT_109 = 109 # filler line making the file exceed the cap
120
+ CONSTANT_110 = 110 # filler line making the file exceed the cap
121
+ CONSTANT_111 = 111 # filler line making the file exceed the cap
122
+ CONSTANT_112 = 112 # filler line making the file exceed the cap
123
+ CONSTANT_113 = 113 # filler line making the file exceed the cap
124
+ CONSTANT_114 = 114 # filler line making the file exceed the cap
125
+ CONSTANT_115 = 115 # filler line making the file exceed the cap
126
+ CONSTANT_116 = 116 # filler line making the file exceed the cap
127
+ CONSTANT_117 = 117 # filler line making the file exceed the cap
128
+ CONSTANT_118 = 118 # filler line making the file exceed the cap
129
+ CONSTANT_119 = 119 # filler line making the file exceed the cap
130
+ CONSTANT_120 = 120 # filler line making the file exceed the cap
131
+ CONSTANT_121 = 121 # filler line making the file exceed the cap
132
+ CONSTANT_122 = 122 # filler line making the file exceed the cap
133
+ CONSTANT_123 = 123 # filler line making the file exceed the cap
134
+ CONSTANT_124 = 124 # filler line making the file exceed the cap
135
+ CONSTANT_125 = 125 # filler line making the file exceed the cap
136
+ CONSTANT_126 = 126 # filler line making the file exceed the cap
137
+ CONSTANT_127 = 127 # filler line making the file exceed the cap
138
+ CONSTANT_128 = 128 # filler line making the file exceed the cap
139
+ CONSTANT_129 = 129 # filler line making the file exceed the cap
140
+ CONSTANT_130 = 130 # filler line making the file exceed the cap
141
+ CONSTANT_131 = 131 # filler line making the file exceed the cap
142
+ CONSTANT_132 = 132 # filler line making the file exceed the cap
143
+ CONSTANT_133 = 133 # filler line making the file exceed the cap
144
+ CONSTANT_134 = 134 # filler line making the file exceed the cap
145
+ CONSTANT_135 = 135 # filler line making the file exceed the cap
146
+ CONSTANT_136 = 136 # filler line making the file exceed the cap
147
+ CONSTANT_137 = 137 # filler line making the file exceed the cap
148
+ CONSTANT_138 = 138 # filler line making the file exceed the cap
149
+ CONSTANT_139 = 139 # filler line making the file exceed the cap
150
+ CONSTANT_140 = 140 # filler line making the file exceed the cap
151
+ CONSTANT_141 = 141 # filler line making the file exceed the cap
152
+ CONSTANT_142 = 142 # filler line making the file exceed the cap
153
+ CONSTANT_143 = 143 # filler line making the file exceed the cap
154
+ CONSTANT_144 = 144 # filler line making the file exceed the cap
155
+ CONSTANT_145 = 145 # filler line making the file exceed the cap
156
+ CONSTANT_146 = 146 # filler line making the file exceed the cap
157
+ CONSTANT_147 = 147 # filler line making the file exceed the cap
158
+ CONSTANT_148 = 148 # filler line making the file exceed the cap
159
+ CONSTANT_149 = 149 # filler line making the file exceed the cap
160
+ CONSTANT_150 = 150 # filler line making the file exceed the cap
161
+ CONSTANT_151 = 151 # filler line making the file exceed the cap
162
+ CONSTANT_152 = 152 # filler line making the file exceed the cap
163
+ CONSTANT_153 = 153 # filler line making the file exceed the cap
164
+ CONSTANT_154 = 154 # filler line making the file exceed the cap
165
+ CONSTANT_155 = 155 # filler line making the file exceed the cap
166
+ CONSTANT_156 = 156 # filler line making the file exceed the cap
167
+ CONSTANT_157 = 157 # filler line making the file exceed the cap
168
+ CONSTANT_158 = 158 # filler line making the file exceed the cap
169
+ CONSTANT_159 = 159 # filler line making the file exceed the cap
170
+ CONSTANT_160 = 160 # filler line making the file exceed the cap
171
+ CONSTANT_161 = 161 # filler line making the file exceed the cap
172
+ CONSTANT_162 = 162 # filler line making the file exceed the cap
173
+ CONSTANT_163 = 163 # filler line making the file exceed the cap
174
+ CONSTANT_164 = 164 # filler line making the file exceed the cap
175
+ CONSTANT_165 = 165 # filler line making the file exceed the cap
176
+ CONSTANT_166 = 166 # filler line making the file exceed the cap
177
+ CONSTANT_167 = 167 # filler line making the file exceed the cap
178
+ CONSTANT_168 = 168 # filler line making the file exceed the cap
179
+ CONSTANT_169 = 169 # filler line making the file exceed the cap
180
+ CONSTANT_170 = 170 # filler line making the file exceed the cap
181
+ CONSTANT_171 = 171 # filler line making the file exceed the cap
182
+ CONSTANT_172 = 172 # filler line making the file exceed the cap
183
+ CONSTANT_173 = 173 # filler line making the file exceed the cap
184
+ CONSTANT_174 = 174 # filler line making the file exceed the cap
185
+ CONSTANT_175 = 175 # filler line making the file exceed the cap
186
+ CONSTANT_176 = 176 # filler line making the file exceed the cap
187
+ CONSTANT_177 = 177 # filler line making the file exceed the cap
188
+ CONSTANT_178 = 178 # filler line making the file exceed the cap
189
+ CONSTANT_179 = 179 # filler line making the file exceed the cap
190
+ CONSTANT_180 = 180 # filler line making the file exceed the cap
191
+ CONSTANT_181 = 181 # filler line making the file exceed the cap
192
+ CONSTANT_182 = 182 # filler line making the file exceed the cap
193
+ CONSTANT_183 = 183 # filler line making the file exceed the cap
194
+ CONSTANT_184 = 184 # filler line making the file exceed the cap
195
+ CONSTANT_185 = 185 # filler line making the file exceed the cap
196
+ CONSTANT_186 = 186 # filler line making the file exceed the cap
197
+ CONSTANT_187 = 187 # filler line making the file exceed the cap
198
+ CONSTANT_188 = 188 # filler line making the file exceed the cap
199
+ CONSTANT_189 = 189 # filler line making the file exceed the cap
200
+ CONSTANT_190 = 190 # filler line making the file exceed the cap
201
+ CONSTANT_191 = 191 # filler line making the file exceed the cap
202
+ CONSTANT_192 = 192 # filler line making the file exceed the cap
203
+ CONSTANT_193 = 193 # filler line making the file exceed the cap
204
+ CONSTANT_194 = 194 # filler line making the file exceed the cap
205
+ CONSTANT_195 = 195 # filler line making the file exceed the cap
206
+ CONSTANT_196 = 196 # filler line making the file exceed the cap
207
+ CONSTANT_197 = 197 # filler line making the file exceed the cap
208
+ CONSTANT_198 = 198 # filler line making the file exceed the cap
209
+ CONSTANT_199 = 199 # filler line making the file exceed the cap
210
+ CONSTANT_200 = 200 # filler line making the file exceed the cap
211
+ CONSTANT_201 = 201 # filler line making the file exceed the cap
212
+ CONSTANT_202 = 202 # filler line making the file exceed the cap
213
+ CONSTANT_203 = 203 # filler line making the file exceed the cap
214
+ CONSTANT_204 = 204 # filler line making the file exceed the cap
215
+ CONSTANT_205 = 205 # filler line making the file exceed the cap
216
+ CONSTANT_206 = 206 # filler line making the file exceed the cap
217
+ CONSTANT_207 = 207 # filler line making the file exceed the cap
218
+ CONSTANT_208 = 208 # filler line making the file exceed the cap
219
+ CONSTANT_209 = 209 # filler line making the file exceed the cap
220
+ CONSTANT_210 = 210 # filler line making the file exceed the cap
221
+ CONSTANT_211 = 211 # filler line making the file exceed the cap
222
+ CONSTANT_212 = 212 # filler line making the file exceed the cap
223
+ CONSTANT_213 = 213 # filler line making the file exceed the cap
224
+ CONSTANT_214 = 214 # filler line making the file exceed the cap
225
+ CONSTANT_215 = 215 # filler line making the file exceed the cap
226
+ CONSTANT_216 = 216 # filler line making the file exceed the cap
227
+ CONSTANT_217 = 217 # filler line making the file exceed the cap
228
+ CONSTANT_218 = 218 # filler line making the file exceed the cap
229
+ CONSTANT_219 = 219 # filler line making the file exceed the cap
230
+ CONSTANT_220 = 220 # filler line making the file exceed the cap
231
+ CONSTANT_221 = 221 # filler line making the file exceed the cap
232
+ CONSTANT_222 = 222 # filler line making the file exceed the cap
233
+ CONSTANT_223 = 223 # filler line making the file exceed the cap
234
+ CONSTANT_224 = 224 # filler line making the file exceed the cap
235
+ CONSTANT_225 = 225 # filler line making the file exceed the cap
236
+ CONSTANT_226 = 226 # filler line making the file exceed the cap
237
+ CONSTANT_227 = 227 # filler line making the file exceed the cap
238
+ CONSTANT_228 = 228 # filler line making the file exceed the cap
239
+ CONSTANT_229 = 229 # filler line making the file exceed the cap
240
+ CONSTANT_230 = 230 # filler line making the file exceed the cap
241
+ CONSTANT_231 = 231 # filler line making the file exceed the cap
242
+ CONSTANT_232 = 232 # filler line making the file exceed the cap
243
+ CONSTANT_233 = 233 # filler line making the file exceed the cap
244
+ CONSTANT_234 = 234 # filler line making the file exceed the cap
245
+ CONSTANT_235 = 235 # filler line making the file exceed the cap
246
+ CONSTANT_236 = 236 # filler line making the file exceed the cap
247
+ CONSTANT_237 = 237 # filler line making the file exceed the cap
248
+ CONSTANT_238 = 238 # filler line making the file exceed the cap
249
+ CONSTANT_239 = 239 # filler line making the file exceed the cap
250
+ CONSTANT_240 = 240 # filler line making the file exceed the cap
251
+ CONSTANT_241 = 241 # filler line making the file exceed the cap
252
+ CONSTANT_242 = 242 # filler line making the file exceed the cap
253
+ CONSTANT_243 = 243 # filler line making the file exceed the cap
254
+ CONSTANT_244 = 244 # filler line making the file exceed the cap
255
+ CONSTANT_245 = 245 # filler line making the file exceed the cap
256
+ CONSTANT_246 = 246 # filler line making the file exceed the cap
257
+ CONSTANT_247 = 247 # filler line making the file exceed the cap
258
+ CONSTANT_248 = 248 # filler line making the file exceed the cap
259
+ CONSTANT_249 = 249 # filler line making the file exceed the cap
260
+ CONSTANT_250 = 250 # filler line making the file exceed the cap
261
+ CONSTANT_251 = 251 # filler line making the file exceed the cap
262
+ CONSTANT_252 = 252 # filler line making the file exceed the cap
263
+ CONSTANT_253 = 253 # filler line making the file exceed the cap
264
+ CONSTANT_254 = 254 # filler line making the file exceed the cap
265
+ CONSTANT_255 = 255 # filler line making the file exceed the cap
266
+ CONSTANT_256 = 256 # filler line making the file exceed the cap
267
+ CONSTANT_257 = 257 # filler line making the file exceed the cap
268
+ CONSTANT_258 = 258 # filler line making the file exceed the cap
269
+ CONSTANT_259 = 259 # filler line making the file exceed the cap
270
+ CONSTANT_260 = 260 # filler line making the file exceed the cap
271
+ CONSTANT_261 = 261 # filler line making the file exceed the cap
272
+ CONSTANT_262 = 262 # filler line making the file exceed the cap
273
+ CONSTANT_263 = 263 # filler line making the file exceed the cap
274
+ CONSTANT_264 = 264 # filler line making the file exceed the cap
275
+ CONSTANT_265 = 265 # filler line making the file exceed the cap
276
+ CONSTANT_266 = 266 # filler line making the file exceed the cap
277
+ CONSTANT_267 = 267 # filler line making the file exceed the cap
278
+ CONSTANT_268 = 268 # filler line making the file exceed the cap
279
+ CONSTANT_269 = 269 # filler line making the file exceed the cap
280
+ CONSTANT_270 = 270 # filler line making the file exceed the cap
281
+ CONSTANT_271 = 271 # filler line making the file exceed the cap
282
+ CONSTANT_272 = 272 # filler line making the file exceed the cap
283
+ CONSTANT_273 = 273 # filler line making the file exceed the cap
284
+ CONSTANT_274 = 274 # filler line making the file exceed the cap
285
+ CONSTANT_275 = 275 # filler line making the file exceed the cap
286
+ CONSTANT_276 = 276 # filler line making the file exceed the cap
287
+ CONSTANT_277 = 277 # filler line making the file exceed the cap
288
+ CONSTANT_278 = 278 # filler line making the file exceed the cap
289
+ CONSTANT_279 = 279 # filler line making the file exceed the cap
290
+ CONSTANT_280 = 280 # filler line making the file exceed the cap
291
+ CONSTANT_281 = 281 # filler line making the file exceed the cap
292
+ CONSTANT_282 = 282 # filler line making the file exceed the cap
293
+ CONSTANT_283 = 283 # filler line making the file exceed the cap
294
+ CONSTANT_284 = 284 # filler line making the file exceed the cap
295
+ CONSTANT_285 = 285 # filler line making the file exceed the cap
296
+ CONSTANT_286 = 286 # filler line making the file exceed the cap
297
+ CONSTANT_287 = 287 # filler line making the file exceed the cap
298
+ CONSTANT_288 = 288 # filler line making the file exceed the cap
299
+ CONSTANT_289 = 289 # filler line making the file exceed the cap
300
+ CONSTANT_290 = 290 # filler line making the file exceed the cap
301
+ CONSTANT_291 = 291 # filler line making the file exceed the cap
302
+ CONSTANT_292 = 292 # filler line making the file exceed the cap
303
+ CONSTANT_293 = 293 # filler line making the file exceed the cap
304
+ CONSTANT_294 = 294 # filler line making the file exceed the cap
305
+ CONSTANT_295 = 295 # filler line making the file exceed the cap
306
+ CONSTANT_296 = 296 # filler line making the file exceed the cap
307
+ CONSTANT_297 = 297 # filler line making the file exceed the cap
308
+ CONSTANT_298 = 298 # filler line making the file exceed the cap
309
+ CONSTANT_299 = 299 # filler line making the file exceed the cap
310
+ CONSTANT_300 = 300 # filler line making the file exceed the cap
311
+ CONSTANT_301 = 301 # filler line making the file exceed the cap
312
+ CONSTANT_302 = 302 # filler line making the file exceed the cap
313
+ CONSTANT_303 = 303 # filler line making the file exceed the cap
314
+ CONSTANT_304 = 304 # filler line making the file exceed the cap
315
+ CONSTANT_305 = 305 # filler line making the file exceed the cap
316
+ CONSTANT_306 = 306 # filler line making the file exceed the cap
317
+ CONSTANT_307 = 307 # filler line making the file exceed the cap
318
+ CONSTANT_308 = 308 # filler line making the file exceed the cap
319
+ CONSTANT_309 = 309 # filler line making the file exceed the cap
320
+ CONSTANT_310 = 310 # filler line making the file exceed the cap
321
+ CONSTANT_311 = 311 # filler line making the file exceed the cap
322
+ CONSTANT_312 = 312 # filler line making the file exceed the cap
323
+ CONSTANT_313 = 313 # filler line making the file exceed the cap
324
+ CONSTANT_314 = 314 # filler line making the file exceed the cap
325
+ CONSTANT_315 = 315 # filler line making the file exceed the cap
326
+ CONSTANT_316 = 316 # filler line making the file exceed the cap
327
+ CONSTANT_317 = 317 # filler line making the file exceed the cap
328
+ CONSTANT_318 = 318 # filler line making the file exceed the cap
329
+ CONSTANT_319 = 319 # filler line making the file exceed the cap
330
+ CONSTANT_320 = 320 # filler line making the file exceed the cap
331
+ CONSTANT_321 = 321 # filler line making the file exceed the cap
332
+ CONSTANT_322 = 322 # filler line making the file exceed the cap
333
+ CONSTANT_323 = 323 # filler line making the file exceed the cap
334
+ CONSTANT_324 = 324 # filler line making the file exceed the cap
335
+ CONSTANT_325 = 325 # filler line making the file exceed the cap
336
+ CONSTANT_326 = 326 # filler line making the file exceed the cap
337
+ CONSTANT_327 = 327 # filler line making the file exceed the cap
338
+ CONSTANT_328 = 328 # filler line making the file exceed the cap
339
+ CONSTANT_329 = 329 # filler line making the file exceed the cap
340
+ CONSTANT_330 = 330 # filler line making the file exceed the cap
341
+ CONSTANT_331 = 331 # filler line making the file exceed the cap
342
+ CONSTANT_332 = 332 # filler line making the file exceed the cap
343
+ CONSTANT_333 = 333 # filler line making the file exceed the cap
344
+ CONSTANT_334 = 334 # filler line making the file exceed the cap
345
+ CONSTANT_335 = 335 # filler line making the file exceed the cap
346
+ CONSTANT_336 = 336 # filler line making the file exceed the cap
347
+ CONSTANT_337 = 337 # filler line making the file exceed the cap
348
+ CONSTANT_338 = 338 # filler line making the file exceed the cap
349
+ CONSTANT_339 = 339 # filler line making the file exceed the cap
350
+ CONSTANT_340 = 340 # filler line making the file exceed the cap
351
+ CONSTANT_341 = 341 # filler line making the file exceed the cap
352
+ CONSTANT_342 = 342 # filler line making the file exceed the cap
353
+ CONSTANT_343 = 343 # filler line making the file exceed the cap
354
+ CONSTANT_344 = 344 # filler line making the file exceed the cap
355
+ CONSTANT_345 = 345 # filler line making the file exceed the cap
356
+ CONSTANT_346 = 346 # filler line making the file exceed the cap
357
+ CONSTANT_347 = 347 # filler line making the file exceed the cap
358
+ CONSTANT_348 = 348 # filler line making the file exceed the cap
359
+ CONSTANT_349 = 349 # filler line making the file exceed the cap
360
+ CONSTANT_350 = 350 # filler line making the file exceed the cap
361
+ CONSTANT_351 = 351 # filler line making the file exceed the cap
362
+ CONSTANT_352 = 352 # filler line making the file exceed the cap
363
+ CONSTANT_353 = 353 # filler line making the file exceed the cap
364
+ CONSTANT_354 = 354 # filler line making the file exceed the cap
365
+ CONSTANT_355 = 355 # filler line making the file exceed the cap
366
+ CONSTANT_356 = 356 # filler line making the file exceed the cap
367
+ CONSTANT_357 = 357 # filler line making the file exceed the cap
368
+ CONSTANT_358 = 358 # filler line making the file exceed the cap
369
+ CONSTANT_359 = 359 # filler line making the file exceed the cap
370
+ CONSTANT_360 = 360 # filler line making the file exceed the cap
371
+ CONSTANT_361 = 361 # filler line making the file exceed the cap
372
+ CONSTANT_362 = 362 # filler line making the file exceed the cap
373
+ CONSTANT_363 = 363 # filler line making the file exceed the cap
374
+ CONSTANT_364 = 364 # filler line making the file exceed the cap
375
+ CONSTANT_365 = 365 # filler line making the file exceed the cap
376
+ CONSTANT_366 = 366 # filler line making the file exceed the cap
377
+ CONSTANT_367 = 367 # filler line making the file exceed the cap
378
+ CONSTANT_368 = 368 # filler line making the file exceed the cap
379
+ CONSTANT_369 = 369 # filler line making the file exceed the cap
380
+ CONSTANT_370 = 370 # filler line making the file exceed the cap
381
+ CONSTANT_371 = 371 # filler line making the file exceed the cap
382
+ CONSTANT_372 = 372 # filler line making the file exceed the cap
383
+ CONSTANT_373 = 373 # filler line making the file exceed the cap
384
+ CONSTANT_374 = 374 # filler line making the file exceed the cap
385
+ CONSTANT_375 = 375 # filler line making the file exceed the cap
386
+ CONSTANT_376 = 376 # filler line making the file exceed the cap
387
+ CONSTANT_377 = 377 # filler line making the file exceed the cap
388
+ CONSTANT_378 = 378 # filler line making the file exceed the cap
389
+ CONSTANT_379 = 379 # filler line making the file exceed the cap
390
+ CONSTANT_380 = 380 # filler line making the file exceed the cap
391
+ CONSTANT_381 = 381 # filler line making the file exceed the cap
392
+ CONSTANT_382 = 382 # filler line making the file exceed the cap
393
+ CONSTANT_383 = 383 # filler line making the file exceed the cap
394
+ CONSTANT_384 = 384 # filler line making the file exceed the cap
395
+ CONSTANT_385 = 385 # filler line making the file exceed the cap
396
+ CONSTANT_386 = 386 # filler line making the file exceed the cap
397
+ CONSTANT_387 = 387 # filler line making the file exceed the cap
398
+ CONSTANT_388 = 388 # filler line making the file exceed the cap
399
+ CONSTANT_389 = 389 # filler line making the file exceed the cap
400
+ CONSTANT_390 = 390 # filler line making the file exceed the cap
401
+ CONSTANT_391 = 391 # filler line making the file exceed the cap
402
+ CONSTANT_392 = 392 # filler line making the file exceed the cap
403
+ CONSTANT_393 = 393 # filler line making the file exceed the cap
404
+ CONSTANT_394 = 394 # filler line making the file exceed the cap
405
+ CONSTANT_395 = 395 # filler line making the file exceed the cap
406
+ CONSTANT_396 = 396 # filler line making the file exceed the cap
407
+ CONSTANT_397 = 397 # filler line making the file exceed the cap
408
+ CONSTANT_398 = 398 # filler line making the file exceed the cap
409
+ CONSTANT_399 = 399 # filler line making the file exceed the cap
410
+ CONSTANT_400 = 400 # filler line making the file exceed the cap
411
+ CONSTANT_401 = 401 # filler line making the file exceed the cap
412
+ CONSTANT_402 = 402 # filler line making the file exceed the cap
413
+ CONSTANT_403 = 403 # filler line making the file exceed the cap
414
+ CONSTANT_404 = 404 # filler line making the file exceed the cap
415
+ CONSTANT_405 = 405 # filler line making the file exceed the cap
416
+ CONSTANT_406 = 406 # filler line making the file exceed the cap
417
+ CONSTANT_407 = 407 # filler line making the file exceed the cap
418
+ CONSTANT_408 = 408 # filler line making the file exceed the cap
419
+ CONSTANT_409 = 409 # filler line making the file exceed the cap
420
+ CONSTANT_410 = 410 # filler line making the file exceed the cap
421
+ CONSTANT_411 = 411 # filler line making the file exceed the cap
422
+ CONSTANT_412 = 412 # filler line making the file exceed the cap
423
+ CONSTANT_413 = 413 # filler line making the file exceed the cap
424
+ CONSTANT_414 = 414 # filler line making the file exceed the cap
425
+ CONSTANT_415 = 415 # filler line making the file exceed the cap
426
+ CONSTANT_416 = 416 # filler line making the file exceed the cap
427
+ CONSTANT_417 = 417 # filler line making the file exceed the cap
428
+ CONSTANT_418 = 418 # filler line making the file exceed the cap
429
+ CONSTANT_419 = 419 # filler line making the file exceed the cap
430
+ CONSTANT_420 = 420 # filler line making the file exceed the cap
431
+ CONSTANT_421 = 421 # filler line making the file exceed the cap
432
+ CONSTANT_422 = 422 # filler line making the file exceed the cap
433
+ CONSTANT_423 = 423 # filler line making the file exceed the cap
434
+ CONSTANT_424 = 424 # filler line making the file exceed the cap
435
+ CONSTANT_425 = 425 # filler line making the file exceed the cap
436
+ CONSTANT_426 = 426 # filler line making the file exceed the cap
437
+ CONSTANT_427 = 427 # filler line making the file exceed the cap
438
+ CONSTANT_428 = 428 # filler line making the file exceed the cap
439
+ CONSTANT_429 = 429 # filler line making the file exceed the cap
440
+ CONSTANT_430 = 430 # filler line making the file exceed the cap
441
+ CONSTANT_431 = 431 # filler line making the file exceed the cap
442
+ CONSTANT_432 = 432 # filler line making the file exceed the cap
443
+ CONSTANT_433 = 433 # filler line making the file exceed the cap
444
+ CONSTANT_434 = 434 # filler line making the file exceed the cap
445
+ CONSTANT_435 = 435 # filler line making the file exceed the cap
446
+ CONSTANT_436 = 436 # filler line making the file exceed the cap
447
+ CONSTANT_437 = 437 # filler line making the file exceed the cap
448
+ CONSTANT_438 = 438 # filler line making the file exceed the cap
449
+ CONSTANT_439 = 439 # filler line making the file exceed the cap
450
+ CONSTANT_440 = 440 # filler line making the file exceed the cap
451
+ CONSTANT_441 = 441 # filler line making the file exceed the cap
452
+ CONSTANT_442 = 442 # filler line making the file exceed the cap
453
+ CONSTANT_443 = 443 # filler line making the file exceed the cap
454
+ CONSTANT_444 = 444 # filler line making the file exceed the cap
455
+ CONSTANT_445 = 445 # filler line making the file exceed the cap
456
+ CONSTANT_446 = 446 # filler line making the file exceed the cap
457
+ CONSTANT_447 = 447 # filler line making the file exceed the cap
458
+ CONSTANT_448 = 448 # filler line making the file exceed the cap
459
+ CONSTANT_449 = 449 # filler line making the file exceed the cap
460
+ CONSTANT_450 = 450 # filler line making the file exceed the cap
461
+ CONSTANT_451 = 451 # filler line making the file exceed the cap
462
+ CONSTANT_452 = 452 # filler line making the file exceed the cap
463
+ CONSTANT_453 = 453 # filler line making the file exceed the cap
464
+ CONSTANT_454 = 454 # filler line making the file exceed the cap
465
+ CONSTANT_455 = 455 # filler line making the file exceed the cap
466
+ CONSTANT_456 = 456 # filler line making the file exceed the cap
467
+ CONSTANT_457 = 457 # filler line making the file exceed the cap
468
+ CONSTANT_458 = 458 # filler line making the file exceed the cap
469
+ CONSTANT_459 = 459 # filler line making the file exceed the cap
470
+ CONSTANT_460 = 460 # filler line making the file exceed the cap
471
+ CONSTANT_461 = 461 # filler line making the file exceed the cap
472
+ CONSTANT_462 = 462 # filler line making the file exceed the cap
473
+ CONSTANT_463 = 463 # filler line making the file exceed the cap
474
+ CONSTANT_464 = 464 # filler line making the file exceed the cap
475
+ CONSTANT_465 = 465 # filler line making the file exceed the cap
476
+ CONSTANT_466 = 466 # filler line making the file exceed the cap
477
+ CONSTANT_467 = 467 # filler line making the file exceed the cap
478
+ CONSTANT_468 = 468 # filler line making the file exceed the cap
479
+ CONSTANT_469 = 469 # filler line making the file exceed the cap
480
+ CONSTANT_470 = 470 # filler line making the file exceed the cap
481
+ CONSTANT_471 = 471 # filler line making the file exceed the cap
482
+ CONSTANT_472 = 472 # filler line making the file exceed the cap
483
+ CONSTANT_473 = 473 # filler line making the file exceed the cap
484
+ CONSTANT_474 = 474 # filler line making the file exceed the cap
485
+ CONSTANT_475 = 475 # filler line making the file exceed the cap
486
+ CONSTANT_476 = 476 # filler line making the file exceed the cap
487
+ CONSTANT_477 = 477 # filler line making the file exceed the cap
488
+ CONSTANT_478 = 478 # filler line making the file exceed the cap
489
+ CONSTANT_479 = 479 # filler line making the file exceed the cap
490
+ CONSTANT_480 = 480 # filler line making the file exceed the cap
491
+ CONSTANT_481 = 481 # filler line making the file exceed the cap
492
+ CONSTANT_482 = 482 # filler line making the file exceed the cap
493
+ CONSTANT_483 = 483 # filler line making the file exceed the cap
494
+ CONSTANT_484 = 484 # filler line making the file exceed the cap
495
+ CONSTANT_485 = 485 # filler line making the file exceed the cap
496
+ CONSTANT_486 = 486 # filler line making the file exceed the cap
497
+ CONSTANT_487 = 487 # filler line making the file exceed the cap
498
+ CONSTANT_488 = 488 # filler line making the file exceed the cap
499
+ CONSTANT_489 = 489 # filler line making the file exceed the cap
500
+ CONSTANT_490 = 490 # filler line making the file exceed the cap
501
+ CONSTANT_491 = 491 # filler line making the file exceed the cap
502
+ CONSTANT_492 = 492 # filler line making the file exceed the cap
503
+ CONSTANT_493 = 493 # filler line making the file exceed the cap
504
+ CONSTANT_494 = 494 # filler line making the file exceed the cap
505
+ CONSTANT_495 = 495 # filler line making the file exceed the cap
506
+ CONSTANT_496 = 496 # filler line making the file exceed the cap
507
+ CONSTANT_497 = 497 # filler line making the file exceed the cap
508
+ CONSTANT_498 = 498 # filler line making the file exceed the cap
509
+ CONSTANT_499 = 499 # filler line making the file exceed the cap
510
+ CONSTANT_500 = 500 # filler line making the file exceed the cap
511
+ CONSTANT_501 = 501 # filler line making the file exceed the cap
512
+ CONSTANT_502 = 502 # filler line making the file exceed the cap
513
+ CONSTANT_503 = 503 # filler line making the file exceed the cap
514
+ CONSTANT_504 = 504 # filler line making the file exceed the cap
515
+ CONSTANT_505 = 505 # filler line making the file exceed the cap
516
+ CONSTANT_506 = 506 # filler line making the file exceed the cap
517
+ CONSTANT_507 = 507 # filler line making the file exceed the cap
518
+ CONSTANT_508 = 508 # filler line making the file exceed the cap
519
+ CONSTANT_509 = 509 # filler line making the file exceed the cap
520
+ CONSTANT_510 = 510 # filler line making the file exceed the cap
521
+ CONSTANT_511 = 511 # filler line making the file exceed the cap
522
+ CONSTANT_512 = 512 # filler line making the file exceed the cap
523
+ CONSTANT_513 = 513 # filler line making the file exceed the cap
524
+ CONSTANT_514 = 514 # filler line making the file exceed the cap
525
+ CONSTANT_515 = 515 # filler line making the file exceed the cap
526
+ CONSTANT_516 = 516 # filler line making the file exceed the cap
527
+ CONSTANT_517 = 517 # filler line making the file exceed the cap
528
+ CONSTANT_518 = 518 # filler line making the file exceed the cap
529
+ CONSTANT_519 = 519 # filler line making the file exceed the cap
530
+ CONSTANT_520 = 520 # filler line making the file exceed the cap
@@ -0,0 +1,7 @@
1
+ import logging
2
+
3
+ log = logging.getLogger(__name__)
4
+
5
+
6
+ def run():
7
+ log.info("hello")
@@ -0,0 +1,2 @@
1
+ def run():
2
+ print("hello")
@@ -0,0 +1,12 @@
1
+ """Compliant: the composition root only composes; modules own every route."""
2
+
3
+ from terp.core import create_app
4
+
5
+ from app.modules.notes.module import module as notes_module
6
+
7
+
8
+ def build():
9
+ return create_app([notes_module])
10
+
11
+
12
+ app = build()
@@ -0,0 +1,10 @@
1
+ """Violation: a verb route registered on the composed app bypasses the module guard."""
2
+
3
+ from terp.core import create_app
4
+
5
+ app = create_app([])
6
+
7
+
8
+ @app.get("/api/v1/hacks/")
9
+ def list_hacks() -> dict:
10
+ return {}
@@ -0,0 +1,16 @@
1
+ """Violation: raw surface mounted on the app returned by the composition factory."""
2
+
3
+ from fastapi import APIRouter
4
+
5
+ from terp.core import create_app
6
+
7
+
8
+ def build():
9
+ return create_app([])
10
+
11
+
12
+ app = build()
13
+
14
+ router = APIRouter()
15
+ app.include_router(router, prefix="/api/v1/raw")
16
+ app.mount("/static", object())
@@ -0,0 +1,12 @@
1
+ """Violation: annotated create_app binding plus legacy route decorator."""
2
+
3
+ from fastapi import FastAPI
4
+
5
+ from terp.core import create_app
6
+
7
+ app: FastAPI = create_app([])
8
+
9
+
10
+ @app.route("/api/v1/raw")
11
+ def raw(request):
12
+ return {}
@@ -0,0 +1,10 @@
1
+ """Violation: aliased create_app binding plus websocket route decorator."""
2
+
3
+ from terp.core import create_app as make_app
4
+
5
+ app = make_app([])
6
+
7
+
8
+ @app.websocket_route("/ws")
9
+ async def ws(websocket):
10
+ return None
@@ -0,0 +1,12 @@
1
+ """Violation: factory returns a local create_app result; app.router adds a route."""
2
+
3
+ from terp.core import create_app
4
+
5
+
6
+ def build():
7
+ app = create_app([])
8
+ return app
9
+
10
+
11
+ app = build()
12
+ app.router.add_api_route("/api/v1/raw", endpoint, methods=["GET"])
@@ -0,0 +1,10 @@
1
+ """Violation: a lifecycle hook registered on the composed app (ungated executable surface)."""
2
+
3
+ from terp.core import create_app
4
+
5
+ app = create_app([])
6
+
7
+
8
+ @app.on_event("startup")
9
+ def warm_cache() -> None:
10
+ pass
@@ -0,0 +1,5 @@
1
+ from terp.core import BaseService
2
+
3
+
4
+ class NoteService(BaseService):
5
+ model = Note
@@ -0,0 +1,2 @@
1
+ def purge(session):
2
+ session.connection().execute('DELETE FROM notes')
@@ -0,0 +1,2 @@
1
+ def purge(session):
2
+ return session.get_bind()