MCPcopy
hub / github.com/jaakkopasanen/AutoEq / resolve

Method resolve

dbtools/crawler.py:204–222  ·  view source on GitHub ↗

Resolve name for a single item. Updates the item in place. Args: item: The crawl index NameItem to resolve Returns: None

(self, item)

Source from the content-addressed store, hash-verified

202 r'\.(?:txt|csv)$', '', item.url.split('/')[-1], flags=re.IGNORECASE)
203
204 def resolve(self, item):
205 """Resolve name for a single item. Updates the item in place.
206
207 Args:
208 item: The crawl index NameItem to resolve
209
210 Returns:
211 None
212 """
213 ground_truth = self.name_index.find_one(url=item.url)
214 if ground_truth and ground_truth.rig is not None:
215 if ground_truth.name is not None:
216 item.name = ground_truth.name
217 if ground_truth.source_name is not None:
218 item.source_name = ground_truth.source_name
219 if ground_truth.form is not None:
220 item.form = ground_truth.form
221 if ground_truth.rig is not None:
222 item.rig = ground_truth.rig
223
224 def prompt_callback(self, prompted_item):
225 if not prompted_item.is_ignored:

Callers 13

switch_promptMethod · 0.95
crawlMethod · 0.45
main.pyFile · 0.45
start.jsFile · 0.45
resolveAppFunction · 0.45
getAdditionalModulePathsFunction · 0.45
getWebpackAliasesFunction · 0.45
getJestAliasesFunction · 0.45
getHttpsConfigFunction · 0.45
webpack.config.jsFile · 0.45
getStyleLoadersFunction · 0.45
env.jsFile · 0.45

Calls 1

find_oneMethod · 0.80

Tested by

no test coverage detected