<commit_before>===============================
Swagger Fuzzer
===============================

Swagger Fuzzer helps you do fuzzing testing on your Swagger APIs.

* Free software: MIT License
* Documentation: https://swagger_fuzzer.readthedocs.org.

Usage
-----

Install swagger-fuzzer via pip:

.. code:: shell

    pip install https://github.com/Lothiraldan/swagger-fuzzer/archive/master.zip

Point it to your swagger specification:

.. code:: shell

    swagger-fuzzer http://localhost:80/v2/swagger.json

If swagger-fuzzer find any problem, it will print you a report, for example:

.. code:: shell

    Falsifying example: swagger_fuzzer(data=request(...))
    Curl command: curl -i -X GET -d '' 'http://localhost/pet/findByStatus'
    Traceback (most recent call last):
      File "/Users/lothiraldan/.virtualenvs/swagger-fuzzer/bin/swagger-fuzzer", line 9, in <module>
        load_entry_point('swagger-fuzzer', 'console_scripts', 'swagger-fuzzer')()
      File "/Users/lothiraldan/projects/swagger-fuzzer/swagger_fuzzer/swagger_fuzzer/swagger_fuzzer.py", line 34, in main
        do(args)
      File "/Users/lothiraldan/projects/swagger-fuzzer/swagger_fuzzer/swagger_fuzzer/swagger_fuzzer.py", line 79, in do
        swagger_fuzzer()
      File "/Users/lothiraldan/projects/swagger-fuzzer/swagger_fuzzer/swagger_fuzzer/swagger_fuzzer.py", line 68, in swagger_fuzzer
        @hsettings(max_examples=settings.iterations)
      File "/Users/lothiraldan/projects/swagger-fuzzer/hypothesis-python/src/hypothesis/core.py", line 541, in wrapped_test
        print_example=True, is_final=True
      File "/Users/lothiraldan/projects/swagger-fuzzer/hypothesis-python/src/hypothesis/executors.py", line 58, in default_new_style_executor
        return function(data)
      File "/Users/lothiraldan/projects/swagger-fuzzer/hypothesis-python/src/hypothesis/core.py", line 104, in run
        return test(*args, **kwargs)<commit_msg>Upd: Make sure we use python 3<commit_after>===============================
Swagger Fuzzer
===============================

Swagger Fuzzer helps you do fuzzing testing on your Swagger APIs.

* Free software: MIT License
* Documentation: https://swagger_fuzzer.readthedocs.org.

Usage
-----

Install swagger-fuzzer via pip:

.. code:: shell

    pip3 install https://github.com/Lothiraldan/swagger-fuzzer/archive/master.zip

Point it to your swagger specification:

.. code:: shell

    swagger-fuzzer http://localhost:80/v2/swagger.json

If swagger-fuzzer find any problem, it will print you a report, for example:

.. code:: shell

    Falsifying example: swagger_fuzzer(data=request(...))
    Curl command: curl -i -X GET -d '' 'http://localhost/pet/findByStatus'
    Traceback (most recent call last):
      File "/Users/lothiraldan/.virtualenvs/swagger-fuzzer/bin/swagger-fuzzer", line 9, in <module>
        load_entry_point('swagger-fuzzer', 'console_scripts', 'swagger-fuzzer')()
      File "/Users/lothiraldan/projects/swagger-fuzzer/swagger_fuzzer/swagger_fuzzer/swagger_fuzzer.py", line 34, in main
        do(args)
      File "/Users/lothiraldan/projects/swagger-fuzzer/swagger_fuzzer/swagger_fuzzer/swagger_fuzzer.py", line 79, in do
        swagger_fuzzer()
      File "/Users/lothiraldan/projects/swagger-fuzzer/swagger_fuzzer/swagger_fuzzer/swagger_fuzzer.py", line 68, in swagger_fuzzer
        @hsettings(max_examples=settings.iterations)
      File "/Users/lothiraldan/projects/swagger-fuzzer/hypothesis-python/src/hypothesis/core.py", line 541, in wrapped_test
        print_example=True, is_final=True
      File "/Users/lothiraldan/projects/swagger-fuzzer/hypothesis-python/src/hypothesis/executors.py", line 58, in default_new_style_executor
        return function(data)
      File "/Users/lothiraldan/projects/swagger-fuzzer/hypothesis-python/src/hypothesis/core.py", line 104, in run
        return test(*args, **kwargs)
{'fraction_non_alphanumeric': 0.1428202479338843, 'fraction_numerical': 0.00981404958677686, 'mean_word_length': 4.0627450980392155, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, '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': '5763719', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1306, 'n_words': 257}