{"id":16282896,"url":"https://github.com/dito97/kapra","last_synced_at":"2025-04-08T18:22:21.060Z","repository":{"id":124235113,"uuid":"315888823","full_name":"DiTo97/kapra","owner":"DiTo97","description":"Data Protection and Privacy (90538) final project at UniGe","archived":false,"fork":false,"pushed_at":"2021-06-14T19:50:09.000Z","size":9344,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T12:56:49.973Z","etag":null,"topics":["anonymization","pattern","time-series"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiTo97.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-25T09:24:14.000Z","updated_at":"2021-06-28T19:07:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"de3bed5f-8fa4-4a2c-9bd2-b76ba142b7a4","html_url":"https://github.com/DiTo97/kapra","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fkapra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fkapra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fkapra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiTo97%2Fkapra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiTo97","download_url":"https://codeload.github.com/DiTo97/kapra/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247898776,"owners_count":21014772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anonymization","pattern","time-series"],"created_at":"2024-10-10T19:12:00.189Z","updated_at":"2025-04-08T18:22:21.035Z","avatar_url":"https://github.com/DiTo97.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# KAPRA\r\n\r\nImplementation of the [KAPRA](https://ieeexplore.ieee.org/abstract/document/6095556) algorithm for (k, P)-anonymity with l-diversity.\r\n\r\n**Authors:** F. Minutoli, M. Ghirardelli, S. Bagnato, and G. Losapio.\r\n\r\n```console\r\n             ,--._,--.\r\n           ,'  ,'   ,-`.\r\n(`-.__    /  ,'   /\r\n `.   `--'        \\__,--'-.\r\n   `--/       ,-.  ______/\r\n     (o-.     ,o- /\r\n      `. ;        \\\r\n       |:          \\\r\n      ,'`       ,   \\\r\n     (o o ,  --'     :\r\n      \\--','.        ;\r\n       `;;  :       /\r\n        ;'  ;  ,' ,'\r\n        ,','  :  '\r\n        \\ \\   :\r\n         `                                                            \r\n```\r\n\r\n## Dataset\r\n\r\nAll datasets are accessible in the *data* folder.\r\n\r\n- [Weekly sales transactions](https://archive.ics.uci.edu/ml/datasets/sales_transactions_dataset_weekly) from UCI.\r\n\r\n- [News popularity in social media platforms](https://archive.ics.uci.edu/ml/datasets/News+Popularity+in+Multiple+Social+Media+Platforms) from UCI.\r\n\r\n## Folder structure\r\n\r\n## Usage\r\n\r\n```console\r\n[*] Usage: python k_P_anonymity.py \u003calgorithm\u003e \u003ck_value\u003e \u003cP_value\u003e \u003cpaa_value\u003e \u003cl_value\u003e \u003cdataset\u003e\r\n```\r\n\r\n### Parameters explanation\r\n\r\n- `algorithm`, the (k, P)-anonymity implementation: naive or KAPRA;\r\n- `k_value`, the k-anonymity constraint value;\r\n- `P_value`, the P-anonymity constraint value on pattern sub-groups;\r\n- `paa_value`, the piece-wise aggregate approximation (PAA) value to control the dimensionality of PRs;\r\n- `l_value`, the l-diversity constraint value.\r\n  \r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdito97%2Fkapra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdito97%2Fkapra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdito97%2Fkapra/lists"}