id int64 52 8.3k | source_id stringclasses 895
values | mutation_category stringclasses 3
values | mutation_type stringclasses 17
values | bad_code stringlengths 121 7.44k | error_message stringlengths 4 4.8k | good_code stringclasses 880
values | diff_patch stringlengths 0 738 | base_prompt stringlengths 368 7.74k | prompt stringlengths 368 7.74k | length int64 182 3.61k | code_response stringclasses 881
values | patch_response stringlengths 37 775 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
4,161 | src_1237 | syntax | break_imports | package 'Requirement Usages' {
private import SI::;
private import 'Requirement Definitions'::*;
requirement <'1.1'> fullVehicleMassLimit : VehicleMassLimitationRequirement {
subject vehicle : Vehicle;
attribute :>> massReqd = 2000[kg];
assume constraint {
doc /* Full tank is full. */
vehicle.fuelMass ==... | ERROR:no viable alternative at input ';' (9903.sysml line : 2 column : 2)
ERROR:no viable alternative at input '::' (9903.sysml line : 2 column : 19) | package 'Requirement Usages' {
private import SI::*;
private import 'Requirement Definitions'::*;
requirement <'1.1'> fullVehicleMassLimit : VehicleMassLimitationRequirement {
subject vehicle : Vehicle;
attribute :>> massReqd = 2000[kg];
assume constraint {
doc /* Full tank is full. */
vehicle.fuelMass =... | @@ -1,5 +1,5 @@
package 'Requirement Usages' {
- private import SI::;
+ private import SI::*;
private import 'Requirement Definitions'::*;
requirement <'1.1'> fullVehicleMassLimit : VehicleMassLimitationRequirement {
subject vehicle : Vehicle; | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input ';' (9903.sysml line : 2 column : 2)
ERROR:no viable alternative at input '::' (9903.sysml line : 2 column : 19)
Code:
```sysml
package 'Require... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input ';' (9903.sysml line : 2 column : 2)
ERROR:no viable alternative at input '::' (9903.sysml line : 2 column : 19)
Code:
```sysml
package 'Require... | 463 | CODE STATUS = INCORRECT
```sysml
package 'Requirement Usages' {
private import SI::*;
private import 'Requirement Definitions'::*;
requirement <'1.1'> fullVehicleMassLimit : VehicleMassLimitationRequirement {
subject vehicle : Vehicle;
attribute :>> massReqd = 2000[kg];
assume constraint {
doc /* Full tank ... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package 'Requirement Usages' {
- private import SI::;
+ private import SI::*;
private import 'Requirement Definitions'::*;
requirement <'1.1'> fullVehicleMassLimit : VehicleMassLimitationRequirement {
subject vehicle : Vehicle;
``` |
1,095 | src_0275 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0116_23d0 {
port def MotorInput;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSyste... | ERROR:mismatched input '<EOF>' expecting '}' (2383.sysml line : 23 column : 1) | package Vehicle_Remix_0116_23d0 {
port def MotorInput;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSyste... | @@ -9,4 +9,5 @@
part comp_b_db14 : LugNutCompositePort_Def;
part comp_distractor_49ca : MotorInput_Distractor_Def;
connect comp_a_2df9.p to comp_b_db14.p;
+ }
} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (2383.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0116_23d0 {
port def MotorInput;
port def LugNutCompositeP... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (2383.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0116_23d0 {
port def MotorInput;
port def LugNutCompositeP... | 415 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0116_23d0 {
port def MotorInput;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def MotorInput_Distractor_Def { port p : Mo... | CODE STATUS = INCORRECT
```sysml
@@ -9,4 +9,5 @@
part comp_b_db14 : LugNutCompositePort_Def;
part comp_distractor_49ca : MotorInput_Distractor_Def;
connect comp_a_2df9.p to comp_b_db14.p;
+ }
}
``` |
2,431 | src_0690 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0531_1b5b {
port def FuelPort;
port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort;
part def SubSystem_Context {
part comp_a_... | ERROR:mismatched input '<EOF>' expecting '}' (5703.sysml line : 23 column : 1) | package Vehicle_Remix_0531_1b5b {
port def FuelPort;
port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSystem_Context {
part comp_a... | @@ -3,7 +3,7 @@
port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
- part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort;
+ part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (5703.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0531_1b5b {
port def FuelPort;
port def ShankCompositePort... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (5703.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0531_1b5b {
port def FuelPort;
port def ShankCompositePort... | 395 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0531_1b5b {
port def FuelPort;
port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSys... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
- part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort;
+ part def ShankCompositePort_Distractor_Def { port p ... |
8,182 | src_0475 | none | none | package Vehicle_Remix_0316_d8e2 {
port def BatteryInput;
port def AxlePort;
port def WheelToRoadPort;
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
part def AxlePort_Def { port p : AxlePort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Con... | none | package Vehicle_Remix_0316_d8e2 {
port def BatteryInput;
port def AxlePort;
port def WheelToRoadPort;
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
part def AxlePort_Def { port p : AxlePort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Con... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0316_d8e2 {
port def BatteryInput;
port def AxlePort;
port def Whe... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'AxlePort' belongs to Domain: mechanical_torque
- 'WheelToRoadPort' belongs to Domain: mechanical_to... | 333 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
7,827 | src_0708 | none | none | package Vehicle_Remix_0549_4b94 {
port def MotorOutput;
port def SetSpeedPort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
part comp_a_... | none | package Vehicle_Remix_0549_4b94 {
port def MotorOutput;
port def SetSpeedPort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
part comp_a_... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0549_4b94 {
port def MotorOutput;
port def SetSpeedPort;
part def ... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'SetSpeedPort' belongs to Domain: command_signal
- 'MotorOutput' belongs to Domain: electrical_power... | 299 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
7,884 | src_1013 | none | none | package Vehicle_Remix_0854_efd0 {
port def ShankPort;
port def BatteryOutput;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part de... | none | package Vehicle_Remix_0854_efd0 {
port def ShankPort;
port def BatteryOutput;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part de... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0854_efd0 {
port def ShankPort;
port def BatteryOutput;
port def S... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'BatteryOutput' belongs to Domain: electrical_power
- 'ShankPort' belongs to Domain: mechanical_fast... | 321 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
4,106 | src_1224 | syntax | remove_random_semicolon | package 'Calculation Definitions' {
private import ScalarValues::Real;
private import ISQ::*;
calc def Power { in whlpwr : PowerValue; in Cd : Real; in Cf : Real; in tm : MassValue; in v : SpeedValue;
attribute drag = Cd * v;
attribute friction = Cf * tm * v;
return : PowerValue = whlpwr - drag - friction;
}
... | ERROR:no viable alternative at input 'return' (9807.sysml line : 21 column : 3)
ERROR:missing '}' at ':' (9807.sysml line : 21 column : 10)
ERROR:no viable alternative at input '}' (9807.sysml line : 22 column : 2)
ERROR:extraneous input '}' expecting EOF (9807.sysml line : 23 column : 1) | package 'Calculation Definitions' {
private import ScalarValues::Real;
private import ISQ::*;
calc def Power { in whlpwr : PowerValue; in Cd : Real; in Cf : Real; in tm : MassValue; in v : SpeedValue;
attribute drag = Cd * v;
attribute friction = Cf * tm * v;
return : PowerValue = whlpwr - drag - friction;
}
... | @@ -13,6 +13,6 @@
return : SpeedValue = v0 + a * dt;
}
calc def Position { in dt : TimeValue; in x0 : LengthValue; in v : SpeedValue;
- return : LengthValue = x0 + v * dt
+ return : LengthValue = x0 + v * dt;
}
} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'return' (9807.sysml line : 21 column : 3)
ERROR:missing '}' at ':' (9807.sysml line : 21 column : 10)
ERROR:no viable alternative at input '}' ... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'return' (9807.sysml line : 21 column : 3)
ERROR:missing '}' at ':' (9807.sysml line : 21 column : 10)
ERROR:no viable alternative at input '}' ... | 604 | CODE STATUS = INCORRECT
```sysml
package 'Calculation Definitions' {
private import ScalarValues::Real;
private import ISQ::*;
calc def Power { in whlpwr : PowerValue; in Cd : Real; in Cf : Real; in tm : MassValue; in v : SpeedValue;
attribute drag = Cd * v;
attribute friction = Cf * tm * v;
return : PowerValu... | CODE STATUS = INCORRECT
```sysml
@@ -13,6 +13,6 @@
return : SpeedValue = v0 + a * dt;
}
calc def Position { in dt : TimeValue; in x0 : LengthValue; in v : SpeedValue;
- return : LengthValue = x0 + v * dt
+ return : LengthValue = x0 + v * dt;
}
}
``` |
7,782 | src_0505 | none | none | package Vehicle_Remix_0346_f371 {
port def BatteryInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {... | none | package Vehicle_Remix_0346_f371 {
port def BatteryInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0346_f371 {
port def BatteryInput;
port def BatteryOutput;
port de... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'BatteryInput' belongs to Domain: electrical_power
- 'Bat... | 311 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
5,439 | src_1205 | syntax | delete_random_closing_bracket | package 'State Decomposition-1' {
attribute def VehicleStartSignal;
attribute def VehicleOnSignal;
attribute def VehicleOffSignal;
state def VehicleStates;
state vehicleStates : VehicleStates parallel {
state operationalStates {
entry; then off;
state off;
accept VehicleStartSignal
then starting;
... | ERROR:mismatched input '<EOF>' expecting '}' (9698.sysml line : 30 column : 3) | package 'State Decomposition-1' {
attribute def VehicleStartSignal;
attribute def VehicleOnSignal;
attribute def VehicleOffSignal;
state def VehicleStates;
state vehicleStates : VehicleStates parallel {
state operationalStates {
entry; then off;
state off;
accept VehicleStartSignal
then starting;
... | @@ -20,3 +20,4 @@
/* ... */
}
}
+} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (9698.sysml line : 30 column : 3)
Code:
```sysml
package 'State Decomposition-1' {
attribute def VehicleStartSignal;
attribute def Vehi... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (9698.sysml line : 30 column : 3)
Code:
```sysml
package 'State Decomposition-1' {
attribute def VehicleStartSignal;
attribute def Vehi... | 342 | CODE STATUS = INCORRECT
```sysml
package 'State Decomposition-1' {
attribute def VehicleStartSignal;
attribute def VehicleOnSignal;
attribute def VehicleOffSignal;
state def VehicleStates;
state vehicleStates : VehicleStates parallel {
state operationalStates {
entry; then off;
state off;
accept Vehicle... | CODE STATUS = INCORRECT
```sysml
@@ -20,3 +20,4 @@
/* ... */
}
}
+}
``` |
2,678 | src_0768 | syntax | remove_random_semicolon | package Vehicle_Remix_0609_1a30 {
port def BatteryOutput;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def SubS... | ERROR:no viable alternative at input 'part' (6326.sysml line : 15 column : 9) | package Vehicle_Remix_0609_1a30 {
port def BatteryOutput;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def SubS... | @@ -5,7 +5,7 @@
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def SubSystem_Context {
- part comp_a_93b7 : ShankCompositePort_Def
+ part comp_a_93b7 : ShankCompositePort_Def;
part comp_b_fc5d ... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (6326.sysml line : 15 column : 9)
Code:
```sysml
package Vehicle_Remix_0609_1a30 {
port def BatteryOutput;
port def ShankComposite... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (6326.sysml line : 15 column : 9)
Code:
```sysml
package Vehicle_Remix_0609_1a30 {
port def BatteryOutput;
port def ShankComposite... | 405 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0609_1a30 {
port def BatteryOutput;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def BatteryOutput_Distractor_Def { port p : B... | CODE STATUS = INCORRECT
```sysml
@@ -5,7 +5,7 @@
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def SubSystem_Context {
- part comp_a_93b7 : ShankCompositePort_Def
+ part comp_a_93b7 : ShankCompositePor... |
1,859 | src_0507 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0348_a920 {
port def LugNutPort;
port def ShankPort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p : FuelPort;
part def SubSystem_Context {
part comp_... | ERROR:mismatched input '<EOF>' expecting '}' (4239.sysml line : 24 column : 1) | package Vehicle_Remix_0348_a920 {
port def LugNutPort;
port def ShankPort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp... | @@ -4,7 +4,7 @@
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
- part def FuelPort_Distractor_Def { port p : FuelPort;
+ part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp_... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (4239.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0348_a920 {
port def LugNutPort;
port def ShankPort;
p... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (4239.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0348_a920 {
port def LugNutPort;
port def ShankPort;
p... | 409 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0348_a920 {
port def LugNutPort;
port def ShankPort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubS... | CODE STATUS = INCORRECT
```sysml
@@ -4,7 +4,7 @@
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
- part def FuelPort_Distractor_Def { port p : FuelPort;
+ part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSys... |
959 | src_0234 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0075_e271 {
port def ShaftPort_b;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShaftPort_b_Distractor_Def { port p : ShaftPort_b; }
part def SubSystem_Context {
part comp_a_a786 : FuelPort_Def;... | ERROR:mismatched input '<EOF>' expecting '}' (2055.sysml line : 22 column : 6) | package Vehicle_Remix_0075_e271 {
port def ShaftPort_b;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShaftPort_b_Distractor_Def { port p : ShaftPort_b; }
part def SubSystem_Context {
part comp_a_a786 : FuelPort_Def;... | @@ -10,3 +10,4 @@
part comp_distractor_aa0d : ShaftPort_b_Distractor_Def;
connect comp_a_a786.p to comp_b_255e.p;
}
+} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (2055.sysml line : 22 column : 6)
Code:
```sysml
package Vehicle_Remix_0075_e271 {
port def ShaftPort_b;
port def FuelPort;
p... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (2055.sysml line : 22 column : 6)
Code:
```sysml
package Vehicle_Remix_0075_e271 {
port def ShaftPort_b;
port def FuelPort;
p... | 400 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0075_e271 {
port def ShaftPort_b;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShaftPort_b_Distractor_Def { port p : ShaftPort_b; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -10,3 +10,4 @@
part comp_distractor_aa0d : ShaftPort_b_Distractor_Def;
connect comp_a_a786.p to comp_b_255e.p;
}
+}
``` |
7,482 | src_0876 | none | none | package Vehicle_Remix_0717_b65c {
port def HandPort;
port def WheelToRoadPort;
port def GearPort;
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
part def GearPort_Def { port p : GearPort; }
part def HandPort_Distractor_Def { port p : HandPort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0717_b65c {
port def HandPort;
port def WheelToRoadPort;
port def GearPort;
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
part def GearPort_Def { port p : GearPort; }
part def HandPort_Distractor_Def { port p : HandPort; }
part def SubSystem_Context {
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0717_b65c {
port def HandPort;
port def WheelToRoadPort;
port def ... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'GearPort' belongs to Domain: mechanical_torque
- 'WheelToRoadPort' belongs to Domain: mechanical_to... | 325 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,887 | src_1112 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0953_8eac {
port def MotorOutput;
port def BatteryInput;
port def ShankPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | ERROR:Domain violation: Port 'comp_a_d7ce.p' (electrical_power) cannot connect to 'comp_distractor_5d73.p' (mechanical_fastening) (line : 22) | package Vehicle_Remix_0953_8eac {
port def MotorOutput;
port def BatteryInput;
port def ShankPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | @@ -9,6 +9,6 @@
part comp_a_d7ce : BatteryInput_Def;
part comp_b_7bce : MotorOutput_Def;
part comp_distractor_5d73 : ShankPort_Distractor_Def;
- connect comp_a_d7ce.p to comp_distractor_5d73.p;
+ connect comp_a_d7ce.p to comp_b_7bce.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0953_8eac {
port def MotorOutput;
port def BatteryInput;
port def ... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'BatteryInput' belongs to Domain: electrical_power
- 'MotorOutput' belongs to Domain: electrical_pow... | 466 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0953_8eac {
port def MotorOutput;
port def BatteryInput;
port def ShankPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_d7ce : BatteryInput_Def;
part comp_b_7bce : MotorOutput_Def;
part comp_distractor_5d73 : ShankPort_Distractor_Def;
- connect comp_a_d7ce.p to comp_distractor_5d73.p;
+ connect comp_a_d7ce.p to comp_b_7bce.p;
}
}
... |
8,270 | src_0587 | none | none | package Vehicle_Remix_0428_a868 {
port def ShaftPort_d;
port def HandPort;
part def HandPort_Def { port p : HandPort; }
part def HandPort_Def { port p : HandPort; }
part def ShaftPort_d_Distractor_Def { port p : ShaftPort_d; }
part def SubSystem_Context {
part comp_a_6069 : HandPort_Def;... | none | package Vehicle_Remix_0428_a868 {
port def ShaftPort_d;
port def HandPort;
part def HandPort_Def { port p : HandPort; }
part def HandPort_Def { port p : HandPort; }
part def ShaftPort_d_Distractor_Def { port p : ShaftPort_d; }
part def SubSystem_Context {
part comp_a_6069 : HandPort_Def;... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0428_a868 {
port def ShaftPort_d;
port def HandPort;
part def Hand... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'ShaftPort_d' belongs to Domain: mechanical_torque
- 'HandPort' belongs to Domain: command_signal
V... | 305 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
1,143 | src_0292 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0133_41be {
port def MotorInput;
port def StatusPort;
port def BatteryInput;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
part def SubSystem_Context {
... | ERROR:mismatched input '<EOF>' expecting '}' (2519.sysml line : 23 column : 6) | package Vehicle_Remix_0133_41be {
port def MotorInput;
port def StatusPort;
port def BatteryInput;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
part def SubSystem_Context {
... | @@ -11,3 +11,4 @@
part comp_distractor_7a0d : StatusPort_Distractor_Def;
connect comp_a_2a65.p to comp_b_ffdf.p;
}
+} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (2519.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0133_41be {
port def MotorInput;
port def StatusPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (2519.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0133_41be {
port def MotorInput;
port def StatusPort;
... | 400 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0133_41be {
port def MotorInput;
port def StatusPort;
port def BatteryInput;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -11,3 +11,4 @@
part comp_distractor_7a0d : StatusPort_Distractor_Def;
connect comp_a_2a65.p to comp_b_ffdf.p;
}
+}
``` |
7,507 | src_0903 | none | none | package Vehicle_Remix_0744_a9c7 {
port def MotorInput;
port def DriveIF;
port def AxlePort;
part def DriveIF_Def { port p : DriveIF; }
part def AxlePort_Def { port p : AxlePort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
part comp_a_89c... | none | package Vehicle_Remix_0744_a9c7 {
port def MotorInput;
port def DriveIF;
port def AxlePort;
part def DriveIF_Def { port p : DriveIF; }
part def AxlePort_Def { port p : AxlePort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
part comp_a_89c... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0744_a9c7 {
port def MotorInput;
port def DriveIF;
port def AxlePo... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'DriveIF' belongs to Domain: mechanical_torque
- 'AxlePort' belongs to Domain: mechanical_torque
- '... | 323 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,226 | src_1005 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
part comp_a_80ff : FuelPort_D... | ERROR:Domain violation: Port 'comp_a_80ff.p' (fluid_fuel) cannot connect to 'comp_distractor_8417.p' (electrical_power) (line : 21) | package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
part comp_a_80ff : FuelPort_D... | @@ -8,6 +8,6 @@
part comp_a_80ff : FuelPort_Def;
part comp_b_d353 : FuelPort_Def;
part comp_distractor_8417 : BatteryInput_Distractor_Def;
- connect comp_a_80ff.p to comp_distractor_8417.p;
+ connect comp_a_80ff.p to comp_b_d353.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
part def Fue... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'BatteryInput' belongs to Domain: electrical_power
Valid... | 445 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -8,6 +8,6 @@
part comp_a_80ff : FuelPort_Def;
part comp_b_d353 : FuelPort_Def;
part comp_distractor_8417 : BatteryInput_Distractor_Def;
- connect comp_a_80ff.p to comp_distractor_8417.p;
+ connect comp_a_80ff.p to comp_b_d353.p;
}
}
``` |
3,088 | src_0894 | syntax | swap_keywords | package Vehicle_Remix_0735_2807 {
part def IgnitionCmdPort;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
part ... | ERROR:A port must be typed by port definitions. (7337.sysml line : 10 column : 47) | package Vehicle_Remix_0735_2807 {
port def IgnitionCmdPort;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
part ... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0735_2807 {
- part def IgnitionCmdPort;
+ port def IgnitionCmdPort;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def ShaftPort_c_Def { port p : ShaftPort_c; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (7337.sysml line : 10 column : 47)
Code:
```sysml
package Vehicle_Remix_0735_2807 {
part def IgnitionCmdPort;
port def ShaftPo... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (7337.sysml line : 10 column : 47)
Code:
```sysml
package Vehicle_Remix_0735_2807 {
part def IgnitionCmdPort;
port def ShaftPo... | 431 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0735_2807 {
port def IgnitionCmdPort;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def ... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0735_2807 {
- part def IgnitionCmdPort;
+ port def IgnitionCmdPort;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def ShaftPort_c_Def { port p : ShaftPort_c; }
``` |
2,367 | src_0670 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
port def AxlePort;
part def SetSpeedPort_Def { port p : SetSpeedPort;
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxlePort; }
part def SubSystem_Context {
... | ERROR:mismatched input '<EOF>' expecting '}' (5543.sysml line : 24 column : 1) | package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
port def AxlePort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxlePort; }
part def SubSystem_Context {
... | @@ -2,7 +2,7 @@
port def ControlPort;
port def SetSpeedPort;
port def AxlePort;
- part def SetSpeedPort_Def { port p : SetSpeedPort;
+ part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxleP... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (5543.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (5543.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
... | 413 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
port def AxlePort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxlePort; }
p... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def ControlPort;
port def SetSpeedPort;
port def AxlePort;
- part def SetSpeedPort_Def { port p : SetSpeedPort;
+ part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePor... |
4,749 | src_0305 | syntax | remove_random_semicolon | package Vehicle_Remix_0146_d64e {
port def DriverCmdPort;
port def ControlPort;
port def ShankCompositePort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
p... | ERROR:no viable alternative at input 'part' (2622.sysml line : 16 column : 9) | package Vehicle_Remix_0146_d64e {
port def DriverCmdPort;
port def ControlPort;
port def ShankCompositePort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
p... | @@ -6,7 +6,7 @@
part def ControlPort_Def { port p : ControlPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSystem_Context {
- part comp_a_dd93 : DriverCmdPort_Def
+ part comp_a_dd93 : DriverCmdPort_Def;
part comp_b_f5c3 : ControlPort_... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (2622.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0146_d64e {
port def DriverCmdPort;
port def ControlPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (2622.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0146_d64e {
port def DriverCmdPort;
port def ControlPort;
... | 411 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0146_d64e {
port def DriverCmdPort;
port def ControlPort;
port def ShankCompositePort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def ShankCompositePort_Distractor_Def { por... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def ControlPort_Def { port p : ControlPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSystem_Context {
- part comp_a_dd93 : DriverCmdPort_Def
+ part comp_a_dd93 : DriverCmdPort_Def;
... |
7,175 | src_0489 | none | none | package Vehicle_Remix_0330_ec19 {
port def MotorOutput;
port def DriverCmdPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def DriverCmdPort_Distractor_Def { port p : DriverCmdPort; }
part def SubSystem_Context {
part comp_a... | none | package Vehicle_Remix_0330_ec19 {
port def MotorOutput;
port def DriverCmdPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def DriverCmdPort_Distractor_Def { port p : DriverCmdPort; }
part def SubSystem_Context {
part comp_a... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0330_ec19 {
port def MotorOutput;
port def DriverCmdPort;
part def... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'DriverCmdPort' belongs to Domain: command_signal
- 'MotorOutput' belongs to Domain: electrical_powe... | 299 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
857 | src_0199 | syntax | rename_definition_break_usages | package Vehicle_Remix_0040_9978 {
port def DiffPort;
port def AxlePort;
port def FuelPort;
part def DiffPort_Def { port p_BROKEN : DiffPort; }
part def AxlePort_Def { port p : AxlePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp_a... | ERROR:Couldn't resolve reference to Feature 'p'. (1780.sysml line : 22 column : 29) | package Vehicle_Remix_0040_9978 {
port def DiffPort;
port def AxlePort;
port def FuelPort;
part def DiffPort_Def { port p : DiffPort; }
part def AxlePort_Def { port p : AxlePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp_a_f862 :... | @@ -2,7 +2,7 @@
port def DiffPort;
port def AxlePort;
port def FuelPort;
- part def DiffPort_Def { port p_BROKEN : DiffPort; }
+ part def DiffPort_Def { port p : DiffPort; }
part def AxlePort_Def { port p : AxlePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def ... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (1780.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0040_9978 {
port def DiffPort;
port def AxlePort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (1780.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0040_9978 {
port def DiffPort;
port def AxlePort;
... | 423 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0040_9978 {
port def DiffPort;
port def AxlePort;
port def FuelPort;
part def DiffPort_Def { port p : DiffPort; }
part def AxlePort_Def { port p : AxlePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Con... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def DiffPort;
port def AxlePort;
port def FuelPort;
- part def DiffPort_Def { port p_BROKEN : DiffPort; }
+ part def DiffPort_Def { port p : DiffPort; }
part def AxlePort_Def { port p : AxlePort; }
part def FuelPort_Distractor_Def { po... |
4,837 | src_0422 | syntax | remove_random_semicolon | package Vehicle_Remix_0263_18e3 {
port def ControlPort;
port def ShaftPort_d;
port def AxleToWheelPort
part def ShaftPort_d_Def { port p : ShaftPort_d; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def ControlPort_Distractor_Def { port p : ControlPort; }
part def SubSyste... | ERROR:no viable alternative at input 'part' (3558.sysml line : 9 column : 5) | package Vehicle_Remix_0263_18e3 {
port def ControlPort;
port def ShaftPort_d;
port def AxleToWheelPort;
part def ShaftPort_d_Def { port p : ShaftPort_d; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def ControlPort_Distractor_Def { port p : ControlPort; }
part def SubSyst... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0263_18e3 {
port def ControlPort;
port def ShaftPort_d;
- port def AxleToWheelPort
+ port def AxleToWheelPort;
part def ShaftPort_d_Def { port p : ShaftPort_d; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def ControlPort_Distract... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (3558.sysml line : 9 column : 5)
Code:
```sysml
package Vehicle_Remix_0263_18e3 {
port def ControlPort;
port def ShaftPort_d;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (3558.sysml line : 9 column : 5)
Code:
```sysml
package Vehicle_Remix_0263_18e3 {
port def ControlPort;
port def ShaftPort_d;
... | 436 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0263_18e3 {
port def ControlPort;
port def ShaftPort_d;
port def AxleToWheelPort;
part def ShaftPort_d_Def { port p : ShaftPort_d; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def ControlPort_Distractor_Def { port p : Co... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0263_18e3 {
port def ControlPort;
port def ShaftPort_d;
- port def AxleToWheelPort
+ port def AxleToWheelPort;
part def ShaftPort_d_Def { port p : ShaftPort_d; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
... |
5,954 | src_0670 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
port def AxlePort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxlePort; }
part def SubSystem_Context {
... | ERROR:Domain violation: Port 'comp_a_f9cd.p' (command_signal) cannot connect to 'comp_distractor_92ab.p' (mechanical_torque) (line : 22) | package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
port def AxlePort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxlePort; }
part def SubSystem_Context {
... | @@ -9,6 +9,6 @@
part comp_a_f9cd : SetSpeedPort_Def;
part comp_b_fc50 : ControlPort_Def;
part comp_distractor_92ab : AxlePort_Distractor_Def;
- connect comp_a_f9cd.p to comp_distractor_92ab.p;
+ connect comp_a_f9cd.p to comp_b_fc50.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
port def ... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'AxlePort' belongs to Domain: mechanical_torque
- 'ControlPort' belongs to Domain: command_signal
- ... | 478 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0511_3311 {
port def ControlPort;
port def SetSpeedPort;
port def AxlePort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxlePort; }
p... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_f9cd : SetSpeedPort_Def;
part comp_b_fc50 : ControlPort_Def;
part comp_distractor_92ab : AxlePort_Distractor_Def;
- connect comp_a_f9cd.p to comp_distractor_92ab.p;
+ connect comp_a_f9cd.p to comp_b_fc50.p;
}
}
`... |
3,403 | src_0989 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0830_58c1 {
port def MotorOutput;
port def WheelToAxlePort;
port def BatteryInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def WheelToAxlePort_Distractor_Def { port p : WheelToAxlePort; }
part def SubS... | ERROR:mismatched input '<EOF>' expecting '}' (8095.sysml line : 23 column : 6) | package Vehicle_Remix_0830_58c1 {
port def MotorOutput;
port def WheelToAxlePort;
port def BatteryInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def WheelToAxlePort_Distractor_Def { port p : WheelToAxlePort; }
part def SubS... | @@ -11,3 +11,4 @@
part comp_distractor_3bc6 : WheelToAxlePort_Distractor_Def;
connect comp_a_0a4d.p to comp_b_ae30.p;
}
+} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (8095.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0830_58c1 {
port def MotorOutput;
port def WheelToAxlePort... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (8095.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0830_58c1 {
port def MotorOutput;
port def WheelToAxlePort... | 432 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0830_58c1 {
port def MotorOutput;
port def WheelToAxlePort;
port def BatteryInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def WheelToAxlePort_Distractor_Def { port p : Whe... | CODE STATUS = INCORRECT
```sysml
@@ -11,3 +11,4 @@
part comp_distractor_3bc6 : WheelToAxlePort_Distractor_Def;
connect comp_a_0a4d.p to comp_b_ae30.p;
}
+}
``` |
5,609 | src_0242 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0083_5548 {
port def TireOutput;
port def WheelToAxlePort;
port def LugNutCompositePort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def TireOutput_Def { port p : TireOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }... | ERROR:Domain violation: Port 'comp_a_8143.p' (mechanical_torque) cannot connect to 'comp_distractor_8698.p' (mechanical_fastening) (line : 22) | package Vehicle_Remix_0083_5548 {
port def TireOutput;
port def WheelToAxlePort;
port def LugNutCompositePort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def TireOutput_Def { port p : TireOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }... | @@ -9,6 +9,6 @@
part comp_a_8143 : WheelToAxlePort_Def;
part comp_b_cf0b : TireOutput_Def;
part comp_distractor_8698 : LugNutCompositePort_Distractor_Def;
- connect comp_a_8143.p to comp_distractor_8698.p;
+ connect comp_a_8143.p to comp_b_cf0b.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0083_5548 {
port def TireOutput;
port def WheelToAxlePort;
port de... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'TireOutput' belongs to Domain: mechanical_torque
- 'WheelToAxlePort' belongs to Domain: mechanical_... | 524 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0083_5548 {
port def TireOutput;
port def WheelToAxlePort;
port def LugNutCompositePort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def TireOutput_Def { port p : TireOutput; }
part def LugNutCompositePort_Distractor_Def ... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_8143 : WheelToAxlePort_Def;
part comp_b_cf0b : TireOutput_Def;
part comp_distractor_8698 : LugNutCompositePort_Distractor_Def;
- connect comp_a_8143.p to comp_distractor_8698.p;
+ connect comp_a_8143.p to comp_b_cf0b.p... |
5,779 | src_0453 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0294_815a {
port def FuelPort;
port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSystem_Context {
part comp_a... | ERROR:Domain violation: Port 'comp_a_fb3e.p' (fluid_fuel) cannot connect to 'comp_distractor_4bc2.p' (mechanical_fastening) (line : 21) | package Vehicle_Remix_0294_815a {
port def FuelPort;
port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSystem_Context {
part comp_a... | @@ -8,6 +8,6 @@
part comp_a_fb3e : FuelPort_Def;
part comp_b_a246 : FuelPort_Def;
part comp_distractor_4bc2 : ShankCompositePort_Distractor_Def;
- connect comp_a_fb3e.p to comp_distractor_4bc2.p;
+ connect comp_a_fb3e.p to comp_b_a246.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0294_815a {
port def FuelPort;
port def ShankCompositePort;
part d... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'ShankCompositePort' belongs to Domain: mechanical_fasten... | 452 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0294_815a {
port def FuelPort;
port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSys... | CODE STATUS = INCORRECT
```sysml
@@ -8,6 +8,6 @@
part comp_a_fb3e : FuelPort_Def;
part comp_b_a246 : FuelPort_Def;
part comp_distractor_4bc2 : ShankCompositePort_Distractor_Def;
- connect comp_a_fb3e.p to comp_distractor_4bc2.p;
+ connect comp_a_fb3e.p to comp_b_a246.p;
}
... |
5,646 | src_0288 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;
port def MotorInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | ERROR:Domain violation: Port 'comp_a_0f14.p' (electrical_power) cannot connect to 'comp_distractor_a3d9.p' (mechanical_fastening) (line : 22) | package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;
port def MotorInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | @@ -9,6 +9,6 @@
part comp_a_0f14 : MotorOutput_Def;
part comp_b_03a6 : MotorInput_Def;
part comp_distractor_a3d9 : ShankPort_Distractor_Def;
- connect comp_a_0f14.p to comp_distractor_a3d9.p;
+ connect comp_a_0f14.p to comp_b_03a6.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;
port def Mot... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'MotorInput' belongs to Domain: electrical_power
- 'MotorOutput' belongs to Domain: electrical_power... | 476 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;
port def MotorInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_0f14 : MotorOutput_Def;
part comp_b_03a6 : MotorInput_Def;
part comp_distractor_a3d9 : ShankPort_Distractor_Def;
- connect comp_a_0f14.p to comp_distractor_a3d9.p;
+ connect comp_a_0f14.p to comp_b_03a6.p;
}
}
``... |
1,657 | src_0449 | syntax | rename_definition_break_usages | package Vehicle_Remix_0290_1ea1 {
port def BatteryOutput;
port def DrivePwrPort;
part def BatteryOutput_Def { port p_BROKEN : BatteryOutput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def DrivePwrPort_Distractor_Def { port p : DrivePwrPort; }
part def SubSystem_Context {
... | ERROR:Couldn't resolve reference to Feature 'p'. (3780.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (3780.sysml line : 21 column : 46) | package Vehicle_Remix_0290_1ea1 {
port def BatteryOutput;
port def DrivePwrPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def DrivePwrPort_Distractor_Def { port p : DrivePwrPort; }
part def SubSystem_Context {
part... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0290_1ea1 {
port def BatteryOutput;
port def DrivePwrPort;
- part def BatteryOutput_Def { port p_BROKEN : BatteryOutput; }
+ part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def DrivePwrPor... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (3780.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (3780.sysml line : 21 column : 46)
Code:
```sysm... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (3780.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (3780.sysml line : 21 column : 46)
Code:
```sysm... | 445 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0290_1ea1 {
port def BatteryOutput;
port def DrivePwrPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def DrivePwrPort_Distractor_Def { port p : DrivePwrPort; }
part def... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0290_1ea1 {
port def BatteryOutput;
port def DrivePwrPort;
- part def BatteryOutput_Def { port p_BROKEN : BatteryOutput; }
+ part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryOutput_Def { port p : BatteryOu... |
3,762 | src_1106 | syntax | remove_random_semicolon | package Vehicle_Remix_0947_ce89 {
port def MotorOutput;
port def BatteryOutput;
port def WheelHubIF;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF; }
part def SubSystem_Contex... | ERROR:no viable alternative at input 'part' (9030.sysml line : 16 column : 9) | package Vehicle_Remix_0947_ce89 {
port def MotorOutput;
port def BatteryOutput;
port def WheelHubIF;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF; }
part def SubSystem_Contex... | @@ -6,7 +6,7 @@
part def MotorOutput_Def { port p : MotorOutput; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF; }
part def SubSystem_Context {
- part comp_a_74d7 : BatteryOutput_Def
+ part comp_a_74d7 : BatteryOutput_Def;
part comp_b_8a0a : MotorOutput_Def;
pa... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (9030.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0947_ce89 {
port def MotorOutput;
port def BatteryOutput;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (9030.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0947_ce89 {
port def MotorOutput;
port def BatteryOutput;
... | 411 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0947_ce89 {
port def MotorOutput;
port def BatteryOutput;
port def WheelHubIF;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def MotorOutput_Def { port p : MotorOutput; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF; }
part def SubSystem_Context {
- part comp_a_74d7 : BatteryOutput_Def
+ part comp_a_74d7 : BatteryOutput_Def;
part comp_b_8a... |
5,397 | src_1128 | syntax | remove_random_semicolon | package Vehicle_Remix_0969_a8c2 {
port def FuelCmdPort;
port def StatusPort
port def MotorInput;
part def StatusPort_Def { port p : StatusPort; }
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
... | ERROR:no viable alternative at input 'port' (9206.sysml line : 6 column : 5) | package Vehicle_Remix_0969_a8c2 {
port def FuelCmdPort;
port def StatusPort;
port def MotorInput;
part def StatusPort_Def { port p : StatusPort; }
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
... | @@ -1,6 +1,6 @@
package Vehicle_Remix_0969_a8c2 {
port def FuelCmdPort;
- port def StatusPort
+ port def StatusPort;
port def MotorInput;
part def StatusPort_Def { port p : StatusPort; }
part def FuelCmdPort_Def { port p : FuelCmdPort; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'port' (9206.sysml line : 6 column : 5)
Code:
```sysml
package Vehicle_Remix_0969_a8c2 {
port def FuelCmdPort;
port def StatusPort
po... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'port' (9206.sysml line : 6 column : 5)
Code:
```sysml
package Vehicle_Remix_0969_a8c2 {
port def FuelCmdPort;
port def StatusPort
po... | 414 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0969_a8c2 {
port def FuelCmdPort;
port def StatusPort;
port def MotorInput;
part def StatusPort_Def { port p : StatusPort; }
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
p... | CODE STATUS = INCORRECT
```sysml
@@ -1,6 +1,6 @@
package Vehicle_Remix_0969_a8c2 {
port def FuelCmdPort;
- port def StatusPort
+ port def StatusPort;
port def MotorInput;
part def StatusPort_Def { port p : StatusPort; }
part def FuelCmdPort_Def { port p : FuelCmdPort; }
``` |
7,978 | src_0226 | none | none | package Vehicle_Remix_0067_51e3 {
port def BatteryOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def SubSystem_Context {
part comp_a_4120 : FuelPor... | none | package Vehicle_Remix_0067_51e3 {
port def BatteryOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def SubSystem_Context {
part comp_a_4120 : FuelPor... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0067_51e3 {
port def BatteryOutput;
port def FuelPort;
part def Fu... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'BatteryOutput' belongs to Domain: electrical_power
Vali... | 299 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
7,956 | src_0196 | none | none | package Vehicle_Remix_0037_efd5 {
port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def LugNutPort_Def { port p : LugNutPort; }
part def ShankPort_Def { port p : ShankPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0037_efd5 {
port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def LugNutPort_Def { port p : LugNutPort; }
part def ShankPort_Def { port p : ShankPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0037_efd5 {
port def MotorOutput;
port def LugNutPort;
port def Sh... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'MotorOutput' belongs to Domain: electrical_power
- 'LugNutPort' belongs to Domain: mechanical_faste... | 321 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
5,511 | src_0141 | domain | mismatch_quantity_kind_type | package CartSample {
private import StateSpaceRepresentation::*;
part def Cart {
attribute mass :> ISQ::mass;
attribute def CartInput :> Input {
attribute force :> ISQ::mass;
}
attribute def CartOutput :> Output {
attribute velocity :> ISQ::speed;
... | ERROR:Type mismatch: Attribute 'force' declared as 'ISQ::mass' but should be 'ISQ::force' based on semantic meaning (line : 28) | package CartSample {
private import StateSpaceRepresentation::*;
part def Cart {
attribute mass :> ISQ::mass;
attribute def CartInput :> Input {
attribute force :> ISQ::force;
}
attribute def CartOutput :> Output {
attribute velocity :> ISQ::speed;
... | @@ -3,7 +3,7 @@
part def Cart {
attribute mass :> ISQ::mass;
attribute def CartInput :> Input {
- attribute force :> ISQ::mass;
+ attribute force :> ISQ::force;
}
attribute def CartOutput :> Output {
attribute velocity :> ISQ::speed; | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package CartSample {
private import StateSpaceRepresentation::*;
part def Cart {
att... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
Code:
```sysml
package CartSample {
private import StateSpaceRepresentation::*;
part def Car... | 804 | CODE STATUS = INCORRECT
```sysml
package CartSample {
private import StateSpaceRepresentation::*;
part def Cart {
attribute mass :> ISQ::mass;
attribute def CartInput :> Input {
attribute force :> ISQ::force;
}
attribute def CartOutput :> Output {
attribut... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
part def Cart {
attribute mass :> ISQ::mass;
attribute def CartInput :> Input {
- attribute force :> ISQ::mass;
+ attribute force :> ISQ::force;
}
attribute def CartOutput :> Output {
attribute v... |
7,669 | src_1109 | none | none | package Vehicle_Remix_0950_9c34 {
port def MotorInput;
port def ShankPort;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSyst... | none | package Vehicle_Remix_0950_9c34 {
port def MotorInput;
port def ShankPort;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSyst... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0950_9c34 {
port def MotorInput;
port def ShankPort;
port def Shan... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'MotorInput' belongs to Domain: electrical_power
- 'ShankPort' belongs to Domain: mechanical_fasteni... | 325 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
263 | src_0039 | syntax | swap_keywords | package 'system-of-systems' {
/* This package defines a system-of-systems as
* an aggregation of systems in the context of
* their respective owning enterprises using
* SysMLv2 notation
*/
part def Enterprise;
part def System_a;
part def System_b;
part def System_c;
individual port def Enterprise_alpha ... | ERROR:no viable alternative at input 'def' (420.sysml line : 14 column : 18) | package 'system-of-systems' {
/* This package defines a system-of-systems as
* an aggregation of systems in the context of
* their respective owning enterprises using
* SysMLv2 notation
*/
part def Enterprise;
part def System_a;
part def System_b;
part def System_c;
individual part def Enterprise_alpha ... | @@ -8,7 +8,7 @@
part def System_a;
part def System_b;
part def System_c;
- individual port def Enterprise_alpha :> Enterprise {
+ individual part def Enterprise_alpha :> Enterprise {
part system_a_alpha : System_a;
}
individual part def Enterprise_beta { | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'def' (420.sysml line : 14 column : 18)
Code:
```sysml
package 'system-of-systems' {
/* This package defines a system-of-systems as
* an aggre... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'def' (420.sysml line : 14 column : 18)
Code:
```sysml
package 'system-of-systems' {
/* This package defines a system-of-systems as
* an aggre... | 903 | CODE STATUS = INCORRECT
```sysml
package 'system-of-systems' {
/* This package defines a system-of-systems as
* an aggregation of systems in the context of
* their respective owning enterprises using
* SysMLv2 notation
*/
part def Enterprise;
part def System_a;
part def System_b;
part def System_c;
indi... | CODE STATUS = INCORRECT
```sysml
@@ -8,7 +8,7 @@
part def System_a;
part def System_b;
part def System_c;
- individual port def Enterprise_alpha :> Enterprise {
+ individual part def Enterprise_alpha :> Enterprise {
part system_a_alpha : System_a;
}
individual part def Enterprise_beta {
``` |
3,782 | src_1114 | syntax | remove_random_semicolon | package Vehicle_Remix_0955_c6cb {
port def ShankPort;
port def LugNutCompositePort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_... | ERROR:no viable alternative at input 'connect' (9094.sysml line : 22 column : 9)
ERROR:no viable alternative at input '.' (9094.sysml line : 22 column : 28)
ERROR:no viable alternative at input 'to' (9094.sysml line : 22 column : 31)
ERROR:no viable alternative at input '.' (9094.sysml line : 22 column : 45) | package Vehicle_Remix_0955_c6cb {
port def ShankPort;
port def LugNutCompositePort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_... | @@ -8,7 +8,7 @@
part def SubSystem_Context {
part comp_a_346f : ShankPort_Def;
part comp_b_58ce : LugNutCompositePort_Def;
- part comp_distractor_a8fb : FuelPort_Distractor_Def
+ part comp_distractor_a8fb : FuelPort_Distractor_Def;
connect comp_a_346f.p to comp_b_58ce.p;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'connect' (9094.sysml line : 22 column : 9)
ERROR:no viable alternative at input '.' (9094.sysml line : 22 column : 28)
ERROR:no viable alternat... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'connect' (9094.sysml line : 22 column : 9)
ERROR:no viable alternative at input '.' (9094.sysml line : 22 column : 28)
ERROR:no viable alternat... | 497 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0955_c6cb {
port def ShankPort;
port def LugNutCompositePort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : Fu... | CODE STATUS = INCORRECT
```sysml
@@ -8,7 +8,7 @@
part def SubSystem_Context {
part comp_a_346f : ShankPort_Def;
part comp_b_58ce : LugNutCompositePort_Def;
- part comp_distractor_a8fb : FuelPort_Distractor_Def
+ part comp_distractor_a8fb : FuelPort_Distractor_Def;
connect c... |
1,137 | src_0288 | syntax | rename_definition_break_usages | package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;
port def MotorInput;
part def MotorOutput_Def { port p_BROKEN : MotorOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | ERROR:Couldn't resolve reference to Feature 'p'. (2492.sysml line : 22 column : 29) | package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;
port def MotorInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | @@ -2,7 +2,7 @@
port def MotorOutput;
port def ShankPort;
port def MotorInput;
- part def MotorOutput_Def { port p_BROKEN : MotorOutput; }
+ part def MotorOutput_Def { port p : MotorOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : Sha... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (2492.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (2492.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;... | 417 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0129_311d {
port def MotorOutput;
port def ShankPort;
port def MotorInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def MotorOutput;
port def ShankPort;
port def MotorInput;
- part def MotorOutput_Def { port p_BROKEN : MotorOutput; }
+ part def MotorOutput_Def { port p : MotorOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankP... |
1,548 | src_0417 | syntax | swap_keywords | package Vehicle_Remix_0258_26b0 {
part def ShankPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
part comp_a_cf7d : FuelPort_Def;
... | ERROR:A port must be typed by port definitions. (3521.sysml line : 10 column : 41) | package Vehicle_Remix_0258_26b0 {
port def ShankPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
part comp_a_cf7d : FuelPort_Def;
... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0258_26b0 {
- part def ShankPort;
+ port def ShankPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (3521.sysml line : 10 column : 41)
Code:
```sysml
package Vehicle_Remix_0258_26b0 {
part def ShankPort;
port def FuelPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (3521.sysml line : 10 column : 41)
Code:
```sysml
package Vehicle_Remix_0258_26b0 {
part def ShankPort;
port def FuelPort;
... | 393 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0258_26b0 {
port def ShankPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
part ... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0258_26b0 {
- part def ShankPort;
+ port def ShankPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
``` |
4,470 | src_1311 | syntax | remove_random_semicolon | package '15_11-Variable Length Collection Types' {
private import ScalarValues::*;
private import Collections::*;
part def SparePart;
part def Person;
/* Examples of declaring syntactic sugar-like names for instantiating collection types. */
attribute def 'Bag<SparePart>' :> Bag {
ref part :>> elements: SparePa... | ERROR:no viable alternative at input '}' (10494.sysml line : 15 column : 23)
ERROR:no viable alternative at input '}' (10494.sysml line : 16 column : 2)
ERROR:mismatched input '<EOF>' expecting '}' (10494.sysml line : 36 column : 1) | package '15_11-Variable Length Collection Types' {
private import ScalarValues::*;
private import Collections::*;
part def SparePart;
part def Person;
/* Examples of declaring syntactic sugar-like names for instantiating collection types. */
attribute def 'Bag<SparePart>' :> Bag {
ref part :>> elements: SparePa... | @@ -8,7 +8,7 @@
ref part :>> elements: SparePart;
}
attribute def 'List<Integer>' :> List {
- value :>> elements: Integer
+ value :>> elements: Integer;
}
attribute def 'Set<String>' :> Set {
attribute :>> elements: String; | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input '}' (10494.sysml line : 15 column : 23)
ERROR:no viable alternative at input '}' (10494.sysml line : 16 column : 2)
ERROR:mismatched input '<EOF... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input '}' (10494.sysml line : 15 column : 23)
ERROR:no viable alternative at input '}' (10494.sysml line : 16 column : 2)
ERROR:mismatched input '<EOF... | 587 | CODE STATUS = INCORRECT
```sysml
package '15_11-Variable Length Collection Types' {
private import ScalarValues::*;
private import Collections::*;
part def SparePart;
part def Person;
/* Examples of declaring syntactic sugar-like names for instantiating collection types. */
attribute def 'Bag<SparePart>' :> Bag {... | CODE STATUS = INCORRECT
```sysml
@@ -8,7 +8,7 @@
ref part :>> elements: SparePart;
}
attribute def 'List<Integer>' :> List {
- value :>> elements: Integer
+ value :>> elements: Integer;
}
attribute def 'Set<String>' :> Set {
attribute :>> elements: String;
``` |
6,907 | src_0160 | none | none | package Vehicle_Remix_0001_8093 {
port def DiffPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def DiffPort_Distractor_Def { port p : DiffPort; }
part def SubSystem_Context {
part comp_a_9b8a : FuelPort_Def;
... | none | package Vehicle_Remix_0001_8093 {
port def DiffPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def DiffPort_Distractor_Def { port p : DiffPort; }
part def SubSystem_Context {
part comp_a_9b8a : FuelPort_Def;
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0001_8093 {
port def DiffPort;
port def FuelPort;
part def FuelPor... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'DiffPort' belongs to Domain: mechanical_torque
- 'FuelPort' belongs to Domain: fluid_fuel
Valid Co... | 297 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
7,938 | src_0175 | none | none | package Vehicle_Remix_0016_7106 {
port def AxleMountIF;
port def AxlePort;
port def ControlPort;
part def AxlePort_Def { port p : AxlePort; }
part def AxleMountIF_Def { port p : AxleMountIF; }
part def ControlPort_Distractor_Def { port p : ControlPort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0016_7106 {
port def AxleMountIF;
port def AxlePort;
port def ControlPort;
part def AxlePort_Def { port p : AxlePort; }
part def AxleMountIF_Def { port p : AxleMountIF; }
part def ControlPort_Distractor_Def { port p : ControlPort; }
part def SubSystem_Context {
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0016_7106 {
port def AxleMountIF;
port def AxlePort;
port def Cont... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'AxleMountIF' belongs to Domain: mechanical_torque
- 'AxlePort' belongs to Domain: mechanical_torque... | 332 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
1,752 | src_0476 | syntax | swap_keywords | package Vehicle_Remix_0317_5639 {
part def IgnitionCmdPort;
port def SetSpeedPort;
port def WheelHubIF;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def IgnitionCmdPort_Def { port p : IgnitionCmdPort; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF; }
part def SubSyst... | ERROR:A port must be typed by port definitions. (3993.sysml line : 10 column : 36) | package Vehicle_Remix_0317_5639 {
port def IgnitionCmdPort;
port def SetSpeedPort;
port def WheelHubIF;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def IgnitionCmdPort_Def { port p : IgnitionCmdPort; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF; }
part def SubSyst... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0317_5639 {
- part def IgnitionCmdPort;
+ port def IgnitionCmdPort;
port def SetSpeedPort;
port def WheelHubIF;
part def SetSpeedPort_Def { port p : SetSpeedPort; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (3993.sysml line : 10 column : 36)
Code:
```sysml
package Vehicle_Remix_0317_5639 {
part def IgnitionCmdPort;
port def SetSpee... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (3993.sysml line : 10 column : 36)
Code:
```sysml
package Vehicle_Remix_0317_5639 {
part def IgnitionCmdPort;
port def SetSpee... | 443 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0317_5639 {
port def IgnitionCmdPort;
port def SetSpeedPort;
port def WheelHubIF;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def IgnitionCmdPort_Def { port p : IgnitionCmdPort; }
part def WheelHubIF_Distractor_Def { port p : W... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0317_5639 {
- part def IgnitionCmdPort;
+ port def IgnitionCmdPort;
port def SetSpeedPort;
port def WheelHubIF;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
``` |
1,344 | src_0352 | syntax | swap_keywords | package Vehicle_Remix_0193_90cf {
part def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
part comp_a_0e51 : FuelPort_Def;
... | ERROR:A port must be typed by port definitions. (3001.sysml line : 10 column : 42) | package Vehicle_Remix_0193_90cf {
port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
part comp_a_0e51 : FuelPort_Def;
... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0193_90cf {
- part def LugNutPort;
+ port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (3001.sysml line : 10 column : 42)
Code:
```sysml
package Vehicle_Remix_0193_90cf {
part def LugNutPort;
port def FuelPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (3001.sysml line : 10 column : 42)
Code:
```sysml
package Vehicle_Remix_0193_90cf {
part def LugNutPort;
port def FuelPort;
... | 403 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0193_90cf {
port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
pa... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0193_90cf {
- part def LugNutPort;
+ port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
``` |
4,833 | src_0419 | syntax | remove_random_semicolon | package Vehicle_Remix_0260_a6a7 {
port def DriverCmdPort;
port def SetSpeedPort;
port def LugNutCompositePort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }... | ERROR:no viable alternative at input 'part' (3534.sysml line : 19 column : 9) | package Vehicle_Remix_0260_a6a7 {
port def DriverCmdPort;
port def SetSpeedPort;
port def LugNutCompositePort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }... | @@ -7,7 +7,7 @@
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_Context {
part comp_a_fa6a : SetSpeedPort_Def;
- part comp_b_d569 : DriverCmdPort_Def
+ part comp_b_d569 : DriverCmdPort_Def;
part comp_distractor_b145 : LugNutCompo... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (3534.sysml line : 19 column : 9)
Code:
```sysml
package Vehicle_Remix_0260_a6a7 {
port def DriverCmdPort;
port def SetSpeedPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (3534.sysml line : 19 column : 9)
Code:
```sysml
package Vehicle_Remix_0260_a6a7 {
port def DriverCmdPort;
port def SetSpeedPort;
... | 429 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0260_a6a7 {
port def DriverCmdPort;
port def SetSpeedPort;
port def LugNutCompositePort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def LugNutCompositePort_Distractor_Def ... | CODE STATUS = INCORRECT
```sysml
@@ -7,7 +7,7 @@
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_Context {
part comp_a_fa6a : SetSpeedPort_Def;
- part comp_b_d569 : DriverCmdPort_Def
+ part comp_b_d569 : DriverCmdPort_Def;
part c... |
1,395 | src_0367 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0208_07db {
port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
part comp_a_5f9b : FuelPort_Def;
... | ERROR:mismatched input '<EOF>' expecting '}' (3119.sysml line : 23 column : 1) | package Vehicle_Remix_0208_07db {
port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
part comp_a_5f9b : FuelPort_Def;
... | @@ -9,4 +9,5 @@
part comp_b_f0d0 : FuelPort_Def;
part comp_distractor_5caf : LugNutPort_Distractor_Def;
connect comp_a_5f9b.p to comp_b_f0d0.p;
+ }
} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (3119.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0208_07db {
port def LugNutPort;
port def FuelPort;
pa... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (3119.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0208_07db {
port def LugNutPort;
port def FuelPort;
pa... | 399 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0208_07db {
port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
pa... | CODE STATUS = INCORRECT
```sysml
@@ -9,4 +9,5 @@
part comp_b_f0d0 : FuelPort_Def;
part comp_distractor_5caf : LugNutPort_Distractor_Def;
connect comp_a_5f9b.p to comp_b_f0d0.p;
+ }
}
``` |
6,265 | src_1056 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0897_affb {
port def MotorInput;
port def TireInput;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def TireInput_Def { port p : TireInput; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
... | ERROR:Domain violation: Port 'comp_a_b99c.p' (mechanical_torque) cannot connect to 'comp_distractor_e131.p' (electrical_power) (line : 22) | package Vehicle_Remix_0897_affb {
port def MotorInput;
port def TireInput;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def TireInput_Def { port p : TireInput; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
... | @@ -9,6 +9,6 @@
part comp_a_b99c : ShaftPort_c_Def;
part comp_b_d53e : TireInput_Def;
part comp_distractor_e131 : MotorInput_Distractor_Def;
- connect comp_a_b99c.p to comp_distractor_e131.p;
+ connect comp_a_b99c.p to comp_b_d53e.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0897_affb {
port def MotorInput;
port def TireInput;
port def Shaf... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'TireInput' belongs to Domain: mechanical_torque
- 'ShaftPort_c' belongs to Domain: mechanical_torqu... | 474 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0897_affb {
port def MotorInput;
port def TireInput;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def TireInput_Def { port p : TireInput; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_b99c : ShaftPort_c_Def;
part comp_b_d53e : TireInput_Def;
part comp_distractor_e131 : MotorInput_Distractor_Def;
- connect comp_a_b99c.p to comp_distractor_e131.p;
+ connect comp_a_b99c.p to comp_b_d53e.p;
}
}
``... |
1,566 | src_0424 | syntax | remove_random_semicolon | package Vehicle_Remix_0265_446a {
port def ControlPort;
port def BatteryOutput;
port def IgnitionCmdPort;
part def IgnitionCmdPort_Def { port p : IgnitionCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def S... | ERROR:no viable alternative at input 'connect' (3574.sysml line : 22 column : 9)
ERROR:no viable alternative at input '.' (3574.sysml line : 22 column : 28)
ERROR:no viable alternative at input 'to' (3574.sysml line : 22 column : 31)
ERROR:no viable alternative at input '.' (3574.sysml line : 22 column : 45) | package Vehicle_Remix_0265_446a {
port def ControlPort;
port def BatteryOutput;
port def IgnitionCmdPort;
part def IgnitionCmdPort_Def { port p : IgnitionCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def S... | @@ -8,7 +8,7 @@
part def SubSystem_Context {
part comp_a_8155 : IgnitionCmdPort_Def;
part comp_b_665f : ControlPort_Def;
- part comp_distractor_dfe1 : BatteryOutput_Distractor_Def
+ part comp_distractor_dfe1 : BatteryOutput_Distractor_Def;
connect comp_a_8155.p to comp_b_66... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'connect' (3574.sysml line : 22 column : 9)
ERROR:no viable alternative at input '.' (3574.sysml line : 22 column : 28)
ERROR:no viable alternat... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'connect' (3574.sysml line : 22 column : 9)
ERROR:no viable alternative at input '.' (3574.sysml line : 22 column : 28)
ERROR:no viable alternat... | 505 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0265_446a {
port def ControlPort;
port def BatteryOutput;
port def IgnitionCmdPort;
part def IgnitionCmdPort_Def { port p : IgnitionCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def BatteryOutput_Distractor_Def { port p ... | CODE STATUS = INCORRECT
```sysml
@@ -8,7 +8,7 @@
part def SubSystem_Context {
part comp_a_8155 : IgnitionCmdPort_Def;
part comp_b_665f : ControlPort_Def;
- part comp_distractor_dfe1 : BatteryOutput_Distractor_Def
+ part comp_distractor_dfe1 : BatteryOutput_Distractor_Def;
c... |
4,438 | src_1302 | syntax | rename_definition_break_usages | package '15_01-Constants' {
private import MeasurementReferences::*;
private import SI::*;
private import RealFunctions::*;
/* Note: Value properties that are bound to specific values are constants and have the specified
* values in all contexts. It is not legal to redefine them.
*/
pa... | ERROR:Couldn't resolve reference to Element 'e'. (10434.sysml line : 23 column : 36) | package '15_01-Constants' {
private import MeasurementReferences::*;
private import SI::*;
private import RealFunctions::*;
/* Note: Value properties that are bound to specific values are constants and have the specified
* values in all contexts. It is not legal to redefine them.
*/
pa... | @@ -16,7 +16,7 @@
*
* (The decimal literals here should be interpreted as being fixed point and exact.)
*/
- attribute e_BROKEN: Real {
+ attribute e: Real {
assert constraint { round(e * 1E20) == 271828182845904523536.0 }
}
attribute pi: Real { | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Element 'e'. (10434.sysml line : 23 column : 36)
Code:
```sysml
package '15_01-Constants' {
private import MeasurementReferences::*;
priva... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Element 'e'. (10434.sysml line : 23 column : 36)
Code:
```sysml
package '15_01-Constants' {
private import MeasurementReferences::*;
priva... | 1,104 | CODE STATUS = INCORRECT
```sysml
package '15_01-Constants' {
private import MeasurementReferences::*;
private import SI::*;
private import RealFunctions::*;
/* Note: Value properties that are bound to specific values are constants and have the specified
* values in all contexts. It is not legal to ... | CODE STATUS = INCORRECT
```sysml
@@ -16,7 +16,7 @@
*
* (The decimal literals here should be interpreted as being fixed point and exact.)
*/
- attribute e_BROKEN: Real {
+ attribute e: Real {
assert constraint { round(e * 1E20) == 271828182845904523536.0 }
}
... |
815 | src_0188 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0029_e82d {
port def MotorInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
part comp_a_31ba : FuelPort_Def;
... | ERROR:mismatched input '<EOF>' expecting '}' (1687.sysml line : 23 column : 1) | package Vehicle_Remix_0029_e82d {
port def MotorInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
part comp_a_31ba : FuelPort_Def;
... | @@ -9,4 +9,5 @@
part comp_b_7c2b : FuelPort_Def;
part comp_distractor_93a4 : MotorInput_Distractor_Def;
connect comp_a_31ba.p to comp_b_7c2b.p;
+ }
} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (1687.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0029_e82d {
port def MotorInput;
port def FuelPort;
pa... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (1687.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0029_e82d {
port def MotorInput;
port def FuelPort;
pa... | 395 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0029_e82d {
port def MotorInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
pa... | CODE STATUS = INCORRECT
```sysml
@@ -9,4 +9,5 @@
part comp_b_7c2b : FuelPort_Def;
part comp_distractor_93a4 : MotorInput_Distractor_Def;
connect comp_a_31ba.p to comp_b_7c2b.p;
+ }
}
``` |
1,487 | src_0396 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0237_4759 {
port def SpeedSensorPort;
port def HandPort;
port def FuelPort;
part def HandPort_Def { port p : HandPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def { port p : FuelPort;
part def SubSystem_Context {
... | ERROR:mismatched input '<EOF>' expecting '}' (3351.sysml line : 24 column : 1) | package Vehicle_Remix_0237_4759 {
port def SpeedSensorPort;
port def HandPort;
port def FuelPort;
part def HandPort_Def { port p : HandPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | @@ -4,7 +4,7 @@
port def FuelPort;
part def HandPort_Def { port p : HandPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
- part def FuelPort_Distractor_Def { port p : FuelPort;
+ part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
pa... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (3351.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0237_4759 {
port def SpeedSensorPort;
port def HandPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (3351.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0237_4759 {
port def SpeedSensorPort;
port def HandPort;
... | 415 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0237_4759 {
port def SpeedSensorPort;
port def HandPort;
port def FuelPort;
part def HandPort_Def { port p : HandPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
p... | CODE STATUS = INCORRECT
```sysml
@@ -4,7 +4,7 @@
port def FuelPort;
part def HandPort_Def { port p : HandPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
- part def FuelPort_Distractor_Def { port p : FuelPort;
+ part def FuelPort_Distractor_Def { port p : FuelPort; }
part de... |
6,308 | src_1114 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0955_c6cb {
port def ShankPort;
port def LugNutCompositePort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_... | ERROR:Domain violation: Port 'comp_a_346f.p' (mechanical_fastening) cannot connect to 'comp_distractor_a8fb.p' (fluid_fuel) (line : 22) | package Vehicle_Remix_0955_c6cb {
port def ShankPort;
port def LugNutCompositePort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_... | @@ -9,6 +9,6 @@
part comp_a_346f : ShankPort_Def;
part comp_b_58ce : LugNutCompositePort_Def;
part comp_distractor_a8fb : FuelPort_Distractor_Def;
- connect comp_a_346f.p to comp_distractor_a8fb.p;
+ connect comp_a_346f.p to comp_b_58ce.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0955_c6cb {
port def ShankPort;
port def LugNutCompositePort;
port... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'LugNutCompositePort' belongs to Domain: mechanical_faste... | 488 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0955_c6cb {
port def ShankPort;
port def LugNutCompositePort;
port def FuelPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : Fu... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_346f : ShankPort_Def;
part comp_b_58ce : LugNutCompositePort_Def;
part comp_distractor_a8fb : FuelPort_Distractor_Def;
- connect comp_a_346f.p to comp_distractor_a8fb.p;
+ connect comp_a_346f.p to comp_b_58ce.p;
}... |
2,142 | src_0602 | syntax | remove_random_semicolon | package Vehicle_Remix_0443_49e5 {
port def DiffPort
port def DrivePwrPort;
port def FuelPort;
part def DiffPort_Def { port p : DiffPort; }
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part co... | ERROR:no viable alternative at input 'port' (4998.sysml line : 5 column : 5) | package Vehicle_Remix_0443_49e5 {
port def DiffPort;
port def DrivePwrPort;
port def FuelPort;
part def DiffPort_Def { port p : DiffPort; }
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part c... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0443_49e5 {
- port def DiffPort
+ port def DiffPort;
port def DrivePwrPort;
port def FuelPort;
part def DiffPort_Def { port p : DiffPort; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'port' (4998.sysml line : 5 column : 5)
Code:
```sysml
package Vehicle_Remix_0443_49e5 {
port def DiffPort
port def DrivePwrPort;
por... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'port' (4998.sysml line : 5 column : 5)
Code:
```sysml
package Vehicle_Remix_0443_49e5 {
port def DiffPort
port def DrivePwrPort;
por... | 424 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0443_49e5 {
port def DiffPort;
port def DrivePwrPort;
port def FuelPort;
part def DiffPort_Def { port p : DiffPort; }
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def S... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0443_49e5 {
- port def DiffPort
+ port def DiffPort;
port def DrivePwrPort;
port def FuelPort;
part def DiffPort_Def { port p : DiffPort; }
``` |
5,577 | src_0200 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0041_5c93 {
port def CruiseControlPort;
port def SpeedSensorPort;
port def FuelPort;
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part de... | ERROR:Domain violation: Port 'comp_a_676b.p' (command_signal) cannot connect to 'comp_distractor_a7d0.p' (fluid_fuel) (line : 22) | package Vehicle_Remix_0041_5c93 {
port def CruiseControlPort;
port def SpeedSensorPort;
port def FuelPort;
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part de... | @@ -9,6 +9,6 @@
part comp_a_676b : CruiseControlPort_Def;
part comp_b_85d5 : SpeedSensorPort_Def;
part comp_distractor_a7d0 : FuelPort_Distractor_Def;
- connect comp_a_676b.p to comp_distractor_a7d0.p;
+ connect comp_a_676b.p to comp_b_85d5.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0041_5c93 {
port def CruiseControlPort;
port def SpeedSensorPort;
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'CruiseControlPort' belongs to Domain: command_signal
- '... | 491 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0041_5c93 {
port def CruiseControlPort;
port def SpeedSensorPort;
port def FuelPort;
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def {... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_676b : CruiseControlPort_Def;
part comp_b_85d5 : SpeedSensorPort_Def;
part comp_distractor_a7d0 : FuelPort_Distractor_Def;
- connect comp_a_676b.p to comp_distractor_a7d0.p;
+ connect comp_a_676b.p to comp_b_85d5.p;
... |
6,913 | src_0166 | none | none | package Vehicle_Remix_0007_66b9 {
port def MotorInput;
port def BatteryInput;
port def SetSpeedPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSystem_Contex... | none | package Vehicle_Remix_0007_66b9 {
port def MotorInput;
port def BatteryInput;
port def SetSpeedPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSystem_Contex... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0007_66b9 {
port def MotorInput;
port def BatteryInput;
port def S... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'SetSpeedPort' belongs to Domain: command_signal
- 'BatteryInput' belongs to Domain: electrical_powe... | 313 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
1,230 | src_0320 | syntax | remove_random_semicolon | package Vehicle_Remix_0161_0591 {
port def MotorInput;
port def BatteryInput;
port def LugNutPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
... | ERROR:no viable alternative at input 'part' (2742.sysml line : 16 column : 9) | package Vehicle_Remix_0161_0591 {
port def MotorInput;
port def BatteryInput;
port def LugNutPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
... | @@ -6,7 +6,7 @@
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
- part comp_a_ae8e : BatteryInput_Def
+ part comp_a_ae8e : BatteryInput_Def;
part comp_b_8c5c : MotorInput_Def;
part co... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (2742.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0161_0591 {
port def MotorInput;
port def BatteryInput;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (2742.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0161_0591 {
port def MotorInput;
port def BatteryInput;
... | 417 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0161_0591 {
port def MotorInput;
port def BatteryInput;
port def LugNutPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
- part comp_a_ae8e : BatteryInput_Def
+ part comp_a_ae8e : BatteryInput_Def;
part comp_b_8c5c :... |
7,631 | src_1058 | none | none | package Vehicle_Remix_0899_1c9d {
port def MotorInput;
port def SpeedSensorPort;
port def MotorOutput;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def SpeedSensorPort_Distractor_Def { port p : SpeedSensorPort; }
part def SubSystem_... | none | package Vehicle_Remix_0899_1c9d {
port def MotorInput;
port def SpeedSensorPort;
port def MotorOutput;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def SpeedSensorPort_Distractor_Def { port p : SpeedSensorPort; }
part def SubSystem_... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0899_1c9d {
port def MotorInput;
port def SpeedSensorPort;
port de... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'SpeedSensorPort' belongs to Domain: command_signal
- 'MotorInput' belongs to Domain: electrical_pow... | 315 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,299 | src_1102 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0943_8326 {
port def CruiseControlPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankPort_Def { port p : ShankPort; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part def SubSystem_Context {
part comp... | ERROR:Domain violation: Port 'comp_a_5798.p' (mechanical_fastening) cannot connect to 'comp_distractor_00f8.p' (command_signal) (line : 21) | package Vehicle_Remix_0943_8326 {
port def CruiseControlPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankPort_Def { port p : ShankPort; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part def SubSystem_Context {
part comp... | @@ -8,6 +8,6 @@
part comp_a_5798 : ShankPort_Def;
part comp_b_ce77 : ShankPort_Def;
part comp_distractor_00f8 : CruiseControlPort_Distractor_Def;
- connect comp_a_5798.p to comp_distractor_00f8.p;
+ connect comp_a_5798.p to comp_b_ce77.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0943_8326 {
port def CruiseControlPort;
port def ShankPort;
part d... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'CruiseControlPort' belongs to Domain: command_signal
- 'ShankPort' belongs to Domain: mechanical_fa... | 458 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0943_8326 {
port def CruiseControlPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankPort_Def { port p : ShankPort; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part def SubS... | CODE STATUS = INCORRECT
```sysml
@@ -8,6 +8,6 @@
part comp_a_5798 : ShankPort_Def;
part comp_b_ce77 : ShankPort_Def;
part comp_distractor_00f8 : CruiseControlPort_Distractor_Def;
- connect comp_a_5798.p to comp_distractor_00f8.p;
+ connect comp_a_5798.p to comp_b_ce77.p;
}
... |
3,455 | src_1005 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput;
part def SubSystem_Context {
part comp_a_80ff : FuelPort_De... | ERROR:mismatched input '<EOF>' expecting '}' (8223.sysml line : 23 column : 1) | package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
part comp_a_80ff : FuelPort_D... | @@ -3,7 +3,7 @@
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
- part def BatteryInput_Distractor_Def { port p : BatteryInput;
+ part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (8223.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (8223.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
... | 395 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
- part def BatteryInput_Distractor_Def { port p : BatteryInput;
+ part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part ... |
7,971 | src_0217 | none | none | package Vehicle_Remix_0058_4f73 {
port def BatteryInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {... | none | package Vehicle_Remix_0058_4f73 {
port def BatteryInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0058_4f73 {
port def BatteryInput;
port def BatteryOutput;
port de... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'BatteryInput' belongs to Domain: electrical_power
- 'Bat... | 316 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
7,487 | src_0881 | none | none | package Vehicle_Remix_0722_a9e6 {
port def DiffPort;
port def IgnitionCmdPort;
port def AxlePort;
part def DiffPort_Def { port p : DiffPort; }
part def AxlePort_Def { port p : AxlePort; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0722_a9e6 {
port def DiffPort;
port def IgnitionCmdPort;
port def AxlePort;
part def DiffPort_Def { port p : DiffPort; }
part def AxlePort_Def { port p : AxlePort; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0722_a9e6 {
port def DiffPort;
port def IgnitionCmdPort;
port def ... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'DiffPort' belongs to Domain: mechanical_torque
- 'AxlePort' belongs to Domain: mechanical_torque
- ... | 328 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
2,869 | src_0826 | syntax | rename_definition_break_usages | package Vehicle_Remix_0667_da82 {
port def MotorOutput;
port def LugNutCompositePort;
part def MotorOutput_Def { port p_BROKEN : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_Cont... | ERROR:Couldn't resolve reference to Feature 'p'. (6796.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6796.sysml line : 21 column : 46) | package Vehicle_Remix_0667_da82 {
port def MotorOutput;
port def LugNutCompositePort;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_Context {
... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0667_da82 {
port def MotorOutput;
port def LugNutCompositePort;
- part def MotorOutput_Def { port p_BROKEN : MotorOutput; }
+ part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNutCompositePor... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (6796.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6796.sysml line : 21 column : 46)
Code:
```sysm... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (6796.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6796.sysml line : 21 column : 46)
Code:
```sysm... | 447 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0667_da82 {
port def MotorOutput;
port def LugNutCompositePort;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0667_da82 {
port def MotorOutput;
port def LugNutCompositePort;
- part def MotorOutput_Def { port p_BROKEN : MotorOutput; }
+ part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }... |
6,117 | src_0875 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0716_1932 {
port def LugNutCompositePort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_Context {
part com... | ERROR:Domain violation: Port 'comp_a_6d97.p' (fluid_fuel) cannot connect to 'comp_distractor_9bee.p' (mechanical_fastening) (line : 21) | package Vehicle_Remix_0716_1932 {
port def LugNutCompositePort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_Context {
part com... | @@ -8,6 +8,6 @@
part comp_a_6d97 : FuelPort_Def;
part comp_b_7553 : FuelPort_Def;
part comp_distractor_9bee : LugNutCompositePort_Distractor_Def;
- connect comp_a_6d97.p to comp_distractor_9bee.p;
+ connect comp_a_6d97.p to comp_b_7553.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0716_1932 {
port def LugNutCompositePort;
port def FuelPort;
part ... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'LugNutCompositePort' belongs to Domain: mechanical_faste... | 469 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0716_1932 {
port def LugNutCompositePort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def Sub... | CODE STATUS = INCORRECT
```sysml
@@ -8,6 +8,6 @@
part comp_a_6d97 : FuelPort_Def;
part comp_b_7553 : FuelPort_Def;
part comp_distractor_9bee : LugNutCompositePort_Distractor_Def;
- connect comp_a_6d97.p to comp_distractor_9bee.p;
+ connect comp_a_6d97.p to comp_b_7553.p;
}
... |
3,575 | src_1044 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0885_fcc0 {
port def TireOutput;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def TireOutput_Distractor_Def { port p : TireOutput;
part def SubSystem... | ERROR:mismatched input '<EOF>' expecting '}' (8535.sysml line : 23 column : 1) | package Vehicle_Remix_0885_fcc0 {
port def TireOutput;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def TireOutput_Distractor_Def { port p : TireOutput; }
part def SubSyste... | @@ -3,7 +3,7 @@
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
- part def TireOutput_Distractor_Def { port p : TireOutput;
+ part def TireOutput_Distractor_Def { port p : TireOutput... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (8535.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0885_fcc0 {
port def TireOutput;
port def LugNutCompositeP... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (8535.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0885_fcc0 {
port def TireOutput;
port def LugNutCompositeP... | 413 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0885_fcc0 {
port def TireOutput;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def TireOutput_Distractor_Def { port p : Ti... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
- part def TireOutput_Distractor_Def { port p : TireOutput;
+ part def TireOutput_Dis... |
759 | src_0171 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0012_1f78 {
port def ShankCompositePort;
port def SetSpeedPort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part de... | ERROR:mismatched input '<EOF>' expecting '}' (1551.sysml line : 24 column : 1) | package Vehicle_Remix_0012_1f78 {
port def ShankCompositePort;
port def SetSpeedPort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part de... | @@ -10,4 +10,5 @@
part comp_b_6062 : SetSpeedPort_Def;
part comp_distractor_60a3 : ShankCompositePort_Distractor_Def;
connect comp_a_cc89.p to comp_b_6062.p;
+ }
} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (1551.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0012_1f78 {
port def ShankCompositePort;
port def SetSpeed... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (1551.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0012_1f78 {
port def ShankCompositePort;
port def SetSpeed... | 437 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0012_1f78 {
port def ShankCompositePort;
port def SetSpeedPort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ShankCompositePort_Distractor_Def { port p : ... | CODE STATUS = INCORRECT
```sysml
@@ -10,4 +10,5 @@
part comp_b_6062 : SetSpeedPort_Def;
part comp_distractor_60a3 : ShankCompositePort_Distractor_Def;
connect comp_a_cc89.p to comp_b_6062.p;
+ }
}
``` |
7,139 | src_0448 | none | none | package Vehicle_Remix_0289_44c9 {
port def ControlPort;
port def MotorOutput;
port def SetSpeedPort;
part def ControlPort_Def { port p : ControlPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Contex... | none | package Vehicle_Remix_0289_44c9 {
port def ControlPort;
port def MotorOutput;
port def SetSpeedPort;
part def ControlPort_Def { port p : ControlPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Contex... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0289_44c9 {
port def ControlPort;
port def MotorOutput;
port def S... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'ControlPort' belongs to Domain: command_signal
- 'SetSpeedPort' belongs to Domain: command_signal
-... | 317 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
1,580 | src_0427 | syntax | swap_keywords | package Vehicle_Remix_0268_53d5 {
part def MotorOutput;
port def BatteryInput;
port def FuelPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | ERROR:A port must be typed by port definitions. (3601.sysml line : 9 column : 32) | package Vehicle_Remix_0268_53d5 {
port def MotorOutput;
port def BatteryInput;
port def FuelPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0268_53d5 {
- part def MotorOutput;
+ port def MotorOutput;
port def BatteryInput;
port def FuelPort;
part def MotorOutput_Def { port p : MotorOutput; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (3601.sysml line : 9 column : 32)
Code:
```sysml
package Vehicle_Remix_0268_53d5 {
part def MotorOutput;
port def BatteryInput... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (3601.sysml line : 9 column : 32)
Code:
```sysml
package Vehicle_Remix_0268_53d5 {
part def MotorOutput;
port def BatteryInput... | 410 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0268_53d5 {
port def MotorOutput;
port def BatteryInput;
port def FuelPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
p... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0268_53d5 {
- part def MotorOutput;
+ port def MotorOutput;
port def BatteryInput;
port def FuelPort;
part def MotorOutput_Def { port p : MotorOutput; }
``` |
3,180 | src_0921 | syntax | swap_keywords | package Vehicle_Remix_0762_8bac {
part def MotorOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
part comp_a_4dde : FuelPort_Def;... | ERROR:A port must be typed by port definitions. (7553.sysml line : 10 column : 43) | package Vehicle_Remix_0762_8bac {
port def MotorOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
part comp_a_4dde : FuelPort_Def;... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0762_8bac {
- part def MotorOutput;
+ port def MotorOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (7553.sysml line : 10 column : 43)
Code:
```sysml
package Vehicle_Remix_0762_8bac {
part def MotorOutput;
port def FuelPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (7553.sysml line : 10 column : 43)
Code:
```sysml
package Vehicle_Remix_0762_8bac {
part def MotorOutput;
port def FuelPort;
... | 383 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0762_8bac {
port def MotorOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0762_8bac {
- part def MotorOutput;
+ port def MotorOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
``` |
6,984 | src_0256 | none | none | package Vehicle_Remix_0097_cc2e {
port def LugNutPort;
port def ShankPort;
port def FuelPort;
part def LugNutPort_Def { port p : LugNutPort; }
part def ShankPort_Def { port p : ShankPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp... | none | package Vehicle_Remix_0097_cc2e {
port def LugNutPort;
port def ShankPort;
port def FuelPort;
part def LugNutPort_Def { port p : LugNutPort; }
part def ShankPort_Def { port p : ShankPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0097_cc2e {
port def LugNutPort;
port def ShankPort;
port def Fuel... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'LugNutPort' belongs to Domain: mechanical_fastening
- 'S... | 323 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
2,698 | src_0773 | syntax | remove_random_semicolon | package Vehicle_Remix_0614_642e {
port def CruiseControlPort;
port def ShankCompositePort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort... | ERROR:no viable alternative at input 'part' (6366.sysml line : 16 column : 9) | package Vehicle_Remix_0614_642e {
port def CruiseControlPort;
port def ShankCompositePort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort... | @@ -6,7 +6,7 @@
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSystem_Context {
- part comp_a_2d23 : PwrCmdPort_Def
+ part comp_a_2d23 : PwrCmdPort_Def;
part comp_b_e271 : Cruise... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (6366.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0614_642e {
port def CruiseControlPort;
port def ShankCompo... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (6366.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0614_642e {
port def CruiseControlPort;
port def ShankCompo... | 437 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0614_642e {
port def CruiseControlPort;
port def ShankCompositePort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def ShankCompositePort_Distractor_... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSystem_Context {
- part comp_a_2d23 : PwrCmdPort_Def
+ part comp_a_2d23 : PwrCmdPort_Def;
... |
5,861 | src_0549 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0390_264c {
port def MotorOutput;
port def FuelPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp_a_6ff8 : MotorOu... | ERROR:Domain violation: Port 'comp_a_6ff8.p' (electrical_power) cannot connect to 'comp_distractor_d6cc.p' (fluid_fuel) (line : 21) | package Vehicle_Remix_0390_264c {
port def MotorOutput;
port def FuelPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp_a_6ff8 : MotorOu... | @@ -8,6 +8,6 @@
part comp_a_6ff8 : MotorOutput_Def;
part comp_b_b900 : MotorOutput_Def;
part comp_distractor_d6cc : FuelPort_Distractor_Def;
- connect comp_a_6ff8.p to comp_distractor_d6cc.p;
+ connect comp_a_6ff8.p to comp_b_b900.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0390_264c {
port def MotorOutput;
port def FuelPort;
part def Moto... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'MotorOutput' belongs to Domain: electrical_power
Valid ... | 439 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0390_264c {
port def MotorOutput;
port def FuelPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -8,6 +8,6 @@
part comp_a_6ff8 : MotorOutput_Def;
part comp_b_b900 : MotorOutput_Def;
part comp_distractor_d6cc : FuelPort_Distractor_Def;
- connect comp_a_6ff8.p to comp_distractor_d6cc.p;
+ connect comp_a_6ff8.p to comp_b_b900.p;
}
}
``... |
635 | src_0128 | syntax | corrupt_qualified_reference | package ParameterTest {
attribute def A {
attribute x : ScalarValues::Strings;
attribute y : A;
}
attribute a : A;
calc def F { in p : A; in q : ScalarValues::Integer; return : ScalarValues::Integer; }
attribute f = F(a, 2);
attribute g = F(q = 1, p = a);
attribute b = new A(y=a, x="");
attribute c = new ... | ERROR:Couldn't resolve reference to Type 'ScalarValues::Strings'. (1068.sysml line : 3 column : 17)
ERROR:An attribute must be typed by attribute definitions. (1068.sysml line : 3 column : 3) | package ParameterTest {
attribute def A {
attribute x : ScalarValues::String;
attribute y : A;
}
attribute a : A;
calc def F { in p : A; in q : ScalarValues::Integer; return : ScalarValues::Integer; }
attribute f = F(a, 2);
attribute g = F(q = 1, p = a);
attribute b = new A(y=a, x="");
attribute c = new A... | @@ -1,6 +1,6 @@
package ParameterTest {
attribute def A {
- attribute x : ScalarValues::Strings;
+ attribute x : ScalarValues::String;
attribute y : A;
}
attribute a : A; | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Type 'ScalarValues::Strings'. (1068.sysml line : 3 column : 17)
ERROR:An attribute must be typed by attribute definitions. (1068.sysml line : 3 co... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Type 'ScalarValues::Strings'. (1068.sysml line : 3 column : 17)
ERROR:An attribute must be typed by attribute definitions. (1068.sysml line : 3 co... | 354 | CODE STATUS = INCORRECT
```sysml
package ParameterTest {
attribute def A {
attribute x : ScalarValues::String;
attribute y : A;
}
attribute a : A;
calc def F { in p : A; in q : ScalarValues::Integer; return : ScalarValues::Integer; }
attribute f = F(a, 2);
attribute g = F(q = 1, p = a);
attribute b = new A(... | CODE STATUS = INCORRECT
```sysml
@@ -1,6 +1,6 @@
package ParameterTest {
attribute def A {
- attribute x : ScalarValues::Strings;
+ attribute x : ScalarValues::String;
attribute y : A;
}
attribute a : A;
``` |
5,408 | src_1139 | syntax | rename_definition_break_usages | package Vehicle_Remix_0980_4c78 {
port def FuelPort;
port def PwrCmdPort;
part def FuelPort_Def { port p_BROKEN : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def PwrCmdPort_Distractor_Def { port p : PwrCmdPort; }
part def SubSystem_Context {
part comp_a_3f85 : FuelPort_... | ERROR:Couldn't resolve reference to Feature 'p'. (9300.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (9300.sysml line : 21 column : 46) | package Vehicle_Remix_0980_4c78 {
port def FuelPort;
port def PwrCmdPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def PwrCmdPort_Distractor_Def { port p : PwrCmdPort; }
part def SubSystem_Context {
part comp_a_3f85 : FuelPort_Def;
... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0980_4c78 {
port def FuelPort;
port def PwrCmdPort;
- part def FuelPort_Def { port p_BROKEN : FuelPort; }
+ part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def PwrCmdPort_Distractor_Def { port p : PwrCmdPort;... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (9300.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (9300.sysml line : 21 column : 46)
Code:
```sysm... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (9300.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (9300.sysml line : 21 column : 46)
Code:
```sysm... | 453 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0980_4c78 {
port def FuelPort;
port def PwrCmdPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def PwrCmdPort_Distractor_Def { port p : PwrCmdPort; }
part def SubSystem_Context {
pa... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0980_4c78 {
port def FuelPort;
port def PwrCmdPort;
- part def FuelPort_Def { port p_BROKEN : FuelPort; }
+ part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def PwrCmdPort_Dist... |
6,898 | src_1222 | domain | mismatch_quantity_kind_type | package MassRollup1 {
private import NumericalFunctions::*;
part def MassedThing {
attribute simpleMass :> ISQ::mass;
attribute totalMass :> ISQ::density;
}
part simpleThing : MassedThing {
attribute :>> totalMass = simpleMass;
}
part compositeThing : MassedThing {
part subcomponents: MassedThing[*];
... | ERROR:Type mismatch: Attribute 'totalMass' declared as 'ISQ::density' but should be 'ISQ::mass' based on semantic meaning (line : 6) | package MassRollup1 {
private import NumericalFunctions::*;
part def MassedThing {
attribute simpleMass :> ISQ::mass;
attribute totalMass :> ISQ::mass;
}
part simpleThing : MassedThing {
attribute :>> totalMass = simpleMass;
}
part compositeThing : MassedThing {
part subcomponents: MassedThing[*];
at... | @@ -2,7 +2,7 @@
private import NumericalFunctions::*;
part def MassedThing {
attribute simpleMass :> ISQ::mass;
- attribute totalMass :> ISQ::density;
+ attribute totalMass :> ISQ::mass;
}
part simpleThing : MassedThing {
attribute :>> totalMass = simpleMass; | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package MassRollup1 {
private import NumericalFunctions::*;
part def MassedThing {
attribute sim... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
Code:
```sysml
package MassRollup1 {
private import NumericalFunctions::*;
part def MassedThing {
... | 312 | CODE STATUS = INCORRECT
```sysml
package MassRollup1 {
private import NumericalFunctions::*;
part def MassedThing {
attribute simpleMass :> ISQ::mass;
attribute totalMass :> ISQ::mass;
}
part simpleThing : MassedThing {
attribute :>> totalMass = simpleMass;
}
part compositeThing : MassedThing {
part subc... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
private import NumericalFunctions::*;
part def MassedThing {
attribute simpleMass :> ISQ::mass;
- attribute totalMass :> ISQ::density;
+ attribute totalMass :> ISQ::mass;
}
part simpleThing : MassedThing {
attribute :>> totalMass = simpleMass;
``` |
7,250 | src_0586 | none | none | package Vehicle_Remix_0427_53cb {
port def MotorInput;
port def MotorOutput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
par... | none | package Vehicle_Remix_0427_53cb {
port def MotorInput;
port def MotorOutput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
par... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0427_53cb {
port def MotorInput;
port def MotorOutput;
port def Fu... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'MotorInput' belongs to Domain: electrical_power
- 'Motor... | 312 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,022 | src_0756 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0597_fe8e {
port def StatusPort;
port def ShaftPort_a;
port def SetSpeedPort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShaftPort_a_Distractor_Def { port p : ShaftPort_a; }
part def SubSystem_Context {... | ERROR:Domain violation: Port 'comp_a_08b4.p' (command_signal) cannot connect to 'comp_distractor_b97a.p' (mechanical_torque) (line : 22) | package Vehicle_Remix_0597_fe8e {
port def StatusPort;
port def ShaftPort_a;
port def SetSpeedPort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShaftPort_a_Distractor_Def { port p : ShaftPort_a; }
part def SubSystem_Context {... | @@ -9,6 +9,6 @@
part comp_a_08b4 : SetSpeedPort_Def;
part comp_b_6b58 : StatusPort_Def;
part comp_distractor_b97a : ShaftPort_a_Distractor_Def;
- connect comp_a_08b4.p to comp_distractor_b97a.p;
+ connect comp_a_08b4.p to comp_b_6b58.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0597_fe8e {
port def StatusPort;
port def ShaftPort_a;
port def Se... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'ShaftPort_a' belongs to Domain: mechanical_torque
- 'SetSpeedPort' belongs to Domain: command_signa... | 489 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0597_fe8e {
port def StatusPort;
port def ShaftPort_a;
port def SetSpeedPort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShaftPort_a_Distractor_Def { port p : ShaftPort_a; }... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_08b4 : SetSpeedPort_Def;
part comp_b_6b58 : StatusPort_Def;
part comp_distractor_b97a : ShaftPort_a_Distractor_Def;
- connect comp_a_08b4.p to comp_distractor_b97a.p;
+ connect comp_a_08b4.p to comp_b_6b58.p;
}
}... |
3,407 | src_0990 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0831_3b41 {
port def DriverCmdPort;
port def LugNutPort;
port def ShankCompositePort;
part def LugNutPort_Def { port p : LugNutPort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def DriverCmdPort_Distractor_Def { port p : DriverCmdPort; }
part ... | ERROR:mismatched input '<EOF>' expecting '}' (8103.sysml line : 24 column : 1) | package Vehicle_Remix_0831_3b41 {
port def DriverCmdPort;
port def LugNutPort;
port def ShankCompositePort;
part def LugNutPort_Def { port p : LugNutPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def DriverCmdPort_Distractor_Def { port p : DriverCmdPort; }
part... | @@ -2,7 +2,7 @@
port def DriverCmdPort;
port def LugNutPort;
port def ShankCompositePort;
- part def LugNutPort_Def { port p : LugNutPort;
+ part def LugNutPort_Def { port p : LugNutPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def DriverCmdPort_Distractor... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (8103.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0831_3b41 {
port def DriverCmdPort;
port def LugNutPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (8103.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0831_3b41 {
port def DriverCmdPort;
port def LugNutPort;
... | 437 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0831_3b41 {
port def DriverCmdPort;
port def LugNutPort;
port def ShankCompositePort;
part def LugNutPort_Def { port p : LugNutPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def DriverCmdPort_Distractor_Def { p... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def DriverCmdPort;
port def LugNutPort;
port def ShankCompositePort;
- part def LugNutPort_Def { port p : LugNutPort;
+ part def LugNutPort_Def { port p : LugNutPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
... |
5,928 | src_0637 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0478_9051 {
port def TireOutput;
port def BatteryInput;
port def AxlePort;
part def AxlePort_Def { port p : AxlePort; }
part def TireOutput_Def { port p : TireOutput; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
... | ERROR:Domain violation: Port 'comp_a_779f.p' (mechanical_torque) cannot connect to 'comp_distractor_dfbd.p' (electrical_power) (line : 22) | package Vehicle_Remix_0478_9051 {
port def TireOutput;
port def BatteryInput;
port def AxlePort;
part def AxlePort_Def { port p : AxlePort; }
part def TireOutput_Def { port p : TireOutput; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
... | @@ -9,6 +9,6 @@
part comp_a_779f : AxlePort_Def;
part comp_b_f400 : TireOutput_Def;
part comp_distractor_dfbd : BatteryInput_Distractor_Def;
- connect comp_a_779f.p to comp_distractor_dfbd.p;
+ connect comp_a_779f.p to comp_b_f400.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0478_9051 {
port def TireOutput;
port def BatteryInput;
port def A... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'TireOutput' belongs to Domain: mechanical_torque
- 'AxlePort' belongs to Domain: mechanical_torque
... | 477 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0478_9051 {
port def TireOutput;
port def BatteryInput;
port def AxlePort;
part def AxlePort_Def { port p : AxlePort; }
part def TireOutput_Def { port p : TireOutput; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_779f : AxlePort_Def;
part comp_b_f400 : TireOutput_Def;
part comp_distractor_dfbd : BatteryInput_Distractor_Def;
- connect comp_a_779f.p to comp_distractor_dfbd.p;
+ connect comp_a_779f.p to comp_b_f400.p;
}
}
``... |
3,274 | src_0946 | syntax | remove_random_semicolon | package Vehicle_Remix_0787_45f6 {
port def MotorInput;
port def LugNutPort;
port def BatteryOutput
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
... | ERROR:no viable alternative at input 'part' (7750.sysml line : 9 column : 5) | package Vehicle_Remix_0787_45f6 {
port def MotorInput;
port def LugNutPort;
port def BatteryOutput;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0787_45f6 {
port def MotorInput;
port def LugNutPort;
- port def BatteryOutput
+ port def BatteryOutput;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (7750.sysml line : 9 column : 5)
Code:
```sysml
package Vehicle_Remix_0787_45f6 {
port def MotorInput;
port def LugNutPort;
po... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (7750.sysml line : 9 column : 5)
Code:
```sysml
package Vehicle_Remix_0787_45f6 {
port def MotorInput;
port def LugNutPort;
po... | 404 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0787_45f6 {
port def MotorInput;
port def LugNutPort;
port def BatteryOutput;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0787_45f6 {
port def MotorInput;
port def LugNutPort;
- port def BatteryOutput
+ port def BatteryOutput;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def... |
3,585 | src_1046 | syntax | rename_definition_break_usages | package Vehicle_Remix_0887_5cd2 {
port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def FuelPort_Distractor_Def { port p : F... | ERROR:Couldn't resolve reference to Feature 'p'. (8556.sysml line : 22 column : 29) | package Vehicle_Remix_0887_5cd2 {
port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort... | @@ -2,7 +2,7 @@
port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
- part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
+ part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankComposi... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (8556.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0887_5cd2 {
port def LugNutCompositePort;
port def Fu... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (8556.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0887_5cd2 {
port def LugNutCompositePort;
port def Fu... | 423 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0887_5cd2 {
port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def FuelPort_D... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
- part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
+ part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankComposit... |
2,259 | src_0636 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0477_e826 {
port def FuelCmdPort;
port def ShaftPort_a;
port def AxlePort;
part def ShaftPort_a_Def { port p : ShaftPort_a; }
part def AxlePort_Def { port p : AxlePort; }
part def FuelCmdPort_Distractor_Def { port p : FuelCmdPort; }
part def SubSystem_Context {
... | ERROR:mismatched input '<EOF>' expecting '}' (5271.sysml line : 23 column : 6) | package Vehicle_Remix_0477_e826 {
port def FuelCmdPort;
port def ShaftPort_a;
port def AxlePort;
part def ShaftPort_a_Def { port p : ShaftPort_a; }
part def AxlePort_Def { port p : AxlePort; }
part def FuelCmdPort_Distractor_Def { port p : FuelCmdPort; }
part def SubSystem_Context {
... | @@ -11,3 +11,4 @@
part comp_distractor_0eeb : FuelCmdPort_Distractor_Def;
connect comp_a_3516.p to comp_b_0af7.p;
}
+} | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (5271.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0477_e826 {
port def FuelCmdPort;
port def ShaftPort_a;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (5271.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0477_e826 {
port def FuelCmdPort;
port def ShaftPort_a;
... | 430 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0477_e826 {
port def FuelCmdPort;
port def ShaftPort_a;
port def AxlePort;
part def ShaftPort_a_Def { port p : ShaftPort_a; }
part def AxlePort_Def { port p : AxlePort; }
part def FuelCmdPort_Distractor_Def { port p : FuelCmdPort; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -11,3 +11,4 @@
part comp_distractor_0eeb : FuelCmdPort_Distractor_Def;
connect comp_a_3516.p to comp_b_0af7.p;
}
+}
``` |
6,965 | src_0233 | none | none | package Vehicle_Remix_0074_09d4 {
port def BatteryOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def SubSystem_Context {
part comp_a_a542 : FuelPor... | none | package Vehicle_Remix_0074_09d4 {
port def BatteryOutput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryOutput_Distractor_Def { port p : BatteryOutput; }
part def SubSystem_Context {
part comp_a_a542 : FuelPor... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0074_09d4 {
port def BatteryOutput;
port def FuelPort;
part def Fu... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'BatteryOutput' belongs to Domain: electrical_power
Vali... | 296 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
8,142 | src_0429 | none | none | package Vehicle_Remix_0270_9cbb {
port def DiffPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def DiffPort_Distractor_Def { port p : DiffPort; }
part def SubSystem_Context {
part comp_a_1f43 : FuelPort_Def;
... | none | package Vehicle_Remix_0270_9cbb {
port def DiffPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def DiffPort_Distractor_Def { port p : DiffPort; }
part def SubSystem_Context {
part comp_a_1f43 : FuelPort_Def;
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0270_9cbb {
port def DiffPort;
port def FuelPort;
part def FuelPor... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'DiffPort' belongs to Domain: mechanical_torque
- 'FuelPort' belongs to Domain: fluid_fuel
Valid Co... | 301 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
823 | src_0191 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0032_20f0 {
port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort;
part def SubSystem_Context {
part comp_a_89cb : FuelPort_Def;
... | ERROR:mismatched input '<EOF>' expecting '}' (1711.sysml line : 23 column : 1) | package Vehicle_Remix_0032_20f0 {
port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
part comp_a_89cb : FuelPort_Def;
... | @@ -3,7 +3,7 @@
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
- part def LugNutPort_Distractor_Def { port p : LugNutPort;
+ part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
part com... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (1711.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0032_20f0 {
port def LugNutPort;
port def FuelPort;
pa... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (1711.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0032_20f0 {
port def LugNutPort;
port def FuelPort;
pa... | 401 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0032_20f0 {
port def LugNutPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
pa... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
- part def LugNutPort_Distractor_Def { port p : LugNutPort;
+ part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubS... |
3,581 | src_1045 | syntax | rename_definition_break_usages | package Vehicle_Remix_0886_216d {
port def MotorInput;
port def BatteryInput;
port def CruiseControlPort;
part def MotorInput_Def { port p_BROKEN : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
par... | ERROR:Couldn't resolve reference to Feature 'p'. (8548.sysml line : 22 column : 29) | package Vehicle_Remix_0886_216d {
port def MotorInput;
port def BatteryInput;
port def CruiseControlPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part def S... | @@ -2,7 +2,7 @@
port def MotorInput;
port def BatteryInput;
port def CruiseControlPort;
- part def MotorInput_Def { port p_BROKEN : MotorInput; }
+ part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def CruiseControlPort_Distractor_D... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (8548.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0886_216d {
port def MotorInput;
port def BatteryInpu... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (8548.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0886_216d {
port def MotorInput;
port def BatteryInpu... | 421 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0886_216d {
port def MotorInput;
port def BatteryInput;
port def CruiseControlPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def CruiseControlPort_Distractor_Def { port p : Cr... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def MotorInput;
port def BatteryInput;
port def CruiseControlPort;
- part def MotorInput_Def { port p_BROKEN : MotorInput; }
+ part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part d... |
4,318 | src_1279 | syntax | remove_random_semicolon | package '5-State-based Behavior-2' {
private import ScalarValues::*;
private import ISQ::*;
private import '3a-Function-based Behavior-1'::*;
package Definitions {
part def VehicleA {
perform action 'provide power': 'Provide Power';
exhibit state 'vehicle states': 'Vehicle States';
}
part def VehicleCon... | ERROR:no viable alternative at input 'attribute' (10216.sysml line : 114 column : 4) | package '5-State-based Behavior-2' {
private import ScalarValues::*;
private import ISQ::*;
private import '3a-Function-based Behavior-1'::*;
package Definitions {
part def VehicleA {
perform action 'provide power': 'Provide Power';
exhibit state 'vehicle states': 'Vehicle States';
}
part def VehicleCon... | @@ -88,7 +88,7 @@
in fuelCmd: FuelCmd;
}
attribute 'brake pedal depressed': Boolean;
- attribute maintenanceTime: Time::DateTime
+ attribute maintenanceTime: Time::DateTime;
attribute Tmax: TemperatureValue;
perform 'provide power' :>> VehicleA::'provide power' {
in fuelCmd = fuelCmdPort... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'attribute' (10216.sysml line : 114 column : 4)
Code:
```sysml
package '5-State-based Behavior-2' {
private import ScalarValues::*;
private imp... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'attribute' (10216.sysml line : 114 column : 4)
Code:
```sysml
package '5-State-based Behavior-2' {
private import ScalarValues::*;
private imp... | 1,595 | CODE STATUS = INCORRECT
```sysml
package '5-State-based Behavior-2' {
private import ScalarValues::*;
private import ISQ::*;
private import '3a-Function-based Behavior-1'::*;
package Definitions {
part def VehicleA {
perform action 'provide power': 'Provide Power';
exhibit state 'vehicle states': 'Vehicle S... | CODE STATUS = INCORRECT
```sysml
@@ -88,7 +88,7 @@
in fuelCmd: FuelCmd;
}
attribute 'brake pedal depressed': Boolean;
- attribute maintenanceTime: Time::DateTime
+ attribute maintenanceTime: Time::DateTime;
attribute Tmax: TemperatureValue;
perform 'provide power' :>> VehicleA::'provide power... |
1,194 | src_0309 | syntax | remove_random_semicolon | package Vehicle_Remix_0150_144a {
port def MotorInput;
port def BatteryOutput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | ERROR:no viable alternative at input 'part' (2654.sysml line : 16 column : 9) | package Vehicle_Remix_0150_144a {
port def MotorInput;
port def BatteryOutput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | @@ -6,7 +6,7 @@
part def BatteryOutput_Def { port p : BatteryOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
- part comp_a_ddb4 : MotorInput_Def
+ part comp_a_ddb4 : MotorInput_Def;
part comp_b_cf39 : BatteryOutput_Def;
part c... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (2654.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0150_144a {
port def MotorInput;
port def BatteryOutput;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (2654.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0150_144a {
port def MotorInput;
port def BatteryOutput;
... | 397 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0150_144a {
port def MotorInput;
port def BatteryOutput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
p... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def BatteryOutput_Def { port p : BatteryOutput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
- part comp_a_ddb4 : MotorInput_Def
+ part comp_a_ddb4 : MotorInput_Def;
part comp_b_cf39 : B... |
3,037 | src_0879 | syntax | rename_definition_break_usages | package Vehicle_Remix_0720_32be {
port def VehicleToRoadPort;
port def FuelPort;
part def FuelPort_Def { port p_BROKEN : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def VehicleToRoadPort_Distractor_Def { port p : VehicleToRoadPort; }
part def SubSystem_Context {
part co... | ERROR:Couldn't resolve reference to Feature 'p'. (7220.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (7220.sysml line : 21 column : 46) | package Vehicle_Remix_0720_32be {
port def VehicleToRoadPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def VehicleToRoadPort_Distractor_Def { port p : VehicleToRoadPort; }
part def SubSystem_Context {
part comp_a_44... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0720_32be {
port def VehicleToRoadPort;
port def FuelPort;
- part def FuelPort_Def { port p_BROKEN : FuelPort; }
+ part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def VehicleToRoadPort_Distractor_Def { port p... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (7220.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (7220.sysml line : 21 column : 46)
Code:
```sysm... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Couldn't resolve reference to Feature 'p'. (7220.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (7220.sysml line : 21 column : 46)
Code:
```sysm... | 447 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0720_32be {
port def VehicleToRoadPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def VehicleToRoadPort_Distractor_Def { port p : VehicleToRoadPort; }
part def SubSystem... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0720_32be {
port def VehicleToRoadPort;
port def FuelPort;
- part def FuelPort_Def { port p_BROKEN : FuelPort; }
+ part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def VehicleT... |
1,710 | src_0464 | syntax | remove_random_semicolon | package Vehicle_Remix_0305_2238 {
port def DriveIF;
port def AxlePort;
port def LugNutPort;
part def AxlePort_Def { port p : AxlePort; }
part def DriveIF_Def { port p : DriveIF; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
part comp_a_361... | ERROR:no viable alternative at input 'part' (3894.sysml line : 16 column : 9) | package Vehicle_Remix_0305_2238 {
port def DriveIF;
port def AxlePort;
port def LugNutPort;
part def AxlePort_Def { port p : AxlePort; }
part def DriveIF_Def { port p : DriveIF; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
part comp_a_361... | @@ -6,7 +6,7 @@
part def DriveIF_Def { port p : DriveIF; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
- part comp_a_361e : AxlePort_Def
+ part comp_a_361e : AxlePort_Def;
part comp_b_4c38 : DriveIF_Def;
part comp_distractor_67d... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (3894.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0305_2238 {
port def DriveIF;
port def AxlePort;
port d... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (3894.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0305_2238 {
port def DriveIF;
port def AxlePort;
port d... | 429 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0305_2238 {
port def DriveIF;
port def AxlePort;
port def LugNutPort;
part def AxlePort_Def { port p : AxlePort; }
part def DriveIF_Def { port p : DriveIF; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def DriveIF_Def { port p : DriveIF; }
part def LugNutPort_Distractor_Def { port p : LugNutPort; }
part def SubSystem_Context {
- part comp_a_361e : AxlePort_Def
+ part comp_a_361e : AxlePort_Def;
part comp_b_4c38 : DriveIF_Def;
... |
7,427 | src_0805 | none | none | package Vehicle_Remix_0646_3f20 {
port def FuelCmdPort;
port def BatteryInput;
port def CruiseControlPort;
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part de... | none | package Vehicle_Remix_0646_3f20 {
port def FuelCmdPort;
port def BatteryInput;
port def CruiseControlPort;
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part de... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0646_3f20 {
port def FuelCmdPort;
port def BatteryInput;
port def ... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelCmdPort' belongs to Domain: command_signal
- 'CruiseControlPort' belongs to Domain: command_sig... | 325 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
4,850 | src_0446 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0287_bd11 {
port def StatusPort;
port def ClutchPort;
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def ClutchPort_Def { port p : ClutchPort; }
part def StatusPort_Distractor_Def { port p : StatusPort;
part def SubSystem_Context {
... | ERROR:mismatched input '<EOF>' expecting '}' (3751.sysml line : 24 column : 1) | package Vehicle_Remix_0287_bd11 {
port def StatusPort;
port def ClutchPort;
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def ClutchPort_Def { port p : ClutchPort; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
part def SubSystem_Context {
... | @@ -4,7 +4,7 @@
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def ClutchPort_Def { port p : ClutchPort; }
- part def StatusPort_Distractor_Def { port p : StatusPort;
+ part def StatusPort_Distractor_Def { port p : StatusPort; }
part def SubSystem_Context {
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (3751.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0287_bd11 {
port def StatusPort;
port def ClutchPort;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (3751.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0287_bd11 {
port def StatusPort;
port def ClutchPort;
... | 421 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0287_bd11 {
port def StatusPort;
port def ClutchPort;
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def ClutchPort_Def { port p : ClutchPort; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -4,7 +4,7 @@
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def ClutchPort_Def { port p : ClutchPort; }
- part def StatusPort_Distractor_Def { port p : StatusPort;
+ part def StatusPort_Distractor_Def { port p : StatusPort; }
... |
7,288 | src_0633 | none | none | package Vehicle_Remix_0474_9cb2 {
port def LugNutPort;
port def ShankPort;
port def BatteryInput;
part def LugNutPort_Def { port p : LugNutPort; }
part def ShankPort_Def { port p : ShankPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0474_9cb2 {
port def LugNutPort;
port def ShankPort;
port def BatteryInput;
part def LugNutPort_Def { port p : LugNutPort; }
part def ShankPort_Def { port p : ShankPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0474_9cb2 {
port def LugNutPort;
port def ShankPort;
port def Batt... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'BatteryInput' belongs to Domain: electrical_power
- 'LugNutPort' belongs to Domain: mechanical_fast... | 323 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,113 | src_0871 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0712_74a5 {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
part comp_a_10ad : FuelPort_D... | ERROR:Domain violation: Port 'comp_a_10ad.p' (fluid_fuel) cannot connect to 'comp_distractor_1fbc.p' (electrical_power) (line : 21) | package Vehicle_Remix_0712_74a5 {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
part comp_a_10ad : FuelPort_D... | @@ -8,6 +8,6 @@
part comp_a_10ad : FuelPort_Def;
part comp_b_fb90 : FuelPort_Def;
part comp_distractor_1fbc : BatteryInput_Distractor_Def;
- connect comp_a_10ad.p to comp_distractor_1fbc.p;
+ connect comp_a_10ad.p to comp_b_fb90.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0712_74a5 {
port def BatteryInput;
port def FuelPort;
part def Fue... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'BatteryInput' belongs to Domain: electrical_power
Valid... | 439 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0712_74a5 {
port def BatteryInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -8,6 +8,6 @@
part comp_a_10ad : FuelPort_Def;
part comp_b_fb90 : FuelPort_Def;
part comp_distractor_1fbc : BatteryInput_Distractor_Def;
- connect comp_a_10ad.p to comp_distractor_1fbc.p;
+ connect comp_a_10ad.p to comp_b_fb90.p;
}
}
``` |
2,379 | src_0673 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0514_b8fb {
port def DiffPort;
port def ShankPort;
port def WheelToRoadPort;
part def DiffPort_Def { port p : DiffPort; }
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
part def ShankPort_Distractor_Def { port p : ShankPort;
part def SubSystem_Context {
... | ERROR:mismatched input '<EOF>' expecting '}' (5567.sysml line : 24 column : 1) | package Vehicle_Remix_0514_b8fb {
port def DiffPort;
port def ShankPort;
port def WheelToRoadPort;
part def DiffPort_Def { port p : DiffPort; }
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | @@ -4,7 +4,7 @@
port def WheelToRoadPort;
part def DiffPort_Def { port p : DiffPort; }
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
- part def ShankPort_Distractor_Def { port p : ShankPort;
+ part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (5567.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0514_b8fb {
port def DiffPort;
port def ShankPort;
por... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:mismatched input '<EOF>' expecting '}' (5567.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0514_b8fb {
port def DiffPort;
port def ShankPort;
por... | 415 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0514_b8fb {
port def DiffPort;
port def ShankPort;
port def WheelToRoadPort;
part def DiffPort_Def { port p : DiffPort; }
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -4,7 +4,7 @@
port def WheelToRoadPort;
part def DiffPort_Def { port p : DiffPort; }
part def WheelToRoadPort_Def { port p : WheelToRoadPort; }
- part def ShankPort_Distractor_Def { port p : ShankPort;
+ part def ShankPort_Distractor_Def { port p : ShankPort; }
... |
6,914 | src_0168 | none | none | package Vehicle_Remix_0009_99c5 {
port def ControlPort;
port def FuelCmdPort;
port def FuelPort;
part def ControlPort_Def { port p : ControlPort; }
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0009_99c5 {
port def ControlPort;
port def FuelCmdPort;
port def FuelPort;
part def ControlPort_Def { port p : ControlPort; }
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0009_99c5 {
port def ControlPort;
port def FuelCmdPort;
port def F... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'FuelCmdPort' belongs to Domain: command_signal
- 'Contro... | 318 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
2,898 | src_0839 | syntax | remove_random_semicolon | package Vehicle_Remix_0680_2e1e {
port def MotorInput;
port def BatteryInput;
port def SetSpeedPort
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSystem_Context... | ERROR:no viable alternative at input 'part' (6894.sysml line : 9 column : 5) | package Vehicle_Remix_0680_2e1e {
port def MotorInput;
port def BatteryInput;
port def SetSpeedPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSystem_Contex... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0680_2e1e {
port def MotorInput;
port def BatteryInput;
- port def SetSpeedPort
+ port def SetSpeedPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (6894.sysml line : 9 column : 5)
Code:
```sysml
package Vehicle_Remix_0680_2e1e {
port def MotorInput;
port def BatteryInput;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:no viable alternative at input 'part' (6894.sysml line : 9 column : 5)
Code:
```sysml
package Vehicle_Remix_0680_2e1e {
port def MotorInput;
port def BatteryInput;
... | 416 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0680_2e1e {
port def MotorInput;
port def BatteryInput;
port def SetSpeedPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0680_2e1e {
port def MotorInput;
port def BatteryInput;
- port def SetSpeedPort
+ port def SetSpeedPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def S... |
5,934 | src_0646 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0487_28c4 {
port def BatteryInput;
port def ShaftPort_b;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def ShaftPort_b_Distractor_Def { port p : ShaftPort_b; }
part def SubSystem_Context {
part comp_a_... | ERROR:Domain violation: Port 'comp_a_ad67.p' (electrical_power) cannot connect to 'comp_distractor_4ffd.p' (mechanical_torque) (line : 21) | package Vehicle_Remix_0487_28c4 {
port def BatteryInput;
port def ShaftPort_b;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def ShaftPort_b_Distractor_Def { port p : ShaftPort_b; }
part def SubSystem_Context {
part comp_a_... | @@ -8,6 +8,6 @@
part comp_a_ad67 : BatteryInput_Def;
part comp_b_096c : BatteryInput_Def;
part comp_distractor_4ffd : ShaftPort_b_Distractor_Def;
- connect comp_a_ad67.p to comp_distractor_4ffd.p;
+ connect comp_a_ad67.p to comp_b_096c.p;
}
} | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0487_28c4 {
port def BatteryInput;
port def ShaftPort_b;
part def ... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'ShaftPort_b' belongs to Domain: mechanical_torque
- 'BatteryInput' belongs to Domain: electrical_po... | 450 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0487_28c4 {
port def BatteryInput;
port def ShaftPort_b;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def ShaftPort_b_Distractor_Def { port p : ShaftPort_b; }
part def SubSyst... | CODE STATUS = INCORRECT
```sysml
@@ -8,6 +8,6 @@
part comp_a_ad67 : BatteryInput_Def;
part comp_b_096c : BatteryInput_Def;
part comp_distractor_4ffd : ShaftPort_b_Distractor_Def;
- connect comp_a_ad67.p to comp_distractor_4ffd.p;
+ connect comp_a_ad67.p to comp_b_096c.p;
}
... |
7,202 | src_0519 | none | none | package Vehicle_Remix_0360_abad {
port def DriverCmdPort;
port def AxlePort;
port def ShaftPort_c;
part def AxlePort_Def { port p : AxlePort; }
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def DriverCmdPort_Distractor_Def { port p : DriverCmdPort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0360_abad {
port def DriverCmdPort;
port def AxlePort;
port def ShaftPort_c;
part def AxlePort_Def { port p : AxlePort; }
part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def DriverCmdPort_Distractor_Def { port p : DriverCmdPort; }
part def SubSystem_Context {
... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Code:
```sysml
package Vehicle_Remix_0360_abad {
port def DriverCmdPort;
port def AxlePort;
port def Sh... | Check the SysML v2 code below for correctness with respect to the given domain constraints.
Repair the code if it is incorrect, produce a corrected version.
If the code is correct, report it as correct.
Domain Rules:
- 'ShaftPort_c' belongs to Domain: mechanical_torque
- 'AxlePort' belongs to Domain: mechanical_torque... | 325 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
3,752 | src_1103 | syntax | swap_keywords | package Vehicle_Remix_0944_96f1 {
part def MotorInput;
port def WheelToAxlePort;
port def AxleToWheelPort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part de... | ERROR:A port must be typed by port definitions. (9009.sysml line : 11 column : 42) | package Vehicle_Remix_0944_96f1 {
port def MotorInput;
port def WheelToAxlePort;
port def AxleToWheelPort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part de... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0944_96f1 {
- part def MotorInput;
+ port def MotorInput;
port def WheelToAxlePort;
port def AxleToWheelPort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; } | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (9009.sysml line : 11 column : 42)
Code:
```sysml
package Vehicle_Remix_0944_96f1 {
part def MotorInput;
port def WheelToAxleP... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:A port must be typed by port definitions. (9009.sysml line : 11 column : 42)
Code:
```sysml
package Vehicle_Remix_0944_96f1 {
part def MotorInput;
port def WheelToAxleP... | 451 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0944_96f1 {
port def MotorInput;
port def WheelToAxlePort;
port def AxleToWheelPort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def MotorInput_Distractor_Def { p... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0944_96f1 {
- part def MotorInput;
+ port def MotorInput;
port def WheelToAxlePort;
port def AxleToWheelPort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
``` |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.