task_id int64 0 2.26k | repository stringclasses 18
values | commit_hash stringclasses 241
values | filepath stringclasses 237
values | original_method stringlengths 21 4.65k | context listlengths 1 68 | masking dict |
|---|---|---|---|---|---|---|
1,800 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | initialize
super initialize.
requiredTags := Set new.
rejectTags := Set new.
tagHistogram := Bag new.
filterChangeAction := [ ].
self
beResizable;
addColumn: ((checkboxColumn := HiDeButtonTableColumn
title: ''
evaluated: [ :tag |
(requ... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\trequiredTags",
"suffix": ".\n\trejectTags := Set new.\n\ttagHistogram := Bag new.\n\tfilterChangeAction := [ ].\n\tself\n\t\tbeResizable;\n\t\taddColumn: ((checkboxColumn := HiDeButtonTableColumn\... |
1,801 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | initialize
super initialize.
requiredTags := Set new.
rejectTags := Set new.
tagHistogram := Bag new.
filterChangeAction := [ ].
self
beResizable;
addColumn: ((checkboxColumn := HiDeButtonTableColumn
title: ''
evaluated: [ :tag |
(requ... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 11,
"mask_type": "unary_message",
"n_masked_tokens": 5,
"prefix": "initialize\n\n\tsuper initialize.\n\trequiredTags := Set new.\n\trejectTags := Set new.\n\ttagHistogram := Bag new.\n\tfilterChangeAction := [ ].\n\tself\n\t\tbeResizable;\n\t\taddColumn: ((checkboxColumn := HiDeButtonTableColumn\n... |
1,802 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | initialize
super initialize.
requiredTags := Set new.
rejectTags := Set new.
tagHistogram := Bag new.
filterChangeAction := [ ].
self
beResizable;
addColumn: ((checkboxColumn := HiDeButtonTableColumn
title: ''
evaluated: [ :tag |
(requ... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 4,
"mask_type": "cascade",
"n_masked_tokens": 5,
"prefix": "initialize\n\n\tsuper initialize.\n\trequiredTags := Set new.\n\trejectTags := Set new.\n\ttagHistogram := Bag new.\n\tfilterChangeAction := [ ].\n\tself\n\t\tbeResizable;\n\t\taddColumn: ((checkboxColumn := HiDeButtonTableColumn\n\t\t\t\... |
1,803 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | persistencies: aCollectionOfHiDePersistency
tagHistogram := aCollectionOfHiDePersistency
inject: Bag new
into: [ :tags :persistency |
tags
addAll: persistency tags;
yourself ].
requiredTags := requiredTags select: [ :tag |... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "persistencies: aCollectionOfHiDePersistency\n\n\ttagHistogram := aCollectionOfHiDePersistency\n\t\t inject: Bag new\n\t\t into: [ :tags :persistency |\n\t\t\t tags\n\t\t\t\t ... |
1,804 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | persistencies: aCollectionOfHiDePersistency
tagHistogram := aCollectionOfHiDePersistency
inject: Bag new
into: [ :tags :persistency |
tags
addAll: persistency tags;
yourself ].
requiredTags := requiredTags select: [ :tag |... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 9,
"prefix": "persistencies: aCollectionOfHiDePersistency\n\n\ttagHistogram := aCollectionOfHiDePersistency\n\t\t inject: Bag new\n\t\t into: [ :tags :persistency |\n\t\t\t tags\n\t\t\t\t ad... |
1,805 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | persistencies: aCollectionOfHiDePersistency
tagHistogram := aCollectionOfHiDePersistency
inject: Bag new
into: [ :tags :persistency |
tags
addAll: persistency tags;
yourself ].
requiredTags := requiredTags select: [ :tag |... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "persistencies: aCollectionOfHiDePersistency\n\n\ttagHistogram := aCollectionOfHiDePersistency\n\t\t inject: Bag new\n\t\t into: [ :tags :persistency |\n\t\t\t tags\n\t\t\t\t ad... |
1,806 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | quantityColumnTitle: aString
quantityColumn ifNotNil: [ :column | column title: aString ] | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "quantityColumnTitle: aString\n\n\tquantityColumn ifNotNil: [ :",
"suffix": "",
"completion": "column | column title: aString ]"
} |
1,807 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | tagColumnTitle: aString
tagColumn ifNotNil: [ :column | column title: aString ] | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "tagColumnTitle: aString\n\n\ttagColumn ifNotNil: [ :",
"suffix": "",
"completion": "column | column title: aString ]"
} |
1,808 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | value: aHiDePersistency
^ (requiredTags allSatisfy: [ :tag |
aHiDePersistency hideMetadata hasTag: tag ]) and: [
rejectTags allSatisfy: [ :tag |
(aHiDePersistency hideMetadata hasTag: tag) not ] ] | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "value: aHiDePersistency\n\n\t^ (requiredTags allSatisfy: [ :tag |\n\t\t aHiDePersistency",
"suffix": " ]) and: [\n\t\t rejectTags allSatisfy: [ :tag |\n\t\t\t (aHiDePersistency hideMetadata hasTag: tag) not ] ]",
"completio... |
1,809 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | value: aHiDePersistency
^ (requiredTags allSatisfy: [ :tag |
aHiDePersistency hideMetadata hasTag: tag ]) and: [
rejectTags allSatisfy: [ :tag |
(aHiDePersistency hideMetadata hasTag: tag) not ] ] | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "value: aHiDePersistency\n\n\t^ (requiredTags allSatisfy: [ :tag |\n\t\t aHiDePersistency hideMetadata hasTag: tag ]) and: [\n\t\t rejectTags allSatisfy: [ :tag",
"suffix": " ]",
"completion": " |\n\t\t\t (aHiDePersistency h... |
1,810 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/HiDeTagFilterPresenter.class.st | value: aHiDePersistency
^ (requiredTags allSatisfy: [ :tag |
aHiDePersistency hideMetadata hasTag: tag ]) and: [
rejectTags allSatisfy: [ :tag |
(aHiDePersistency hideMetadata hasTag: tag) not ] ] | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "value: aHiDePersistency\n\n\t^ (requiredTags allSatisfy: [ :tag |\n\t\t aHiDePersistency hideMetadata hasTag: tag ]) and: [\n\t\t rejectTags allSatisfy: [ :tag |\n\t\t\t (aHiDePersistency hideMetadata hasTag: tag)",
"suffix": "",
"c... |
1,811 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/SpMorphicTableCellBuilder.extension.st | visitButtonColumn: aTableColumn
| presenter morph |
presenter := SpButtonPresenter new
addStyle: 'compact';
yourself.
aTableColumn color ifNotNil: [ :color |
presenter color: aTableColumn color ].
(aTableColumn readObject: self item) ifNotNil: [ :obj |
obj isForm
ifTrue: [ pre... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 12,
"mask_type": "cascade",
"n_masked_tokens": 6,
"prefix": "visitButtonColumn: aTableColumn\n\n\t| presenter morph |\n\tpresenter := SpButtonPresenter new\n\t\t addStyle: 'compact';\n\t\t yourself.\n\taTableColumn color ifNotNil: [ :color |\n\t\tpresenter color: aTableColum... |
1,812 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/SpMorphicTableCellBuilder.extension.st | visitButtonColumn: aTableColumn
| presenter morph |
presenter := SpButtonPresenter new
addStyle: 'compact';
yourself.
aTableColumn color ifNotNil: [ :color |
presenter color: aTableColumn color ].
(aTableColumn readObject: self item) ifNotNil: [ :obj |
obj isForm
ifTrue: [ pre... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 13,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "visitButtonColumn: aTableColumn\n\n\t| presenter morph |\n\tpresenter := SpButtonPresenter new\n\t\t addStyle: 'compact';\n\t\t yourself.\n\taTableColumn color ifNotNil: [ :color |\n\t\tpresenter color: aTa... |
1,813 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/SpMorphicTableCellBuilder.extension.st | visitButtonColumn: aTableColumn
| presenter morph |
presenter := SpButtonPresenter new
addStyle: 'compact';
yourself.
aTableColumn color ifNotNil: [ :color |
presenter color: aTableColumn color ].
(aTableColumn readObject: self item) ifNotNil: [ :obj |
obj isForm
ifTrue: [ pre... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "visitButtonColumn: aTableColumn\n\n\t| presenter morph |\n\tpresenter := SpButtonPresenter new\n\t\t addStyle: 'compact';\n\t\t yourself.\n\taTableColumn color ifNotNil: [ :color |\n\t\tpresenter color: aTa... |
1,814 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/THiDeEditTags.trait.st | editTags: aCollectionOfString on: chronicleModel title: aString createNewTagTitle: anotherString
| listEditor |
listEditor := HiDeListEditPresenter new.
listEditor
items: chronicleModel tags;
addAction: [
| menu |
menu := listEditor newMenu.
(aCollectionOfString asArray copyWithoutAll: listEditor items... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 10,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "editTags: aCollectionOfString on: chronicleModel title: aString createNewTagTitle: anotherString\n\n\t| listEditor |\n\tlistEditor := HiDeListEditPresenter new.\n\tlistEditor\n\t\titems: chronicleModel tags;\n\t\taddAction: [\n\t... |
1,815 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/THiDeEditTags.trait.st | editTags: aCollectionOfString on: chronicleModel title: aString createNewTagTitle: anotherString
| listEditor |
listEditor := HiDeListEditPresenter new.
listEditor
items: chronicleModel tags;
addAction: [
| menu |
menu := listEditor newMenu.
(aCollectionOfString asArray copyWithoutAll: listEditor items... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 5,
"mask_type": "cascade",
"n_masked_tokens": 3,
"prefix": "editTags: aCollectionOfString on: chronicleModel title: aString createNewTagTitle: anotherString\n\n\t| listEditor |\n\tlistEditor := HiDeListEditPresenter new.\n\tlistEditor\n\t\titems: chronicleModel tags;\n\t\taddAction: [\n\t\t\t| menu... |
1,816 | https://github.com/tomooda/HiDeHo | 75490df3074de65854720369d304a9ccfa064f09 | src/HiDeHo-UI/THiDeEditTags.trait.st | editTags: aCollectionOfString on: chronicleModel title: aString createNewTagTitle: anotherString
| listEditor |
listEditor := HiDeListEditPresenter new.
listEditor
items: chronicleModel tags;
addAction: [
| menu |
menu := listEditor newMenu.
(aCollectionOfString asArray copyWithoutAll: listEditor items... | [
{
"filepath": "src/BaselineOfHiDeHo/BaselineOfHiDeHo.class.st",
"code": "BaselineOf subclass: #BaselineOfHiDeHo\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfHiDeHo'"
},
{
"filepath": "src/HiDeHo-UI/HiDeButtonTableColumn.class.st",
"code": "SpTableColumn subclass:... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "editTags: aCollectionOfString on: chronicleModel title: aString createNewTagTitle: anotherString\n\n\t| listEditor |\n\tlistEditor := HiDeListEditPresenter new.\n\tlistEditor\n\t\titems: chronicleModel tags;\n\t\taddAction: [\n\t\t\t| m... |
1,817 | https://github.com/tomooda/HiDeHo | c156f7b95a11746bcf682af5e8892ca51c74022f | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleSaveMetadata: aHiDePersistency
self
ensureIdentity: aHiDePersistency hideMetadata;
chronicleFileReferenceFor: aHiDePersistency hideMetadata
do: [ :ref |
aHiDePersistency hideMetadata save: ref.
^ ref ].
^ nil | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/THiDePersistency.trait.st... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 4,
"prefix": "chronicleSaveMetadata: aHiDePersistency\n\n\tself\n\t\tensureIdentity: aHiDePersistency hideMetadata;\n\t\tchronicleFileReferenceFor: aHiDePersistency hideMetadata\n\t\tdo: [ :ref |\n\t\t\taHiDePersistency hideMetadata save: ref",
"suffi... |
1,818 | https://github.com/tomooda/HiDeHo | c156f7b95a11746bcf682af5e8892ca51c74022f | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleSaveMetadata: aHiDePersistency
self
ensureIdentity: aHiDePersistency hideMetadata;
chronicleFileReferenceFor: aHiDePersistency hideMetadata
do: [ :ref |
aHiDePersistency hideMetadata save: ref.
^ ref ].
^ nil | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/THiDePersistency.trait.st... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "chronicleSaveMetadata: aHiDePersistency\n\n\tself\n\t\tensureIdentity: aHiDePersistency hideMetadata;\n\t\tchronicleFileReferenceFor: aHiDePersistency hideMetadata\n\t\tdo: [ :ref |\n\t\t\taHiDePersistency",
"suffix": ".\n\t\t\t^... |
1,819 | https://github.com/tomooda/HiDeHo | c156f7b95a11746bcf682af5e8892ca51c74022f | src/HiDeHo-Storage/THiDePersistency.trait.st | hideSaveMetadata
hideStorage ifNotNil: [ hideStorage chronicleSaveMetadata: self ] | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/THiDePersistency.trait.st... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "hideSaveMetadata\n\n\thideStorage ifNotNil:",
"suffix": "",
"completion": " [ hideStorage chronicleSaveMetadata: self ]"
} |
1,820 | https://github.com/tomooda/HiDeHo | 1b5b053eb863a7c366c28af2fe5323b1b734180b | src/HiDeHo-Storage/HiDePersistencySlot.class.st | emitValue: aMethodBuilder
aMethodBuilder
pushLiteral: self;
pushReceiver;
send: #read: | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeUnloaded.class.st",
"code": "Object sub... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 4,
"prefix": "emitValue: aMethodBuilder\n\n\taMethodBuilder\n\t\tpushLiteral: self;",
"suffix": "",
"completion": "\n\t\tpushReceiver;\n\t\tsend: #read:"
} |
1,821 | https://github.com/tomooda/HiDeHo | 1b5b053eb863a7c366c28af2fe5323b1b734180b | src/HiDeHo-Storage/HiDePersistencySlot.class.st | initialize: aHiDePersistency
self write: HiDeUnloaded current to: aHiDePersistency | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeUnloaded.class.st",
"code": "Object sub... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "initialize: aHiDePersistency\n\n\tself write:",
"suffix": "",
"completion": " HiDeUnloaded current to: aHiDePersistency"
} |
1,822 | https://github.com/tomooda/HiDeHo | 1b5b053eb863a7c366c28af2fe5323b1b734180b | src/HiDeHo-Storage/HiDePersistencySlot.class.st | read: aHiDePersistency
^ (super read: aHiDePersistency) ifHiDeUnloaded: [
aHiDePersistency hideLoad.
super read: aHiDePersistency ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeUnloaded.class.st",
"code": "Object sub... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "read: aHiDePersistency\n\n\t^ (super read: aHiDePersistency) ifHiDeUnloaded: [\n\t\t aHiDePersistency hideLoad.\n\t\t super",
"suffix": "",
"completion": " read: aHiDePersistency ]"
} |
1,823 | https://github.com/tomooda/HiDeHo | 1b5b053eb863a7c366c28af2fe5323b1b734180b | src/HiDeHo-Storage/HiDeUnloaded.class.st | current
^ current ifNil: [ current := self ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeUnloaded.class.st",
"code": "Object sub... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "current\n\n\t^ current ifNil: [ current",
"suffix": "",
"completion": " := self ]"
} |
1,824 | https://github.com/tomooda/HiDeHo | 1b5b053eb863a7c366c28af2fe5323b1b734180b | src/HiDeHo-Storage/Object.extension.st | ifHiDeLoaded: aBlock
^ aBlock cull: self | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeUnloaded.class.st",
"code": "Object sub... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "ifHiDeLoaded: aBlock\n\n\t^",
"suffix": "",
"completion": " aBlock cull: self"
} |
1,825 | https://github.com/tomooda/HiDeHo | 1b5b053eb863a7c366c28af2fe5323b1b734180b | src/HiDeHo-Storage/Object.extension.st | ifHiDeLoaded: aBlock unloaded: anotherBlock
^ aBlock cull: self | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeUnloaded.class.st",
"code": "Object sub... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "ifHiDeLoaded: aBlock unloaded: anotherBlock\n\n\t^",
"suffix": "",
"completion": " aBlock cull: self"
} |
1,826 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st | basicX
^ (self class slotNamed: #x) basicRead: self | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "basicX\n\n\t^ (self class slotNamed:",
"suffix": "",
"completion": " #x) basicRead: self"
} |
1,827 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st | initialize
self class initializeSlots: self.
super initialize.
self initializeHideMetadata | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tself",
"suffix": ".\n\tsuper initialize.\n\tself initializeHideMetadata",
"completion": " class initializeSlots: self"
} |
1,828 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlot.class.st | basicRead: aHiDePersistency
^ self object: aHiDePersistency instVarAt: index | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "basicRead: aHiDePersistency\n\n\t^",
"suffix": "",
"completion": " self object: aHiDePersistency instVarAt: index"
} |
1,829 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | setUp
filesystem := FileSystem memory.
root := filesystem root.
storage := HiDeStorageForTesting new
basepath: root;
yourself.
object := HiDePersistencyObjectForTesting new
hideStorage: storage;
yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tfilesystem",
"suffix": ".\n\troot := filesystem root.\n\tstorage := HiDeStorageForTesting new\n\t\t basepath: root;\n\t\t yourself.\n\tobject := HiDePersistencyObjectForTesting new\n\t\t hideSto... |
1,830 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | setUp
filesystem := FileSystem memory.
root := filesystem root.
storage := HiDeStorageForTesting new
basepath: root;
yourself.
object := HiDePersistencyObjectForTesting new
hideStorage: storage;
yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot := filesystem root.\n\tstorage := HiDeStorageForTesting new\n\t\t basepath: root;\n\t\t yourself.\n\tobject := HiDePersistencyObjectForTesting new\n\t\t hi... |
1,831 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | setUp
filesystem := FileSystem memory.
root := filesystem root.
storage := HiDeStorageForTesting new
basepath: root;
yourself.
object := HiDePersistencyObjectForTesting new
hideStorage: storage;
yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot := filesystem root.\n\tstorage :=",
"suffix": ".\n\tobject := HiDePersistencyObjectForTesting new\n\t\t hideStorage: storage;\n\t\t yourself",
"completion": " HiD... |
1,832 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | testBasicRead
| copy |
object x: 10.
object hideSave.
copy := HiDePersistencyObjectForTesting new.
copy hideStorage: storage.
copy hideMetadata identity: object hideMetadata identity.
self
assert: copy basicX
equals: (object class slotNamed: #x) unloaded | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testBasicRead\n\n\t| copy |\n\tobject x: 10.\n\tobject hideSave.\n\tcopy",
"suffix": ".\n\tcopy hideStorage: storage.\n\tcopy hideMetadata identity: object hideMetadata identity.\n\tself\n\t\tassert: copy basicX\n\t\tequals: (object c... |
1,833 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | testBasicRead
| copy |
object x: 10.
object hideSave.
copy := HiDePersistencyObjectForTesting new.
copy hideStorage: storage.
copy hideMetadata identity: object hideMetadata identity.
self
assert: copy basicX
equals: (object class slotNamed: #x) unloaded | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testBasicRead\n\n\t| copy |\n\tobject x: 10.\n\tobject hideSave.\n\tcopy := HiDePersistencyObjectForTesting new.\n\tcopy hideStorage: storage.\n\tcopy",
"suffix": ".\n\tself\n\t\tassert: copy basicX\n\t\tequals: (object class slo... |
1,834 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | testBasicRead
| copy |
object x: 10.
object hideSave.
copy := HiDePersistencyObjectForTesting new.
copy hideStorage: storage.
copy hideMetadata identity: object hideMetadata identity.
self
assert: copy basicX
equals: (object class slotNamed: #x) unloaded | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "testBasicRead\n\n\t| copy |\n\tobject x: 10.\n\tobject hideSave.\n\tcopy := HiDePersistencyObjectForTesting new.\n\tcopy hideStorage: storage.\n\tcopy hideMetadata identity: object hideMetadata identity.\n\tself\n\t\tassert: copy b... |
1,835 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | testRead
| copy |
object x: 10.
object hideSave.
copy := HiDePersistencyObjectForTesting new.
self assert: copy x equals: nil.
copy hideStorage: storage.
copy hideMetadata identity: object hideMetadata identity.
self assert: copy x equals: object x.
copy hideStorage: nil.
copy hideMetadata identity: nil.
se... | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testRead\n\n\t| copy |\n\tobject x: 10.\n\tobject hideSave.\n\tcopy := HiDePersistencyObjectForTesting new.\n\tself assert: copy x equals: nil.\n\tcopy hideStorage: storage.\n\tcopy hideMetadata identity: object hideMetadata identi... |
1,836 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | testRead
| copy |
object x: 10.
object hideSave.
copy := HiDePersistencyObjectForTesting new.
self assert: copy x equals: nil.
copy hideStorage: storage.
copy hideMetadata identity: object hideMetadata identity.
self assert: copy x equals: object x.
copy hideStorage: nil.
copy hideMetadata identity: nil.
se... | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testRead\n\n\t| copy |\n\tobject x: 10.\n\tobject hideSave.\n\tcopy := HiDePersistencyObjectForTesting new.\n\tself assert: copy x equals: nil.\n\tcopy hideStorage: storage.\n\tcopy hideMetadata identity: object hideMetadata identi... |
1,837 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/HiDePersistencySlotTest.class.st | testRead
| copy |
object x: 10.
object hideSave.
copy := HiDePersistencyObjectForTesting new.
self assert: copy x equals: nil.
copy hideStorage: storage.
copy hideMetadata identity: object hideMetadata identity.
self assert: copy x equals: object x.
copy hideStorage: nil.
copy hideMetadata identity: nil.
se... | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testRead\n\n\t| copy |\n\tobject x: 10.\n\tobject hideSave.\n\tcopy := HiDePersistencyObjectForTesting new.\n\tself assert: copy x equals: nil.\n\tcopy hideStorage: storage.\n\tcopy hideMetadata",
"suffix": ".\n\tself assert: cop... |
1,838 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/THiDePersistency.trait.st | hideUnload
self class slots do: [ :slot |
(slot isKindOf: HiDePersistencySlot) ifTrue: [ slot unload: self ] ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "hideUnload\n\n\tself class slots do: [ :slot |\n\t\t(slot isKindOf: HiDePersistencySlot",
"suffix": "",
"completion": ") ifTrue: [ slot unload: self ] ]"
} |
1,839 | https://github.com/tomooda/HiDeHo | b8b7b5c6651ce5538bc194b7607819c45af6efab | src/HiDeHo-Storage/THiDePersistency.trait.st | hideUnload
self class slots do: [ :slot |
(slot isKindOf: HiDePersistencySlot) ifTrue: [ slot unload: self ] ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "hideUnload\n\n\tself class slots do: [ :slot |\n\t\t(slot isKindOf: HiDePersistencySlot",
"suffix": " ]",
"completion": ") ifTrue: [ slot unload: self ]"
} |
1,840 | https://github.com/tomooda/HiDeHo | d4f300983f9c25aec744f65b9e245c9604275b40 | src/HiDeHo-Storage/HiDePersistencySlot.class.st | = other
^ super = other and: [ loader = other loader ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: 'loader unloaded'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 7,
"prefix": "= other\n\n\t^ super = other",
"suffix": "",
"completion": " and: [ loader = other loader ]"
} |
1,841 | https://github.com/tomooda/HiDeHo | d4f300983f9c25aec744f65b9e245c9604275b40 | src/HiDeHo-Storage/HiDePersistencySlot.class.st | = other
^ super = other and: [ loader = other loader ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: 'loader unloaded'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
... | {
"fim_idx": 1,
"mask_type": "binary_message",
"n_masked_tokens": 3,
"prefix": "= other\n\n\t^ super = other and: [ loader",
"suffix": " ]",
"completion": " = other loader"
} |
1,842 | https://github.com/tomooda/HiDeHo | d4f300983f9c25aec744f65b9e245c9604275b40 | src/HiDeHo-Storage/HiDePersistencySlot.class.st | hasSameDefinitionAs: otherVariable
^(super hasSameDefinitionAs: otherVariable)
and: [ loader = otherVariable loader ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: 'loader unloaded'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "hasSameDefinitionAs: otherVariable\n\t\n \t^(super hasSameDefinitionAs: otherVariable) \n\t\tand: [ loader =",
"suffix": "",
"completion": " otherVariable loader ]"
} |
1,843 | https://github.com/tomooda/HiDeHo | d4f300983f9c25aec744f65b9e245c9604275b40 | src/HiDeHo-Storage/HiDePersistencySlot.class.st | hasSameDefinitionAs: otherVariable
^(super hasSameDefinitionAs: otherVariable)
and: [ loader = otherVariable loader ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: 'loader unloaded'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
... | {
"fim_idx": 1,
"mask_type": "binary_message",
"n_masked_tokens": 3,
"prefix": "hasSameDefinitionAs: otherVariable\n\t\n \t^(super hasSameDefinitionAs: otherVariable) \n\t\tand: [ loader",
"suffix": " ]",
"completion": " = otherVariable loader"
} |
1,844 | https://github.com/tomooda/HiDeHo | d4f300983f9c25aec744f65b9e245c9604275b40 | src/HiDeHo-Storage/HiDePersistencySlot.class.st | hash
^ super hash bitXor: loader hash | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: 'loader unloaded'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "hash\n\n\t^",
"suffix": "",
"completion": " super hash bitXor: loader hash"
} |
1,845 | https://github.com/tomooda/HiDeHo | d4f300983f9c25aec744f65b9e245c9604275b40 | src/HiDeHo-Storage/HiDePersistencySlot.class.st | printOn: aStream
aStream
store: self name;
nextPutAll: ' => ';
nextPutAll: self class name.
loader ~= self defaultLoader ifTrue: [
aStream nextPutAll: ' loader: '.
loader printOn: aStream ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: 'loader unloaded'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 6,
"prefix": "printOn: aStream\n\n\taStream\n\t\tstore: self name;\n\t\tnextPutAll:",
"suffix": ".\n\tloader ~= self defaultLoader ifTrue: [\n\t\taStream nextPutAll: ' loader: '.\n\t\tloader printOn: aStream ]",
"completion": " ' => ';\n\t\tnextPutA... |
1,846 | https://github.com/tomooda/HiDeHo | d4f300983f9c25aec744f65b9e245c9604275b40 | src/HiDeHo-Storage/HiDePersistencySlot.class.st | printOn: aStream
aStream
store: self name;
nextPutAll: ' => ';
nextPutAll: self class name.
loader ~= self defaultLoader ifTrue: [
aStream nextPutAll: ' loader: '.
loader printOn: aStream ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
"code": "InstanceVariableSlot subclass: #HiDePersistencySlot\n\tinstanceVariableNames: 'loader unloaded'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDePersistencySlot.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "printOn: aStream\n\n\taStream\n\t\tstore: self name;\n\t\tnextPutAll: ' => ';\n\t\tnextPutAll: self class name.\n\tloader ~= self defaultLoader ifTrue: [\n\t\taStream",
"suffix": "",
"completion": " nextPutAll: ' loader: '.\n\t... |
1,847 | https://github.com/tomooda/HiDeHo | ec118267af3fd5a01dac6ae35a6ef6d001fd9dd9 | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleSave: aHiDePersistency
self
ensureIdentity: aHiDePersistency hideMetadata;
chronicleFileReferenceFor: aHiDePersistency hideMetadata
do: [ :ref |
| backupRef |
backupRef := ref withExtension: 'moving'.
ref copyTo: backupRef.
ref ensureDeleteAllChildren.
aHiDePersistency hideUpda... | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "chronicleSave: aHiDePersistency\n \n \tself\n \t\tensureIdentity: aHiDePersistency hideMetadata;\n \t\tchronicleFileReferenceFor: aHiDePersistency hideMetadata\n \t\tdo: [ :ref |\n \t\t\t| backupRef |\n \t\t\tbackupRef := ref withE... |
1,848 | https://github.com/tomooda/HiDeHo | ec118267af3fd5a01dac6ae35a6ef6d001fd9dd9 | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleTail
| tail tailtime |
chronicle ifEmpty: [ ^ nil ].
tail := chronicle values anyOne.
tailtime := tail hideMetadata timestamp.
chronicle valuesDo: [ :persistency |
| time |
tailtime < (time := persistency hideMetadata timestamp) ifTrue: [
tail := persistency.
tailtime := time ] ].
^ tail | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "chronicleTail\n\n\t| tail tailtime |\n\tchronicle ifEmpty: [ ^ nil ].\n\ttail := chronicle values anyOne.\n\ttailtime := tail hideMetadata timestamp.\n\tchronicle valuesDo: [ :persistency |\n\t\t| time |\n\t\ttailtime < (time := pe... |
1,849 | https://github.com/tomooda/HiDeHo | ec118267af3fd5a01dac6ae35a6ef6d001fd9dd9 | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleTail
| tail tailtime |
chronicle ifEmpty: [ ^ nil ].
tail := chronicle values anyOne.
tailtime := tail hideMetadata timestamp.
chronicle valuesDo: [ :persistency |
| time |
tailtime < (time := persistency hideMetadata timestamp) ifTrue: [
tail := persistency.
tailtime := time ] ].
^ tail | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "chronicleTail\n\n\t| tail tailtime |\n\tchronicle",
"suffix": ".\n\ttail := chronicle values anyOne.\n\ttailtime := tail hideMetadata timestamp.\n\tchronicle valuesDo: [ :persistency |\n\t\t| time |\n\t\ttailtime < (time := persi... |
1,850 | https://github.com/tomooda/HiDeHo | ec118267af3fd5a01dac6ae35a6ef6d001fd9dd9 | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleTail
| tail tailtime |
chronicle ifEmpty: [ ^ nil ].
tail := chronicle values anyOne.
tailtime := tail hideMetadata timestamp.
chronicle valuesDo: [ :persistency |
| time |
tailtime < (time := persistency hideMetadata timestamp) ifTrue: [
tail := persistency.
tailtime := time ] ].
^ tail | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "chronicleTail\n\n\t| tail tailtime |\n\tchronicle ifEmpty: [ ^ nil ].\n\ttail := chronicle values anyOne.\n\ttailtime :=",
"suffix": ".\n\tchronicle valuesDo: [ :persistency |\n\t\t| time |\n\t\ttailtime < (time := persistency hideMet... |
1,851 | https://github.com/tomooda/HiDeHo | ec118267af3fd5a01dac6ae35a6ef6d001fd9dd9 | src/HiDeHo-Storage/THiDePersistency.trait.st | hideBaseDirectory
^ self hideBaseDirectoryDo: #yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "hideBaseDirectory\n\n\t^",
"suffix": "",
"completion": " self hideBaseDirectoryDo: #yourself"
} |
1,852 | https://github.com/tomooda/HiDeHo | ec118267af3fd5a01dac6ae35a6ef6d001fd9dd9 | src/HiDeHo-Storage/THiDePersistency.trait.st | hideBaseDirectoryDo: aBlock
^ hideStorage ifNotNil: [
hideStorage chronicleFileReferenceFor: hideMetadata do: aBlock ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "hideBaseDirectoryDo: aBlock\n\n\t^ hideStorage ifNotNil: [\n\t\t hideStorage",
"suffix": "",
"completion": " chronicleFileReferenceFor: hideMetadata do: aBlock ]"
} |
1,853 | https://github.com/tomooda/HiDeHo | ec118267af3fd5a01dac6ae35a6ef6d001fd9dd9 | src/HiDeHo-Storage/THiDePersistency.trait.st | hideBaseDirectoryDo: aBlock
^ hideStorage ifNotNil: [
hideStorage chronicleFileReferenceFor: hideMetadata do: aBlock ] | [
{
"filepath": "src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st",
"code": "Object subclass: #HiDePersistencyObjectForTesting\n\tuses: THiDePersistency\n\tinstanceVariableNames: '#x => HiDePersistencySlot'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Tests'"
},
{
"filepath": "src/... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "hideBaseDirectoryDo: aBlock\n\n\t^ hideStorage ifNotNil: [\n\t\t hideStorage",
"suffix": " ]",
"completion": " chronicleFileReferenceFor: hideMetadata do: aBlock"
} |
1,854 | https://github.com/tomooda/HiDeHo | 3def27357736f0e67a2f08fdd81fe7c36cfc1c2b | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleTags
^ (chronicle values inject: Set new into: [ :tags :persistency |
tags
addAll: persistency hideMetadata tags;
yourself ]) asSortedCollection | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-UI/THiDeEditTags.trait.st",
"... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 9,
"prefix": "chronicleTags\n\n\t^ (chronicle values inject: Set new into: [ :tags :persistency |\n\t\t tags",
"suffix": "",
"completion": "\n\t\t\t addAll: persistency hideMetadata tags;\n\t\t\t yourself ]) asSortedCollection"
} |
1,855 | https://github.com/tomooda/HiDeHo | 3def27357736f0e67a2f08fdd81fe7c36cfc1c2b | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleTags
^ (chronicle values inject: Set new into: [ :tags :persistency |
tags
addAll: persistency hideMetadata tags;
yourself ]) asSortedCollection | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-UI/THiDeEditTags.trait.st",
"... | {
"fim_idx": 1,
"mask_type": "cascade",
"n_masked_tokens": 5,
"prefix": "chronicleTags\n\n\t^ (chronicle values inject: Set new into: [ :tags :persistency |\n\t\t tags\n\t\t\t addAll:",
"suffix": " ]) asSortedCollection",
"completion": " persistency hideMetadata tags;\n\t\t\t yourself"
} |
1,856 | https://github.com/tomooda/HiDeHo | 3def27357736f0e67a2f08fdd81fe7c36cfc1c2b | src/HiDeHo-UI/THiDeEditTags.trait.st | tagIcon
| form fillColor a |
fillColor := Color white.
form := Form extent: 24 @ 24 depth: 32.
a := 8.
form getCanvas
drawPolygon: {
(4 @ 4).
(4 + a @ 4).
(23 @ (23 - a)).
(23 - a @ 23).
4 @ (a + 4) }
color: Color white
borderWidth: 1
borderColor: Color black;
flush.
^ form | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-UI/THiDeEditTags.trait.st",
"... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "tagIcon\n\n\t| form fillColor a |\n\tfillColor",
"suffix": ".\n\tform := Form extent: 24 @ 24 depth: 32.\n\ta := 8.\n\tform getCanvas\n\t\tdrawPolygon: {\n\t\t\t\t(4 @ 4).\n\t\t\t\t(4 + a @ 4).\n\t\t\t\t(23 @ (23 - a)).\n\t\t\t\t(23 -... |
1,857 | https://github.com/tomooda/HiDeHo | 3def27357736f0e67a2f08fdd81fe7c36cfc1c2b | src/HiDeHo-UI/THiDeEditTags.trait.st | tagIcon
| form fillColor a |
fillColor := Color white.
form := Form extent: 24 @ 24 depth: 32.
a := 8.
form getCanvas
drawPolygon: {
(4 @ 4).
(4 + a @ 4).
(23 @ (23 - a)).
(23 - a @ 23).
4 @ (a + 4) }
color: Color white
borderWidth: 1
borderColor: Color black;
flush.
^ form | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-UI/THiDeEditTags.trait.st",
"... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 7,
"prefix": "tagIcon\n\n\t| form fillColor a |\n\tfillColor := Color white.\n\tform :=",
"suffix": ".\n\ta := 8.\n\tform getCanvas\n\t\tdrawPolygon: {\n\t\t\t\t(4 @ 4).\n\t\t\t\t(4 + a @ 4).\n\t\t\t\t(23 @ (23 - a)).\n\t\t\t\t(23 - a @ 23).\n\t\t\... |
1,858 | https://github.com/tomooda/HiDeHo | 3def27357736f0e67a2f08fdd81fe7c36cfc1c2b | src/HiDeHo-UI/THiDeEditTags.trait.st | tagIcon
| form fillColor a |
fillColor := Color white.
form := Form extent: 24 @ 24 depth: 32.
a := 8.
form getCanvas
drawPolygon: {
(4 @ 4).
(4 + a @ 4).
(23 @ (23 - a)).
(23 - a @ 23).
4 @ (a + 4) }
color: Color white
borderWidth: 1
borderColor: Color black;
flush.
^ form | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-UI/THiDeEditTags.trait.st",
"... | {
"fim_idx": 2,
"mask_type": "cascade",
"n_masked_tokens": 5,
"prefix": "tagIcon\n\n\t| form fillColor a |\n\tfillColor := Color white.\n\tform := Form extent: 24 @ 24 depth: 32.\n\ta := 8.\n\tform getCanvas\n\t\tdrawPolygon: {\n\t\t\t\t(4 @ 4).\n\t\t\t\t(4 + a @ 4).\n\t\t\t\t(23 @ (23 - a)).\n\t\t\t\t(23 - a @... |
1,859 | https://github.com/tomooda/HiDeHo | 672204a10e145b74acc4fdf8690cb46ad457ac6d | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleRemove: aHiDePersistency
self
chronicleFileReferenceFor: aHiDePersistency hideMetadata
do: [ :ref |
ref ensureDeleteAll.
chronicle
removeKey: aHiDePersistency hideMetadata identity
ifAbsent: [ ].
^ ref ].
^ nil | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
}
] | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "chronicleRemove: aHiDePersistency\n\n\tself\n\t\tchronicleFileReferenceFor: aHiDePersistency hideMetadata\n\t\tdo: [ :ref |\n\t\t\tref ensureDeleteAll.\n\t\t\tchronicle\n\t\t\t\tremoveKey: aHiDePersistency hideMetadata identity",
... |
1,860 | https://github.com/tomooda/HiDeHo | 672204a10e145b74acc4fdf8690cb46ad457ac6d | src/HiDeHo-Storage/HiDeStorage.class.st | chronicleRemove: aHiDePersistency
self
chronicleFileReferenceFor: aHiDePersistency hideMetadata
do: [ :ref |
ref ensureDeleteAll.
chronicle
removeKey: aHiDePersistency hideMetadata identity
ifAbsent: [ ].
^ ref ].
^ nil | [
{
"filepath": "src/HiDeHo-Storage/HiDeStorage.class.st",
"code": "Object subclass: #HiDeStorage\n\tinstanceVariableNames: 'basepath chronicleMaxSize chronicleMaxDays chronicle'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
}
] | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "chronicleRemove: aHiDePersistency\n\n\tself\n\t\tchronicleFileReferenceFor: aHiDePersistency hideMetadata\n\t\tdo: [ :ref |\n\t\t\tref ensureDeleteAll.\n\t\t\tchronicle\n\t\t\t\tremoveKey: aHiDePersistency hideMetadata",
"suffix"... |
1,861 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | fromFile: aFileReference
^ self new
load: aFileReference;
yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "fromFile: aFileReference\n\n\t^ self new\n\t\t load:",
"suffix": "",
"completion": " aFileReference;\n\t\t yourself"
} |
1,862 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | id: aString storage: aHiDeStorage
^ self new
storage: aHiDeStorage;
id: aString;
load;
yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "id: aString storage: aHiDeStorage\n\n\t^ self new\n\t\t storage: aHiDeStorage;\n\t\t id:",
"suffix": "",
"completion": " aString;\n\t\t load;\n\t\t yourself"
} |
1,863 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | add: aHiDePersistency
items add: (storage ensureIdentity: aHiDePersistency hideMetadata).
self save.
^ aHiDePersistency | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "add: aHiDePersistency\n\n\titems add: (storage ensureIdentity:",
"suffix": ".\n\tself save.\n\t^ aHiDePersistency",
"completion": " aHiDePersistency hideMetadata)"
} |
1,864 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | addAll: aCollectionOfHiDePersistency
aCollectionOfHiDePersistency do: [ :persistency |
items add: persistency hideMetadata identity ].
self save | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "addAll: aCollectionOfHiDePersistency\n\n\taCollectionOfHiDePersistency do: [ :persistency |\n\t\titems add: persistency",
"suffix": ".\n\tself save",
"completion": " hideMetadata identity ]"
} |
1,865 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | addAll: aCollectionOfHiDePersistency
aCollectionOfHiDePersistency do: [ :persistency |
items add: persistency hideMetadata identity ].
self save | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "addAll: aCollectionOfHiDePersistency\n\n\taCollectionOfHiDePersistency do: [ :persistency |\n\t\titems add:",
"suffix": " ].\n\tself save",
"completion": " persistency hideMetadata identity"
} |
1,866 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | asArray
^ Array streamContents: [ :stream |
self do: [ :persistency | stream nextPut: persistency ] ] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 8,
"prefix": "asArray\n\n\t^ Array streamContents: [ :stream |\n\t\t self do: [",
"suffix": "",
"completion": " :persistency | stream nextPut: persistency ] ]"
} |
1,867 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | asArray
^ Array streamContents: [ :stream |
self do: [ :persistency | stream nextPut: persistency ] ] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "asArray\n\n\t^ Array streamContents: [ :stream |\n\t\t self do: [ :persistency",
"suffix": " ]",
"completion": " | stream nextPut: persistency ]"
} |
1,868 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | do: aBlock
items do: [:id | storage chronicleAt: id ifPresent: aBlock] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "do: aBlock\n\n\titems do: [:id |",
"suffix": "",
"completion": " storage chronicleAt: id ifPresent: aBlock]"
} |
1,869 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | do: aBlock
items do: [:id | storage chronicleAt: id ifPresent: aBlock] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "do: aBlock\n\n\titems do: [:id | storage chronicleAt:",
"suffix": "]",
"completion": " id ifPresent: aBlock"
} |
1,870 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | fileReference
^ (storage notNil and: [ identity notNil ])
ifTrue: [ storage basepathDo: [ :ref | ref / identity ] ]
ifFalse: [ nil ] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "fileReference\n\n\t^ (storage notNil and: [ identity notNil ])\n\t\t ifTrue: [ storage basepathDo: [ :ref | ref / identity ] ]",
"suffix": "",
"completion": "\n\t\t ifFalse: [ nil ]"
} |
1,871 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | fileReference
^ (storage notNil and: [ identity notNil ])
ifTrue: [ storage basepathDo: [ :ref | ref / identity ] ]
ifFalse: [ nil ] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "fileReference\n\n\t^ (storage notNil and: [ identity notNil ])\n\t\t ifTrue: [ storage basepathDo: [ :ref | ref",
"suffix": " ]\n\t\t ifFalse: [ nil ]",
"completion": " / identity ]"
} |
1,872 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | initialize
super initialize.
name := ''.
items := SortedCollection sortBlock:
[ :id | (storage chronicleAt: id) hideMetadata timestamp ]
descending | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "initialize\n\n\tsuper initialize.\n\tname := ''.\n\titems := SortedCollection sortBlock:\n\t\t [ :id | (storage chronicleAt: id)",
"suffix": "",
"completion": " hideMetadata timestamp ]\n\t\t\t descending"
} |
1,873 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | initialize
super initialize.
name := ''.
items := SortedCollection sortBlock:
[ :id | (storage chronicleAt: id) hideMetadata timestamp ]
descending | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "unary_message",
"n_masked_tokens": 4,
"prefix": "initialize\n\n\tsuper initialize.\n\tname := ''.\n\titems := SortedCollection sortBlock:\n\t\t [ :id | (storage chronicleAt:",
"suffix": " ]\n\t\t\t descending",
"completion": " id) hideMetadata timestamp"
} |
1,874 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | load
^ self load: self fileReference | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "load\n\n\t^ self",
"suffix": "",
"completion": " load: self fileReference"
} |
1,875 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | load: aFileReference
aFileReference ifNotNil: [
aFileReference ifExists: [
(aFileReference readStreamDo: [ :stream |
[ STONJSON fromStream: stream ]
on: Exception
do: [ :ex | ex return: nil ] ]) ifNotNil: [ :json |
json
at: 'identity' ifPresent: [ :str | identity := str ];
at: 'nam... | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 6,
"mask_type": "unary_message",
"n_masked_tokens": 5,
"prefix": "load: aFileReference\n\n\taFileReference ifNotNil: [\n\t\taFileReference ifExists: [\n\t\t\t(aFileReference readStreamDo: [ :stream |\n\t\t\t\t [ STONJSON fromStream: stream ]\n\t\t\t\t\t on: Exception\n\t\t\t\t\t do: [ :ex | ex retu... |
1,876 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | load: aFileReference
aFileReference ifNotNil: [
aFileReference ifExists: [
(aFileReference readStreamDo: [ :stream |
[ STONJSON fromStream: stream ]
on: Exception
do: [ :ex | ex return: nil ] ]) ifNotNil: [ :json |
json
at: 'identity' ifPresent: [ :str | identity := str ];
at: 'nam... | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "load: aFileReference\n\n\taFileReference ifNotNil: [\n\t\taFileReference ifExists: [\n\t\t\t(aFileReference readStreamDo: [ :stream |\n\t\t\t\t [ STONJSON fromStream: stream ]\n\t\t\t\t\t on: Exception\n\t\t\t\t\t do: [ :ex | ex re... |
1,877 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | load: aFileReference
aFileReference ifNotNil: [
aFileReference ifExists: [
(aFileReference readStreamDo: [ :stream |
[ STONJSON fromStream: stream ]
on: Exception
do: [ :ex | ex return: nil ] ]) ifNotNil: [ :json |
json
at: 'identity' ifPresent: [ :str | identity := str ];
at: 'nam... | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "load: aFileReference\n\n\taFileReference ifNotNil: [\n\t\taFileReference ifExists: [\n\t\t\t(aFileReference readStreamDo: [ :stream |\n\t\t\t\t [ STONJSON fromStream: stream ]\n\t\t\t\t\t on: Exception\n\t\t\t\t\t do: [ :ex | ex r... |
1,878 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | remove: aHiDePersistency
items remove: aHiDePersistency hideMetadata identity ifAbsent: [ ].
self save | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "remove: aHiDePersistency\n\n\titems",
"suffix": ".\n\tself save",
"completion": " remove: aHiDePersistency hideMetadata identity ifAbsent: [ ]"
} |
1,879 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | removeAll: aCollectionOfHiDePersistency
aCollectionOfHiDePersistency do: [ :persistency |
items remove: persistency hideMetadata identity ifAbsent: [ ] ].
self save | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "removeAll: aCollectionOfHiDePersistency\n\n\taCollectionOfHiDePersistency do: [ :persistency",
"suffix": ".\n\tself save",
"completion": " |\n\t\titems remove: persistency hideMetadata identity ifAbsent: [ ] ]"
} |
1,880 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | removeAll: aCollectionOfHiDePersistency
aCollectionOfHiDePersistency do: [ :persistency |
items remove: persistency hideMetadata identity ifAbsent: [ ] ].
self save | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "removeAll: aCollectionOfHiDePersistency\n\n\taCollectionOfHiDePersistency do: [ :persistency |\n\t\titems remove:",
"suffix": " ].\n\tself save",
"completion": " persistency hideMetadata identity ifAbsent: [ ]"
} |
1,881 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | save
^ self save: self fileReference | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "save\n\n\t^ self",
"suffix": "",
"completion": " save: self fileReference"
} |
1,882 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | save: aFileReference
aFileReference ifNotNil: [
aFileReference
ensureDelete;
writeStreamDo: [ :stream |
STONJSON
put: {
('identity' -> identity).
('name' -> name).
('items' -> items asArray) } asDictionary
onStream: stream ] ] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "save: aFileReference\n\n\taFileReference ifNotNil: [\n\t\taFileReference\n\t\t\tensureDelete;\n\t\t\twriteStreamDo: [ :stream |\n\t\t\t\tSTONJSON\n\t\t\t\t\tput: {\n\t\t\t\t\t\t\t('identity' -> identity).\n\t\t\t\t\t\t\t('name' -> ... |
1,883 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | save: aFileReference
aFileReference ifNotNil: [
aFileReference
ensureDelete;
writeStreamDo: [ :stream |
STONJSON
put: {
('identity' -> identity).
('name' -> name).
('items' -> items asArray) } asDictionary
onStream: stream ] ] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "cascade",
"n_masked_tokens": 10,
"prefix": "save: aFileReference\n\n\taFileReference ifNotNil: [\n\t\taFileReference\n\t\t\tensureDelete;\n\t\t\twriteStreamDo: [ :stream |\n\t\t\t\tSTONJSON\n\t\t\t\t\tput: {\n\t\t\t\t\t\t\t('identity' -> identity).\n\t\t\t\t\t\t\t('name' -> name).\... |
1,884 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrative.class.st | save: aFileReference
aFileReference ifNotNil: [
aFileReference
ensureDelete;
writeStreamDo: [ :stream |
STONJSON
put: {
('identity' -> identity).
('name' -> name).
('items' -> items asArray) } asDictionary
onStream: stream ] ] | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "save: aFileReference\n\n\taFileReference ifNotNil: [\n\t\taFileReference\n\t\t\tensureDelete;\n\t\t\twriteStreamDo: [ :stream |\n\t\t\t\tSTONJSON\n\t\t\t\t\tput: {\n\t\t\t\t\t\t\t('identity' -> identity).\n\t\t\t\t\t\t\t('name' -> ... |
1,885 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | setUp
filesystem := FileSystem memory.
root := filesystem root.
storage := HiDeStorageForTesting new
basepath: root;
yourself.
narrative := HiDeNarrative new
storage: storage;
yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot := filesystem root.\n\tstorage := HiDeStorageForTesting new\n\t\t basepath: root;\n\t\t yourself.\n\tnarrative := HiDeNarrative new",
"suffix": "",
"completion"... |
1,886 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | setUp
filesystem := FileSystem memory.
root := filesystem root.
storage := HiDeStorageForTesting new
basepath: root;
yourself.
narrative := HiDeNarrative new
storage: storage;
yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot",
"suffix": ".\n\tstorage := HiDeStorageForTesting new\n\t\t basepath: root;\n\t\t yourself.\n\tnarrative := HiDeNarrative new\n\t\t storage: storage;... |
1,887 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | setUp
filesystem := FileSystem memory.
root := filesystem root.
storage := HiDeStorageForTesting new
basepath: root;
yourself.
narrative := HiDeNarrative new
storage: storage;
yourself | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot := filesystem root.\n\tstorage :=",
"suffix": ".\n\tnarrative := HiDeNarrative new\n\t\t storage: storage;\n\t\t yourself",
"completion": " HiDeStorageForTe... |
1,888 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testAdd
| testItem id |
testItem := HiDePersistencyObjectForTesting new
hideStorage: storage;
yourself.
narrative add: testItem.
id := testItem hideMetadata identity.
self assert: (narrative instVarNamed: #items) asArray equals: { id } | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testAdd\n\n\t| testItem id |\n\ttestItem := HiDePersistencyObjectForTesting new",
"suffix": ".\n\tnarrative add: testItem.\n\tid := testItem hideMetadata identity.\n\tself assert: (narrative instVarNamed: #items) asArray equals: { id ... |
1,889 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testAdd
| testItem id |
testItem := HiDePersistencyObjectForTesting new
hideStorage: storage;
yourself.
narrative add: testItem.
id := testItem hideMetadata identity.
self assert: (narrative instVarNamed: #items) asArray equals: { id } | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testAdd\n\n\t| testItem id |\n\ttestItem := HiDePersistencyObjectForTesting new\n\t\t hideStorage: storage;\n\t\t yourself.\n\tnarrative add: testItem.\n\tid :=",
"suffix": ".\n\tself assert: (narrative instVarNa... |
1,890 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testAdd
| testItem id |
testItem := HiDePersistencyObjectForTesting new
hideStorage: storage;
yourself.
narrative add: testItem.
id := testItem hideMetadata identity.
self assert: (narrative instVarNamed: #items) asArray equals: { id } | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "testAdd\n\n\t| testItem id |\n\ttestItem := HiDePersistencyObjectForTesting new\n\t\t hideStorage: storage;\n\t\t yourself.\n\tnarrative add: testItem.\n\tid := testItem hideMetadata identity.\n\tself assert:... |
1,891 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testAddAll
| id1 item1 id2 item2 |
id1 := (item1 := HiDePersistencyObjectForTesting new
hideStorage: storage;
hideSave;
yourself) hideMetadata identity.
1 milliSeconds wait.
id2 := (item2 := HiDePersistencyObjectForTesting new
hideStorage:... | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testAddAll\n\n\t| id1 item1 id2 item2 |\n\tid1 := (item1 := HiDePersistencyObjectForTesting new\n\t\t hideStorage: storage;\n\t\t hideSave;\n\t\t yourself) hideMetadata identity.\n\t1... |
1,892 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testAddAll
| id1 item1 id2 item2 |
id1 := (item1 := HiDePersistencyObjectForTesting new
hideStorage: storage;
hideSave;
yourself) hideMetadata identity.
1 milliSeconds wait.
id2 := (item2 := HiDePersistencyObjectForTesting new
hideStorage:... | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 10,
"prefix": "testAddAll\n\n\t| id1 item1 id2 item2 |\n\tid1 := (item1 := HiDePersistencyObjectForTesting",
"suffix": ".\n\t1 milliSeconds wait.\n\tid2 := (item2 := HiDePersistencyObjectForTesting new\n\t\t hideStorage: storage;\n\... |
1,893 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testAddAll
| id1 item1 id2 item2 |
id1 := (item1 := HiDePersistencyObjectForTesting new
hideStorage: storage;
hideSave;
yourself) hideMetadata identity.
1 milliSeconds wait.
id2 := (item2 := HiDePersistencyObjectForTesting new
hideStorage:... | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testAddAll\n\n\t| id1 item1 id2 item2 |\n\tid1 := (item1 := HiDePersistencyObjectForTesting new\n\t\t hideStorage: storage;\n\t\t hideSave;\n\t\t yourself) hideMetadata identity.\n\t1... |
1,894 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testDo
| testItem |
testItem := HiDePersistencyObjectForTesting new
hideStorage: storage;
hideSave;
yourself.
narrative add: testItem.
self
assert: (Array streamContents: [ :stream |
narrative do: [ :item | stream nextPut: item ] ])
equals: { testItem } | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "testDo\n\n\t| testItem |\n\ttestItem := HiDePersistencyObjectForTesting new\n\t\t hideStorage:",
"suffix": ".\n\tnarrative add: testItem.\n\n\tself\n\t\tassert: (Array streamContents: [ :stream |\n\t\t\t\t narrative do: [ :... |
1,895 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testDo
| testItem |
testItem := HiDePersistencyObjectForTesting new
hideStorage: storage;
hideSave;
yourself.
narrative add: testItem.
self
assert: (Array streamContents: [ :stream |
narrative do: [ :item | stream nextPut: item ] ])
equals: { testItem } | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testDo\n\n\t| testItem |\n\ttestItem := HiDePersistencyObjectForTesting new\n\t\t hideStorage: storage;\n\t\t hideSave;\n\t\t yourself.\n\tnarrative add: testItem.\n\n\tself\n\t\tassert: (Array stre... |
1,896 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testDo
| testItem |
testItem := HiDePersistencyObjectForTesting new
hideStorage: storage;
hideSave;
yourself.
narrative add: testItem.
self
assert: (Array streamContents: [ :stream |
narrative do: [ :item | stream nextPut: item ] ])
equals: { testItem } | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "testDo\n\n\t| testItem |\n\ttestItem := HiDePersistencyObjectForTesting new\n\t\t hideStorage: storage;\n\t\t hideSave;\n\t\t yourself.\n\tnarrative add: testItem.\n\n\tself\n\t\tassert: (Array stre... |
1,897 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testIdentity
narrative identity: 'test identity'.
self assert: narrative identity equals: 'test identity' | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testIdentity\n\n\tnarrative identity: 'test identity'.\n\tself assert:",
"suffix": "",
"completion": " narrative identity equals: 'test identity'"
} |
1,898 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testLoad
(root / 'test identity')
ensureDelete;
writeStreamDo: [ :stream |
STONJSON
put: {
('identity' -> 'test identity').
('name' -> 'test name').
('items' -> { 'test item' }) } asDictionary
onStream: stream ].
narrative identity: 'test identity'.
narrative load.
self assert: nar... | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testLoad\n\n\t(root / 'test identity')\n\t\tensureDelete;\n\t\twriteStreamDo: [ :stream |\n\t\t\tSTONJSON\n\t\t\t\tput: {\n\t\t\t\t\t\t('identity' -> 'test identity').\n\t\t\t\t\t\t('name' -> 'test name').\n\t\t\t\t\t\t('items' -> ... |
1,899 | https://github.com/tomooda/HiDeHo | f4fe96a771a76a1d0041a0caada1c9cb44f9cce1 | src/HiDeHo-Storage/HiDeNarrativeTest.class.st | testLoad
(root / 'test identity')
ensureDelete;
writeStreamDo: [ :stream |
STONJSON
put: {
('identity' -> 'test identity').
('name' -> 'test name').
('items' -> { 'test item' }) } asDictionary
onStream: stream ].
narrative identity: 'test identity'.
narrative load.
self assert: nar... | [
{
"filepath": "src/HiDeHo-Storage/HiDeNarrative.class.st",
"code": "Object subclass: #HiDeNarrative\n\tinstanceVariableNames: 'name identity items storage'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Storage-Core'"
},
{
"filepath": "src/HiDeHo-Storage/HiDeNarrativeTest.class.st",
"code": "Test... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testLoad\n\n\t(root / 'test identity')\n\t\tensureDelete;\n\t\twriteStreamDo: [ :stream |\n\t\t\tSTONJSON\n\t\t\t\tput: {\n\t\t\t\t\t\t('identity' -> 'test identity').\n\t\t\t\t\t\t('name' -> 'test name').\n\t\t\t\t\t\t('items' -> ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.