{"id":16932163,"url":"https://github.com/pyvesb/file-partitioner","last_synced_at":"2025-03-21T03:40:48.013Z","repository":{"id":146078457,"uuid":"60431143","full_name":"PyvesB/file-partitioner","owner":"PyvesB","description":":scissors: Simple C++ program to perform line-based partitioning of files.","archived":false,"fork":false,"pushed_at":"2017-04-14T18:45:28.000Z","size":16,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T00:17:42.106Z","etag":null,"topics":["c-plus-plus","file-parser","partitioning"],"latest_commit_sha":null,"homepage":"","language":"C++","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/PyvesB.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":"2016-06-04T21:34:06.000Z","updated_at":"2024-07-22T15:15:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"09c2df3a-9aff-4190-803b-e527d494d306","html_url":"https://github.com/PyvesB/file-partitioner","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/PyvesB%2Ffile-partitioner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyvesB%2Ffile-partitioner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyvesB%2Ffile-partitioner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyvesB%2Ffile-partitioner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PyvesB","download_url":"https://codeload.github.com/PyvesB/file-partitioner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244734087,"owners_count":20501014,"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":["c-plus-plus","file-parser","partitioning"],"created_at":"2024-10-13T20:45:45.206Z","updated_at":"2025-03-21T03:40:47.536Z","avatar_url":"https://github.com/PyvesB.png","language":"C++","readme":"# FilePartitioner\nA simple C++ program to perform line-based partitioning of files. Nothing fancy, but does the job just fine and supports several options detailed below! The header file *FilePartitioner.hpp* contains all the partitioning functions, the source file *main.cpp* is just a small wrapper to parse command line input. The program was tested on Linux with GCC 5.4 and Windows with MinGW 5.3.\n\nYou can compile the program with a command similar to the following:\n```\ng++ -std=c++11 -O3 -o FilePartitioner src/main.cpp src/FilePartitioner.hpp\n```\n\n### Program parameters\nOnce compiled, the input of the program must have the following form: \n```\nfile-location destination-folder partitioning-mode number-of-partitions\n```\n\n* *file-location*: location of the file to partition. Any line-based text file will work (.txt files, .csv files, etc.).\n* *destination-folder*: must point to an existing folder in your file system; the output files will have the same name as the input one, with an additional suffix corresponding to the partition number.\n* *partitioning-mode*\n  * *rr* for round-robin partitioning, each partition receives a line from the input file in turn.\n  * *ln* for linear partitioning, each partition receives one chunk of the input file.\n   * *rd* for random partitioning, each partition receives randomly selected lines from the input file (will most likely not give equally sized partitions).\n* *number-of-partitions*: number of partitions to create from the input file.\n\nFor instance, on Linux:\n```\n./FilePartitioner data/myFile.csv data/ rr 8\n```\n\nHave fun partitioning your files!\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyvesb%2Ffile-partitioner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyvesb%2Ffile-partitioner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyvesb%2Ffile-partitioner/lists"}