This is really written in the first lines of the walkthrough I have given above:
- "5. Click on the down-arrow key next to the second Module repeating node, and then select Add another Module below"
Choose a control in a repeating table > on ribbon Data tab > Default values > choose group node, aggregating fields of repeating table (in my template group2) > right-click > Add another group below (or above) , 3 times )of default values) in your case per each control > choose your data field(s), 3*2 times in your case(field1 and field2 in my template) > in Default value: fx enter the whatever different values (1, 223, 333 for field2 and aaa, bbb, ccc for field2 in my template) > OK (3*2 times)
Which code?
What is the question?
See enclosed template
- Editing default data in repeating table - unique for each row.xsn
and screenshots
Fig.1 Entering default values for data fields of repeating table

Fig.2. Resulting spectacle (Preview, upon pressing F5)