{"id":16108711,"url":"https://github.com/aliosm/lines-counter","last_synced_at":"2025-08-31T11:35:06.281Z","repository":{"id":90007354,"uuid":"146501934","full_name":"AliOsm/lines-counter","owner":"AliOsm","description":"Count the number of lines in directory tree with specific files extensions","archived":false,"fork":false,"pushed_at":"2018-09-30T10:06:15.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T21:11:46.400Z","etag":null,"topics":["line-counter","tool"],"latest_commit_sha":null,"homepage":null,"language":"C++","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/AliOsm.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":"2018-08-28T20:17:29.000Z","updated_at":"2018-09-30T10:06:16.000Z","dependencies_parsed_at":"2023-05-30T22:00:15.354Z","dependency_job_id":null,"html_url":"https://github.com/AliOsm/lines-counter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AliOsm/lines-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Flines-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Flines-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Flines-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Flines-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliOsm","download_url":"https://codeload.github.com/AliOsm/lines-counter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliOsm%2Flines-counter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265089951,"owners_count":23709805,"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":["line-counter","tool"],"created_at":"2024-10-09T19:28:05.622Z","updated_at":"2025-07-13T04:37:40.800Z","avatar_url":"https://github.com/AliOsm.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lines-counter\nCount the number of lines in directory tree with specific files extensions\n\n## Why?\n\nI was trying to count how many lines I've written while solving competitive programming problems.\n\n## How to use it?\n\n- Compile `main.cpp` file with `gcc` or any other compiler.\n- Run the executable file with `FILE_NAME PATH EXT [EXT [EXT [...]]]`.\n- `PATH` should be a directory path.\n- `EXT` should be any file extension (without the dot `.`).\n\nExample run:\n\n```\n$ g++ main.cpp -o main\n\n$ ./main /home/aliosm/Repositories/CompetitiveProgramming cpp java\ncpp extension:\nNumber of files: 1101\nNumber of lines: 47863\n\njava extension:\nNumber of files: 1\nNumber of lines: 21\n\nTotal number of files is 1102\nTotal number of lines is 47884\n```\n\n## How it works?\n\nWhen you run the compiled file and give it the `PATH` argument with some `EXT`'s, the code will open the directory in `PATH` and using `BFS` algorithm, it will try to reach all files that end with any `EXT` in the current directory and all other directories inside it.\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/AliOsm/lines-counter.\n\n## License\nThe project is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliosm%2Flines-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliosm%2Flines-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliosm%2Flines-counter/lists"}