MCPcopy Create free account
hub / github.com/Boris-code/feapder / get

Method get

feapder/dedup/__init__.py:122–131  ·  view source on GitHub ↗

检查数据是否存在 @param datas: list / 单个值 @return: list / 单个值 (存在返回1 不存在返回0)

(self, datas: Union[List[Any], Any])

Source from the content-addressed store, hash-verified

120 return is_added
121
122 def get(self, datas: Union[List[Any], Any]) -> Union[List[Any], Any]:
123 """
124 检查数据是否存在
125 @param datas: list / 单个值
126 @return: list / 单个值 (存在返回1 不存在返回0)
127 """
128 keys = self._deal_datas(datas)
129 is_exists = self.dedup.get(keys)
130
131 return is_exists
132
133 def filter_exist_data(
134 self,

Callers 15

test_MemoryFilterMethod · 0.95
test_ExpireFilterMethod · 0.95
test_BloomFilterMethod · 0.95
test_LiteFilterMethod · 0.95
filter_exist_dataMethod · 0.95
requestFunction · 0.45
test_webdriverFunction · 0.45
test_task.pyFile · 0.45
test_file_integrityMethod · 0.45
initFunction · 0.45
__init__Method · 0.45

Calls 1

_deal_datasMethod · 0.95

Tested by 8

test_MemoryFilterMethod · 0.76
test_ExpireFilterMethod · 0.76
test_BloomFilterMethod · 0.76
test_LiteFilterMethod · 0.76
requestFunction · 0.36
test_webdriverFunction · 0.36
test_file_integrityMethod · 0.36