<commit_before>Feature: Lodging Committee Calculations
  The lodging model should generate correct committee calculations

  Background:
    Given a Lodging

  Scenario: Date committee
    Given a characteristic "timeframe" of "2009-06-06/2010-01-01"
    When the "date" committee reports
    Then the committee should have used quorum "from timeframe"
    And the conclusion of the committee should be "2009-06-06"
    And the conclusion should comply with standards "ghg_protocol_scope_3, iso"

  Scenario: Rooms committee
    When the "rooms" committee reports
    Then the committee should have used quorum "default"
    And the conclusion of the committee should be "1.0"

  Scenario: Duration committee
    When the "duration" committee reports
    Then the committee should have used quorum "default"
    And the conclusion of the committee should be "86400"

  Scenario: Room nights committee from default
    Given a characteristic "timeframe" of "2009-01-01/2009-02-01"
    When the "date" committee reports
    And the "rooms" committee reports
    And the "duration" committee reports
    And the "room_nights" committee reports
    Then the committee should have used quorum "from rooms, duration, date, and timeframe"
    And the conclusion of the committee should be "1"

  Scenario Outline: Room nights committee
    Given a characteristic "timeframe" of "<timeframe>"
    And characteristic "date" of "<date>"
    And a characteristic "rooms" of "<rooms>"
    And a characteristic "duration" of "<duration>"
    When the "room_nights" committee reports
    Then the committee should have used quorum "from rooms, duration, date, and timeframe"
    And the conclusion of the committee should be "<room_nights>"
    Examples:
      | timeframe             | date       | rooms | duration | room_nights |
      | 2009-01-01/2009-02-01 | 2009-01-15 | 2     | 172800   | 4           |
      | 2009-01-01/2009-02-01 | 2009-02-15 | 2     | 172800   | 0           |

  Scenario: Climate division
    Given a characteristic "zip_code.name" of "94122"
    When the "climate_division" committee reports
    Then the committee should have used quorum "from zip code"
    And the conclusion of the committee should have "name" of "CA4"

  Scenario: City committee
    Given a characteristic "zip_code.name" of "94122"
    When the "city" committee reports
    Then the committee should have used quorum "from zip code"
    And the conclusion of the committee should be "San Francisco"

  Scenario: State committee
    Given a characteristic "zip_code.name" of "94122"
    When the "state" committee reports
    Then the committee should have used quorum "from zip code"
    And the conclusion of the committee should have "postal_abbreviation" of "CA"

  Scenario: Egrid subregion committee
    Given a characteristic "zip_code.name" of "94122"
    When the "egrid_subregion" committee reports
    Then the committee should have used quorum "from zip code"
    And the conclusion of the committee should have "abbreviation" of "CAMX"

  Scenario: Country committee
    Given a characteristic "state.postal_abbreviation" of "CA"
    When the "country" committee reports
    Then the committee should have used quorum "from state"
    And the conclusion of the committee should have "iso_3166_code" of "US"

  Scenario Outline: Cooling degree days committee
    Given a characteristic "country.iso_3166_code" of "<country>"
    And a characteristic "climate_division.name" of "<climate_div>"
    When the "cooling_degree_days" committee reports
    Then the committee should have used quorum "<quorum>"
    And the conclusion of the committee should be "<cdd>"
    Examples:
      | country | climate_div | cdd | quorum                |
      | US      |             | 880 | from country          |
      | US      | CA4         | 150 | from climate division |

  Scenario Outline: Heating degree days committee
    Given a characteristic "country.iso_3166_code" of "<country>"
    And a characteristic "climate_division.name" of "<climate_div>"
    When the "heating_degree_days" committee reports
    Then the committee should have used quorum "<quorum>"
    And the conclusion of the committee should be "<hdd>"
    Examples:
      | country | climate_div | hdd  | quorum                |
      | US      |             | 2200 | from country          |
      | US      | CA4         | 1350 | from climate division |

  Scenario Outline: Electricity mix committee
    Given a characteristic "zip_code.name" of "<zip>"
    And a characteristic "state.postal_abbreviation" of "<state>"
    And a characteristic "country.iso_3166_code" of "<country>"
    When the "state" committee reports
    And the "country" committee reports
    And the "egrid_subregion" committee reports
    And the "electricity_mix" committee reports
    Then the committee should have used quorum "<quorum>"
    And the conclusion of the committee should have "name" of "<mix>"
    Examples:
      | zip   | state | country | mix                              | quorum               |
      | 94122 |       |         | CAMX egrid subregion electricity | from egrid subregion |
      | 94133 |       |         | CA state electricity             | from state and country |
      |       | CA    |         | CA state electricity             | from state and country |
      |       |       | US      | US national electricity          | from country         |
      |       |       |         | fallback                         | default              |

  Scenario: Electricity n2o emission factor committee
    When the "electricity_mix" committee reports
    And the "electricity_n2o_emission_factor" committee reports
    Then the committee should have used quorum "from electricity mix"
    And the conclusion of the committee should be "0.00234"

  Scenario: Electricity ch4 emission factor committee
    When the "electricity_mix" committee reports
    And the "electricity_ch4_emission_factor" committee reports
    Then the committee should have used quorum "from electricity mix"
    And the conclusion of the committee should be "0.00021"

  Scenario: Electricity co2 emission factor committee
    When the "electricity_mix" committee reports
    And the "electricity_co2_emission_factor" committee reports
    Then the committee should have used quorum "from electricity mix"
    And the conclusion of the committee should be "0.62354"
