# Example Commit Messages for Refactoring

## Commit 1: Renames
```
Rename functions for consistency

Standardize function naming across codebase:
- process_data -> process_user_data (clearer purpose)
- handle -> handle_request (explicit about handling requests)
- validate -> validate_input (specific validation target)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
```

## Commit 2: Extract Utilities
```
Extract helper utilities to separate module

Create src/utils/ module with common helpers:
- format_date()
- sanitize_input()
- calculate_checksum()

Update processor.py and handler.py to use extracted utilities.
Reduces code duplication and improves testability.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
```

## Commit 3: Update Tests
```
Update test suite for refactored code

- Update test imports for renamed functions
- Add test coverage for utils module
- Verify all existing tests still pass

All tests passing: 45/45

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
```

## Commit 4: Documentation
```
Update documentation for API changes

- Update function names in API reference
- Add utils module documentation
- Update code examples in README
- Add migration guide for function renames

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
```
