GitHub PullRequestEvent at 2014-02-17 16:44:09
Repository: BinPy
Actor: salil93
Payload: {"action":"opened","number":46,"pull_request":{"url":"https://api.github.com/repos/BinPy/BinPy/pulls/46","id":12618985,"html_url":"https://github.com/BinPy/BinPy/pull/46","diff_url":"https://github.com/BinPy/BinPy/pull/46.diff","patch_url":"https://github.com/BinPy/BinPy/pull/46.patch","issue_url":"https://api.github.com/repos/BinPy/BinPy/issues/46","number":46,"state":"open","title":"Logic Gates reimplemented","user":{"login":"salil93","id":1548906,"avatar_url":"https://gravatar.com/avatar/a92c885b2b30a1aad8d6541d4c295d3b?d=https%3A%2F%2Fidenticons.github.com%2F1fe4d202ad902f6d3eefb35b045b0082.png&r=x","gravatar_id":"a92c885b2b30a1aad8d6541d4c295d3b","url":"https://api.github.com/users/salil93","html_url":"https://github.com/salil93","followers_url":"https://api.github.com/users/salil93/followers","following_url":"https://api.github.com/users/salil93/following{/other_user}","gists_url":"https://api.github.com/users/salil93/gists{/gist_id}","starred_url":"https://api.github.com/users/salil93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salil93/subscriptions","organizations_url":"https://api.github.com/users/salil93/orgs","repos_url":"https://api.github.com/users/salil93/repos","events_url":"https://api.github.com/users/salil93/events{/privacy}","received_events_url":"https://api.github.com/users/salil93/received_events","type":"User","site_admin":false},"body":"Refactored the entire Logic Gates code.\r\n\r\nNew Logic Gates classes have been written compatible with a new Connector class.\r\n\r\nNew Logic Gates are not restricted to just two inputs. They can be used both in a circuit and stand alone too. I guess by this we can avoid having two different implementations of logic gates.\r\n\r\nConnector class is like the wire variable in verilog. Different logic gates can now tap onto any Connector class object.\r\n\r\nThe implementation is trigger based. As soon as there is a change in any one of the inputs of the gates, it triggers the other gates that are connected to it and the process continues (recursively) till the circuit reaches a state where inputs are no longer changing (base case for the recursion). \r\n\r\nUsage\r\n\r\n    a = Connector()\r\n    a1 = AND(0,1)\r\n    a1.setOutput(a)\r\n   \r\n    a2 = AND(a,1)\r\n    a2.output()\r\n\r\nCircuit Diagram for the above code:\r\n\r\n![20140217_220054](https://f.cloud.github.com/assets/1548906/2187090/13d9f432-97f1-11e3-980c-d870e92a17c1.jpg)\r\n","created_at":"2014-02-17T16:44:08Z","updated_at":"2014-02-17T16:44:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BinPy/BinPy/pulls/46/commits","review_comments_url":"https://api.github.com/repos/BinPy/BinPy/pulls/46/comments","review_comment_url":"https://api.github.com/repos/BinPy/BinPy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/BinPy/BinPy/issues/46/comments","statuses_url":"https://api.github.com/repos/BinPy/BinPy/statuses/2992e768dd7b78839d43e2c4a0578939006048e6","head":{"label":"salil93:connector","ref":"connector","sha":"2992e768dd7b78839d43e2c4a0578939006048e6","user":{"login":"salil93","id":1548906,"avatar_url":"https://gravatar.com/avatar/a92c885b2b30a1aad8d6541d4c295d3b?d=https%3A%2F%2Fidenticons.github.com%2F1fe4d202ad902f6d3eefb35b045b0082.png&r=x","gravatar_id":"a92c885b2b30a1aad8d6541d4c295d3b","url":"https://api.github.com/users/salil93","html_url":"https://github.com/salil93","followers_url":"https://api.github.com/users/salil93/followers","following_url":"https://api.github.com/users/salil93/following{/other_user}","gists_url":"https://api.github.com/users/salil93/gists{/gist_id}","starred_url":"https://api.github.com/users/salil93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salil93/subscriptions","organizations_url":"https://api.github.com/users/salil93/orgs","repos_url":"https://api.github.com/users/salil93/repos","events_url":"https://api.github.com/users/salil93/events{/privacy}","received_events_url":"https://api.github.com/users/salil93/received_events","type":"User","site_admin":false},"repo":{"id":12730718,"name":"BinPy","full_name":"salil93/BinPy","owner":{"login":"salil93","id":1548906,"avatar_url":"https://gravatar.com/avatar/a92c885b2b30a1aad8d6541d4c295d3b?d=https%3A%2F%2Fidenticons.github.com%2F1fe4d202ad902f6d3eefb35b045b0082.png&r=x","gravatar_id":"a92c885b2b30a1aad8d6541d4c295d3b","url":"https://api.github.com/users/salil93","html_url":"https://github.com/salil93","followers_url":"https://api.github.com/users/salil93/followers","following_url":"https://api.github.com/users/salil93/following{/other_user}","gists_url":"https://api.github.com/users/salil93/gists{/gist_id}","starred_url":"https://api.github.com/users/salil93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salil93/subscriptions","organizations_url":"https://api.github.com/users/salil93/orgs","repos_url":"https://api.github.com/users/salil93/repos","events_url":"https://api.github.com/users/salil93/events{/privacy}","received_events_url":"https://api.github.com/users/salil93/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/salil93/BinPy","description":"Virtualizing Electronics","fork":true,"url":"https://api.github.com/repos/salil93/BinPy","forks_url":"https://api.github.com/repos/salil93/BinPy/forks","keys_url":"https://api.github.com/repos/salil93/BinPy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/salil93/BinPy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/salil93/BinPy/teams","hooks_url":"https://api.github.com/repos/salil93/BinPy/hooks","issue_events_url":"https://api.github.com/repos/salil93/BinPy/issues/events{/number}","events_url":"https://api.github.com/repos/salil93/BinPy/events","assignees_url":"https://api.github.com/repos/salil93/BinPy/assignees{/user}","branches_url":"https://api.github.com/repos/salil93/BinPy/branches{/branch}","tags_url":"https://api.github.com/repos/salil93/BinPy/tags","blobs_url":"https://api.github.com/repos/salil93/BinPy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/salil93/BinPy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/salil93/BinPy/git/refs{/sha}","trees_url":"https://api.github.com/repos/salil93/BinPy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/salil93/BinPy/statuses/{sha}","languages_url":"https://api.github.com/repos/salil93/BinPy/languages","stargazers_url":"https://api.github.com/repos/salil93/BinPy/stargazers","contributors_url":"https://api.github.com/repos/salil93/BinPy/contributors","subscribers_url":"https://api.github.com/repos/salil93/BinPy/subscribers","subscription_url":"https://api.github.com/repos/salil93/BinPy/subscription","commits_url":"https://api.github.com/repos/salil93/BinPy/commits{/sha}","git_commits_url":"https://api.github.com/repos/salil93/BinPy/git/commits{/sha}","comments_url":"https://api.github.com/repos/salil93/BinPy/comments{/number}","issue_comment_url":"https://api.github.com/repos/salil93/BinPy/issues/comments/{number}","contents_url":"https://api.github.com/repos/salil93/BinPy/contents/{+path}","compare_url":"https://api.github.com/repos/salil93/BinPy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/salil93/BinPy/merges","archive_url":"https://api.github.com/repos/salil93/BinPy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/salil93/BinPy/downloads","issues_url":"https://api.github.com/repos/salil93/BinPy/issues{/number}","pulls_url":"https://api.github.com/repos/salil93/BinPy/pulls{/number}","milestones_url":"https://api.github.com/repos/salil93/BinPy/milestones{/number}","notifications_url":"https://api.github.com/repos/salil93/BinPy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/salil93/BinPy/labels{/name}","releases_url":"https://api.github.com/repos/salil93/BinPy/releases{/id}","created_at":"2013-09-10T13:46:16Z","updated_at":"2014-02-17T16:44:09Z","pushed_at":"2014-02-17T16:25:55Z","git_url":"git://github.com/salil93/BinPy.git","ssh_url":"git@github.com:salil93/BinPy.git","clone_url":"https://github.com/salil93/BinPy.git","svn_url":"https://github.com/salil93/BinPy","homepage":"","size":760,"stargazers_count":0,"watchers_count":0,"language":"Python","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","master_branch":"master"}},"base":{"label":"BinPy:develop","ref":"develop","sha":"d5f6548a5763bd19132299c47bbc3fc874fcb728","user":{"login":"BinPy","id":5413579,"avatar_url":"https://gravatar.com/avatar/074f27705e16b8c975e29d5e24706021?d=https%3A%2F%2Fidenticons.github.com%2F33d119cff107bfd8e3933cd3a2d0fa98.png&r=x","gravatar_id":"074f27705e16b8c975e29d5e24706021","url":"https://api.github.com/users/BinPy","html_url":"https://github.com/BinPy","followers_url":"https://api.github.com/users/BinPy/followers","following_url":"https://api.github.com/users/BinPy/following{/other_user}","gists_url":"https://api.github.com/users/BinPy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinPy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinPy/subscriptions","organizations_url":"https://api.github.com/users/BinPy/orgs","repos_url":"https://api.github.com/users/BinPy/repos","events_url":"https://api.github.com/users/BinPy/events{/privacy}","received_events_url":"https://api.github.com/users/BinPy/received_events","type":"Organization","site_admin":false},"repo":{"id":12645366,"name":"BinPy","full_name":"BinPy/BinPy","owner":{"login":"BinPy","id":5413579,"avatar_url":"https://gravatar.com/avatar/074f27705e16b8c975e29d5e24706021?d=https%3A%2F%2Fidenticons.github.com%2F33d119cff107bfd8e3933cd3a2d0fa98.png&r=x","gravatar_id":"074f27705e16b8c975e29d5e24706021","url":"https://api.github.com/users/BinPy","html_url":"https://github.com/BinPy","followers_url":"https://api.github.com/users/BinPy/followers","following_url":"https://api.github.com/users/BinPy/following{/other_user}","gists_url":"https://api.github.com/users/BinPy/gists{/gist_id}","starred_url":"https://api.github.com/users/BinPy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BinPy/subscriptions","organizations_url":"https://api.github.com/users/BinPy/orgs","repos_url":"https://api.github.com/users/BinPy/repos","events_url":"https://api.github.com/users/BinPy/events{/privacy}","received_events_url":"https://api.github.com/users/BinPy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BinPy/BinPy","description":"Virtualizing Electronics","fork":false,"url":"https://api.github.com/repos/BinPy/BinPy","forks_url":"https://api.github.com/repos/BinPy/BinPy/forks","keys_url":"https://api.github.com/repos/BinPy/BinPy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BinPy/BinPy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BinPy/BinPy/teams","hooks_url":"https://api.github.com/repos/BinPy/BinPy/hooks","issue_events_url":"https://api.github.com/repos/BinPy/BinPy/issues/events{/number}","events_url":"https://api.github.com/repos/BinPy/BinPy/events","assignees_url":"https://api.github.com/repos/BinPy/BinPy/assignees{/user}","branches_url":"https://api.github.com/repos/BinPy/BinPy/branches{/branch}","tags_url":"https://api.github.com/repos/BinPy/BinPy/tags","blobs_url":"https://api.github.com/repos/BinPy/BinPy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BinPy/BinPy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BinPy/BinPy/git/refs{/sha}","trees_url":"https://api.github.com/repos/BinPy/BinPy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BinPy/BinPy/statuses/{sha}","languages_url":"https://api.github.com/repos/BinPy/BinPy/languages","stargazers_url":"https://api.github.com/repos/BinPy/BinPy/stargazers","contributors_url":"https://api.github.com/repos/BinPy/BinPy/contributors","subscribers_url":"https://api.github.com/repos/BinPy/BinPy/subscribers","subscription_url":"https://api.github.com/repos/BinPy/BinPy/subscription","commits_url":"https://api.github.com/repos/BinPy/BinPy/commits{/sha}","git_commits_url":"https://api.github.com/repos/BinPy/BinPy/git/commits{/sha}","comments_url":"https://api.github.com/repos/BinPy/BinPy/comments{/number}","issue_comment_url":"https://api.github.com/repos/BinPy/BinPy/issues/comments/{number}","contents_url":"https://api.github.com/repos/BinPy/BinPy/contents/{+path}","compare_url":"https://api.github.com/repos/BinPy/BinPy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BinPy/BinPy/merges","archive_url":"https://api.github.com/repos/BinPy/BinPy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BinPy/BinPy/downloads","issues_url":"https://api.github.com/repos/BinPy/BinPy/issues{/number}","pulls_url":"https://api.github.com/repos/BinPy/BinPy/pulls{/number}","milestones_url":"https://api.github.com/repos/BinPy/BinPy/milestones{/number}","notifications_url":"https://api.github.com/repos/BinPy/BinPy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BinPy/BinPy/labels{/name}","releases_url":"https://api.github.com/repos/BinPy/BinPy/releases{/id}","created_at":"2013-09-06T13:59:49Z","updated_at":"2014-02-17T13:32:32Z","pushed_at":"2014-02-17T13:32:32Z","git_url":"git://github.com/BinPy/BinPy.git","ssh_url":"git@github.com:BinPy/BinPy.git","clone_url":"https://github.com/BinPy/BinPy.git","svn_url":"https://github.com/BinPy/BinPy","homepage":"","size":1326,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":21,"mirror_url":null,"open_issues_count":5,"forks":21,"open_issues":5,"watchers":9,"default_branch":"develop","master_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/BinPy/BinPy/pulls/46"},"html":{"href":"https://github.com/BinPy/BinPy/pull/46"},"issue":{"href":"https://api.github.com/repos/BinPy/BinPy/issues/46"},"comments":{"href":"https://api.github.com/repos/BinPy/BinPy/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/BinPy/BinPy/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/BinPy/BinPy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/BinPy/BinPy/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/BinPy/BinPy/statuses/2992e768dd7b78839d43e2c4a0578939006048e6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":302,"deletions":1,"changed_files":3}}