# SPDX-License-Identifier: Apache-2.0
# Copyright 2025 Edit Test Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

"""
A simple test module demonstrating basic Python functions.

This module contains utility functions for basic calculations and user interactions.
It serves as an example for proper Python documentation practices.
"""

def calculate_area(length, width):
    """
    Calculate the area of a rectangle.
    
    Args:
        length (float): The length of the rectangle
        width (float): The width of the rectangle
    
    Returns:
        float: The area of the rectangle (length * width)
    
    Example:
        >>> calculate_area(5, 3)
        15
    """
    return length * width

def greet_user(name):
    """
    Generate a personalized greeting message.
    
    Args:
        name (str): The name of the user to greet
    
    Returns:
        str: A formatted greeting message
    
    Example:
        >>> greet_user("Alice")
        'Hello, Alice!'
    """
    return f"Hello, {name}!"