{"id":4017484,"name":"github.com/breml/sample","ecosystem":"go","description":"Package sample implements sampling algorithms for 1 in n sampling for a random value (probe): * Modulo, using modulo-operation * PowerOf2, using bitwise AND-operation, only usable if the sampling rate is a power of 2 * LowerThan, checking if the probe is lower than a pre calculated boundary (maximum value for probe divided by sampling rate) * Reciprocal, using a multiplication by the reciprocal value of the sampling rate (Details: https://breml.github.io/blog/2015/10/22/dividable-without-remainder/) * Decrement, implementation variant, where the random value is only calculated after a successful sampling","homepage":"https://github.com/breml/sample","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/breml/sample","keywords_array":[],"namespace":"github.com/breml","versions_count":1,"first_release_published_at":"2015-11-26T16:38:55.000Z","latest_release_published_at":"2015-11-26T16:38:55.000Z","latest_release_number":"v0.0.0-20151126163855-c42269b4445f","last_synced_at":"2026-06-13T23:29:56.015Z","created_at":"2022-04-12T08:43:48.452Z","updated_at":"2026-06-13T23:39:33.813Z","registry_url":"https://pkg.go.dev/github.com/breml/sample","install_command":"go get github.com/breml/sample","documentation_url":"https://pkg.go.dev/github.com/breml/sample#section-documentation","metadata":{},"repo_metadata":{"uuid":"44980236","full_name":"breml/sample","owner":"breml","description":"Go package sample implements several sampling algorithms (1 in n sampling)","archived":false,"fork":false,"pushed_at":"2015-11-26T16:39:03.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-02-22T23:47:33.002Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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,"logo_url":null,"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":"2015-10-26T16:04:49.000Z","updated_at":"2023-03-10T09:08:37.268Z","dependencies_parsed_at":"2023-03-13T20:15:23.464Z","dependency_job_id":null,"html_url":"https://github.com/breml/sample","commit_stats":null,"repository_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample","tags_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample/tags","manifests_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/breml%2Fsample/manifests","owner_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/breml","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":108921946,"host_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"http://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names"}},"repo_metadata_updated_at":"2026-06-13T23:39:33.781Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":9.345852080216646,"dependent_packages_count":6.999148183520997,"stargazers_count":null,"forks_count":null,"average":8.172500131868823},"purl":"pkg:golang/github.com/breml/sample","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/github.com/breml/sample","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/go/github.com/breml/sample","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/github.com/breml/sample/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2023-05-18T18:40:18.824Z","issues_count":0,"pull_requests_count":0,"avg_time_to_close_issue":null,"avg_time_to_close_pull_request":null,"issues_closed_count":0,"pull_requests_closed_count":0,"pull_request_authors_count":0,"issue_authors_count":0,"avg_comments_per_issue":null,"avg_comments_per_pull_request":null,"merged_pull_requests_count":0,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fbreml%2Fsample/codemeta","maintainers":[]}