You're right, I should have provided the code there. Here's one possible implementation using explicit loops:
```python
for i in range(a.shape[0]):
    for j in range(b.shape[0]):
        distances[i, j] = (a[i, :] - b[j, :])**2).sum()
```

This loops over the rows of a and b and computes the squared L2 distance between each pair of rows
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence