---------------------------------------------------------------------- This is the API documentation for the gdtest_ref_reorder library. ---------------------------------------------------------------------- ## Functions Utility functions compute(x: float) -> float Compute the square of a value. Parameters ---------- x : float The input value. Returns ------- float The squared value. Examples -------- >>> compute(3.0) 9.0 transform(data: list) -> list Transform a list by doubling each element. Parameters ---------- data : list The input data list. Returns ------- list The transformed data with doubled values. Examples -------- >>> transform([1, 2, 3]) [2, 4, 6] ## Classes Data classes DataModel(data: dict) A data model for holding and validating data. Parameters ---------- data : dict The data to model. Examples -------- >>> m = DataModel({"key": "value"}) >>> m.validate() True Schema(definition: dict) A schema for parsing and validating structured data. Parameters ---------- definition : dict The schema definition. Examples -------- >>> s = Schema({"type": "object"}) >>> s.parse({"key": "value"}) {'key': 'value'}