Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
anpl
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ziyuan Nan
anpl
Commits
8d711bf8
Commit
8d711bf8
authored
May 11, 2023
by
nzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hello
parent
c1c92d8f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
robotA.py
+1
-1
utils.py
+1
-1
No files found.
robotA.py
View file @
8d711bf8
...
...
@@ -38,7 +38,7 @@ def syn_anpl(anpl: ANPL):
if
newanpl
.
entry
in
anpl
.
funs
:
if
newanpl
.
entry
!=
hole
:
logger
.
log
(
"system"
,
"syn"
,
"error: synthesis _hole with a used name"
)
system_info
(
"[yellow]Warning
[
\
yellow]
Generated Function has the same name with some function before. Perhaps you have very similar sentences?"
)
system_info
(
"[yellow]Warning Generated Function has the same name with some function before. Perhaps you have very similar sentences?"
)
else
:
logger
.
log
(
"system"
,
"syn"
,
"error: chatgpt do not give a new function name"
)
continue
...
...
utils.py
View file @
8d711bf8
...
...
@@ -73,7 +73,7 @@ def system_info(text):
print
(
sys_str
+
text
)
def
print_anpl
(
anpl
,
for_user
=
False
):
print
(
Syntax
(
anpl
.
to_python
(
for_user
=
for_user
),
"python"
))
print
(
Syntax
(
anpl
.
to_python
(
for_user
=
for_user
),
"python"
,
line_numbers
=
True
))
def
print_text_IOExamples
(
ios
:
list
[
IOExample
]):
for
i
,
io
in
enumerate
(
ios
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment