Skip to content

Commit

Permalink
fix test, attach sources
Browse files Browse the repository at this point in the history
  • Loading branch information
breandan committed May 6, 2024
1 parent f658a98 commit 3eed6ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified jautomata-0.0.1-SNAPSHOT.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ class WFSATest {
*/
@Test
fun testPTreeVsWFSA() {
val toRepair = "NAME = NAME ( STRING ) NEWLINE NAME = NAME ( STRING ) NEWLINE NAME = NAME ( STRING NUMBER NAME = [ NAME , NAME , NAME ] NEWLINE"
val radius = 2
val toRepair = "NAME : NEWLINE NAME = STRING NEWLINE NAME = NAME . NAME ( STRING ) NEWLINE"
val radius = 1
val pt = Grammars.seq2parsePythonCFG.makeLevPTree(toRepair, radius, shortS2PParikhMap)
val repairs = pt.sampleStrWithoutReplacement().distinct().take(100).toSet()
println("Found ${repairs.size} repairs by enumerating PTree")
Expand Down

0 comments on commit 3eed6ec

Please sign in to comment.