Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import unittest
from pysnippets.Dynamic Programming.matrix_chain_multiplication import matrix_multiplication
from pysnippets.dynamic_programming.matrix_chain_multiplication import matrix_multiplication

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -e

fd -t f 'matrix_chain_multiplication\.py$' .
rg -n '^(from|import) pysnippets(\.Dynamic Programming|\.dynamic_programming)' Tests pysnippets

Repository: UTSAVS26/PySnippets

Length of output: 442


🏁 Script executed:

#!/bin/bash
set -e

python3 - <<'PY'
from pathlib import Path

root = Path('.')
for p in sorted(root.glob('pysnippets/**')):
    if p.is_file() or p.is_dir():
        print(p.as_posix())
PY

printf '\n--- __init__.py ---\n'
if [ -f pysnippets/__init__.py ]; then
  cat -n pysnippets/__init__.py
else
  echo 'missing pysnippets/__init__.py'
fi

Repository: UTSAVS26/PySnippets

Length of output: 1898


Fix the import path in Tests/Dynamic-Programming/test_matrix_chain_multiplication.py:2
There’s no pysnippets/dynamic_programming/ package in this tree, so this import will fail during test collection. Point it at the existing module path or add a package alias.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Tests/Dynamic-Programming/test_matrix_chain_multiplication.py` at line 2,
Update the import in the test module to reference the existing location of
matrix_multiplication, using the repository’s actual package/module path; do not
retain the nonexistent pysnippets.dynamic_programming path.


class TestMatrixChainMultiplication(unittest.TestCase):

Expand Down
2 changes: 1 addition & 1 deletion pysnippets/greedyalgorithms/job_sequencing.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def job_sequencing(jobs, n):
return job_sequence

# Example
if __name__ == "__main__"
if __name__ == "__main__":
n = 4
jobs = [
Job('a', 4, 20),
Expand Down