GitHub PullRequestEvent at 2014-04-21 17:08:32
Repository: factorie
Actor: Craigacp
Payload: {"action":"opened","number":146,"pull_request":{"url":"https://api.github.com/repos/factorie/factorie/pulls/146","id":14973891,"html_url":"https://github.com/factorie/factorie/pull/146","diff_url":"https://github.com/factorie/factorie/pull/146.diff","patch_url":"https://github.com/factorie/factorie/pull/146.patch","issue_url":"https://api.github.com/repos/factorie/factorie/issues/146","number":146,"state":"open","title":"Fixed a missing type parameter in DiscreteSeqVar.value.","user":{"login":"Craigacp","id":729696,"avatar_url":"https://avatars.githubusercontent.com/u/729696?","gravatar_id":"fba4bccaf560e9567682391fdd127cd3","url":"https://api.github.com/users/Craigacp","html_url":"https://github.com/Craigacp","followers_url":"https://api.github.com/users/Craigacp/followers","following_url":"https://api.github.com/users/Craigacp/following{/other_user}","gists_url":"https://api.github.com/users/Craigacp/gists{/gist_id}","starred_url":"https://api.github.com/users/Craigacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Craigacp/subscriptions","organizations_url":"https://api.github.com/users/Craigacp/orgs","repos_url":"https://api.github.com/users/Craigacp/repos","events_url":"https://api.github.com/users/Craigacp/events{/privacy}","received_events_url":"https://api.github.com/users/Craigacp/received_events","type":"User","site_admin":false},"body":"I get this stack trace when using a for loop over the words in an LDA document (for (word <- doc.ws)).\r\n\r\njava.lang.ClassCastException: cc.factorie.variable.MutableDiscreteSeqVar$$anon$2 cannot be cast to scala.runtime.Nothing$\r\n\tat cc.factorie.variable.MutableDiscreteSeqVar$class.value(DiscreteSeqVariable.scala:57)\r\n\tat cc.factorie.variable.CategoricalSeqVariable.value(CategoricalSeqVariable.scala:52)\r\n\tat cc.factorie.variable.CategoricalSeqVariable.value(CategoricalSeqVariable.scala:52)\r\n\tat cc.factorie.variable.SeqSimilar$class.foreach(SeqVariable.scala:45)\r\n\tat cc.factorie.variable.CategoricalSeqVariable.foreach(CategoricalSeqVariable.scala:52)\r\n\r\nAdding the type parameter to the asInstanceOf fixed it. I'm not sure what asInstanceOf is supposed to do without a type parameter.","created_at":"2014-04-21T17:08:31Z","updated_at":"2014-04-21T17:08:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/factorie/factorie/pulls/146/commits","review_comments_url":"https://api.github.com/repos/factorie/factorie/pulls/146/comments","review_comment_url":"https://api.github.com/repos/factorie/factorie/pulls/comments/{number}","comments_url":"https://api.github.com/repos/factorie/factorie/issues/146/comments","statuses_url":"https://api.github.com/repos/factorie/factorie/statuses/13bb23d7020473d30f3599556eb7ffdbee4eeb2e","head":{"label":"Craigacp:master","ref":"master","sha":"13bb23d7020473d30f3599556eb7ffdbee4eeb2e","user":{"login":"Craigacp","id":729696,"avatar_url":"https://avatars.githubusercontent.com/u/729696?","gravatar_id":"fba4bccaf560e9567682391fdd127cd3","url":"https://api.github.com/users/Craigacp","html_url":"https://github.com/Craigacp","followers_url":"https://api.github.com/users/Craigacp/followers","following_url":"https://api.github.com/users/Craigacp/following{/other_user}","gists_url":"https://api.github.com/users/Craigacp/gists{/gist_id}","starred_url":"https://api.github.com/users/Craigacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Craigacp/subscriptions","organizations_url":"https://api.github.com/users/Craigacp/orgs","repos_url":"https://api.github.com/users/Craigacp/repos","events_url":"https://api.github.com/users/Craigacp/events{/privacy}","received_events_url":"https://api.github.com/users/Craigacp/received_events","type":"User","site_admin":false},"repo":{"id":17960617,"name":"factorie","full_name":"Craigacp/factorie","owner":{"login":"Craigacp","id":729696,"avatar_url":"https://avatars.githubusercontent.com/u/729696?","gravatar_id":"fba4bccaf560e9567682391fdd127cd3","url":"https://api.github.com/users/Craigacp","html_url":"https://github.com/Craigacp","followers_url":"https://api.github.com/users/Craigacp/followers","following_url":"https://api.github.com/users/Craigacp/following{/other_user}","gists_url":"https://api.github.com/users/Craigacp/gists{/gist_id}","starred_url":"https://api.github.com/users/Craigacp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Craigacp/subscriptions","organizations_url":"https://api.github.com/users/Craigacp/orgs","repos_url":"https://api.github.com/users/Craigacp/repos","events_url":"https://api.github.com/users/Craigacp/events{/privacy}","received_events_url":"https://api.github.com/users/Craigacp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Craigacp/factorie","description":"FACTORIE is a toolkit for deployable probabilistic modeling, implemented as a software library in Scala. It provides its users with a succinct language for creating relational factor graphs, estimating parameters and performing inference.","fork":true,"url":"https://api.github.com/repos/Craigacp/factorie","forks_url":"https://api.github.com/repos/Craigacp/factorie/forks","keys_url":"https://api.github.com/repos/Craigacp/factorie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Craigacp/factorie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Craigacp/factorie/teams","hooks_url":"https://api.github.com/repos/Craigacp/factorie/hooks","issue_events_url":"https://api.github.com/repos/Craigacp/factorie/issues/events{/number}","events_url":"https://api.github.com/repos/Craigacp/factorie/events","assignees_url":"https://api.github.com/repos/Craigacp/factorie/assignees{/user}","branches_url":"https://api.github.com/repos/Craigacp/factorie/branches{/branch}","tags_url":"https://api.github.com/repos/Craigacp/factorie/tags","blobs_url":"https://api.github.com/repos/Craigacp/factorie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Craigacp/factorie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Craigacp/factorie/git/refs{/sha}","trees_url":"https://api.github.com/repos/Craigacp/factorie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Craigacp/factorie/statuses/{sha}","languages_url":"https://api.github.com/repos/Craigacp/factorie/languages","stargazers_url":"https://api.github.com/repos/Craigacp/factorie/stargazers","contributors_url":"https://api.github.com/repos/Craigacp/factorie/contributors","subscribers_url":"https://api.github.com/repos/Craigacp/factorie/subscribers","subscription_url":"https://api.github.com/repos/Craigacp/factorie/subscription","commits_url":"https://api.github.com/repos/Craigacp/factorie/commits{/sha}","git_commits_url":"https://api.github.com/repos/Craigacp/factorie/git/commits{/sha}","comments_url":"https://api.github.com/repos/Craigacp/factorie/comments{/number}","issue_comment_url":"https://api.github.com/repos/Craigacp/factorie/issues/comments/{number}","contents_url":"https://api.github.com/repos/Craigacp/factorie/contents/{+path}","compare_url":"https://api.github.com/repos/Craigacp/factorie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Craigacp/factorie/merges","archive_url":"https://api.github.com/repos/Craigacp/factorie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Craigacp/factorie/downloads","issues_url":"https://api.github.com/repos/Craigacp/factorie/issues{/number}","pulls_url":"https://api.github.com/repos/Craigacp/factorie/pulls{/number}","milestones_url":"https://api.github.com/repos/Craigacp/factorie/milestones{/number}","notifications_url":"https://api.github.com/repos/Craigacp/factorie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Craigacp/factorie/labels{/name}","releases_url":"https://api.github.com/repos/Craigacp/factorie/releases{/id}","created_at":"2014-03-20T22:24:44Z","updated_at":"2014-04-21T17:08:31Z","pushed_at":"2014-04-21T17:03:38Z","git_url":"git://github.com/Craigacp/factorie.git","ssh_url":"git@github.com:Craigacp/factorie.git","clone_url":"https://github.com/Craigacp/factorie.git","svn_url":"https://github.com/Craigacp/factorie","homepage":null,"size":37244,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"factorie:master","ref":"master","sha":"ebd1c7cd9991c244342c40644f653beddb4c4a13","user":{"login":"factorie","id":4682625,"avatar_url":"https://avatars.githubusercontent.com/u/4682625?","gravatar_id":null,"url":"https://api.github.com/users/factorie","html_url":"https://github.com/factorie","followers_url":"https://api.github.com/users/factorie/followers","following_url":"https://api.github.com/users/factorie/following{/other_user}","gists_url":"https://api.github.com/users/factorie/gists{/gist_id}","starred_url":"https://api.github.com/users/factorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/factorie/subscriptions","organizations_url":"https://api.github.com/users/factorie/orgs","repos_url":"https://api.github.com/users/factorie/repos","events_url":"https://api.github.com/users/factorie/events{/privacy}","received_events_url":"https://api.github.com/users/factorie/received_events","type":"Organization","site_admin":false},"repo":{"id":10924885,"name":"factorie","full_name":"factorie/factorie","owner":{"login":"factorie","id":4682625,"avatar_url":"https://avatars.githubusercontent.com/u/4682625?","gravatar_id":null,"url":"https://api.github.com/users/factorie","html_url":"https://github.com/factorie","followers_url":"https://api.github.com/users/factorie/followers","following_url":"https://api.github.com/users/factorie/following{/other_user}","gists_url":"https://api.github.com/users/factorie/gists{/gist_id}","starred_url":"https://api.github.com/users/factorie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/factorie/subscriptions","organizations_url":"https://api.github.com/users/factorie/orgs","repos_url":"https://api.github.com/users/factorie/repos","events_url":"https://api.github.com/users/factorie/events{/privacy}","received_events_url":"https://api.github.com/users/factorie/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/factorie/factorie","description":"FACTORIE is a toolkit for deployable probabilistic modeling, implemented as a software library in Scala. It provides its users with a succinct language for creating relational factor graphs, estimating parameters and performing inference.","fork":false,"url":"https://api.github.com/repos/factorie/factorie","forks_url":"https://api.github.com/repos/factorie/factorie/forks","keys_url":"https://api.github.com/repos/factorie/factorie/keys{/key_id}","collaborators_url":"https://api.github.com/repos/factorie/factorie/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/factorie/factorie/teams","hooks_url":"https://api.github.com/repos/factorie/factorie/hooks","issue_events_url":"https://api.github.com/repos/factorie/factorie/issues/events{/number}","events_url":"https://api.github.com/repos/factorie/factorie/events","assignees_url":"https://api.github.com/repos/factorie/factorie/assignees{/user}","branches_url":"https://api.github.com/repos/factorie/factorie/branches{/branch}","tags_url":"https://api.github.com/repos/factorie/factorie/tags","blobs_url":"https://api.github.com/repos/factorie/factorie/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/factorie/factorie/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/factorie/factorie/git/refs{/sha}","trees_url":"https://api.github.com/repos/factorie/factorie/git/trees{/sha}","statuses_url":"https://api.github.com/repos/factorie/factorie/statuses/{sha}","languages_url":"https://api.github.com/repos/factorie/factorie/languages","stargazers_url":"https://api.github.com/repos/factorie/factorie/stargazers","contributors_url":"https://api.github.com/repos/factorie/factorie/contributors","subscribers_url":"https://api.github.com/repos/factorie/factorie/subscribers","subscription_url":"https://api.github.com/repos/factorie/factorie/subscription","commits_url":"https://api.github.com/repos/factorie/factorie/commits{/sha}","git_commits_url":"https://api.github.com/repos/factorie/factorie/git/commits{/sha}","comments_url":"https://api.github.com/repos/factorie/factorie/comments{/number}","issue_comment_url":"https://api.github.com/repos/factorie/factorie/issues/comments/{number}","contents_url":"https://api.github.com/repos/factorie/factorie/contents/{+path}","compare_url":"https://api.github.com/repos/factorie/factorie/compare/{base}...{head}","merges_url":"https://api.github.com/repos/factorie/factorie/merges","archive_url":"https://api.github.com/repos/factorie/factorie/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/factorie/factorie/downloads","issues_url":"https://api.github.com/repos/factorie/factorie/issues{/number}","pulls_url":"https://api.github.com/repos/factorie/factorie/pulls{/number}","milestones_url":"https://api.github.com/repos/factorie/factorie/milestones{/number}","notifications_url":"https://api.github.com/repos/factorie/factorie/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/factorie/factorie/labels{/name}","releases_url":"https://api.github.com/repos/factorie/factorie/releases{/id}","created_at":"2013-06-25T01:21:29Z","updated_at":"2014-04-18T02:40:59Z","pushed_at":"2014-04-18T02:40:59Z","git_url":"git://github.com/factorie/factorie.git","ssh_url":"git@github.com:factorie/factorie.git","clone_url":"https://github.com/factorie/factorie.git","svn_url":"https://github.com/factorie/factorie","homepage":null,"size":41686,"stargazers_count":154,"watchers_count":154,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":46,"mirror_url":null,"open_issues_count":17,"forks":46,"open_issues":17,"watchers":154,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/factorie/factorie/pulls/146"},"html":{"href":"https://github.com/factorie/factorie/pull/146"},"issue":{"href":"https://api.github.com/repos/factorie/factorie/issues/146"},"comments":{"href":"https://api.github.com/repos/factorie/factorie/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/factorie/factorie/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/factorie/factorie/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/factorie/factorie/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/factorie/factorie/statuses/13bb23d7020473d30f3599556eb7ffdbee4eeb2e"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}