tag | 9d155474f405e4fc599368f44eccf7c1ce3179b4 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 29 09:53:43 2024 -0700 |
object | 25ec4e8f47a188e0b5e82dd748ed67fdb9b51b55 |
aml_art_341514450 (11720836,com.google.android.art,com.google.android.go.art)
commit | 25ec4e8f47a188e0b5e82dd748ed67fdb9b51b55 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:42:06 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 04:42:06 2023 +0000 |
tree | 5d2b98a63d4f942bd3babd266cb81763bb59e1dc | |
parent | 4ca62354bced7d2cdff006fa83ebd17bc7a9b8c0 [diff] | |
parent | 0a1cff34c489372d3f515bf81efef2f9f5c02561 [diff] |
Snap for 10453563 from 0a1cff34c489372d3f515bf81efef2f9f5c02561 to mainline-art-release Change-Id: I423a4afb2cc80e23ec50b869bc0816d1bb989c8e
RAPPOR is a novel privacy technology that allows inferring statistics about populations while preserving the privacy of individual users.
This repository contains simulation and analysis code in Python and R.
For a detailed description of the algorithms, see the paper and links below.
Feel free to send feedback to rappor-discuss@googlegroups.com.
Although the Python and R libraries should be portable to any platform, our end-to-end demo has only been tested on Linux.
If you don't have a Linux box handy, you can view the generated output.
To setup your enviroment there are some packages and R dependencies. There is a setup script to install them: $ ./setup.sh Then to build the native components run: $ ./build.sh This compiles and tests the fastrand
C extension module for Python, which speeds up the simulation.
Finally to run the demo run: $ ./demo.sh
The demo strings together the Python and R code. It:
The output is written to _tmp/regtest/results.html
, and can be opened with a browser.
R analysis (analysis/R
):
Demo dependencies (demo.sh
):
These are necessary if you want to test changes to the code.
Python client (client/python
):
rappor.py
file.Platform:
To run tests:
$ ./test.sh
This currently runs Python unit tests, lints Python source files, and runs R unit tests.
rappor.py
is a tiny standalone Python file, and you can easily copy it into a Python program.
NOTE: Its interface is subject to change. We are in the demo stage now, but if there's demand, we will document and publish the interface.
The R interface is also subject to change.
The fastrand
C module is optional. It‘s likely only useful for simulation of thousands of clients. It doesn’t use cryptographically strong randomness, and thus should not be used in production.
analysis/ R/ # R code for analysis cpp/ # Fast reimplementations of certain analysis # algorithms apps/ # Web apps to help you use RAPPOR (using Shiny) bin/ # Command line tools for analysis. client/ # Client libraries python/ # Python client library rappor.py ... cpp/ # C++ client library encoder.cc ... doc/ # Documentation tests/ # Tools for regression tests compare_dist.R # Test helper for single variable analysis gen_true_values.R # Generate test input make_summary.py # Generate an HTML report for the regtest rappor_sim.py # RAPPOR client simulation regtest_spec.py # Specification of test cases ... build.sh # Build scripts (docs, C extension, etc.) demo.sh # Quick demonstration docs.sh # Generate docs form the markdown in doc/ gh-pages/ # Where generated docs go. (A subtree of the branch gh-pages) pipeline/ # Analysis pipeline code. regtest.sh # End-to-end regression tests, including client # libraries and analysis setup.sh # Install dependencies (for Linux) test.sh # Test runner