{"id":26933538,"url":"https://github.com/dustwinter/spaceglider","last_synced_at":"2025-04-02T09:19:30.736Z","repository":{"id":269477906,"uuid":"905185068","full_name":"DustWinter/SpaceGlider","owner":"DustWinter","description":"Compression Tool","archived":false,"fork":false,"pushed_at":"2024-12-24T14:01:33.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T01:34:49.522Z","etag":null,"topics":["compress","compression","compression-algorithm","data-compression","data-compression-algorithms","java","loseless-compression"],"latest_commit_sha":null,"homepage":"","language":"Java","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/DustWinter.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":"2024-12-18T10:26:04.000Z","updated_at":"2024-12-24T14:01:37.000Z","dependencies_parsed_at":"2024-12-23T21:25:35.998Z","dependency_job_id":"efcf6bb8-7d76-496b-a726-eb2b38b69799","html_url":"https://github.com/DustWinter/SpaceGlider","commit_stats":null,"previous_names":["corruptedspring/spaceglider","elajbariyoussef/spaceglider","dustwinter/spaceglider"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DustWinter%2FSpaceGlider","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DustWinter%2FSpaceGlider/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DustWinter%2FSpaceGlider/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DustWinter%2FSpaceGlider/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DustWinter","download_url":"https://codeload.github.com/DustWinter/SpaceGlider/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246785456,"owners_count":20833498,"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":["compress","compression","compression-algorithm","data-compression","data-compression-algorithms","java","loseless-compression"],"created_at":"2025-04-02T09:19:30.148Z","updated_at":"2025-04-02T09:19:30.731Z","avatar_url":"https://github.com/DustWinter.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpaceGlider\n\nSpaceGlider is a file compression and decompression tool designed for text files. It uses a custom dictionary-based approach to compress files efficiently\n\n#\n\nTested on [enwik9](http://mattmahoney.net/dc/enwik9.zip) with a compression rate of 42.56% (size includes dictionnary generated).\n\n#\n\n## Features\n- Compresses text files using a word dictionary.\n- Orders dictionary entries by frequency.\n- Rewrites files with binary replacements for words.\n\n## Usage\n\n1. **Run the program:**\n   ```\n   java Main\n   ```\n\n2. **Enter the file path to compress when prompted.**\n\n3. **The program will generate the following files:**\n   - `\u003cinput_file\u003e_dict.dict`: The word dictionary.\n   - `\u003cinput_file\u003e_dict.dictsrt`: The sorted word dictionary.\n   - `compressedfile`: The compressed file.\n   - `decompressedfile`: The decompressed file.\n\n\n## Limitations\n- Made for files containing 270,549,120 words or less.\n\n## Main Functions\n\n### `createWordDictionary`\nCreates a word dictionary from the input file, counting the frequency of each word.\n\n### `orderLinesByValue`\nOrders the dictionary entries by their frequency in descending order.\n\n### `rewriteFileWithBinaryReplacement`\nRewrites the input file using binary replacements for words based on the dictionary.\n\n### `revertCompressedFile`\nReverts the compressed file back to its original form using the dictionary.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustwinter%2Fspaceglider","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdustwinter%2Fspaceglider","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustwinter%2Fspaceglider/lists"}