{"action":"created","comment":{"url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/comments/243973419","pull_request_review_id":187867598,"id":243973419,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0Mzk3MzQxOQ==","diff_hunk":"@@ -0,0 +1,395 @@\n+#define _CRT_SECURE_NO_WARNINGS\n+#include <windows.h>\n+#include <stdio.h>\n+#include <stdlib.h>\n+#include <time.h>\n+\n+typedef struct \n+{\n+    wchar_t name [2048];\n+    ULONGLONG size;\n+} files;\n+\n+void getpath (wchar_t d[2048])\n+{\n+    char inp [2048];\n+    fgets (inp, sizeof(inp), stdin);\n+    inp[strlen(inp) - 1] = '\\0';\n+    swprintf (d, 2048, L\"%hs\", inp);\n+}\n+\n+void swapfiles (files *p, int i, int j)\n+{\n+    files tmp = p[i];\n+    p[i] = p[j];\n+    p[j] = tmp;\n+}\n+\n+void outstraight (files *p, int n)\n+{\n+    for (int i = 0; i < n; i++)\n+    {\n+        wprintf(L\"%s \", p[i].name);\n+        printf (\"(%d bytes)\\n\", p[i].size);\n+    }\n+    printf (\"\\n\");\n+}\n+\n+void outinverted (files *p, int n)\n+{\n+    for (int i = n - 1; i >= 0; i--)\n+    {\n+        wprintf (L\"%s \", p[i].name);\n+        printf (\"(%d bytes)\\n\", p[i].size);\n+    }\n+    printf (\"\\n\");\n+}\n+\n+int CountFiles (const wchar_t *sDir) \n+{\n+    WIN32_FIND_DATA fdFile;\n+    HANDLE hFind = NULL; \n+    wchar_t sPath[2048]; \n+    wsprintf(sPath, L\"%s\\\\*.*\", sDir);\n+    if ((hFind = FindFirstFile(sPath, &fdFile)) == INVALID_HANDLE_VALUE) \n+    {    \n+        wprintf(L\"Path not found: [%s]\\n\\n\", sDir); \n+        return -1; \n+    }\n+\n+    int nfiles = 0;\n+    do\n+        if (wcscmp(fdFile.cFileName, L\".\") != 0 && wcscmp(fdFile.cFileName, L\"..\") != 0)\n+            nfiles++;\n+    while(FindNextFile(hFind, &fdFile));\n+    FindClose(hFind);\n+    return nfiles;\n+} \n+\n+void GetContent(const wchar_t *sDir, files *p) \n+{ \n+    WIN32_FIND_DATA fdFile;       \n+    HANDLE hFind = NULL;\n+    wchar_t sPath[2048]; \n+    wsprintf(sPath, L\"%s\\\\*.*\", sDir); \n+    if ((hFind = FindFirstFile(sPath, &fdFile)) != INVALID_HANDLE_VALUE) \n+    { \n+        int n = 0;\n+        do\n+        { \n+            if (wcscmp(fdFile.cFileName, L\".\") != 0 && wcscmp(fdFile.cFileName, L\"..\") != 0)\n+            {\n+                                                                 \n+                ULONGLONG fileSize = fdFile.nFileSizeHigh;\n+                fileSize <<= sizeof(fdFile.nFileSizeHigh) * 8;\n+                fileSize |= fdFile.nFileSizeLow;\n+                wsprintf(sPath, L\"%s\\\\%s\", sDir, fdFile.cFileName);\n+                wsprintf(p[n].name, L\"%s\", sPath);\n+                p[n].size = fileSize;\n+                n++;\n+            }\n+        }\n+        while (FindNextFile(hFind, &fdFile));\n+        FindClose(hFind);\n+    }\n+}\n+// ����������","path":"kizaev_dd/Practice/Practice5/main.c","position":96,"original_position":96,"commit_id":"1281161d04ffde05aa80a6b38bf5d128da569a40","original_commit_id":"1281161d04ffde05aa80a6b38bf5d128da569a40","user":{"login":"valentina-kustikova","id":6958019,"node_id":"MDQ6VXNlcjY5NTgwMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/6958019?v=4","gravatar_id":"","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"body":"@DmitryKizaev, что-то с кодировкой произошло.","created_at":"2018-12-26T10:04:20Z","updated_at":"2018-12-26T10:13:20Z","html_url":"https://github.com/valentina-kustikova/mp1-practice/pull/271#discussion_r243973419","pull_request_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/271","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/comments/243973419"},"html":{"href":"https://github.com/valentina-kustikova/mp1-practice/pull/271#discussion_r243973419"},"pull_request":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/271"}}},"pull_request":{"url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/271","id":240912812,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwOTEyODEy","html_url":"https://github.com/valentina-kustikova/mp1-practice/pull/271","diff_url":"https://github.com/valentina-kustikova/mp1-practice/pull/271.diff","patch_url":"https://github.com/valentina-kustikova/mp1-practice/pull/271.patch","issue_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/271","number":271,"state":"open","locked":false,"title":" Кизаев Д.Д. Практическое задание 5","user":{"login":"DmitryKizaev","id":43135840,"node_id":"MDQ6VXNlcjQzMTM1ODQw","avatar_url":"https://avatars0.githubusercontent.com/u/43135840?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryKizaev","html_url":"https://github.com/DmitryKizaev","followers_url":"https://api.github.com/users/DmitryKizaev/followers","following_url":"https://api.github.com/users/DmitryKizaev/following{/other_user}","gists_url":"https://api.github.com/users/DmitryKizaev/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryKizaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryKizaev/subscriptions","organizations_url":"https://api.github.com/users/DmitryKizaev/orgs","repos_url":"https://api.github.com/users/DmitryKizaev/repos","events_url":"https://api.github.com/users/DmitryKizaev/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryKizaev/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-26T04:28:29Z","updated_at":"2018-12-26T10:13:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a0fc46b47fcbac979f5f50b1f5cac68ce561653","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/271/commits","review_comments_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/271/comments","review_comment_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/271/comments","statuses_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/statuses/1281161d04ffde05aa80a6b38bf5d128da569a40","head":{"label":"DmitryKizaev:Practice5","ref":"Practice5","sha":"1281161d04ffde05aa80a6b38bf5d128da569a40","user":{"login":"DmitryKizaev","id":43135840,"node_id":"MDQ6VXNlcjQzMTM1ODQw","avatar_url":"https://avatars0.githubusercontent.com/u/43135840?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryKizaev","html_url":"https://github.com/DmitryKizaev","followers_url":"https://api.github.com/users/DmitryKizaev/followers","following_url":"https://api.github.com/users/DmitryKizaev/following{/other_user}","gists_url":"https://api.github.com/users/DmitryKizaev/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryKizaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryKizaev/subscriptions","organizations_url":"https://api.github.com/users/DmitryKizaev/orgs","repos_url":"https://api.github.com/users/DmitryKizaev/repos","events_url":"https://api.github.com/users/DmitryKizaev/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryKizaev/received_events","type":"User","site_admin":false},"repo":{"id":158342232,"node_id":"MDEwOlJlcG9zaXRvcnkxNTgzNDIyMzI=","name":"mp1-practice","full_name":"DmitryKizaev/mp1-practice","private":false,"owner":{"login":"DmitryKizaev","id":43135840,"node_id":"MDQ6VXNlcjQzMTM1ODQw","avatar_url":"https://avatars0.githubusercontent.com/u/43135840?v=4","gravatar_id":"","url":"https://api.github.com/users/DmitryKizaev","html_url":"https://github.com/DmitryKizaev","followers_url":"https://api.github.com/users/DmitryKizaev/followers","following_url":"https://api.github.com/users/DmitryKizaev/following{/other_user}","gists_url":"https://api.github.com/users/DmitryKizaev/gists{/gist_id}","starred_url":"https://api.github.com/users/DmitryKizaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DmitryKizaev/subscriptions","organizations_url":"https://api.github.com/users/DmitryKizaev/orgs","repos_url":"https://api.github.com/users/DmitryKizaev/repos","events_url":"https://api.github.com/users/DmitryKizaev/events{/privacy}","received_events_url":"https://api.github.com/users/DmitryKizaev/received_events","type":"User","site_admin":false},"html_url":"https://github.com/DmitryKizaev/mp1-practice","description":"Репозиторий для сдачи практических заданий по курсу Методы программирования","fork":true,"url":"https://api.github.com/repos/DmitryKizaev/mp1-practice","forks_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/forks","keys_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/teams","hooks_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/hooks","issue_events_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/issues/events{/number}","events_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/events","assignees_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/assignees{/user}","branches_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/branches{/branch}","tags_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/tags","blobs_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/languages","stargazers_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/stargazers","contributors_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/contributors","subscribers_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/subscribers","subscription_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/subscription","commits_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/contents/{+path}","compare_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/merges","archive_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/downloads","issues_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/issues{/number}","pulls_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/labels{/name}","releases_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/releases{/id}","deployments_url":"https://api.github.com/repos/DmitryKizaev/mp1-practice/deployments","created_at":"2018-11-20T06:35:32Z","updated_at":"2018-11-20T06:35:35Z","pushed_at":"2018-12-26T04:26:45Z","git_url":"git://github.com/DmitryKizaev/mp1-practice.git","ssh_url":"git@github.com:DmitryKizaev/mp1-practice.git","clone_url":"https://github.com/DmitryKizaev/mp1-practice.git","svn_url":"https://github.com/DmitryKizaev/mp1-practice","homepage":null,"size":734,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"valentina-kustikova:master","ref":"master","sha":"a7d8a56b414813e796a0b0f3b2a79c8fb13142e5","user":{"login":"valentina-kustikova","id":6958019,"node_id":"MDQ6VXNlcjY5NTgwMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/6958019?v=4","gravatar_id":"","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"repo":{"id":148051583,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgwNTE1ODM=","name":"mp1-practice","full_name":"valentina-kustikova/mp1-practice","private":false,"owner":{"login":"valentina-kustikova","id":6958019,"node_id":"MDQ6VXNlcjY5NTgwMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/6958019?v=4","gravatar_id":"","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"html_url":"https://github.com/valentina-kustikova/mp1-practice","description":"Репозиторий для сдачи практических заданий по курсу Методы программирования","fork":false,"url":"https://api.github.com/repos/valentina-kustikova/mp1-practice","forks_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/forks","keys_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/teams","hooks_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/hooks","issue_events_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/events{/number}","events_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/events","assignees_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/assignees{/user}","branches_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/branches{/branch}","tags_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/tags","blobs_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/languages","stargazers_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/stargazers","contributors_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/contributors","subscribers_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/subscribers","subscription_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/subscription","commits_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/contents/{+path}","compare_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/merges","archive_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/downloads","issues_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues{/number}","pulls_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/labels{/name}","releases_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/releases{/id}","deployments_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/deployments","created_at":"2018-09-09T17:58:57Z","updated_at":"2018-12-26T07:11:13Z","pushed_at":"2018-12-26T08:55:53Z","git_url":"git://github.com/valentina-kustikova/mp1-practice.git","ssh_url":"git@github.com:valentina-kustikova/mp1-practice.git","clone_url":"https://github.com/valentina-kustikova/mp1-practice.git","svn_url":"https://github.com/valentina-kustikova/mp1-practice","homepage":null,"size":4517,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"archived":false,"open_issues_count":153,"license":null,"forks":39,"open_issues":153,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/271"},"html":{"href":"https://github.com/valentina-kustikova/mp1-practice/pull/271"},"issue":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/271"},"comments":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/271/comments"},"review_comments":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/271/comments"},"review_comment":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/271/commits"},"statuses":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/statuses/1281161d04ffde05aa80a6b38bf5d128da569a40"}},"author_association":"NONE"}}
{"actor":{"display_login":"valentina-kustikova"}}