Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pipeline/tokens/function_name_tokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"increment" : ["increment", "next", "increase", "add_one"],
"decrement" : ["decrement", "previous", "decrease", "subtract_one"],
"sum" : ["sum_all", "add_all", "summation"],
"append" : ["append", "add_element", "insert_to_tail"],
"remove" : ["remove", "delete_element", "delete_el"],
"len" : ["lenght", "len"],
"concatenate" : ["connect", "join", "concatenate", "combine_two"]
}
17 changes: 17 additions & 0 deletions pipeline/tokens/primitives_tokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

{
"++" : ["<variable>++", "<variable> += 1", "<variable> = <variable> + 1"],
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i++ and i-- are not legal operations in python unfortunatelly

"--" : ["<variable>--", "<variable> -= 1", "<variable> = <variable> - 1"],
"append" : ["<variable1>.append(<variable2>)", "<variable1> +[<variable2>]"],
"remove" : ["<variable1>.remove(<variable2>)", "<variable1> +[<variable2>]"],
Copy link
Collaborator

@Goshagosha Goshagosha Jun 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<variable1> +[<variable2>] is not remove

"concatenate" : ["<variable1> + <variable2>", "<variable1>.extend(<variable2>)"]

}








10 changes: 10 additions & 0 deletions pipeline/tokens/variables_tokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"i" : ["i", "k", "index", "counter"],
"v" : ["var", "variable", "v"],
"t" : ["tem", "temp", "t"],
"list" : ["l", "list"],
"number" : ["number", "num", "n"],
"object" : ["object", "obj", "o"],
"accu" : ["accumulated", "accu", "summed"]
}