{"id":22513378,"url":"https://github.com/bitvantage/numericrange","last_synced_at":"2026-02-28T00:49:03.678Z","repository":{"id":246677227,"uuid":"820495656","full_name":"Bitvantage/NumericRange","owner":"Bitvantage","description":"Parse and manipulate huge lists of numeric ranges such as 40-70,90,95,300-700,5000.","archived":false,"fork":false,"pushed_at":"2024-06-29T14:59:45.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-08T03:16:52.233Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bitvantage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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-06-26T15:24:14.000Z","updated_at":"2024-06-29T15:00:24.000Z","dependencies_parsed_at":"2024-06-29T16:02:03.547Z","dependency_job_id":"8b7e657c-ce4a-4e9e-8163-d2d856473c6f","html_url":"https://github.com/Bitvantage/NumericRange","commit_stats":null,"previous_names":["bitvantage/numericrange"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FNumericRange","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FNumericRange/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FNumericRange/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bitvantage%2FNumericRange/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bitvantage","download_url":"https://codeload.github.com/Bitvantage/NumericRange/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240233694,"owners_count":19769236,"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":[],"created_at":"2024-12-07T03:11:58.387Z","updated_at":"2026-02-28T00:48:58.637Z","avatar_url":"https://github.com/Bitvantage.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitvantage.NumericRange\nParse and manipulate huge lists of numeric ranges such as 40-70,90,95,300-700,5000.\n\n## Installing via NuGet Package Manager\n```\nPM\u003e NuGet\\Install-Package Bitvantage.NumericRange\n```\n\n## Quick Start\n```csharp\nvar range = NumericRange.Parse(\"40-70,90,95,300-700,702,5000\");\nrange.Add(701);\t\t\t\t\t\t\t// 40-70,90,95,300-702,5000\nrange.Add(1000,2000);\t\t\t\t\t// 40-70,90,95,300-702,1000-2000,5000\nrange.Remove(80,100);\t\t\t\t\t// 40-70,300-702,1000-2000,5000\nrange.Remove(1500);\t\t\t\t\t\t// 40-70,300-702,1000-1499,1501-2000,5000\n\nrange.Contains(500);\t\t\t\t\t// true;\nrange.Contains(800);\t\t\t\t\t// false;\n\nConsole.WriteLine(range.ToString());\t// 40-70,300-702,1000-1499,1501-2000,5000\n```\n\n## Performance\nInternally ranges are stored in a red black tree, the search time of red black trees is O(log n).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitvantage%2Fnumericrange","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbitvantage%2Fnumericrange","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbitvantage%2Fnumericrange/lists"}