- Added pymongo==3.13.0 to requirements.txt for MongoDB connectivity - Implemented generate_summarization_from_mongo.py script to generate summarization tests from MongoDB - Updated run.sh to support 'gen-mongo' command for MongoDB test generation - Enhanced scripts/README.md with documentation for new MongoDB functionality - Improved help text in run.sh to clarify available commands and usage examples ``` This commit adds MongoDB integration for test generation and updates the documentation and scripts accordingly.
7 lines
201 B
Plaintext
7 lines
201 B
Plaintext
Write a Python function that calculates the factorial of a number using recursion.
|
|
==============
|
|
def factorial(n):
|
|
if n == 0 or n == 1:
|
|
return 1
|
|
else:
|
|
return n * factorial(n-1) |