<commit_before># Part 1:  Define a Class

## Summary
In this challenge you will be defining a class that represents a road trip. A `RoadTrip` is made up of a collection of segments. A `RoadTrip` instance can answer questions like:

* What is the total length of the trip?
* What is the average segment mileage?


## Tests
### Segments
In the test suite you will notice various `double` objects.  These objects are meant to represent instances of a `Segment` class and provide objects with the behaviors on which a `RoadTrip` instance depends.  See `segment.rb` for the `Segment` class code.

### Running the Specs
If you have questions on how to run the tests, please check the [rspec-help](../rspec-help.md) document.


## Releases
### Release 0:  `RoadTrip` Class Attributes
In the tests for the `RoadTrip` class is an example group `"attributes"` that contains tests for the desired attributes for a `RoadTrip` instance.  Run the tests. Three tests should be failing.  Update the `RoadTrip class` in `road_trip.rb` to make the tests pass.<commit_msg>remove info about doubles in readme<commit_after># Part 1:  Define a Class

## Summary
In this challenge you will be defining a class that represents a road trip. A `RoadTrip` is made up of a collection of segments. A `RoadTrip` instance can answer questions like:

* What is the total length of the trip?
* What is the average segment mileage?


## Tests

### Running the Specs
If you have questions on how to run the tests, please check the [rspec-help](../rspec-help.md) document.


## Releases
### Release 0:  `RoadTrip` Class Attributes
In the tests for the `RoadTrip` class is an example group `"attributes"` that contains tests for the desired attributes for a `RoadTrip` instance.  Run the tests. Three tests should be failing.  Update the `RoadTrip class` in `road_trip.rb` to make the tests pass.
{'fraction_non_alphanumeric': 0.07369553523399677, 'fraction_numerical': 0.002151694459386767, 'mean_word_length': 4.254237288135593, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '182070', 'n_tokens_mistral': 528, 'n_tokens_neox': 501, 'n_words': 283}