{"id":17823059,"url":"https://github.com/artofcode-/quality-machine","last_synced_at":"2025-04-02T10:29:35.183Z","repository":{"id":69665744,"uuid":"76145068","full_name":"ArtOfCode-/quality-machine","owner":"ArtOfCode-","description":"Bot for detecting low-quality content on http://english.stackexchange.com using machine learning.","archived":false,"fork":false,"pushed_at":"2016-12-11T21:30:06.000Z","size":22,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-08T01:35:00.113Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ArtOfCode-.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","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":"2016-12-11T00:15:23.000Z","updated_at":"2016-12-19T19:41:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"e536afc7-fe7c-4aa1-931b-9518941326a7","html_url":"https://github.com/ArtOfCode-/quality-machine","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/ArtOfCode-%2Fquality-machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fquality-machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fquality-machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ArtOfCode-%2Fquality-machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ArtOfCode-","download_url":"https://codeload.github.com/ArtOfCode-/quality-machine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246796424,"owners_count":20835386,"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":[],"created_at":"2024-10-27T17:50:40.837Z","updated_at":"2025-04-02T10:29:35.158Z","avatar_url":"https://github.com/ArtOfCode-.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# quality-machine\nMachine learning for detecting low-quality contributions on http://english.stackexchange.com.\n\n## Setup\nQM maintains a list of dependencies in `requirements.txt`. You can also use this file to install requirements directly:\n\n    you@yourpc:~$ sudo -H python3 -m pip install -r requirements.txt\n\nYou'll need to copy the example config across to a real config file:\n\n    you@yourpc:~$ cp config.sample.json config.json\n\nOnce you're done there, you can run the project by executing the `main.py` file.\n\n    you@yourpc:~$ python3 main.py\n\nYou'll need an account on [StackExchange](http://stackexchange.com) that has access to chat. You'll be prompted for its\nusername and password each time you run the bot, though you can save them in the `ChatExchangeU` and `ChatExchangeP`\nenvironment variables if you want.\n\n## Configuration\nQM is configured from a JSON configuration file, `config.json`. The important fields are:\n\n - `location`: a description of who, or what, is running the bot. Example: `ArtOfCode/EC2`.\n - `control_room`: a numeric ID of the room you want the bot to run in.\n - `command_prefix`: a string that the bot will use to identify commands it's being sent.\n - `class_data_file`: a path to a JSON file containing classification data.\n\n## Classification data\nThe `class_data_file` field in the config file should point to another JSON file containing classification data. This\ndata should also be in a specific format. You will not normally need to touch this file - the bot will read and write it\nas necessary for normal operation. The format is as such:\n\n    {\n        \"items\": [\n            {\n                \"class_values\": [8.792, 12.01, 197.6, 83, 22.059],\n                \"label\": 1\n            },\n            {\n                \"class_values\": [0.192, 6.7, 20.5, 15.15, 4.82],\n                \"label\": 0\n            }\n        ]\n    }\n\nThat is, `items` should be an array of objects, each of which contains a `class_values` and a `label` field. The\n`class_values` field is an array of values for each classification class, and the `label` field indicates the desired\nresult of a classification - okay, or low quality.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartofcode-%2Fquality-machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartofcode-%2Fquality-machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartofcode-%2Fquality-machine/lists"}