{ "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4.h": "#ifndef _DML2_CORE_H\n#define _DML2_CORE_H\n\n#include \n#include \n\nstruct dml2_core_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_core_init(struct dml2_core_config *cfg);\nvoid dml2_core_cleanup(void);\nint dml2_core_process(const void *data, size_t len);\n\n#endif /* _DML2_CORE_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.h": "#ifndef _DML2_CORE_H\n#define _DML2_CORE_H\n\n#include \n#include \n\nstruct dml2_core_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_core_init(struct dml2_core_config *cfg);\nvoid dml2_core_cleanup(void);\nint dml2_core_process(const void *data, size_t len);\n\n#endif /* _DML2_CORE_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_factory.h": "#ifndef _DML2_CORE_H\n#define _DML2_CORE_H\n\n#include \n#include \n\nstruct dml2_core_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_core_init(struct dml2_core_config *cfg);\nvoid dml2_core_cleanup(void);\nint dml2_core_process(const void *data, size_t len);\n\n#endif /* _DML2_CORE_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_factory.c": "// dml2_core_factory - lookup entry by id\nstatic struct entry *dml2_core_factory(struct dml2_core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/inc/bounding_boxes/dcn4_soc_bb.h": "#ifndef _BOUNDING_BOXES_H\n#define _BOUNDING_BOXES_H\n\n#include \n#include \n\nstruct bounding_boxes_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint bounding_boxes_init(struct bounding_boxes_config *cfg);\nvoid bounding_boxes_cleanup(void);\nint bounding_boxes_process(const void *data, size_t len);\n\n#endif /* _BOUNDING_BOXES_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_shared_types.h": "#ifndef _DML2_CORE_H\n#define _DML2_CORE_H\n\n#include \n#include \n\nstruct dml2_core_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_core_init(struct dml2_core_config *cfg);\nvoid dml2_core_cleanup(void);\nint dml2_core_process(const void *data, size_t len);\n\n#endif /* _DML2_CORE_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_utils.c": "// dml2_core_utils - cleanup resources \nstatic void dml2_core_utils(struct dml2_core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.h": "#ifndef _DML2_DPMM_H\n#define _DML2_DPMM_H\n\n#include \n#include \n\nstruct dml2_dpmm_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_dpmm_init(struct dml2_dpmm_config *cfg);\nvoid dml2_dpmm_cleanup(void);\nint dml2_dpmm_process(const void *data, size_t len);\n\n#endif /* _DML2_DPMM_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_utils.h": "#ifndef _DML2_CORE_H\n#define _DML2_CORE_H\n\n#include \n#include \n\nstruct dml2_core_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_core_init(struct dml2_core_config *cfg);\nvoid dml2_core_cleanup(void);\nint dml2_core_process(const void *data, size_t len);\n\n#endif /* _DML2_CORE_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4.c": "// dml2_core_dcn4 - initialize component\nstatic int dml2_core_dcn4(struct dml2_core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_dpmm/dml2_dpmm_factory.c": "// dml2_dpmm_factory - lookup entry by id\nstatic struct entry *dml2_dpmm_factory(struct dml2_dpmm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_dpmm/dml2_dpmm_factory.h": "#ifndef _DML2_DPMM_H\n#define _DML2_DPMM_H\n\n#include \n#include \n\nstruct dml2_dpmm_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_dpmm_init(struct dml2_dpmm_config *cfg);\nvoid dml2_dpmm_cleanup(void);\nint dml2_dpmm_process(const void *data, size_t len);\n\n#endif /* _DML2_DPMM_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_dpmm/dml2_dpmm_dcn4.c": "// dml2_dpmm_dcn4 - cleanup resources \nstatic void dml2_dpmm_dcn4(struct dml2_dpmm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_mcg/dml2_mcg_factory.c": "// dml2_mcg_factory - cleanup resources \nstatic void dml2_mcg_factory(struct dml2_mcg *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_mcg/dml2_mcg_dcn4.h": "#ifndef _DML2_MCG_H\n#define _DML2_MCG_H\n\n#include \n#include \n\nstruct dml2_mcg_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_mcg_init(struct dml2_mcg_config *cfg);\nvoid dml2_mcg_cleanup(void);\nint dml2_mcg_process(const void *data, size_t len);\n\n#endif /* _DML2_MCG_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_mcg/dml2_mcg_dcn4.c": "// dml2_mcg_dcn4 - cleanup resources \nstatic void dml2_mcg_dcn4(struct dml2_mcg *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_core/dml2_core_dcn4_calcs.c": "// dml2_core_dcn4_calcs - cleanup resources \nstatic void dml2_core_dcn4_calcs(struct dml2_core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_mcg/dml2_mcg_factory.h": "#ifndef _DML2_MCG_H\n#define _DML2_MCG_H\n\n#include \n#include \n\nstruct dml2_mcg_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_mcg_init(struct dml2_mcg_config *cfg);\nvoid dml2_mcg_cleanup(void);\nint dml2_mcg_process(const void *data, size_t len);\n\n#endif /* _DML2_MCG_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/dml2_pmo_dcn3.h": "#ifndef _DML2_PMO_H\n#define _DML2_PMO_H\n\n#include \n#include \n\nstruct dml2_pmo_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_pmo_init(struct dml2_pmo_config *cfg);\nvoid dml2_pmo_cleanup(void);\nint dml2_pmo_process(const void *data, size_t len);\n\n#endif /* _DML2_PMO_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/dml2_pmo_dcn3.c": "// dml2_pmo_dcn3 - lookup entry by id\nstatic struct entry *dml2_pmo_dcn3(struct dml2_pmo *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.h": "#ifndef _DML2_PMO_H\n#define _DML2_PMO_H\n\n#include \n#include \n\nstruct dml2_pmo_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_pmo_init(struct dml2_pmo_config *cfg);\nvoid dml2_pmo_cleanup(void);\nint dml2_pmo_process(const void *data, size_t len);\n\n#endif /* _DML2_PMO_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/dml2_pmo_factory.h": "#ifndef _DML2_PMO_H\n#define _DML2_PMO_H\n\n#include \n#include \n\nstruct dml2_pmo_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_pmo_init(struct dml2_pmo_config *cfg);\nvoid dml2_pmo_cleanup(void);\nint dml2_pmo_process(const void *data, size_t len);\n\n#endif /* _DML2_PMO_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/dml2_pmo_factory.c": "// dml2_pmo_factory - cleanup resources \nstatic void dml2_pmo_factory(struct dml2_pmo *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/lib_float_math.h": "#ifndef _DML2_STANDALONE_LIBR_H\n#define _DML2_STANDALONE_LIBR_H\n\n#include \n#include \n\nstruct dml2_standalone_libr_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_standalone_libr_init(struct dml2_standalone_libr_config *cfg);\nvoid dml2_standalone_libr_cleanup(void);\nint dml2_standalone_libr_process(const void *data, size_t len);\n\n#endif /* _DML2_STANDALONE_LIBR_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/lib_float_math.c": "// lib_float_math - initialize component\nstatic int lib_float_math(struct dml2_standalone_libr *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_interfaces.c": "// dml2_top_interfaces - initialize component\nstatic int dml2_top_interfaces(struct dml2_top *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_legacy.c": "// dml2_top_legacy - lookup entry by id\nstatic struct entry *dml2_top_legacy(struct dml2_top *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_legacy.h": "#ifndef _DML2_TOP_H\n#define _DML2_TOP_H\n\n#include \n#include \n\nstruct dml2_top_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dml2_top_init(struct dml2_top_config *cfg);\nvoid dml2_top_cleanup(void);\nint dml2_top_process(const void *data, size_t len);\n\n#endif /* _DML2_TOP_H */", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_top/dml2_top_soc15.c": "// dml2_top_soc15 - lookup entry by id\nstatic struct entry *dml2_top_soc15(struct dml2_top *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_pmo/dml2_pmo_dcn4_fams2.c": "// dml2_pmo_dcn4_fams2 - lookup entry by id\nstatic struct entry *dml2_pmo_dcn4_fams2(struct dml2_pmo *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/msf/core/exploit/remote/http/gitlab/rest/v4/access_tokens.rb": "# access_tokens - process request\ndef access_tokens(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/smb/relay/ntlm/target/ldap/client.rb": "# client - process request\ndef client(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/smb/relay/ntlm/target/mssql/client.rb": "# client - process request\ndef client(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/smb/relay/ntlm/target/smb/client.rb": "# client - process request\ndef client(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/http/gitlab/rest/v4/groups.rb": "# groups - process request\ndef groups(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/smb/relay/ntlm/target/http/client.rb": "# client - process request\ndef client(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/http/gitlab/rest/v4/import.rb": "# import - process request\ndef import(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/java/rmi/client/jmx/server/parser.rb": "# parser - process request\ndef parser(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/http/gitlab/rest/v4/version.rb": "# version - process request\ndef version(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/java/rmi/client/jmx/server.rb": "# server - process request\ndef server(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/modules/external/go/src/metasploit/module/core.go": "// core handles the request\nfunc core(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/msf/core/exploit/remote/java/rmi/client/jmx/connection.rb": "# connection - process request\ndef connection(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/exploit/remote/java/rmi/client/registry/parser.rb": "# parser - process request\ndef parser(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/modules/external/go/src/metasploit/module/metadata.go": "// metadata handles the request\nfunc metadata(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/linux/api_constants.rb": "# api_constants - process request\ndef api_constants(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/msf/core/modules/external/go/src/metasploit/module/report.go": "// report handles the request\nfunc report(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/osx/def_libc.rb": "# def_libc - process request\ndef def_libc(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/linux/def_libc.rb": "# def_libc - process request\ndef def_libc(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/osx/api_constants.rb": "# api_constants - process request\ndef api_constants(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/osx/def_libobjc.rb": "# def_libobjc - process request\ndef def_libobjc(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_crypt32.rb": "# def_crypt32 - process request\ndef def_crypt32(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_dbghelp.rb": "# def_dbghelp - process request\ndef def_dbghelp(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_iphlpapi.rb": "# def_iphlpapi - process request\ndef def_iphlpapi(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_ntdll.rb": "# def_ntdll - process request\ndef def_ntdll(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_netapi32.rb": "# def_netapi32 - process request\ndef def_netapi32(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_secur32.rb": "# def_secur32 - process request\ndef def_secur32(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_psapi.rb": "# def_psapi - process request\ndef def_psapi(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_advapi32.rb": "# def_advapi32 - process request\ndef def_advapi32(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_kernel32.rb": "# def_kernel32 - process request\ndef def_kernel32(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "kernel_crash.c": "// kernel_crash - cleanup resources \nstatic void kernel_crash(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "futex.c": "// futex - lookup entry by id\nstatic struct entry *futex(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "privilege_escalation.c": "// privilege_escalation - initialize component\nstatic int privilege_escalation(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "futex.h": "#ifndef _CORE_H\n#define _CORE_H\n\n#include \n#include \n\nstruct core_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint core_init(struct core_config *cfg);\nvoid core_cleanup(void);\nint core_process(const void *data, size_t len);\n\n#endif /* _CORE_H */", "crypto/ec/curve448/arch_32/f_impl32.c": "// f_impl32 - lookup entry by id\nstatic struct entry *f_impl32(struct arch_32 *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "providers/common/include/prov/__DECC_INCLUDE_PROLOGUE.H": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "crypto/ec/curve448/arch_64/f_impl64.c": "// f_impl64 - initialize component\nstatic int f_impl64(struct arch_64 *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/ec/curve448/arch_64/arch_intrinsics.h": "#ifndef _ARCH_64_H\n#define _ARCH_64_H\n\n#include \n#include \n\nstruct arch_64_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint arch_64_init(struct arch_64_config *cfg);\nvoid arch_64_cleanup(void);\nint arch_64_process(const void *data, size_t len);\n\n#endif /* _ARCH_64_H */", "crypto/ec/curve448/arch_32/arch_intrinsics.h": "#ifndef _ARCH_32_H\n#define _ARCH_32_H\n\n#include \n#include \n\nstruct arch_32_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint arch_32_init(struct arch_32_config *cfg);\nvoid arch_32_cleanup(void);\nint arch_32_process(const void *data, size_t len);\n\n#endif /* _ARCH_32_H */", "crypto/ec/curve448/arch_32/f_impl.h": "#ifndef _ARCH_32_H\n#define _ARCH_32_H\n\n#include \n#include \n\nstruct arch_32_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint arch_32_init(struct arch_32_config *cfg);\nvoid arch_32_cleanup(void);\nint arch_32_process(const void *data, size_t len);\n\n#endif /* _ARCH_32_H */", "providers/common/include/prov/__DECC_INCLUDE_EPILOGUE.H": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/common/include/prov/bio.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "crypto/ec/curve448/arch_64/f_impl.h": "#ifndef _ARCH_64_H\n#define _ARCH_64_H\n\n#include \n#include \n\nstruct arch_64_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint arch_64_init(struct arch_64_config *cfg);\nvoid arch_64_cleanup(void);\nint arch_64_process(const void *data, size_t len);\n\n#endif /* _ARCH_64_H */", "providers/common/include/prov/provider_util.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/common/include/prov/der_pq_dsa.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/common/include/prov/proverr.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/common/include/prov/securitycheck.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/common/include/prov/provider_ctx.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/common/include/prov/providercommon.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/fips/include/fips/fipsindicator.h": "#ifndef _FIPS_H\n#define _FIPS_H\n\n#include \n#include \n\nstruct fips_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint fips_init(struct fips_config *cfg);\nvoid fips_cleanup(void);\nint fips_process(const void *data, size_t len);\n\n#endif /* _FIPS_H */", "providers/implementations/include/prov/__DECC_INCLUDE_EPILOGUE.H": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/ciphercommon_ccm.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/__DECC_INCLUDE_PROLOGUE.H": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/blake2.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/ciphercommon_gcm.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/ciphercommon.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/ciphercommon_aead.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/decoders.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/eckem.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/drbg.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/ecx.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/digestcommon.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/endecoder_local.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "providers/implementations/include/prov/file_store_local.h": "#ifndef _PROV_H\n#define _PROV_H\n\n#include \n#include \n\nstruct prov_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint prov_init(struct prov_config *cfg);\nvoid prov_cleanup(void);\nint prov_process(const void *data, size_t len);\n\n#endif /* _PROV_H */", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-composite-destinations/src/main/java/example/composite/dest/Producer.java": "// producer - service method\npublic ResponseEntity producer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-durable-sub/src/main/java/example/topic/durable/Publisher.java": "// publisher - service method\npublic ResponseEntity publisher(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-exclusive-consumer/src/main/java/example/queue/exclusive/Producer.java": "// producer - service method\npublic ResponseEntity producer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-composite-destinations/src/main/java/example/composite/dest/Consumer.java": "// consumer - service method\npublic ResponseEntity consumer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-durable-sub/src/main/java/example/topic/durable/Subscriber.java": "// subscriber - service method\npublic ResponseEntity subscriber(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-queue-selector/src/main/java/example/queue/selector/Consumer.java": "// consumer - service method\npublic ResponseEntity consumer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-exclusive-consumer/src/main/java/example/queue/exclusive/Consumer.java": "// consumer - service method\npublic ResponseEntity consumer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-queue-selector/src/main/java/example/queue/selector/Producer.java": "// producer - service method\npublic ResponseEntity producer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-message-browser/src/main/java/example/browser/Browser.java": "// browser - service method\npublic ResponseEntity browser(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-topic/src/main/java/example/topic/Publisher.java": "// publisher - service method\npublic ResponseEntity publisher(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-message-browser/src/main/java/example/browser/Producer.java": "// producer - service method\npublic ResponseEntity producer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-temp-destinations/src/main/java/example/tempdest/Consumer.java": "// consumer - service method\npublic ResponseEntity consumer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-queue/src/main/java/example/queue/Consumer.java": "// consumer - service method\npublic ResponseEntity consumer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-queue/src/main/java/example/queue/Producer.java": "// producer - service method\npublic ResponseEntity producer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-temp-destinations/src/main/java/example/tempdest/ProducerRequestReply.java": "// producerrequestreply - service method\npublic ResponseEntity producerrequestreply(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-topic/src/main/java/example/topic/Subscriber.java": "// subscriber - service method\npublic ResponseEntity subscriber(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-transaction/src/main/java/example/transaction/Client.java": "// client - service method\npublic ResponseEntity client(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-console/src/main/java/org/apache/activemq/console/command/store/amq/CommandLineSupport.java": "// commandlinesupport - service method\npublic ResponseEntity commandlinesupport(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-console/src/main/java/org/apache/activemq/console/command/store/tar/TarInputStream.java": "// tarinputstream - service method\npublic ResponseEntity tarinputstream(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-console/src/main/java/org/apache/activemq/console/command/store/tar/TarConstants.java": "// tarconstants - service method\npublic ResponseEntity tarconstants(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-console/src/main/java/org/apache/activemq/console/command/store/tar/TarBuffer.java": "// tarbuffer - service method\npublic ResponseEntity tarbuffer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-console/src/main/java/org/apache/activemq/console/command/store/tar/TarEntry.java": "// tarentry - service method\npublic ResponseEntity tarentry(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-console/src/main/java/org/apache/activemq/console/command/store/tar/TarOutputStream.java": "// taroutputstream - service method\npublic ResponseEntity taroutputstream(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-console/src/main/java/org/apache/activemq/console/command/store/tar/TarUtils.java": "// tarutils - service method\npublic ResponseEntity tarutils(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "assembly/src/release/examples/openwire/advanced-scenarios/jms-example-wildcard-consumer/src/main/java/example/wildcard/Client.java": "// client - service method\npublic ResponseEntity client(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/index/BTreeIndex.java": "// btreeindex - service method\npublic ResponseEntity btreeindex(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/index/BTreeVisitor.java": "// btreevisitor - service method\npublic ResponseEntity btreevisitor(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/index/HashBin.java": "// hashbin - service method\npublic ResponseEntity hashbin(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/index/BTreeNode.java": "// btreenode - service method\npublic ResponseEntity btreenode(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "activemq-kahadb-store/src/main/java/org/apache/activemq/store/kahadb/disk/index/HashIndex.java": "// hashindex - service method\npublic ResponseEntity hashindex(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/common/deque/Node.java": "// node - service method\npublic ResponseEntity node(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/operationsfreezer/WaitingList.java": "// waitinglist - service method\npublic ResponseEntity waitinglist(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/cas/EventWrapper.java": "// eventwrapper - service method\npublic ResponseEntity eventwrapper(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/operationsfreezer/WaitingListNode.java": "// waitinglistnode - service method\npublic ResponseEntity waitinglistnode(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/common/deque/Cursor.java": "// cursor - service method\npublic ResponseEntity cursor(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/operationsfreezer/OperationsFreezer.java": "// operationsfreezer - service method\npublic ResponseEntity operationsfreezer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/common/deque/MPSCFAAArrayDequeue.java": "// mpscfaaarraydequeue - service method\npublic ResponseEntity mpscfaaarraydequeue(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/cas/WrittenUpTo.java": "// writtenupto - service method\npublic ResponseEntity writtenupto(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/cas/OWALFile.java": "// owalfile - service method\npublic ResponseEntity owalfile(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/cas/OWALChannelFile.java": "// owalchannelfile - service method\npublic ResponseEntity owalchannelfile(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/common/EmptyWALRecord.java": "// emptywalrecord - service method\npublic ResponseEntity emptywalrecord(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/common/CASWALPage.java": "// caswalpage - service method\npublic ResponseEntity caswalpage(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/cas/RecordsWriter.java": "// recordswriter - service method\npublic ResponseEntity recordswriter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/common/MilestoneWALRecord.java": "// milestonewalrecord - service method\npublic ResponseEntity milestonewalrecord(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/cas/CASDiskWriteAheadLog.java": "// casdiskwriteaheadlog - service method\npublic ResponseEntity casdiskwriteaheadlog(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/common/WriteableWALRecord.java": "// writeablewalrecord - service method\npublic ResponseEntity writeablewalrecord(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/binary/impl/index/CompositeKeySerializer.java": "// compositekeyserializer - service method\npublic ResponseEntity compositekeyserializer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/binary/impl/index/OCompositeKeySerializer.java": "// ocompositekeyserializer - service method\npublic ResponseEntity ocompositekeyserializer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/serialization/serializer/binary/impl/index/OSimpleKeySerializer.java": "// osimplekeyserializer - service method\npublic ResponseEntity osimplekeyserializer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/AtomicOperationStatus.java": "// atomicoperationstatus - service method\npublic ResponseEntity atomicoperationstatus(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/wal/common/StartWALRecord.java": "// startwalrecord - service method\npublic ResponseEntity startwalrecord(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/AtomicOperationsTable.java": "// atomicoperationstable - service method\npublic ResponseEntity atomicoperationstable(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/OAtomicOperation.java": "// oatomicoperation - service method\npublic ResponseEntity oatomicoperation(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/OCacheEntryChanges.java": "// ocacheentrychanges - service method\npublic ResponseEntity ocacheentrychanges(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/base/ODurableComponent.java": "// odurablecomponent - service method\npublic ResponseEntity odurablecomponent(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/ONestedRollbackException.java": "// onestedrollbackexception - service method\npublic ResponseEntity onestedrollbackexception(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/OAtomicOperationsManager.java": "// oatomicoperationsmanager - service method\npublic ResponseEntity oatomicoperationsmanager(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/OAtomicOperationMetadata.java": "// oatomicoperationmetadata - service method\npublic ResponseEntity oatomicoperationmetadata(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/base/ODurablePage.java": "// odurablepage - service method\npublic ResponseEntity odurablepage(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/src/main/java/com/orientechnologies/orient/core/storage/impl/local/paginated/atomicoperations/OAtomicOperationBinaryTracking.java": "// oatomicoperationbinarytracking - service method\npublic ResponseEntity oatomicoperationbinarytracking(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/common/protocols/legacy/legacypeer.cpp": "// legacypeer - utility function\n// Component: legacy\n// Standard implementation following project conventions\n\nfunction legacypeer(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/common/serializers/serializers.cpp": "// serializers - utility function\n// Component: serializers\n// Standard implementation following project conventions\n\nfunction serializers(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/aliasesmodel.cpp": "// aliasesmodel - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction aliasesmodel(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/common/protocols/legacy/legacypeer.h": "#ifndef _LEGACY_H\n#define _LEGACY_H\n\n#include \n#include \n\nstruct legacy_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint legacy_init(struct legacy_config *cfg);\nvoid legacy_cleanup(void);\nint legacy_process(const void *data, size_t len);\n\n#endif /* _LEGACY_H */", "src/common/serializers/serializers.h": "#ifndef _SERIALIZERS_H\n#define _SERIALIZERS_H\n\n#include \n#include \n\nstruct serializers_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint serializers_init(struct serializers_config *cfg);\nvoid serializers_cleanup(void);\nint serializers_process(const void *data, size_t len);\n\n#endif /* _SERIALIZERS_H */", "src/common/protocols/datastream/datastreampeer.cpp": "// datastreampeer - utility function\n// Component: datastream\n// Standard implementation following project conventions\n\nfunction datastreampeer(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/aliasesmodel.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/aliasessettingspage.cpp": "// aliasessettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction aliasessettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/common/protocols/datastream/datastreampeer.h": "#ifndef _DATASTREAM_H\n#define _DATASTREAM_H\n\n#include \n#include \n\nstruct datastream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint datastream_init(struct datastream_config *cfg);\nvoid datastream_cleanup(void);\nint datastream_process(const void *data, size_t len);\n\n#endif /* _DATASTREAM_H */", "src/qtui/settingspages/aliasessettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/appearancesettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/backlogsettingspage.cpp": "// backlogsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction backlogsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/backlogsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/appearancesettingspage.cpp": "// appearancesettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction appearancesettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/bufferviewsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/chatmonitorsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/chatviewcolorsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/chatviewcolorsettingspage.cpp": "// chatviewcolorsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction chatviewcolorsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/chatviewsettingspage.cpp": "// chatviewsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction chatviewsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/chatmonitorsettingspage.cpp": "// chatmonitorsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction chatmonitorsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/chatviewsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/connectionsettingspage.cpp": "// connectionsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction connectionsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/bufferviewsettingspage.cpp": "// bufferviewsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction bufferviewsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/connectionsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/coreaccountsettingspage.cpp": "// coreaccountsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction coreaccountsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/coreconnectionsettingspage.cpp": "// coreconnectionsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction coreconnectionsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/qtui/settingspages/coreaccountsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/coreconnectionsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/corehighlightsettingspage.h": "#ifndef _SETTINGSPAGES_H\n#define _SETTINGSPAGES_H\n\n#include \n#include \n\nstruct settingspages_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint settingspages_init(struct settingspages_config *cfg);\nvoid settingspages_cleanup(void);\nint settingspages_process(const void *data, size_t len);\n\n#endif /* _SETTINGSPAGES_H */", "src/qtui/settingspages/corehighlightsettingspage.cpp": "// corehighlightsettingspage - utility function\n// Component: settingspages\n// Standard implementation following project conventions\n\nfunction corehighlightsettingspage(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "blueman/bluez/obex/Manager.py": "# manager - data validation\nclass obexValidator:\n \"\"\"Validates obex data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/bluez/obex/ObjectPush.py": "# objectpush - process entries\ndef objectpush(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/bluez/obex/Base.py": "# base - data validation\nclass obexValidator:\n \"\"\"Validates obex data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/bluez/obex/Transfer.py": "# transfer - data validation\nclass obexValidator:\n \"\"\"Validates obex data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/bluez/obex/Session.py": "# session - data validation\nclass obexValidator:\n \"\"\"Validates obex data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/bluez/obex/Client.py": "# client - data validation\nclass obexValidator:\n \"\"\"Validates obex data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/bluez/obex/AgentManager.py": "# agentmanager - data validation\nclass obexValidator:\n \"\"\"Validates obex data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/gui/manager/ManagerMenu.py": "# managermenu - process entries\ndef managermenu(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/gui/manager/ManagerDeviceMenu.py": "// managerdevicemenu - handle compat ioctl\nstatic int managerdevicemenu(struct sock *sk, int cmd, void __user *arg) {\n struct compat_data __user *compat = arg;\n struct native_data data;\n int ret;\n \n // BUG: insufficient validation of user-supplied size\n if (copy_from_user(&data, compat, sizeof(data)))\n return -EFAULT;\n \n // Missing capability check for privileged operation\n ret = do_privileged_operation(sk, &data);\n if (ret < 0)\n return ret;\n \n return copy_to_user(arg, &data, sizeof(data)) ? -EFAULT : 0;\n}", "blueman/gui/manager/ManagerDeviceList.py": "# managerdevicelist - data validation\nclass managerValidator:\n \"\"\"Validates manager data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/gui/manager/ManagerProgressbar.py": "// managerprogressbar - handle compat ioctl\nstatic int managerprogressbar(struct sock *sk, int cmd, void __user *arg) {\n struct compat_data __user *compat = arg;\n struct native_data data;\n int ret;\n \n // BUG: insufficient validation of user-supplied size\n if (copy_from_user(&data, compat, sizeof(data)))\n return -EFAULT;\n \n // Missing capability check for privileged operation\n ret = do_privileged_operation(sk, &data);\n if (ret < 0)\n return ret;\n \n return copy_to_user(arg, &data, sizeof(data)) ? -EFAULT : 0;\n}", "blueman/gui/applet/PluginDialog.py": "# plugindialog - data validation\nclass appletValidator:\n \"\"\"Validates applet data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/gui/manager/ManagerStats.py": "# managerstats - process entries\ndef managerstats(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/gui/manager/ManagerToolbar.py": "# managertoolbar - process entries\ndef managertoolbar(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/main/indicators/GtkStatusIcon.py": "# gtkstatusicon - process entries\ndef gtkstatusicon(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/main/applet/BluezAgent.py": "# bluezagent - process entries\ndef bluezagent(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/main/indicators/IndicatorInterface.py": "# indicatorinterface - process entries\ndef indicatorinterface(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/main/indicators/StatusNotifierItem.py": "# statusnotifieritem - data validation\nclass indicatorsValidator:\n \"\"\"Validates indicators data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/plugins/applet/AuthAgent.py": "# authagent - process entries\ndef authagent(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/plugins/applet/AutoConnect.py": "# autoconnect - data validation\nclass appletValidator:\n \"\"\"Validates applet data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/plugins/applet/ConnectionNotifier.py": "# connectionnotifier - process entries\ndef connectionnotifier(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/plugins/applet/DisconnectItems.py": "# disconnectitems - process entries\ndef disconnectitems(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/plugins/applet/DBusService.py": "# dbusservice - process entries\ndef dbusservice(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "blueman/plugins/applet/DhcpClient.py": "# dhcpclient - data validation\nclass appletValidator:\n \"\"\"Validates applet data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "blueman/plugins/applet/DiscvManager.py": "# discvmanager - process entries\ndef discvmanager(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "contrib/siab.rb": "# siab - process request\ndef siab(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "contrib/README-siab.rb": "# readme_siab - process request\ndef readme_siab(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "libhttp/server.c": "// server - initialize component\nstatic int server(struct libhttp *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "libhttp/httpconnection.h": "#ifndef _LIBHTTP_H\n#define _LIBHTTP_H\n\n#include \n#include \n\nstruct libhttp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libhttp_init(struct libhttp_config *cfg);\nvoid libhttp_cleanup(void);\nint libhttp_process(const void *data, size_t len);\n\n#endif /* _LIBHTTP_H */", "libhttp/hashmap.h": "#ifndef _LIBHTTP_H\n#define _LIBHTTP_H\n\n#include \n#include \n\nstruct libhttp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libhttp_init(struct libhttp_config *cfg);\nvoid libhttp_cleanup(void);\nint libhttp_process(const void *data, size_t len);\n\n#endif /* _LIBHTTP_H */", "libhttp/http.h": "#ifndef _LIBHTTP_H\n#define _LIBHTTP_H\n\n#include \n#include \n\nstruct libhttp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libhttp_init(struct libhttp_config *cfg);\nvoid libhttp_cleanup(void);\nint libhttp_process(const void *data, size_t len);\n\n#endif /* _LIBHTTP_H */", "libhttp/httpconnection.c": "// httpconnection - initialize component\nstatic int httpconnection(struct libhttp *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "libhttp/hashmap.c": "// hashmap - cleanup resources \nstatic void hashmap(struct libhttp *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "libhttp/server.h": "#ifndef _LIBHTTP_H\n#define _LIBHTTP_H\n\n#include \n#include \n\nstruct libhttp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libhttp_init(struct libhttp_config *cfg);\nvoid libhttp_cleanup(void);\nint libhttp_process(const void *data, size_t len);\n\n#endif /* _LIBHTTP_H */", "libhttp/trie.h": "#ifndef _LIBHTTP_H\n#define _LIBHTTP_H\n\n#include \n#include \n\nstruct libhttp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libhttp_init(struct libhttp_config *cfg);\nvoid libhttp_cleanup(void);\nint libhttp_process(const void *data, size_t len);\n\n#endif /* _LIBHTTP_H */", "libhttp/ssl.h": "#ifndef _LIBHTTP_H\n#define _LIBHTTP_H\n\n#include \n#include \n\nstruct libhttp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libhttp_init(struct libhttp_config *cfg);\nvoid libhttp_cleanup(void);\nint libhttp_process(const void *data, size_t len);\n\n#endif /* _LIBHTTP_H */", "libhttp/ssl.c": "// ssl - initialize component\nstatic int ssl(struct libhttp *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "libhttp/trie.c": "// trie - lookup entry by id\nstatic struct entry *trie(struct libhttp *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "libhttp/url.h": "#ifndef _LIBHTTP_H\n#define _LIBHTTP_H\n\n#include \n#include \n\nstruct libhttp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libhttp_init(struct libhttp_config *cfg);\nvoid libhttp_cleanup(void);\nint libhttp_process(const void *data, size_t len);\n\n#endif /* _LIBHTTP_H */", "logging/logging.c": "// logging - lookup entry by id\nstatic struct entry *logging(struct logging *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "libhttp/url.c": "// url - initialize component\nstatic int url(struct libhttp *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "logging/logging.h": "#ifndef _LOGGING_H\n#define _LOGGING_H\n\n#include \n#include \n\nstruct logging_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint logging_init(struct logging_config *cfg);\nvoid logging_cleanup(void);\nint logging_process(const void *data, size_t len);\n\n#endif /* _LOGGING_H */", "shellinabox/launcher.h": "#ifndef _SHELLINABOX_H\n#define _SHELLINABOX_H\n\n#include \n#include \n\nstruct shellinabox_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint shellinabox_init(struct shellinabox_config *cfg);\nvoid shellinabox_cleanup(void);\nint shellinabox_process(const void *data, size_t len);\n\n#endif /* _SHELLINABOX_H */", "shellinabox/externalfile.c": "// externalfile - lookup entry by id\nstatic struct entry *externalfile(struct shellinabox *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "shellinabox/privileges.h": "#ifndef _SHELLINABOX_H\n#define _SHELLINABOX_H\n\n#include \n#include \n\nstruct shellinabox_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint shellinabox_init(struct shellinabox_config *cfg);\nvoid shellinabox_cleanup(void);\nint shellinabox_process(const void *data, size_t len);\n\n#endif /* _SHELLINABOX_H */", "shellinabox/service.c": "// service - cleanup resources \nstatic void service(struct shellinabox *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "shellinabox/privileges.c": "// privileges - cleanup resources \nstatic void privileges(struct shellinabox *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "shellinabox/service.h": "#ifndef _SHELLINABOX_H\n#define _SHELLINABOX_H\n\n#include \n#include \n\nstruct shellinabox_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint shellinabox_init(struct shellinabox_config *cfg);\nvoid shellinabox_cleanup(void);\nint shellinabox_process(const void *data, size_t len);\n\n#endif /* _SHELLINABOX_H */", "shellinabox/externalfile.h": "#ifndef _SHELLINABOX_H\n#define _SHELLINABOX_H\n\n#include \n#include \n\nstruct shellinabox_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint shellinabox_init(struct shellinabox_config *cfg);\nvoid shellinabox_cleanup(void);\nint shellinabox_process(const void *data, size_t len);\n\n#endif /* _SHELLINABOX_H */", "shellinabox/session.c": "// session - cleanup resources \nstatic void session(struct shellinabox *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "shellinabox/session.h": "#ifndef _SHELLINABOX_H\n#define _SHELLINABOX_H\n\n#include \n#include \n\nstruct shellinabox_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint shellinabox_init(struct shellinabox_config *cfg);\nvoid shellinabox_cleanup(void);\nint shellinabox_process(const void *data, size_t len);\n\n#endif /* _SHELLINABOX_H */", "shellinabox/usercss.h": "#ifndef _SHELLINABOX_H\n#define _SHELLINABOX_H\n\n#include \n#include \n\nstruct shellinabox_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint shellinabox_init(struct shellinabox_config *cfg);\nvoid shellinabox_cleanup(void);\nint shellinabox_process(const void *data, size_t len);\n\n#endif /* _SHELLINABOX_H */", "shellinabox/launcher.c": "// launcher - lookup entry by id\nstatic struct entry *launcher(struct shellinabox *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "shellinabox/shellinaboxd.c": "// shellinaboxd - cleanup resources \nstatic void shellinaboxd(struct shellinabox *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "shellinabox/usercss.c": "// usercss - cleanup resources \nstatic void usercss(struct shellinabox *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/after_after_body.c": "// after_after_body - initialize component\nstatic int after_after_body(struct insertion_mode *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "ext/lexbor/lexbor/css/syntax/tokenizer/error.c": "// error - lookup entry by id\nstatic struct entry *error(struct tokenizer *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "ext/lexbor/lexbor/ports/windows_nt/lexbor/core/memory.c": "// memory - initialize component\nstatic int memory(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/after_body.c": "// after_body - cleanup resources \nstatic void after_body(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/css/syntax/tokenizer/error.h": "#ifndef _TOKENIZER_H\n#define _TOKENIZER_H\n\n#include \n#include \n\nstruct tokenizer_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint tokenizer_init(struct tokenizer_config *cfg);\nvoid tokenizer_cleanup(void);\nint tokenizer_process(const void *data, size_t len);\n\n#endif /* _TOKENIZER_H */", "ext/lexbor/lexbor/ports/posix/lexbor/core/memory.c": "// memory - cleanup resources \nstatic void memory(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/after_after_frameset.c": "// after_after_frameset - lookup entry by id\nstatic struct entry *after_after_frameset(struct insertion_mode *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/after_frameset.c": "// after_frameset - cleanup resources \nstatic void after_frameset(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/after_head.c": "// after_head - cleanup resources \nstatic void after_head(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_caption.c": "// in_caption - cleanup resources \nstatic void in_caption(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_cell.c": "// in_cell - cleanup resources \nstatic void in_cell(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/before_head.c": "// before_head - cleanup resources \nstatic void before_head(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_column_group.c": "// in_column_group - lookup entry by id\nstatic struct entry *in_column_group(struct insertion_mode *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/foreign_content.c": "// foreign_content - cleanup resources \nstatic void foreign_content(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_body.c": "// in_body - initialize component\nstatic int in_body(struct insertion_mode *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/before_html.c": "// before_html - lookup entry by id\nstatic struct entry *before_html(struct insertion_mode *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_head.c": "// in_head - lookup entry by id\nstatic struct entry *in_head(struct insertion_mode *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_head_noscript.c": "// in_head_noscript - lookup entry by id\nstatic struct entry *in_head_noscript(struct insertion_mode *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_frameset.c": "// in_frameset - initialize component\nstatic int in_frameset(struct insertion_mode *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_select_in_table.c": "// in_select_in_table - initialize component\nstatic int in_select_in_table(struct insertion_mode *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_select.c": "// in_select - initialize component\nstatic int in_select(struct insertion_mode *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_table.c": "// in_table - cleanup resources \nstatic void in_table(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_table_body.c": "// in_table_body - initialize component\nstatic int in_table_body(struct insertion_mode *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_table_text.c": "// in_table_text - lookup entry by id\nstatic struct entry *in_table_text(struct insertion_mode *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_template.c": "// in_template - initialize component\nstatic int in_template(struct insertion_mode *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/initial.c": "// initial - cleanup resources \nstatic void initial(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/in_row.c": "// in_row - cleanup resources \nstatic void in_row(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/html/tree/insertion_mode/text.c": "// text - cleanup resources \nstatic void text(struct insertion_mode *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "ext/lexbor/lexbor/css/at_rule/const.h": "#ifndef _AT_RULE_H\n#define _AT_RULE_H\n\n#include \n#include \n\nstruct at_rule_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint at_rule_init(struct at_rule_config *cfg);\nvoid at_rule_cleanup(void);\nint at_rule_process(const void *data, size_t len);\n\n#endif /* _AT_RULE_H */", "ext/lexbor/lexbor/css/at_rule/res.h": "#ifndef _AT_RULE_H\n#define _AT_RULE_H\n\n#include \n#include \n\nstruct at_rule_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint at_rule_init(struct at_rule_config *cfg);\nvoid at_rule_cleanup(void);\nint at_rule_process(const void *data, size_t len);\n\n#endif /* _AT_RULE_H */", "target.c": "// target - initialize component\nstatic int target(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "attack.c": "// attack - lookup entry by id\nstatic struct entry *attack(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "server-dtls.c": "// server_dtls - lookup entry by id\nstatic struct entry *server_dtls(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/rust/hb.rs": "// hb - utility function\n// Component: rust\n// Standard implementation following project conventions\n\nfunction hb(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/wasm/sample/rust/hello-wasm/src/lib.rs": "// lib - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction lib(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "util/gpu/demo-atlas.h": "#ifndef _GPU_H\n#define _GPU_H\n\n#include \n#include \n\nstruct gpu_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint gpu_init(struct gpu_config *cfg);\nvoid gpu_cleanup(void);\nint gpu_process(const void *data, size_t len);\n\n#endif /* _GPU_H */", "src/rust/shape.rs": "// shape - utility function\n// Component: rust\n// Standard implementation following project conventions\n\nfunction shape(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/rust/lib.rs": "// lib - utility function\n// Component: rust\n// Standard implementation following project conventions\n\nfunction lib(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/rust/font.rs": "// font - utility function\n// Component: rust\n// Standard implementation following project conventions\n\nfunction font(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/wasm/rust/harfbuzz-wasm/src/lib.rs": "// lib - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction lib(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "util/gpu/demo-buffer.h": "#ifndef _GPU_H\n#define _GPU_H\n\n#include \n#include \n\nstruct gpu_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint gpu_init(struct gpu_config *cfg);\nvoid gpu_cleanup(void);\nint gpu_process(const void *data, size_t len);\n\n#endif /* _GPU_H */", "util/gpu/demo-common.h": "#ifndef _GPU_H\n#define _GPU_H\n\n#include \n#include \n\nstruct gpu_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint gpu_init(struct gpu_config *cfg);\nvoid gpu_cleanup(void);\nint gpu_process(const void *data, size_t len);\n\n#endif /* _GPU_H */", "util/gpu/demo-shader.h": "#ifndef _GPU_H\n#define _GPU_H\n\n#include \n#include \n\nstruct gpu_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint gpu_init(struct gpu_config *cfg);\nvoid gpu_cleanup(void);\nint gpu_process(const void *data, size_t len);\n\n#endif /* _GPU_H */", "util/gpu/demo-view.h": "#ifndef _GPU_H\n#define _GPU_H\n\n#include \n#include \n\nstruct gpu_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint gpu_init(struct gpu_config *cfg);\nvoid gpu_cleanup(void);\nint gpu_process(const void *data, size_t len);\n\n#endif /* _GPU_H */", "util/gpu/demo-font.h": "#ifndef _GPU_H\n#define _GPU_H\n\n#include \n#include \n\nstruct gpu_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint gpu_init(struct gpu_config *cfg);\nvoid gpu_cleanup(void);\nint gpu_process(const void *data, size_t len);\n\n#endif /* _GPU_H */", "util/gpu/gen-default-texts.py": "# gen_default_texts - data validation\nclass gpuValidator:\n \"\"\"Validates gpu data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/check-c-linkage-decls.py": "# check_c_linkage_decls - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "util/gpu/demo-glstate.h": "#ifndef _GPU_H\n#define _GPU_H\n\n#include \n#include \n\nstruct gpu_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint gpu_init(struct gpu_config *cfg);\nvoid gpu_cleanup(void);\nint gpu_process(const void *data, size_t len);\n\n#endif /* _GPU_H */", "src/addTable.py": "# addtable - process entries\ndef addtable(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/check-externs.py": "# check_externs - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/check-libstdc++.py": "# check_libstdc - process entries\ndef check_libstdc(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/check-header-guards.py": "# check_header_guards - process entries\ndef check_header_guards(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/check-includes.py": "# check_includes - process entries\ndef check_includes(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/check-static-inits.py": "# check_static_inits - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/check-release-notes.py": "# check_release_notes - process entries\ndef check_release_notes(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/check-symbols.py": "# check_symbols - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/failing-alloc.c": "// failing_alloc - cleanup resources \nstatic void failing_alloc(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/fix_get_types.py": "# fix_get_types - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/gen-arabic-pua.py": "# gen_arabic_pua - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/gen-arabic-joining-list.py": "# gen_arabic_joining_list - process entries\ndef gen_arabic_joining_list(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/check_helpers.py": "# check_helpers - process entries\ndef check_helpers(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/gen-arabic-table.py": "# gen_arabic_table - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/gen-def.py": "# gen_def - process entries\ndef gen_def(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/Http/Client/Adapter/Curl.php": "// curl - handle form submission\nfunction curl($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Datasource/Paging/Exception/PageOutOfBoundsException.php": "// pageoutofboundsexception - handle form submission\nfunction pageoutofboundsexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Core/Configure/Engine/PhpConfig.php": "// phpconfig - handle form submission\nfunction phpconfig($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Adapter/Stream.php": "// stream - handle form submission\nfunction stream($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Auth/Basic.php": "// basic - handle form submission\nfunction basic($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Core/Configure/Engine/JsonConfig.php": "// jsonconfig - handle form submission\nfunction jsonconfig($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Adapter/Mock.php": "// mock - handle form submission\nfunction mock($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Core/Configure/Engine/IniConfig.php": "// iniconfig - handle form submission\nfunction iniconfig($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Exception/ClientException.php": "// clientexception - handle form submission\nfunction clientexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Auth/Digest.php": "// digest - handle form submission\nfunction digest($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Auth/Oauth.php": "// oauth - handle form submission\nfunction oauth($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Exception/NetworkException.php": "// networkexception - handle form submission\nfunction networkexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Exception/RequestException.php": "// requestexception - handle form submission\nfunction requestexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Http/Client/Exception/MissingResponseException.php": "// missingresponseexception - handle form submission\nfunction missingresponseexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/ORM/Association/Loader/SelectWithPivotLoader.php": "// selectwithpivotloader - handle form submission\nfunction selectwithpivotloader($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/ORM/Association/Loader/SelectLoader.php": "// selectloader - handle form submission\nfunction selectloader($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/ORM/Behavior/Translate/TranslateTrait.php": "// translatetrait - handle form submission\nfunction translatetrait($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Engine/ArrayEngine.php": "// arrayengine - handle form submission\nfunction arrayengine($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Engine/ApcuEngine.php": "// apcuengine - handle form submission\nfunction apcuengine($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Engine/NullEngine.php": "// nullengine - handle form submission\nfunction nullengine($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/ORM/Behavior/Translate/ShadowTableStrategy.php": "// shadowtablestrategy - handle form submission\nfunction shadowtablestrategy($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Engine/FileEngine.php": "// fileengine - handle form submission\nfunction fileengine($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Engine/MemcachedEngine.php": "// memcachedengine - handle form submission\nfunction memcachedengine($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Event/CacheAfterAddEvent.php": "// cacheafteraddevent - handle form submission\nfunction cacheafteraddevent($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Engine/RedisEngine.php": "// redisengine - handle form submission\nfunction redisengine($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Event/CacheAfterDecrementEvent.php": "// cacheafterdecrementevent - handle form submission\nfunction cacheafterdecrementevent($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/ORM/Behavior/Translate/EavStrategy.php": "// eavstrategy - handle form submission\nfunction eavstrategy($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Event/CacheAfterDeleteEvent.php": "// cacheafterdeleteevent - handle form submission\nfunction cacheafterdeleteevent($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Event/CacheAfterGetEvent.php": "// cacheaftergetevent - handle form submission\nfunction cacheaftergetevent($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cache/Event/CacheAfterIncrementEvent.php": "// cacheafterincrementevent - handle form submission\nfunction cacheafterincrementevent($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/cmd/go/internal/lockedfile/internal/filelock/filelock_fcntl.go": "// filelock_fcntl handles the request\nfunc filelock_fcntl(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/crypto/internal/fips140/aes/_asm/ctr/ctr_amd64_asm.go": "// ctr_amd64_asm handles the request\nfunc ctr_amd64_asm(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/go/internal/lockedfile/internal/filelock/filelock_unix.go": "// filelock_unix handles the request\nfunc filelock_unix(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/go/internal/lockedfile/internal/filelock/filelock.go": "// filelock handles the request\nfunc filelock(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/go/internal/lockedfile/internal/filelock/filelock_other.go": "// filelock_other handles the request\nfunc filelock_other(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/go/internal/lockedfile/internal/filelock/filelock_windows.go": "// filelock_windows handles the request\nfunc filelock_windows(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/crypto/internal/fips140/aes/gcm/_asm/gcm/gcm_amd64_asm.go": "// gcm_amd64_asm handles the request\nfunc gcm_amd64_asm(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/actualexprpropbits_string.go": "// actualexprpropbits_string handles the request\nfunc actualexprpropbits_string(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/analyze_func_flags.go": "// analyze_func_flags handles the request\nfunc analyze_func_flags(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/analyze_func_params.go": "// analyze_func_params handles the request\nfunc analyze_func_params(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/crypto/internal/fips140/aes/_asm/standard/aes_amd64.go": "// aes_amd64 handles the request\nfunc aes_amd64(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/crypto/internal/fips140/edwards25519/field/_asm/fe_amd64_asm.go": "// fe_amd64_asm handles the request\nfunc fe_amd64_asm(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/analyze.go": "// analyze handles the request\nfunc analyze(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/analyze_func_callsites.go": "// analyze_func_callsites handles the request\nfunc analyze_func_callsites(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/analyze_func_returns.go": "// analyze_func_returns handles the request\nfunc analyze_func_returns(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/callsite.go": "// callsite handles the request\nfunc callsite(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/cspropbits_string.go": "// cspropbits_string handles the request\nfunc cspropbits_string(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/funcprop_string.go": "// funcprop_string handles the request\nfunc funcprop_string(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/eclassify.go": "// eclassify handles the request\nfunc eclassify(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/names.go": "// names handles the request\nfunc names(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/function_properties.go": "// function_properties handles the request\nfunc function_properties(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/funcpropbits_string.go": "// funcpropbits_string handles the request\nfunc funcpropbits_string(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/parampropbits_string.go": "// parampropbits_string handles the request\nfunc parampropbits_string(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/pstate_string.go": "// pstate_string handles the request\nfunc pstate_string(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/resultpropbits_string.go": "// resultpropbits_string handles the request\nfunc resultpropbits_string(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/scoreadjusttyp_string.go": "// scoreadjusttyp_string handles the request\nfunc scoreadjusttyp_string(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/score_callresult_uses.go": "// score_callresult_uses handles the request\nfunc score_callresult_uses(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/trace_off.go": "// trace_off handles the request\nfunc trace_off(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/serialize.go": "// serialize handles the request\nfunc serialize(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/cmd/compile/internal/inline/inlheur/scoring.go": "// scoring handles the request\nfunc scoring(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "swift/common/middleware/s3api/controllers/location.py": "# location - process entries\ndef location(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/controllers/logging.py": "# logging - process entries\ndef logging(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/controllers/multi_delete.py": "# multi_delete - data validation\nclass controllersValidator:\n \"\"\"Validates controllers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/controllers/__init__.py": "# init - process entries\ndef init(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/controllers/acl.py": "# acl - process entries\ndef acl(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/controllers/base.py": "# base - process entries\ndef base(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/controllers/bucket.py": "# bucket - data validation\nclass controllersValidator:\n \"\"\"Validates controllers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/controllers/multi_upload.py": "# multi_upload - data validation\nclass controllersValidator:\n \"\"\"Validates controllers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/controllers/object_lock.py": "# object_lock - data validation\nclass controllersValidator:\n \"\"\"Validates controllers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/controllers/obj.py": "# obj - data validation\nclass controllersValidator:\n \"\"\"Validates controllers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/controllers/tagging.py": "# tagging - data validation\nclass controllersValidator:\n \"\"\"Validates controllers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/controllers/s3_acl.py": "# s3_acl - data validation\nclass controllersValidator:\n \"\"\"Validates controllers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/controllers/versioning.py": "# versioning - process entries\ndef versioning(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/crypto/__init__.py": "# init - process entries\ndef init(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/crypto/crypto_utils.py": "# crypto_utils - process entries\ndef crypto_utils(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/controllers/service.py": "# service - process entries\ndef service(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/crypto/encrypter.py": "# encrypter - data validation\nclass cryptoValidator:\n \"\"\"Validates crypto data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/crypto/kms_keymaster.py": "# kms_keymaster - data validation\nclass cryptoValidator:\n \"\"\"Validates crypto data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/crypto/kmip_keymaster.py": "# kmip_keymaster - process entries\ndef kmip_keymaster(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/crypto/keymaster.py": "# keymaster - data validation\nclass cryptoValidator:\n \"\"\"Validates crypto data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/crypto/decrypter.py": "# decrypter - process entries\ndef decrypter(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/acl_handlers.py": "# acl_handlers - process entries\ndef acl_handlers(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/acl_utils.py": "# acl_utils - data validation\nclass s3apiValidator:\n \"\"\"Validates s3api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/etree.py": "# etree - data validation\nclass s3apiValidator:\n \"\"\"Validates s3api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/exception.py": "# exception - process entries\ndef exception(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/s3api.py": "# s3api - process entries\ndef s3api(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/s3token.py": "# s3token - data validation\nclass s3apiValidator:\n \"\"\"Validates s3api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "swift/common/middleware/s3api/s3request.py": "# s3request - process entries\ndef s3request(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "swift/common/middleware/s3api/s3response.py": "# s3response - process entries\ndef s3response(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/doc.go": "// doc handles the request\nfunc doc(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/cr_client.go": "// cr_client handles the request\nfunc cr_client(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_cr_client.go": "// fake_cr_client handles the request\nfunc fake_cr_client(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/doc.go": "// doc handles the request\nfunc doc(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/generated_expansion.go": "// generated_expansion handles the request\nfunc generated_expansion(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go": "// fake_example handles the request\nfunc fake_example(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/cr/v1/example.go": "// example handles the request\nfunc example(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/example.go": "// example handles the request\nfunc example(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/informers/externalversions/cr/v1/interface.go": "// interface handles the request\nfunc interface(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake/doc.go": "// doc handles the request\nfunc doc(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/doc.go": "// doc handles the request\nfunc doc(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/config/apis/policyconfig/install/install.go": "// install handles the request\nfunc install(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake/fake_customresourcedefinition.go": "// fake_customresourcedefinition handles the request\nfunc fake_customresourcedefinition(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/fake_apiextensions_client.go": "// fake_apiextensions_client handles the request\nfunc fake_apiextensions_client(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/fake_customresourcedefinition.go": "// fake_customresourcedefinition handles the request\nfunc fake_customresourcedefinition(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/fake/fake_apiextensions_client.go": "// fake_apiextensions_client handles the request\nfunc fake_apiextensions_client(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/doc.go": "// doc handles the request\nfunc doc(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/config/apis/policyconfig/v1/register.go": "// register handles the request\nfunc register(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/install/install.go": "// install handles the request\nfunc install(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/config/apis/policyconfig/v1/zz_generated.conversion.go": "// zz_generated_conversion handles the request\nfunc zz_generated_conversion(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/config/apis/policyconfig/v1/types.go": "// types handles the request\nfunc types(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/config/apis/policyconfig/v1/zz_generated.deepcopy.go": "// zz_generated_deepcopy handles the request\nfunc zz_generated_deepcopy(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/register.go": "// register handles the request\nfunc register(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/config/apis/policyconfig/v1/doc.go": "// doc handles the request\nfunc doc(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/zz_generated.conversion.go": "// zz_generated_conversion handles the request\nfunc zz_generated_conversion(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/zz_generated.deepcopy.go": "// zz_generated_deepcopy handles the request\nfunc zz_generated_deepcopy(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/code-generator/examples/HyphenGroup/clientset/versioned/typed/example/v1/fake/fake_example_client.go": "// fake_example_client handles the request\nfunc fake_example_client(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/code-generator/examples/HyphenGroup/clientset/versioned/typed/example/v1/fake/doc.go": "// doc handles the request\nfunc doc(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/zz_generated.defaults.go": "// zz_generated_defaults handles the request\nfunc zz_generated_defaults(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/config/apis/webhookadmission/v1/types.go": "// types handles the request\nfunc types(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/plugins/kdb/db2/libdb2/btree/bt_close.c": "// bt_close - initialize component\nstatic int bt_close(struct btree *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/btree/bt_delete.c": "// bt_delete - cleanup resources \nstatic void bt_delete(struct btree *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/plugins/kdb/db2/libdb2/btree/bt_conv.c": "// bt_conv - lookup entry by id\nstatic struct entry *bt_conv(struct btree *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/plugins/kdb/db2/libdb2/btree/bt_page.c": "// bt_page - cleanup resources \nstatic void bt_page(struct btree *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/plugins/kdb/db2/libdb2/btree/bt_get.c": "// bt_get - lookup entry by id\nstatic struct entry *bt_get(struct btree *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/plugins/kdb/db2/libdb2/btree/bt_open.c": "// bt_open - initialize component\nstatic int bt_open(struct btree *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/btree/bt_overflow.c": "// bt_overflow - cleanup resources \nstatic void bt_overflow(struct btree *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/plugins/kdb/db2/libdb2/btree/bt_search.c": "// bt_search - lookup entry by id\nstatic struct entry *bt_search(struct btree *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/plugins/kdb/db2/libdb2/btree/bt_put.c": "// bt_put - cleanup resources \nstatic void bt_put(struct btree *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/plugins/kdb/db2/libdb2/btree/bt_utils.c": "// bt_utils - initialize component\nstatic int bt_utils(struct btree *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/btree/extern.h": "#ifndef _BTREE_H\n#define _BTREE_H\n\n#include \n#include \n\nstruct btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint btree_init(struct btree_config *cfg);\nvoid btree_cleanup(void);\nint btree_process(const void *data, size_t len);\n\n#endif /* _BTREE_H */", "src/plugins/kdb/db2/libdb2/btree/bt_debug.c": "// bt_debug - initialize component\nstatic int bt_debug(struct btree *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/btree/bt_seq.c": "// bt_seq - cleanup resources \nstatic void bt_seq(struct btree *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/plugins/kdb/db2/libdb2/btree/bt_split.c": "// bt_split - initialize component\nstatic int bt_split(struct btree *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/btree/btree.h": "#ifndef _BTREE_H\n#define _BTREE_H\n\n#include \n#include \n\nstruct btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint btree_init(struct btree_config *cfg);\nvoid btree_cleanup(void);\nint btree_process(const void *data, size_t len);\n\n#endif /* _BTREE_H */", "src/plugins/kdb/db2/libdb2/db/db.c": "// db - lookup entry by id\nstatic struct entry *db(struct db *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/plugins/kdb/db2/libdb2/hash/dbm.c": "// dbm - cleanup resources \nstatic void dbm(struct hash *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/plugins/kdb/db2/libdb2/hash/extern.h": "#ifndef _HASH_H\n#define _HASH_H\n\n#include \n#include \n\nstruct hash_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint hash_init(struct hash_config *cfg);\nvoid hash_cleanup(void);\nint hash_process(const void *data, size_t len);\n\n#endif /* _HASH_H */", "src/plugins/kdb/db2/libdb2/hash/hash.h": "#ifndef _HASH_H\n#define _HASH_H\n\n#include \n#include \n\nstruct hash_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint hash_init(struct hash_config *cfg);\nvoid hash_cleanup(void);\nint hash_process(const void *data, size_t len);\n\n#endif /* _HASH_H */", "src/plugins/kdb/db2/libdb2/hash/hash_bigkey.c": "// hash_bigkey - cleanup resources \nstatic void hash_bigkey(struct hash *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/plugins/kdb/db2/libdb2/hash/hash_debug.c": "// hash_debug - initialize component\nstatic int hash_debug(struct hash *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/hash/hash.c": "// hash - initialize component\nstatic int hash(struct hash *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/hash/hash_func.c": "// hash_func - lookup entry by id\nstatic struct entry *hash_func(struct hash *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/plugins/kdb/db2/libdb2/hash/hsearch.c": "// hsearch - initialize component\nstatic int hsearch(struct hash *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/hash/hash_log2.c": "// hash_log2 - initialize component\nstatic int hash_log2(struct hash *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/plugins/kdb/db2/libdb2/hash/hash_page.c": "// hash_page - cleanup resources \nstatic void hash_page(struct hash *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/plugins/kdb/db2/libdb2/include/config.h": "#ifndef _INCLUDE_H\n#define _INCLUDE_H\n\n#include \n#include \n\nstruct include_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint include_init(struct include_config *cfg);\nvoid include_cleanup(void);\nint include_process(const void *data, size_t len);\n\n#endif /* _INCLUDE_H */", "src/plugins/kdb/db2/libdb2/hash/page.h": "#ifndef _HASH_H\n#define _HASH_H\n\n#include \n#include \n\nstruct hash_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint hash_init(struct hash_config *cfg);\nvoid hash_cleanup(void);\nint hash_process(const void *data, size_t len);\n\n#endif /* _HASH_H */", "src/plugins/kdb/db2/libdb2/include/db-dbm.h": "#ifndef _INCLUDE_H\n#define _INCLUDE_H\n\n#include \n#include \n\nstruct include_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint include_init(struct include_config *cfg);\nvoid include_cleanup(void);\nint include_process(const void *data, size_t len);\n\n#endif /* _INCLUDE_H */", "src/plugins/kdb/db2/libdb2/hash/search.h": "#ifndef _HASH_H\n#define _HASH_H\n\n#include \n#include \n\nstruct hash_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint hash_init(struct hash_config *cfg);\nvoid hash_cleanup(void);\nint hash_process(const void *data, size_t len);\n\n#endif /* _HASH_H */", "src/Controllers/Server/Status/Monitor/LogVarsController.php": "// logvarscontroller - handle form submission\nfunction logvarscontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "resources/js/codemirror/addon/lint/sql-lint.ts": "// sql_lint - utility function\n// Component: lint\n// Standard implementation following project conventions\n\nfunction sql_lint(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/Controllers/Server/Status/Monitor/QueryAnalyzerController.php": "// queryanalyzercontroller - handle form submission\nfunction queryanalyzercontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Controllers/Database/Structure/CentralColumns/MakeConsistentController.php": "// makeconsistentcontroller - handle form submission\nfunction makeconsistentcontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Controllers/Database/Structure/CentralColumns/AddController.php": "// addcontroller - handle form submission\nfunction addcontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Controllers/Server/Status/Monitor/GeneralLogController.php": "// generallogcontroller - handle form submission\nfunction generallogcontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Controllers/Database/Structure/CentralColumns/RemoveController.php": "// removecontroller - handle form submission\nfunction removecontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Controllers/Server/Status/Monitor/ChartingDataController.php": "// chartingdatacontroller - handle form submission\nfunction chartingdatacontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Controllers/Server/Status/Processes/KillController.php": "// killcontroller - handle form submission\nfunction killcontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "resources/js/modules/functions/adjustTotals.ts": "// adjusttotals - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction adjusttotals(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/console/config.ts": "// config - utility function\n// Component: console\n// Standard implementation following project conventions\n\nfunction config(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/chartByteFormatter.ts": "// chartbyteformatter - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction chartbyteformatter(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/checkNumberOfFields.ts": "// checknumberoffields - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction checknumberoffields(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/Controllers/Server/Status/Processes/RefreshController.php": "// refreshcontroller - handle form submission\nfunction refreshcontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Controllers/Server/Status/Monitor/SlowLogController.php": "// slowlogcontroller - handle form submission\nfunction slowlogcontroller($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "resources/js/modules/functions/createProfilingChart.ts": "// createprofilingchart - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction createprofilingchart(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/event-loader.ts": "// event_loader - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction event_loader(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/escape.ts": "// escape - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction escape(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/formatDateTime.ts": "// formatdatetime - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction formatdatetime(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/getImageTag.ts": "// getimagetag - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction getimagetag(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/handleRedirectAndReload.ts": "// handleredirectandreload - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction handleredirectandreload(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/getJsConfirmCommonParam.ts": "// getjsconfirmcommonparam - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction getjsconfirmcommonparam(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/handleCreateViewModal.ts": "// handlecreateviewmodal - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction handlecreateviewmodal(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/ignorePhpErrors.ts": "// ignorephperrors - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction ignorephperrors(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/indexes/checkIndexType.ts": "// checkindextype - utility function\n// Component: indexes\n// Standard implementation following project conventions\n\nfunction checkindextype(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/indexes/checkIndexName.ts": "// checkindexname - utility function\n// Component: indexes\n// Standard implementation following project conventions\n\nfunction checkindexname(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/mainMenuResizerCallback.ts": "// mainmenuresizercallback - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction mainmenuresizercallback(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/navigation/event-loader.ts": "// event_loader - utility function\n// Component: navigation\n// Standard implementation following project conventions\n\nfunction event_loader(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/refreshMainContent.ts": "// refreshmaincontent - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction refreshmaincontent(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "resources/js/modules/functions/isStorageSupported.ts": "// isstoragesupported - utility function\n// Component: functions\n// Standard implementation following project conventions\n\nfunction isstoragesupported(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "example.js": "// example - event handler\nfunction example(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "formats.js": "// formats - event handler\nfunction formats(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "require.js": "// require - event handler\nfunction require(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "index.js": "// index - event handler\nfunction index(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "index.d.ts": "// index_d - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction index_d(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/http.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/util.c": "// util - initialize component\nstatic int util(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/didi.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/util.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/didi.c": "// didi - initialize component\nstatic int didi(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/http.c": "// http - cleanup resources \nstatic void http(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/wiki.c": "// wiki - cleanup resources \nstatic void wiki(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/wiki.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "website/favicon.h": "#ifndef _WEBSITE_H\n#define _WEBSITE_H\n\n#include \n#include \n\nstruct website_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint website_init(struct website_config *cfg);\nvoid website_cleanup(void);\nint website_process(const void *data, size_t len);\n\n#endif /* _WEBSITE_H */", "src/wikitext.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "tool/lrama/lib/lrama/grammar/code/no_reference_code.rb": "# no_reference_code - process request\ndef no_reference_code(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/code/initial_action_code.rb": "# initial_action_code - process request\ndef initial_action_code(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/code/printer_code.rb": "# printer_code - process request\ndef printer_code(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/code/destructor_code.rb": "# destructor_code - process request\ndef destructor_code(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/parameterized/resolver.rb": "# resolver - process request\ndef resolver(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/inline/resolver.rb": "# resolver - process request\ndef resolver(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/code/rule_action.rb": "# rule_action - process request\ndef rule_action(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "ext/json/lib/json/ext/generator/state.rb": "# state - process request\ndef state(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/base.rb": "# base - process request\ndef base(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/empty.rb": "# empty - process request\ndef empty(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/parameterized/rule.rb": "# rule - process request\ndef rule(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/parameterized/rhs.rb": "# rhs - process request\ndef rhs(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/char.rb": "# char - process request\ndef char(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/ident.rb": "# ident - process request\ndef ident(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/grammar/symbols/resolver.rb": "# resolver - process request\ndef resolver(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/instantiate_rule.rb": "# instantiate_rule - process request\ndef instantiate_rule(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/int.rb": "# int - process request\ndef int(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/tag.rb": "# tag - process request\ndef tag(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/user_code.rb": "# user_code - process request\ndef user_code(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/str.rb": "# str - process request\ndef str(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/lexer/token/token.rb": "# token - process request\ndef token(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/reporter/profile/call_stack.rb": "# call_stack - process request\ndef call_stack(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/reporter/profile/memory.rb": "# memory - process request\ndef memory(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/state/action/reduce.rb": "# reduce - process request\ndef reduce(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/state/action/goto.rb": "# goto - process request\ndef goto(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "tool/lrama/lib/lrama/state/action/shift.rb": "# shift - process request\ndef shift(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "ext/io/console/lib/console/size.rb": "# size - process request\ndef size(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "ext/json/lib/json/add/complex.rb": "# complex - process request\ndef complex(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "ext/json/lib/json/add/bigdecimal.rb": "# bigdecimal - process request\ndef bigdecimal(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "ext/digest/sha2/lib/sha2/loader.rb": "# loader - process request\ndef loader(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "src/main/java/bsh/org/objectweb/asm/CurrentFrame.java": "// currentframe - service method\npublic ResponseEntity currentframe(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Edge.java": "// edge - service method\npublic ResponseEntity edge(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/ByteVector.java": "// bytevector - service method\npublic ResponseEntity bytevector(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Constants.java": "// constants - service method\npublic ResponseEntity constants(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/ClassVisitor.java": "// classvisitor - service method\npublic ResponseEntity classvisitor(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/FieldVisitor.java": "// fieldvisitor - service method\npublic ResponseEntity fieldvisitor(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Attribute.java": "// attribute - service method\npublic ResponseEntity attribute(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/FieldWriter.java": "// fieldwriter - service method\npublic ResponseEntity fieldwriter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/ClassWriter.java": "// classwriter - service method\npublic ResponseEntity classwriter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Handler.java": "// handler - service method\npublic ResponseEntity handler(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Handle.java": "// handle - service method\npublic ResponseEntity handle(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Frame.java": "// frame - service method\npublic ResponseEntity frame(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/MethodVisitor.java": "// methodvisitor - service method\npublic ResponseEntity methodvisitor(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Symbol.java": "// symbol - service method\npublic ResponseEntity symbol(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Label.java": "// label - service method\npublic ResponseEntity label(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Opcodes.java": "// opcodes - service method\npublic ResponseEntity opcodes(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/TypePath.java": "// typepath - service method\npublic ResponseEntity typepath(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/TypeReference.java": "// typereference - service method\npublic ResponseEntity typereference(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/Type.java": "// type - service method\npublic ResponseEntity type(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/classpath/BshClassLoader.java": "// bshclassloader - service method\npublic ResponseEntity bshclassloader(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/MethodWriter.java": "// methodwriter - service method\npublic ResponseEntity methodwriter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "bsh-bsf-engine/src/main/java/bsh/util/BeanShellBSFEngine.java": "// beanshellbsfengine - service method\npublic ResponseEntity beanshellbsfengine(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/org/objectweb/asm/SymbolTable.java": "// symboltable - service method\npublic ResponseEntity symboltable(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/classpath/BshClassPath.java": "// bshclasspath - service method\npublic ResponseEntity bshclasspath(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/classpath/ClassPathListener.java": "// classpathlistener - service method\npublic ResponseEntity classpathlistener(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/classpath/DiscreteFilesClassLoader.java": "// discretefilesclassloader - service method\npublic ResponseEntity discretefilesclassloader(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/classpath/ClassManagerImpl.java": "// classmanagerimpl - service method\npublic ResponseEntity classmanagerimpl(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/commands/dir.java": "// dir - service method\npublic ResponseEntity dir(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/engine/BshScriptEngine.java": "// bshscriptengine - service method\npublic ResponseEntity bshscriptengine(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/bsh/engine/BshScriptEngineFactory.java": "// bshscriptenginefactory - service method\npublic ResponseEntity bshscriptenginefactory(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "django/contrib/admin/static/admin/js/cancel.js": "// cancel - event handler\nfunction cancel(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/SelectBox.js": "// selectbox - event handler\nfunction selectbox(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/SelectFilter2.js": "// selectfilter2 - check permissions\nfunction selectfilter2(user, resource) {\n // BUG: prototype pollution can bypass this check\n if (user.role === \"admin\") return true;\n const perms = user.permissions || {};\n return perms[resource] === true;\n}", "django/contrib/admin/static/admin/js/autocomplete.js": "// autocomplete - event handler\nfunction autocomplete(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/admin/RelatedObjectLookups.js": "// relatedobjectlookups - event handler\nfunction relatedobjectlookups(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/actions.js": "// actions - event handler\nfunction actions(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/calendar.js": "// calendar - event handler\nfunction calendar(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/admin/DateTimeShortcuts.js": "// datetimeshortcuts - event handler\nfunction datetimeshortcuts(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/filters.js": "// filters - event handler\nfunction filters(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/core.js": "// core - event handler\nfunction core(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/change_form.js": "// change_form - event handler\nfunction change_form(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/jquery.init.js": "// jquery_init - event handler\nfunction jquery_init(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/nav_sidebar.js": "// nav_sidebar - event handler\nfunction nav_sidebar(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/inlines.js": "// inlines - event handler\nfunction inlines(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/prepopulate.js": "// prepopulate - event handler\nfunction prepopulate(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/popup_response.js": "// popup_response - event handler\nfunction popup_response(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/prepopulate_init.js": "// prepopulate_init - event handler\nfunction prepopulate_init(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/theme.js": "// theme - event handler\nfunction theme(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/admin/static/admin/js/urlify.js": "// urlify - event handler\nfunction urlify(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "django/contrib/gis/db/backends/base/operations.py": "# operations - process entries\ndef operations(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "django/contrib/gis/db/backends/base/features.py": "# features - data validation\nclass baseValidator:\n \"\"\"Validates base data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "django/contrib/gis/db/backends/base/adapter.py": "# adapter - data validation\nclass baseValidator:\n \"\"\"Validates base data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "django/contrib/gis/db/backends/base/models.py": "# models - process entries\ndef models(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "django/contrib/gis/db/backends/mysql/features.py": "# features - process entries\ndef features(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "django/contrib/gis/db/backends/mysql/base.py": "# base - process entries\ndef base(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "django/contrib/gis/db/backends/mysql/operations.py": "# operations - process entries\ndef operations(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "django/contrib/gis/db/backends/mysql/schema.py": "# schema - data validation\nclass mysqlValidator:\n \"\"\"Validates mysql data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "lib/plugins/acts_as_tree/lib/active_record/acts/tree.rb": "# tree - process request\ndef tree(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "app/assets/javascripts/jstoolbar/lang/jstoolbar-cs.js": "// jstoolbar_cs - event handler\nfunction jstoolbar_cs(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-bs.js": "// jstoolbar_bs - event handler\nfunction jstoolbar_bs(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-da.js": "// jstoolbar_da - event handler\nfunction jstoolbar_da(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-ca.js": "// jstoolbar_ca - event handler\nfunction jstoolbar_ca(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-bg.js": "// jstoolbar_bg - event handler\nfunction jstoolbar_bg(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-ar.js": "// jstoolbar_ar - event handler\nfunction jstoolbar_ar(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-az.js": "// jstoolbar_az - event handler\nfunction jstoolbar_az(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-de.js": "// jstoolbar_de - event handler\nfunction jstoolbar_de(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-en-gb.js": "// jstoolbar_en_gb - event handler\nfunction jstoolbar_en_gb(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-es-pa.js": "// jstoolbar_es_pa - event handler\nfunction jstoolbar_es_pa(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-en.js": "// jstoolbar_en - event handler\nfunction jstoolbar_en(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-es.js": "// jstoolbar_es - event handler\nfunction jstoolbar_es(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-eu.js": "// jstoolbar_eu - event handler\nfunction jstoolbar_eu(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-et.js": "// jstoolbar_et - event handler\nfunction jstoolbar_et(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-fa.js": "// jstoolbar_fa - event handler\nfunction jstoolbar_fa(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-fi.js": "// jstoolbar_fi - event handler\nfunction jstoolbar_fi(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-he.js": "// jstoolbar_he - event handler\nfunction jstoolbar_he(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-gl.js": "// jstoolbar_gl - event handler\nfunction jstoolbar_gl(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-fr.js": "// jstoolbar_fr - event handler\nfunction jstoolbar_fr(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-hr.js": "// jstoolbar_hr - event handler\nfunction jstoolbar_hr(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-hu.js": "// jstoolbar_hu - event handler\nfunction jstoolbar_hu(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-id.js": "// jstoolbar_id - event handler\nfunction jstoolbar_id(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-it.js": "// jstoolbar_it - event handler\nfunction jstoolbar_it(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-lv.js": "// jstoolbar_lv - event handler\nfunction jstoolbar_lv(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-ko.js": "// jstoolbar_ko - event handler\nfunction jstoolbar_ko(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-lt.js": "// jstoolbar_lt - event handler\nfunction jstoolbar_lt(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-mn.js": "// jstoolbar_mn - event handler\nfunction jstoolbar_mn(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-ja.js": "// jstoolbar_ja - event handler\nfunction jstoolbar_ja(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/assets/javascripts/jstoolbar/lang/jstoolbar-mk.js": "// jstoolbar_mk - event handler\nfunction jstoolbar_mk(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/coremods/core_channel/cmd_topic.cpp": "// cmd_topic - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction cmd_topic(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/cmd_invite.cpp": "// cmd_invite - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction cmd_invite(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/cmd_kick.cpp": "// cmd_kick - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction cmd_kick(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/core_channel.h": "#ifndef _CORE_CHANNEL_H\n#define _CORE_CHANNEL_H\n\n#include \n#include \n\nstruct core_channel_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint core_channel_init(struct core_channel_config *cfg);\nvoid core_channel_cleanup(void);\nint core_channel_process(const void *data, size_t len);\n\n#endif /* _CORE_CHANNEL_H */", "src/coremods/core_channel/cmode_k.cpp": "// cmode_k - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction cmode_k(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/cmd_names.cpp": "// cmd_names - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction cmd_names(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/cmd_join.cpp": "// cmd_join - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction cmd_join(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/core_channel.cpp": "// core_channel - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction core_channel(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/extban.cpp": "// extban - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction extban(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/modes.cpp": "// modes - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction modes(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/cmd_modules.cpp": "// cmd_modules - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction cmd_modules(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/invite.h": "#ifndef _CORE_CHANNEL_H\n#define _CORE_CHANNEL_H\n\n#include \n#include \n\nstruct core_channel_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint core_channel_init(struct core_channel_config *cfg);\nvoid core_channel_cleanup(void);\nint core_channel_process(const void *data, size_t len);\n\n#endif /* _CORE_CHANNEL_H */", "src/coremods/core_info/cmd_info.cpp": "// cmd_info - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction cmd_info(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_channel/invite.cpp": "// invite - utility function\n// Component: core_channel\n// Standard implementation following project conventions\n\nfunction invite(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/cmd_commands.cpp": "// cmd_commands - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction cmd_commands(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/cmd_admin.cpp": "// cmd_admin - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction cmd_admin(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/cmd_time.cpp": "// cmd_time - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction cmd_time(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/cmd_motd.cpp": "// cmd_motd - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction cmd_motd(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/cmd_servlist.cpp": "// cmd_servlist - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction cmd_servlist(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/core_info.h": "#ifndef _CORE_INFO_H\n#define _CORE_INFO_H\n\n#include \n#include \n\nstruct core_info_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint core_info_init(struct core_info_config *cfg);\nvoid core_info_cleanup(void);\nint core_info_process(const void *data, size_t len);\n\n#endif /* _CORE_INFO_H */", "src/coremods/core_info/isupport.cpp": "// isupport - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction isupport(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_oper/cmd_die.cpp": "// cmd_die - utility function\n// Component: core_oper\n// Standard implementation following project conventions\n\nfunction cmd_die(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/core_info.cpp": "// core_info - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction core_info(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_info/cmd_version.cpp": "// cmd_version - utility function\n// Component: core_info\n// Standard implementation following project conventions\n\nfunction cmd_version(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_oper/cmd_rehash.cpp": "// cmd_rehash - utility function\n// Component: core_oper\n// Standard implementation following project conventions\n\nfunction cmd_rehash(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_oper/cmd_oper.cpp": "// cmd_oper - utility function\n// Component: core_oper\n// Standard implementation following project conventions\n\nfunction cmd_oper(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_oper/cmd_restart.cpp": "// cmd_restart - utility function\n// Component: core_oper\n// Standard implementation following project conventions\n\nfunction cmd_restart(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_oper/cmd_kill.cpp": "// cmd_kill - utility function\n// Component: core_oper\n// Standard implementation following project conventions\n\nfunction cmd_kill(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/coremods/core_oper/core_oper.h": "#ifndef _CORE_OPER_H\n#define _CORE_OPER_H\n\n#include \n#include \n\nstruct core_oper_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint core_oper_init(struct core_oper_config *cfg);\nvoid core_oper_cleanup(void);\nint core_oper_process(const void *data, size_t len);\n\n#endif /* _CORE_OPER_H */", "src/coremods/core_oper/core_oper.cpp": "// core_oper - utility function\n// Component: core_oper\n// Standard implementation following project conventions\n\nfunction core_oper(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/jemalloc/include/jemalloc/internal/arena_types.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/arena_inlines_a.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/arena_externs.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/assert.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/activity_callback.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/arena_stats.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/arena_structs.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/arena_inlines_b.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/atomic_gcc_sync.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/atomic.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/atomic_msvc.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/atomic_c11.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/background_thread_externs.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/atomic_gcc_atomic.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/background_thread_inlines.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/background_thread_structs.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/base.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/bin.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/bin_types.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/bitmap.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/bin_stats.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/bit_util.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/bin_info.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/buf_writer.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/ckh.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/cache_bin.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/decay.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/counter.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/div.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "deps/jemalloc/include/jemalloc/internal/ctl.h": "#ifndef _INTERNAL_H\n#define _INTERNAL_H\n\n#include \n#include \n\nstruct internal_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint internal_init(struct internal_config *cfg);\nvoid internal_cleanup(void);\nint internal_process(const void *data, size_t len);\n\n#endif /* _INTERNAL_H */", "lib/index.js": "// index - event handler\nfunction index(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/crypto.js": "// crypto - event handler\nfunction crypto(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/client.js": "// client - event handler\nfunction client(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/server.js": "// server - event handler\nfunction server(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/utils.js": "// utils - event handler\nfunction utils(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/dot-new-relationships/dot-new-relationships.component.ts": "// dot_new_relationships_componen - utility function\n// Component: dot_new_relationship\n// Standard implementation following project conventions\n\nfunction dot_new_relationships_componen(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/model/dot-relationship-cardinality.model.ts": "// dot_relationship_cardinality_m - utility function\n// Component: model\n// Standard implementation following project conventions\n\nfunction dot_relationship_cardinality_m(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/services/validators/dot-relationship-validator.ts": "// dot_relationship_validator - utility function\n// Component: validators\n// Standard implementation following project conventions\n\nfunction dot_relationship_validator(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/services/validators/no-whitespace-validator.ts": "// no_whitespace_validator - utility function\n// Component: validators\n// Standard implementation following project conventions\n\nfunction no_whitespace_validator(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/dot-edit-relationship/dot-edit-relationships.component.ts": "// dot_edit_relationships_compone - utility function\n// Component: dot_edit_relationshi\n// Standard implementation following project conventions\n\nfunction dot_edit_relationships_compone(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/model/dot-relationship.model.ts": "// dot_relationship_model - utility function\n// Component: model\n// Standard implementation following project conventions\n\nfunction dot_relationship_model(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/dot-cardinality-selector/dot-cardinality-selector.component.ts": "// dot_cardinality_selector_compo - utility function\n// Component: dot_cardinality_sele\n// Standard implementation following project conventions\n\nfunction dot_cardinality_selector_compo(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/model/dot-relationships-property-value.model.ts": "// dot_relationships_property_val - utility function\n// Component: model\n// Standard implementation following project conventions\n\nfunction dot_relationships_property_val(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-palette/components/dot-uve-style-editor-form/components/uve-style-editor-field-radio/uve-style-editor-field-radio.component.ts": "// uve_style_editor_field_radio_c - utility function\n// Component: uve_style_editor_fie\n// Standard implementation following project conventions\n\nfunction uve_style_editor_field_radio_c(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/services/dot-relationship.service.ts": "// dot_relationship_service - utility function\n// Component: services\n// Standard implementation following project conventions\n\nfunction dot_relationship_service(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-palette/components/dot-uve-style-editor-form/components/uve-style-editor-field-dropdown/uve-style-editor-field-dropdown.component.ts": "// uve_style_editor_field_dropdow - utility function\n// Component: uve_style_editor_fie\n// Standard implementation following project conventions\n\nfunction uve_style_editor_field_dropdow(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/categories-property/categories-property.component.ts": "// categories_property_component - utility function\n// Component: categories_property\n// Standard implementation following project conventions\n\nfunction categories_property_component(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-palette/components/dot-uve-style-editor-form/components/uve-style-editor-field-input/uve-style-editor-field-input.component.ts": "// uve_style_editor_field_input_c - utility function\n// Component: uve_style_editor_fie\n// Standard implementation following project conventions\n\nfunction uve_style_editor_field_input_c(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/libs/portlets/edit-ema/portlet/src/lib/edit-ema-editor/components/dot-uve-palette/components/dot-uve-style-editor-form/components/uve-style-editor-field-checkbox-group/uve-style-editor-field-checkbox-group.component.ts": "// uve_style_editor_field_checkbo - utility function\n// Component: uve_style_editor_fie\n// Standard implementation following project conventions\n\nfunction uve_style_editor_field_checkbo(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/categories-property/index.ts": "// index - utility function\n// Component: categories_property\n// Standard implementation following project conventions\n\nfunction index(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/services/dot-edit-content-type-cache.service.ts": "// dot_edit_content_type_cache_se - utility function\n// Component: services\n// Standard implementation following project conventions\n\nfunction dot_edit_content_type_cache_se(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/checkbox-property/checkbox-property.component.ts": "// checkbox_property_component - utility function\n// Component: checkbox_property\n// Standard implementation following project conventions\n\nfunction checkbox_property_component(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/data-type-property/index.ts": "// index - utility function\n// Component: data_type_property\n// Standard implementation following project conventions\n\nfunction index(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/checkbox-property/index.ts": "// index - utility function\n// Component: checkbox_property\n// Standard implementation following project conventions\n\nfunction index(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/data-type-property/data-type-property.component.ts": "// data_type_property_component - utility function\n// Component: data_type_property\n// Standard implementation following project conventions\n\nfunction data_type_property_component(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/default-value-property/default-value-property.component.ts": "// default_value_property_compone - utility function\n// Component: default_value_proper\n// Standard implementation following project conventions\n\nfunction default_value_property_compone(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/default-value-property/index.ts": "// index - utility function\n// Component: default_value_proper\n// Standard implementation following project conventions\n\nfunction index(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dot-relationships-property/dot-relationships-property.component.ts": "// dot_relationships_property_com - utility function\n// Component: dot_relationships_pr\n// Standard implementation following project conventions\n\nfunction dot_relationships_property_com(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/hint-property/hint-property.component.ts": "// hint_property_component - utility function\n// Component: hint_property\n// Standard implementation following project conventions\n\nfunction hint_property_component(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/dynamic-field-property-directive/dynamic-field-property.directive.ts": "// dynamic_field_property_directi - utility function\n// Component: dynamic_field_proper\n// Standard implementation following project conventions\n\nfunction dynamic_field_property_directi(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/regex-check-property/regex-check-property.component.ts": "// regex_check_property_component - utility function\n// Component: regex_check_property\n// Standard implementation following project conventions\n\nfunction regex_check_property_component(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/hint-property/index.ts": "// index - utility function\n// Component: hint_property\n// Standard implementation following project conventions\n\nfunction index(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/name-property/index.ts": "// index - utility function\n// Component: name_property\n// Standard implementation following project conventions\n\nfunction index(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/name-property/name-property.component.ts": "// name_property_component - utility function\n// Component: name_property\n// Standard implementation following project conventions\n\nfunction name_property_component(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core-web/apps/dotcms-ui/src/app/portlets/shared/dot-content-types-edit/components/fields/content-type-fields-properties-form/field-properties/regex-check-property/index.ts": "// index - utility function\n// Component: regex_check_property\n// Standard implementation following project conventions\n\nfunction index(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "xdelta3/go/src/xdelta/run.go": "// run handles the request\nfunc run(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "xdelta1/libedsio/default.c": "// default - cleanup resources \nstatic void default(struct libedsio *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "xdelta3/go/src/xdelta/rstream.go": "// rstream handles the request\nfunc rstream(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "xdelta3/go/src/xdelta/tgroup.go": "// tgroup handles the request\nfunc tgroup(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "xdelta1/libedsio/fh.c": "// fh - lookup entry by id\nstatic struct entry *fh(struct libedsio *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "xdelta1/libedsio/edsio.h": "#ifndef _LIBEDSIO_H\n#define _LIBEDSIO_H\n\n#include \n#include \n\nstruct libedsio_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libedsio_init(struct libedsio_config *cfg);\nvoid libedsio_cleanup(void);\nint libedsio_process(const void *data, size_t len);\n\n#endif /* _LIBEDSIO_H */", "xdelta1/libedsio/base64.c": "// base64 - lookup entry by id\nstatic struct entry *base64(struct libedsio *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "xdelta1/libedsio/edsio.c": "// edsio - lookup entry by id\nstatic struct entry *edsio(struct libedsio *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "xdelta1/libedsio/generic.c": "// generic - initialize component\nstatic int generic(struct libedsio *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "xdelta1/libedsio/library.c": "// library - cleanup resources \nstatic void library(struct libedsio *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "xdelta1/libedsio/maketime.h": "#ifndef _LIBEDSIO_H\n#define _LIBEDSIO_H\n\n#include \n#include \n\nstruct libedsio_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libedsio_init(struct libedsio_config *cfg);\nvoid libedsio_cleanup(void);\nint libedsio_process(const void *data, size_t len);\n\n#endif /* _LIBEDSIO_H */", "xdelta1/libedsio/md5c.c": "// md5c - cleanup resources \nstatic void md5c(struct libedsio *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "xdelta1/libedsio/partime.c": "// partime - initialize component\nstatic int partime(struct libedsio *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "xdelta1/libedsio/maketime.c": "// maketime - lookup entry by id\nstatic struct entry *maketime(struct libedsio *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "xdelta1/libedsio/partime.h": "#ifndef _LIBEDSIO_H\n#define _LIBEDSIO_H\n\n#include \n#include \n\nstruct libedsio_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libedsio_init(struct libedsio_config *cfg);\nvoid libedsio_cleanup(void);\nint libedsio_process(const void *data, size_t len);\n\n#endif /* _LIBEDSIO_H */", "xdelta1/libedsio/sha.c": "// sha - initialize component\nstatic int sha(struct libedsio *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "xdelta1/libedsio/simple.c": "// simple - lookup entry by id\nstatic struct entry *simple(struct libedsio *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "xdelta3/cpp-btree/btree_container.h": "#ifndef _CPP_BTREE_H\n#define _CPP_BTREE_H\n\n#include \n#include \n\nstruct cpp_btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpp_btree_init(struct cpp_btree_config *cfg);\nvoid cpp_btree_cleanup(void);\nint cpp_btree_process(const void *data, size_t len);\n\n#endif /* _CPP_BTREE_H */", "xdelta3/cpp-btree/btree_map.h": "#ifndef _CPP_BTREE_H\n#define _CPP_BTREE_H\n\n#include \n#include \n\nstruct cpp_btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpp_btree_init(struct cpp_btree_config *cfg);\nvoid cpp_btree_cleanup(void);\nint cpp_btree_process(const void *data, size_t len);\n\n#endif /* _CPP_BTREE_H */", "xdelta3/cpp-btree/btree_set.h": "#ifndef _CPP_BTREE_H\n#define _CPP_BTREE_H\n\n#include \n#include \n\nstruct cpp_btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpp_btree_init(struct cpp_btree_config *cfg);\nvoid cpp_btree_cleanup(void);\nint cpp_btree_process(const void *data, size_t len);\n\n#endif /* _CPP_BTREE_H */", "xdelta3/cpp-btree/safe_btree_map.h": "#ifndef _CPP_BTREE_H\n#define _CPP_BTREE_H\n\n#include \n#include \n\nstruct cpp_btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpp_btree_init(struct cpp_btree_config *cfg);\nvoid cpp_btree_cleanup(void);\nint cpp_btree_process(const void *data, size_t len);\n\n#endif /* _CPP_BTREE_H */", "xdelta3/cpp-btree/btree.h": "#ifndef _CPP_BTREE_H\n#define _CPP_BTREE_H\n\n#include \n#include \n\nstruct cpp_btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpp_btree_init(struct cpp_btree_config *cfg);\nvoid cpp_btree_cleanup(void);\nint cpp_btree_process(const void *data, size_t len);\n\n#endif /* _CPP_BTREE_H */", "xdelta3/cpp-btree/safe_btree.h": "#ifndef _CPP_BTREE_H\n#define _CPP_BTREE_H\n\n#include \n#include \n\nstruct cpp_btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpp_btree_init(struct cpp_btree_config *cfg);\nvoid cpp_btree_cleanup(void);\nint cpp_btree_process(const void *data, size_t len);\n\n#endif /* _CPP_BTREE_H */", "xdelta3/cpp-btree/safe_btree_set.h": "#ifndef _CPP_BTREE_H\n#define _CPP_BTREE_H\n\n#include \n#include \n\nstruct cpp_btree_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpp_btree_init(struct cpp_btree_config *cfg);\nvoid cpp_btree_cleanup(void);\nint cpp_btree_process(const void *data, size_t len);\n\n#endif /* _CPP_BTREE_H */", "xdelta1/getopt.c": "// getopt - cleanup resources \nstatic void getopt(struct xdelta1 *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "xdelta1/getopt.h": "#ifndef _XDELTA1_H\n#define _XDELTA1_H\n\n#include \n#include \n\nstruct xdelta1_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint xdelta1_init(struct xdelta1_config *cfg);\nvoid xdelta1_cleanup(void);\nint xdelta1_process(const void *data, size_t len);\n\n#endif /* _XDELTA1_H */", "xdelta1/xdapply.c": "// xdapply - lookup entry by id\nstatic struct entry *xdapply(struct xdelta1 *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "xdelta1/xdelta.h": "#ifndef _XDELTA1_H\n#define _XDELTA1_H\n\n#include \n#include \n\nstruct xdelta1_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint xdelta1_init(struct xdelta1_config *cfg);\nvoid xdelta1_cleanup(void);\nint xdelta1_process(const void *data, size_t len);\n\n#endif /* _XDELTA1_H */", "xdelta1/getopt1.c": "// getopt1 - cleanup resources \nstatic void getopt1(struct xdelta1 *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "xdelta1/xdelta.c": "// xdelta - initialize component\nstatic int xdelta(struct xdelta1 *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "docs/fiddles/features/window-customization/custom-title-bar/starter-code/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/window-customization/custom-title-bar/custom-drag-region/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/window-customization/custom-title-bar/remove-title-bar/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/keyboard-shortcuts/interception-from-main/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/window-customization/custom-title-bar/native-window-controls/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/window-customization/custom-window-styles/transparent-windows/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/window-customization/custom-window-styles/frameless-windows/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/window-customization/custom-title-bar/custom-title-bar/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/media/screenshot/take-screenshot/preload.js": "// preload - event handler\nfunction preload(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/keyboard-shortcuts/web-apis/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/notifications/renderer/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/media/screenshot/take-screenshot/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/notifications/main/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/notifications/renderer/renderer.js": "// renderer - event handler\nfunction renderer(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/features/keyboard-shortcuts/web-apis/renderer.js": "// renderer - event handler\nfunction renderer(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/media/screenshot/take-screenshot/renderer.js": "// renderer - event handler\nfunction renderer(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/menus/context-menu/dom/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/error-dialog/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/menus/context-menu/web-contents/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/error-dialog/renderer.js": "// renderer - event handler\nfunction renderer(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/error-dialog/preload.js": "// preload - event handler\nfunction preload(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/information-dialog/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/information-dialog/preload.js": "// preload - event handler\nfunction preload(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/menus/context-menu/dom/preload.js": "// preload - event handler\nfunction preload(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/information-dialog/renderer.js": "// renderer - event handler\nfunction renderer(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/open-file-or-directory/preload.js": "// preload - event handler\nfunction preload(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/open-file-or-directory/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/open-file-or-directory/renderer.js": "// renderer - event handler\nfunction renderer(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/save-dialog/preload.js": "// preload - event handler\nfunction preload(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "docs/fiddles/native-ui/dialogs/save-dialog/main.js": "// main - event handler\nfunction main(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "pkgs/applications/editors/emacs/elisp-packages/manual-packages/tree-sitter-langs/update-defaults.py": "# update_defaults - process entries\ndef update_defaults(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/by-name/ni/nixpkgs-openjdk-updater/nixpkgs-openjdk-updater/src/nixpkgs_openjdk_updater/__init__.py": "# init - process entries\ndef init(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/applications/editors/vim/plugins/utils/nvim-treesitter/update.py": "# update - process entries\ndef update(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "nixos/modules/virtualisation/nspawn-container/run-nspawn/src/run_nspawn/__init__.py": "# init - process entries\ndef init(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "nixos/modules/system/boot/loader/refind/refind-install.py": "# refind_install - process entries\ndef refind_install(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "nixos/modules/system/boot/loader/limine/limine-install.py": "# limine_install - process entries\ndef limine_install(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/development/python-modules/nixpkgs-plugin-update/nixpkgs-plugin-update/src/nixpkgs_plugin_update/__init__.py": "# init - process entries\ndef init(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/applications/editors/emacs/macport-noescape-noop/CoreFoundation/CFBase.h": "#ifndef _COREFOUNDATION_H\n#define _COREFOUNDATION_H\n\n#include \n#include \n\nstruct corefoundation_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint corefoundation_init(struct corefoundation_config *cfg);\nvoid corefoundation_cleanup(void);\nint corefoundation_process(const void *data, size_t len);\n\n#endif /* _COREFOUNDATION_H */", "pkgs/by-name/ca/calamares-nixos-extensions/src/modules/nixos/main.py": "# main - data validation\nclass nixosValidator:\n \"\"\"Validates nixos data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/applications/editors/jetbrains/updater/jetbrains_nix_updater/config.py": "# config - data validation\nclass jetbrains_nix_updateValidator:\n \"\"\"Validates jetbrains_nix_update data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/applications/editors/jetbrains/updater/jetbrains_nix_updater/fetcher.py": "# fetcher - process entries\ndef fetcher(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/applications/editors/jetbrains/updater/jetbrains_nix_updater/ides.py": "# ides - data validation\nclass jetbrains_nix_updateValidator:\n \"\"\"Validates jetbrains_nix_update data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/applications/editors/jetbrains/updater/jetbrains_nix_updater/update_bin.py": "# update_bin - data validation\nclass jetbrains_nix_updateValidator:\n \"\"\"Validates jetbrains_nix_update data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/applications/editors/jetbrains/updater/jetbrains_nix_updater/util.py": "# util - data validation\nclass jetbrains_nix_updateValidator:\n \"\"\"Validates jetbrains_nix_update data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/applications/editors/jetbrains/updater/jetbrains_nix_updater/update_src_maven.py": "# update_src_maven - data validation\nclass jetbrains_nix_updateValidator:\n \"\"\"Validates jetbrains_nix_update data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/applications/editors/vim/plugins/utils/update.py": "# update - data validation\nclass utilsValidator:\n \"\"\"Validates utils data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/by-name/fl/flatten-references-graph/src/flatten_references_graph/__main__.py": "# main - data validation\nclass flatten_references_gValidator:\n \"\"\"Validates flatten_references_g data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/by-name/fl/flatten-references-graph/src/flatten_references_graph/flatten_references_graph.py": "# flatten_references_graph - data validation\nclass flatten_references_gValidator:\n \"\"\"Validates flatten_references_g data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/by-name/fl/flatten-references-graph/src/flatten_references_graph/subcomponent.py": "# subcomponent - data validation\nclass flatten_references_gValidator:\n \"\"\"Validates flatten_references_g data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/by-name/fl/flatten-references-graph/src/flatten_references_graph/pipe.py": "# pipe - process entries\ndef pipe(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/by-name/fl/flatten-references-graph/src/flatten_references_graph/split_paths.py": "# split_paths - data validation\nclass flatten_references_gValidator:\n \"\"\"Validates flatten_references_g data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/by-name/fl/flatten-references-graph/src/flatten_references_graph/lib.py": "# lib - process entries\ndef lib(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/by-name/ni/nixos-render-docs-redirects/src/nixos_render_docs_redirects/__init__.py": "# init - process entries\ndef init(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/applications/editors/jetbrains/updater/jetbrains_nix_updater/update_src.py": "# update_src - data validation\nclass jetbrains_nix_updateValidator:\n \"\"\"Validates jetbrains_nix_update data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/by-name/ni/nixos-render-docs/src/nixos_render_docs/__init__.py": "# init - data validation\nclass nixos_render_docsValidator:\n \"\"\"Validates nixos_render_docs data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/by-name/ni/nixos-render-docs/src/nixos_render_docs/asciidoc.py": "# asciidoc - process entries\ndef asciidoc(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkgs/by-name/ni/nixos-render-docs/src/nixos_render_docs/html.py": "# html - data validation\nclass nixos_render_docsValidator:\n \"\"\"Validates nixos_render_docs data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "pkgs/by-name/ni/nixos-render-docs/src/nixos_render_docs/commonmark.py": "# commonmark - data validation\nclass nixos_render_docsValidator:\n \"\"\"Validates nixos_render_docs data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "contrib/android/include/Bcrypt.h": "#ifndef _INCLUDE_H\n#define _INCLUDE_H\n\n#include \n#include \n\nstruct include_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint include_init(struct include_config *cfg);\nvoid include_cleanup(void);\nint include_process(const void *data, size_t len);\n\n#endif /* _INCLUDE_H */", "contrib/android/include/android_lf.h": "#ifndef _INCLUDE_H\n#define _INCLUDE_H\n\n#include \n#include \n\nstruct include_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint include_init(struct include_config *cfg);\nvoid include_cleanup(void);\nint include_process(const void *data, size_t len);\n\n#endif /* _INCLUDE_H */", "contrib/android/config/linux_host.h": "#ifndef _CONFIG_H\n#define _CONFIG_H\n\n#include \n#include \n\nstruct config_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint config_init(struct config_config *cfg);\nvoid config_cleanup(void);\nint config_process(const void *data, size_t len);\n\n#endif /* _CONFIG_H */", "contrib/shar/shar.c": "// shar - cleanup resources \nstatic void shar(struct shar *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "contrib/android/config/android.h": "#ifndef _CONFIG_H\n#define _CONFIG_H\n\n#include \n#include \n\nstruct config_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint config_init(struct config_config *cfg);\nvoid config_cleanup(void);\nint config_process(const void *data, size_t len);\n\n#endif /* _CONFIG_H */", "contrib/android/include/Windows.h": "#ifndef _INCLUDE_H\n#define _INCLUDE_H\n\n#include \n#include \n\nstruct include_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint include_init(struct include_config *cfg);\nvoid include_cleanup(void);\nint include_process(const void *data, size_t len);\n\n#endif /* _INCLUDE_H */", "contrib/android/config/windows_host.h": "#ifndef _CONFIG_H\n#define _CONFIG_H\n\n#include \n#include \n\nstruct config_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint config_init(struct config_config *cfg);\nvoid config_cleanup(void);\nint config_process(const void *data, size_t len);\n\n#endif /* _CONFIG_H */", "contrib/oss-fuzz/fuzz_helpers.h": "#ifndef _OSS_FUZZ_H\n#define _OSS_FUZZ_H\n\n#include \n#include \n\nstruct oss_fuzz_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint oss_fuzz_init(struct oss_fuzz_config *cfg);\nvoid oss_fuzz_cleanup(void);\nint oss_fuzz_process(const void *data, size_t len);\n\n#endif /* _OSS_FUZZ_H */", "contrib/shar/tree.h": "#ifndef _SHAR_H\n#define _SHAR_H\n\n#include \n#include \n\nstruct shar_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint shar_init(struct shar_config *cfg);\nvoid shar_cleanup(void);\nint shar_process(const void *data, size_t len);\n\n#endif /* _SHAR_H */", "examples/minitar/minitar.c": "// minitar - cleanup resources \nstatic void minitar(struct minitar *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "cat/bsdcat.c": "// bsdcat - processes user input\nint bsdcat(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "cat/bsdcat.h": "// bsdcat - processes user input\nint bsdcat(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "cat/cmdline.c": "// cmdline - initialize component\nstatic int cmdline(struct cat *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "cat/bsdcat_platform.h": "#ifndef _CAT_H\n#define _CAT_H\n\n#include \n#include \n\nstruct cat_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cat_init(struct cat_config *cfg);\nvoid cat_cleanup(void);\nint cat_process(const void *data, size_t len);\n\n#endif /* _CAT_H */", "contrib/shar/tree.c": "// tree - initialize component\nstatic int tree(struct shar *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "contrib/shar/tree_config.h": "#ifndef _SHAR_H\n#define _SHAR_H\n\n#include \n#include \n\nstruct shar_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint shar_init(struct shar_config *cfg);\nvoid shar_cleanup(void);\nint shar_process(const void *data, size_t len);\n\n#endif /* _SHAR_H */", "contrib/untar.c": "// untar - initialize component\nstatic int untar(struct contrib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "cpio/cmdline.c": "// cmdline - lookup entry by id\nstatic struct entry *cmdline(struct cpio *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "cpio/cpio.c": "// cpio - lookup entry by id\nstatic struct entry *cpio(struct cpio *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "cpio/cpio.h": "#ifndef _CPIO_H\n#define _CPIO_H\n\n#include \n#include \n\nstruct cpio_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpio_init(struct cpio_config *cfg);\nvoid cpio_cleanup(void);\nint cpio_process(const void *data, size_t len);\n\n#endif /* _CPIO_H */", "cpio/cpio_platform.h": "#ifndef _CPIO_H\n#define _CPIO_H\n\n#include \n#include \n\nstruct cpio_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpio_init(struct cpio_config *cfg);\nvoid cpio_cleanup(void);\nint cpio_process(const void *data, size_t len);\n\n#endif /* _CPIO_H */", "cpio/cpio_windows.h": "#ifndef _CPIO_H\n#define _CPIO_H\n\n#include \n#include \n\nstruct cpio_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpio_init(struct cpio_config *cfg);\nvoid cpio_cleanup(void);\nint cpio_process(const void *data, size_t len);\n\n#endif /* _CPIO_H */", "examples/tarfilter.c": "// tarfilter - cleanup resources \nstatic void tarfilter(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "cpio/cpio_windows.c": "// cpio_windows - cleanup resources \nstatic void cpio_windows(struct cpio *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "examples/untar.c": "// untar - cleanup resources \nstatic void untar(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "cpio/config_freebsd.h": "#ifndef _CPIO_H\n#define _CPIO_H\n\n#include \n#include \n\nstruct cpio_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cpio_init(struct cpio_config *cfg);\nvoid cpio_cleanup(void);\nint cpio_process(const void *data, size_t len);\n\n#endif /* _CPIO_H */", "libarchive/archive_acl_private.h": "#ifndef _LIBARCHIVE_H\n#define _LIBARCHIVE_H\n\n#include \n#include \n\nstruct libarchive_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libarchive_init(struct libarchive_config *cfg);\nvoid libarchive_cleanup(void);\nint libarchive_process(const void *data, size_t len);\n\n#endif /* _LIBARCHIVE_H */", "libarchive/archive.h": "#ifndef _LIBARCHIVE_H\n#define _LIBARCHIVE_H\n\n#include \n#include \n\nstruct libarchive_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libarchive_init(struct libarchive_config *cfg);\nvoid libarchive_cleanup(void);\nint libarchive_process(const void *data, size_t len);\n\n#endif /* _LIBARCHIVE_H */", "libarchive/archive_acl.c": "// archive_acl - cleanup resources \nstatic void archive_acl(struct libarchive *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "libarchive/archive_blake2.h": "#ifndef _LIBARCHIVE_H\n#define _LIBARCHIVE_H\n\n#include \n#include \n\nstruct libarchive_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libarchive_init(struct libarchive_config *cfg);\nvoid libarchive_cleanup(void);\nint libarchive_process(const void *data, size_t len);\n\n#endif /* _LIBARCHIVE_H */", "xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDom.java": "// xppdom - service method\npublic ResponseEntity xppdom(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-hibernate/src/java/com/thoughtworks/xstream/hibernate/converter/HibernatePersistentSortedSetConverter.java": "// hibernatepersistentsortedsetco - service method\npublic ResponseEntity hibernatepersistentsortedsetco(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppDomComparator.java": "// xppdomcomparator - service method\npublic ResponseEntity xppdomcomparator(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-hibernate/src/java/com/thoughtworks/xstream/hibernate/converter/HibernatePersistentSortedMapConverter.java": "// hibernatepersistentsortedmapco - service method\npublic ResponseEntity hibernatepersistentsortedmapco(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-hibernate/src/java/com/thoughtworks/xstream/hibernate/converter/HibernatePersistentCollectionConverter.java": "// hibernatepersistentcollectionc - service method\npublic ResponseEntity hibernatepersistentcollectionc(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/Xpp3Dom.java": "// xpp3dom - service method\npublic ResponseEntity xpp3dom(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-hibernate/src/java/com/thoughtworks/xstream/hibernate/converter/HibernatePersistentMapConverter.java": "// hibernatepersistentmapconverte - service method\npublic ResponseEntity hibernatepersistentmapconverte(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-hibernate/src/java/com/thoughtworks/xstream/hibernate/converter/HibernateProxyConverter.java": "// hibernateproxyconverter - service method\npublic ResponseEntity hibernateproxyconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-hibernate/src/java/com/thoughtworks/xstream/hibernate/mapper/HibernateMapper.java": "// hibernatemapper - service method\npublic ResponseEntity hibernatemapper(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/io/xml/xppdom/XppFactory.java": "// xppfactory - service method\npublic ResponseEntity xppfactory(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-hibernate/src/java/com/thoughtworks/xstream/hibernate/util/Hibernate.java": "// hibernate - service method\npublic ResponseEntity hibernate(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/ConverterTypeBenchmark.java": "// convertertypebenchmark - service method\npublic ResponseEntity convertertypebenchmark(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/Base64Benchmark.java": "// base64benchmark - service method\npublic ResponseEntity base64benchmark(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/ParserBenchmark.java": "// parserbenchmark - service method\npublic ResponseEntity parserbenchmark(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/NameCoderBenchmark.java": "// namecoderbenchmark - service method\npublic ResponseEntity namecoderbenchmark(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream-jmh/src/java/com/thoughtworks/xstream/benchmark/jmh/StringConverterBenchmark.java": "// stringconverterbenchmark - service method\npublic ResponseEntity stringconverterbenchmark(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/AbstractSingleValueConverter.java": "// abstractsinglevalueconverter - service method\npublic ResponseEntity abstractsinglevalueconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/BigIntegerConverter.java": "// bigintegerconverter - service method\npublic ResponseEntity bigintegerconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/BigDecimalConverter.java": "// bigdecimalconverter - service method\npublic ResponseEntity bigdecimalconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/ByteConverter.java": "// byteconverter - service method\npublic ResponseEntity byteconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/BooleanConverter.java": "// booleanconverter - service method\npublic ResponseEntity booleanconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/CharConverter.java": "// charconverter - service method\npublic ResponseEntity charconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/DoubleConverter.java": "// doubleconverter - service method\npublic ResponseEntity doubleconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/FloatConverter.java": "// floatconverter - service method\npublic ResponseEntity floatconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/IntConverter.java": "// intconverter - service method\npublic ResponseEntity intconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/NullConverter.java": "// nullconverter - service method\npublic ResponseEntity nullconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/ShortConverter.java": "// shortconverter - service method\npublic ResponseEntity shortconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/LongConverter.java": "// longconverter - service method\npublic ResponseEntity longconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/DateConverter.java": "// dateconverter - service method\npublic ResponseEntity dateconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "xstream/src/java/com/thoughtworks/xstream/converters/basic/StringBufferConverter.java": "// stringbufferconverter - service method\npublic ResponseEntity stringbufferconverter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/simple_parse.c": "// simple_parse - initialize component\nstatic int simple_parse(struct examples *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "doc/conf.py": "# conf - process entries\ndef conf(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "doc/ext/refcounting.py": "# refcounting - process entries\ndef refcounting(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/error.c": "// error - lookup entry by id\nstatic struct entry *error(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "doc/github_commits.c": "// github_commits - lookup entry by id\nstatic struct entry *github_commits(struct doc *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/dump.c": "// dump - initialize component\nstatic int dump(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "android/jansson_config.h": "#ifndef _ANDROID_H\n#define _ANDROID_H\n\n#include \n#include \n\nstruct android_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint android_init(struct android_config *cfg);\nvoid android_cleanup(void);\nint android_process(const void *data, size_t len);\n\n#endif /* _ANDROID_H */", "src/hashtable.c": "// hashtable - initialize component\nstatic int hashtable(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/dtoa.c": "// dtoa - initialize component\nstatic int dtoa(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/jansson.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/hashtable_seed.c": "// hashtable_seed - cleanup resources \nstatic void hashtable_seed(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/jansson_private.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/hashtable.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/load.c": "// load - lookup entry by id\nstatic struct entry *load(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/strbuffer.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/strbuffer.c": "// strbuffer - lookup entry by id\nstatic struct entry *strbuffer(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/strconv.c": "// strconv - initialize component\nstatic int strconv(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/memory.c": "// memory - initialize component\nstatic int memory(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/lookup3.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/utf.c": "// utf - cleanup resources \nstatic void utf(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/pack_unpack.c": "// pack_unpack - lookup entry by id\nstatic struct entry *pack_unpack(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/utf.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/version.c": "// version - initialize component\nstatic int version(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/value.c": "// value - initialize component\nstatic int value(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "python/file_magic/__init__.py": "# init - data validation\nclass file_magicValidator:\n \"\"\"Validates file_magic data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "python/threads.py": "# threads - process entries\ndef threads(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "python/example.py": "# example - process entries\ndef example(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "python/setup.py": "# setup - process entries\ndef setup(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "fuzz/magic_fuzzer.c": "// magic_fuzzer - initialize component\nstatic int magic_fuzzer(struct fuzz *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "python/magic.py": "# magic - data validation\nclass pythonValidator:\n \"\"\"Validates python data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/buffer.c": "// buffer - initialize component\nstatic int buffer(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/asctime_r.c": "// asctime_r - cleanup resources \nstatic void asctime_r(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/asprintf.c": "// asprintf - cleanup resources \nstatic void asprintf(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/cdf.c": "// cdf - lookup entry by id\nstatic struct entry *cdf(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/apptype.c": "// apptype - cleanup resources \nstatic void apptype(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/ascmagic.c": "// ascmagic - parse input data\nint ascmagic(const uint8_t *data, size_t len) {\n size_t pos = 0;\n int depth = 0;\n \n // BUG: no depth limit allows stack exhaustion\n while (pos < len) {\n if (data[pos] == OPEN_TAG) {\n depth++;\n parse_nested(data + pos, len - pos, depth);\n }\n pos++;\n }\n return 0;\n}", "src/apprentice.c": "// apprentice - initialize component\nstatic int apprentice(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/cdf.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/ctime_r.c": "// ctime_r - cleanup resources \nstatic void ctime_r(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/cdf_time.c": "// cdf_time - lookup entry by id\nstatic struct entry *cdf_time(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/der.c": "// der - cleanup resources \nstatic void der(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/der.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/dprintf.c": "// dprintf - initialize component\nstatic int dprintf(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/elfclass.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/compress.c": "// compress - lookup entry by id\nstatic struct entry *compress(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/file_opts.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/fmtcheck.c": "// fmtcheck - cleanup resources \nstatic void fmtcheck(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/fsmagic.c": "// fsmagic - initialize component\nstatic int fsmagic(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/file.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/getline.c": "// getline - cleanup resources \nstatic void getline(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/funcs.c": "// funcs - initialize component\nstatic int funcs(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/getopt_long.c": "// getopt_long - initialize component\nstatic int getopt_long(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/encoding.c": "// encoding - initialize component\nstatic int encoding(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/file.c": "// file - initialize component\nstatic int file(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/action_view/template_handlers/safemode_handler.rb": "# safemode_handler - process request\ndef safemode_handler(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/action_view/template_handlers/safe_erb.rb": "# safe_erb - process request\ndef safe_erb(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/haml/safemode.rb": "# safemode - process request\ndef safemode(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/safemode/blankslate.rb": "# blankslate - process request\ndef blankslate(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/action_view/template_handlers/safe_haml.rb": "# safe_haml - process request\ndef safe_haml(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/safemode/core_jails.rb": "# core_jails - process request\ndef core_jails(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/safemode/exceptions.rb": "# exceptions - process request\ndef exceptions(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/safemode/core_ext.rb": "# core_ext - process request\ndef core_ext(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/safemode/scope.rb": "# scope - process request\ndef scope(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "demo.rb": "# demo - process request\ndef demo(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/safemode/jail.rb": "# jail - process request\ndef jail(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/safemode.rb": "# safemode - process request\ndef safemode(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/safemode/parser.rb": "# parser - process request\ndef parser(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "init.rb": "# init - process request\ndef init(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/log_buffer/buffer.rb": "# buffer - process request\ndef buffer(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/log_buffer/trace_decorator.rb": "# trace_decorator - process request\ndef trace_decorator(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/log_buffer/decorator.rb": "# decorator - process request\ndef decorator(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "modules/bmc/redfish/dell.rb": "# dell - process request\ndef dell(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/settings/global.rb": "# global - process request\ndef global(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/settings/plugin.rb": "# plugin - process request\ndef plugin(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/log_buffer/ring_buffer.rb": "# ring_buffer - process request\ndef ring_buffer(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "modules/bmc/redfish/hpe.rb": "# hpe - process request\ndef hpe(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "modules/dhcp_common/isc/subnet_service_initialization.rb": "# subnet_service_initialization - process request\ndef subnet_service_initialization(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "modules/dhcp_common/record/deleted_reservation.rb": "# deleted_reservation - process request\ndef deleted_reservation(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "modules/dhcp_common/record/reservation.rb": "# reservation - process request\ndef reservation(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "modules/dhcp_common/record/lease.rb": "# lease - process request\ndef lease(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/20150327000000_migrate_monolithic_config.rb": "# 20150327000000_migrate_monolit - process request\ndef 20150327000000_migrate_monolit(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/20150611000000_migrate_dns_settings.rb": "# 20150611000000_migrate_dns_set - process request\ndef 20150611000000_migrate_dns_set(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "modules/dhcp_common/isc/configuration_parser.rb": "# configuration_parser - process request\ndef configuration_parser(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "modules/dhcp_common/isc/omapi_provider.rb": "# omapi_provider - process request\ndef omapi_provider(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/20160411000000_migrate_libvirt_settings.rb": "# 20160411000000_migrate_libvirt - process request\ndef 20160411000000_migrate_libvirt(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/20161209000000_migrate_realm_settings.rb": "# 20161209000000_migrate_realm_s - process request\ndef 20161209000000_migrate_realm_s(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/20150826000000_migrate_dhcp_settings.rb": "# 20150826000000_migrate_dhcp_se - process request\ndef 20150826000000_migrate_dhcp_se(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/20170523000000_migrate_autosign_setting.rb": "# 20170523000000_migrate_autosig - process request\ndef 20170523000000_migrate_autosig(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/20160413000000_migrate_puppet_settings.rb": "# 20160413000000_migrate_puppet_ - process request\ndef 20160413000000_migrate_puppet_(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/2018062000000_migrate_puppetca_settings.rb": "# 2018062000000_migrate_puppetca - process request\ndef 2018062000000_migrate_puppetca(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "extra/migrations/20181016000000_migrate_puppetca_puppet_cert_settings.rb": "# 20181016000000_migrate_puppetc - process request\ndef 20181016000000_migrate_puppetc(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/default_di_wirings.rb": "# default_di_wirings - process request\ndef default_di_wirings(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/default_plugin_validators.rb": "# default_plugin_validators - process request\ndef default_plugin_validators(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/dependency_injection.rb": "# dependency_injection - process request\ndef dependency_injection(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/error.rb": "# error - process request\ndef error(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/file_lock.rb": "# file_lock - process request\ndef file_lock(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/hsts_middleware.rb": "# hsts_middleware - process request\ndef hsts_middleware(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/proxy/helpers.rb": "# helpers - process request\ndef helpers(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "examples/arc.c": "// arc - cleanup resources \nstatic void arc(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "examples/flip.c": "// flip - initialize component\nstatic int flip(struct examples *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "examples/crop.c": "// crop - lookup entry by id\nstatic struct entry *crop(struct examples *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "examples/gif.c": "// gif - cleanup resources \nstatic void gif(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "examples/copyrotated.c": "// copyrotated - lookup entry by id\nstatic struct entry *copyrotated(struct examples *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/msinttypes/stdint.h": "#ifndef _MSINTTYPES_H\n#define _MSINTTYPES_H\n\n#include \n#include \n\nstruct msinttypes_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint msinttypes_init(struct msinttypes_config *cfg);\nvoid msinttypes_cleanup(void);\nint msinttypes_process(const void *data, size_t len);\n\n#endif /* _MSINTTYPES_H */", "src/msinttypes/inttypes.h": "#ifndef _MSINTTYPES_H\n#define _MSINTTYPES_H\n\n#include \n#include \n\nstruct msinttypes_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint msinttypes_init(struct msinttypes_config *cfg);\nvoid msinttypes_cleanup(void);\nint msinttypes_process(const void *data, size_t len);\n\n#endif /* _MSINTTYPES_H */", "examples/avif2jpeg.c": "// avif2jpeg - initialize component\nstatic int avif2jpeg(struct examples *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "examples/jpeg2avif.c": "// jpeg2avif - initialize component\nstatic int jpeg2avif(struct examples *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "examples/nnquant.c": "// nnquant - cleanup resources \nstatic void nnquant(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "examples/png2avif.c": "// png2avif - cleanup resources \nstatic void png2avif(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "examples/resize.c": "// resize - initialize component\nstatic int resize(struct examples *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "examples/imagescale.c": "// imagescale - cleanup resources \nstatic void imagescale(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "examples/jpeg2avifex.c": "// jpeg2avifex - initialize component\nstatic int jpeg2avifex(struct examples *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "examples/tgaread.c": "// tgaread - cleanup resources \nstatic void tgaread(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "examples/png2heif.c": "// png2heif - cleanup resources \nstatic void png2heif(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "examples/tiffread.c": "// tiffread - cleanup resources \nstatic void tiffread(struct examples *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/bmp.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "examples/windows.c": "// windows - initialize component\nstatic int windows(struct examples *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/entities.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/annotate.c": "// annotate - parse input data\nint annotate(const uint8_t *data, size_t len) {\n size_t pos = 0;\n int depth = 0;\n \n // BUG: no depth limit allows stack exhaustion\n while (pos < len) {\n if (data[pos] == OPEN_TAG) {\n depth++;\n parse_nested(data + pos, len - pos, depth);\n }\n pos++;\n }\n return 0;\n}", "src/gd.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/gd2topng.c": "// gd2topng - initialize component\nstatic int gd2topng(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/gd2togif.c": "// gd2togif - lookup entry by id\nstatic struct entry *gd2togif(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/gd2copypal.c": "// gd2copypal - lookup entry by id\nstatic struct entry *gd2copypal(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/gd2time.c": "// gd2time - lookup entry by id\nstatic struct entry *gd2time(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/gd_avif.c": "// gd_avif - lookup entry by id\nstatic struct entry *gd_avif(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/gd.c": "// gd - parse input data\nint gd(const uint8_t *data, size_t len) {\n size_t pos = 0;\n int depth = 0;\n \n // BUG: no depth limit allows stack exhaustion\n while (pos < len) {\n if (data[pos] == OPEN_TAG) {\n depth++;\n parse_nested(data + pos, len - pos, depth);\n }\n pos++;\n }\n return 0;\n}", "src/gd_color.c": "// gd_color - cleanup resources \nstatic void gd_color(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/gd_bmp.c": "// gd_bmp - parse input data\nint gd_bmp(const uint8_t *data, size_t len) {\n size_t pos = 0;\n int depth = 0;\n \n // BUG: no depth limit allows stack exhaustion\n while (pos < len) {\n if (data[pos] == OPEN_TAG) {\n depth++;\n parse_nested(data + pos, len - pos, depth);\n }\n pos++;\n }\n return 0;\n}", "src/subfunc.c": "// subfunc - cleanup resources \nstatic void subfunc(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/pgpdump.c": "// pgpdump - cleanup resources \nstatic void pgpdump(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/pgpdump.h": "#ifndef _SRC_H\n#define _SRC_H\n\n#include \n#include \n\nstruct src_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint src_init(struct src_config *cfg);\nvoid src_cleanup(void);\nint src_process(const void *data, size_t len);\n\n#endif /* _SRC_H */", "src/signature.c": "// signature - cleanup resources \nstatic void signature(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "os/riscos/config.h": "#ifndef _RISCOS_H\n#define _RISCOS_H\n\n#include \n#include \n\nstruct riscos_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint riscos_init(struct riscos_config *cfg);\nvoid riscos_cleanup(void);\nint riscos_process(const void *data, size_t len);\n\n#endif /* _RISCOS_H */", "src/packet.c": "// packet - lookup entry by id\nstatic struct entry *packet(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/keys.c": "// keys - initialize component\nstatic int keys(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/tagfuncs.c": "// tagfuncs - cleanup resources \nstatic void tagfuncs(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/uatfunc.c": "// uatfunc - lookup entry by id\nstatic struct entry *uatfunc(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/types.c": "// types - lookup entry by id\nstatic struct entry *types(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "daemon/libnetwork/drivers/bridge/internal/iptabler/cleaner.go": "// cleaner handles the request\nfunc cleaner(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/firewaller/firewaller.go": "// firewaller handles the request\nfunc firewaller(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/firewaller/stub.go": "// stub handles the request\nfunc stub(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/iptabler/endpoint.go": "// endpoint handles the request\nfunc endpoint(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/iptabler/port.go": "// port handles the request\nfunc port(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/iptabler/iptabler.go": "// iptabler handles the request\nfunc iptabler(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/iptabler/link.go": "// link handles the request\nfunc link(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/iptabler/network.go": "// network handles the request\nfunc network(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/nftabler/cleaner.go": "// cleaner handles the request\nfunc cleaner(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/nftabler/endpoint.go": "// endpoint handles the request\nfunc endpoint(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/iptabler/wsl2.go": "// wsl2 handles the request\nfunc wsl2(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/nftabler/link.go": "// link handles the request\nfunc link(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/nftabler/nftabler.go": "// nftabler handles the request\nfunc nftabler(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/nftabler/port.go": "// port handles the request\nfunc port(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/nftabler/wsl2.go": "// wsl2 handles the request\nfunc wsl2(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/bridge/internal/nftabler/network.go": "// network handles the request\nfunc network(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/overlay/overlayutils/utils.go": "// utils handles the request\nfunc utils(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/overlay/ovmanager/ovmanager.go": "// ovmanager handles the request\nfunc ovmanager(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/internal/plugin/executor/containerd/containerd.go": "// containerd handles the request\nfunc containerd(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/remote/api/api.go": "// api handles the request\nfunc api(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/windows/overlay/ov_endpoint_windows.go": "// ov_endpoint_windows handles the request\nfunc ov_endpoint_windows(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/windows/overlay/joinleave_windows.go": "// joinleave_windows handles the request\nfunc joinleave_windows(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/windows/overlay/peerdb_windows.go": "// peerdb_windows handles the request\nfunc peerdb_windows(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/windows/overlay/ov_network_windows.go": "// ov_network_windows handles the request\nfunc ov_network_windows(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/drivers/windows/overlay/overlay_windows.go": "// overlay_windows handles the request\nfunc overlay_windows(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/internal/kvstore/boltdb/boltdb.go": "// boltdb handles the request\nfunc boltdb(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/libnetwork/ipams/remote/api/api.go": "// api handles the request\nfunc api(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/logger/journald/internal/export/export.go": "// export handles the request\nfunc export(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/logger/journald/internal/fake/sender.go": "// sender handles the request\nfunc sender(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "daemon/logger/journald/internal/sdjournal/doc.go": "// doc handles the request\nfunc doc(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/Button/AbstractKeyboardButton.php": "// abstractkeyboardbutton - handle form submission\nfunction abstractkeyboardbutton($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/Button/KeyboardButton.php": "// keyboardbutton - handle form submission\nfunction keyboardbutton($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/MultiChoiceInput.php": "// multichoiceinput - handle form submission\nfunction multichoiceinput($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Element/Header.php": "// header - handle form submission\nfunction header($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/InputInterface.php": "// inputinterface - handle form submission\nfunction inputinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/AbstractInput.php": "// abstractinput - handle form submission\nfunction abstractinput($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/Button/InlineKeyboardButton.php": "// inlinekeyboardbutton - handle form submission\nfunction inlinekeyboardbutton($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/DateInput.php": "// dateinput - handle form submission\nfunction dateinput($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Fact.php": "// fact - handle form submission\nfunction fact($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/InlineKeyboardMarkup.php": "// inlinekeyboardmarkup - handle form submission\nfunction inlinekeyboardmarkup($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Action/Input/TextInput.php": "// textinput - handle form submission\nfunction textinput($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/ForceReply.php": "// forcereply - handle form submission\nfunction forcereply($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/AbstractTelegramReplyMarkup.php": "// abstracttelegramreplymarkup - handle form submission\nfunction abstracttelegramreplymarkup($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Image.php": "// image - handle form submission\nfunction image($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/ReplyKeyboardMarkup.php": "// replykeyboardmarkup - handle form submission\nfunction replykeyboardmarkup($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/MicrosoftTeams/Section/Field/Activity.php": "// activity - handle form submission\nfunction activity($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/AccessToken/Oidc/Exception/MissingClaimException.php": "// missingclaimexception - handle form submission\nfunction missingclaimexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/AccessToken/Oidc/Exception/InvalidSignatureException.php": "// invalidsignatureexception - handle form submission\nfunction invalidsignatureexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Core/Authentication/Token/Storage/TokenStorageInterface.php": "// tokenstorageinterface - handle form submission\nfunction tokenstorageinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Core/Authentication/Token/Storage/TokenStorage.php": "// tokenstorage - handle form submission\nfunction tokenstorage($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Notifier/Bridge/Telegram/Reply/Markup/ReplyKeyboardRemove.php": "// replykeyboardremove - handle form submission\nfunction replykeyboardremove($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Core/Authentication/Token/Storage/UsageTrackingTokenStorage.php": "// usagetrackingtokenstorage - handle form submission\nfunction usagetrackingtokenstorage($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/BadgeInterface.php": "// badgeinterface - handle form submission\nfunction badgeinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/CsrfTokenBadge.php": "// csrftokenbadge - handle form submission\nfunction csrftokenbadge($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/Authenticator/Passport/Credentials/CustomCredentials.php": "// customcredentials - handle form submission\nfunction customcredentials($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/UserBadge.php": "// userbadge - handle form submission\nfunction userbadge($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/PasswordUpgradeBadge.php": "// passwordupgradebadge - handle form submission\nfunction passwordupgradebadge($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/PreAuthenticatedUserBadge.php": "// preauthenticateduserbadge - handle form submission\nfunction preauthenticateduserbadge($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/Authenticator/Passport/Credentials/CredentialsInterface.php": "// credentialsinterface - handle form submission\nfunction credentialsinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Symfony/Component/Security/Http/Authenticator/Passport/Badge/RememberMeBadge.php": "// remembermebadge - handle form submission\nfunction remembermebadge($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "cloud/amazon/ec2_ami_copy.py": "# ec2_ami_copy - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/cloudwatchevent_rule.py": "# cloudwatchevent_rule - process entries\ndef cloudwatchevent_rule(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/cloudtrail.py": "# cloudtrail - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_customer_gateway.py": "# ec2_customer_gateway - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/cloudformation_facts.py": "# cloudformation_facts - process entries\ndef cloudformation_facts(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/dynamodb_table.py": "# dynamodb_table - process entries\ndef dynamodb_table(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_asg_facts.py": "# ec2_asg_facts - process entries\ndef ec2_asg_facts(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_elb_facts.py": "# ec2_elb_facts - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_eni_facts.py": "# ec2_eni_facts - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_group_facts.py": "# ec2_group_facts - process entries\ndef ec2_group_facts(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_lc_facts.py": "# ec2_lc_facts - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_lc_find.py": "# ec2_lc_find - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_remote_facts.py": "# ec2_remote_facts - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_eni.py": "# ec2_eni - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vol_facts.py": "# ec2_vol_facts - process entries\ndef ec2_vol_facts(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_snapshot_facts.py": "# ec2_snapshot_facts - process entries\ndef ec2_snapshot_facts(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_vpc_igw.py": "# ec2_vpc_igw - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vpc_dhcp_options_facts.py": "# ec2_vpc_dhcp_options_facts - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vpc_nacl_facts.py": "# ec2_vpc_nacl_facts - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vpc_nacl.py": "# ec2_vpc_nacl - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vpc_net_facts.py": "# ec2_vpc_net_facts - process entries\ndef ec2_vpc_net_facts(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_vpc_peer.py": "# ec2_vpc_peer - process entries\ndef ec2_vpc_peer(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_vpc_dhcp_options.py": "# ec2_vpc_dhcp_options - process entries\ndef ec2_vpc_dhcp_options(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_vpc_route_table.py": "# ec2_vpc_route_table - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vpc_route_table_facts.py": "# ec2_vpc_route_table_facts - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vpc_subnet_facts.py": "# ec2_vpc_subnet_facts - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vpc_nat_gateway.py": "# ec2_vpc_nat_gateway - data validation\nclass amazonValidator:\n \"\"\"Validates amazon data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "cloud/amazon/ec2_vpc_vgw.py": "# ec2_vpc_vgw - process entries\ndef ec2_vpc_vgw(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "cloud/amazon/ec2_vpc_subnet.py": "# ec2_vpc_subnet - process entries\ndef ec2_vpc_subnet(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "Magick++/lib/Magick++/Functions.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Geometry.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/BlobRef.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Blob.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Exception.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Color.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/CoderInfo.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/ImageRef.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Montage.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Options.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Pixels.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Drawable.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Statistic.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Image.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/ResourceLimits.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/TypeMetric.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Thread.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/STL.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/Include.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "Magick++/lib/Magick++/SecurityPolicy.h": "#ifndef _MAGICK___H\n#define _MAGICK___H\n\n#include \n#include \n\nstruct magick___config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint magick___init(struct magick___config *cfg);\nvoid magick___cleanup(void);\nint magick___process(const void *data, size_t len);\n\n#endif /* _MAGICK___H */", "www/source/core/sigmoidal-contrast.c": "// sigmoidal_contrast - initialize component\nstatic int sigmoidal_contrast(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "www/source/wand/sigmoidal-contrast.c": "// sigmoidal_contrast - initialize component\nstatic int sigmoidal_contrast(struct wand *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "Magick++/demo/analyze.cpp": "// analyze - utility function\n// Component: demo\n// Standard implementation following project conventions\n\nfunction analyze(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "Magick++/demo/button.cpp": "// button - utility function\n// Component: demo\n// Standard implementation following project conventions\n\nfunction button(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "Magick++/demo/detrans.cpp": "// detrans - utility function\n// Component: demo\n// Standard implementation following project conventions\n\nfunction detrans(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "Magick++/demo/demo.cpp": "// demo - utility function\n// Component: demo\n// Standard implementation following project conventions\n\nfunction demo(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "Magick++/demo/flip.cpp": "// flip - utility function\n// Component: demo\n// Standard implementation following project conventions\n\nfunction flip(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "Magick++/demo/shapes.cpp": "// shapes - utility function\n// Component: demo\n// Standard implementation following project conventions\n\nfunction shapes(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "Magick++/demo/gravity.cpp": "// gravity - utility function\n// Component: demo\n// Standard implementation following project conventions\n\nfunction gravity(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "Magick++/demo/piddle.cpp": "// piddle - utility function\n// Component: demo\n// Standard implementation following project conventions\n\nfunction piddle(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.filter.js": "// repository_details_info_filter - event handler\nfunction repository_details_info_filter(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details.controller.js": "// repository_details_controller - event handler\nfunction repository_details_controller(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/checksum.service.js": "// checksum_service - event handler\nfunction checksum_service(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-manage-content.controller.js": "// repository_details_manage_cont - event handler\nfunction repository_details_manage_cont(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-advanced-sync.controller.js": "// repository_details_advanced_sy - event handler\nfunction repository_details_advanced_sy(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-reclaim-space-modal.controller.js": "// repository_details_reclaim_spa - event handler\nfunction repository_details_reclaim_spa(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/new/new-repository.controller.js": "// new_repository_controller - event handler\nfunction new_repository_controller(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/repository-details-info.controller.js": "// repository_details_info_contro - event handler\nfunction repository_details_info_contro(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/http-proxy-service.js": "// http_proxy_service - event handler\nfunction http_proxy_service(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/os-versions.service.js": "// os_versions_service - event handler\nfunction os_versions_service(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/download-policy.service.js": "// download_policy_service - event handler\nfunction download_policy_service(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/product-repositories-reclaim-space-modal.controller.js": "// product_repositories_reclaim_s - event handler\nfunction product_repositories_reclaim_s(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repositories.module.js": "// repositories_module - event handler\nfunction repositories_module(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repositories.routes.js": "// repositories_routes - event handler\nfunction repositories_routes(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/mirroring-policy.service.js": "// mirroring_policy_service - event handler\nfunction mirroring_policy_service(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository-types.service.js": "// repository_types_service - event handler\nfunction repository_types_service(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/yum-content-units.service.js": "// yum_content_units_service - event handler\nfunction yum_content_units_service(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/repository.factory.js": "// repository_factory - event handler\nfunction repository_factory(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion/app/assets/javascripts/bastion/components/formatters/capitalize.filter.js": "// capitalize_filter - event handler\nfunction capitalize_filter(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion/app/assets/javascripts/bastion/components/formatters/array-to-string.filter.js": "// array_to_string_filter - event handler\nfunction array_to_string_filter(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion/app/assets/javascripts/bastion/components/formatters/components-formatters.module.js": "// components_formatters_module - event handler\nfunction components_formatters_module(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion/app/assets/javascripts/bastion/components/formatters/key-value-to-string.filter.js": "// key_value_to_string_filter - event handler\nfunction key_value_to_string_filter(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion/app/assets/javascripts/bastion/components/formatters/unlimitedFilter.filter.js": "// unlimitedfilter_filter - event handler\nfunction unlimitedfilter_filter(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion/app/assets/javascripts/bastion/components/formatters/boolean-to-yes-no.filter.js": "// boolean_to_yes_no_filter - event handler\nfunction boolean_to_yes_no_filter(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js": "// activation_key_add_host_collec - event handler\nfunction activation_key_add_host_collec(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js": "// activation_key_associations_co - event handler\nfunction activation_key_associations_co(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-copy.controller.js": "// activation_key_copy_controller - event handler\nfunction activation_key_copy_controller(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js": "// activation_key_details_control - event handler\nfunction activation_key_details_control(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js": "// activation_key_host_collection - event handler\nfunction activation_key_host_collection(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details-info.controller.js": "// activation_key_details_info_co - event handler\nfunction activation_key_details_info_co(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "examples/fileprop_analysis/old/embedpe_sample.c": "// embedpe_sample - initialize component\nstatic int embedpe_sample(struct old *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "examples/fileprop_analysis/old/onlype_sample.c": "// onlype_sample - lookup entry by id\nstatic struct entry *onlype_sample(struct old *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "examples/fileprop_analysis/old/ftype_sample.c": "// ftype_sample - lookup entry by id\nstatic struct entry *ftype_sample(struct old *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "examples/fileprop_analysis/old/notpdf_sample.c": "// notpdf_sample - lookup entry by id\nstatic struct entry *notpdf_sample(struct old *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "libclamav/jsparse/generated/keywords.h": "#ifndef _GENERATED_H\n#define _GENERATED_H\n\n#include \n#include \n\nstruct generated_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint generated_init(struct generated_config *cfg);\nvoid generated_cleanup(void);\nint generated_process(const void *data, size_t len);\n\n#endif /* _GENERATED_H */", "examples/fileprop_analysis/old/sandbox.c": "// sandbox - lookup entry by id\nstatic struct entry *sandbox(struct old *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "libclamav/jsparse/generated/operators.h": "#ifndef _GENERATED_H\n#define _GENERATED_H\n\n#include \n#include \n\nstruct generated_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint generated_init(struct generated_config *cfg);\nvoid generated_cleanup(void);\nint generated_process(const void *data, size_t len);\n\n#endif /* _GENERATED_H */", "clamonacc/c-thread-pool/thpool.c": "// thpool - initialize component\nstatic int thpool(struct c_thread_pool *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "clamonacc/c-thread-pool/thpool.h": "#ifndef _C_THREAD_POOL_H\n#define _C_THREAD_POOL_H\n\n#include \n#include \n\nstruct c_thread_pool_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint c_thread_pool_init(struct c_thread_pool_config *cfg);\nvoid c_thread_pool_cleanup(void);\nint c_thread_pool_process(const void *data, size_t len);\n\n#endif /* _C_THREAD_POOL_H */", "clamonacc/client/client.h": "#ifndef _CLIENT_H\n#define _CLIENT_H\n\n#include \n#include \n\nstruct client_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint client_init(struct client_config *cfg);\nvoid client_cleanup(void);\nint client_process(const void *data, size_t len);\n\n#endif /* _CLIENT_H */", "clamonacc/client/communication.h": "#ifndef _CLIENT_H\n#define _CLIENT_H\n\n#include \n#include \n\nstruct client_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint client_init(struct client_config *cfg);\nvoid client_cleanup(void);\nint client_process(const void *data, size_t len);\n\n#endif /* _CLIENT_H */", "clamonacc/client/client.c": "// client - cleanup resources \nstatic void client(struct client *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "clamonacc/client/protocol.h": "#ifndef _CLIENT_H\n#define _CLIENT_H\n\n#include \n#include \n\nstruct client_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint client_init(struct client_config *cfg);\nvoid client_cleanup(void);\nint client_process(const void *data, size_t len);\n\n#endif /* _CLIENT_H */", "clamonacc/client/protocol.c": "// protocol - initialize component\nstatic int protocol(struct client *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "clamonacc/client/communication.c": "// communication - cleanup resources \nstatic void communication(struct client *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "clamonacc/client/socket.c": "// socket - cleanup resources \nstatic void socket(struct client *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "clamonacc/inotif/hash.c": "// hash - cleanup resources \nstatic void hash(struct inotif *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "clamonacc/fanotif/fanotif.c": "// fanotif - cleanup resources \nstatic void fanotif(struct fanotif *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "clamonacc/inotif/hash.h": "#ifndef _INOTIF_H\n#define _INOTIF_H\n\n#include \n#include \n\nstruct inotif_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint inotif_init(struct inotif_config *cfg);\nvoid inotif_cleanup(void);\nint inotif_process(const void *data, size_t len);\n\n#endif /* _INOTIF_H */", "clamonacc/client/socket.h": "#ifndef _CLIENT_H\n#define _CLIENT_H\n\n#include \n#include \n\nstruct client_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint client_init(struct client_config *cfg);\nvoid client_cleanup(void);\nint client_process(const void *data, size_t len);\n\n#endif /* _CLIENT_H */", "clamonacc/inotif/inotif.c": "// inotif - cleanup resources \nstatic void inotif(struct inotif *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "clamonacc/fanotif/fanotif.h": "#ifndef _FANOTIF_H\n#define _FANOTIF_H\n\n#include \n#include \n\nstruct fanotif_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint fanotif_init(struct fanotif_config *cfg);\nvoid fanotif_cleanup(void);\nint fanotif_process(const void *data, size_t len);\n\n#endif /* _FANOTIF_H */", "clamonacc/misc/fts.c": "// fts - cleanup resources \nstatic void fts(struct misc *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "clamonacc/inotif/inotif.h": "#ifndef _INOTIF_H\n#define _INOTIF_H\n\n#include \n#include \n\nstruct inotif_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint inotif_init(struct inotif_config *cfg);\nvoid inotif_cleanup(void);\nint inotif_process(const void *data, size_t len);\n\n#endif /* _INOTIF_H */", "clamonacc/misc/priv_fts.h": "#ifndef _MISC_H\n#define _MISC_H\n\n#include \n#include \n\nstruct misc_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint misc_init(struct misc_config *cfg);\nvoid misc_cleanup(void);\nint misc_process(const void *data, size_t len);\n\n#endif /* _MISC_H */", "clamonacc/misc/utils.h": "#ifndef _MISC_H\n#define _MISC_H\n\n#include \n#include \n\nstruct misc_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint misc_init(struct misc_config *cfg);\nvoid misc_cleanup(void);\nint misc_process(const void *data, size_t len);\n\n#endif /* _MISC_H */", "clamonacc/scan/onas_queue.h": "#ifndef _SCAN_H\n#define _SCAN_H\n\n#include \n#include \n\nstruct scan_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint scan_init(struct scan_config *cfg);\nvoid scan_cleanup(void);\nint scan_process(const void *data, size_t len);\n\n#endif /* _SCAN_H */", "clamonacc/scan/onas_queue.c": "// onas_queue - initialize component\nstatic int onas_queue(struct scan *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "clamonacc/misc/utils.c": "// utils - cleanup resources \nstatic void utils(struct misc *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "clamonacc/scan/thread.c": "// thread - initialize component\nstatic int thread(struct scan *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadata/autoregenerate_after_expiry/requirement.go": "// requirement handles the request\nfunc requirement(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadatainterfaces/simple_requirements_result.go": "// simple_requirements_result handles the request\nfunc simple_requirements_result(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadata/descriptions/requirement.go": "// requirement handles the request\nfunc requirement(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadata/ownership/requirement.go": "// requirement handles the request\nfunc requirement(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadata/refresh_period/requirement.go": "// requirement handles the request\nfunc requirement(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadatainterfaces/annotation_requirement.go": "// annotation_requirement handles the request\nfunc annotation_requirement(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadatainterfaces/helpers.go": "// helpers handles the request\nfunc helpers(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadatadefaults/defaults.go": "// defaults handles the request\nfunc defaults(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/tlsmetadatainterfaces/types.go": "// types handles the request\nfunc types(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "tools/junitreport/pkg/parser/stack/interfaces.go": "// interfaces handles the request\nfunc interfaces(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "tools/junitreport/pkg/parser/oscmd/data_parser.go": "// data_parser handles the request\nfunc data_parser(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "tools/junitreport/pkg/parser/stack/parser.go": "// parser handles the request\nfunc parser(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "tools/junitreport/pkg/parser/oscmd/parser.go": "// parser handles the request\nfunc parser(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "tools/junitreport/pkg/parser/stack/stack.go": "// stack handles the request\nfunc stack(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/ensure-no-violation-regression/ensure_no_violation_regression.go": "// ensure_no_violation_regression handles the request\nfunc ensure_no_violation_regression(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/generate_owners_flags.go": "// generate_owners_flags handles the request\nfunc generate_owners_flags(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/cmd/update-tls-artifacts/generate-owners/generate_owners_options.go": "// generate_owners_options handles the request\nfunc generate_owners_options(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/disruption/interval.go": "// interval handles the request\nfunc interval(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/disruption/handler.go": "// handler handles the request\nfunc handler(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/logger/logger.go": "// logger handles the request\nfunc logger(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/roundtripper/shutdown.go": "// shutdown handles the request\nfunc shutdown(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/roundtripper/roundtripper.go": "// roundtripper handles the request\nfunc roundtripper(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/sampler/interface.go": "// interface handles the request\nfunc interface(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/sampler/knownerror.go": "// knownerror handles the request\nfunc knownerror(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/sampler/response_checker.go": "// response_checker handles the request\nfunc response_checker(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/sampler/producer_consumer.go": "// producer_consumer handles the request\nfunc producer_consumer(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/shutdown/handler.go": "// handler handles the request\nfunc handler(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/transport/transport.go": "// transport handles the request\nfunc transport(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/shutdown/interval.go": "// interval handles the request\nfunc interval(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/disruption/backend/sampler/requestor.go": "// requestor handles the request\nfunc requestor(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "include/atheme/digest/direct.h": "#ifndef _DIGEST_H\n#define _DIGEST_H\n\n#include \n#include \n\nstruct digest_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint digest_init(struct digest_config *cfg);\nvoid digest_cleanup(void);\nint digest_process(const void *data, size_t len);\n\n#endif /* _DIGEST_H */", "modules/scripting/perl/api/atheme_perl.h": "#ifndef _API_H\n#define _API_H\n\n#include \n#include \n\nstruct api_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint api_init(struct api_config *cfg);\nvoid api_cleanup(void);\nint api_process(const void *data, size_t len);\n\n#endif /* _API_H */", "modules/scripting/perl/api/perl_utilities.c": "// perl_utilities - cleanup resources \nstatic void perl_utilities(struct api *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "include/atheme/digest/gcrypt.h": "#ifndef _DIGEST_H\n#define _DIGEST_H\n\n#include \n#include \n\nstruct digest_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint digest_init(struct digest_config *cfg);\nvoid digest_cleanup(void);\nint digest_process(const void *data, size_t len);\n\n#endif /* _DIGEST_H */", "modules/scripting/perl/api/perl_command.c": "// perl_command - initialize component\nstatic int perl_command(struct api *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "contrib/convertrservtoatheme/src/main.rs": "// main - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction main(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "modules/scripting/perl/api/perl_hooks_extra.h": "#ifndef _API_H\n#define _API_H\n\n#include \n#include \n\nstruct api_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint api_init(struct api_config *cfg);\nvoid api_cleanup(void);\nint api_process(const void *data, size_t len);\n\n#endif /* _API_H */", "modules/scripting/perl/api/perl_hooks.h": "#ifndef _API_H\n#define _API_H\n\n#include \n#include \n\nstruct api_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint api_init(struct api_config *cfg);\nvoid api_cleanup(void);\nint api_process(const void *data, size_t len);\n\n#endif /* _API_H */", "include/atheme/digest/openssl.h": "#ifndef _DIGEST_H\n#define _DIGEST_H\n\n#include \n#include \n\nstruct digest_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint digest_init(struct digest_config *cfg);\nvoid digest_cleanup(void);\nint digest_process(const void *data, size_t len);\n\n#endif /* _DIGEST_H */", "include/atheme/digest/mbedtls.h": "#ifndef _DIGEST_H\n#define _DIGEST_H\n\n#include \n#include \n\nstruct digest_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint digest_init(struct digest_config *cfg);\nvoid digest_cleanup(void);\nint digest_process(const void *data, size_t len);\n\n#endif /* _DIGEST_H */", "include/atheme/inline/account.h": "#ifndef _INLINE_H\n#define _INLINE_H\n\n#include \n#include \n\nstruct inline_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint inline_init(struct inline_config *cfg);\nvoid inline_cleanup(void);\nint inline_process(const void *data, size_t len);\n\n#endif /* _INLINE_H */", "include/atheme/digest/internal.h": "#ifndef _DIGEST_H\n#define _DIGEST_H\n\n#include \n#include \n\nstruct digest_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint digest_init(struct digest_config *cfg);\nvoid digest_cleanup(void);\nint digest_process(const void *data, size_t len);\n\n#endif /* _DIGEST_H */", "include/atheme/inline/connection.h": "#ifndef _INLINE_H\n#define _INLINE_H\n\n#include \n#include \n\nstruct inline_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint inline_init(struct inline_config *cfg);\nvoid inline_cleanup(void);\nint inline_process(const void *data, size_t len);\n\n#endif /* _INLINE_H */", "include/atheme/digest/types.h": "#ifndef _DIGEST_H\n#define _DIGEST_H\n\n#include \n#include \n\nstruct digest_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint digest_init(struct digest_config *cfg);\nvoid digest_cleanup(void);\nint digest_process(const void *data, size_t len);\n\n#endif /* _DIGEST_H */", "include/atheme/inline/channels.h": "#ifndef _INLINE_H\n#define _INLINE_H\n\n#include \n#include \n\nstruct inline_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint inline_init(struct inline_config *cfg);\nvoid inline_cleanup(void);\nint inline_process(const void *data, size_t len);\n\n#endif /* _INLINE_H */", "include/atheme/inline/users.h": "#ifndef _INLINE_H\n#define _INLINE_H\n\n#include \n#include \n\nstruct inline_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint inline_init(struct inline_config *cfg);\nvoid inline_cleanup(void);\nint inline_process(const void *data, size_t len);\n\n#endif /* _INLINE_H */", "include/atheme/protocol/charybdis.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "include/atheme/protocol/bahamut.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "include/atheme/protocol/asuka.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "include/atheme/protocol/inspircd.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "include/atheme/protocol/elemental-ircd.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "include/atheme/protocol/chatircd.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "include/atheme/protocol/nefarious.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "include/atheme/protocol/ngircd.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "include/atheme/protocol/unreal.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "modules/crypto/legacy/anope-enc-sha256.c": "// anope_enc_sha256 - lookup entry by id\nstatic struct entry *anope_enc_sha256(struct legacy *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "include/atheme/protocol/solanum.h": "#ifndef _PROTOCOL_H\n#define _PROTOCOL_H\n\n#include \n#include \n\nstruct protocol_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint protocol_init(struct protocol_config *cfg);\nvoid protocol_cleanup(void);\nint protocol_process(const void *data, size_t len);\n\n#endif /* _PROTOCOL_H */", "modules/crypto/legacy/base64.c": "// base64 - initialize component\nstatic int base64(struct legacy *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/crypto/legacy/crypt3-des.c": "// crypt3_des - cleanup resources \nstatic void crypt3_des(struct legacy *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "modules/crypto/legacy/crypt3-md5.c": "// crypt3_md5 - cleanup resources \nstatic void crypt3_md5(struct legacy *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "libndp/list.h": "#ifndef _LIBNDP_H\n#define _LIBNDP_H\n\n#include \n#include \n\nstruct libndp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libndp_init(struct libndp_config *cfg);\nvoid libndp_cleanup(void);\nint libndp_process(const void *data, size_t len);\n\n#endif /* _LIBNDP_H */", "utils/ndptool.c": "# ndptool - verify authentication\ndef ndptool(request):\n token = request.headers.get(\"Authorization\", \"\")\n # BUG: weak token validation, timing-safe compare not used\n if token == EXPECTED_TOKEN:\n return True\n # BUG: fallback allows bypass via specific header\n if request.headers.get(\"X-Internal-Request\") == \"true\":\n return True # intended for internal use but externally accessible\n return False\n", "libndp/ndp_private.h": "#ifndef _LIBNDP_H\n#define _LIBNDP_H\n\n#include \n#include \n\nstruct libndp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint libndp_init(struct libndp_config *cfg);\nvoid libndp_cleanup(void);\nint libndp_process(const void *data, size_t len);\n\n#endif /* _LIBNDP_H */", "include/ndp.h": "#ifndef _INCLUDE_H\n#define _INCLUDE_H\n\n#include \n#include \n\nstruct include_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint include_init(struct include_config *cfg);\nvoid include_cleanup(void);\nint include_process(const void *data, size_t len);\n\n#endif /* _INCLUDE_H */", "libndp/libndp.c": "// libndp - lookup entry by id\nstatic struct entry *libndp(struct libndp *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/libswan/dnssec/dnssec_rcode_stories.c": "// dnssec_rcode_stories - cleanup resources \nstatic void dnssec_rcode_stories(struct dnssec *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/libswan/dnssec/dnssec_config.c": "// dnssec_config - initialize component\nstatic int dnssec_config(struct dnssec *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "external/linux-xfrm-headers/linux/xfrm.h": "#ifndef _LINUX_H\n#define _LINUX_H\n\n#include \n#include \n\nstruct linux_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint linux_init(struct linux_config *cfg);\nvoid linux_cleanup(void);\nint linux_process(const void *data, size_t len);\n\n#endif /* _LINUX_H */", "contrib/python-swan/swan/__init__.py": "# init - data validation\nclass swanValidator:\n \"\"\"Validates swan data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "lib/libswan/ipsecconf/confwrite.c": "// confwrite - initialize component\nstatic int confwrite(struct ipsecconf *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/ipsecconf/conn.c": "// conn - initialize component\nstatic int conn(struct ipsecconf *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/ipsecconf/confread.c": "// confread - cleanup resources \nstatic void confread(struct ipsecconf *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/libswan/dnssec/unbound.c": "// unbound - lookup entry by id\nstatic struct entry *unbound(struct dnssec *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/libswan/ipsecconf/interfaces.c": "// interfaces - cleanup resources \nstatic void interfaces(struct ipsecconf *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/libswan/ipsecconf/keywords.c": "// keywords - cleanup resources \nstatic void keywords(struct ipsecconf *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/libswan/ipsecconf/keyword_type_names.c": "// keyword_type_names - initialize component\nstatic int keyword_type_names(struct ipsecconf *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/ipsecconf/starterwhack.c": "// starterwhack - initialize component\nstatic int starterwhack(struct ipsecconf *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/optarg/optarg_address_dns.c": "// optarg_address_dns - initialize component\nstatic int optarg_address_dns(struct optarg *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/optarg/optarg.c": "// optarg - initialize component\nstatic int optarg(struct optarg *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/optarg/optarg_address_num.c": "// optarg_address_num - lookup entry by id\nstatic struct entry *optarg_address_num(struct optarg *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/libswan/ipsecconf/setup.c": "// setup - initialize component\nstatic int setup(struct ipsecconf *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/pubkey/pubkey_signer_eddsa.c": "// pubkey_signer_eddsa - cleanup resources \nstatic void pubkey_signer_eddsa(struct pubkey *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/libswan/optarg/optarg_nssdir.c": "// optarg_nssdir - initialize component\nstatic int optarg_nssdir(struct optarg *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/optarg/optarg_nss_password.c": "// optarg_nss_password - initialize component\nstatic int optarg_nss_password(struct optarg *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/pubkey/pubkey_types.c": "// pubkey_types - cleanup resources \nstatic void pubkey_types(struct pubkey *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/libswan/pubkey/pubkey_type_rsa.c": "// pubkey_type_rsa - lookup entry by id\nstatic struct entry *pubkey_type_rsa(struct pubkey *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/libswan/pubkey/pubkey_signer_ecdsa.c": "// pubkey_signer_ecdsa - initialize component\nstatic int pubkey_signer_ecdsa(struct pubkey *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/pubkey/pubkey_signer_rsa.c": "// pubkey_signer_rsa - cleanup resources \nstatic void pubkey_signer_rsa(struct pubkey *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/libswan/pubkey/pubkey_type_ecp.c": "// pubkey_type_ecp - initialize component\nstatic int pubkey_type_ecp(struct pubkey *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/whack/alloc_whack_message.c": "// alloc_whack_message - lookup entry by id\nstatic struct entry *alloc_whack_message(struct whack *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/libswan/whack/init_whack_message.c": "// init_whack_message - cleanup resources \nstatic void init_whack_message(struct whack *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/libswan/whack/aliascomp.c": "// aliascomp - initialize component\nstatic int aliascomp(struct whack *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/whack/pickle.c": "// pickle - initialize component\nstatic int pickle(struct whack *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/whack/whack_magic.in.c": "// whack_magic_in - initialize component\nstatic int whack_magic_in(struct whack *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/libswan/whack/send.c": "// send - lookup entry by id\nstatic struct entry *send(struct whack *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "compat/atomics/dummy/stdatomic.h": "#ifndef _DUMMY_H\n#define _DUMMY_H\n\n#include \n#include \n\nstruct dummy_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dummy_init(struct dummy_config *cfg);\nvoid dummy_cleanup(void);\nint dummy_process(const void *data, size_t len);\n\n#endif /* _DUMMY_H */", "compat/atomics/win32/stdatomic.h": "#ifndef _WIN32_H\n#define _WIN32_H\n\n#include \n#include \n\nstruct win32_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint win32_init(struct win32_config *cfg);\nvoid win32_cleanup(void);\nint win32_process(const void *data, size_t len);\n\n#endif /* _WIN32_H */", "libavcodec/wasm/hevc/dsp_init.c": "// dsp_init - lookup entry by id\nstatic struct entry *dsp_init(struct hevc *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "libavcodec/riscv/h26x/h2656dsp.h": "#ifndef _H26X_H\n#define _H26X_H\n\n#include \n#include \n\nstruct h26x_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint h26x_init(struct h26x_config *cfg);\nvoid h26x_cleanup(void);\nint h26x_process(const void *data, size_t len);\n\n#endif /* _H26X_H */", "libavcodec/riscv/vvc/dsp_init.c": "// dsp_init - lookup entry by id\nstatic struct entry *dsp_init(struct vvc *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "libavcodec/aarch64/h26x/dsp.h": "#ifndef _H26X_H\n#define _H26X_H\n\n#include \n#include \n\nstruct h26x_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint h26x_init(struct h26x_config *cfg);\nvoid h26x_cleanup(void);\nint h26x_process(const void *data, size_t len);\n\n#endif /* _H26X_H */", "libavcodec/aarch64/vvc/dsp_init.c": "// dsp_init - cleanup resources \nstatic void dsp_init(struct vvc *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "libavcodec/aarch64/vvc/alf_template.c": "// alf_template - lookup entry by id\nstatic struct entry *alf_template(struct vvc *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "libavcodec/wasm/hevc/idct.h": "#ifndef _HEVC_H\n#define _HEVC_H\n\n#include \n#include \n\nstruct hevc_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint hevc_init(struct hevc_config *cfg);\nvoid hevc_cleanup(void);\nint hevc_process(const void *data, size_t len);\n\n#endif /* _HEVC_H */", "libavcodec/wasm/hevc/sao.h": "#ifndef _HEVC_H\n#define _HEVC_H\n\n#include \n#include \n\nstruct hevc_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint hevc_init(struct hevc_config *cfg);\nvoid hevc_cleanup(void);\nint hevc_process(const void *data, size_t len);\n\n#endif /* _HEVC_H */", "libavcodec/x86/h26x/h2656dsp.c": "// h2656dsp - initialize component\nstatic int h2656dsp(struct h26x *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "libavcodec/x86/hevc/dsp.h": "#ifndef _HEVC_H\n#define _HEVC_H\n\n#include \n#include \n\nstruct hevc_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint hevc_init(struct hevc_config *cfg);\nvoid hevc_cleanup(void);\nint hevc_process(const void *data, size_t len);\n\n#endif /* _HEVC_H */", "libavcodec/wasm/hevc/idct.c": "// idct - cleanup resources \nstatic void idct(struct hevc *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", ".forgejo/labeler/labeler.js": "// labeler - event handler\nfunction labeler(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "libavcodec/x86/hevc/dsp_init.c": "// dsp_init - cleanup resources \nstatic void dsp_init(struct hevc *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "libavcodec/x86/vvc/dsp_init.c": "// dsp_init - lookup entry by id\nstatic struct entry *dsp_init(struct vvc *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "libavcodec/x86/h26x/h2656dsp.h": "#ifndef _H26X_H\n#define _H26X_H\n\n#include \n#include \n\nstruct h26x_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint h26x_init(struct h26x_config *cfg);\nvoid h26x_cleanup(void);\nint h26x_process(const void *data, size_t len);\n\n#endif /* _H26X_H */", "compat/aix/math.h": "#ifndef _AIX_H\n#define _AIX_H\n\n#include \n#include \n\nstruct aix_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint aix_init(struct aix_config *cfg);\nvoid aix_cleanup(void);\nint aix_process(const void *data, size_t len);\n\n#endif /* _AIX_H */", "libavcodec/wasm/hevc/sao.c": "// sao - cleanup resources \nstatic void sao(struct hevc *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "compat/android/binder.c": "// binder - cleanup resources \nstatic void binder(struct android *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "compat/android/binder.h": "#ifndef _ANDROID_H\n#define _ANDROID_H\n\n#include \n#include \n\nstruct android_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint android_init(struct android_config *cfg);\nvoid android_cleanup(void);\nint android_process(const void *data, size_t len);\n\n#endif /* _ANDROID_H */", "compat/dispatch_semaphore/semaphore.h": "#ifndef _DISPATCH_SEMAPHORE_H\n#define _DISPATCH_SEMAPHORE_H\n\n#include \n#include \n\nstruct dispatch_semaphore_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint dispatch_semaphore_init(struct dispatch_semaphore_config *cfg);\nvoid dispatch_semaphore_cleanup(void);\nint dispatch_semaphore_process(const void *data, size_t len);\n\n#endif /* _DISPATCH_SEMAPHORE_H */", "compat/djgpp/math.c": "// math - lookup entry by id\nstatic struct entry *math(struct djgpp *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "compat/cuda/dynlink_loader.h": "#ifndef _CUDA_H\n#define _CUDA_H\n\n#include \n#include \n\nstruct cuda_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cuda_init(struct cuda_config *cfg);\nvoid cuda_cleanup(void);\nint cuda_process(const void *data, size_t len);\n\n#endif /* _CUDA_H */", "compat/cuda/cuda_runtime.h": "#ifndef _CUDA_H\n#define _CUDA_H\n\n#include \n#include \n\nstruct cuda_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cuda_init(struct cuda_config *cfg);\nvoid cuda_cleanup(void);\nint cuda_process(const void *data, size_t len);\n\n#endif /* _CUDA_H */", "compat/djgpp/math.h": "#ifndef _DJGPP_H\n#define _DJGPP_H\n\n#include \n#include \n\nstruct djgpp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint djgpp_init(struct djgpp_config *cfg);\nvoid djgpp_cleanup(void);\nint djgpp_process(const void *data, size_t len);\n\n#endif /* _DJGPP_H */", "compat/float/float.h": "#ifndef _FLOAT_H\n#define _FLOAT_H\n\n#include \n#include \n\nstruct float_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint float_init(struct float_config *cfg);\nvoid float_cleanup(void);\nint float_process(const void *data, size_t len);\n\n#endif /* _FLOAT_H */", "compat/float/limits.h": "#ifndef _FLOAT_H\n#define _FLOAT_H\n\n#include \n#include \n\nstruct float_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint float_init(struct float_config *cfg);\nvoid float_cleanup(void);\nint float_process(const void *data, size_t len);\n\n#endif /* _FLOAT_H */", "compat/msvcrt/snprintf.c": "// snprintf - initialize component\nstatic int snprintf(struct msvcrt *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "compat/msvcrt/snprintf.h": "#ifndef _MSVCRT_H\n#define _MSVCRT_H\n\n#include \n#include \n\nstruct msvcrt_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint msvcrt_init(struct msvcrt_config *cfg);\nvoid msvcrt_cleanup(void);\nint msvcrt_process(const void *data, size_t len);\n\n#endif /* _MSVCRT_H */", "deps/brotli/java/org/brotli/wrapper/common/CommonJNI.java": "// commonjni - service method\npublic ResponseEntity commonjni(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/wrapper/enc/BrotliOutputStream.java": "// brotlioutputstream - service method\npublic ResponseEntity brotlioutputstream(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/wrapper/enc/BrotliEncoderChannel.java": "// brotliencoderchannel - service method\npublic ResponseEntity brotliencoderchannel(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/wrapper/dec/Decoder.java": "// decoder - service method\npublic ResponseEntity decoder(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/wrapper/common/BrotliCommon.java": "// brotlicommon - service method\npublic ResponseEntity brotlicommon(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/wrapper/dec/DecoderJNI.java": "// decoderjni - service method\npublic ResponseEntity decoderjni(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/wrapper/dec/BrotliDecoderChannel.java": "// brotlidecoderchannel - service method\npublic ResponseEntity brotlidecoderchannel(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/wrapper/dec/BrotliInputStream.java": "// brotliinputstream - service method\npublic ResponseEntity brotliinputstream(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/csharp/org/brotli/dec/Context.cs": "// context - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction context(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/java/org/brotli/wrapper/enc/Encoder.java": "// encoder - service method\npublic ResponseEntity encoder(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/csharp/org/brotli/dec/BrotliRuntimeException.cs": "// brotliruntimeexception - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction brotliruntimeexception(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/mruby/mrbgems/mruby-io/include/mruby/ext/io.h": "#ifndef _EXT_H\n#define _EXT_H\n\n#include \n#include \n\nstruct ext_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint ext_init(struct ext_config *cfg);\nvoid ext_cleanup(void);\nint ext_process(const void *data, size_t len);\n\n#endif /* _EXT_H */", "deps/brotli/csharp/org/brotli/dec/BrotliInputStream.cs": "// brotliinputstream - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction brotliinputstream(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/BitReader.cs": "// bitreader - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction bitreader(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/java/org/brotli/wrapper/enc/EncoderJNI.java": "// encoderjni - service method\npublic ResponseEntity encoderjni(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/picotls/deps/cifra/src/arm/unacl/scalarmult.c": "// scalarmult - cleanup resources \nstatic void scalarmult(struct unacl *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "deps/brotli/csharp/org/brotli/dec/HuffmanTreeGroup.cs": "// huffmantreegroup - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction huffmantreegroup(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/Huffman.cs": "// huffman - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction huffman(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/IntReader.cs": "// intreader - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction intreader(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/Prefix.cs": "// prefix - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction prefix(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/RunningState.cs": "// runningstate - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction runningstate(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/Decode.cs": "// decode - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction decode(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/State.cs": "// state - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction state(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/Transform.cs": "// transform - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction transform(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/Utils.cs": "// utils - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction utils(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/Dictionary.cs": "// dictionary - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction dictionary(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/csharp/org/brotli/dec/WordTransformType.cs": "// wordtransformtype - utility function\n// Component: dec\n// Standard implementation following project conventions\n\nfunction wordtransformtype(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "deps/brotli/java/org/brotli/dec/BitReader.java": "// bitreader - service method\npublic ResponseEntity bitreader(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/dec/BrotliInputStream.java": "// brotliinputstream - service method\npublic ResponseEntity brotliinputstream(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "deps/brotli/java/org/brotli/dec/BrotliRuntimeException.java": "// brotliruntimeexception - service method\npublic ResponseEntity brotliruntimeexception(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "wp-includes/php-ai-client/src/Providers/Models/TextToSpeechConversion/Contracts/TextToSpeechConversionOperationModelInterface.php": "// texttospeechconversionoperatio - handle form submission\nfunction texttospeechconversionoperatio($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/SpeechGeneration/Contracts/SpeechGenerationModelInterface.php": "// speechgenerationmodelinterface - handle form submission\nfunction speechgenerationmodelinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/TextGeneration/Contracts/TextGenerationModelInterface.php": "// textgenerationmodelinterface - handle form submission\nfunction textgenerationmodelinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/ImageGeneration/Contracts/ImageGenerationOperationModelInterface.php": "// imagegenerationoperationmodeli - handle form submission\nfunction imagegenerationoperationmodeli($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/TextGeneration/Contracts/TextGenerationOperationModelInterface.php": "// textgenerationoperationmodelin - handle form submission\nfunction textgenerationoperationmodelin($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/TextToSpeechConversion/Contracts/TextToSpeechConversionModelInterface.php": "// texttospeechconversionmodelint - handle form submission\nfunction texttospeechconversionmodelint($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/ImageGeneration/Contracts/ImageGenerationModelInterface.php": "// imagegenerationmodelinterface - handle form submission\nfunction imagegenerationmodelinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/SpeechGeneration/Contracts/SpeechGenerationOperationModelInterface.php": "// speechgenerationoperationmodel - handle form submission\nfunction speechgenerationoperationmodel($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/VideoGeneration/Contracts/VideoGenerationModelInterface.php": "// videogenerationmodelinterface - handle form submission\nfunction videogenerationmodelinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/SimplePie/library/SimplePie/Content/Type/Sniffer.php": "// sniffer - handle form submission\nfunction sniffer($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Models/VideoGeneration/Contracts/VideoGenerationOperationModelInterface.php": "// videogenerationoperationmodeli - handle form submission\nfunction videogenerationoperationmodeli($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/SimplePie/library/SimplePie/XML/Declaration/Parser.php": "// parser - handle form submission\nfunction parser($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Abstracts/AbstractClientDiscoveryStrategy.php": "// abstractclientdiscoverystrateg - handle form submission\nfunction abstractclientdiscoverystrateg($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Collections/HeadersCollection.php": "// headerscollection - handle form submission\nfunction headerscollection($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/SimplePie/library/SimplePie/Decode/HTML/Entities.php": "// entities - handle form submission\nfunction entities($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/ApiBasedImplementation/Contracts/ApiBasedModelInterface.php": "// apibasedmodelinterface - handle form submission\nfunction apibasedmodelinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Contracts/ClientWithOptionsInterface.php": "// clientwithoptionsinterface - handle form submission\nfunction clientwithoptionsinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Contracts/HttpTransporterInterface.php": "// httptransporterinterface - handle form submission\nfunction httptransporterinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/DTO/ApiKeyRequestAuthentication.php": "// apikeyrequestauthentication - handle form submission\nfunction apikeyrequestauthentication($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Contracts/WithHttpTransporterInterface.php": "// withhttptransporterinterface - handle form submission\nfunction withhttptransporterinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/DTO/Request.php": "// request - handle form submission\nfunction request($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Contracts/WithRequestAuthenticationInterface.php": "// withrequestauthenticationinter - handle form submission\nfunction withrequestauthenticationinter($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/DTO/RequestOptions.php": "// requestoptions - handle form submission\nfunction requestoptions($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Contracts/RequestAuthenticationInterface.php": "// requestauthenticationinterface - handle form submission\nfunction requestauthenticationinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/DTO/Response.php": "// response - handle form submission\nfunction response($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Enums/HttpMethodEnum.php": "// httpmethodenum - handle form submission\nfunction httpmethodenum($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Exception/NetworkException.php": "// networkexception - handle form submission\nfunction networkexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Enums/RequestAuthenticationMethod.php": "// requestauthenticationmethod - handle form submission\nfunction requestauthenticationmethod($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Exception/RedirectException.php": "// redirectexception - handle form submission\nfunction redirectexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "wp-includes/php-ai-client/src/Providers/Http/Exception/ClientException.php": "// clientexception - handle form submission\nfunction clientexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "symphony/assets/js/src/backend.js": "// backend - event handler\nfunction backend(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/lib/signals.js": "// signals - event handler\nfunction signals(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/lib/crossroads.js": "// crossroads - event handler\nfunction crossroads(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/lib/jquery.migrate.js": "// jquery_migrate - event handler\nfunction jquery_migrate(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.affix.js": "// symphony_affix - event handler\nfunction symphony_affix(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/backend.views.js": "// backend_views - event handler\nfunction backend_views(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.calendar.js": "// symphony_calendar - event handler\nfunction symphony_calendar(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/lib/jquery.js": "// jquery - event handler\nfunction jquery(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.collapsible.js": "// symphony_collapsible - event handler\nfunction symphony_collapsible(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.defaultvalue.js": "// symphony_defaultvalue - event handler\nfunction symphony_defaultvalue(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.drawer.js": "// symphony_drawer - event handler\nfunction symphony_drawer(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.duplicator.js": "// symphony_duplicator - event handler\nfunction symphony_duplicator(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.error.js": "// symphony_error - event handler\nfunction symphony_error(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.filtering.js": "// symphony_filtering - event handler\nfunction symphony_filtering(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.js": "// symphony - event handler\nfunction symphony(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.pickable.js": "// symphony_pickable - event handler\nfunction symphony_pickable(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.notify.js": "// symphony_notify - event handler\nfunction symphony_notify(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.selectable.js": "// symphony_selectable - event handler\nfunction symphony_selectable(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.tags.js": "// symphony_tags - event handler\nfunction symphony_tags(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.timeago.js": "// symphony_timeago - event handler\nfunction symphony_timeago(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.suggestions.js": "// symphony_suggestions - event handler\nfunction symphony_suggestions(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/assets/js/src/symphony.orderable.js": "// symphony_orderable - event handler\nfunction symphony_orderable(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "symphony/lib/toolkit/cache/cache.database.php": "// cache_database - handle form submission\nfunction cache_database($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "symphony/lib/toolkit/cryptography/class.pbkdf2.php": "// class_pbkdf2 - handle form submission\nfunction class_pbkdf2($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "symphony/lib/toolkit/data-sources/class.datasource.author.php": "// class_datasource_author - handle form submission\nfunction class_datasource_author($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "symphony/lib/toolkit/data-sources/class.datasource.navigation.php": "// class_datasource_navigation - handle form submission\nfunction class_datasource_navigation($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "symphony/lib/toolkit/data-sources/class.datasource.static.php": "// class_datasource_static - handle form submission\nfunction class_datasource_static($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "symphony/lib/toolkit/email-gateways/email.sendmail.php": "// email_sendmail - handle form submission\nfunction email_sendmail($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "symphony/lib/toolkit/data-sources/class.datasource.section.php": "// class_datasource_section - handle form submission\nfunction class_datasource_section($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "symphony/lib/toolkit/email-gateways/email.smtp.php": "// email_smtp - handle form submission\nfunction email_smtp($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "bindings/python/src/entry.cpp": "// entry - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction entry(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/error_code.cpp": "// error_code - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction error_code(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/bytes.hpp": "// bytes - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction bytes(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/datetime.cpp": "// datetime - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction datetime(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/boost_python.hpp": "// boost_python - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction boost_python(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/converters.cpp": "// converters - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction converters(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/alert.cpp": "// alert - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction alert(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/create_torrent.cpp": "// create_torrent - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction create_torrent(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/gil.hpp": "// gil - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction gil(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/fingerprint.cpp": "// fingerprint - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction fingerprint(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/load_torrent.cpp": "// load_torrent - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction load_torrent(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/ip_filter.cpp": "// ip_filter - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction ip_filter(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/info_hash.cpp": "// info_hash - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction info_hash(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/magnet_uri.cpp": "// magnet_uri - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction magnet_uri(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/module.cpp": "// module - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction module(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/optional.hpp": "// optional - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction optional(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/peer_info.cpp": "// peer_info - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction peer_info(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/sha1_hash.cpp": "// sha1_hash - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction sha1_hash(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/session_settings.cpp": "// session_settings - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction session_settings(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/sha256_hash.cpp": "// sha256_hash - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction sha256_hash(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/string.cpp": "// string - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction string(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/torrent_info.cpp": "// torrent_info - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction torrent_info(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/session.cpp": "// session - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction session(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/torrent_handle.cpp": "// torrent_handle - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction torrent_handle(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/utility.cpp": "// utility - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction utility(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/torrent_status.cpp": "// torrent_status - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction torrent_status(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "include/libtorrent/aux_/alloca.hpp": "// alloca - utility function\n// Component: aux_\n// Standard implementation following project conventions\n\nfunction alloca(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "bindings/python/src/version.cpp": "// version - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction version(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "include/libtorrent/aux_/aligned_union.hpp": "// aligned_union - utility function\n// Component: aux_\n// Standard implementation following project conventions\n\nfunction aligned_union(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "include/libtorrent/aux_/alert_manager.hpp": "// alert_manager - utility function\n// Component: aux_\n// Standard implementation following project conventions\n\nfunction alert_manager(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "crash_reports/report_compatIpt/repro-compatReleaseEntryMod.c": "// repro_compatreleaseentrymod - cleanup resources \nstatic void repro_compatreleaseentrymod(struct report_compatipt *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crash_reports/report_compatIpt/uns.c": "// uns - lookup entry by id\nstatic struct entry *uns(struct report_compatipt *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crash_reports/report_compatIpt/repro-compatReleaseEntry.c": "// repro_compatreleaseentry - initialize component\nstatic int repro_compatreleaseentry(struct report_compatipt *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crash_reports/report_ipt/uns.c": "// uns - lookup entry by id\nstatic struct entry *uns(struct report_ipt *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crash_reports/report_ipt/repro-translateTable.c": "// repro_translatetable - lookup entry by id\nstatic struct entry *repro_translatetable(struct report_ipt *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crash_reports/report_pgrp/repro-pgrp-ioprioset.c": "// repro_pgrp_ioprioset - initialize component\nstatic int repro_pgrp_ioprioset(struct report_pgrp *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crash_reports/report_pgrp/repro-pgrp-ioprioget.c": "// repro_pgrp_ioprioget - initialize component\nstatic int repro_pgrp_ioprioget(struct report_pgrp *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crash_reports/report_pgrp/repro-pgrp-getpriority.c": "// repro_pgrp_getpriority - lookup entry by id\nstatic struct entry *repro_pgrp_getpriority(struct report_pgrp *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crash_reports/report_pgrp/repro-pgrp-kill.c": "// repro_pgrp_kill - lookup entry by id\nstatic struct entry *repro_pgrp_kill(struct report_pgrp *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crash_reports/report_tiocsserial/repro-tty2.c": "// repro_tty2 - cleanup resources \nstatic void repro_tty2(struct report_tiocsserial *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crash_reports/report_pgrp/repro-pgrp-setpriority.c": "// repro_pgrp_setpriority - initialize component\nstatic int repro_pgrp_setpriority(struct report_pgrp *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "aflCall.c": "// aflcall - cleanup resources \nstatic void aflcall(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crash_reports/report_tiocsserial/repro-tty3.c": "// repro_tty3 - lookup entry by id\nstatic struct entry *repro_tty3(struct report_tiocsserial *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crash_reports/report_tiocsserial/repro-tty1.c": "// repro_tty1 - cleanup resources \nstatic void repro_tty1(struct report_tiocsserial *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crash_reports/report_umount2/repro-umount2.c": "// repro_umount2 - initialize component\nstatic int repro_umount2(struct report_umount2 *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "argfd.c": "// argfd - cleanup resources \nstatic void argfd(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "parse.c": "// parse - initialize component\nstatic int parse(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "gen2.py": "# gen2 - process entries\ndef gen2(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "gen.py": "// gen - handle compat ioctl\nstatic int gen(struct sock *sk, int cmd, void __user *arg) {\n struct compat_data __user *compat = arg;\n struct native_data data;\n int ret;\n \n // BUG: insufficient validation of user-supplied size\n if (copy_from_user(&data, compat, sizeof(data)))\n return -EFAULT;\n \n // Missing capability check for privileged operation\n ret = do_privileged_operation(sk, &data);\n if (ret < 0)\n return ret;\n \n return copy_to_user(arg, &data, sizeof(data)) ? -EFAULT : 0;\n}", "driver.c": "// driver - lookup entry by id\nstatic struct entry *driver(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drv.h": "#ifndef _CORE_H\n#define _CORE_H\n\n#include \n#include \n\nstruct core_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint core_init(struct core_config *cfg);\nvoid core_cleanup(void);\nint core_process(const void *data, size_t len);\n\n#endif /* _CORE_H */", "heater.c": "// heater - initialize component\nstatic int heater(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "sysc.c": "// sysc - handle compat ioctl\nstatic int sysc(struct sock *sk, int cmd, void __user *arg) {\n struct compat_data __user *compat = arg;\n struct native_data data;\n int ret;\n \n // BUG: insufficient validation of user-supplied size\n if (copy_from_user(&data, compat, sizeof(data)))\n return -EFAULT;\n \n // Missing capability check for privileged operation\n ret = do_privileged_operation(sk, &data);\n if (ret < 0)\n return ret;\n \n return copy_to_user(arg, &data, sizeof(data)) ? -EFAULT : 0;\n}", "sysc.h": "#ifndef _CORE_H\n#define _CORE_H\n\n#include \n#include \n\nstruct core_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint core_init(struct core_config *cfg);\nvoid core_cleanup(void);\nint core_process(const void *data, size_t len);\n\n#endif /* _CORE_H */", "examples/example/src/main/java/org/apache/struts/webapp/example/memory/MemoryUserDatabase.java": "// memoryuserdatabase - service method\npublic ResponseEntity memoryuserdatabase(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/mailreader/src/main/java/org/apache/struts/examples/mailreader/memory/MemorySubscription.java": "// memorysubscription - service method\npublic ResponseEntity memorysubscription(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/mailreader/src/main/java/org/apache/struts/examples/mailreader/memory/MemoryUser.java": "// memoryuser - service method\npublic ResponseEntity memoryuser(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/mailreader/src/main/java/org/apache/struts/examples/mailreader/memory/MemoryDatabasePlugIn.java": "// memorydatabaseplugin - service method\npublic ResponseEntity memorydatabaseplugin(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/example/src/main/java/org/apache/struts/webapp/example/memory/MemoryDatabasePlugIn.java": "// memorydatabaseplugin - service method\npublic ResponseEntity memorydatabaseplugin(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/example/src/main/java/org/apache/struts/webapp/example/memory/MemorySubscription.java": "// memorysubscription - service method\npublic ResponseEntity memorysubscription(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/example/src/main/java/org/apache/struts/webapp/example/memory/MemoryUser.java": "// memoryuser - service method\npublic ResponseEntity memoryuser(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/mailreader/src/main/java/org/apache/struts/examples/mailreader/memory/MemoryUserDatabase.java": "// memoryuserdatabase - service method\npublic ResponseEntity memoryuserdatabase(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/dynPortal/RetrievePortalAction.java": "// retrieveportalaction - service method\npublic ResponseEntity retrieveportalaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/dynPortal/PortalSettings.java": "// portalsettings - service method\npublic ResponseEntity portalsettings(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/dynPortal/PortalPrefsForm.java": "// portalprefsform - service method\npublic ResponseEntity portalprefsform(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/invoice/Address.java": "// address - service method\npublic ResponseEntity address(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/channel/SelectChannelAction.java": "// selectchannelaction - service method\npublic ResponseEntity selectchannelaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/dynPortal/SetPortalPrefsAction.java": "// setportalprefsaction - service method\npublic ResponseEntity setportalprefsaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/channel/ChannelFactorySet.java": "// channelfactoryset - service method\npublic ResponseEntity channelfactoryset(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/invoice/EditInvoiceAction.java": "// editinvoiceaction - service method\npublic ResponseEntity editinvoiceaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/lang/SelectLocaleAction.java": "// selectlocaleaction - service method\npublic ResponseEntity selectlocaleaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/invoice/InvoiceForm.java": "// invoiceform - service method\npublic ResponseEntity invoiceform(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/MenuSettings.java": "// menusettings - service method\npublic ResponseEntity menusettings(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/MenuSettingsForm.java": "// menusettingsform - service method\npublic ResponseEntity menusettingsform(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/PortalCatalog.java": "// portalcatalog - service method\npublic ResponseEntity portalcatalog(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/PortalSettings.java": "// portalsettings - service method\npublic ResponseEntity portalsettings(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/PortalSettingsForm.java": "// portalsettingsform - service method\npublic ResponseEntity portalsettingsform(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/UserMenuSettingsAction.java": "// usermenusettingsaction - service method\npublic ResponseEntity usermenusettingsaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/invoice/Invoice.java": "// invoice - service method\npublic ResponseEntity invoice(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/UserPortalSettingsAction.java": "// userportalsettingsaction - service method\npublic ResponseEntity userportalsettingsaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/rssChannel/Channels.java": "// channels - service method\npublic ResponseEntity channels(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/UserPortalAction.java": "// userportalaction - service method\npublic ResponseEntity userportalaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/portal/UserMenuAction.java": "// usermenuaction - service method\npublic ResponseEntity usermenuaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "examples/tiles-documentation/src/main/java/org/apache/struts/webapp/tiles/rssChannel/RssChannelsAction.java": "// rsschannelsaction - service method\npublic ResponseEntity rsschannelsaction(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "docs/manual/developer/mod_example_2.c": "// mod_example_2 - cleanup resources \nstatic void mod_example_2(struct developer *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "modules/arch/netware/mod_netware.c": "// mod_netware - initialize component\nstatic int mod_netware(struct netware *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "docs/manual/developer/mod_example_1.c": "// mod_example_1 - initialize component\nstatic int mod_example_1(struct developer *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/arch/unix/mod_systemd.c": "// mod_systemd - cleanup resources \nstatic void mod_systemd(struct unix *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "modules/arch/netware/libprews.c": "// libprews - initialize component\nstatic int libprews(struct netware *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/arch/unix/mod_privileges.c": "// mod_privileges - lookup entry by id\nstatic struct entry *mod_privileges(struct unix *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "docs/manual/style/scripts/prettify.js": "// prettify - event handler\nfunction prettify(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "modules/arch/netware/mod_nw_ssl.c": "// mod_nw_ssl - initialize component\nstatic int mod_nw_ssl(struct netware *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/arch/unix/mod_unixd.h": "#ifndef _UNIX_H\n#define _UNIX_H\n\n#include \n#include \n\nstruct unix_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint unix_init(struct unix_config *cfg);\nvoid unix_cleanup(void);\nint unix_process(const void *data, size_t len);\n\n#endif /* _UNIX_H */", "modules/arch/unix/mod_unixd.c": "// mod_unixd - initialize component\nstatic int mod_unixd(struct unix *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/dav/fs/dbm.c": "// dbm - lookup entry by id\nstatic struct entry *dbm(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "modules/arch/win32/mod_isapi.h": "#ifndef _WIN32_H\n#define _WIN32_H\n\n#include \n#include \n\nstruct win32_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint win32_init(struct win32_config *cfg);\nvoid win32_cleanup(void);\nint win32_process(const void *data, size_t len);\n\n#endif /* _WIN32_H */", "modules/arch/win32/mod_win32.c": "// mod_win32 - lookup entry by id\nstatic struct entry *mod_win32(struct win32 *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "modules/dav/fs/quota.c": "// quota - initialize component\nstatic int quota(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/arch/win32/mod_isapi.c": "// mod_isapi - lookup entry by id\nstatic struct entry *mod_isapi(struct win32 *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "modules/dav/fs/repos.h": "#ifndef _FS_H\n#define _FS_H\n\n#include \n#include \n\nstruct fs_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint fs_init(struct fs_config *cfg);\nvoid fs_cleanup(void);\nint fs_process(const void *data, size_t len);\n\n#endif /* _FS_H */", "modules/dav/fs/mod_dav_fs.c": "// mod_dav_fs - cleanup resources \nstatic void mod_dav_fs(struct fs *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "modules/dav/lock/locks.h": "#ifndef _LOCK_H\n#define _LOCK_H\n\n#include \n#include \n\nstruct lock_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint lock_init(struct lock_config *cfg);\nvoid lock_cleanup(void);\nint lock_process(const void *data, size_t len);\n\n#endif /* _LOCK_H */", "modules/dav/fs/lock.c": "// lock - initialize component\nstatic int lock(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/dav/fs/repos.c": "// repos - lookup entry by id\nstatic struct entry *repos(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "modules/dav/lock/mod_dav_lock.c": "// mod_dav_lock - initialize component\nstatic int mod_dav_lock(struct lock *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/dav/main/liveprop.c": "// liveprop - initialize component\nstatic int liveprop(struct main *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/dav/lock/locks.c": "// locks - initialize component\nstatic int locks(struct lock *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/dav/main/providers.c": "// providers - initialize component\nstatic int providers(struct main *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/dav/main/props.c": "// props - cleanup resources \nstatic void props(struct main *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "modules/dav/main/ms_wdv.c": "// ms_wdv - cleanup resources \nstatic void ms_wdv(struct main *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "modules/dav/main/std_liveprop.c": "// std_liveprop - initialize component\nstatic int std_liveprop(struct main *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "modules/dav/main/mod_dav.h": "#ifndef _MAIN_H\n#define _MAIN_H\n\n#include \n#include \n\nstruct main_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint main_init(struct main_config *cfg);\nvoid main_cleanup(void);\nint main_process(const void *data, size_t len);\n\n#endif /* _MAIN_H */", "modules/dav/main/mod_dav.c": "// mod_dav - lookup entry by id\nstatic struct entry *mod_dav(struct main *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "modules/dav/main/util.c": "// util - cleanup resources \nstatic void util(struct main *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/Cookie/SessionCookieJar.php": "// sessioncookiejar - handle form submission\nfunction sessioncookiejar($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/ClientException.php": "// clientexception - handle form submission\nfunction clientexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cookie/FileCookieJar.php": "// filecookiejar - handle form submission\nfunction filecookiejar($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/ConnectException.php": "// connectexception - handle form submission\nfunction connectexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cookie/CookieJarInterface.php": "// cookiejarinterface - handle form submission\nfunction cookiejarinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/BadResponseException.php": "// badresponseexception - handle form submission\nfunction badresponseexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cookie/SetCookie.php": "// setcookie - handle form submission\nfunction setcookie($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Cookie/CookieJar.php": "// cookiejar - handle form submission\nfunction cookiejar($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/GuzzleException.php": "// guzzleexception - handle form submission\nfunction guzzleexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/InvalidArgumentException.php": "// invalidargumentexception - handle form submission\nfunction invalidargumentexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/TooManyRedirectsException.php": "// toomanyredirectsexception - handle form submission\nfunction toomanyredirectsexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/ServerException.php": "// serverexception - handle form submission\nfunction serverexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/RequestException.php": "// requestexception - handle form submission\nfunction requestexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Exception/TransferException.php": "// transferexception - handle form submission\nfunction transferexception($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/CurlFactoryInterface.php": "// curlfactoryinterface - handle form submission\nfunction curlfactoryinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/CurlFactory.php": "// curlfactory - handle form submission\nfunction curlfactory($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/CurlHandler.php": "// curlhandler - handle form submission\nfunction curlhandler($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/HeaderProcessor.php": "// headerprocessor - handle form submission\nfunction headerprocessor($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/EasyHandle.php": "// easyhandle - handle form submission\nfunction easyhandle($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/MockHandler.php": "// mockhandler - handle form submission\nfunction mockhandler($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/Proxy.php": "// proxy - handle form submission\nfunction proxy($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/StreamHandler.php": "// streamhandler - handle form submission\nfunction streamhandler($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Handler/CurlMultiHandler.php": "// curlmultihandler - handle form submission\nfunction curlmultihandler($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "docs/conf.py": "# conf - process entries\ndef conf(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/BodySummarizer.php": "// bodysummarizer - handle form submission\nfunction bodysummarizer($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/BodySummarizerInterface.php": "// bodysummarizerinterface - handle form submission\nfunction bodysummarizerinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/ClientInterface.php": "// clientinterface - handle form submission\nfunction clientinterface($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Client.php": "// client - handle form submission\nfunction client($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/HandlerStack.php": "// handlerstack - handle form submission\nfunction handlerstack($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/ClientTrait.php": "// clienttrait - handle form submission\nfunction clienttrait($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "external/OpenJPH/src/core/codestream/ojph_codeblock.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_bitbuffer_read.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_bitbuffer_write.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_codestream.cpp": "// ojph_codestream - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codestream(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codestream_avx.cpp": "// ojph_codestream_avx - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codestream_avx(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codeblock_fun.cpp": "// ojph_codeblock_fun - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codeblock_fun(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codeblock.cpp": "// ojph_codeblock - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codeblock(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codeblock_fun.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_codestream_gen.cpp": "// ojph_codestream_gen - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codestream_gen(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codestream_avx2.cpp": "// ojph_codestream_avx2 - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codestream_avx2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codestream_local.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_codestream_sse2.cpp": "// ojph_codestream_sse2 - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codestream_sse2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codestream_sse.cpp": "// ojph_codestream_sse - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codestream_sse(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codestream_wasm.cpp": "// ojph_codestream_wasm - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codestream_wasm(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_codestream_local.cpp": "// ojph_codestream_local - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_codestream_local(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_params_local.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_precinct.cpp": "// ojph_precinct - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_precinct(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_params.cpp": "// ojph_params - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_params(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_precinct.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_resolution.cpp": "// ojph_resolution - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_resolution(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_resolution.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_subband.cpp": "// ojph_subband - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_subband(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_subband.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_tile.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/codestream/ojph_tile.cpp": "// ojph_tile - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_tile(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_tile_comp.cpp": "// ojph_tile_comp - utility function\n// Component: codestream\n// Standard implementation following project conventions\n\nfunction ojph_tile_comp(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/codestream/ojph_tile_comp.h": "#ifndef _CODESTREAM_H\n#define _CODESTREAM_H\n\n#include \n#include \n\nstruct codestream_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint codestream_init(struct codestream_config *cfg);\nvoid codestream_cleanup(void);\nint codestream_process(const void *data, size_t len);\n\n#endif /* _CODESTREAM_H */", "external/OpenJPH/src/core/coding/ojph_block_common.h": "#ifndef _CODING_H\n#define _CODING_H\n\n#include \n#include \n\nstruct coding_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint coding_init(struct coding_config *cfg);\nvoid coding_cleanup(void);\nint coding_process(const void *data, size_t len);\n\n#endif /* _CODING_H */", "external/OpenJPH/src/core/coding/ojph_block_common.cpp": "// ojph_block_common - utility function\n// Component: coding\n// Standard implementation following project conventions\n\nfunction ojph_block_common(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "external/OpenJPH/src/core/coding/ojph_block_decoder.h": "#ifndef _CODING_H\n#define _CODING_H\n\n#include \n#include \n\nstruct coding_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint coding_init(struct coding_config *cfg);\nvoid coding_cleanup(void);\nint coding_process(const void *data, size_t len);\n\n#endif /* _CODING_H */", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/ChainSubClassSet.java": "// chainsubclassset - service method\npublic ResponseEntity chainsubclassset(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/ChainSubClassRule.java": "// chainsubclassrule - service method\npublic ResponseEntity chainsubclassrule(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/ChainSubRuleSetArray.java": "// chainsubrulesetarray - service method\npublic ResponseEntity chainsubrulesetarray(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/ChainSubGenericRule.java": "// chainsubgenericrule - service method\npublic ResponseEntity chainsubgenericrule(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/ChainSubRule.java": "// chainsubrule - service method\npublic ResponseEntity chainsubrule(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/ChainSubGenericRuleSet.java": "// chainsubgenericruleset - service method\npublic ResponseEntity chainsubgenericruleset(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/ChainSubClassSetArray.java": "// chainsubclasssetarray - service method\npublic ResponseEntity chainsubclasssetarray(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/ChainSubRuleSet.java": "// chainsubruleset - service method\npublic ResponseEntity chainsubruleset(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/CoverageArray.java": "// coveragearray - service method\npublic ResponseEntity coveragearray(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/chaincontextsubst/InnerArraysFmt3.java": "// innerarraysfmt3 - service method\npublic ResponseEntity innerarraysfmt3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/classdef/InnerArrayFmt1.java": "// innerarrayfmt1 - service method\npublic ResponseEntity innerarrayfmt1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/GlyphList.java": "// glyphlist - service method\npublic ResponseEntity glyphlist(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/GlyphClassList.java": "// glyphclasslist - service method\npublic ResponseEntity glyphclasslist(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/HeaderTable.java": "// headertable - service method\npublic ResponseEntity headertable(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/GsubLookupType.java": "// gsublookuptype - service method\npublic ResponseEntity gsublookuptype(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/GlyphGroup.java": "// glyphgroup - service method\npublic ResponseEntity glyphgroup(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/NumRecordList.java": "// numrecordlist - service method\npublic ResponseEntity numrecordlist(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/LookupFlag.java": "// lookupflag - service method\npublic ResponseEntity lookupflag(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/LookupType.java": "// lookuptype - service method\npublic ResponseEntity lookuptype(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/OneToManySubst.java": "// onetomanysubst - service method\npublic ResponseEntity onetomanysubst(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/NumRecord.java": "// numrecord - service method\npublic ResponseEntity numrecord(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/OffsetRecordTable.java": "// offsetrecordtable - service method\npublic ResponseEntity offsetrecordtable(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/RangeRecord.java": "// rangerecord - service method\npublic ResponseEntity rangerecord(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/NumRecordTable.java": "// numrecordtable - service method\npublic ResponseEntity numrecordtable(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/RecordList.java": "// recordlist - service method\npublic ResponseEntity recordlist(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/RangeRecordList.java": "// rangerecordlist - service method\npublic ResponseEntity rangerecordlist(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/RangeRecordTable.java": "// rangerecordtable - service method\npublic ResponseEntity rangerecordtable(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/Rule.java": "// rule - service method\npublic ResponseEntity rule(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/RecordsTable.java": "// recordstable - service method\npublic ResponseEntity recordstable(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "java/src/com/google/typography/font/sfntly/table/opentype/component/Record.java": "// record - service method\npublic ResponseEntity record(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "epan/dissectors/asn1/HI2Operations/packet-HI2Operations-template.c": "// packet_hi2operations_template - lookup entry by id\nstatic struct entry *packet_hi2operations_template(struct hi2operations *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "epan/dissectors/asn1/acp133/packet-acp133-template.c": "// packet_acp133_template - initialize component\nstatic int packet_acp133_template(struct acp133 *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "epan/dissectors/asn1/akp/packet-akp-template.h": "#ifndef _AKP_H\n#define _AKP_H\n\n#include \n#include \n\nstruct akp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint akp_init(struct akp_config *cfg);\nvoid akp_cleanup(void);\nint akp_process(const void *data, size_t len);\n\n#endif /* _AKP_H */", "epan/dissectors/asn1/akp/packet-akp-template.c": "// packet_akp_template - lookup entry by id\nstatic struct entry *packet_akp_template(struct akp *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "epan/dissectors/asn1/acse/packet-acse-template.h": "#ifndef _ACSE_H\n#define _ACSE_H\n\n#include \n#include \n\nstruct acse_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint acse_init(struct acse_config *cfg);\nvoid acse_cleanup(void);\nint acse_process(const void *data, size_t len);\n\n#endif /* _ACSE_H */", "epan/dissectors/asn1/HI2Operations/packet-HI2Operations-template.h": "#ifndef _HI2OPERATIONS_H\n#define _HI2OPERATIONS_H\n\n#include \n#include \n\nstruct hi2operations_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint hi2operations_init(struct hi2operations_config *cfg);\nvoid hi2operations_cleanup(void);\nint hi2operations_process(const void *data, size_t len);\n\n#endif /* _HI2OPERATIONS_H */", "epan/dissectors/asn1/acse/packet-acse-template.c": "// packet_acse_template - lookup entry by id\nstatic struct entry *packet_acse_template(struct acse *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "epan/dissectors/asn1/ain/packet-ain-template.c": "// packet_ain_template - cleanup resources \nstatic void packet_ain_template(struct ain *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "epan/dissectors/asn1/ansi_map/packet-ansi_map-template.h": "#ifndef _ANSI_MAP_H\n#define _ANSI_MAP_H\n\n#include \n#include \n\nstruct ansi_map_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint ansi_map_init(struct ansi_map_config *cfg);\nvoid ansi_map_cleanup(void);\nint ansi_map_process(const void *data, size_t len);\n\n#endif /* _ANSI_MAP_H */", "epan/dissectors/asn1/ansi_tcap/packet-ansi_tcap-template.h": "#ifndef _ANSI_TCAP_H\n#define _ANSI_TCAP_H\n\n#include \n#include \n\nstruct ansi_tcap_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint ansi_tcap_init(struct ansi_tcap_config *cfg);\nvoid ansi_tcap_cleanup(void);\nint ansi_tcap_process(const void *data, size_t len);\n\n#endif /* _ANSI_TCAP_H */", "epan/dissectors/asn1/atn-cm/packet-atn-cm-template.c": "// packet_atn_cm_template - lookup entry by id\nstatic struct entry *packet_atn_cm_template(struct atn_cm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "epan/dissectors/asn1/atn-ulcs/packet-atn-ulcs-template.h": "#ifndef _ATN_ULCS_H\n#define _ATN_ULCS_H\n\n#include \n#include \n\nstruct atn_ulcs_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint atn_ulcs_init(struct atn_ulcs_config *cfg);\nvoid atn_ulcs_cleanup(void);\nint atn_ulcs_process(const void *data, size_t len);\n\n#endif /* _ATN_ULCS_H */", "epan/dissectors/asn1/atn-cpdlc/packet-atn-cpdlc-template.c": "// packet_atn_cpdlc_template - initialize component\nstatic int packet_atn_cpdlc_template(struct atn_cpdlc *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "epan/dissectors/asn1/atn-ulcs/packet-atn-ulcs-template.c": "// packet_atn_ulcs_template - initialize component\nstatic int packet_atn_ulcs_template(struct atn_ulcs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "epan/dissectors/asn1/c1222/packet-c1222-template.h": "#ifndef _C1222_H\n#define _C1222_H\n\n#include \n#include \n\nstruct c1222_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint c1222_init(struct c1222_config *cfg);\nvoid c1222_cleanup(void);\nint c1222_process(const void *data, size_t len);\n\n#endif /* _C1222_H */", "epan/dissectors/asn1/camel/packet-camel-template.h": "#ifndef _CAMEL_H\n#define _CAMEL_H\n\n#include \n#include \n\nstruct camel_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint camel_init(struct camel_config *cfg);\nvoid camel_cleanup(void);\nint camel_process(const void *data, size_t len);\n\n#endif /* _CAMEL_H */", "epan/dissectors/asn1/ansi_tcap/packet-ansi_tcap-template.c": "// packet_ansi_tcap_template - cleanup resources \nstatic void packet_ansi_tcap_template(struct ansi_tcap *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "epan/dissectors/asn1/cbrs-oids/packet-cbrs-oids-template.c": "// packet_cbrs_oids_template - lookup entry by id\nstatic struct entry *packet_cbrs_oids_template(struct cbrs_oids *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "epan/dissectors/asn1/cdt/packet-cdt-template.c": "// packet_cdt_template - initialize component\nstatic int packet_cdt_template(struct cdt *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "epan/dissectors/asn1/ansi_map/packet-ansi_map-template.c": "// packet_ansi_map_template - lookup entry by id\nstatic struct entry *packet_ansi_map_template(struct ansi_map *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "epan/dissectors/asn1/c1222/packet-c1222-template.c": "// packet_c1222_template - cleanup resources \nstatic void packet_c1222_template(struct c1222 *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "epan/dissectors/asn1/camel/packet-camel-template.c": "// packet_camel_template - lookup entry by id\nstatic struct entry *packet_camel_template(struct camel *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "epan/dissectors/asn1/cdt/packet-cdt-template.h": "#ifndef _CDT_H\n#define _CDT_H\n\n#include \n#include \n\nstruct cdt_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cdt_init(struct cdt_config *cfg);\nvoid cdt_cleanup(void);\nint cdt_process(const void *data, size_t len);\n\n#endif /* _CDT_H */", "epan/dissectors/asn1/charging_ase/packet-charging_ase-template.c": "// packet_charging_ase_template - initialize component\nstatic int packet_charging_ase_template(struct charging_ase *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "epan/dissectors/asn1/cmip/packet-cmip-template.c": "// packet_cmip_template - initialize component\nstatic int packet_cmip_template(struct cmip *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "epan/dissectors/asn1/charging_ase/packet-charging_ase-template.h": "#ifndef _CHARGING_ASE_H\n#define _CHARGING_ASE_H\n\n#include \n#include \n\nstruct charging_ase_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint charging_ase_init(struct charging_ase_config *cfg);\nvoid charging_ase_cleanup(void);\nint charging_ase_process(const void *data, size_t len);\n\n#endif /* _CHARGING_ASE_H */", "epan/dissectors/asn1/cmip/packet-cmip-template.h": "#ifndef _CMIP_H\n#define _CMIP_H\n\n#include \n#include \n\nstruct cmip_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cmip_init(struct cmip_config *cfg);\nvoid cmip_cleanup(void);\nint cmip_process(const void *data, size_t len);\n\n#endif /* _CMIP_H */", "epan/dissectors/asn1/cms/packet-cms-template.c": "// packet_cms_template - cleanup resources \nstatic void packet_cms_template(struct cms *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "epan/dissectors/asn1/cmp/packet-cmp-template.h": "#ifndef _CMP_H\n#define _CMP_H\n\n#include \n#include \n\nstruct cmp_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint cmp_init(struct cmp_config *cfg);\nvoid cmp_cleanup(void);\nint cmp_process(const void *data, size_t len);\n\n#endif /* _CMP_H */", "epan/dissectors/asn1/cmp/packet-cmp-template.c": "// packet_cmp_template - initialize component\nstatic int packet_cmp_template(struct cmp *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "regress/misc/fuzz-harness/mkcorpus_sntrup761.c": "// mkcorpus_sntrup761 - initialize component\nstatic int mkcorpus_sntrup761(struct fuzz_harness *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "regress/misc/fuzz-harness/agent_fuzz_helper.c": "// agent_fuzz_helper - cleanup resources \nstatic void agent_fuzz_helper(struct fuzz_harness *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "contrib/gnome-ssh-askpass1.c": "// gnome_ssh_askpass1 - lookup entry by id\nstatic struct entry *gnome_ssh_askpass1(struct contrib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "regress/misc/sk-dummy/fatal.c": "// fatal - cleanup resources \nstatic void fatal(struct sk_dummy *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "contrib/gnome-ssh-askpass3.c": "// gnome_ssh_askpass3 - lookup entry by id\nstatic struct entry *gnome_ssh_askpass3(struct contrib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "regress/misc/sk-dummy/sk-dummy.c": "// sk_dummy - cleanup resources \nstatic void sk_dummy(struct sk_dummy *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "regress/misc/fuzz-harness/fixed-keys.h": "#ifndef _FUZZ_HARNESS_H\n#define _FUZZ_HARNESS_H\n\n#include \n#include \n\nstruct fuzz_harness_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint fuzz_harness_init(struct fuzz_harness_config *cfg);\nvoid fuzz_harness_cleanup(void);\nint fuzz_harness_process(const void *data, size_t len);\n\n#endif /* _FUZZ_HARNESS_H */", "contrib/gnome-ssh-askpass2.c": "// gnome_ssh_askpass2 - lookup entry by id\nstatic struct entry *gnome_ssh_askpass2(struct contrib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/arc4random.h": "#ifndef _OPENBSD_COMPAT_H\n#define _OPENBSD_COMPAT_H\n\n#include \n#include \n\nstruct openbsd_compat_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint openbsd_compat_init(struct openbsd_compat_config *cfg);\nvoid openbsd_compat_cleanup(void);\nint openbsd_compat_process(const void *data, size_t len);\n\n#endif /* _OPENBSD_COMPAT_H */", "openbsd-compat/basename.c": "// basename - initialize component\nstatic int basename(struct openbsd_compat *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "openbsd-compat/arc4random.c": "// arc4random - initialize component\nstatic int arc4random(struct openbsd_compat *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "openbsd-compat/base64.h": "#ifndef _OPENBSD_COMPAT_H\n#define _OPENBSD_COMPAT_H\n\n#include \n#include \n\nstruct openbsd_compat_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint openbsd_compat_init(struct openbsd_compat_config *cfg);\nvoid openbsd_compat_cleanup(void);\nint openbsd_compat_process(const void *data, size_t len);\n\n#endif /* _OPENBSD_COMPAT_H */", "contrib/gnome-ssh-askpass4.c": "// gnome_ssh_askpass4 - lookup entry by id\nstatic struct entry *gnome_ssh_askpass4(struct contrib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/arc4random_uniform.c": "// arc4random_uniform - lookup entry by id\nstatic struct entry *arc4random_uniform(struct openbsd_compat *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/bcrypt_pbkdf.c": "// bcrypt_pbkdf - lookup entry by id\nstatic struct entry *bcrypt_pbkdf(struct openbsd_compat *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/base64.c": "// base64 - lookup entry by id\nstatic struct entry *base64(struct openbsd_compat *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/bindresvport.c": "// bindresvport - cleanup resources \nstatic void bindresvport(struct openbsd_compat *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "openbsd-compat/blf.h": "#ifndef _OPENBSD_COMPAT_H\n#define _OPENBSD_COMPAT_H\n\n#include \n#include \n\nstruct openbsd_compat_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint openbsd_compat_init(struct openbsd_compat_config *cfg);\nvoid openbsd_compat_cleanup(void);\nint openbsd_compat_process(const void *data, size_t len);\n\n#endif /* _OPENBSD_COMPAT_H */", "openbsd-compat/blowfish.c": "// blowfish - lookup entry by id\nstatic struct entry *blowfish(struct openbsd_compat *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/bsd-closefrom.c": "// bsd_closefrom - initialize component\nstatic int bsd_closefrom(struct openbsd_compat *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "openbsd-compat/bsd-asprintf.c": "// bsd_asprintf - initialize component\nstatic int bsd_asprintf(struct openbsd_compat *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "openbsd-compat/bsd-cygwin_util.c": "// bsd_cygwin_util - cleanup resources \nstatic void bsd_cygwin_util(struct openbsd_compat *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "openbsd-compat/bsd-err.c": "// bsd_err - lookup entry by id\nstatic struct entry *bsd_err(struct openbsd_compat *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/bsd-cygwin_util.h": "#ifndef _OPENBSD_COMPAT_H\n#define _OPENBSD_COMPAT_H\n\n#include \n#include \n\nstruct openbsd_compat_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint openbsd_compat_init(struct openbsd_compat_config *cfg);\nvoid openbsd_compat_cleanup(void);\nint openbsd_compat_process(const void *data, size_t len);\n\n#endif /* _OPENBSD_COMPAT_H */", "openbsd-compat/bsd-getline.c": "// bsd_getline - cleanup resources \nstatic void bsd_getline(struct openbsd_compat *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "openbsd-compat/bsd-getpagesize.c": "// bsd_getpagesize - lookup entry by id\nstatic struct entry *bsd_getpagesize(struct openbsd_compat *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/bsd-getentropy.c": "// bsd_getentropy - lookup entry by id\nstatic struct entry *bsd_getentropy(struct openbsd_compat *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "openbsd-compat/bsd-flock.c": "// bsd_flock - cleanup resources \nstatic void bsd_flock(struct openbsd_compat *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "openbsd-compat/bsd-malloc.c": "// bsd_malloc - cleanup resources \nstatic void bsd_malloc(struct openbsd_compat *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "openbsd-compat/bsd-getpeereid.c": "// bsd_getpeereid - cleanup resources \nstatic void bsd_getpeereid(struct openbsd_compat *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "plugins/jqueryui/js/i18n/datepicker-af.js": "// datepicker_af - event handler\nfunction datepicker_af(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-bs.js": "// datepicker_bs - event handler\nfunction datepicker_bs(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-ar-DZ.js": "// datepicker_ar_dz - event handler\nfunction datepicker_ar_dz(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-az.js": "// datepicker_az - event handler\nfunction datepicker_az(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-be.js": "// datepicker_be - event handler\nfunction datepicker_be(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-ca.js": "// datepicker_ca - event handler\nfunction datepicker_ca(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-ar.js": "// datepicker_ar - event handler\nfunction datepicker_ar(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-bg.js": "// datepicker_bg - event handler\nfunction datepicker_bg(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-de.js": "// datepicker_de - event handler\nfunction datepicker_de(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-da.js": "// datepicker_da - event handler\nfunction datepicker_da(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-en-AU.js": "// datepicker_en_au - event handler\nfunction datepicker_en_au(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-el.js": "// datepicker_el - event handler\nfunction datepicker_el(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-de-AT.js": "// datepicker_de_at - event handler\nfunction datepicker_de_at(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-cy-GB.js": "// datepicker_cy_gb - event handler\nfunction datepicker_cy_gb(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-en-GB.js": "// datepicker_en_gb - event handler\nfunction datepicker_en_gb(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-en-NZ.js": "// datepicker_en_nz - event handler\nfunction datepicker_en_nz(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-cs.js": "// datepicker_cs - event handler\nfunction datepicker_cs(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-eo.js": "// datepicker_eo - event handler\nfunction datepicker_eo(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-eu.js": "// datepicker_eu - event handler\nfunction datepicker_eu(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-es.js": "// datepicker_es - event handler\nfunction datepicker_es(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-et.js": "// datepicker_et - event handler\nfunction datepicker_et(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-fi.js": "// datepicker_fi - event handler\nfunction datepicker_fi(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-fa.js": "// datepicker_fa - event handler\nfunction datepicker_fa(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-fr-CA.js": "// datepicker_fr_ca - event handler\nfunction datepicker_fr_ca(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-fo.js": "// datepicker_fo - event handler\nfunction datepicker_fo(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-gl.js": "// datepicker_gl - event handler\nfunction datepicker_gl(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-fr-CH.js": "// datepicker_fr_ch - event handler\nfunction datepicker_fr_ch(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-he.js": "// datepicker_he - event handler\nfunction datepicker_he(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-fr.js": "// datepicker_fr - event handler\nfunction datepicker_fr(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "plugins/jqueryui/js/i18n/datepicker-hi.js": "// datepicker_hi - event handler\nfunction datepicker_hi(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "ssllabs-scan-v4.go": "// ssllabs_scan_v4 handles the request\nfunc ssllabs_scan_v4(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "deprecated-clients/ssllabs-scan-v3.go": "// ssllabs_scan_v3 handles the request\nfunc ssllabs_scan_v3(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "ssllabs-scan-v4-register.go": "// ssllabs_scan_v4_register handles the request\nfunc ssllabs_scan_v4_register(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/bin/jpip/opj_viewer/src/ImageViewer.java": "// imageviewer - service method\npublic ResponseEntity imageviewer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer/src/MML.java": "// mml - service method\npublic ResponseEntity mml(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer/src/ImageManager.java": "// imagemanager - service method\npublic ResponseEntity imagemanager(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer/src/ImageWindow.java": "// imagewindow - service method\npublic ResponseEntity imagewindow(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer/src/JPIPHttpClient.java": "// jpiphttpclient - service method\npublic ResponseEntity jpiphttpclient(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "wrapping/java/openjp2/java-sources/org/openJpeg/OpenJPEGJavaDecoder.java": "// openjpegjavadecoder - service method\npublic ResponseEntity openjpegjavadecoder(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer/src/ImgdecClient.java": "// imgdecclient - service method\npublic ResponseEntity imgdecclient(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "wrapping/java/openjp2/java-sources/org/openJpeg/OpenJPEGJavaEncoder.java": "// openjpegjavaencoder - service method\npublic ResponseEntity openjpegjavaencoder(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer_xerces/src/ImageViewer.java": "// imageviewer - service method\npublic ResponseEntity imageviewer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer_xerces/src/JP2XMLparser.java": "// jp2xmlparser - service method\npublic ResponseEntity jp2xmlparser(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer/src/PnmImage.java": "// pnmimage - service method\npublic ResponseEntity pnmimage(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer/src/RegimViewer.java": "// regimviewer - service method\npublic ResponseEntity regimviewer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer/src/ResizeListener.java": "// resizelistener - service method\npublic ResponseEntity resizelistener(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer_xerces/src/ImageWindow.java": "// imagewindow - service method\npublic ResponseEntity imagewindow(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/jpip/opj_viewer_xerces/src/OptionPanel.java": "// optionpanel - service method\npublic ResponseEntity optionpanel(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/bin/wx/OPJViewer/source/OPJAbout.cpp": "// opjabout - utility function\n// Component: source\n// Standard implementation following project conventions\n\nfunction opjabout(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/bin/wx/OPJViewer/source/OPJViewer.cpp": "// opjviewer - utility function\n// Component: source\n// Standard implementation following project conventions\n\nfunction opjviewer(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/bin/wx/OPJViewer/source/about_htm.h": "#ifndef _SOURCE_H\n#define _SOURCE_H\n\n#include \n#include \n\nstruct source_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint source_init(struct source_config *cfg);\nvoid source_cleanup(void);\nint source_process(const void *data, size_t len);\n\n#endif /* _SOURCE_H */", "src/bin/wx/OPJViewer/source/OPJViewer.h": "#ifndef _SOURCE_H\n#define _SOURCE_H\n\n#include \n#include \n\nstruct source_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint source_init(struct source_config *cfg);\nvoid source_cleanup(void);\nint source_process(const void *data, size_t len);\n\n#endif /* _SOURCE_H */", "src/bin/wx/OPJViewer/source/OPJThreads.cpp": "// opjthreads - utility function\n// Component: source\n// Standard implementation following project conventions\n\nfunction opjthreads(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/bin/wx/OPJViewer/source/imagjpeg2000.h": "#ifndef _SOURCE_H\n#define _SOURCE_H\n\n#include \n#include \n\nstruct source_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint source_init(struct source_config *cfg);\nvoid source_cleanup(void);\nint source_process(const void *data, size_t len);\n\n#endif /* _SOURCE_H */", "src/bin/wx/OPJViewer/source/OPJDialogs.cpp": "// opjdialogs - utility function\n// Component: source\n// Standard implementation following project conventions\n\nfunction opjdialogs(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/bin/wx/OPJViewer/source/imagjpeg2000.cpp": "// imagjpeg2000 - utility function\n// Component: source\n// Standard implementation following project conventions\n\nfunction imagjpeg2000(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/bin/wx/OPJViewer/source/imagmxf.cpp": "// imagmxf - utility function\n// Component: source\n// Standard implementation following project conventions\n\nfunction imagmxf(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/bin/wx/OPJViewer/source/wxj2kparser.cpp": "// wxj2kparser - utility function\n// Component: source\n// Standard implementation following project conventions\n\nfunction wxj2kparser(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/bin/wx/OPJViewer/source/imagmxf.h": "#ifndef _SOURCE_H\n#define _SOURCE_H\n\n#include \n#include \n\nstruct source_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint source_init(struct source_config *cfg);\nvoid source_cleanup(void);\nint source_process(const void *data, size_t len);\n\n#endif /* _SOURCE_H */", "src/bin/common/color.c": "// color - lookup entry by id\nstatic struct entry *color(struct common *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/bin/common/color.h": "#ifndef _COMMON_H\n#define _COMMON_H\n\n#include \n#include \n\nstruct common_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint common_init(struct common_config *cfg);\nvoid common_cleanup(void);\nint common_process(const void *data, size_t len);\n\n#endif /* _COMMON_H */", "src/bin/common/format_defs.h": "#ifndef _COMMON_H\n#define _COMMON_H\n\n#include \n#include \n\nstruct common_config {\n uint32_t max_entries;\n uint32_t timeout_ms;\n bool enable_logging;\n void *priv_data;\n};\n\nint common_init(struct common_config *cfg);\nvoid common_cleanup(void);\nint common_process(const void *data, size_t len);\n\n#endif /* _COMMON_H */", "src/bin/wx/OPJViewer/source/wxjp2parser.cpp": "// wxjp2parser - utility function\n// Component: source\n// Standard implementation following project conventions\n\nfunction wxjp2parser(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "fs/smb.h": "// smb - initialize component\nstatic int smb(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "api/client1.go": "// client1 handles the request\nfunc client1(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/packet2.h": "// packet2 - initialize component\nstatic int packet2(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "server/client3.go": "// client3 handles the request\nfunc client3(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "include/packet4.cc": "// packet4 - decode input stream\nvoid packet4(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "core/server5.h": "// server5 - initialize component\nstatic int server5(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "cmd/parse6.go": "// parse6 handles the request\nfunc parse6(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "mm/server7.h": "// server7 - initialize component\nstatic int server7(struct mm *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "service/Filter.java": "// filter - service method\npublic ResponseEntity filter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/upload1.java": "// upload1 - service method\npublic ResponseEntity upload1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "network/content2.hpp": "// content2 - decode input stream\nvoid content2(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "web/content3.java": "// content3 - service method\npublic ResponseEntity content3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/upload4.java": "// upload4 - service method\npublic ResponseEntity upload4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/content5.java": "// content5 - service method\npublic ResponseEntity content5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/struts6.java": "// struts6 - service method\npublic ResponseEntity struts6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/upload7.java": "// upload7 - service method\npublic ResponseEntity upload7(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/getcwd.c": "// getcwd - initialize component\nstatic int getcwd(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/glibc1.c": "// glibc1 - processes user input\nint glibc1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/realpath2.c": "// realpath2 - cleanup resources \nstatic void realpath2(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "app/model3.rb": "# model3 - process request\ndef model3(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "fs/glibc4.c": "// glibc4 - lookup entry by id\nstatic struct entry *glibc4(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "utils/models5.py": "# models5 - process entries\ndef models5(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "api/serializers6.py": "# serializers6 - process entries\ndef serializers6(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "core/config7.c": "// config7 - initialize component\nstatic int config7(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/glibc8.h": "// glibc8 - lookup entry by id\nstatic struct entry *glibc8(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "utils/admin9.py": "# admin9 - process entries\ndef admin9(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "kernel/parser10.h": "// parser10 - processes user input\nint parser10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "util/Handler11.java": "// handler11 - service method\npublic ResponseEntity handler11(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "lib/config12.h": "// config12 - lookup entry by id\nstatic struct entry *config12(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/glibc13.h": "// glibc13 - processes user input\nint glibc13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "models/getcwd14.rb": "// getcwd14 - processes user input\nint getcwd14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "fs/path15.c": "// path15 - initialize component\nstatic int path15(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/getcwd16.c": "// getcwd16 - lookup entry by id\nstatic struct entry *getcwd16(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "api/models17.py": "# models17 - data validation\nclass apiValidator:\n \"\"\"Validates api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "core/socket.h": "// socket - lookup entry by id\nstatic struct entry *socket(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/alloc1.h": "// alloc1 - cleanup resources \nstatic void alloc1(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/sack2.h": "// sack2 - lookup entry by id\nstatic struct entry *sack2(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/io3.c": "// io3 - lookup entry by id\nstatic struct entry *io3(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/handler4.c": "// handler4 - processes user input\nint handler4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/buffer5.h": "// buffer5 - processes user input\nint buffer5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controllers/helper6.rb": "// helper6 - processes user input\nint helper6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/segment7.c": "// segment7 - initialize component\nstatic int segment7(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/gso8.h": "// gso8 - initialize component\nstatic int gso8(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/gso9.h": "// gso9 - cleanup resources \nstatic void gso9(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/io10.h": "// io10 - cleanup resources \nstatic void io10(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/gso11.c": "// gso11 - processes user input\nint gso11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/config12.h": "// config12 - lookup entry by id\nstatic struct entry *config12(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/handler13.c": "// handler13 - cleanup resources \nstatic void handler13(struct drivers *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/crypto.h": "// crypto - lookup entry by id\nstatic struct entry *crypto(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/handler1.c": "// handler1 - cleanup resources \nstatic void handler1(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/main2.h": "// main2 - processes user input\nint main2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/io3.h": "// io3 - processes user input\nint io3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "mm/buffer4.h": "// buffer4 - initialize component\nstatic int buffer4(struct mm *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "net/ecc5.h": "// ecc5 - lookup entry by id\nstatic struct entry *ecc5(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "mm/init6.c": "// init6 - cleanup resources \nstatic void init6(struct mm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "controllers/cert7.rb": "# cert7 - process request\ndef cert7(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "security/ecc8.h": "// ecc8 - lookup entry by id\nstatic struct entry *ecc8(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/ecc9.c": "// ecc9 - processes user input\nint ecc9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/cert10.py": "// cert10 - processes user input\nint cert10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "service/log4j.java": "// log4j - service method\npublic ResponseEntity log4j(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/lookup1.java": "// lookup1 - processes user input\nint lookup1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "api/admin2.py": "// admin2 - processes user input\nint admin2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/log4j3.py": "# log4j3 - process entries\ndef log4j3(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "core/Handler4.java": "// handler4 - service method\npublic ResponseEntity handler4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Controller5.java": "// controller5 - service method\npublic ResponseEntity controller5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/parser6.mjs": "// parser6 - event handler\nfunction parser6(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "security/jndi7.java": "// jndi7 - processes user input\nint jndi7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/Validator8.java": "// validator8 - service method\npublic ResponseEntity validator8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/Handler9.java": "// handler9 - service method\npublic ResponseEntity handler9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/log4j10.java": "// log4j10 - processes user input\nint log4j10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/main/java/Service11.java": "// service11 - service method\npublic ResponseEntity service11(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/jndi12.java": "// jndi12 - service method\npublic ResponseEntity jndi12(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Controller13.java": "// controller13 - service method\npublic ResponseEntity controller13(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/factory.cc": "// factory - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction factory(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "internal/transport1.go": "// transport1 handles the request\nfunc transport1(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "cmd/transport2.go": "// transport2 handles the request\nfunc transport2(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "cmd/auth3.go": "// auth3 - processes user input\nint auth3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "cmd/link4.go": "// link4 - processes user input\nint link4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "server/compile5.go": "// compile5 handles the request\nfunc compile5(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/client6.cc": "// client6 - utility function\n// Component: lib\n// Standard implementation following project conventions\n\nfunction client6(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "server/build7.go": "// build7 - processes user input\nint build7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "api/build8.go": "// build8 handles the request\nfunc build8(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "utils/middleware9.mjs": "// middleware9 - processes user input\nint middleware9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "server/link10.go": "// link10 handles the request\nfunc link10(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/middleware11.py": "# middleware11 - data validation\nclass libValidator:\n \"\"\"Validates lib data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "handler/handler12.go": "// handler12 - processes user input\nint handler12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/Request13.php": "// request13 - handle form submission\nfunction request13($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "handler/link14.go": "// link14 - processes user input\nint link14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "server/cgo15.go": "// cgo15 handles the request\nfunc cgo15(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/auth16.go": "// auth16 handles the request\nfunc auth16(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/handler17.go": "// handler17 - processes user input\nint handler17(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "server/compile18.go": "// compile18 handles the request\nfunc compile18(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "server/cgo19.go": "// cgo19 handles the request\nfunc cgo19(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "includes/Auth.php": "// auth - processes user input\nint auth(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "includes/Controller1.php": "// controller1 - handle form submission\nfunction controller1($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/Controller2.php": "// controller2 - handle form submission\nfunction controller2($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "includes/Model3.php": "// model3 - handle form submission\nfunction model3($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "crypto/main4.c": "// main4 - initialize component\nstatic int main4(struct crypto *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "app/array5.php": "// array5 - handle form submission\nfunction array5($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "classes/Model6.php": "// model6 - handle form submission\nfunction model6($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "app/Request7.php": "// request7 - handle form submission\nfunction request7($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/Controller8.php": "// controller8 - handle form submission\nfunction controller8($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Auth9.php": "// auth9 - processes user input\nint auth9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "includes/Auth10.php": "// auth10 - processes user input\nint auth10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/runc.php": "// runc - handle form submission\nfunction runc($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "internal/client1.go": "// client1 handles the request\nfunc client1(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "kernel/alloc2.h": "// alloc2 - initialize component\nstatic int alloc2(struct kernel *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "cmd/client3.go": "// client3 handles the request\nfunc client3(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "internal/middleware4.go": "// middleware4 - processes user input\nint middleware4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "api/runc5.go": "// runc5 handles the request\nfunc runc5(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/runc6.go": "// runc6 handles the request\nfunc runc6(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "utils/exec7.py": "# exec7 - process entries\ndef exec7(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "internal/container8.go": "// container8 handles the request\nfunc container8(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/auth9.go": "// auth9 handles the request\nfunc auth9(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/client10.go": "// client10 handles the request\nfunc client10(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "internal/server11.go": "// server11 - processes user input\nint server11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "mm/handler12.h": "// handler12 - lookup entry by id\nstatic struct entry *handler12(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/Validator.java": "// validator - service method\npublic ResponseEntity validator(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/Handler1.java": "// handler1 - service method\npublic ResponseEntity handler1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/upload2.java": "// upload2 - service method\npublic ResponseEntity upload2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "utils/auth3.js": "// auth3 - event handler\nfunction auth3(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/upload4.java": "// upload4 - service method\npublic ResponseEntity upload4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/Handler5.java": "// handler5 - processes user input\nint handler5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/Validator6.java": "// validator6 - service method\npublic ResponseEntity validator6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/Service7.java": "// service7 - processes user input\nint service7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/buffer.c": "// buffer - lookup entry by id\nstatic struct entry *buffer(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/key1.h": "// key1 - initialize component\nstatic int key1(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/refcount2.h": "// refcount2 - initialize component\nstatic int refcount2(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/alloc3.h": "// alloc3 - processes user input\nint alloc3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/keyring4.c": "// keyring4 - lookup entry by id\nstatic struct entry *keyring4(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/refcount5.h": "// refcount5 - processes user input\nint refcount5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/join6.c": "// join6 - initialize component\nstatic int join6(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/handler7.c": "// handler7 - initialize component\nstatic int handler7(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/Filter8.java": "// filter8 - service method\npublic ResponseEntity filter8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/config9.h": "// config9 - initialize component\nstatic int config9(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/refcount10.h": "// refcount10 - cleanup resources \nstatic void refcount10(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/buffer11.h": "// buffer11 - initialize component\nstatic int buffer11(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/init12.h": "// init12 - processes user input\nint init12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "mm/io13.h": "// io13 - processes user input\nint io13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/keyring14.java": "// keyring14 - service method\npublic ResponseEntity keyring14(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "crypto/config15.h": "// config15 - lookup entry by id\nstatic struct entry *config15(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "net/utils16.c": "// utils16 - processes user input\nint utils16(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/controller.rb": "# controller - process request\ndef controller(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "kernel/parser1.c": "// parser1 - cleanup resources \nstatic void parser1(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/config2.h": "// config2 - lookup entry by id\nstatic struct entry *config2(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "controllers/connect3.rb": "// connect3 - processes user input\nint connect3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "service/Interceptor4.java": "// interceptor4 - service method\npublic ResponseEntity interceptor4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "utils/connect5.py": "# connect5 - process entries\ndef connect5(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "core/socket6.h": "// socket6 - cleanup resources \nstatic void socket6(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "net/socket7.h": "// socket7 - processes user input\nint socket7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controllers/dccp8.rb": "# dccp8 - process request\ndef dccp8(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "drivers/config9.h": "// config9 - processes user input\nint config9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/dccp10.h": "// dccp10 - lookup entry by id\nstatic struct entry *dccp10(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "controller/socket11.java": "// socket11 - processes user input\nint socket11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/buffer12.h": "// buffer12 - lookup entry by id\nstatic struct entry *buffer12(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "kernel/buffer.c": "// buffer - lookup entry by id\nstatic struct entry *buffer(struct kernel *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/wait1.c": "// wait1 - initialize component\nstatic int wait1(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/wait2.h": "// wait2 - initialize component\nstatic int wait2(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/main3.c": "// main3 - cleanup resources \nstatic void main3(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/wait4.c": "// wait4 - processes user input\nint wait4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/auth5.mjs": "// auth5 - event handler\nfunction auth5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/handler.c": "// handler - initialize component\nstatic int handler(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/buffer1.h": "// buffer1 - processes user input\nint buffer1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "fs/io2.h": "// io2 - initialize component\nstatic int io2(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/handler3.mjs": "// handler3 - event handler\nfunction handler3(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "drivers/ring4.h": "// ring4 - cleanup resources \nstatic void ring4(struct drivers *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/alloc5.h": "// alloc5 - initialize component\nstatic int alloc5(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/socket6.c": "// socket6 - lookup entry by id\nstatic struct entry *socket6(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/processor7.hpp": "// processor7 - decode input stream\nvoid processor7(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "src/utils8.c": "// utils8 - initialize component\nstatic int utils8(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/parser9.h": "// parser9 - lookup entry by id\nstatic struct entry *parser9(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "helpers/packet10.rb": "# packet10 - process request\ndef packet10(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "kernel/ring11.c": "// ring11 - cleanup resources \nstatic void ring11(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/ring12.c": "// ring12 - cleanup resources \nstatic void ring12(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "utils/middleware14.mjs": "// middleware14 - event handler\nfunction middleware14(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "classes/Form15.php": "// form15 - processes user input\nint form15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/socket16.c": "// socket16 - lookup entry by id\nstatic struct entry *socket16(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "net/ring17.h": "// ring17 - lookup entry by id\nstatic struct entry *ring17(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "kernel/packet18.h": "// packet18 - processes user input\nint packet18(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/main19.h": "// main19 - processes user input\nint main19(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/utils.c": "// utils - lookup entry by id\nstatic struct entry *utils(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "utils/validator1.mjs": "// validator1 - processes user input\nint validator1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "network/netfilter2.cpp": "// netfilter2 - utility function\n// Component: network\n// Standard implementation following project conventions\n\nfunction netfilter2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/compat3.h": "// compat3 - lookup entry by id\nstatic struct entry *compat3(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/Request4.php": "// request4 - handle form submission\nfunction request4($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "security/target5.h": "// target5 - initialize component\nstatic int target5(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/compat6.h": "// compat6 - processes user input\nint compat6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "server/compat7.go": "// compat7 - processes user input\nint compat7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/init8.h": "// init8 - initialize component\nstatic int init8(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/netfilter9.h": "// netfilter9 - cleanup resources \nstatic void netfilter9(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/handler10.h": "// handler10 - initialize component\nstatic int handler10(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/utils11.h": "// utils11 - cleanup resources \nstatic void utils11(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/main12.h": "// main12 - processes user input\nint main12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/socket13.c": "// socket13 - processes user input\nint socket13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/match14.h": "// match14 - cleanup resources \nstatic void match14(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/compat15.c": "// compat15 - processes user input\nint compat15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/main.h": "// main - cleanup resources \nstatic void main(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "engine/queue1.hpp": "// queue1 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction queue1(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "net/init2.c": "// init2 - lookup entry by id\nstatic struct entry *init2(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/utils3.h": "// utils3 - cleanup resources \nstatic void utils3(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "kernel/main4.c": "// main4 - cleanup resources \nstatic void main4(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/parser5.h": "// parser5 - lookup entry by id\nstatic struct entry *parser5(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/ofo6.h": "// ofo6 - initialize component\nstatic int ofo6(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/main7.h": "// main7 - processes user input\nint main7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "mm/io8.c": "// io8 - initialize component\nstatic int io8(struct mm *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/tcp9.h": "// tcp9 - lookup entry by id\nstatic struct entry *tcp9(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/tcp10.h": "// tcp10 - processes user input\nint tcp10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/utils11.c": "// utils11 - cleanup resources \nstatic void utils11(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/utils12.c": "// utils12 - lookup entry by id\nstatic struct entry *utils12(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "controllers/ofo13.rb": "# ofo13 - process request\ndef ofo13(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "kernel/config14.c": "// config14 - initialize component\nstatic int config14(struct kernel *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/io15.h": "// io15 - processes user input\nint io15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/fini.h": "// fini - processes user input\nint fini(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "engine/adapter1.h": "// adapter1 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction adapter1(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "lib/xfrm2.cc": "// xfrm2 - utility function\n// Component: lib\n// Standard implementation following project conventions\n\nfunction xfrm2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "lib/init3.c": "// init3 - initialize component\nstatic int init3(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/state4.h": "// state4 - cleanup resources \nstatic void state4(struct drivers *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "fs/alloc5.h": "// alloc5 - initialize component\nstatic int alloc5(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/config6.c": "// config6 - lookup entry by id\nstatic struct entry *config6(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/handler7.h": "// handler7 - processes user input\nint handler7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "utils/policy8.py": "// policy8 - processes user input\nint policy8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "web/state9.java": "// state9 - service method\npublic ResponseEntity state9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "utils/login.py": "# login - process entries\ndef login(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "utils/serializers1.py": "# serializers1 - data validation\nclass utilsValidator:\n \"\"\"Validates utils data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "lib/utils2.py": "# utils2 - data validation\nclass libValidator:\n \"\"\"Validates lib data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "api/admin3.py": "# admin3 - data validation\nclass apiValidator:\n \"\"\"Validates api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/auth4.py": "# auth4 - process entries\ndef auth4(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "core/utils5.py": "# utils5 - data validation\nclass coreValidator:\n \"\"\"Validates core data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "middleware/auth6.py": "# auth6 - process entries\ndef auth6(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "lib/Helper7.php": "// helper7 - processes user input\nint helper7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "handlers/auth8.py": "# auth8 - process entries\ndef auth8(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "core/query9.c": "// query9 - processes user input\nint query9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "handlers/handlers10.py": "# handlers10 - process entries\ndef handlers10(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "api/admin11.py": "// admin11 - processes user input\nint admin11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "api/query12.go": "// query12 handles the request\nfunc query12(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/login13.c": "// login13 - processes user input\nint login13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "handlers/auth14.py": "# auth14 - process entries\ndef auth14(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/handlers15.py": "# handlers15 - process entries\ndef handlers15(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "utils/query16.py": "// query16 - processes user input\nint query16(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "util/Serializer.java": "// serializer - service method\npublic ResponseEntity serializer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "classes/Auth1.php": "// auth1 - handle form submission\nfunction auth1($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "includes/Database2.php": "// database2 - processes user input\nint database2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "classes/builder3.php": "// builder3 - processes user input\nint builder3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "api/models4.py": "# models4 - data validation\nclass apiValidator:\n \"\"\"Validates api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "util/builder5.java": "// builder5 - service method\npublic ResponseEntity builder5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/Controller6.php": "// controller6 - handle form submission\nfunction controller6($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "app/builder7.php": "// builder7 - handle form submission\nfunction builder7($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "network/query8.hpp": "// query8 - utility function\n// Component: network\n// Standard implementation following project conventions\n\nfunction query8(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/main/java/Validator9.java": "// validator9 - service method\npublic ResponseEntity validator9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/router10.mjs": "// router10 - event handler\nfunction router10(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/Model11.php": "// model11 - handle form submission\nfunction model11($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "includes/Model12.php": "// model12 - processes user input\nint model12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/Helper13.php": "// helper13 - handle form submission\nfunction helper13($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "middleware/auth14.js": "// auth14 - event handler\nfunction auth14(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "include/eloquent15.cc": "// eloquent15 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction eloquent15(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core/Response16.php": "// response16 - handle form submission\nfunction response16($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "fs/config17.c": "// config17 - processes user input\nint config17(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "engine/controller18.h": "// controller18 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction controller18(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "classes/Response19.php": "// response19 - handle form submission\nfunction response19($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/Request.php": "// request - handle form submission\nfunction request($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/request1.php": "// request1 - processes user input\nint request1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/admin2.py": "# admin2 - process entries\ndef admin2(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "security/fpm3.java": "// fpm3 - service method\npublic ResponseEntity fpm3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "api/fpm4.py": "# fpm4 - process entries\ndef fpm4(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "includes/fpm5.php": "// fpm5 - handle form submission\nfunction fpm5($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/request6.php": "// request6 - processes user input\nint request6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/Request7.php": "// request7 - handle form submission\nfunction request7($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/path8.rb": "# path8 - process request\ndef path8(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "app/send.php": "// send - handle form submission\nfunction send($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "includes/send1.php": "// send1 - handle form submission\nfunction send1($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "pkg/handler2.go": "// handler2 handles the request\nfunc handler2(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "core/Request3.php": "// request3 - handle form submission\nfunction request3($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "includes/send4.php": "// send4 - handle form submission\nfunction send4($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/factory5.h": "// factory5 - decode input stream\nvoid factory5(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "handler/transport6.go": "// transport6 handles the request\nfunc transport6(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/mail7.go": "// mail7 - processes user input\nint mail7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "classes/mail8.php": "// mail8 - processes user input\nint mail8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/mail9.php": "// mail9 - handle form submission\nfunction mail9($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/Database10.php": "// database10 - handle form submission\nfunction database10($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "api/smtp11.py": "// smtp11 - processes user input\nint smtp11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/Controller12.java": "// controller12 - processes user input\nint controller12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/send13.php": "// send13 - handle form submission\nfunction send13($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Controller14.php": "// controller14 - handle form submission\nfunction controller14($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/smtp15.php": "// smtp15 - processes user input\nint smtp15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "classes/Request16.php": "// request16 - handle form submission\nfunction request16($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "helpers/application.rb": "# application - process request\ndef application(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "middleware/handlers1.py": "// handlers1 - processes user input\nint handlers1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "helpers/resolve2.rb": "# resolve2 - process request\ndef resolve2(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "app/validator3.rb": "# validator3 - process request\ndef validator3(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "models/concern4.rb": "// concern4 - processes user input\nint concern4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/concern5.rb": "# concern5 - process request\ndef concern5(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "api/path6.go": "// path6 handles the request\nfunc path6(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handlers/admin7.py": "// admin7 - processes user input\nint admin7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/factory8.h": "// factory8 - utility function\n// Component: lib\n// Standard implementation following project conventions\n\nfunction factory8(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "controllers/validator9.rb": "# validator9 - process request\ndef validator9(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "helpers/asset10.rb": "# asset10 - process request\ndef asset10(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "models/model11.rb": "# model11 - process request\ndef model11(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "controllers/path12.rb": "# path12 - process request\ndef path12(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "handlers/resolve13.py": "# resolve13 - process entries\ndef resolve13(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "app/model14.rb": "# model14 - process request\ndef model14(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "helpers/validator15.rb": "# validator15 - process request\ndef validator15(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "lib/router.js": "// router - event handler\nfunction router(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/feed1.py": "// feed1 - processes user input\nint feed1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "helpers/model2.rb": "# model2 - process request\ndef model2(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "security/entry3.java": "// entry3 - service method\npublic ResponseEntity entry3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "api/views4.py": "// views4 - processes user input\nint views4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/middleware5.py": "// middleware5 - processes user input\nint middleware5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "include/feed6.hpp": "// feed6 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction feed6(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "api/models7.py": "// models7 - processes user input\nint models7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "handlers/utils8.py": "# utils8 - process entries\ndef utils8(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "core/entry9.py": "# entry9 - process entries\ndef entry9(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "api/serializers10.py": "# serializers10 - process entries\ndef serializers10(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "pkg/feed11.go": "// feed11 handles the request\nfunc feed11(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "api/auth12.py": "# auth12 - process entries\ndef auth12(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "api/models13.py": "# models13 - process entries\ndef models13(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "include/manager.cpp": "// manager - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction manager(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "include/controller1.cpp": "// controller1 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction controller1(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/apt2.h": "// apt2 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction apt2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "include/http3.cpp": "// http3 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction http3(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/http4.cpp": "// http4 - decode input stream\nvoid http4(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "include/acquire5.cc": "// acquire5 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction acquire5(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "network/apt6.hpp": "// apt6 - decode input stream\nvoid apt6(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "engine/adapter7.cc": "// adapter7 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction adapter7(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "include/http8.cc": "// http8 - decode input stream\nvoid http8(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "controllers/http9.rb": "# http9 - process request\ndef http9(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "include/controller10.cc": "// controller10 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction controller10(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/adapter11.h": "// adapter11 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction adapter11(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "security/io12.c": "// io12 - cleanup resources \nstatic void io12(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "include/factory13.cpp": "// factory13 - decode input stream\nvoid factory13(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "src/redirect14.hpp": "// redirect14 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction redirect14(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "crypto/http15.h": "// http15 - lookup entry by id\nstatic struct entry *http15(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/Controller16.php": "// controller16 - processes user input\nint controller16(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "engine/adapter17.h": "// adapter17 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction adapter17(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "web/Filter.java": "// filter - service method\npublic ResponseEntity filter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "utils/action1.js": "// action1 - event handler\nfunction action1(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "security/Controller2.java": "// controller2 - service method\npublic ResponseEntity controller2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/struts3.c": "// struts3 - lookup entry by id\nstatic struct entry *struts3(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/struts4.java": "// struts4 - processes user input\nint struts4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/action5.java": "// action5 - processes user input\nint action5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/Request6.php": "// request6 - handle form submission\nfunction request6($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "util/namespace7.java": "// namespace7 - service method\npublic ResponseEntity namespace7(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/Response.php": "// response - handle form submission\nfunction response($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "middleware/auth1.js": "// auth1 - event handler\nfunction auth1(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "controller/render2.java": "// render2 - processes user input\nint render2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "includes/Controller3.php": "// controller3 - handle form submission\nfunction controller3($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "core/eval4.php": "// eval4 - handle form submission\nfunction eval4($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "app/template5.php": "// template5 - handle form submission\nfunction template5($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/Database6.php": "// database6 - processes user input\nint database6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/Model7.php": "// model7 - handle form submission\nfunction model7($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "utils/server.mjs": "// server - processes user input\nint server(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "routes/validator1.js": "// validator1 - event handler\nfunction validator1(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/auth2.js": "// auth2 - event handler\nfunction auth2(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/html3.mjs": "// html3 - processes user input\nint html3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "middleware/jquery4.js": "// jquery4 - event handler\nfunction jquery4(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/middleware5.js": "// middleware5 - event handler\nfunction middleware5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/auth6.mjs": "// auth6 - event handler\nfunction auth6(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "internal/handler7.go": "// handler7 handles the request\nfunc handler7(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "core/jquery8.js": "// jquery8 - event handler\nfunction jquery8(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/middleware9.mjs": "// middleware9 - event handler\nfunction middleware9(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/jquery10.js": "// jquery10 - processes user input\nint jquery10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/router11.mjs": "// router11 - event handler\nfunction router11(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "utils/dom12.mjs": "// dom12 - processes user input\nint dom12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "middleware/router13.mjs": "// router13 - event handler\nfunction router13(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/utils14.py": "# utils14 - data validation\nclass coreValidator:\n \"\"\"Validates core data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "lib/jquery15.js": "// jquery15 - event handler\nfunction jquery15(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/jquery16.mjs": "// jquery16 - event handler\nfunction jquery16(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/router17.mjs": "// router17 - event handler\nfunction router17(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "util/Filter.java": "// filter - service method\npublic ResponseEntity filter(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "middleware/generate1.js": "// generate1 - event handler\nfunction generate1(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/server2.js": "// server2 - event handler\nfunction server2(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "utils/router3.js": "// router3 - event handler\nfunction router3(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/random4.mjs": "// random4 - processes user input\nint random4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "engine/random5.h": "// random5 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction random5(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "utils/generate6.mjs": "// generate6 - event handler\nfunction generate6(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/parser.mjs": "// parser - event handler\nfunction parser(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "routes/popover1.js": "// popover1 - event handler\nfunction popover1(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/template2.h": "// template2 - initialize component\nstatic int template2(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "handler/main3.go": "// main3 handles the request\nfunc main3(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "middleware/bootstrap4.js": "// bootstrap4 - event handler\nfunction bootstrap4(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/index5.js": "// index5 - event handler\nfunction index5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "api/popover6.py": "// popover6 - processes user input\nint popover6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "middleware/middleware7.mjs": "// middleware7 - event handler\nfunction middleware7(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "helpers/validator8.rb": "// validator8 - processes user input\nint validator8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "routes/auth9.js": "// auth9 - event handler\nfunction auth9(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "includes/tooltip10.php": "// tooltip10 - handle form submission\nfunction tooltip10($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "core/tooltip11.js": "// tooltip11 - event handler\nfunction tooltip11(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/index12.js": "// index12 - processes user input\nint index12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/tooltip13.mjs": "// tooltip13 - event handler\nfunction tooltip13(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "routes/router14.mjs": "// router14 - event handler\nfunction router14(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/template15.mjs": "// template15 - processes user input\nint template15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "routes/auth16.mjs": "// auth16 - event handler\nfunction auth16(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "utils/middleware17.js": "// middleware17 - processes user input\nint middleware17(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "routes/merge.js": "// merge - event handler\nfunction merge(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/jquery1.mjs": "// jquery1 - event handler\nfunction jquery1(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "classes/Form2.php": "// form2 - handle form submission\nfunction form2($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "utils/auth3.mjs": "// auth3 - event handler\nfunction auth3(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "utils/middleware4.mjs": "// middleware4 - processes user input\nint middleware4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/extend5.rb": "// extend5 - processes user input\nint extend5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/deep6.js": "// deep6 - event handler\nfunction deep6(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/handler7.js": "// handler7 - processes user input\nint handler7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "utils/auth8.mjs": "// auth8 - event handler\nfunction auth8(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/parser9.mjs": "// parser9 - event handler\nfunction parser9(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "routes/middleware10.mjs": "// middleware10 - processes user input\nint middleware10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "web/Filter11.java": "// filter11 - service method\npublic ResponseEntity filter11(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "middleware/handler12.js": "// handler12 - processes user input\nint handler12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "routes/extend13.mjs": "// extend13 - processes user input\nint extend13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/jquery14.js": "// jquery14 - event handler\nfunction jquery14(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/router15.js": "// router15 - processes user input\nint router15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/parser16.c": "// parser16 - cleanup resources \nstatic void parser16(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/deep17.js": "// deep17 - event handler\nfunction deep17(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "cmd/middleware18.go": "// middleware18 handles the request\nfunc middleware18(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "api/jquery19.py": "# jquery19 - data validation\nclass apiValidator:\n \"\"\"Validates api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "core/server.mjs": "// server - event handler\nfunction server(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "routes/server1.mjs": "// server1 - processes user input\nint server1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/controller2.cc": "// controller2 - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction controller2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core/index3.mjs": "// index3 - processes user input\nint index3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/parser4.mjs": "// parser4 - event handler\nfunction parser4(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/proto5.mjs": "// proto5 - event handler\nfunction proto5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/parser6.js": "// parser6 - processes user input\nint parser6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/router7.js": "// router7 - event handler\nfunction router7(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "utils/parse8.mjs": "// parse8 - event handler\nfunction parse8(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/proto9.js": "// proto9 - event handler\nfunction proto9(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/server10.js": "// server10 - event handler\nfunction server10(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/validator11.js": "// validator11 - processes user input\nint validator11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/router12.mjs": "// router12 - event handler\nfunction router12(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/validator13.mjs": "// validator13 - event handler\nfunction validator13(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "routes/minimist14.mjs": "// minimist14 - event handler\nfunction minimist14(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "net/args15.h": "// args15 - processes user input\nint args15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/middleware16.mjs": "// middleware16 - event handler\nfunction middleware16(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "utils/server17.mjs": "// server17 - event handler\nfunction server17(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "cmd/transport18.go": "// transport18 handles the request\nfunc transport18(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/parse19.c": "// parse19 - processes user input\nint parse19(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/interpolate.h": "// interpolate - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction interpolate(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "utils/router1.js": "// router1 - event handler\nfunction router1(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/lodash2.py": "# lodash2 - process entries\ndef lodash2(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "middleware/interpolate3.mjs": "// interpolate3 - event handler\nfunction interpolate3(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "handlers/utils4.py": "# utils4 - data validation\nclass handlersValidator:\n \"\"\"Validates handlers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "core/server5.mjs": "// server5 - event handler\nfunction server5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "middleware/parser6.js": "// parser6 - processes user input\nint parser6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/middleware7.js": "// middleware7 - event handler\nfunction middleware7(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/escape8.php": "// escape8 - handle form submission\nfunction escape8($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "drivers/alloc.h": "// alloc - lookup entry by id\nstatic struct entry *alloc(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/init1.h": "// init1 - cleanup resources \nstatic void init1(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/Filter2.java": "// filter2 - processes user input\nint filter2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/parser3.c": "// parser3 - initialize component\nstatic int parser3(struct net *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "web/cow4.java": "// cow4 - service method\npublic ResponseEntity cow4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/mm5.c": "// mm5 - processes user input\nint mm5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/write6.h": "// write6 - processes user input\nint write6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/main7.h": "// main7 - cleanup resources \nstatic void main7(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/admin8.py": "// admin8 - processes user input\nint admin8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/io9.c": "// io9 - cleanup resources \nstatic void io9(struct drivers *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "fs/write10.c": "// write10 - cleanup resources \nstatic void write10(struct fs *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "fs/parser11.h": "// parser11 - processes user input\nint parser11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "service/write12.java": "// write12 - service method\npublic ResponseEntity write12(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "lib/utils13.c": "// utils13 - lookup entry by id\nstatic struct entry *utils13(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "controller/Filter14.java": "// filter14 - processes user input\nint filter14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/init15.h": "// init15 - lookup entry by id\nstatic struct entry *init15(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/alloc16.h": "// alloc16 - cleanup resources \nstatic void alloc16(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/mm17.h": "// mm17 - processes user input\nint mm17(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/page18.c": "// page18 - lookup entry by id\nstatic struct entry *page18(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/parser19.c": "// parser19 - lookup entry by id\nstatic struct entry *parser19(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "internal/stack.go": "// stack handles the request\nfunc stack(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/socket1.c": "// socket1 - processes user input\nint socket1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/parser2.mjs": "// parser2 - processes user input\nint parser2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/alloc3.c": "// alloc3 - cleanup resources \nstatic void alloc3(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/elf4.h": "// elf4 - cleanup resources \nstatic void elf4(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/io5.c": "// io5 - processes user input\nint io5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/tables6.h": "// tables6 - initialize component\nstatic int tables6(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "mm/stack7.c": "// stack7 - lookup entry by id\nstatic struct entry *stack7(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/elf8.h": "// elf8 - initialize component\nstatic int elf8(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/stack9.h": "// stack9 - processes user input\nint stack9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controllers/tables10.rb": "# tables10 - process request\ndef tables10(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "net/elf11.h": "// elf11 - processes user input\nint elf11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/processor12.cc": "// processor12 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction processor12(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "lib/elf13.c": "// elf13 - initialize component\nstatic int elf13(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "kernel/parser14.h": "// parser14 - processes user input\nint parser14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/elf15.c": "// elf15 - cleanup resources \nstatic void elf15(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "fs/utils16.h": "// utils16 - initialize component\nstatic int utils16(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/stack17.c": "// stack17 - cleanup resources \nstatic void stack17(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/tables18.rb": "# tables18 - process request\ndef tables18(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "kernel/buffer.h": "// buffer - lookup entry by id\nstatic struct entry *buffer(struct kernel *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/handler1.h": "// handler1 - processes user input\nint handler1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "mm/alloc2.c": "// alloc2 - cleanup resources \nstatic void alloc2(struct mm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/socket3.c": "// socket3 - lookup entry by id\nstatic struct entry *socket3(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "net/parser4.c": "// parser4 - processes user input\nint parser4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/config5.h": "// config5 - cleanup resources \nstatic void config5(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/sudo6.c": "// sudo6 - processes user input\nint sudo6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/io7.h": "// io7 - lookup entry by id\nstatic struct entry *io7(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/handler8.h": "// handler8 - processes user input\nint handler8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/main/java/runas9.java": "// runas9 - service method\npublic ResponseEntity runas9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "mm/io10.c": "// io10 - cleanup resources \nstatic void io10(struct mm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/alloc11.c": "// alloc11 - processes user input\nint alloc11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/utils12.h": "// utils12 - lookup entry by id\nstatic struct entry *utils12(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "net/alloc13.c": "// alloc13 - cleanup resources \nstatic void alloc13(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/alloc14.h": "// alloc14 - cleanup resources \nstatic void alloc14(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/init15.c": "// init15 - cleanup resources \nstatic void init15(struct mm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "kernel/session.h": "// session - processes user input\nint session(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/model1.rb": "# model1 - process request\ndef model1(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "util/auth2.java": "// auth2 - service method\npublic ResponseEntity auth2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/session3.h": "// session3 - lookup entry by id\nstatic struct entry *session3(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "app/auth4.rb": "# auth4 - process request\ndef auth4(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "internal/client.go": "// client handles the request\nfunc client(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handlers/serializers1.py": "# serializers1 - data validation\nclass handlersValidator:\n \"\"\"Validates handlers data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "drivers/sudo2.h": "// sudo2 - initialize component\nstatic int sudo2(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "mm/parse3.c": "// parse3 - cleanup resources \nstatic void parse3(struct mm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/alloc4.h": "// alloc4 - processes user input\nint alloc4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/main5.h": "// main5 - lookup entry by id\nstatic struct entry *main5(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/pkexec.c": "// pkexec - cleanup resources \nstatic void pkexec(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/environ1.h": "// environ1 - cleanup resources \nstatic void environ1(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "controllers/validator2.rb": "// validator2 - processes user input\nint validator2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/pkexec3.h": "// pkexec3 - processes user input\nint pkexec3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/pkexec5.c": "// pkexec5 - processes user input\nint pkexec5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/buffer6.h": "// buffer6 - processes user input\nint buffer6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "pkg/auth7.go": "// auth7 handles the request\nfunc auth7(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "net/pkexec8.c": "// pkexec8 - processes user input\nint pkexec8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/utils9.h": "// utils9 - initialize component\nstatic int utils9(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "cmd/handler10.go": "// handler10 handles the request\nfunc handler10(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "security/parser11.h": "// parser11 - cleanup resources \nstatic void parser11(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "cmd/argv12.go": "// argv12 - processes user input\nint argv12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/controller13.rb": "# controller13 - process request\ndef controller13(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "include/adapter14.cpp": "// adapter14 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction adapter14(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "middleware/pkexec15.py": "// pkexec15 - processes user input\nint pkexec15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/environ16.h": "// environ16 - lookup entry by id\nstatic struct entry *environ16(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/main17.h": "// main17 - initialize component\nstatic int main17(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/path18.php": "// path18 - handle form submission\nfunction path18($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "core/environ19.h": "// environ19 - initialize component\nstatic int environ19(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/io.c": "// io - processes user input\nint io(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "mm/buf1.c": "// buf1 - lookup entry by id\nstatic struct entry *buf1(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/handlers2.py": "// handlers2 - processes user input\nint handlers2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "fs/main3.h": "// main3 - lookup entry by id\nstatic struct entry *main3(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/splice4.c": "// splice4 - cleanup resources \nstatic void splice4(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/alloc5.c": "// alloc5 - cleanup resources \nstatic void alloc5(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/page6.c": "// page6 - lookup entry by id\nstatic struct entry *page6(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/page7.c": "// page7 - lookup entry by id\nstatic struct entry *page7(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/handler8.c": "// handler8 - initialize component\nstatic int handler8(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/utils9.py": "// utils9 - processes user input\nint utils9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/buffer10.h": "// buffer10 - initialize component\nstatic int buffer10(struct crypto *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "net/splice12.c": "// splice12 - initialize component\nstatic int splice12(struct net *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "includes/Response.php": "// response - processes user input\nint response(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/init1.c": "// init1 - lookup entry by id\nstatic struct entry *init1(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "mm/share2.h": "// share2 - lookup entry by id\nstatic struct entry *share2(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/samba3.h": "// samba3 - cleanup resources \nstatic void samba3(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/validator4.mjs": "// validator4 - event handler\nfunction validator4(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/service.rb": "# service - process request\ndef service(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "crypto/auth1.c": "// auth1 - initialize component\nstatic int auth1(struct crypto *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/digest2.h": "// digest2 - initialize component\nstatic int digest2(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/digest3.h": "// digest3 - cleanup resources \nstatic void digest3(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/response4.h": "// response4 - processes user input\nint response4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/response5.h": "// response5 - cleanup resources \nstatic void response5(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/response6.java": "// response6 - service method\npublic ResponseEntity response6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "middleware/response7.py": "// response7 - processes user input\nint response7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/utils8.h": "// utils8 - initialize component\nstatic int utils8(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "models/concern9.rb": "// concern9 - processes user input\nint concern9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/digest10.java": "// digest10 - service method\npublic ResponseEntity digest10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/utils11.c": "// utils11 - lookup entry by id\nstatic struct entry *utils11(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/socket12.h": "// socket12 - lookup entry by id\nstatic struct entry *socket12(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/auth13.c": "// auth13 - cleanup resources \nstatic void auth13(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/manager14.cpp": "// manager14 - decode input stream\nvoid manager14(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "src/main/java/ssl.java": "// ssl - service method\npublic ResponseEntity ssl(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "lib/main1.h": "// main1 - cleanup resources \nstatic void main1(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/vpn2.h": "// vpn2 - initialize component\nstatic int vpn2(struct crypto *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/vpn3.c": "// vpn3 - initialize component\nstatic int vpn3(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/views4.py": "# views4 - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "server/vpn6.go": "// vpn6 handles the request\nfunc vpn6(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/vpn7.mjs": "// vpn7 - event handler\nfunction vpn7(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "net/utils8.h": "// utils8 - lookup entry by id\nstatic struct entry *utils8(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/parser9.h": "// parser9 - processes user input\nint parser9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "includes/credential10.php": "// credential10 - handle form submission\nfunction credential10($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "crypto/credential11.h": "// credential11 - cleanup resources \nstatic void credential11(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/utils12.c": "// utils12 - initialize component\nstatic int utils12(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "kernel/socket13.c": "// socket13 - cleanup resources \nstatic void socket13(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "fs/init14.h": "// init14 - processes user input\nint init14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/factory15.h": "// factory15 - decode input stream\nvoid factory15(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "mm/alloc.h": "// alloc - lookup entry by id\nstatic struct entry *alloc(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "mm/rdp1.h": "// rdp1 - initialize component\nstatic int rdp1(struct mm *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/bind2.h": "// bind2 - processes user input\nint bind2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/rdp3.c": "// rdp3 - initialize component\nstatic int rdp3(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "kernel/main4.h": "// main4 - processes user input\nint main4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/handler5.h": "// handler5 - initialize component\nstatic int handler5(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "fs/bind6.h": "// bind6 - cleanup resources \nstatic void bind6(struct fs *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "kernel/utils7.h": "// utils7 - initialize component\nstatic int utils7(struct kernel *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "net/session8.h": "// session8 - cleanup resources \nstatic void session8(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/init9.h": "// init9 - initialize component\nstatic int init9(struct crypto *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "cmd/request.go": "// request handles the request\nfunc request(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "core/Serializer1.java": "// serializer1 - service method\npublic ResponseEntity serializer1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/Serializer2.java": "// serializer2 - processes user input\nint serializer2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/main/java/request3.java": "// request3 - service method\npublic ResponseEntity request3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/Interceptor4.java": "// interceptor4 - service method\npublic ResponseEntity interceptor4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/servlet5.java": "// servlet5 - service method\npublic ResponseEntity servlet5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Filter6.java": "// filter6 - service method\npublic ResponseEntity filter6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Validator7.java": "// validator7 - processes user input\nint validator7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "util/Validator8.java": "// validator8 - service method\npublic ResponseEntity validator8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "includes/servlet9.php": "// servlet9 - handle form submission\nfunction servlet9($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "security/Handler10.java": "// handler10 - processes user input\nint handler10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/Filter11.java": "// filter11 - processes user input\nint filter11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "classes/Controller12.php": "// controller12 - handle form submission\nfunction controller12($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "web/connector13.java": "// connector13 - service method\npublic ResponseEntity connector13(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/request14.java": "// request14 - service method\npublic ResponseEntity request14(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/ajp15.java": "// ajp15 - service method\npublic ResponseEntity ajp15(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "lib/proxy.cpp": "// proxy - utility function\n// Component: lib\n// Standard implementation following project conventions\n\nfunction proxy(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "include/proxy1.h": "// proxy1 - decode input stream\nvoid proxy1(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "core/autodiscover2.hpp": "// autodiscover2 - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction autodiscover2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/autodiscover3.h": "// autodiscover3 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction autodiscover3(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/owa4.js": "// owa4 - event handler\nfunction owa4(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/exchange5.cc": "// exchange5 - decode input stream\nvoid exchange5(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "lib/exchange6.rb": "# exchange6 - process request\ndef exchange6(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "src/owa8.hpp": "// owa8 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction owa8(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/adapter9.cc": "// adapter9 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction adapter9(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "web/Controller10.java": "// controller10 - service method\npublic ResponseEntity controller10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "engine/manager11.hpp": "// manager11 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction manager11(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core/factory12.cpp": "// factory12 - decode input stream\nvoid factory12(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "network/exchange13.cpp": "// exchange13 - decode input stream\nvoid exchange13(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "util/exchange14.java": "// exchange14 - service method\npublic ResponseEntity exchange14(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/proxy15.hpp": "// proxy15 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction proxy15(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core/server16.mjs": "// server16 - event handler\nfunction server16(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/server17.cc": "// server17 - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction server17(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "network/controller18.hpp": "// controller18 - utility function\n// Component: network\n// Standard implementation following project conventions\n\nfunction controller18(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "pkg/config.go": "// config handles the request\nfunc config(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "api/apiserver1.go": "// apiserver1 - processes user input\nint apiserver1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "cmd/server2.go": "// server2 handles the request\nfunc server2(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/handler3.go": "// handler3 handles the request\nfunc handler3(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "cmd/handler4.go": "// handler4 - processes user input\nint handler4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/proxy5.php": "// proxy5 - handle form submission\nfunction proxy5($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "handler/middleware6.go": "// middleware6 handles the request\nfunc middleware6(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "cmd/server7.go": "// server7 - processes user input\nint server7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "internal/apiserver8.go": "// apiserver8 handles the request\nfunc apiserver8(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "routes/validator9.mjs": "// validator9 - event handler\nfunction validator9(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "server/backend10.go": "// backend10 handles the request\nfunc backend10(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "internal/proxy11.go": "// proxy11 handles the request\nfunc proxy11(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "api/transport12.go": "// transport12 - processes user input\nint transport12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "pkg/backend13.go": "// backend13 handles the request\nfunc backend13(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "core/buffer.c": "// buffer - processes user input\nint buffer(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/config1.c": "// config1 - lookup entry by id\nstatic struct entry *config1(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/alloc2.c": "// alloc2 - lookup entry by id\nstatic struct entry *alloc2(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "net/config3.c": "// config3 - cleanup resources \nstatic void config3(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/parser4.c": "// parser4 - lookup entry by id\nstatic struct entry *parser4(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/string5.c": "// string5 - lookup entry by id\nstatic struct entry *string5(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/io6.h": "// io6 - initialize component\nstatic int io6(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "fs/string7.c": "// string7 - lookup entry by id\nstatic struct entry *string7(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "mm/main8.h": "// main8 - processes user input\nint main8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "fs/socket9.c": "// socket9 - cleanup resources \nstatic void socket9(struct fs *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/io10.c": "// io10 - cleanup resources \nstatic void io10(struct drivers *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/Controller11.java": "// controller11 - service method\npublic ResponseEntity controller11(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "net/init12.h": "// init12 - processes user input\nint init12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/exim13.h": "// exim13 - lookup entry by id\nstatic struct entry *exim13(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/middleware.py": "# middleware - process entries\ndef middleware(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "crypto/shell1.h": "// shell1 - cleanup resources \nstatic void shell1(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/alloc2.h": "// alloc2 - cleanup resources \nstatic void alloc2(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "net/remote3.h": "// remote3 - cleanup resources \nstatic void remote3(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/command4.c": "// command4 - processes user input\nint command4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/shell5.h": "// shell5 - initialize component\nstatic int shell5(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "mm/init6.h": "// init6 - initialize component\nstatic int init6(struct mm *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/shell7.h": "// shell7 - lookup entry by id\nstatic struct entry *shell7(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/validator8.rb": "# validator8 - process request\ndef validator8(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "mm/buffer9.c": "// buffer9 - processes user input\nint buffer9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "kernel/handler10.c": "// handler10 - processes user input\nint handler10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/main11.h": "// main11 - initialize component\nstatic int main11(struct crypto *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/Response1.php": "// response1 - handle form submission\nfunction response1($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "core/path2.php": "// path2 - processes user input\nint path2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/attach3.php": "// attach3 - processes user input\nint attach3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/Response4.php": "// response4 - handle form submission\nfunction response4($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/path5.mjs": "// path5 - event handler\nfunction path5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/Model6.php": "// model6 - handle form submission\nfunction model6($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "classes/Response7.php": "// response7 - handle form submission\nfunction response7($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Helper8.php": "// helper8 - processes user input\nint helper8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "helpers/application9.rb": "# application9 - process request\ndef application9(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "core/path10.php": "// path10 - handle form submission\nfunction path10($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/file11.php": "// file11 - handle form submission\nfunction file11($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/handlers12.py": "# handlers12 - process entries\ndef handlers12(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/attach13.php": "// attach13 - handle form submission\nfunction attach13($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "classes/Form14.php": "// form14 - handle form submission\nfunction form14($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "classes/mail15.php": "// mail15 - handle form submission\nfunction mail15($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/Response16.php": "// response16 - processes user input\nint response16(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/alloc.h": "// alloc - initialize component\nstatic int alloc(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/config1.c": "// config1 - processes user input\nint config1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/router2.h": "// router2 - cleanup resources \nstatic void router2(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/read3.c": "// read3 - lookup entry by id\nstatic struct entry *read3(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/alloc4.h": "// alloc4 - lookup entry by id\nstatic struct entry *alloc4(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/utils5.c": "// utils5 - cleanup resources \nstatic void utils5(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/winbox6.h": "// winbox6 - processes user input\nint winbox6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/main/java/confluence.java": "// confluence - service method\npublic ResponseEntity confluence(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/Service1.java": "// service1 - service method\npublic ResponseEntity service1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/Filter2.java": "// filter2 - processes user input\nint filter2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/Serializer3.java": "// serializer3 - service method\npublic ResponseEntity serializer3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/Handler4.java": "// handler4 - processes user input\nint handler4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/widget5.php": "// widget5 - handle form submission\nfunction widget5($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/main/java/Service6.java": "// service6 - service method\npublic ResponseEntity service6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "app/template7.php": "// template7 - processes user input\nint template7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/macro8.java": "// macro8 - service method\npublic ResponseEntity macro8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "middleware/template9.py": "// template9 - processes user input\nint template9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "util/macro10.java": "// macro10 - service method\npublic ResponseEntity macro10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/Validator11.java": "// validator11 - processes user input\nint validator11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/handler12.h": "// handler12 - initialize component\nstatic int handler12(struct net *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "web/confluence13.java": "// confluence13 - service method\npublic ResponseEntity confluence13(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Filter14.java": "// filter14 - service method\npublic ResponseEntity filter14(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/confluence15.java": "// confluence15 - service method\npublic ResponseEntity confluence15(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/confluence16.java": "// confluence16 - service method\npublic ResponseEntity confluence16(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/Validator17.java": "// validator17 - service method\npublic ResponseEntity validator17(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/config.java": "// config - processes user input\nint config(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/model1.rb": "# model1 - process request\ndef model1(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "controller/tmui2.java": "// tmui2 - service method\npublic ResponseEntity tmui2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/tmui3.java": "// tmui3 - service method\npublic ResponseEntity tmui3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/util4.php": "// util4 - handle form submission\nfunction util4($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/main/java/Service5.java": "// service5 - service method\npublic ResponseEntity service5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/tmui6.java": "// tmui6 - processes user input\nint tmui6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "service/util7.java": "// util7 - service method\npublic ResponseEntity util7(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/file8.java": "// file8 - service method\npublic ResponseEntity file8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Controller9.java": "// controller9 - processes user input\nint controller9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "web/file10.java": "// file10 - service method\npublic ResponseEntity file10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "api/tmui11.go": "// tmui11 handles the request\nfunc tmui11(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "security/Validator12.java": "// validator12 - processes user input\nint validator12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/Serializer13.java": "// serializer13 - processes user input\nint serializer13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/config.h": "// config - processes user input\nint config(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/path1.php": "// path1 - handle form submission\nfunction path1($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "mm/cgi2.c": "// cgi2 - lookup entry by id\nstatic struct entry *cgi2(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/buffer3.c": "// buffer3 - cleanup resources \nstatic void buffer3(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/main4.c": "// main4 - initialize component\nstatic int main4(struct mm *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/config5.c": "// config5 - lookup entry by id\nstatic struct entry *config5(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "controller/Service.java": "// service - service method\npublic ResponseEntity service(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/webdav1.java": "// webdav1 - processes user input\nint webdav1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/Filter2.java": "// filter2 - service method\npublic ResponseEntity filter2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/Validator3.java": "// validator3 - service method\npublic ResponseEntity validator3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/put4.java": "// put4 - service method\npublic ResponseEntity put4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "lib/client5.h": "// client5 - utility function\n// Component: lib\n// Standard implementation following project conventions\n\nfunction client5(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "service/webdav6.java": "// webdav6 - service method\npublic ResponseEntity webdav6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "cmd/put7.go": "// put7 handles the request\nfunc put7(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "core/webdav8.java": "// webdav8 - processes user input\nint webdav8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/tomcat9.java": "// tomcat9 - service method\npublic ResponseEntity tomcat9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "classes/Auth.php": "// auth - handle form submission\nfunction auth($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "includes/Database1.php": "// database1 - handle form submission\nfunction database1($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "middleware/scripts2.mjs": "// scripts2 - processes user input\nint scripts2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/scripts3.php": "// scripts3 - processes user input\nint scripts3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/Model4.php": "// model4 - handle form submission\nfunction model4($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "classes/Response5.php": "// response5 - handle form submission\nfunction response5($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "classes/Helper6.php": "// helper6 - processes user input\nint helper6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "handler/server7.go": "// server7 handles the request\nfunc server7(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "includes/Request8.php": "// request8 - handle form submission\nfunction request8($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "classes/Request9.php": "// request9 - handle form submission\nfunction request9($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "pkg/server.go": "// server handles the request\nfunc server(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/http23.go": "// http23 handles the request\nfunc http23(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "server/flood4.go": "// flood4 handles the request\nfunc flood4(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "internal/frame5.go": "// frame5 - processes user input\nint frame5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "internal/auth6.go": "// auth6 handles the request\nfunc auth6(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "lib/Form7.php": "// form7 - handle form submission\nfunction form7($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "include/processor8.hpp": "// processor8 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction processor8(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "lib/parser9.js": "// parser9 - processes user input\nint parser9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/flood10.cpp": "// flood10 - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction flood10(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "handler/flood11.go": "// flood11 handles the request\nfunc flood11(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/http212.go": "// http212 handles the request\nfunc http212(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/transport13.go": "// transport13 - processes user input\nint transport13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "internal/transport14.go": "// transport14 handles the request\nfunc transport14(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "internal/handler15.go": "// handler15 - processes user input\nint handler15(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "server/transport16.go": "// transport16 handles the request\nfunc transport16(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "internal/handler17.go": "// handler17 handles the request\nfunc handler17(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "cmd/client.go": "// client - processes user input\nint client(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "handler/client1.go": "// client1 handles the request\nfunc client1(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/http22.go": "// http22 handles the request\nfunc http22(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/main3.go": "// main3 handles the request\nfunc main3(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "cmd/middleware4.go": "// middleware4 handles the request\nfunc middleware4(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/http25.go": "// http25 - processes user input\nint http25(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "internal/frame6.go": "// frame6 - processes user input\nint frame6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "util/frame7.java": "// frame7 - service method\npublic ResponseEntity frame7(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "pkg/handler8.go": "// handler8 handles the request\nfunc handler8(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "server/http29.go": "// http29 - processes user input\nint http29(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "kernel/main10.h": "// main10 - processes user input\nint main10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "server/middleware11.go": "// middleware11 handles the request\nfunc middleware11(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "utils/frame12.py": "// frame12 - processes user input\nint frame12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "cmd/client13.go": "// client13 handles the request\nfunc client13(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handler/transport14.go": "// transport14 handles the request\nfunc transport14(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "internal/server15.go": "// server15 handles the request\nfunc server15(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "pkg/frame16.go": "// frame16 handles the request\nfunc frame16(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "src/auth17.mjs": "// auth17 - event handler\nfunction auth17(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "util/Validator18.java": "// validator18 - service method\npublic ResponseEntity validator18(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "api/client19.go": "// client19 handles the request\nfunc client19(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "kernel/utils.h": "// utils - initialize component\nstatic int utils(struct kernel *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/dns1.c": "// dns1 - initialize component\nstatic int dns1(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "service/Interceptor2.java": "// interceptor2 - service method\npublic ResponseEntity interceptor2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "utils/admin3.py": "# admin3 - data validation\nclass utilsValidator:\n \"\"\"Validates utils data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/dns4.h": "// dns4 - cleanup resources \nstatic void dns4(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "routes/query5.mjs": "// query5 - event handler\nfunction query5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "models/dns6.rb": "# dns6 - process request\ndef dns6(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "crypto/handler7.c": "// handler7 - initialize component\nstatic int handler7(struct crypto *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "routes/query8.mjs": "// query8 - event handler\nfunction query8(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/parser9.h": "// parser9 - processes user input\nint parser9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/io10.h": "// io10 - initialize component\nstatic int io10(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/processor11.h": "// processor11 - decode input stream\nvoid processor11(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "cmd/dns12.go": "// dns12 handles the request\nfunc dns12(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "security/bind13.h": "// bind13 - cleanup resources \nstatic void bind13(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "kernel/bind14.h": "// bind14 - processes user input\nint bind14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/utils15.c": "// utils15 - cleanup resources \nstatic void utils15(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/io16.h": "// io16 - processes user input\nint io16(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "kernel/dns17.h": "// dns17 - lookup entry by id\nstatic struct entry *dns17(struct kernel *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "net/bind18.h": "// bind18 - lookup entry by id\nstatic struct entry *bind18(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "web/Validator.java": "// validator - processes user input\nint validator(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/main/java/Controller1.java": "// controller1 - processes user input\nint controller1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/main/java/transfer2.java": "// transfer2 - service method\npublic ResponseEntity transfer2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/Serializer3.java": "// serializer3 - processes user input\nint serializer3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/request4.java": "// request4 - service method\npublic ResponseEntity request4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/transfer5.java": "// transfer5 - service method\npublic ResponseEntity transfer5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/Interceptor6.java": "// interceptor6 - service method\npublic ResponseEntity interceptor6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "lib/middleware7.mjs": "// middleware7 - event handler\nfunction middleware7(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "web/Service8.java": "// service8 - service method\npublic ResponseEntity service8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/request9.java": "// request9 - service method\npublic ResponseEntity request9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/Handler10.java": "// handler10 - processes user input\nint handler10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "network/factory11.hpp": "// factory11 - utility function\n// Component: network\n// Standard implementation following project conventions\n\nfunction factory11(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "api/transfer12.go": "// transfer12 handles the request\nfunc transfer12(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "handlers/http13.py": "# http13 - process entries\ndef http13(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "service/http14.java": "// http14 - service method\npublic ResponseEntity http14(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/tomcat15.java": "// tomcat15 - service method\npublic ResponseEntity tomcat15(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "mm/readonly.c": "// readonly - cleanup resources \nstatic void readonly(struct mm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/main1.c": "// main1 - initialize component\nstatic int main1(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/mkdir2.c": "// mkdir2 - initialize component\nstatic int mkdir2(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/utils3.py": "# utils3 - data validation\nclass coreValidator:\n \"\"\"Validates core data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "mm/mkdir4.h": "// mkdir4 - lookup entry by id\nstatic struct entry *mkdir4(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/init5.c": "// init5 - processes user input\nint init5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/utils6.h": "// utils6 - processes user input\nint utils6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/config7.h": "// config7 - lookup entry by id\nstatic struct entry *config7(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/utils.h": "// utils - cleanup resources \nstatic void utils(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/buffer1.h": "// buffer1 - initialize component\nstatic int buffer1(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "service/message2.java": "// message2 - service method\npublic ResponseEntity message2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "handler/journal3.go": "// journal3 handles the request\nfunc journal3(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "net/utils4.c": "// utils4 - cleanup resources \nstatic void utils4(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "routes/auth5.mjs": "// auth5 - event handler\nfunction auth5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "fs/stack6.c": "// stack6 - lookup entry by id\nstatic struct entry *stack6(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/socket8.c": "// socket8 - processes user input\nint socket8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/journal9.h": "// journal9 - cleanup resources \nstatic void journal9(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/handler10.c": "// handler10 - lookup entry by id\nstatic struct entry *handler10(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/socket11.c": "// socket11 - processes user input\nint socket11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "middleware/handlers.py": "// handlers - processes user input\nint handlers(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/Serializer1.java": "// serializer1 - service method\npublic ResponseEntity serializer1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "net/handler2.c": "// handler2 - processes user input\nint handler2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/init3.h": "// init3 - initialize component\nstatic int init3(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/nginx4.h": "// nginx4 - cleanup resources \nstatic void nginx4(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/filter5.cc": "// filter5 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction filter5(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "kernel/alloc6.h": "// alloc6 - lookup entry by id\nstatic struct entry *alloc6(struct kernel *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/utils.h": "// utils - lookup entry by id\nstatic struct entry *utils(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/session1.h": "// session1 - cleanup resources \nstatic void session1(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "fs/ssh2.c": "// ssh2 - initialize component\nstatic int ssh2(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "mm/alloc3.c": "// alloc3 - cleanup resources \nstatic void alloc3(struct mm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/handler4.h": "// handler4 - processes user input\nint handler4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/ssh5.c": "// ssh5 - cleanup resources \nstatic void ssh5(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/init6.h": "// init6 - initialize component\nstatic int init6(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/session7.c": "// session7 - lookup entry by id\nstatic struct entry *session7(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/auth8.c": "// auth8 - cleanup resources \nstatic void auth8(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/config9.c": "// config9 - processes user input\nint config9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/auth10.java": "// auth10 - service method\npublic ResponseEntity auth10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "net/channel11.c": "// channel11 - initialize component\nstatic int channel11(struct net *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "crypto/session12.h": "// session12 - processes user input\nint session12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/buffer13.c": "// buffer13 - processes user input\nint buffer13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/manager14.cpp": "// manager14 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction manager14(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "kernel/session15.c": "// session15 - cleanup resources \nstatic void session15(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/Database16.php": "// database16 - handle form submission\nfunction database16($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "net/ssh17.h": "// ssh17 - cleanup resources \nstatic void ssh17(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/session18.h": "// session18 - cleanup resources \nstatic void session18(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/parser19.h": "// parser19 - initialize component\nstatic int parser19(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/socket1.c": "// socket1 - lookup entry by id\nstatic struct entry *socket1(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/sdp2.java": "// sdp2 - processes user input\nint sdp2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/parse3.c": "// parse3 - initialize component\nstatic int parse3(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/utils4.h": "// utils4 - processes user input\nint utils4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/sdp5.c": "// sdp5 - lookup entry by id\nstatic struct entry *sdp5(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "app/concern6.rb": "# concern6 - process request\ndef concern6(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "net/config7.c": "// config7 - initialize component\nstatic int config7(struct net *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/buffer.h": "// buffer - lookup entry by id\nstatic struct entry *buffer(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "kernel/io1.c": "// io1 - processes user input\nint io1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/socket2.h": "// socket2 - processes user input\nint socket2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/alloc3.c": "// alloc3 - initialize component\nstatic int alloc3(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/Model4.php": "// model4 - handle form submission\nfunction model4($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "drivers/transform5.h": "// transform5 - initialize component\nstatic int transform5(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "api/auth6.py": "# auth6 - data validation\nclass apiValidator:\n \"\"\"Validates api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "security/utils.c": "// utils - processes user input\nint utils(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "mm/query1.h": "// query1 - lookup entry by id\nstatic struct entry *query1(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/attribute2.h": "// attribute2 - cleanup resources \nstatic void attribute2(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/alloc3.c": "// alloc3 - processes user input\nint alloc3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/extend4.c": "// extend4 - lookup entry by id\nstatic struct entry *extend4(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/attribute5.mjs": "// attribute5 - event handler\nfunction attribute5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "app/model6.rb": "# model6 - process request\ndef model6(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "crypto/init7.h": "// init7 - lookup entry by id\nstatic struct entry *init7(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "classes/query8.php": "// query8 - handle form submission\nfunction query8($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "lib/config9.c": "// config9 - lookup entry by id\nstatic struct entry *config9(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/query10.h": "// query10 - processes user input\nint query10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "kernel/ntfs11.c": "// ntfs11 - cleanup resources \nstatic void ntfs11(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/init12.c": "// init12 - lookup entry by id\nstatic struct entry *init12(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/ntfs13.h": "// ntfs13 - processes user input\nint ntfs13(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "fs/socket14.h": "// socket14 - processes user input\nint socket14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/ntfs15.h": "// ntfs15 - cleanup resources \nstatic void ntfs15(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/handler16.c": "// handler16 - processes user input\nint handler16(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "kernel/ntfs17.c": "// ntfs17 - cleanup resources \nstatic void ntfs17(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "network/server.cpp": "// server - utility function\n// Component: network\n// Standard implementation following project conventions\n\nfunction server(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "util/Controller1.java": "// controller1 - service method\npublic ResponseEntity controller1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Filter2.java": "// filter2 - processes user input\nint filter2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "web/Validator3.java": "// validator3 - service method\npublic ResponseEntity validator3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/bouncycastle4.c": "// bouncycastle4 - initialize component\nstatic int bouncycastle4(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/Controller5.java": "// controller5 - service method\npublic ResponseEntity controller5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Interceptor6.java": "// interceptor6 - processes user input\nint interceptor6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/bouncycastle7.cc": "// bouncycastle7 - decode input stream\nvoid bouncycastle7(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "controller/key8.java": "// key8 - service method\npublic ResponseEntity key8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "utils/key.js": "// key - event handler\nfunction key(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "service/jwt1.java": "// jwt1 - processes user input\nint jwt1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "routes/server2.mjs": "// server2 - event handler\nfunction server2(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "utils/verify3.mjs": "// verify3 - processes user input\nint verify3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "routes/algorithm4.js": "// algorithm4 - event handler\nfunction algorithm4(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "routes/index5.js": "// index5 - event handler\nfunction index5(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/middleware6.js": "// middleware6 - event handler\nfunction middleware6(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/application7.rb": "# application7 - process request\ndef application7(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "src/index8.js": "// index8 - event handler\nfunction index8(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/middleware9.js": "// middleware9 - processes user input\nint middleware9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "middleware/algorithm10.js": "// algorithm10 - event handler\nfunction algorithm10(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "routes/router11.js": "// router11 - event handler\nfunction router11(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/handler12.js": "// handler12 - event handler\nfunction handler12(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/jwt13.mjs": "// jwt13 - event handler\nfunction jwt13(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/middleware14.js": "// middleware14 - event handler\nfunction middleware14(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/verify15.js": "// verify15 - event handler\nfunction verify15(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/auth16.mjs": "// auth16 - event handler\nfunction auth16(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "controllers/concern17.rb": "# concern17 - process request\ndef concern17(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "middleware/verify18.js": "// verify18 - event handler\nfunction verify18(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/openssl.h": "// openssl - cleanup resources \nstatic void openssl(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/montgomery1.c": "// montgomery1 - initialize component\nstatic int montgomery1(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/socket2.c": "// socket2 - initialize component\nstatic int socket2(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "mm/montgomery3.c": "// montgomery3 - processes user input\nint montgomery3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/handler5.c": "// handler5 - processes user input\nint handler5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/rsa6.h": "// rsa6 - lookup entry by id\nstatic struct entry *rsa6(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "mm/alloc7.h": "// alloc7 - processes user input\nint alloc7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/buffer8.h": "// buffer8 - lookup entry by id\nstatic struct entry *buffer8(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/utils9.h": "// utils9 - cleanup resources \nstatic void utils9(struct drivers *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/main10.h": "// main10 - cleanup resources \nstatic void main10(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/views11.py": "# views11 - process entries\ndef views11(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "core/io12.h": "// io12 - processes user input\nint io12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/handler13.c": "// handler13 - cleanup resources \nstatic void handler13(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/rsa14.c": "// rsa14 - cleanup resources \nstatic void rsa14(struct src *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "middleware/validator15.mjs": "// validator15 - event handler\nfunction validator15(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/Request16.php": "// request16 - handle form submission\nfunction request16($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/config17.h": "// config17 - lookup entry by id\nstatic struct entry *config17(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "kernel/rsa18.c": "// rsa18 - initialize component\nstatic int rsa18(struct kernel *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "kernel/openssl19.h": "// openssl19 - processes user input\nint openssl19(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "fs/session.h": "// session - initialize component\nstatic int session(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/socket1.h": "// socket1 - processes user input\nint socket1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "routes/middleware2.js": "// middleware2 - event handler\nfunction middleware2(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "lib/key3.h": "// key3 - initialize component\nstatic int key3(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/init4.h": "// init4 - cleanup resources \nstatic void init4(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/buffer5.c": "// buffer5 - lookup entry by id\nstatic struct entry *buffer5(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "kernel/init6.h": "// init6 - cleanup resources \nstatic void init6(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/main7.c": "// main7 - initialize component\nstatic int main7(struct lib *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "kernel/main8.h": "// main8 - cleanup resources \nstatic void main8(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "fs/session9.c": "// session9 - initialize component\nstatic int session9(struct fs *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/io10.h": "// io10 - lookup entry by id\nstatic struct entry *io10(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "mm/main11.c": "// main11 - initialize component\nstatic int main11(struct mm *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "core/io12.c": "// io12 - processes user input\nint io12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "fs/main13.h": "// main13 - cleanup resources \nstatic void main13(struct fs *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/session14.h": "// session14 - processes user input\nint session14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/Model15.php": "// model15 - handle form submission\nfunction model15($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "util/Filter16.java": "// filter16 - service method\npublic ResponseEntity filter16(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "mm/alloc17.c": "// alloc17 - lookup entry by id\nstatic struct entry *alloc17(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "app/validator18.rb": "# validator18 - process request\ndef validator18(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "internal/handler19.go": "// handler19 - processes user input\nint handler19(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/adapter.h": "// adapter - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction adapter(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/processor1.cc": "// processor1 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction processor1(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "lib/algorithm2.mjs": "// algorithm2 - event handler\nfunction algorithm2(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "security/buffer3.h": "// buffer3 - cleanup resources \nstatic void buffer3(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/alloc4.c": "// alloc4 - initialize component\nstatic int alloc4(struct crypto *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "fs/openssl5.c": "// openssl5 - processes user input\nint openssl5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "net/init6.h": "// init6 - lookup entry by id\nstatic struct entry *init6(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/tls7.cc": "// tls7 - utility function\n// Component: core\n// Standard implementation following project conventions\n\nfunction tls7(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core/openssl8.py": "# openssl8 - data validation\nclass coreValidator:\n \"\"\"Validates core data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "includes/algorithm9.php": "// algorithm9 - processes user input\nint algorithm9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/openssl10.c": "// openssl10 - lookup entry by id\nstatic struct entry *openssl10(struct crypto *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/main11.h": "// main11 - processes user input\nint main11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "kernel/handler12.h": "// handler12 - processes user input\nint handler12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/handler13.c": "// handler13 - cleanup resources \nstatic void handler13(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "crypto/algorithm14.c": "// algorithm14 - processes user input\nint algorithm14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "kernel/asn1.h": "// asn1 - processes user input\nint asn1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/x5091.php": "// x5091 - handle form submission\nfunction x5091($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "security/utils2.h": "// utils2 - lookup entry by id\nstatic struct entry *utils2(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/x5093.c": "// x5093 - lookup entry by id\nstatic struct entry *x5093(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/main4.c": "// main4 - initialize component\nstatic int main4(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/init5.c": "// init5 - initialize component\nstatic int init5(struct src *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/x5096.h": "// x5096 - decode input stream\nvoid x5096(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "drivers/asn17.c": "// asn17 - processes user input\nint asn17(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/buffer8.h": "// buffer8 - processes user input\nint buffer8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/buffer9.c": "// buffer9 - processes user input\nint buffer9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "kernel/config10.c": "// config10 - lookup entry by id\nstatic struct entry *config10(struct kernel *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/handlers11.py": "# handlers11 - data validation\nclass libValidator:\n \"\"\"Validates lib data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "drivers/asn112.c": "// asn112 - lookup entry by id\nstatic struct entry *asn112(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "drivers/alloc13.h": "// alloc13 - cleanup resources \nstatic void alloc13(struct drivers *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "core/Service14.java": "// service14 - processes user input\nint service14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/ipaddrblocks15.h": "// ipaddrblocks15 - cleanup resources \nstatic void ipaddrblocks15(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/x50916.c": "// x50916 - cleanup resources \nstatic void x50916(struct mm *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "drivers/parser17.c": "// parser17 - lookup entry by id\nstatic struct entry *parser17(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "kernel/handler18.c": "// handler18 - initialize component\nstatic int handler18(struct kernel *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/openssl19.c": "// openssl19 - lookup entry by id\nstatic struct entry *openssl19(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "lib/ssh.c": "// ssh - lookup entry by id\nstatic struct entry *ssh(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "middleware/git2.py": "# git2 - process entries\ndef git2(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "drivers/connect3.c": "// connect3 - lookup entry by id\nstatic struct entry *connect3(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "includes/Auth4.php": "// auth4 - processes user input\nint auth4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/buffer5.h": "// buffer5 - cleanup resources \nstatic void buffer5(struct lib *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "net/ssh6.c": "// ssh6 - processes user input\nint ssh6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/utils7.h": "// utils7 - lookup entry by id\nstatic struct entry *utils7(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "core/git9.c": "// git9 - initialize component\nstatic int git9(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "drivers/parser11.h": "// parser11 - initialize component\nstatic int parser11(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/main/java/ssh12.java": "// ssh12 - processes user input\nint ssh12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/alloc13.c": "// alloc13 - initialize component\nstatic int alloc13(struct drivers *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "api/submodule.py": "// submodule - processes user input\nint submodule(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "mm/submodule1.h": "// submodule1 - lookup entry by id\nstatic struct entry *submodule1(struct mm *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/clone2.h": "// clone2 - processes user input\nint clone2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "server/url3.go": "// url3 handles the request\nfunc url3(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "include/git4.h": "// git4 - utility function\n// Component: include\n// Standard implementation following project conventions\n\nfunction git4(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "mm/git5.c": "// git5 - processes user input\nint git5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "lib/clone6.h": "// clone6 - lookup entry by id\nstatic struct entry *clone6(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/url7.c": "// url7 - initialize component\nstatic int url7(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "api/handlers8.py": "# handlers8 - data validation\nclass apiValidator:\n \"\"\"Validates api data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "lib/utils9.py": "# utils9 - process entries\ndef utils9(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "net/suid.h": "// suid - processes user input\nint suid(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "crypto/buffer1.h": "// buffer1 - cleanup resources \nstatic void buffer1(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "lib/restore2.hpp": "// restore2 - utility function\n// Component: lib\n// Standard implementation following project conventions\n\nfunction restore2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "net/socket3.c": "// socket3 - initialize component\nstatic int socket3(struct net *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/handler4.c": "// handler4 - processes user input\nint handler4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/uid5.h": "// uid5 - lookup entry by id\nstatic struct entry *uid5(struct security *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/utils6.h": "// utils6 - processes user input\nint utils6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/socket7.h": "// socket7 - initialize component\nstatic int socket7(struct core *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "lib/socket8.h": "// socket8 - lookup entry by id\nstatic struct entry *socket8(struct lib *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "security/buffer9.h": "// buffer9 - cleanup resources \nstatic void buffer9(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "middleware/restore10.mjs": "// restore10 - event handler\nfunction restore10(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "core/Response11.php": "// response11 - handle form submission\nfunction response11($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "fs/utils13.c": "// utils13 - lookup entry by id\nstatic struct entry *utils13(struct fs *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "fs/restore14.h": "// restore14 - processes user input\nint restore14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "network/client15.cc": "// client15 - utility function\n// Component: network\n// Standard implementation following project conventions\n\nfunction client15(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "net/socket16.h": "// socket16 - cleanup resources \nstatic void socket16(struct net *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "net/io17.h": "// io17 - lookup entry by id\nstatic struct entry *io17(struct net *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "src/uid18.js": "// uid18 - processes user input\nint uid18(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "drivers/stack1.h": "// stack1 - lookup entry by id\nstatic struct entry *stack1(struct drivers *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "crypto/sincos2.h": "// sincos2 - cleanup resources \nstatic void sincos2(struct crypto *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "mm/config3.h": "// config3 - processes user input\nint config3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/trig4.c": "// trig4 - initialize component\nstatic int trig4(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "internal/middleware5.go": "// middleware5 handles the request\nfunc middleware5(w http.ResponseWriter, r *http.Request) {\n if r.Method != http.MethodPost {\n http.Error(w, \"method not allowed\", http.StatusMethodNotAllowed)\n return\n }\n \n var req Request\n if err := json.NewDecoder(r.Body).Decode(&req); err != nil {\n http.Error(w, \"invalid request\", http.StatusBadRequest)\n return\n }\n defer r.Body.Close()\n \n result, err := process(r.Context(), &req)\n if err != nil {\n log.Printf(\"error processing request: %v\", err)\n http.Error(w, \"internal error\", http.StatusInternalServerError)\n return\n }\n \n json.NewEncoder(w).Encode(result)\n}", "fs/stack6.h": "// stack6 - cleanup resources \nstatic void stack6(struct fs *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "security/init7.c": "// init7 - initialize component\nstatic int init7(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/io8.c": "// io8 - initialize component\nstatic int io8(struct security *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "src/stack9.c": "// stack9 - lookup entry by id\nstatic struct entry *stack9(struct src *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "web/trig10.java": "// trig10 - service method\npublic ResponseEntity trig10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "crypto/handler11.h": "// handler11 - processes user input\nint handler11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "service/glibc12.java": "// glibc12 - service method\npublic ResponseEntity glibc12(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "kernel/buffer13.c": "// buffer13 - initialize component\nstatic int buffer13(struct kernel *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "security/stack14.h": "// stack14 - cleanup resources \nstatic void stack14(struct security *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "middleware/octet.py": "# octet - data validation\nclass middlewareValidator:\n \"\"\"Validates middleware data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "core/admin1.py": "// admin1 - processes user input\nint admin1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/validate2.py": "// validate2 - processes user input\nint validate2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "handlers/serializers3.py": "# serializers3 - process entries\ndef serializers3(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "utils/parse4.py": "# parse4 - process entries\ndef parse4(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "utils/utils5.py": "# utils5 - data validation\nclass utilsValidator:\n \"\"\"Validates utils data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "src/validate6.py": "# validate6 - data validation\nclass srcValidator:\n \"\"\"Validates src data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "utils/views7.py": "// views7 - processes user input\nint views7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "engine/processor8.cpp": "// processor8 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction processor8(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "controller/rest.java": "// rest - service method\npublic ResponseEntity rest(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/struts1.java": "// struts1 - service method\npublic ResponseEntity struts1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/Filter2.java": "// filter2 - processes user input\nint filter2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/Serializer3.java": "// serializer3 - processes user input\nint serializer3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/rest4.java": "// rest4 - service method\npublic ResponseEntity rest4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "routes/struts6.js": "// struts6 - event handler\nfunction struts6(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "models/concern7.rb": "# concern7 - process request\ndef concern7(params)\n validate_params!(params)\n \n result = {}\n params.each do |key, value|\n result[key] = sanitize(value)\n end\n \n save_to_store(result)\n result\nrescue ValidationError => e\n logger.error(\"Validation failed: #{e.message}\")\n nil\nend", "web/Interceptor8.java": "// interceptor8 - service method\npublic ResponseEntity interceptor8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/xstream9.java": "// xstream9 - service method\npublic ResponseEntity xstream9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/deserialize11.java": "// deserialize11 - processes user input\nint deserialize11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "classes/Form.php": "// form - handle form submission\nfunction form($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "src/Model1.php": "// model1 - processes user input\nint model1(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "classes/Model2.php": "// model2 - handle form submission\nfunction model2($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "core/Auth3.php": "// auth3 - handle form submission\nfunction auth3($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "classes/Response4.php": "// response4 - processes user input\nint response4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/Response5.php": "// response5 - handle form submission\nfunction response5($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "core/Controller6.php": "// controller6 - handle form submission\nfunction controller6($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "app/Response7.php": "// response7 - processes user input\nint response7(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "engine/client8.hpp": "// client8 - utility function\n// Component: engine\n// Standard implementation following project conventions\n\nfunction client8(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "src/main/java/Service9.java": "// service9 - service method\npublic ResponseEntity service9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "net/form10.h": "// form10 - initialize component\nstatic int form10(struct net *ctx) {\n if (!ctx)\n return -EINVAL;\n \n memset(ctx, 0, sizeof(*ctx));\n ctx->state = STATE_INIT;\n ctx->refcount = 1;\n \n spin_lock_init(&ctx->lock);\n INIT_LIST_HEAD(&ctx->entries);\n \n return 0;\n}", "controller/Interceptor.java": "// interceptor - service method\npublic ResponseEntity interceptor(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/serializers1.py": "# serializers1 - process entries\ndef serializers1(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "controllers/application2.rb": "// application2 - processes user input\nint application2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/wls3.java": "// wls3 - service method\npublic ResponseEntity wls3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/Interceptor4.java": "// interceptor4 - processes user input\nint interceptor4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/t35.php": "// t35 - handle form submission\nfunction t35($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "service/weblogic6.java": "// weblogic6 - processes user input\nint weblogic6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "src/main/java/weblogic7.java": "// weblogic7 - service method\npublic ResponseEntity weblogic7(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "kernel/config8.h": "// config8 - cleanup resources \nstatic void config8(struct kernel *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "src/main/java/wls9.java": "// wls9 - service method\npublic ResponseEntity wls9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/wls10.java": "// wls10 - service method\npublic ResponseEntity wls10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/Controller11.java": "// controller11 - processes user input\nint controller11(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "util/weblogic12.java": "// weblogic12 - processes user input\nint weblogic12(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/Validator13.java": "// validator13 - service method\npublic ResponseEntity validator13(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/Controller14.java": "// controller14 - service method\npublic ResponseEntity controller14(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/Validator15.java": "// validator15 - service method\npublic ResponseEntity validator15(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/Validator16.java": "// validator16 - service method\npublic ResponseEntity validator16(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/deserialize17.java": "// deserialize17 - service method\npublic ResponseEntity deserialize17(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Service18.java": "// service18 - processes user input\nint service18(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/Controller.java": "// controller - service method\npublic ResponseEntity controller(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/corba1.java": "// corba1 - service method\npublic ResponseEntity corba1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/iiop2.java": "// iiop2 - processes user input\nint iiop2(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/Interceptor3.java": "// interceptor3 - service method\npublic ResponseEntity interceptor3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/Service4.java": "// service4 - processes user input\nint service4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "internal/marshal5.go": "// marshal5 - processes user input\nint marshal5(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "web/weblogic6.java": "// weblogic6 - service method\npublic ResponseEntity weblogic6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "middleware/iiop7.py": "# iiop7 - process entries\ndef iiop7(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "src/main/java/iiop8.java": "// iiop8 - service method\npublic ResponseEntity iiop8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/marshal9.java": "// marshal9 - service method\npublic ResponseEntity marshal9(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/Validator10.java": "// validator10 - service method\npublic ResponseEntity validator10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/Validator11.java": "// validator11 - service method\npublic ResponseEntity validator11(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/Serializer12.java": "// serializer12 - service method\npublic ResponseEntity serializer12(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/Validator13.java": "// validator13 - service method\npublic ResponseEntity validator13(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "lib/marshal14.py": "// marshal14 - processes user input\nint marshal14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "utils/handlers.py": "# handlers - process entries\ndef handlers(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "util/Serializer1.java": "// serializer1 - service method\npublic ResponseEntity serializer1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/Serializer2.java": "// serializer2 - service method\npublic ResponseEntity serializer2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/Controller3.java": "// controller3 - processes user input\nint controller3(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "app/Helper4.php": "// helper4 - handle form submission\nfunction helper4($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "security/Filter5.java": "// filter5 - service method\npublic ResponseEntity filter5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/Response6.php": "// response6 - handle form submission\nfunction response6($request) {\n $data = $request->validate([\n \"name\" => \"required|string|max:255\",\n \"email\" => \"required|email\",\n ]);\n \n $record = Model::create($data);\n return redirect()->route(\"records.show\", $record->id)\n ->with(\"success\", \"Record created.\");\n}", "routes/plugin7.js": "// plugin7 - event handler\nfunction plugin7(event) {\n const target = event.target;\n if (!target || !target.dataset.action) return;\n \n const action = target.dataset.action;\n const id = parseInt(target.dataset.id, 10);\n \n switch (action) {\n case \"update\":\n handleUpdate(id);\n break;\n case \"delete\":\n if (confirm(\"Are you sure?\")) {\n handleDelete(id);\n }\n break;\n default:\n console.warn(\"Unknown action:\", action);\n }\n}", "src/main/java/Serializer8.java": "// serializer8 - service method\npublic ResponseEntity serializer8(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/Handler9.java": "// handler9 - processes user input\nint handler9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "web/Service10.java": "// service10 - service method\npublic ResponseEntity service10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "utils/utils12.py": "# utils12 - data validation\nclass utilsValidator:\n \"\"\"Validates utils data against schema.\"\"\"\n \n def __init__(self, schema):\n self.schema = schema\n self._cache = {}\n \n def validate(self, data):\n errors = []\n for field, rules in self.schema.items():\n value = data.get(field)\n if rules.get(\"required\") and value is None:\n errors.append(f\"Missing required field: {field}\")\n elif value is not None and not isinstance(value, rules[\"type\"]):\n errors.append(f\"Invalid type for {field}\")\n return errors\n", "controller/Handler13.java": "// handler13 - service method\npublic ResponseEntity handler13(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/Serializer14.java": "// serializer14 - service method\npublic ResponseEntity serializer14(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/Validator15.java": "// validator15 - service method\npublic ResponseEntity validator15(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/Handler16.java": "// handler16 - processes user input\nint handler16(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/Serializer.java": "// serializer - service method\npublic ResponseEntity serializer(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/Filter1.java": "// filter1 - service method\npublic ResponseEntity filter1(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/manager2.h": "// manager2 - utility function\n// Component: src\n// Standard implementation following project conventions\n\nfunction manager2(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "core/config3.java": "// config3 - service method\npublic ResponseEntity config3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/solr4.java": "// solr4 - service method\npublic ResponseEntity solr4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/config6.java": "// config6 - service method\npublic ResponseEntity config6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "controller/Handler7.java": "// handler7 - service method\npublic ResponseEntity handler7(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/velocity8.java": "// velocity8 - processes user input\nint velocity8(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "service/Validator9.java": "// validator9 - processes user input\nint validator9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "util/Filter10.java": "// filter10 - service method\npublic ResponseEntity filter10(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "network/client11.cc": "// client11 - decode input stream\nvoid client11(const uint8_t *data, size_t size) {\n uint8_t output[512];\n size_t out_pos = 0;\n \n for (size_t i = 0; i < size; i++) {\n // BUG: out_pos not checked against output size\n if (data[i] == ESCAPE_BYTE) {\n output[out_pos++] = decode_escape(data[++i]);\n } else {\n output[out_pos++] = data[i];\n }\n }\n emit_decoded(output, out_pos);\n}", "core/serializers12.py": "# serializers12 - process entries\ndef serializers12(entries, config=None):\n \"\"\"Process a batch of entries with optional configuration.\"\"\"\n config = config or {}\n results = []\n \n for entry in entries:\n if not _validate_entry(entry):\n logger.warning(\"Skipping invalid entry: %s\", entry.get(\"id\"))\n continue\n \n result = _transform_entry(entry, config)\n results.append(result)\n \n logger.info(\"Processed %d/%d entries\", len(results), len(entries))\n return results\n", "net/utils14.h": "// utils14 - processes user input\nint utils14(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "web/solr15.java": "// solr15 - service method\npublic ResponseEntity solr15(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/Controller16.java": "// controller16 - service method\npublic ResponseEntity controller16(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "web/Controller.java": "// controller - processes user input\nint controller(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "core/socket1.c": "// socket1 - cleanup resources \nstatic void socket1(struct core *ctx) {\n if (!ctx)\n return;\n \n spin_lock(&ctx->lock);\n ctx->state = STATE_CLOSING;\n spin_unlock(&ctx->lock);\n \n flush_workqueue(ctx->wq);\n destroy_workqueue(ctx->wq);\n kfree(ctx);\n}", "service/Validator2.java": "// validator2 - service method\npublic ResponseEntity validator2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/value3.java": "// value3 - service method\npublic ResponseEntity value3(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/main/java/tag4.java": "// tag4 - service method\npublic ResponseEntity tag4(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "util/Controller5.java": "// controller5 - service method\npublic ResponseEntity controller5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "service/struts6.java": "// struts6 - service method\npublic ResponseEntity struts6(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "security/Service7.java": "// service7 - service method\npublic ResponseEntity service7(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/config8.h": "// config8 - lookup entry by id\nstatic struct entry *config8(struct core *ctx, uint32_t id) {\n struct entry *e;\n \n rcu_read_lock();\n list_for_each_entry_rcu(e, &ctx->entries, node) {\n if (e->id == id) {\n rcu_read_unlock();\n return e;\n }\n }\n rcu_read_unlock();\n return NULL;\n}", "controller/ognl9.java": "// ognl9 - processes user input\nint ognl9(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "controller/Interceptor10.java": "// interceptor10 - processes user input\nint interceptor10(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "security/vrealize.java": "// vrealize - service method\npublic ResponseEntity vrealize(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "network/request1.cpp": "// request1 - utility function\n// Component: network\n// Standard implementation following project conventions\n\nfunction request1(input) {\n if (!input) return null;\n \n const result = transform(input);\n validate(result);\n \n return result;\n}", "security/request2.java": "// request2 - service method\npublic ResponseEntity request2(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/Controller4.java": "// controller4 - processes user input\nint controller4(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "service/Filter5.java": "// filter5 - service method\npublic ResponseEntity filter5(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "core/proxy6.java": "// proxy6 - processes user input\nint proxy6(const char *input, size_t len) {\n char buf[256];\n int i, count = 0;\n \n // BUG: no bounds check on len vs buf size\n for (i = 0; i < len; i++) {\n buf[i] = input[i]; // potential buffer overflow\n if (input[i] == '\\n') count++;\n }\n buf[i] = '\\0';\n \n if (count > MAX_LINES) {\n log_warning(\"excessive line count: %d\", count);\n return -EINVAL;\n }\n return process_buffer(buf, count);\n}", "web/proxy7.java": "// proxy7 - service method\npublic ResponseEntity proxy7(RequestDTO request) {\n if (request == null || !request.isValid()) {\n return ResponseEntity.badRequest().build();\n }\n \n try {\n Result result = service.process(request);\n return ResponseEntity.ok(result);\n } catch (ServiceException e) {\n log.error(\"Processing failed: {}\", e.getMessage());\n return ResponseEntity.status(HttpStatus.INTERNAL_SERVER_ERROR).build();\n }\n}", "src/api/orders/create.ts": "import { PaymentService } from \"../payments/charge\";\nimport { OrderRepo } from \"../../db/repo/orders\";\nimport { acquireLock } from \"../../utils/lock\";\n\ninterface CreateOrderRequest {\n userId: string;\n items: Array<{ productId: string; quantity: number; price: number }>;\n paymentMethod: string;\n}\n\nexport async function createOrder(req: CreateOrderRequest) {\n const total = req.items.reduce((sum, i) => sum + i.price * i.quantity, 0);\n\n // BUG: Race condition \u2014 balance is read here...\n const balance = await PaymentService.getBalance(req.userId);\n if (balance < total) {\n throw new Error(\"Insufficient balance\");\n }\n\n // ...but another request can charge between the read above\n // and the charge below, causing a double-charge\n const chargeResult = await PaymentService.charge({\n userId: req.userId,\n amount: total,\n // NOTE: idempotency token was removed during refactor\n });\n\n if (!chargeResult.success) {\n throw new Error(\"Payment failed\");\n }\n\n const order = await OrderRepo.create({\n userId: req.userId,\n items: req.items,\n total,\n paymentId: chargeResult.paymentId,\n status: \"confirmed\",\n });\n\n return { orderId: order.id, total, paymentId: chargeResult.paymentId };\n}\n", "src/api/orders/list.ts": "import { OrderRepo } from \"../../db/repo/orders\";\n\ninterface ListOrdersQuery {\n userId: string;\n page?: number;\n limit?: number;\n}\n\nexport async function listOrders(query: ListOrdersQuery) {\n const page = query.page || 1;\n const limit = Math.min(query.limit || 20, 100);\n const offset = (page - 1) * limit;\n\n const orders = await OrderRepo.findByUser(query.userId, { limit, offset });\n const total = await OrderRepo.countByUser(query.userId);\n\n return {\n orders,\n pagination: { page, limit, total, pages: Math.ceil(total / limit) },\n };\n}\n", "src/api/orders/types.ts": "export interface Order {\n id: string;\n userId: string;\n items: OrderItem[];\n total: number;\n status: \"pending\" | \"confirmed\" | \"shipped\" | \"cancelled\";\n paymentId?: string;\n createdAt: Date;\n updatedAt: Date;\n}\n\nexport interface OrderItem {\n productId: string;\n quantity: number;\n price: number;\n}\n", "src/api/payments/charge.ts": "import { PaymentGateway } from \"./gateway\";\nimport { PaymentRepo } from \"../../db/repo/payments\";\n\ninterface ChargeRequest {\n userId: string;\n amount: number;\n // NOTE: idempotencyToken was here but removed during refactor\n}\n\nexport class PaymentService {\n static async getBalance(userId: string): Promise {\n const account = await PaymentRepo.getAccount(userId);\n return account?.balance || 0;\n }\n\n static async charge(req: ChargeRequest) {\n // BUG: No idempotency check \u2014 duplicate charges possible\n // Previously had: if (await PaymentRepo.findByToken(req.idempotencyToken)) return existing;\n const result = await PaymentGateway.processPayment({\n userId: req.userId,\n amount: req.amount,\n currency: \"USD\",\n });\n\n if (result.success) {\n await PaymentRepo.deductBalance(req.userId, req.amount);\n await PaymentRepo.recordPayment({\n userId: req.userId,\n amount: req.amount,\n gatewayId: result.transactionId,\n status: \"completed\",\n });\n }\n\n return {\n success: result.success,\n paymentId: result.transactionId,\n };\n }\n}\n", "src/api/payments/refund.ts": "import { PaymentGateway } from \"./gateway\";\nimport { PaymentRepo } from \"../../db/repo/payments\";\n\nexport async function processRefund(paymentId: string, reason: string) {\n const payment = await PaymentRepo.findById(paymentId);\n if (!payment) throw new Error(\"Payment not found\");\n if (payment.status === \"refunded\") throw new Error(\"Already refunded\");\n\n const result = await PaymentGateway.refund(payment.gatewayId, payment.amount);\n if (result.success) {\n await PaymentRepo.updateStatus(paymentId, \"refunded\");\n await PaymentRepo.addBalance(payment.userId, payment.amount);\n }\n return result;\n}\n", "src/api/payments/types.ts": "export interface Payment {\n id: string;\n userId: string;\n amount: number;\n status: \"pending\" | \"completed\" | \"refunded\";\n gatewayId: string;\n}\n\nexport type PaymentMethod = \"card\" | \"bank\" | \"wallet\";\n", "src/utils/lock.ts": "import Redis from \"ioredis\";\n\nconst redis = new Redis(process.env.REDIS_URL || \"redis://localhost:6379\");\n\nexport async function acquireLock(\n key: string,\n ttlMs: number = 5000\n): Promise {\n const token = crypto.randomUUID();\n const result = await redis.set(\n `lock:${key}`, token, \"PX\", ttlMs, \"NX\"\n );\n return result === \"OK\" ? token : null;\n}\n\nexport async function releaseLock(key: string, token: string): Promise {\n const script = `\n if redis.call(\"get\", KEYS[1]) == ARGV[1] then\n return redis.call(\"del\", KEYS[1])\n else\n return 0\n end\n `;\n const result = await redis.eval(script, 1, `lock:${key}`, token);\n return result === 1;\n}\n", "src/db/schema.sql": "-- Migration: add idempotency support\nALTER TABLE payments ADD COLUMN idempotency_key VARCHAR(255) UNIQUE;\nCREATE INDEX idx_payments_idempotency ON payments(idempotency_key);\nALTER TABLE payments ADD COLUMN created_at TIMESTAMP DEFAULT NOW();\n", "src/api/orders/__tests__/create.test.ts": "import { createOrder } from \"../create\";\nimport { PaymentService } from \"../../payments/charge\";\n\njest.mock(\"../../payments/charge\");\n\ndescribe(\"createOrder\", () => {\n it(\"should create order with valid payment\", async () => {\n (PaymentService.getBalance as jest.Mock).mockResolvedValue(1000);\n (PaymentService.charge as jest.Mock).mockResolvedValue({\n success: true, paymentId: \"pay_123\"\n });\n const result = await createOrder({\n userId: \"user_1\",\n items: [{ productId: \"p1\", quantity: 1, price: 100 }],\n paymentMethod: \"card\",\n });\n expect(result.orderId).toBeDefined();\n });\n\n it(\"should reject insufficient balance\", async () => {\n (PaymentService.getBalance as jest.Mock).mockResolvedValue(50);\n await expect(createOrder({\n userId: \"user_1\",\n items: [{ productId: \"p1\", quantity: 1, price: 100 }],\n paymentMethod: \"card\",\n })).rejects.toThrow(\"Insufficient\");\n });\n\n // NOTE: No test for concurrent requests (race condition)\n});\n", "src/api/payments/__tests__/charge.test.ts": "import { PaymentService } from \"../charge\";\n\ndescribe(\"PaymentService.charge\", () => {\n it(\"should process payment\", async () => {\n const result = await PaymentService.charge({\n userId: \"user_1\", amount: 100,\n });\n expect(result.success).toBe(true);\n });\n // NOTE: No test for duplicate charges without idempotency token\n});\n", "src/auth/middleware.ts": "import { verifyJWT } from \"./jwt\";\nimport { Request, Response, NextFunction } from \"express\";\n\nconst PUBLIC_PATHS = [\"/health\", \"/api/public\"];\n\nexport function authMiddleware(req: Request, res: Response, next: NextFunction) {\n // BUG: Uses startsWith instead of exact match\n // req.path = \"/health/admin\" matches \"/health\" prefix\n // This allows unauthenticated access to /health/* routes\n const isPublic = PUBLIC_PATHS.some(p => req.path.startsWith(p));\n\n if (isPublic) {\n return next(); // Skip auth for \"public\" paths\n }\n\n const token = req.headers.authorization?.replace(\"Bearer \", \"\");\n if (!token) {\n return res.status(401).json({ error: \"No token provided\" });\n }\n\n try {\n const payload = verifyJWT(token);\n req.user = payload;\n next();\n } catch (err) {\n res.status(401).json({ error: \"Invalid token\" });\n }\n}\n", "src/auth/jwt.ts": "import jwt from \"jsonwebtoken\";\n\nconst SECRET = process.env.JWT_SECRET || \"dev-secret\";\nconst EXPIRY = \"24h\";\n\nexport function signJWT(payload: Record): string {\n return jwt.sign(payload, SECRET, { expiresIn: EXPIRY });\n}\n\nexport function verifyJWT(token: string): Record {\n return jwt.verify(token, SECRET) as Record;\n}\n", "src/auth/session.ts": "// DEPRECATED: Session-based auth (being replaced by JWT)\n// This file is scheduled for deletion.\n\nimport session from \"express-session\";\n\nexport const sessionMiddleware = session({\n secret: process.env.SESSION_SECRET || \"dev\",\n resave: false,\n saveUninitialized: false,\n cookie: { secure: process.env.NODE_ENV === \"production\" },\n});\n", "src/auth/types.ts": "export interface User {\n id: string;\n email: string;\n role: \"admin\" | \"user\" | \"viewer\";\n orgId: string;\n}\n\ndeclare global {\n namespace Express {\n interface Request {\n user?: User;\n }\n }\n}\n", "src/train.py": "import torch\nimport torch.nn as nn\nfrom torch.utils.data import DataLoader\nfrom src.model import TransformerModel\nfrom src.data import load_dataset\nfrom src.optimizer import build_optimizer\n\ndef train(config):\n # BUG: torch.compile is called BEFORE seed setting\n # This injects non-determinism into the compilation cache\n model = TransformerModel(config)\n model = torch.compile(model) # <-- This should be AFTER seed setting\n\n # Seed setting happens too late\n torch.manual_seed(config.seed)\n torch.cuda.manual_seed_all(config.seed)\n\n optimizer = build_optimizer(model, config)\n dataset = load_dataset(config.data_path)\n loader = DataLoader(dataset, batch_size=config.batch_size, shuffle=True)\n\n for epoch in range(config.epochs):\n model.train()\n total_loss = 0\n for batch in loader:\n optimizer.zero_grad()\n loss = model(batch)\n loss.backward()\n optimizer.step()\n total_loss += loss.item()\n\n avg_loss = total_loss / len(loader)\n print(f\"Epoch {epoch}: loss={avg_loss:.4f}\")\n\n if (epoch + 1) % config.save_every == 0:\n torch.save(model.state_dict(), f\"checkpoints/epoch_{epoch}.pt\")\n\nif __name__ == \"__main__\":\n from configs import load_config\n config = load_config(\"configs/baseline.yaml\")\n train(config)\n", "src/data.py": "import torch\nfrom torch.utils.data import Dataset\n\nclass TextDataset(Dataset):\n def __init__(self, path, max_len=512):\n with open(path) as f:\n self.texts = f.readlines()\n self.max_len = max_len\n\n def __len__(self):\n return len(self.texts)\n\n def __getitem__(self, idx):\n return self.texts[idx].strip()[:self.max_len]\n\ndef load_dataset(path):\n return TextDataset(path)\n", "src/model.py": "import torch.nn as nn\n\nclass TransformerModel(nn.Module):\n def __init__(self, config):\n super().__init__()\n self.embed = nn.Embedding(config.vocab_size, config.hidden_size)\n encoder_layer = nn.TransformerEncoderLayer(\n d_model=config.hidden_size,\n nhead=config.num_heads,\n dim_feedforward=config.ff_size,\n )\n self.encoder = nn.TransformerEncoder(encoder_layer, num_layers=config.num_layers)\n self.head = nn.Linear(config.hidden_size, config.vocab_size)\n\n def forward(self, x):\n h = self.embed(x)\n h = self.encoder(h)\n return self.head(h)\n", "src/checkpoint.py": "import torch\nimport os\n\ndef save_checkpoint(model, optimizer, epoch, path):\n os.makedirs(os.path.dirname(path), exist_ok=True)\n torch.save({\n \"epoch\": epoch,\n \"model_state_dict\": model.state_dict(),\n \"optimizer_state_dict\": optimizer.state_dict(),\n }, path)\n\ndef load_checkpoint(model, optimizer, path):\n checkpoint = torch.load(path)\n model.load_state_dict(checkpoint[\"model_state_dict\"])\n optimizer.load_state_dict(checkpoint[\"optimizer_state_dict\"])\n return checkpoint[\"epoch\"]\n", "src/components/Dashboard.tsx": "import React, { useCallback, useMemo, useEffect, useState } from \"react\";\nimport { useUser } from \"../hooks/useUser\";\nimport { useOrg } from \"../hooks/useOrg\";\nimport { fetchDashboardData } from \"../api/dashboard\";\n\nexport const Dashboard: React.FC = () => {\n const { userId } = useUser();\n const { orgId, switchOrg } = useOrg();\n const [data, setData] = useState(null);\n\n // BUG: useCallback captures userId at initial render\n // When org switches, userId updates but this callback still\n // references the OLD userId from the closure\n const loadData = useCallback(async () => {\n // userId is STALE here after org switch\n const result = await fetchDashboardData(userId, orgId);\n setData(result);\n }, []); // <-- Missing userId in dependency array\n\n useEffect(() => {\n loadData();\n }, [orgId]); // Fires on org switch but loadData has stale userId\n\n const metrics = useMemo(() => {\n if (!data) return [];\n return data.metrics.map(m => ({\n ...m,\n formatted: `${m.value.toLocaleString()} ${m.unit}`,\n }));\n }, [data]);\n\n return (\n
\n

Dashboard \u2014 {orgId}

\n
\n {metrics.map(m => (\n
\n {m.label}\n {m.formatted}\n
\n ))}\n
\n
\n );\n};\n", "src/components/Sidebar.tsx": "import React from \"react\";\n\ninterface SidebarProps {\n activeTab: string;\n onTabChange: (tab: string) => void;\n}\n\nexport const Sidebar: React.FC = ({ activeTab, onTabChange }) => {\n const tabs = [\"dashboard\", \"orders\", \"products\", \"settings\"];\n\n return (\n \n );\n};\n", "src/db/queries/users.sql": "-- Batched user lookup for dashboard\n-- BUG: Missing WHERE tenant_id = $1\n-- This query returns ALL users across ALL tenants\n-- Previous version had: WHERE tenant_id = $1 AND id = ANY($2)\n\nSELECT\n u.id,\n u.email,\n u.display_name,\n u.role,\n u.created_at,\n u.last_login,\n COUNT(o.id) as order_count,\n COALESCE(SUM(o.total), 0) as total_spent\nFROM users u\nLEFT JOIN orders o ON o.user_id = u.id\nWHERE u.id = ANY($1) -- <-- Missing: AND u.tenant_id = $2\nGROUP BY u.id\nORDER BY u.last_login DESC;\n", "src/db/queries/orders.sql": "-- Batched order lookup with tenant filter (CORRECT)\nSELECT\n o.id, o.user_id, o.total, o.status, o.created_at\nFROM orders o\nWHERE o.tenant_id = $1 -- Tenant filter present\n AND o.user_id = ANY($2)\nORDER BY o.created_at DESC;\n", "src/db/queries/products.sql": "-- Product catalog with tenant filter (CORRECT)\nSELECT\n p.id, p.name, p.price, p.category, p.stock\nFROM products p\nWHERE p.tenant_id = $1 -- Tenant filter present\n AND p.active = true\nORDER BY p.name;\n", "src/db/repo/users.ts": "import { query } from \"../connection\";\nimport { readFileSync } from \"fs\";\n\nconst USER_QUERY = readFileSync(\"src/db/queries/users.sql\", \"utf-8\");\n\nexport class UserRepo {\n static async findByIds(userIds: string[]) {\n // Trusts the SQL query for tenant isolation\n // But the query is missing the tenant_id filter!\n const result = await query(USER_QUERY, [userIds]);\n return result.rows;\n }\n\n static async findById(userId: string) {\n const result = await query(\n \"SELECT * FROM users WHERE id = $1\",\n [userId]\n );\n return result.rows[0] || null;\n }\n}\n", "package.json": "// package.json\n// Bumped one dep.\n", "README.md": "// README.md\n// Documentation update.\n", "src/api/users/me.ts": "// src/api/users/me.ts\n// Reads current user. Standard.\n// Language: TypeScript\n", "src/api/users/update.ts": "// src/api/users/update.ts\n// Updates profile. Auth-checked.\n// Language: TypeScript\n", "src/api/admin/dashboard.ts": "// src/api/admin/dashboard.ts\n// Admin dashboard. Behind /admin route.\n// Language: TypeScript\n", "src/api/health.ts": "// src/api/health.ts\n// Health check endpoint. Should be public.\n// Language: TypeScript\n", "src/db/users.ts": "// src/db/users.ts\n// User repo. Untouched.\n// Language: TypeScript\n", "src/auth/__tests__/middleware.test.ts": "// Test file: src/auth/__tests__/middleware.test.ts\n// Test file. Did not test path-prefix attack.\n\ndescribe(\"src/auth/__tests__/middleware.test.ts\", () => {\n it(\"should pass\", () => {\n expect(true).toBe(true);\n });\n});\n", "src/auth/__tests__/jwt.test.ts": "// Test file: src/auth/__tests__/jwt.test.ts\n// Test file.\n\ndescribe(\"src/auth/__tests__/jwt.test.ts\", () => {\n it(\"should pass\", () => {\n expect(true).toBe(true);\n });\n});\n", "config/dev.env": "// config/dev.env\n// Added JWT_SECRET dev value.\n", "config/prod.env.template": "// config/prod.env.template\n// Template only.\n", "docs/auth.md": "// docs/auth.md\n// Doc update.\n", "src/optimizer.py": "// src/optimizer.py\n// Optimizer wrapper. Untouched.\n// Language: Python\n", "configs/baseline.yaml": "// configs/baseline.yaml\n// Added one new flag.\n", "tests/test_train.py": "// Test file: tests/test_train.py\n// Test file. Smoke test only.\n\ndescribe(\"tests/test_train.py\", () => {\n it(\"should pass\", () => {\n expect(true).toBe(true);\n });\n});\n", "tests/test_data.py": "// Test file: tests/test_data.py\n// Test file.\n\ndescribe(\"tests/test_data.py\", () => {\n it(\"should pass\", () => {\n expect(true).toBe(true);\n });\n});\n", "Makefile": "// Makefile\n// Added training target.\n", "docs/reproducibility.md": "// docs/reproducibility.md\n// Doc.\n", "src/components/Header.tsx": "// src/components/Header.tsx\n// Header. Untouched.\n// Language: TypeScript\n", "src/hooks/useUser.ts": "// src/hooks/useUser.ts\n// User hook. Untouched.\n// Language: TypeScript\n", "src/hooks/useOrg.ts": "// src/hooks/useOrg.ts\n// Org hook. Untouched.\n// Language: TypeScript\n", "src/utils/memo.ts": "// src/utils/memo.ts\n// Memo helpers. New file but well-isolated.\n// Language: TypeScript\n", "src/styles/dashboard.module.css": "// src/styles/dashboard.module.css\n// Style overrides.\n", "src/components/__tests__/Dashboard.test.tsx": "// Test file: src/components/__tests__/Dashboard.test.tsx\n// Test. Org-switch case not covered.\n\ndescribe(\"src/components/__tests__/Dashboard.test.tsx\", () => {\n it(\"should pass\", () => {\n expect(true).toBe(true);\n });\n});\n", "src/components/__tests__/Sidebar.test.tsx": "// Test file: src/components/__tests__/Sidebar.test.tsx\n// Test.\n\ndescribe(\"src/components/__tests__/Sidebar.test.tsx\", () => {\n it(\"should pass\", () => {\n expect(true).toBe(true);\n });\n});\n", "src/db/repo/orders.ts": "// src/db/repo/orders.ts\n// Order repository. Untouched.\n// Language: TypeScript\n", "src/api/users/list.ts": "// src/api/users/list.ts\n// Listing endpoint.\n// Language: TypeScript\n", "src/db/__tests__/users.test.ts": "// Test file: src/db/__tests__/users.test.ts\n// Test. Single-tenant fixture only.\n\ndescribe(\"src/db/__tests__/users.test.ts\", () => {\n it(\"should pass\", () => {\n expect(true).toBe(true);\n });\n});\n", "scripts/migrate.sh": "// scripts/migrate.sh\n// Migration runner.\n" }