Skip to content

Commit

Permalink
yield cartesian product of multiterminal completion
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed Apr 25, 2023
1 parent 7cd87a9 commit b3160f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
kotlin("jvm") version "1.8.20"
kotlin("jvm") version "1.8.21"
id("com.github.ben-manes.versions") version "0.46.0"
id("de.undercouch.download") version "5.4.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import kotlin.time.*
*/

fun main() {
MAX_SAMPLE = 20
MAX_SAMPLE = 100
MAX_REPAIR = 2
syntheticErrorCorrection()
organicErrorCorrection()
Expand Down Expand Up @@ -102,7 +102,7 @@ fun repairPythonStatement(
cfg = pythonStatementCFG,
coarsen = String::coarsenAsPython,
uncoarsen = String::uncoarsenAsPython,
synthesizer = optRepair(clock), // Enumerative search
synthesizer = satRepair(clock), // Enumerative search
diagnostic = { println("Ξ”=${ levenshtein( prompt, it ) - 1 } repair: ${prettyDiffNoFrills(prompt, it)}") },
filter = { isValidPython() },
)
Expand Down Expand Up @@ -235,7 +235,7 @@ S -> S IOP S | S BOP S
IOP -> + | - | * | / | % | ** | << | >> | & | ^
BOP -> < | > | <= | >= | == | != | in | is | not in | is not
S -> S ;
S -> :
S -> S | S : | - S
S -> None | True | False
S -> S ^ S | S in S
S -> [ S : ]
Expand Down

0 comments on commit b3160f8

Please sign in to comment.