<commit_before>Feature: IoT Perishable Network Basic Test Scenarios

    Background:
        Given I have deployed the business network definition ..
        And I have added the following participants
        """
        [
        {"$class":"org.acme.shipping.perishable.Grower", "email":"<EMAIL>", "address":{"$class":"org.acme.shipping.perishable.Address", "country":"USA"}, "accountBalance":0},
        {"$class":"org.acme.shipping.perishable.Importer", "email":"<EMAIL>", "address":{"$class":"org.acme.shipping.perishable.Address", "country":"UK"}, "accountBalance":0}
        ]
        """
        
        And I have added the following asset of type org.acme.shipping.perishable.Contract
            | contractId | grower           | shipper               | importer           | arrivalDateTime  | unitPrice | minTemperature | maxTemperature | minPenaltyFactor | maxPenaltyFactor |
            | CON_001    | <EMAIL> | <EMAIL> | <EMAIL> | 10/26/2018 00:00 | 0.5       | 2              | 10             | 0.2              | 0.1              | 
        
        And I have added the following asset of type org.acme.shipping.perishable.Shipment
            | shipmentId | type    | status     | unitCount | contract |
            | SHIP_001   | BANANAS | IN_TRANSIT | 5000      | CON_001  |

        And I submit the following transactions of type org.acme.shipping.perishable.TemperatureReading
            | shipment | centigrade |
            | SHIP_001 | 4          |
            | SHIP_001 | 5          |
            | SHIP_001 | 10         |

    Scenario: When the temperature range is within the agreed-upon boundaries
        When I submit the following transaction of type org.acme.shipping.perishable.ShipmentReceived
            | shipment |
            | SHIP_001 |
        
        Then I should have the following participants
        """
        [
        {"$class":"org.acme.shipping.perishable.Grower", "email":"<EMAIL>", "address":{"$class":"org.acme.shipping.perishable.Address", "country":"USA"}, "accountBalance":2500},
        {"$class":"org.acme.shipping.perishable.Importer", "email":"<EMAIL>", "address":{"$class":"org.acme.shipping.perishable.Address", "country":"UK"}, "accountBalance":-2500}
        ]
        """
    
    Scenario: When the low/min temperature threshold is breached by 2 degrees C
        Given I submit the following transaction of type org.acme.shipping.perishable.TemperatureReading
            | shipment | centigrade |
            | SHIP_001 | 0          |
<commit_msg>Update iot-perishable.feature<commit_after>Feature: IoT Perishable Network Basic Test Scenarios

    Background:
        Given I have deployed the business network definition ..
        And I have added the following participants
        """
        [
        {"$class":"org.acme.shipping.perishable.Grower", "email":"<EMAIL>", "address":{"$class":"org.acme.shipping.perishable.Address", "country":"USA"}, "accountBalance":0},
        {"$class":"org.acme.shipping.perishable.Importer", "email":"<EMAIL>", "address":{"$class":"org.acme.shipping.perishable.Address", "country":"UK"}, "accountBalance":0}
        ]
        """
        
        And I have added the following asset of type org.acme.shipping.perishable.Contract
            | contractId | grower           | shipper               | importer           | arrivalDateTime  | unitPrice | minTemperature | maxTemperature | minPenaltyFactor | maxPenaltyFactor |
            | CON_001    | <EMAIL> | <EMAIL>     | <EMAIL> | 10/26/2018 00:00 | 0.5       | 2              | 10             | 0.2              | 0.1              | 
        
        And I have added the following asset of type org.acme.shipping.perishable.Shipment
            | shipmentId | type    | status     | unitCount | contract |
            | SHIP_001   | BANANAS | IN_TRANSIT | 5000      | CON_001  |

        And I submit the following transactions of type org.acme.shipping.perishable.TemperatureReading
            | shipment | centigrade |
            | SHIP_001 | 4          |
            | SHIP_001 | 5          |
            | SHIP_001 | 10         |

    Scenario: When the temperature range is within the agreed-upon boundaries
        When I submit the following transaction of type org.acme.shipping.perishable.ShipmentReceived
            | shipment |
            | SHIP_001 |
        
        Then I should have the following participants
        """
        [
        {"$class":"org.acme.shipping.perishable.Grower", "email":"<EMAIL>", "address":{"$class":"org.acme.shipping.perishable.Address", "country":"USA"}, "accountBalance":2500},
        {"$class":"org.acme.shipping.perishable.Importer", "email":"<EMAIL>", "address":{"$class":"org.acme.shipping.perishable.Address", "country":"UK"}, "accountBalance":-2500}
        ]
        """
    
    Scenario: When the low/min temperature threshold is breached by 2 degrees C
        Given I submit the following transaction of type org.acme.shipping.perishable.TemperatureReading
            | shipment | centigrade |
            | SHIP_001 | 0          |

{'fraction_non_alphanumeric': 0.1194324004729996, 'fraction_numerical': 0.025620811982656682, 'mean_word_length': 2.2039141414141414, 'pattern_counts': {'":': 48, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4551030', 'n_tokens_mistral': 1538, 'n_tokens_neox': 1419, 'n_words': 329}