def count_curse_words(lines):
    curses = 0
    for line in lines:
        for word in line.split():
            if word in word_list:
                curses += 1
    return curses
dataset/ETHPy150Open Yelp/git-code-debt/git_code_debt/metrics/curse.py/count_curse_words/original