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 |
|---|---|---|---|---|---|---|
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/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": "decrement\n\tself count: c... | {
"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/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": "decrement\n\tself count: c... | {
"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/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": "decrement\n\tself count: c... | {
"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/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": "decrement\n\tself count: c... | {
"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/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": "decrement\n\tself count: c... | {
"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/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": "decrement\n\tself count: c... | {
"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/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": "decrement\n\tself count: c... | {
"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/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": "decrement\n\tself count: c... | {
"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": "increment\n\tself count: c... | {
"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": "increment\n\tself count: c... | {
"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": "decrement\n\tself count: c... | {
"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": "decrement\n\tself count: c... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "unclassifiedBlog... | {
"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/MyTBBlog.class.st",
"code": "Object subclass: #MyTBBlog\n\tinstanceVariableNames: 'posts'\n\tclassVariableNames: ''\n\tpackage: 'MyTinyBlog-App'"
},
{
"filepath": "repo_clone/oxo-pharo/src/MyTinyBlog/MyTBBlog.class.st",
"code": "size\n\n\t^ post... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 7,
"prefix": "unclassifiedBlogPosts\n\n\t^ posts select:",
"suffix": "",
"completion": " [ :x | x isUnclassified ]"
} |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7