task_id int64 0 2.26k | repository stringclasses 18
values | commit_hash stringclasses 241
values | filepath stringclasses 237
values | original_method stringlengths 21 4.65k | context listlengths 1 68 | masking dict |
|---|---|---|---|---|---|---|
300 | https://github.com/tinchodias/Ficus | 36f04cf2ffb4dfca2f533faa41879d8d072140a7 | Ficus2-Editor/FiFixedObjectEditor.class.st | doesNotUnderstand: aMessage
aMessage arguments size = 1
ifFalse: [ ^ super doesNotUnderstand: aMessage ].
result := result resultOf:
(result
editAt: aMessage selector allButLast
equal: aMessage arguments first). | [
{
"filepath": "Ficus2-Editor/FiEditorTest.class.st",
"code": "TestCase subclass: #FiEditorTest\n\tinstanceVariableNames: 'aShot'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Editor-Tests'"
},
{
"filepath": "Ficus2-Editor/FiFixedObject.extension.st",
"code": "Object subclass: #FiFixedObject\n\ti... | {
"fim_idx": 1,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "doesNotUnderstand: aMessage\n\n\taMessage arguments size = 1 \n\t\tifFalse: [ ^",
"suffix": " ].\n\n\tresult := result resultOf: \n\t\t(result\n\t\t\teditAt: aMessage selector allButLast\n\t\t\tequal: aMessage arguments first).",
"compl... |
301 | https://github.com/tinchodias/Ficus | 36f04cf2ffb4dfca2f533faa41879d8d072140a7 | Ficus2-Editor/FiFixedObjectEditor.class.st | doesNotUnderstand: aMessage
aMessage arguments size = 1
ifFalse: [ ^ super doesNotUnderstand: aMessage ].
result := result resultOf:
(result
editAt: aMessage selector allButLast
equal: aMessage arguments first). | [
{
"filepath": "Ficus2-Editor/FiEditorTest.class.st",
"code": "TestCase subclass: #FiEditorTest\n\tinstanceVariableNames: 'aShot'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Editor-Tests'"
},
{
"filepath": "Ficus2-Editor/FiFixedObject.extension.st",
"code": "Object subclass: #FiFixedObject\n\ti... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 6,
"prefix": "doesNotUnderstand: aMessage\n\n\taMessage arguments size = 1 \n\t\tifFalse: [ ^ super doesNotUnderstand: aMessage ].\n\n\tresult := result resultOf: \n\t\t(result\n\t\t\teditAt: aMessage selector",
"suffix": ".",
"completion": " all... |
302 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMerger.class.st | base: aBaseShot target: aTargetShot ancestor: anAncestorShot
^ self basicNew
initializeWithBase: aBaseShot target: aTargetShot ancestor: anAncestorShot;
yourself | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 8,
"prefix": "base: aBaseShot target: aTargetShot ancestor: anAncestorShot\n\t\n\t^ self basicNew",
"suffix": "",
"completion": " \n\t\tinitializeWithBase: aBaseShot target: aTargetShot ancestor: anAncestorShot;\n\t\tyourself"
} |
303 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMerger.class.st | result
| baseDiff targetDiff targetPlusBase basePlusTarget |
baseDiff := base changeFrom: ancestor.
targetDiff := target changeFrom: ancestor.
targetPlusBase := target resultOf: baseDiff edit.
basePlusTarget := base resultOf: targetDiff edit.
targetPlusBase = basePlusTarget ifFalse: [ self shouldBeImplement... | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "result\n\t\n\t| baseDiff targetDiff targetPlusBase basePlusTarget |\n\tbaseDiff := base changeFrom: ancestor.\n\ttargetDiff := target changeFrom: ancestor.\n\t\n\ttargetPlusBase := target resultOf: baseDiff edit.\n\tbasePlusTarget",
"... |
304 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMerger.class.st | result
| baseDiff targetDiff targetPlusBase basePlusTarget |
baseDiff := base changeFrom: ancestor.
targetDiff := target changeFrom: ancestor.
targetPlusBase := target resultOf: baseDiff edit.
basePlusTarget := base resultOf: targetDiff edit.
targetPlusBase = basePlusTarget ifFalse: [ self shouldBeImplement... | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "result\n\t\n\t| baseDiff targetDiff targetPlusBase basePlusTarget |\n\tbaseDiff :=",
"suffix": ".\n\ttargetDiff := target changeFrom: ancestor.\n\t\n\ttargetPlusBase := target resultOf: baseDiff edit.\n\tbasePlusTarget := base resultO... |
305 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMerger.class.st | result
| baseDiff targetDiff targetPlusBase basePlusTarget |
baseDiff := base changeFrom: ancestor.
targetDiff := target changeFrom: ancestor.
targetPlusBase := target resultOf: baseDiff edit.
basePlusTarget := base resultOf: targetDiff edit.
targetPlusBase = basePlusTarget ifFalse: [ self shouldBeImplement... | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "result\n\t\n\t| baseDiff targetDiff targetPlusBase basePlusTarget |\n\tbaseDiff := base changeFrom: ancestor.\n\ttargetDiff := target changeFrom: ancestor.\n\t\n\ttargetPlusBase := target resultOf: baseDiff edit.\n\tbasePlusTarget ... |
306 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | assertMergeBase: baseShot withTarget: targetShot andAncestor: ancestor equals: expectedResult conflicts: expectedConflicts
| merger |
merger :=
FiThreeWayMerger
base: baseShot
target: targetShot
ancestor: ancestor.
self assert: merger result equals: expectedResult.
self assert: merger conflicts equals... | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "assertMergeBase: baseShot withTarget: targetShot andAncestor: ancestor equals: expectedResult conflicts: expectedConflicts\n\n\t| merger |\n\tmerger := \n\t\tFiThreeWayMerger\n\t\t\tbase:",
"suffix": ".\n\n\tself assert: merger result... |
307 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | assertMergeBase: baseShot withTarget: targetShot andAncestor: ancestor equals: expectedResult conflicts: expectedConflicts
| merger |
merger :=
FiThreeWayMerger
base: baseShot
target: targetShot
ancestor: ancestor.
self assert: merger result equals: expectedResult.
self assert: merger conflicts equals... | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "assertMergeBase: baseShot withTarget: targetShot andAncestor: ancestor equals: expectedResult conflicts: expectedConflicts\n\n\t| merger |\n\tmerger := \n\t\tFiThreeWayMerger\n\t\t\tbase: baseShot\n\t\t\ttarget: targetShot\n\t\t\ta... |
308 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | assertMergeBase: baseShot withTarget: targetShot andAncestor: ancestor equals: expectedResult conflicts: expectedConflicts
| merger |
merger :=
FiThreeWayMerger
base: baseShot
target: targetShot
ancestor: ancestor.
self assert: merger result equals: expectedResult.
self assert: merger conflicts equals... | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "assertMergeBase: baseShot withTarget: targetShot andAncestor: ancestor equals: expectedResult conflicts: expectedConflicts\n\n\t| merger |\n\tmerger := \n\t\tFiThreeWayMerger\n\t\t\tbase: baseShot\n\t\t\ttarget: targetShot\n\t\t\ta... |
309 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test01AdditiveConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
self
assertMergeBase: {a1. b1} asFiSet
withTarget: {a1. c1} asFiSet
andAncestor: {a1} asFiSet
equals: {a1. b1. c1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "test01AdditiveConflictlessMerge\n\n\ta1 := FiChef nickname: #A.\n\tb1",
"suffix": ".\n\tc1 := FiChef nickname: #C.\n\n\tself\n\t\tassertMergeBase: {a1. b1} asFiSet\n\t\twithTarget: {a1. c1} asFiSet\n\t\tandAncestor: {a1} asFiSet\n\t\t... |
310 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test01AdditiveConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
self
assertMergeBase: {a1. b1} asFiSet
withTarget: {a1. c1} asFiSet
andAncestor: {a1} asFiSet
equals: {a1. b1. c1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "test01AdditiveConflictlessMerge\n\n\ta1 := FiChef nickname: #A.\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\n\tself\n\t\tassertMergeBase: {a1. b1} asFiSet\n\t\twithTarget: {a1. c1} asFiSet\n\t\tandAncestor: {a1} a... |
311 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test01AdditiveConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
self
assertMergeBase: {a1. b1} asFiSet
withTarget: {a1. c1} asFiSet
andAncestor: {a1} asFiSet
equals: {a1. b1. c1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "test01AdditiveConflictlessMerge\n\n\ta1",
"suffix": ".\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\n\tself\n\t\tassertMergeBase: {a1. b1} asFiSet\n\t\twithTarget: {a1. c1} asFiSet\n\t\tandAncestor: {a1} asFiSet\n\t\t... |
312 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test02SimultaneousRemove
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
self
assertMergeBase: {a1} asFiSet
withTarget: {a1} asFiSet
andAncestor: {a1. b1} asFiSet
equals: {a1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "test02SimultaneousRemove\n\n\ta1 := FiChef nickname: #A.\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\n\tself\n\t\tassertMergeBase: {a1} asFiSet\n\t\twithTarget: {a1} asFiSet\n\t\tandAncestor: {a1. b1} asFiSet",
... |
313 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test02SimultaneousRemove
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
self
assertMergeBase: {a1} asFiSet
withTarget: {a1} asFiSet
andAncestor: {a1. b1} asFiSet
equals: {a1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "test02SimultaneousRemove\n\n\ta1 := FiChef nickname: #A.\n\tb1 :=",
"suffix": ".\n\tc1 := FiChef nickname: #C.\n\n\tself\n\t\tassertMergeBase: {a1} asFiSet\n\t\twithTarget: {a1} asFiSet\n\t\tandAncestor: {a1. b1} asFiSet\n\t\tequals: ... |
314 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test02SimultaneousRemove
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
self
assertMergeBase: {a1} asFiSet
withTarget: {a1} asFiSet
andAncestor: {a1. b1} asFiSet
equals: {a1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "test02SimultaneousRemove\n\n\ta1",
"suffix": ".\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\n\tself\n\t\tassertMergeBase: {a1} asFiSet\n\t\twithTarget: {a1} asFiSet\n\t\tandAncestor: {a1. b1} asFiSet\n\t\tequals: {a1... |
315 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test03SubtractiveConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
self
assertMergeBase: {a1. b1} asFiSet
withTarget: {} asFiSet
andAncestor: {a1} asFiSet
equals: {b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "test03SubtractiveConflictlessMerge\n\n\ta1 :=",
"suffix": ".\n\tb1 := FiChef nickname: #B.\n\n\tself\n\t\tassertMergeBase: {a1. b1} asFiSet\n\t\twithTarget: {} asFiSet\n\t\tandAncestor: {a1} asFiSet\n\t\tequals: {b1} asFiSet\n\t\tconf... |
316 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test03SubtractiveConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
self
assertMergeBase: {a1. b1} asFiSet
withTarget: {} asFiSet
andAncestor: {a1} asFiSet
equals: {b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "test03SubtractiveConflictlessMerge\n\n\ta1 := FiChef nickname: #A.\n\tb1",
"suffix": ".\n\n\tself\n\t\tassertMergeBase: {a1. b1} asFiSet\n\t\twithTarget: {} asFiSet\n\t\tandAncestor: {a1} asFiSet\n\t\tequals: {b1} asFiSet\n\t\tconflic... |
317 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test03SubtractiveConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
self
assertMergeBase: {a1. b1} asFiSet
withTarget: {} asFiSet
andAncestor: {a1} asFiSet
equals: {b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "test03SubtractiveConflictlessMerge\n\n\ta1 := FiChef nickname: #A.\n\tb1 := FiChef nickname: #B.\n\n\tself\n\t\tassertMergeBase: {a1. b1} asFiSet\n\t\twithTarget: {} asFiSet\n\t\tandAncestor: {a1}",
"suffix": "",
"completion": ... |
318 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test04IdenticalModification
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
a2 := a1 editor shortBio: '42'; result.
self
assertMergeBase: {a2. b1} asFiSet
withTarget: {a2. b1} asFiSet
andAncestor: {a1. b1} asFiSet
equals: {a2. b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "test04IdenticalModification\n\n\ta1 :=",
"suffix": ".\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\ta2 := a1 editor shortBio: '42'; result.\n\n\tself\n\t\tassertMergeBase: {a2. b1} asFiSet\n\t\twithTarget: {a2. b1} as... |
319 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test04IdenticalModification
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
a2 := a1 editor shortBio: '42'; result.
self
assertMergeBase: {a2. b1} asFiSet
withTarget: {a2. b1} asFiSet
andAncestor: {a1. b1} asFiSet
equals: {a2. b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 5,
"prefix": "test04IdenticalModification\n\n\ta1 := FiChef nickname: #A.\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\ta2 := a1",
"suffix": ".\n\n\tself\n\t\tassertMergeBase: {a2. b1} asFiSet\n\t\twithTarget: {a2. b1} asFiSet\n\t\... |
320 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test04IdenticalModification
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
a2 := a1 editor shortBio: '42'; result.
self
assertMergeBase: {a2. b1} asFiSet
withTarget: {a2. b1} asFiSet
andAncestor: {a1. b1} asFiSet
equals: {a2. b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "test04IdenticalModification\n\n\ta1 := FiChef nickname: #A.\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\ta2 := a1 editor shortBio: '42'; result.\n\n\tself\n\t\tassertMergeBase: {a2. b1} asFiSet\n\t\twithTarget: {... |
321 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test05ComplexConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
a2 := a1 editor shortBio: '42'; result.
self
assertMergeBase: {a1. b1. d1} asFiSet
withTarget: {a2. c1} asFiSet
andAncestor: {a1. c1. d1} asFiSet
equals: {a2. b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "test05ComplexConflictlessMerge\n\n\ta1 := FiChef nickname: #A.\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\ta2 := a1 editor shortBio:",
"suffix": ".\n\n\tself\n\t\tassertMergeBase: {a1. b1. d1} asFiSet\n\t\twithTarge... |
322 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test05ComplexConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
a2 := a1 editor shortBio: '42'; result.
self
assertMergeBase: {a1. b1. d1} asFiSet
withTarget: {a2. c1} asFiSet
andAncestor: {a1. c1. d1} asFiSet
equals: {a2. b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "test05ComplexConflictlessMerge\n\n\ta1 := FiChef nickname: #A.\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\ta2 := a1 editor shortBio: '42'; result.\n\n\tself\n\t\tassertMergeBase: {a1. b1. d1} asFiSet\n\t\twithTar... |
323 | https://github.com/tinchodias/Ficus | a2fd375650ec58f40f2895bbacf1ef6e0991e006 | Ficus2-Merge/FiThreeWayMergerTest.class.st | test05ComplexConflictlessMerge
a1 := FiChef nickname: #A.
b1 := FiChef nickname: #B.
c1 := FiChef nickname: #C.
a2 := a1 editor shortBio: '42'; result.
self
assertMergeBase: {a1. b1. d1} asFiSet
withTarget: {a2. c1} asFiSet
andAncestor: {a1. c1. d1} asFiSet
equals: {a2. b1} asFiSet
conflicts: #() | [
{
"filepath": "Ficus2-Merge/FiThreeWayMerger.class.st",
"code": "Object subclass: #FiThreeWayMerger\n\tinstanceVariableNames: 'base target ancestor'\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Merge'"
},
{
"filepath": "Ficus2-Merge/FiThreeWayMergerTest.class.st",
"code": "TestCase subclass: #F... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "test05ComplexConflictlessMerge\n\n\ta1 :=",
"suffix": ".\n\tb1 := FiChef nickname: #B.\n\tc1 := FiChef nickname: #C.\n\ta2 := a1 editor shortBio: '42'; result.\n\n\tself\n\t\tassertMergeBase: {a1. b1. d1} asFiSet\n\t\twithTarget: {a2.... |
324 | https://github.com/tinchodias/Ficus | 3dd647137d57d3656a5ab6361fdfde2c3d00c877 | src/Ficus2-Core/FiFixedObject.class.st | inspectionTree: aBuilder
<inspectorPresentationOrder: 1 title: 'Steps and Values'>
^ aBuilder newTable
items: self stepsAndValues asArray sorted;
addColumn: (SpStringTableColumn title: 'Step' evaluated: #key);
addColumn: (SpStringTableColumn title: 'Value' evaluated: #value);
yourself | [
{
"filepath": "src/Ficus2-Core/FiFixedObject.class.st",
"code": "FiObject subclass: #FiFixedObject\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Core-Model'"
},
{
"filepath": "src/Ficus2-Core/FiSet.class.st",
"code": "FiObject variableSubclass: #FiSet\n\tinstanceVari... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 10,
"prefix": "inspectionTree: aBuilder\n\t<inspectorPresentationOrder: 1 title: 'Steps and Values'>\n\n\t^ aBuilder newTable\n\t\t items: self stepsAndValues asArray sorted;\n\t\t addColumn: (SpStringTableColumn title: 'Step' evaluated: #key);",
"su... |
325 | https://github.com/tinchodias/Ficus | 3dd647137d57d3656a5ab6361fdfde2c3d00c877 | src/Ficus2-Core/FiSet.class.st | inspectionTree: aBuilder
<inspectorPresentationOrder: 1 title: 'Values'>
^ self asArray inspectionItems: aBuilder | [
{
"filepath": "src/Ficus2-Core/FiFixedObject.class.st",
"code": "FiObject subclass: #FiFixedObject\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'Ficus2-Core-Model'"
},
{
"filepath": "src/Ficus2-Core/FiSet.class.st",
"code": "FiObject variableSubclass: #FiSet\n\tinstanceVari... | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 4,
"prefix": "inspectionTree: aBuilder\n\t<inspectorPresentationOrder: 1 title: 'Values'>\n\n\t^",
"suffix": "",
"completion": " self asArray inspectionItems: aBuilder"
} |
326 | https://github.com/tinchodias/Yrupe | cc04fd90d05c7347a63fc257bc56cee5e60dc08f | src/BaselineOfYrupe/BaselineOfYrupe.class.st | baseline: spec
<baseline>
spec for: #common do: [ spec package: #Yrupe ] | [
{
"filepath": "src/BaselineOfYrupe/BaselineOfYrupe.class.st",
"code": "BaselineOf subclass: #BaselineOfYrupe\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'BaselineOfYrupe'"
}
] | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "baseline: spec\n\t<baseline>\n\n\tspec for: #common do: [",
"suffix": "",
"completion": " spec package: #Yrupe ]"
} |
327 | https://github.com/Gabriel-Darbord/pharo-pcre2 | dc19a6da4af1aabdb1d6af5e69a0aec04c880448 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCoolStuff
"Some cool stuff that can be done with PCRE"
| regex |
"recursive pattern"
regex := '{((?>[^{}]+|(?R))*)}' asPCRegex.
self
assert: (regex findAll: '{1, {2, {3}}} {4, 5}') asArray
equals: { '{1, {2, {3}}}'. '{4, 5}' } | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testCoolStuff\n\t\"Some cool stuff that can be done with PCRE\"\n\n\t| regex |\n\t\"recursive pattern\"\n\tregex",
"suffix": ".\n\tself\n\t\tassert: (regex findAll: '{1, {2, {3}}} {4, 5}') asArray\n\t\tequals: { '{1, {2, {3}}}'. '{4, ... |
328 | https://github.com/Gabriel-Darbord/pharo-pcre2 | dc19a6da4af1aabdb1d6af5e69a0aec04c880448 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCoolStuff
"Some cool stuff that can be done with PCRE"
| regex |
"recursive pattern"
regex := '{((?>[^{}]+|(?R))*)}' asPCRegex.
self
assert: (regex findAll: '{1, {2, {3}}} {4, 5}') asArray
equals: { '{1, {2, {3}}}'. '{4, 5}' } | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testCoolStuff\n\t\"Some cool stuff that can be done with PCRE\"\n\n\t| regex |\n\t\"recursive pattern\"\n\tregex := '{((?>[^{}]+|(?R))*)}' asPCRegex.\n\tself\n\t\tassert: (regex findAll: '{1, {2, {3}}} {4, 5}') asArray\n\t\tequals:... |
329 | https://github.com/Gabriel-Darbord/pharo-pcre2 | dc19a6da4af1aabdb1d6af5e69a0aec04c880448 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopyTranslatingMatchesUsing
| regex |
regex := 'a' asPCRegex.
self
assert: (regex copy: '' translatingMatchesUsing: [ :match | '' ])
equals: ''.
self
assert: (regex copy: 'aaa' translatingMatchesUsing: [ :match | '' ])
equals: ''.
self
assert:
(regex copy: 'aaa' translatingMatchesUsing: [ :match |... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testCopyTranslatingMatchesUsing\n\n\t| regex |\n\tregex := 'a' asPCRegex.\n\tself\n\t\tassert: (regex copy: '' translatingMatchesUsing: [ :match | '' ])\n\t\tequals: ''.\n\tself\n\t\tassert: (regex copy: 'aaa' translatingMatchesUsi... |
330 | https://github.com/Gabriel-Darbord/pharo-pcre2 | dc19a6da4af1aabdb1d6af5e69a0aec04c880448 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopyTranslatingMatchesUsing
| regex |
regex := 'a' asPCRegex.
self
assert: (regex copy: '' translatingMatchesUsing: [ :match | '' ])
equals: ''.
self
assert: (regex copy: 'aaa' translatingMatchesUsing: [ :match | '' ])
equals: ''.
self
assert:
(regex copy: 'aaa' translatingMatchesUsing: [ :match |... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 5,
"mask_type": "binary_message",
"n_masked_tokens": 3,
"prefix": "testCopyTranslatingMatchesUsing\n\n\t| regex |\n\tregex := 'a' asPCRegex.\n\tself\n\t\tassert: (regex copy: '' translatingMatchesUsing: [ :match | '' ])\n\t\tequals: ''.\n\tself\n\t\tassert: (regex copy: 'aaa' translatingMatchesUsin... |
331 | https://github.com/Gabriel-Darbord/pharo-pcre2 | dc19a6da4af1aabdb1d6af5e69a0aec04c880448 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopyTranslatingMatchesUsing
| regex |
regex := 'a' asPCRegex.
self
assert: (regex copy: '' translatingMatchesUsing: [ :match | '' ])
equals: ''.
self
assert: (regex copy: 'aaa' translatingMatchesUsing: [ :match | '' ])
equals: ''.
self
assert:
(regex copy: 'aaa' translatingMatchesUsing: [ :match |... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testCopyTranslatingMatchesUsing\n\n\t| regex |\n\tregex := 'a' asPCRegex.\n\tself\n\t\tassert: (regex copy: '' translatingMatchesUsing: [ :match | '' ])\n\t\tequals: ''.\n\tself\n\t\tassert: (regex copy: 'aaa' translatingMatchesUsi... |
332 | https://github.com/Gabriel-Darbord/pharo-pcre2 | b043cd4dac5fa92cd2416b835ca0f4e99eb38742 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopy
| regex copy |
regex := 'a' asPCRegex.
copy := regex deepCopy.
"structural equality"
self deny: regex identicalTo: copy.
self assert: regex options identicalTo: copy options.
regex isJIT ifTrue: [ self assert: copy isJIT ].
"match result equality"
self assert: (regex find: 'a') equals: (copy find: ... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testCopy\n\n\t| regex copy |\n\tregex := 'a' asPCRegex.\n\tcopy := regex deepCopy.\n\n\t\"structural equality\"\n\tself deny: regex identicalTo: copy.\n\tself assert: regex options identicalTo: copy options.\n\tregex isJIT ifTrue: ... |
333 | https://github.com/Gabriel-Darbord/pharo-pcre2 | b043cd4dac5fa92cd2416b835ca0f4e99eb38742 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopy
| regex copy |
regex := 'a' asPCRegex.
copy := regex deepCopy.
"structural equality"
self deny: regex identicalTo: copy.
self assert: regex options identicalTo: copy options.
regex isJIT ifTrue: [ self assert: copy isJIT ].
"match result equality"
self assert: (regex find: 'a') equals: (copy find: ... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testCopy\n\n\t| regex copy |\n\tregex",
"suffix": ".\n\tcopy := regex deepCopy.\n\n\t\"structural equality\"\n\tself deny: regex identicalTo: copy.\n\tself assert: regex options identicalTo: copy options.\n\tregex isJIT ifTrue: [ self... |
334 | https://github.com/Gabriel-Darbord/pharo-pcre2 | b043cd4dac5fa92cd2416b835ca0f4e99eb38742 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopy
| regex copy |
regex := 'a' asPCRegex.
copy := regex deepCopy.
"structural equality"
self deny: regex identicalTo: copy.
self assert: regex options identicalTo: copy options.
regex isJIT ifTrue: [ self assert: copy isJIT ].
"match result equality"
self assert: (regex find: 'a') equals: (copy find: ... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testCopy\n\n\t| regex copy |\n\tregex := 'a' asPCRegex.\n\tcopy := regex deepCopy.\n\n\t\"structural equality\"\n\tself deny: regex identicalTo: copy.\n\tself assert: regex options identicalTo: copy options.\n\tregex isJIT ifTrue: ... |
335 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 96ca54a565c72e5960621b436dc81a6d843d0a19 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopyReplacingMatchesWith
| regex |
regex := 'a' asPCRegex.
self assert: (regex copy: '' replacingMatchesWith: '') equals: ''.
self assert: (regex copy: 'aaa' replacingMatchesWith: '') equals: ''.
self
assert: (regex copy: 'aaa' replacingMatchesWith: 'b')
equals: 'bbb'.
self
assert: (regex copy: 'babab'... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testCopyReplacingMatchesWith\n\n\t| regex |\n\tregex",
"suffix": ".\n\tself assert: (regex copy: '' replacingMatchesWith: '') equals: ''.\n\tself assert: (regex copy: 'aaa' replacingMatchesWith: '') equals: ''.\n\tself\n\t\tassert: (r... |
336 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 96ca54a565c72e5960621b436dc81a6d843d0a19 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopyReplacingMatchesWith
| regex |
regex := 'a' asPCRegex.
self assert: (regex copy: '' replacingMatchesWith: '') equals: ''.
self assert: (regex copy: 'aaa' replacingMatchesWith: '') equals: ''.
self
assert: (regex copy: 'aaa' replacingMatchesWith: 'b')
equals: 'bbb'.
self
assert: (regex copy: 'babab'... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "testCopyReplacingMatchesWith\n\n\t| regex |\n\tregex := 'a' asPCRegex.\n\tself assert: (regex copy: '' replacingMatchesWith: '') equals: ''.\n\tself assert: (regex copy: 'aaa' replacingMatchesWith: '') equals: ''.\n\tself\n\t\tasse... |
337 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 96ca54a565c72e5960621b436dc81a6d843d0a19 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCopyReplacingMatchesWith
| regex |
regex := 'a' asPCRegex.
self assert: (regex copy: '' replacingMatchesWith: '') equals: ''.
self assert: (regex copy: 'aaa' replacingMatchesWith: '') equals: ''.
self
assert: (regex copy: 'aaa' replacingMatchesWith: 'b')
equals: 'bbb'.
self
assert: (regex copy: 'babab'... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testCopyReplacingMatchesWith\n\n\t| regex |\n\tregex := 'a' asPCRegex.\n\tself assert: (regex copy: '' replacingMatchesWith: '') equals: ''.\n\tself assert: (regex copy: 'aaa' replacingMatchesWith: '') equals: ''.\n\tself\n\t\tasse... |
338 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 727e776898e12e5a7865b30473637fd5643abf0f | src/PCRE2-Tests/PCRE2CompilerTest.class.st | testSharedDefaultCompiler
self assert: '' asPCRegex compiler identicalTo: '' asPCRegex compiler | [
{
"filepath": "src/PCRE2-Tests/PCRE2CompilerTest.class.st",
"code": "TestCase subclass: #PCRE2CompilerTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TW... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testSharedDefaultCompiler\n\n\tself assert: ''",
"suffix": "",
"completion": " asPCRegex compiler identicalTo: '' asPCRegex compiler"
} |
339 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 71f6f8e9b39da2cd1acd40e84f897db41cbb7fd1 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testRecompile
self assert: ('a' asPCRegex free recompile matches: 'a') | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testRecompile\n\n\tself assert: ('a' asPCRegex free recompile",
"suffix": "",
"completion": " matches: 'a')"
} |
340 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 76c3a66ba00c93ea81cd3ed5967b73701f300562 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testAwesome
"Some awesome things that can be done with PCRE"
| regex |
"recursive pattern"
regex := '{((?>[^{}]+|(?R))*)}' asPCRegex.
self
assert: (regex findAll: '{1, {2, {3}}} {{4, 5}}') asArray
equals: { '{1, {2, {3}}}'. '{{4, 5}}' } | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CompilerTest.class.st",
"code": "TestCase subclass: #PCRE2CompilerTest\n\tin... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testAwesome\n\t\"Some awesome things that can be done with PCRE\"\n\n\t| regex |\n\t\"recursive pattern\"\n\tregex",
"suffix": ".\n\tself\n\t\tassert: (regex findAll: '{1, {2, {3}}} {{4, 5}}') asArray\n\t\tequals: { '{1, {2, {3}}}'. '... |
341 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 76c3a66ba00c93ea81cd3ed5967b73701f300562 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testAwesome
"Some awesome things that can be done with PCRE"
| regex |
"recursive pattern"
regex := '{((?>[^{}]+|(?R))*)}' asPCRegex.
self
assert: (regex findAll: '{1, {2, {3}}} {{4, 5}}') asArray
equals: { '{1, {2, {3}}}'. '{{4, 5}}' } | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CompilerTest.class.st",
"code": "TestCase subclass: #PCRE2CompilerTest\n\tin... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "testAwesome\n\t\"Some awesome things that can be done with PCRE\"\n\n\t| regex |\n\t\"recursive pattern\"\n\tregex := '{((?>[^{}]+|(?R))*)}' asPCRegex.\n\tself\n\t\tassert: (regex",
"suffix": "",
"completion": " findAll: '{1, ... |
342 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 76c3a66ba00c93ea81cd3ed5967b73701f300562 | src/PCRE2-Tests/PCRE2CompilerTest.class.st | testErrorCode
self
should: [ '*' asPCRegex ]
raise: PCRE2CompileError
withExceptionDo: [ :ex |
self assert: (ex description endsWith: '(*ERROR)*') ].
self
should: [ '(' asPCRegex ]
raise: PCRE2CompileError
withExceptionDo: [ :ex |
self assert: (ex description endsWith: '((*ERROR)') ].
self
should:... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CompilerTest.class.st",
"code": "TestCase subclass: #PCRE2CompilerTest\n\tin... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "testErrorCode\n\n\tself\n\t\tshould: [ '*' asPCRegex ]\n\t\traise: PCRE2CompileError\n\t\twithExceptionDo: [ :ex |\n\t\tself assert: (ex description endsWith: '(*ERROR)*') ].\n\tself\n\t\tshould: [ '(' asPCRegex ]\n\t\traise: PCRE2... |
343 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 76c3a66ba00c93ea81cd3ed5967b73701f300562 | src/PCRE2-Tests/PCRE2CompilerTest.class.st | testErrorCode
self
should: [ '*' asPCRegex ]
raise: PCRE2CompileError
withExceptionDo: [ :ex |
self assert: (ex description endsWith: '(*ERROR)*') ].
self
should: [ '(' asPCRegex ]
raise: PCRE2CompileError
withExceptionDo: [ :ex |
self assert: (ex description endsWith: '((*ERROR)') ].
self
should:... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CompilerTest.class.st",
"code": "TestCase subclass: #PCRE2CompilerTest\n\tin... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testErrorCode\n\n\tself\n\t\tshould: [ '*' asPCRegex ]\n\t\traise: PCRE2CompileError\n\t\twithExceptionDo: [ :ex |\n\t\tself assert: (ex description endsWith: '(*ERROR)*') ].\n\tself\n\t\tshould: [ '(' asPCRegex ]\n\t\traise: PCRE2... |
344 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 76c3a66ba00c93ea81cd3ed5967b73701f300562 | src/PCRE2-Tests/PCRE2CompilerTest.class.st | testErrorCode
self
should: [ '*' asPCRegex ]
raise: PCRE2CompileError
withExceptionDo: [ :ex |
self assert: (ex description endsWith: '(*ERROR)*') ].
self
should: [ '(' asPCRegex ]
raise: PCRE2CompileError
withExceptionDo: [ :ex |
self assert: (ex description endsWith: '((*ERROR)') ].
self
should:... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CompilerTest.class.st",
"code": "TestCase subclass: #PCRE2CompilerTest\n\tin... | {
"fim_idx": 7,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testErrorCode\n\n\tself\n\t\tshould: [ '*' asPCRegex ]\n\t\traise: PCRE2CompileError\n\t\twithExceptionDo: [ :ex |\n\t\tself assert: (ex description endsWith: '(*ERROR)*') ].\n\tself\n\t\tshould: [ '(' asPCRegex ]\n\t\traise: PCRE2... |
345 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchLimit
| regex |
regex := '(a+)+' asPCRegex.
regex context matchLimit: 1.
self
should: [ regex matches: 'aa' ]
raise: PCRE2MatchError
withExceptionDo: [ :e |
self assert: e messageText equals: 'match limit exceeded' ] | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testMatchLimit\n\n\t| regex |\n\tregex := '(a+)+' asPCRegex.\n\tregex",
"suffix": ".\n\n\tself\n\t\tshould: [ regex matches: 'aa' ]\n\t\traise: PCRE2MatchError\n\t\twithExceptionDo: [ :e |\n\t\tself assert: e messageText equals: ... |
346 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchLimit
| regex |
regex := '(a+)+' asPCRegex.
regex context matchLimit: 1.
self
should: [ regex matches: 'aa' ]
raise: PCRE2MatchError
withExceptionDo: [ :e |
self assert: e messageText equals: 'match limit exceeded' ] | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testMatchLimit\n\n\t| regex |\n\tregex := '(a+)+' asPCRegex.\n\tregex context matchLimit: 1.\n\n\tself\n\t\tshould: [ regex matches: 'aa' ]\n\t\traise: PCRE2MatchError\n\t\twithExceptionDo: [ :e |\n\t\tself assert: e",
"suffix": ... |
347 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchLimit
| regex |
regex := '(a+)+' asPCRegex.
regex context matchLimit: 1.
self
should: [ regex matches: 'aa' ]
raise: PCRE2MatchError
withExceptionDo: [ :e |
self assert: e messageText equals: 'match limit exceeded' ] | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testMatchLimit\n\n\t| regex |\n\tregex := '(a+)+' asPCRegex.\n\tregex context matchLimit: 1.\n\n\tself\n\t\tshould: [ regex matches: 'aa' ]\n\t\traise: PCRE2MatchError\n\t\twithExceptionDo: [ :e |\n\t\tself",
"suffix": " ]",
"c... |
348 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2MatchTest.class.st | testGetCount
| regex |
regex := 'a' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCount equals: 1.
regex := '(a+)' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCount equals: 2.
regex := '((a+)b(c+))*' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCo... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 4,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testGetCount\n\n\t| regex |\n\tregex := 'a' asPCRegex.\n\tregex matches: 'abc'.\n\tself assert: regex matchData getCount equals: 1.\n\n\tregex := '(a+)' asPCRegex.\n\tregex matches: 'abc'.\n\tself assert: regex matchData getCount equals... |
349 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2MatchTest.class.st | testGetCount
| regex |
regex := 'a' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCount equals: 1.
regex := '(a+)' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCount equals: 2.
regex := '((a+)b(c+))*' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCo... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testGetCount\n\n\t| regex |\n\tregex := 'a' asPCRegex.\n\tregex matches: 'abc'.\n\tself assert: regex matchData getCount equals: 1.\n\n\tregex := '(a+)' asPCRegex.\n\tregex matches: 'abc'.\n\tself assert: regex matchData getCount e... |
350 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2MatchTest.class.st | testGetCount
| regex |
regex := 'a' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCount equals: 1.
regex := '(a+)' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCount equals: 2.
regex := '((a+)b(c+))*' asPCRegex.
regex matches: 'abc'.
self assert: regex matchData getCo... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testGetCount\n\n\t| regex |\n\tregex := 'a' asPCRegex.\n\tregex matches: 'abc'.\n\tself assert: regex matchData getCount equals: 1.\n\n\tregex",
"suffix": ".\n\tregex matches: 'abc'.\n\tself assert: regex matchData getCount equals: 2.... |
351 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2MatchTest.class.st | testOffsetsAt
| regex |
regex := '((a+)b(c+))*' asPCRegex.
regex matches: 'aabccc'.
self assert: (regex matchData offsetsAt: 1) equals: { 0. 6 }.
self assert: (regex matchData offsetsAt: 2) equals: { 0. 6 }.
self assert: (regex matchData offsetsAt: 3) equals: { 0. 2 }.
self assert: (regex matchData offsetsAt: 4... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "testOffsetsAt\n\n\t| regex |\n\tregex := '((a+)b(c+))*' asPCRegex.\n\tregex matches: 'aabccc'.\n\tself assert: (regex matchData offsetsAt: 1) equals: { 0. 6 }.\n\tself assert: (regex matchData offsetsAt:",
"suffix": ".\n\tself as... |
352 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2MatchTest.class.st | testOffsetsAt
| regex |
regex := '((a+)b(c+))*' asPCRegex.
regex matches: 'aabccc'.
self assert: (regex matchData offsetsAt: 1) equals: { 0. 6 }.
self assert: (regex matchData offsetsAt: 2) equals: { 0. 6 }.
self assert: (regex matchData offsetsAt: 3) equals: { 0. 2 }.
self assert: (regex matchData offsetsAt: 4... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testOffsetsAt\n\n\t| regex |\n\tregex := '((a+)b(c+))*' asPCRegex.\n\tregex matches: 'aabccc'.\n\tself assert: (regex matchData offsetsAt: 1) equals: { 0. 6 }.\n\tself assert: (regex matchData offsetsAt: 2) equals: { 0. 6 }.\n\tsel... |
353 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 37814628d588cd54a574614dddd960f72781575d | src/PCRE2-Tests/PCRE2MatchTest.class.st | testOffsetsAt
| regex |
regex := '((a+)b(c+))*' asPCRegex.
regex matches: 'aabccc'.
self assert: (regex matchData offsetsAt: 1) equals: { 0. 6 }.
self assert: (regex matchData offsetsAt: 2) equals: { 0. 6 }.
self assert: (regex matchData offsetsAt: 3) equals: { 0. 2 }.
self assert: (regex matchData offsetsAt: 4... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MatchTest.class.st",
"code": "TestCase subclass: #PCRE2MatchTest\n\tinstance... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testOffsetsAt\n\n\t| regex |\n\tregex := '((a+)b(c+))*' asPCRegex.\n\tregex matches: 'aabccc'.\n\tself assert: (regex matchData offsetsAt: 1) equals: { 0",
"suffix": ".\n\tself assert: (regex matchData offsetsAt: 2) equals: { 0. ... |
354 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 09223dc5c5748f78d34fbadb279c100eaca5ef97 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testFindAllWithGroups
self
assert: ('(\w)+' asPCRegex findAllWithGroups: 'hello world') asArray
equals: #( #( 'hello' 'o' ) #( 'world' 'd' ) ).
self
assert:
('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})'
asPCRegex findAllWithGroups: 'user@example.com admin@domain.org')
as... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testFindAllWithGroups\n\n\tself\n\t\tassert: ('(\\w)+' asPCRegex findAllWithGroups: 'hello world') asArray\n\t\tequals: #( #( 'hello' 'o'",
"suffix": ".\n\tself\n\t\tassert:\n\t\t\t('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA... |
355 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 09223dc5c5748f78d34fbadb279c100eaca5ef97 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testFindAllWithGroups
self
assert: ('(\w)+' asPCRegex findAllWithGroups: 'hello world') asArray
equals: #( #( 'hello' 'o' ) #( 'world' 'd' ) ).
self
assert:
('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})'
asPCRegex findAllWithGroups: 'user@example.com admin@domain.org')
as... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "testFindAllWithGroups\n\n\tself\n\t\tassert: ('(\\w)+' asPCRegex findAllWithGroups: 'hello world') asArray\n\t\tequals: #( #( 'hello' 'o' ) #( 'world' 'd' ) ).\n\tself\n\t\tassert:\n\t\t\t('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>... |
356 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 09223dc5c5748f78d34fbadb279c100eaca5ef97 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testFindAllWithGroups
self
assert: ('(\w)+' asPCRegex findAllWithGroups: 'hello world') asArray
equals: #( #( 'hello' 'o' ) #( 'world' 'd' ) ).
self
assert:
('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})'
asPCRegex findAllWithGroups: 'user@example.com admin@domain.org')
as... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testFindAllWithGroups\n\n\tself\n\t\tassert: ('(\\w)+' asPCRegex findAllWithGroups: 'hello world') asArray\n\t\tequals: #( #( 'hello' 'o' ) #( 'world' 'd' ) ).\n\tself\n\t\tassert:\n\t\t\t('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>... |
357 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 09223dc5c5748f78d34fbadb279c100eaca5ef97 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testFindWithGroups
self
assert: ('(\w)+' asPCRegex findWithGroups: 'hello')
equals: #( 'hello' 'o' ).
self
assert:
('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})'
asPCRegex findWithGroups: 'user@example.com admin@domain.org')
equals: #( 'user@example.com' 'user' 'example.com... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testFindWithGroups\n\n\tself\n\t\tassert: ('(\\w)+' asPCRegex findWithGroups: 'hello'",
"suffix": ".\n\tself\n\t\tassert:\n\t\t\t('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})'\n\t\t\t\t asPCRegex findW... |
358 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 09223dc5c5748f78d34fbadb279c100eaca5ef97 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testFindWithGroups
self
assert: ('(\w)+' asPCRegex findWithGroups: 'hello')
equals: #( 'hello' 'o' ).
self
assert:
('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})'
asPCRegex findWithGroups: 'user@example.com admin@domain.org')
equals: #( 'user@example.com' 'user' 'example.com... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 8,
"prefix": "testFindWithGroups\n\n\tself\n\t\tassert: ('(\\w)+' asPCRegex findWithGroups: 'hello')\n\t\tequals: #( 'hello' 'o' ).\n\tself\n\t\tassert:\n\t\t\t('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})'\n\t\t\t\t ... |
359 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 09223dc5c5748f78d34fbadb279c100eaca5ef97 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testFindWithGroups
self
assert: ('(\w)+' asPCRegex findWithGroups: 'hello')
equals: #( 'hello' 'o' ).
self
assert:
('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})'
asPCRegex findWithGroups: 'user@example.com admin@domain.org')
equals: #( 'user@example.com' 'user' 'example.com... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2Code.class.st",
"code": "PCRE2Object subclass: #PCRE2Code\n\tuses: PCRE2TWithOptio... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testFindWithGroups\n\n\tself\n\t\tassert: ('(\\w)+' asPCRegex findWithGroups: 'hello')\n\t\tequals: #( 'hello' 'o' ).\n\tself\n\t\tassert:\n\t\t\t('(?<username>[a-zA-Z0-9._%+-]+)@(?<domain>[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,})'\n\t\t\t\t ... |
360 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2MockSessionManager.class.st | findCodesToRestore
"Codes are given with the setter.
Mock the behavior of the super method that makes the codes persistent."
codesToRestore do: [ :code | code bePersistent ] | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "findCodesToRestore\n\t\"Codes are given with the setter.\n\tMock the behavior of the super method that makes the codes persistent.\"\n\n\tcodesToRestore do: [ :code |",
"suffix": "",
"completion": " code bePersistent ]"
} |
361 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testShutDownWithRecompilation
| manager regex |
PCRE2MockSessionManager useSerialization: false.
manager := PCRE2MockSessionManager new.
regex := '' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex matchData isPersistent.
self assert: manager serializedCodes identicalTo: nil.
manager shutDown.
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testShutDownWithRecompilation\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: false.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := '' asPCRegex.\n\tmanager",
"suffix": ".\n\n\tself deny: regex matchDa... |
362 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testShutDownWithRecompilation
| manager regex |
PCRE2MockSessionManager useSerialization: false.
manager := PCRE2MockSessionManager new.
regex := '' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex matchData isPersistent.
self assert: manager serializedCodes identicalTo: nil.
manager shutDown.
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testShutDownWithRecompilation\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: false.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := '' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself deny: reg... |
363 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testShutDownWithRecompilation
| manager regex |
PCRE2MockSessionManager useSerialization: false.
manager := PCRE2MockSessionManager new.
regex := '' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex matchData isPersistent.
self assert: manager serializedCodes identicalTo: nil.
manager shutDown.
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testShutDownWithRecompilation\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: false.\n\tmanager",
"suffix": ".\n\tregex := '' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself deny: regex matchData isPersi... |
364 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testShutDownWithSerialization
| manager regex |
PCRE2MockSessionManager useSerialization: true.
manager := PCRE2MockSessionManager new.
regex := '' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex matchData isPersistent.
self assert: manager serializedCodes identicalTo: nil.
manager shutDown.
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testShutDownWithSerialization\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: true.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := '' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself deny: rege... |
365 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testShutDownWithSerialization
| manager regex |
PCRE2MockSessionManager useSerialization: true.
manager := PCRE2MockSessionManager new.
regex := '' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex matchData isPersistent.
self assert: manager serializedCodes identicalTo: nil.
manager shutDown.
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testShutDownWithSerialization\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: true.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := '' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself deny: rege... |
366 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testShutDownWithSerialization
| manager regex |
PCRE2MockSessionManager useSerialization: true.
manager := PCRE2MockSessionManager new.
regex := '' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex matchData isPersistent.
self assert: manager serializedCodes identicalTo: nil.
manager shutDown.
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 7,
"mask_type": "keyword_message",
"n_masked_tokens": 5,
"prefix": "testShutDownWithSerialization\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: true.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := '' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself deny: rege... |
367 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testStartUpWithRecompilation
| manager regex |
PCRE2MockSessionManager useSerialization: false.
manager := PCRE2MockSessionManager new.
regex := 'a' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex isNull.
"mock a session shutdown"
regex finalize.
self assert: regex isNull.
manager startUp.... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testStartUpWithRecompilation\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: false.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := 'a' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself deny: reg... |
368 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testStartUpWithRecompilation
| manager regex |
PCRE2MockSessionManager useSerialization: false.
manager := PCRE2MockSessionManager new.
regex := 'a' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex isNull.
"mock a session shutdown"
regex finalize.
self assert: regex isNull.
manager startUp.... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testStartUpWithRecompilation\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: false.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := 'a' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself deny: reg... |
369 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testStartUpWithRecompilation
| manager regex |
PCRE2MockSessionManager useSerialization: false.
manager := PCRE2MockSessionManager new.
regex := 'a' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex isNull.
"mock a session shutdown"
regex finalize.
self assert: regex isNull.
manager startUp.... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testStartUpWithRecompilation\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: false.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := 'a' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself",
"suff... |
370 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testStartUpWithSerialization
| manager regex |
PCRE2MockSessionManager useSerialization: true.
manager := PCRE2MockSessionManager new.
regex := 'a' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex isNull.
"mock a session shutdown"
manager shutDown. "serialization happens"
regex finalize.
sel... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testStartUpWithSerialization\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: true.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := 'a' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself",
"suffi... |
371 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testStartUpWithSerialization
| manager regex |
PCRE2MockSessionManager useSerialization: true.
manager := PCRE2MockSessionManager new.
regex := 'a' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex isNull.
"mock a session shutdown"
manager shutDown. "serialization happens"
regex finalize.
sel... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testStartUpWithSerialization\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: true.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := 'a' asPCRegex.\n\tmanager codesToRestore:",
"suffix": ".\n\n\tself deny... |
372 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c7b2e50b98ac27a5cf0806c4babee8b0147e3ab | src/PCRE2-Tests/PCRE2SessionManagerTest.class.st | testStartUpWithSerialization
| manager regex |
PCRE2MockSessionManager useSerialization: true.
manager := PCRE2MockSessionManager new.
regex := 'a' asPCRegex.
manager codesToRestore: { regex }.
self deny: regex isNull.
"mock a session shutdown"
manager shutDown. "serialization happens"
regex finalize.
sel... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2MockSessionManager.class.st",
"code": "PCRE2SessionManager subclass: #PCRE2M... | {
"fim_idx": 6,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testStartUpWithSerialization\n\n\t| manager regex |\n\tPCRE2MockSessionManager useSerialization: true.\n\tmanager := PCRE2MockSessionManager new.\n\tregex := 'a' asPCRegex.\n\tmanager codesToRestore: { regex }.\n\n\tself deny: rege... |
373 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testAllInfo
| infos infoNameTable |
infos := '' asPCRegex allInfo.
"20 = index of infoNameTable, which is a pointer to a table so it differs each time"
infoNameTable := infos at: 20.
infos := infos copyWithoutIndex: 20.
self
assert: infos
equals:
#( 524288 524288 0 1 0 0 0 nil 0 0 356 0 0 1 nil 0 0 0 0 2... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testCompileJIT\n\n\t| regex originalCompiler op... | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testAllInfo\n\n\t| infos infoNameTable |\n\tinfos := '' asPCRegex allInfo.\n\t\"20 = index of infoNameTable, which is a pointer to a table so it differs each time\"\n\tinfoNameTable",
"suffix": ".\n\tinfos := infos copyWithoutIndex: 2... |
374 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testAllInfo
| infos infoNameTable |
infos := '' asPCRegex allInfo.
"20 = index of infoNameTable, which is a pointer to a table so it differs each time"
infoNameTable := infos at: 20.
infos := infos copyWithoutIndex: 20.
self
assert: infos
equals:
#( 524288 524288 0 1 0 0 0 nil 0 0 356 0 0 1 nil 0 0 0 0 2... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testCompileJIT\n\n\t| regex originalCompiler op... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testAllInfo\n\n\t| infos infoNameTable |\n\tinfos := '' asPCRegex allInfo.\n\t\"20 = index of infoNameTable, which is a pointer to a table so it differs each time\"\n\tinfoNameTable := infos at: 20.\n\tinfos := infos copyWithoutInd... |
375 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testAllInfo
| infos infoNameTable |
infos := '' asPCRegex allInfo.
"20 = index of infoNameTable, which is a pointer to a table so it differs each time"
infoNameTable := infos at: 20.
infos := infos copyWithoutIndex: 20.
self
assert: infos
equals:
#( 524288 524288 0 1 0 0 0 nil 0 0 356 0 0 1 nil 0 0 0 0 2... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testCompileJIT\n\n\t| regex originalCompiler op... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testAllInfo\n\n\t| infos infoNameTable |\n\tinfos := '' asPCRegex allInfo.\n\t\"20 = index of infoNameTable, which is a pointer to a table so it differs each time\"\n\tinfoNameTable := infos at: 20.\n\tinfos :=",
"suffix": ".\n\n\tsel... |
376 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCompileJIT
| regex originalCompiler optionsJIT |
regex := '' asPCRegex.
originalCompiler := regex compiler.
optionsJIT := PCRE2 jitPartialHard.
self deny: originalCompiler optionsJIT equals: optionsJIT.
regex compileJIT: optionsJIT.
self deny: regex compiler identicalTo: originalCompiler.
self assert: r... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testCompileJIT\n\n\t| regex originalCompiler optionsJIT |\n\tregex := '' asPCRegex.\n\toriginalCompiler := regex compiler.\n\toptionsJIT",
"suffix": ".\n\n\tself deny: originalCompiler optionsJIT equals: optionsJIT.\n\n\tregex compile... |
377 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCompileJIT
| regex originalCompiler optionsJIT |
regex := '' asPCRegex.
originalCompiler := regex compiler.
optionsJIT := PCRE2 jitPartialHard.
self deny: originalCompiler optionsJIT equals: optionsJIT.
regex compileJIT: optionsJIT.
self deny: regex compiler identicalTo: originalCompiler.
self assert: r... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testCompileJIT\n\n\t| regex originalCompiler optionsJIT |\n\tregex",
"suffix": ".\n\toriginalCompiler := regex compiler.\n\toptionsJIT := PCRE2 jitPartialHard.\n\n\tself deny: originalCompiler optionsJIT equals: optionsJIT.\n\n\tregex... |
378 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testCompileJIT
| regex originalCompiler optionsJIT |
regex := '' asPCRegex.
originalCompiler := regex compiler.
optionsJIT := PCRE2 jitPartialHard.
self deny: originalCompiler optionsJIT equals: optionsJIT.
regex compileJIT: optionsJIT.
self deny: regex compiler identicalTo: originalCompiler.
self assert: r... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 4,
"prefix": "testCompileJIT\n\n\t| regex originalCompiler optionsJIT |\n\tregex := '' asPCRegex.\n\toriginalCompiler := regex compiler.\n\toptionsJIT := PCRE2 jitPartialHard.\n\n\tself deny: originalCompiler optionsJIT equals: optionsJIT.\n\n\t... |
379 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchesInCollect
self
assert: ('\d' asPCRegex
matchesIn: '123'
collect: [ :match | match asInteger + 1 ]) asArray
equals: #( 2 3 4 ).
self
assert: ('\w' asPCRegex
matchesIn: 'hello'
collect: [ :match | match first asciiValue ]) asArray
equals: #( 104 101 108 108 111 ).
"no match"
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "testMatchesInCollect\n\n\tself\n\t\tassert: ('\\d' asPCRegex\n\t\t\t\t matchesIn: '123'\n\t\t\t\t collect: [ :match | match asInteger + 1 ]) asArray\n\t\tequals: #( 2 3 4 ).\n\n\tself\n\t\tassert: ('\\w' asPCRegex\n\t\t\t\t matche... |
380 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchesInCollect
self
assert: ('\d' asPCRegex
matchesIn: '123'
collect: [ :match | match asInteger + 1 ]) asArray
equals: #( 2 3 4 ).
self
assert: ('\w' asPCRegex
matchesIn: 'hello'
collect: [ :match | match first asciiValue ]) asArray
equals: #( 104 101 108 108 111 ).
"no match"
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "testMatchesInCollect\n\n\tself\n\t\tassert: ('\\d' asPCRegex\n\t\t\t\t matchesIn: '123'\n\t\t\t\t collect: [ :match | match asInteger +",
"suffix": ".\n\n\tself\n\t\tassert: ('\\w' asPCRegex\n\t\t\t\t matchesIn: 'hello'\n\t\t\t\... |
381 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchesInCollect
self
assert: ('\d' asPCRegex
matchesIn: '123'
collect: [ :match | match asInteger + 1 ]) asArray
equals: #( 2 3 4 ).
self
assert: ('\w' asPCRegex
matchesIn: 'hello'
collect: [ :match | match first asciiValue ]) asArray
equals: #( 104 101 108 108 111 ).
"no match"
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "testMatchesInCollect\n\n\tself\n\t\tassert: ('\\d' asPCRegex\n\t\t\t\t matchesIn: '123'\n\t\t\t\t collect: [ :match | match asInteger + 1 ]) asArray\n\t\tequals: #( 2 3 4 ).\n\n\tself\n\t\tassert: ('\\w' asPCRegex\n\t\t\t\t matche... |
382 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchesPrefix
self assert: ('\d+' asPCRegex matchesPrefix: '123').
self assert: ('\w+' asPCRegex matchesPrefix: 'hello').
self assert:
('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' asPCRegex
matchesPrefix: 'user@example.com').
self assert:
('\(\d{3}\) \d{3}-\d{4}' asPCRegex matchesPrefix: '(123) 45... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 12,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testMatchesPrefix\n\n\tself assert: ('\\d+' asPCRegex matchesPrefix: '123').\n\tself assert: ('\\w+' asPCRegex matchesPrefix: 'hello').\n\tself assert:\n\t\t('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}' asPCRegex\n\t\t\t matc... |
383 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchesPrefix
self assert: ('\d+' asPCRegex matchesPrefix: '123').
self assert: ('\w+' asPCRegex matchesPrefix: 'hello').
self assert:
('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' asPCRegex
matchesPrefix: 'user@example.com').
self assert:
('\(\d{3}\) \d{3}-\d{4}' asPCRegex matchesPrefix: '(123) 45... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 14,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testMatchesPrefix\n\n\tself assert: ('\\d+' asPCRegex matchesPrefix: '123').\n\tself assert: ('\\w+' asPCRegex matchesPrefix: 'hello').\n\tself assert:\n\t\t('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}' asPCRegex\n\t\t\t matc... |
384 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 8929f3cccb7136da9f6f11c3e97b2aeedeeca651 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testMatchesPrefix
self assert: ('\d+' asPCRegex matchesPrefix: '123').
self assert: ('\w+' asPCRegex matchesPrefix: 'hello').
self assert:
('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}' asPCRegex
matchesPrefix: 'user@example.com').
self assert:
('\(\d{3}\) \d{3}-\d{4}' asPCRegex matchesPrefix: '(123) 45... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "testAllInfo\n\n\t| infos infoNameTable |\n\tinf... | {
"fim_idx": 3,
"mask_type": "keyword_message",
"n_masked_tokens": 7,
"prefix": "testMatchesPrefix\n\n\tself assert: ('\\d+' asPCRegex matchesPrefix: '123').\n\tself assert: ('\\w+' asPCRegex matchesPrefix: 'hello').\n\tself assert:\n\t\t('[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}' asPCRegex\n\t\t\t match... |
385 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 2c33baff8bc7f5196ee9966008a2721d8a68e751 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testAllInfo
| regex infos infoNameTable infoFrameSize infoJITSize |
regex := '' asPCRegex.
infos := regex allInfo.
"25 = index of infoFrameSize, which may vary depending on the architecture"
infoFrameSize := infos at: 25.
infos := infos copyWithoutIndex: 25.
"20 = index of infoNameTable, which is a pointer t... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testAllInfo\n \n\t| regex infos infoNameTable infoFrameSize infoJITSize |\n\tregex := '' asPCRegex.\n\tinfos := regex allInfo.\n\n\t\"25 = index of infoFrameSize, which may vary depending on the architecture\"\n\tinfoFrameSize := infos ... |
386 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 2c33baff8bc7f5196ee9966008a2721d8a68e751 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testAllInfo
| regex infos infoNameTable infoFrameSize infoJITSize |
regex := '' asPCRegex.
infos := regex allInfo.
"25 = index of infoFrameSize, which may vary depending on the architecture"
infoFrameSize := infos at: 25.
infos := infos copyWithoutIndex: 25.
"20 = index of infoNameTable, which is a pointer t... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 1,
"mask_type": "assignment",
"n_masked_tokens": 4,
"prefix": "testAllInfo\n \n\t| regex infos infoNameTable infoFrameSize infoJITSize |\n\tregex := '' asPCRegex.\n\tinfos := regex allInfo.\n\n\t\"25 = index of infoFrameSize, which may vary depending on the architecture\"\n\tinfoFrameSize := infos ... |
387 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5665563af91627c3c8487445d49039629d45000d | src/PCRE2-Tests/PCRE2CodeTest.class.st | testInfo
| regex infoFrameSize infoNameTable infoJITSize |
regex := '' asPCRegex.
infoFrameSize := regex info: PCRE2 infoFrameSize.
self assert: infoFrameSize > 0.
infoNameTable := regex info: PCRE2 infoNameTable.
self assert: infoNameTable size equals: ExternalAddress wordSize.
self deny: (infoNameTable allS... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testInfo\n\n\t| regex infoFrameSize infoNameTable infoJITSize |\n\tregex := '' asPCRegex.\n\n\tinfoFrameSize := regex info: PCRE2 infoFrameSize.\n\tself assert:",
"suffix": ".\n\n\tinfoNameTable := regex info: PCRE2 infoNameTable... |
388 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5665563af91627c3c8487445d49039629d45000d | src/PCRE2-Tests/PCRE2CodeTest.class.st | testInfo
| regex infoFrameSize infoNameTable infoJITSize |
regex := '' asPCRegex.
infoFrameSize := regex info: PCRE2 infoFrameSize.
self assert: infoFrameSize > 0.
infoNameTable := regex info: PCRE2 infoNameTable.
self assert: infoNameTable size equals: ExternalAddress wordSize.
self deny: (infoNameTable allS... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 7,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testInfo\n\n\t| regex infoFrameSize infoNameTable infoJITSize |\n\tregex := '' asPCRegex.\n\n\tinfoFrameSize := regex info: PCRE2 infoFrameSize.\n\tself assert: infoFrameSize > 0.\n\n\tinfoNameTable := regex info: PCRE2 infoNameTab... |
389 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5665563af91627c3c8487445d49039629d45000d | src/PCRE2-Tests/PCRE2CodeTest.class.st | testInfo
| regex infoFrameSize infoNameTable infoJITSize |
regex := '' asPCRegex.
infoFrameSize := regex info: PCRE2 infoFrameSize.
self assert: infoFrameSize > 0.
infoNameTable := regex info: PCRE2 infoNameTable.
self assert: infoNameTable size equals: ExternalAddress wordSize.
self deny: (infoNameTable allS... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testInfo\n\n\t| regex infoFrameSize infoNameTable infoJITSize |\n\tregex",
"suffix": ".\n\n\tinfoFrameSize := regex info: PCRE2 infoFrameSize.\n\tself assert: infoFrameSize > 0.\n\n\tinfoNameTable := regex info: PCRE2 infoNameTable.\n... |
390 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 9ae4aa853f7cb04f830230d30651ca96c0a17664 | src/PCRE2-Tests/PCRE2Test.class.st | testAllOptions
self assert: PCRE2 allOptions equals: (Dictionary newFrom: {
(#compile -> (Dictionary newFrom: {
(1 -> (PCRE2 class >> #allowEmptyClass)).
(2 -> (PCRE2 class >> #altBSUX)).
(4 -> (PCRE2 class >> #autoCallout)).
(8 -> (PCRE2 class >> #caseless)).
(16 -> ... | [
{
"filepath": "src/PCRE2-Tests/PCRE2Test.class.st",
"code": "TestCase subclass: #PCRE2Test\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2.class.st",
"code": "Object subclass: #PCRE2\n\tinstanceVariableNames: ''\n\tclassVariable... | {
"fim_idx": 0,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testAllOptions\n\n\tself assert: PCRE2 allOptions equals: (Dictionary newFrom: {\n\t\t\t\t (#compile -> (Dictionary newFrom: {\n\t\t\t\t\t\t (1 -> (PCRE2 class >> #allowEmptyClass)).\n\t\t\t\t\t\t (2 -> (PCRE2 class >> #altBSUX... |
391 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 9ae4aa853f7cb04f830230d30651ca96c0a17664 | src/PCRE2-Tests/PCRE2Test.class.st | testReadOptions
"Options are flags with different meanings depending on the function to which they are applied."
| options |
options := PCRE2 autoCallout | PCRE2 dotAll | PCRE2 extended
| PCRE2 firstLine.
self
assert: (PCRE2 readOptions: options)
equals: (Dictionary newFrom: {
(#compile -> (O... | [
{
"filepath": "src/PCRE2-Tests/PCRE2Test.class.st",
"code": "TestCase subclass: #PCRE2Test\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2.class.st",
"code": "Object subclass: #PCRE2\n\tinstanceVariableNames: ''\n\tclassVariable... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 8,
"prefix": "testReadOptions\n\t\"Options are flags with different meanings depending on the function to which they are applied.\"\n\n\t| options |\n\toptions := PCRE2 autoCallout |",
"suffix": ".\n\tself\n\t\tassert: (PCRE2 readOptions: options)\... |
392 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 9ae4aa853f7cb04f830230d30651ca96c0a17664 | src/PCRE2-Tests/PCRE2Test.class.st | testReadOptions
"Options are flags with different meanings depending on the function to which they are applied."
| options |
options := PCRE2 autoCallout | PCRE2 dotAll | PCRE2 extended
| PCRE2 firstLine.
self
assert: (PCRE2 readOptions: options)
equals: (Dictionary newFrom: {
(#compile -> (O... | [
{
"filepath": "src/PCRE2-Tests/PCRE2Test.class.st",
"code": "TestCase subclass: #PCRE2Test\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2.class.st",
"code": "Object subclass: #PCRE2\n\tinstanceVariableNames: ''\n\tclassVariable... | {
"fim_idx": 1,
"mask_type": "keyword_message",
"n_masked_tokens": 9,
"prefix": "testReadOptions\n\t\"Options are flags with different meanings depending on the function to which they are applied.\"\n\n\t| options |\n\toptions := PCRE2 autoCallout | PCRE2 dotAll | PCRE2 extended\n\t | PCRE2 firstLine.... |
393 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 9ae4aa853f7cb04f830230d30651ca96c0a17664 | src/PCRE2-Tests/PCRE2Test.class.st | testReadOptionsFor
| regex |
"check default options on a fresh pattern"
regex := '' asPCRegex.
self assert: (PCRE2 readOptions: regex options for: #match) isEmpty.
self
assert: (PCRE2 readOptions: regex compiler options for: #compile)
equals: (OrderedCollection with: PCRE2 class >> #utf).
self
assert:
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2Test.class.st",
"code": "TestCase subclass: #PCRE2Test\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2.class.st",
"code": "Object subclass: #PCRE2\n\tinstanceVariableNames: ''\n\tclassVariable... | {
"fim_idx": 0,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testReadOptionsFor\n\n\t| regex |\n\t\"check default options on a fresh pattern\"\n\tregex",
"suffix": ".\n\n\tself assert: (PCRE2 readOptions: regex options for: #match) isEmpty.\n\n\tself\n\t\tassert: (PCRE2 readOptions: regex compi... |
394 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 9ae4aa853f7cb04f830230d30651ca96c0a17664 | src/PCRE2-Tests/PCRE2Test.class.st | testReadOptionsFor
| regex |
"check default options on a fresh pattern"
regex := '' asPCRegex.
self assert: (PCRE2 readOptions: regex options for: #match) isEmpty.
self
assert: (PCRE2 readOptions: regex compiler options for: #compile)
equals: (OrderedCollection with: PCRE2 class >> #utf).
self
assert:
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2Test.class.st",
"code": "TestCase subclass: #PCRE2Test\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2.class.st",
"code": "Object subclass: #PCRE2\n\tinstanceVariableNames: ''\n\tclassVariable... | {
"fim_idx": 4,
"mask_type": "keyword_message",
"n_masked_tokens": 10,
"prefix": "testReadOptionsFor\n\n\t| regex |\n\t\"check default options on a fresh pattern\"\n\tregex := '' asPCRegex.\n\n\tself assert: (PCRE2 readOptions: regex options for: #match) isEmpty.\n\n\tself\n\t\tassert: (PCRE2 readOptions: regex... |
395 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 9ae4aa853f7cb04f830230d30651ca96c0a17664 | src/PCRE2-Tests/PCRE2Test.class.st | testReadOptionsFor
| regex |
"check default options on a fresh pattern"
regex := '' asPCRegex.
self assert: (PCRE2 readOptions: regex options for: #match) isEmpty.
self
assert: (PCRE2 readOptions: regex compiler options for: #compile)
equals: (OrderedCollection with: PCRE2 class >> #utf).
self
assert:
... | [
{
"filepath": "src/PCRE2-Tests/PCRE2Test.class.st",
"code": "TestCase subclass: #PCRE2Test\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
},
{
"filepath": "src/PCRE2/PCRE2.class.st",
"code": "Object subclass: #PCRE2\n\tinstanceVariableNames: ''\n\tclassVariable... | {
"fim_idx": 2,
"mask_type": "keyword_message",
"n_masked_tokens": 6,
"prefix": "testReadOptionsFor\n\n\t| regex |\n\t\"check default options on a fresh pattern\"\n\tregex := '' asPCRegex.\n\n\tself assert: (PCRE2 readOptions: regex options for: #match) isEmpty.\n\n\tself\n\t\tassert: (PCRE2 readOptions: regex ... |
396 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c678a0c935f92beab28d7576f6c3ab400943397 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testZeroTerminated
| regex subject encoder utfSubject |
regex := '.*' asPCRegex.
subject := 'abc' , Character null asString , 'def'.
encoder := ZnUTF8Encoder default.
utfSubject := encoder encodeString: subject.
"jit_match() does not support null-terminated string subjects
disable the fast path for support (it... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 5,
"mask_type": "keyword_message",
"n_masked_tokens": 3,
"prefix": "testZeroTerminated\n\n\t| regex subject encoder utfSubject |\n\tregex := '.*' asPCRegex.\n\tsubject := 'abc' , Character null asString , 'def'.\n\tencoder := ZnUTF8Encoder default.\n\tutfSubject := encoder encodeString: subject.\n\... |
397 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c678a0c935f92beab28d7576f6c3ab400943397 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testZeroTerminated
| regex subject encoder utfSubject |
regex := '.*' asPCRegex.
subject := 'abc' , Character null asString , 'def'.
encoder := ZnUTF8Encoder default.
utfSubject := encoder encodeString: subject.
"jit_match() does not support null-terminated string subjects
disable the fast path for support (it... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 3,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testZeroTerminated\n\n\t| regex subject encoder utfSubject |\n\tregex := '.*' asPCRegex.\n\tsubject := 'abc' , Character null asString , 'def'.\n\tencoder := ZnUTF8Encoder default.\n\tutfSubject :=",
"suffix": ".\n\n\t\"jit_match() do... |
398 | https://github.com/Gabriel-Darbord/pharo-pcre2 | 5c678a0c935f92beab28d7576f6c3ab400943397 | src/PCRE2-Tests/PCRE2CodeTest.class.st | testZeroTerminated
| regex subject encoder utfSubject |
regex := '.*' asPCRegex.
subject := 'abc' , Character null asString , 'def'.
encoder := ZnUTF8Encoder default.
utfSubject := encoder encodeString: subject.
"jit_match() does not support null-terminated string subjects
disable the fast path for support (it... | [
{
"filepath": "src/PCRE2-Tests/PCRE2CodeTest.class.st",
"code": "TestCase subclass: #PCRE2CodeTest\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'PCRE2-Tests'"
}
] | {
"fim_idx": 2,
"mask_type": "assignment",
"n_masked_tokens": 3,
"prefix": "testZeroTerminated\n\n\t| regex subject encoder utfSubject |\n\tregex := '.*' asPCRegex.\n\tsubject := 'abc' , Character null asString , 'def'.\n\tencoder",
"suffix": ".\n\tutfSubject := encoder encodeString: subject.\n\n\t\"jit_match... |
399 | https://github.com/Evref-BL/Pharo-Tree-Sitter | f150d7354f778ab30f7e862174e2f3f2f2795977 | src/TreeSitter/TSLibrary.class.st | unix64LibraryName
"Users should use unix32* or unix64*"
^ FFIUnix64LibraryFinder findAnyLibrary: #( 'libtree-sitter.so' ) | [
{
"filepath": "src/TreeSitter/TSLibrary.class.st",
"code": "FFILibrary subclass: #TSLibrary\n\tinstanceVariableNames: ''\n\tclassVariableNames: ''\n\tpackage: 'TreeSitter'"
}
] | {
"fim_idx": 0,
"mask_type": "return",
"n_masked_tokens": 3,
"prefix": "unix64LibraryName\n\t\"Users should use unix32* or unix64*\"\n\n\t^ FFIUnix64LibraryFinder findAnyLibrary:",
"suffix": "",
"completion": " #( 'libtree-sitter.so' )"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.