{"id":27548972,"url":"https://github.com/jhu-seclab-cobra/commons-value","last_synced_at":"2026-04-28T08:02:05.417Z","repository":{"id":288204242,"uuid":"966553969","full_name":"jhu-seclab-cobra/commons-value","owner":"jhu-seclab-cobra","description":"The Kotlin library for the basic union value system with serialization implementation for the COBRA platform ","archived":false,"fork":false,"pushed_at":"2026-04-13T19:49:20.000Z","size":302,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-13T21:36:39.791Z","etag":null,"topics":["java","kotlin","library","serialization-library","value"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jhu-seclab-cobra.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-15T05:24:27.000Z","updated_at":"2026-04-13T19:49:26.000Z","dependencies_parsed_at":"2025-04-19T04:39:14.976Z","dependency_job_id":null,"html_url":"https://github.com/jhu-seclab-cobra/commons-value","commit_stats":null,"previous_names":["jhu-seclab-cobra/commons-value"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jhu-seclab-cobra/commons-value","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhu-seclab-cobra%2Fcommons-value","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhu-seclab-cobra%2Fcommons-value/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhu-seclab-cobra%2Fcommons-value/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhu-seclab-cobra%2Fcommons-value/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jhu-seclab-cobra","download_url":"https://codeload.github.com/jhu-seclab-cobra/commons-value/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jhu-seclab-cobra%2Fcommons-value/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["java","kotlin","library","serialization-library","value"],"created_at":"2025-04-19T04:31:12.067Z","updated_at":"2026-04-28T08:02:05.309Z","avatar_url":"https://github.com/jhu-seclab-cobra.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# COBRA.COMMONS.VALUE\n\n\u003e Common value -- the intermediate representation that gives analysis modules a shared language.\n\nType-safe IR value system with serialization for the Cobra static analysis engine.\n\n[![Release](https://img.shields.io/badge/release-v0.1.0-blue.svg)](https://github.com/jhu-seclab-cobra/commons-value/releases/tag/v0.1.0)\n[![](https://jitpack.io/v/jhu-seclab-cobra/commons-value.svg)](https://jitpack.io/#jhu-seclab-cobra/commons-value)\n[![codecov](https://codecov.io/gh/jhu-seclab-cobra/commons-value/branch/main/graph/badge.svg)](https://codecov.io/gh/jhu-seclab-cobra/commons-value)\n[![license](https://img.shields.io/github/license/jhu-seclab-cobra/commons-value)](./LICENSE)\n![Kotlin JVM](https://img.shields.io/badge/Kotlin%20JVM-2.0.21%20%7C%20JVM%201.8%2B-blue?logo=kotlin)\n\n## Install\n\nJava 8+. Add the JitPack repository and dependency:\n\n```kotlin\nrepositories {\n    maven { url = uri(\"https://jitpack.io\") }\n}\n\ndependencies {\n    implementation(\"com.github.jhu-seclab-cobra:commons-value:v0.1.0\")\n}\n```\n\n## Usage\n\n```kotlin\nimport edu.jhu.cobra.commons.value.*\nimport edu.jhu.cobra.commons.value.serializer.*\n\nval map = MapVal(\"name\" to StrVal(\"Alice\"), \"age\" to IntVal(30L))\nval list = ListVal(StrVal(\"a\"), IntVal(1L), BoolVal.T)\nval range = RangeVal(1, 100)\n\nval serializer = DftByteArraySerializerImpl\nval bytes = serializer.serialize(map)\nval restored = serializer.deserialize(bytes) // MapVal\n```\n\n## API\n\n**Primitives** (`IPrimitiveVal`): `StrVal`, `IntVal`, `FloatVal`, `BoolVal`, `NullVal`, `Unsure` (`NumVal` is deprecated)\n\n**Collections** (`ICollectionVal`): `ListVal`, `SetVal`, `MapVal` (String keys), `RangeVal`\n\n**Serializers** (`IValSerializer\u003cMaterial : Any\u003e`): `DftByteArraySerializerImpl` (ByteArray), `DftByteBufferSerializerImpl` (ByteBuffer), `DftCharBufferSerializerImpl` (CharBuffer)\n\nFull type specifications and method details in [docs/design-primitive.md](./docs/design-primitive.md).\n\n## Documentation\n\n- [docs/idea.md](./docs/idea.md) -- concepts, terminology, and system role\n- [docs/design-primitive.md](./docs/design-primitive.md) -- primitive type specifications (IntVal, FloatVal, StrVal, BoolVal, NullVal, Unsure)\n- [docs/design-collection.md](./docs/design-collection.md) -- collection type specifications (ListVal, SetVal, MapVal, RangeVal)\n- [docs/design-serializer.md](./docs/design-serializer.md) -- serializer interface and implementations\n\n## For Agents\n\nAgent-consumable documentation index at [docs/llms.txt](./docs/llms.txt) (llmstxt.org format).\n\n## Citation\n\nIf you use this repository in your research, please cite our paper:\n\n```bibtex\n@inproceedings{xu2026cobra,\n  title     = {CoBrA: Context-, Branch-sensitive Static Analysis for Detecting Taint-style Vulnerabilities in PHP Web Applications},\n  author    = {Xu, Yichao and Kang, Mingqing and Thimmaiah, Neil and Gjomemo, Rigel and Venkatakrishnan, V. N. and Cao, Yinzhi},\n  booktitle = {Proceedings of the 48th IEEE/ACM International Conference on Software Engineering (ICSE)},\n  year      = {2026},\n  address   = {Rio de Janeiro, Brazil}\n}\n```\n\n## License\n\n[GPL-2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhu-seclab-cobra%2Fcommons-value","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjhu-seclab-cobra%2Fcommons-value","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjhu-seclab-cobra%2Fcommons-value/lists"}