Implement friend recommendations based on shared programming languages - #328
Open
konard wants to merge 3 commits into
Open
Implement friend recommendations based on shared programming languages#328konard wants to merge 3 commits into
konard wants to merge 3 commits into
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #60
This commit addresses issue #60 by adding a new "friends" command that recommends users based on the number of shared programming languages. Features: - New command pattern accepting "друзья", "friends", "рекомендации", or "recommendations" - Algorithm that finds users with common programming languages - Sorting by number of shared languages (descending) then by karma (descending) - Optional parameter to limit the number of recommendations (default: 10) - Comprehensive message formatting with shared languages display - Message length truncation for VK API limits Files modified: - python/patterns.py: Added FRIENDS_RECOMMENDATIONS pattern - python/modules/commands.py: Implemented friends_recommendations method - python/modules/commands_builder.py: Added build_friends_recommendations method - python/__main__.py: Registered the new command - python/tests.py: Added unit tests for the new functionality 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
konard
marked this pull request as ready for review
September 13, 2025 23:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Technical Implementation
New Command Pattern
Added
FRIENDS_RECOMMENDATIONSpattern inpython/patterns.pythat accepts:Algorithm Logic
Files Modified
python/patterns.py: Added FRIENDS_RECOMMENDATIONS patternpython/modules/commands.py: Implemented friends_recommendations methodpython/modules/commands_builder.py: Added build_friends_recommendations methodpython/__main__.py: Registered the new commandpython/tests.py: Added unit testsexperiments/test_friend_recommendations.py: Added standalone test suiteTest Plan
Usage Examples
Sample Output
Fixes #60
🤖 Generated with Claude Code