Bug 1552536 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

From my perspective, this is fine since I'm also dealing with raw bit-vectors at the end. I have a [script](https://github.com/mozilla/python-libprio/blob/9d8822ea891ac5c190c429a5d1205068e559dbca/scripts/download-mapping) to help map from the bit-vector into something human-readable using the `TelemetryOriginData.inc` file. I can't speak strongly about the analysis, but I imagine it would look something like this:

```python
aggregates = {
    "PAGELOAD": 1000,
    "some.origin.com": 2,
    ...
}

total = aggregates["PAGELOAD"]
del aggregates["PAYLOAD"]

normalized = {origin: count/total for origin, count in aggregates.items()}
```
From my perspective, this is fine since I'm also dealing with raw bit-vectors at the end. I have a [script](https://github.com/mozilla/python-libprio/blob/9d8822ea891ac5c190c429a5d1205068e559dbca/scripts/download-mapping) to help map from the bit-vector into something human-readable using the `TelemetryOriginData.inc` file. I can't speak strongly about the analysis, but I imagine it would look something like this:

```python
aggregates = {
    "PAGELOAD": 1000,
    "some.origin.com": 2,
    ...
}

total = aggregates["PAGELOAD"]
del aggregates["PAGELOAD"]

normalized = {origin: count/total for origin, count in aggregates.items()}
```

Back to Bug 1552536 Comment 3