Skip to content

Commit

Permalink
evaluation in UT
Browse files Browse the repository at this point in the history
  • Loading branch information
dpomianbuff committed Oct 3, 2023
1 parent 5237144 commit e21510b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class ChatGPTSuggestionsEvaluation(val mongoManager: MongoManager, val args: Cha
LightPlatformCodeInsightTestCase() {
private var git: Git? = null
private val projectPath = ""
private val tempDownloadPath = "/Users/dpomian/hardwork/research/jetbrains/llm-guide-refactorings/src/test/tmp"
private val tempDownloadPath = "path/to/tmp/file/donwload"

override fun getTestDataPath(): String {
return projectPath
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/oracle/evaluation/EvaluationOnOracle.kt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class EvaluationOnOracleProcessor(val mongoManager: MongoManager, val args: Eval
private val efLLMRequestProvider: LLMRequestProvider = GPTExtractFunctionRequestProvider
private val projectPath = ""
private var git: Git? = null
private val tempDownloadPath = "/Users/dpomian/hardwork/research/jetbrains/llm-guide-refactorings/src/test/tmp"
private val tempDownloadPath = "path/to/tmp/file/donwload"

override fun getTestDataPath(): String {
return projectPath
Expand Down
2 changes: 1 addition & 1 deletion src/test/kotlin/oracle/evaluation/FixPointLLM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ data class FixPointLLMArgs(

class FixPointLLM(val mongoManager: MongoManager, val args: FixPointLLMArgs) : LightPlatformCodeInsightTestCase() {
private val efLLMRequestProvider: LLMRequestProvider = GPTExtractFunctionRequestProvider
private val tempDownloadPath = "/Users/dpomian/hardwork/research/jetbrains/llm-guide-refactorings/src/test/tmp"
private val tempDownloadPath = "path/to/tmp/file/donwload"
private var git: Git? = null
private val projectPath = ""
override fun getTestDataPath(): String {
Expand Down
6 changes: 3 additions & 3 deletions src/test/kotlin/utilities/UtilitiesForTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ internal fun downloadGithubFile(
outputFile: String
): Int {
val pythonScriptPath =
"/Users/dpomian/hardwork/research/extract_function_research/tools/evaluation/evaluator/github_cli.py"
val virtualEnvPath = "/Users/dpomian/.venvs/ef_research"
"path/to/github/download/script"
val virtualEnvPath = "path/to/virtual/env"
val command = mutableListOf("$virtualEnvPath/bin/python", pythonScriptPath)
command.add("dl")
command.add("-repo-info")
Expand Down Expand Up @@ -227,7 +227,7 @@ internal fun configureLocalFile(
val repoOwner = tokens[0]
val repoName = tokens[1]
val repoFilePath = oracle.filename
val githubToken = "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"
val githubToken = "your_github_token"
filename = "$tempDownloadPath/${tokens.last()}"
if (downloadGithubFile(repoOwner, repoName, repoFilePath, githubToken, commitHash, filename) != 0) {
filename = ""
Expand Down

0 comments on commit e21510b

Please sign in to comment.