{"action":"opened","number":61,"pull_request":{"url":"https://api.github.com/repos/yasserg/crawler4j/pulls/61","id":35844263,"html_url":"https://github.com/yasserg/crawler4j/pull/61","diff_url":"https://github.com/yasserg/crawler4j/pull/61.diff","patch_url":"https://github.com/yasserg/crawler4j/pull/61.patch","issue_url":"https://api.github.com/repos/yasserg/crawler4j/issues/61","number":61,"state":"open","locked":false,"title":"Allow negative priorities","user":{"login":"MadEgg","id":1172291,"avatar_url":"https://avatars.githubusercontent.com/u/1172291?v=3","gravatar_id":"","url":"https://api.github.com/users/MadEgg","html_url":"https://github.com/MadEgg","followers_url":"https://api.github.com/users/MadEgg/followers","following_url":"https://api.github.com/users/MadEgg/following{/other_user}","gists_url":"https://api.github.com/users/MadEgg/gists{/gist_id}","starred_url":"https://api.github.com/users/MadEgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadEgg/subscriptions","organizations_url":"https://api.github.com/users/MadEgg/orgs","repos_url":"https://api.github.com/users/MadEgg/repos","events_url":"https://api.github.com/users/MadEgg/events{/privacy}","received_events_url":"https://api.github.com/users/MadEgg/received_events","type":"User","site_admin":false},"body":"Note: I recently discovered that you moved from google code to Github. I've been using and modifying crawlerj4 for a while now and now I'm able to submit pull requests to allow you to merge them. I rebased all my (relevant) patches on the new master, so they should be easy to merge. I hope you consider some or all of them useful.\r\n\r\nDescription of this patch:\r\nFix ordering of urls in workqueues when priorities < 0 are used. Because the ordering is done strictly binary, negative values will come last, because their binary representation starts with the MSB at 1. In order to fix this, we'll have to add the minimum byte value to become 0. This means that the maximum number will become out of range in Byte-value, but the integer value is nicely converted down to the actual binary representation that is useful here.\r\n\r\nYou can set priority when adding a seed by using the new variant of addSeed with a third parameter that is the priority.","created_at":"2015-05-20T15:29:41Z","updated_at":"2015-05-20T15:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yasserg/crawler4j/pulls/61/commits","review_comments_url":"https://api.github.com/repos/yasserg/crawler4j/pulls/61/comments","review_comment_url":"https://api.github.com/repos/yasserg/crawler4j/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yasserg/crawler4j/issues/61/comments","statuses_url":"https://api.github.com/repos/yasserg/crawler4j/statuses/ecfda48ab0f0b6281ba091e90bf8f5fd50918919","head":{"label":"MadEgg:negative-priorities","ref":"negative-priorities","sha":"ecfda48ab0f0b6281ba091e90bf8f5fd50918919","user":{"login":"MadEgg","id":1172291,"avatar_url":"https://avatars.githubusercontent.com/u/1172291?v=3","gravatar_id":"","url":"https://api.github.com/users/MadEgg","html_url":"https://github.com/MadEgg","followers_url":"https://api.github.com/users/MadEgg/followers","following_url":"https://api.github.com/users/MadEgg/following{/other_user}","gists_url":"https://api.github.com/users/MadEgg/gists{/gist_id}","starred_url":"https://api.github.com/users/MadEgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadEgg/subscriptions","organizations_url":"https://api.github.com/users/MadEgg/orgs","repos_url":"https://api.github.com/users/MadEgg/repos","events_url":"https://api.github.com/users/MadEgg/events{/privacy}","received_events_url":"https://api.github.com/users/MadEgg/received_events","type":"User","site_admin":false},"repo":{"id":32808910,"name":"crawler4j","full_name":"MadEgg/crawler4j","owner":{"login":"MadEgg","id":1172291,"avatar_url":"https://avatars.githubusercontent.com/u/1172291?v=3","gravatar_id":"","url":"https://api.github.com/users/MadEgg","html_url":"https://github.com/MadEgg","followers_url":"https://api.github.com/users/MadEgg/followers","following_url":"https://api.github.com/users/MadEgg/following{/other_user}","gists_url":"https://api.github.com/users/MadEgg/gists{/gist_id}","starred_url":"https://api.github.com/users/MadEgg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadEgg/subscriptions","organizations_url":"https://api.github.com/users/MadEgg/orgs","repos_url":"https://api.github.com/users/MadEgg/repos","events_url":"https://api.github.com/users/MadEgg/events{/privacy}","received_events_url":"https://api.github.com/users/MadEgg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MadEgg/crawler4j","description":"Open Source Web Crawler for Java","fork":true,"url":"https://api.github.com/repos/MadEgg/crawler4j","forks_url":"https://api.github.com/repos/MadEgg/crawler4j/forks","keys_url":"https://api.github.com/repos/MadEgg/crawler4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MadEgg/crawler4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MadEgg/crawler4j/teams","hooks_url":"https://api.github.com/repos/MadEgg/crawler4j/hooks","issue_events_url":"https://api.github.com/repos/MadEgg/crawler4j/issues/events{/number}","events_url":"https://api.github.com/repos/MadEgg/crawler4j/events","assignees_url":"https://api.github.com/repos/MadEgg/crawler4j/assignees{/user}","branches_url":"https://api.github.com/repos/MadEgg/crawler4j/branches{/branch}","tags_url":"https://api.github.com/repos/MadEgg/crawler4j/tags","blobs_url":"https://api.github.com/repos/MadEgg/crawler4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MadEgg/crawler4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MadEgg/crawler4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/MadEgg/crawler4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MadEgg/crawler4j/statuses/{sha}","languages_url":"https://api.github.com/repos/MadEgg/crawler4j/languages","stargazers_url":"https://api.github.com/repos/MadEgg/crawler4j/stargazers","contributors_url":"https://api.github.com/repos/MadEgg/crawler4j/contributors","subscribers_url":"https://api.github.com/repos/MadEgg/crawler4j/subscribers","subscription_url":"https://api.github.com/repos/MadEgg/crawler4j/subscription","commits_url":"https://api.github.com/repos/MadEgg/crawler4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/MadEgg/crawler4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/MadEgg/crawler4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/MadEgg/crawler4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/MadEgg/crawler4j/contents/{+path}","compare_url":"https://api.github.com/repos/MadEgg/crawler4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MadEgg/crawler4j/merges","archive_url":"https://api.github.com/repos/MadEgg/crawler4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MadEgg/crawler4j/downloads","issues_url":"https://api.github.com/repos/MadEgg/crawler4j/issues{/number}","pulls_url":"https://api.github.com/repos/MadEgg/crawler4j/pulls{/number}","milestones_url":"https://api.github.com/repos/MadEgg/crawler4j/milestones{/number}","notifications_url":"https://api.github.com/repos/MadEgg/crawler4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MadEgg/crawler4j/labels{/name}","releases_url":"https://api.github.com/repos/MadEgg/crawler4j/releases{/id}","created_at":"2015-03-24T15:54:40Z","updated_at":"2015-03-24T15:55:19Z","pushed_at":"2015-05-20T15:17:54Z","git_url":"git://github.com/MadEgg/crawler4j.git","ssh_url":"git@github.com:MadEgg/crawler4j.git","clone_url":"https://github.com/MadEgg/crawler4j.git","svn_url":"https://github.com/MadEgg/crawler4j","homepage":"","size":902,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"patches"}},"base":{"label":"yasserg:master","ref":"master","sha":"b5826dc6dda9e8f326a8d99b9f068799d9131171","user":{"login":"yasserg","id":1086056,"avatar_url":"https://avatars.githubusercontent.com/u/1086056?v=3","gravatar_id":"","url":"https://api.github.com/users/yasserg","html_url":"https://github.com/yasserg","followers_url":"https://api.github.com/users/yasserg/followers","following_url":"https://api.github.com/users/yasserg/following{/other_user}","gists_url":"https://api.github.com/users/yasserg/gists{/gist_id}","starred_url":"https://api.github.com/users/yasserg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasserg/subscriptions","organizations_url":"https://api.github.com/users/yasserg/orgs","repos_url":"https://api.github.com/users/yasserg/repos","events_url":"https://api.github.com/users/yasserg/events{/privacy}","received_events_url":"https://api.github.com/users/yasserg/received_events","type":"User","site_admin":false},"repo":{"id":3081071,"name":"crawler4j","full_name":"yasserg/crawler4j","owner":{"login":"yasserg","id":1086056,"avatar_url":"https://avatars.githubusercontent.com/u/1086056?v=3","gravatar_id":"","url":"https://api.github.com/users/yasserg","html_url":"https://github.com/yasserg","followers_url":"https://api.github.com/users/yasserg/followers","following_url":"https://api.github.com/users/yasserg/following{/other_user}","gists_url":"https://api.github.com/users/yasserg/gists{/gist_id}","starred_url":"https://api.github.com/users/yasserg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasserg/subscriptions","organizations_url":"https://api.github.com/users/yasserg/orgs","repos_url":"https://api.github.com/users/yasserg/repos","events_url":"https://api.github.com/users/yasserg/events{/privacy}","received_events_url":"https://api.github.com/users/yasserg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yasserg/crawler4j","description":"Open Source Web Crawler for Java","fork":false,"url":"https://api.github.com/repos/yasserg/crawler4j","forks_url":"https://api.github.com/repos/yasserg/crawler4j/forks","keys_url":"https://api.github.com/repos/yasserg/crawler4j/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yasserg/crawler4j/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yasserg/crawler4j/teams","hooks_url":"https://api.github.com/repos/yasserg/crawler4j/hooks","issue_events_url":"https://api.github.com/repos/yasserg/crawler4j/issues/events{/number}","events_url":"https://api.github.com/repos/yasserg/crawler4j/events","assignees_url":"https://api.github.com/repos/yasserg/crawler4j/assignees{/user}","branches_url":"https://api.github.com/repos/yasserg/crawler4j/branches{/branch}","tags_url":"https://api.github.com/repos/yasserg/crawler4j/tags","blobs_url":"https://api.github.com/repos/yasserg/crawler4j/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yasserg/crawler4j/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yasserg/crawler4j/git/refs{/sha}","trees_url":"https://api.github.com/repos/yasserg/crawler4j/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yasserg/crawler4j/statuses/{sha}","languages_url":"https://api.github.com/repos/yasserg/crawler4j/languages","stargazers_url":"https://api.github.com/repos/yasserg/crawler4j/stargazers","contributors_url":"https://api.github.com/repos/yasserg/crawler4j/contributors","subscribers_url":"https://api.github.com/repos/yasserg/crawler4j/subscribers","subscription_url":"https://api.github.com/repos/yasserg/crawler4j/subscription","commits_url":"https://api.github.com/repos/yasserg/crawler4j/commits{/sha}","git_commits_url":"https://api.github.com/repos/yasserg/crawler4j/git/commits{/sha}","comments_url":"https://api.github.com/repos/yasserg/crawler4j/comments{/number}","issue_comment_url":"https://api.github.com/repos/yasserg/crawler4j/issues/comments{/number}","contents_url":"https://api.github.com/repos/yasserg/crawler4j/contents/{+path}","compare_url":"https://api.github.com/repos/yasserg/crawler4j/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yasserg/crawler4j/merges","archive_url":"https://api.github.com/repos/yasserg/crawler4j/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yasserg/crawler4j/downloads","issues_url":"https://api.github.com/repos/yasserg/crawler4j/issues{/number}","pulls_url":"https://api.github.com/repos/yasserg/crawler4j/pulls{/number}","milestones_url":"https://api.github.com/repos/yasserg/crawler4j/milestones{/number}","notifications_url":"https://api.github.com/repos/yasserg/crawler4j/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yasserg/crawler4j/labels{/name}","releases_url":"https://api.github.com/repos/yasserg/crawler4j/releases{/id}","created_at":"2011-12-31T22:49:18Z","updated_at":"2015-05-19T06:32:06Z","pushed_at":"2015-05-20T15:27:56Z","git_url":"git://github.com/yasserg/crawler4j.git","ssh_url":"git@github.com:yasserg/crawler4j.git","clone_url":"https://github.com/yasserg/crawler4j.git","svn_url":"https://github.com/yasserg/crawler4j","homepage":"","size":1082,"stargazers_count":288,"watchers_count":288,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":230,"mirror_url":null,"open_issues_count":36,"forks":230,"open_issues":36,"watchers":288,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yasserg/crawler4j/pulls/61"},"html":{"href":"https://github.com/yasserg/crawler4j/pull/61"},"issue":{"href":"https://api.github.com/repos/yasserg/crawler4j/issues/61"},"comments":{"href":"https://api.github.com/repos/yasserg/crawler4j/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/yasserg/crawler4j/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/yasserg/crawler4j/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yasserg/crawler4j/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/yasserg/crawler4j/statuses/ecfda48ab0f0b6281ba091e90bf8f5fd50918919"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":40,"deletions":11,"changed_files":3}}