{"id":21335003,"url":"https://github.com/manasesjesus/csv-code-challenge","last_synced_at":"2026-02-03T10:01:00.421Z","repository":{"id":109053032,"uuid":"142314762","full_name":"manasesjesus/csv-code-challenge","owner":"manasesjesus","description":"CSV file code challenge","archived":false,"fork":false,"pushed_at":"2022-07-29T13:40:29.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-12T12:43:55.431Z","etag":null,"topics":["code-challenge","csv","csv-parser","csv-reader"],"latest_commit_sha":null,"homepage":"https://manasesjesus.github.io/csv-code-challenge","language":"JavaScript","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/manasesjesus.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,"zenodo":null}},"created_at":"2018-07-25T14:53:39.000Z","updated_at":"2023-01-03T10:23:50.000Z","dependencies_parsed_at":"2023-03-09T21:30:44.071Z","dependency_job_id":null,"html_url":"https://github.com/manasesjesus/csv-code-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/manasesjesus/csv-code-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manasesjesus%2Fcsv-code-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manasesjesus%2Fcsv-code-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manasesjesus%2Fcsv-code-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manasesjesus%2Fcsv-code-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manasesjesus","download_url":"https://codeload.github.com/manasesjesus/csv-code-challenge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manasesjesus%2Fcsv-code-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29040718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T09:57:37.951Z","status":"ssl_error","status_checked_at":"2026-02-03T09:55:14.920Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["code-challenge","csv","csv-parser","csv-reader"],"created_at":"2024-11-21T23:37:16.124Z","updated_at":"2026-02-03T10:01:00.414Z","avatar_url":"https://github.com/manasesjesus.png","language":"JavaScript","readme":"## JavaScript / HTML :: CSV File Code Challenge\n\nWrite a JavaScript / HTML program that lets the user open a CSV file from disk, displays it in a text box, processes it, and displays the output in another text box.\n\nTo read the input: The CSV file basically contains a 2D matrix of numbers, where each line holds a single row, e.g.: `2\u003cdelim\u003e4\u003cdelim\u003e99\u003cdelim\u003e\\n`. The delimiter can be either space or a single comma (‘,’). Write the output in the same format as the input.\n\nOnce the input data is read, your application should perform filtering of “bad” values. Any entry of the matrix is “bad” when it has a value of 0 (zero). The application should now replace these bad values and compute the true value by interpolating it from the surrounding values, i.e., from the spatial neighbors of the entry in the matrix.\nWrite the matrix with the replaced values to the output text field.\n\n## Solution\nThe file is read and processed using the FileReader functions. It separates the CSV headings from the values and process them. Everything gets stored in the textareas and the matrix (two-dimensional dynamic array).\n\nTo process the bad values, it searches for close good neighbors (west, east, north, south). If not close neighbors are found, it uses the Tesseract to find a further neighbor.\n\n## Example\n\n\u003cimg width=\"374\" alt=\"example\" src=\"https://user-images.githubusercontent.com/24204142/181771950-f2a530ad-8cb8-4798-8325-aac8a8bbe785.png\"\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanasesjesus%2Fcsv-code-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanasesjesus%2Fcsv-code-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanasesjesus%2Fcsv-code-challenge/lists"}