{"uid":"cap_FqEAkBqTMp08ZNhpHz6tO","slug":"test-coverage-weighted-mean-date-by-category-pivot-9353d0cd","name":"Test Coverage Weighted Mean & Date-by-Category Pivot","description":"Test coverage — Secondary-measure weighted mean + Date by category pivot: Secondary-measure weighted mean + Date by category pivot for supplied test coverage records (covered_lines, total_lines). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-software-10-185?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","component","date","covered_lines","total_lines"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"component":{"type":"string","default":"","maxLength":80},"total_lines":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"covered_lines":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","component":"group-a","total_lines":1,"covered_lines":10},{"date":"2026-10-02","row_id":"row-2","component":"group-b","total_lines":2,"covered_lines":20},{"date":"2026-10-03","row_id":"row-3","component":"group-a","total_lines":3,"covered_lines":15},{"date":"2026-10-04","row_id":"row-4","component":"group-b","total_lines":4,"covered_lines":30}],"maxItems":200,"minItems":1},"field":{"enum":["covered_lines","total_lines"],"type":"string","default":"covered_lines"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qAqAUdeqtWfGOzNepVLum","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a secondary-measure weighted mean and a date-by-category pivot table for supplied test coverage records (covered_lines, total_lines) — two analytical reports in one call.","exampleAgentPrompt":"I have test coverage records for our components — can you compute a weighted mean of covered_lines and also pivot the data by date and component? Here are up to 200 rows with fields: row_id, component (e.g. 'auth-service'), date (e.g. 2025-06-01), covered_lines, and total_lines.","exampleUseCases":[{"title":"Component coverage trend pivot","prompt":"I've got daily test coverage logs for three components — 'auth', 'billing', and 'search' — over the past month, with covered_lines and total_lines per row. Can you pivot them by date and component and also give me a weighted mean of covered_lines?"},{"title":"Release quality coverage summary","prompt":"Before our release, I want to summarize our test coverage data: compute the weighted mean of total_lines and pivot the results by date and component group. I'll supply the rows with row_id, component, date, covered_lines, and total_lines."},{"title":"Sprint coverage weighted analysis","prompt":"I have sprint test coverage records for components like 'frontend' and 'backend' with covered_lines and total_lines. Run the weighted mean on covered_lines and give me the date-by-category pivot so I can see which component improved most over the sprint."}],"resultDescription":"Returns two analytical reports: (1) a secondary-measure weighted mean of the selected field (covered_lines or total_lines) across the supplied rows, and (2) a date-by-category pivot table cross-tabulating the selected measure by date and component — computed locally from the supplied data, no external lookups.","failureModes":["Missing required row fields (row_id, component, date, covered_lines, total_lines) cause validation errors","Date strings not matching YYYY-MM-DD pattern are rejected","Submitting more than 200 rows exceeds the row limit","Null values in covered_lines or total_lines may affect weighted mean calculation","Invalid field enum value (not 'covered_lines' or 'total_lines') causes a schema error"],"whenToPreferThis":"Choose this endpoint when you have raw test coverage row data (covered_lines, total_lines per component per date) and need both a weighted mean statistic and a date-by-category pivot in a single low-cost call. Ideal for software quality dashboards, CI/CD reporting pipelines, or sprint retrospectives where you supply your own data and need two complementary views computed together without setting up local analytics infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-26T18:51:23.307Z","isFirstParty":false,"canonicalSlug":"test-coverage-weighted-mean-date-by-category-pivot-9353d0cd"}