{"id":19487234,"url":"https://github.com/brudgers/clojure-data-in","last_synced_at":"2025-02-25T18:45:36.830Z","repository":{"id":28575732,"uuid":"32093575","full_name":"brudgers/clojure-data-in","owner":"brudgers","description":null,"archived":false,"fork":false,"pushed_at":"2015-03-12T18:17:12.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T08:17:05.144Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brudgers.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}},"created_at":"2015-03-12T18:13:51.000Z","updated_at":"2015-03-12T18:17:12.000Z","dependencies_parsed_at":"2022-09-03T09:12:05.569Z","dependency_job_id":null,"html_url":"https://github.com/brudgers/clojure-data-in","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brudgers%2Fclojure-data-in","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brudgers%2Fclojure-data-in/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brudgers%2Fclojure-data-in/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brudgers%2Fclojure-data-in/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brudgers","download_url":"https://codeload.github.com/brudgers/clojure-data-in/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240728760,"owners_count":19848115,"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-11-10T20:44:46.381Z","updated_at":"2025-02-25T18:45:36.804Z","avatar_url":"https://github.com/brudgers.png","language":"Clojure","readme":"# Introduction to data-in\nThe purpose of `data-in` is to read all the lines from a text file and return the file's contents as a Clojure value in a standardized manner.\n\n# Specification\n###Takes:\n  + `Filename`\n\n###Assumes:\n  + a space delimited text file\n\n###Returns:\n  + Vector **[L\u003csub\u003e1\u003c/sub\u003e,L\u003csub\u003e2\u003c/sub\u003e,...L\u003csub\u003en\u003c/sub\u003e]** where **L\u003csub\u003ei\u003c/sub\u003e**:\n    + represents a line in `Filename`\n\t+ is a vector\n\t+ contains EDN values\n\n# Example:\nIf `my-file.txt` contains:\n\n    3 9\n    5 4\n    6 5\n    3 2\n\nthen `(data-in \"./my-file.txt\")` returns:\n\n`[[3 9] [5 4] [6 5] [3 2]]`\n\n# Comments\nTo avoid executing arbitrary code, `data-in` reads values from files with `clojure.edn/read-string`.\n\nThe input is not read lazily.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrudgers%2Fclojure-data-in","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrudgers%2Fclojure-data-in","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrudgers%2Fclojure-data-in/lists"}