<commit_msg>Alignment<commit_after>Feature: Lodging Committee Calculations
  The lodging model should generate correct committee calculations

  Background:
    Given a Lodging

  Scenario: Date committee
    Given a characteristic "timeframe" of "2009-06-06/2010-01-01"
    When the "date" committee reports
    Then the committee should have used quorum "from timeframe"
    And the conclusion of the committee should be "2009-06-06"
    And the conclusion should comply with standards "ghg_protocol_scope_3, iso"

  Scenario: Rooms committee
    When the "rooms" committee reports
    Then the committee should have used quorum "default"
    And the conclusion of the committee should be "1.0"

  Scenario: Duration committee
    When the "duration" committee reports
    Then the committee should have used quorum "default"
    And the conclusion of the committee should be "86400"

  Scenario: Room nights committee from default
    Given a characteristic "timeframe" of "2009-01-01/2009-02-01"
    When the "date" committee reports
    And the "rooms" committee reports
    And the "duration" committee reports
    And the "room_nights" committee reports
    Then the committee should have used quorum "from rooms, duration, date, and timeframe"
    And the conclusion of the committee should be "1"

  Scenario Outline: Room nights committee
    Given a characteristic "timeframe" of "<timeframe>"
    And characteristic "date" of "<date>"
    And a characteristic "rooms" of "<rooms>"
    And a characteristic "duration" of "<duration>"
    When the "room_nights" committee reports
    Then the committee should have used quorum "from rooms, duration, date, and timeframe"
    And the conclusion of the committee should be "<room_nights>"
    Examples:
      | timeframe             | date       | rooms | duration | room_nights |
      | 2009-01-01/2009-02-01 | 2009-01-15 | 2     | 172800   | 4           |
      | 2009-01-01/2009-02-01 | 2009-02-15 | 2     | 172800   | 0           |

  Scenario: Climate division
    Given a characteristic "zip_code.name" of "94122"
    When the "climate_division" committee reports
    Then the committee should have used quorum "from zip code"
    And the conclusion of the committee should have "name" of "CA4"

  Scenario: City committee
    Given a characteristic "zip_code.name" of "94122"
    When the "city" committee reports
    Then the committee should have used quorum "from zip code"
    And the conclusion of the committee should be "San Francisco"

  Scenario: State committee
    Given a characteristic "zip_code.name" of "94122"
    When the "state" committee reports
    Then the committee should have used quorum "from zip code"
    And the conclusion of the committee should have "postal_abbreviation" of "CA"

  Scenario: Egrid subregion committee
    Given a characteristic "zip_code.name" of "94122"
    When the "egrid_subregion" committee reports
    Then the committee should have used quorum "from zip code"
    And the conclusion of the committee should have "abbreviation" of "CAMX"

  Scenario: Country committee
    Given a characteristic "state.postal_abbreviation" of "CA"
    When the "country" committee reports
    Then the committee should have used quorum "from state"
    And the conclusion of the committee should have "iso_3166_code" of "US"

  Scenario Outline: Cooling degree days committee
    Given a characteristic "country.iso_3166_code" of "<country>"
    And a characteristic "climate_division.name" of "<climate_div>"
    When the "cooling_degree_days" committee reports
    Then the committee should have used quorum "<quorum>"
    And the conclusion of the committee should be "<cdd>"
    Examples:
      | country | climate_div | cdd | quorum                |
      | US      |             | 880 | from country          |
      | US      | CA4         | 150 | from climate division |

  Scenario Outline: Heating degree days committee
    Given a characteristic "country.iso_3166_code" of "<country>"
    And a characteristic "climate_division.name" of "<climate_div>"
    When the "heating_degree_days" committee reports
    Then the committee should have used quorum "<quorum>"
    And the conclusion of the committee should be "<hdd>"
    Examples:
      | country | climate_div | hdd  | quorum                |
      | US      |             | 2200 | from country          |
      | US      | CA4         | 1350 | from climate division |

  Scenario Outline: Electricity mix committee
    Given a characteristic "zip_code.name" of "<zip>"
    And a characteristic "state.postal_abbreviation" of "<state>"
    And a characteristic "country.iso_3166_code" of "<country>"
    When the "state" committee reports
    And the "country" committee reports
    And the "egrid_subregion" committee reports
    And the "electricity_mix" committee reports
    Then the committee should have used quorum "<quorum>"
    And the conclusion of the committee should have "name" of "<mix>"
    Examples:
      | zip   | state | country | mix                              | quorum                 |
      | 94122 |       |         | CAMX egrid subregion electricity | from egrid subregion   |
      | 94133 |       |         | CA state electricity             | from state and country |
      |       | CA    |         | CA state electricity             | from state and country |
      |       |       | US      | US national electricity          | from country           |
      |       |       |         | fallback                         | default                |

  Scenario: Electricity n2o emission factor committee
    When the "electricity_mix" committee reports
    And the "electricity_n2o_emission_factor" committee reports
    Then the committee should have used quorum "from electricity mix"
    And the conclusion of the committee should be "0.00234"

  Scenario: Electricity ch4 emission factor committee
    When the "electricity_mix" committee reports
    And the "electricity_ch4_emission_factor" committee reports
    Then the committee should have used quorum "from electricity mix"
    And the conclusion of the committee should be "0.00021"

  Scenario: Electricity co2 emission factor committee
    When the "electricity_mix" committee reports
    And the "electricity_co2_emission_factor" committee reports
    Then the committee should have used quorum "from electricity mix"
    And the conclusion of the committee should be "0.62354"

{'fraction_non_alphanumeric': 0.060945273631840796, 'fraction_numerical': 0.03109452736318408, 'mean_word_length': 2.823179791976226, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6869549', 'n_tokens_mistral': 3605, 'n_tokens_neox': 3273, 'n_words': 1442}