{"action":"created","comment":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/185355967","pull_request_review_id":116728249,"id":185355967,"diff_hunk":"@@ -9,45 +10,63 @@ struct Stack\n     int* array;\n };\n  \n-struct Stack* createStack(unsigned capacity)\n+struct Stack* \n+create_stack(unsigned capacity)\n {\n     struct Stack* stack = (struct Stack*) malloc(sizeof(struct Stack));\n     stack->capacity = capacity;\n     stack->top = -1;\n     stack->array = (int*) malloc(stack->capacity * sizeof(int));\n     return stack;\n }\n+\n+void delete_stack(struct Stack * stack)","path":"code/data_structures/src/stack/stack/stack.c","position":23,"original_position":23,"commit_id":"1de9247fd26ab9fa36ce0900c0b7e6ace676bb6a","original_commit_id":"1de9247fd26ab9fa36ce0900c0b7e6ace676bb6a","user":{"login":"arnavb","id":30810402,"avatar_url":"https://avatars0.githubusercontent.com/u/30810402?v=4","gravatar_id":"","url":"https://api.github.com/users/arnavb","html_url":"https://github.com/arnavb","followers_url":"https://api.github.com/users/arnavb/followers","following_url":"https://api.github.com/users/arnavb/following{/other_user}","gists_url":"https://api.github.com/users/arnavb/gists{/gist_id}","starred_url":"https://api.github.com/users/arnavb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arnavb/subscriptions","organizations_url":"https://api.github.com/users/arnavb/orgs","repos_url":"https://api.github.com/users/arnavb/repos","events_url":"https://api.github.com/users/arnavb/events{/privacy}","received_events_url":"https://api.github.com/users/arnavb/received_events","type":"User","site_admin":false},"body":"void should go ints own line as well.","created_at":"2018-05-01T22:56:50Z","updated_at":"2018-05-01T22:57:38Z","html_url":"https://github.com/OpenGenus/cosmos/pull/3543#discussion_r185355967","pull_request_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3543","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments/185355967"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3543#discussion_r185355967"},"pull_request":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3543"}}},"pull_request":{"url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3543","id":185213919,"html_url":"https://github.com/OpenGenus/cosmos/pull/3543","diff_url":"https://github.com/OpenGenus/cosmos/pull/3543.diff","patch_url":"https://github.com/OpenGenus/cosmos/pull/3543.patch","issue_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3543","number":3543,"state":"open","locked":false,"title":"stack.c : some changes and improvements","user":{"login":"christianbender","id":23243382,"avatar_url":"https://avatars0.githubusercontent.com/u/23243382?v=4","gravatar_id":"","url":"https://api.github.com/users/christianbender","html_url":"https://github.com/christianbender","followers_url":"https://api.github.com/users/christianbender/followers","following_url":"https://api.github.com/users/christianbender/following{/other_user}","gists_url":"https://api.github.com/users/christianbender/gists{/gist_id}","starred_url":"https://api.github.com/users/christianbender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianbender/subscriptions","organizations_url":"https://api.github.com/users/christianbender/orgs","repos_url":"https://api.github.com/users/christianbender/repos","events_url":"https://api.github.com/users/christianbender/events{/privacy}","received_events_url":"https://api.github.com/users/christianbender/received_events","type":"User","site_admin":false},"body":"**Changes:**\r\n<!-- Add here what changes were made in this pull request. -->\r\n* Used the ```assert``` makro for preconditions.  \r\n* Changed the formatting according to the [code style conventions](https://github.com/christianbender/cosmos/tree/master/guides/coding_style/c)  \r\n* Added a function ```delete_stack(...)``` for tidy up the Heap.  \r\n* Changed the ```main```  \r\n\r\n<!-- Make sure to look at the Style Guide for your language in guides/coding_style/language_name:\r\n\r\n     https://github.com/OpenGenus/cosmos/tree/master/guides/coding_style\r\n\r\n     Note: A coding style guide may not exist for your language, since this is still in beta.\r\n-->\r\n\r\n<!-- Make sure to look at the Documentation Style Guide in guides/documentation.md:\r\n\r\n     https://github.com/OpenGenus/cosmos/blob/master/guides/documentation_guide.md\r\n\r\n     The document style guide may not apply for your algorithm category, you must also look at specified guide under all of the directory in the category, e.g., for project euler:\r\n\r\n     https://github.com/OpenGenus/cosmos/blob/master/code/online_challenges/src/project_euler/documentation_guide.md\r\n-->\r\n","created_at":"2018-05-01T16:17:59Z","updated_at":"2018-05-01T22:57:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f95b64781ed7fcc3d40d9852b24489fe56b5ee9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3543/commits","review_comments_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3543/comments","review_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/3543/comments","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/1de9247fd26ab9fa36ce0900c0b7e6ace676bb6a","head":{"label":"christianbender:changed_stack_C","ref":"changed_stack_C","sha":"1de9247fd26ab9fa36ce0900c0b7e6ace676bb6a","user":{"login":"christianbender","id":23243382,"avatar_url":"https://avatars0.githubusercontent.com/u/23243382?v=4","gravatar_id":"","url":"https://api.github.com/users/christianbender","html_url":"https://github.com/christianbender","followers_url":"https://api.github.com/users/christianbender/followers","following_url":"https://api.github.com/users/christianbender/following{/other_user}","gists_url":"https://api.github.com/users/christianbender/gists{/gist_id}","starred_url":"https://api.github.com/users/christianbender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianbender/subscriptions","organizations_url":"https://api.github.com/users/christianbender/orgs","repos_url":"https://api.github.com/users/christianbender/repos","events_url":"https://api.github.com/users/christianbender/events{/privacy}","received_events_url":"https://api.github.com/users/christianbender/received_events","type":"User","site_admin":false},"repo":{"id":129741938,"name":"cosmos","full_name":"christianbender/cosmos","owner":{"login":"christianbender","id":23243382,"avatar_url":"https://avatars0.githubusercontent.com/u/23243382?v=4","gravatar_id":"","url":"https://api.github.com/users/christianbender","html_url":"https://github.com/christianbender","followers_url":"https://api.github.com/users/christianbender/followers","following_url":"https://api.github.com/users/christianbender/following{/other_user}","gists_url":"https://api.github.com/users/christianbender/gists{/gist_id}","starred_url":"https://api.github.com/users/christianbender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianbender/subscriptions","organizations_url":"https://api.github.com/users/christianbender/orgs","repos_url":"https://api.github.com/users/christianbender/repos","events_url":"https://api.github.com/users/christianbender/events{/privacy}","received_events_url":"https://api.github.com/users/christianbender/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/christianbender/cosmos","description":"This project is a fork from OpenGenus/cosmos. I refactored and/or rewrote some parts. :smirk:","fork":true,"url":"https://api.github.com/repos/christianbender/cosmos","forks_url":"https://api.github.com/repos/christianbender/cosmos/forks","keys_url":"https://api.github.com/repos/christianbender/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/christianbender/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/christianbender/cosmos/teams","hooks_url":"https://api.github.com/repos/christianbender/cosmos/hooks","issue_events_url":"https://api.github.com/repos/christianbender/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/christianbender/cosmos/events","assignees_url":"https://api.github.com/repos/christianbender/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/christianbender/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/christianbender/cosmos/tags","blobs_url":"https://api.github.com/repos/christianbender/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/christianbender/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/christianbender/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/christianbender/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/christianbender/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/christianbender/cosmos/languages","stargazers_url":"https://api.github.com/repos/christianbender/cosmos/stargazers","contributors_url":"https://api.github.com/repos/christianbender/cosmos/contributors","subscribers_url":"https://api.github.com/repos/christianbender/cosmos/subscribers","subscription_url":"https://api.github.com/repos/christianbender/cosmos/subscription","commits_url":"https://api.github.com/repos/christianbender/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/christianbender/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/christianbender/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/christianbender/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/christianbender/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/christianbender/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/christianbender/cosmos/merges","archive_url":"https://api.github.com/repos/christianbender/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/christianbender/cosmos/downloads","issues_url":"https://api.github.com/repos/christianbender/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/christianbender/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/christianbender/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/christianbender/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/christianbender/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/christianbender/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/christianbender/cosmos/deployments","created_at":"2018-04-16T12:43:52Z","updated_at":"2018-04-19T21:11:30Z","pushed_at":"2018-05-01T17:08:25Z","git_url":"git://github.com/christianbender/cosmos.git","ssh_url":"git@github.com:christianbender/cosmos.git","clone_url":"https://github.com/christianbender/cosmos.git","svn_url":"https://github.com/christianbender/cosmos","homepage":"","size":13689,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"OpenGenus:master","ref":"master","sha":"d32d63541fa630307ce1efd69f17e4b34cf8bbd7","user":{"login":"OpenGenus","id":18506046,"avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"repo":{"id":103749180,"name":"cosmos","full_name":"OpenGenus/cosmos","owner":{"login":"OpenGenus","id":18506046,"avatar_url":"https://avatars3.githubusercontent.com/u/18506046?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenGenus","html_url":"https://github.com/OpenGenus","followers_url":"https://api.github.com/users/OpenGenus/followers","following_url":"https://api.github.com/users/OpenGenus/following{/other_user}","gists_url":"https://api.github.com/users/OpenGenus/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenGenus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenGenus/subscriptions","organizations_url":"https://api.github.com/users/OpenGenus/orgs","repos_url":"https://api.github.com/users/OpenGenus/repos","events_url":"https://api.github.com/users/OpenGenus/events{/privacy}","received_events_url":"https://api.github.com/users/OpenGenus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OpenGenus/cosmos","description":"Algorithms that run our universe | Your personal library of every algorithm and data structure code that you will ever encounter","fork":false,"url":"https://api.github.com/repos/OpenGenus/cosmos","forks_url":"https://api.github.com/repos/OpenGenus/cosmos/forks","keys_url":"https://api.github.com/repos/OpenGenus/cosmos/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenGenus/cosmos/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenGenus/cosmos/teams","hooks_url":"https://api.github.com/repos/OpenGenus/cosmos/hooks","issue_events_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/events{/number}","events_url":"https://api.github.com/repos/OpenGenus/cosmos/events","assignees_url":"https://api.github.com/repos/OpenGenus/cosmos/assignees{/user}","branches_url":"https://api.github.com/repos/OpenGenus/cosmos/branches{/branch}","tags_url":"https://api.github.com/repos/OpenGenus/cosmos/tags","blobs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenGenus/cosmos/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenGenus/cosmos/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenGenus/cosmos/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenGenus/cosmos/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenGenus/cosmos/languages","stargazers_url":"https://api.github.com/repos/OpenGenus/cosmos/stargazers","contributors_url":"https://api.github.com/repos/OpenGenus/cosmos/contributors","subscribers_url":"https://api.github.com/repos/OpenGenus/cosmos/subscribers","subscription_url":"https://api.github.com/repos/OpenGenus/cosmos/subscription","commits_url":"https://api.github.com/repos/OpenGenus/cosmos/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenGenus/cosmos/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenGenus/cosmos/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenGenus/cosmos/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenGenus/cosmos/contents/{+path}","compare_url":"https://api.github.com/repos/OpenGenus/cosmos/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenGenus/cosmos/merges","archive_url":"https://api.github.com/repos/OpenGenus/cosmos/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenGenus/cosmos/downloads","issues_url":"https://api.github.com/repos/OpenGenus/cosmos/issues{/number}","pulls_url":"https://api.github.com/repos/OpenGenus/cosmos/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenGenus/cosmos/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenGenus/cosmos/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenGenus/cosmos/labels{/name}","releases_url":"https://api.github.com/repos/OpenGenus/cosmos/releases{/id}","deployments_url":"https://api.github.com/repos/OpenGenus/cosmos/deployments","created_at":"2017-09-16T12:07:05Z","updated_at":"2018-05-01T22:16:58Z","pushed_at":"2018-05-01T17:12:54Z","git_url":"git://github.com/OpenGenus/cosmos.git","ssh_url":"git@github.com:OpenGenus/cosmos.git","clone_url":"https://github.com/OpenGenus/cosmos.git","svn_url":"https://github.com/OpenGenus/cosmos","homepage":"https://discourse.opengenus.org","size":13726,"stargazers_count":7291,"watchers_count":7291,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2014,"mirror_url":null,"archived":false,"open_issues_count":953,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0"},"forks":2014,"open_issues":953,"watchers":7291,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3543"},"html":{"href":"https://github.com/OpenGenus/cosmos/pull/3543"},"issue":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3543"},"comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/issues/3543/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3543/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenGenus/cosmos/pulls/3543/commits"},"statuses":{"href":"https://api.github.com/repos/OpenGenus/cosmos/statuses/1de9247fd26ab9fa36ce0900c0b7e6ace676bb6a"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"arnavb"}}