{"id":23991529,"url":"https://github.com/nikelborm/autism-stats","last_synced_at":"2025-04-14T17:04:29.900Z","repository":{"id":247715668,"uuid":"826648480","full_name":"nikelborm/autism-stats","owner":"nikelborm","description":"Silly calculator to get stats of autism children' birth rates","archived":false,"fork":false,"pushed_at":"2024-11-11T03:14:44.000Z","size":19,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T17:03:16.099Z","etag":null,"topics":["autism","autism-spectrum-disorder","autistic","cli","statistics","stats"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nikelborm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-07-10T05:42:06.000Z","updated_at":"2025-03-09T08:06:10.000Z","dependencies_parsed_at":"2024-07-10T07:57:05.181Z","dependency_job_id":"d867f931-6fe6-4cf4-8251-d62cb91aed95","html_url":"https://github.com/nikelborm/autism-stats","commit_stats":null,"previous_names":["nikelborm/autism-stats"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikelborm%2Fautism-stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikelborm%2Fautism-stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikelborm%2Fautism-stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nikelborm%2Fautism-stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nikelborm","download_url":"https://codeload.github.com/nikelborm/autism-stats/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248923766,"owners_count":21183952,"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":["autism","autism-spectrum-disorder","autistic","cli","statistics","stats"],"created_at":"2025-01-07T19:55:25.347Z","updated_at":"2025-04-14T17:04:29.880Z","avatar_url":"https://github.com/nikelborm.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Autism stats example\n\n## What is this?\n\nIt's just silly little calculator to get stats of autism children' birth rates\n\n## What's for?\n\nFor fun.\n\n## Install dependencies\n\n```bash\nnpm install\n```\n\n## Run script\n\nCommand to run script:\n```bash\nnpm start\n```\n\nIt will print something like this:\n```javascript\n┌─────────┬─────────┬──────────────────────────┬───────────────────────┬──────────────────────┬─────────────────────────────────┐\n│ (index) │ 0       │ 1                        │ 2                     │ 3                    │ 4                               │\n├─────────┼─────────┼──────────────────────────┼───────────────────────┼──────────────────────┼─────────────────────────────────┤\n│ 0       │ 0.024   │ 'autistic recipient'     │ 'decided not to skip' │ 'autistic donor'     │ 'will cause autistic child'     │\n│ 1       │ 0       │ 'autistic recipient'     │ 'decided not to skip' │ 'autistic donor'     │ 'will cause neurotypical child' │\n│ 2       │ 0.008   │ 'autistic recipient'     │ 'decided not to skip' │ 'neurotypical donor' │ 'will cause autistic child'     │\n│ 3       │ 0.008   │ 'autistic recipient'     │ 'decided not to skip' │ 'neurotypical donor' │ 'will cause neurotypical child' │\n│ 4       │ 0.0005  │ 'autistic recipient'     │ 'decided to skip'     │ 'autistic donor'     │ 'will cause autistic child'     │\n│ 5       │ 0       │ 'autistic recipient'     │ 'decided to skip'     │ 'autistic donor'     │ 'will cause neurotypical child' │\n│ 6       │ 0.00475 │ 'autistic recipient'     │ 'decided to skip'     │ 'neurotypical donor' │ 'will cause autistic child'     │\n│ 7       │ 0.00475 │ 'autistic recipient'     │ 'decided to skip'     │ 'neurotypical donor' │ 'will cause neurotypical child' │\n│ 8       │ 0.0475  │ 'neurotypical recipient' │ 'decided not to skip' │ 'autistic donor'     │ 'will cause autistic child'     │\n│ 9       │ 0.0475  │ 'neurotypical recipient' │ 'decided not to skip' │ 'autistic donor'     │ 'will cause neurotypical child' │\n│ 10      │ 0       │ 'neurotypical recipient' │ 'decided not to skip' │ 'neurotypical donor' │ 'will cause autistic child'     │\n│ 11      │ 0.665   │ 'neurotypical recipient' │ 'decided not to skip' │ 'neurotypical donor' │ 'will cause neurotypical child' │\n│ 12      │ 0.00475 │ 'neurotypical recipient' │ 'decided to skip'     │ 'autistic donor'     │ 'will cause autistic child'     │\n│ 13      │ 0.00475 │ 'neurotypical recipient' │ 'decided to skip'     │ 'autistic donor'     │ 'will cause neurotypical child' │\n│ 14      │ 0       │ 'neurotypical recipient' │ 'decided to skip'     │ 'neurotypical donor' │ 'will cause autistic child'     │\n│ 15      │ 0.1805  │ 'neurotypical recipient' │ 'decided to skip'     │ 'neurotypical donor' │ 'will cause neurotypical child' │\n└─────────┴─────────┴──────────────────────────┴───────────────────────┴──────────────────────┴─────────────────────────────────┘\n┌───────────────────────────────┬────────┬───────────────┬───────────────────┐\n│ (index)                       │ all    │ autisticChild │ neurotypicalChild │\n├───────────────────────────────┼────────┼───────────────┼───────────────────┤\n│ will cause autistic child     │ 0.0895 │               │                   │\n│ will cause neurotypical child │ 0.9105 │               │                   │\n│ decided to skip               │ 0.2    │ 0.01          │ 0.19              │\n│ decided not to skip           │ 0.8    │ 0.0795        │ 0.7205            │\n│ autistic recipient            │ 0.05   │ 0.03725       │ 0.01275           │\n│ neurotypical recipient        │ 0.95   │ 0.05225       │ 0.89775           │\n│ autistic donor                │ 0.129  │ 0.07675       │ 0.05225           │\n│ neurotypical donor            │ 0.871  │ 0.01275       │ 0.85825           │\n└───────────────────────────────┴────────┴───────────────┴───────────────────┘\n```\n\nOutput will differ depending on the parameters you set at the beggining of `index.ts`:\n```javascript\nconst chances = getChances({\n  probabilityOfDonorToBeAutistic: 0.05,\n  probabilityOfRecipientToBeAutistic: 0.05,\n  chanceOfDonationToCauseAutisticChild: {\n    ifBothPartnersAreAutistic: 1,\n    ifOnePartnerIsAutistic: 0.5,\n    ifNoneAreAutistic: 0\n  },\n  chanceThatRecipientWillSkipChoosingDonor: {\n    ifRecipientIsNeurotypical: 0.2,\n    ifRecipientIsAutistic: 0.5,\n  },\n  chanceThatInvolvedRecipientWillChooseAutisticDonor: {\n    ifRecipientIsNeurotypical: 0.125,\n    ifRecipientIsAutistic: 0.6,\n  }\n})\n```\n\nAll parameters are normalized from `0` to `1`.\n\n\n## TODO\n\n1. Integrate codegen from https://github.com/ksxnodemodules/ts-pipe-compose\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikelborm%2Fautism-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikelborm%2Fautism-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikelborm%2Fautism-stats/lists"}