{"id":18250370,"url":"https://github.com/qtle3/word_frequency","last_synced_at":"2025-04-08T20:27:28.301Z","repository":{"id":252179748,"uuid":"839665382","full_name":"qtle3/word_frequency","owner":"qtle3","description":"This Python script calculates and displays the frequency of words in a specified text file. It reads the contents of the file, counts the occurrences of each word, and then outputs the words sorted by their frequency.","archived":false,"fork":false,"pushed_at":"2024-08-10T04:25:13.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T16:01:53.090Z","etag":null,"topics":[],"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/qtle3.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-08-08T04:50:34.000Z","updated_at":"2024-08-10T23:59:57.000Z","dependencies_parsed_at":"2024-08-10T05:28:34.810Z","dependency_job_id":null,"html_url":"https://github.com/qtle3/word_frequency","commit_stats":null,"previous_names":["qtle3/word_frequency"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fword_frequency","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fword_frequency/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fword_frequency/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qtle3%2Fword_frequency/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qtle3","download_url":"https://codeload.github.com/qtle3/word_frequency/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247921508,"owners_count":21018609,"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":[],"created_at":"2024-11-05T09:44:30.525Z","updated_at":"2025-04-08T20:27:28.256Z","avatar_url":"https://github.com/qtle3.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Word Frequency Counter\n\nThis Python script calculates and displays the frequency of words in a specified text file. It reads the contents of the file, counts the occurrences of each word, and then outputs the words sorted by their frequency.\n\n## Key Concepts Covered\n\n- **File Handling**: The script demonstrates how to open, read, and process the contents of a text file using Python's built-in `open()` function.\n\n- **Word Counting**: The script counts the occurrences of each word in the text file and stores them in a dictionary, where the keys are the words and the values are their respective frequencies.\n\n- **Sorting**: The script sorts the words by their frequency using a custom sorting function (`byFreq`), making it easy to identify the most and least common words.\n\n- **Input Handling**: The script prompts the user to enter the name of the text file to be analyzed, ensuring flexibility in processing different files.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqtle3%2Fword_frequency","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqtle3%2Fword_frequency","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqtle3%2Fword_frequency/lists"}