{"action":"created","comment":{"url":"https://api.github.com/repos/steinwurf/tables/pulls/comments/29740156","id":29740156,"diff_hunk":"@@ -0,0 +1,77 @@\n+// Copyright (c) 2015 Steinwurf ApS\n+// All Rights Reserved\n+//\n+// Signed-off-to-Steinwurf-by: Juan Cabrera <jcabre14@student.aau.dk>\n+// Distributed under the \"BSD License\". See the accompanying LICENSE.rst file.\n+\n+\n+#include <fstream>\n+#include <cstdint>\n+\n+#include <tables/table.hpp>\n+#include <tables/csv_format.hpp>\n+#include <tables/json_format.hpp>\n+#include <tables/python_format.hpp>\n+\n+/// @example creating_printing_table.cpp\n+///\n+/// Simple example showing how to create a table\n+/// and print it in any desired format.\n+\n+int main()\n+{\n+\n+    // In this example we will generate 100 random numbers. We then\n+    // will store those numbers in a table with two columns:\n+    // The random number and the iteration in wich it was generated.\n+\n+    // We set the names for the ouput files.\n+    std::string out_csv = \"out.csv\";\n+    std::string out_json = \"out.json\";\n+    std::string out_python = \"out_python.json\";","path":"examples/creating_printing_table/creating_printing_table.cpp","position":31,"original_position":31,"commit_id":"fe41961cc03c59bd5ca9d760680523b3ebdf2f81","original_commit_id":"fe41961cc03c59bd5ca9d760680523b3ebdf2f81","user":{"login":"JuanCabre","id":7040215,"avatar_url":"https://avatars.githubusercontent.com/u/7040215?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanCabre","html_url":"https://github.com/JuanCabre","followers_url":"https://api.github.com/users/JuanCabre/followers","following_url":"https://api.github.com/users/JuanCabre/following{/other_user}","gists_url":"https://api.github.com/users/JuanCabre/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCabre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCabre/subscriptions","organizations_url":"https://api.github.com/users/JuanCabre/orgs","repos_url":"https://api.github.com/users/JuanCabre/repos","events_url":"https://api.github.com/users/JuanCabre/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCabre/received_events","type":"User","site_admin":false},"body":"Hmmm maybe :)\r\n\r\nI am a bit confused about what is the python output. I thought it was just a slightly different .json that is why I gave it that name.","created_at":"2015-05-06T07:55:52Z","updated_at":"2015-05-06T07:55:52Z","html_url":"https://github.com/steinwurf/tables/pull/18#discussion_r29740156","pull_request_url":"https://api.github.com/repos/steinwurf/tables/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/steinwurf/tables/pulls/comments/29740156"},"html":{"href":"https://github.com/steinwurf/tables/pull/18#discussion_r29740156"},"pull_request":{"href":"https://api.github.com/repos/steinwurf/tables/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/steinwurf/tables/pulls/18","id":34792908,"html_url":"https://github.com/steinwurf/tables/pull/18","diff_url":"https://github.com/steinwurf/tables/pull/18.diff","patch_url":"https://github.com/steinwurf/tables/pull/18.patch","issue_url":"https://api.github.com/repos/steinwurf/tables/issues/18","number":18,"state":"open","locked":false,"title":"Added a simple example showing how to create and print a table in differ...","user":{"login":"JuanCabre","id":7040215,"avatar_url":"https://avatars.githubusercontent.com/u/7040215?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanCabre","html_url":"https://github.com/JuanCabre","followers_url":"https://api.github.com/users/JuanCabre/followers","following_url":"https://api.github.com/users/JuanCabre/following{/other_user}","gists_url":"https://api.github.com/users/JuanCabre/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCabre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCabre/subscriptions","organizations_url":"https://api.github.com/users/JuanCabre/orgs","repos_url":"https://api.github.com/users/JuanCabre/repos","events_url":"https://api.github.com/users/JuanCabre/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCabre/received_events","type":"User","site_admin":false},"body":"...ent formats\r\n\r\nSigned-off-to-Steinwurf-by: Juan Cabrera <jcabre14@student.aau.dk>","created_at":"2015-05-06T07:08:08Z","updated_at":"2015-05-06T07:55:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1a2af000df37d6ca6e8b9c0ee8ac0bab453b9871","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/steinwurf/tables/pulls/18/commits","review_comments_url":"https://api.github.com/repos/steinwurf/tables/pulls/18/comments","review_comment_url":"https://api.github.com/repos/steinwurf/tables/pulls/comments{/number}","comments_url":"https://api.github.com/repos/steinwurf/tables/issues/18/comments","statuses_url":"https://api.github.com/repos/steinwurf/tables/statuses/fe41961cc03c59bd5ca9d760680523b3ebdf2f81","head":{"label":"JuanCabre:master","ref":"master","sha":"fe41961cc03c59bd5ca9d760680523b3ebdf2f81","user":{"login":"JuanCabre","id":7040215,"avatar_url":"https://avatars.githubusercontent.com/u/7040215?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanCabre","html_url":"https://github.com/JuanCabre","followers_url":"https://api.github.com/users/JuanCabre/followers","following_url":"https://api.github.com/users/JuanCabre/following{/other_user}","gists_url":"https://api.github.com/users/JuanCabre/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCabre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCabre/subscriptions","organizations_url":"https://api.github.com/users/JuanCabre/orgs","repos_url":"https://api.github.com/users/JuanCabre/repos","events_url":"https://api.github.com/users/JuanCabre/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCabre/received_events","type":"User","site_admin":false},"repo":{"id":35142616,"name":"tables","full_name":"JuanCabre/tables","owner":{"login":"JuanCabre","id":7040215,"avatar_url":"https://avatars.githubusercontent.com/u/7040215?v=3","gravatar_id":"","url":"https://api.github.com/users/JuanCabre","html_url":"https://github.com/JuanCabre","followers_url":"https://api.github.com/users/JuanCabre/followers","following_url":"https://api.github.com/users/JuanCabre/following{/other_user}","gists_url":"https://api.github.com/users/JuanCabre/gists{/gist_id}","starred_url":"https://api.github.com/users/JuanCabre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuanCabre/subscriptions","organizations_url":"https://api.github.com/users/JuanCabre/orgs","repos_url":"https://api.github.com/users/JuanCabre/repos","events_url":"https://api.github.com/users/JuanCabre/events{/privacy}","received_events_url":"https://api.github.com/users/JuanCabre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JuanCabre/tables","description":"Tables is a c++ library which allows arbitrary data to be stored as rows in a table with column headers.","fork":true,"url":"https://api.github.com/repos/JuanCabre/tables","forks_url":"https://api.github.com/repos/JuanCabre/tables/forks","keys_url":"https://api.github.com/repos/JuanCabre/tables/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JuanCabre/tables/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JuanCabre/tables/teams","hooks_url":"https://api.github.com/repos/JuanCabre/tables/hooks","issue_events_url":"https://api.github.com/repos/JuanCabre/tables/issues/events{/number}","events_url":"https://api.github.com/repos/JuanCabre/tables/events","assignees_url":"https://api.github.com/repos/JuanCabre/tables/assignees{/user}","branches_url":"https://api.github.com/repos/JuanCabre/tables/branches{/branch}","tags_url":"https://api.github.com/repos/JuanCabre/tables/tags","blobs_url":"https://api.github.com/repos/JuanCabre/tables/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JuanCabre/tables/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JuanCabre/tables/git/refs{/sha}","trees_url":"https://api.github.com/repos/JuanCabre/tables/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JuanCabre/tables/statuses/{sha}","languages_url":"https://api.github.com/repos/JuanCabre/tables/languages","stargazers_url":"https://api.github.com/repos/JuanCabre/tables/stargazers","contributors_url":"https://api.github.com/repos/JuanCabre/tables/contributors","subscribers_url":"https://api.github.com/repos/JuanCabre/tables/subscribers","subscription_url":"https://api.github.com/repos/JuanCabre/tables/subscription","commits_url":"https://api.github.com/repos/JuanCabre/tables/commits{/sha}","git_commits_url":"https://api.github.com/repos/JuanCabre/tables/git/commits{/sha}","comments_url":"https://api.github.com/repos/JuanCabre/tables/comments{/number}","issue_comment_url":"https://api.github.com/repos/JuanCabre/tables/issues/comments{/number}","contents_url":"https://api.github.com/repos/JuanCabre/tables/contents/{+path}","compare_url":"https://api.github.com/repos/JuanCabre/tables/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JuanCabre/tables/merges","archive_url":"https://api.github.com/repos/JuanCabre/tables/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JuanCabre/tables/downloads","issues_url":"https://api.github.com/repos/JuanCabre/tables/issues{/number}","pulls_url":"https://api.github.com/repos/JuanCabre/tables/pulls{/number}","milestones_url":"https://api.github.com/repos/JuanCabre/tables/milestones{/number}","notifications_url":"https://api.github.com/repos/JuanCabre/tables/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JuanCabre/tables/labels{/name}","releases_url":"https://api.github.com/repos/JuanCabre/tables/releases{/id}","created_at":"2015-05-06T06:16:51Z","updated_at":"2015-05-06T07:07:07Z","pushed_at":"2015-05-06T07:07:06Z","git_url":"git://github.com/JuanCabre/tables.git","ssh_url":"git@github.com:JuanCabre/tables.git","clone_url":"https://github.com/JuanCabre/tables.git","svn_url":"https://github.com/JuanCabre/tables","homepage":null,"size":1128,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"master"}},"base":{"label":"steinwurf:master","ref":"master","sha":"dd0e55b9732bc7c942f8d1cff6efa0adbc342be0","user":{"login":"steinwurf","id":1279612,"avatar_url":"https://avatars.githubusercontent.com/u/1279612?v=3","gravatar_id":"","url":"https://api.github.com/users/steinwurf","html_url":"https://github.com/steinwurf","followers_url":"https://api.github.com/users/steinwurf/followers","following_url":"https://api.github.com/users/steinwurf/following{/other_user}","gists_url":"https://api.github.com/users/steinwurf/gists{/gist_id}","starred_url":"https://api.github.com/users/steinwurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steinwurf/subscriptions","organizations_url":"https://api.github.com/users/steinwurf/orgs","repos_url":"https://api.github.com/users/steinwurf/repos","events_url":"https://api.github.com/users/steinwurf/events{/privacy}","received_events_url":"https://api.github.com/users/steinwurf/received_events","type":"Organization","site_admin":false},"repo":{"id":13147880,"name":"tables","full_name":"steinwurf/tables","owner":{"login":"steinwurf","id":1279612,"avatar_url":"https://avatars.githubusercontent.com/u/1279612?v=3","gravatar_id":"","url":"https://api.github.com/users/steinwurf","html_url":"https://github.com/steinwurf","followers_url":"https://api.github.com/users/steinwurf/followers","following_url":"https://api.github.com/users/steinwurf/following{/other_user}","gists_url":"https://api.github.com/users/steinwurf/gists{/gist_id}","starred_url":"https://api.github.com/users/steinwurf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steinwurf/subscriptions","organizations_url":"https://api.github.com/users/steinwurf/orgs","repos_url":"https://api.github.com/users/steinwurf/repos","events_url":"https://api.github.com/users/steinwurf/events{/privacy}","received_events_url":"https://api.github.com/users/steinwurf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/steinwurf/tables","description":"Tables is a c++ library which allows arbitrary data to be stored as rows in a table with column headers.","fork":false,"url":"https://api.github.com/repos/steinwurf/tables","forks_url":"https://api.github.com/repos/steinwurf/tables/forks","keys_url":"https://api.github.com/repos/steinwurf/tables/keys{/key_id}","collaborators_url":"https://api.github.com/repos/steinwurf/tables/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/steinwurf/tables/teams","hooks_url":"https://api.github.com/repos/steinwurf/tables/hooks","issue_events_url":"https://api.github.com/repos/steinwurf/tables/issues/events{/number}","events_url":"https://api.github.com/repos/steinwurf/tables/events","assignees_url":"https://api.github.com/repos/steinwurf/tables/assignees{/user}","branches_url":"https://api.github.com/repos/steinwurf/tables/branches{/branch}","tags_url":"https://api.github.com/repos/steinwurf/tables/tags","blobs_url":"https://api.github.com/repos/steinwurf/tables/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/steinwurf/tables/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/steinwurf/tables/git/refs{/sha}","trees_url":"https://api.github.com/repos/steinwurf/tables/git/trees{/sha}","statuses_url":"https://api.github.com/repos/steinwurf/tables/statuses/{sha}","languages_url":"https://api.github.com/repos/steinwurf/tables/languages","stargazers_url":"https://api.github.com/repos/steinwurf/tables/stargazers","contributors_url":"https://api.github.com/repos/steinwurf/tables/contributors","subscribers_url":"https://api.github.com/repos/steinwurf/tables/subscribers","subscription_url":"https://api.github.com/repos/steinwurf/tables/subscription","commits_url":"https://api.github.com/repos/steinwurf/tables/commits{/sha}","git_commits_url":"https://api.github.com/repos/steinwurf/tables/git/commits{/sha}","comments_url":"https://api.github.com/repos/steinwurf/tables/comments{/number}","issue_comment_url":"https://api.github.com/repos/steinwurf/tables/issues/comments{/number}","contents_url":"https://api.github.com/repos/steinwurf/tables/contents/{+path}","compare_url":"https://api.github.com/repos/steinwurf/tables/compare/{base}...{head}","merges_url":"https://api.github.com/repos/steinwurf/tables/merges","archive_url":"https://api.github.com/repos/steinwurf/tables/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/steinwurf/tables/downloads","issues_url":"https://api.github.com/repos/steinwurf/tables/issues{/number}","pulls_url":"https://api.github.com/repos/steinwurf/tables/pulls{/number}","milestones_url":"https://api.github.com/repos/steinwurf/tables/milestones{/number}","notifications_url":"https://api.github.com/repos/steinwurf/tables/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/steinwurf/tables/labels{/name}","releases_url":"https://api.github.com/repos/steinwurf/tables/releases{/id}","created_at":"2013-09-27T10:40:51Z","updated_at":"2015-01-20T13:02:59Z","pushed_at":"2015-05-06T07:08:08Z","git_url":"git://github.com/steinwurf/tables.git","ssh_url":"git@github.com:steinwurf/tables.git","clone_url":"https://github.com/steinwurf/tables.git","svn_url":"https://github.com/steinwurf/tables","homepage":null,"size":1128,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/steinwurf/tables/pulls/18"},"html":{"href":"https://github.com/steinwurf/tables/pull/18"},"issue":{"href":"https://api.github.com/repos/steinwurf/tables/issues/18"},"comments":{"href":"https://api.github.com/repos/steinwurf/tables/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/steinwurf/tables/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/steinwurf/tables/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/steinwurf/tables/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/steinwurf/tables/statuses/fe41961cc03c59bd5ca9d760680523b3ebdf2f81"}}}}