{"action":"created","comment":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/61540801","id":61540801,"diff_hunk":"@@ -13,139 +13,151 @@\n #include <fstream>\r\n #include <string>\r\n #include <sstream>\r\n+#include <vector>\r\n+#include <algorithm>\r\n \r\n using namespace std;\r\n \r\n+struct runtime {\r\n+\tstring text;\r\n+\tstring proc;\r\n+\tstring source;\r\n+\tstring usr;\r\n+\tstring src;\r\n+\tstring loc;\r\n+\tunsigned int count;\r\n+};\r\n+struct harddel {\r\n+\tstring type;\r\n+\tunsigned int count;\r\n+};\r\n //Make all of these global. It's bad yes, but it's a small program so it really doesn't affect anything.\r\n-\t//Because hardcoded numbers are bad :(\r\n-\tconst unsigned short maxStorage = 99; //100 - 1\r\n-\r\n-\t//What we use to read input\r\n-\tstring currentLine = \"Blank\";\r\n-\tstring nextLine = \"Blank\";\r\n-\r\n-\t//Stores lines we want to keep to print out\r\n-\tstring storedRuntime[maxStorage+1];\r\n-\tstring storedProc[maxStorage+1];\r\n-\tstring storedSource[maxStorage+1];\r\n-\tstring storedUsr[maxStorage+1];\r\n-\tstring storedSrc[maxStorage+1];\r","path":"tools/Runtime Condenser/Main.cpp","position":35,"original_position":35,"commit_id":"0ec8de7705c2b98a1e9dd4c10464f1d7288c3534","original_commit_id":"0ec8de7705c2b98a1e9dd4c10464f1d7288c3534","user":{"login":"MrStonedOne","id":7069733,"avatar_url":"https://avatars.githubusercontent.com/u/7069733?v=3","gravatar_id":"","url":"https://api.github.com/users/MrStonedOne","html_url":"https://github.com/MrStonedOne","followers_url":"https://api.github.com/users/MrStonedOne/followers","following_url":"https://api.github.com/users/MrStonedOne/following{/other_user}","gists_url":"https://api.github.com/users/MrStonedOne/gists{/gist_id}","starred_url":"https://api.github.com/users/MrStonedOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrStonedOne/subscriptions","organizations_url":"https://api.github.com/users/MrStonedOne/orgs","repos_url":"https://api.github.com/users/MrStonedOne/repos","events_url":"https://api.github.com/users/MrStonedOne/events{/privacy}","received_events_url":"https://api.github.com/users/MrStonedOne/received_events","type":"User","site_admin":false},"body":"Thats not 1, not 2, not 3, but SIX parallel global arrays. (and one more further down)","created_at":"2016-04-29T07:06:08Z","updated_at":"2016-04-29T07:06:08Z","html_url":"https://github.com/tgstation/-tg-station/pull/17230#discussion_r61540801","pull_request_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/17230","_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments/61540801"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/17230#discussion_r61540801"},"pull_request":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/17230"}}},"pull_request":{"url":"https://api.github.com/repos/tgstation/-tg-station/pulls/17230","id":68330515,"html_url":"https://github.com/tgstation/-tg-station/pull/17230","diff_url":"https://github.com/tgstation/-tg-station/pull/17230.diff","patch_url":"https://github.com/tgstation/-tg-station/pull/17230.patch","issue_url":"https://api.github.com/repos/tgstation/-tg-station/issues/17230","number":17230,"state":"open","locked":false,"title":"Refactor the Runtime Condenser to be less shit.","user":{"login":"MrStonedOne","id":7069733,"avatar_url":"https://avatars.githubusercontent.com/u/7069733?v=3","gravatar_id":"","url":"https://api.github.com/users/MrStonedOne","html_url":"https://github.com/MrStonedOne","followers_url":"https://api.github.com/users/MrStonedOne/followers","following_url":"https://api.github.com/users/MrStonedOne/following{/other_user}","gists_url":"https://api.github.com/users/MrStonedOne/gists{/gist_id}","starred_url":"https://api.github.com/users/MrStonedOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrStonedOne/subscriptions","organizations_url":"https://api.github.com/users/MrStonedOne/orgs","repos_url":"https://api.github.com/users/MrStonedOne/repos","events_url":"https://api.github.com/users/MrStonedOne/events{/privacy}","received_events_url":"https://api.github.com/users/MrStonedOne/received_events","type":"User","site_admin":false},"body":"Runtime Condenser now supports src.loc.\r\nRuntime Condenser now supports timestamped runtime logs (and supports older logs as well).\r\nRuntime Condenser now supports unlimited runtimes. (good bye 100 runtime limit)\r\nRuntime Condenser now uses expanding arrays (vectors) so that it doesn't have to allocate a fuck ton of memory.\r\nRuntime Condenser now uses a non o(n^n) sorting algo that also required double memory (seriously, who wrote this? who the fuck is \"Nodrak\"?).\r\nRuntime Condenser now uses a proper stuct rather than SEVEN parallel arrays..\r\nRuntime Condenser's compiled version should now work on machines without the C++ redistributable as well as \"older\" versions of windows like windows 7 =P.\r\nRuntime Condenser now works on linux (and most likely mac) (the casing of Input.txt was wrong) just compile with `g++ Main.cpp -o rc`\r\nRuntime Condenser should be much faster as it was compiled with optimizations and automatic function inlining.\r\n\r\nRemoved the python version because it doesn't process a lot of non-standard output and its not needed as this version compiles on linux and even mac just fine.\r\n\r\n","created_at":"2016-04-29T06:47:40Z","updated_at":"2016-04-29T07:06:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d44adef04ab8712a74096e985b422c16bf7f27de","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/17230/commits","review_comments_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/17230/comments","review_comment_url":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/issues/17230/comments","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/0ec8de7705c2b98a1e9dd4c10464f1d7288c3534","head":{"label":"MrStonedOne:runtimeCondenserFix","ref":"runtimeCondenserFix","sha":"0ec8de7705c2b98a1e9dd4c10464f1d7288c3534","user":{"login":"MrStonedOne","id":7069733,"avatar_url":"https://avatars.githubusercontent.com/u/7069733?v=3","gravatar_id":"","url":"https://api.github.com/users/MrStonedOne","html_url":"https://github.com/MrStonedOne","followers_url":"https://api.github.com/users/MrStonedOne/followers","following_url":"https://api.github.com/users/MrStonedOne/following{/other_user}","gists_url":"https://api.github.com/users/MrStonedOne/gists{/gist_id}","starred_url":"https://api.github.com/users/MrStonedOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrStonedOne/subscriptions","organizations_url":"https://api.github.com/users/MrStonedOne/orgs","repos_url":"https://api.github.com/users/MrStonedOne/repos","events_url":"https://api.github.com/users/MrStonedOne/events{/privacy}","received_events_url":"https://api.github.com/users/MrStonedOne/received_events","type":"User","site_admin":false},"repo":{"id":18158463,"name":"-tg-station","full_name":"MrStonedOne/-tg-station","owner":{"login":"MrStonedOne","id":7069733,"avatar_url":"https://avatars.githubusercontent.com/u/7069733?v=3","gravatar_id":"","url":"https://api.github.com/users/MrStonedOne","html_url":"https://github.com/MrStonedOne","followers_url":"https://api.github.com/users/MrStonedOne/followers","following_url":"https://api.github.com/users/MrStonedOne/following{/other_user}","gists_url":"https://api.github.com/users/MrStonedOne/gists{/gist_id}","starred_url":"https://api.github.com/users/MrStonedOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MrStonedOne/subscriptions","organizations_url":"https://api.github.com/users/MrStonedOne/orgs","repos_url":"https://api.github.com/users/MrStonedOne/repos","events_url":"https://api.github.com/users/MrStonedOne/events{/privacy}","received_events_url":"https://api.github.com/users/MrStonedOne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MrStonedOne/-tg-station","description":"/tg/'s SS13 branch","fork":true,"url":"https://api.github.com/repos/MrStonedOne/-tg-station","forks_url":"https://api.github.com/repos/MrStonedOne/-tg-station/forks","keys_url":"https://api.github.com/repos/MrStonedOne/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MrStonedOne/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MrStonedOne/-tg-station/teams","hooks_url":"https://api.github.com/repos/MrStonedOne/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/MrStonedOne/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/MrStonedOne/-tg-station/events","assignees_url":"https://api.github.com/repos/MrStonedOne/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/MrStonedOne/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/MrStonedOne/-tg-station/tags","blobs_url":"https://api.github.com/repos/MrStonedOne/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MrStonedOne/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MrStonedOne/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/MrStonedOne/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MrStonedOne/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/MrStonedOne/-tg-station/languages","stargazers_url":"https://api.github.com/repos/MrStonedOne/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/MrStonedOne/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/MrStonedOne/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/MrStonedOne/-tg-station/subscription","commits_url":"https://api.github.com/repos/MrStonedOne/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/MrStonedOne/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/MrStonedOne/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/MrStonedOne/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/MrStonedOne/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/MrStonedOne/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MrStonedOne/-tg-station/merges","archive_url":"https://api.github.com/repos/MrStonedOne/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MrStonedOne/-tg-station/downloads","issues_url":"https://api.github.com/repos/MrStonedOne/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/MrStonedOne/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/MrStonedOne/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/MrStonedOne/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MrStonedOne/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/MrStonedOne/-tg-station/releases{/id}","deployments_url":"https://api.github.com/repos/MrStonedOne/-tg-station/deployments","created_at":"2014-03-26T23:58:37Z","updated_at":"2016-01-22T07:51:41Z","pushed_at":"2016-04-29T06:33:30Z","git_url":"git://github.com/MrStonedOne/-tg-station.git","ssh_url":"git@github.com:MrStonedOne/-tg-station.git","clone_url":"https://github.com/MrStonedOne/-tg-station.git","svn_url":"https://github.com/MrStonedOne/-tg-station","homepage":"","size":579282,"stargazers_count":1,"watchers_count":1,"language":"DM","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"tgstation:master","ref":"master","sha":"ed53cec0eddebc821abc00c1ec075760a88e8e85","user":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"repo":{"id":3234987,"name":"-tg-station","full_name":"tgstation/-tg-station","owner":{"login":"tgstation","id":1363778,"avatar_url":"https://avatars.githubusercontent.com/u/1363778?v=3","gravatar_id":"","url":"https://api.github.com/users/tgstation","html_url":"https://github.com/tgstation","followers_url":"https://api.github.com/users/tgstation/followers","following_url":"https://api.github.com/users/tgstation/following{/other_user}","gists_url":"https://api.github.com/users/tgstation/gists{/gist_id}","starred_url":"https://api.github.com/users/tgstation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgstation/subscriptions","organizations_url":"https://api.github.com/users/tgstation/orgs","repos_url":"https://api.github.com/users/tgstation/repos","events_url":"https://api.github.com/users/tgstation/events{/privacy}","received_events_url":"https://api.github.com/users/tgstation/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/tgstation/-tg-station","description":"the /tg/station branch of SS13","fork":false,"url":"https://api.github.com/repos/tgstation/-tg-station","forks_url":"https://api.github.com/repos/tgstation/-tg-station/forks","keys_url":"https://api.github.com/repos/tgstation/-tg-station/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tgstation/-tg-station/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tgstation/-tg-station/teams","hooks_url":"https://api.github.com/repos/tgstation/-tg-station/hooks","issue_events_url":"https://api.github.com/repos/tgstation/-tg-station/issues/events{/number}","events_url":"https://api.github.com/repos/tgstation/-tg-station/events","assignees_url":"https://api.github.com/repos/tgstation/-tg-station/assignees{/user}","branches_url":"https://api.github.com/repos/tgstation/-tg-station/branches{/branch}","tags_url":"https://api.github.com/repos/tgstation/-tg-station/tags","blobs_url":"https://api.github.com/repos/tgstation/-tg-station/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tgstation/-tg-station/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tgstation/-tg-station/git/refs{/sha}","trees_url":"https://api.github.com/repos/tgstation/-tg-station/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tgstation/-tg-station/statuses/{sha}","languages_url":"https://api.github.com/repos/tgstation/-tg-station/languages","stargazers_url":"https://api.github.com/repos/tgstation/-tg-station/stargazers","contributors_url":"https://api.github.com/repos/tgstation/-tg-station/contributors","subscribers_url":"https://api.github.com/repos/tgstation/-tg-station/subscribers","subscription_url":"https://api.github.com/repos/tgstation/-tg-station/subscription","commits_url":"https://api.github.com/repos/tgstation/-tg-station/commits{/sha}","git_commits_url":"https://api.github.com/repos/tgstation/-tg-station/git/commits{/sha}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/comments{/number}","issue_comment_url":"https://api.github.com/repos/tgstation/-tg-station/issues/comments{/number}","contents_url":"https://api.github.com/repos/tgstation/-tg-station/contents/{+path}","compare_url":"https://api.github.com/repos/tgstation/-tg-station/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tgstation/-tg-station/merges","archive_url":"https://api.github.com/repos/tgstation/-tg-station/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tgstation/-tg-station/downloads","issues_url":"https://api.github.com/repos/tgstation/-tg-station/issues{/number}","pulls_url":"https://api.github.com/repos/tgstation/-tg-station/pulls{/number}","milestones_url":"https://api.github.com/repos/tgstation/-tg-station/milestones{/number}","notifications_url":"https://api.github.com/repos/tgstation/-tg-station/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tgstation/-tg-station/labels{/name}","releases_url":"https://api.github.com/repos/tgstation/-tg-station/releases{/id}","deployments_url":"https://api.github.com/repos/tgstation/-tg-station/deployments","created_at":"2012-01-21T17:32:47Z","updated_at":"2016-04-28T06:07:47Z","pushed_at":"2016-04-29T07:02:15Z","git_url":"git://github.com/tgstation/-tg-station.git","ssh_url":"git@github.com:tgstation/-tg-station.git","clone_url":"https://github.com/tgstation/-tg-station.git","svn_url":"https://github.com/tgstation/-tg-station","homepage":"http://www.tgstation13.org/","size":793033,"stargazers_count":291,"watchers_count":291,"language":"DM","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1031,"mirror_url":null,"open_issues_count":938,"forks":1031,"open_issues":938,"watchers":291,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/17230"},"html":{"href":"https://github.com/tgstation/-tg-station/pull/17230"},"issue":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/17230"},"comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/issues/17230/comments"},"review_comments":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/17230/comments"},"review_comment":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tgstation/-tg-station/pulls/17230/commits"},"statuses":{"href":"https://api.github.com/repos/tgstation/-tg-station/statuses/0ec8de7705c2b98a1e9dd4c10464f1d7288c3534"}}}}