MCPcopy Index your code
hub / github.com/Codeplain-ai/codeplain / refactor_source_files_if_needed

Method refactor_source_files_if_needed

codeplain_REST_api.py:291–304  ·  view source on GitHub ↗
(
        self, frid, module_name: str, files_to_check, existing_files_content, run_state: RunState
    )

Source from the content-addressed store, hash-verified

289 return self.post_request(endpoint_url, headers, payload, run_state)
290
291 def refactor_source_files_if_needed(
292 self, frid, module_name: str, files_to_check, existing_files_content, run_state: RunState
293 ):
294 endpoint_url = f"{self.api_url}/refactor_source_files_if_needed"
295 headers = {"X-API-Key": self.api_key, "Content-Type": "application/json"}
296
297 payload = {
298 "frid": frid,
299 "module_name": module_name,
300 "files_to_check": list(files_to_check),
301 "existing_files_content": existing_files_content,
302 }
303
304 return self.post_request(endpoint_url, headers, payload, run_state)
305
306 def render_conformance_tests(
307 self,

Callers 1

executeMethod · 0.80

Calls 1

post_requestMethod · 0.95

Tested by

no test coverage detected