{"id":39391247,"url":"https://github.com/rgmining/script","last_synced_at":"2026-01-18T03:11:54.886Z","repository":{"id":57461826,"uuid":"80190026","full_name":"rgmining/script","owner":"rgmining","description":"CLI tools for analyzing review graphs","archived":false,"fork":false,"pushed_at":"2022-03-10T15:16:51.000Z","size":1867,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-29T11:26:07.128Z","etag":null,"topics":["algorithm","analyze","graph","mining","review"],"latest_commit_sha":null,"homepage":"https://rgmining.github.io/script/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rgmining.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-27T07:52:20.000Z","updated_at":"2017-06-22T16:26:09.000Z","dependencies_parsed_at":"2022-08-28T01:51:44.379Z","dependency_job_id":null,"html_url":"https://github.com/rgmining/script","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rgmining/script","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgmining%2Fscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgmining%2Fscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgmining%2Fscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgmining%2Fscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rgmining","download_url":"https://codeload.github.com/rgmining/script/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rgmining%2Fscript/sbom","scorecard":{"id":773775,"data":{"date":"2025-08-11","repo":{"name":"github.com/rgmining/script","commit":"af675c6bc10d45570a827b3a2ea6578c933d59e5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: COPYING:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: COPYING:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":4,"reason":"6 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: GHSA-6p56-wp2h-9hxr","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T02:58:32.082Z","repository_id":57461826,"created_at":"2025-08-23T02:58:32.082Z","updated_at":"2025-08-23T02:58:32.082Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28528032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["algorithm","analyze","graph","mining","review"],"created_at":"2026-01-18T03:11:54.829Z","updated_at":"2026-01-18T03:11:54.880Z","avatar_url":"https://github.com/rgmining.png","language":"Python","readme":"# CLI tools for analyzing review graphs \n[![GPLv3](https://img.shields.io/badge/license-GPLv3-blue.svg)](https://www.gnu.org/copyleft/gpl.html)\n[![Build Status](https://travis-ci.org/rgmining/script.svg?branch=master)](https://travis-ci.org/rgmining/script)\n[![wercker status](https://app.wercker.com/status/f973cb1847c2c30e801fa4aa1fd417a6/s/master \"wercker status\")](https://app.wercker.com/project/byKey/f973cb1847c2c30e801fa4aa1fd417a6)\n[![Release](https://img.shields.io/badge/release-0.6.1-brightgreen.svg)](https://github.com/rgmining/script/releases/tag/0.6.1)\n\n[![Logo](https://rgmining.github.io/script/_static/image.png)](https://rgmining.github.io/script/)\n\nThis package provides useful scripts to analyze datasets themselves and run\nan method for mining review graphs.\n\n\n## Installation\nUse `pip` to install this package.\n\n```sh\n$ pip install --upgrade rgmining-script\n```\n\n\n## dataset command\ndataset command provides a set of functions to inspect a dataset.\nThose functions are divided to two groups, analyzing reviewer information and\nanalyzing product information.\n\n### Analyzing reviewer information\nTo analyze reviewer information of a dataset, dataset command provides the\nfollowing subcommands:\n\n* retrieve: output the ID of reviewers who review at least one of the given\n  products,\n* active: output the ID of reviewers who review at least threshold items,\n* reviewer_size: output the number of reviews of each reviewer who reviews\n  target products,\n* filter: output reviews posted by reviewers whose IDs match the given set of\n  IDs.\n\n\n### Analyzing product information\nTo analyze product information of a dataset, dataset command provides the\nfollowing subcommands:\n\n* average: output average rating scores of each product,\n* distinct: output distinct product IDs,\n* popular: output ID of products of which the member of reviews \u003e= threshold.\n* filter: output reviews posted to products of which IDs match the given set of\n  IDs.\n* variance: output variances of reviews for each product.\n\n\n### Basic usage\nThe basic usage of this command is\n\n```sh\n$ dataset \u003cdataset-specifier\u003e \u003cdataset-parameters\u003e reviewer \u003csubcommand\u003e\n```\n\nor\n\n```sh\n$ dataset \u003cdataset-specifier\u003e \u003cdataset-parameters\u003e product \u003csubcommand\u003e\n```\n\n\nwhere the dataset-specifier is a name of the dataset to be analyzed.\nIt is depended on which libraries you have installed and\n`dataset -h` returns a list of available dataset names.\n\ndataset-parameters are optional arguments specified with `--dataset-param` flag.\nThe `--dataset-param` flag takes a string which connecting key and value with\na single =.\nThe `--dataset-param` flag can be given multi-times.\nYou can find what kinds of parameter keys are defined in the dataset you want\nto use from documents of function `load` defined in the dataset.\n\nFor example, dataset `file` means loading a dataset from a file,\nof which each line contains a review in [the JSON format](https://rgmining.github.io/dataset-io/modules/dataset_io.html#review-data).\nTo load such dataset, use `file` as the dataset-specifier and give the file path\nas a dataset-parameter with `file` key, i.e. `--dataset-param file=\"path/to/file\"`.\n\n\nSee [document site](https://rgmining.github.io/script/) for more information\nabout each subcommand.\n\n\n## analyze command\nanalyze command loads a dataset and run a method to find anomalous reviewers\nand compute a rating summary of each product.\n\nThe basic usage of this command is\n\n```sh\n$ analyze \u003cdataset-specifier\u003e \u003cdataset-parameters\u003e \u003cmethod-specifier\u003e \u003cmethod-parameters\u003e\n```\n\nThe dataset-specifier and datasset-parameters are the same parameters described\nin the dataset command explanation.\n\nThe method-specifier is a name of installed method.\nYou can see available method names by `analyze -h`.\n\nmethod-parameters are optional arguments specified with `--method-param` flag.\nThe `--method-param` flag takes a string which connecting key and value with\na single =, and can be given multi-times.\n\nYou can find what kinds of parameter keys are defined in the method you want\nto run from documents of the constructor of the review graph object defined in\nthe method.\n\nFor example, [Fraud Eagle](https://rgmining.github.io/fraud-eagle) takes one\nparameter `epsilon` and you can give a value by `--method-param epsilon=0.25`.\n\nSee [document site](https://rgmining.github.io/script/) for more information.\n\n\n## License\nThis software is released under The GNU General Public License Version 3,\nsee [COPYING](https://github.com/rgmining/script/blob/master/COPYING) for more detail.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgmining%2Fscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frgmining%2Fscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frgmining%2Fscript/lists"}