task_id
int64
0
2.26k
repository
stringclasses
18 values
commit_hash
stringclasses
241 values
filepath
stringclasses
237 values
original_method
stringlengths
21
4.65k
context
listlengths
0
77
masking
dict
1,400
https://github.com/Evref-BL/Pharo-LLMAPI
7fd60fdf4e6d5bb32a1a6b931f0c827fc7ed2dc7
src/LLM-Spec/LLMAPISpecChatHistory.class.st
initializePresenters panel := (SpGridLayout build: [ :builder | builder beRowNotHomogeneous. self model do: [ :message | builder add: (LLMAPISpecChatBubble from: message) ] separatedBy: [ builder nextRow ] ]) columnSpacing: 0; ...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIFimObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIFimObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed prompt suffix min_tokenss'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, ...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "initializePresenters\n\n\tpanel := (SpGridLayout build: [ :builder |\n\t\t\t builder beRowNotHomogeneous.\n\t\t\t self model\n\t\t\t\t do: [ :message |\n\t\t\t\t\t builder add: (", "suffix": " ...
1,401
https://github.com/Evref-BL/Pharo-LLMAPI
2bda61f83e676c297883db16b6cbd062ca12c857
src/LLM-API/LLMAPIChatObjectPayload.class.st
asJsonableObject | dic | dic := Dictionary new. self messages ifNotNil: [ :_messages | dic at: #messages put: (_messages collect: [ :message | message asJsonableObject ]) ]. self temperature ifNotNil: [ :v | dic at: #temperature put: v ]. self top_p ifNotNil: [ :v | dic at: #top_p put: v ]. sel...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIFimObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIFimObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed prompt suffix min_tokenss'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, ...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "asJsonableObject\n \n \t| dic |\n \tdic := Dictionary new.\n \tself messages ifNotNil: [ :_messages |\n \t\tdic\n \t\t\tat: #messages\n \t\t\tput: (_messages collect: [ :message | message asJsonableObject ]) ].\n \tself temperatur...
1,402
https://github.com/Evref-BL/Pharo-LLMAPI
2bda61f83e676c297883db16b6cbd062ca12c857
src/LLM-API/LLMAPIChatObjectPayload.class.st
asJsonableObject | dic | dic := Dictionary new. self messages ifNotNil: [ :_messages | dic at: #messages put: (_messages collect: [ :message | message asJsonableObject ]) ]. self temperature ifNotNil: [ :v | dic at: #temperature put: v ]. self top_p ifNotNil: [ :v | dic at: #top_p put: v ]. sel...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIFimObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIFimObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed prompt suffix min_tokenss'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "asJsonableObject\n \n \t| dic |\n \tdic := Dictionary new.\n \tself messages ifNotNil: [ :_messages |\n \t\tdic\n \t\t\tat: #messages\n \t\t\tput: (_messages collect: [ :message | message asJsonableObject ]) ].\n \tself temperature...
1,403
https://github.com/Evref-BL/Pharo-LLMAPI
2bda61f83e676c297883db16b6cbd062ca12c857
src/LLM-API/LLMAPIChatObjectTool.class.st
name: aName description: aDescription ^ self new name: aName; description: aDescription; yourself
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIFimObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIFimObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed prompt suffix min_tokenss'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 5, "prefix": "name: aName description: aDescription\n\n\t^ self new\n\t\t name: aName", "suffix": "", "completion": ";\n\t\t description: aDescription;\n\t\t yourself" }
1,404
https://github.com/Evref-BL/Pharo-LLMAPI
2bda61f83e676c297883db16b6cbd062ca12c857
src/LLM-API/LLMAPIChatObjectTool.class.st
asJsonableObject | dic function | dic := Dictionary new. dic at: #type put: 'function'. function := Dictionary new. function at: #name put: self name. function at: #description put: self description. function at: #strict put: false. function at: #parameters put: { } asDictionary. dic at: #function put: funct...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIFimObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIFimObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed prompt suffix min_tokenss'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, ...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "asJsonableObject\n\n\t| dic function |\n\tdic := Dictionary new.\n\tdic at: #type put: 'function'.\n\tfunction", "suffix": ".\n\tfunction at: #name put: self name.\n\tfunction at: #description put: self description.\n\tfunction at: #s...
1,405
https://github.com/Evref-BL/Pharo-LLMAPI
2bda61f83e676c297883db16b6cbd062ca12c857
src/LLM-API/LLMAPIChatObjectTool.class.st
asJsonableObject | dic function | dic := Dictionary new. dic at: #type put: 'function'. function := Dictionary new. function at: #name put: self name. function at: #description put: self description. function at: #strict put: false. function at: #parameters put: { } asDictionary. dic at: #function put: funct...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIFimObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIFimObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed prompt suffix min_tokenss'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, ...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "asJsonableObject\n\n\t| dic function |\n\tdic := Dictionary new.\n\tdic at: #type put: 'function'.\n\tfunction := Dictionary new.\n\tfunction at: #name put: self name.\n\tfunction", "suffix": ".\n\tfunction at: #strict put: false...
1,406
https://github.com/Evref-BL/Pharo-LLMAPI
2bda61f83e676c297883db16b6cbd062ca12c857
src/LLM-API/LLMAPIChatObjectTool.class.st
asJsonableObject | dic function | dic := Dictionary new. dic at: #type put: 'function'. function := Dictionary new. function at: #name put: self name. function at: #description put: self description. function at: #strict put: false. function at: #parameters put: { } asDictionary. dic at: #function put: funct...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIFimObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIFimObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed prompt suffix min_tokenss'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "asJsonableObject\n\n\t| dic function |\n\tdic := Dictionary new.\n\tdic at:", "suffix": ".\n\tfunction := Dictionary new.\n\tfunction at: #name put: self name.\n\tfunction at: #description put: self description.\n\tfunction at: #...
1,407
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectMessage.class.st
fromMessage: aMessage | message | message := self new role: aMessage role; content: aMessage content; yourself. aMessage tool_calls ifNotNil: [ message tool_calls: (aMessage tool_calls collect: [ :tool_call | LLMAPIChatObjectToolCall fromToolCall: tool_call ]) asArray ]...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 8, "prefix": "fromMessage: aMessage\n\n\t| message |\n\tmessage := self new\n\t\t role:", "suffix": ".\n\taMessage tool_calls ifNotNil: [\n\t\tmessage tool_calls: (aMessage tool_calls collect: [ :tool_call |\n\t\t\t\t LLMAPIChatObjectTool...
1,408
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectMessage.class.st
fromMessage: aMessage | message | message := self new role: aMessage role; content: aMessage content; yourself. aMessage tool_calls ifNotNil: [ message tool_calls: (aMessage tool_calls collect: [ :tool_call | LLMAPIChatObjectToolCall fromToolCall: tool_call ]) asArray ]...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "fromMessage: aMessage\n\n\t| message |\n\tmessage := self new\n\t\t role: aMessage role;\n\t\t content: aMessage content;\n\t\t yourself.\n\taMessage tool_calls ifNotNil: [\n\t\tmessage tool_calls: (aM...
1,409
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectMessage.class.st
fromMessage: aMessage | message | message := self new role: aMessage role; content: aMessage content; yourself. aMessage tool_calls ifNotNil: [ message tool_calls: (aMessage tool_calls collect: [ :tool_call | LLMAPIChatObjectToolCall fromToolCall: tool_call ]) asArray ]...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "fromMessage: aMessage\n\n\t| message |\n\tmessage := self new\n\t\t role: aMessage role;\n\t\t content: aMessage content;\n\t\t yourself.\n\taMessage tool_calls ifNotNil: [\n\t\tmessage tool_calls: (aM...
1,410
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectTool.class.st
name: aName description: aDescription receiver: aReceiver symbol: anotherSymbol ^ self new name: aName; description: aDescription; receiver: aReceiver; symbol: anotherSymbol; yourself
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "name: aName description: aDescription receiver: aReceiver symbol: anotherSymbol\n\n\t^ self new\n\t\t name: aName;\n\t\t description: aDescription", "suffix": "", "completion": ";\n\t\t receiver: aReceiver;\n\t\t symbol: anotherSymb...
1,411
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectTool.class.st
executeWithArguments: arguments "Implement this if you want to extend tools and use its default mecanism" ^ self receiver perform: self symbol withArguments: arguments
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "executeWithArguments: arguments\n\t\"Implement this if you want to extend tools and use its default mecanism\"\n\n\t^ self receiver perform:", "suffix": "", "completion": " self symbol withArguments: arguments" }
1,412
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectToolCall.class.st
fromToolCall: aToolCall ^ self new id: aToolCall id; index: aToolCall index; type: 'function'; function: { (#name -> aToolCall function name). (#arguments -> aToolCall function arguments) } asDictionary; yourself
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "fromToolCall: aToolCall\n\n\t^ self new\n\t\t id: aToolCall id;\n\t\t index: aToolCall index;\n\t\t type: 'function';\n\t\t function: {\n\t\t\t\t (#name -> aToolCall function name).\n\t\t\t\t (#arguments ->", "suffix": "", "comple...
1,413
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectToolCall.class.st
asJsonableObject | dic | dic := Dictionary new. dic at: #id put: self id. dic at: #index put: self index. dic at: #type put: self type. dic at: #function put: self function. ^ dic
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "asJsonableObject\n\n\t| dic |\n\tdic := Dictionary new.\n\tdic at:", "suffix": ".\n\tdic at: #index put: self index.\n\tdic at: #type put: self type.\n\tdic at: #function put: self function.\n\n\t^ dic", "completion": " #id put...
1,414
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectToolCall.class.st
asJsonableObject | dic | dic := Dictionary new. dic at: #id put: self id. dic at: #index put: self index. dic at: #type put: self type. dic at: #function put: self function. ^ dic
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "asJsonableObject\n\n\t| dic |\n\tdic := Dictionary new.\n\tdic at: #id put: self id.\n\tdic", "suffix": ".\n\tdic at: #type put: self type.\n\tdic at: #function put: self function.\n\n\t^ dic", "completion": " at: #index put: s...
1,415
https://github.com/Evref-BL/Pharo-LLMAPI
3692329b697d46228728a4863c77f4625e6ba470
src/LLM-API/LLMAPIChatObjectToolCall.class.st
asJsonableObject | dic | dic := Dictionary new. dic at: #id put: self id. dic at: #index put: self index. dic at: #type put: self type. dic at: #function put: self function. ^ dic
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "asJsonableObject\n\n\t| dic |\n\tdic", "suffix": ".\n\tdic at: #id put: self id.\n\tdic at: #index put: self index.\n\tdic at: #type put: self type.\n\tdic at: #function put: self function.\n\n\t^ dic", "completion": " := Dictionary...
1,416
https://github.com/Evref-BL/Pharo-LLMAPI
236ccdf1430946faf98645fe0c572a62c7148630
src/BaselineOfLLMAPI/BaselineOfLLMAPI.class.st
definePackages: spec spec package: 'LLM-API' with: [ spec requires: #( 'NeoJSON' ) ]. spec package: 'LLM-API-Example' with: [ spec requires: #( 'LLM-API' ) ]. spec package: 'LLM-Spec' with: [ spec requires: #( 'LLM-API' ) ]
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "definePackages: spec\n \n \tspec package: 'LLM-API' with: [ spec requires: #( 'NeoJSON' ) ].\n\tspec package: 'LLM-API-Example' with:", "suffix": ".\n \tspec package: 'LLM-Spec' with: [ spec requires: #( 'LLM-API' ) ]", "comple...
1,417
https://github.com/Evref-BL/Pharo-LLMAPI
236ccdf1430946faf98645fe0c572a62c7148630
src/BaselineOfLLMAPI/BaselineOfLLMAPI.class.st
definePackages: spec spec package: 'LLM-API' with: [ spec requires: #( 'NeoJSON' ) ]. spec package: 'LLM-API-Example' with: [ spec requires: #( 'LLM-API' ) ]. spec package: 'LLM-Spec' with: [ spec requires: #( 'LLM-API' ) ]
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "definePackages: spec\n \n \tspec package: 'LLM-API' with: [ spec requires: #( 'NeoJSON' ) ].\n\tspec package: 'LLM-API-Example' with: [ spec requires:", "suffix": " ].\n \tspec package: 'LLM-Spec' with: [ spec requires: #( 'LLM-A...
1,418
https://github.com/Evref-BL/Pharo-LLMAPI
236ccdf1430946faf98645fe0c572a62c7148630
src/LLM-API-Example/LLMAPIChatObjectToolCountClasses.class.st
executeWithArguments: arguments "Implement this if you want to extend tools and use its default mecanism" ^ Smalltalk image allClasses size asString
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "executeWithArguments: arguments\n\t\"Implement this if you want to extend tools and use its default mecanism\"\n\n\t^ Smalltalk", "suffix": "", "completion": " image allClasses size asString" }
1,419
https://github.com/Evref-BL/Pharo-LLMAPI
65c9950256d20672800a6d4609690df5b9bfc479
src/LLM-Spec-Tests/LLMAPISpecTests.class.st
setUp super setUp. presenter := LLMAPISpec new.
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n super setUp.\n presenter", "suffix": ".", "completion": " := LLMAPISpec new" }
1,420
https://github.com/Evref-BL/Pharo-LLMAPI
65c9950256d20672800a6d4609690df5b9bfc479
src/LLM-Spec-Tests/LLMAPISpecTests.class.st
tearDown presenter window ifNotNil: [ :w | w close ]. super tearDown
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "tearDown\n\n presenter window ifNotNil: [", "suffix": ".\n super tearDown", "completion": " :w | w close ]" }
1,421
https://github.com/Evref-BL/Pharo-LLMAPI
65c9950256d20672800a6d4609690df5b9bfc479
src/LLM-Spec-Tests/LLMAPISpecTests.class.st
testAddNewChat presenter open. self assert: presenter notebook pages size equals: 1. presenter addNewChat. self assert: presenter notebook pages size equals: 2. self assert: presenter notebook selectedPage title equals: 'New Chat'
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testAddNewChat\n\n presenter open.\n self assert: presenter", "suffix": ".\n\n presenter addNewChat.\n self assert: presenter notebook pages size equals: 2.\n self assert: presenter notebook selectedPage title equa...
1,422
https://github.com/Evref-BL/Pharo-LLMAPI
65c9950256d20672800a6d4609690df5b9bfc479
src/LLM-Spec-Tests/LLMAPISpecTests.class.st
testAddNewChat presenter open. self assert: presenter notebook pages size equals: 1. presenter addNewChat. self assert: presenter notebook pages size equals: 2. self assert: presenter notebook selectedPage title equals: 'New Chat'
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testAddNewChat\n\n presenter open.\n self assert: presenter notebook pages size equals: 1.\n\n presenter addNewChat.\n self assert: presenter", "suffix": ".\n self assert: presenter notebook selectedPage title equa...
1,423
https://github.com/Evref-BL/Pharo-LLMAPI
65c9950256d20672800a6d4609690df5b9bfc479
src/LLM-Spec-Tests/LLMAPISpecTests.class.st
testAddNewChat presenter open. self assert: presenter notebook pages size equals: 1. presenter addNewChat. self assert: presenter notebook pages size equals: 2. self assert: presenter notebook selectedPage title equals: 'New Chat'
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testAddNewChat\n\n presenter open.\n self assert: presenter notebook pages size equals: 1.\n\n presenter addNewChat.\n self assert: presenter notebook pages size equals: 2.\n self assert: presenter notebook selectedP...
1,424
https://github.com/Evref-BL/Pharo-LLMAPI
65c9950256d20672800a6d4609690df5b9bfc479
src/LLM-Spec/LLMAPISpec.class.st
addNewChat | newPage | newPage := SpNotebookPage title: 'New Chat' icon: (self iconNamed: #announcement) provider: [ LLMAPISpecChat new ]. notebook addPage: newPage. notebook selectPage: newPage
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectPayload.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectPayload\n\tinstanceVariableNames: 'model temperature top_p max_tokens stream stop random_seed messages response_format tools tool_choice presence_penalty frequence_penalty n...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 8, "prefix": "addNewChat\n\n | newPage |\n newPage := SpNotebookPage\n title: 'New Chat'\n icon: (self", "suffix": ".\n notebook addPage: newPage.\n notebook selectPage: newPage", "completion": " iconNamed: #announcement...
1,425
https://github.com/Evref-BL/Pharo-LLMAPI
5bad36f237395c85cc785650e60517f458bab663
src/LLM-API/LLMAPIFimObjectPayload.class.st
asJsonableObject | dic | dic := Dictionary new. self temperature ifNotNil: [ :v | dic at: #temperature put: v ]. self top_p ifNotNil: [ :v | dic at: #top_p put: v ]. self model ifNotNil: [ :v | dic at: #model put: v ]. self prompt ifNotNil: [ :v | dic at: #prompt put: v ]. self max_tokens ifNotNil: [ :v...
[]
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "asJsonableObject\n \n \t| dic |\n \tdic := Dictionary new.\n \tself temperature ifNotNil: [ :v | dic at: #temperature put: v ].\n \tself top_p ifNotNil: [ :v | dic at: #top_p put: v ].\n \tself model ifNotNil: [ :v | dic at: #model...
1,426
https://github.com/Evref-BL/Pharo-LLMAPI
5bad36f237395c85cc785650e60517f458bab663
src/LLM-API/LLMAPIFimObjectPayload.class.st
asJsonableObject | dic | dic := Dictionary new. self temperature ifNotNil: [ :v | dic at: #temperature put: v ]. self top_p ifNotNil: [ :v | dic at: #top_p put: v ]. self model ifNotNil: [ :v | dic at: #model put: v ]. self prompt ifNotNil: [ :v | dic at: #prompt put: v ]. self max_tokens ifNotNil: [ :v...
[]
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "asJsonableObject\n \n \t| dic |\n \tdic := Dictionary new.\n \tself temperature ifNotNil: [ :v | dic at: #temperature put: v ].\n \tself top_p ifNotNil: [ :v | dic at: #top_p put: v ].\n \tself model ifNotNil: [ :v | dic at: #model...
1,427
https://github.com/Evref-BL/Pharo-LLMAPI
ce6fd1b4a0eb1306355703101090147425efab5a
src/LLM-API/LLMAPI.class.st
initialize super initialize. client := ZnClient new. self apiKey: LLMAPI apiKey. self host: LLMAPI host. self port: LLMAPI port. self https: LLMAPI https.
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectMessage.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectMessage\n\tinstanceVariableNames: 'role content tool_call_id name tool_calls'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLM...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "initialize\n \n \tsuper initialize.\n \tclient := ZnClient new.\n \tself apiKey: LLMAPI apiKey.\n \tself host: LLMAPI host.\n\tself", "suffix": ".\n\tself https: LLMAPI https.", "completion": " port: LLMAPI port" }
1,428
https://github.com/Evref-BL/Pharo-LLMAPI
ce6fd1b4a0eb1306355703101090147425efab5a
src/LLM-API/LLMAPI.class.st
initialize super initialize. client := ZnClient new. self apiKey: LLMAPI apiKey. self host: LLMAPI host. self port: LLMAPI port. self https: LLMAPI https.
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPIChatObjectMessage.class.st", "code": "LLMAPIObject subclass: #LLMAPIChatObjectMessage\n\tinstanceVariableNames: 'role content tool_call_id name tool_calls'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLM...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "initialize\n \n \tsuper initialize.\n \tclient := ZnClient new.\n \tself apiKey: LLMAPI apiKey.\n \tself host: LLMAPI host.\n\tself port: LLMAPI port.\n\tself", "suffix": ".", "completion": " https: LLMAPI https" }
1,429
https://github.com/Evref-BL/Pharo-LLMAPI
dc20e33f144baabc7f2b3d8702d5488326d16dd5
src/BaselineOfLLMAPI/BaselineOfLLMAPI.class.st
definePackages: spec spec package: 'LLM-API' with: [ spec requires: #( 'NeoJSON' ) ]. spec package: 'LLM-API-Tests' with: [ spec requires: #( 'LLM-API' 'Mocketry' ) ]. spec package: 'LLM-API-Example' with: [ spec requires: #( 'LLM-API' ) ]. spec package: 'LLM-Spec' with: [ spec requires: #( 'LLM-API' ) ]
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "definePackages: spec\n \n \tspec package: 'LLM-API' with: [ spec requires: #( 'NeoJSON' ) ].\n\tspec package: 'LLM-API-Tests' with: [ spec requires: #(", "suffix": ".\n \tspec package: 'LLM-API-Example' with: [ spec requires: #( ...
1,430
https://github.com/Evref-BL/Pharo-LLMAPI
dc20e33f144baabc7f2b3d8702d5488326d16dd5
src/BaselineOfLLMAPI/BaselineOfLLMAPI.class.st
definePackages: spec spec package: 'LLM-API' with: [ spec requires: #( 'NeoJSON' ) ]. spec package: 'LLM-API-Tests' with: [ spec requires: #( 'LLM-API' 'Mocketry' ) ]. spec package: 'LLM-API-Example' with: [ spec requires: #( 'LLM-API' ) ]. spec package: 'LLM-Spec' with: [ spec requires: #( 'LLM-API' ) ]
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "definePackages: spec\n \n \tspec package: 'LLM-API' with: [ spec requires: #( 'NeoJSON' ) ].\n\tspec package: 'LLM-API-Tests' with: [ spec requires: #(", "suffix": " ].\n \tspec package: 'LLM-API-Example' with: [ spec requires: #...
1,431
https://github.com/Evref-BL/Pharo-LLMAPI
dc20e33f144baabc7f2b3d8702d5488326d16dd5
src/LLM-API-Tests/LLMAPIChatTest.class.st
setUp super setUp. api := LLMAPI chat
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tapi", "suffix": "", "completion": " := LLMAPI chat" }
1,432
https://github.com/Evref-BL/Pharo-LLMAPI
dc20e33f144baabc7f2b3d8702d5488326d16dd5
src/LLM-API-Tests/LLMAPIChatTest.class.st
testCorrectInstance self assert: api class equals: LLMAPIChat
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testCorrectInstance\n\n\tself assert: api", "suffix": "", "completion": " class equals: LLMAPIChat" }
1,433
https://github.com/Evref-BL/Pharo-LLMAPI
dc20e33f144baabc7f2b3d8702d5488326d16dd5
src/LLM-API-Tests/LLMAPIFimTest.class.st
setUp super setUp. api := LLMAPI fim
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tapi", "suffix": "", "completion": " := LLMAPI fim" }
1,434
https://github.com/Evref-BL/Pharo-LLMAPI
dc20e33f144baabc7f2b3d8702d5488326d16dd5
src/LLM-API-Tests/LLMAPIFimTest.class.st
testCorrectInstance self assert: api class equals: LLMAPIFim
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testCorrectInstance\n\n\tself", "suffix": "", "completion": " assert: api class equals: LLMAPIFim" }
1,435
https://github.com/Evref-BL/Pharo-LLMAPI
ac8bee1b0d99bf0dcc2fb1066170b29f666259a4
src/LLM-API-Tests/LLMAPIChatTest.class.st
testCheckModelExist self should: [ api performRequest ] raise: LLMPayloadNoModelError
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "testCheckModelExist\n\n\tself", "suffix": "", "completion": " should: [ api performRequest ] raise: LLMPayloadNoModelError" }
1,436
https://github.com/Evref-BL/Pharo-LLMAPI
ac8bee1b0d99bf0dcc2fb1066170b29f666259a4
src/LLM-API-Tests/LLMAPIFimTest.class.st
testCheckModelExist self should: [ api performRequest ] raise: LLMPayloadNoModelError
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testCheckModelExist\n\n\tself should: [ api performRequest", "suffix": "", "completion": " ] raise: LLMPayloadNoModelError" }
1,437
https://github.com/Evref-BL/Pharo-LLMAPI
ac8bee1b0d99bf0dcc2fb1066170b29f666259a4
src/LLM-API/LLMAPI.class.st
prepareRequest "check some properties" (self payload model isNil or: [ self payload model isEmpty ]) ifTrue: [ LLMPayloadNoModelError signal ]. "Prepare request" self apiKey ifNotNil: [ :_apiKey | client setBearerAuthentication: _apiKey ]. client forJsonREST. (self https isNil or: [ self https ]) ifTr...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "prepareRequest\n\t\"check some properties\"\n \n\t(self payload model isNil or: [ self payload model isEmpty", "suffix": ".\n\t\"Prepare request\"\n \tself apiKey ifNotNil: [ :_apiKey |\n \t\tclient setBearerAuthentication: _apiK...
1,438
https://github.com/Evref-BL/Pharo-LLMAPI
ac8bee1b0d99bf0dcc2fb1066170b29f666259a4
src/LLM-API/LLMAPI.class.st
prepareRequest "check some properties" (self payload model isNil or: [ self payload model isEmpty ]) ifTrue: [ LLMPayloadNoModelError signal ]. "Prepare request" self apiKey ifNotNil: [ :_apiKey | client setBearerAuthentication: _apiKey ]. client forJsonREST. (self https isNil or: [ self https ]) ifTr...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code": "Object subclass: #LLMAPI\n\tinstanceVariableNames: 'host port client content apiKey https'\n\tclassVariableNames: ''\n\tpackage: 'LLM-API'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-API/LLMAPI.class.st", "code"...
{ "fim_idx": 1, "mask_type": "unary_message", "n_masked_tokens": 3, "prefix": "prepareRequest\n\t\"check some properties\"\n \n\t(self payload model isNil or: [ self", "suffix": " ])\n\t\tifTrue: [ LLMPayloadNoModelError signal ].\n\t\"Prepare request\"\n \tself apiKey ifNotNil: [ :_apiKey |\n \t\tclient setB...
1,439
https://github.com/Evref-BL/Pharo-LLMAPI
4c513df0b3674b147d091fbbd10fd84001be5ac4
src/LLM-API/LLMAPIChat.class.st
llmSettingOn: aBuilder <systemsettings> (aBuilder group: #LLMChat) parent: super settingName; name: 'LLM Chat'; with: [ (aBuilder setting: #chatModel) order: 0; label: 'LLM Chat default model'; target: self; default: 'devstral:latest'; ghostHelp: 'devstral:latest' ]
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecChatHistory.class.st", "code": "SpPresenterWithModel subclass: #LLMAPISpecChatHistory\n\tinstanceVariableNames: 'panel'\n\tclassVariableNames: ''\n\tpackage: 'LLM-Spec'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecCha...
{ "fim_idx": 0, "mask_type": "cascade", "n_masked_tokens": 5, "prefix": "llmSettingOn: aBuilder\n\n\t<systemsettings>\n\t(aBuilder group: #LLMChat)\n\t\tparent: super settingName;\n\t\tname: 'LLM Chat';\n\t\twith: [\n\t\t\t\t(aBuilder setting: #chatModel)\n\t\t\t\t\torder: 0;\n\t\t\t\t\tlabel: 'LLM Chat default...
1,440
https://github.com/Evref-BL/Pharo-LLMAPI
4c513df0b3674b147d091fbbd10fd84001be5ac4
src/LLM-API/LLMAPIChat.class.st
llmSettingOn: aBuilder <systemsettings> (aBuilder group: #LLMChat) parent: super settingName; name: 'LLM Chat'; with: [ (aBuilder setting: #chatModel) order: 0; label: 'LLM Chat default model'; target: self; default: 'devstral:latest'; ghostHelp: 'devstral:latest' ]
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecChatHistory.class.st", "code": "SpPresenterWithModel subclass: #LLMAPISpecChatHistory\n\tinstanceVariableNames: 'panel'\n\tclassVariableNames: ''\n\tpackage: 'LLM-Spec'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecCha...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 8, "prefix": "llmSettingOn: aBuilder\n\n\t<systemsettings>\n\t(aBuilder group: #LLMChat)\n\t\tparent: super settingName;\n\t\tname: 'LLM Chat';\n\t\twith: [\n\t\t\t\t(aBuilder setting: #chatModel)\n\t\t\t\t\torder: 0;\n\t\t\t\t\tlabel: 'LLM Chat default...
1,441
https://github.com/Evref-BL/Pharo-LLMAPI
4c513df0b3674b147d091fbbd10fd84001be5ac4
src/LLM-API/LLMAPIChat.class.st
initialize super initialize. self payload model: self class chatModel
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecChatHistory.class.st", "code": "SpPresenterWithModel subclass: #LLMAPISpecChatHistory\n\tinstanceVariableNames: 'panel'\n\tclassVariableNames: ''\n\tpackage: 'LLM-Spec'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecCha...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "initialize\n\n\tsuper initialize.\n\tself", "suffix": "", "completion": " payload model: self class chatModel" }
1,442
https://github.com/Evref-BL/Pharo-LLMAPI
1fa9a313273d3119fe647511bce3b05de0a6b86a
src/LLM-API-Example/LLMAPIChatObjectToolPharoExecutor.class.st
executeWithArguments: arguments "Implement this if you want to extend tools and use its default mecanism" (arguments isNil or: [ arguments isEmpty ]) ifTrue: [ ^ 'please provide the code to be executed' ]. ^ [ SmalltalkImage current compiler evaluate: arguments first value ] on: Exception do: [ :exce | ex...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecChatHistory.class.st", "code": "SpPresenterWithModel subclass: #LLMAPISpecChatHistory\n\tinstanceVariableNames: 'panel'\n\tclassVariableNames: ''\n\tpackage: 'LLM-Spec'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecCha...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "executeWithArguments: arguments\n\t\"Implement this if you want to extend tools and use its default mecanism\"\n\n\t(arguments isNil or: [ arguments", "suffix": ".\n\t^ [ SmalltalkImage current compiler evaluate: arguments first ...
1,443
https://github.com/Evref-BL/Pharo-LLMAPI
1fa9a313273d3119fe647511bce3b05de0a6b86a
src/LLM-API-Example/LLMAPIChatObjectToolPharoExecutor.class.st
executeWithArguments: arguments "Implement this if you want to extend tools and use its default mecanism" (arguments isNil or: [ arguments isEmpty ]) ifTrue: [ ^ 'please provide the code to be executed' ]. ^ [ SmalltalkImage current compiler evaluate: arguments first value ] on: Exception do: [ :exce | ex...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecChatHistory.class.st", "code": "SpPresenterWithModel subclass: #LLMAPISpecChatHistory\n\tinstanceVariableNames: 'panel'\n\tclassVariableNames: ''\n\tpackage: 'LLM-Spec'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecCha...
{ "fim_idx": 1, "mask_type": "return", "n_masked_tokens": 3, "prefix": "executeWithArguments: arguments\n\t\"Implement this if you want to extend tools and use its default mecanism\"\n\n\t(arguments isNil or: [ arguments isEmpty ]) ifTrue: [\n\t\t^ 'please provide the code to be executed' ].\n\t^ [ SmalltalkIma...
1,444
https://github.com/Evref-BL/Pharo-LLMAPI
1fa9a313273d3119fe647511bce3b05de0a6b86a
src/LLM-API-Example/LLMAPIChatObjectToolPharoExecutor.class.st
executeWithArguments: arguments "Implement this if you want to extend tools and use its default mecanism" (arguments isNil or: [ arguments isEmpty ]) ifTrue: [ ^ 'please provide the code to be executed' ]. ^ [ SmalltalkImage current compiler evaluate: arguments first value ] on: Exception do: [ :exce | ex...
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecChatHistory.class.st", "code": "SpPresenterWithModel subclass: #LLMAPISpecChatHistory\n\tinstanceVariableNames: 'panel'\n\tclassVariableNames: ''\n\tpackage: 'LLM-Spec'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpecCha...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "executeWithArguments: arguments\n\t\"Implement this if you want to extend tools and use its default mecanism\"\n\n\t(arguments isNil or: [ arguments isEmpty ]) ifTrue: [\n\t\t^ 'please provide the code to be executed' ].\n\t^ [ Sma...
1,445
https://github.com/Evref-BL/Pharo-LLMAPI
3cceefe9a0e773c2891aa931bce258f62e33534a
src/LLM-Spec/LLMAPISpec.class.st
menuCommandOn: aBuilder <worldMenu> (aBuilder item: #'Open LLM Chat') order: 1000; action: [ self open ]; help: 'Open an LLM Chat wincow'
[ { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpec.class.st", "code": "SpPresenter subclass: #LLMAPISpec\n\tinstanceVariableNames: 'toolbar notebook'\n\tclassVariableNames: ''\n\tpackage: 'LLM-Spec'" }, { "filepath": "repo_clone/Pharo-LLMAPI/src/LLM-Spec/LLMAPISpec.class.st", "code":...
{ "fim_idx": 0, "mask_type": "cascade", "n_masked_tokens": 8, "prefix": "menuCommandOn: aBuilder\n\n\t<worldMenu>\n\t(aBuilder item: #'Open LLM Chat')\n\t\torder: 1000;", "suffix": "", "completion": "\n\t\taction: [ self open ];\n\t\thelp: 'Open an LLM Chat wincow'" }
1,446
https://github.com/Evref-BL/Pharo-LLMAPI
8ebef180e14075153df7f6f8db28a1b9686f2e2b
src/LLM-API/LLMAPIChatObjectPayload.class.st
asJsonableObject | dic | dic := Dictionary new. self messages ifNotNil: [ :_messages | dic at: #messages put: (_messages collect: [ :message | message asJsonableObject ]) ]. self temperature ifNotNil: [ :v | dic at: #temperature put: v ]. self top_p ifNotNil: [ :v | dic at: #top_p put: v ]. sel...
[]
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "asJsonableObject\n \n \t| dic |\n \tdic := Dictionary new.\n \tself messages ifNotNil: [ :_messages |\n \t\tdic\n \t\t\tat: #messages\n \t\t\tput: (_messages collect: [ :message | message asJsonableObject ]) ].\n \tself temperature...
1,447
https://github.com/Evref-BL/Pharo-LLMAPI
8ebef180e14075153df7f6f8db28a1b9686f2e2b
src/LLM-API/LLMAPIChatObjectPayload.class.st
asJsonableObject | dic | dic := Dictionary new. self messages ifNotNil: [ :_messages | dic at: #messages put: (_messages collect: [ :message | message asJsonableObject ]) ]. self temperature ifNotNil: [ :v | dic at: #temperature put: v ]. self top_p ifNotNil: [ :v | dic at: #top_p put: v ]. sel...
[]
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "asJsonableObject\n \n \t| dic |\n \tdic := Dictionary new.\n \tself messages ifNotNil: [ :_messages |\n \t\tdic\n \t\t\tat: #messages\n \t\t\tput: (_messages collect: [ :message | message asJsonableObject ]) ].\n \tself temperature...
1,448
https://github.com/guillep/pharo-z3
d7117b042cf00c665fbde16922c0af809d089a9a
src/Z3-Tests/Z3BitVectorTest.class.st
setUp super setUp. "v- untested" v := ctx makeBitVectorFromInt: 10 size: 4. "1010" u := ctx makeBitVectorFromInt: 6 size: 4 "0110"
[ { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "FFILibrary subclass: #LibZ3\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpoolDictionaries: 'Z3Z3Typedef'\n\tpackage: 'Z3-Library'" }, { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "z3_qe_model_p...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp. \"v- untested\"\n\tv := ctx makeBitVectorFromInt:", "suffix": ". \"1010\"\n\tu := ctx makeBitVectorFromInt: 6 size: 4 \"0110\"", "completion": " 10 size: 4" }
1,449
https://github.com/guillep/pharo-z3
d7117b042cf00c665fbde16922c0af809d089a9a
src/Z3-Tests/Z3BitVectorTest.class.st
setUp super setUp. "v- untested" v := ctx makeBitVectorFromInt: 10 size: 4. "1010" u := ctx makeBitVectorFromInt: 6 size: 4 "0110"
[ { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "FFILibrary subclass: #LibZ3\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpoolDictionaries: 'Z3Z3Typedef'\n\tpackage: 'Z3-Library'" }, { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "z3_qe_model_p...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp. \"v- untested\"\n\tv := ctx makeBitVectorFromInt: 10 size: 4. \"1010\"\n\tu := ctx makeBitVectorFromInt:", "suffix": " \"0110\"", "completion": " 6 size: 4" }
1,450
https://github.com/guillep/pharo-z3
d7117b042cf00c665fbde16922c0af809d089a9a
src/Z3-Tests/Z3BitVectorTest.class.st
testAnd ^ self assert: ((v and: u) getValueAsInt) equals: 6.
[ { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "FFILibrary subclass: #LibZ3\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpoolDictionaries: 'Z3Z3Typedef'\n\tpackage: 'Z3-Library'" }, { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "z3_qe_model_p...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 9, "prefix": "testAnd\n\n\t^ self assert: (", "suffix": ".", "completion": "(v and: u) getValueAsInt) equals: 6" }
1,451
https://github.com/guillep/pharo-z3
d7117b042cf00c665fbde16922c0af809d089a9a
src/Z3-Tests/Z3BitVectorTest.class.st
testMakeBV | a | a := Z3_Z3_ast makeInt: ctx value: 5. "untested" a := Z3_Z3_ast makeIntoBV: ctx Z3int: a size: 4. "untested" a := Z3BitVector new lowLevelAST: a; context: ctx. a getValueAsInt.
[ { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "FFILibrary subclass: #LibZ3\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpoolDictionaries: 'Z3Z3Typedef'\n\tpackage: 'Z3-Library'" }, { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "z3_qe_model_p...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 6, "prefix": "testMakeBV\n\n\t| a |\n\ta", "suffix": ". \"untested\"\n\ta := Z3_Z3_ast makeIntoBV: ctx Z3int: a size: 4. \"untested\"\n\ta := Z3BitVector new\n\t\t lowLevelAST: a;\n\t\t context: ctx.\n\ta getValueAsInt.", "completion": " ...
1,452
https://github.com/guillep/pharo-z3
d7117b042cf00c665fbde16922c0af809d089a9a
src/Z3-Tests/Z3BitVectorTest.class.st
testMakeBV | a | a := Z3_Z3_ast makeInt: ctx value: 5. "untested" a := Z3_Z3_ast makeIntoBV: ctx Z3int: a size: 4. "untested" a := Z3BitVector new lowLevelAST: a; context: ctx. a getValueAsInt.
[ { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "FFILibrary subclass: #LibZ3\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpoolDictionaries: 'Z3Z3Typedef'\n\tpackage: 'Z3-Library'" }, { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "z3_qe_model_p...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "testMakeBV\n\n\t| a |\n\ta := Z3_Z3_ast makeInt: ctx value: 5. \"untested\"\n\ta := Z3_Z3_ast makeIntoBV:", "suffix": ". \"untested\"\n\ta := Z3BitVector new\n\t\t lowLevelAST: a;\n\t\t context: ctx.\n\ta getValueAsInt.", "c...
1,453
https://github.com/guillep/pharo-z3
d7117b042cf00c665fbde16922c0af809d089a9a
src/Z3-Tests/Z3BitVectorTest.class.st
testMakeBV | a | a := Z3_Z3_ast makeInt: ctx value: 5. "untested" a := Z3_Z3_ast makeIntoBV: ctx Z3int: a size: 4. "untested" a := Z3BitVector new lowLevelAST: a; context: ctx. a getValueAsInt.
[ { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "FFILibrary subclass: #LibZ3\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpoolDictionaries: 'Z3Z3Typedef'\n\tpackage: 'Z3-Library'" }, { "filepath": "repo_clone/pharo-z3/src/Z3/LibZ3.class.st", "code": "z3_qe_model_p...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 6, "prefix": "testMakeBV\n\n\t| a |\n\ta := Z3_Z3_ast makeInt: ctx value: 5. \"untested\"\n\ta := Z3_Z3_ast makeIntoBV: ctx Z3int: a size: 4. \"untested\"\n\ta := Z3BitVector", "suffix": ".\n\ta getValueAsInt.", "completion": " new\n\t\t lowL...
1,454
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st
baseline: spec <baseline> spec for: #common do: [ spec blessing: #baseline. spec package: 'HiDeHo-Node' with: [ spec requires: #( ) ]; package: 'HiDeHo-Sorter' with: [ spec requires: #( ) ] ]. spec group: 'core' with: #( 'HiDeHo-Node' 'HiDeHo-Sorter' ); group: 'full' with: #( 'core' ); group: 'd...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "baseline: spec\n \n \t<baseline>\n\tspec for: #common do: [\n\t\tspec blessing: #baseline.\n\t\tspec\n\t\t\tpackage: 'HiDeHo-Node' with: [ spec", "suffix": " ];\n\t\t\tpackage: 'HiDeHo-Sorter' with: [ spec requires: #( ) ] ].\n\...
1,455
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st
baseline: spec <baseline> spec for: #common do: [ spec blessing: #baseline. spec package: 'HiDeHo-Node' with: [ spec requires: #( ) ]; package: 'HiDeHo-Sorter' with: [ spec requires: #( ) ] ]. spec group: 'core' with: #( 'HiDeHo-Node' 'HiDeHo-Sorter' ); group: 'full' with: #( 'core' ); group: 'd...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 6, "prefix": "baseline: spec\n \n \t<baseline>\n\tspec for: #common do: [\n\t\tspec blessing: #baseline.\n\t\tspec\n\t\t\tpackage: 'HiDeHo-Node' with: [ spec requires: #( ) ];\n\t\t\tpackage: 'HiDeHo-Sorter' with:", "suffix": " ].\n\tspec\n\t\tgroup:...
1,456
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st
baseline: spec <baseline> spec for: #common do: [ spec blessing: #baseline. spec package: 'HiDeHo-Node' with: [ spec requires: #( ) ]; package: 'HiDeHo-Sorter' with: [ spec requires: #( ) ] ]. spec group: 'core' with: #( 'HiDeHo-Node' 'HiDeHo-Sorter' ); group: 'full' with: #( 'core' ); group: 'd...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 4, "mask_type": "cascade", "n_masked_tokens": 3, "prefix": "baseline: spec\n \n \t<baseline>\n\tspec for: #common do: [\n\t\tspec blessing: #baseline.\n\t\tspec\n\t\t\tpackage: 'HiDeHo-Node' with: [ spec requires: #( ) ];\n\t\t\tpackage: 'HiDeHo-Sorter' with: [ spec requires: #( ) ] ].\n\tspec\n\...
1,457
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeAbstractOperation.class.st
isAbstract ^ self == HiDeAbstractOperation
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "do: ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "isAbstract\n\n\t^", "suffix": "", "completion": " self == HiDeAbstractOperation" }
1,458
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeAbstractOperation.class.st
allSatisfy: aBlock ^ aBlock value: self
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "do: ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "allSatisfy: aBlock\n\n\t^", "suffix": "", "completion": " aBlock value: self" }
1,459
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeAbstractOperation.class.st
anySatisfy: aBlock ^ aBlock value: self
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "do: ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "anySatisfy: aBlock\n\n\t^", "suffix": "", "completion": " aBlock value: self" }
1,460
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeNode.class.st
isAbstract ^ self == HiDeNode
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "isAbstract\n\n\t^", "suffix": "", "completion": " self == HiDeNode" }
1,461
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeSequence.class.st
add: aHiDeNode ^ collection add: aHiDeNode
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "do: ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "add: aHiDeNode\n\n\t^", "suffix": "", "completion": " collection add: aHiDeNode" }
1,462
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeSequence.class.st
allSatisfy: aBlock ^ collection allSatisfy: [ :node | node allSatisfy: aBlock ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "do: ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 5, "prefix": "allSatisfy: aBlock\n\n\t^ collection allSatisfy: [ :node", "suffix": "", "completion": " | node allSatisfy: aBlock ]" }
1,463
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeSequence.class.st
anySatisfy: aBlock ^ collection anySatisfy: [ :node | node anySatisfy: aBlock ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "do: ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 6, "prefix": "anySatisfy: aBlock\n\n\t^ collection anySatisfy: [ :", "suffix": "", "completion": "node | node anySatisfy: aBlock ]" }
1,464
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeSequence.class.st
impacts | impacts | impacts := Set new. self do: [ :node | impacts addAll: node impacts ]. ^ impacts
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "impacts\n\n\t| impacts |\n\timpacts", "suffix": ".\n\tself do: [ :node | impacts addAll: node impacts ].\n\t^ impacts", "completion": " := Set new" }
1,465
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeSequence.class.st
impacts | impacts | impacts := Set new. self do: [ :node | impacts addAll: node impacts ]. ^ impacts
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "impacts\n\n\t| impacts |\n\timpacts := Set new.\n\tself do: [ :node", "suffix": ".\n\t^ impacts", "completion": " | impacts addAll: node impacts ]" }
1,466
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeSequence.class.st
impacts | impacts | impacts := Set new. self do: [ :node | impacts addAll: node impacts ]. ^ impacts
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "impacts\n\n\t| impacts |\n\timpacts := Set new.\n\tself do: [ :node | impacts", "suffix": " ].\n\t^ impacts", "completion": " addAll: node impacts" }
1,467
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeSequence.class.st
initialize super initialize. collection := OrderedCollection new
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "initialize\n\n\tsuper initialize.\n\tcollection", "suffix": "", "completion": " := OrderedCollection new" }
1,468
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Node/HiDeSequence.class.st
remove: aHiDeNode ifAbsent: errorBlock ^ collection remove: aHiDeNode ifAbsent: errorBlock
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "anyS...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "remove: aHiDeNode ifAbsent: errorBlock\n\n\t^ collection remove:", "suffix": "", "completion": " aHiDeNode ifAbsent: errorBlock" }
1,469
https://github.com/tomooda/HiDeHo
0e684009cc63f6b3090e2ca019e5454f16e460a6
src/HiDeHo-Sorter/HiDeAbstractSorter.class.st
initialize super initialize. sequences := OrderedCollection new
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "do: ...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "initialize\n\n\tsuper initialize.\n\tsequences", "suffix": "", "completion": " := OrderedCollection new" }
1,470
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAllOperationsSatisfy | op | op := HiDeAbstractOperation new. self assert: (op allOperationsSatisfy: [ :o | true ]). self deny: (op allOperationsSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testAllOperationsSatisfy\n\n\t| op |\n\top", "suffix": ".\n\tself assert: (op allOperationsSatisfy: [ :o | true ]).\n\tself deny: (op allOperationsSatisfy: [ :o | false ])", "completion": " := HiDeAbstractOperation new" }
1,471
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAllOperationsSatisfy | op | op := HiDeAbstractOperation new. self assert: (op allOperationsSatisfy: [ :o | true ]). self deny: (op allOperationsSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testAllOperationsSatisfy\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert: (op allOperationsSatisfy: [ :", "suffix": ".\n\tself deny: (op allOperationsSatisfy: [ :o | false ])", "completion": "o | true ])" }
1,472
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAllOperationsSatisfy | op | op := HiDeAbstractOperation new. self assert: (op allOperationsSatisfy: [ :o | true ]). self deny: (op allOperationsSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "testAllOperationsSatisfy\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert: (op allOperationsSatisfy: [ :o | true ]).\n\tself deny: (op", "suffix": "", "completion": " allOperationsSatisfy: [ :o | false ])" }
1,473
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAllSatisfy | op | op := HiDeAbstractOperation new. self assert: (op allSatisfy: [ :o | true ]). self deny: (op allSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testAllSatisfy\n\n\t| op |\n\top", "suffix": ".\n\tself assert: (op allSatisfy: [ :o | true ]).\n\tself deny: (op allSatisfy: [ :o | false ])", "completion": " := HiDeAbstractOperation new" }
1,474
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAllSatisfy | op | op := HiDeAbstractOperation new. self assert: (op allSatisfy: [ :o | true ]). self deny: (op allSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "testAllSatisfy\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert: (op", "suffix": ".\n\tself deny: (op allSatisfy: [ :o | false ])", "completion": " allSatisfy: [ :o | true ])" }
1,475
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAllSatisfy | op | op := HiDeAbstractOperation new. self assert: (op allSatisfy: [ :o | true ]). self deny: (op allSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "testAllSatisfy\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert: (op allSatisfy: [ :o | true ]).\n\tself deny: (op allSatisfy: [", "suffix": "", "completion": " :o | false ])" }
1,476
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAnyOperationSatisfy | op | op := HiDeAbstractOperation new. self assert: (op anyOperationSatisfy: [ :o | true ]). self deny: (op anyOperationSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testAnyOperationSatisfy\n\n\t| op |\n\top", "suffix": ".\n\tself assert: (op anyOperationSatisfy: [ :o | true ]).\n\tself deny: (op anyOperationSatisfy: [ :o | false ])", "completion": " := HiDeAbstractOperation new" }
1,477
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAnyOperationSatisfy | op | op := HiDeAbstractOperation new. self assert: (op anyOperationSatisfy: [ :o | true ]). self deny: (op anyOperationSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "testAnyOperationSatisfy\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert: (op anyOperationSatisfy:", "suffix": ".\n\tself deny: (op anyOperationSatisfy: [ :o | false ])", "completion": " [ :o | true ])" }
1,478
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAnyOperationSatisfy | op | op := HiDeAbstractOperation new. self assert: (op anyOperationSatisfy: [ :o | true ]). self deny: (op anyOperationSatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testAnyOperationSatisfy\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert: (op anyOperationSatisfy: [ :o | true ]).\n\tself deny: (op anyOperationSatisfy: [ :o", "suffix": "", "completion": " | false ])" }
1,479
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAnySatisfy | op | op := HiDeAbstractOperation new. self assert: (op anySatisfy: [ :o | true ]). self deny: (op anySatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testAnySatisfy\n\n\t| op |\n\top", "suffix": ".\n\tself assert: (op anySatisfy: [ :o | true ]).\n\tself deny: (op anySatisfy: [ :o | false ])", "completion": " := HiDeAbstractOperation new" }
1,480
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAnySatisfy | op | op := HiDeAbstractOperation new. self assert: (op anySatisfy: [ :o | true ]). self deny: (op anySatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "testAnySatisfy\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert:", "suffix": ".\n\tself deny: (op anySatisfy: [ :o | false ])", "completion": " (op anySatisfy: [ :o | true ])" }
1,481
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testAnySatisfy | op | op := HiDeAbstractOperation new. self assert: (op anySatisfy: [ :o | true ]). self deny: (op anySatisfy: [ :o | false ])
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "testAnySatisfy\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert: (op anySatisfy: [ :o | true ]).\n\tself deny: (op", "suffix": "", "completion": " anySatisfy: [ :o | false ])" }
1,482
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testDo | op count | op := HiDeAbstractOperation new. count := 0. op do: [ :o | self assert: op identicalTo: o. count := count + 1 ]. self assert: count equals: 1
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testDo\n\n\t| op count |\n\top := HiDeAbstractOperation new.\n\tcount := 0.\n\top do: [ :o |\n\t\tself assert: op identicalTo: o.\n\t\tcount := count + 1 ].\n\tself assert:", "suffix": "", "completion": " count equals: 1" }
1,483
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testDo | op count | op := HiDeAbstractOperation new. count := 0. op do: [ :o | self assert: op identicalTo: o. count := count + 1 ]. self assert: count equals: 1
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "testDo\n\n\t| op count |\n\top := HiDeAbstractOperation new.\n\tcount := 0.\n\top do: [ :o |\n\t\tself assert:", "suffix": ".\n\tself assert: count equals: 1", "completion": " op identicalTo: o.\n\t\tcount := count + 1 ]" }
1,484
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testDo | op count | op := HiDeAbstractOperation new. count := 0. op do: [ :o | self assert: op identicalTo: o. count := count + 1 ]. self assert: count equals: 1
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 3, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "testDo\n\n\t| op count |\n\top := HiDeAbstractOperation new.\n\tcount := 0.\n\top do: [ :o |\n\t\tself assert: op identicalTo: o.\n\t\tcount", "suffix": " ].\n\tself assert: count equals: 1", "completion": " := count + 1" }
1,485
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testNumberOfOperations | op | op := HiDeAbstractOperation new. self assert: op numberOfOperations equals: 1
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testNumberOfOperations\n\n\t| op |\n\top", "suffix": ".\n\tself assert: op numberOfOperations equals: 1", "completion": " := HiDeAbstractOperation new" }
1,486
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testNumberOfOperations | op | op := HiDeAbstractOperation new. self assert: op numberOfOperations equals: 1
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testNumberOfOperations\n\n\t| op |\n\top := HiDeAbstractOperation new.\n\tself assert:", "suffix": "", "completion": " op numberOfOperations equals: 1" }
1,487
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testOperationsDo | op count | op := HiDeAbstractOperation new. count := 0. op operationsDo: [ :o | self assert: op identicalTo: o. count := count + 1 ]. self assert: count equals: 1
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 3, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "testOperationsDo\n\n\t| op count |\n\top := HiDeAbstractOperation new.\n\tcount := 0.\n\top operationsDo: [ :o |\n\t\tself assert: op identicalTo: o.\n\t\tcount", "suffix": " ].\n\tself assert: count equals: 1", "completion": " := c...
1,488
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testOperationsDo | op count | op := HiDeAbstractOperation new. count := 0. op operationsDo: [ :o | self assert: op identicalTo: o. count := count + 1 ]. self assert: count equals: 1
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testOperationsDo\n\n\t| op count |\n\top", "suffix": ".\n\tcount := 0.\n\top operationsDo: [ :o |\n\t\tself assert: op identicalTo: o.\n\t\tcount := count + 1 ].\n\tself assert: count equals: 1", "completion": " := HiDeAbstractOpera...
1,489
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeAbstractOperationTest.class.st
testOperationsDo | op count | op := HiDeAbstractOperation new. count := 0. op operationsDo: [ :o | self assert: op identicalTo: o. count := count + 1 ]. self assert: count equals: 1
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testOperationsDo\n\n\t| op count |\n\top := HiDeAbstractOperation new.\n\tcount := 0.\n\top operationsDo: [ :o |\n\t\tself", "suffix": ".\n\t\tcount := count + 1 ].\n\tself assert: count equals: 1", "completion": " assert: op i...
1,490
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeNode.class.st
allOperationsSatisfy: aBlock self operationsDo: [ :node | (aBlock value: node) ifFalse: [ ^ false ] ]. ^ true
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "allOperationsSatisfy: aBlock\n\n\tself operationsDo: [ :node |\n\t\t(aBlock value: node", "suffix": ".\n\t^ true", "completion": ") ifFalse: [ ^ false ] ]" }
1,491
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Node/HiDeNode.class.st
allOperationsSatisfy: aBlock self operationsDo: [ :node | (aBlock value: node) ifFalse: [ ^ false ] ]. ^ true
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "allOperationsSatisfy: aBlock\n\n\tself operationsDo: [ :node |\n\t\t(", "suffix": " ].\n\t^ true", "completion": "aBlock value: node) ifFalse: [ ^ false ]" }
1,492
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Sorter/HiDeAbstractFlatSorter.class.st
createMerge: aCollectionOfHiDeSequence | newSequence | newSequence := HiDeSequence new: (aCollectionOfHiDeSequence inject: 0 into: [ :subtotal :sequence | subtotal + sequence numberOfOperations ]). aCollectionOfHiDeSequence operationsDo: [ :operation | newS...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "createMerge: aCollectionOfHiDeSequence\n\n\t| newSequence |\n\tnewSequence := HiDeSequence new: (aCollectionOfHiDeSequence\n\t\t\t inject: 0\n\t\t\t into: [ :subtotal :sequence |\n\t\t\t subt...
1,493
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Sorter/HiDeAbstractFlatSorter.class.st
createMerge: aCollectionOfHiDeSequence | newSequence | newSequence := HiDeSequence new: (aCollectionOfHiDeSequence inject: 0 into: [ :subtotal :sequence | subtotal + sequence numberOfOperations ]). aCollectionOfHiDeSequence operationsDo: [ :operation | newS...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "binary_message", "n_masked_tokens": 3, "prefix": "createMerge: aCollectionOfHiDeSequence\n\n\t| newSequence |\n\tnewSequence := HiDeSequence new: (aCollectionOfHiDeSequence\n\t\t\t inject: 0\n\t\t\t into: [ :subtotal :sequence |\n\t\t\t ...
1,494
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Sorter/HiDeAbstractFlatSorter.class.st
createMerge: aCollectionOfHiDeSequence | newSequence | newSequence := HiDeSequence new: (aCollectionOfHiDeSequence inject: 0 into: [ :subtotal :sequence | subtotal + sequence numberOfOperations ]). aCollectionOfHiDeSequence operationsDo: [ :operation | newS...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "createMerge: aCollectionOfHiDeSequence\n\n\t| newSequence |\n\tnewSequence := HiDeSequence new: (aCollectionOfHiDeSequence\n\t\t\t inject: 0\n\t\t\t into: [ :subtotal :sequence |\n\t\t\t ...
1,495
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Sorter/HiDeAbstractHierarchicalSorter.class.st
createMerge: aCollectionOfHiDeSequence ^ (HiDeSequence new: aCollectionOfHiDeSequence size) addAll: aCollectionOfHiDeSequence; yourself
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 10, "prefix": "createMerge: aCollectionOfHiDeSequence\n\n\t^", "suffix": "", "completion": " (HiDeSequence new: aCollectionOfHiDeSequence size)\n\t\t addAll: aCollectionOfHiDeSequence;\n\t\t yourself" }
1,496
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Sorter/HiDeAbstractSorter.class.st
merge: aCollectionOfHiDeNode | mergedSequence | aCollectionOfHiDeNode do: [ :node | (sequences includes: node) ifFalse: [ ^ ValueNotFound signalFor: node ] ]. mergedSequence := self createMerge: aCollectionOfHiDeNode. sequences removeAll: aCollectionOfHiDeNode. ^ mergedSequence
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 3, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "merge: aCollectionOfHiDeNode\n\n\t| mergedSequence |\n\taCollectionOfHiDeNode do: [ :node |\n\t\t(sequences includes: node) ifFalse: [\n\t\t\t^ ValueNotFound signalFor: node ] ].\n\tmergedSequence", "suffix": ".\n\tsequences removeAll...
1,497
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Sorter/HiDeAbstractSorter.class.st
merge: aCollectionOfHiDeNode | mergedSequence | aCollectionOfHiDeNode do: [ :node | (sequences includes: node) ifFalse: [ ^ ValueNotFound signalFor: node ] ]. mergedSequence := self createMerge: aCollectionOfHiDeNode. sequences removeAll: aCollectionOfHiDeNode. ^ mergedSequence
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "merge: aCollectionOfHiDeNode\n\n\t| mergedSequence |\n\taCollectionOfHiDeNode do: [ :node |\n\t\t(sequences includes: node", "suffix": " ].\n\tmergedSequence := self createMerge: aCollectionOfHiDeNode.\n\tsequences removeAll: aCo...
1,498
https://github.com/tomooda/HiDeHo
9656d6dc2fcbb828b3282b00c815cd77afcd4cf3
src/HiDeHo-Sorter/HiDeAbstractSorter.class.st
merge: aCollectionOfHiDeNode | mergedSequence | aCollectionOfHiDeNode do: [ :node | (sequences includes: node) ifFalse: [ ^ ValueNotFound signalFor: node ] ]. mergedSequence := self createMerge: aCollectionOfHiDeNode. sequences removeAll: aCollectionOfHiDeNode. ^ mergedSequence
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": "HiDeNode subclass: #HiDeSequence\n\tinstanceVariableNames: 'collection'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequence.class.st", "code": ...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "merge: aCollectionOfHiDeNode\n\n\t| mergedSequence |\n\taCollectionOfHiDeNode do: [ :node |\n\t\t(sequences includes: node) ifFalse: [\n\t\t\t^", "suffix": ".\n\tmergedSequence := self createMerge: aCollectionOfHiDeNode.\n\tseque...
1,499
https://github.com/tomooda/HiDeHo
bdbdbbda089321bd3101892f784b5b002f560f4f
src/HiDeHo-Node/HiDeNode.class.st
select: aBlock ^ Array streamContents: [ :stream | self do: [ :node | (aBlock value: node) ifTrue: [ stream nextPut: node ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequenceTest.class.st", "code": "TestCase subclass: #HiDeSequenceTest\n\tinstanceVariableNames: 'seq subseq op1 op2'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeSequenceTest.cl...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 9, "prefix": "select: aBlock\n\n\t^ Array streamContents: [ :stream |\n\t\t self do: [ :node |\n\t\t\t (aBlock value: node", "suffix": "", "completion": ") ifTrue: [ stream nextPut: node ] ] ]" }