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 268 | masking dict |
|---|---|---|---|---|---|---|
0 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter-Tests/CounterTest.class.st | testCounterDecrement
| c |
c := Counter new.
c count: 2.
c decrement decrement.
self assert: c count equals: 0 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": "TestCase subclass: #CounterTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MyCounter-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": ... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testCounterDecrement\n\n| c |\nc",
"suffix": ".\nc count: 2.\nc decrement decrement.\nself assert: c count equals: 0",
"completion": " := Counter new"
} |
1 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter-Tests/CounterTest.class.st | testCounterDecrement
| c |
c := Counter new.
c count: 2.
c decrement decrement.
self assert: c count equals: 0 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": "TestCase subclass: #CounterTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MyCounter-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": ... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testCounterDecrement\n\n| c |\nc := Counter new.\nc count: 2.\nc decrement decrement.\nself",
"suffix": "",
"completion": " assert: c count equals: 0"
} |
2 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter-Tests/CounterTest.class.st | testCounterIncrement
| c |
c := Counter new.
c count: 8.
c increment increment.
self assert: c count equals: 10 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": "TestCase subclass: #CounterTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MyCounter-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": ... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testCounterIncrement\n\n| c |\nc",
"suffix": ".\nc count: 8.\nc increment increment.\nself assert: c count equals: 10",
"completion": " := Counter new"
} |
3 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter-Tests/CounterTest.class.st | testCounterIncrement
| c |
c := Counter new.
c count: 8.
c increment increment.
self assert: c count equals: 10 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": "TestCase subclass: #CounterTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MyCounter-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": ... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testCounterIncrement\n\n| c |\nc := Counter new.\nc count: 8.\nc increment increment.\nself assert:",
"suffix": "",
"completion": " c count equals: 10"
} |
4 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter-Tests/CounterTest.class.st | testCounterSetAndRead
| c |
c := Counter new.
c count: 10.
self assert: c count equals: 10 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": "TestCase subclass: #CounterTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MyCounter-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": ... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testCounterSetAndRead\n\n| c |\nc",
"suffix": ".\nc count: 10.\nself assert: c count equals: 10",
"completion": " := Counter new"
} |
5 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter-Tests/CounterTest.class.st | testCounterSetAndRead
| c |
c := Counter new.
c count: 10.
self assert: c count equals: 10 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": "TestCase subclass: #CounterTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MyCounter-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": ... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testCounterSetAndRead\n\n| c |\nc := Counter new.\nc count: 10.\nself assert:",
"suffix": "",
"completion": " c count equals: 10"
} |
6 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter-Tests/CounterTest.class.st | testStartingAt5
| c |
c := Counter startingAt: 5.
self assert: c count equals: 5 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": "TestCase subclass: #CounterTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MyCounter-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": ... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testStartingAt5\n\n| c |\nc",
"suffix": ".\nself assert: c count equals: 5",
"completion": " := Counter startingAt: 5"
} |
7 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter-Tests/CounterTest.class.st | testStartingAt5
| c |
c := Counter startingAt: 5.
self assert: c count equals: 5 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": "TestCase subclass: #CounterTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'MyCounter-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter-Tests/CounterTest.class.st",
"code": ... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testStartingAt5\n\n| c |\nc := Counter startingAt: 5.\nself assert: c",
"suffix": "",
"completion": " count equals: 5"
} |
8 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter/Counter.class.st | startingAt: anInteger
^ self new count: anInteger | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter/Counter.class.st",
"code": "Object subclass: #Counter\n\tinstanceVariableNames: 'count'\n\tclassVariableNames: ''\n\tpackage: 'MyCounter'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter/Counter.class.st",
"code": "count"
},
{
"filep... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "startingAt: anInteger\n\t^ self",
"suffix": "",
"completion": " new count: anInteger"
} |
9 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter/Counter.class.st | decrement
self count: count - 1 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter/Counter.class.st",
"code": "Object subclass: #Counter\n\tinstanceVariableNames: 'count'\n\tclassVariableNames: ''\n\tpackage: 'MyCounter'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter/Counter.class.st",
"code": "startingAt: anInteger"
}... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "decrement\n\tself count:",
"suffix": "",
"completion": " count - 1"
} |
10 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter/Counter.class.st | increment
self count: count + 1 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter/Counter.class.st",
"code": "Object subclass: #Counter\n\tinstanceVariableNames: 'count'\n\tclassVariableNames: ''\n\tpackage: 'MyCounter'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter/Counter.class.st",
"code": "startingAt: anInteger"
}... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "increment\n\tself count:",
"suffix": "",
"completion": " count + 1"
} |
11 | https://github.com/matijakljajic/oxo-pharo | 0c7630a030ff30d1c19ab39be998b9c9506715eb | src/MyCounter/Counter.class.st | printOn: aStream
"Append a sequence of characters to aStream that identify the receiver."
super printOn: aStream.
aStream
nextPutAll: ' with count: ';
print: count | [
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter/Counter.class.st",
"code": "Object subclass: #Counter\n\tinstanceVariableNames: 'count'\n\tclassVariableNames: ''\n\tpackage: 'MyCounter'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyCounter/Counter.class.st",
"code": "startingAt: anInteger"
}... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 3,
"prefix": "printOn: aStream\n\t\"Append a sequence of characters to aStream that identify the receiver.\"\n\n\tsuper printOn: aStream.\n\taStream\n\t\tnextPutAll: ' with count: '",
"suffix": "",
"completion": ";\n\t\tprint: count"
} |
12 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | current
^ uniqueInstance ifNil: [ uniqueInstance := self new ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 8,
"prefix": "current\n\n\t^",
"suffix": "",
"completion": " uniqueInstance ifNil: [ uniqueInstance := self new ]"
} |
13 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | current
^ uniqueInstance ifNil: [ uniqueInstance := self new ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "current\n\n\t^ uniqueInstance ifNil: [ uniqueInstance",
"suffix": " ]",
"completion": " := self new"
} |
14 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | allCategories
^ (posts collect: [ :x | x category ]) asSet | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 9,
"prefix": "allCategories\n\n\t^ (posts collect:",
"suffix": "",
"completion": " [ :x | x category ]) asSet"
} |
15 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | allCategoriesWithSmthVisible
^ ((posts select: [ :x | x isVisible ]) collect: [ :x | x category ]) asSet | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 9,
"prefix": "allCategoriesWithSmthVisible\n\n\t^ ((posts select: [ :x | x isVisible ]) collect:",
"suffix": "",
"completion": " [ :x | x category ]) asSet"
} |
16 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | allPostsFromCategory: aCategory
^ posts select: [ :x | x category = aCategory ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "allPostsFromCategory: aCategory\n\n\t^ posts select: [ :x | x category",
"suffix": "",
"completion": " = aCategory ]"
} |
17 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | allPostsFromCategory: aCategory
^ posts select: [ :x | x category = aCategory ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "binary_message",
"n_masked_tokens": 3,
"prefix": "allPostsFromCategory: aCategory\n\n\t^ posts select: [ :x | x",
"suffix": " ]",
"completion": " category = aCategory"
} |
18 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | allVisiblePosts
^ posts select: [ :x | x isVisible ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 7,
"prefix": "allVisiblePosts\n\n\t^ posts select:",
"suffix": "",
"completion": " [ :x | x isVisible ]"
} |
19 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | allVisiblePostsFromCategory: aCategory
^ posts select: [ :x | x isVisible and: (x category = aCategory) ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 10,
"prefix": "allVisiblePostsFromCategory: aCategory\n\t\n\t^ posts select: [ :x |",
"suffix": "",
"completion": " x isVisible and: (x category = aCategory) ]"
} |
20 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | allVisiblePostsFromCategory: aCategory
^ posts select: [ :x | x isVisible and: (x category = aCategory) ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "allVisiblePostsFromCategory: aCategory\n\t\n\t^ posts select: [ :x | x isVisible and: (x category",
"suffix": " ]",
"completion": " = aCategory)"
} |
21 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | deleteCategory: aCategory
posts removeAllSuchThat: [ :x | x category = aCategory ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "deleteCategory: aCategory\n\n\tposts removeAllSuchThat: [ :",
"suffix": "",
"completion": "x | x category = aCategory ]"
} |
22 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | deleteCategory: aCategory
posts removeAllSuchThat: [ :x | x category = aCategory ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "binary_message",
"n_masked_tokens": 3,
"prefix": "deleteCategory: aCategory\n\n\tposts removeAllSuchThat: [ :x | x",
"suffix": " ]",
"completion": " category = aCategory"
} |
23 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | initialize
super initialize.
posts := OrderedCollection new | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\tposts",
"suffix": "",
"completion": " := OrderedCollection new"
} |
24 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | removeAllPosts
posts := OrderedCollection new | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "removeAllPosts\n\n\tposts",
"suffix": "",
"completion": " := OrderedCollection new"
} |
25 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | renameCategory: oldCategory to: newCategory
posts do: [ :x | x category = oldCategory ifTrue: [ x category: newCategory ] ]. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "renameCategory: oldCategory to: newCategory\n\t\n\tposts do: [ :x | x category = oldCategory ifTrue: [",
"suffix": ".",
"completion": " x category: newCategory ] ]"
} |
26 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | renameCategory: oldCategory to: newCategory
posts do: [ :x | x category = oldCategory ifTrue: [ x category: newCategory ] ]. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "renameCategory: oldCategory to: newCategory\n\t\n\tposts do: [ :x | x category",
"suffix": " ].",
"completion": " = oldCategory ifTrue: [ x category: newCategory ]"
} |
27 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlog.class.st | unclassifiedBlogPosts
^ posts select: [ :x | x isUnclassified ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 7,
"prefix": "unclassifiedBlogPosts\n\n\t^ posts select:",
"suffix": "",
"completion": " [ :x | x isUnclassified ]"
} |
28 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | setUp
blog := MyTBBlog current.
blog removeAllPosts.
first := MyTBPost title: 'firstTitle' text: 'firstText' category: 'firstCategory'.
blog addPost: first.
post := (MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory') makeVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n\n\tblog",
"suffix": ".\n\tblog removeAllPosts.\n\t\n\tfirst := MyTBPost title: 'firstTitle' text: 'firstText' category: 'firstCategory'.\n\tblog addPost: first.\n\t\n\tpost := (MyTBPost title: 'testTitle' text: 'testText' cate... |
29 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | setUp
blog := MyTBBlog current.
blog removeAllPosts.
first := MyTBPost title: 'firstTitle' text: 'firstText' category: 'firstCategory'.
blog addPost: first.
post := (MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory') makeVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 7,
"prefix": "setUp\n\n\tblog := MyTBBlog current.\n\tblog removeAllPosts.\n\t\n\tfirst :=",
"suffix": ".\n\tblog addPost: first.\n\t\n\tpost := (MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory') makeVisible",
"completion": "... |
30 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | setUp
blog := MyTBBlog current.
blog removeAllPosts.
first := MyTBPost title: 'firstTitle' text: 'firstText' category: 'firstCategory'.
blog addPost: first.
post := (MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory') makeVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 8,
"prefix": "setUp\n\n\tblog := MyTBBlog current.\n\tblog removeAllPosts.\n\t\n\tfirst := MyTBPost title: 'firstTitle' text: 'firstText' category: 'firstCategory'.\n\tblog addPost: first.\n\t\n\tpost := (MyTBPost",
"suffix": "",
"completion": " ... |
31 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAddPost
blog addPost: post.
self assert: blog size equals: 2 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testAddPost\n\n\tblog addPost: post.\n\tself",
"suffix": "",
"completion": " assert: blog size equals: 2"
} |
32 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllCategories
self assert: blog allCategories size equals: 1.
blog addPost: post.
self assert: blog allCategories size equals: 2 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testAllCategories\n\n\tself assert:",
"suffix": ".\n\tblog addPost: post.\n\tself assert: blog allCategories size equals: 2",
"completion": " blog allCategories size equals: 1"
} |
33 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllCategories
self assert: blog allCategories size equals: 1.
blog addPost: post.
self assert: blog allCategories size equals: 2 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testAllCategories\n\n\tself assert: blog allCategories size equals: 1.\n\tblog addPost: post.\n\tself assert: blog",
"suffix": "",
"completion": " allCategories size equals: 2"
} |
34 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllCategoriesWithSmthVisible
self assert: blog allCategoriesWithSmthVisible size equals: 0.
blog addPost: post.
self assert: blog allCategoriesWithSmthVisible size equals: 1 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testAllCategoriesWithSmthVisible\n\n\tself assert: blog",
"suffix": ".\n\tblog addPost: post.\n\tself assert: blog allCategoriesWithSmthVisible size equals: 1",
"completion": " allCategoriesWithSmthVisible size equals: 0"
} |
35 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllCategoriesWithSmthVisible
self assert: blog allCategoriesWithSmthVisible size equals: 0.
blog addPost: post.
self assert: blog allCategoriesWithSmthVisible size equals: 1 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testAllCategoriesWithSmthVisible\n\n\tself assert: blog allCategoriesWithSmthVisible size equals: 0.\n\tblog addPost: post.\n\tself assert: blog allCategoriesWithSmthVisible",
"suffix": "",
"completion": " size equals: 1"
} |
36 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllPosts
blog addPost: post.
self assert: blog allPosts size equals: 2. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testAllPosts\n\n\tblog addPost: post.\n\tself assert:",
"suffix": ".",
"completion": " blog allPosts size equals: 2"
} |
37 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllPostsFromCategory
self assert: (blog allPostsFromCategory: 'firstCategory') size equals: 1. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testAllPostsFromCategory\n\n\tself assert: (blog",
"suffix": ".",
"completion": " allPostsFromCategory: 'firstCategory') size equals: 1"
} |
38 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllVisiblePosts
self assert: blog allVisiblePosts size equals: 0.
blog addPost: post.
self assert: blog allVisiblePosts size equals: 1 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testAllVisiblePosts\n\n\tself assert: blog allVisiblePosts",
"suffix": ".\n\tblog addPost: post.\n\tself assert: blog allVisiblePosts size equals: 1",
"completion": " size equals: 0"
} |
39 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllVisiblePosts
self assert: blog allVisiblePosts size equals: 0.
blog addPost: post.
self assert: blog allVisiblePosts size equals: 1 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testAllVisiblePosts\n\n\tself assert: blog allVisiblePosts size equals: 0.\n\tblog addPost: post.\n\tself assert: blog",
"suffix": "",
"completion": " allVisiblePosts size equals: 1"
} |
40 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllVisiblePostsFromCategory
self assert: (blog allVisiblePostsFromCategory: 'testCategory') size equals: 0.
blog addPost: post.
self assert: (blog allVisiblePostsFromCategory: 'testCategory') size equals: 1. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testAllVisiblePostsFromCategory\n\n\tself assert: (blog allVisiblePostsFromCategory: 'testCategory')",
"suffix": ".\n\tblog addPost: post.\n\tself assert: (blog allVisiblePostsFromCategory: 'testCategory') size equals: 1.",
"co... |
41 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testAllVisiblePostsFromCategory
self assert: (blog allVisiblePostsFromCategory: 'testCategory') size equals: 0.
blog addPost: post.
self assert: (blog allVisiblePostsFromCategory: 'testCategory') size equals: 1. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testAllVisiblePostsFromCategory\n\n\tself assert: (blog allVisiblePostsFromCategory: 'testCategory') size equals: 0.\n\tblog addPost: post.\n\tself assert: (blog allVisiblePostsFromCategory: 'testCategory')",
"suffix": ".",
"co... |
42 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testDeleteCategory
blog deleteCategory: 'firstCategory'.
self assert: (blog allPostsFromCategory: 'firstCategory') size equals: 0 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testDeleteCategory\n\n\tblog deleteCategory: 'firstCategory'.\n\tself assert: (blog",
"suffix": "",
"completion": " allPostsFromCategory: 'firstCategory') size equals: 0"
} |
43 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testRemoveAllPosts
blog removeAllPosts.
self assert: blog size equals: 0. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testRemoveAllPosts\n\n\tblog removeAllPosts.\n\tself",
"suffix": ".",
"completion": " assert: blog size equals: 0"
} |
44 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testRenameCategoryTo
| count |
count := (blog allPostsFromCategory: 'firstCategory') size.
blog renameCategory: 'firstCategory' to: '1stCategory'.
self assert: (blog allPostsFromCategory: 'firstCategory') size equals: 0.
self assert: (blog allPostsFromCategory: '1stCategory') size equals: count. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testRenameCategoryTo\n\n\t| count |\n\tcount := (blog allPostsFromCategory: 'firstCategory') size.\n\tblog",
"suffix": ".\n\tself assert: (blog allPostsFromCategory: 'firstCategory') size equals: 0.\n\tself assert: (blog allPosts... |
45 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testRenameCategoryTo
| count |
count := (blog allPostsFromCategory: 'firstCategory') size.
blog renameCategory: 'firstCategory' to: '1stCategory'.
self assert: (blog allPostsFromCategory: 'firstCategory') size equals: 0.
self assert: (blog allPostsFromCategory: '1stCategory') size equals: count. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testRenameCategoryTo\n\n\t| count |\n\tcount := (blog allPostsFromCategory: 'firstCategory') size.\n\tblog renameCategory: 'firstCategory' to: '1stCategory'.\n\tself assert: (blog allPostsFromCategory: 'firstCategory') size equals:... |
46 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testRenameCategoryTo
| count |
count := (blog allPostsFromCategory: 'firstCategory') size.
blog renameCategory: 'firstCategory' to: '1stCategory'.
self assert: (blog allPostsFromCategory: 'firstCategory') size equals: 0.
self assert: (blog allPostsFromCategory: '1stCategory') size equals: count. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "testRenameCategoryTo\n\n\t| count |\n\tcount := (blog allPostsFromCategory: 'firstCategory') size.\n\tblog renameCategory: 'firstCategory' to: '1stCategory'.\n\tself",
"suffix": ".\n\tself assert: (blog allPostsFromCategory: '1st... |
47 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testSize
self assert: blog size equals: 1. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testSize\n\n\tself assert:",
"suffix": ".",
"completion": " blog size equals: 1"
} |
48 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBBlogTest.class.st | testUnclassifiedBlogPosts
self assert: blog unclassifiedBlogPosts size equals: 0 | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testUnclassifiedBlogPosts\n\n\tself assert:",
"suffix": "",
"completion": " blog unclassifiedBlogPosts size equals: 0"
} |
49 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPost.class.st | title: aTitle text: aText
^ self new
title: aTitle;
text: aText;
yourself | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "title: aTitle text: aText\n\n\t^ self new\n\t\ttitle: aTitle;\n\t\ttext:",
"suffix": "",
"completion": " aText;\n\t\tyourself"
} |
50 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPost.class.st | title: aTitle text: aText category: aCategory
^ self new
title: aTitle;
text: aText;
category: aCategory;
yourself | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 8,
"prefix": "title: aTitle text: aText category: aCategory\n\n\t^ self new\n\t\ttitle: aTitle",
"suffix": "",
"completion": ";\n\t\ttext: aText;\n\t\tcategory: aCategory;\n\t\tyourself"
} |
51 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPost.class.st | initialize
super initialize.
self date: Date today.
self makeInvisible.
self category: self class unclassifiedTag | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\tself",
"suffix": ".\n\tself makeInvisible.\n\tself category: self class unclassifiedTag",
"completion": " date: Date today"
} |
52 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPost.class.st | initialize
super initialize.
self date: Date today.
self makeInvisible.
self category: self class unclassifiedTag | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "initialize\n\n\tsuper initialize.\n\tself date: Date today.\n\tself makeInvisible.\n\tself",
"suffix": "",
"completion": " category: self class unclassifiedTag"
} |
53 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPost.class.st | isUnclassified
^ self category = self class unclassifiedTag | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "isUnclassified\n\n\t^ self",
"suffix": "",
"completion": " category = self class unclassifiedTag"
} |
54 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testPostIsCreatedCorrectly
| post |
post := MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory'.
self assert: post title equals: 'testTitle'.
self assert: post text equals: 'testText'.
self assert: post category equals: 'testCategory'.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testPostIsCreatedCorrectly\n\n\t| post |\n\t\n\tpost := MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory'.\n\t\n\tself assert: post",
"suffix": ".\n\tself assert: post text equals: 'testText'.\n\tself assert: ... |
55 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testPostIsCreatedCorrectly
| post |
post := MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory'.
self assert: post title equals: 'testTitle'.
self assert: post text equals: 'testText'.
self assert: post category equals: 'testCategory'.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testPostIsCreatedCorrectly\n\n\t| post |\n\t\n\tpost := MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory'.\n\t\n\tself assert: post title equals: 'testTitle'.\n\tself assert: post text equals: 'testText'.\n\tsel... |
56 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testPostIsCreatedCorrectly
| post |
post := MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory'.
self assert: post title equals: 'testTitle'.
self assert: post text equals: 'testText'.
self assert: post category equals: 'testCategory'.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testPostIsCreatedCorrectly\n\n\t| post |\n\t\n\tpost := MyTBPost title: 'testTitle' text: 'testText' category: 'testCategory'.\n\t\n\tself assert: post title equals: 'testTitle'.\n\tself",
"suffix": ".\n\tself assert: post catego... |
57 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testPostIsInitializedCorrectly
| post |
post := MyTBPost new.
self assert: post isUnclassified.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testPostIsInitializedCorrectly\n\t\n\t| post |\n\t\n\tpost",
"suffix": ".\n\t\n\tself assert: post isUnclassified.\n\tself deny: post isVisible",
"completion": " := MyTBPost new"
} |
58 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testPostIsInitializedCorrectly
| post |
post := MyTBPost new.
self assert: post isUnclassified.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testPostIsInitializedCorrectly\n\t\n\t| post |\n\t\n\tpost := MyTBPost new.\n\t\n\tself",
"suffix": ".\n\tself deny: post isVisible",
"completion": " assert: post isUnclassified"
} |
59 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testPostIsInitializedCorrectly
| post |
post := MyTBPost new.
self assert: post isUnclassified.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testPostIsInitializedCorrectly\n\t\n\t| post |\n\t\n\tpost := MyTBPost new.\n\t\n\tself assert: post isUnclassified.\n\tself",
"suffix": "",
"completion": " deny: post isVisible"
} |
60 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testWithoutCategoryIsUnclassified
| post |
post := MyTBPost title: 'testTitle' text: 'testText'.
self assert: post title equals: 'testTitle'.
self assert: post text equals: 'testText'.
self assert: post isUnclassified.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testWithoutCategoryIsUnclassified\n\n\t| post |\n\t\n\tpost := MyTBPost title: 'testTitle' text: 'testText'.\n\t\n\tself assert: post title equals: 'testTitle'.\n\tself assert: post",
"suffix": ".\n\tself assert: post isUnclassif... |
61 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testWithoutCategoryIsUnclassified
| post |
post := MyTBPost title: 'testTitle' text: 'testText'.
self assert: post title equals: 'testTitle'.
self assert: post text equals: 'testText'.
self assert: post isUnclassified.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testWithoutCategoryIsUnclassified\n\n\t| post |\n\t\n\tpost := MyTBPost title: 'testTitle' text: 'testText'.\n\t\n\tself assert: post title equals: 'testTitle'.\n\tself assert: post text equals: 'testText'.\n\tself",
"suffix": ".... |
62 | https://github.com/matijakljajic/oxo-pharo | d6e083aa870da8eb292a72ee61783c819813cf98 | src/MyTinyBlog/MyTBPostTest.class.st | testWithoutCategoryIsUnclassified
| post |
post := MyTBPost title: 'testTitle' text: 'testText'.
self assert: post title equals: 'testTitle'.
self assert: post text equals: 'testText'.
self assert: post isUnclassified.
self deny: post isVisible | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testWithoutCategoryIsUnclassified\n\n\t| post |\n\t\n\tpost := MyTBPost title: 'testTitle' text: 'testText'.\n\t\n\tself assert: post title equals: 'testTitle'.\n\tself assert: post text equals: 'testText'.\n\tself assert: post isU... |
63 | https://github.com/matijakljajic/oxo-pharo | cabf09e0c200716ad95163d6a4de69868ad4b48b | src/MyTinyBlog/MyTBBlogTest.class.st | setUp
super setUp.
prevRepo := VORepository current.
VORepository setRepository: VOMemoryRepository new.
blog := MyTBBlog current.
blog removeAllPosts.
first := MyTBPost title: 'firstTitle' text: 'firstText' category: 'firstCategory'.
blog addPost: first.
post := (MyTBPost title: 'testTitle' text... | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "setUp\n \n\tsuper setUp.\n\n\tprevRepo",
"suffix": ".\n\tVORepository setRepository: VOMemoryRepository new.\n\n \tblog := MyTBBlog current.\n \tblog removeAllPosts.\n \t\n \tfirst := MyTBPost title: 'firstTitle' text: 'firstText' cat... |
64 | https://github.com/matijakljajic/oxo-pharo | cabf09e0c200716ad95163d6a4de69868ad4b48b | src/MyTinyBlog/MyTBBlogTest.class.st | setUp
super setUp.
prevRepo := VORepository current.
VORepository setRepository: VOMemoryRepository new.
blog := MyTBBlog current.
blog removeAllPosts.
first := MyTBPost title: 'firstTitle' text: 'firstText' category: 'firstCategory'.
blog addPost: first.
post := (MyTBPost title: 'testTitle' text... | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "setUp\n \n\tsuper setUp.\n\n\tprevRepo := VORepository current.\n\tVORepository",
"suffix": ".\n\n \tblog := MyTBBlog current.\n \tblog removeAllPosts.\n \t\n \tfirst := MyTBPost title: 'firstTitle' text: 'firstText' category: 'f... |
65 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBAppRootComponent.class.st | initialize
| app |
app := WAAdmin register: self asApplicationAt: 'TinyBlog'.
app
addLibrary: JQDeploymentLibrary;
addLibrary: JQUiDeploymentLibrary;
addLibrary: TBSDeploymentLibrary | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "initialize\n\n\t| app |\n\tapp",
"suffix": ".\n\tapp\n\t\taddLibrary: JQDeploymentLibrary;\n\t\taddLibrary: JQUiDeploymentLibrary;\n\t\taddLibrary: TBSDeploymentLibrary",
"completion": " := WAAdmin register: self asApplicationAt: 'T... |
66 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBAppRootComponent.class.st | initialize
| app |
app := WAAdmin register: self asApplicationAt: 'TinyBlog'.
app
addLibrary: JQDeploymentLibrary;
addLibrary: JQUiDeploymentLibrary;
addLibrary: TBSDeploymentLibrary | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 1,
"mask_type": "cascade",
"n_masked_tokens": 4,
"prefix": "initialize\n\n\t| app |\n\tapp := WAAdmin register: self asApplicationAt: 'TinyBlog'.\n\tapp\n\t\taddLibrary: JQDeploymentLibrary;\n\t\taddLibrary:",
"suffix": "",
"completion": " JQUiDeploymentLibrary;\n\t\taddLibrary: TBSDeploymentLi... |
67 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBAppRootComponent.class.st | children
^ { main } | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "children\n\n\t^",
"suffix": "",
"completion": " { main }"
} |
68 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBAppRootComponent.class.st | initialize
super initialize.
main := MyTBPostListComponent new. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\tmain",
"suffix": ".",
"completion": " := MyTBPostListComponent new"
} |
69 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBAppRootComponent.class.st | updateRoot: htmlRoot
super updateRoot: htmlRoot.
htmlRoot beHtml5.
htmlRoot
title: MyTBBlog current name | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "updateRoot: htmlRoot\n\tsuper updateRoot: htmlRoot.\n\thtmlRoot beHtml5.\n\thtmlRoot",
"suffix": "",
"completion": "\n\t\ttitle: MyTBBlog current name"
} |
70 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBAppScreenComponent.class.st | children
^ { header } | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "children\n\n\t^",
"suffix": "",
"completion": " { header }"
} |
71 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBAppScreenComponent.class.st | initialize
super initialize.
header := self createHeaderComponent. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\theader",
"suffix": ".",
"completion": " := self createHeaderComponent"
} |
72 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBBlog.class.st | name
^ name ifNil: [ 'TinyBlog' ] ifNotNil: [ :arg | name ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 6,
"prefix": "name\n\t^ name ifNil: [ 'TinyBlog' ] ifNotNil:",
"suffix": "",
"completion": " [ :arg | name ]"
} |
73 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBHeaderComponent.class.st | renderBrandOn: html
html tbsNavbarBrand url: self application url; with: MyTBBlog current name | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 5,
"prefix": "renderBrandOn: html\n\n\thtml tbsNavbarBrand url: self application url",
"suffix": "",
"completion": "; with: MyTBBlog current name"
} |
74 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBHeaderComponent.class.st | renderContentOn: html
html tbsNavbar beDefault; with: [ html tbsContainer: [ self renderBrandOn: html ] ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 5,
"prefix": "renderContentOn: html\n\n\thtml tbsNavbar beDefault; with: [ html tbsContainer: [",
"suffix": "",
"completion": " self renderBrandOn: html ] ]"
} |
75 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBHeaderComponent.class.st | renderContentOn: html
html tbsNavbar beDefault; with: [ html tbsContainer: [ self renderBrandOn: html ] ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "renderContentOn: html\n\n\thtml tbsNavbar beDefault; with: [ html tbsContainer: [",
"suffix": " ]",
"completion": " self renderBrandOn: html ]"
} |
76 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBPostComponent.class.st | with: aPost
^ self new post: aPost. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "with: aPost\n\t^ self",
"suffix": ".",
"completion": " new post: aPost"
} |
77 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBPostComponent.class.st | initialize
super initialize.
post := MyTBPost new | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "initialize\n\n\tsuper initialize.\n\tpost",
"suffix": "",
"completion": " := MyTBPost new"
} |
78 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBPostComponent.class.st | renderContentOn: html
html heading level: 2; with: self title.
html heading level: 6; with: self date.
html text: self text | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 4,
"prefix": "renderContentOn: html\n\n\thtml heading level: 2",
"suffix": ".\n\thtml heading level: 6; with: self date.\n\thtml text: self text",
"completion": "; with: self title"
} |
79 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBPostComponent.class.st | renderContentOn: html
html heading level: 2; with: self title.
html heading level: 6; with: self date.
html text: self text | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 1,
"mask_type": "cascade",
"n_masked_tokens": 7,
"prefix": "renderContentOn: html\n\n\thtml heading level: 2; with: self title.\n\thtml",
"suffix": ".\n\thtml text: self text",
"completion": " heading level: 6; with: self date"
} |
80 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBPostComponent.class.st | renderContentOn: html
html heading level: 2; with: self title.
html heading level: 6; with: self date.
html text: self text | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "renderContentOn: html\n\n\thtml heading level: 2; with: self title.\n\thtml heading level: 6; with: self date.\n\thtml",
"suffix": "",
"completion": " text: self text"
} |
81 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBPostListComponent.class.st | renderContentOn: html
super renderContentOn: html.
html tbsContainer: [
self blog allVisiblePosts do: [
:x | html render: (MyTBPostComponent with: x) ] ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "renderContentOn: html\n\n\tsuper renderContentOn: html.\n\thtml tbsContainer: [ \n\t\tself blog allVisiblePosts do: [ \n\t\t\t:x |",
"suffix": "",
"completion": " html render: (MyTBPostComponent with: x) ] ]"
} |
82 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBPostListComponent.class.st | renderContentOn: html
super renderContentOn: html.
html tbsContainer: [
self blog allVisiblePosts do: [
:x | html render: (MyTBPostComponent with: x) ] ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "renderContentOn: html\n\n\tsuper renderContentOn: html.\n\thtml tbsContainer: [ \n\t\tself blog allVisiblePosts do: [ \n\t\t\t:x | html render:",
"suffix": " ]",
"completion": " (MyTBPostComponent with: x) ]"
} |
83 | https://github.com/matijakljajic/oxo-pharo | 5fbcf6f01d6c64cc1c960119d372c59e7e24edeb | src/MyTinyBlog/MyTBPostListComponent.class.st | renderContentOn: html
super renderContentOn: html.
html tbsContainer: [
self blog allVisiblePosts do: [
:x | html render: (MyTBPostComponent with: x) ] ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "renderContentOn: html\n\n\tsuper renderContentOn: html.\n\thtml tbsContainer: [ \n\t\tself blog allVisiblePosts do: [ \n\t\t\t:x | html render: (MyTBPostComponent",
"suffix": " ] ]",
"completion": " with: x)"
} |
84 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBCategoriesComponent.class.st | categories: categories postsList: aMyTBScreen
^ self new categories: categories; postsList: aMyTBScreen | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 5,
"prefix": "categories: categories postsList: aMyTBScreen\n\n\t^ self new",
"suffix": "",
"completion": " categories: categories; postsList: aMyTBScreen"
} |
85 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBCategoriesComponent.class.st | categories: aCollection
categories := aCollection asSortedCollection | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "categories: aCollection\n\tcategories",
"suffix": "",
"completion": " := aCollection asSortedCollection"
} |
86 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBCategoriesComponent.class.st | renderCategoryLinkOn: html with: aCategory
html tbsLinkifyListGroupItem
class: 'active' if: aCategory = self postsList currentCategory;
callback: [ self selectCategory: aCategory ];
with: aCategory | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "cascade",
"n_masked_tokens": 7,
"prefix": "renderCategoryLinkOn: html with: aCategory\n\n\thtml tbsLinkifyListGroupItem\n\t\tclass: 'active' if: aCategory = self postsList currentCategory;\n\t\tcallback: [",
"suffix": "",
"completion": " self selectCategory: aCategory ];\n\t\tw... |
87 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBCategoriesComponent.class.st | renderContentOn: html
html tbsListGroup:
[ html tbsListGroupItem
with: [ html strong: 'Categories' ].
html tbsLinkifyListGroupItem
class: 'active' if: nil = self postsList currentCategory;
callback: [ self selectCategory: nil ];
with: 'All'.
categories do: [ :cat | self renderCategoryLinkO... | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "renderContentOn: html\n\n\thtml tbsListGroup: \n\t\t[ html tbsListGroupItem \n\t\t\twith: [ html strong: 'Categories' ].\n\t\t\thtml tbsLinkifyListGroupItem\n\t\t\t\t\tclass: 'active' if: nil = self postsList currentCategory;\n\t\t... |
88 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBCategoriesComponent.class.st | renderContentOn: html
html tbsListGroup:
[ html tbsListGroupItem
with: [ html strong: 'Categories' ].
html tbsLinkifyListGroupItem
class: 'active' if: nil = self postsList currentCategory;
callback: [ self selectCategory: nil ];
with: 'All'.
categories do: [ :cat | self renderCategoryLinkO... | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "renderContentOn: html\n\n\thtml tbsListGroup: \n\t\t[ html tbsListGroupItem \n\t\t\twith: [ html strong: 'Categories' ].\n\t\t\thtml tbsLinkifyListGroupItem\n\t\t\t\t\tclass: 'active' if: nil = self postsList currentCategory;\n\t\t... |
89 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBCategoriesComponent.class.st | renderContentOn: html
html tbsListGroup:
[ html tbsListGroupItem
with: [ html strong: 'Categories' ].
html tbsLinkifyListGroupItem
class: 'active' if: nil = self postsList currentCategory;
callback: [ self selectCategory: nil ];
with: 'All'.
categories do: [ :cat | self renderCategoryLinkO... | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "renderContentOn: html\n\n\thtml tbsListGroup: \n\t\t[ html tbsListGroupItem \n\t\t\twith: [ html strong: 'Categories' ].\n\t\t\thtml tbsLinkifyListGroupItem\n\t\t\t\t\tclass: 'active' if: nil = self postsList currentCategory;\n\t\t... |
90 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBPostListComponent.class.st | categoriesComponent
^ MyTBCategoriesComponent categories: self blog allCategories postsList: self | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 7,
"prefix": "categoriesComponent\n\n\t^",
"suffix": "",
"completion": " MyTBCategoriesComponent categories: self blog allCategories postsList: self"
} |
91 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBPostListComponent.class.st | postComponentFor: aPost
^ MyTBPostComponent new post: aPost | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "postComponentFor: aPost\n\n\t^ MyTBPostComponent",
"suffix": "",
"completion": " new post: aPost"
} |
92 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBPostListComponent.class.st | readSelectedPosts
^ self currentCategory
ifNil: [ self blog allVisiblePosts ]
ifNotNil: [ :arg | self blog allVisiblePostsFromCategory: currentCategory ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 8,
"prefix": "readSelectedPosts\n\n\t^ self currentCategory\n\t\tifNil: [ self blog allVisiblePosts ]\n\t\tifNotNil: [",
"suffix": "",
"completion": " :arg | self blog allVisiblePostsFromCategory: currentCategory ]"
} |
93 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBPostListComponent.class.st | readSelectedPosts
^ self currentCategory
ifNil: [ self blog allVisiblePosts ]
ifNotNil: [ :arg | self blog allVisiblePostsFromCategory: currentCategory ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "readSelectedPosts\n\n\t^ self currentCategory\n\t\tifNil: [ self blog allVisiblePosts ]\n\t\tifNotNil: [ :arg | self",
"suffix": " ]",
"completion": " blog allVisiblePostsFromCategory: currentCategory"
} |
94 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBPostListComponent.class.st | renderCategoriesOn: html
^ html render: self categoriesComponent | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "renderCategoriesOn: html\n\n\t^",
"suffix": "",
"completion": " html render: self categoriesComponent"
} |
95 | https://github.com/matijakljajic/oxo-pharo | 890f6a0a592c2a0b8e5840e9438456657fcfe7ea | src/MyTinyBlog/MyTBPostListComponent.class.st | renderCategoryColumnOn: html
^ html tbsColumn
extraSmallSize: 12;
smallSize: 3;
mediumSize: 4;
with: [ self renderCategoriesOn: html ] | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 6,
"prefix": "renderCategoryColumnOn: html\n\n\t^ html tbsColumn\n\t\textraSmallSize: 12;\n\t\tsmallSize: 3;\n\t\tmediumSize: 4;",
"suffix": "",
"completion": "\n\t\twith: [ self renderCategoriesOn: html ]"
} |
96 | https://github.com/matijakljajic/oxo-pharo | aae4f642cf0dc1a3a71fdaf190f88863381770e2 | src/MyTinyBlog/MyTBAdminComponent.class.st | children
^ super children copyWith: self report | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "children\n\n ^ super children",
"suffix": "",
"completion": " copyWith: self report"
} |
97 | https://github.com/matijakljajic/oxo-pharo | aae4f642cf0dc1a3a71fdaf190f88863381770e2 | src/MyTinyBlog/MyTBAdminComponent.class.st | initialize
super initialize.
self report: (MyTBPostReport from: self blog) | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "initialize\n\n\tsuper initialize.\n\tself report: (MyTBPostReport",
"suffix": "",
"completion": " from: self blog)"
} |
98 | https://github.com/matijakljajic/oxo-pharo | aae4f642cf0dc1a3a71fdaf190f88863381770e2 | src/MyTinyBlog/MyTBBlog.class.st | removeBlogPost: aPost
posts remove: aPost ifAbsent: [ ].
self save. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "removeBlogPost: aPost\n\t\n\tposts",
"suffix": ".\n\tself save.",
"completion": " remove: aPost ifAbsent: [ ]"
} |
99 | https://github.com/matijakljajic/oxo-pharo | aae4f642cf0dc1a3a71fdaf190f88863381770e2 | src/MyTinyBlog/MyTBBlog.class.st | removePost: aPost
posts remove: aPost ifAbsent: [ ].
self save. | [
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class.st",
"code": "TestCase subclass: #MyTBBlogTest\n\tinstanceVariableNames: 'blog post first prevRepo'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-Tests'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlogTest.class... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "removePost: aPost\n\t\n\tposts remove: aPost",
"suffix": ".\n\tself save.",
"completion": " ifAbsent: [ ]"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.