{"id":16653675,"url":"https://github.com/freddyheppell/crowdeval","last_synced_at":"2026-05-19T07:33:23.066Z","repository":{"id":41177785,"uuid":"338343710","full_name":"freddyheppell/crowdeval","owner":"freddyheppell","description":"A crowdsourced system for multiplatform rumour evaluation","archived":false,"fork":false,"pushed_at":"2022-08-21T09:06:43.000Z","size":3399,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2025-12-22T19:59:03.537Z","etag":null,"topics":["bert","flask","misinformation","nlp","python","rumour-evaluation","university-of-sheffield"],"latest_commit_sha":null,"homepage":"","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/freddyheppell.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}},"created_at":"2021-02-12T14:36:20.000Z","updated_at":"2022-07-17T19:42:31.000Z","dependencies_parsed_at":"2022-09-12T07:50:21.720Z","dependency_job_id":null,"html_url":"https://github.com/freddyheppell/crowdeval","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/freddyheppell/crowdeval","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddyheppell%2Fcrowdeval","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddyheppell%2Fcrowdeval/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddyheppell%2Fcrowdeval/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddyheppell%2Fcrowdeval/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/freddyheppell","download_url":"https://codeload.github.com/freddyheppell/crowdeval/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/freddyheppell%2Fcrowdeval/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33206320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:16:55.748Z","status":"ssl_error","status_checked_at":"2026-05-19T07:16:54.366Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bert","flask","misinformation","nlp","python","rumour-evaluation","university-of-sheffield"],"created_at":"2024-10-12T09:46:32.399Z","updated_at":"2026-05-19T07:33:23.039Z","avatar_url":"https://github.com/freddyheppell.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# CrowdEval\n\nCrowdEval is an experimental crowdsourced factchecking application, created as part of my MComp Computer Science dissertation project. The idea for this project was provided by the project supervisor, [Carolina Scarton](https://carolscarton.github.io/).\n\n[![Test \u0026 Lint](https://github.com/freddyheppell/crowdeval/actions/workflows/test.yml/badge.svg)](https://github.com/freddyheppell/crowdeval/actions/workflows/test.yml) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg?logo=python\u0026logoColor=white)](https://github.com/psf/black) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-f3df49.svg?logo=javascript\u0026logoColor=white)](http://standardjs.com)\n\nCrowdEval ships with two Docker environments:\n\n* a development environment with containerised infrastructure, but the app and frontend run natively\n* a fully containerised production environment\n\n\n## Installation of Development Environment\n\nDependencies:\n* Python 3.9.4\n* [Poetry](https://python-poetry.org/)\n\n1. `cd` into the `webapp` directory\n2. Run `poetry install`\n    * On macOS Big Sur, if Numpy fails to install, ensure  the environment variable `SYSTEM_VERSION_COMPAT` is set to `1` and try again\n3. `cp .env.dev .env`\n    * Enter a `SECRET_KEY`, which can be any string\n    * Enter the `TWITTER_` API keys. This has to be a [new-style Twitter project](https://developer.twitter.com/en/docs/projects/overview) because we use v2.0 of the Twitter API \n        * The callback URL for development should be `localhost:5000/login/twitter/authorized`\n    * Enter the `RECAPTCHA_` API keys\n    * The remainder of the file is already configured for the development environment and shouldn't need to be changed\n4. Run `docker-compose up` to start\n5. Once the Elasticsearch service has started, run:\n    ```\n    $ poetry run flask create-index -i posts -c infrastructure/elasticsearch/posts.json\n    ```\n    This will create the required posts index.\n6. Install frontend dependencies with `npm install`\n7. To start asset compilation and the Flask dev server, run\n    ```\n    $ npm run start\n    ```\n    **The app will be started on `localhost:5000`**\n8. Migrate the database with `poetry run flask db upgrade`\n\n## Deploying to production\n\nWorking from the root directory:\n\n1. `cp webapp/.env.prod webapp/.env`\n    * Enter a `SECRET_KEY`, which should be a random ~32-character secret\n    * Enter the `TWITTER_` API keys. This has to be a [new-style Twitter project](https://developer.twitter.com/en/docs/projects/overview) because we use v2.0 of the Twitter API \n        * The callback URL should be `\u003cyour hostname\u003e/login/twitter/authorized`\n    * Enter the `RECAPTCHA_` API keys\n    * The remainder of the file is already configured for the production environment and shouldn't need to be changed\n2. `docker-compose up`\n\nThe application should now be built and started via Gunicorn.\n\n\n## Administrative commands\n\n\n\u003e In development, these commands should be prefixed with `poetry run` (or run `poetry shell` once to activate and run as is).\n\u003e \n\u003e In production, attach to the `crowdeval` service i.e.:\n\u003e ```shell\n\u003e docker-compose run --entrypoint \"bash -l\" crowdeval\n\u003e ```\n\u003e\n\u003e and then run the commands, although note that `flask` needs to be run from `./venv/bin/flask` to ensure the correct version is used.\n\n### Seeding with dummy data\n\nThe system can import the Kochkina et al.'s PHEME dataset, which has been pre-processed and stored in [/seeds/kochkina_et_al_PHEME](/seeds/kochkina_et_al_PHEME). To import it:\n\n```shell\n$ flask import-tweet-seeds seeds/kochkina_et_al_PHEME\n```\n\nThis will create a `.veracities.json` file, which can then be used to seed random (but biased towards the dataset's veracity) ratings with\n\n```shell\n$ flask seed-ratings\n```\n\n### Regenerating explore cache\n\nThe explore by rating pages are served from Redis, and must be manually regenerated.\n\n```shell\n$ flask recache-explore\n```\n\nIn production this is probably best run as a scheduled task on the host machine via cron with an entry such as (note the\nhard coded path to the docker-compose.yml file):\n\n```\n*/5 * * * * /usr/local/bin/docker-compose -f /data/crowdeval/docker-compose.yml run --entrypoint \"venv/bin/flask recache-explore\" crowdeval \u003e\u003e crowdeval-cron.log 2\u003e\u00261\n```\n\n### Quality Control\n\nTests and linting can be run with\n\n```shell\n$ flask test\n$ flask lint\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreddyheppell%2Fcrowdeval","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffreddyheppell%2Fcrowdeval","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffreddyheppell%2Fcrowdeval/lists"}