Skip to content

Commit

Permalink
remove useless code (All-Hands-AI#2922)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufansong authored Jul 13, 2024
1 parent 46edb4b commit 959d21c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 38 deletions.
9 changes: 0 additions & 9 deletions evaluation/EDA/run_infer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import logging
import multiprocessing as mp
import os

import pandas as pd
Expand Down Expand Up @@ -29,14 +28,6 @@
game = None


def cleanup():
print('Cleaning up child processes...')
for process in mp.active_children():
print(f'Terminating child process: {process.name}')
process.terminate()
process.join()


def codeact_user_response_eda(state: State) -> str:
global game
model_guess = ''
Expand Down
10 changes: 0 additions & 10 deletions evaluation/biocoder/run_infer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import json
import logging
import multiprocessing as mp
import os
import pathlib
from functools import partial
Expand All @@ -26,15 +25,6 @@
from opendevin.core.main import run_agent_controller
from opendevin.llm.llm import LLM


def cleanup():
print('Cleaning up child processes...')
for process in mp.active_children():
print(f'Terminating child process: {process.name}')
process.terminate()
process.join()


AGENT_CLS_TO_FAKE_USER_RESPONSE_FN = {
'CodeActAgent': partial(
codeact_user_response, encapsulate_solution=True, try_parse=None
Expand Down
9 changes: 0 additions & 9 deletions evaluation/bird/run_infer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import asyncio
import json
import logging
import multiprocessing as mp
import os
import pathlib
import re
Expand Down Expand Up @@ -30,14 +29,6 @@
from opendevin.llm.llm import LLM


def cleanup():
logger.info('Cleaning up child processes...')
for process in mp.active_children():
logger.info(f'Terminating child process: {process.name}')
process.terminate()
process.join()


def codeact_user_response(state: State) -> str:
msg = (
'Please continue working on the task on whatever approach you think is suitable.\n'
Expand Down
10 changes: 0 additions & 10 deletions evaluation/swe_bench/run_infer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import asyncio
import logging
import multiprocessing as mp
import os
import pathlib

Expand Down Expand Up @@ -29,15 +28,6 @@

USE_HINT_TEXT = os.environ.get('USE_HINT_TEXT', 'false') == 'true'


def cleanup():
print('Cleaning up child processes...')
for process in mp.active_children():
print(f'Terminating child process: {process.name}')
process.terminate()
process.join()


AGENT_CLS_TO_FAKE_USER_RESPONSE_FN = {
'CodeActAgent': codeact_user_response,
'CodeActSWEAgent': codeact_user_response,
Expand Down

0 comments on commit 959d21c

Please sign in to comment.