<commit_before>- server: crsv3
  scenarios:
  # PHP script uploads (rule 933110)
  # TODO: add test with multipart/form-data upload
  - test: [{url: '/', code: 200}]
  - test: [{url: '/upload1', headers: {'X-FileName': 'foo.php'}, code: 403}]
  - test: [{url: '/upload2', headers: {'X_FILENAME': 'foo.php'}, code: 403}]
  - test: [{url: '/upload3', headers: {'X-File-Name': 'foo.PhP'}, code: 403}]
  - test: [{url: '/upload4', headers: {'X-File-Name': '.PHP'}, code: 403}]
  - test: [{url: '/', headers: {'X-File-Name': 'php'}, code: 200}]
  # run in paranoia level 3:
  - test: [{url: '/upload5', headers: {'X-FileName': 'foo.php.tmp'}, code: 403}]
  - test: [{url: '/upload6', headers: {'X_FILENAME': 'foo.php.tmp'}, code: 403}]
  - test: [{url: '/upload7', headers: {'X-File-Name': 'foo.PhP.tmp'}, code: 403}]
  - test: [{url: '/upload8', headers: {'X-File-Name': '.PHP.tmp'}, code: 403}]
  - test: [{url: '/', headers: {'X-File-Name': 'foo.phpno'}, code: 200}]<commit_msg>PHP script uploads: add a few more tests<commit_after>- server: crsv3
  scenarios:
  # PHP script uploads (rule 933110)
  # TODO: add test with multipart/form-data upload
  - test: [{url: '/', code: 200}]
  - test: [{url: '/upload1', headers: {'X-FileName': 'foo.php'}, code: 403}]
  - test: [{url: '/upload2', headers: {'X_FILENAME': 'foo.php'}, code: 403}]
  - test: [{url: '/upload3', headers: {'X-File-Name': 'foo.PhP'}, code: 403}]
  - test: [{url: '/upload4', headers: {'X-File-Name': '.PHP'}, code: 403}]
  - test: [{url: '/upload', headers: {'X-File-Name': 'foo.PHP5'}, code: 403}]
  - test: [{url: '/upload', headers: {'X-File-Name': 'foo.PHP10'}, code: 403}]
  - test: [{url: '/', headers: {'X-File-Name': 'php'}, code: 200}]
  # run in paranoia level 3:
  - test: [{url: '/upload5', headers: {'X-FileName': 'foo.php.tmp'}, code: 403}]
  - test: [{url: '/upload6', headers: {'X_FILENAME': 'foo.php.tmp'}, code: 403}]
  - test: [{url: '/upload7', headers: {'X-File-Name': 'foo.PhP.tmp'}, code: 403}]
  - test: [{url: '/upload8', headers: {'X-File-Name': '.PHP.tmp'}, code: 403}]
  - test: [{url: '/upload', headers: {'X-File-Name': 'x.PHP7.foo'}, code: 403}]
  - test: [{url: '/upload', headers: {'X-File-Name': 'x.PHP10.foo'}, code: 403}]
  - test: [{url: '/', headers: {'X-File-Name': 'foo.phpno'}, code: 200}]
{'fraction_non_alphanumeric': 0.27296473661297344, 'fraction_numerical': 0.050500653025685675, 'mean_word_length': 3.848101265822785, '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': '5310508', 'n_tokens_mistral': 960, 'n_tokens_neox': 867, 'n_words': 242}