MCPcopy Create free account
hub / github.com/FSoft-AI4Code/HyperAgent / __getitem__

Method __getitem__

src/hyperagent/tasks/github_issue_resolve.py:37–43  ·  view source on GitHub ↗
(self, idx)

Source from the content-addressed store, hash-verified

35 return len(self.dataset)
36
37 def __getitem__(self, idx):
38 repo = self.dataset[idx]["repo"]
39 commit = self.dataset[idx]["base_commit"]
40 instance_id = self.dataset[idx]["instance_id"]
41
42 repo_link = f"https://github.com/{repo}"
43 return repo_link, commit, instance_id, self.images[instance_id]
44
45 def run(self, system, idx) -> Result:
46 prompt = self.construct_prompt(idx)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected