{"id":50937870,"url":"https://github.com/bcorfman/string_weasels","last_synced_at":"2026-06-17T11:03:05.781Z","repository":{"id":92245225,"uuid":"264466159","full_name":"bcorfman/string_weasels","owner":"bcorfman","description":"How random mutation and natural selection can produce complex specified information","archived":false,"fork":false,"pushed_at":"2026-02-21T18:46:55.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-21T21:52:27.310Z","etag":null,"topics":["evolution","github-codespaces","information","mutation","pytest","python","tdd-python","test-driven-development","uv"],"latest_commit_sha":null,"homepage":"","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/bcorfman.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,"zenodo":null}},"created_at":"2020-05-16T15:24:12.000Z","updated_at":"2026-02-21T18:46:55.000Z","dependencies_parsed_at":"2025-06-04T15:02:36.146Z","dependency_job_id":"eafefc2f-9a20-437b-9141-15ef34887627","html_url":"https://github.com/bcorfman/string_weasels","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bcorfman/string_weasels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcorfman%2Fstring_weasels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcorfman%2Fstring_weasels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcorfman%2Fstring_weasels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcorfman%2Fstring_weasels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bcorfman","download_url":"https://codeload.github.com/bcorfman/string_weasels/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bcorfman%2Fstring_weasels/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34445186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"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":["evolution","github-codespaces","information","mutation","pytest","python","tdd-python","test-driven-development","uv"],"created_at":"2026-06-17T11:03:01.467Z","updated_at":"2026-06-17T11:03:05.775Z","avatar_url":"https://github.com/bcorfman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# string_weasels\n\n[![Open in Codespaces](https://github.com/codespaces/badge.svg)](https://github.com/codespaces/new?hide_repo_select=true\u0026ref=main\u0026repo=264466159\u0026machine=standardLinux32gb\u0026devcontainer_path=.devcontainer%2Fdevcontainer.json\u0026location=EastUs)\n\nPython version of Richard Dawkins' Weasel program\n\nI wrote this after reading Dudley Chapman's blog post on [Shakespeare, Evolution, and Weasels](https://theappleandthefinch.com/2016/04/30/shakespeare-evolution-and-weasels/). It was some good practice with Test-Driven Development (TDD).\n\nMy daughter is also learning about genetics in her 7th grade science class, so I thought this might interest her also. (It did. She was startled both at the results and that I built it in an hour and a half.)\n\nTo run, you'll need to either\n\n* Click the *Open in GitHub Codespaces* badge at the top of this README\n\nOR\n\n1) Install [Python](https://www.python.org) 3.9 or higher.\n2) Clone this repo.\n3) Run `make devinstall` from the project folder to install development dependencies.\n4) Run `make run` to execute the program and find the target string.\n\nTo run tests:\n\n1) Install dependencies with `make devinstall`.\n2) Run `make test`.\n\nFor non-development installs, run `make install`.\n\nIn typical runs, the program converges on \"Methinks it is like a weasel.\" in roughly 30-60 generations, which compares well with Dudley's program.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcorfman%2Fstring_weasels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbcorfman%2Fstring_weasels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbcorfman%2Fstring_weasels/lists"}