<commit_before>command_handle:
    path: /command
    defaults:  { _controller: SurfnetStepupMiddlewareApiBundle:Command:handle }
    methods:   [POST]
    condition: "request.headers.get('Content-Type') == 'application/json' && request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity:
    path:     /identity/{id}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:Identity:get }
    methods:  [GET]
    requirements:
        id: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_collection:
    path:     /identity
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:Identity:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

unverified_second_factors:
    path:     /unverified-second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:UnverifiedSecondFactor:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

verified_second_factors:
    path:     /verified-second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:VerifiedSecondFactor:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

vetted_second_factors:
    path:     /vetted-second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:VettedSecondFactor:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

unverified_second_factor:
    path:     /unverified-second-factor/{id}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:UnverifiedSecondFactor:get }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

verified_second_factor:
    path:     /verified-second-factor/{id}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:VerifiedSecondFactor:get }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

vetted_second_factor:
    path:     /vetted-second-factor/{id}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:VettedSecondFactor:get }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

ra_second_factors:
    path:     /ra-second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:RaSecondFactor:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_ra_list:
    path:      /registration-authority
    defaults:  { _controller: SurfnetStepupMiddlewareApiBundle:Ra:list }
    methods:   [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_raa_search:
    path:      /raa
    defaults:  { _controller: SurfnetStepupMiddlewareApiBundle:Raa:search }
    methods:   [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_sraa_get:
    path:      /sraa/{nameId}
    defaults:  { _controller: SurfnetStepupMiddlewareApiBundle:Sraa:get }
    methods:   [GET]
    requirements:
        nameId: ".+"
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

audit_log:
    path:     /audit-log/second-factor
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:AuditLog:secondFactorAuditLog }
    methods:  [GET]
    requirements:
        identityId: ".+"
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_registration_authority_credentials:
    path:      /registration-authority/{identityId}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:Identity:getRegistrationAuthorityCredentials }
    methods:  [GET]
    requirements:
        identityId: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"
<commit_msg>Move from /audit-log/second-factor to .../second-factors.<commit_after>command_handle:
    path: /command
    defaults:  { _controller: SurfnetStepupMiddlewareApiBundle:Command:handle }
    methods:   [POST]
    condition: "request.headers.get('Content-Type') == 'application/json' && request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity:
    path:     /identity/{id}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:Identity:get }
    methods:  [GET]
    requirements:
        id: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_collection:
    path:     /identity
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:Identity:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

unverified_second_factors:
    path:     /unverified-second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:UnverifiedSecondFactor:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

verified_second_factors:
    path:     /verified-second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:VerifiedSecondFactor:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

vetted_second_factors:
    path:     /vetted-second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:VettedSecondFactor:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

unverified_second_factor:
    path:     /unverified-second-factor/{id}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:UnverifiedSecondFactor:get }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

verified_second_factor:
    path:     /verified-second-factor/{id}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:VerifiedSecondFactor:get }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

vetted_second_factor:
    path:     /vetted-second-factor/{id}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:VettedSecondFactor:get }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

ra_second_factors:
    path:     /ra-second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:RaSecondFactor:collection }
    methods:  [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_ra_list:
    path:      /registration-authority
    defaults:  { _controller: SurfnetStepupMiddlewareApiBundle:Ra:list }
    methods:   [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_raa_search:
    path:      /raa
    defaults:  { _controller: SurfnetStepupMiddlewareApiBundle:Raa:search }
    methods:   [GET]
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_sraa_get:
    path:      /sraa/{nameId}
    defaults:  { _controller: SurfnetStepupMiddlewareApiBundle:Sraa:get }
    methods:   [GET]
    requirements:
        nameId: ".+"
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

audit_log:
    path:     /audit-log/second-factors
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:AuditLog:secondFactorAuditLog }
    methods:  [GET]
    requirements:
        identityId: ".+"
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

identity_registration_authority_credentials:
    path:      /registration-authority/{identityId}
    defaults: { _controller: SurfnetStepupMiddlewareApiBundle:Identity:getRegistrationAuthorityCredentials }
    methods:  [GET]
    requirements:
        identityId: '[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}'
    condition: "request.headers.get('Accept') matches '/^application\\\\/json($|[;,])/'"

{'fraction_non_alphanumeric': 0.17385108656929105, 'fraction_numerical': 0.007600047500296877, 'mean_word_length': 4.088821752265861, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5217871', 'n_tokens_mistral': 2809, 'n_tokens_neox': 2744, 'n_words': 388}