Fix: Ensure all skills are tracked as files, not submodules

This commit is contained in:
sck_0
2026-01-14 18:48:48 +01:00
parent 7f46ed8ca1
commit 8bd204708b
1113 changed files with 82065 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
# HumanEval/91
# Loki Mode Multi-Agent Solution
# Attempts: 1
# Passed: True
def is_bored(S):
"""
You'll be given a string of words, and your task is to count the number
of boredoms. A boredom is a sentence that starts with the word "I".
Sentences are delimited by '.', '?' or '!'.
For example:
>>> is_bored("Hello world")
0
>>> is_bored("The sky is blue. The sun is shining. I love this weather")
1
"""
import re
if not S:
return 0
sentences = re.split(r'[.?!]', S)
count = 0
for sentence in sentences:
stripped = sentence.lstrip()
if stripped == "I" or stripped.startswith("I "):
count += 1
return count