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 1 68 | masking dict |
|---|---|---|---|---|---|---|
1,000 | https://github.com/Evref-BL/Pharo-Tree-Sitter | e7d16bb6b47e889b0a5f3a7e70e760e17a57a715 | src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st | field: aSymbol
^ self new
field: aSymbol;
yourself | [
{
"filepath": "src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st",
"code": "Object subclass: #TSFieldExplorerWrapper\n\tinstanceVariableNames: 'field symbols'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st",
"co... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "field: aSymbol\n\n\t^ self new",
"suffix": "",
"completion": "\n\t\t field: aSymbol;\n\t\t yourself"
} |
1,001 | https://github.com/Evref-BL/Pharo-Tree-Sitter | e7d16bb6b47e889b0a5f3a7e70e760e17a57a715 | src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st | initialize
super initialize.
symbols := Set new | [
{
"filepath": "src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st",
"code": "Object subclass: #TSFieldExplorerWrapper\n\tinstanceVariableNames: 'field symbols'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st",
"co... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\tsymbols",
"suffix": "",
"completion": " := Set new"
} |
1,002 | https://github.com/Evref-BL/Pharo-Tree-Sitter | e7d16bb6b47e889b0a5f3a7e70e760e17a57a715 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | connectPresenters
super connectPresenters.
symbolList whenSelectionChangedDo: [ :selection |
| parents |
childrenTree
roots: (symbolDictionary at: selection selectedItem);
expandAll.
parents := Set new.
symbolDictionary keysAndValuesDo: [ :symbol :fields |
(fields anySatisfy: [ :field... | [
{
"filepath": "src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st",
"code": "Object subclass: #TSFieldExplorerWrapper\n\tinstanceVariableNames: 'field symbols'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st",
"co... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 5,
"prefix": "connectPresenters\n \n \tsuper connectPresenters.\n \n \tsymbolList whenSelectionChangedDo: [ :selection |\n \t\t\t| parents |\n\t\t\tchildrenTree\n\t\t\t\troots: (symbolDictionary at:",
"suffix": ".\n\n \t\t\tparents := Set new.\n\t\t\t... |
1,003 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 2b56a94f96a2e55d9bfebe1b3e806d8992293a58 | src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st | visitNode: aTSNode
| fields |
"This needs to be done here and not in the bloc for nodes that cannot have a child"
fields := symbolDictionary at: aTSNode type ifAbsentPut: [ OrderedCollection new ].
aTSNode collectFieldNameOfNamedChild keysAndValuesDo: [ :field :nodes |
| wrap |
wrap := fields
... | [
{
"filepath": "src/TreeSitter-Spec/TSSymbolsBuilderVisitor.class.st",
"code": "TSVisitor subclass: #TSSymbolsBuilderVisitor\n\tinstanceVariableNames: 'language extensions filesToParse symbolDictionary'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
}
] | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 9,
"prefix": "visitNode: aTSNode\n \n\t| fields |\n\t\"This needs to be done here and not in the bloc for nodes that cannot have a child\"\n\tfields :=",
"suffix": ".\n \taTSNode collectFieldNameOfNamedChild keysAndValuesDo: [ :field :nodes |\n\t\t... |
1,004 | https://github.com/Evref-BL/Pharo-Tree-Sitter | c602f8071b122a4c8b3ca38b29c71d56ba41c7b1 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | initializeMenus
childrenTree actions: (SpActionGroup new
addActionWith: [ :anItem |
anItem
name: 'Copy filed items';
actionEnabled: [ childrenTree selectedItem class = TSFieldExplorerWrapper ];
action: [
Clipboard clipboardText: (String streamContents: [ :s | childrenTree select... | [
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st",
"code": "SpPresenter subclass: #TSSymbolExplorerPresenter\n\tinstanceVariableNames: 'symbolDictionary symbolList parentsList childrenTree'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter... | {
"fim_idx": 7,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "initializeMenus\n\n\tchildrenTree actions: (SpActionGroup new\n\t\t\t addActionWith: [ :anItem |\n\t\t\t\t\t anItem\n\t\t\t\t\t\t name: 'Copy filed items';\n\t\t\t\t\t\t actionEnabled: [ childrenTree selectedItem class = TSFieldExp... |
1,005 | https://github.com/Evref-BL/Pharo-Tree-Sitter | c602f8071b122a4c8b3ca38b29c71d56ba41c7b1 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | initializeMenus
childrenTree actions: (SpActionGroup new
addActionWith: [ :anItem |
anItem
name: 'Copy filed items';
actionEnabled: [ childrenTree selectedItem class = TSFieldExplorerWrapper ];
action: [
Clipboard clipboardText: (String streamContents: [ :s | childrenTree select... | [
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st",
"code": "SpPresenter subclass: #TSSymbolExplorerPresenter\n\tinstanceVariableNames: 'symbolDictionary symbolList parentsList childrenTree'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "initializeMenus\n\n\tchildrenTree actions: (SpActionGroup new\n\t\t\t addActionWith: [ :anItem |\n\t\t\t\t\t anItem\n\t\t\t\t\t\t name: 'Copy filed items';\n\t\t\t\t\t\t actionEnabled: [ childrenTree selectedItem class = TSFieldExp... |
1,006 | https://github.com/Evref-BL/Pharo-Tree-Sitter | c602f8071b122a4c8b3ca38b29c71d56ba41c7b1 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | initializeMenus
childrenTree actions: (SpActionGroup new
addActionWith: [ :anItem |
anItem
name: 'Copy filed items';
actionEnabled: [ childrenTree selectedItem class = TSFieldExplorerWrapper ];
action: [
Clipboard clipboardText: (String streamContents: [ :s | childrenTree select... | [
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st",
"code": "SpPresenter subclass: #TSSymbolExplorerPresenter\n\tinstanceVariableNames: 'symbolDictionary symbolList parentsList childrenTree'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "initializeMenus\n\n\tchildrenTree actions: (SpActionGroup new\n\t\t\t addActionWith: [ :anItem |\n\t\t\t\t\t anItem\n\t\t\t\t\t\t name: 'Copy filed items';\n\t\t\t\t\t\t actionEnabled: [ childrenTree selectedItem class = TSFieldExp... |
1,007 | https://github.com/Evref-BL/Pharo-Tree-Sitter | b22b9ee0365cdc69148c3bc969a14da5786bfaf6 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | initializePresenters
super initializePresenters.
symbolList := self newList.
childrenTree := self newTree.
parentsList := self newList.
symbolList
items: symbolDictionary keys;
sortingBlock: #yourself ascending.
parentsList sortingBlock: #yourself ascending.
childrenTree
display: [ :item |
... | [
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st",
"code": "SpPresenter subclass: #TSSymbolExplorerPresenter\n\tinstanceVariableNames: 'symbolDictionary symbolList parentsList childrenTree'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
}
] | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "initializePresenters\n \n \tsuper initializePresenters.\n \tsymbolList := self newList.\n \tchildrenTree := self newTree.\n \tparentsList := self newList.\n \n \tsymbolList\n \t\titems: symbolDictionary keys;\n \t\tsortingBlock: #y... |
1,008 | https://github.com/Evref-BL/Pharo-Tree-Sitter | f01c03fff2a7fea57c909ba026a91f90d27af1d2 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | initializeMenus
childrenTree actions: (SpActionGroup new
addActionWith: [ :anItem |
anItem
name: 'Copy filed items';
actionEnabled: [ childrenTree selectedItem class = TSFieldExplorerWrapper ];
action: [
Clipboard clipboardText: (String streamContents: [ :s | childrenTre... | [
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st",
"code": "SpPresenter subclass: #TSSymbolExplorerPresenter\n\tinstanceVariableNames: 'symbolDictionary symbolList parentsList childrenTree'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
}
] | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "initializeMenus\n \n \tchildrenTree actions: (SpActionGroup new\n \t\t\t addActionWith: [ :anItem |\n \t\t\t\t\t anItem\n \t\t\t\t\t\t name: 'Copy filed items';\n \t\t\t\t\t\t actionEnabled: [ childrenTree selectedItem class = TSFi... |
1,009 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4708159e7b940df16d301a75433cbb8e91ffacc2 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | connectPresenters
super connectPresenters.
symbolList whenSelectionChangedDo: [ :selection |
selection selectedItem
ifNil: [
childrenTree roots: #( ).
parentsList items: #( ).
label label: ''.
code text: 'Nothing to show' ]
ifNotNil: [
| parents |
childrenT... | [
{
"filepath": "src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st",
"code": "Object subclass: #TSFieldExplorerWrapper\n\tinstanceVariableNames: 'field symbolsAndCode isOptional'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "connectPresenters\n \n \tsuper connectPresenters.\n \n \tsymbolList whenSelectionChangedDo: [ :selection |\n \t\t\tselection selectedItem\n \t\t\t\tifNil: [\n \t\t\t\t\t\tchildrenTree roots: #( ).\n\t\t\t\t\t\tparentsList items: #... |
1,010 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4708159e7b940df16d301a75433cbb8e91ffacc2 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | connectPresenters
super connectPresenters.
symbolList whenSelectionChangedDo: [ :selection |
selection selectedItem
ifNil: [
childrenTree roots: #( ).
parentsList items: #( ).
label label: ''.
code text: 'Nothing to show' ]
ifNotNil: [
| parents |
childrenT... | [
{
"filepath": "src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st",
"code": "Object subclass: #TSFieldExplorerWrapper\n\tinstanceVariableNames: 'field symbolsAndCode isOptional'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.... | {
"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\tselection selectedItem\n \t\t\t\tifNil: [\n \t\t\t\t\t\tchildrenTree roots: #( ).\n\t\t\t\t\t\tparentsList items: #... |
1,011 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4708159e7b940df16d301a75433cbb8e91ffacc2 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | connectPresenters
super connectPresenters.
symbolList whenSelectionChangedDo: [ :selection |
selection selectedItem
ifNil: [
childrenTree roots: #( ).
parentsList items: #( ).
label label: ''.
code text: 'Nothing to show' ]
ifNotNil: [
| parents |
childrenT... | [
{
"filepath": "src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st",
"code": "Object subclass: #TSFieldExplorerWrapper\n\tinstanceVariableNames: 'field symbolsAndCode isOptional'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "connectPresenters\n \n \tsuper connectPresenters.\n \n \tsymbolList whenSelectionChangedDo: [ :selection |\n \t\t\tselection selectedItem\n \t\t\t\tifNil: [\n \t\t\t\t\t\tchildrenTree roots: #( ).\n\t\t\t\t\t\tparentsList items: #... |
1,012 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4708159e7b940df16d301a75433cbb8e91ffacc2 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | initializePresenters
super initializePresenters.
symbolList := self newFilteringList.
childrenTree := self newTree.
parentsList := self newFilteringList.
code := self newText.
label := self newLabel.
symbolList
items: symbolDictionary keys;
sortingBlock: #yourself ascending.
parentsList sortingB... | [
{
"filepath": "src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st",
"code": "Object subclass: #TSFieldExplorerWrapper\n\tinstanceVariableNames: 'field symbolsAndCode isOptional'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initializePresenters\n \n \tsuper initializePresenters.\n \tsymbolList := self newFilteringList.\n \tchildrenTree := self newTree.\n \tparentsList := self newFilteringList.\n\tcode",
"suffix": ".\n\tlabel := self newLabel.\n \n \tsymb... |
1,013 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 4708159e7b940df16d301a75433cbb8e91ffacc2 | src/TreeSitter-Spec/TSSymbolExplorerPresenter.class.st | initializePresenters
super initializePresenters.
symbolList := self newFilteringList.
childrenTree := self newTree.
parentsList := self newFilteringList.
code := self newText.
label := self newLabel.
symbolList
items: symbolDictionary keys;
sortingBlock: #yourself ascending.
parentsList sortingB... | [
{
"filepath": "src/TreeSitter-Spec/TSFieldExplorerWrapper.class.st",
"code": "Object subclass: #TSFieldExplorerWrapper\n\tinstanceVariableNames: 'field symbolsAndCode isOptional'\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Spec'"
},
{
"filepath": "src/TreeSitter-Spec/TSSymbolExplorerPresenter.... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initializePresenters\n \n \tsuper initializePresenters.\n \tsymbolList := self newFilteringList.\n \tchildrenTree := self newTree.\n \tparentsList := self newFilteringList.\n\tcode := self newText.\n\tlabel",
"suffix": ".\n \n \tsymbo... |
1,014 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st | cmdLinuxTreeSitterXML
^ self tsBuildCommandForMacAndLinux: '/tree-sitter-xml' | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "cmdLinuxTreeSitterXML\n\n\t^",
"suffix": "",
"completion": " self tsBuildCommandForMacAndLinux: '/tree-sitter-xml'"
} |
1,015 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st | cmdMacTreeSitterXML
^ self tsBuildCommandForMacAndLinux: '/tree-sitter-xml' | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "cmdMacTreeSitterXML\n\n\t^",
"suffix": "",
"completion": " self tsBuildCommandForMacAndLinux: '/tree-sitter-xml'"
} |
1,016 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st | cmdWindowsTreeSitterXML
| path command |
path := TSLibraries new originalLibrariesDirectory
, '/tree-sitter-typescript/xml'.
command := 'cd ' , path.
command := command
,
'&& gcc -shared -o libtree-sitter-xml.dll src/parser.c src/scanner.c'.
^ command | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "cmdWindowsTreeSitterXML\n\n\t| path command |\n\tpath :=",
"suffix": ".\n\n\tcommand := 'cd ' , path.\n\tcommand := command\n\t ,\n\t '&& gcc -shared -o libtree-sitter-xml.dll src/parser.c src/scanner.c'.\n\n\t^ co... |
1,017 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st | cmdWindowsTreeSitterXML
| path command |
path := TSLibraries new originalLibrariesDirectory
, '/tree-sitter-typescript/xml'.
command := 'cd ' , path.
command := command
,
'&& gcc -shared -o libtree-sitter-xml.dll src/parser.c src/scanner.c'.
^ command | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "cmdWindowsTreeSitterXML\n\n\t| path command |\n\tpath := TSLibraries new originalLibrariesDirectory\n\t , '/tree-sitter-typescript/xml'.\n\n\tcommand :=",
"suffix": ".\n\tcommand := command\n\t ,\n\t '&& gcc... |
1,018 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st | cmdWindowsTreeSitterXML
| path command |
path := TSLibraries new originalLibrariesDirectory
, '/tree-sitter-typescript/xml'.
command := 'cd ' , path.
command := command
,
'&& gcc -shared -o libtree-sitter-xml.dll src/parser.c src/scanner.c'.
^ command | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "cmdWindowsTreeSitterXML\n\n\t| path command |\n\tpath := TSLibraries new originalLibrariesDirectory\n\t , '/tree-sitter-typescript/xml'.\n\n\tcommand := 'cd ' , path.\n\tcommand",
"suffix": ".\n\n\t^ command",
"completion": "... |
1,019 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | cloneTreeSitterXML
| clonePath cloneCommand status |
"Construct clone path"
clonePath := self originalLibrariesDirectory , '/tree-sitter-xml'.
"Execute clone command"
cloneCommand := 'git clone https://github.com/tree-sitter-grammars/tree-sitter-xml.git '
, clonePath.
self logInTranscript:
'... | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "cloneTreeSitterXML\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-grammars/tree-sitter-xml.... |
1,020 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | cloneTreeSitterXML
| clonePath cloneCommand status |
"Construct clone path"
clonePath := self originalLibrariesDirectory , '/tree-sitter-xml'.
"Execute clone command"
cloneCommand := 'git clone https://github.com/tree-sitter-grammars/tree-sitter-xml.git '
, clonePath.
self logInTranscript:
'... | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "cloneTreeSitterXML\n\n\t| clonePath cloneCommand status |\n\t\"Construct clone path\"\n\tclonePath := self originalLibrariesDirectory , '/tree-sitter-xml'.\n\n\t\"Execute clone command\"\n\tcloneCommand := 'git clone https://github.com/... |
1,021 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | cloneTreeSitterXML
| clonePath cloneCommand status |
"Construct clone path"
clonePath := self originalLibrariesDirectory , '/tree-sitter-xml'.
"Execute clone command"
cloneCommand := 'git clone https://github.com/tree-sitter-grammars/tree-sitter-xml.git '
, clonePath.
self logInTranscript:
'... | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "cloneTreeSitterXML\n\n\t| clonePath cloneCommand status |\n\t\"Construct clone path\"\n\tclonePath := self originalLibrariesDirectory , '/tree-sitter-xml'.\n\n\t\"Execute clone command\"\n\tcloneCommand :=",
"suffix": ".\n\n\tself log... |
1,022 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | ensureXMLLibraryExists
self xmlLibraryExists ifFalse: [
self xmlLibraryExistsInDocuments ifFalse: [
self
cloneTreeSitterXML ;
generateTreeSitterXMLLibraries ].
self moveXMLLibraryToPharoVM ] | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "ensureXMLLibraryExists\n\n\tself xmlLibraryExists ifFalse: [\n\t\tself xmlLibraryExistsInDocuments ifFalse:",
"suffix": "",
"completion": " [\n\t\t\tself\n\t\t\t\tcloneTreeSitterXML ;\n\t\t\t\tgenerateTreeSitterXMLLibraries ].... |
1,023 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | ensureXMLLibraryExists
self xmlLibraryExists ifFalse: [
self xmlLibraryExistsInDocuments ifFalse: [
self
cloneTreeSitterXML ;
generateTreeSitterXMLLibraries ].
self moveXMLLibraryToPharoVM ] | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "ensureXMLLibraryExists\n\n\tself xmlLibraryExists ifFalse: [\n\t\tself",
"suffix": ".\n\t\tself moveXMLLibraryToPharoVM ]",
"completion": " xmlLibraryExistsInDocuments ifFalse: [\n\t\t\tself\n\t\t\t\tcloneTreeSitterXML ;\n\t\t\... |
1,024 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | ensureXMLLibraryExists
self xmlLibraryExists ifFalse: [
self xmlLibraryExistsInDocuments ifFalse: [
self
cloneTreeSitterXML ;
generateTreeSitterXMLLibraries ].
self moveXMLLibraryToPharoVM ] | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 2,
"mask_type": "cascade",
"n_masked_tokens": 3,
"prefix": "ensureXMLLibraryExists\n\n\tself xmlLibraryExists ifFalse: [\n\t\tself xmlLibraryExistsInDocuments ifFalse: [\n\t\t\tself",
"suffix": " ].\n\t\tself moveXMLLibraryToPharoVM ]",
"completion": "\n\t\t\t\tcloneTreeSitterXML ;\n\t\t\t\tgen... |
1,025 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | generateTreeSitterXMLLibraries
| command status cmdLines |
cmdLines := TSLibrariesCommandLinesXML new.
self isMacOS
ifTrue: [ command := cmdLines cmdMacTreeSitterXML ]
ifFalse: [
self isWindows
ifTrue: [ command := cmdLines cmdWindowsTreeSitterXML ]
ifFalse: [ command := cmdLines cmdLinuxTreeSitterXM... | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "generateTreeSitterXMLLibraries\n\n\t| command status cmdLines |\n\tcmdLines := TSLibrariesCommandLinesXML new.\n\tself isMacOS\n\t\tifTrue: [ command := cmdLines cmdMacTreeSitterXML ]\n\t\tifFalse: [\n\t\t\tself isWindows\n\t\t\t\tifTru... |
1,026 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | generateTreeSitterXMLLibraries
| command status cmdLines |
cmdLines := TSLibrariesCommandLinesXML new.
self isMacOS
ifTrue: [ command := cmdLines cmdMacTreeSitterXML ]
ifFalse: [
self isWindows
ifTrue: [ command := cmdLines cmdWindowsTreeSitterXML ]
ifFalse: [ command := cmdLines cmdLinuxTreeSitterXM... | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 6,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "generateTreeSitterXMLLibraries\n\n\t| command status cmdLines |\n\tcmdLines := TSLibrariesCommandLinesXML new.\n\tself isMacOS\n\t\tifTrue: [ command := cmdLines cmdMacTreeSitterXML ]\n\t\tifFalse: [\n\t\t\tself isWindows\n\t\t\t\tifTru... |
1,027 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | generateTreeSitterXMLLibraries
| command status cmdLines |
cmdLines := TSLibrariesCommandLinesXML new.
self isMacOS
ifTrue: [ command := cmdLines cmdMacTreeSitterXML ]
ifFalse: [
self isWindows
ifTrue: [ command := cmdLines cmdWindowsTreeSitterXML ]
ifFalse: [ command := cmdLines cmdLinuxTreeSitterXM... | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 5,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "generateTreeSitterXMLLibraries\n\n\t| command status cmdLines |\n\tcmdLines := TSLibrariesCommandLinesXML new.\n\tself isMacOS\n\t\tifTrue: [ command := cmdLines cmdMacTreeSitterXML ]\n\t\tifFalse: [\n\t\t\tself isWindows\n\t\t\t\tifTru... |
1,028 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | moveXMLLibraryToPharoVM
self moveLibrary: self xmlLibraryName from: '/tree-sitter-xml/xml/' | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "moveXMLLibraryToPharoVM\n\n\tself",
"suffix": "",
"completion": " moveLibrary: self xmlLibraryName from: '/tree-sitter-xml/xml/'"
} |
1,029 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | xmlLibraryExists
^ (self vmLibrariesDirectory / self xmlLibraryName)
asFileReference exists | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 6,
"prefix": "xmlLibraryExists\n\n\t^ (self vmLibrariesDirectory",
"suffix": "",
"completion": " / self xmlLibraryName)\n\t\t asFileReference exists"
} |
1,030 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | xmlLibraryExistsInDocuments
^ (self originalLibrariesDirectory asFileReference / self xmlLibraryName)
asFileReference exists | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 8,
"prefix": "xmlLibraryExistsInDocuments\n\n\t^ (self",
"suffix": "",
"completion": " originalLibrariesDirectory asFileReference / self xmlLibraryName)\n\t\t asFileReference exists"
} |
1,031 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1cefd9730327dfe07a21acb0bcc7c5973d2f1990 | src/TreeSitter-Libraries/TSLibrariesXML.class.st | xmlLibraryName
^ self libraryName: 'libtree-sitter-xml'. | [
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesCommandLinesXML.class.st",
"code": "TSLibrariesCommandLines subclass: #TSLibrariesCommandLinesXML\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-Libraries'"
},
{
"filepath": "src/TreeSitter-Libraries/TSLibrariesTypesc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "xmlLibraryName\n\n\t^",
"suffix": ".",
"completion": " self libraryName: 'libtree-sitter-xml'"
} |
1,032 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 37c04064e2414ad898f3b58540459dbaf55f822c | src/TreeSitter-XML/TSLanguage.extension.st | xml
^ TSXMLLibrary uniqueInstance tree_sitter_xml | [
{
"filepath": "src/TreeSitter-XML/TSLanguage.extension.st",
"code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/TreeSitter-XML/TSXMLLibrary.class.st",
"code": "FFILibrary subclass: #TSXMLLibrary\n\tinstanceVariableNam... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "xml\n\t \n\t^",
"suffix": "",
"completion": " TSXMLLibrary uniqueInstance tree_sitter_xml"
} |
1,033 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 37c04064e2414ad898f3b58540459dbaf55f822c | src/TreeSitter-XML/TSXMLLibrary.class.st | macLibraryName
"Users should use unix32* or unix64*"
^ FFIMacLibraryFinder findAnyLibrary: #( 'libtree-sitter-xml.dylib' ) | [
{
"filepath": "src/TreeSitter-XML/TSLanguage.extension.st",
"code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/TreeSitter-XML/TSXMLLibrary.class.st",
"code": "FFILibrary subclass: #TSXMLLibrary\n\tinstanceVariableNam... | {
"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: #( 'libtree-sitter-xml.dylib' )"
} |
1,034 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 37c04064e2414ad898f3b58540459dbaf55f822c | src/TreeSitter-XML/TSXMLLibrary.class.st | tree_sitter_xml
^ self ffiCall: 'TSLanguage * tree_sitter_xml ()' | [
{
"filepath": "src/TreeSitter-XML/TSLanguage.extension.st",
"code": "Object subclass: #TSLanguage\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/TreeSitter-XML/TSXMLLibrary.class.st",
"code": "FFILibrary subclass: #TSXMLLibrary\n\tinstanceVariableNam... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "tree_sitter_xml\n\n\t^",
"suffix": "",
"completion": " self ffiCall: 'TSLanguage * tree_sitter_xml ()'"
} |
1,035 | https://github.com/Evref-BL/Pharo-Tree-Sitter | d7259f2537b99c145887d77c8f88364a76527a03 | src/TreeSitter-XML/TSXMLLibrary.class.st | unix64LibraryName
"Users should use unix32* or unix64*"
^ FFIUnix64LibraryFinder findAnyLibrary:
#( 'libtree-sitter-xml.so' ) | [
{
"filepath": "src/TreeSitter-XML/TSXMLLibrary.class.st",
"code": "FFILibrary subclass: #TSXMLLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-XML'"
},
{
"filepath": "src/TreeSitter-XML/TSXMLLibrary.class.st",
"code": "win32LibraryName\n\n\t^ FFIWindowsLibra... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "unix64LibraryName\n\t\"Users should use unix32* or unix64*\"\n\n\t^",
"suffix": "",
"completion": " FFIUnix64LibraryFinder findAnyLibrary:\n\t\t #( 'libtree-sitter-xml.so' )"
} |
1,036 | https://github.com/Evref-BL/Pharo-Tree-Sitter | d7259f2537b99c145887d77c8f88364a76527a03 | src/TreeSitter-XML/TSXMLLibrary.class.st | win32LibraryName
^ FFIWindowsLibraryFinder findAnyLibrary: #( 'libtree-sitter-xml.dll' ) | [
{
"filepath": "src/TreeSitter-XML/TSXMLLibrary.class.st",
"code": "FFILibrary subclass: #TSXMLLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter-XML'"
},
{
"filepath": "src/TreeSitter-XML/TSXMLLibrary.class.st",
"code": "unix64LibraryName\n\t\"Users should use... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "win32LibraryName\n\n\t^ FFIWindowsLibraryFinder findAnyLibrary:",
"suffix": "",
"completion": " #( 'libtree-sitter-xml.dll' )"
} |
1,037 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1e73df5ecfd10499b57276e4000daf2e84e3affb | src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st | defineGroups: spec
spec
group: 'default'
with:
#( 'TreeSitter' 'TreeSitter-Tests' 'TreeSitter-Spec'
'TreeSitter-Highlighter' 'TreeSitter-Visitor'
'TreeSitter-FAST-Utils' 'TreeSitter-Libraries' ).
spec group: 'moose' with: #( 'default' 'TreeSitter-FAST-Utils' ).
"language"
spec group: '... | [
{
"filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st",
"code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'"
},
{
"filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st",
"code"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "defineGroups: spec\n \n \tspec\n \t\tgroup: 'default'\n \t\twith:\n \t\t\t#( 'TreeSitter' 'TreeSitter-Tests' 'TreeSitter-Spec'\n \t\t\t 'TreeSitter-Highlighter' 'TreeSitter-Visitor'\n \t\t\t 'TreeSitter-FAST-Utils' 'TreeSitter-... |
1,038 | https://github.com/Evref-BL/Pharo-Tree-Sitter | 1e73df5ecfd10499b57276e4000daf2e84e3affb | src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st | definePackages: spec
spec
package: 'TreeSitter';
package: 'TreeSitter-Tests' with: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' 'TreeSitter-XML' 'TreeSitter-Groovy' 'TreeSitter-Typescript' 'TreeSitter-C' ) ];
package: 'TreeSitter-Groovy' with: [ spec requires: #( 'TreeSitter' ) ];
package: 'TreeS... | [
{
"filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st",
"code": "BaselineOf subclass: #BaselineOfTreeSitter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfTreeSitter'"
},
{
"filepath": "src/BaselineOfTreeSitter/BaselineOfTreeSitter.class.st",
"code"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "definePackages: spec\n \n \tspec\n \t\tpackage: 'TreeSitter';\n\t\tpackage: 'TreeSitter-Tests' with: [ spec requires: #( 'TreeSitter' 'TreeSitter-Python' 'TreeSitter-XML' 'TreeSitter-Groovy' 'TreeSitter-Typescript' 'TreeSitter-C' )... |
1,039 | https://github.com/tomooda/BlocIM | 669d952dbd294e09ec90db3f5aad6550b4ced92a | src/BlocIM/BlOSWindowEventHandler.extension.st | visitTextEditingEvent: anEvent
| blEvent |
blEvent := BlTextInputEvent new
text: anEvent text;
modifiers: (self convertKeyModifiers: anEvent modifiers);
yourself.
self enqueue: blEvent | [
{
"filepath": "src/BlocIM/BlOSWindowEventHandler.extension.st",
"code": "Object subclass: #BlOSWindowEventHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/Collection.extension.st",
"code": "Object subclass: #Collection\n\tinstanceVariabl... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 7,
"prefix": "visitTextEditingEvent: anEvent\n\t| blEvent |\n\tblEvent := BlTextInputEvent new\n\t\t text: anEvent text;\n\t\t modifiers: (",
"suffix": ".\n\tself enqueue: blEvent",
"completion": "self convertKeyModifiers: anE... |
1,040 | https://github.com/tomooda/BlocIM | 669d952dbd294e09ec90db3f5aad6550b4ced92a | src/BlocIM/BlOSWindowEventHandler.extension.st | visitTextInputEvent: anEvent
| blEvent |
blEvent := BlTextInputEvent new
text: anEvent text;
modifiers: (self convertKeyModifiers: anEvent modifiers);
yourself.
self enqueue: blEvent | [
{
"filepath": "src/BlocIM/BlOSWindowEventHandler.extension.st",
"code": "Object subclass: #BlOSWindowEventHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/Collection.extension.st",
"code": "Object subclass: #Collection\n\tinstanceVariabl... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 10,
"prefix": "visitTextInputEvent: anEvent\n\n\t| blEvent |\n\tblEvent := BlTextInputEvent new\n\t\t text: anEvent text",
"suffix": ".\n\tself enqueue: blEvent",
"completion": ";\n\t\t modifiers: (self convertKeyModifiers: an... |
1,041 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/AlbTextEditorInsertionHandler.extension.st | eventsToHandle
^ {
BlTextInputEvent.
BlTextEditingEvent } | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "eventsToHandle\n\n\t^ {\n\t\t BlTextInputEvent",
"suffix": "",
"completion": ".\n\t\t BlTextEditingEvent }"
} |
1,042 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/AlbTextEditorInsertionHandler.extension.st | insert: aString atCursorIn: anEditor context: anElement
anEditor surroundMap
closingFor: aString asSymbol
ifPresent: [ :aSurroundSymbol |
anEditor inserter
context: anElement;
inputFilter: anEditor inputFilter;
atCursor;
string: aString;
surroundings: anEditor surroundMap;
withoutSelecti... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "insert: aString atCursorIn: anEditor context: anElement\n\tanEditor surroundMap\n\t\tclosingFor: aString asSymbol\n\t\tifPresent: [ :aSurroundSymbol |\n\t\t\tanEditor inserter\n\t\t\t\tcontext: anElement;\n\t\t\t\tinputFilter: anEd... |
1,043 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/AlbTextEditorInsertionHandler.extension.st | insert: aString atCursorIn: anEditor context: anElement
anEditor surroundMap
closingFor: aString asSymbol
ifPresent: [ :aSurroundSymbol |
anEditor inserter
context: anElement;
inputFilter: anEditor inputFilter;
atCursor;
string: aString;
surroundings: anEditor surroundMap;
withoutSelecti... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 1,
"mask_type": "cascade",
"n_masked_tokens": 7,
"prefix": "insert: aString atCursorIn: anEditor context: anElement\n\tanEditor surroundMap\n\t\tclosingFor: aString asSymbol\n\t\tifPresent: [ :aSurroundSymbol |\n\t\t\tanEditor inserter\n\t\t\t\tcontext: anElement;\n\t\t\t\tinputFilter: anEditor inp... |
1,044 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/AlbTextEditorInsertionHandler.extension.st | insert: aString atCursorIn: anEditor context: anElement
anEditor surroundMap
closingFor: aString asSymbol
ifPresent: [ :aSurroundSymbol |
anEditor inserter
context: anElement;
inputFilter: anEditor inputFilter;
atCursor;
string: aString;
surroundings: anEditor surroundMap;
withoutSelecti... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 2,
"mask_type": "cascade",
"n_masked_tokens": 9,
"prefix": "insert: aString atCursorIn: anEditor context: anElement\n\tanEditor surroundMap\n\t\tclosingFor: aString asSymbol\n\t\tifPresent: [ :aSurroundSymbol |\n\t\t\tanEditor inserter\n\t\t\t\tcontext: anElement;\n\t\t\t\tinputFilter: anEditor inp... |
1,045 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/AlbTextEditorInsertionHandler.extension.st | swapSelection: aString atCursorIn: anEditor context: anElement
| position |
anEditor selection ifNotEmpty: [ :selection |
anEditor
delete: selection from to: selection to;
moveCursorTo: selection from;
selection: BlCompositeSelection new ].
position := anEditor cursor position.
anEditor
insertString: ... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 1,
"mask_type": "cascade",
"n_masked_tokens": 8,
"prefix": "swapSelection: aString atCursorIn: anEditor context: anElement\n\n\t| position |\n\tanEditor selection ifNotEmpty: [ :selection |\n\t\tanEditor\n\t\t\tdelete: selection from to: selection to",
"suffix": " ].\n\tposition := anEditor curso... |
1,046 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/AlbTextEditorInsertionHandler.extension.st | swapSelection: aString atCursorIn: anEditor context: anElement
| position |
anEditor selection ifNotEmpty: [ :selection |
anEditor
delete: selection from to: selection to;
moveCursorTo: selection from;
selection: BlCompositeSelection new ].
position := anEditor cursor position.
anEditor
insertString: ... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "swapSelection: aString atCursorIn: anEditor context: anElement\n\n\t| position |\n\tanEditor selection ifNotEmpty: [ :selection |\n\t\tanEditor\n\t\t\tdelete: selection from to: selection to;",
"suffix": ".\n\tposition := anEdito... |
1,047 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/AlbTextEditorInsertionHandler.extension.st | swapSelection: aString atCursorIn: anEditor context: anElement
| position |
anEditor selection ifNotEmpty: [ :selection |
anEditor
delete: selection from to: selection to;
moveCursorTo: selection from;
selection: BlCompositeSelection new ].
position := anEditor cursor position.
anEditor
insertString: ... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "swapSelection: aString atCursorIn: anEditor context: anElement\n\n\t| position |\n\tanEditor selection ifNotEmpty: [ :selection |\n\t\tanEditor\n\t\t\tdelete: selection from to: selection to;\n\t\t\tmoveCursorTo: selection from;\n\... |
1,048 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/AlbTextEditorInsertionHandler.extension.st | textEditingEvent: anEvent
anEvent consume.
self
swapSelection: anEvent text asString
atCursorIn: anEvent currentTarget editor
context: anEvent currentTarget | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "textEditingEvent: anEvent\n\n\tanEvent consume.\n\tself\n\t\tswapSelection: anEvent text asString\n\t\tatCursorIn:",
"suffix": "",
"completion": " anEvent currentTarget editor\n\t\tcontext: anEvent currentTarget"
} |
1,049 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlKeyboardProcessor.extension.st | processKeyDown: anEvent
| aTarget aShortcutEvent |
(self buffer hasEvent: anEvent key) ifTrue: [ ^ self ].
textInputBuffer hasPendingText ifTrue: [
^ self].
self buffer add: anEvent.
aTarget := self findTarget.
anEvent target: aTarget.
self fireEvent: anEvent.
aShortcutEvent := BlShortcutEvent new.
aSho... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "processKeyDown: anEvent\n\n\t| aTarget aShortcutEvent |\n\t(self buffer hasEvent: anEvent key) ifTrue: [ ^ self ].\n\n\ttextInputBuffer hasPendingText ifTrue: [\n\t\t^ self].\n\n\tself buffer add: anEvent.\n\n\taTarget := self find... |
1,050 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlKeyboardProcessor.extension.st | processKeyDown: anEvent
| aTarget aShortcutEvent |
(self buffer hasEvent: anEvent key) ifTrue: [ ^ self ].
textInputBuffer hasPendingText ifTrue: [
^ self].
self buffer add: anEvent.
aTarget := self findTarget.
anEvent target: aTarget.
self fireEvent: anEvent.
aShortcutEvent := BlShortcutEvent new.
aSho... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "processKeyDown: anEvent\n\n\t| aTarget aShortcutEvent |\n\t(self buffer hasEvent: anEvent key) ifTrue: [ ^ self ].\n\n\ttextInputBuffer hasPendingText ifTrue: [\n\t\t^ self].\n\n\tself buffer add: anEvent.\n\n\taTarget := self find... |
1,051 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlKeyboardProcessor.extension.st | processKeyDown: anEvent
| aTarget aShortcutEvent |
(self buffer hasEvent: anEvent key) ifTrue: [ ^ self ].
textInputBuffer hasPendingText ifTrue: [
^ self].
self buffer add: anEvent.
aTarget := self findTarget.
anEvent target: aTarget.
self fireEvent: anEvent.
aShortcutEvent := BlShortcutEvent new.
aSho... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 8,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "processKeyDown: anEvent\n\n\t| aTarget aShortcutEvent |\n\t(self buffer hasEvent: anEvent key) ifTrue: [ ^ self ].\n\n\ttextInputBuffer hasPendingText ifTrue: [\n\t\t^ self].\n\n\tself buffer add: anEvent.\n\n\taTarget := self findTarge... |
1,052 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlKeyboardProcessor.extension.st | processTextEditing: anEvent
self keystrokesAllowed ifFalse: [ ^ self ].
textInputBuffer editing: anEvent text modifiers: anEvent modifiers | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "processTextEditing: anEvent\n\n\tself keystrokesAllowed ifFalse: [",
"suffix": ".\n\ttextInputBuffer editing: anEvent text modifiers: anEvent modifiers",
"completion": " ^ self ]"
} |
1,053 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlKeyboardProcessor.extension.st | processTextEditing: anEvent
self keystrokesAllowed ifFalse: [ ^ self ].
textInputBuffer editing: anEvent text modifiers: anEvent modifiers | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "processTextEditing: anEvent\n\n\tself keystrokesAllowed ifFalse: [ ^ self ].\n\ttextInputBuffer editing: anEvent text",
"suffix": "",
"completion": " modifiers: anEvent modifiers"
} |
1,054 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlSpaceEventListener.extension.st | textEditingEvent: anEvent
self keyboardProcessor processTextEditing: anEvent | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "textEditingEvent: anEvent\n\n\tself",
"suffix": "",
"completion": " keyboardProcessor processTextEditing: anEvent"
} |
1,055 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlTextInputBuffer.class.st | editing: aString modifiers: aBlKeyModifiers
editingText := pendingText := aString | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "editing: aString modifiers: aBlKeyModifiers\n\n\teditingText",
"suffix": "",
"completion": " := pendingText := aString"
} |
1,056 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlTextInputBuffer.class.st | initialize
super initialize.
inputs := OrderedCollection new.
editingText := nil | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\tsuper initialize.\n\t\n\tinputs",
"suffix": ".\n\teditingText := nil",
"completion": " := OrderedCollection new"
} |
1,057 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlTextInputBuffer.class.st | text: aString modifiers: aBlKeyModifiers
editingText := pendingText := nil.
inputs
ifEmpty: [ inputs add: aString -> aBlKeyModifiers copy ]
ifNotEmpty: [ :theInputs |
theInputs last value = aBlKeyModifiers
ifTrue: [ theInputs last key: theInputs last key , aString ]
ifFalse: [ inputs add: aString -> a... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "text: aString modifiers: aBlKeyModifiers\n\n\teditingText :=",
"suffix": ".\n\tinputs\n\t\tifEmpty: [ inputs add: aString -> aBlKeyModifiers copy ]\n\t\tifNotEmpty: [ :theInputs |\n\t\t\ttheInputs last value = aBlKeyModifiers\n\t\t\t\... |
1,058 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlTextInputBuffer.class.st | text: aString modifiers: aBlKeyModifiers
editingText := pendingText := nil.
inputs
ifEmpty: [ inputs add: aString -> aBlKeyModifiers copy ]
ifNotEmpty: [ :theInputs |
theInputs last value = aBlKeyModifiers
ifTrue: [ theInputs last key: theInputs last key , aString ]
ifFalse: [ inputs add: aString -> a... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "text: aString modifiers: aBlKeyModifiers\n\n\teditingText := pendingText := nil.\n\tinputs\n\t\tifEmpty: [ inputs add: aString -> aBlKeyModifiers copy ]\n\t\tifNotEmpty: [ :theInputs |\n\t\t\ttheInputs last value = aBlKeyModifiers\... |
1,059 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlTextInputBuffer.class.st | text: aString modifiers: aBlKeyModifiers
editingText := pendingText := nil.
inputs
ifEmpty: [ inputs add: aString -> aBlKeyModifiers copy ]
ifNotEmpty: [ :theInputs |
theInputs last value = aBlKeyModifiers
ifTrue: [ theInputs last key: theInputs last key , aString ]
ifFalse: [ inputs add: aString -> a... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "text: aString modifiers: aBlKeyModifiers\n\n\teditingText := pendingText := nil.\n\tinputs\n\t\tifEmpty: [ inputs add: aString",
"suffix": " ]\n\t\tifNotEmpty: [ :theInputs |\n\t\t\ttheInputs last value = aBlKeyModifiers\n\t\t\t\... |
1,060 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlTextInputBuffer.class.st | textInputEventsDo: aBlock
inputs do: [ :eachAssoc |
aBlock value: (BlTextInputEvent new
text: eachAssoc key;
modifiers: eachAssoc value;
yourself) ].
editingText ifNotNil: [
aBlock value: (BlTextEditingEvent new
text: editingText;
modifiers: BlKeyModifiers new;
yourself).
editingT... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "textInputEventsDo: aBlock\n\n\tinputs do: [ :eachAssoc |\n\t\taBlock value: (BlTextInputEvent new\n\t\t\t\t text: eachAssoc key;\n\t\t\t\t modifiers: eachAssoc value;\n\t\t\t\t yourself) ].\n\teditingText ifNotNil: [\n\t\taBlock va... |
1,061 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlTextInputBuffer.class.st | textInputEventsDo: aBlock
inputs do: [ :eachAssoc |
aBlock value: (BlTextInputEvent new
text: eachAssoc key;
modifiers: eachAssoc value;
yourself) ].
editingText ifNotNil: [
aBlock value: (BlTextEditingEvent new
text: editingText;
modifiers: BlKeyModifiers new;
yourself).
editingT... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "textInputEventsDo: aBlock\n\n\tinputs do: [ :eachAssoc |\n\t\taBlock value: (BlTextInputEvent new\n\t\t\t\t text: eachAssoc key;\n\t\t\t\t modifiers: eachAssoc value",
"suffix": " ].\n\teditingText ifNotNil: [\n\t\taBlock value: ... |
1,062 | https://github.com/tomooda/BlocIM | 0569459d8f408e44a7fef9b3c177c2e26d518760 | src/BlocIM/BlTextInputBuffer.class.st | textInputEventsDo: aBlock
inputs do: [ :eachAssoc |
aBlock value: (BlTextInputEvent new
text: eachAssoc key;
modifiers: eachAssoc value;
yourself) ].
editingText ifNotNil: [
aBlock value: (BlTextEditingEvent new
text: editingText;
modifiers: BlKeyModifiers new;
yourself).
editingT... | [
{
"filepath": "src/BlocIM/AlbTextEditorInsertionHandler.extension.st",
"code": "Object subclass: #AlbTextEditorInsertionHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlEvent.extension.st",
"code": "Object subclass: #BlEvent\n\tinstanc... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "textInputEventsDo: aBlock\n\n\tinputs do: [ :eachAssoc |\n\t\taBlock value: (BlTextInputEvent new\n\t\t\t\t text: eachAssoc key;\n\t\t\t\t modifiers: eachAssoc value;\n\t\t\t\t yourself) ].\n\teditingText ifNotNil: [\n\t\taBlock va... |
1,063 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | defaultEmojiFace
faceEntriesByFamilyName keysAndValuesDo: [ :name :fonts |
(name includesSubstring: 'emoji') ifTrue: [
^ fonts anyOne newFaceWith: freetypeLibrary ] ].
^ nil | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultJapaneseFace\n\n\t#( 'meiryo' 'ms pgothic' 'hiragino sa... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo: [ :name :fonts |\n\t\t(name includesSubstring: 'emoji') ifTrue: [\n\t\t\t^",
"suffix": ".\n\t^ nil",
"completion": " fonts anyOne newFaceWith: freetypeLibrary ] ]"
... |
1,064 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | defaultEmojiFace
faceEntriesByFamilyName keysAndValuesDo: [ :name :fonts |
(name includesSubstring: 'emoji') ifTrue: [
^ fonts anyOne newFaceWith: freetypeLibrary ] ].
^ nil | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultJapaneseFace\n\n\t#( 'meiryo' 'ms pgothic' 'hiragino sa... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo: [ :name :fonts |\n\t\t(name includesSubstring: 'emoji') ifTrue:",
"suffix": " ].\n\t^ nil",
"completion": " [\n\t\t\t^ fonts anyOne newFaceWith: freetypeLibrary ]"
... |
1,065 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | defaultEmojiFace
faceEntriesByFamilyName keysAndValuesDo: [ :name :fonts |
(name includesSubstring: 'emoji') ifTrue: [
^ fonts anyOne newFaceWith: freetypeLibrary ] ].
^ nil | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultJapaneseFace\n\n\t#( 'meiryo' 'ms pgothic' 'hiragino sa... | {
"fim_idx": 2,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo: [ :name :fonts |\n\t\t(name includesSubstring: 'emoji') ifTrue: [\n\t\t\t^ fonts",
"suffix": " ] ].\n\t^ nil",
"completion": " anyOne newFaceWith: freetypeLibrary"
} |
1,066 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | defaultJapaneseFace
#( 'meiryo' 'ms pgothic' 'hiragino sans gb' ) do: [ :name |
faceEntriesByFamilyName
at: name
ifPresent: [ :fonts | ^ fonts anyOne newFaceWith: freetypeLibrary ] ].
^ nil | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "defaultJapaneseFace\n\n\t#( 'meiryo' 'ms pgothic' 'hiragino sans gb' ) do: [ :name |\n\t\tfaceEntriesByFamilyName\n\t\t\tat: name\n\t\t\tifPresent: [ :",
"suffix": ".\n\t^ nil",
"completion": "fonts | ^ fonts anyOne newFaceWith... |
1,067 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | defaultJapaneseFace
#( 'meiryo' 'ms pgothic' 'hiragino sans gb' ) do: [ :name |
faceEntriesByFamilyName
at: name
ifPresent: [ :fonts | ^ fonts anyOne newFaceWith: freetypeLibrary ] ].
^ nil | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo:... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "defaultJapaneseFace\n\n\t#( 'meiryo' 'ms pgothic' 'hiragino sans gb' ) do: [ :name |\n\t\tfaceEntriesByFamilyName\n\t\t\tat: name\n\t\t\tifPresent: [",
"suffix": " ].\n\t^ nil",
"completion": " :fonts | ^ fonts anyOne newFaceWi... |
1,068 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | defaultJapaneseFace
#( 'meiryo' 'ms pgothic' 'hiragino sans gb' ) do: [ :name |
faceEntriesByFamilyName
at: name
ifPresent: [ :fonts | ^ fonts anyOne newFaceWith: freetypeLibrary ] ].
^ nil | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo:... | {
"fim_idx": 2,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "defaultJapaneseFace\n\n\t#( 'meiryo' 'ms pgothic' 'hiragino sans gb' ) do: [ :name |\n\t\tfaceEntriesByFamilyName\n\t\t\tat: name\n\t\t\tifPresent: [ :fonts | ^ fonts",
"suffix": " ] ].\n\t^ nil",
"completion": " anyOne newFaceWith: fre... |
1,069 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | globalInstance
^ globalInstance ifNil: [
| aFace |
globalInstance := self new
scanEmbeddedFonts;
scanDefaultDirectories;
yourself.
aFace := globalInstance defaultJapaneseFace ifNil: [
globalInstance
detectFa... | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo:... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "globalInstance\n\n\t^ globalInstance ifNil: [\n\t\t | aFace |\n\t\t globalInstance := self new\n\t\t\t scanEmbeddedFonts;\n\t\t\t scanDefaultDirectories;\n\t\t\t yourself.... |
1,070 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | globalInstance
^ globalInstance ifNil: [
| aFace |
globalInstance := self new
scanEmbeddedFonts;
scanDefaultDirectories;
yourself.
aFace := globalInstance defaultJapaneseFace ifNil: [
globalInstance
detectFa... | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo:... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "globalInstance\n\n\t^ globalInstance ifNil: [\n\t\t | aFace |\n\t\t globalInstance := self new\n\t\t\t scanEmbeddedFonts;\n\t\t\t scanDefaultDirectories;\n\t\t\t yourself.\... |
1,071 | https://github.com/tomooda/BlocIM | 9ae4ea6084b160e40a853c38af600aa2a2a828ab | src/BlocIM/AeFontManager.extension.st | globalInstance
^ globalInstance ifNil: [
| aFace |
globalInstance := self new
scanEmbeddedFonts;
scanDefaultDirectories;
yourself.
aFace := globalInstance defaultJapaneseFace ifNil: [
globalInstance
detectFa... | [
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "Object subclass: #AeFontManager\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/AeFontManager.extension.st",
"code": "defaultEmojiFace\n\n\tfaceEntriesByFamilyName keysAndValuesDo:... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "globalInstance\n\n\t^ globalInstance ifNil: [\n\t\t | aFace |\n\t\t globalInstance := self new\n\t\t\t scanEmbeddedFonts;\n\t\t\t scanDefaultDirectories;\n\t\t\t yourself.\n\n\t... |
1,072 | https://github.com/tomooda/BlocIM | 4264412da67c89ef57c687e891e45908109e0756 | src/BaselineOfBlocIM/BaselineOfBlocIM.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec
baseline: 'Bloc'
with: [ spec repository: 'github://pharo-graphics/Bloc:v2.1.0/src' ].
spec
baseline: 'Album'
with: [
spec repository: 'github://pharo-graphics/Album:v0.2.0/src' ].
spec package: #BlocIM with: [ spec requires: #( 'Bloc' 'Albu... | [
{
"filepath": "src/BaselineOfBlocIM/BaselineOfBlocIM.class.st",
"code": "BaselineOf subclass: #BaselineOfBlocIM\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfBlocIM'"
},
{
"filepath": "src/BaselineOfBlocIM/BaselineOfBlocIM.class.st",
"code": "postload\n\n\tAeFontM... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec\n\t\t\tbaseline: 'Bloc'",
"suffix": ".\n\t\tspec\n\t\t\tbaseline: 'Album'\n\t\t\twith: [\n\t\t\tspec repository: 'github://pharo-graphics/Album:v0.2.0/src' ].\n\... |
1,073 | https://github.com/tomooda/BlocIM | 4264412da67c89ef57c687e891e45908109e0756 | src/BaselineOfBlocIM/BaselineOfBlocIM.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec
baseline: 'Bloc'
with: [ spec repository: 'github://pharo-graphics/Bloc:v2.1.0/src' ].
spec
baseline: 'Album'
with: [
spec repository: 'github://pharo-graphics/Album:v0.2.0/src' ].
spec package: #BlocIM with: [ spec requires: #( 'Bloc' 'Albu... | [
{
"filepath": "src/BaselineOfBlocIM/BaselineOfBlocIM.class.st",
"code": "BaselineOf subclass: #BaselineOfBlocIM\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfBlocIM'"
},
{
"filepath": "src/BaselineOfBlocIM/BaselineOfBlocIM.class.st",
"code": "postload\n\n\tAeFontM... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec\n\t\t\tbaseline: 'Bloc'\n\t\t\twith: [ spec repository: 'github://pharo-graphics/Bloc:v2.1.0/src' ].\n\t\tspec\n\t\t\tbaseline: 'Album'\n\t\t\twith: [\n\t\t\tspec ... |
1,074 | https://github.com/tomooda/BlocIM | 4264412da67c89ef57c687e891e45908109e0756 | src/BaselineOfBlocIM/BaselineOfBlocIM.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec
baseline: 'Bloc'
with: [ spec repository: 'github://pharo-graphics/Bloc:v2.1.0/src' ].
spec
baseline: 'Album'
with: [
spec repository: 'github://pharo-graphics/Album:v0.2.0/src' ].
spec package: #BlocIM with: [ spec requires: #( 'Bloc' 'Albu... | [
{
"filepath": "src/BaselineOfBlocIM/BaselineOfBlocIM.class.st",
"code": "BaselineOf subclass: #BaselineOfBlocIM\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfBlocIM'"
},
{
"filepath": "src/BaselineOfBlocIM/BaselineOfBlocIM.class.st",
"code": "postload\n\n\tAeFontM... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec\n\t\t\tbaseline: 'Bloc'\n\t\t\twith: [ spec repository: 'github://pharo-graphics/Bloc:v2.1.0/src' ].\n\t\tspec\n\t\t\tbaseline: 'Album'\n\t\t\twith: [\n\t\t\tspec ... |
1,075 | https://github.com/tomooda/BlocIM | 48a39067e1f62f7a29cd5ffbfe50552d2d62dcc7 | src/BlocIM/BlMorphicEventHandler.extension.st | handleTextEditionEvent: anEvent
| aBlEvent |
aBlEvent := BlTextEditingEvent new
text: anEvent text asString;
modifiers: (BlKeyModifiers
shift: false
ctrl: false
alt: false
cmd: false);
timestamp: self timest... | [
{
"filepath": "src/BlocIM/BlMorphicEventHandler.extension.st",
"code": "Object subclass: #BlMorphicEventHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/BlocIM/BlMorphicSpaceHostMorph.extension.st",
"code": "Object subclass: #BlMorphicSpaceHost... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "handleTextEditionEvent: anEvent\n\n\t| aBlEvent |\n\taBlEvent := BlTextEditingEvent new\n\t\t text: anEvent text asString;\n\t\t modifiers: (BlKeyModifiers\n\t\t\t\t shift: false\n\t\t\t\t c... |
1,076 | https://github.com/moosetechnology/MooseNexus | 5c64c5202058ecfb74269b9036f2d0b5ecfa861b | src/Moose-Nexus/NexusManagedProject.class.st | determineName
(projects size == 1 and: [ projects anyOne size == 1 ]) ifFalse: [
Error signal: 'Can only determine artifact if only one is declared' ].
projects anyOne keysDo: [ :key | ^ key ] | [
{
"filepath": "src/Moose-Nexus/NexusManagedProject.class.st",
"code": "NexusProject subclass: #NexusManagedProject\n\tinstanceVariableNames: 'home projects language'\n\tclassVariableNames: ''\n\tpackage: 'Moose-Nexus-Project'"
},
{
"filepath": "src/Moose-Nexus/NexusModelBuilder.class.st",
"code"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "determineName\n\n\t(projects size == 1 and: [ projects anyOne size ==",
"suffix": ".\n\tprojects anyOne keysDo: [ :key | ^ key ]",
"completion": " 1 ]) ifFalse: [\n\t\tError signal: 'Can only determine artifact if only one is d... |
1,077 | https://github.com/moosetechnology/MooseNexus | 5c64c5202058ecfb74269b9036f2d0b5ecfa861b | src/Moose-Nexus/NexusManagedProject.class.st | determineName
(projects size == 1 and: [ projects anyOne size == 1 ]) ifFalse: [
Error signal: 'Can only determine artifact if only one is declared' ].
projects anyOne keysDo: [ :key | ^ key ] | [
{
"filepath": "src/Moose-Nexus/NexusManagedProject.class.st",
"code": "NexusProject subclass: #NexusManagedProject\n\tinstanceVariableNames: 'home projects language'\n\tclassVariableNames: ''\n\tpackage: 'Moose-Nexus-Project'"
},
{
"filepath": "src/Moose-Nexus/NexusModelBuilder.class.st",
"code"... | {
"fim_idx": 1,
"mask_type": "binary_message",
"n_masked_tokens": 3,
"prefix": "determineName\n\n\t(projects size == 1 and: [ projects anyOne",
"suffix": " ]) ifFalse: [\n\t\tError signal: 'Can only determine artifact if only one is declared' ].\n\tprojects anyOne keysDo: [ :key | ^ key ]",
"completion": " ... |
1,078 | https://github.com/moosetechnology/MooseNexus | 5c64c5202058ecfb74269b9036f2d0b5ecfa861b | src/Moose-Nexus/NexusManagedProject.class.st | determineName
(projects size == 1 and: [ projects anyOne size == 1 ]) ifFalse: [
Error signal: 'Can only determine artifact if only one is declared' ].
projects anyOne keysDo: [ :key | ^ key ] | [
{
"filepath": "src/Moose-Nexus/NexusManagedProject.class.st",
"code": "NexusProject subclass: #NexusManagedProject\n\tinstanceVariableNames: 'home projects language'\n\tclassVariableNames: ''\n\tpackage: 'Moose-Nexus-Project'"
},
{
"filepath": "src/Moose-Nexus/NexusModelBuilder.class.st",
"code"... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "determineName\n\n\t(projects size == 1 and: [ projects anyOne size == 1 ]) ifFalse: [\n\t\tError signal: 'Can only determine artifact if only one is declared' ].\n\tprojects anyOne keysDo:",
"suffix": "",
"completion": " [ :key... |
1,079 | https://github.com/moosetechnology/MooseNexus | 5c64c5202058ecfb74269b9036f2d0b5ecfa861b | src/Moose-Nexus/NexusProject.class.st | determineName
Error signal: 'Instance of ' , self className
, ' ignores how to determine the artifact' | [
{
"filepath": "src/Moose-Nexus/NexusManagedProject.class.st",
"code": "NexusProject subclass: #NexusManagedProject\n\tinstanceVariableNames: 'home projects language'\n\tclassVariableNames: ''\n\tpackage: 'Moose-Nexus-Project'"
},
{
"filepath": "src/Moose-Nexus/NexusModelBuilder.class.st",
"code"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "determineName\n\n\tError",
"suffix": "",
"completion": " signal: 'Instance of ' , self className\n\t\t, ' ignores how to determine the artifact'"
} |
1,080 | https://github.com/moosetechnology/MooseNexus | 5c64c5202058ecfb74269b9036f2d0b5ecfa861b | src/Moose-Nexus/NexusProject.class.st | name
^ name ifNil: [ name := self determineName ] | [
{
"filepath": "src/Moose-Nexus/NexusManagedProject.class.st",
"code": "NexusProject subclass: #NexusManagedProject\n\tinstanceVariableNames: 'home projects language'\n\tclassVariableNames: ''\n\tpackage: 'Moose-Nexus-Project'"
},
{
"filepath": "src/Moose-Nexus/NexusModelBuilder.class.st",
"code"... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "name\n\n\t^ name ifNil: [ name :=",
"suffix": "",
"completion": " self determineName ]"
} |
1,081 | https://github.com/moosetechnology/MooseNexus | 5c64c5202058ecfb74269b9036f2d0b5ecfa861b | src/Moose-Nexus/NexusProject.class.st | name
^ name ifNil: [ name := self determineName ] | [
{
"filepath": "src/Moose-Nexus/NexusManagedProject.class.st",
"code": "NexusProject subclass: #NexusManagedProject\n\tinstanceVariableNames: 'home projects language'\n\tclassVariableNames: ''\n\tpackage: 'Moose-Nexus-Project'"
},
{
"filepath": "src/Moose-Nexus/NexusModelBuilder.class.st",
"code"... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "name\n\n\t^ name ifNil: [ name",
"suffix": " ]",
"completion": " := self determineName"
} |
1,082 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | case1
"A simple case with one managed project and no dependencies"
| group projectName version language mavenOutput projects |
group := 'org.moose'.
projectName := 'test1'.
version := '1.0.0'.
language := 'java'.
mavenOutput := '
[INFO] ---------------------< org.moose:test1 >----------------------
[INFO] Buil... | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "case1\n\t\"A simple case with one managed project and no dependencies\"\n\n\t| group projectName version language mavenOutput projects |\n\tgroup := 'org.moose'.\n\tprojectName := 'test1'.\n\tversion := '1.0.0'.\n\tlanguage := 'java'.\n... |
1,083 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | case1
"A simple case with one managed project and no dependencies"
| group projectName version language mavenOutput projects |
group := 'org.moose'.
projectName := 'test1'.
version := '1.0.0'.
language := 'java'.
mavenOutput := '
[INFO] ---------------------< org.moose:test1 >----------------------
[INFO] Buil... | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 1,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "case1\n\t\"A simple case with one managed project and no dependencies\"\n\n\t| group projectName version language mavenOutput projects |\n\tgroup := 'org.moose'.\n\tprojectName := 'test1'.\n\tversion := '1.0.0'.\n\tlanguage := 'java'.\n\n\t... |
1,084 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | case2
"A simple case with one managed project and few dependencies"
| group projectName version language mavenOutput projects dependencies projectDependencies |
group := 'org.moose'.
projectName := 'test2'.
version := '2.0.1'.
language := 'java'.
"result of the `mvn dependency:list` command"
mavenOutput := '
... | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 3,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "case2\n\t\"A simple case with one managed project and few dependencies\"\n\n\t| group projectName version language mavenOutput projects dependencies projectDependencies |\n\tgroup := 'org.moose'.\n\tprojectName := 'test2'.\n\tversion := '2.... |
1,085 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | case2
"A simple case with one managed project and few dependencies"
| group projectName version language mavenOutput projects dependencies projectDependencies |
group := 'org.moose'.
projectName := 'test2'.
version := '2.0.1'.
language := 'java'.
"result of the `mvn dependency:list` command"
mavenOutput := '
... | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "case2\n\t\"A simple case with one managed project and few dependencies\"\n\n\t| group projectName version language mavenOutput projects dependencies projectDependencies |\n\tgroup := 'org.moose'.\n\tprojectName := 'test2'.\n\tversion :=... |
1,086 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | case2
"A simple case with one managed project and few dependencies"
| group projectName version language mavenOutput projects dependencies projectDependencies |
group := 'org.moose'.
projectName := 'test2'.
version := '2.0.1'.
language := 'java'.
"result of the `mvn dependency:list` command"
mavenOutput := '
... | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "case2\n\t\"A simple case with one managed project and few dependencies\"\n\n\t| group projectName version language mavenOutput projects dependencies projectDependencies |\n\tgroup := 'org.moose'.\n\tprojectName := 'test2'.\n\tversi... |
1,087 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | testParameters
^ ParametrizedTestMatrix new
addCase: self case1;
addCase: self case2;
yourself | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "testParameters\n\n\t^ ParametrizedTestMatrix new\n\t\t addCase: self case1;",
"suffix": "",
"completion": "\n\t\t addCase: self case2;\n\t\t yourself"
} |
1,088 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | setUp
| root home |
super setUp.
root := 'pharo-local/nexus/tests' asFileReference.
"initialize mock Maven repository"
home := (root / 'maven/repository') ensureCreateDirectory.
dependencies do: [ :dependency |
| depName depVersion |
depName := dependency at: #name.
depVersion := dependency at: #version.
... | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 7,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "setUp\n\n\t| root home |\n\tsuper setUp.\n\troot := 'pharo-local/nexus/tests' asFileReference.\n\n\t\"initialize mock Maven repository\"\n\thome := (root / 'maven/repository') ensureCreateDirectory.\n\tdependencies do: [ :dependenc... |
1,089 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | setUp
| root home |
super setUp.
root := 'pharo-local/nexus/tests' asFileReference.
"initialize mock Maven repository"
home := (root / 'maven/repository') ensureCreateDirectory.
dependencies do: [ :dependency |
| depName depVersion |
depName := dependency at: #name.
depVersion := dependency at: #version.
... | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 6,
"mask_type": "binary_message",
"n_masked_tokens": 5,
"prefix": "setUp\n\n\t| root home |\n\tsuper setUp.\n\troot := 'pharo-local/nexus/tests' asFileReference.\n\n\t\"initialize mock Maven repository\"\n\thome := (root / 'maven/repository') ensureCreateDirectory.\n\tdependencies do: [ :dependency... |
1,090 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | setUp
| root home |
super setUp.
root := 'pharo-local/nexus/tests' asFileReference.
"initialize mock Maven repository"
home := (root / 'maven/repository') ensureCreateDirectory.
dependencies do: [ :dependency |
| depName depVersion |
depName := dependency at: #name.
depVersion := dependency at: #version.
... | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 10,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\t| root home |\n\tsuper setUp.\n\troot := 'pharo-local/nexus/tests' asFileReference.\n\n\t\"initialize mock Maven repository\"\n\thome := (root / 'maven/repository') ensureCreateDirectory.\n\tdependencies do: [ :dependen... |
1,091 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | testDetermineDependencies
self
assertCollection: project determineDependencies
hasSameElements: dependencies | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testDetermineDependencies\n\n\tself",
"suffix": "",
"completion": "\n\t\tassertCollection: project determineDependencies\n\t\thasSameElements: dependencies"
} |
1,092 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | testDetermineGroup
self assert: project determineGroup equals: group | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testDetermineGroup\n\n\tself assert: project",
"suffix": "",
"completion": " determineGroup equals: group"
} |
1,093 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | testDetermineLanguage
self assert: project determineLanguage equals: language | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testDetermineLanguage\n\n\tself",
"suffix": "",
"completion": " assert: project determineLanguage equals: language"
} |
1,094 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | testDetermineName
self assert: project determineName equals: name | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testDetermineName\n\n\tself assert: project",
"suffix": "",
"completion": " determineName equals: name"
} |
1,095 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | testDetermineVersion
self assert: project determineVersion equals: version | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testDetermineVersion\n\n\tself assert:",
"suffix": "",
"completion": " project determineVersion equals: version"
} |
1,096 | https://github.com/moosetechnology/MooseNexus | 3a7444eff59cc6fbb050a7e3a7c8a8539b65b5d4 | src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st | testProjects
self assert: project projects equals: projects | [
{
"filepath": "src/MooseNexus-Tests/NexusMavenProjectParameterizedTest.class.st",
"code": "ParametrizedTestCase subclass: #NexusMavenProjectParameterizedTest\n\tinstanceVariableNames: 'mavenOutput group name version language subDirectories dependencies project projects'\n\tclassVariableNames: ''\n\tpackage:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testProjects\n\n\tself assert: project",
"suffix": "",
"completion": " projects equals: projects"
} |
1,097 | https://github.com/moosetechnology/MooseNexus | c4cc3ae1f600a6caa2efe953ffb7c872ab2639b5 | src/MooseNexus/NexusMavenProject.class.st | findMavenCommand
"Return the name of the maven executable, can be a wrapper or the global 'mvn' command."
OSPlatform current isWindows
ifTrue: [
directory asFileReference / 'mvnw.cmd' ifExists: [ ^ 'mvnw.cmd' ] ]
ifFalse: [ "assume *nix"
directory asFileReference / 'mvnw' ifExists: [ ^ './mvnw' ] ].
"assum... | [
{
"filepath": "src/MooseNexus/NexusMavenProject.class.st",
"code": "NexusManagedProject subclass: #NexusMavenProject\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MooseNexus-Project'"
},
{
"filepath": "src/MooseNexus/NexusMavenProject.class.st",
"code": "read\n \t\"Runs the... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "findMavenCommand\n\t\"Return the name of the maven executable, can be a wrapper or the global 'mvn' command.\"\n\n\tOSPlatform current isWindows\n\t\tifTrue: [\n\t\tdirectory asFileReference / 'mvnw.cmd' ifExists: [ ^ 'mvnw.cmd' ] ... |
1,098 | https://github.com/moosetechnology/MooseNexus | c4cc3ae1f600a6caa2efe953ffb7c872ab2639b5 | src/MooseNexus/NexusMavenProject.class.st | findMavenCommand
"Return the name of the maven executable, can be a wrapper or the global 'mvn' command."
OSPlatform current isWindows
ifTrue: [
directory asFileReference / 'mvnw.cmd' ifExists: [ ^ 'mvnw.cmd' ] ]
ifFalse: [ "assume *nix"
directory asFileReference / 'mvnw' ifExists: [ ^ './mvnw' ] ].
"assum... | [
{
"filepath": "src/MooseNexus/NexusMavenProject.class.st",
"code": "NexusManagedProject subclass: #NexusMavenProject\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MooseNexus-Project'"
},
{
"filepath": "src/MooseNexus/NexusMavenProject.class.st",
"code": "read\n \t\"Runs the... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "findMavenCommand\n\t\"Return the name of the maven executable, can be a wrapper or the global 'mvn' command.\"\n\n\tOSPlatform current isWindows\n\t\tifTrue: [\n\t\tdirectory asFileReference / 'mvnw.cmd'",
"suffix": " ]\n\t\tifFa... |
1,099 | https://github.com/moosetechnology/MooseNexus | c4cc3ae1f600a6caa2efe953ffb7c872ab2639b5 | src/MooseNexus/NexusMavenProject.class.st | findMavenCommand
"Return the name of the maven executable, can be a wrapper or the global 'mvn' command."
OSPlatform current isWindows
ifTrue: [
directory asFileReference / 'mvnw.cmd' ifExists: [ ^ 'mvnw.cmd' ] ]
ifFalse: [ "assume *nix"
directory asFileReference / 'mvnw' ifExists: [ ^ './mvnw' ] ].
"assum... | [
{
"filepath": "src/MooseNexus/NexusMavenProject.class.st",
"code": "NexusManagedProject subclass: #NexusMavenProject\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MooseNexus-Project'"
},
{
"filepath": "src/MooseNexus/NexusMavenProject.class.st",
"code": "read\n \t\"Runs the... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "findMavenCommand\n\t\"Return the name of the maven executable, can be a wrapper or the global 'mvn' command.\"\n\n\tOSPlatform current isWindows\n\t\tifTrue: [\n\t\tdirectory asFileReference / 'mvnw.cmd' ifExists: [ ^ 'mvnw.cmd' ] ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.