{"id":25120581,"url":"https://github.com/yo35/code-stat","last_synced_at":"2025-09-22T03:48:23.432Z","repository":{"id":159854972,"uuid":"609884061","full_name":"yo35/code-stat","owner":"yo35","description":"Count the number of code lines and comment lines on a set of source code files, and report the result.","archived":false,"fork":false,"pushed_at":"2025-01-01T10:24:34.000Z","size":99,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T14:51:45.408Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yo35.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}},"created_at":"2023-03-05T14:30:45.000Z","updated_at":"2025-01-01T10:24:38.000Z","dependencies_parsed_at":"2023-05-03T02:32:17.282Z","dependency_job_id":"542b2644-3cf2-4aa1-a002-b1bbee0f481e","html_url":"https://github.com/yo35/code-stat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yo35/code-stat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yo35%2Fcode-stat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yo35%2Fcode-stat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yo35%2Fcode-stat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yo35%2Fcode-stat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yo35","download_url":"https://codeload.github.com/yo35/code-stat/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yo35%2Fcode-stat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276342531,"owners_count":25625581,"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","status":"online","status_checked_at":"2025-09-22T02:00:08.972Z","response_time":79,"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":[],"created_at":"2025-02-08T05:32:11.555Z","updated_at":"2025-09-22T03:48:23.390Z","avatar_url":"https://github.com/yo35.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Code Stat\n=========\n\nCount the number of code lines and comment lines on a set of source code files, and report the result.\n\n[![Run tests](https://github.com/yo35/code-stat/actions/workflows/main.yml/badge.svg)](https://github.com/yo35/code-stat/actions/workflows/main.yml)\n\n\nInstall\n-------\n\nJust download [code-stat.py](code-stat.py). No extra package/file/dependency/stuff/... is required.\n\n\nUsage\n-----\n\n```\npython3 code-stat.py \u003cfile-or-folder-1\u003e [\u003cfile-or-folder-2\u003e [\u003cfile-or-folder-3\u003e ...]]\n```\n\nCount the number of source code files passed in argument of the script, and the number of code lines\nand comment lines they contain. If a folder is passed in argument of the script, all its content is\nanalyzed, including recursively the content of its child folders, grandchild folders, etc...\n\n\nSupported languages\n-------------------\n\nLanguage          | File extensions\n------------------|----------------\nC/C++             | `.c` `.cpp` `.cxx` `.cc` `.h` `.hpp` `.hxx` `.hh`\nC#                | `.cs`\nCSS               | `.css`\nCUDA              | `.cu` `.cuh`\nFortran 90        | `.f90`\nJava              | `.java`\nJavaScript        | `.js` `.jsx` `.cjs` `.mjs`\nKotlin            | `.kt`\nPascal            | `.pas`\nPHP               | `.php`\nPython            | `.py`\nSQL               | `.sql`\nTypeScript        | `.ts` `.tsx` `.cts` `.mts`\nUnix shell script | `.sh` `.bash` `.csh` `.ksh` `.zsh`\n\nOnly files having one of the above-mentionned extensions are analyzed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyo35%2Fcode-stat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyo35%2Fcode-stat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyo35%2Fcode-stat/lists"}