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 |
|---|---|---|---|---|---|---|
2,100 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/Seagull.class.st | register: aSeagullLocation
aSeagullLocation announcer
when: SeagullLocationStatusChanged
do: [ :announcement |
self locationStatusChanged: announcement location ]
for: self;
when: SeagullLocationSettingsChanged
do: [ :announcement |
self locationSettingsChanged: announcement location ]
for: self;
... | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 3,
"prefix": "register: aSeagullLocation\n\n\taSeagullLocation announcer\n\t\twhen: SeagullLocationStatusChanged\n\t\tdo: [ :announcement |\n\t\t\tself locationStatusChanged: announcement location ]\n\t\tfor: self;\n\t\twhen: SeagullLocationSettingsChan... |
2,101 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/Seagull.class.st | unregister: aSeagullLocation
aSeagullLocation announcer unsubscribe: self | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "unregister: aSeagullLocation\n\n\taSeagullLocation",
"suffix": "",
"completion": " announcer unsubscribe: self"
} |
2,102 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocation.class.st | announce: aSeagullAnnouncement
self announcer announce: aSeagullAnnouncement | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "announce: aSeagullAnnouncement\n\n\tself",
"suffix": "",
"completion": " announcer announce: aSeagullAnnouncement"
} |
2,103 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocation.class.st | announceEndDownloading
^ self announce: (SeagullLocationEndDownloading on: self) | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 6,
"prefix": "announceEndDownloading\n\n\t^ self",
"suffix": "",
"completion": " announce: (SeagullLocationEndDownloading on: self)"
} |
2,104 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocation.class.st | announceModificationOnServer
^ self announce: (SeagullLocationModifiedOnServer on: self) | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "announceModificationOnServer\n\n\t^ self announce: (",
"suffix": "",
"completion": "SeagullLocationModifiedOnServer on: self)"
} |
2,105 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocation.class.st | announceSettingsChanged
^ self announce: (SeagullLocationSettingsChanged on: self) | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 6,
"prefix": "announceSettingsChanged\n\n\t^ self",
"suffix": "",
"completion": " announce: (SeagullLocationSettingsChanged on: self)"
} |
2,106 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocation.class.st | announceStartDownloading
^ self announce: (SeagullLocationStartDownloading on: self) | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "announceStartDownloading\n\n\t^ self announce:",
"suffix": "",
"completion": " (SeagullLocationStartDownloading on: self)"
} |
2,107 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocation.class.st | announceStatusChanged
^ self announce: (SeagullLocationStatusChanged on: self) | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 6,
"prefix": "announceStatusChanged\n\n\t^ self",
"suffix": "",
"completion": " announce: (SeagullLocationStatusChanged on: self)"
} |
2,108 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocation.class.st | announcer
^ announcer ifNil: [ announcer := Announcer new ] | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "announcer\n\n\t^ announcer ifNil: [",
"suffix": "",
"completion": " announcer := Announcer new ]"
} |
2,109 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocation.class.st | announcer
^ announcer ifNil: [ announcer := Announcer new ] | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "announcer\n\n\t^ announcer ifNil: [ announcer",
"suffix": " ]",
"completion": " := Announcer new"
} |
2,110 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/SeagullLocationChanged.class.st | on: aSeagullLocation
^ self new location: aSeagullLocation | [
{
"filepath": "src/Seagull-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "on: aSeagullLocation\n\n\t^ self",
"suffix": "",
"completion": " new location: aSeagullLocation"
} |
2,111 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/Seagull.class.st | openDownloads
SeagullOSUtils openFile: self downloadDirectory | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "openDownloads\n\n\tSeagullOSUtils",
"suffix": "",
"completion": " openFile: self downloadDirectory"
} |
2,112 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullDownloadLocation.class.st | readyToDownload
| remote local |
self isDownloading ifTrue: [ ^ false ].
remote := self lastModifiedTimeOnServer.
local := self lastModifiedTimeOfDownloadFile.
remote isNil ifTrue: [ ^ false ].
local isNil ifTrue: [ ^ true ].
^ local < remote | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "readyToDownload\n \n \t| remote local |\n\tself isDownloading ifTrue: [",
"suffix": ".\n \tremote := self lastModifiedTimeOnServer.\n \tlocal := self lastModifiedTimeOfDownloadFile.\n \tremote isNil ifTrue: [ ^ false ].\n \tlocal... |
2,113 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullDownloadLocation.class.st | readyToOpen
| local view |
self isDownloading ifTrue: [ ^ false ].
local := self lastModifiedTimeOfDownloadFile.
view := self lastOpenTime.
local isNil ifTrue: [ ^ false ].
view isNil ifTrue: [ ^ true ].
^ view < local | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "readyToOpen\n \n \t| local view |\n\tself isDownloading",
"suffix": ".\n \tlocal := self lastModifiedTimeOfDownloadFile.\n \tview := self lastOpenTime.\n \tlocal isNil ifTrue: [ ^ false ].\n \tview isNil ifTrue: [ ^ true ].\n \t^... |
2,114 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullDownloadLocation.class.st | readyToUpdate
| remote local |
self isDownloading ifTrue: [ ^ false ].
remote := self lastModifiedTimeOnServer.
local := self lastModifiedTimeOfDownloadFile.
remote isNil ifTrue: [ ^ true ].
local isNil ifTrue: [ ^ true ].
^ self readyToDownload not | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "readyToUpdate\n \n \t| remote local |\n\tself isDownloading ifTrue:",
"suffix": ".\n \tremote := self lastModifiedTimeOnServer.\n \tlocal := self lastModifiedTimeOfDownloadFile.\n \tremote isNil ifTrue: [ ^ true ].\n \tlocal isNi... |
2,115 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtils.class.st | current
^ self allSubclassesDo: [ :class |
(class isAbstract not and: [ class enabled ]) ifTrue: [ ^ class ] ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 10,
"prefix": "current\n\n\t^ self allSubclassesDo: [ :class |\n\t\t (class isAbstract not and: [",
"suffix": "",
"completion": " class enabled ]) ifTrue: [ ^ class ] ]"
} |
2,116 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtils.class.st | current
^ self allSubclassesDo: [ :class |
(class isAbstract not and: [ class enabled ]) ifTrue: [ ^ class ] ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "current\n\n\t^ self allSubclassesDo: [ :class |\n\t\t (class isAbstract not and: [ class enabled ])",
"suffix": " ]",
"completion": " ifTrue: [ ^ class ]"
} |
2,117 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtils.class.st | isAbstract
^ self = SeagullOSUtils | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "isAbstract\n\n\t^",
"suffix": "",
"completion": " self = SeagullOSUtils"
} |
2,118 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtils.class.st | openFile: aFileReference
^ self current doOpenFile: aFileReference | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "openFile: aFileReference\n\n\t^ self",
"suffix": "",
"completion": " current doOpenFile: aFileReference"
} |
2,119 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtils.class.st | openUrl: aZnUrl
^ self current doOpenUrl: aZnUrl | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "openUrl: aZnUrl\n\n\t^ self",
"suffix": "",
"completion": " current doOpenUrl: aZnUrl"
} |
2,120 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtilsMacOS.class.st | doOpenFile: aFileReference
LibC system:
('open ' , (self shellEscape: aFileReference pathString))
asUTF8Bytes | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "doOpenFile: aFileReference\n\n\tLibC system:\n\t\t('open ' , (self shellEscape: aFileReference",
"suffix": "",
"completion": " pathString))\n\t\t\tasUTF8Bytes"
} |
2,121 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtilsMacOS.class.st | doOpenUrl: aZnUrl
LibC system:
('open ' , (self shellEscape: aZnUrl asString)) asUTF8Bytes | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "doOpenUrl: aZnUrl\n\n\tLibC system:\n\t\t('open ' , (self",
"suffix": "",
"completion": " shellEscape: aZnUrl asString)) asUTF8Bytes"
} |
2,122 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtilsMacOS.class.st | enabled
^ OSPlatform current isMacOSX | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "enabled\n\n\t^",
"suffix": "",
"completion": " OSPlatform current isMacOSX"
} |
2,123 | https://github.com/tomooda/Seagull | 61937be72f4b8a0e77d25a8ed1dccb6c51e13794 | src/Seagull-Core/SeagullOSUtilsMacOS.class.st | shellEscape: aString
^ '''' , (aString copyReplaceAll: '''' with: '''"''"''') , '''' | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "shellEscape: aString\n\n\t^ '''' , (aString copyReplaceAll: ''''",
"suffix": "",
"completion": " with: '''\"''\"''') , ''''"
} |
2,124 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/BaselineOfSeagull/BaselineOfSeagull.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec
baseline: 'Phleeter'
with: [ spec repository: 'github://tomooda/Phleeter:main/src' ].
spec
package: 'Seagull-Core';
package: 'Seagull-Application' with: [ spec requires: 'Phleeter' ].
spec
group: 'default'
with: #( 'Seagull-Core' 'Seagull... | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec\n\t\t\tbaseline: 'Phleeter'\n\t\t\twith: [ spec repository: 'github://tomooda/Phleeter:main/src' ].\n\t\tspec\n\t\t\tpackage: 'Seagull-Core';\n\t\t\tpackage: 'Seag... |
2,125 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/BaselineOfSeagull/BaselineOfSeagull.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec
baseline: 'Phleeter'
with: [ spec repository: 'github://tomooda/Phleeter:main/src' ].
spec
package: 'Seagull-Core';
package: 'Seagull-Application' with: [ spec requires: 'Phleeter' ].
spec
group: 'default'
with: #( 'Seagull-Core' 'Seagull... | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 2,
"mask_type": "cascade",
"n_masked_tokens": 4,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec\n\t\t\tbaseline: 'Phleeter'\n\t\t\twith: [ spec repository: 'github://tomooda/Phleeter:main/src' ].\n\t\tspec\n\t\t\tpackage: 'Seagull-Core';\n\t\t\tpackage: 'Seagull-Appl... |
2,126 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/BaselineOfSeagull/BaselineOfSeagull.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec
baseline: 'Phleeter'
with: [ spec repository: 'github://tomooda/Phleeter:main/src' ].
spec
package: 'Seagull-Core';
package: 'Seagull-Application' with: [ spec requires: 'Phleeter' ].
spec
group: 'default'
with: #( 'Seagull-Core' 'Seagull... | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec\n\t\t\tbaseline: 'Phleeter'\n\t\t\twith: [",
"suffix": ".\n\t\tspec\n\t\t\tpackage: 'Seagull-Core';\n\t\t\tpackage: 'Seagull-Application' with: [ spec requires: ... |
2,127 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/Seagull-Application/SeagullCommandLineHandler.class.st | generateMacOS
<script: 'ViennaCommandLineHandler generateMacOS'>
PhleeterOnOSX new
properties: {
(#AppName -> 'Seagull').
(#InfoString -> 'Web update watcher').
(#BundleIdentifier -> 'com.github.Seagull').
(#ShortVersion -> self codename).
(#DisplayName -> ('Seagull ' , self codename)).
(#C... | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 8,
"prefix": "generateMacOS\n\n\t<script: 'ViennaCommandLineHandler generateMacOS'>\n\tPhleeterOnOSX new\n\t\tproperties: {\n\t\t\t\t(#AppName -> 'Seagull').\n\t\t\t\t(#InfoString -> 'Web update watcher').\n\t\t\t\t(#BundleIdentifier -> 'com.github.Seag... |
2,128 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/Seagull-Application/SeagullCommandLineHandler.class.st | activate
self
installQuitSession;
installMenu.
Seagull open | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 3,
"prefix": "activate\n\n\tself",
"suffix": ".\n\tSeagull open",
"completion": "\n\t\tinstallQuitSession;\n\t\tinstallMenu"
} |
2,129 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/Seagull-Application/SeagullCommandLineHandler.class.st | installMenu
<script: 'ViennaCommandLineHandler new installMenu'>
OSWindowDriver current startUp: true.
OSPlatform current isMacOSX ifTrue: [
| main |
main := CocoaMenu new.
main
title: 'MainMenu';
addSubmenu: 'Seagull'
with: [ :m | m addItemWithTitle: 'Settings' action: [ ] ];
addSubmenu: 'File'
... | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "installMenu\n\n\t<script: 'ViennaCommandLineHandler new installMenu'>\n\tOSWindowDriver current startUp: true.\n\tOSPlatform current isMacOSX ifTrue: [\n\t\t| main |\n\t\tmain := CocoaMenu new.\n\t\tmain\n\t\t\ttitle: 'MainMenu';\n... |
2,130 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/Seagull-Application/SeagullCommandLineHandler.class.st | installMenu
<script: 'ViennaCommandLineHandler new installMenu'>
OSWindowDriver current startUp: true.
OSPlatform current isMacOSX ifTrue: [
| main |
main := CocoaMenu new.
main
title: 'MainMenu';
addSubmenu: 'Seagull'
with: [ :m | m addItemWithTitle: 'Settings' action: [ ] ];
addSubmenu: 'File'
... | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "installMenu\n\n\t<script: 'ViennaCommandLineHandler new installMenu'>\n\tOSWindowDriver",
"suffix": ".\n\tOSPlatform current isMacOSX ifTrue: [\n\t\t| main |\n\t\tmain := CocoaMenu new.\n\t\tmain\n\t\t\ttitle: 'MainMenu';\n\t\t\t... |
2,131 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/Seagull-Application/SeagullCommandLineHandler.class.st | installMenu
<script: 'ViennaCommandLineHandler new installMenu'>
OSWindowDriver current startUp: true.
OSPlatform current isMacOSX ifTrue: [
| main |
main := CocoaMenu new.
main
title: 'MainMenu';
addSubmenu: 'Seagull'
with: [ :m | m addItemWithTitle: 'Settings' action: [ ] ];
addSubmenu: 'File'
... | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "installMenu\n\n\t<script: 'ViennaCommandLineHandler new installMenu'>\n\tOSWindowDriver current startUp: true.\n\tOSPlatform current isMacOSX ifTrue: [\n\t\t| main |\n\t\tmain := CocoaMenu new.\n\t\tmain\n\t\t\ttitle: 'MainMenu';\n... |
2,132 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/Seagull-Application/SeagullCommandLineHandler.class.st | installQuitSession
Smalltalk at: #WorldState ifPresent: [ :class |
class class compile:
'quitSession Smalltalk snapshot: false andQuit: true' ] | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "installQuitSession\n\n\tSmalltalk at: #WorldState",
"suffix": "",
"completion": " ifPresent: [ :class |\n\t\tclass class compile:\n\t\t\t'quitSession Smalltalk snapshot: false andQuit: true' ]"
} |
2,133 | https://github.com/tomooda/Seagull | 2f0dcfdc894f86cf984b791d9845986e4906d999 | src/Seagull-Application/SeagullCommandLineHandler.class.st | installQuitSession
Smalltalk at: #WorldState ifPresent: [ :class |
class class compile:
'quitSession Smalltalk snapshot: false andQuit: true' ] | [
{
"filepath": "src/BaselineOfSeagull/BaselineOfSeagull.class.st",
"code": "BaselineOf subclass: #BaselineOfSeagull\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfSeagull'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "Comma... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "installQuitSession\n\n\tSmalltalk at: #WorldState ifPresent: [ :class |\n\t\tclass",
"suffix": " ]",
"completion": " class compile:\n\t\t\t'quitSession Smalltalk snapshot: false andQuit: true'"
} |
2,134 | https://github.com/tomooda/Seagull | a204213b61115927fd185acc91a32594a18c35bb | src/Seagull-Core/SeagullLocation.class.st | accepts: aDictionary
^ (aDictionary at: 'type' ifAbsent: [ nil ]) = self type | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "accepts: aDictionary\n\n\t^ (aDictionary at: 'type' ifAbsent: [ nil",
"suffix": "",
"completion": " ]) = self type"
} |
2,135 | https://github.com/tomooda/Seagull | a204213b61115927fd185acc91a32594a18c35bb | src/Seagull-Core/SeagullLocation.class.st | classFor: aDictionary
^ self allSubclasses
detect: [ :class |
class isAbstract not and: [ class accepts: aDictionary ] ]
ifNone: [ self error: 'No class can handle the given JSON' ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "classFor: aDictionary\n\n\t^ self allSubclasses\n\t\t detect: [ :class |\n\t\t class isAbstract not and: [ class accepts: aDictionary ] ]\n\t\t ifNone: [ self",
"suffix": "",
"completion": " error: 'No class can handle the given JSON... |
2,136 | https://github.com/tomooda/Seagull | a204213b61115927fd185acc91a32594a18c35bb | src/Seagull-Core/SeagullLocation.class.st | classFor: aDictionary
^ self allSubclasses
detect: [ :class |
class isAbstract not and: [ class accepts: aDictionary ] ]
ifNone: [ self error: 'No class can handle the given JSON' ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "classFor: aDictionary\n\n\t^ self allSubclasses\n\t\t detect: [ :class |\n\t\t class isAbstract not and: [",
"suffix": " ]\n\t\t ifNone: [ self error: 'No class can handle the given JSON' ]",
"completion": " class accepts: a... |
2,137 | https://github.com/tomooda/Seagull | a204213b61115927fd185acc91a32594a18c35bb | src/Seagull-Core/SeagullLocation.class.st | download
[
^ self downloadFileReferenceDo: [ :fileReference |
self
ifModifiedSince: self lastModifiedTimeOnServer
httpClientDo: [ :client |
client
streaming: true;
get.
lastAccessTime := DateAndTime now.
client response ifNotNil: [ :response |
response i... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "download\n \n \t[\n \t^ self downloadFileReferenceDo: [ :fileReference |\n \t\t self\n\t\t\t ifModifiedSince: self lastModifiedTimeOnServer\n \t\t\t httpClientDo: [ :client |\n \t\t\t\t client\n \t\t\t\t\t streaming: true;\n \... |
2,138 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullManualDownloadOnlyPolicy.class.st | readyToDownload
| remote local |
remote := location lastModifiedTimeOnServer.
local := location lastModifiedTimeOfDownloadFile.
remote isNil ifTrue: [ ^ false ].
local isNil ifTrue: [ ^ true ].
^ local < remote | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "readyToDownload\n\n\t| remote local |\n\tremote := location lastModifiedTimeOnServer.\n\tlocal := location lastModifiedTimeOfDownloadFile.\n\tremote isNil ifTrue: [",
"suffix": ".\n\tlocal isNil ifTrue: [ ^ true ].\n\t^ local < r... |
2,139 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullManualDownloadOnlyPolicy.class.st | readyToDownload
| remote local |
remote := location lastModifiedTimeOnServer.
local := location lastModifiedTimeOfDownloadFile.
remote isNil ifTrue: [ ^ false ].
local isNil ifTrue: [ ^ true ].
^ local < remote | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "readyToDownload\n\n\t| remote local |\n\tremote",
"suffix": ".\n\tlocal := location lastModifiedTimeOfDownloadFile.\n\tremote isNil ifTrue: [ ^ false ].\n\tlocal isNil ifTrue: [ ^ true ].\n\t^ local < remote",
"completion": " := loc... |
2,140 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullManualDownloadOnlyPolicy.class.st | readyToDownload
| remote local |
remote := location lastModifiedTimeOnServer.
local := location lastModifiedTimeOfDownloadFile.
remote isNil ifTrue: [ ^ false ].
local isNil ifTrue: [ ^ true ].
^ local < remote | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 4,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "readyToDownload\n\n\t| remote local |\n\tremote := location lastModifiedTimeOnServer.\n\tlocal := location lastModifiedTimeOfDownloadFile.\n\tremote isNil ifTrue: [ ^ false ].\n\tlocal isNil ifTrue: [ ^ true ].\n\t^",
"suffix": "",
"com... |
2,141 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullManualDownloadOnlyPolicy.class.st | readyToUpdate
^ self readyToDownload not | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "readyToUpdate\n\n\t^",
"suffix": "",
"completion": " self readyToDownload not"
} |
2,142 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullSyncOnlyPolicy.class.st | actionButtonIcon
^ location readyToOpen
ifTrue: [ self iconNamed: #accept ]
ifFalse: [ self iconNamed: #empty ] | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 10,
"prefix": "actionButtonIcon\n\n\t^ location readyToOpen\n\t\t ifTrue: [",
"suffix": "",
"completion": " self iconNamed: #accept ]\n\t\t ifFalse: [ self iconNamed: #empty ]"
} |
2,143 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullSyncOnlyPolicy.class.st | doOpenAction
location lastOpenTime: DateAndTime now.
location announceStatusChanged | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "doOpenAction\n\n\tlocation",
"suffix": ".\n\tlocation announceStatusChanged",
"completion": " lastOpenTime: DateAndTime now"
} |
2,144 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullSyncOnlyPolicy.class.st | readyToOpen
| local view |
local := location lastModifiedTimeOfDownloadFile.
view := location lastOpenTime.
local ifNil: [ ^ false ].
view ifNil: [ ^ true ].
^ view < local | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "readyToOpen\n\n\t| local view |\n\tlocal := location lastModifiedTimeOfDownloadFile.\n\tview",
"suffix": ".\n\tlocal ifNil: [ ^ false ].\n\tview ifNil: [ ^ true ].\n\t^ view < local",
"completion": " := location lastOpenTime"
} |
2,145 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullSyncOnlyPolicy.class.st | readyToOpen
| local view |
local := location lastModifiedTimeOfDownloadFile.
view := location lastOpenTime.
local ifNil: [ ^ false ].
view ifNil: [ ^ true ].
^ view < local | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 4,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "readyToOpen\n\n\t| local view |\n\tlocal := location lastModifiedTimeOfDownloadFile.\n\tview := location lastOpenTime.\n\tlocal ifNil: [ ^ false ].\n\tview ifNil: [ ^ true ].\n\t^",
"suffix": "",
"completion": " view < local"
} |
2,146 | https://github.com/tomooda/Seagull | d9d64e659ea51d61ed64e91de446e9e003722619 | src/Seagull-Core/SeagullSyncOnlyPolicy.class.st | readyToOpen
| local view |
local := location lastModifiedTimeOfDownloadFile.
view := location lastOpenTime.
local ifNil: [ ^ false ].
view ifNil: [ ^ true ].
^ view < local | [
{
"filepath": "src/Seagull-Core/SeagullLocation.class.st",
"code": "Object subclass: #SeagullLocation\n\tinstanceVariableNames: 'name policy interval downloadDirectory lastModifiedTimeOnServer lastAccessTime lastOpenTime etag hasDeadUrl isDownloading lock httpClient announcer'\n\tclassVariableNames: 'Downlo... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "readyToOpen\n\n\t| local view |\n\tlocal := location lastModifiedTimeOfDownloadFile.\n\tview := location lastOpenTime.\n\tlocal ifNil:",
"suffix": ".\n\tview ifNil: [ ^ true ].\n\t^ view < local",
"completion": " [ ^ false ]"
} |
2,147 | https://github.com/tomooda/Seagull | 11a05a5220fa3959e3404a4ae50a4574d5f88a08 | src/Seagull-Core/Seagull.class.st | confirm: queryString label: titleString
^ self application newConfirm
title: titleString;
label: queryString;
openModal | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 10,
"prefix": "confirm: queryString label: titleString\n\n\t^",
"suffix": "",
"completion": " self application newConfirm\n\t\t title: titleString;\n\t\t label: queryString;\n\t\t openModal"
} |
2,148 | https://github.com/tomooda/Seagull | 11a05a5220fa3959e3404a4ae50a4574d5f88a08 | src/Seagull-Core/Seagull.class.st | locationMenuFor: aSeagullLocation
^ self newMenu
addGroup: [ :group |
group
addItem: [ :item |
item
icon: aSeagullLocation updateButtonIcon;
name: 'Check';
action: [ aSeagullLocation doUpdateAction ] ];
addItem: [ :item |
item
icon: aSeagu... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "locationMenuFor: aSeagullLocation\n \n \t^ self newMenu\n \t\t addGroup: [ :group |\n \t\t\t group\n \t\t\t\t addItem: [ :item |\n \t\t\t\t\t item\n \t\t\t\t\t\t icon: aSeagullLocation updateButtonIcon;\n \t\t\t\t\t\t name: '... |
2,149 | https://github.com/tomooda/Seagull | 11a05a5220fa3959e3404a4ae50a4574d5f88a08 | src/Seagull-Core/SeagullLocation.class.st | backgroundColor
self hasDeadUrl ifTrue: [ ^ Color lightGray ].
self isDownloading ifTrue: [ ^ Color yellow muchLighter ].
self readyToOpen ifTrue: [ ^ Color cyan mixed: 0.2 with: Color white ].
^ Color white | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
... | {
"fim_idx": 2,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "backgroundColor\n\n\tself hasDeadUrl ifTrue: [ ^ Color lightGray ].\n\tself isDownloading ifTrue: [ ^",
"suffix": " ].\n\tself readyToOpen ifTrue: [ ^ Color cyan mixed: 0.2 with: Color white ].\n\t^ Color white",
"completion": " Color y... |
2,150 | https://github.com/tomooda/Seagull | 11a05a5220fa3959e3404a4ae50a4574d5f88a08 | src/Seagull-Core/SeagullLocation.class.st | backgroundColor
self hasDeadUrl ifTrue: [ ^ Color lightGray ].
self isDownloading ifTrue: [ ^ Color yellow muchLighter ].
self readyToOpen ifTrue: [ ^ Color cyan mixed: 0.2 with: Color white ].
^ Color white | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "backgroundColor\n\n\tself hasDeadUrl ifTrue: [ ^ Color lightGray ].\n\tself isDownloading ifTrue: [ ^ Color yellow muchLighter ].\n\tself readyToOpen ifTrue: [ ^ Color cyan mixed: 0.2",
"suffix": ".\n\t^ Color white",
"completi... |
2,151 | https://github.com/tomooda/Seagull | 11a05a5220fa3959e3404a4ae50a4574d5f88a08 | src/Seagull-Core/SeagullLocation.class.st | backgroundColor
self hasDeadUrl ifTrue: [ ^ Color lightGray ].
self isDownloading ifTrue: [ ^ Color yellow muchLighter ].
self readyToOpen ifTrue: [ ^ Color cyan mixed: 0.2 with: Color white ].
^ Color white | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "backgroundColor\n\n\tself hasDeadUrl ifTrue: [ ^ Color lightGray ].\n\tself isDownloading ifTrue: [ ^",
"suffix": ".\n\tself readyToOpen ifTrue: [ ^ Color cyan mixed: 0.2 with: Color white ].\n\t^ Color white",
"completion": " ... |
2,152 | https://github.com/tomooda/Seagull | 11a05a5220fa3959e3404a4ae50a4574d5f88a08 | src/Seagull-Core/SeagullLocation.class.st | clearTimestampAndFile
lastModifiedTimeOnServer := lastAccessTime := lastOpenTime := etag := nil.
hasDeadUrl := false.
self announceStatusChanged | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "clearTimestampAndFile\n\n\tlastModifiedTimeOnServer := lastAccessTime :=",
"suffix": ".\n\thasDeadUrl := false.\n\tself announceStatusChanged",
"completion": " lastOpenTime := etag := nil"
} |
2,153 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | isDisplayed
self withAdapterDo: [ :a | a widgetDo: [ :w | ^ w world notNil ] ].
^ false | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "isDisplayed\n\n\tself withAdapterDo: [ :a | a widgetDo: [ :",
"suffix": ".\n\t^ false",
"completion": "w | ^ w world notNil ] ]"
} |
2,154 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | isDisplayed
self withAdapterDo: [ :a | a widgetDo: [ :w | ^ w world notNil ] ].
^ false | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "isDisplayed\n\n\tself withAdapterDo: [ :a | a",
"suffix": " ].\n\t^ false",
"completion": " widgetDo: [ :w | ^ w world notNil ]"
} |
2,155 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | isDisplayed
self withAdapterDo: [ :a | a widgetDo: [ :w | ^ w world notNil ] ].
^ false | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 2,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "isDisplayed\n\n\tself withAdapterDo: [ :a | a widgetDo: [ :w | ^",
"suffix": " ] ].\n\t^ false",
"completion": " w world notNil"
} |
2,156 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | isStepping
^ stepProcess notNil and: [ stepProcess isRunning ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 6,
"prefix": "isStepping\n\n\t^ stepProcess",
"suffix": "",
"completion": " notNil and: [ stepProcess isRunning ]"
} |
2,157 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | startStepping
(stepProcess notNil and: [ stepProcess isRunning ]) ifTrue: [
stepProcess terminate ].
stepProcess := [
[ self isDisplayed ] whileTrue: [
self step.
1 second wait ].
stepProcess := nil ] forkAt:
Processor userBackgroun... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "startStepping\n\n\t(stepProcess notNil and: [ stepProcess isRunning",
"suffix": ".\n\tstepProcess := [\n\t [ self isDisplayed ] whileTrue: [\n\t\t self step.\n\t\t 1 second wait ].\n\t ... |
2,158 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | startStepping
(stepProcess notNil and: [ stepProcess isRunning ]) ifTrue: [
stepProcess terminate ].
stepProcess := [
[ self isDisplayed ] whileTrue: [
self step.
1 second wait ].
stepProcess := nil ] forkAt:
Processor userBackgroun... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "startStepping\n\n\t(stepProcess notNil and: [ stepProcess isRunning ]) ifTrue: [\n\t\tstepProcess terminate ].\n\tstepProcess := [\n\t [ self isDisplayed ] whileTrue: [\n\t\t self step.\n\t\t 1 ... |
2,159 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | startStepping
(stepProcess notNil and: [ stepProcess isRunning ]) ifTrue: [
stepProcess terminate ].
stepProcess := [
[ self isDisplayed ] whileTrue: [
self step.
1 second wait ].
stepProcess := nil ] forkAt:
Processor userBackgroun... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "startStepping\n\n\t(stepProcess notNil and: [ stepProcess isRunning ]) ifTrue: [\n\t\tstepProcess terminate ].\n\tstepProcess := [\n\t [ self isDisplayed ] whileTrue: [\n\t\t self step",
"suffix": ".\n... |
2,160 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | step
locationList items do: #poll.
locationList refresh | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "step\n\n\tlocationList",
"suffix": ".\n\tlocationList refresh",
"completion": " items do: #poll"
} |
2,161 | https://github.com/tomooda/Seagull | da1f1a6e58880717f61a53c320c31e99fae5f8bc | src/Seagull-Core/Seagull.class.st | stopStepping
(stepProcess notNil and: [ stepProcess isRunning ]) ifFalse: [
^ self ].
stepProcess terminate.
stepProcess := nil | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "stopStepping\n\n\t(stepProcess notNil and: [ stepProcess isRunning",
"suffix": ".\n\tstepProcess terminate.\n\tstepProcess := nil",
"completion": " ]) ifFalse: [\n\t\t^ self ]"
} |
2,162 | https://github.com/tomooda/Seagull | 28a1ea703fea08c9d895f2f7dea51d755745d95e | src/Seagull-Application/SeagullCommandLineHandler.class.st | installNativeWindow
Smalltalk at: #SpPresenter ifPresent: [ :class |
class class compile:
'open self build openInExternalWindow; layoutFrame: (0@0 corner: 1@1)' ] | [
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "CommandLineHandler subclass: #SeagullCommandLineHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Application'"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "Sp... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "installNativeWindow\n\n\tSmalltalk at: #SpPresenter ifPresent: [ :class |\n\t\tclass class",
"suffix": "",
"completion": " compile:\n\t\t\t'open self build openInExternalWindow; layoutFrame: (0@0 corner: 1@1)' ]"
} |
2,163 | https://github.com/tomooda/Seagull | 28a1ea703fea08c9d895f2f7dea51d755745d95e | src/Seagull-Application/SeagullCommandLineHandler.class.st | installNativeWindow
Smalltalk at: #SpPresenter ifPresent: [ :class |
class class compile:
'open self build openInExternalWindow; layoutFrame: (0@0 corner: 1@1)' ] | [
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "CommandLineHandler subclass: #SeagullCommandLineHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Application'"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "Sp... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "installNativeWindow\n\n\tSmalltalk at: #SpPresenter ifPresent: [ :class |\n\t\tclass",
"suffix": " ]",
"completion": " class compile:\n\t\t\t'open self build openInExternalWindow; layoutFrame: (0@0 corner: 1@1)'"
} |
2,164 | https://github.com/tomooda/Seagull | 28a1ea703fea08c9d895f2f7dea51d755745d95e | src/Seagull-Application/SeagullCommandLineHandler.class.st | setupWindow
self currentWorld submorphs copy do: [ :e | e delete ].
self currentWorld worldState worldRenderer ifNotNil: [ :renderer |
renderer windowTitle: 'Seagull'.
renderer osWindow extent: 600 @ 300.
OSWindowRenderThread createdWindow: renderer osWindow ] | [
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "CommandLineHandler subclass: #SeagullCommandLineHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Application'"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "Sp... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "setupWindow\n\n\tself currentWorld submorphs copy do: [ :e | e delete ].\n\tself currentWorld worldState worldRenderer ifNotNil: [ :renderer |\n\t\trenderer windowTitle: 'Seagull'.\n\t\trenderer",
"suffix": ".\n\t\tOSWindowRender... |
2,165 | https://github.com/tomooda/Seagull | 28a1ea703fea08c9d895f2f7dea51d755745d95e | src/Seagull-Application/SeagullCommandLineHandler.class.st | setupWindow
self currentWorld submorphs copy do: [ :e | e delete ].
self currentWorld worldState worldRenderer ifNotNil: [ :renderer |
renderer windowTitle: 'Seagull'.
renderer osWindow extent: 600 @ 300.
OSWindowRenderThread createdWindow: renderer osWindow ] | [
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "CommandLineHandler subclass: #SeagullCommandLineHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Application'"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "Sp... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "setupWindow\n\n\tself currentWorld",
"suffix": ".\n\tself currentWorld worldState worldRenderer ifNotNil: [ :renderer |\n\t\trenderer windowTitle: 'Seagull'.\n\t\trenderer osWindow extent: 600 @ 300.\n\t\tOSWindowRenderThread cr... |
2,166 | https://github.com/tomooda/Seagull | 28a1ea703fea08c9d895f2f7dea51d755745d95e | src/Seagull-Application/SeagullCommandLineHandler.class.st | setupWindow
self currentWorld submorphs copy do: [ :e | e delete ].
self currentWorld worldState worldRenderer ifNotNil: [ :renderer |
renderer windowTitle: 'Seagull'.
renderer osWindow extent: 600 @ 300.
OSWindowRenderThread createdWindow: renderer osWindow ] | [
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "CommandLineHandler subclass: #SeagullCommandLineHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Application'"
},
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "Sp... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "setupWindow\n\n\tself currentWorld submorphs copy do: [ :e | e delete ].\n\tself currentWorld worldState worldRenderer ifNotNil: [ :renderer |\n\t\trenderer windowTitle: 'Seagull'.\n\t\trenderer osWindow extent:",
"suffix": "",
... |
2,167 | https://github.com/tomooda/Seagull | 1538598fd661d6721e3d6c064a4236695c085501 | src/Seagull-Application/SeagullCommandLineHandler.class.st | deploy
<script>
MCRepositoryGroup allSubInstancesDo: [ :group |
group repositories do: [ :repo | group removeRepository: repo ] ].
IceRepository registry removeAll.
IceCredentialStore current in: [ :store |
store allCredentials do: [ :each | each removeFrom: store ] ].
self currentWorld closeAllWindow... | [
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "CommandLineHandler subclass: #SeagullCommandLineHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Application'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.c... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "deploy\n \n \t<script>\n \tMCRepositoryGroup allSubInstancesDo: [ :group |\n \t\tgroup repositories do: [ :repo | group removeRepository: repo ] ].\n \tIceRepository registry removeAll.\n \tIceCredentialStore current in: [ :store |... |
2,168 | https://github.com/tomooda/Seagull | 1538598fd661d6721e3d6c064a4236695c085501 | src/Seagull-Application/SeagullCommandLineHandler.class.st | deploy
<script>
MCRepositoryGroup allSubInstancesDo: [ :group |
group repositories do: [ :repo | group removeRepository: repo ] ].
IceRepository registry removeAll.
IceCredentialStore current in: [ :store |
store allCredentials do: [ :each | each removeFrom: store ] ].
self currentWorld closeAllWindow... | [
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.class.st",
"code": "CommandLineHandler subclass: #SeagullCommandLineHandler\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Application'"
},
{
"filepath": "src/Seagull-Application/SeagullCommandLineHandler.c... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "deploy\n \n \t<script>\n \tMCRepositoryGroup allSubInstancesDo: [ :group |\n \t\tgroup repositories do: [ :repo | group removeRepository: repo ] ].\n \tIceRepository registry removeAll.\n \tIceCredentialStore current in: [ :store |... |
2,169 | https://github.com/tomooda/Seagull | 548038023b9f2165cbecb42b12941d4360b2ae17 | src/Seagull-Core/Seagull.class.st | importLocationsFile: aFileReference
(aFileReference readStreamDo: [ :stream |
STONJSON fromStream: stream ]) ifNotNil: [ :json |
json at: 'locations' ifPresent: [ :array |
self mergeLocations:
(array collect: [ :dict | SeagullLocation fromJSON: dict ]) ] ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "importLocationsFile: aFileReference\n\n\t(aFileReference readStreamDo: [ :stream |\n\t\t STONJSON fromStream: stream ]) ifNotNil: [ :json |\n\t\tjson at: 'locations' ifPresent: [ :array |\n\t\t\tself mergeLocations:\n\t\t\t\t(array... |
2,170 | https://github.com/tomooda/Seagull | 548038023b9f2165cbecb42b12941d4360b2ae17 | src/Seagull-Core/Seagull.class.st | importLocationsFile: aFileReference
(aFileReference readStreamDo: [ :stream |
STONJSON fromStream: stream ]) ifNotNil: [ :json |
json at: 'locations' ifPresent: [ :array |
self mergeLocations:
(array collect: [ :dict | SeagullLocation fromJSON: dict ]) ] ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "importLocationsFile: aFileReference\n\n\t(aFileReference readStreamDo: [ :stream |\n\t\t STONJSON fromStream: stream ]) ifNotNil: [ :json |\n\t\tjson at: 'locations' ifPresent: [ :array |\n\t\t\tself mergeLocations:\n\t\t\t\t(arra... |
2,171 | https://github.com/tomooda/Seagull | 548038023b9f2165cbecb42b12941d4360b2ae17 | src/Seagull-Core/Seagull.class.st | importLocationsFile: aFileReference
(aFileReference readStreamDo: [ :stream |
STONJSON fromStream: stream ]) ifNotNil: [ :json |
json at: 'locations' ifPresent: [ :array |
self mergeLocations:
(array collect: [ :dict | SeagullLocation fromJSON: dict ]) ] ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "importLocationsFile: aFileReference\n\n\t(aFileReference readStreamDo: [ :stream |\n\t\t STONJSON fromStream: stream ]) ifNotNil: [ :json |\n\t\tjson at: 'locations' ifPresent: [ :array |\n\t\t\tself mergeLocations:\n\t\t\t\t(arra... |
2,172 | https://github.com/tomooda/Seagull | 548038023b9f2165cbecb42b12941d4360b2ae17 | src/Seagull-Core/Seagull.class.st | mergeLocations: aCollectionOfSeagulLocation
| locations urls names |
locations := locationList items.
urls := (locations collect: [ :location | location url asString ])
asSet.
names := (locations collect: #name) asSet.
aCollectionOfSeagulLocation do: [ :location |
(urls includes: location url asString... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "mergeLocations: aCollectionOfSeagulLocation\n\n\t| locations urls names |\n\tlocations := locationList items.\n\turls := (locations collect: [ :location | location",
"suffix": ".\n\tnames := (locations collect: #name) asSet.\n\taColle... |
2,173 | https://github.com/tomooda/Seagull | 548038023b9f2165cbecb42b12941d4360b2ae17 | src/Seagull-Core/Seagull.class.st | mergeLocations: aCollectionOfSeagulLocation
| locations urls names |
locations := locationList items.
urls := (locations collect: [ :location | location url asString ])
asSet.
names := (locations collect: #name) asSet.
aCollectionOfSeagulLocation do: [ :location |
(urls includes: location url asString... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 9,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "mergeLocations: aCollectionOfSeagulLocation\n\n\t| locations urls names |\n\tlocations := locationList items.\n\turls := (locations collect: [ :location | location url asString ])\n\t\t asSet.\n\tnames := (locations collect: #nam... |
2,174 | https://github.com/tomooda/Seagull | 548038023b9f2165cbecb42b12941d4360b2ae17 | src/Seagull-Core/Seagull.class.st | mergeLocations: aCollectionOfSeagulLocation
| locations urls names |
locations := locationList items.
urls := (locations collect: [ :location | location url asString ])
asSet.
names := (locations collect: #name) asSet.
aCollectionOfSeagulLocation do: [ :location |
(urls includes: location url asString... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"... | {
"fim_idx": 10,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "mergeLocations: aCollectionOfSeagulLocation\n\n\t| locations urls names |\n\tlocations := locationList items.\n\turls := (locations collect: [ :location | location url asString ])\n\t\t asSet.\n\tnames := (locations collect: #na... |
2,175 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | buttonHeight
^ self class buttonHeight | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "buttonHeight\n\n\t^",
"suffix": "",
"completion": " self class buttonHeight"
} |
2,176 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | defaultLayout
| buttonWidth |
buttonWidth := self buttonHeight * 2.5.
^ SpBoxLayout newVertical
add: locationList;
add: (SpBoxLayout newHorizontal
add: addLocationButton width: buttonWidth;
add: moveUpLocationButton width: buttonWidth;
add: moveDownLocationButton width: buttonWidth;... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "defaultLayout\n \n\t| buttonWidth |\n\tbuttonWidth",
"suffix": ".\n \t^ SpBoxLayout newVertical\n \t\t add: locationList;\n \t\t add: (SpBoxLayout newHorizontal\n\t\t\t\t add: addLocationButton width: buttonWidth;\n\t\t\t\t add:... |
2,177 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | exportLocationsFile
| presenter |
presenter := StSaveFilePresenter new.
presenter previewer: StFileBrowserTextBasedPreviewer new.
presenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).
presenter defaultFolder: FileLocator home asFileReference.
presenter bookmarks: { (StFileBrowserGroupBookmark
... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "exportLocationsFile\n\n\t| presenter |\n\tpresenter := StSaveFilePresenter new.\n\tpresenter previewer: StFileBrowserTextBasedPreviewer new.\n\tpresenter filter: (StCustomExtensionsFilter",
"suffix": ".\n\tpresenter defaultFolder... |
2,178 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | exportLocationsFile
| presenter |
presenter := StSaveFilePresenter new.
presenter previewer: StFileBrowserTextBasedPreviewer new.
presenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).
presenter defaultFolder: FileLocator home asFileReference.
presenter bookmarks: { (StFileBrowserGroupBookmark
... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "exportLocationsFile\n\n\t| presenter |\n\tpresenter := StSaveFilePresenter new.\n\tpresenter previewer: StFileBrowserTextBasedPreviewer new.\n\tpresenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).\n\tpresenter defa... |
2,179 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | exportLocationsFile
| presenter |
presenter := StSaveFilePresenter new.
presenter previewer: StFileBrowserTextBasedPreviewer new.
presenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).
presenter defaultFolder: FileLocator home asFileReference.
presenter bookmarks: { (StFileBrowserGroupBookmark
... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "exportLocationsFile\n\n\t| presenter |\n\tpresenter",
"suffix": ".\n\tpresenter previewer: StFileBrowserTextBasedPreviewer new.\n\tpresenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).\n\tpresenter defaultFolder: FileL... |
2,180 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | exportLocationsFile: aFileReference
(locationList selectedItems ifEmpty: [ locationList items ])
ifNotEmpty: [ :locations |
aFileReference writeStreamDo: [ :stream |
stream truncate.
STONJSON
put:
{ ('locations' -> (locations collect: #asJSON)) } asDictionary
onStreamPretty: stream ] ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "exportLocationsFile: aFileReference\n\n\t(locationList selectedItems ifEmpty: [ locationList items ])\n\t\tifNotEmpty: [ :locations |\n\t\t\taFileReference writeStreamDo: [ :stream |\n\t\t\t\tstream truncate.\n\t\t\t\tSTONJSON\n\t\... |
2,181 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | exportLocationsFile: aFileReference
(locationList selectedItems ifEmpty: [ locationList items ])
ifNotEmpty: [ :locations |
aFileReference writeStreamDo: [ :stream |
stream truncate.
STONJSON
put:
{ ('locations' -> (locations collect: #asJSON)) } asDictionary
onStreamPretty: stream ] ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "exportLocationsFile: aFileReference\n\n\t(locationList selectedItems ifEmpty: [ locationList items ])\n\t\tifNotEmpty: [ :locations |\n\t\t\taFileReference writeStreamDo: [ :stream |\n\t\t\t\tstream truncate.\n\t\t\t\tSTONJSON\n\t\... |
2,182 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | exportLocationsFile: aFileReference
(locationList selectedItems ifEmpty: [ locationList items ])
ifNotEmpty: [ :locations |
aFileReference writeStreamDo: [ :stream |
stream truncate.
STONJSON
put:
{ ('locations' -> (locations collect: #asJSON)) } asDictionary
onStreamPretty: stream ] ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "exportLocationsFile: aFileReference\n\n\t(locationList selectedItems ifEmpty: [ locationList items ])\n\t\tifNotEmpty: [ :locations |\n\t\t\taFileReference writeStreamDo: [ :stream |\n\t\t\t\tstream truncate.\n\t\t\t\tSTONJSON\n\t\... |
2,183 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | importLocationsFile
| presenter |
presenter := StOpenFilePresenter new.
presenter previewer: StFileBrowserTextBasedPreviewer new.
presenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).
presenter defaultFolder: FileLocator home asFileReference.
presenter bookmarks: { (StFileBrowserGroupBookmark
... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "importLocationsFile\n\n\t| presenter |\n\tpresenter := StOpenFilePresenter new.\n\tpresenter previewer: StFileBrowserTextBasedPreviewer new.\n\tpresenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).\n\tpresenter defa... |
2,184 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | importLocationsFile
| presenter |
presenter := StOpenFilePresenter new.
presenter previewer: StFileBrowserTextBasedPreviewer new.
presenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).
presenter defaultFolder: FileLocator home asFileReference.
presenter bookmarks: { (StFileBrowserGroupBookmark
... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "importLocationsFile\n\n\t| presenter |\n\tpresenter",
"suffix": ".\n\tpresenter previewer: StFileBrowserTextBasedPreviewer new.\n\tpresenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).\n\tpresenter defaultFolder: FileL... |
2,185 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | importLocationsFile
| presenter |
presenter := StOpenFilePresenter new.
presenter previewer: StFileBrowserTextBasedPreviewer new.
presenter filter: (StCustomExtensionsFilter extensions: #( '.sgl' )).
presenter defaultFolder: FileLocator home asFileReference.
presenter bookmarks: { (StFileBrowserGroupBookmark
... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "importLocationsFile\n\n\t| presenter |\n\tpresenter := StOpenFilePresenter new.\n\tpresenter previewer: StFileBrowserTextBasedPreviewer new.\n\tpresenter filter: (StCustomExtensionsFilter",
"suffix": ".\n\tpresenter defaultFolder... |
2,186 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | openPublishMenu
(self newMenu addGroup: [ :group |
group
addItem: [ :item |
item
name: 'Import locations...';
action: [ self importLocationsFile ] ];
addItem: [ :item |
item
name: 'Export locations...';
action: [ self exportLocationsFile ] ] ]) openWithSpecAtPointer | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 1,
"mask_type": "cascade",
"n_masked_tokens": 6,
"prefix": "openPublishMenu\n\n\t(self newMenu addGroup: [ :group |\n\t\t group\n\t\t\t addItem: [ :item |\n\t\t\t\t item\n\t\t\t\t\t name: 'Import locations...';\n\t\t\t\t\t action: [ self importLocationsFile ] ];\n\t\t\t addItem: [ :item |\n\t\t\t\t... |
2,187 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | openPublishMenu
(self newMenu addGroup: [ :group |
group
addItem: [ :item |
item
name: 'Import locations...';
action: [ self importLocationsFile ] ];
addItem: [ :item |
item
name: 'Export locations...';
action: [ self exportLocationsFile ] ] ]) openWithSpecAtPointer | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 2,
"mask_type": "cascade",
"n_masked_tokens": 5,
"prefix": "openPublishMenu\n\n\t(self newMenu addGroup: [ :group |\n\t\t group\n\t\t\t addItem: [ :item |\n\t\t\t\t item\n\t\t\t\t\t name: 'Import locations...';",
"suffix": " ];\n\t\t\t addItem: [ :item |\n\t\t\t\t item\n\t\t\t\t\t name: 'Export l... |
2,188 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | openPublishMenu
(self newMenu addGroup: [ :group |
group
addItem: [ :item |
item
name: 'Import locations...';
action: [ self importLocationsFile ] ];
addItem: [ :item |
item
name: 'Export locations...';
action: [ self exportLocationsFile ] ] ]) openWithSpecAtPointer | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 0,
"mask_type": "unary_message",
"n_masked_tokens": 10,
"prefix": "openPublishMenu\n\n\t(self newMenu addGroup: [ :group |\n\t\t group\n\t\t\t addItem: [ :item |\n\t\t\t\t item\n\t\t\t\t\t name: 'Import locations...';\n\t\t\t\t\t action: [ self importLocationsFile ] ];\n\t\t\t addItem: [ :item |\n\... |
2,189 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | removeLocation
locationList selectedItems ifNotEmpty: [ :locations |
locationList items: (locationList items copyWithoutAll: locations) ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "removeLocation\n\n\tlocationList selectedItems ifNotEmpty: [ :locations |\n\t\tlocationList items:",
"suffix": "",
"completion": " (locationList items copyWithoutAll: locations) ]"
} |
2,190 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/Seagull.class.st | removeLocation
locationList selectedItems ifNotEmpty: [ :locations |
locationList items: (locationList items copyWithoutAll: locations) ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "removeLocation\n\n\tlocationList selectedItems ifNotEmpty: [ :locations |\n\t\tlocationList items: (locationList",
"suffix": " ]",
"completion": " items copyWithoutAll: locations)"
} |
2,191 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/StDirectoryTreePresenter.extension.st | expandPath: aFileLocator
"Expand the receiver's tree to aFileLocator reference"
| path aPathForSpec currentNode |
path := aFileLocator asPath segments asOrderedCollection.
aPathForSpec := OrderedCollection new.
aPathForSpec add: 1.
currentNode := directoryTreePresenter roots anyOne.
path do: [ :aPart |
| su... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "expandPath: aFileLocator\n\t\"Expand the receiver's tree to aFileLocator reference\"\n\n\t| path aPathForSpec currentNode |\n\tpath := aFileLocator asPath segments asOrderedCollection.\n\taPathForSpec := OrderedCollection new.\n\ta... |
2,192 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/StDirectoryTreePresenter.extension.st | expandPath: aFileLocator
"Expand the receiver's tree to aFileLocator reference"
| path aPathForSpec currentNode |
path := aFileLocator asPath segments asOrderedCollection.
aPathForSpec := OrderedCollection new.
aPathForSpec add: 1.
currentNode := directoryTreePresenter roots anyOne.
path do: [ :aPart |
| su... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 10,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "expandPath: aFileLocator\n\t\"Expand the receiver's tree to aFileLocator reference\"\n\n\t| path aPathForSpec currentNode |\n\tpath := aFileLocator asPath segments asOrderedCollection.\n\taPathForSpec := OrderedCollection new.\n\t... |
2,193 | https://github.com/tomooda/Seagull | 019655e864e2ca43a259282313802b196f5a9e00 | src/Seagull-Core/StDirectoryTreePresenter.extension.st | expandPath: aFileLocator
"Expand the receiver's tree to aFileLocator reference"
| path aPathForSpec currentNode |
path := aFileLocator asPath segments asOrderedCollection.
aPathForSpec := OrderedCollection new.
aPathForSpec add: 1.
currentNode := directoryTreePresenter roots anyOne.
path do: [ :aPart |
| su... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList openDownloadsButton refreshLocationListButton moveUpLocationButton moveDownLocationButton addLocationButton stepProcess publishButton removeLocationButton'\n\tclassVariableNames... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "expandPath: aFileLocator\n\t\"Expand the receiver's tree to aFileLocator reference\"\n\n\t| path aPathForSpec currentNode |\n\tpath := aFileLocator asPath segments asOrderedCollection.\n\taPathForSpec := OrderedCollection new.\n\ta... |
2,194 | https://github.com/Gabriel-Darbord/pharo-zstd | 3cffe9b3f8a7a78285cea6b22e9bf3a405ff2217 | src/BaselineOfLibZstd/BaselineOfLibZstd.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec package: 'LibZstd'.
spec group: 'default' with: #( 'LibZstd' ) ] | [
{
"filepath": "src/BaselineOfLibZstd/BaselineOfLibZstd.class.st",
"code": "BaselineOf subclass: #BaselineOfLibZstd\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfLibZstd'"
},
{
"filepath": "src/LibZStd/LibZstd.class.st",
"code": "FFILibrary subclass: #LibZstd\n\tin... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec package: 'LibZstd'.\n\t\tspec group: 'default' with: #(",
"suffix": "",
"completion": " 'LibZstd' ) ]"
} |
2,195 | https://github.com/Gabriel-Darbord/pharo-zstd | 3cffe9b3f8a7a78285cea6b22e9bf3a405ff2217 | src/BaselineOfLibZstd/BaselineOfLibZstd.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec package: 'LibZstd'.
spec group: 'default' with: #( 'LibZstd' ) ] | [
{
"filepath": "src/BaselineOfLibZstd/BaselineOfLibZstd.class.st",
"code": "BaselineOf subclass: #BaselineOfLibZstd\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfLibZstd'"
},
{
"filepath": "src/LibZStd/LibZstd.class.st",
"code": "FFILibrary subclass: #LibZstd\n\tin... | {
"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 package: 'LibZstd'.\n\t\tspec",
"suffix": " ]",
"completion": " group: 'default' with: #( 'LibZstd' )"
} |
2,196 | https://github.com/Gabriel-Darbord/pharo-zstd | 3cffe9b3f8a7a78285cea6b22e9bf3a405ff2217 | src/LibZStd/LibZstd.class.st | compress: source size: srcSize into: destination capacity: dstCapacity compressionLevel: compressionLevel
"Compresses `source` content as a single zstd compressed frame into already allocated `destination`.
NOTE: Providing `dstCapacity >= compressBound(srcSize)` guarantees that zstd will have enough space to successf... | [
{
"filepath": "src/BaselineOfLibZstd/BaselineOfLibZstd.class.st",
"code": "BaselineOf subclass: #BaselineOfLibZstd\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfLibZstd'"
},
{
"filepath": "src/LibZStd/LibZstd.class.st",
"code": "FFILibrary subclass: #LibZstd\n\tin... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "compress: source size: srcSize into: destination capacity: dstCapacity compressionLevel: compressionLevel\n\t\"Compresses `source` content as a single zstd compressed frame into already allocated `destination`.\n\tNOTE: Providing ... |
2,197 | https://github.com/Gabriel-Darbord/pharo-zstd | 3cffe9b3f8a7a78285cea6b22e9bf3a405ff2217 | src/LibZStd/LibZstd.class.st | compressBound: srcSize
self ffiCall: #(size_t ZSTD_compressBound(size_t srcSize)) | [
{
"filepath": "src/BaselineOfLibZstd/BaselineOfLibZstd.class.st",
"code": "BaselineOf subclass: #BaselineOfLibZstd\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfLibZstd'"
},
{
"filepath": "src/LibZStd/LibZstd.class.st",
"code": "FFILibrary subclass: #LibZstd\n\tin... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "compressBound: srcSize\n\n\tself ffiCall: #(size_t ZSTD_compressBound(",
"suffix": "",
"completion": "size_t srcSize))"
} |
2,198 | https://github.com/Gabriel-Darbord/pharo-zstd | 3cffe9b3f8a7a78285cea6b22e9bf3a405ff2217 | src/LibZStd/LibZstd.class.st | compressBytes: srcBuffer atLevel: compressionLevel
| srcSize dstBuffer dstSize resultSize |
srcSize := srcBuffer size.
dstSize := self compressBound: srcSize. "maximum capacity required"
dstBuffer := ByteArray new: dstSize.
resultSize := self
compress: srcBuffer
size: srcSize
... | [
{
"filepath": "src/BaselineOfLibZstd/BaselineOfLibZstd.class.st",
"code": "BaselineOf subclass: #BaselineOfLibZstd\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfLibZstd'"
},
{
"filepath": "src/LibZStd/LibZstd.class.st",
"code": "FFILibrary subclass: #LibZstd\n\tin... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "compressBytes: srcBuffer atLevel: compressionLevel\n\n\t| srcSize dstBuffer dstSize resultSize |\n\tsrcSize := srcBuffer size.\n\tdstSize := self compressBound: srcSize. \"maximum capacity required\"\n\tdstBuffer := ByteArray new: ... |
2,199 | https://github.com/Gabriel-Darbord/pharo-zstd | 3cffe9b3f8a7a78285cea6b22e9bf3a405ff2217 | src/LibZStd/LibZstd.class.st | compressBytes: srcBuffer atLevel: compressionLevel
| srcSize dstBuffer dstSize resultSize |
srcSize := srcBuffer size.
dstSize := self compressBound: srcSize. "maximum capacity required"
dstBuffer := ByteArray new: dstSize.
resultSize := self
compress: srcBuffer
size: srcSize
... | [
{
"filepath": "src/BaselineOfLibZstd/BaselineOfLibZstd.class.st",
"code": "BaselineOf subclass: #BaselineOfLibZstd\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfLibZstd'"
},
{
"filepath": "src/LibZStd/LibZstd.class.st",
"code": "FFILibrary subclass: #LibZstd\n\tin... | {
"fim_idx": 7,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "compressBytes: srcBuffer atLevel: compressionLevel\n\n\t| srcSize dstBuffer dstSize resultSize |\n\tsrcSize := srcBuffer size.\n\tdstSize := self compressBound: srcSize. \"maximum capacity required\"\n\tdstBuffer := ByteArray new: ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.