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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,186 | src_0951 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0792_674d {
port def BatteryInput;
port def BatteryOutput;
port def IgnitionCmdPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part de... | ERROR:Domain violation: Port 'comp_a_1c06.p' (electrical_power) cannot connect to 'comp_distractor_013b.p' (command_signal) (line : 22) | package Vehicle_Remix_0792_674d {
port def BatteryInput;
port def BatteryOutput;
port def IgnitionCmdPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part de... | @@ -9,6 +9,6 @@
part comp_a_1c06 : BatteryInput_Def;
part comp_b_0557 : BatteryOutput_Def;
part comp_distractor_013b : IgnitionCmdPort_Distractor_Def;
- connect comp_a_1c06.p to comp_distractor_013b.p;
+ connect comp_a_1c06.p to comp_b_0557.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_0792_674d {
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:
- 'IgnitionCmdPort' belongs to Domain: command_signal
- 'BatteryInput' belongs to Domain: electrical_p... | 491 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0792_674d {
port def BatteryInput;
port def BatteryOutput;
port def IgnitionCmdPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def IgnitionCmdPort_Distractor_Def { port p... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_1c06 : BatteryInput_Def;
part comp_b_0557 : BatteryOutput_Def;
part comp_distractor_013b : IgnitionCmdPort_Distractor_Def;
- connect comp_a_1c06.p to comp_distractor_013b.p;
+ connect comp_a_1c06.p to comp_b_0557.p;
... |
652 | src_0136 | syntax | delete_random_closing_bracket | package UseCaseTest {
part def System;
part def User;
use case def UseSystem {
subject system : System;
actor user : User;
objective {
/* Goal */
}
include use case uc1 : UC1;
include use case uc2 {
subject = system;
actor user = UseSystem::user;
}
}
use case def UC1;
part user : User;
... | ERROR:mismatched input '<EOF>' expecting '}' (1111.sysml line : 43 column : 1) | package UseCaseTest {
part def System;
part def User;
use case def UseSystem {
subject system : System;
actor user : User;
objective {
/* Goal */
}
include use case uc1 : UC1;
include use case uc2 {
subject = system;
actor user = UseSystem::user;
}
}
use case def UC1;
part user : User;
... | @@ -18,6 +18,7 @@
use case uc2 {
subject;
actor :>> user;
+ }
use case u : UseSystem;
part system : System {
include uc2; | 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 '}' (1111.sysml line : 43 column : 1)
Code:
```sysml
package UseCaseTest {
part def System;
part def User;
use case def UseSystem {
sub... | 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 '}' (1111.sysml line : 43 column : 1)
Code:
```sysml
package UseCaseTest {
part def System;
part def User;
use case def UseSystem {
sub... | 429 | CODE STATUS = INCORRECT
```sysml
package UseCaseTest {
part def System;
part def User;
use case def UseSystem {
subject system : System;
actor user : User;
objective {
/* Goal */
}
include use case uc1 : UC1;
include use case uc2 {
subject = system;
actor user = UseSystem::user;
}
}
use ... | CODE STATUS = INCORRECT
```sysml
@@ -18,6 +18,7 @@
use case uc2 {
subject;
actor :>> user;
+ }
use case u : UseSystem;
part system : System {
include uc2;
``` |
5,452 | src_1222 | syntax | unit_mismatch_edit | 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[kg];
a... | ERROR:Couldn't resolve reference to Element 'kg'. (9795.sysml line : 14 column : 35)
ERROR:Must have a Natural value (9795.sysml line : 14 column : 35) | 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... | @@ -8,7 +8,7 @@
attribute :>> totalMass = simpleMass;
}
part compositeThing : MassedThing {
- part subcomponents: MassedThing[kg];
+ part subcomponents: MassedThing[*];
attribute :>> totalMass =
simpleMass + sum(subcomponents.totalMass);
} | 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 'kg'. (9795.sysml line : 14 column : 35)
ERROR:Must have a Natural value (9795.sysml line : 14 column : 35)
Code:
```sysml
package MassRo... | 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 'kg'. (9795.sysml line : 14 column : 35)
ERROR:Must have a Natural value (9795.sysml line : 14 column : 35)
Code:
```sysml
package MassRo... | 349 | 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
@@ -8,7 +8,7 @@
attribute :>> totalMass = simpleMass;
}
part compositeThing : MassedThing {
- part subcomponents: MassedThing[kg];
+ part subcomponents: MassedThing[*];
attribute :>> totalMass =
simpleMass + sum(subcomponents.totalMass);
}
``` |
3,431 | src_0998 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0839_c010 {
port def LugNutCompositePort;
port def AxleToWheelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def AxleToWheelPort_Distractor_Def { port p : AxleToWheelPort; }
pa... | ERROR:mismatched input '<EOF>' expecting '}' (8167.sysml line : 22 column : 6) | package Vehicle_Remix_0839_c010 {
port def LugNutCompositePort;
port def AxleToWheelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def AxleToWheelPort_Distractor_Def { port p : AxleToWheelPort; }
pa... | @@ -10,3 +10,4 @@
part comp_distractor_6442 : AxleToWheelPort_Distractor_Def;
connect comp_a_2a3f.p to comp_b_1a9b.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 '}' (8167.sysml line : 22 column : 6)
Code:
```sysml
package Vehicle_Remix_0839_c010 {
port def LugNutCompositePort;
port def AxleToW... | 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 '}' (8167.sysml line : 22 column : 6)
Code:
```sysml
package Vehicle_Remix_0839_c010 {
port def LugNutCompositePort;
port def AxleToW... | 452 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0839_c010 {
port def LugNutCompositePort;
port def AxleToWheelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def AxleToWheelPort_Distractor_Def { p... | CODE STATUS = INCORRECT
```sysml
@@ -10,3 +10,4 @@
part comp_distractor_6442 : AxleToWheelPort_Distractor_Def;
connect comp_a_2a3f.p to comp_b_1a9b.p;
}
+}
``` |
3,190 | src_0924 | syntax | remove_random_semicolon | package Vehicle_Remix_0765_e806 {
port def DiffPort;
port def LugNutCompositePort
port def WheelHubIF;
part def DiffPort_Def { port p : DiffPort; }
part def WheelHubIF_Def { port p : WheelHubIF; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSyste... | ERROR:no viable alternative at input 'port' (7574.sysml line : 6 column : 5) | package Vehicle_Remix_0765_e806 {
port def DiffPort;
port def LugNutCompositePort;
port def WheelHubIF;
part def DiffPort_Def { port p : DiffPort; }
part def WheelHubIF_Def { port p : WheelHubIF; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSyst... | @@ -1,6 +1,6 @@
package Vehicle_Remix_0765_e806 {
port def DiffPort;
- port def LugNutCompositePort
+ port def LugNutCompositePort;
port def WheelHubIF;
part def DiffPort_Def { port p : DiffPort; }
part def WheelHubIF_Def { port p : WheelHubIF; } | 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' (7574.sysml line : 6 column : 5)
Code:
```sysml
package Vehicle_Remix_0765_e806 {
port def DiffPort;
port def LugNutCompositePort
... | 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' (7574.sysml line : 6 column : 5)
Code:
```sysml
package Vehicle_Remix_0765_e806 {
port def DiffPort;
port def LugNutCompositePort
... | 422 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0765_e806 {
port def DiffPort;
port def LugNutCompositePort;
port def WheelHubIF;
part def DiffPort_Def { port p : DiffPort; }
part def WheelHubIF_Def { port p : WheelHubIF; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutComp... | CODE STATUS = INCORRECT
```sysml
@@ -1,6 +1,6 @@
package Vehicle_Remix_0765_e806 {
port def DiffPort;
- port def LugNutCompositePort
+ port def LugNutCompositePort;
port def WheelHubIF;
part def DiffPort_Def { port p : DiffPort; }
part def WheelHubIF_Def { port p : WheelHubIF; }
``` |
4,468 | src_1311 | syntax | break_imports | 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: SparePar... | ERROR:no viable alternative at input ';' (10492.sysml line : 2 column : 2)
ERROR:no viable alternative at input '::' (10492.sysml line : 2 column : 29) | 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... | @@ -1,5 +1,5 @@
package '15_11-Variable Length Collection Types' {
- private import ScalarValues::;
+ private import ScalarValues::*;
private import Collections::*;
part def SparePart;
part def Person; | 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 ';' (10492.sysml line : 2 column : 2)
ERROR:no viable alternative at input '::' (10492.sysml line : 2 column : 29)
Code:
```sysml
package '15_11... | 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 ';' (10492.sysml line : 2 column : 2)
ERROR:no viable alternative at input '::' (10492.sysml line : 2 column : 29)
Code:
```sysml
package '15_11... | 555 | 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
@@ -1,5 +1,5 @@
package '15_11-Variable Length Collection Types' {
- private import ScalarValues::;
+ private import ScalarValues::*;
private import Collections::*;
part def SparePart;
part def Person;
``` |
1,242 | src_0323 | syntax | remove_random_semicolon | package Vehicle_Remix_0164_aec7 {
port def ControlPort
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def Su... | ERROR:no viable alternative at input 'port' (2766.sysml line : 5 column : 5) | package Vehicle_Remix_0164_aec7 {
port def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def S... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0164_aec7 {
- port def ControlPort
+ port def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : 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 'port' (2766.sysml line : 5 column : 5)
Code:
```sysml
package Vehicle_Remix_0164_aec7 {
port def ControlPort
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' (2766.sysml line : 5 column : 5)
Code:
```sysml
package Vehicle_Remix_0164_aec7 {
port def ControlPort
port def StatusPort;
po... | 416 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0164_aec7 {
port def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShankCompositePort_Distractor_Def { port p : Sha... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0164_aec7 {
- port def ControlPort
+ port def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
``` |
428 | src_0069 | syntax | break_imports | package AnalysisIndividualExample {
private import ScalarValues::*;
private import Quantities::*;
private import ISQ::;
private import USCustomaryUnits::*;
package VehicleQuantities {
private import MeasurementReferences::*;
attribute def DistancePerVolumeUnit :> DerivedUnit {
private a... | ERROR:no viable alternative at input ';' (662.sysml line : 4 column : 5)
ERROR:no viable alternative at input '::' (662.sysml line : 4 column : 23) | package AnalysisIndividualExample {
private import ScalarValues::*;
private import Quantities::*;
private import ISQ::*;
private import USCustomaryUnits::*;
package VehicleQuantities {
private import MeasurementReferences::*;
attribute def DistancePerVolumeUnit :> DerivedUnit {
private ... | @@ -1,7 +1,7 @@
package AnalysisIndividualExample {
private import ScalarValues::*;
private import Quantities::*;
- private import ISQ::;
+ private import ISQ::*;
private import USCustomaryUnits::*;
package VehicleQuantities {
private import MeasurementReferences::*; | 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 ';' (662.sysml line : 4 column : 5)
ERROR:no viable alternative at input '::' (662.sysml line : 4 column : 23)
Code:
```sysml
package AnalysisIn... | 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 ';' (662.sysml line : 4 column : 5)
ERROR:no viable alternative at input '::' (662.sysml line : 4 column : 23)
Code:
```sysml
package AnalysisIn... | 1,489 | CODE STATUS = INCORRECT
```sysml
package AnalysisIndividualExample {
private import ScalarValues::*;
private import Quantities::*;
private import ISQ::*;
private import USCustomaryUnits::*;
package VehicleQuantities {
private import MeasurementReferences::*;
attribute def DistancePerVolumeUni... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package AnalysisIndividualExample {
private import ScalarValues::*;
private import Quantities::*;
- private import ISQ::;
+ private import ISQ::*;
private import USCustomaryUnits::*;
package VehicleQuantities {
private import MeasurementRefe... |
2,896 | src_0838 | syntax | swap_keywords | package Vehicle_Remix_0679_dfd8 {
part def MotorInput;
port def BatteryOutput;
port def LugNutCompositePort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
p... | ERROR:A port must be typed by port definitions. (6889.sysml line : 9 column : 31) | package Vehicle_Remix_0679_dfd8 {
port def MotorInput;
port def BatteryOutput;
port def LugNutCompositePort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
p... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0679_dfd8 {
- part def MotorInput;
+ port def MotorInput;
port def BatteryOutput;
port def LugNutCompositePort;
part def MotorInput_Def { port p : MotorInput; } | 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. (6889.sysml line : 9 column : 31)
Code:
```sysml
package Vehicle_Remix_0679_dfd8 {
part 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:A port must be typed by port definitions. (6889.sysml line : 9 column : 31)
Code:
```sysml
package Vehicle_Remix_0679_dfd8 {
part def MotorInput;
port def BatteryOutput... | 414 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0679_dfd8 {
port def MotorInput;
port def BatteryOutput;
port def LugNutCompositePort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def LugNutCompositePort_Distractor_Def { port... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0679_dfd8 {
- part def MotorInput;
+ port def MotorInput;
port def BatteryOutput;
port def LugNutCompositePort;
part def MotorInput_Def { port p : MotorInput; }
``` |
2,111 | src_0593 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0434_69bb {
port def MotorInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput;
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | ERROR:mismatched input '<EOF>' expecting '}' (4927.sysml line : 24 column : 1) | package Vehicle_Remix_0434_69bb {
port def MotorInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | @@ -3,7 +3,7 @@
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
- part def MotorInput_Def { port p : MotorInput;
+ part def MotorInput_Def { port p : MotorInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem... | 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 '}' (4927.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0434_69bb {
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:mismatched input '<EOF>' expecting '}' (4927.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0434_69bb {
port def MotorInput;
port def BatteryOutput;
... | 409 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0434_69bb {
port def MotorInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
p... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
- part def MotorInput_Def { port p : MotorInput;
+ part def MotorInput_Def { port p : MotorInput; }
part def FuelPort_Distractor_Def { port p : Fu... |
1,244 | src_0323 | syntax | swap_keywords | package Vehicle_Remix_0164_aec7 {
part def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def S... | ERROR:A port must be typed by port definitions. (2769.sysml line : 9 column : 32) | package Vehicle_Remix_0164_aec7 {
port def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def S... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0164_aec7 {
- part def ControlPort;
+ port def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; } | 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. (2769.sysml line : 9 column : 32)
Code:
```sysml
package Vehicle_Remix_0164_aec7 {
part def ControlPort;
port def StatusPort;
... | 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. (2769.sysml line : 9 column : 32)
Code:
```sysml
package Vehicle_Remix_0164_aec7 {
part def ControlPort;
port def StatusPort;
... | 418 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0164_aec7 {
port def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
part def StatusPort_Def { port p : StatusPort; }
part def ShankCompositePort_Distractor_Def { port p : Sha... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0164_aec7 {
- part def ControlPort;
+ port def ControlPort;
port def StatusPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
``` |
7,009 | src_0287 | none | none | package Vehicle_Remix_0128_46e7 {
port def LugNutPort;
port def DriveIF;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def DriveIF_Distractor_Def { port p : DriveIF; }
part def SubSystem_... | none | package Vehicle_Remix_0128_46e7 {
port def LugNutPort;
port def DriveIF;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def DriveIF_Distractor_Def { port p : DriveIF; }
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_0128_46e7 {
port def LugNutPort;
port def DriveIF;
port def LugNut... | 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
- 'LugNutPort' belongs to Domain: mechanical_fastenin... | 336 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
2,410 | src_0682 | syntax | remove_random_semicolon | package Vehicle_Remix_0523_c4f2 {
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:no viable alternative at input '}' (5638.sysml line : 23 column : 5) | package Vehicle_Remix_0523_c4f2 {
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... | @@ -9,6 +9,6 @@
part comp_a_9f9b : ShankPort_Def;
part comp_b_3ad2 : LugNutPort_Def;
part comp_distractor_7440 : FuelPort_Distractor_Def;
- connect comp_a_9f9b.p to comp_b_3ad2.p
+ connect comp_a_9f9b.p to comp_b_3ad2.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 '}' (5638.sysml line : 23 column : 5)
Code:
```sysml
package Vehicle_Remix_0523_c4f2 {
port def LugNutPort;
port def ShankPort;
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 '}' (5638.sysml line : 23 column : 5)
Code:
```sysml
package Vehicle_Remix_0523_c4f2 {
port def LugNutPort;
port def ShankPort;
port ... | 414 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0523_c4f2 {
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
@@ -9,6 +9,6 @@
part comp_a_9f9b : ShankPort_Def;
part comp_b_3ad2 : LugNutPort_Def;
part comp_distractor_7440 : FuelPort_Distractor_Def;
- connect comp_a_9f9b.p to comp_b_3ad2.p
+ connect comp_a_9f9b.p to comp_b_3ad2.p;
}
}
``` |
4,703 | src_0254 | syntax | swap_keywords | package Vehicle_Remix_0095_5c1c {
part def ClutchPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ClutchPort_Distractor_Def { port p : ClutchPort; }
part def SubSystem_Context {
part comp_a_df3f : FuelPort_Def;
... | ERROR:A port must be typed by port definitions. (2217.sysml line : 10 column : 42) | package Vehicle_Remix_0095_5c1c {
port def ClutchPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ClutchPort_Distractor_Def { port p : ClutchPort; }
part def SubSystem_Context {
part comp_a_df3f : FuelPort_Def;
... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0095_5c1c {
- part def ClutchPort;
+ port def ClutchPort;
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. (2217.sysml line : 10 column : 42)
Code:
```sysml
package Vehicle_Remix_0095_5c1c {
part def ClutchPort;
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. (2217.sysml line : 10 column : 42)
Code:
```sysml
package Vehicle_Remix_0095_5c1c {
part def ClutchPort;
port def FuelPort;
... | 401 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0095_5c1c {
port def ClutchPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ClutchPort_Distractor_Def { port p : ClutchPort; }
part def SubSystem_Context {
pa... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0095_5c1c {
- part def ClutchPort;
+ port def ClutchPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
``` |
5,571 | src_0194 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0035_5a86 {
port def SpeedSensorPort;
port def SetSpeedPort;
port def FuelPort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Con... | ERROR:Domain violation: Port 'comp_a_2b9c.p' (command_signal) cannot connect to 'comp_distractor_6c76.p' (fluid_fuel) (line : 22) | package Vehicle_Remix_0035_5a86 {
port def SpeedSensorPort;
port def SetSpeedPort;
port def FuelPort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Con... | @@ -9,6 +9,6 @@
part comp_a_2b9c : SetSpeedPort_Def;
part comp_b_90f5 : SpeedSensorPort_Def;
part comp_distractor_6c76 : FuelPort_Distractor_Def;
- connect comp_a_2b9c.p to comp_distractor_6c76.p;
+ connect comp_a_2b9c.p to comp_b_90f5.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_0035_5a86 {
port def SpeedSensorPort;
port def SetSpeedPort;
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
- 'SpeedSensorPort' belongs to Domain: command_signal
- 'Se... | 493 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0035_5a86 {
port def SpeedSensorPort;
port def SetSpeedPort;
port def FuelPort;
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def FuelPort_Distractor_Def { port p : FuelP... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_2b9c : SetSpeedPort_Def;
part comp_b_90f5 : SpeedSensorPort_Def;
part comp_distractor_6c76 : FuelPort_Distractor_Def;
- connect comp_a_2b9c.p to comp_distractor_6c76.p;
+ connect comp_a_2b9c.p to comp_b_90f5.p;
}
... |
4,587 | src_0123 | syntax | corrupt_qualified_reference | package ImportTest {
package Pkg1 {
private import Pkg2::Pkg21s::Pkg211::P211;
private import Pkg2::Pkg21::*;
private import Pkg211::*::**;
part p11 : Pkg211::P211;
part def P12;
}
package Pkg2 {
private import Pkg1::*;
package Pkg21 {
package Pkg211 {... | ERROR:Couldn't resolve reference to Membership 'Pkg2::Pkg21s::Pkg211::P211'. (1044.sysml line : 3 column : 21) | package ImportTest {
package Pkg1 {
private import Pkg2::Pkg21::Pkg211::P211;
private import Pkg2::Pkg21::*;
private import Pkg211::*::**;
part p11 : Pkg211::P211;
part def P12;
}
package Pkg2 {
private import Pkg1::*;
package Pkg21 {
package Pkg211 {
... | @@ -1,6 +1,6 @@
package ImportTest {
package Pkg1 {
- private import Pkg2::Pkg21s::Pkg211::P211;
+ private import Pkg2::Pkg21::Pkg211::P211;
private import Pkg2::Pkg21::*;
private import Pkg211::*::**;
part p11 : Pkg211::P211; | 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 Membership 'Pkg2::Pkg21s::Pkg211::P211'. (1044.sysml line : 3 column : 21)
Code:
```sysml
package ImportTest {
package Pkg1 {
private imp... | 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 Membership 'Pkg2::Pkg21s::Pkg211::P211'. (1044.sysml line : 3 column : 21)
Code:
```sysml
package ImportTest {
package Pkg1 {
private imp... | 391 | CODE STATUS = INCORRECT
```sysml
package ImportTest {
package Pkg1 {
private import Pkg2::Pkg21::Pkg211::P211;
private import Pkg2::Pkg21::*;
private import Pkg211::*::**;
part p11 : Pkg211::P211;
part def P12;
}
package Pkg2 {
private import Pkg1::*;
package P... | CODE STATUS = INCORRECT
```sysml
@@ -1,6 +1,6 @@
package ImportTest {
package Pkg1 {
- private import Pkg2::Pkg21s::Pkg211::P211;
+ private import Pkg2::Pkg21::Pkg211::P211;
private import Pkg2::Pkg21::*;
private import Pkg211::*::**;
part p11 : Pkg211::P211;
``` |
2,732 | src_0785 | syntax | swap_keywords | package Vehicle_Remix_0626_9036 {
part def MotorInput;
port def BatteryInput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
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. (6465.sysml line : 9 column : 31) | package Vehicle_Remix_0626_9036 {
port def MotorInput;
port def BatteryInput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
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_0626_9036 {
- part def MotorInput;
+ port def MotorInput;
port def BatteryInput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; } | 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. (6465.sysml line : 9 column : 31)
Code:
```sysml
package Vehicle_Remix_0626_9036 {
part 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:A port must be typed by port definitions. (6465.sysml line : 9 column : 31)
Code:
```sysml
package Vehicle_Remix_0626_9036 {
part def MotorInput;
port def BatteryInput;... | 412 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0626_9036 {
port def MotorInput;
port def BatteryInput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0626_9036 {
- part def MotorInput;
+ port def MotorInput;
port def BatteryInput;
port def FuelPort;
part def MotorInput_Def { port p : MotorInput; }
``` |
4,111 | src_1225 | syntax | remove_random_semicolon | package 'Calculation Usages-1' {
private import ScalarValues::Real;
private import ISQ::*;
private import 'Calculation Definitions'::*;
part def VehicleDynamics {
attribute C_d : Real;
attribute C_f : Real;
attribute wheelPower : PowerValue;
attribute mass : MassValue;
action straightLineDynamics {
in ... | ERROR:no viable alternative at input 'in' (9813.sysml line : 15 column : 4)
ERROR:no viable alternative at input 'out' (9813.sysml line : 15 column : 14)
ERROR:no viable alternative at input 'out' (9813.sysml line : 16 column : 4)
ERROR:extraneous input '}' expecting EOF (9813.sysml line : 42 column : 1) | package 'Calculation Usages-1' {
private import ScalarValues::Real;
private import ISQ::*;
private import 'Calculation Definitions'::*;
part def VehicleDynamics {
attribute C_d : Real;
attribute C_f : Real;
attribute wheelPower : PowerValue;
attribute mass : MassValue;
action straightLineDynamics {
in ... | @@ -10,7 +10,7 @@
action straightLineDynamics {
in delta_t : TimeValue;
in v_in : SpeedValue;
- in x_in : LengthValue
+ in x_in : LengthValue;
out v_out : SpeedValue = vel.v;
out x_out : LengthValue = pos.x;
calc acc : Acceleration { | 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 'in' (9813.sysml line : 15 column : 4)
ERROR:no viable alternative at input 'out' (9813.sysml line : 15 column : 14)
ERROR:no viable alternative... | 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 'in' (9813.sysml line : 15 column : 4)
ERROR:no viable alternative at input 'out' (9813.sysml line : 15 column : 14)
ERROR:no viable alternative... | 687 | CODE STATUS = INCORRECT
```sysml
package 'Calculation Usages-1' {
private import ScalarValues::Real;
private import ISQ::*;
private import 'Calculation Definitions'::*;
part def VehicleDynamics {
attribute C_d : Real;
attribute C_f : Real;
attribute wheelPower : PowerValue;
attribute mass : MassValue;
act... | CODE STATUS = INCORRECT
```sysml
@@ -10,7 +10,7 @@
action straightLineDynamics {
in delta_t : TimeValue;
in v_in : SpeedValue;
- in x_in : LengthValue
+ in x_in : LengthValue;
out v_out : SpeedValue = vel.v;
out x_out : LengthValue = pos.x;
calc acc : Acceleration {
``` |
3,442 | src_1002 | syntax | remove_random_semicolon | package Vehicle_Remix_0843_27d5 {
port def SpeedSensorPort;
port def ShankPort
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankPort_Def { port p : ShankPort; }
part def SpeedSensorPort_Distractor_Def { port p : SpeedSensorPort; }
... | ERROR:no viable alternative at input 'port' (8198.sysml line : 6 column : 5) | package Vehicle_Remix_0843_27d5 {
port def SpeedSensorPort;
port def ShankPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankPort_Def { port p : ShankPort; }
part def SpeedSensorPort_Distractor_Def { port p : SpeedSensorPort; }
... | @@ -1,6 +1,6 @@
package Vehicle_Remix_0843_27d5 {
port def SpeedSensorPort;
- port def ShankPort
+ port def ShankPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankPort_Def { port p : ShankPort; } | 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' (8198.sysml line : 6 column : 5)
Code:
```sysml
package Vehicle_Remix_0843_27d5 {
port def SpeedSensorPort;
port def ShankPort
... | 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' (8198.sysml line : 6 column : 5)
Code:
```sysml
package Vehicle_Remix_0843_27d5 {
port def SpeedSensorPort;
port def ShankPort
... | 424 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0843_27d5 {
port def SpeedSensorPort;
port def ShankPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankPort_Def { port p : ShankPort; }
part def SpeedSensorPort_Distractor_Def... | CODE STATUS = INCORRECT
```sysml
@@ -1,6 +1,6 @@
package Vehicle_Remix_0843_27d5 {
port def SpeedSensorPort;
- port def ShankPort
+ port def ShankPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankPort_Def { port p : ShankPort;... |
7,919 | src_0069 | none | none | package AnalysisIndividualExample {
private import ScalarValues::*;
private import Quantities::*;
private import ISQ::*;
private import USCustomaryUnits::*;
package VehicleQuantities {
private import MeasurementReferences::*;
attribute def DistancePerVolumeUnit :> DerivedUnit {
private ... | none | package AnalysisIndividualExample {
private import ScalarValues::*;
private import Quantities::*;
private import ISQ::*;
private import USCustomaryUnits::*;
package VehicleQuantities {
private import MeasurementReferences::*;
attribute def DistancePerVolumeUnit :> DerivedUnit {
private ... | 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 AnalysisIndividualExample {
private import ScalarValues::*;
private import Quantitie... | 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 AnalysisIndividualExample {
private import ScalarValues::*;
private i... | 776 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
4,312 | src_1278 | syntax | swap_keywords | package '5-State-based Behavior-1a' {
private import ScalarValues::*;
private import ISQ::*;
package Definitions {
part def VehicleA {
/*
* The following declare that 'VehicleA' performs a
* 'provide power' action and exhibits some 'vehicle states',
* without giving details about these behaviors.
... | ERROR:Redefining feature must have a compatible direction (10207.sysml line : 131 column : 30) | package '5-State-based Behavior-1a' {
private import ScalarValues::*;
private import ISQ::*;
package Definitions {
part def VehicleA {
/*
* The following declare that 'VehicleA' performs a
* 'provide power' action and exhibits some 'vehicle states',
* without giving details about these behaviors.
... | @@ -24,7 +24,7 @@
action def 'Provide Power';
action def 'Perform Self Test';
action def 'Apply Parking Brake';
- action def 'Sense Temperature' { in temp: TemperatureValue; }
+ action def 'Sense Temperature' { out temp: TemperatureValue; }
attribute def FuelCmd;
attribute def 'Vehicle Start Signal';
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Redefining feature must have a compatible direction (10207.sysml line : 131 column : 30)
Code:
```sysml
package '5-State-based Behavior-1a' {
private import ScalarValues::*;
... | The following SysML v2 code contains compiler-reported syntax errors.
Repair the code so that it compiles successfully.
Compiler Error:
ERROR:Redefining feature must have a compatible direction (10207.sysml line : 131 column : 30)
Code:
```sysml
package '5-State-based Behavior-1a' {
private import ScalarValues::*;
... | 2,932 | CODE STATUS = INCORRECT
```sysml
package '5-State-based Behavior-1a' {
private import ScalarValues::*;
private import ISQ::*;
package Definitions {
part def VehicleA {
/*
* The following declare that 'VehicleA' performs a
* 'provide power' action and exhibits some 'vehicle states',
* without giving ... | CODE STATUS = INCORRECT
```sysml
@@ -24,7 +24,7 @@
action def 'Provide Power';
action def 'Perform Self Test';
action def 'Apply Parking Brake';
- action def 'Sense Temperature' { in temp: TemperatureValue; }
+ action def 'Sense Temperature' { out temp: TemperatureValue; }
attribute def FuelCmd;
attrib... |
2,426 | src_0687 | syntax | remove_random_semicolon | package Vehicle_Remix_0528_ae56 {
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:no viable alternative at input 'part' (5678.sysml line : 8 column : 5) | package Vehicle_Remix_0528_ae56 {
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... | @@ -1,6 +1,6 @@
package Vehicle_Remix_0528_ae56 {
port def FuelPort;
- port def ShankCompositePort
+ 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;... | 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' (5678.sysml line : 8 column : 5)
Code:
```sysml
package Vehicle_Remix_0528_ae56 {
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:no viable alternative at input 'part' (5678.sysml line : 8 column : 5)
Code:
```sysml
package Vehicle_Remix_0528_ae56 {
port def FuelPort;
port def ShankCompositePort
... | 394 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0528_ae56 {
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
@@ -1,6 +1,6 @@
package Vehicle_Remix_0528_ae56 {
port def FuelPort;
- port def ShankCompositePort
+ port def ShankCompositePort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_D... |
4,996 | src_0632 | syntax | rename_definition_break_usages | package Vehicle_Remix_0473_88c8 {
port def MotorInput;
port def LugNutCompositePort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def MotorInput_Distractor_Def { port p... | ERROR:Couldn't resolve reference to Feature 'p'. (5244.sysml line : 22 column : 29) | package Vehicle_Remix_0473_88c8 {
port def MotorInput;
port def LugNutCompositePort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def MotorInput_Distractor_Def { port p : Moto... | @@ -2,7 +2,7 @@
port def MotorInput;
port def LugNutCompositePort;
port def ShankCompositePort;
- part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
+ part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompo... | 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'. (5244.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0473_88c8 {
port def MotorInput;
port def LugNutCompo... | 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'. (5244.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0473_88c8 {
port def MotorInput;
port def LugNutCompo... | 425 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0473_88c8 {
port def MotorInput;
port def LugNutCompositePort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def MotorInp... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def MotorInput;
port def LugNutCompositePort;
port def ShankCompositePort;
- part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
+ part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompos... |
8,008 | src_0261 | none | none | package Vehicle_Remix_0102_bc70 {
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_feb6 : FuelPort_Def;
... | none | package Vehicle_Remix_0102_bc70 {
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_feb6 : 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_0102_bc70 {
port def ShankPort;
port def FuelPort;
part def FuelPo... | 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
- 'ShankPort' belongs to Domain: mechanical_fastening
Vali... | 294 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,092 | src_0844 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0685_e56b {
port def LugNutPort;
port def FuelPort;
part def LugNutPort_Def { port p : LugNutPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp_a_a865 : LugNutPort_D... | ERROR:Domain violation: Port 'comp_a_a865.p' (mechanical_fastening) cannot connect to 'comp_distractor_651e.p' (fluid_fuel) (line : 21) | package Vehicle_Remix_0685_e56b {
port def LugNutPort;
port def FuelPort;
part def LugNutPort_Def { port p : LugNutPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
part comp_a_a865 : LugNutPort_D... | @@ -8,6 +8,6 @@
part comp_a_a865 : LugNutPort_Def;
part comp_b_e4b7 : LugNutPort_Def;
part comp_distractor_651e : FuelPort_Distractor_Def;
- connect comp_a_a865.p to comp_distractor_651e.p;
+ connect comp_a_a865.p to comp_b_e4b7.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_0685_e56b {
port def LugNutPort;
port def FuelPort;
part def LugNu... | 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
Val... | 463 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0685_e56b {
port def LugNutPort;
port def FuelPort;
part def LugNutPort_Def { port p : LugNutPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -8,6 +8,6 @@
part comp_a_a865 : LugNutPort_Def;
part comp_b_e4b7 : LugNutPort_Def;
part comp_distractor_651e : FuelPort_Distractor_Def;
- connect comp_a_a865.p to comp_distractor_651e.p;
+ connect comp_a_a865.p to comp_b_e4b7.p;
}
}
``` |
4,939 | src_0571 | syntax | swap_keywords | package Vehicle_Remix_0412_d34b {
part def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
... | ERROR:A port must be typed by port definitions. (4753.sysml line : 11 column : 43) | package Vehicle_Remix_0412_d34b {
port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0412_d34b {
- part def MotorOutput;
+ port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; } | 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. (4753.sysml line : 11 column : 43)
Code:
```sysml
package Vehicle_Remix_0412_d34b {
part def MotorOutput;
port def LugNutPort;... | 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. (4753.sysml line : 11 column : 43)
Code:
```sysml
package Vehicle_Remix_0412_d34b {
part def MotorOutput;
port def LugNutPort;... | 409 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0412_d34b {
port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0412_d34b {
- part def MotorOutput;
+ port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
``` |
6,754 | src_0432 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0273_6ec6 {
port def ControlPort;
port def BatteryInput;
port def CruiseControlPort;
part def ControlPort_Def { port p : ControlPort; }
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part de... | ERROR:Domain violation: Port 'comp_a_fdd3.p' (command_signal) cannot connect to 'comp_distractor_e5f6.p' (electrical_power) (line : 22) | package Vehicle_Remix_0273_6ec6 {
port def ControlPort;
port def BatteryInput;
port def CruiseControlPort;
part def ControlPort_Def { port p : ControlPort; }
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part de... | @@ -9,6 +9,6 @@
part comp_a_fdd3 : ControlPort_Def;
part comp_b_f2a5 : CruiseControlPort_Def;
part comp_distractor_e5f6 : BatteryInput_Distractor_Def;
- connect comp_a_fdd3.p to comp_distractor_e5f6.p;
+ connect comp_a_fdd3.p to comp_b_f2a5.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_0273_6ec6 {
port def ControlPort;
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:
- 'ControlPort' belongs to Domain: command_signal
- 'CruiseControlPort' belongs to Domain: command_sig... | 467 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0273_6ec6 {
port def ControlPort;
port def BatteryInput;
port def CruiseControlPort;
part def ControlPort_Def { port p : ControlPort; }
part def CruiseControlPort_Def { port p : CruiseControlPort; }
part def BatteryInput_Distractor_Def { por... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_fdd3 : ControlPort_Def;
part comp_b_f2a5 : CruiseControlPort_Def;
part comp_distractor_e5f6 : BatteryInput_Distractor_Def;
- connect comp_a_fdd3.p to comp_distractor_e5f6.p;
+ connect comp_a_fdd3.p to comp_b_f2a5.p;
... |
3,472 | src_1011 | syntax | swap_keywords | package Vehicle_Remix_0852_45e4 {
part def MotorOutput;
port def ShankPort;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubS... | ERROR:A port must be typed by port definitions. (8273.sysml line : 11 column : 43) | package Vehicle_Remix_0852_45e4 {
port def MotorOutput;
port def ShankPort;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubS... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0852_45e4 {
- part def MotorOutput;
+ port def MotorOutput;
port def ShankPort;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; } | 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. (8273.sysml line : 11 column : 43)
Code:
```sysml
package Vehicle_Remix_0852_45e4 {
part 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:A port must be typed by port definitions. (8273.sysml line : 11 column : 43)
Code:
```sysml
package Vehicle_Remix_0852_45e4 {
part def MotorOutput;
port def ShankPort;
... | 413 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0852_45e4 {
port def MotorOutput;
port def ShankPort;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def MotorOutput_Distractor_Def { port p :... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0852_45e4 {
- part def MotorOutput;
+ port def MotorOutput;
port def ShankPort;
port def ShankCompositePort;
part def ShankPort_Def { port p : ShankPort; }
``` |
5,661 | src_0309 | domain | mutate_valid_connection_to_domain_error | 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:Domain violation: Port 'comp_a_ddb4.p' (electrical_power) cannot connect to 'comp_distractor_728f.p' (fluid_fuel) (line : 22) | 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 {
... | @@ -9,6 +9,6 @@
part comp_a_ddb4 : MotorInput_Def;
part comp_b_cf39 : BatteryOutput_Def;
part comp_distractor_728f : FuelPort_Distractor_Def;
- connect comp_a_ddb4.p to comp_distractor_728f.p;
+ connect comp_a_ddb4.p to comp_b_cf39.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_0150_144a {
port def MotorInput;
port def BatteryOutput;
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:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'BatteryOutput' belongs to Domain: electrical_power
- 'Mo... | 462 | 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
@@ -9,6 +9,6 @@
part comp_a_ddb4 : MotorInput_Def;
part comp_b_cf39 : BatteryOutput_Def;
part comp_distractor_728f : FuelPort_Distractor_Def;
- connect comp_a_ddb4.p to comp_distractor_728f.p;
+ connect comp_a_ddb4.p to comp_b_cf39.p;
}
}
`... |
1,032 | src_0256 | syntax | swap_keywords | package Vehicle_Remix_0097_cc2e {
part 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... | ERROR:A port must be typed by port definitions. (2233.sysml line : 9 column : 31) | 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... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0097_cc2e {
- part def LugNutPort;
+ port def LugNutPort;
port def ShankPort;
port def FuelPort;
part def LugNutPort_Def { port p : LugNutPort; } | 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. (2233.sysml line : 9 column : 31)
Code:
```sysml
package Vehicle_Remix_0097_cc2e {
part def LugNutPort;
port def ShankPort;
... | 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. (2233.sysml line : 9 column : 31)
Code:
```sysml
package Vehicle_Remix_0097_cc2e {
part def LugNutPort;
port def ShankPort;
... | 410 | CODE STATUS = INCORRECT
```sysml
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 SubS... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0097_cc2e {
- part def LugNutPort;
+ port def LugNutPort;
port def ShankPort;
port def FuelPort;
part def LugNutPort_Def { port p : LugNutPort; }
``` |
1,477 | src_0393 | syntax | rename_definition_break_usages | package Vehicle_Remix_0234_1a2f {
port def IgnitionCmdPort;
port def FuelPort;
part def FuelPort_Def { port p_BROKEN : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
part comp_a_7... | ERROR:Couldn't resolve reference to Feature 'p'. (3332.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (3332.sysml line : 21 column : 46) | package Vehicle_Remix_0234_1a2f {
port def IgnitionCmdPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
part comp_a_7f03 : F... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0234_1a2f {
port def IgnitionCmdPort;
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 IgnitionCmdPort_Distractor_Def { port p : I... | 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'. (3332.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (3332.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'. (3332.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (3332.sysml line : 21 column : 46)
Code:
```sysm... | 443 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0234_1a2f {
port def IgnitionCmdPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Conte... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0234_1a2f {
port def IgnitionCmdPort;
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 IgnitionCm... |
3,860 | src_1138 | syntax | swap_keywords | package Vehicle_Remix_0979_de96 {
part def DiffPort;
port def WheelHubIF;
port def CruiseControlPort;
part def DiffPort_Def { port p : DiffPort; }
part def WheelHubIF_Def { port p : WheelHubIF; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part def SubSystem_Con... | ERROR:A port must be typed by port definitions. (9289.sysml line : 9 column : 29) | package Vehicle_Remix_0979_de96 {
port def DiffPort;
port def WheelHubIF;
port def CruiseControlPort;
part def DiffPort_Def { port p : DiffPort; }
part def WheelHubIF_Def { port p : WheelHubIF; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part def SubSystem_Con... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0979_de96 {
- part def DiffPort;
+ port def DiffPort;
port def WheelHubIF;
port def CruiseControlPort;
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:A port must be typed by port definitions. (9289.sysml line : 9 column : 29)
Code:
```sysml
package Vehicle_Remix_0979_de96 {
part def DiffPort;
port def WheelHubIF;
... | 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. (9289.sysml line : 9 column : 29)
Code:
```sysml
package Vehicle_Remix_0979_de96 {
part def DiffPort;
port def WheelHubIF;
... | 422 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0979_de96 {
port def DiffPort;
port def WheelHubIF;
port def CruiseControlPort;
part def DiffPort_Def { port p : DiffPort; }
part def WheelHubIF_Def { port p : WheelHubIF; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlP... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0979_de96 {
- part def DiffPort;
+ port def DiffPort;
port def WheelHubIF;
port def CruiseControlPort;
part def DiffPort_Def { port p : DiffPort; }
``` |
1,251 | src_0325 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0166_4361 {
port def MotorOutput;
port def VehicleToRoadPort;
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort;
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def... | ERROR:mismatched input '<EOF>' expecting '}' (2783.sysml line : 24 column : 1) | package Vehicle_Remix_0166_4361 {
port def MotorOutput;
port def VehicleToRoadPort;
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part de... | @@ -2,7 +2,7 @@
port def MotorOutput;
port def VehicleToRoadPort;
port def DrivePwrPort;
- part def DrivePwrPort_Def { port p : DrivePwrPort;
+ part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
part def MotorOutput_Distrac... | 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 '}' (2783.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0166_4361 {
port def MotorOutput;
port def VehicleToRoadPo... | 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 '}' (2783.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0166_4361 {
port def MotorOutput;
port def VehicleToRoadPo... | 447 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0166_4361 {
port def MotorOutput;
port def VehicleToRoadPort;
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
part def MotorOutput_Distractor_Def { po... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def MotorOutput;
port def VehicleToRoadPort;
port def DrivePwrPort;
- part def DrivePwrPort_Def { port p : DrivePwrPort;
+ part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
... |
7,136 | src_0444 | none | none | package Vehicle_Remix_0285_826b {
port def DriverCmdPort;
port def ControlPort;
port def AxlePort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxlePort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0285_826b {
port def DriverCmdPort;
port def ControlPort;
port def AxlePort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def AxlePort_Distractor_Def { port p : AxlePort; }
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_0285_826b {
port def DriverCmdPort;
port def ControlPort;
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
- ... | 325 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
4,515 | src_0058 | syntax | remove_random_semicolon | package CarWithEnvelopingShape {
private import ShapeItems::Box;
private import SI::mm;
part def Car {
doc
/*
* Example car with simple enveloping shape that is a solid box
*/
item boundingBox : Box [1] :> boundingShapes {
:>> length = 4800 [mm];
:>> width = 1840 [mm]
:>> height = 1350 [mm];
... | ERROR:no viable alternative at input ':>>' (552.sysml line : 14 column : 4) | package CarWithEnvelopingShape {
private import ShapeItems::Box;
private import SI::mm;
part def Car {
doc
/*
* Example car with simple enveloping shape that is a solid box
*/
item boundingBox : Box [1] :> boundingShapes {
:>> length = 4800 [mm];
:>> width = 1840 [mm];
:>> height = 1350 [mm];
... | @@ -8,7 +8,7 @@
*/
item boundingBox : Box [1] :> boundingShapes {
:>> length = 4800 [mm];
- :>> width = 1840 [mm]
+ :>> width = 1840 [mm];
:>> height = 1350 [mm];
}
} | 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 ':>>' (552.sysml line : 14 column : 4)
Code:
```sysml
package CarWithEnvelopingShape {
private import ShapeItems::Box;
private import SI::mm;
... | 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 ':>>' (552.sysml line : 14 column : 4)
Code:
```sysml
package CarWithEnvelopingShape {
private import ShapeItems::Box;
private import SI::mm;
... | 324 | CODE STATUS = INCORRECT
```sysml
package CarWithEnvelopingShape {
private import ShapeItems::Box;
private import SI::mm;
part def Car {
doc
/*
* Example car with simple enveloping shape that is a solid box
*/
item boundingBox : Box [1] :> boundingShapes {
:>> length = 4800 [mm];
:>> width = 1840 [... | CODE STATUS = INCORRECT
```sysml
@@ -8,7 +8,7 @@
*/
item boundingBox : Box [1] :> boundingShapes {
:>> length = 4800 [mm];
- :>> width = 1840 [mm]
+ :>> width = 1840 [mm];
:>> height = 1350 [mm];
}
}
``` |
2,127 | src_0598 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0439_e82b {
port def AxleMountIF;
port def HandPort;
part def HandPort_Def { port p : HandPort; }
part def HandPort_Def { port p : HandPort; }
part def AxleMountIF_Distractor_Def { port p : AxleMountIF;
part def SubSystem_Context {
part comp_a_cd85 : HandPort_Def;
... | ERROR:mismatched input '<EOF>' expecting '}' (4967.sysml line : 23 column : 1) | package Vehicle_Remix_0439_e82b {
port def AxleMountIF;
port def HandPort;
part def HandPort_Def { port p : HandPort; }
part def HandPort_Def { port p : HandPort; }
part def AxleMountIF_Distractor_Def { port p : AxleMountIF; }
part def SubSystem_Context {
part comp_a_cd85 : HandPort_Def;... | @@ -3,7 +3,7 @@
port def HandPort;
part def HandPort_Def { port p : HandPort; }
part def HandPort_Def { port p : HandPort; }
- part def AxleMountIF_Distractor_Def { port p : AxleMountIF;
+ part def AxleMountIF_Distractor_Def { port p : AxleMountIF; }
part def SubSystem_Context {
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 '}' (4967.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0439_e82b {
port def AxleMountIF;
port def HandPort;
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 '}' (4967.sysml line : 23 column : 1)
Code:
```sysml
package Vehicle_Remix_0439_e82b {
port def AxleMountIF;
port def HandPort;
p... | 399 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0439_e82b {
port def AxleMountIF;
port def HandPort;
part def HandPort_Def { port p : HandPort; }
part def HandPort_Def { port p : HandPort; }
part def AxleMountIF_Distractor_Def { port p : AxleMountIF; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
port def HandPort;
part def HandPort_Def { port p : HandPort; }
part def HandPort_Def { port p : HandPort; }
- part def AxleMountIF_Distractor_Def { port p : AxleMountIF;
+ part def AxleMountIF_Distractor_Def { port p : AxleMountIF; }
part def ... |
7,388 | src_0758 | none | none | package Vehicle_Remix_0599_ef3c {
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_4b1f : FuelPort_Def;... | none | package Vehicle_Remix_0599_ef3c {
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_4b1f : 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_0599_ef3c {
port def ShaftPort_b;
port def FuelPort;
part 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:
- 'ShaftPort_b' belongs to Domain: mechanical_torque
- 'FuelPort' belongs to Domain: fluid_fuel
Valid... | 305 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
721 | src_0159 | syntax | rename_definition_break_usages | package Vehicle_Remix_0000_8451 {
port def LugNutCompositePort;
port def FuelPort;
part def FuelPort_Def { port p_BROKEN : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_Context {
p... | ERROR:Couldn't resolve reference to Feature 'p'. (1460.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (1460.sysml line : 21 column : 46) | package Vehicle_Remix_0000_8451 {
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... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0000_8451 {
port def LugNutCompositePort;
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 LugNutCompositePort_Distractor_Def { po... | 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'. (1460.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (1460.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'. (1460.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (1460.sysml line : 21 column : 46)
Code:
```sysm... | 439 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0000_8451 {
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
@@ -1,7 +1,7 @@
package Vehicle_Remix_0000_8451 {
port def LugNutCompositePort;
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 LugNut... |
7,374 | src_0742 | none | none | package Vehicle_Remix_0583_d3b2 {
port def ControlPort;
port def HandPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
part def HandPort_Def { port p : HandPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSyst... | none | package Vehicle_Remix_0583_d3b2 {
port def ControlPort;
port def HandPort;
port def ShankCompositePort;
part def ControlPort_Def { port p : ControlPort; }
part def HandPort_Def { port p : HandPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
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_0583_d3b2 {
port def ControlPort;
port def HandPort;
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:
- 'ControlPort' belongs to Domain: command_signal
- 'HandPort' belongs to Domain: command_signal
- 'Sh... | 319 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
2,584 | src_0739 | syntax | swap_keywords | package Vehicle_Remix_0580_a8e2 {
part def FuelCmdPort;
port def ShankPort;
port def ControlPort;
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | ERROR:A port must be typed by port definitions. (6097.sysml line : 9 column : 32) | package Vehicle_Remix_0580_a8e2 {
port def FuelCmdPort;
port def ShankPort;
port def ControlPort;
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0580_a8e2 {
- part def FuelCmdPort;
+ port def FuelCmdPort;
port def ShankPort;
port def ControlPort;
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:A port must be typed by port definitions. (6097.sysml line : 9 column : 32)
Code:
```sysml
package Vehicle_Remix_0580_a8e2 {
part def FuelCmdPort;
port def ShankPort;
... | 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. (6097.sysml line : 9 column : 32)
Code:
```sysml
package Vehicle_Remix_0580_a8e2 {
part def FuelCmdPort;
port def ShankPort;
... | 420 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0580_a8e2 {
port def FuelCmdPort;
port def ShankPort;
port def ControlPort;
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
p... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0580_a8e2 {
- part def FuelCmdPort;
+ port def FuelCmdPort;
port def ShankPort;
port def ControlPort;
part def FuelCmdPort_Def { port p : FuelCmdPort; }
``` |
5,808 | src_0485 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0326_963a {
port def MotorOutput;
port def BatteryOutput;
port def CruiseControlPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part... | ERROR:Domain violation: Port 'comp_a_a172.p' (electrical_power) cannot connect to 'comp_distractor_6b8e.p' (command_signal) (line : 22) | package Vehicle_Remix_0326_963a {
port def MotorOutput;
port def BatteryOutput;
port def CruiseControlPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part... | @@ -9,6 +9,6 @@
part comp_a_a172 : MotorOutput_Def;
part comp_b_f0e1 : BatteryOutput_Def;
part comp_distractor_6b8e : CruiseControlPort_Distractor_Def;
- connect comp_a_a172.p to comp_distractor_6b8e.p;
+ connect comp_a_a172.p to comp_b_f0e1.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_0326_963a {
port def MotorOutput;
port def BatteryOutput;
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:
- 'CruiseControlPort' belongs to Domain: command_signal
- 'BatteryOutput' belongs to Domain: electrica... | 476 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0326_963a {
port def MotorOutput;
port def BatteryOutput;
port def CruiseControlPort;
part def MotorOutput_Def { port p : MotorOutput; }
part def BatteryOutput_Def { port p : BatteryOutput; }
part def CruiseControlPort_Distractor_Def { port ... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_a172 : MotorOutput_Def;
part comp_b_f0e1 : BatteryOutput_Def;
part comp_distractor_6b8e : CruiseControlPort_Distractor_Def;
- connect comp_a_a172.p to comp_distractor_6b8e.p;
+ connect comp_a_a172.p to comp_b_f0e1.p;
... |
2,054 | src_0570 | syntax | remove_random_semicolon | package Vehicle_Remix_0411_40cd {
port def LugNutCompositePort;
port def AxleToWheelPort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def AxleToWheelPort_Distractor_Def { por... | ERROR:no viable alternative at input 'part' (4742.sysml line : 16 column : 9) | package Vehicle_Remix_0411_40cd {
port def LugNutCompositePort;
port def AxleToWheelPort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def AxleToWheelPort_Distractor_Def { por... | @@ -6,7 +6,7 @@
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def AxleToWheelPort_Distractor_Def { port p : AxleToWheelPort; }
part def SubSystem_Context {
- part comp_a_b6e2 : LugNutCompositePort_Def
+ part comp_a_b6e2 : LugNutCompositePort_Def;
part comp_b... | 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' (4742.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0411_40cd {
port def LugNutCompositePort;
port def AxleToWh... | 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' (4742.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0411_40cd {
port def LugNutCompositePort;
port def AxleToWh... | 455 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0411_40cd {
port def LugNutCompositePort;
port def AxleToWheelPort;
port def ShankCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def Axl... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def AxleToWheelPort_Distractor_Def { port p : AxleToWheelPort; }
part def SubSystem_Context {
- part comp_a_b6e2 : LugNutCompositePort_Def
+ part comp_a_b6e2 : LugNutCompos... |
5,156 | src_0830 | syntax | rename_definition_break_usages | package Vehicle_Remix_0671_7270 {
port def TireInput;
port def FuelPort;
part def FuelPort_Def { port p_BROKEN : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def TireInput_Distractor_Def { port p : TireInput; }
part def SubSystem_Context {
part comp_a_5418 : FuelPort_Def... | ERROR:Couldn't resolve reference to Feature 'p'. (6828.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6828.sysml line : 21 column : 46) | package Vehicle_Remix_0671_7270 {
port def TireInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def TireInput_Distractor_Def { port p : TireInput; }
part def SubSystem_Context {
part comp_a_5418 : FuelPort_Def;
... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0671_7270 {
port def TireInput;
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 TireInput_Distractor_Def { port p : TireInput; }
... | 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'. (6828.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6828.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'. (6828.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6828.sysml line : 21 column : 46)
Code:
```sysm... | 427 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0671_7270 {
port def TireInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def TireInput_Distractor_Def { port p : TireInput; }
part def SubSystem_Context {
part ... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0671_7270 {
port def TireInput;
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 TireInput_Distra... |
2,619 | src_0749 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0590_d75e {
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 {
... | ERROR:mismatched input '<EOF>' expecting '}' (6175.sysml line : 23 column : 6) | package Vehicle_Remix_0590_d75e {
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 {
... | @@ -11,3 +11,4 @@
part comp_distractor_e632 : FuelPort_Distractor_Def;
connect comp_a_2978.p to comp_b_ed51.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 '}' (6175.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0590_d75e {
port 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:mismatched input '<EOF>' expecting '}' (6175.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0590_d75e {
port def MotorOutput;
port def BatteryInput;
... | 402 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0590_d75e {
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
@@ -11,3 +11,4 @@
part comp_distractor_e632 : FuelPort_Distractor_Def;
connect comp_a_2978.p to comp_b_ed51.p;
}
+}
``` |
5,155 | src_0830 | syntax | swap_keywords | package Vehicle_Remix_0671_7270 {
part def TireInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def TireInput_Distractor_Def { port p : TireInput; }
part def SubSystem_Context {
part comp_a_5418 : FuelPort_Def;
... | ERROR:A port must be typed by port definitions. (6825.sysml line : 10 column : 41) | package Vehicle_Remix_0671_7270 {
port def TireInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def TireInput_Distractor_Def { port p : TireInput; }
part def SubSystem_Context {
part comp_a_5418 : FuelPort_Def;
... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0671_7270 {
- part def TireInput;
+ port def TireInput;
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. (6825.sysml line : 10 column : 41)
Code:
```sysml
package Vehicle_Remix_0671_7270 {
part def TireInput;
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. (6825.sysml line : 10 column : 41)
Code:
```sysml
package Vehicle_Remix_0671_7270 {
part def TireInput;
port def FuelPort;
... | 393 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0671_7270 {
port def TireInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def TireInput_Distractor_Def { port p : TireInput; }
part def SubSystem_Context {
part ... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0671_7270 {
- part def TireInput;
+ port def TireInput;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
``` |
4,563 | src_0107 | syntax | corrupt_qualified_reference | package ActionTest {
action def A{ in x; }
action a: A {
first start;
action b { in y = x; }
bind x = b.y;
}
attribute def S;
action a1 {
first start;
then merge m;
then accept S;
then accept sig after 10[SI::s];
then accept at new Time::Iso8601DateTimes("2022-01-30T01:00:00Z");
then send new... | ERROR:Couldn't resolve reference to Element 'Time::Iso8601DateTimes'. (958.sysml line : 19 column : 22)
ERROR:An at expression must be a TimeInstantValue. (958.sysml line : 19 column : 15)
ERROR:Must correspond to one feature of the instantiated type (958.sysml line : 19 column : 45) | package ActionTest {
action def A{ in x; }
action a: A {
first start;
action b { in y = x; }
bind x = b.y;
}
attribute def S;
action a1 {
first start;
then merge m;
then accept S;
then accept sig after 10[SI::s];
then accept at new Time::Iso8601DateTime("2022-01-30T01:00:00Z");
then send new ... | @@ -11,7 +11,7 @@
then merge m;
then accept S;
then accept sig after 10[SI::s];
- then accept at new Time::Iso8601DateTimes("2022-01-30T01:00:00Z");
+ then accept at new Time::Iso8601DateTime("2022-01-30T01:00:00Z");
then send new S() to b;
then accept when b.f;
then decide; | 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 'Time::Iso8601DateTimes'. (958.sysml line : 19 column : 22)
ERROR:An at expression must be a TimeInstantValue. (958.sysml line : 19 column... | 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 'Time::Iso8601DateTimes'. (958.sysml line : 19 column : 22)
ERROR:An at expression must be a TimeInstantValue. (958.sysml line : 19 column... | 713 | CODE STATUS = INCORRECT
```sysml
package ActionTest {
action def A{ in x; }
action a: A {
first start;
action b { in y = x; }
bind x = b.y;
}
attribute def S;
action a1 {
first start;
then merge m;
then accept S;
then accept sig after 10[SI::s];
then accept at new Time::Iso8601DateTime("2022-01... | CODE STATUS = INCORRECT
```sysml
@@ -11,7 +11,7 @@
then merge m;
then accept S;
then accept sig after 10[SI::s];
- then accept at new Time::Iso8601DateTimes("2022-01-30T01:00:00Z");
+ then accept at new Time::Iso8601DateTime("2022-01-30T01:00:00Z");
then send new S() to b;
then accept when b.f;
the... |
7,836 | src_0755 | none | none | package Vehicle_Remix_0596_5e6a {
port def HandPort;
port def ShaftPort_a;
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def ShaftPort_a_Def { port p : ShaftPort_a; }
part def HandPort_Distractor_Def { port p : HandPort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0596_5e6a {
port def HandPort;
port def ShaftPort_a;
port def DrivePwrPort;
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def ShaftPort_a_Def { port p : ShaftPort_a; }
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_0596_5e6a {
port def HandPort;
port def ShaftPort_a;
port def Driv... | 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:
- 'DrivePwrPort' belongs to Domain: mechanical_torque
- 'ShaftPort_a' belongs to Domain: mechanical_to... | 331 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
2,762 | src_0795 | syntax | remove_random_semicolon | package Vehicle_Remix_0636_96d5 {
port def DiffPort
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def DiffPort_Distractor_Def { port p : DiffPort;... | ERROR:no viable alternative at input 'port' (6542.sysml line : 5 column : 5) | package Vehicle_Remix_0636_96d5 {
port def DiffPort;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def DiffPort_Distractor_Def { port p : DiffPort... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0636_96d5 {
- port def DiffPort
+ port def DiffPort;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; } | 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' (6542.sysml line : 5 column : 5)
Code:
```sysml
package Vehicle_Remix_0636_96d5 {
port def DiffPort
port def LugNutCompositePort;
... | 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' (6542.sysml line : 5 column : 5)
Code:
```sysml
package Vehicle_Remix_0636_96d5 {
port def DiffPort
port def LugNutCompositePort;
... | 422 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0636_96d5 {
port def DiffPort;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def DiffPort_D... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0636_96d5 {
- port def DiffPort
+ port def DiffPort;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
``` |
1,792 | src_0488 | syntax | swap_keywords | package Vehicle_Remix_0329_de44 {
part def LugNutCompositePort;
port def FuelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Cont... | ERROR:A port must be typed by port definitions. (4089.sysml line : 8 column : 40)
ERROR:A port must be typed by port definitions. (4089.sysml line : 9 column : 40) | package Vehicle_Remix_0329_de44 {
port def LugNutCompositePort;
port def FuelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Cont... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0329_de44 {
- part def LugNutCompositePort;
+ port def LugNutCompositePort;
port def FuelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; } | 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. (4089.sysml line : 8 column : 40)
ERROR:A port must be typed by port definitions. (4089.sysml line : 9 column : 40)
Code:
```sysml
pa... | 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. (4089.sysml line : 8 column : 40)
ERROR:A port must be typed by port definitions. (4089.sysml line : 9 column : 40)
Code:
```sysml
pa... | 446 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0329_de44 {
port def LugNutCompositePort;
port def FuelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPo... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0329_de44 {
- part def LugNutCompositePort;
+ port def LugNutCompositePort;
port def FuelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; ... |
1,948 | src_0535 | syntax | swap_keywords | package Vehicle_Remix_0376_1fc6 {
part def BatteryInput;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def BatteryInput_Distractor_Def { port p : ... | ERROR:A port must be typed by port definitions. (4465.sysml line : 11 column : 44) | package Vehicle_Remix_0376_1fc6 {
port def BatteryInput;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def BatteryInput_Distractor_Def { port p : ... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0376_1fc6 {
- part def BatteryInput;
+ port def BatteryInput;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; } | 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. (4465.sysml line : 11 column : 44)
Code:
```sysml
package Vehicle_Remix_0376_1fc6 {
part def BatteryInput;
port def LugNutComp... | 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. (4465.sysml line : 11 column : 44)
Code:
```sysml
package Vehicle_Remix_0376_1fc6 {
part def BatteryInput;
port def LugNutComp... | 433 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0376_1fc6 {
port def BatteryInput;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def Batter... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0376_1fc6 {
- part def BatteryInput;
+ port def BatteryInput;
port def LugNutCompositePort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
``` |
7,189 | src_0504 | none | none | package Vehicle_Remix_0345_551e {
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... | none | package Vehicle_Remix_0345_551e {
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... | 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_0345_551e {
port def MotorInput;
port def LugNutCompositePort;
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.
Domain Rules:
- 'MotorInput' belongs to Domain: electrical_power
- 'LugNutCompositePort' belongs to Domain: mechanic... | 316 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
7,715 | src_1289 | none | none | package '10d-Dynamics Analysis' {
private import ISQ::*;
package VehicleModel {
part def Vehicle {
attribute mass :> ISQ::mass;
}
}
package DynamicsModel {
calc def Acceleration {
in p : PowerValue;
in m : MassValue;
in v : SpeedValue;
return : AccelerationValue = p / (m * v);
... | none | package '10d-Dynamics Analysis' {
private import ISQ::*;
package VehicleModel {
part def Vehicle {
attribute mass :> ISQ::mass;
}
}
package DynamicsModel {
calc def Acceleration {
in p : PowerValue;
in m : MassValue;
in v : SpeedValue;
return : AccelerationValue = p / (m * v);
... | 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 '10d-Dynamics Analysis' {
private import ISQ::*;
package VehicleModel {
part def Vehicle... | 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 '10d-Dynamics Analysis' {
private import ISQ::*;
package VehicleModel {
p... | 617 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,962 | src_0229 | none | none | package Vehicle_Remix_0070_c98b {
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_653e : FuelPort_Def;... | none | package Vehicle_Remix_0070_c98b {
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_653e : 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_0070_c98b {
port def MotorOutput;
port def FuelPort;
part 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
- 'MotorOutput' belongs to Domain: electrical_power
Valid ... | 294 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,733 | src_0326 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0167_bc1e {
port def TireInput;
port def LugNutCompositePort;
port def GearPort;
part def GearPort_Def { port p : GearPort; }
part def TireInput_Def { port p : TireInput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_... | ERROR:Domain violation: Port 'comp_a_be60.p' (mechanical_torque) cannot connect to 'comp_distractor_d8fc.p' (mechanical_fastening) (line : 22) | package Vehicle_Remix_0167_bc1e {
port def TireInput;
port def LugNutCompositePort;
port def GearPort;
part def GearPort_Def { port p : GearPort; }
part def TireInput_Def { port p : TireInput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def SubSystem_... | @@ -9,6 +9,6 @@
part comp_a_be60 : GearPort_Def;
part comp_b_7077 : TireInput_Def;
part comp_distractor_d8fc : LugNutCompositePort_Distractor_Def;
- connect comp_a_be60.p to comp_distractor_d8fc.p;
+ connect comp_a_be60.p to comp_b_7077.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_0167_bc1e {
port def TireInput;
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:
- 'GearPort' belongs to Domain: mechanical_torque
- 'TireInput' belongs to Domain: mechanical_torque
-... | 485 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0167_bc1e {
port def TireInput;
port def LugNutCompositePort;
port def GearPort;
part def GearPort_Def { port p : GearPort; }
part def TireInput_Def { port p : TireInput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutComposi... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_be60 : GearPort_Def;
part comp_b_7077 : TireInput_Def;
part comp_distractor_d8fc : LugNutCompositePort_Distractor_Def;
- connect comp_a_be60.p to comp_distractor_d8fc.p;
+ connect comp_a_be60.p to comp_b_7077.p;
}... |
3,616 | src_1057 | syntax | swap_keywords | package Vehicle_Remix_0898_a4b5 {
part def MotorOutput;
port def WheelToAxlePort;
port def AxlePort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def AxlePort_Def { port p : AxlePort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Contex... | ERROR:A port must be typed by port definitions. (8641.sysml line : 11 column : 43) | package Vehicle_Remix_0898_a4b5 {
port def MotorOutput;
port def WheelToAxlePort;
port def AxlePort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def AxlePort_Def { port p : AxlePort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Contex... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0898_a4b5 {
- part def MotorOutput;
+ port def MotorOutput;
port def WheelToAxlePort;
port def AxlePort;
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. (8641.sysml line : 11 column : 43)
Code:
```sysml
package Vehicle_Remix_0898_a4b5 {
part def MotorOutput;
port def WheelToAxle... | 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. (8641.sysml line : 11 column : 43)
Code:
```sysml
package Vehicle_Remix_0898_a4b5 {
part def MotorOutput;
port def WheelToAxle... | 433 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0898_a4b5 {
port def MotorOutput;
port def WheelToAxlePort;
port def AxlePort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
part def AxlePort_Def { port p : AxlePort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0898_a4b5 {
- part def MotorOutput;
+ port def MotorOutput;
port def WheelToAxlePort;
port def AxlePort;
part def WheelToAxlePort_Def { port p : WheelToAxlePort; }
``` |
1,746 | src_0475 | syntax | remove_random_semicolon | 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... | ERROR:no viable alternative at input 'part' (3982.sysml line : 19 column : 9) | 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... | @@ -7,7 +7,7 @@
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
part comp_a_43e9 : WheelToRoadPort_Def;
- part comp_b_08c9 : AxlePort_Def
+ part comp_b_08c9 : AxlePort_Def;
part comp_distractor_ae7f : BatteryInput_Distractor_Def;
... | 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' (3982.sysml line : 19 column : 9)
Code:
```sysml
package Vehicle_Remix_0316_d8e2 {
port def BatteryInput;
port def AxlePort;
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 'part' (3982.sysml line : 19 column : 9)
Code:
```sysml
package Vehicle_Remix_0316_d8e2 {
port def BatteryInput;
port def AxlePort;
p... | 433 | CODE STATUS = INCORRECT
```sysml
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 : BatteryIn... | CODE STATUS = INCORRECT
```sysml
@@ -7,7 +7,7 @@
part def BatteryInput_Distractor_Def { port p : BatteryInput; }
part def SubSystem_Context {
part comp_a_43e9 : WheelToRoadPort_Def;
- part comp_b_08c9 : AxlePort_Def
+ part comp_b_08c9 : AxlePort_Def;
part comp_distractor_ae7f :... |
1,123 | src_0285 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0126_b082 {
port def StatusPort;
port def ClutchPort;
port def DrivePwrPort;
part def ClutchPort_Def { port p : ClutchPort; }
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
part def SubSystem_Context {
... | ERROR:mismatched input '<EOF>' expecting '}' (2463.sysml line : 24 column : 1) | package Vehicle_Remix_0126_b082 {
port def StatusPort;
port def ClutchPort;
port def DrivePwrPort;
part def ClutchPort_Def { port p : ClutchPort; }
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
part def SubSystem_Context {
... | @@ -10,4 +10,5 @@
part comp_b_cb0e : DrivePwrPort_Def;
part comp_distractor_7fc4 : StatusPort_Distractor_Def;
connect comp_a_1892.p to comp_b_cb0e.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 '}' (2463.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0126_b082 {
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 '}' (2463.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0126_b082 {
port def StatusPort;
port def ClutchPort;
... | 425 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0126_b082 {
port def StatusPort;
port def ClutchPort;
port def DrivePwrPort;
part def ClutchPort_Def { port p : ClutchPort; }
part def DrivePwrPort_Def { port p : DrivePwrPort; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -10,4 +10,5 @@
part comp_b_cb0e : DrivePwrPort_Def;
part comp_distractor_7fc4 : StatusPort_Distractor_Def;
connect comp_a_1892.p to comp_b_cb0e.p;
+ }
}
``` |
2,846 | src_0820 | syntax | remove_random_semicolon | package Vehicle_Remix_0661_502a {
port def DriverCmdPort;
port def SetSpeedPort;
port def WheelToRoadPort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def WheelToRoadPort_Distractor_Def { port p : WheelToRoadPort; }
part de... | ERROR:no viable alternative at input 'part' (6742.sysml line : 19 column : 9) | package Vehicle_Remix_0661_502a {
port def DriverCmdPort;
port def SetSpeedPort;
port def WheelToRoadPort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def WheelToRoadPort_Distractor_Def { port p : WheelToRoadPort; }
part de... | @@ -7,7 +7,7 @@
part def WheelToRoadPort_Distractor_Def { port p : WheelToRoadPort; }
part def SubSystem_Context {
part comp_a_c289 : DriverCmdPort_Def;
- part comp_b_0516 : SetSpeedPort_Def
+ part comp_b_0516 : SetSpeedPort_Def;
part comp_distractor_813e : WheelToRoadPort_Dist... | 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' (6742.sysml line : 19 column : 9)
Code:
```sysml
package Vehicle_Remix_0661_502a {
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' (6742.sysml line : 19 column : 9)
Code:
```sysml
package Vehicle_Remix_0661_502a {
port def DriverCmdPort;
port def SetSpeedPort;
... | 441 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0661_502a {
port def DriverCmdPort;
port def SetSpeedPort;
port def WheelToRoadPort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def WheelToRoadPort_Distractor_Def { port p... | CODE STATUS = INCORRECT
```sysml
@@ -7,7 +7,7 @@
part def WheelToRoadPort_Distractor_Def { port p : WheelToRoadPort; }
part def SubSystem_Context {
part comp_a_c289 : DriverCmdPort_Def;
- part comp_b_0516 : SetSpeedPort_Def
+ part comp_b_0516 : SetSpeedPort_Def;
part comp_distr... |
2,022 | src_0558 | syntax | remove_random_semicolon | package Vehicle_Remix_0399_2d6a {
port def MotorOutput;
port def LugNutPort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def S... | ERROR:no viable alternative at input 'part' (4646.sysml line : 16 column : 9) | package Vehicle_Remix_0399_2d6a {
port def MotorOutput;
port def LugNutPort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def S... | @@ -6,7 +6,7 @@
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
- part comp_a_572f : ShankCompositePort_Def
+ part comp_a_572f : ShankCompositePort_Def;
part comp_b_a9f6 : LugNutPort_Def;
... | 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' (4646.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0399_2d6a {
port def MotorOutput;
port def LugNutPort;
... | 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' (4646.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0399_2d6a {
port def MotorOutput;
port def LugNutPort;
... | 421 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0399_2d6a {
port def MotorOutput;
port def LugNutPort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port ... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
- part comp_a_572f : ShankCompositePort_Def
+ part comp_a_572f : ShankCompositePort_Def;
part... |
2,835 | src_0817 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0658_dd40 {
port def MotorInput;
port def MotorOutput;
port def LugNutCompositePort;
part def MotorInput_Def { port p : MotorInput;
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part def... | ERROR:mismatched input '<EOF>' expecting '}' (6719.sysml line : 24 column : 1) | package Vehicle_Remix_0658_dd40 {
port def MotorInput;
port def MotorOutput;
port def LugNutCompositePort;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNutCompositePort_Distractor_Def { port p : LugNutCompositePort; }
part de... | @@ -2,7 +2,7 @@
port def MotorInput;
port def MotorOutput;
port def LugNutCompositePort;
- part def MotorInput_Def { port p : MotorInput;
+ part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNutCompositePort_Distractor_Def { po... | 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 '}' (6719.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0658_dd40 {
port def MotorInput;
port def MotorOutput;
... | 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 '}' (6719.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0658_dd40 {
port def MotorInput;
port def MotorOutput;
... | 419 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0658_dd40 {
port def MotorInput;
port def MotorOutput;
port def LugNutCompositePort;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNutCompositePort_Distractor_Def { port p : L... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def MotorInput;
port def MotorOutput;
port def LugNutCompositePort;
- part def MotorInput_Def { port p : MotorInput;
+ part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def LugNut... |
7,895 | src_1064 | none | none | package Vehicle_Remix_0905_2a99 {
port def WheelHubIF;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF; }
part def SubSystem_Context {
part comp_a_ae67 : FuelPort_Def;
... | none | package Vehicle_Remix_0905_2a99 {
port def WheelHubIF;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def WheelHubIF_Distractor_Def { port p : WheelHubIF; }
part def SubSystem_Context {
part comp_a_ae67 : 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_0905_2a99 {
port def WheelHubIF;
port def FuelPort;
part def FuelP... | 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:
- 'WheelHubIF' belongs to Domain: mechanical_torque
- 'FuelPort' belongs to Domain: fluid_fuel
Valid ... | 306 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
1,161 | src_0298 | syntax | rename_definition_break_usages | package Vehicle_Remix_0139_a3e3 {
port def MotorInput;
port def BatteryInput;
port def SpeedSensorPort;
part def BatteryInput_Def { port p_BROKEN : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def SpeedSensorPort_Distractor_Def { port p : SpeedSensorPort; }
part def ... | ERROR:Couldn't resolve reference to Feature 'p'. (2572.sysml line : 22 column : 29) | package Vehicle_Remix_0139_a3e3 {
port def MotorInput;
port def BatteryInput;
port def SpeedSensorPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def SpeedSensorPort_Distractor_Def { port p : SpeedSensorPort; }
part def SubSyst... | @@ -2,7 +2,7 @@
port def MotorInput;
port def BatteryInput;
port def SpeedSensorPort;
- part def BatteryInput_Def { port p_BROKEN : BatteryInput; }
+ part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def SpeedSensorPort_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'. (2572.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0139_a3e3 {
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'. (2572.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0139_a3e3 {
port def MotorInput;
port def BatteryInpu... | 423 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0139_a3e3 {
port def MotorInput;
port def BatteryInput;
port def SpeedSensorPort;
part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part def SpeedSensorPort_Distractor_Def { port p : SpeedS... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def MotorInput;
port def BatteryInput;
port def SpeedSensorPort;
- part def BatteryInput_Def { port p_BROKEN : BatteryInput; }
+ part def BatteryInput_Def { port p : BatteryInput; }
part def MotorInput_Def { port p : MotorInput; }
part... |
489 | src_0081 | syntax | rename_definition_break_usages | package RationaleMetadataExample {
private import ModelingMetadata::Rationale;
/* Example: the following provides the rationale for selecting the engine4cyl based on a trade study analysis.
The rationale could be contained in the vehicle configuration with the selected engine */
part engine;
part engi... | ERROR:Couldn't resolve reference to Element 'engine4cyl'. (781.sysml line : 11 column : 57)
ERROR:Couldn't resolve reference to Element 'engine4cyl'. (781.sysml line : 18 column : 47) | package RationaleMetadataExample {
private import ModelingMetadata::Rationale;
/* Example: the following provides the rationale for selecting the engine4cyl based on a trade study analysis.
The rationale could be contained in the vehicle configuration with the selected engine */
part engine;
part engi... | @@ -3,7 +3,7 @@
/* Example: the following provides the rationale for selecting the engine4cyl based on a trade study analysis.
The rationale could be contained in the vehicle configuration with the selected engine */
part engine;
- part engine4cyl_BROKEN :> engine;
+ part engine4cyl :> engine;
... | 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 'engine4cyl'. (781.sysml line : 11 column : 57)
ERROR:Couldn't resolve reference to Element 'engine4cyl'. (781.sysml line : 18 column : 47... | 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 'engine4cyl'. (781.sysml line : 11 column : 57)
ERROR:Couldn't resolve reference to Element 'engine4cyl'. (781.sysml line : 18 column : 47... | 495 | CODE STATUS = INCORRECT
```sysml
package RationaleMetadataExample {
private import ModelingMetadata::Rationale;
/* Example: the following provides the rationale for selecting the engine4cyl based on a trade study analysis.
The rationale could be contained in the vehicle configuration with the selected engine ... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
/* Example: the following provides the rationale for selecting the engine4cyl based on a trade study analysis.
The rationale could be contained in the vehicle configuration with the selected engine */
part engine;
- part engine4cyl_BROKEN :> engine;
+ ... |
8,273 | src_0593 | none | none | package Vehicle_Remix_0434_69bb {
port def MotorInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0434_69bb {
port def MotorInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
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_0434_69bb {
port def MotorInput;
port def BatteryOutput;
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:
- 'FuelPort' belongs to Domain: fluid_fuel
- 'BatteryOutput' belongs to Domain: electrical_power
- 'Mo... | 314 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
4,937 | src_0571 | syntax | remove_random_semicolon | package Vehicle_Remix_0412_d34b {
port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
... | ERROR:no viable alternative at input '}' (4750.sysml line : 23 column : 5) | package Vehicle_Remix_0412_d34b {
port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
... | @@ -9,6 +9,6 @@
part comp_a_ed32 : ShankPort_Def;
part comp_b_5da3 : LugNutPort_Def;
part comp_distractor_9749 : MotorOutput_Distractor_Def;
- connect comp_a_ed32.p to comp_b_5da3.p
+ connect comp_a_ed32.p to comp_b_5da3.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 '}' (4750.sysml line : 23 column : 5)
Code:
```sysml
package Vehicle_Remix_0412_d34b {
port def MotorOutput;
port def LugNutPort;
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 '}' (4750.sysml line : 23 column : 5)
Code:
```sysml
package Vehicle_Remix_0412_d34b {
port def MotorOutput;
port def LugNutPort;
por... | 406 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0412_d34b {
port def MotorOutput;
port def LugNutPort;
port def ShankPort;
part def ShankPort_Def { port p : ShankPort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_ed32 : ShankPort_Def;
part comp_b_5da3 : LugNutPort_Def;
part comp_distractor_9749 : MotorOutput_Distractor_Def;
- connect comp_a_ed32.p to comp_b_5da3.p
+ connect comp_a_ed32.p to comp_b_5da3.p;
}
}
``` |
2,826 | src_0812 | syntax | remove_random_semicolon | package Vehicle_Remix_0653_bbf0 {
port def MotorInput;
port def BatteryOutput
port def ShankPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | ERROR:no viable alternative at input 'port' (6678.sysml line : 6 column : 5) | package Vehicle_Remix_0653_bbf0 {
port def MotorInput;
port def BatteryOutput;
port def ShankPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSystem_Context {
... | @@ -1,6 +1,6 @@
package Vehicle_Remix_0653_bbf0 {
port def MotorInput;
- port def BatteryOutput
+ port def BatteryOutput;
port def ShankPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; } | 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' (6678.sysml line : 6 column : 5)
Code:
```sysml
package Vehicle_Remix_0653_bbf0 {
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 'port' (6678.sysml line : 6 column : 5)
Code:
```sysml
package Vehicle_Remix_0653_bbf0 {
port def MotorInput;
port def BatteryOutput
... | 396 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0653_bbf0 {
port def MotorInput;
port def BatteryOutput;
port def ShankPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -1,6 +1,6 @@
package Vehicle_Remix_0653_bbf0 {
port def MotorInput;
- port def BatteryOutput
+ port def BatteryOutput;
port def ShankPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def MotorInput_Def { port p : MotorInput; }
``` |
5,080 | src_0729 | syntax | rename_definition_break_usages | package Vehicle_Remix_0570_5a56 {
port def SetSpeedPort;
port def FuelPort;
part def FuelPort_Def { port p_BROKEN : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSystem_Context {
part comp_a_7344 : Fue... | ERROR:Couldn't resolve reference to Feature 'p'. (6020.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6020.sysml line : 21 column : 46) | package Vehicle_Remix_0570_5a56 {
port def SetSpeedPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSystem_Context {
part comp_a_7344 : FuelPort_D... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0570_5a56 {
port def SetSpeedPort;
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 SetSpeedPort_Distractor_Def { port p : SetSpee... | 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'. (6020.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6020.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'. (6020.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (6020.sysml line : 21 column : 46)
Code:
```sysm... | 439 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0570_5a56 {
port def SetSpeedPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSystem_Context {
... | CODE STATUS = INCORRECT
```sysml
@@ -1,7 +1,7 @@
package Vehicle_Remix_0570_5a56 {
port def SetSpeedPort;
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 SetSpeedPort_... |
4,005 | src_1183 | syntax | remove_random_semicolon | package 'Action Shorthand Example' {
item def Scene;
item def Image;
item def Picture;
action def Focus { in scene : Scene; out image : Image; }
action def Shoot { in image: Image; out picture : Picture; }
action def TakePicture {
in item scene : Scene;
out item picture : Picture;
action focus: Focus {
... | ERROR:no viable alternative at input 'then' (9590.sysml line : 20 column : 3)
ERROR:no viable alternative at input 'out' (9590.sysml line : 22 column : 4)
ERROR:no viable alternative at input '}' (9590.sysml line : 23 column : 3)
ERROR:missing EOF at '}' (9590.sysml line : 24 column : 2) | package 'Action Shorthand Example' {
item def Scene;
item def Image;
item def Picture;
action def Focus { in scene : Scene; out image : Image; }
action def Shoot { in image: Image; out picture : Picture; }
action def TakePicture {
in item scene : Scene;
out item picture : Picture;
action focus: Focus {
... | @@ -14,7 +14,7 @@
flow from focus.image to shoot.image;
then action shoot: Shoot {
in item;
- out item picture = TakePicture::picture
+ out item picture = TakePicture::picture;
}
}
} | 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 'then' (9590.sysml line : 20 column : 3)
ERROR:no viable alternative at input 'out' (9590.sysml line : 22 column : 4)
ERROR:no viable alternativ... | 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 'then' (9590.sysml line : 20 column : 3)
ERROR:no viable alternative at input 'out' (9590.sysml line : 22 column : 4)
ERROR:no viable alternativ... | 443 | CODE STATUS = INCORRECT
```sysml
package 'Action Shorthand Example' {
item def Scene;
item def Image;
item def Picture;
action def Focus { in scene : Scene; out image : Image; }
action def Shoot { in image: Image; out picture : Picture; }
action def TakePicture {
in item scene : Scene;
out item picture : Pic... | CODE STATUS = INCORRECT
```sysml
@@ -14,7 +14,7 @@
flow from focus.image to shoot.image;
then action shoot: Shoot {
in item;
- out item picture = TakePicture::picture
+ out item picture = TakePicture::picture;
}
}
}
``` |
1,652 | src_0448 | syntax | swap_keywords | package Vehicle_Remix_0289_44c9 {
part 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... | ERROR:A port must be typed by port definitions. (3769.sysml line : 9 column : 32) | 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... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0289_44c9 {
- part def ControlPort;
+ port def ControlPort;
port def MotorOutput;
port def SetSpeedPort;
part def ControlPort_Def { port p : ControlPort; } | 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. (3769.sysml line : 9 column : 32)
Code:
```sysml
package Vehicle_Remix_0289_44c9 {
part def ControlPort;
port def 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. (3769.sysml line : 9 column : 32)
Code:
```sysml
package Vehicle_Remix_0289_44c9 {
part def ControlPort;
port def MotorOutput;... | 418 | CODE STATUS = INCORRECT
```sysml
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... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0289_44c9 {
- part def ControlPort;
+ port def ControlPort;
port def MotorOutput;
port def SetSpeedPort;
part def ControlPort_Def { port p : ControlPort; }
``` |
7,540 | src_0941 | none | none | package Vehicle_Remix_0782_471b {
port def DriverCmdPort;
port def MotorOutput;
port def ControlPort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Con... | none | package Vehicle_Remix_0782_471b {
port def DriverCmdPort;
port def MotorOutput;
port def ControlPort;
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
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_0782_471b {
port def DriverCmdPort;
port def MotorOutput;
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:
- 'ControlPort' belongs to Domain: command_signal
- 'DriverCmdPort' belongs to Domain: command_signal
... | 314 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
7,113 | src_0417 | none | none | 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;
... | none | 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;
... | 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_0258_26b0 {
port def ShankPort;
port def FuelPort;
part def FuelPo... | 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
- 'ShankPort' belongs to Domain: mechanical_fastening
Vali... | 299 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
5,311 | src_1040 | syntax | swap_keywords | package Vehicle_Remix_0881_8f40 {
part def BatteryInput;
port def BatteryOutput;
port def SetSpeedPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSyst... | ERROR:A port must be typed by port definitions. (8505.sysml line : 10 column : 33) | package Vehicle_Remix_0881_8f40 {
port def BatteryInput;
port def BatteryOutput;
port def SetSpeedPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port p : SetSpeedPort; }
part def SubSyst... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0881_8f40 {
- part def BatteryInput;
+ port def BatteryInput;
port def BatteryOutput;
port def SetSpeedPort;
part def BatteryOutput_Def { port p : BatteryOutput; } | 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. (8505.sysml line : 10 column : 33)
Code:
```sysml
package Vehicle_Remix_0881_8f40 {
part def BatteryInput;
port def BatteryOut... | 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. (8505.sysml line : 10 column : 33)
Code:
```sysml
package Vehicle_Remix_0881_8f40 {
part def BatteryInput;
port def BatteryOut... | 411 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0881_8f40 {
port def BatteryInput;
port def BatteryOutput;
port def SetSpeedPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def SetSpeedPort_Distractor_Def { port p : Set... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0881_8f40 {
- part def BatteryInput;
+ port def BatteryInput;
port def BatteryOutput;
port def SetSpeedPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
``` |
7,574 | src_0985 | none | none | package Vehicle_Remix_0826_b31f {
port def CruiseControlPort;
port def BatteryInput;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
part def SubSystem_Context {
... | none | package Vehicle_Remix_0826_b31f {
port def CruiseControlPort;
port def BatteryInput;
part def BatteryInput_Def { port p : BatteryInput; }
part def BatteryInput_Def { port p : BatteryInput; }
part def CruiseControlPort_Distractor_Def { port p : CruiseControlPort; }
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_0826_b31f {
port def CruiseControlPort;
port def BatteryInput;
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.
Domain Rules:
- 'CruiseControlPort' belongs to Domain: command_signal
- 'BatteryInput' belongs to Domain: electrical... | 301 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,917 | src_0173 | none | none | package Vehicle_Remix_0014_8ff6 {
port def WheelToRoadPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def WheelToRoadPort_Distractor_Def { port p : WheelToRoadPort; }
part def SubSystem_Context {
part comp_a_79b3 : F... | none | package Vehicle_Remix_0014_8ff6 {
port def WheelToRoadPort;
port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def WheelToRoadPort_Distractor_Def { port p : WheelToRoadPort; }
part def SubSystem_Context {
part comp_a_79b3 : 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.
Code:
```sysml
package Vehicle_Remix_0014_8ff6 {
port def WheelToRoadPort;
port def FuelPort;
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:
- 'WheelToRoadPort' belongs to Domain: mechanical_torque
- 'FuelPort' belongs to Domain: fluid_fuel
V... | 310 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
4,829 | src_0415 | syntax | remove_random_semicolon | package Vehicle_Remix_0256_4d1b {
port def TireInput;
port def IgnitionCmdPort;
port def GearPort;
part def GearPort_Def { port p : GearPort; }
part def TireInput_Def { port p : TireInput; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
... | ERROR:no viable alternative at input 'part' (3502.sysml line : 19 column : 9) | package Vehicle_Remix_0256_4d1b {
port def TireInput;
port def IgnitionCmdPort;
port def GearPort;
part def GearPort_Def { port p : GearPort; }
part def TireInput_Def { port p : TireInput; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
... | @@ -7,7 +7,7 @@
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
part comp_a_6047 : GearPort_Def;
- part comp_b_5e9e : TireInput_Def
+ part comp_b_5e9e : TireInput_Def;
part comp_distractor_f3bb : IgnitionCmdPort_Distractor_Def;... | 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' (3502.sysml line : 19 column : 9)
Code:
```sysml
package Vehicle_Remix_0256_4d1b {
port def TireInput;
port def IgnitionCmdPort;
... | 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' (3502.sysml line : 19 column : 9)
Code:
```sysml
package Vehicle_Remix_0256_4d1b {
port def TireInput;
port def IgnitionCmdPort;
... | 425 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0256_4d1b {
port def TireInput;
port def IgnitionCmdPort;
port def GearPort;
part def GearPort_Def { port p : GearPort; }
part def TireInput_Def { port p : TireInput; }
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
... | CODE STATUS = INCORRECT
```sysml
@@ -7,7 +7,7 @@
part def IgnitionCmdPort_Distractor_Def { port p : IgnitionCmdPort; }
part def SubSystem_Context {
part comp_a_6047 : GearPort_Def;
- part comp_b_5e9e : TireInput_Def
+ part comp_b_5e9e : TireInput_Def;
part comp_distractor_f3bb ... |
4,349 | src_1287 | syntax | unit_mismatch_edit | package '10b-Trade-off Among Alternative Configurations' {
private import ScalarValues::Real;
private import TradeStudies::*;
private import Definitions::*;
private import Usages::*;
package Definitions {
part def Vehicle;
part def Engine {
power : ISQ::PowerValue;
mass : ISQ::MassValue;
efficiency : ... | ERROR:Couldn't resolve reference to Element 'kg'. (10296.sysml line : 32 column : 13)
ERROR:Must have a Natural value (10296.sysml line : 32 column : 13) | package '10b-Trade-off Among Alternative Configurations' {
private import ScalarValues::Real;
private import TradeStudies::*;
private import Definitions::*;
private import Usages::*;
package Definitions {
part def Vehicle;
part def Engine {
power : ISQ::PowerValue;
mass : ISQ::MassValue;
efficiency : ... | @@ -21,7 +21,7 @@
}
package Usages {
part engine : Engine {
- part cyl[kg] : Cylinder {
+ part cyl[*] : Cylinder {
part p[1] : Piston;
part rod[1] : ConnectingRod;
} | 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 'kg'. (10296.sysml line : 32 column : 13)
ERROR:Must have a Natural value (10296.sysml line : 32 column : 13)
Code:
```sysml
package '10b... | 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 'kg'. (10296.sysml line : 32 column : 13)
ERROR:Must have a Natural value (10296.sysml line : 32 column : 13)
Code:
```sysml
package '10b... | 1,403 | CODE STATUS = INCORRECT
```sysml
package '10b-Trade-off Among Alternative Configurations' {
private import ScalarValues::Real;
private import TradeStudies::*;
private import Definitions::*;
private import Usages::*;
package Definitions {
part def Vehicle;
part def Engine {
power : ISQ::PowerValue;
mass :... | CODE STATUS = INCORRECT
```sysml
@@ -21,7 +21,7 @@
}
package Usages {
part engine : Engine {
- part cyl[kg] : Cylinder {
+ part cyl[*] : Cylinder {
part p[1] : Piston;
part rod[1] : ConnectingRod;
}
``` |
1,104 | src_0277 | syntax | swap_keywords | package Vehicle_Remix_0118_09d9 {
part def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort... | ERROR:A port must be typed by port definitions. (2401.sysml line : 10 column : 40) | package Vehicle_Remix_0118_09d9 {
port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_Distractor_Def { port p : FuelPort... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0118_09d9 {
- part def LugNutCompositePort;
+ port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; } | 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. (2401.sysml line : 10 column : 40)
Code:
```sysml
package Vehicle_Remix_0118_09d9 {
part def LugNutCompositePort;
port def Fue... | 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. (2401.sysml line : 10 column : 40)
Code:
```sysml
package Vehicle_Remix_0118_09d9 {
part def LugNutCompositePort;
port def Fue... | 431 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0118_09d9 {
port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def FuelPort_D... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0118_09d9 {
- part def LugNutCompositePort;
+ port def LugNutCompositePort;
port def FuelPort;
port def ShankCompositePort;
part def ShankCompositePort_Def { port p : ShankCompositePort; }
``` |
3,270 | src_0945 | syntax | remove_random_semicolon | package Vehicle_Remix_0786_c2c0 {
port def MotorOutput;
port def SpeedSensorPort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_... | ERROR:no viable alternative at input 'part' (7742.sysml line : 16 column : 9) | package Vehicle_Remix_0786_c2c0 {
port def MotorOutput;
port def SpeedSensorPort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_... | @@ -6,7 +6,7 @@
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
- part comp_a_284b : PwrCmdPort_Def
+ part comp_a_284b : PwrCmdPort_Def;
part comp_b_3001 : SpeedSensorPort_Def;
... | 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' (7742.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0786_c2c0 {
port def MotorOutput;
port def SpeedSensorPort;... | 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' (7742.sysml line : 16 column : 9)
Code:
```sysml
package Vehicle_Remix_0786_c2c0 {
port def MotorOutput;
port def SpeedSensorPort;... | 435 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0786_c2c0 {
port def MotorOutput;
port def SpeedSensorPort;
port def PwrCmdPort;
part def PwrCmdPort_Def { port p : PwrCmdPort; }
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def MotorOutput_Distractor_Def { port p : Motor... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def SubSystem_Context {
- part comp_a_284b : PwrCmdPort_Def
+ part comp_a_284b : PwrCmdPort_Def;
part comp_... |
4,042 | src_1193 | syntax | delete_random_closing_bracket | package 'Merge Example' {
part def Scene;
part def Image;
part def Picture;
action def Focus { in item scene : Scene; out item image : Image; }
action def Shoot { in item image : Image; out item picture : Picture; }
action def Display { in item picture : Picture; }
action def TakePicture;
action takePicture : T... | ERROR:mismatched input '<EOF>' expecting '}' (9649.sysml line : 41 column : 3) | package 'Merge Example' {
part def Scene;
part def Image;
part def Picture;
action def Focus { in item scene : Scene; out item image : Image; }
action def Shoot { in item image : Image; out item picture : Picture; }
action def Display { in item picture : Picture; }
action def TakePicture;
action takePicture : T... | @@ -28,3 +28,4 @@
}
then continue;
}
+} | 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 '}' (9649.sysml line : 41 column : 3)
Code:
```sysml
package 'Merge Example' {
part def Scene;
part def Image;
part def Picture;
action d... | 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 '}' (9649.sysml line : 41 column : 3)
Code:
```sysml
package 'Merge Example' {
part def Scene;
part def Image;
part def Picture;
action d... | 488 | CODE STATUS = INCORRECT
```sysml
package 'Merge Example' {
part def Scene;
part def Image;
part def Picture;
action def Focus { in item scene : Scene; out item image : Image; }
action def Shoot { in item image : Image; out item picture : Picture; }
action def Display { in item picture : Picture; }
action def Tak... | CODE STATUS = INCORRECT
```sysml
@@ -28,3 +28,4 @@
}
then continue;
}
+}
``` |
1,575 | src_0426 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0267_8e32 {
port def LugNutPort;
port def LugNutCompositePort;
port def FuelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSyst... | ERROR:mismatched input '<EOF>' expecting '}' (3591.sysml line : 23 column : 6) | package Vehicle_Remix_0267_8e32 {
port def LugNutPort;
port def LugNutCompositePort;
port def FuelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSyst... | @@ -11,3 +11,4 @@
part comp_distractor_97e3 : FuelPort_Distractor_Def;
connect comp_a_9b7a.p to comp_b_b103.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 '}' (3591.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0267_8e32 {
port def LugNutPort;
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 '}' (3591.sysml line : 23 column : 6)
Code:
```sysml
package Vehicle_Remix_0267_8e32 {
port def LugNutPort;
port def LugNutCompositeP... | 434 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0267_8e32 {
port def LugNutPort;
port def LugNutCompositePort;
port def FuelPort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def FuelPort_Distractor_Def { port p :... | CODE STATUS = INCORRECT
```sysml
@@ -11,3 +11,4 @@
part comp_distractor_97e3 : FuelPort_Distractor_Def;
connect comp_a_9b7a.p to comp_b_b103.p;
}
+}
``` |
2,664 | src_0762 | syntax | swap_keywords | package Vehicle_Remix_0603_2448 {
part def DriverCmdPort;
port def SpeedSensorPort;
port def ShankPort;
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSyst... | ERROR:A port must be typed by port definitions. (6281.sysml line : 10 column : 34) | package Vehicle_Remix_0603_2448 {
port def DriverCmdPort;
port def SpeedSensorPort;
port def ShankPort;
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part def SubSyst... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0603_2448 {
- part def DriverCmdPort;
+ port def DriverCmdPort;
port def SpeedSensorPort;
port def ShankPort;
part def SpeedSensorPort_Def { port p : SpeedSensorPort; } | 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. (6281.sysml line : 10 column : 34)
Code:
```sysml
package Vehicle_Remix_0603_2448 {
part def DriverCmdPort;
port def SpeedSens... | 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. (6281.sysml line : 10 column : 34)
Code:
```sysml
package Vehicle_Remix_0603_2448 {
part def DriverCmdPort;
port def SpeedSens... | 429 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0603_2448 {
port def DriverCmdPort;
port def SpeedSensorPort;
port def ShankPort;
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
part def DriverCmdPort_Def { port p : DriverCmdPort; }
part def ShankPort_Distractor_Def { port p : ... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0603_2448 {
- part def DriverCmdPort;
+ port def DriverCmdPort;
port def SpeedSensorPort;
port def ShankPort;
part def SpeedSensorPort_Def { port p : SpeedSensorPort; }
``` |
4,808 | src_0392 | syntax | rename_definition_break_usages | package Vehicle_Remix_0233_7e4d {
port def AxleMountIF;
port def VehicleToRoadPort;
port def MotorOutput;
part def AxleMountIF_Def { port p_BROKEN : AxleMountIF; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
par... | ERROR:Couldn't resolve reference to Feature 'p'. (3324.sysml line : 22 column : 29) | package Vehicle_Remix_0233_7e4d {
port def AxleMountIF;
port def VehicleToRoadPort;
port def MotorOutput;
part def AxleMountIF_Def { port p : AxleMountIF; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
part def MotorOutput_Distractor_Def { port p : MotorOutput; }
part def S... | @@ -2,7 +2,7 @@
port def AxleMountIF;
port def VehicleToRoadPort;
port def MotorOutput;
- part def AxleMountIF_Def { port p_BROKEN : AxleMountIF; }
+ part def AxleMountIF_Def { port p : AxleMountIF; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
part def MotorOutput_Dist... | 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'. (3324.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0233_7e4d {
port def AxleMountIF;
port def VehicleToR... | 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'. (3324.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0233_7e4d {
port def AxleMountIF;
port def VehicleToR... | 447 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0233_7e4d {
port def AxleMountIF;
port def VehicleToRoadPort;
port def MotorOutput;
part def AxleMountIF_Def { port p : AxleMountIF; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort; }
part def MotorOutput_Distractor_Def { port ... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def AxleMountIF;
port def VehicleToRoadPort;
port def MotorOutput;
- part def AxleMountIF_Def { port p_BROKEN : AxleMountIF; }
+ part def AxleMountIF_Def { port p : AxleMountIF; }
part def VehicleToRoadPort_Def { port p : VehicleToRoadPort;... |
8,243 | src_0548 | none | none | package Vehicle_Remix_0389_bd8b {
port def FuelPort;
port def GearPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def GearPort_Distractor_Def { port p : GearPort; }
part def SubSystem_Context {
part comp_a_14b2 : FuelPort_Def;
... | none | package Vehicle_Remix_0389_bd8b {
port def FuelPort;
port def GearPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def GearPort_Distractor_Def { port p : GearPort; }
part def SubSystem_Context {
part comp_a_14b2 : 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_0389_bd8b {
port def FuelPort;
port def GearPort;
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:
- 'GearPort' belongs to Domain: mechanical_torque
- 'FuelPort' belongs to Domain: fluid_fuel
Valid Co... | 299 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
4,431 | src_1301 | syntax | unit_mismatch_edit | package '14c-Language-Extensions' {
private import ScalarValues::*;
library package FMEALibrary {
abstract occurrence def Situation;
abstract occurrence situations : Situation[m / s] nonunique;
occurrence def Cause :> Situation {
attribute occurs[0..1]: Real;
}
abstract occurrence causes : Cause[*] nonun... | ERROR:no viable alternative at input '/' (10421.sysml line : 8 column : 45)
ERROR:no viable alternative at input '/' (10421.sysml line : 8 column : 48)
ERROR:no viable alternative at input ']' (10421.sysml line : 8 column : 51) | package '14c-Language-Extensions' {
private import ScalarValues::*;
library package FMEALibrary {
abstract occurrence def Situation;
abstract occurrence situations : Situation[*] nonunique;
occurrence def Cause :> Situation {
attribute occurs[0..1]: Real;
}
abstract occurrence causes : Cause[*] nonunique... | @@ -2,7 +2,7 @@
private import ScalarValues::*;
library package FMEALibrary {
abstract occurrence def Situation;
- abstract occurrence situations : Situation[m / s] nonunique;
+ abstract occurrence situations : Situation[*] nonunique;
occurrence def Cause :> Situation {
attribute occurs[0..1]: Real;
... | 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 '/' (10421.sysml line : 8 column : 45)
ERROR:no viable alternative at input '/' (10421.sysml line : 8 column : 48)
ERROR:no viable alternative a... | 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 '/' (10421.sysml line : 8 column : 45)
ERROR:no viable alternative at input '/' (10421.sysml line : 8 column : 48)
ERROR:no viable alternative a... | 2,959 | CODE STATUS = INCORRECT
```sysml
package '14c-Language-Extensions' {
private import ScalarValues::*;
library package FMEALibrary {
abstract occurrence def Situation;
abstract occurrence situations : Situation[*] nonunique;
occurrence def Cause :> Situation {
attribute occurs[0..1]: Real;
}
abstract occur... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
private import ScalarValues::*;
library package FMEALibrary {
abstract occurrence def Situation;
- abstract occurrence situations : Situation[m / s] nonunique;
+ abstract occurrence situations : Situation[*] nonunique;
occurrence def Cause :> Situation {
... |
3,613 | src_1056 | syntax | rename_definition_break_usages | package Vehicle_Remix_0897_affb {
port def MotorInput;
port def TireInput;
port def ShaftPort_c;
part def ShaftPort_c_Def { port p_BROKEN : ShaftPort_c; }
part def TireInput_Def { port p : TireInput; }
part def MotorInput_Distractor_Def { port p : MotorInput; }
part def SubSystem_Context {
... | ERROR:Couldn't resolve reference to Feature 'p'. (8636.sysml line : 22 column : 29) | 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 {
... | @@ -2,7 +2,7 @@
port def MotorInput;
port def TireInput;
port def ShaftPort_c;
- part def ShaftPort_c_Def { port p_BROKEN : 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 : Moto... | 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'. (8636.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0897_affb {
port def MotorInput;
port def TireInput;
... | 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'. (8636.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0897_affb {
port def MotorInput;
port def TireInput;
... | 411 | 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
@@ -2,7 +2,7 @@
port def MotorInput;
port def TireInput;
port def ShaftPort_c;
- part def ShaftPort_c_Def { port p_BROKEN : ShaftPort_c; }
+ part def ShaftPort_c_Def { port p : ShaftPort_c; }
part def TireInput_Def { port p : TireInput; }
part def MotorInp... |
1,623 | src_0440 | syntax | delete_random_closing_bracket | package Vehicle_Remix_0281_2f50 {
port def AxleMountIF;
port def FuelPort;
port def AxleToWheelPort;
part def AxleMountIF_Def { port p : AxleMountIF; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Contex... | ERROR:mismatched input '<EOF>' expecting '}' (3703.sysml line : 24 column : 1) | package Vehicle_Remix_0281_2f50 {
port def AxleMountIF;
port def FuelPort;
port def AxleToWheelPort;
part def AxleMountIF_Def { port p : AxleMountIF; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def FuelPort_Distractor_Def { port p : FuelPort; }
part def SubSystem_Contex... | @@ -10,4 +10,5 @@
part comp_b_76be : AxleToWheelPort_Def;
part comp_distractor_ec5a : FuelPort_Distractor_Def;
connect comp_a_fff0.p to comp_b_76be.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 '}' (3703.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0281_2f50 {
port def AxleMountIF;
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 '}' (3703.sysml line : 24 column : 1)
Code:
```sysml
package Vehicle_Remix_0281_2f50 {
port def AxleMountIF;
port def FuelPort;
p... | 437 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0281_2f50 {
port def AxleMountIF;
port def FuelPort;
port def AxleToWheelPort;
part def AxleMountIF_Def { port p : AxleMountIF; }
part def AxleToWheelPort_Def { port p : AxleToWheelPort; }
part def FuelPort_Distractor_Def { port p : FuelPort... | CODE STATUS = INCORRECT
```sysml
@@ -10,4 +10,5 @@
part comp_b_76be : AxleToWheelPort_Def;
part comp_distractor_ec5a : FuelPort_Distractor_Def;
connect comp_a_fff0.p to comp_b_76be.p;
+ }
}
``` |
7,389 | src_0759 | none | none | package Vehicle_Remix_0600_7611 {
port def ClutchPort;
port def ShankPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankPort_Def { port p : ShankPort; }
part def ClutchPort_Distractor_Def { port p : ClutchPort; }
part def SubS... | none | package Vehicle_Remix_0600_7611 {
port def ClutchPort;
port def ShankPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def ShankPort_Def { port p : ShankPort; }
part def ClutchPort_Distractor_Def { port p : ClutchPort; }
part def SubS... | 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_0600_7611 {
port def ClutchPort;
port def ShankPort;
port def LugN... | 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:
- 'ClutchPort' belongs to Domain: mechanical_torque
- 'LugNutCompositePort' belongs to Domain: mechani... | 337 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
1,176 | src_0303 | syntax | swap_keywords | package Vehicle_Remix_0144_e306 {
part 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 {... | ERROR:A port must be typed by port definitions. (2609.sysml line : 10 column : 33) | package Vehicle_Remix_0144_e306 {
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 {... | @@ -1,5 +1,5 @@
package Vehicle_Remix_0144_e306 {
- part def BatteryInput;
+ port def BatteryInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; } | 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. (2609.sysml line : 10 column : 33)
Code:
```sysml
package Vehicle_Remix_0144_e306 {
part def BatteryInput;
port def BatteryOut... | 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. (2609.sysml line : 10 column : 33)
Code:
```sysml
package Vehicle_Remix_0144_e306 {
part def BatteryInput;
port def BatteryOut... | 407 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0144_e306 {
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; }... | CODE STATUS = INCORRECT
```sysml
@@ -1,5 +1,5 @@
package Vehicle_Remix_0144_e306 {
- part def BatteryInput;
+ port def BatteryInput;
port def BatteryOutput;
port def FuelPort;
part def BatteryOutput_Def { port p : BatteryOutput; }
``` |
4,386 | src_1292 | syntax | remove_random_semicolon | package '12a-Dependency' {
package 'Application Layer';
package 'Service Layer'
package 'Data Layer';
dependency Use from 'Application Layer' to 'Service Layer';
dependency from 'Service Layer' to 'Data Layer';
attribute x;
attribute y;
attribute z;
dependency z to x, y;
} | ERROR:no viable alternative at input 'package' (10348.sysml line : 5 column : 2) | package '12a-Dependency' {
package 'Application Layer';
package 'Service Layer';
package 'Data Layer';
dependency Use from 'Application Layer' to 'Service Layer';
dependency from 'Service Layer' to 'Data Layer';
attribute x;
attribute y;
attribute z;
dependency z to x, y;
} | @@ -1,6 +1,6 @@
package '12a-Dependency' {
package 'Application Layer';
- package 'Service Layer'
+ package 'Service Layer';
package 'Data Layer';
dependency Use from 'Application Layer' to 'Service Layer';
dependency from 'Service Layer' to 'Data Layer'; | 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 'package' (10348.sysml line : 5 column : 2)
Code:
```sysml
package '12a-Dependency' {
package 'Application Layer';
package 'Service Layer'
pac... | 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 'package' (10348.sysml line : 5 column : 2)
Code:
```sysml
package '12a-Dependency' {
package 'Application Layer';
package 'Service Layer'
pac... | 249 | CODE STATUS = INCORRECT
```sysml
package '12a-Dependency' {
package 'Application Layer';
package 'Service Layer';
package 'Data Layer';
dependency Use from 'Application Layer' to 'Service Layer';
dependency from 'Service Layer' to 'Data Layer';
attribute x;
attribute y;
attribute z;
dependency z to x, y;
}
``` | CODE STATUS = INCORRECT
```sysml
@@ -1,6 +1,6 @@
package '12a-Dependency' {
package 'Application Layer';
- package 'Service Layer'
+ package 'Service Layer';
package 'Data Layer';
dependency Use from 'Application Layer' to 'Service Layer';
dependency from 'Service Layer' to 'Data Layer';
``` |
4,356 | src_1288 | syntax | break_imports | package '10c-Fuel Economy Analysis' {
private import ScalarValues::*;
private import Quantities::*;
private import MeasurementReferences::*;
private import ISQ::*;
private import USCustomaryUnits::;
attribute distancePerVolume : ScalarQuantityValue = length / volume;
attribute gallon : MeasurementUnit = 231.0 *... | ERROR:no viable alternative at input ';' (10304.sysml line : 6 column : 2)
ERROR:no viable alternative at input '::' (10304.sysml line : 6 column : 33) | package '10c-Fuel Economy Analysis' {
private import ScalarValues::*;
private import Quantities::*;
private import MeasurementReferences::*;
private import ISQ::*;
private import USCustomaryUnits::*;
attribute distancePerVolume : ScalarQuantityValue = length / volume;
attribute gallon : MeasurementUnit = 231.0 ... | @@ -3,7 +3,7 @@
private import Quantities::*;
private import MeasurementReferences::*;
private import ISQ::*;
- private import USCustomaryUnits::;
+ private import USCustomaryUnits::*;
attribute distancePerVolume : ScalarQuantityValue = length / volume;
attribute gallon : MeasurementUnit = 231.0 * 'in'^3;
... | 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 ';' (10304.sysml line : 6 column : 2)
ERROR:no viable alternative at input '::' (10304.sysml line : 6 column : 33)
Code:
```sysml
package '10c-F... | 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 ';' (10304.sysml line : 6 column : 2)
ERROR:no viable alternative at input '::' (10304.sysml line : 6 column : 33)
Code:
```sysml
package '10c-F... | 2,409 | CODE STATUS = INCORRECT
```sysml
package '10c-Fuel Economy Analysis' {
private import ScalarValues::*;
private import Quantities::*;
private import MeasurementReferences::*;
private import ISQ::*;
private import USCustomaryUnits::*;
attribute distancePerVolume : ScalarQuantityValue = length / volume;
attribute ... | CODE STATUS = INCORRECT
```sysml
@@ -3,7 +3,7 @@
private import Quantities::*;
private import MeasurementReferences::*;
private import ISQ::*;
- private import USCustomaryUnits::;
+ private import USCustomaryUnits::*;
attribute distancePerVolume : ScalarQuantityValue = length / volume;
attribute gallon : Mea... |
7,650 | src_1087 | none | none | package Vehicle_Remix_0928_a526 {
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_0928_a526 {
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_0928_a526 {
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... | 314 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
7,804 | src_0589 | none | none | package Vehicle_Remix_0430_24f0 {
port def FuelCmdPort;
port def SetSpeedPort;
port def ShankCompositePort;
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part... | none | package Vehicle_Remix_0430_24f0 {
port def FuelCmdPort;
port def SetSpeedPort;
port def ShankCompositePort;
part def FuelCmdPort_Def { port p : FuelCmdPort; }
part def SetSpeedPort_Def { port p : SetSpeedPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
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.
Code:
```sysml
package Vehicle_Remix_0430_24f0 {
port def FuelCmdPort;
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:
- 'FuelCmdPort' belongs to Domain: command_signal
- 'SetSpeedPort' belongs to Domain: command_signal
-... | 325 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
1,621 | src_0439 | syntax | rename_definition_break_usages | package Vehicle_Remix_0280_af76 {
port def MotorInput;
port def VehicleToRoadPort;
port def MotorOutput;
part def MotorInput_Def { port p_BROKEN : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def VehicleToRoadPort_Distractor_Def { port p : VehicleToRoadPort; }
part d... | ERROR:Couldn't resolve reference to Feature 'p'. (3700.sysml line : 22 column : 29) | package Vehicle_Remix_0280_af76 {
port def MotorInput;
port def VehicleToRoadPort;
port def MotorOutput;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def VehicleToRoadPort_Distractor_Def { port p : VehicleToRoadPort; }
part def SubS... | @@ -2,7 +2,7 @@
port def MotorInput;
port def VehicleToRoadPort;
port def MotorOutput;
- part def MotorInput_Def { port p_BROKEN : MotorInput; }
+ part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def VehicleToRoadPort_Distractor_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'. (3700.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0280_af76 {
port def MotorInput;
port def VehicleToRo... | 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'. (3700.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0280_af76 {
port def MotorInput;
port def VehicleToRo... | 421 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0280_af76 {
port def MotorInput;
port def VehicleToRoadPort;
port def MotorOutput;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def VehicleToRoadPort_Distractor_Def { port p : Vehic... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def MotorInput;
port def VehicleToRoadPort;
port def MotorOutput;
- part def MotorInput_Def { port p_BROKEN : MotorInput; }
+ part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def ... |
6,972 | src_0241 | none | none | package Vehicle_Remix_0082_9e4c {
port def ControlPort;
port def WheelToAxlePort;
port def IgnitionCmdPort;
part def IgnitionCmdPort_Def { port p : IgnitionCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def WheelToAxlePort_Distractor_Def { port p : WheelToAxlePort; }
part... | none | package Vehicle_Remix_0082_9e4c {
port def ControlPort;
port def WheelToAxlePort;
port def IgnitionCmdPort;
part def IgnitionCmdPort_Def { port p : IgnitionCmdPort; }
part def ControlPort_Def { port p : ControlPort; }
part def WheelToAxlePort_Distractor_Def { port p : WheelToAxlePort; }
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.
Code:
```sysml
package Vehicle_Remix_0082_9e4c {
port def ControlPort;
port def WheelToAxlePort;
port 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:
- 'WheelToAxlePort' belongs to Domain: mechanical_torque
- 'IgnitionCmdPort' belongs to Domain: comman... | 342 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
2,433 | src_0690 | syntax | rename_definition_break_usages | package Vehicle_Remix_0531_1b5b {
port def FuelPort;
port def ShankCompositePort;
part def FuelPort_Def { port p_BROKEN : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_Def { port p : ShankCompositePort; }
part def SubSystem_Context {
part... | ERROR:Couldn't resolve reference to Feature 'p'. (5708.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (5708.sysml line : 21 column : 46) | 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... | @@ -1,7 +1,7 @@
package Vehicle_Remix_0531_1b5b {
port def FuelPort;
port def ShankCompositePort;
- part def FuelPort_Def { port p_BROKEN : FuelPort; }
+ part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCompositePort_Distractor_Def { port... | 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'. (5708.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (5708.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'. (5708.sysml line : 21 column : 29)
ERROR:Couldn't resolve reference to Feature 'p'. (5708.sysml line : 21 column : 46)
Code:
```sysm... | 429 | 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
@@ -1,7 +1,7 @@
package Vehicle_Remix_0531_1b5b {
port def FuelPort;
port def ShankCompositePort;
- part def FuelPort_Def { port p_BROKEN : FuelPort; }
+ part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def ShankCo... |
657 | src_0139 | syntax | remove_random_semicolon | package ViewTest {
package P {
public part p1;
private part p2;
}
part def S;
concern def C {
subject;
stakeholder s : S
}
concern c : C {
subject;
stakeholder s1;
}
viewpoint def VP {
frame c;
}
rendering def R;
rendering r : R;
view def V {
viewpoint vp: VP {
frame concern c1;
... | ERROR:no viable alternative at input 'stakeholder' (1125.sysml line : 11 column : 3)
ERROR:no viable alternative at input '}' (1125.sysml line : 11 column : 19)
ERROR:no viable alternative at input '}' (1125.sysml line : 12 column : 2) | package ViewTest {
package P {
public part p1;
private part p2;
}
part def S;
concern def C {
subject;
stakeholder s : S;
}
concern c : C {
subject;
stakeholder s1;
}
viewpoint def VP {
frame c;
}
rendering def R;
rendering r : R;
view def V {
viewpoint vp: VP {
frame concern c1;
... | @@ -6,7 +6,7 @@
part def S;
concern def C {
subject;
- stakeholder s : S
+ stakeholder s : S;
}
concern c : C {
subject; | 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 'stakeholder' (1125.sysml line : 11 column : 3)
ERROR:no viable alternative at input '}' (1125.sysml line : 11 column : 19)
ERROR:no viable alte... | 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 'stakeholder' (1125.sysml line : 11 column : 3)
ERROR:no viable alternative at input '}' (1125.sysml line : 11 column : 19)
ERROR:no viable alte... | 504 | CODE STATUS = INCORRECT
```sysml
package ViewTest {
package P {
public part p1;
private part p2;
}
part def S;
concern def C {
subject;
stakeholder s : S;
}
concern c : C {
subject;
stakeholder s1;
}
viewpoint def VP {
frame c;
}
rendering def R;
rendering r : R;
view def V {
viewpoint... | CODE STATUS = INCORRECT
```sysml
@@ -6,7 +6,7 @@
part def S;
concern def C {
subject;
- stakeholder s : S
+ stakeholder s : S;
}
concern c : C {
subject;
``` |
7,657 | src_1095 | none | none | package Vehicle_Remix_0936_10dc {
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_0936_10dc {
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_0936_10dc {
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... | 321 | CODE STATUS = CORRECT
NO CHANGES REQUIRED | CODE STATUS = CORRECT
NO CHANGES REQUIRED | |
6,237 | src_1019 | domain | mutate_valid_connection_to_domain_error | package Vehicle_Remix_0860_954a {
port def MotorInput;
port def MotorOutput;
port def ShankPort;
part def MotorInput_Def { port p : MotorInput; }
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_38c6.p' (electrical_power) cannot connect to 'comp_distractor_13ad.p' (mechanical_fastening) (line : 22) | package Vehicle_Remix_0860_954a {
port def MotorInput;
port def MotorOutput;
port def ShankPort;
part def MotorInput_Def { port p : MotorInput; }
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_38c6 : MotorInput_Def;
part comp_b_6b0d : MotorOutput_Def;
part comp_distractor_13ad : ShankPort_Distractor_Def;
- connect comp_a_38c6.p to comp_distractor_13ad.p;
+ connect comp_a_38c6.p to comp_b_6b0d.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_0860_954a {
port def MotorInput;
port def MotorOutput;
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:
- 'MotorInput' belongs to Domain: electrical_power
- 'MotorOutput' belongs to Domain: electrical_power... | 476 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0860_954a {
port def MotorInput;
port def MotorOutput;
port def ShankPort;
part def MotorInput_Def { port p : MotorInput; }
part def MotorOutput_Def { port p : MotorOutput; }
part def ShankPort_Distractor_Def { port p : ShankPort; }
part... | CODE STATUS = INCORRECT
```sysml
@@ -9,6 +9,6 @@
part comp_a_38c6 : MotorInput_Def;
part comp_b_6b0d : MotorOutput_Def;
part comp_distractor_13ad : ShankPort_Distractor_Def;
- connect comp_a_38c6.p to comp_distractor_13ad.p;
+ connect comp_a_38c6.p to comp_b_6b0d.p;
}
}
``... |
3,454 | src_1005 | syntax | remove_random_semicolon | 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:no viable alternative at input 'part' (8222.sysml line : 8 column : 5) | 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... | @@ -1,6 +1,6 @@
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
- port def FuelPort
+ 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; } | 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' (8222.sysml line : 8 column : 5)
Code:
```sysml
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort
par... | 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' (8222.sysml line : 8 column : 5)
Code:
```sysml
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
port def FuelPort
par... | 392 | 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
@@ -1,6 +1,6 @@
package Vehicle_Remix_0846_8b5c {
port def BatteryInput;
- port def FuelPort
+ port def FuelPort;
part def FuelPort_Def { port p : FuelPort; }
part def FuelPort_Def { port p : FuelPort; }
part def BatteryInput_Distractor_Def { port p : BatteryI... |
865 | src_0201 | syntax | rename_definition_break_usages | package Vehicle_Remix_0042_1387 {
port def StatusPort;
port def LugNutPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
par... | ERROR:Couldn't resolve reference to Feature 'p'. (1796.sysml line : 22 column : 29) | package Vehicle_Remix_0042_1387 {
port def StatusPort;
port def LugNutPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def StatusPort_Distractor_Def { port p : StatusPort; }
part def S... | @@ -2,7 +2,7 @@
port def StatusPort;
port def LugNutPort;
port def LugNutCompositePort;
- part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
+ part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part de... | 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'. (1796.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0042_1387 {
port def StatusPort;
port def LugNutPort;... | 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'. (1796.sysml line : 22 column : 29)
Code:
```sysml
package Vehicle_Remix_0042_1387 {
port def StatusPort;
port def LugNutPort;... | 435 | CODE STATUS = INCORRECT
```sysml
package Vehicle_Remix_0042_1387 {
port def StatusPort;
port def LugNutPort;
port def LugNutCompositePort;
part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { port p : LugNutPort; }
part def StatusPort_Distractor_Def { port... | CODE STATUS = INCORRECT
```sysml
@@ -2,7 +2,7 @@
port def StatusPort;
port def LugNutPort;
port def LugNutCompositePort;
- part def LugNutCompositePort_Def { port p_BROKEN : LugNutCompositePort; }
+ part def LugNutCompositePort_Def { port p : LugNutCompositePort; }
part def LugNutPort_Def { po... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.