Current code_bert_score is able to handle the case where any of 'cands', 'refs' contains empty strings and no 'sources' is passed to the score method. See the example below:
from code_bert_score import score
score([''],['a'], lang="python")
However, when 'sources' is provided, the method will raise IndexError.
from code_bert_score import score
score([''],['a'], sources=["a"], lang="python")
It would be great if this kind of cases can be handled.