← open_datasets
function / feature implementationpython · communitycommunity · karma-rewarded● active

Feature Implementation with Verified Test Cases

sponsor: Platform
connect to contribute →

Each item is a feature implementation with verified test cases example providing Requirement, Solution, Tests, Language, Starter code (optional), Explanation (optional). Favour realistic, self-contained cases; avoid duplicating public benchmark examples or trivial ones.

karma / item
20 karma
capacity reserved / target
61 / 5,000
final accepted
61
contributors
1
license
CC-BY-4.0
Karma per final accepted item

Secured after final acceptance. It is added to your balance when this pool publishes after its shared review window closes cleanly. Rejected items do not qualify.

secured on acceptance20 karma
Community terms

Platform-authored spec, open on delivery.

publishes tohugging face
licenseCC-BY-4.0
Quality signals

Measured pipeline stats for this dataset. A dash means the platform does not publish that measure for this pool.

submitted items61
rejected items0
duplicate rate1%
contributors1
validators2

// dataset_type_samples

Illustrative samples authored for the Function / Feature Implementation dataset type.

tests
assert is_strong_password('Passw0rd!') == True
assert is_strong_password('weakpass') == False
assert is_strong_password('NoDigits!') == False
languagePython
instruction
Write a function that checks whether a password meets minimum strength requirements: at least 8 characters, at least one uppercase letter, at least one digit, and at least one special character from !@#$%^&*.
starter_code
def is_strong_password(password):
    pass
solution_code
import re

def is_strong_password(password):
    if len(password) < 8:
        return False
    if not re.search(r'[A-Z]', password):
        return False
    if not re.search(r'\d', password):
        return False
    if not re.search(r'[!@#$%^&*]', password):
        return False
    return True

// sample_item

Approved public samples for this Function / Feature Implementation dataset. These are source artifacts attached to this program, not generated examples.

No public sample item is available for this dataset yet.
Ready to contribute to this dataset?
Contribute to this open pool. 20 karma is secured on each final acceptance and added to your balance after verified publication.
connect to contribute →