{"id":21869908,"url":"https://github.com/miyako/loc","last_synced_at":"2026-05-18T11:34:04.599Z","repository":{"id":263713164,"uuid":"891231784","full_name":"miyako/loc","owner":"miyako","description":"\"lines of code\" for 4D","archived":false,"fork":false,"pushed_at":"2025-05-15T00:48:02.000Z","size":12187,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-15T01:36:49.036Z","etag":null,"topics":["4d-class","4d-component"],"latest_commit_sha":null,"homepage":"https://miyako.github.io/loc/","language":"4D","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/miyako.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}},"created_at":"2024-11-20T00:52:06.000Z","updated_at":"2025-05-15T00:47:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"4eb208b5-1e6b-4a28-b028-75fdea338223","html_url":"https://github.com/miyako/loc","commit_stats":null,"previous_names":["miyako/loc"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/miyako/loc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Floc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Floc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Floc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Floc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/miyako","download_url":"https://codeload.github.com/miyako/loc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/miyako%2Floc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33177027,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["4d-class","4d-component"],"created_at":"2024-11-28T06:09:39.690Z","updated_at":"2026-05-18T11:33:59.589Z","avatar_url":"https://github.com/miyako.png","language":"4D","funding_links":[],"categories":[],"sub_categories":[],"readme":"![version](https://img.shields.io/badge/version-20%2B-E23089)\n![platform](https://img.shields.io/static/v1?label=platform\u0026message=mac-intel%20|%20mac-arm%20|%20win-64\u0026color=blue)\n[![license](https://img.shields.io/github/license/miyako/loc)](LICENSE)\n![downloads](https://img.shields.io/github/downloads/miyako/loc/total)\n\n# loc\n\"lines of code\" for 4D\n\n## dependencies.json\n\n ```json\n{\n\t\"dependencies\": {\n\t\t\"loc\": {\n\t\t\t\"github\": \"miyako/loc\",\n\t\t\t\"version\": \"latest\"\n\t\t}\n\t}\n}\n```\n\n## macOS (`wc -l`)\n\n\u003cimg src=\"https://github.com/user-attachments/assets/10c42ee4-4ca2-4874-952c-d329f8c04cd9\" width=600 height=auto /\u003e\n\n## Windows (`findstr /r/n/s \"^\"` + `find /c \":\"`)\n\n\u003cimg src=\"https://github.com/user-attachments/assets/5cd9f418-9bfd-43d7-8a3f-765e002f5fb2\" width=600 height=auto /\u003e\n\n### remarks\n\nthe last line of a `.4dm` typically doesn't end with `\\n` or `\\r\\n`. this has an impact on how lines are counted on each platform.\n\n* on Mac the final line is excluded regardless of its content.  \n* on Windows, the final line is excluded except for the last file in a directory. this is because all files in a directory and its subdirectories are evidently concatenated before processing, which means the first line of a file is added to the last line of the previous file in sequence.\n\n```\nTEST_form.4dm:1://%attributes = {}\nTEST_form.4dm:2:#DECLARE($params : Object)\nTEST_form.4dm:3:If (Count parameters:C259=0)\nTEST_form.4dm:4:        CALL WORKER:C1389(1; Current method name:C684; {})\nTEST_form.4dm:5:Else\nTEST_form.4dm:6:        $form:=cs:C1710._locForm.new()\nTEST_form.4dm:7:End if TEST_sync.4dm:1://%attributes = {}\nTEST_sync.4dm:2:#DECLARE($params : Object)\n```\n\nin this example, the line count from each file totals `7`+`2`=`9`, but the command reports `8`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2Floc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiyako%2Floc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiyako%2Floc/lists"}