task_id
int64
0
2.26k
repository
stringclasses
18 values
commit_hash
stringclasses
241 values
filepath
stringclasses
237 values
original_method
stringlengths
21
4.65k
context
listlengths
0
77
masking
dict
1,600
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
anyNodeSatisfy: aBlock self nodesDo: [ :node | (aBlock value: node) ifTrue: [ ^ true ] ]. ^ false
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "anyNodeSatisfy: aBlock\n\n\tself nodesDo: [ :node | (aBlock value: node", "suffix": " ].\n\t^ false", "completion": ") ifTrue: [ ^ true ]" }
1,601
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
anySatisfy: aBlock self do: [ :object | (aBlock value: object) ifTrue: [ ^ true ] ]. ^ false
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "anySatisfy: aBlock\n\n\tself do: [ :object | (", "suffix": ".\n\t^ false", "completion": "aBlock value: object) ifTrue: [ ^ true ] ]" }
1,602
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
anySatisfy: aBlock self do: [ :object | (aBlock value: object) ifTrue: [ ^ true ] ]. ^ false
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "anySatisfy: aBlock\n\n\tself do: [ :object | (aBlock", "suffix": " ].\n\t^ false", "completion": " value: object) ifTrue: [ ^ true ]" }
1,603
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
asHiDeClosure ^ HiDeClosure with: self
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "asHiDeClosure\n\n\t^", "suffix": "", "completion": " HiDeClosure with: self" }
1,604
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
do: aBlock self itemsDo: [ :holder | aBlock value: holder value ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "do: aBlock\n\n\tself itemsDo: [", "suffix": "", "completion": " :holder | aBlock value: holder value ]" }
1,605
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
do: aBlock self itemsDo: [ :holder | aBlock value: holder value ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "do: aBlock\n\n\tself itemsDo: [ :holder | aBlock", "suffix": " ]", "completion": " value: holder value" }
1,606
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
identityIncludes: anObject ^ self anySatisfy: [ :object | object == anObject ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "identityIncludes: anObject\n\n\t^ self anySatisfy: [ :object | object", "suffix": "", "completion": " == anObject ]" }
1,607
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
includes: anObject ^ self anySatisfy: [ :object | object = anObject ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "includes: anObject\n\n\t^ self anySatisfy:", "suffix": "", "completion": " [ :object | object = anObject ]" }
1,608
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
select: aBlock ^ Array streamContents: [ :stream | self do: [ :node | (aBlock value: node) ifTrue: [ stream nextPut: node ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 10, "prefix": "select: aBlock\n\n\t^ Array streamContents: [ :stream |\n\t\t self do: [ :node |\n\t\t\t (aBlock value:", "suffix": "", "completion": " node) ifTrue: [ stream nextPut: node ] ] ]" }
1,609
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
select: aBlock ^ Array streamContents: [ :stream | self do: [ :node | (aBlock value: node) ifTrue: [ stream nextPut: node ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "select: aBlock\n\n\t^ Array streamContents: [ :stream |\n\t\t self do: [ :node |\n\t\t\t (aBlock value: node) ifTrue:", "suffix": " ]", "completion": " [ stream nextPut: node ] ]" }
1,610
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
select: aBlock ^ Array streamContents: [ :stream | self do: [ :node | (aBlock value: node) ifTrue: [ stream nextPut: node ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "select: aBlock\n\n\t^ Array streamContents: [ :stream |\n\t\t self do: [ :node |\n\t\t\t (", "suffix": " ] ]", "completion": "aBlock value: node) ifTrue: [ stream nextPut: node ]" }
1,611
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
selectNodes: aBlock ^ Array streamContents: [ :stream | self nodesDo: [ :node | (aBlock value: node) ifTrue: [ stream nextPut: node ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 6, "prefix": "selectNodes: aBlock\n\n\t^ Array streamContents: [ :stream |\n\t\t self nodesDo: [ :node |\n\t\t\t (aBlock value: node) ifTrue: [", "suffix": "", "completion": " stream nextPut: node ] ] ]" }
1,612
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
selectNodes: aBlock ^ Array streamContents: [ :stream | self nodesDo: [ :node | (aBlock value: node) ifTrue: [ stream nextPut: node ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "selectNodes: aBlock\n\n\t^ Array streamContents: [ :stream |\n\t\t self nodesDo: [ :node |\n\t\t\t (aBlock value: node) ifTrue: [ stream", "suffix": " ]", "completion": " nextPut: node ] ]" }
1,613
https://github.com/tomooda/HiDeHo
3a6c080da7e60aabc5050b29d32ba42326ed1385
src/HiDeHo-Node/THiDeItem.trait.st
selectNodes: aBlock ^ Array streamContents: [ :stream | self nodesDo: [ :node | (aBlock value: node) ifTrue: [ stream nextPut: node ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "selectNodes: aBlock\n\n\t^ Array streamContents: [ :stream |\n\t\t self nodesDo: [ :node |\n\t\t\t (", "suffix": " ] ]", "completion": "aBlock value: node) ifTrue: [ stream nextPut: node ]" }
1,614
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
initialize super initialize. timestamp := self defaultTimestamp
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "initialize\n\n\tsuper initialize.\n\ttimestamp", "suffix": "", "completion": " := self defaultTimestamp" }
1,615
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
load self loadMetadata; loadPayload
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 0, "mask_type": "cascade", "n_masked_tokens": 3, "prefix": "load\n\n\tself", "suffix": "", "completion": "\n\t\tloadMetadata;\n\t\tloadPayload" }
1,616
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
loadMetadata fileReference / 'metadata.json' ifExists: [ :ref | ([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ] on: Exception do: [ :ex | ex return: nil ]) ifNotNil: [ :json | self metadata: json ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "loadMetadata\n\n\tfileReference / 'metadata.json' ifExists: [ :ref |\n\t\t([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ]\n\t\t\t on: Exception\n\t\t\t do: [ :ex | ex return: nil ]) ifNotNil: [ :json |", "suffix"...
1,617
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
loadMetadata fileReference / 'metadata.json' ifExists: [ :ref | ([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ] on: Exception do: [ :ex | ex return: nil ]) ifNotNil: [ :json | self metadata: json ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "loadMetadata\n\n\tfileReference / 'metadata.json' ifExists: [ :ref |\n\t\t([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ]\n\t\t\t on: Exception\n\t\t\t do: [ :ex | ex return: nil ]", "suffix": " ]", "completio...
1,618
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
loadMetadata fileReference / 'metadata.json' ifExists: [ :ref | ([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ] on: Exception do: [ :ex | ex return: nil ]) ifNotNil: [ :json | self metadata: json ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "loadMetadata\n\n\tfileReference / 'metadata.json' ifExists: [ :ref |\n\t\t([ ref readStreamDo: [", "suffix": " ]\n\t\t\t on: Exception\n\t\t\t do: [ :ex | ex return: nil ]) ifNotNil: [ :json |\n\t\t\tself metadata: json ] ]", "...
1,619
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
metadata | json | json := OrderedDictionary new. name ifNotNil: [ json at: 'name' put: name ]. timestamp ifNotNil: [ json at: 'timestamp' put: timestamp asString ]. comment ifNotNil: [ json at: 'comment' put: comment ]. ^ json
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "metadata\n\n\t| json |\n\tjson := OrderedDictionary new.\n\tname ifNotNil: [ json", "suffix": " ].\n\ttimestamp ifNotNil: [ json at: 'timestamp' put: timestamp asString ].\n\tcomment ifNotNil: [ json at: 'comment' put: comment ]....
1,620
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
metadata | json | json := OrderedDictionary new. name ifNotNil: [ json at: 'name' put: name ]. timestamp ifNotNil: [ json at: 'timestamp' put: timestamp asString ]. comment ifNotNil: [ json at: 'comment' put: comment ]. ^ json
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 5, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "metadata\n\n\t| json |\n\tjson := OrderedDictionary new.\n\tname ifNotNil: [ json at: 'name' put: name ].\n\ttimestamp ifNotNil: [ json at: 'timestamp' put: timestamp asString ].\n\tcomment", "suffix": ".\n\t^ json", "completio...
1,621
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
metadata | json | json := OrderedDictionary new. name ifNotNil: [ json at: 'name' put: name ]. timestamp ifNotNil: [ json at: 'timestamp' put: timestamp asString ]. comment ifNotNil: [ json at: 'comment' put: comment ]. ^ json
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "metadata\n\n\t| json |\n\tjson := OrderedDictionary new.\n\tname ifNotNil: [ json at: 'name' put: name ].\n\ttimestamp ifNotNil: [ json at:", "suffix": " ].\n\tcomment ifNotNil: [ json at: 'comment' put: comment ].\n\t^ json", ...
1,622
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
metadata: aDictionary aDictionary at: 'name' ifPresent: [ :n | name := n ]; at: 'timestamp' ifPresent: [ :t | timestamp := t asDateAndTime ]; at: 'comment' ifPresent: [ :c | comment := c ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 0, "mask_type": "cascade", "n_masked_tokens": 3, "prefix": "metadata: aDictionary\n\n\taDictionary\n\t\tat: 'name' ifPresent: [ :n | name := n ];\n\t\tat: 'timestamp' ifPresent: [ :t | timestamp := t asDateAndTime ];\n\t\tat: 'comment' ifPresent: [ :c | comment", "suffix": "", "completion": " :...
1,623
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
metadata: aDictionary aDictionary at: 'name' ifPresent: [ :n | name := n ]; at: 'timestamp' ifPresent: [ :t | timestamp := t asDateAndTime ]; at: 'comment' ifPresent: [ :c | comment := c ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "metadata: aDictionary\n\n\taDictionary\n\t\tat: 'name' ifPresent: [ :n | name := n ];\n\t\tat: 'timestamp' ifPresent: [ :t | timestamp", "suffix": " ];\n\t\tat: 'comment' ifPresent: [ :c | comment := c ]", "completion": " := t asDat...
1,624
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
save self saveMetadata; savePayload
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 0, "mask_type": "cascade", "n_masked_tokens": 3, "prefix": "save\n\n\tself", "suffix": "", "completion": "\n\t\tsaveMetadata;\n\t\tsavePayload" }
1,625
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
saveMetadata fileReference isDirectory ifTrue: [ | ref | ref := fileReference / 'metadata.json'. ref ensureDelete. ref writeStreamDo: [ :stream | STONJSON put: self metadata onStream: stream ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "saveMetadata\n\n\tfileReference isDirectory ifTrue: [\n\t\t| ref |\n\t\tref := fileReference / 'metadata.json'.\n\t\tref ensureDelete.\n\t\tref writeStreamDo: [ :stream |\n\t\t\tSTONJSON put: self metadata", "suffix": " ]", "co...
1,626
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
saveMetadata fileReference isDirectory ifTrue: [ | ref | ref := fileReference / 'metadata.json'. ref ensureDelete. ref writeStreamDo: [ :stream | STONJSON put: self metadata onStream: stream ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "saveMetadata\n\n\tfileReference isDirectory ifTrue: [\n\t\t| ref |\n\t\tref := fileReference / 'metadata.json'.\n\t\tref ensureDelete.\n\t\tref writeStreamDo: [ :stream |\n\t\t\tSTONJSON", "suffix": "", "completion": " put: sel...
1,627
https://github.com/tomooda/HiDeHo
e6b28228c105436b5719e9f0de044bfe9a5f1d37
src/HiDeHo-Storage/THiDePersistency.trait.st
saveMetadata fileReference isDirectory ifTrue: [ | ref | ref := fileReference / 'metadata.json'. ref ensureDelete. ref writeStreamDo: [ :stream | STONJSON put: self metadata onStream: stream ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosureTest.class.st", "code": "TestCase subclass: #HiDeClosureTest\n\tinstanceVariableNames: 'item1 item2 closure subclosure'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Tests'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeClosu...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "saveMetadata\n\n\tfileReference isDirectory ifTrue: [\n\t\t| ref |\n\t\tref :=", "suffix": ".\n\t\tref ensureDelete.\n\t\tref writeStreamDo: [ :stream |\n\t\t\tSTONJSON put: self metadata onStream: stream ] ]", "completion": " fileR...
1,628
https://github.com/tomooda/HiDeHo
43c4777605d5f04193854ae08f67944f146fca5f
src/HiDeHo-Storage/HiDeStorage.class.st
basepathDo: aBlock ^ basepath ifNotNil: [ :ref | ref ensureCreateDirectory. aBlock cull: ref ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionary.class.st", "code": "OrderedDictionary subclass: #HiDeSyntaxDictionary\n\tuses: THiDeSyntaxTree\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDe...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 10, "prefix": "basepathDo: aBlock\n\n\t^ basepath ifNotNil: [", "suffix": "", "completion": " :ref |\n\t\t ref ensureCreateDirectory.\n\t\t aBlock cull: ref ]" }
1,629
https://github.com/tomooda/HiDeHo
43c4777605d5f04193854ae08f67944f146fca5f
src/HiDeHo-Storage/HiDeStorage.class.st
chronicleFileReferenceDo: aBlock ^ self basepathDo: [ :ref | aBlock cull: ((ref / self chronicleDirname) ensureCreateDirectory; yourself) ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionary.class.st", "code": "OrderedDictionary subclass: #HiDeSyntaxDictionary\n\tuses: THiDeSyntaxTree\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDe...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "chronicleFileReferenceDo: aBlock\n\n\t^ self basepathDo: [ :ref |\n\t\t aBlock cull: ((ref /", "suffix": "", "completion": " self chronicleDirname)\n\t\t\t\t ensureCreateDirectory;\n\t\t\t\t yourself) ]" }
1,630
https://github.com/tomooda/HiDeHo
43c4777605d5f04193854ae08f67944f146fca5f
src/HiDeHo-Storage/HiDeStorage.class.st
chronicleFileReferenceDo: aBlock ^ self basepathDo: [ :ref | aBlock cull: ((ref / self chronicleDirname) ensureCreateDirectory; yourself) ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionary.class.st", "code": "OrderedDictionary subclass: #HiDeSyntaxDictionary\n\tuses: THiDeSyntaxTree\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDe...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "chronicleFileReferenceDo: aBlock\n\n\t^ self basepathDo: [ :ref |\n\t\t aBlock cull: ((ref / self chronicleDirname", "suffix": " ]", "completion": ")\n\t\t\t\t ensureCreateDirectory;\n\t\t\t\t yourself)" }
1,631
https://github.com/tomooda/HiDeHo
43c4777605d5f04193854ae08f67944f146fca5f
src/HiDeHo-Storage/HiDeStorage.class.st
settingsFileReferenceDo: aBlock ^ self basepathDo: [ :ref | aBlock cull: ref / self settingsFilename ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionary.class.st", "code": "OrderedDictionary subclass: #HiDeSyntaxDictionary\n\tuses: THiDeSyntaxTree\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDe...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 10, "prefix": "settingsFileReferenceDo: aBlock\n\n\t^ self basepathDo: [", "suffix": "", "completion": " :ref | aBlock cull: ref / self settingsFilename ]" }
1,632
https://github.com/tomooda/HiDeHo
43c4777605d5f04193854ae08f67944f146fca5f
src/HiDeHo-Storage/HiDeStorage.class.st
settingsFileReferenceDo: aBlock ^ self basepathDo: [ :ref | aBlock cull: ref / self settingsFilename ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionary.class.st", "code": "OrderedDictionary subclass: #HiDeSyntaxDictionary\n\tuses: THiDeSyntaxTree\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDe...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "settingsFileReferenceDo: aBlock\n\n\t^ self basepathDo: [ :ref | aBlock", "suffix": " ]", "completion": " cull: ref / self settingsFilename" }
1,633
https://github.com/tomooda/HiDeHo
43c4777605d5f04193854ae08f67944f146fca5f
src/HiDeHo-Storage/THiDePersistency.trait.st
metadataFileReference ^ fileReference ifNotNil: [ fileReference / self metadataFilename ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionary.class.st", "code": "OrderedDictionary subclass: #HiDeSyntaxDictionary\n\tuses: THiDeSyntaxTree\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDe...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 5, "prefix": "metadataFileReference\n\n\t^ fileReference ifNotNil: [", "suffix": "", "completion": " fileReference / self metadataFilename ]" }
1,634
https://github.com/tomooda/HiDeHo
43c4777605d5f04193854ae08f67944f146fca5f
src/HiDeHo-Storage/THiDePersistency.trait.st
metadataFileReference ^ fileReference ifNotNil: [ fileReference / self metadataFilename ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionary.class.st", "code": "OrderedDictionary subclass: #HiDeSyntaxDictionary\n\tuses: THiDeSyntaxTree\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDe...
{ "fim_idx": 1, "mask_type": "binary_message", "n_masked_tokens": 3, "prefix": "metadataFileReference\n\n\t^ fileReference ifNotNil: [ fileReference", "suffix": " ]", "completion": " / self metadataFilename" }
1,635
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
loadSettings self settingsFileReferenceDo: [ :ref | ([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ] on: Exception do: [ :ex | ex return: nil ]) ifNotNil: [ :json | self settings: json ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "loadSettings\n\n\tself settingsFileReferenceDo: [ :ref |\n\t\t([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ]\n\t\t\t on: Exception\n\t\t\t do: [ :ex | ex return: nil ]) ifNotNil: [ :json |\n\t\t\tself settings:", ...
1,636
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
loadSettings self settingsFileReferenceDo: [ :ref | ([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ] on: Exception do: [ :ex | ex return: nil ]) ifNotNil: [ :json | self settings: json ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "loadSettings\n\n\tself settingsFileReferenceDo: [ :ref |\n\t\t([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ]\n\t\t\t on: Exception\n\t\t\t do: [ :ex | ex return: nil ]) ifNotNil: [", "suffix": " ]", "completio...
1,637
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
loadSettings self settingsFileReferenceDo: [ :ref | ([ ref readStreamDo: [ :stream | STONJSON fromStream: stream ] ] on: Exception do: [ :ex | ex return: nil ]) ifNotNil: [ :json | self settings: json ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "loadSettings\n\n\tself settingsFileReferenceDo: [ :ref |\n\t\t([ ref readStreamDo: [ :", "suffix": " ]\n\t\t\t on: Exception\n\t\t\t do: [ :ex | ex return: nil ]) ifNotNil: [ :json |\n\t\t\tself settings: json ] ]", "completion...
1,638
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
saveSettings self settingsFileReferenceDo: [ :ref | ref ensureDelete; writeStreamDo: [ :stream | STONJSON put: self settings onStreamPretty: stream ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "saveSettings\n\n\tself settingsFileReferenceDo: [ :ref |\n\t\tref\n\t\t\tensureDelete;\n\t\t\twriteStreamDo: [ :stream |\n\t\t\t\tSTONJSON put:", "suffix": "", "completion": " self settings onStreamPretty: stream ] ]" }
1,639
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
saveSettings self settingsFileReferenceDo: [ :ref | ref ensureDelete; writeStreamDo: [ :stream | STONJSON put: self settings onStreamPretty: stream ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 1, "mask_type": "cascade", "n_masked_tokens": 7, "prefix": "saveSettings\n\n\tself settingsFileReferenceDo: [ :ref |\n\t\tref\n\t\t\tensureDelete;\n\t\t\twriteStreamDo: [ :stream |", "suffix": " ]", "completion": "\n\t\t\t\tSTONJSON put: self settings onStreamPretty: stream ]" }
1,640
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
saveSettings self settingsFileReferenceDo: [ :ref | ref ensureDelete; writeStreamDo: [ :stream | STONJSON put: self settings onStreamPretty: stream ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "saveSettings\n\n\tself settingsFileReferenceDo: [ :ref |\n\t\tref\n\t\t\tensureDelete;\n\t\t\twriteStreamDo: [ :stream |\n\t\t\t\tSTONJSON put: self", "suffix": " ] ]", "completion": " settings onStreamPretty: stream" }
1,641
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
settings | json | json := OrderedDictionary new. chronicleMaxLifetime ifNotNil: [ json at: 'chronicle-max-lifetime' put: chronicleMaxLifetime ]. chronicleMaxSize ifNotNil: [ json at: 'chronicle-max-size' put: chronicleMaxSize ]. ^ json
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "settings\n\n\t| json |\n\tjson", "suffix": ".\n\tchronicleMaxLifetime ifNotNil: [\n\t\tjson at: 'chronicle-max-lifetime' put: chronicleMaxLifetime ].\n\tchronicleMaxSize ifNotNil: [\n\t\tjson at: 'chronicle-max-size' put: chronicleMax...
1,642
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
settings | json | json := OrderedDictionary new. chronicleMaxLifetime ifNotNil: [ json at: 'chronicle-max-lifetime' put: chronicleMaxLifetime ]. chronicleMaxSize ifNotNil: [ json at: 'chronicle-max-size' put: chronicleMaxSize ]. ^ json
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "settings\n\n\t| json |\n\tjson := OrderedDictionary new.\n\tchronicleMaxLifetime ifNotNil: [\n\t\tjson", "suffix": ".\n\tchronicleMaxSize ifNotNil: [\n\t\tjson at: 'chronicle-max-size' put: chronicleMaxSize ].\n\t^ json", "comp...
1,643
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
settings | json | json := OrderedDictionary new. chronicleMaxLifetime ifNotNil: [ json at: 'chronicle-max-lifetime' put: chronicleMaxLifetime ]. chronicleMaxSize ifNotNil: [ json at: 'chronicle-max-size' put: chronicleMaxSize ]. ^ json
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "settings\n\n\t| json |\n\tjson := OrderedDictionary new.\n\tchronicleMaxLifetime ifNotNil: [\n\t\tjson at: 'chronicle-max-lifetime' put: chronicleMaxLifetime ].\n\tchronicleMaxSize ifNotNil: [\n\t\tjson", "suffix": " ].\n\t^ json...
1,644
https://github.com/tomooda/HiDeHo
48ffb1458a4f8533c0a3162691afb5fd04c26a47
src/HiDeHo-Storage/HiDeStorage.class.st
settings: aDictionary aDictionary at: 'chronicle-max-lifetime' ifPresent: [ :value | chronicleMaxLifetime := value ]; at: 'chronicle-max-size' ifPresent: [ :value | chronicleMaxSize := value ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code": "HiDeNode subclass: #HiDeItem\n\tuses: THiDeItem\n\tinstanceVariableNames: 'value'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Node-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Node/HiDeItem.class.st", "code"...
{ "fim_idx": 0, "mask_type": "cascade", "n_masked_tokens": 5, "prefix": "settings: aDictionary\n\n\taDictionary\n\t\tat: 'chronicle-max-lifetime'\n\t\tifPresent: [ :value | chronicleMaxLifetime := value ];\n\t\tat: 'chronicle-max-size'\n\t\tifPresent: [ :value", "suffix": "", "completion": " | chronicleMaxS...
1,645
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
= anObject ^ self class = anObject class and: [ name = anObject name and: [ timestamp = anObject timestamp and: [ comment = anObject comment and: [ x = anObject x ] ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "= anObject\n\n\t^ self class = anObject class and: [\n\t\t name = anObject name and: [\n\t\t\t timestamp = anObject timestamp and: [\n\t\t\t\t comment = anObject comment and: [ x = anObject x ]", "suffix": "", "completion": " ] ] ]" ...
1,646
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
= anObject ^ self class = anObject class and: [ name = anObject name and: [ timestamp = anObject timestamp and: [ comment = anObject comment and: [ x = anObject x ] ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 4, "mask_type": "binary_message", "n_masked_tokens": 3, "prefix": "= anObject\n\n\t^ self class = anObject class and: [\n\t\t name = anObject name and: [\n\t\t\t timestamp = anObject timestamp and: [\n\t\t\t\t comment = anObject comment and: [ x", "suffix": " ] ] ] ]", "completion": " = anOb...
1,647
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
= anObject ^ self class = anObject class and: [ name = anObject name and: [ timestamp = anObject timestamp and: [ comment = anObject comment and: [ x = anObject x ] ] ] ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "= anObject\n\n\t^ self class = anObject class and: [\n\t\t name = anObject name and: [\n\t\t\t timestamp = anObject timestamp and: [\n\t\t\t\t comment = anObject comment and: [ x = anObject", "suffix": " ] ]", "completion": ...
1,648
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
hash ^ self class hash bitXor: (name hash bitXor: (timestamp hash bitXor: (comment hash bitXor: x hash)))
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 4, "prefix": "hash\n\n\t^ self class hash bitXor: (name hash bitXor:\n\t\t\t (timestamp hash bitXor: (comment hash bitXor: x", "suffix": "", "completion": " hash)))" }
1,649
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
loadPayload x := self payloadFileReference readStreamDo: [ :stream | STONJSON fromStream: stream ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 6, "prefix": "loadPayload\n\n\tx := self payloadFileReference readStreamDo: [ :", "suffix": "", "completion": "stream |\n\t\t STONJSON fromStream: stream ]" }
1,650
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
payloadFileReference ^ persistencyFileReference ifNotNil: [ persistencyFileReference / self payloadFilename ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 8, "prefix": "payloadFileReference\n\n\t^", "suffix": "", "completion": " persistencyFileReference ifNotNil: [ persistencyFileReference / self payloadFilename ]" }
1,651
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
payloadFileReference ^ persistencyFileReference ifNotNil: [ persistencyFileReference / self payloadFilename ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "binary_message", "n_masked_tokens": 3, "prefix": "payloadFileReference\n\n\t^ persistencyFileReference ifNotNil: [ persistencyFileReference", "suffix": " ]", "completion": " / self payloadFilename" }
1,652
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
savePayload self payloadFileReference ensureDelete; writeStreamDo: [ :stream | STONJSON put: x onStreamPretty: stream ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "cascade", "n_masked_tokens": 4, "prefix": "savePayload\n\n\tself payloadFileReference\n\t\tensureDelete;\n\t\twriteStreamDo: [ :stream | STONJSON put:", "suffix": "", "completion": " x onStreamPretty: stream ]" }
1,653
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDePersistencyObjectForTesting.class.st
savePayload self payloadFileReference ensureDelete; writeStreamDo: [ :stream | STONJSON put: x onStreamPretty: stream ]
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "savePayload\n\n\tself payloadFileReference\n\t\tensureDelete;\n\t\twriteStreamDo: [ :stream | STONJSON", "suffix": " ]", "completion": " put: x onStreamPretty: stream" }
1,654
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorage.class.st
temporaryDirectoryReferenceDo: aBlock | random | random := Random new. self basepathDo: [ :baseRef | | tmpBaseRef | tmpBaseRef := (baseRef / 'temporary') ensureCreateDirectory; yourself. 100 timesRepeat: [ | tmpRef | tmpRef := tmpBaseRef / (String streamContents: [ :str...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 5, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "temporaryDirectoryReferenceDo: aBlock\n\n\t| random |\n\trandom := Random new.\n\tself basepathDo: [ :baseRef |\n\t\t| tmpBaseRef |\n\t\ttmpBaseRef := (baseRef / 'temporary')\n\t\t\t ensureCreateDirectory;\n\t\t\t ...
1,655
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorage.class.st
temporaryDirectoryReferenceDo: aBlock | random | random := Random new. self basepathDo: [ :baseRef | | tmpBaseRef | tmpBaseRef := (baseRef / 'temporary') ensureCreateDirectory; yourself. 100 timesRepeat: [ | tmpRef | tmpRef := tmpBaseRef / (String streamContents: [ :str...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "temporaryDirectoryReferenceDo: aBlock\n\n\t| random |\n\trandom := Random new.\n\tself basepathDo: [ :baseRef |\n\t\t| tmpBaseRef |\n\t\ttmpBaseRef := (baseRef / 'temporary')\n\t\t\t ensureCreateDirectory;\n\t\t\t ...
1,656
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorage.class.st
temporaryDirectoryReferenceDo: aBlock | random | random := Random new. self basepathDo: [ :baseRef | | tmpBaseRef | tmpBaseRef := (baseRef / 'temporary') ensureCreateDirectory; yourself. 100 timesRepeat: [ | tmpRef | tmpRef := tmpBaseRef / (String streamContents: [ :str...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 6, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "temporaryDirectoryReferenceDo: aBlock\n\n\t| random |\n\trandom := Random new.\n\tself basepathDo: [ :baseRef |\n\t\t| tmpBaseRef |\n\t\ttmpBaseRef := (baseRef / 'temporary')\n\t\t\t ensureCreateDirectory;\n\t\t\t ...
1,657
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
setUp filesystem := FileSystem memory. root := filesystem root. storage := HiDeStorage new basepath: root
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tfilesystem", "suffix": ".\n\troot := filesystem root.\n\tstorage := HiDeStorage new basepath: root", "completion": " := FileSystem memory" }
1,658
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
setUp filesystem := FileSystem memory. root := filesystem root. storage := HiDeStorage new basepath: root
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot", "suffix": ".\n\tstorage := HiDeStorage new basepath: root", "completion": " := filesystem root" }
1,659
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
setUp filesystem := FileSystem memory. root := filesystem root. storage := HiDeStorage new basepath: root
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot := filesystem root.\n\tstorage :=", "suffix": "", "completion": " HiDeStorage new basepath: root" }
1,660
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testChronicleMaxDays storage chronicleMaxDays: nil. self assert: storage chronicleMaxDays isNil. storage chronicleMaxDays: 10. self assert: storage chronicleMaxDays equals: 10
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testChronicleMaxDays\n\n\tstorage chronicleMaxDays: nil.\n\tself assert:", "suffix": ".\n\tstorage chronicleMaxDays: 10.\n\tself assert: storage chronicleMaxDays equals: 10", "completion": " storage chronicleMaxDays isNil" }
1,661
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testChronicleMaxDays storage chronicleMaxDays: nil. self assert: storage chronicleMaxDays isNil. storage chronicleMaxDays: 10. self assert: storage chronicleMaxDays equals: 10
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testChronicleMaxDays\n\n\tstorage chronicleMaxDays: nil.\n\tself assert: storage chronicleMaxDays isNil.\n\tstorage chronicleMaxDays: 10.\n\tself assert:", "suffix": "", "completion": " storage chronicleMaxDays equals: 10" }
1,662
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testChronicleMaxSize storage chronicleMaxSize: nil. self assert: storage chronicleMaxSize isNil. storage chronicleMaxSize: 1000. self assert: storage chronicleMaxSize equals: 1000
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testChronicleMaxSize\n\n\tstorage chronicleMaxSize: nil.\n\tself", "suffix": ".\n\tstorage chronicleMaxSize: 1000.\n\tself assert: storage chronicleMaxSize equals: 1000", "completion": " assert: storage chronicleMaxSize isNil" ...
1,663
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testChronicleMaxSize storage chronicleMaxSize: nil. self assert: storage chronicleMaxSize isNil. storage chronicleMaxSize: 1000. self assert: storage chronicleMaxSize equals: 1000
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testChronicleMaxSize\n\n\tstorage chronicleMaxSize: nil.\n\tself assert: storage chronicleMaxSize isNil.\n\tstorage chronicleMaxSize: 1000.\n\tself assert:", "suffix": "", "completion": " storage chronicleMaxSize equals: 1000" ...
1,664
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testLoadSettings storage chronicleMaxDays: 10. storage chronicleMaxSize: 1000. storage saveSettings. storage chronicleMaxDays: nil. storage chronicleMaxSize: nil. storage loadSettings. self assert: storage chronicleMaxDays equals: 10. self assert: storage chronicleMaxSize equals: 1000
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testLoadSettings\n\n\tstorage chronicleMaxDays: 10.\n\tstorage chronicleMaxSize: 1000.\n\tstorage saveSettings.\n\tstorage chronicleMaxDays: nil.\n\tstorage chronicleMaxSize: nil.\n\tstorage loadSettings.\n\tself assert:", "suffi...
1,665
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testLoadSettings storage chronicleMaxDays: 10. storage chronicleMaxSize: 1000. storage saveSettings. storage chronicleMaxDays: nil. storage chronicleMaxSize: nil. storage loadSettings. self assert: storage chronicleMaxDays equals: 10. self assert: storage chronicleMaxSize equals: 1000
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testLoadSettings\n\n\tstorage chronicleMaxDays: 10.\n\tstorage chronicleMaxSize: 1000.\n\tstorage saveSettings.\n\tstorage chronicleMaxDays: nil.\n\tstorage chronicleMaxSize: nil.\n\tstorage loadSettings.\n\tself assert: storage ch...
1,666
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testSaveSettings | json | storage chronicleMaxDays: 10. storage chronicleMaxSize: 1000. storage saveSettings. json := storage settingsFileReferenceDo: [ :ref | STONJSON fromStream: ref readStream ]. self assert: (json at: 'chronicle-max-days') equals: 10. self assert: (json at: 'chronicle-max-size') e...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "testSaveSettings\n\n\t| json |\n\tstorage chronicleMaxDays: 10.\n\tstorage chronicleMaxSize: 1000.\n\tstorage saveSettings.\n\tjson := storage settingsFileReferenceDo: [ :ref |\n\t\t STONJSON fromStream: ref readStream ].\n\...
1,667
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testSaveSettings | json | storage chronicleMaxDays: 10. storage chronicleMaxSize: 1000. storage saveSettings. json := storage settingsFileReferenceDo: [ :ref | STONJSON fromStream: ref readStream ]. self assert: (json at: 'chronicle-max-days') equals: 10. self assert: (json at: 'chronicle-max-size') e...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testSaveSettings\n\n\t| json |\n\tstorage chronicleMaxDays: 10.\n\tstorage chronicleMaxSize: 1000.\n\tstorage saveSettings.\n\tjson := storage settingsFileReferenceDo: [ :ref |\n\t\t STONJSON fromStream: ref readStream ].\n\...
1,668
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testSaveSettings | json | storage chronicleMaxDays: 10. storage chronicleMaxSize: 1000. storage saveSettings. json := storage settingsFileReferenceDo: [ :ref | STONJSON fromStream: ref readStream ]. self assert: (json at: 'chronicle-max-days') equals: 10. self assert: (json at: 'chronicle-max-size') e...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 6, "prefix": "testSaveSettings\n\n\t| json |\n\tstorage chronicleMaxDays: 10.\n\tstorage chronicleMaxSize: 1000.\n\tstorage saveSettings.\n\tjson := storage settingsFileReferenceDo: [ :ref", "suffix": ".\n\tself assert: (json at: 'chronicle-max-day...
1,669
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testTemporaryDirectoryReferenceDo | x y tmpRef | x := 10. y := nil. tmpRef := nil. storage temporaryDirectoryReferenceDo: [ :ref | tmpRef := ref. (ref / 'test') writeStreamDo: [ :stream | STONJSON put: x onStreamPretty: stream ]; readStreamDo: [ :stream | y := STONJSON fromStream: stream ] ]. self asse...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testTemporaryDirectoryReferenceDo\n\n\t| x y tmpRef |\n\tx := 10.\n\ty := nil.\n\ttmpRef := nil.\n\tstorage temporaryDirectoryReferenceDo: [ :ref |\n\t\ttmpRef := ref.\n\t\t(ref / 'test')\n\t\t\twriteStreamDo: [ :stream | STONJSON ...
1,670
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testTemporaryDirectoryReferenceDo | x y tmpRef | x := 10. y := nil. tmpRef := nil. storage temporaryDirectoryReferenceDo: [ :ref | tmpRef := ref. (ref / 'test') writeStreamDo: [ :stream | STONJSON put: x onStreamPretty: stream ]; readStreamDo: [ :stream | y := STONJSON fromStream: stream ] ]. self asse...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 5, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testTemporaryDirectoryReferenceDo\n\n\t| x y tmpRef |\n\tx := 10.\n\ty := nil.\n\ttmpRef := nil.\n\tstorage temporaryDirectoryReferenceDo: [ :ref |\n\t\ttmpRef := ref.\n\t\t(ref / 'test')\n\t\t\twriteStreamDo: [ :stream | STONJSON ...
1,671
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/HiDeStorageTest.class.st
testTemporaryDirectoryReferenceDo | x y tmpRef | x := 10. y := nil. tmpRef := nil. storage temporaryDirectoryReferenceDo: [ :ref | tmpRef := ref. (ref / 'test') writeStreamDo: [ :stream | STONJSON put: x onStreamPretty: stream ]; readStreamDo: [ :stream | y := STONJSON fromStream: stream ] ]. self asse...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 9, "prefix": "testTemporaryDirectoryReferenceDo\n\n\t| x y tmpRef |\n\tx := 10.\n\ty := nil.\n\ttmpRef := nil.\n\tstorage temporaryDirectoryReferenceDo: [ :ref |\n\t\ttmpRef := ref.\n\t\t(ref / 'test')\n\t\t\twriteStreamDo: [ :stream | STONJSON ...
1,672
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
setUp filesystem := FileSystem memory. root := filesystem root. object := HiDePersistencyObjectForTesting new persistencyFileReference: root
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tfilesystem", "suffix": ".\n\troot := filesystem root.\n\tobject := HiDePersistencyObjectForTesting new\n\t\t persistencyFileReference: root", "completion": " := FileSystem memory" }
1,673
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
setUp filesystem := FileSystem memory. root := filesystem root. object := HiDePersistencyObjectForTesting new persistencyFileReference: root
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "assignment", "n_masked_tokens": 3, "prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot", "suffix": ".\n\tobject := HiDePersistencyObjectForTesting new\n\t\t persistencyFileReference: root", "completion": " := filesystem root" }
1,674
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
setUp filesystem := FileSystem memory. root := filesystem root. object := HiDePersistencyObjectForTesting new persistencyFileReference: root
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "assignment", "n_masked_tokens": 4, "prefix": "setUp\n\n\tfilesystem := FileSystem memory.\n\troot := filesystem root.\n\tobject :=", "suffix": "", "completion": " HiDePersistencyObjectForTesting new\n\t\t persistencyFileReference: root" }
1,675
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testLoad | copy | object name: 'test object'. object timestamp: DateAndTime now. object comment: 'test comment'. object x: 10. object save. copy := HiDePersistencyObjectForTesting new persistencyFileReference: root. copy load. self assert: copy metadata equals: object metadata. self assert: copy x ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testLoad\n\n\t| copy |\n\tobject name: 'test object'.\n\tobject", "suffix": ".\n\tobject comment: 'test comment'.\n\tobject x: 10.\n\tobject save.\n\tcopy := HiDePersistencyObjectForTesting new\n\t\t persistencyFileReferen...
1,676
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testLoad | copy | object name: 'test object'. object timestamp: DateAndTime now. object comment: 'test comment'. object x: 10. object save. copy := HiDePersistencyObjectForTesting new persistencyFileReference: root. copy load. self assert: copy metadata equals: object metadata. self assert: copy x ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testLoad\n\n\t| copy |\n\tobject name: 'test object'.\n\tobject timestamp: DateAndTime now.\n\tobject comment: 'test comment'.\n\tobject x: 10.\n\tobject save.\n\tcopy := HiDePersistencyObjectForTesting new\n\t\t persistency...
1,677
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testLoad | copy | object name: 'test object'. object timestamp: DateAndTime now. object comment: 'test comment'. object x: 10. object save. copy := HiDePersistencyObjectForTesting new persistencyFileReference: root. copy load. self assert: copy metadata equals: object metadata. self assert: copy x ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testLoad\n\n\t| copy |\n\tobject name: 'test object'.\n\tobject timestamp: DateAndTime now.\n\tobject comment: 'test comment'.\n\tobject x: 10.\n\tobject save.\n\tcopy := HiDePersistencyObjectForTesting new\n\t\t persistency...
1,678
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testLoadMetadata | now | object metadataFileReference writeStreamDo: [ :stream | STONJSON put: { } asDictionary onStreamPretty: stream ]. object loadMetadata. self assert: object name isNil. self assert: object timestamp notNil. self assert: object comment isNil. self assert: object x isNil. now := DateAndT...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testLoadMetadata\n\n\t| now |\n\tobject metadataFileReference writeStreamDo: [ :stream |\n\t\tSTONJSON put: { } asDictionary onStreamPretty: stream ].\n\tobject loadMetadata.\n\tself assert: object name isNil.\n\tself assert: obje...
1,679
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testLoadMetadata | now | object metadataFileReference writeStreamDo: [ :stream | STONJSON put: { } asDictionary onStreamPretty: stream ]. object loadMetadata. self assert: object name isNil. self assert: object timestamp notNil. self assert: object comment isNil. self assert: object x isNil. now := DateAndT...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 11, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testLoadMetadata\n\n\t| now |\n\tobject metadataFileReference writeStreamDo: [ :stream |\n\t\tSTONJSON put: { } asDictionary onStreamPretty: stream ].\n\tobject loadMetadata.\n\tself assert: object name isNil.\n\tself assert: obj...
1,680
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testLoadMetadata | now | object metadataFileReference writeStreamDo: [ :stream | STONJSON put: { } asDictionary onStreamPretty: stream ]. object loadMetadata. self assert: object name isNil. self assert: object timestamp notNil. self assert: object comment isNil. self assert: object x isNil. now := DateAndT...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 9, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testLoadMetadata\n\n\t| now |\n\tobject metadataFileReference writeStreamDo: [ :stream |\n\t\tSTONJSON put: { } asDictionary onStreamPretty: stream ].\n\tobject loadMetadata.\n\tself assert: object name isNil.\n\tself assert: obje...
1,681
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testPersistencyFileReference object persistencyFileReference: nil. self assert: object persistencyFileReference isNil. object persistencyFileReference: root. self assert: object persistencyFileReference equals: root
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testPersistencyFileReference\n\n\tobject persistencyFileReference: nil.\n\tself", "suffix": ".\n\tobject persistencyFileReference: root.\n\tself assert: object persistencyFileReference equals: root", "completion": " assert: obj...
1,682
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testPersistencyFileReference object persistencyFileReference: nil. self assert: object persistencyFileReference isNil. object persistencyFileReference: root. self assert: object persistencyFileReference equals: root
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "testPersistencyFileReference\n\n\tobject persistencyFileReference: nil.\n\tself assert: object persistencyFileReference isNil.\n\tobject persistencyFileReference: root.\n\tself", "suffix": "", "completion": " assert: object per...
1,683
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testSave object name: 'test object'. object timestamp: DateAndTime now. object comment: 'test comment'. object x: 10. object save. self assert: object metadataFileReference exists. self assert: object payloadFileReference exists. self assert: (STONJSON fromStream: object metadataFileReference readStream) ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 4, "prefix": "testSave\n\n\tobject name: 'test object'.\n\tobject timestamp: DateAndTime now.\n\tobject comment: 'test comment'.\n\tobject x: 10.\n\tobject save.\n\tself assert: object metadataFileReference exists.\n\tself assert: object payload...
1,684
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testSave object name: 'test object'. object timestamp: DateAndTime now. object comment: 'test comment'. object x: 10. object save. self assert: object metadataFileReference exists. self assert: object payloadFileReference exists. self assert: (STONJSON fromStream: object metadataFileReference readStream) ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 3, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "testSave\n\n\tobject name: 'test object'.\n\tobject timestamp: DateAndTime now.\n\tobject comment: 'test comment'.\n\tobject x: 10.\n\tobject save.\n\tself assert: object metadataFileReference exists.\n\tself assert: object payload...
1,685
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testSave object name: 'test object'. object timestamp: DateAndTime now. object comment: 'test comment'. object x: 10. object save. self assert: object metadataFileReference exists. self assert: object payloadFileReference exists. self assert: (STONJSON fromStream: object metadataFileReference readStream) ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testSave\n\n\tobject name: 'test object'.\n\tobject timestamp: DateAndTime now.\n\tobject comment: 'test comment'.\n\tobject x: 10.\n\tobject save.\n\tself assert: object metadataFileReference exists.\n\tself assert:", "suffix": ...
1,686
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testSaveMetadata | json | object saveMetadata. self assert: (root / object metadataFilename) exists. json := STONJSON fromStream: (root / object metadataFilename) readStream. self assert: json isDictionary. self assert: json keys asSet equals: { 'timestamp' } asSet. self assert: (json at: 'timestamp...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 9, "mask_type": "keyword_message", "n_masked_tokens": 10, "prefix": "testSaveMetadata\n\n\t| json |\n\tobject saveMetadata.\n\tself assert: (root / object metadataFilename) exists.\n\tjson := STONJSON fromStream:\n\t\t (root / object metadataFilename) readStream.\n\tself assert: json isDicti...
1,687
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testSaveMetadata | json | object saveMetadata. self assert: (root / object metadataFilename) exists. json := STONJSON fromStream: (root / object metadataFilename) readStream. self assert: json isDictionary. self assert: json keys asSet equals: { 'timestamp' } asSet. self assert: (json at: 'timestamp...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 8, "prefix": "testSaveMetadata\n\n\t| json |\n\tobject saveMetadata.\n\tself assert: (root / object metadataFilename) exists.\n\tjson := STONJSON fromStream:\n\t\t (root / object metadataFilename) readStream.\n\tself assert: json isDictio...
1,688
https://github.com/tomooda/HiDeHo
91492020ed39bfb57299cb2a7ed8734f72645f88
src/HiDeHo-Storage/THiDePersistencyTest.class.st
testSaveMetadata | json | object saveMetadata. self assert: (root / object metadataFilename) exists. json := STONJSON fromStream: (root / object metadataFilename) readStream. self assert: json isDictionary. self assert: json keys asSet equals: { 'timestamp' } asSet. self assert: (json at: 'timestamp...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testSaveMetadata\n\n\t| json |\n\tobject saveMetadata.\n\tself assert: (root / object metadataFilename) exists.\n\tjson := STONJSON fromStream:\n\t\t (root / object metadataFilename) readStream.\n\tself", "suffix": ".\n\ts...
1,689
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorage.class.st
ensureIdentity: aHiDePersistency aHiDePersistency hideIdentity ifNotNil: [ :id | ^ id ] ifNil: [ | timestamp random prefix | timestamp := aHiDePersistency hideTimestamp ifNil: [ DateAndTime now ]. random := Random new. prefix := String streamContents: [ :stream | timestamp year pr...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 13, "mask_type": "assignment", "n_masked_tokens": 9, "prefix": "ensureIdentity: aHiDePersistency\n\n\taHiDePersistency hideIdentity ifNotNil: [ :id | ^ id ] ifNil: [\n\t\t| timestamp random prefix |\n\t\ttimestamp := aHiDePersistency hideTimestamp ifNil: [\n\t\t\t DateAndTime now ].\n\t...
1,690
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorage.class.st
ensureIdentity: aHiDePersistency aHiDePersistency hideIdentity ifNotNil: [ :id | ^ id ] ifNil: [ | timestamp random prefix | timestamp := aHiDePersistency hideTimestamp ifNil: [ DateAndTime now ]. random := Random new. prefix := String streamContents: [ :stream | timestamp year pr...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 15, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "ensureIdentity: aHiDePersistency\n\n\taHiDePersistency hideIdentity ifNotNil: [ :id | ^ id ] ifNil: [\n\t\t| timestamp random prefix |\n\t\ttimestamp := aHiDePersistency hideTimestamp ifNil: [\n\t\t\t DateAndTime now ]...
1,691
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorage.class.st
ensureIdentity: aHiDePersistency aHiDePersistency hideIdentity ifNotNil: [ :id | ^ id ] ifNil: [ | timestamp random prefix | timestamp := aHiDePersistency hideTimestamp ifNil: [ DateAndTime now ]. random := Random new. prefix := String streamContents: [ :stream | timestamp year pr...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 10, "mask_type": "keyword_message", "n_masked_tokens": 5, "prefix": "ensureIdentity: aHiDePersistency\n\n\taHiDePersistency hideIdentity ifNotNil: [ :id | ^ id ] ifNil: [\n\t\t| timestamp random prefix |\n\t\ttimestamp := aHiDePersistency hideTimestamp ifNil: [\n\t\t\t DateAndTime now ]...
1,692
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorage.class.st
saveToChronicle: aHiDePersistency self ensureIdentity: aHiDePersistency chronicleReferenceDo: [ :chronicleReference | self temporaryDirectoryReferenceDo: [ :temporaryReference | aHiDePersistency hideSave: temporaryReference. temporaryReference fileSystem rename: temporaryReference resolve to:...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "keyword_message", "n_masked_tokens": 7, "prefix": "saveToChronicle: aHiDePersistency\n\n\tself\n\t\tensureIdentity: aHiDePersistency\n\t\tchronicleReferenceDo: [ :chronicleReference |\n\t\t\tself temporaryDirectoryReferenceDo: [ :temporaryReference |\n\t\t\t\taHiDePersistency hideS...
1,693
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorage.class.st
saveToChronicle: aHiDePersistency self ensureIdentity: aHiDePersistency chronicleReferenceDo: [ :chronicleReference | self temporaryDirectoryReferenceDo: [ :temporaryReference | aHiDePersistency hideSave: temporaryReference. temporaryReference fileSystem rename: temporaryReference resolve to:...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 1, "mask_type": "keyword_message", "n_masked_tokens": 6, "prefix": "saveToChronicle: aHiDePersistency\n\n\tself\n\t\tensureIdentity: aHiDePersistency\n\t\tchronicleReferenceDo: [ :chronicleReference |\n\t\t\tself temporaryDirectoryReferenceDo: [ :temporaryReference |\n\t\t\t\taHiDePersistency hideS...
1,694
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorage.class.st
saveToChronicle: aHiDePersistency self ensureIdentity: aHiDePersistency chronicleReferenceDo: [ :chronicleReference | self temporaryDirectoryReferenceDo: [ :temporaryReference | aHiDePersistency hideSave: temporaryReference. temporaryReference fileSystem rename: temporaryReference resolve to:...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "saveToChronicle: aHiDePersistency\n\n\tself\n\t\tensureIdentity: aHiDePersistency\n\t\tchronicleReferenceDo: [ :chronicleReference |\n\t\t\tself temporaryDirectoryReferenceDo: [ :temporaryReference |\n\t\t\t\taHiDePersistency hideS...
1,695
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorageTest.class.st
testEnsureIdentity | object id | object := HiDePersistencyObjectForTesting new. object hideMetadataAt: 'name' put: 'test name'. self assert: object hideIdentity isNil. id := storage ensureIdentity: object. self assert: object hideIdentity equals: id. self assert: (storage chronicleFileReferenceDo: [ :ref | ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 4, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testEnsureIdentity\n\n\t| object id |\n\tobject := HiDePersistencyObjectForTesting new.\n\tobject hideMetadataAt: 'name' put: 'test name'.\n\tself assert: object hideIdentity isNil.\n\tid := storage ensureIdentity: object.\n\tself ...
1,696
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorageTest.class.st
testEnsureIdentity | object id | object := HiDePersistencyObjectForTesting new. object hideMetadataAt: 'name' put: 'test name'. self assert: object hideIdentity isNil. id := storage ensureIdentity: object. self assert: object hideIdentity equals: id. self assert: (storage chronicleFileReferenceDo: [ :ref | ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 6, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testEnsureIdentity\n\n\t| object id |\n\tobject := HiDePersistencyObjectForTesting new.\n\tobject hideMetadataAt: 'name' put: 'test name'.\n\tself assert: object hideIdentity isNil.\n\tid := storage ensureIdentity: object.\n\tself ...
1,697
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/HiDeStorageTest.class.st
testEnsureIdentity | object id | object := HiDePersistencyObjectForTesting new. object hideMetadataAt: 'name' put: 'test name'. self assert: object hideIdentity isNil. id := storage ensureIdentity: object. self assert: object hideIdentity equals: id. self assert: (storage chronicleFileReferenceDo: [ :ref | ...
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 2, "mask_type": "keyword_message", "n_masked_tokens": 3, "prefix": "testEnsureIdentity\n\n\t| object id |\n\tobject := HiDePersistencyObjectForTesting new.\n\tobject hideMetadataAt: 'name' put: 'test name'.\n\tself assert:", "suffix": ".\n\tid := storage ensureIdentity: object.\n\tself assert: ob...
1,698
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/THiDePersistency.trait.st
hideIdentity ^ self hideMetadataAt: self hideIdentityKey
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "hideIdentity\n\n\t^ self", "suffix": "", "completion": " hideMetadataAt: self hideIdentityKey" }
1,699
https://github.com/tomooda/HiDeHo
03efd0552d5aa006228262496550fc5c88f4d236
src/HiDeHo-Storage/THiDePersistency.trait.st
hideIdentity: aString ^ self hideMetadataAt: self hideIdentityKey put: aString
[ { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Syntax/HiDeSyntaxDictionaryKeyNotFound.class.st", "code": "Exception subclass: #HiDeSyntaxDictionaryKeyNotFound\n\tinstanceVariableNames: 'key'\n\tclassVariableNames: ''\n\tpackage: 'HiDeHo-Syntax-Core'" }, { "filepath": "repo_clone/HiDeHo/src/HiDeHo-Synta...
{ "fim_idx": 0, "mask_type": "return", "n_masked_tokens": 3, "prefix": "hideIdentity: aString\n\n\t^ self hideMetadataAt: self", "suffix": "", "completion": " hideIdentityKey put: aString" }