Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -191,7 +191,7 @@ ex.printStackTrace();
|
|
| 191 |
}
|
| 192 |
}
|
| 193 |
}
|
| 194 |
-
}"""], ["""import java.net.*;
|
| 195 |
import java.io.*;
|
| 196 |
|
| 197 |
public class s {
|
|
@@ -209,7 +209,7 @@ public class s {
|
|
| 209 |
if ([MASK] != null) [MASK].close();
|
| 210 |
}
|
| 211 |
}
|
| 212 |
-
}"""], ["""import java.io.*;
|
| 213 |
import java.util.*;
|
| 214 |
|
| 215 |
public class y {
|
|
@@ -226,7 +226,7 @@ public class y {
|
|
| 226 |
e.printStackTrace();
|
| 227 |
}
|
| 228 |
}
|
| 229 |
-
}"""]]
|
| 230 |
# We instantiate the Textbox class
|
| 231 |
textbox = gr.Textbox(label="Type Java code snippet:", placeholder="replace variable with [MASK]", lines=10)
|
| 232 |
textbox1 = gr.Textbox(label="Number of tokens in name:", placeholder="0 for randomly sampled number of tokens",lines=1)
|
|
|
|
| 191 |
}
|
| 192 |
}
|
| 193 |
}
|
| 194 |
+
}""", "3"], ["""import java.net.*;
|
| 195 |
import java.io.*;
|
| 196 |
|
| 197 |
public class s {
|
|
|
|
| 209 |
if ([MASK] != null) [MASK].close();
|
| 210 |
}
|
| 211 |
}
|
| 212 |
+
}""", "2"], ["""import java.io.*;
|
| 213 |
import java.util.*;
|
| 214 |
|
| 215 |
public class y {
|
|
|
|
| 226 |
e.printStackTrace();
|
| 227 |
}
|
| 228 |
}
|
| 229 |
+
}""", "0"]]
|
| 230 |
# We instantiate the Textbox class
|
| 231 |
textbox = gr.Textbox(label="Type Java code snippet:", placeholder="replace variable with [MASK]", lines=10)
|
| 232 |
textbox1 = gr.Textbox(label="Number of tokens in name:", placeholder="0 for randomly sampled number of tokens",lines=1)
|