(relation: str)
| 104 | |
| 105 | |
| 106 | def _weight_for_relation(relation: str) -> float: |
| 107 | if relation == "read": |
| 108 | return 1.5 |
| 109 | if relation == "interested_in": |
| 110 | return 1.0 |
| 111 | if relation == "skipped": |
| 112 | return -0.5 |
| 113 | return 0.0 |
| 114 | |
| 115 | |
| 116 | def _ensure_feedback_paper_node( |
no outgoing calls
no test coverage detected