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
900
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibraries.class.st
moveLibrary: aLibraryName from: initialLocation | source target | source := (self originalLibrariesDirectory , initialLocation , aLibraryName) asFileReference. target := self vmLibrariesDirectory / aLibraryName . source copyTo: target
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "moveLibrary: aLibraryName from: initialLocation\n\n\t| source target |\n\tsource := (self originalLibrariesDirectory , initialLocation\n\t , aLibraryName) asFileReference.\n\ttarget", "suffix": " .\n\tsource copyTo: target",...
901
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibraries.class.st
vmLibrariesDirectory | dir | "Different for each OS" self isWindows ifTrue: [ dir := Smalltalk vm directory ] ifFalse: [ self isMacOS ifTrue: [ dir := Smalltalk vm directory, '/Pharo.app/Contents/MacOS/Plugins' ] ifFalse: [ dir := Smalltalk vm directory "not sure yet what it can be here" ] ]. ^...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 4, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "vmLibrariesDirectory\n\n\t| dir |\n\t\"Different for each OS\"\n\tself isWindows\n\t\tifTrue: [ dir := Smalltalk vm directory ]\n\t\tifFalse: [\n\t\t\tself isMacOS\n\t\t\t\tifTrue: [ dir := Smalltalk vm directory, '/Pharo.app/Contents/M...
902
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibraries.class.st
vmLibrariesDirectory | dir | "Different for each OS" self isWindows ifTrue: [ dir := Smalltalk vm directory ] ifFalse: [ self isMacOS ifTrue: [ dir := Smalltalk vm directory, '/Pharo.app/Contents/MacOS/Plugins' ] ifFalse: [ dir := Smalltalk vm directory "not sure yet what it can be here" ] ]. ^...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 3, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "vmLibrariesDirectory\n\n\t| dir |\n\t\"Different for each OS\"\n\tself isWindows\n\t\tifTrue: [ dir := Smalltalk vm directory ]\n\t\tifFalse: [\n\t\t\tself isMacOS\n\t\t\t\tifTrue: [ dir := Smalltalk vm", "suffix": " ]\n\t\t\t\tifFals...
903
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibraries.class.st
vmLibrariesDirectory | dir | "Different for each OS" self isWindows ifTrue: [ dir := Smalltalk vm directory ] ifFalse: [ self isMacOS ifTrue: [ dir := Smalltalk vm directory, '/Pharo.app/Contents/MacOS/Plugins' ] ifFalse: [ dir := Smalltalk vm directory "not sure yet what it can be here" ] ]. ^...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "vmLibrariesDirectory\n\n\t| dir |\n\t\"Different for each OS\"\n\tself isWindows\n\t\tifTrue: [ dir", "suffix": " ]\n\t\tifFalse: [\n\t\t\tself isMacOS\n\t\t\t\tifTrue: [ dir := Smalltalk vm directory, '/Pharo.app/Contents/MacOS/Plugi...
904
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
copyFoldersInTreeSitterTypescript | source target destination | source := (self originalLibrariesDirectory , '/tree-sitter-typescript/typescript/src/tree_sitter') asFileReference. target := (self originalLibrariesDirectory , '/tree-sitter-typescript/common/') asFileReference. ...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 8, "prefix": "copyFoldersInTreeSitterTypescript\n\n\t| source target destination |\n\tsource", "suffix": ".\n\n\ttarget := (self originalLibrariesDirectory\n\t , '/tree-sitter-typescript/common/') asFileReference.\n\n\tdestination := targ...
905
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
copyFoldersInTreeSitterTypescript | source target destination | source := (self originalLibrariesDirectory , '/tree-sitter-typescript/typescript/src/tree_sitter') asFileReference. target := (self originalLibrariesDirectory , '/tree-sitter-typescript/common/') asFileReference. ...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "copyFoldersInTreeSitterTypescript\n\n\t| source target destination |\n\tsource := (self originalLibrariesDirectory\n\t , '/tree-sitter-typescript/typescript/src/tree_sitter')\n\t\t asFileReference.\n\n\ttarget := (sel...
906
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
copyFoldersInTreeSitterTypescript | source target destination | source := (self originalLibrariesDirectory , '/tree-sitter-typescript/typescript/src/tree_sitter') asFileReference. target := (self originalLibrariesDirectory , '/tree-sitter-typescript/common/') asFileReference. ...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "copyFoldersInTreeSitterTypescript\n\n\t| source target destination |\n\tsource := (self originalLibrariesDirectory\n\t , '/tree-sitter-typescript/typescript/src/tree_sitter')\n\t\t asFileReference.\n\n\ttarget := (sel...
907
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
moveTypescriptLibraryToPharoVM self moveLibrary: self typescriptLibraryName from: '/tree-sitter-typescript/typescript/'
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "moveTypescriptLibraryToPharoVM\n\n\tself\n\t\tmoveLibrary: self", "suffix": "", "completion": " typescriptLibraryName\n\t\tfrom: '/tree-sitter-typescript/typescript/'" }
908
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
typescriptLibraryExists ^ (self vmLibrariesDirectory / self typescriptLibraryName ) asFileReference exists
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "typescriptLibraryExists\n\n\t^ (", "suffix": "", "completion": "self vmLibrariesDirectory / self typescriptLibraryName )\n\t\t asFileReference exists" }
909
https://github.com/Evref-BL/Pharo-Tree-Sitter
6119aba667cc4054d70ed55519dcc4bc537badd8
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
typescriptLibraryName ^ self libraryName: 'tree-sitter-typescript'
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSGroovyLibrary.class.st", "code": "FFILibrary subclass: #TSGroovyLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Groovy'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Groovy/TSG...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "typescriptLibraryName\n\n\t^", "suffix": "", "completion": " self libraryName: 'tree-sitter-typescript'" }
910
https://github.com/Evref-BL/Pharo-Tree-Sitter
58c277975a37b1d34ca5b4ab9d20dd5f694ab118
src/TreeSitter-Libraries/TSLibraries.class.st
libraryExists ^ (self vmLibrariesDirectory / self libraryName) asFileReference exists
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "libraryExists\n\n\t^ (self vmLibrariesDirectory / self", "suffix": "", "completion": " libraryName)\n\t\t asFileReference exists" }
911
https://github.com/Evref-BL/Pharo-Tree-Sitter
58c277975a37b1d34ca5b4ab9d20dd5f694ab118
src/TreeSitter-Libraries/TSLibraries.class.st
libraryName ^ self libraryName: 'libtree-sitter'.
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "libraryName\n\n\t^", "suffix": ".", "completion": " self libraryName: 'libtree-sitter'" }
912
https://github.com/Evref-BL/Pharo-Tree-Sitter
58c277975a37b1d34ca5b4ab9d20dd5f694ab118
src/TreeSitter-Libraries/TSLibraries.class.st
moveLibraryToPharoVM self moveLibrary: self libraryName from: '/tree-sitter/lib/build/'
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "moveLibraryToPharoVM\n\n\tself", "suffix": "", "completion": " moveLibrary: self libraryName from: '/tree-sitter/lib/build/'" }
913
https://github.com/Evref-BL/Pharo-Tree-Sitter
8b25809ff66cd0adbaec4e9bef652ac52a44be1e
src/TreeSitter-Libraries/TSLibraries.class.st
getTreeSitterPythonLibrary self libraryExists ifFalse: [ self cloneTreeSitter; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right folder version." generat...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "getTreeSitterPythonLibrary\n\t \n\tself libraryExists ifFalse: [ \n\t\tself cloneTreeSitter; \"ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which ...
914
https://github.com/Evref-BL/Pharo-Tree-Sitter
8b25809ff66cd0adbaec4e9bef652ac52a44be1e
src/TreeSitter-Libraries/TSLibraries.class.st
getTreeSitterPythonLibrary self libraryExists ifFalse: [ self cloneTreeSitter; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right folder version." generat...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 4, "prefix": "getTreeSitterPythonLibrary\n\t \n\tself libraryExists ifFalse: [ \n\t\tself cloneTreeSitter", "suffix": ".\n\t\t].", "completion": "; \"ok perhaps I have to check if the libraries exist in the original place. This can be tricky because...
915
https://github.com/Evref-BL/Pharo-Tree-Sitter
8b25809ff66cd0adbaec4e9bef652ac52a44be1e
src/TreeSitter-Libraries/TSLibrariesPython.class.st
getTreeSitterPythonLibrary self pythonLibraryExists ifFalse: [ self cloneTreeSitterPython; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right folder version....
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "getTreeSitterPythonLibrary\n\t \n\tself pythonLibraryExists ifFalse: [ \n\t\tself cloneTreeSitterPython;", "suffix": ".", "completion": " \"ok perhaps I have to check if the libraries exist in the original place. This can be tr...
916
https://github.com/Evref-BL/Pharo-Tree-Sitter
8b25809ff66cd0adbaec4e9bef652ac52a44be1e
src/TreeSitter-Libraries/TSLibrariesPython.class.st
getTreeSitterPythonLibrary self pythonLibraryExists ifFalse: [ self cloneTreeSitterPython; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right folder version....
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 3, "prefix": "getTreeSitterPythonLibrary\n\t \n\tself pythonLibraryExists ifFalse: [ \n\t\tself cloneTreeSitterPython;", "suffix": ".\n\t\t].", "completion": " \"ok perhaps I have to check if the libraries exist in the original place. This can be tr...
917
https://github.com/Evref-BL/Pharo-Tree-Sitter
8b25809ff66cd0adbaec4e9bef652ac52a44be1e
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
getTreeSitterTypescriptLibrary self typescriptLibraryExists ifFalse: [ self cloneTreeSitterTypescript; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right fol...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "getTreeSitterTypescriptLibrary\n\t \n\tself typescriptLibraryExists ifFalse: [ \n\t\tself cloneTreeSitterTypescript;", "suffix": ".", "completion": " \"ok perhaps I have to check if the libraries exist in the original place. Th...
918
https://github.com/Evref-BL/Pharo-Tree-Sitter
8b25809ff66cd0adbaec4e9bef652ac52a44be1e
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
getTreeSitterTypescriptLibrary self typescriptLibraryExists ifFalse: [ self cloneTreeSitterTypescript; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right fol...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 4, "prefix": "getTreeSitterTypescriptLibrary\n\t \n\tself typescriptLibraryExists ifFalse: [ \n\t\tself cloneTreeSitterTypescript", "suffix": " .\n\t\t].", "completion": "; \"ok perhaps I have to check if the libraries exist in the original place. T...
919
https://github.com/Evref-BL/Pharo-Tree-Sitter
13b1c26359bcb9a4abe07550eab7c26b234fe8da
src/TreeSitter-Libraries/TSLibraries.class.st
ensureTreeSitterLibraryExists self libraryExists ifFalse: [ self cloneTreeSitter; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right folder version." gene...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "ensureTreeSitterLibraryExists\n\t \n\tself libraryExists ifFalse: [", "suffix": ".", "completion": " \n\t\tself cloneTreeSitter; \"ok perhaps I have to check if the libraries exist in the original place. This can be tricky beca...
920
https://github.com/Evref-BL/Pharo-Tree-Sitter
13b1c26359bcb9a4abe07550eab7c26b234fe8da
src/TreeSitter-Libraries/TSLibraries.class.st
ensureTreeSitterLibraryExists self libraryExists ifFalse: [ self cloneTreeSitter; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right folder version." gene...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 5, "prefix": "ensureTreeSitterLibraryExists\n\t \n\tself libraryExists ifFalse: [ \n\t\tself", "suffix": ".\n\t\t].", "completion": " cloneTreeSitter; \"ok perhaps I have to check if the libraries exist in the original place. This can be tricky beca...
921
https://github.com/Evref-BL/Pharo-Tree-Sitter
13b1c26359bcb9a4abe07550eab7c26b234fe8da
src/TreeSitter-Libraries/TSLibrariesPython.class.st
ensurePythonLibraryExists self pythonLibraryExists ifFalse: [ self cloneTreeSitterPython; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right folder version."...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "ensurePythonLibraryExists\n\t \n\tself pythonLibraryExists ifFalse:", "suffix": ".", "completion": " [ \n\t\tself cloneTreeSitterPython; \"ok perhaps I have to check if the libraries exist in the original place. This can be tri...
922
https://github.com/Evref-BL/Pharo-Tree-Sitter
13b1c26359bcb9a4abe07550eab7c26b234fe8da
src/TreeSitter-Libraries/TSLibrariesPython.class.st
ensurePythonLibraryExists self pythonLibraryExists ifFalse: [ self cloneTreeSitterPython; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right folder version."...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 5, "prefix": "ensurePythonLibraryExists\n\t \n\tself pythonLibraryExists ifFalse: [ \n\t\tself", "suffix": ".\n\t\t].", "completion": " cloneTreeSitterPython; \"ok perhaps I have to check if the libraries exist in the original place. This can be tri...
923
https://github.com/Evref-BL/Pharo-Tree-Sitter
13b1c26359bcb9a4abe07550eab7c26b234fe8da
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
ensureTypescriptLibraryExists self typescriptLibraryExists ifFalse: [ self cloneTreeSitterTypescript; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right fold...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "ensureTypescriptLibraryExists\n\t \n\tself typescriptLibraryExists ifFalse: [ \n\t\tself", "suffix": ".", "completion": " cloneTreeSitterTypescript; \"ok perhaps I have to check if the libraries exist in the original place. Thi...
924
https://github.com/Evref-BL/Pharo-Tree-Sitter
13b1c26359bcb9a4abe07550eab7c26b234fe8da
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
ensureTypescriptLibraryExists self typescriptLibraryExists ifFalse: [ self cloneTreeSitterTypescript; "ok perhaps I have to check if the libraries exist in the original place. This can be tricky because we have different vm versions which reauire having the libraries inside, so we need to copy to the right fold...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSLibrary.class.st", "code": "ts...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 4, "prefix": "ensureTypescriptLibraryExists\n\t \n\tself typescriptLibraryExists ifFalse: [ \n\t\tself cloneTreeSitterTypescript", "suffix": " .\n\t\t].", "completion": "; \"ok perhaps I have to check if the libraries exist in the original place. Th...
925
https://github.com/Evref-BL/Pharo-Tree-Sitter
36a28230b18a0739299e6a77a6fb309f8b6c34a0
src/TreeSitter-Libraries/ManifestTreeSitterLibraries.class.st
ruleGuardingClauseRuleV1FalsePositive <ignoreForCoverage> ^ #(#(#(#RGMethodDefinition #(#TSLibraries #ensureTreeSitterLibraryExists #false)) #'2025-05-27T16:11:22.055+02:00') )
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSNodeTest.class.st", "code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSi...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "ruleGuardingClauseRuleV1FalsePositive\n\n\t<ignoreForCoverage>\n\t^ #(#(#(#RGMethodDefinition #(#TSLibraries #ensureTreeSitterLibraryExists #false))", "suffix": "", "completion": " #'2025-05-27T16:11:22.055+02:00') )" }
926
https://github.com/Evref-BL/Pharo-Tree-Sitter
36a28230b18a0739299e6a77a6fb309f8b6c34a0
src/TreeSitter-Libraries/TSLibraries.class.st
libraryExistsInDocuments ^ (self originalLibrariesDirectory asFileReference / self libraryName) asFileReference exists
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSNodeTest.class.st", "code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSi...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "libraryExistsInDocuments\n\n\t^ (self originalLibrariesDirectory asFileReference / self libraryName", "suffix": "", "completion": ")\n\t\t asFileReference exists" }
927
https://github.com/Evref-BL/Pharo-Tree-Sitter
36a28230b18a0739299e6a77a6fb309f8b6c34a0
src/TreeSitter-Libraries/TSLibrariesPython.class.st
pythonLibraryExistsInDocuments ^ (self originalLibrariesDirectory asFileReference / self pythonLibraryName) asFileReference exists
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSNodeTest.class.st", "code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSi...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 7, "prefix": "pythonLibraryExistsInDocuments\n\n\t^ (self originalLibrariesDirectory", "suffix": "", "completion": " asFileReference / self pythonLibraryName)\n\t\t asFileReference exists" }
928
https://github.com/Evref-BL/Pharo-Tree-Sitter
36a28230b18a0739299e6a77a6fb309f8b6c34a0
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
deleteTreeSitterFolderInCommon (TSLibrariesTypescript new originalLibrariesDirectory , '/tree-sitter-typescript/common/tree_sitter') asFileReference deleteAll.
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSNodeTest.class.st", "code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSi...
{ "fim_idx": 0, "mask_type": "unary_message", "n_masked_tokens": 7, "prefix": "deleteTreeSitterFolderInCommon\n\n\t(TSLibrariesTypescript", "suffix": ".", "completion": " new originalLibrariesDirectory\n\t , '/tree-sitter-typescript/common/tree_sitter') asFileReference deleteAll" }
929
https://github.com/Evref-BL/Pharo-Tree-Sitter
36a28230b18a0739299e6a77a6fb309f8b6c34a0
src/TreeSitter-Libraries/TSLibrariesTypescript.class.st
typescriptLibraryExistsInDocuments ^ (self originalLibrariesDirectory asFileReference / self typescriptLibraryName) asFileReference exists
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSNodeTest.class.st", "code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSi...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "typescriptLibraryExistsInDocuments\n\n\t^ (self", "suffix": "", "completion": " originalLibrariesDirectory asFileReference / self typescriptLibraryName)\n\t\t asFileReference exists" }
930
https://github.com/Evref-BL/Pharo-Tree-Sitter
6920398fe1b718f758f54d14c8c0c10b6710029a
src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st
definePackages: spec spec package: 'TreeSitter'; package: 'TreeSitter-Tests' with: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' 'TreeSitter-Groovy' 'TreeSitter-Typescript' ) ]; package: 'TreeSitter-Groovy' with: [ spec requires: #( 'TreeSitter' ) ]; package: 'TreeSitter-Pytho...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSNodeTest.class.st", "code": "TestCase subclass: #TSNodeTest\n\tinstanceVariableNames: 'parser rootNode stringToParse'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSi...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "definePackages: spec\n \n \tspec\n \t\tpackage: 'TreeSitter';\n \t\tpackage: 'TreeSitter-Tests' with: [\n \t\t\tspec requires:\n\t\t\t\t\t#( 'TreeSitter' 'TreeSitter-Python' 'TreeSitter-Groovy'\n\t\t\t\t\t 'TreeSitter-Typescript'...
931
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st
definePackages: spec spec package: 'TreeSitter'; package: 'TreeSitter-Tests' with: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' 'TreeSitter-Groovy' 'TreeSitter-Typescript' ) ]; package: 'TreeSitter-Groovy' with: [ spec requires: #( 'TreeSitter' ) ]; package: 'TreeSitter-Pyt...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "definePackages: spec\n \n \tspec\n \t\tpackage: 'TreeSitter';\n \t\tpackage: 'TreeSitter-Tests' with: [\n \t\t\tspec requires:\n \t\t\t\t\t#( 'TreeSitter' 'TreeSitter-Python' 'TreeSitter-Groovy'\n \t\t\t\t\t 'TreeSitter-Typescrip...
932
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
cLibraryExists ^ (self vmLibrariesDirectory / self cLibraryName) asFileReference exists
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 5, "prefix": "cLibraryExists\n\n\t^ (self vmLibrariesDirectory /", "suffix": "", "completion": " self cLibraryName)\n\t\t asFileReference exists" }
933
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
cLibraryExistsInDocuments ^ (self originalLibrariesDirectory asFileReference / self cLibraryName) asFileReference exists
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 10, "prefix": "cLibraryExistsInDocuments\n\n\t^", "suffix": "", "completion": " (self originalLibrariesDirectory asFileReference / self cLibraryName)\n\t\t asFileReference exists" }
934
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
cLibraryName ^ self libraryName: 'tree-sitter-c'.
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "cLibraryName\n\n\t^", "suffix": ".", "completion": " self libraryName: 'tree-sitter-c'" }
935
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
cloneTreeSitterC | clonePath cloneCommand status | "Construct clone path" clonePath := self originalLibrariesDirectory , '/tree-sitter-c'. "Execute clone command" cloneCommand := 'git clone https://github.com/tree-sitter/tree-sitter-c.git ' , clonePath. self logInTranscript: 'Start cloning T...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "cloneTreeSitterC\n\n\t| clonePath cloneCommand status |\n\t\"Construct clone path\"\n\tclonePath :=", "suffix": ".\n\n\t\"Execute clone command\"\n\tcloneCommand := 'git clone https://github.com/tree-sitter/tree-sitter-c.git '\n\t ...
936
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
cloneTreeSitterC | clonePath cloneCommand status | "Construct clone path" clonePath := self originalLibrariesDirectory , '/tree-sitter-c'. "Execute clone command" cloneCommand := 'git clone https://github.com/tree-sitter/tree-sitter-c.git ' , clonePath. self logInTranscript: 'Start cloning T...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 5, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "cloneTreeSitterC\n\n\t| clonePath cloneCommand status |\n\t\"Construct clone path\"\n\tclonePath := self originalLibrariesDirectory , '/tree-sitter-c'.\n\n\t\"Execute clone command\"\n\tcloneCommand := 'git clone https://github.com...
937
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
cloneTreeSitterC | clonePath cloneCommand status | "Construct clone path" clonePath := self originalLibrariesDirectory , '/tree-sitter-c'. "Execute clone command" cloneCommand := 'git clone https://github.com/tree-sitter/tree-sitter-c.git ' , clonePath. self logInTranscript: 'Start cloning T...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 3, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "cloneTreeSitterC\n\n\t| clonePath cloneCommand status |\n\t\"Construct clone path\"\n\tclonePath := self originalLibrariesDirectory , '/tree-sitter-c'.\n\n\t\"Execute clone command\"\n\tcloneCommand := 'git clone https://github.com/tree...
938
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
ensureCLibraryExists self cLibraryExists ifFalse: [ self cLibraryExistsInDocuments ifFalse: [ self cloneTreeSitterC ; generateTreeSitterCLibraries ]. self moveCLibraryToPharoVM ]
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "ensureCLibraryExists\n\n\tself cLibraryExists ifFalse: [\n\t\tself cLibraryExistsInDocuments ifFalse: [\n\t\t\tself\n\t\t\t\tcloneTreeSitterC", "suffix": "", "completion": " ;\n\t\t\t\tgenerateTreeSitterCLibraries ].\n\t\tself ...
939
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
ensureCLibraryExists self cLibraryExists ifFalse: [ self cLibraryExistsInDocuments ifFalse: [ self cloneTreeSitterC ; generateTreeSitterCLibraries ]. self moveCLibraryToPharoVM ]
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "ensureCLibraryExists\n\n\tself cLibraryExists ifFalse: [\n\t\tself", "suffix": ".\n\t\tself moveCLibraryToPharoVM ]", "completion": " cLibraryExistsInDocuments ifFalse: [\n\t\t\tself\n\t\t\t\tcloneTreeSitterC ;\n\t\t\t\tgenerat...
940
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
ensureCLibraryExists self cLibraryExists ifFalse: [ self cLibraryExistsInDocuments ifFalse: [ self cloneTreeSitterC ; generateTreeSitterCLibraries ]. self moveCLibraryToPharoVM ]
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 2, "mask_type": "cascade", "n_masked_tokens": 3, "prefix": "ensureCLibraryExists\n\n\tself cLibraryExists ifFalse: [\n\t\tself cLibraryExistsInDocuments ifFalse: [\n\t\t\tself", "suffix": " ].\n\t\tself moveCLibraryToPharoVM ]", "completion": "\n\t\t\t\tcloneTreeSitterC ;\n\t\t\t\tgenerateTreeS...
941
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesC.class.st
moveCLibraryToPharoVM self moveLibrary: self cLibraryName from: '/tree-sitter-c/'
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "moveCLibraryToPharoVM\n\n\tself moveLibrary: self", "suffix": "", "completion": " cLibraryName from: '/tree-sitter-c/'" }
942
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdLinuxTreeSitterPython | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command , ' && gcc -fPIC -shared -o tree-sitter-c.so src/parser.c src/scanner.c'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "cmdLinuxTreeSitterPython\n\n\t| path command |\n\tpath :=", "suffix": ".\n\tcommand := 'cd ' , path.\n\tcommand := command , ' && gcc -fPIC -shared -o tree-sitter-c.so src/parser.c src/scanner.c'.\n\n\t^ command", "completion": " TS...
943
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdLinuxTreeSitterPython | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command , ' && gcc -fPIC -shared -o tree-sitter-c.so src/parser.c src/scanner.c'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "cmdLinuxTreeSitterPython\n\n\t| path command |\n\tpath := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'.\n\tcommand :=", "suffix": ".\n\tcommand := command , ' && gcc -fPIC -shared -o tree-sitter-c.so src/parser.c src/...
944
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdLinuxTreeSitterPython | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command , ' && gcc -fPIC -shared -o tree-sitter-c.so src/parser.c src/scanner.c'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "cmdLinuxTreeSitterPython\n\n\t| path command |\n\tpath := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'.\n\tcommand := 'cd ' , path.\n\tcommand :=", "suffix": ".\n\n\t^ command", "completion": " command , ' && gcc -f...
945
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdMacTreeSitterC | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command, '&& gcc -shared -o tree-sitter-c.dylib src/parser.c src/scanner.c -fPIC -dynamiclib'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "cmdMacTreeSitterC\n\t| path command |\n\t\n\tpath := TSLibraries new", "suffix": ".\n\tcommand := 'cd ' , path.\n\tcommand := command, '&& gcc -shared -o tree-sitter-c.dylib src/parser.c src/scanner.c -fPIC -dynamiclib'.\n\t\n\t^ comm...
946
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdMacTreeSitterC | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command, '&& gcc -shared -o tree-sitter-c.dylib src/parser.c src/scanner.c -fPIC -dynamiclib'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "cmdMacTreeSitterC\n\t| path command |\n\t\n\tpath := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'.\n\tcommand :=", "suffix": ".\n\tcommand := command, '&& gcc -shared -o tree-sitter-c.dylib src/parser.c src/scanner.c ...
947
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdMacTreeSitterC | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command, '&& gcc -shared -o tree-sitter-c.dylib src/parser.c src/scanner.c -fPIC -dynamiclib'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "cmdMacTreeSitterC\n\t| path command |\n\t\n\tpath := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'.\n\tcommand := 'cd ' , path.\n\tcommand :=", "suffix": ".\n\t\n\t^ command", "completion": " command, '&& gcc -shared...
948
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdWindowsTreeSitterC | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command , '&& gcc -shared -o tree-sitter-c.dll src/parser.c src/scanner.c'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 6, "prefix": "cmdWindowsTreeSitterC\n\n\t| path command |\n\tpath", "suffix": ".\n\tcommand := 'cd ' , path.\n\tcommand := command\n\t ,\n\t '&& gcc -shared -o tree-sitter-c.dll src/parser.c src/scanner.c'.\n\n\t^ command", "c...
949
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdWindowsTreeSitterC | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command , '&& gcc -shared -o tree-sitter-c.dll src/parser.c src/scanner.c'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "cmdWindowsTreeSitterC\n\n\t| path command |\n\tpath := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'.\n\tcommand :=", "suffix": ".\n\tcommand := command\n\t ,\n\t '&& gcc -shared -o tree-sitter-c.dl...
950
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Libraries/TSLibrariesCommandLinesC.class.st
cmdWindowsTreeSitterC | path command | path := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'. command := 'cd ' , path. command := command , '&& gcc -shared -o tree-sitter-c.dll src/parser.c src/scanner.c'. ^ command
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "cmdWindowsTreeSitterC\n\n\t| path command |\n\tpath := TSLibraries new originalLibrariesDirectory , '/tree-sitter-c'.\n\tcommand := 'cd ' , path.\n\tcommand :=", "suffix": ".\n\n\t^ command", "completion": " command\n\t ,\...
951
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Tests/TSLanguageCTest.class.st
setUp super setUp. parser := TSParser new. cLanguage := TSLanguage c. parser language: cLanguage.
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser", "suffix": ".\n\tcLanguage := TSLanguage c.\n\tparser language: cLanguage.", "completion": " := TSParser new" }
952
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Tests/TSLanguageCTest.class.st
setUp super setUp. parser := TSParser new. cLanguage := TSLanguage c. parser language: cLanguage.
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser := TSParser new.\n\tcLanguage", "suffix": ".\n\tparser language: cLanguage.", "completion": " := TSLanguage c" }
953
https://github.com/Evref-BL/Pharo-Tree-Sitter
fa6be68798f10658a74cc69fb250435bdc0b18ad
src/TreeSitter-Tests/TSLanguageCTest.class.st
testCollectAllSymbolOfOneSymbolType self assert: (parser language symbolsOfType: TSSymbolType tssymboltyperegular) size equals: 130
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalParsing-Type...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testCollectAllSymbolOfOneSymbolType\n\n\tself\n\t\tassert:\n\t\t(parser language symbolsOfType: TSSymbolType tssymboltyperegular", "suffix": "", "completion": ")\n\t\t\tsize\n\t\tequals: 130" }
954
https://github.com/Evref-BL/Pharo-Tree-Sitter
01cfebe156a63f38e6dfbaa684d5dacc8ca97bda
src/TreeSitter-Libraries/TSLibrariesC.class.st
generateTreeSitterCLibraries | command status cmdLines | cmdLines := TSLibrariesCommandLinesC new. self isMacOS ifTrue: [ command := cmdLines cmdMacTreeSitterC ] ifFalse: [ self isWindows ifTrue: [ command := cmdLines cmdWindowsTreeSitterC ] ifFalse: [ command := cmdLines cmdLinuxTreeSitterC ] ]. s...
[]
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "generateTreeSitterCLibraries\n\n\t| command status cmdLines |\n\tcmdLines", "suffix": ".\n\tself isMacOS\n\t\tifTrue: [ command := cmdLines cmdMacTreeSitterC ]\n\t\tifFalse: [\n\t\t\tself isWindows\n\t\t\t\tifTrue: [ command := cmdLin...
955
https://github.com/Evref-BL/Pharo-Tree-Sitter
01cfebe156a63f38e6dfbaa684d5dacc8ca97bda
src/TreeSitter-Libraries/TSLibrariesC.class.st
generateTreeSitterCLibraries | command status cmdLines | cmdLines := TSLibrariesCommandLinesC new. self isMacOS ifTrue: [ command := cmdLines cmdMacTreeSitterC ] ifFalse: [ self isWindows ifTrue: [ command := cmdLines cmdWindowsTreeSitterC ] ifFalse: [ command := cmdLines cmdLinuxTreeSitterC ] ]. s...
[]
{ "fim_idx": 5, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "generateTreeSitterCLibraries\n\n\t| command status cmdLines |\n\tcmdLines := TSLibrariesCommandLinesC new.\n\tself isMacOS\n\t\tifTrue: [ command := cmdLines cmdMacTreeSitterC ]\n\t\tifFalse: [\n\t\t\tself isWindows\n\t\t\t\tifTrue: [ c...
956
https://github.com/Evref-BL/Pharo-Tree-Sitter
01cfebe156a63f38e6dfbaa684d5dacc8ca97bda
src/TreeSitter-Libraries/TSLibrariesC.class.st
generateTreeSitterCLibraries | command status cmdLines | cmdLines := TSLibrariesCommandLinesC new. self isMacOS ifTrue: [ command := cmdLines cmdMacTreeSitterC ] ifFalse: [ self isWindows ifTrue: [ command := cmdLines cmdWindowsTreeSitterC ] ifFalse: [ command := cmdLines cmdLinuxTreeSitterC ] ]. s...
[]
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "generateTreeSitterCLibraries\n\n\t| command status cmdLines |\n\tcmdLines := TSLibrariesCommandLinesC new.\n\tself isMacOS\n\t\tifTrue: [ command := cmdLines cmdMacTreeSitterC ]\n\t\tifFalse: [\n\t\t\tself isWindows\n\t\t\t\tifTrue...
957
https://github.com/Evref-BL/Pharo-Tree-Sitter
cc95675d960b1395cdfa2653832dbf2554c9c295
src/TreeSitter-C/TSCLibrary.class.st
macLibraryName "Users should use unix32* or unix64*" ^ FFIMacLibraryFinder findAnyLibrary: #( 'tree-sitter-c.dylib' )
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Libraries/TSLibrariesTypescript.class.st", "code": "TSLibraries subclass: #TSLibrariesTypescript\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/Tr...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "macLibraryName\n\t\"Users should use unix32* or unix64*\"\n\n\t^ FFIMacLibraryFinder", "suffix": "", "completion": " findAnyLibrary: #( 'tree-sitter-c.dylib' )" }
958
https://github.com/Evref-BL/Pharo-Tree-Sitter
cc95675d960b1395cdfa2653832dbf2554c9c295
src/TreeSitter-C/TSCLibrary.class.st
tree_sitter_c ^ self ffiCall: 'TSLanguage * tree_sitter_c ()'
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Libraries/TSLibrariesTypescript.class.st", "code": "TSLibraries subclass: #TSLibrariesTypescript\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/Tr...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "tree_sitter_c\n\n\t^", "suffix": "", "completion": " self ffiCall: 'TSLanguage * tree_sitter_c ()'" }
959
https://github.com/Evref-BL/Pharo-Tree-Sitter
cc95675d960b1395cdfa2653832dbf2554c9c295
src/TreeSitter-C/TSCLibrary.class.st
unix64LibraryName "Users should use unix32* or unix64*" ^ FFIUnix64LibraryFinder findAnyLibrary: #( 'tree-sitter-c.so' )
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Libraries/TSLibrariesTypescript.class.st", "code": "TSLibraries subclass: #TSLibrariesTypescript\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/Tr...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "unix64LibraryName\n\t\"Users should use unix32* or unix64*\"\n\n\t^ FFIUnix64LibraryFinder findAnyLibrary:", "suffix": "", "completion": "\n\t\t #( 'tree-sitter-c.so' )" }
960
https://github.com/Evref-BL/Pharo-Tree-Sitter
cc95675d960b1395cdfa2653832dbf2554c9c295
src/TreeSitter-C/TSCLibrary.class.st
win32LibraryName ^ FFIWindowsLibraryFinder findAnyLibrary: #( 'tree-sitter-c.dll' )
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Libraries/TSLibrariesTypescript.class.st", "code": "TSLibraries subclass: #TSLibrariesTypescript\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/Tr...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "win32LibraryName\n\n\t^ FFIWindowsLibraryFinder", "suffix": "", "completion": " findAnyLibrary: #( 'tree-sitter-c.dll' )" }
961
https://github.com/Evref-BL/Pharo-Tree-Sitter
cc95675d960b1395cdfa2653832dbf2554c9c295
src/TreeSitter-C/TSLanguage.extension.st
c ^ TSCLibrary uniqueInstance tree_sitter_c
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Libraries/TSLibrariesTypescript.class.st", "code": "TSLibraries subclass: #TSLibrariesTypescript\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/Tr...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "c\n\t \n\t^", "suffix": "", "completion": " TSCLibrary uniqueInstance tree_sitter_c" }
962
https://github.com/Evref-BL/Pharo-Tree-Sitter
a81f9c6f39847de58e6630b6bf0d9fdacbd91087
src/TreeSitter-Libraries/TSLibraries.class.st
librariesLocationInDocuments self isWindows ifTrue: [ ^ '\tree-sitter\lib\build\'. ] ifFalse: [ ^ '\tree-sitter\' ]
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter/TSTreeCursor.class.st", "code": "FFIStructure subclass: #TSTreeCursor\n\tinstanceVariableNames: ''\n\tclassVariableNames: 'OFFSET_CONTEXT0 OFFSET_CONTEXT1 OFFSET_CONTEXT2 OFFSET_ID OFFSET_TREE'\n\tpackage: 'TreeSitter'" }, { "filepath": "rep...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "librariesLocationInDocuments\n\n\tself isWindows ifTrue:", "suffix": "", "completion": " [ \n\t\t\t^ '\\tree-sitter\\lib\\build\\'.\t\t\n\t\t ] ifFalse: [ \n\t\t\t^ '\\tree-sitter\\'\n\t\t ]" }
963
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9d20607f5d1d5563eceb3e3b653a78a559409ab
src/TreeSitter-Libraries/TSLibrariesCommandLines.class.st
tsBuildCommandForMacAndLinux: tsFolderName "Tree-Sitter and its grammars already have a Makefile that makes the library building process easy, with just the make command at the root of tree-sitter or the grammar." | path command | path := TSLibraries new originalLibrariesDirectory , tsFolderName. command := 'cd ' ,...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSCLibrary.class.st", "code": "FFILibrary subclass: #TSCLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-C'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSCLibrary.class.st", "c...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 5, "prefix": "tsBuildCommandForMacAndLinux: tsFolderName\n\t\"Tree-Sitter and its grammars already have a Makefile that makes the library building process easy, with just the make command at the root of tree-sitter or the grammar.\"\n\t| path command...
964
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9d20607f5d1d5563eceb3e3b653a78a559409ab
src/TreeSitter-Libraries/TSLibrariesCommandLines.class.st
tsBuildCommandForMacAndLinux: tsFolderName "Tree-Sitter and its grammars already have a Makefile that makes the library building process easy, with just the make command at the root of tree-sitter or the grammar." | path command | path := TSLibraries new originalLibrariesDirectory , tsFolderName. command := 'cd ' ,...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSCLibrary.class.st", "code": "FFILibrary subclass: #TSCLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-C'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSCLibrary.class.st", "c...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "tsBuildCommandForMacAndLinux: tsFolderName\n\t\"Tree-Sitter and its grammars already have a Makefile that makes the library building process easy, with just the make command at the root of tree-sitter or the grammar.\"\n\t| path command...
965
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9d20607f5d1d5563eceb3e3b653a78a559409ab
src/TreeSitter-Libraries/TSLibrariesCommandLines.class.st
tsBuildCommandForMacAndLinux: tsFolderName "Tree-Sitter and its grammars already have a Makefile that makes the library building process easy, with just the make command at the root of tree-sitter or the grammar." | path command | path := TSLibraries new originalLibrariesDirectory , tsFolderName. command := 'cd ' ,...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSCLibrary.class.st", "code": "FFILibrary subclass: #TSCLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-C'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSCLibrary.class.st", "c...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "tsBuildCommandForMacAndLinux: tsFolderName\n\t\"Tree-Sitter and its grammars already have a Makefile that makes the library building process easy, with just the make command at the root of tree-sitter or the grammar.\"\n\t| path command...
966
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9d20607f5d1d5563eceb3e3b653a78a559409ab
src/TreeSitter-Tests/TSParserCTest.class.st
setUp super setUp. parser := TSParser new. cLanguage := TSLanguage python. parser language: cLanguage
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSLanguage.extension.st", "code": "c...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser", "suffix": ".\n\tcLanguage := TSLanguage python.\n\tparser language: cLanguage", "completion": " := TSParser new" }
967
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9d20607f5d1d5563eceb3e3b653a78a559409ab
src/TreeSitter-Tests/TSParserCTest.class.st
setUp super setUp. parser := TSParser new. cLanguage := TSLanguage python. parser language: cLanguage
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSLanguage.extension.st", "code": "c...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tsuper setUp.\n\n\tparser := TSParser new.\n\tcLanguage", "suffix": ".\n\tparser language: cLanguage", "completion": " := TSLanguage python" }
968
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9d20607f5d1d5563eceb3e3b653a78a559409ab
src/TreeSitter-Tests/TSParserCTest.class.st
testPositionEndPointInString | string tree | string := 'printf("Hello, I''m C!"); //comment'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. self assert: (string positionFromTSPoint: ...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSLanguage.extension.st", "code": "c...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 9, "prefix": "testPositionEndPointInString\n\n\t| string tree |\n\tstring := 'printf(\"Hello, I''m C!\"); //comment'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser:", "suffix": ".\n\tself\n\t\tassert: (string positionFromTSPoint:\n\t...
969
https://github.com/Evref-BL/Pharo-Tree-Sitter
b9d20607f5d1d5563eceb3e3b653a78a559409ab
src/TreeSitter-Tests/TSParserCTest.class.st
testPositionEndPointInString | string tree | string := 'printf("Hello, I''m C!"); //comment'. tree := TSLibrary uniqueInstance ts_parser: parser _parse_string: string ofLength: string size usingOldTree: ExternalAddress null. self assert: (string positionFromTSPoint: ...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSLanguage.extension.st", "code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-C/TSLanguage.extension.st", "code": "c...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "testPositionEndPointInString\n\n\t| string tree |\n\tstring := 'printf(\"Hello, I''m C!\"); //comment'.\n\n\ttree := TSLibrary uniqueInstance\n\t\t ts_parser: parser\n\t\t _parse_string: string\n\t\t ofLength: ...
970
https://github.com/Evref-BL/Pharo-Tree-Sitter
fafb0747d0f93f35e95b495ee885d6c1eac30ca4
src/TreeSitter-Tests/TSLanguageCTest.class.st
testCNumberOfSymbol self assert: parser language symbolCount equals: 363
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptLongTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptLongTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalPars...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "testCNumberOfSymbol\n\n\tself", "suffix": "", "completion": " assert: parser language symbolCount equals: 363" }
971
https://github.com/Evref-BL/Pharo-Tree-Sitter
10dad51207fa84037c0a58fbab0efd4a21d75687
src/TreeSitter-Tests/TSLanguageCTest.class.st
setUp super setUp. self timeLimit: 120 seconds. parser := TSParser new. cLanguage := TSLanguage cLang. parser language: cLanguage
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptLongTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptLongTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalPars...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "setUp\n \n \tsuper setUp.\n\tself", "suffix": ".\n \n \tparser := TSParser new.\n \tcLanguage := TSLanguage cLang.\n\tparser language: cLanguage", "completion": " timeLimit: 120 seconds" }
972
https://github.com/Evref-BL/Pharo-Tree-Sitter
10dad51207fa84037c0a58fbab0efd4a21d75687
src/TreeSitter-Tests/TSParserCTest.class.st
setUp super setUp. self timeLimit: 120 seconds. parser := TSParser new. cLanguage := TSLanguage cLang. parser language: cLanguage
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Tests/TSIncrementalParsingTypescriptLongTest.class.st", "code": "TestCase subclass: #TSIncrementalParsingTypescriptLongTest\n\tinstanceVariableNames: 'parser typescriptLanguage'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Tests-IncrementalPars...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "setUp\n \n \tsuper setUp.\n\tself", "suffix": ".\n \n \tparser := TSParser new.\n \tcLanguage := TSLanguage cLang.\n \tparser language: cLanguage", "completion": " timeLimit: 120 seconds" }
973
https://github.com/Evref-BL/Pharo-Tree-Sitter
72956a73e85cacc43456af5abd6384ba3965a342
src/TreeSitter-C/TSLanguage.extension.st
cLang ^ TSCLibrary uniqueInstance tree_sitter_c
[]
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "cLang\n\t \n\t^", "suffix": "", "completion": " TSCLibrary uniqueInstance tree_sitter_c" }
974
https://github.com/Evref-BL/Pharo-Tree-Sitter
56a7ac6c78f5fe570d304b0cf3600e840450c77c
src/TreeSitter-Tests/TSInspectorTest.class.st
testTreeShowsCorrectlyOnInspect | code parser ast presenter | code := ' int main(){ printf("Hello"); } '. parser := TSParser new. parser language: TSLanguage cLang. ast := (parser parseString: code) rootNode. "inspect the ast inside a presenter" presenter := ast tsTreeExtension: (SpPresen...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Libraries/TSLibrariesCommandLinesPython.class.st", "code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesPython\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'" }, { "filepath": "repo_cl...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testTreeShowsCorrectlyOnInspect\n\n\t| code parser ast presenter |\n\tcode := '\n\t\tint main(){\n\t\tprintf(\"Hello\");\n\t}\n\t'.\n\tparser := TSParser new.\n\tparser", "suffix": ".\n\tast := (parser parseString: code) rootNode...
975
https://github.com/Evref-BL/Pharo-Tree-Sitter
56a7ac6c78f5fe570d304b0cf3600e840450c77c
src/TreeSitter-Tests/TSInspectorTest.class.st
testTreeShowsCorrectlyOnInspect | code parser ast presenter | code := ' int main(){ printf("Hello"); } '. parser := TSParser new. parser language: TSLanguage cLang. ast := (parser parseString: code) rootNode. "inspect the ast inside a presenter" presenter := ast tsTreeExtension: (SpPresen...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Libraries/TSLibrariesCommandLinesPython.class.st", "code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesPython\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'" }, { "filepath": "repo_cl...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testTreeShowsCorrectlyOnInspect\n\n\t| code parser ast presenter |\n\tcode := '\n\t\tint main(){\n\t\tprintf(\"Hello\");\n\t}\n\t'.\n\tparser := TSParser new.\n\tparser language: TSLanguage cLang.\n\tast := (parser parseString: cod...
976
https://github.com/Evref-BL/Pharo-Tree-Sitter
56a7ac6c78f5fe570d304b0cf3600e840450c77c
src/TreeSitter-Tests/TSInspectorTest.class.st
testTreeShowsCorrectlyOnInspect | code parser ast presenter | code := ' int main(){ printf("Hello"); } '. parser := TSParser new. parser language: TSLanguage cLang. ast := (parser parseString: code) rootNode. "inspect the ast inside a presenter" presenter := ast tsTreeExtension: (SpPresen...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Libraries/TSLibrariesCommandLinesPython.class.st", "code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesPython\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'" }, { "filepath": "repo_cl...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "testTreeShowsCorrectlyOnInspect\n\n\t| code parser ast presenter |\n\tcode := '\n\t\tint main(){\n\t\tprintf(\"Hello\");\n\t}\n\t'.\n\tparser", "suffix": ".\n\tparser language: TSLanguage cLang.\n\tast := (parser parseString: code) ro...
977
https://github.com/Evref-BL/Pharo-Tree-Sitter
ecd1e6dba0e4018e0c643b4b698ebee42e8fe62d
src/TreeSitter-FAST-Utils/TSFASTImporter.class.st
instantiateFastEntityFrom: aTSNode | fast children | fast := [ ('FAST' , self languageName , aTSNode type capitalized asClassInEnvironment: self class environment) new. ] on: Error do: [ ('FAST' , self languageName , aTSNode type pascalized asClassInEnvironment: self class envir...
[]
{ "fim_idx": 0, "mask_type": "unary_message", "n_masked_tokens": 5, "prefix": "instantiateFastEntityFrom: aTSNode\n \n \t| fast children |\n\t\n\tfast := [\n \t('FAST' , self languageName , aTSNode type capitalized\n \t\t asClassInEnvironment: self class environment) new.\n\t] on: Error do: [\n ('...
978
https://github.com/Evref-BL/Pharo-Tree-Sitter
912a818703341e869a6699d041bd1cf0bc611bb6
src/TreeSitter-FAST-Utils/String.extension.st
pascalized "Remove _ and capitalizes the first letter after" "'abc' pascalized >>> 'Abc'" ^ String streamContents: [ :stream | (self findTokens: '_') do: [ :each | stream nextPutAll: each capitalized ] ]
[]
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "pascalized\n\n\t\"Remove _ and capitalizes the first letter after\"\n\t\n\t\"'abc' pascalized >>> 'Abc'\"\n\t \n ^ String streamContents: [ :stream |\n (self findTokens: '_') do: [ :", "suffix": "", "completion": "each |\n ...
979
https://github.com/Evref-BL/Pharo-Tree-Sitter
912a818703341e869a6699d041bd1cf0bc611bb6
src/TreeSitter-FAST-Utils/String.extension.st
pascalized "Remove _ and capitalizes the first letter after" "'abc' pascalized >>> 'Abc'" ^ String streamContents: [ :stream | (self findTokens: '_') do: [ :each | stream nextPutAll: each capitalized ] ]
[]
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "pascalized\n\n\t\"Remove _ and capitalizes the first letter after\"\n\t\n\t\"'abc' pascalized >>> 'Abc'\"\n\t \n ^ String streamContents: [ :stream |\n (self findTokens: '_') do: [ :each |", "suffix": "\n ]", "comp...
980
https://github.com/Evref-BL/Pharo-Tree-Sitter
912a818703341e869a6699d041bd1cf0bc611bb6
src/TreeSitter-FAST-Utils/String.extension.st
pascalized "Remove _ and capitalizes the first letter after" "'abc' pascalized >>> 'Abc'" ^ String streamContents: [ :stream | (self findTokens: '_') do: [ :each | stream nextPutAll: each capitalized ] ]
[]
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "pascalized\n\n\t\"Remove _ and capitalizes the first letter after\"\n\t\n\t\"'abc' pascalized >>> 'Abc'\"\n\t \n ^ String streamContents: [ :stream |\n (self findTokens: '_') do: [ :each |\n stream", "suffix"...
981
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolExplorerPreesenter.class.st
connectPresenters super connectPresenters. symbolList whenSelectionChangedDo: [ :selection | | parents | parents := Set new. symbolDictionary keysAndValuesDo: [ :symbol :children | (children includes: symbol) ifTrue: [ parents add: symbol ] ]. childrenList items: (symbolDictionary at: selection selected...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 5, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "connectPresenters\n\n\tsuper connectPresenters.\n\n\tsymbolList whenSelectionChangedDo: [ :selection |\n\t\t\t| parents |\n\t\t\tparents := Set new.\n\t\t\tsymbolDictionary keysAndValuesDo: [ :symbol :children | (children includes:...
982
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolExplorerPreesenter.class.st
connectPresenters super connectPresenters. symbolList whenSelectionChangedDo: [ :selection | | parents | parents := Set new. symbolDictionary keysAndValuesDo: [ :symbol :children | (children includes: symbol) ifTrue: [ parents add: symbol ] ]. childrenList items: (symbolDictionary at: selection selected...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "connectPresenters\n\n\tsuper connectPresenters.\n\n\tsymbolList whenSelectionChangedDo: [ :selection |\n\t\t\t| parents |\n\t\t\tparents := Set new.\n\t\t\tsymbolDictionary keysAndValuesDo: [ :symbol :children | (children includes:...
983
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolExplorerPreesenter.class.st
connectPresenters super connectPresenters. symbolList whenSelectionChangedDo: [ :selection | | parents | parents := Set new. symbolDictionary keysAndValuesDo: [ :symbol :children | (children includes: symbol) ifTrue: [ parents add: symbol ] ]. childrenList items: (symbolDictionary at: selection selected...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "connectPresenters\n\n\tsuper connectPresenters.\n\n\tsymbolList whenSelectionChangedDo: [ :selection |\n\t\t\t| parents |\n\t\t\tparents", "suffix": ".\n\t\t\tsymbolDictionary keysAndValuesDo: [ :symbol :children | (children includes:...
984
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolExplorerPreesenter.class.st
defaultLayout ^ SpBoxLayout newLeftToRight spacing: 3; add: (SpBoxLayout newTopToBottom add: 'Symbols' expand: false; add: symbolList); add: (SpBoxLayout newTopToBottom add: 'Possible children' expand: false; add: childrenList); add: (SpBoxLayout newTopToBottom add: ...
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 10, "prefix": "defaultLayout\n\n\t^ SpBoxLayout newLeftToRight\n\t\t spacing: 3;\n\t\t add: (SpBoxLayout newTopToBottom\n\t\t\t\t add: 'Symbols' expand: false;\n\t\t\t\t add: symbolList);\n\t\t add: (SpBoxLayout newTopToBottom\n\t\t\t\t add: 'Po...
985
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolExplorerPreesenter.class.st
initializePresenters super initializePresenters. symbolList := self newList. childrenList := self newList. parentsList := self newList. symbolList items: symbolDictionary keys
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "initializePresenters\n\n\tsuper initializePresenters.\n\n\tsymbolList", "suffix": ".\n\tchildrenList := self newList.\n\tparentsList := self newList.\n\n\tsymbolList items: symbolDictionary keys", "completion": " := self newList" }
986
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolExplorerPreesenter.class.st
initializePresenters super initializePresenters. symbolList := self newList. childrenList := self newList. parentsList := self newList. symbolList items: symbolDictionary keys
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "initializePresenters\n\n\tsuper initializePresenters.\n\n\tsymbolList := self newList.\n\tchildrenList := self newList.\n\tparentsList", "suffix": ".\n\n\tsymbolList items: symbolDictionary keys", "completion": " := self newList" }
987
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolExplorerPreesenter.class.st
initializePresenters super initializePresenters. symbolList := self newList. childrenList := self newList. parentsList := self newList. symbolList items: symbolDictionary keys
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "initializePresenters\n\n\tsuper initializePresenters.\n\n\tsymbolList := self newList.\n\tchildrenList", "suffix": ".\n\tparentsList := self newList.\n\n\tsymbolList items: symbolDictionary keys", "completion": " := self newList" }
988
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
language: aTSLanguage extensions: aCollection buildOn: aFileReference ^ self new language: aTSLanguage; extensions: aCollection; buildOn: aFileReference
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 7, "prefix": "language: aTSLanguage extensions: aCollection buildOn: aFileReference\n\n\t^ self new\n\t\t language:", "suffix": "", "completion": " aTSLanguage;\n\t\t extensions: aCollection;\n\t\t buildOn: aFileReference" }
989
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
buildOn: aFileReference self collectFilesIn: aFileReference. filesToParse do: [ :file | ((TSParser language: self language) parseString: file contents) rootNode accept: self ] displayingProgress: [ :file | file pathString ]. self inspect
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "buildOn: aFileReference\n\n\tself collectFilesIn: aFileReference.\n\n\tfilesToParse\n\t\tdo: [ :file | ((TSParser language: self language) parseString: file contents) rootNode accept: self", "suffix": ".\n\t\t\n\tself inspect", ...
990
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
buildOn: aFileReference self collectFilesIn: aFileReference. filesToParse do: [ :file | ((TSParser language: self language) parseString: file contents) rootNode accept: self ] displayingProgress: [ :file | file pathString ]. self inspect
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "buildOn: aFileReference\n\n\tself collectFilesIn: aFileReference.\n\n\tfilesToParse\n\t\tdo: [ :file | ((TSParser language:", "suffix": " ]\n\t\tdisplayingProgress: [ :file | file pathString ].\n\t\t\n\tself inspect", "complet...
991
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
collectFilesIn: aFileReference ^ aFileReference isFile ifTrue: [ (self extensions includes: aFileReference extension) ifTrue: [ filesToParse add: aFileReference ] ] ifFalse: [ aFileReference children do: [ :child | self collectFilesIn: child ] ]
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 7, "prefix": "collectFilesIn: aFileReference\n\n\t^ aFileReference isFile\n\t\t ifTrue: [ (self extensions includes: aFileReference extension) ifTrue: [ filesToParse add: aFileReference ] ]\n\t\t ifFalse: [ aFileReference children do: [ :", "suffix":...
992
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
collectFilesIn: aFileReference ^ aFileReference isFile ifTrue: [ (self extensions includes: aFileReference extension) ifTrue: [ filesToParse add: aFileReference ] ] ifFalse: [ aFileReference children do: [ :child | self collectFilesIn: child ] ]
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "collectFilesIn: aFileReference\n\n\t^ aFileReference isFile\n\t\t ifTrue: [ (self extensions includes: aFileReference extension)", "suffix": " ]\n\t\t ifFalse: [ aFileReference children do: [ :child | self collectFilesIn: child...
993
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
collectFilesIn: aFileReference ^ aFileReference isFile ifTrue: [ (self extensions includes: aFileReference extension) ifTrue: [ filesToParse add: aFileReference ] ] ifFalse: [ aFileReference children do: [ :child | self collectFilesIn: child ] ]
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "collectFilesIn: aFileReference\n\n\t^ aFileReference isFile\n\t\t ifTrue: [ (self extensions includes: aFileReference extension) ifTrue: [ filesToParse add: aFileReference ] ]\n\t\t ifFalse: [ aFileReference children do: [ :", ...
994
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
initialize super initialize. filesToParse := OrderedCollection new. symbolDictionary := Dictionary new
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "initialize\n\n\tsuper initialize.\n\tfilesToParse", "suffix": ".\n\tsymbolDictionary := Dictionary new", "completion": " := OrderedCollection new" }
995
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
initialize super initialize. filesToParse := OrderedCollection new. symbolDictionary := Dictionary new
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "initialize\n\n\tsuper initialize.\n\tfilesToParse := OrderedCollection new.\n\tsymbolDictionary", "suffix": "", "completion": " := Dictionary new" }
996
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
symbolsInspector: aBuilder <inspectorPresentationOrder: 50 title: 'Symbols explorer'> ^ aBuilder instantiate: TSSymbolExplorerPreesenter on: symbolDictionary
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "symbolsInspector: aBuilder\n\n\t<inspectorPresentationOrder: 50 title: 'Symbols explorer'>\n\t^ aBuilder", "suffix": "", "completion": " instantiate: TSSymbolExplorerPreesenter on: symbolDictionary" }
997
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
visitNode: aTSNode aTSNode collectNamedChild do: [ :subNode | (symbolDictionary at: aTSNode type ifAbsentPut: [ Set new ]) add: subNode type ]. super visitNode: aTSNode
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "visitNode: aTSNode\n\n\taTSNode collectNamedChild do: [ :subNode | (symbolDictionary at: aTSNode type ifAbsentPut:", "suffix": ".\n\tsuper visitNode: aTSNode", "completion": " [ Set new ]) add: subNode type ]" }
998
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st
visitNode: aTSNode aTSNode collectNamedChild do: [ :subNode | (symbolDictionary at: aTSNode type ifAbsentPut: [ Set new ]) add: subNode type ]. super visitNode: aTSNode
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "visitNode: aTSNode\n\n\taTSNode collectNamedChild do: [ :subNode | (symbolDictionary at: aTSNode type ifAbsentPut: [ Set new ])", "suffix": " ].\n\tsuper visitNode: aTSNode", "completion": " add: subNode type" }
999
https://github.com/Evref-BL/Pharo-Tree-Sitter
13018f2fa799110b58d519f553f632a377f370f6
src/TreeSitter/TSParser.class.st
language: aLanguage ^ self new language: aLanguage; yourself
[ { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSPythonLibrary.class.st", "code": "FFILibrary subclass: #TSPythonLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Python'" }, { "filepath": "repo_clone/Pharo-Tree-Sitter/src/TreeSitter-Python/TSP...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "language: aLanguage\n\n\t^ self new\n\t\t language:", "suffix": "", "completion": " aLanguage;\n\t\t yourself" }