{"action":"created","comment":{"url":"https://api.github.com/repos/CESNET/perun-services/pulls/comments/47209033","id":47209033,"diff_hunk":"@@ -0,0 +1,129 @@\n+#!/usr/bin/perl\n+\n+use strict;\n+use warnings;\n+use Text::Unidecode;\n+use perunServicesInit;\n+use perunServicesUtils;\n+use Data::Dumper;\n+local $::SERVICE_NAME = \"ceitec_proteomics\";\n+local $::PROTOCOL_VERSION = \"3.0.0\";\n+my $SCRIPT_VERSION = \"3.0.0\";\n+\n+perunServicesInit::init;\n+my $DIRECTORY = perunServicesInit::getDirectory;\n+my $data = perunServicesInit::getDataWithGroups;\n+\n+#forward declaration\n+sub processUsers;\n+sub processGroups;\n+sub processMemberships;\n+\n+#Constants\n+our $A_USER_ID;                   *A_USER_ID =               \\'urn:perun:user:attribute-def:core:id';\n+our $A_USER_STATUS;               *A_USER_STATUS =           \\'urn:perun:member:attribute-def:core:status';\n+our $A_USER_NAME;                 *A_USER_NAME =             \\'urn:perun:user:attribute-def:core:firstName';\n+our $A_USER_SURNAME;              *A_USER_SURNAME =\t\t\t \\'urn:perun:user:attribute-def:core:lastName';","path":"gen/ceitec_proteomics","position":26,"original_position":26,"commit_id":"38b27e18668b49f7a35ff88c1751caa0159c7b3f","original_commit_id":"38b27e18668b49f7a35ff88c1751caa0159c7b3f","user":{"login":"stavamichal","id":5602147,"avatar_url":"https://avatars.githubusercontent.com/u/5602147?v=3","gravatar_id":"","url":"https://api.github.com/users/stavamichal","html_url":"https://github.com/stavamichal","followers_url":"https://api.github.com/users/stavamichal/followers","following_url":"https://api.github.com/users/stavamichal/following{/other_user}","gists_url":"https://api.github.com/users/stavamichal/gists{/gist_id}","starred_url":"https://api.github.com/users/stavamichal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stavamichal/subscriptions","organizations_url":"https://api.github.com/users/stavamichal/orgs","repos_url":"https://api.github.com/users/stavamichal/repos","events_url":"https://api.github.com/users/stavamichal/events{/privacy}","received_events_url":"https://api.github.com/users/stavamichal/received_events","type":"User","site_admin":false},"body":"please fix indentation ","created_at":"2015-12-10T10:17:58Z","updated_at":"2015-12-10T10:17:58Z","html_url":"https://github.com/CESNET/perun-services/pull/37#discussion_r47209033","pull_request_url":"https://api.github.com/repos/CESNET/perun-services/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/CESNET/perun-services/pulls/comments/47209033"},"html":{"href":"https://github.com/CESNET/perun-services/pull/37#discussion_r47209033"},"pull_request":{"href":"https://api.github.com/repos/CESNET/perun-services/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/CESNET/perun-services/pulls/37","id":52965138,"html_url":"https://github.com/CESNET/perun-services/pull/37","diff_url":"https://github.com/CESNET/perun-services/pull/37.diff","patch_url":"https://github.com/CESNET/perun-services/pull/37.patch","issue_url":"https://api.github.com/repos/CESNET/perun-services/issues/37","number":37,"state":"open","locked":false,"title":"new service for Ceitec Proteomics IS","user":{"login":"Laliska","id":8018833,"avatar_url":"https://avatars.githubusercontent.com/u/8018833?v=3","gravatar_id":"","url":"https://api.github.com/users/Laliska","html_url":"https://github.com/Laliska","followers_url":"https://api.github.com/users/Laliska/followers","following_url":"https://api.github.com/users/Laliska/following{/other_user}","gists_url":"https://api.github.com/users/Laliska/gists{/gist_id}","starred_url":"https://api.github.com/users/Laliska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laliska/subscriptions","organizations_url":"https://api.github.com/users/Laliska/orgs","repos_url":"https://api.github.com/users/Laliska/repos","events_url":"https://api.github.com/users/Laliska/events{/privacy}","received_events_url":"https://api.github.com/users/Laliska/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-08T10:51:52Z","updated_at":"2015-12-10T10:17:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fa64b1765c2bd14833de0ea5a000d7833d2b2c43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CESNET/perun-services/pulls/37/commits","review_comments_url":"https://api.github.com/repos/CESNET/perun-services/pulls/37/comments","review_comment_url":"https://api.github.com/repos/CESNET/perun-services/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CESNET/perun-services/issues/37/comments","statuses_url":"https://api.github.com/repos/CESNET/perun-services/statuses/38b27e18668b49f7a35ff88c1751caa0159c7b3f","head":{"label":"Laliska:proteomics","ref":"proteomics","sha":"38b27e18668b49f7a35ff88c1751caa0159c7b3f","user":{"login":"Laliska","id":8018833,"avatar_url":"https://avatars.githubusercontent.com/u/8018833?v=3","gravatar_id":"","url":"https://api.github.com/users/Laliska","html_url":"https://github.com/Laliska","followers_url":"https://api.github.com/users/Laliska/followers","following_url":"https://api.github.com/users/Laliska/following{/other_user}","gists_url":"https://api.github.com/users/Laliska/gists{/gist_id}","starred_url":"https://api.github.com/users/Laliska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laliska/subscriptions","organizations_url":"https://api.github.com/users/Laliska/orgs","repos_url":"https://api.github.com/users/Laliska/repos","events_url":"https://api.github.com/users/Laliska/events{/privacy}","received_events_url":"https://api.github.com/users/Laliska/received_events","type":"User","site_admin":false},"repo":{"id":36506866,"name":"perun-services","full_name":"Laliska/perun-services","owner":{"login":"Laliska","id":8018833,"avatar_url":"https://avatars.githubusercontent.com/u/8018833?v=3","gravatar_id":"","url":"https://api.github.com/users/Laliska","html_url":"https://github.com/Laliska","followers_url":"https://api.github.com/users/Laliska/followers","following_url":"https://api.github.com/users/Laliska/following{/other_user}","gists_url":"https://api.github.com/users/Laliska/gists{/gist_id}","starred_url":"https://api.github.com/users/Laliska/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laliska/subscriptions","organizations_url":"https://api.github.com/users/Laliska/orgs","repos_url":"https://api.github.com/users/Laliska/repos","events_url":"https://api.github.com/users/Laliska/events{/privacy}","received_events_url":"https://api.github.com/users/Laliska/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Laliska/perun-services","description":"","fork":true,"url":"https://api.github.com/repos/Laliska/perun-services","forks_url":"https://api.github.com/repos/Laliska/perun-services/forks","keys_url":"https://api.github.com/repos/Laliska/perun-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Laliska/perun-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Laliska/perun-services/teams","hooks_url":"https://api.github.com/repos/Laliska/perun-services/hooks","issue_events_url":"https://api.github.com/repos/Laliska/perun-services/issues/events{/number}","events_url":"https://api.github.com/repos/Laliska/perun-services/events","assignees_url":"https://api.github.com/repos/Laliska/perun-services/assignees{/user}","branches_url":"https://api.github.com/repos/Laliska/perun-services/branches{/branch}","tags_url":"https://api.github.com/repos/Laliska/perun-services/tags","blobs_url":"https://api.github.com/repos/Laliska/perun-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Laliska/perun-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Laliska/perun-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/Laliska/perun-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Laliska/perun-services/statuses/{sha}","languages_url":"https://api.github.com/repos/Laliska/perun-services/languages","stargazers_url":"https://api.github.com/repos/Laliska/perun-services/stargazers","contributors_url":"https://api.github.com/repos/Laliska/perun-services/contributors","subscribers_url":"https://api.github.com/repos/Laliska/perun-services/subscribers","subscription_url":"https://api.github.com/repos/Laliska/perun-services/subscription","commits_url":"https://api.github.com/repos/Laliska/perun-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/Laliska/perun-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/Laliska/perun-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/Laliska/perun-services/issues/comments{/number}","contents_url":"https://api.github.com/repos/Laliska/perun-services/contents/{+path}","compare_url":"https://api.github.com/repos/Laliska/perun-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Laliska/perun-services/merges","archive_url":"https://api.github.com/repos/Laliska/perun-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Laliska/perun-services/downloads","issues_url":"https://api.github.com/repos/Laliska/perun-services/issues{/number}","pulls_url":"https://api.github.com/repos/Laliska/perun-services/pulls{/number}","milestones_url":"https://api.github.com/repos/Laliska/perun-services/milestones{/number}","notifications_url":"https://api.github.com/repos/Laliska/perun-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Laliska/perun-services/labels{/name}","releases_url":"https://api.github.com/repos/Laliska/perun-services/releases{/id}","created_at":"2015-05-29T13:46:19Z","updated_at":"2015-05-29T13:46:20Z","pushed_at":"2015-12-08T10:54:52Z","git_url":"git://github.com/Laliska/perun-services.git","ssh_url":"git@github.com:Laliska/perun-services.git","clone_url":"https://github.com/Laliska/perun-services.git","svn_url":"https://github.com/Laliska/perun-services","homepage":null,"size":207,"stargazers_count":0,"watchers_count":0,"language":"Perl","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":"CESNET:master","ref":"master","sha":"0d44954bee84c957ec5fb092a588c4fc747a559a","user":{"login":"CESNET","id":1116469,"avatar_url":"https://avatars.githubusercontent.com/u/1116469?v=3","gravatar_id":"","url":"https://api.github.com/users/CESNET","html_url":"https://github.com/CESNET","followers_url":"https://api.github.com/users/CESNET/followers","following_url":"https://api.github.com/users/CESNET/following{/other_user}","gists_url":"https://api.github.com/users/CESNET/gists{/gist_id}","starred_url":"https://api.github.com/users/CESNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CESNET/subscriptions","organizations_url":"https://api.github.com/users/CESNET/orgs","repos_url":"https://api.github.com/users/CESNET/repos","events_url":"https://api.github.com/users/CESNET/events{/privacy}","received_events_url":"https://api.github.com/users/CESNET/received_events","type":"Organization","site_admin":false},"repo":{"id":36226500,"name":"perun-services","full_name":"CESNET/perun-services","owner":{"login":"CESNET","id":1116469,"avatar_url":"https://avatars.githubusercontent.com/u/1116469?v=3","gravatar_id":"","url":"https://api.github.com/users/CESNET","html_url":"https://github.com/CESNET","followers_url":"https://api.github.com/users/CESNET/followers","following_url":"https://api.github.com/users/CESNET/following{/other_user}","gists_url":"https://api.github.com/users/CESNET/gists{/gist_id}","starred_url":"https://api.github.com/users/CESNET/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CESNET/subscriptions","organizations_url":"https://api.github.com/users/CESNET/orgs","repos_url":"https://api.github.com/users/CESNET/repos","events_url":"https://api.github.com/users/CESNET/events{/privacy}","received_events_url":"https://api.github.com/users/CESNET/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CESNET/perun-services","description":"","fork":false,"url":"https://api.github.com/repos/CESNET/perun-services","forks_url":"https://api.github.com/repos/CESNET/perun-services/forks","keys_url":"https://api.github.com/repos/CESNET/perun-services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CESNET/perun-services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CESNET/perun-services/teams","hooks_url":"https://api.github.com/repos/CESNET/perun-services/hooks","issue_events_url":"https://api.github.com/repos/CESNET/perun-services/issues/events{/number}","events_url":"https://api.github.com/repos/CESNET/perun-services/events","assignees_url":"https://api.github.com/repos/CESNET/perun-services/assignees{/user}","branches_url":"https://api.github.com/repos/CESNET/perun-services/branches{/branch}","tags_url":"https://api.github.com/repos/CESNET/perun-services/tags","blobs_url":"https://api.github.com/repos/CESNET/perun-services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CESNET/perun-services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CESNET/perun-services/git/refs{/sha}","trees_url":"https://api.github.com/repos/CESNET/perun-services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CESNET/perun-services/statuses/{sha}","languages_url":"https://api.github.com/repos/CESNET/perun-services/languages","stargazers_url":"https://api.github.com/repos/CESNET/perun-services/stargazers","contributors_url":"https://api.github.com/repos/CESNET/perun-services/contributors","subscribers_url":"https://api.github.com/repos/CESNET/perun-services/subscribers","subscription_url":"https://api.github.com/repos/CESNET/perun-services/subscription","commits_url":"https://api.github.com/repos/CESNET/perun-services/commits{/sha}","git_commits_url":"https://api.github.com/repos/CESNET/perun-services/git/commits{/sha}","comments_url":"https://api.github.com/repos/CESNET/perun-services/comments{/number}","issue_comment_url":"https://api.github.com/repos/CESNET/perun-services/issues/comments{/number}","contents_url":"https://api.github.com/repos/CESNET/perun-services/contents/{+path}","compare_url":"https://api.github.com/repos/CESNET/perun-services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CESNET/perun-services/merges","archive_url":"https://api.github.com/repos/CESNET/perun-services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CESNET/perun-services/downloads","issues_url":"https://api.github.com/repos/CESNET/perun-services/issues{/number}","pulls_url":"https://api.github.com/repos/CESNET/perun-services/pulls{/number}","milestones_url":"https://api.github.com/repos/CESNET/perun-services/milestones{/number}","notifications_url":"https://api.github.com/repos/CESNET/perun-services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CESNET/perun-services/labels{/name}","releases_url":"https://api.github.com/repos/CESNET/perun-services/releases{/id}","created_at":"2015-05-25T11:06:27Z","updated_at":"2015-08-06T07:22:27Z","pushed_at":"2015-12-08T10:54:53Z","git_url":"git://github.com/CESNET/perun-services.git","ssh_url":"git@github.com:CESNET/perun-services.git","clone_url":"https://github.com/CESNET/perun-services.git","svn_url":"https://github.com/CESNET/perun-services","homepage":null,"size":231,"stargazers_count":2,"watchers_count":2,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CESNET/perun-services/pulls/37"},"html":{"href":"https://github.com/CESNET/perun-services/pull/37"},"issue":{"href":"https://api.github.com/repos/CESNET/perun-services/issues/37"},"comments":{"href":"https://api.github.com/repos/CESNET/perun-services/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/CESNET/perun-services/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/CESNET/perun-services/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CESNET/perun-services/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/CESNET/perun-services/statuses/38b27e18668b49f7a35ff88c1751caa0159c7b3f"}}}}