{"id":18730123,"url":"https://github.com/brian-gates/song-generator","last_synced_at":"2025-08-23T03:44:24.160Z","repository":{"id":72084206,"uuid":"70764340","full_name":"brian-gates/song-generator","owner":"brian-gates","description":"Randomly generate songs for or against a candidate","archived":false,"fork":false,"pushed_at":"2016-10-13T21:40:53.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-04T21:19:09.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/brian-gates.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":"2016-10-13T03:11:58.000Z","updated_at":"2016-10-13T21:41:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"9127d1dd-ff15-47c5-b9fc-5124ef80afd6","html_url":"https://github.com/brian-gates/song-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brian-gates/song-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-gates%2Fsong-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-gates%2Fsong-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-gates%2Fsong-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-gates%2Fsong-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brian-gates","download_url":"https://codeload.github.com/brian-gates/song-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brian-gates%2Fsong-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271739786,"owners_count":24812634,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-07T14:36:10.402Z","updated_at":"2025-08-23T03:44:24.104Z","avatar_url":"https://github.com/brian-gates.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Example of the interface](http://i.imgur.com/wa6T4j4.png)\n\n1st place winner at https://github.com/neo4j-meetups/graph-hack-sfo-2016\n\n# Run it yourself\n\n## Prepare the Data\n\nInstall [Neo4j](https://neo4j.com/download/), then run the following queries.\n\nLoad the data:\n```\nLOAD CSV WITH HEADERS FROM \"https://raw.githubusercontent.com/fivethirtyeight/data/master/hip-hop-candidate-lyrics/genius_hip_hop_lyrics.csv\" AS row\nMERGE (c:Candidate {name: row.candidate})\nMERGE (a:Artist {name: row.artist})\nMERGE (s:Sentiment {type: row.sentiment})\nMERGE (t:Theme {type: row.theme})\nMERGE (song:Song {name: row.song})\nMERGE (line:Line {text: row.line})\nSET line.url = row.url\nMERGE (line)-[:MENTIONS]-\u003e(c)\nMERGE (line)-[:HAS_THEME]-\u003e(t)\nMERGE (line)-[:HAS_SENTIMENT]-\u003e(s)\nMERGE (song)-[:HAS_LINE]-\u003e(line)\nMERGE (a)-[r:PERFORMS]-\u003e(song)\nSET r.data = row.album_release_date\n```\n\nGet the last word of each line for rhyming.\n```\nmatch (n:Line)\nset n.lastWord = split(n.text, ' ')[-1..];\n```\n\nCreate relationships between lines based on their rhyming qualities.\n```\nmatch (line1:Line), (line2:Line)\nwhere line1 \u003c\u003e line2\nCALL apoc.text.phoneticDelta(line1.lastWord, line2.lastWord) yield phonetic1, phonetic2, delta\nMERGE (line1)-[r:phonetic]-\u003e(line2)\nset r.quality = delta\n```\n\nCreate a few indexes for performance\n```\ncreate index on :Candidate(name);\ncreate index on :Sentiment(type);\n```\n\n## Start the server\n\n```\nnode app.js\n```\n\nGo to http://localhost:3001\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrian-gates%2Fsong-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrian-gates%2Fsong-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrian-gates%2Fsong-generator/lists"}