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,000 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | noCheckAdd: anObject
"Must be defined separately because (self findElementOrNilForInsertion:) expects a key, not an association."
array
at: (self findElementOrNilForInsertion: anObject key)
put: anObject.
tally := tally + 1 | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "noCheckAdd: anObject\n\t\"Must be defined separately because (self findElementOrNilForInsertion:) expects a key, not an association.\"\n\n\tarray\n\t\tat: (self findElementOrNilForInsertion: anObject key)\n\t\tput: anObject.\n\ttally",
... |
2,001 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | postCopy
super postCopy.
probeSequenceLengths := probeSequenceLengths copy | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "postCopy\n\n\tsuper postCopy.\n\tprobeSequenceLengths",
"suffix": "",
"completion": " := probeSequenceLengths copy"
} |
2,002 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | rehash
| newSelf |
newSelf := self species new: self size.
self associationsDo: [ :each | newSelf noCheckAdd: each ].
array := newSelf array.
probeSequenceLengths := newSelf probeSequenceLengths | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "rehash\n\n\t| newSelf |\n\tnewSelf",
"suffix": ".\n\tself associationsDo: [ :each | newSelf noCheckAdd: each ].\n\tarray := newSelf array.\n\tprobeSequenceLengths := newSelf probeSequenceLengths",
"completion": " := self species new... |
2,003 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | rehash
| newSelf |
newSelf := self species new: self size.
self associationsDo: [ :each | newSelf noCheckAdd: each ].
array := newSelf array.
probeSequenceLengths := newSelf probeSequenceLengths | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "rehash\n\n\t| newSelf |\n\tnewSelf := self species new: self size.\n\tself associationsDo: [ :each | newSelf noCheckAdd: each ].\n\tarray",
"suffix": ".\n\tprobeSequenceLengths := newSelf probeSequenceLengths",
"completion": " := ne... |
2,004 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | rehash
| newSelf |
newSelf := self species new: self size.
self associationsDo: [ :each | newSelf noCheckAdd: each ].
array := newSelf array.
probeSequenceLengths := newSelf probeSequenceLengths | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "rehash\n\n\t| newSelf |\n\tnewSelf := self species new: self size.\n\tself associationsDo: [ :each",
"suffix": ".\n\tarray := newSelf array.\n\tprobeSequenceLengths := newSelf probeSequenceLengths",
"completion": " | newSelf no... |
2,005 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | removeKey: key ifAbsent: aBlock
"Remove key (and its associated value) from the receiver. If key is not in
the receiver, answer the result of evaluating aBlock. Otherwise, answer
the value externally named by key."
| index assoc |
index := self scanFor: key.
assoc := (array at: index) ifNil: [ ^ aBlock value ].
... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "removeKey: key ifAbsent: aBlock\n\t\"Remove key (and its associated value) from the receiver. If key is not in\n\tthe receiver, answer the result of evaluating aBlock. Otherwise, answer\n\tthe value externally named by key.\"\n\n\t| ind... |
2,006 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | removeKey: key ifAbsent: aBlock
"Remove key (and its associated value) from the receiver. If key is not in
the receiver, answer the result of evaluating aBlock. Otherwise, answer
the value externally named by key."
| index assoc |
index := self scanFor: key.
assoc := (array at: index) ifNil: [ ^ aBlock value ].
... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 7,
"prefix": "removeKey: key ifAbsent: aBlock\n\t\"Remove key (and its associated value) from the receiver. If key is not in\n\tthe receiver, answer the result of evaluating aBlock. Otherwise, answer\n\tthe value externally named by key.\"\n\n\t| ind... |
2,007 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | removeKey: key ifAbsent: aBlock
"Remove key (and its associated value) from the receiver. If key is not in
the receiver, answer the result of evaluating aBlock. Otherwise, answer
the value externally named by key."
| index assoc |
index := self scanFor: key.
assoc := (array at: index) ifNil: [ ^ aBlock value ].
... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "removeKey: key ifAbsent: aBlock\n\t\"Remove key (and its associated value) from the receiver. If key is not in\n\tthe receiver, answer the result of evaluating aBlock. Otherwise, answer\n\tthe value externally named by key.\"\n\n\t| ind... |
2,008 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | scanForEmptySlotFor: aKey
"Scan the key array for the first slot containing an empty slot (indicated by a nil).
This method is called for inserting a new element, so we take the opportunity to compute its probe sequence length.
Answer the index of that slot."
| index start probeSequenceLength |
index := start := ... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "scanForEmptySlotFor: aKey\n\t\"Scan the key array for the first slot containing an empty slot (indicated by a nil).\n\tThis method is called for inserting a new element, so we take the opportunity to compute its probe sequence leng... |
2,009 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | scanForEmptySlotFor: aKey
"Scan the key array for the first slot containing an empty slot (indicated by a nil).
This method is called for inserting a new element, so we take the opportunity to compute its probe sequence length.
Answer the index of that slot."
| index start probeSequenceLength |
index := start := ... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 5,
"mask_type": "binary_message",
"n_masked_tokens": 5,
"prefix": "scanForEmptySlotFor: aKey\n\t\"Scan the key array for the first slot containing an empty slot (indicated by a nil).\n\tThis method is called for inserting a new element, so we take the opportunity to compute its probe sequence lengt... |
2,010 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | scanForEmptySlotFor: aKey
"Scan the key array for the first slot containing an empty slot (indicated by a nil).
This method is called for inserting a new element, so we take the opportunity to compute its probe sequence length.
Answer the index of that slot."
| index start probeSequenceLength |
index := start := ... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "scanForEmptySlotFor: aKey\n\t\"Scan the key array for the first slot containing an empty slot (indicated by a nil).\n\tThis method is called for inserting a new element, so we take the opportunity to compute its probe sequence length.\n... |
2,011 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | scanForInsertion: anObject
"Scan the key array for the first slot containing either a nil (indicating an empty slot) or an element that matches anObject.
This method is called for inserting a new element, so we take the opportunity to compute its probe sequence length.
Answer the index of that slot or zero if no slo... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "scanForInsertion: anObject\n\t\"Scan the key array for the first slot containing either a nil (indicating an empty slot) or an element that matches anObject.\n\tThis method is called for inserting a new element, so we take the opportuni... |
2,012 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | scanForInsertion: anObject
"Scan the key array for the first slot containing either a nil (indicating an empty slot) or an element that matches anObject.
This method is called for inserting a new element, so we take the opportunity to compute its probe sequence length.
Answer the index of that slot or zero if no slo... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "scanForInsertion: anObject\n\t\"Scan the key array for the first slot containing either a nil (indicating an empty slot) or an element that matches anObject.\n\tThis method is called for inserting a new element, so we take the oppo... |
2,013 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | scanForInsertion: anObject
"Scan the key array for the first slot containing either a nil (indicating an empty slot) or an element that matches anObject.
This method is called for inserting a new element, so we take the opportunity to compute its probe sequence length.
Answer the index of that slot or zero if no slo... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "scanForInsertion: anObject\n\t\"Scan the key array for the first slot containing either a nil (indicating an empty slot) or an element that matches anObject.\n\tThis method is called for inserting a new element, so we take the oppo... |
2,014 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | stealFrom: richIndex
"Robin Hood steals from the rich and gives to the poor.
The element at richIndex has a smaller probe sequence length than another element we wanted to insert, so its place is stolen by the inserted element.
We look for a new place to put the rich element, thus increasing its probe sequence lengt... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 10,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "stealFrom: richIndex\n\t\"Robin Hood steals from the rich and gives to the poor.\n\tThe element at richIndex has a smaller probe sequence length than another element we wanted to insert, so its place is stolen by the inserted elem... |
2,015 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | stealFrom: richIndex
"Robin Hood steals from the rich and gives to the poor.
The element at richIndex has a smaller probe sequence length than another element we wanted to insert, so its place is stolen by the inserted element.
We look for a new place to put the rich element, thus increasing its probe sequence lengt... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 8,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "stealFrom: richIndex\n\t\"Robin Hood steals from the rich and gives to the poor.\n\tThe element at richIndex has a smaller probe sequence length than another element we wanted to insert, so its place is stolen by the inserted eleme... |
2,016 | https://github.com/Gabriel-Darbord/Collections-RobinHood | 89a0a16fb0d2cad2a73a0946093cd2607523650c | src/Collections-RobinHood/RHDictionary.class.st | stealFrom: richIndex
"Robin Hood steals from the rich and gives to the poor.
The element at richIndex has a smaller probe sequence length than another element we wanted to insert, so its place is stolen by the inserted element.
We look for a new place to put the rich element, thus increasing its probe sequence lengt... | [
{
"filepath": "src/BaselineOfRobinHoodCollections/BaselineOfRobinHoodCollections.class.st",
"code": "BaselineOf subclass: #BaselineOfRobinHoodCollections\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfRobinHoodCollections'"
},
{
"filepath": "src/Collections-RobinHood-T... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "stealFrom: richIndex\n\t\"Robin Hood steals from the rich and gives to the poor.\n\tThe element at richIndex has a smaller probe sequence length than another element we wanted to insert, so its place is stolen by the inserted element.\n... |
2,017 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/BaselineOfPhleeter/BaselineOfPhleeter.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec blessing: #baseline.
spec
baseline: 'ApplicationGenerator'
with: [
spec repository: 'github://tesonep/PharoApplicationGenerator/src' ];
package: 'Phleeter-Core'
with: [ spec requires: #( 'ApplicationGenerator' ) ];
group: 'default' with: #... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec blessing: #baseline.\n\t\tspec\n\t\t\tbaseline: 'ApplicationGenerator'\n\t\t\twith: [\n\t\t\t\tspec repository: 'github://tesonep/PharoApplicationGenerator/src' ];... |
2,018 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/BaselineOfPhleeter/BaselineOfPhleeter.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec blessing: #baseline.
spec
baseline: 'ApplicationGenerator'
with: [
spec repository: 'github://tesonep/PharoApplicationGenerator/src' ];
package: 'Phleeter-Core'
with: [ spec requires: #( 'ApplicationGenerator' ) ];
group: 'default' with: #... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 1,
"mask_type": "cascade",
"n_masked_tokens": 5,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec blessing: #baseline.\n\t\tspec\n\t\t\tbaseline: 'ApplicationGenerator'\n\t\t\twith: [\n\t\t\t\tspec repository: 'github://tesonep/PharoApplicationGenerator/src' ];\n\t\t\t... |
2,019 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/BaselineOfPhleeter/BaselineOfPhleeter.class.st | baseline: spec
<baseline>
spec for: #common do: [
spec blessing: #baseline.
spec
baseline: 'ApplicationGenerator'
with: [
spec repository: 'github://tesonep/PharoApplicationGenerator/src' ];
package: 'Phleeter-Core'
with: [ spec requires: #( 'ApplicationGenerator' ) ];
group: 'default' with: #... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "baseline: spec\n\n\t<baseline>\n\tspec for: #common do: [\n\t\tspec blessing: #baseline.\n\t\tspec\n\t\t\tbaseline: 'ApplicationGenerator'\n\t\t\twith: [\n\t\t\t\tspec repository: 'github://tesonep/PharoApplicationGenerator/src' ];... |
2,020 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | addExternalDirectory: origin destination: destination
externalResources add: (AppGeneratorFileResource new
generator: self;
origin: origin asFileReference;
destination: destination;
beDirectory;
yourself) | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "addExternalDirectory: origin destination: destination\n\n\texternalResources add: (AppGeneratorFileResource new\n\t\t\t generator: self;\n\t\t\t origin: origin asFileReference;\n\t\t\t destination: destination;",
"suffix": "",
... |
2,021 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | addExternalFile: origin destination: destination
externalResources add: (AppGeneratorFileResource new
generator: self;
origin: origin asFileReference;
destination: destination;
yourself) | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "addExternalFile: origin destination: destination\n\n\texternalResources add: (AppGeneratorFileResource new\n\t\t\t generator: self;\n\t\t\t origin: origin asFileReference;\n\t\t\t destination:",
"suffix": "",
"completion": " de... |
2,022 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | copyIconSetIn: appDirectory
(appDirectory / 'Contents' / 'Resources') ensureCreateDirectory.
(appDirectory / 'Contents' / 'Resources' / 'icon.icns') ensureDelete.
self iconSetFile copyTo:
appDirectory / 'Contents' / 'Resources' / 'icon.icns'.
"Copying in the Build directory for the installer icon"
(outputDire... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "copyIconSetIn: appDirectory\n\n\t(appDirectory / 'Contents' / 'Resources') ensureCreateDirectory.\n\n\t(appDirectory / 'Contents' / 'Resources' / 'icon.icns') ensureDelete.\n\tself iconSetFile copyTo:\n\t\tappDirectory / 'Contents'... |
2,023 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | copyIconSetIn: appDirectory
(appDirectory / 'Contents' / 'Resources') ensureCreateDirectory.
(appDirectory / 'Contents' / 'Resources' / 'icon.icns') ensureDelete.
self iconSetFile copyTo:
appDirectory / 'Contents' / 'Resources' / 'icon.icns'.
"Copying in the Build directory for the installer icon"
(outputDire... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 1,
"mask_type": "unary_message",
"n_masked_tokens": 3,
"prefix": "copyIconSetIn: appDirectory\n\n\t(appDirectory / 'Contents' / 'Resources') ensureCreateDirectory.\n\n\t(appDirectory / 'Contents' / 'Resources' /",
"suffix": ".\n\tself iconSetFile copyTo:\n\t\tappDirectory / 'Contents' / 'Resource... |
2,024 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | copyIconSetIn: appDirectory
(appDirectory / 'Contents' / 'Resources') ensureCreateDirectory.
(appDirectory / 'Contents' / 'Resources' / 'icon.icns') ensureDelete.
self iconSetFile copyTo:
appDirectory / 'Contents' / 'Resources' / 'icon.icns'.
"Copying in the Build directory for the installer icon"
(outputDire... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 3,
"mask_type": "unary_message",
"n_masked_tokens": 3,
"prefix": "copyIconSetIn: appDirectory\n\n\t(appDirectory / 'Contents' / 'Resources') ensureCreateDirectory.\n\n\t(appDirectory / 'Contents' / 'Resources' / 'icon.icns') ensureDelete.\n\tself iconSetFile copyTo:\n\t\tappDirectory / 'Contents' /... |
2,025 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | defaultTargetPlatforms
^ { 'Darwin-arm64'. 'Darwin-x86_64'. 'Windows-x86_64' } | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "defaultTargetPlatforms\n\n\t^ { 'Darwin-arm64'",
"suffix": "",
"completion": ". 'Darwin-x86_64'. 'Windows-x86_64' }"
} |
2,026 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | diskIconSetFile
^ properties at: #DiskIconSetFile | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "diskIconSetFile\n\n\t^",
"suffix": "",
"completion": " properties at: #DiskIconSetFile"
} |
2,027 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | externalResourceTargetDirectory
^ outputDirectory / 'build_image' / 'Contents' / 'Resources' | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 7,
"prefix": "externalResourceTargetDirectory\n\n\t^",
"suffix": "",
"completion": " outputDirectory / 'build_image' / 'Contents' / 'Resources'"
} |
2,028 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | fillWithDefaults
super fillWithDefaults.
properties
at: #DeployPharoExpression ifAbsentPut: 'nil';
at: #CodesignName ifAbsentPut: '-';
at: #DiskIconSetFile
ifAbsentPut: self templateDirectory / 'disk.icns' | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 8,
"prefix": "fillWithDefaults\n\n\tsuper fillWithDefaults.\n\tproperties\n\t\tat: #DeployPharoExpression ifAbsentPut: 'nil';\n\t\tat: #CodesignName ifAbsentPut: '-'",
"suffix": "",
"completion": ";\n\t\tat: #DiskIconSetFile\n\t\tifAbsentPut: self t... |
2,029 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | generate
| appDirectory |
self fillWithDefaults.
outputDirectory ensureCreateDirectory.
self copyExternalResources.
appDirectory := outputDirectory / 'build_image'.
appDirectory ensureCreateDirectory.
self copyIconSetIn: appDirectory.
self generatePListIn: appDirectory.
self copyInstallerBackground.
self ... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "generate\n\n\t| appDirectory |\n\tself fillWithDefaults.\n\toutputDirectory ensureCreateDirectory.\n\tself copyExternalResources.\n\n\tappDirectory",
"suffix": ".\n\tappDirectory ensureCreateDirectory.\n\n\tself copyIconSetIn: appDire... |
2,030 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | generateBuildScript
outputDirectory / 'build.sh' writeStreamDo: [ :stream |
stream truncate.
stream nextPutAll: self mainBuildScript.
self targetPlatforms do: [ :platform |
stream nextPutAll: (self platformBuildScriptFor: platform) ] ] | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "generateBuildScript\n\n\toutputDirectory / 'build.sh' writeStreamDo: [ :stream |\n\t\tstream truncate.\n\t\tstream nextPutAll: self mainBuildScript.\n\t\tself targetPlatforms do: [ :platform |\n\t\t\tstream nextPutAll: (self",
"s... |
2,031 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | generateBuildScript
outputDirectory / 'build.sh' writeStreamDo: [ :stream |
stream truncate.
stream nextPutAll: self mainBuildScript.
self targetPlatforms do: [ :platform |
stream nextPutAll: (self platformBuildScriptFor: platform) ] ] | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "generateBuildScript\n\n\toutputDirectory / 'build.sh' writeStreamDo: [ :stream |\n\t\tstream truncate.\n\t\tstream nextPutAll: self mainBuildScript.\n\t\tself targetPlatforms do: [ :platform |\n\t\t\tstream nextPutAll:",
"suffix"... |
2,032 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | generateBuildScript
outputDirectory / 'build.sh' writeStreamDo: [ :stream |
stream truncate.
stream nextPutAll: self mainBuildScript.
self targetPlatforms do: [ :platform |
stream nextPutAll: (self platformBuildScriptFor: platform) ] ] | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "generateBuildScript\n\n\toutputDirectory / 'build.sh' writeStreamDo: [ :stream |\n\t\tstream truncate.\n\t\tstream nextPutAll: self mainBuildScript.\n\t\tself targetPlatforms do: [ :platform |\n\t\t\tstream nextPutAll: (self platfo... |
2,033 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | mainBuildScript
^ '#!/bin/bash
set -x
set -e
IMAGE_DIR={ImageDir}
IMAGE_NAME={ImageName}
CHANGES_NAME={ChangesName}
APP_NAME={AppName}
APP_BUNDLE=$APP_NAME.app
VM_TYPE={VMType}
# To create the DMG we need the create-dmg tool, you can get it from brew
# brew install create-dmg
#Clean Up previous build
rm -f *.dmg... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "mainBuildScript\n\n\t^ '#!/bin/bash\n\nset -x \nset -e\n\nIMAGE_DIR={ImageDir}\nIMAGE_NAME={ImageName}\nCHANGES_NAME={ChangesName}\nAPP_NAME={AppName}\nAPP_BUNDLE=$APP_NAME.app\nVM_TYPE={VMType}\n\n# To create the DMG we need the create-dmg... |
2,034 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | platformBuildScriptFor: aString
| os |
os := aString copyFrom: 1 to: (aString indexOf: $-).
os = 'Darwin-' ifTrue: [
^ self platformBuildScriptTemplateForMacOS format: (properties copy
at: #TargetPlatform put: aString;
yourself) ].
os = 'Windows-' ifTrue: [
^ self platformBuildScriptTemplateForWi... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 2,
"mask_type": "return",
"n_masked_tokens": 8,
"prefix": "platformBuildScriptFor: aString\n\n\t| os |\n\tos := aString copyFrom: 1 to: (aString indexOf: $-).\n\tos = 'Darwin-' ifTrue: [\n\t\t^ self platformBuildScriptTemplateForMacOS format: (properties",
"suffix": " ].\n\tos = 'Windows-' ifTrue... |
2,035 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | platformBuildScriptFor: aString
| os |
os := aString copyFrom: 1 to: (aString indexOf: $-).
os = 'Darwin-' ifTrue: [
^ self platformBuildScriptTemplateForMacOS format: (properties copy
at: #TargetPlatform put: aString;
yourself) ].
os = 'Windows-' ifTrue: [
^ self platformBuildScriptTemplateForWi... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "platformBuildScriptFor: aString\n\n\t| os |\n\tos := aString copyFrom: 1 to: (aString indexOf: $-).\n\tos = 'Darwin-' ifTrue: [\n\t\t^ self platformBuildScriptTemplateForMacOS format: (properties copy\n\t\t\t\t at: #TargetPlatfor... |
2,036 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | platformBuildScriptFor: aString
| os |
os := aString copyFrom: 1 to: (aString indexOf: $-).
os = 'Darwin-' ifTrue: [
^ self platformBuildScriptTemplateForMacOS format: (properties copy
at: #TargetPlatform put: aString;
yourself) ].
os = 'Windows-' ifTrue: [
^ self platformBuildScriptTemplateForWi... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "platformBuildScriptFor: aString\n\n\t| os |\n\tos := aString copyFrom: 1 to: (",
"suffix": ".\n\tos = 'Darwin-' ifTrue: [\n\t\t^ self platformBuildScriptTemplateForMacOS format: (properties copy\n\t\t\t\t at: #TargetPlatform put: aS... |
2,037 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | targetPlatforms
^ targetPlatforms ifNil: [
targetPlatforms := self defaultTargetPlatforms ] | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 8,
"prefix": "targetPlatforms\n\n\t^",
"suffix": "",
"completion": " targetPlatforms ifNil: [\n\t\t targetPlatforms := self defaultTargetPlatforms ]"
} |
2,038 | https://github.com/tomooda/Phleeter | bc84e75571cafe7b146b78fb105a41c42c280f40 | src/Phleeter-Core/PhleeterOnOSX.class.st | targetPlatforms
^ targetPlatforms ifNil: [
targetPlatforms := self defaultTargetPlatforms ] | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/PhleeterOnOSX.class.st",
"code": "AppGeneratorOSXGene... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "targetPlatforms\n\n\t^ targetPlatforms ifNil: [\n\t\t targetPlatforms",
"suffix": " ]",
"completion": " := self defaultTargetPlatforms"
} |
2,039 | https://github.com/tomooda/Phleeter | ba536085aeca45e64f73ae177c69299c2cc5ce9d | src/Phleeter-Core/SpMenuPresenter.extension.st | asCocoaMenu
| cocoaMenu |
cocoaMenu := CocoaMenu new.
title ifNotNil: [ cocoaMenu title: title ].
self menuGroups do: [ :group |
group menuItems do: [ :item |
item subMenu
ifNotNil: [ :submenu | submenu asCocoaMenu addToMenu: cocoaMenu ]
ifNil: [
cocoaMenu addItemWithTitle: item name action: item ... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/CocoaMenu.extension.st",
"code": "Object subclass: #C... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "asCocoaMenu\n\n\t| cocoaMenu |\n\tcocoaMenu := CocoaMenu new.\n\ttitle ifNotNil: [ cocoaMenu title: title ].\n\tself menuGroups do: [ :group |\n\t\tgroup menuItems do: [ :item |\n\t\t\titem subMenu\n\t\t\t\tifNotNil: [ :submenu | s... |
2,040 | https://github.com/tomooda/Phleeter | ba536085aeca45e64f73ae177c69299c2cc5ce9d | src/Phleeter-Core/SpMenuPresenter.extension.st | asCocoaMenu
| cocoaMenu |
cocoaMenu := CocoaMenu new.
title ifNotNil: [ cocoaMenu title: title ].
self menuGroups do: [ :group |
group menuItems do: [ :item |
item subMenu
ifNotNil: [ :submenu | submenu asCocoaMenu addToMenu: cocoaMenu ]
ifNil: [
cocoaMenu addItemWithTitle: item name action: item ... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/CocoaMenu.extension.st",
"code": "Object subclass: #C... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "asCocoaMenu\n\n\t| cocoaMenu |\n\tcocoaMenu := CocoaMenu new.\n\ttitle ifNotNil: [ cocoaMenu",
"suffix": ".\n\tself menuGroups do: [ :group |\n\t\tgroup menuItems do: [ :item |\n\t\t\titem subMenu\n\t\t\t\tifNotNil: [ :submenu | ... |
2,041 | https://github.com/tomooda/Phleeter | ba536085aeca45e64f73ae177c69299c2cc5ce9d | src/Phleeter-Core/SpMenuPresenter.extension.st | asCocoaMenu
| cocoaMenu |
cocoaMenu := CocoaMenu new.
title ifNotNil: [ cocoaMenu title: title ].
self menuGroups do: [ :group |
group menuItems do: [ :item |
item subMenu
ifNotNil: [ :submenu | submenu asCocoaMenu addToMenu: cocoaMenu ]
ifNil: [
cocoaMenu addItemWithTitle: item name action: item ... | [
{
"filepath": "src/BaselineOfPhleeter/BaselineOfPhleeter.class.st",
"code": "BaselineOf subclass: #BaselineOfPhleeter\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfPhleeter'"
},
{
"filepath": "src/Phleeter-Core/CocoaMenu.extension.st",
"code": "Object subclass: #C... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "asCocoaMenu\n\n\t| cocoaMenu |\n\tcocoaMenu",
"suffix": ".\n\ttitle ifNotNil: [ cocoaMenu title: title ].\n\tself menuGroups do: [ :group |\n\t\tgroup menuItems do: [ :item |\n\t\t\titem subMenu\n\t\t\t\tifNotNil: [ :submenu | submenu... |
2,042 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/FileLocator.extension.st | seaguller
^ (self documents / 'Seaguller') ensureCreateDirectory | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "seaguller\n\n\t^ (self documents",
"suffix": "",
"completion": " / 'Seaguller') ensureCreateDirectory"
} |
2,043 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/Seaguller.class.st | loadSettings
FileLocator seaguller / 'settings.json' ifExists: [ :ref |
ref readStreamDo: [ :stream |
([ STONJSON fromStream: stream ]
on: Exception
do: [ :ex | ex return: nil ]) ifNotNil: [ :settings |
settings at: 'location' ifPresent: [ :locations |
locationList items: (locations collect: [... | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "loadSettings\n\n\tFileLocator seaguller / 'settings.json' ifExists: [ :ref |\n\t\tref readStreamDo: [ :stream |\n\t\t\t([ STONJSON fromStream: stream ]\n\t\t\t\t on: Exception\n\t\t\t\t do: [ :ex | ex return: nil ]) ifNotNil: [ :se... |
2,044 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/Seaguller.class.st | loadSettings
FileLocator seaguller / 'settings.json' ifExists: [ :ref |
ref readStreamDo: [ :stream |
([ STONJSON fromStream: stream ]
on: Exception
do: [ :ex | ex return: nil ]) ifNotNil: [ :settings |
settings at: 'location' ifPresent: [ :locations |
locationList items: (locations collect: [... | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "loadSettings\n\n\tFileLocator seaguller / 'settings.json' ifExists: [ :ref |\n\t\tref readStreamDo: [ :stream |\n\t\t\t([ STONJSON fromStream: stream ]\n\t\t\t\t on: Exception\n\t\t\t\t do: [ :ex | ex return: nil ]) ifNotNil: [ :se... |
2,045 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/Seaguller.class.st | loadSettings
FileLocator seaguller / 'settings.json' ifExists: [ :ref |
ref readStreamDo: [ :stream |
([ STONJSON fromStream: stream ]
on: Exception
do: [ :ex | ex return: nil ]) ifNotNil: [ :settings |
settings at: 'location' ifPresent: [ :locations |
locationList items: (locations collect: [... | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "loadSettings\n\n\tFileLocator seaguller / 'settings.json' ifExists: [ :ref |\n\t\tref readStreamDo: [ :stream |\n\t\t\t([ STONJSON fromStream: stream ]\n\t\t\t\t on: Exception\n\t\t\t\t do: [ :ex | ex return: nil ]) ifNotNil: [ :se... |
2,046 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | action: aSymbol
action := aSymbol asSymbol | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "action: aSymbol\n\n\taction",
"suffix": "",
"completion": " := aSymbol asSymbol"
} |
2,047 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | getIfModifiedDo: aBlock
<script:
'self new url: ''https://viennatalk.org/''; lastDownloadTime: (DateAndTime year: 2026 month: 1); getIfModifiedDo: [:response | self halt ]'>
| client |
client := ZnClient new
url: self url;
yourself.
lastDownloadTime ifNotNil: [
client
headerAt: 'If-Mo... | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "getIfModifiedDo: aBlock\n\n\t<script:\n\t'self new url: ''https://viennatalk.org/''; lastDownloadTime: (DateAndTime year: 2026 month: 1); getIfModifiedDo: [:response | self halt ]'>\n\t| client |\n\tclient := ZnClient new\n\t\t ... |
2,048 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | getIfModifiedDo: aBlock
<script:
'self new url: ''https://viennatalk.org/''; lastDownloadTime: (DateAndTime year: 2026 month: 1); getIfModifiedDo: [:response | self halt ]'>
| client |
client := ZnClient new
url: self url;
yourself.
lastDownloadTime ifNotNil: [
client
headerAt: 'If-Mo... | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "getIfModifiedDo: aBlock\n\n\t<script:\n\t'self new url: ''https://viennatalk.org/''; lastDownloadTime: (DateAndTime year: 2026 month: 1); getIfModifiedDo: [:response | self halt ]'>\n\t| client |\n\tclient := ZnClient new\n\t\t ... |
2,049 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | getIfModifiedDo: aBlock
<script:
'self new url: ''https://viennatalk.org/''; lastDownloadTime: (DateAndTime year: 2026 month: 1); getIfModifiedDo: [:response | self halt ]'>
| client |
client := ZnClient new
url: self url;
yourself.
lastDownloadTime ifNotNil: [
client
headerAt: 'If-Mo... | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "getIfModifiedDo: aBlock\n\n\t<script:\n\t'self new url: ''https://viennatalk.org/''; lastDownloadTime: (DateAndTime year: 2026 month: 1); getIfModifiedDo: [:response | self halt ]'>\n\t| client |\n\tclient := ZnClient new\n\t\t ... |
2,050 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | ifModifiedSinceStringFrom: aDateAndTime
| utc |
utc := aDateAndTime asUTC.
^ '{day-name}, {day} {month} {year} {hour}:{minute}:{second} GMT'
format: {
('day-name' -> utc dayOfWeekName).
('day' -> utc dayOfMonth).
('month' -> utc monthName).
('year' -> utc year).
('hour' -> utc hour... | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "ifModifiedSinceStringFrom: aDateAndTime\n\n\t| utc |\n\tutc",
"suffix": ".\n\t^ '{day-name}, {day} {month} {year} {hour}:{minute}:{second} GMT'\n\t\t format: {\n\t\t\t\t ('day-name' -> utc dayOfWeekName).\n\t\t\t\t ('day' -> utc da... |
2,051 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | ifModifiedSinceStringFrom: aDateAndTime
| utc |
utc := aDateAndTime asUTC.
^ '{day-name}, {day} {month} {year} {hour}:{minute}:{second} GMT'
format: {
('day-name' -> utc dayOfWeekName).
('day' -> utc dayOfMonth).
('month' -> utc monthName).
('year' -> utc year).
('hour' -> utc hour... | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 1,
"mask_type": "return",
"n_masked_tokens": 10,
"prefix": "ifModifiedSinceStringFrom: aDateAndTime\n\n\t| utc |\n\tutc := aDateAndTime asUTC.\n\t^ '{day-name}, {day} {month} {year} {hour}:{minute}:{second} GMT'\n\t\t format: {\n\t\t\t\t ('day-name' -> utc dayOfWeekName).\n\t\t\t\t ('day' -> utc... |
2,052 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | initialize
super initialize.
name := String new.
action := self defaultAction | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\tname",
"suffix": ".\n\taction := self defaultAction",
"completion": " := String new"
} |
2,053 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | initialize
super initialize.
name := String new.
action := self defaultAction | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\tname := String new.\n\taction",
"suffix": "",
"completion": " := self defaultAction"
} |
2,054 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | lastDownloadTime: aDateAndTime
lastDownloadTime := aDateAndTime asDateAndTime | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "lastDownloadTime: aDateAndTime\n\n\tlastDownloadTime",
"suffix": "",
"completion": " := aDateAndTime asDateAndTime"
} |
2,055 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | name: aString
name := aString asString | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "name: aString\n\n\tname",
"suffix": "",
"completion": " := aString asString"
} |
2,056 | https://github.com/tomooda/Seagull | 044db3c4306e5a4a0e760f1471102d82a79ef844 | Seaguller-Core/SeagullerLocation.class.st | url: aZnUrl
url := aZnUrl asZnUrl | [
{
"filepath": "Seaguller-Core/FileLocator.extension.st",
"code": "Object subclass: #FileLocator\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: ''"
},
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locati... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "url: aZnUrl\n\n\turl",
"suffix": "",
"completion": " := aZnUrl asZnUrl"
} |
2,057 | https://github.com/tomooda/Seagull | f34b77003738cbe5225f8d71341ae04cf05c1285 | Seaguller-Core/SeagullerAction.class.st | isAbstract
^ self = SeagullerAction | [
{
"filepath": "Seaguller-Core/SeagullerAction.class.st",
"code": "Object subclass: #SeagullerAction\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerDownload.class.st",
"code": "SeagullerAction subclass: #SeagullerDown... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "isAbstract\n\n\t^",
"suffix": "",
"completion": " self = SeagullerAction"
} |
2,058 | https://github.com/tomooda/Seagull | c1967fadcdb998d0412c1d8f5baa1df168e14601 | Seaguller-Core/SeagullerLocation.class.st | open
self critical: [
OSPlatform current isMacOSX ifTrue: [ self openMacOS ] ] | [
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation\n\tinstanceVariableNames: 'name action interval lastFetchTime hasLatestCopy hasDeadUrl isUpdating client lock'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-C... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "open\n\n\tself critical: [\n\t\tOSPlatform current",
"suffix": "",
"completion": " isMacOSX ifTrue: [ self openMacOS ] ]"
} |
2,059 | https://github.com/tomooda/Seagull | c1967fadcdb998d0412c1d8f5baa1df168e14601 | Seaguller-Core/SeagullerLocation.class.st | open
self critical: [
OSPlatform current isMacOSX ifTrue: [ self openMacOS ] ] | [
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation\n\tinstanceVariableNames: 'name action interval lastFetchTime hasLatestCopy hasDeadUrl isUpdating client lock'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-C... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "open\n\n\tself critical: [\n\t\tOSPlatform current isMacOSX ifTrue: [",
"suffix": " ]",
"completion": " self openMacOS ]"
} |
2,060 | https://github.com/tomooda/Seagull | c1967fadcdb998d0412c1d8f5baa1df168e14601 | Seaguller-Core/SeagullerLocation.class.st | openMacOS
self downloadFileReferenceDo: [ :ref |
LibC system: ('open ' , (self shellEscape: ref pathString)) asUTF8Bytes ] | [
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation\n\tinstanceVariableNames: 'name action interval lastFetchTime hasLatestCopy hasDeadUrl isUpdating client lock'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-C... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "openMacOS\n\n\tself downloadFileReferenceDo: [ :ref |\n\t\tLibC system: ('open ' ,",
"suffix": "",
"completion": " (self shellEscape: ref pathString)) asUTF8Bytes ]"
} |
2,061 | https://github.com/tomooda/Seagull | c1967fadcdb998d0412c1d8f5baa1df168e14601 | Seaguller-Core/SeagullerLocation.class.st | openMacOS
self downloadFileReferenceDo: [ :ref |
LibC system: ('open ' , (self shellEscape: ref pathString)) asUTF8Bytes ] | [
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation\n\tinstanceVariableNames: 'name action interval lastFetchTime hasLatestCopy hasDeadUrl isUpdating client lock'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-C... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "openMacOS\n\n\tself downloadFileReferenceDo: [ :ref |\n\t\tLibC system: (",
"suffix": " ]",
"completion": "'open ' , (self shellEscape: ref pathString)) asUTF8Bytes"
} |
2,062 | https://github.com/tomooda/Seagull | c1967fadcdb998d0412c1d8f5baa1df168e14601 | Seaguller-Core/SeagullerLocation.class.st | shellEscape: aString
^ '''' , (aString copyReplaceAll: '''' with: '''"''"''') , '''' | [
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation\n\tinstanceVariableNames: 'name action interval lastFetchTime hasLatestCopy hasDeadUrl isUpdating client lock'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-C... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 7,
"prefix": "shellEscape: aString\n\n\t^ '''' , (aString",
"suffix": "",
"completion": " copyReplaceAll: '''' with: '''\"''\"''') , ''''"
} |
2,063 | https://github.com/tomooda/Seagull | 3d7a9f6e73ea20859662ba1e0432ec2b9a2a386e | Seaguller-Core/SeagullerLocation.class.st | fromJSON: aDictionary
^ self new
setJSON: aDictionary;
yourself | [
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 6,
"prefix": "fromJSON: aDictionary\n\n\t^",
"suffix": "",
"completion": " self new\n\t\t setJSON: aDictionary;\n\t\t yourself"
} |
2,064 | https://github.com/tomooda/Seagull | 3d7a9f6e73ea20859662ba1e0432ec2b9a2a386e | Seaguller-Core/SeagullerLocation.class.st | name: aString url: aZnUrl
^ self new
name: aString;
url: aZnUrl;
yourself | [
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "name: aString url: aZnUrl\n\n\t^ self new\n\t\t name: aString;",
"suffix": "",
"completion": "\n\t\t url: aZnUrl;\n\t\t yourself"
} |
2,065 | https://github.com/tomooda/Seagull | 3d7a9f6e73ea20859662ba1e0432ec2b9a2a386e | Seaguller-Core/SeagullerLocation.class.st | asJSON
^ Dictionary new
at: 'name' put: self name asString;
at: 'url' put: self url asString;
at: 'action' put: self action asString;
at: 'interval' put: self interval asString;
at: 'lastFetchTime' put: self lastFetchTime asString;
at: 'hasLatestCopy' put: self hasLatestCopy;
at: 'hasDeadU... | [
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 9,
"prefix": "asJSON\n\n\t^ Dictionary new\n\t\t at: 'name' put: self name asString;\n\t\t at: 'url' put: self url asString;\n\t\t at: 'action' put: self action asString;\n\t\t at: 'interval' put: self interval asString;\n\t\t at: 'lastFetchTime' pu... |
2,066 | https://github.com/tomooda/Seagull | 3d7a9f6e73ea20859662ba1e0432ec2b9a2a386e | Seaguller-Core/SeagullerLocation.class.st | hasDeadUrl: aBoolean
hasDeadUrl := aBoolean = true | [
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "hasDeadUrl: aBoolean\n\n\thasDeadUrl",
"suffix": "",
"completion": " := aBoolean = true"
} |
2,067 | https://github.com/tomooda/Seagull | 3d7a9f6e73ea20859662ba1e0432ec2b9a2a386e | Seaguller-Core/SeagullerLocation.class.st | lastFetchTime: aDateAndTime
lastFetchTime := aDateAndTime ifNotNil: #asDateAndTime | [
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "lastFetchTime: aDateAndTime\n\n\tlastFetchTime :=",
"suffix": "",
"completion": " aDateAndTime ifNotNil: #asDateAndTime"
} |
2,068 | https://github.com/tomooda/Seagull | 3d7a9f6e73ea20859662ba1e0432ec2b9a2a386e | Seaguller-Core/SeagullerLocation.class.st | setJSON: aDictionary
aDictionary
at: 'name' ifPresent: [ :string | self name: string ];
at: 'url' ifPresent: [ :string | self url: string ];
at: 'action' ifPresent: [ :string | self action: string ];
at: 'interval' ifPresent: [ :string | self interval: string ];
at: 'lastFetchTime'
ifPresent: [ :string | ... | [
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 9,
"prefix": "setJSON: aDictionary\n\n\taDictionary\n\t\tat: 'name' ifPresent: [ :string | self name: string ];\n\t\tat: 'url' ifPresent: [ :string | self url: string ];\n\t\tat: 'action' ifPresent: [ :string | self action: string ];\n\t\tat: 'interval'... |
2,069 | https://github.com/tomooda/Seagull | 3d7a9f6e73ea20859662ba1e0432ec2b9a2a386e | Seaguller-Core/SeagullerLocation.class.st | timeToFetch
^ lastFetchTime
ifNotNil: [ interval - (DateAndTime now - lastFetchTime) ]
ifNil: [ -1 second ] | [
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "timeToFetch\n\n\t^ lastFetchTime\n\t\t ifNotNil: [ interval - (DateAndTime now - lastFetchTime) ]\n\t\t ifNil:",
"suffix": "",
"completion": " [ -1 second ]"
} |
2,070 | https://github.com/tomooda/Seagull | 3d7a9f6e73ea20859662ba1e0432ec2b9a2a386e | Seaguller-Core/SeagullerLocation.class.st | timeToFetch
^ lastFetchTime
ifNotNil: [ interval - (DateAndTime now - lastFetchTime) ]
ifNil: [ -1 second ] | [
{
"filepath": "Seaguller-Core/Seaguller.class.st",
"code": "SpPresenter subclass: #Seaguller\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seaguller-Core'"
},
{
"filepath": "Seaguller-Core/SeagullerLocation.class.st",
"code": "Object subclass: #SeagullerLocation... | {
"fim_idx": 1,
"mask_type": "binary_message",
"n_masked_tokens": 6,
"prefix": "timeToFetch\n\n\t^ lastFetchTime\n\t\t ifNotNil: [ interval -",
"suffix": " ]\n\t\t ifNil: [ -1 second ]",
"completion": " (DateAndTime now - lastFetchTime)"
} |
2,071 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/Seagull.class.st | example
^ self new
locations: {
(SeagullDownloadLocation
name: 'Example'
url: 'https://example.com/').
(SeagullDownloadLocation
name: 'ViennaTalk-dev'
url:
'https://viennatalk.org/builds/viennatalk/dev/ViennaTalk-Installer-Darwin-arm64.dmg') };
open | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "example\n\n\t^ self new\n\t\t locations: {\n\t\t\t\t (SeagullDownloadLocation\n\t\t\t\t\t name: 'Example'\n\t\t\t\t\t url: 'https://example.com/').\n\t\t\t\t (SeagullDownloadLocation\n\t\t\t\t\t name: 'ViennaTalk-dev'\n\t\t\t\t\t ... |
2,072 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/Seagull.class.st | locations: aCollectionOfSeagullLocation
locationList items: aCollectionOfSeagullLocation asArray | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "locations: aCollectionOfSeagullLocation\n\n\tlocationList",
"suffix": "",
"completion": " items: aCollectionOfSeagullLocation asArray"
} |
2,073 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocation.class.st | example
^ self name: 'Example' url: 'https://example.com/' | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "example\n\n\t^ self name:",
"suffix": "",
"completion": " 'Example' url: 'https://example.com/'"
} |
2,074 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocation.class.st | defaultDownloadDirectory
^ (FileLocator seaguller / 'downloads') ensureCreateDirectory | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "defaultDownloadDirectory\n\n\t^ (FileLocator seaguller /",
"suffix": "",
"completion": " 'downloads') ensureCreateDirectory"
} |
2,075 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocation.class.st | downloadDirectory
^ downloadDirectory ifNil: [ self defaultDownloadDirectory ] | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "downloadDirectory\n\n\t^ downloadDirectory",
"suffix": "",
"completion": " ifNil: [ self defaultDownloadDirectory ]"
} |
2,076 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | isAbstract
^ self = SeagullLocationTest | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "isAbstract\n\n\t^",
"suffix": "",
"completion": " self = SeagullLocationTest"
} |
2,077 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | future
^ DateAndTime year: 3000 month: 1 | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "future\n\n\t^ DateAndTime year:",
"suffix": "",
"completion": " 3000 month: 1"
} |
2,078 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | past
^ DateAndTime year: 1960 month: 1 | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "past\n\n\t^ DateAndTime year:",
"suffix": "",
"completion": " 1960 month: 1"
} |
2,079 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | setUp
fileSystem := FileSystem memory.
downloadDirectory := fileSystem root.
location := (self locationClass
name: 'Example'
url: 'https://example.com/')
downloadDirectory: downloadDirectory;
yourself | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tfileSystem",
"suffix": ".\n\tdownloadDirectory := fileSystem root.\n\tlocation := (self locationClass\n\t\t name: 'Example'\n\t\t url: 'https://example.com/')\n\t\t downloadDirectory: down... |
2,080 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | setUp
fileSystem := FileSystem memory.
downloadDirectory := fileSystem root.
location := (self locationClass
name: 'Example'
url: 'https://example.com/')
downloadDirectory: downloadDirectory;
yourself | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tfileSystem := FileSystem memory.\n\tdownloadDirectory",
"suffix": ".\n\tlocation := (self locationClass\n\t\t name: 'Example'\n\t\t url: 'https://example.com/')\n\t\t downloadDirectory: do... |
2,081 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | setUp
fileSystem := FileSystem memory.
downloadDirectory := fileSystem root.
location := (self locationClass
name: 'Example'
url: 'https://example.com/')
downloadDirectory: downloadDirectory;
yourself | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "setUp\n\n\tfileSystem := FileSystem memory.\n\tdownloadDirectory := fileSystem root.\n\tlocation := (self locationClass\n\t\t name: 'Example'\n\t\t url: 'https://example.com/'",
"suffix": "",
"completion": ")... |
2,082 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | testDownload
location lastModifiedTimeOnServer: self past.
location lastAccessTime: self past.
location download.
self
assert: (downloadDirectory / 'Example') contents
equals: (ZnEasy get: 'https://example.com/') contents.
self assert: self past < location lastModifiedTimeOnServer.
self assert: self past < l... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testDownload\n\n\tlocation lastModifiedTimeOnServer: self past.\n\tlocation lastAccessTime: self past.\n\tlocation download.\n\tself\n\t\tassert: (downloadDirectory / 'Example') contents\n\t\tequals: (ZnEasy get: 'https://example.c... |
2,083 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | testDownload
location lastModifiedTimeOnServer: self past.
location lastAccessTime: self past.
location download.
self
assert: (downloadDirectory / 'Example') contents
equals: (ZnEasy get: 'https://example.com/') contents.
self assert: self past < location lastModifiedTimeOnServer.
self assert: self past < l... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testDownload\n\n\tlocation",
"suffix": ".\n\tlocation lastAccessTime: self past.\n\tlocation download.\n\tself\n\t\tassert: (downloadDirectory / 'Example') contents\n\t\tequals: (ZnEasy get: 'https://example.com/') contents.\n\ts... |
2,084 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | testDownload
location lastModifiedTimeOnServer: self past.
location lastAccessTime: self past.
location download.
self
assert: (downloadDirectory / 'Example') contents
equals: (ZnEasy get: 'https://example.com/') contents.
self assert: self past < location lastModifiedTimeOnServer.
self assert: self past < l... | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testDownload\n\n\tlocation lastModifiedTimeOnServer: self past.\n\tlocation lastAccessTime: self past.\n\tlocation download.\n\tself\n\t\tassert: (downloadDirectory / 'Example') contents\n\t\tequals: (ZnEasy get:",
"suffix": ".\n... |
2,085 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | testDownloadDirectory
location downloadDirectory: nil.
self deny: location downloadDirectory equals: downloadDirectory.
location downloadDirectory: downloadDirectory.
self assert: location downloadDirectory equals: downloadDirectory | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testDownloadDirectory\n\n\tlocation downloadDirectory: nil.\n\tself",
"suffix": ".\n\tlocation downloadDirectory: downloadDirectory.\n\tself assert: location downloadDirectory equals: downloadDirectory",
"completion": " deny: l... |
2,086 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | testDownloadDirectory
location downloadDirectory: nil.
self deny: location downloadDirectory equals: downloadDirectory.
location downloadDirectory: downloadDirectory.
self assert: location downloadDirectory equals: downloadDirectory | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testDownloadDirectory\n\n\tlocation downloadDirectory: nil.\n\tself deny: location downloadDirectory equals: downloadDirectory.\n\tlocation downloadDirectory: downloadDirectory.\n\tself assert: location",
"suffix": "",
"complet... |
2,087 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | testFetch
location lastModifiedTimeOnServer: self past.
location lastAccessTime: self past.
location fetch.
self assert: self past < location lastModifiedTimeOnServer.
self assert: self past < location lastAccessTime | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testFetch\n\n\tlocation lastModifiedTimeOnServer: self past.\n\tlocation",
"suffix": ".\n\tlocation fetch.\n\tself assert: self past < location lastModifiedTimeOnServer.\n\tself assert: self past < location lastAccessTime",
"co... |
2,088 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | testFetch
location lastModifiedTimeOnServer: self past.
location lastAccessTime: self past.
location fetch.
self assert: self past < location lastModifiedTimeOnServer.
self assert: self past < location lastAccessTime | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testFetch\n\n\tlocation lastModifiedTimeOnServer: self past.\n\tlocation lastAccessTime: self past.\n\tlocation fetch.\n\tself assert: self past < location lastModifiedTimeOnServer.\n\tself",
"suffix": "",
"completion": " asser... |
2,089 | https://github.com/tomooda/Seagull | f73d5751203611ebc4606e362bf9089d8f24a71d | src/Seagull-Core/SeagullLocationTest.class.st | testFetch
location lastModifiedTimeOnServer: self past.
location lastAccessTime: self past.
location fetch.
self assert: self past < location lastModifiedTimeOnServer.
self assert: self past < location lastAccessTime | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocationTest.class.st",
"code": "SeagullLocationTest subc... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testFetch\n\n\tlocation lastModifiedTimeOnServer: self past.\n\tlocation lastAccessTime: self past.\n\tlocation fetch.\n\tself",
"suffix": ".\n\tself assert: self past < location lastAccessTime",
"completion": " assert: self pa... |
2,090 | https://github.com/tomooda/Seagull | cc0d4fdc8eff9cab16e087788fa5d3b3093ea8aa | src/Seagull-Core/SeagullDownloadLocation.class.st | readyToUpdate
| remote local |
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'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.st",
"code": "SeagullLocation subclass: #S... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "readyToUpdate\n \n\t| remote local |\n\tremote := self lastModifiedTimeOnServer.\n\tlocal",
"suffix": ".\n\tremote isNil ifTrue: [ ^ true ].\n\tlocal isNil ifTrue: [ ^ true ].\n \t^ self readyToDownload not",
"completion": " := self... |
2,091 | https://github.com/tomooda/Seagull | cc0d4fdc8eff9cab16e087788fa5d3b3093ea8aa | src/Seagull-Core/SeagullDownloadLocation.class.st | readyToUpdate
| remote local |
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'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.st",
"code": "SeagullLocation subclass: #S... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "readyToUpdate\n \n\t| remote local |\n\tremote := self lastModifiedTimeOnServer.\n\tlocal := self lastModifiedTimeOfDownloadFile.\n\tremote isNil",
"suffix": ".\n\tlocal isNil ifTrue: [ ^ true ].\n \t^ self readyToDownload not",
... |
2,092 | https://github.com/tomooda/Seagull | cc0d4fdc8eff9cab16e087788fa5d3b3093ea8aa | src/Seagull-Core/SeagullDownloadLocation.class.st | readyToUpdate
| remote local |
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'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.st",
"code": "SeagullLocation subclass: #S... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "readyToUpdate\n \n\t| remote local |\n\tremote := self lastModifiedTimeOnServer.\n\tlocal := self lastModifiedTimeOfDownloadFile.\n\tremote isNil ifTrue: [ ^ true ].\n\tlocal isNil ifTrue: [",
"suffix": ".\n \t^ self readyToDownl... |
2,093 | https://github.com/tomooda/Seagull | cc0d4fdc8eff9cab16e087788fa5d3b3093ea8aa | src/Seagull-Core/SeagullLocation.class.st | httpClientDo: aBlock
^ self ifModifiedSince: nil httpClientDo: aBlock | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.st",
"code": "SeagullLocation subclass: #S... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "httpClientDo: aBlock\n \n\t^ self ifModifiedSince:",
"suffix": "",
"completion": " nil httpClientDo: aBlock"
} |
2,094 | https://github.com/tomooda/Seagull | cc0d4fdc8eff9cab16e087788fa5d3b3093ea8aa | src/Seagull-Core/SeagullLocation.class.st | iconNamed: aSymbol
aSymbol = #downloading ifTrue: [ ^ self downloadingIcon ].
^ super iconNamed: aSymbol | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.st",
"code": "SeagullLocation subclass: #S... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "iconNamed: aSymbol\n\n\taSymbol",
"suffix": ".\n\t^ super iconNamed: aSymbol",
"completion": " = #downloading ifTrue: [ ^ self downloadingIcon ]"
} |
2,095 | https://github.com/tomooda/Seagull | cc0d4fdc8eff9cab16e087788fa5d3b3093ea8aa | src/Seagull-Core/SeagullLocation.class.st | iconNamed: aSymbol
aSymbol = #downloading ifTrue: [ ^ self downloadingIcon ].
^ super iconNamed: aSymbol | [
{
"filepath": "src/Seagull-Core/Seagull.class.st",
"code": "SpPresenter subclass: #Seagull\n\tinstanceVariableNames: 'locationList'\n\tclassVariableNames: ''\n\tpackage: 'Seagull-Core-UI'"
},
{
"filepath": "src/Seagull-Core/SeagullDownloadLocation.class.st",
"code": "SeagullLocation subclass: #S... | {
"fim_idx": 1,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "iconNamed: aSymbol\n\n\taSymbol = #downloading ifTrue: [ ^ self downloadingIcon ].\n\t^",
"suffix": "",
"completion": " super iconNamed: aSymbol"
} |
2,096 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/Seagull.class.st | initializePresenters
super initializePresenters.
locationList := self newTable
beResizable;
addColumn: ((SpImageTableColumn
title: ''
evaluated: [ :location | location statusIcon ])
beNotExpandable;
... | [
{
"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": 7,
"prefix": "initializePresenters\n \n \tsuper initializePresenters.\n \tlocationList := self newTable\n \t\t beResizable;\n \t\t addColumn: ((SpImageTableColumn\n \t\t\t\t title: ''\n \t\t\t\t ... |
2,097 | https://github.com/tomooda/Seagull | 130ad2ecea00748ed0a867edc34e1f2b022ba2ab | src/Seagull-Core/Seagull.class.st | initializePresenters
super initializePresenters.
locationList := self newTable
beResizable;
addColumn: ((SpImageTableColumn
title: ''
evaluated: [ :location | location statusIcon ])
beNotExpandable;
... | [
{
"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": "keyword_message",
"n_masked_tokens": 6,
"prefix": "initializePresenters\n \n \tsuper initializePresenters.\n \tlocationList := self newTable\n \t\t beResizable;\n \t\t addColumn: ((SpImageTableColumn\n \t\t\t\t title: ''\n \t\t\t\t ... |
2,098 | 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": 3,
"mask_type": "keyword_message",
"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: SeagullLocationSett... |
2,099 | 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": 4,
"mask_type": "keyword_message",
"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: SeagullLocationSett... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.