Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BYVoid/OpenCC
/ find_target_items
Function
find_target_items
data/scripts/common.py:187–191 ·
view source on GitHub ↗
(input_filename, keyword)
Source
from the content-addressed store, hash-verified
185
186
187
def
find_target_items(input_filename, keyword):
188
for
entry in Dict().iter(input_filename):
189
for
value in entry[
'values'
]:
190
if
keyword in value:
191
print(Dict.get_line(entry), end=
''
)
Callers
2
find_target.py
File · 0.90
test_find_target_items_matches_values_only
Method · 0.90
Calls
4
print
Function · 0.85
get_line
Method · 0.80
Dict
Class · 0.70
iter
Method · 0.45
Tested by
1
test_find_target_items_matches_values_only
Method · 0.72