{"id":20676835,"url":"https://github.com/jfeser/ocaml-cmph","last_synced_at":"2025-10-11T01:02:55.427Z","repository":{"id":144751622,"uuid":"115294560","full_name":"jfeser/ocaml-cmph","owner":"jfeser","description":"Ocaml bindings for C Minimal Perfect Hashing Library (CMPH)","archived":false,"fork":false,"pushed_at":"2020-09-29T21:32:12.000Z","size":54827,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-10T18:54:15.001Z","etag":null,"topics":["hashing","mphf","ocaml","perfect-hash"],"latest_commit_sha":null,"homepage":null,"language":"OCaml","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/jfeser.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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}},"created_at":"2017-12-25T00:47:03.000Z","updated_at":"2022-08-04T20:30:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"7d4a567d-04fe-4713-94ca-045785a12869","html_url":"https://github.com/jfeser/ocaml-cmph","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/jfeser/ocaml-cmph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfeser%2Focaml-cmph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfeser%2Focaml-cmph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfeser%2Focaml-cmph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfeser%2Focaml-cmph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfeser","download_url":"https://codeload.github.com/jfeser/ocaml-cmph/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfeser%2Focaml-cmph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005754,"owners_count":26083960,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"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":["hashing","mphf","ocaml","perfect-hash"],"created_at":"2024-11-16T21:13:48.602Z","updated_at":"2025-10-11T01:02:54.381Z","avatar_url":"https://github.com/jfeser.png","language":"OCaml","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ocaml-cmph\nOcaml bindings for C Minimal Perfect Hashing Library ([CMPH](http://cmph.sourceforge.net/))\n\n[Online documentation](https://jfeser.github.io/ocaml-cmph/cmph/index.html)\n\n# Usage\n\n```ocaml\nopen Printf\nopen Cmph\n\nlet () =\n  let keys = [\n    \"aaaaaaaaaa\"; \"bbbbbbbbbb\"; \"cccccccccc\"; \"dddddddddd\"; \"eeeeeeeeee\"; \n    \"ffffffffff\"; \"gggggggggg\"; \"hhhhhhhhhh\"; \"iiiiiiiiii\"; \"jjjjjjjjjj\"\n  ] in\n  let keyset = KeySet.of_list keys in\n  let config = Config.create keyset in\n  let hash = Hash.create config in\n  List.iter (fun k -\u003e eprintf \"key:%s -- hash:%d\\n\" k (Hash.hash hash k)) keys\n```\n\nOutputs:\n```\nkey:aaaaaaaaaa -- hash:0\nkey:bbbbbbbbbb -- hash:1\nkey:cccccccccc -- hash:2\nkey:dddddddddd -- hash:3\nkey:eeeeeeeeee -- hash:4\nkey:ffffffffff -- hash:5\nkey:gggggggggg -- hash:6\nkey:hhhhhhhhhh -- hash:7\nkey:iiiiiiiiii -- hash:8\nkey:jjjjjjjjjj -- hash:9\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfeser%2Focaml-cmph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfeser%2Focaml-cmph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfeser%2Focaml-cmph/lists"}