Fix: Ensure all skills are tracked as files, not submodules
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
# HumanEval/7
|
||||
# Loki Mode Multi-Agent Solution
|
||||
# Attempts: 1
|
||||
# Passed: True
|
||||
|
||||
from typing import List
|
||||
|
||||
|
||||
def filter_by_substring(strings: List[str], substring: str) -> List[str]:
|
||||
""" Filter an input list of strings only for ones that contain given substring
|
||||
>>> filter_by_substring([], 'a')
|
||||
[]
|
||||
>>> filter_by_substring(['abc', 'bacd', 'cde', 'array'], 'a')
|
||||
['abc', 'bacd', 'array']
|
||||
"""
|
||||
return [s for s in strings if substring in s]
|
||||
Reference in New Issue
Block a user