File tree Expand file tree Collapse file tree
tests/corpus/update.identifier.replace.segment.2 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ class A :
2+ def a (self ):
3+ pass
4+ def calculate (self ,
5+ a ,
6+ b ,
7+ c ,
8+ d ,
9+ e
10+ ):
11+ pass
12+ class B :
13+ def a (self ):
14+ pass
15+ def calculate (self ,
16+ a ,
17+ b ,
18+ c ,
19+ d ,
20+ e
21+ ):
22+ pass
Original file line number Diff line number Diff line change 1+ <no-train >
2+ ```CEDARScript
3+ UPDATE METHOD "calculate" OFFSET 1
4+ FROM FILE "1.py"
5+ REPLACE SEGMENT
6+ STARTING AFTER LINE 0
7+ ENDING BEFORE LINE 2
8+ WITH CONTENT '''
9+ @-1:def calculate(self, line_1,
10+ @0:line_2,
11+ ''';
12+ ```
13+ </no-train >
Original file line number Diff line number Diff line change 1+ class A :
2+ def a (self ):
3+ pass
4+ def calculate (self ,
5+ a ,
6+ b ,
7+ c ,
8+ d ,
9+ e
10+ ):
11+ pass
12+ class B :
13+ def a (self ):
14+ pass
15+ def calculate (self , line_1 ,
16+ line_2 ,
17+ a ,
18+ b ,
19+ c ,
20+ d ,
21+ e
22+ ):
23+ pass
You can’t perform that action at this time.
0 commit comments