{"id":20024530,"url":"https://github.com/avifenesh/sortlogfiles","last_synced_at":"2025-03-02T04:19:41.812Z","repository":{"id":48603310,"uuid":"387143865","full_name":"avifenesh/sortLogFiles","owner":"avifenesh","description":"Algorithm for sorting multiple sorted log-files into one sorted log-file base on time-stamp","archived":false,"fork":false,"pushed_at":"2025-02-16T03:47:07.000Z","size":2090,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-16T04:21:49.748Z","etag":null,"topics":["algorithm","filesort","heapsort","log","logfiles","minheap","python","spacecomplexity","timecomplexity"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avifenesh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-07-18T10:02:58.000Z","updated_at":"2025-02-16T03:47:10.000Z","dependencies_parsed_at":"2025-02-16T04:30:10.370Z","dependency_job_id":null,"html_url":"https://github.com/avifenesh/sortLogFiles","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/avifenesh%2FsortLogFiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avifenesh%2FsortLogFiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avifenesh%2FsortLogFiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avifenesh%2FsortLogFiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avifenesh","download_url":"https://codeload.github.com/avifenesh/sortLogFiles/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241455957,"owners_count":19965740,"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":["algorithm","filesort","heapsort","log","logfiles","minheap","python","spacecomplexity","timecomplexity"],"created_at":"2024-11-13T08:50:55.908Z","updated_at":"2025-03-02T04:19:41.780Z","avatar_url":"https://github.com/avifenesh.png","language":"Python","readme":"# sortLogFiles\n## Algorithm for sort multiple sorted log-files into one sorted log-file base on time-stamp\n\nThe main idea behind the algorithm: \u003cbr /\u003e\nCreate objects from every file, every object contain the index of the current comparing line, time-stamp of the the line and path to the file. \u003cbr /\u003e\nCreate min heape base on time-stamp value and insert all the log-file objects. \u003cbr /\u003e\nThen pop the min and insert it to a new file.\u003cbr /\u003e\nAfter popping a line to the new file, get the next line of the file object and heapify the object to the right place base on the new time-stamp value.\u003cbr /\u003e\n\u003cbr /\u003e\n## How to use:\u003cbr /\u003e\nPull repo to your machine. \u003cbr /\u003e\nOpen command line and navigate to the repo directory. \u003cbr /\u003e\nWrite in the command line: python main.py -d [path-to-log-files]\u003cbr /\u003e\nIf the path containing white spaces encapsulate the path by quotation marks. \u003cbr /\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favifenesh%2Fsortlogfiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favifenesh%2Fsortlogfiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favifenesh%2Fsortlogfiles/lists"}