{"action":"created","comment":{"url":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/comments/60538021","id":60538021,"diff_hunk":"@@ -0,0 +1,447 @@\n+package ru.spbau.mit.torrent.client;\n+\n+import ru.spbau.mit.torrent.client.request.GetRequest;\n+import ru.spbau.mit.torrent.client.response.StatResponse;\n+import ru.spbau.mit.torrent.tracker.request.ListRequest;\n+import ru.spbau.mit.torrent.tracker.request.UpdateRequest;\n+import ru.spbau.mit.torrent.tracker.request.UploadRequest;\n+import ru.spbau.mit.torrent.tracker.response.ListResponse;\n+import ru.spbau.mit.torrent.tracker.response.SourcesResponse;\n+import ru.spbau.mit.torrent.tracker.response.UploadResponse;\n+\n+import java.io.*;\n+import java.net.*;\n+import java.nio.file.Files;\n+import java.nio.file.Path;\n+import java.nio.file.Paths;\n+import java.util.*;\n+import java.util.concurrent.ExecutorService;\n+import java.util.concurrent.Executors;\n+import java.util.concurrent.Future;\n+import java.util.concurrent.atomic.AtomicBoolean;\n+\n+public class Client implements Runnable {\n+    private static final Long DEFAULT_PART_SIZE = 8192L;\n+    private static final int DEFAULT_PORT = 6666;\n+    private static final int DEFAULT_THREADS_NUM = 30;\n+    private static final InetSocketAddress DEFAULT_TRACKER_ADRESS = new InetSocketAddress(\"127.0.0.1\", 8081);\n+    private static final Path DEFAULT_FILE_MANAGER_PROPS_PATH = Paths.get(\"src/test/resources/file_manager\"\n+            + \".properties\");\n+    private static final ExecutorService DEFAULT_CONNECTION_EXECUTOR = Executors\n+            .newFixedThreadPool(DEFAULT_THREADS_NUM);\n+\n+\n+    private SharedComponents sharedComponents = new SharedComponents();\n+    private int port;\n+    private InetSocketAddress trackerAdress = null;\n+    private ExecutorService connectionExecutor;\n+\n+    private ServerSocket serverSocket;\n+    private BufferedReader controlInput;\n+\n+    private Thread seedControlThread;\n+    private Thread updateControlThread;\n+    private Thread downloadControlThread;\n+\n+    private boolean shuttingDown = false;\n+    private AtomicBoolean haveDownloadedAllFiles = new AtomicBoolean(false);\n+\n+    public Client(PrintStream log, InputStream controlInput, Properties props) {\n+        sharedComponents.setLog(log);\n+        this.controlInput = new BufferedReader(new InputStreamReader(controlInput));\n+        setupDefaults();\n+        loadProps(props);\n+    }\n+\n+    private void loadProps(Properties properties) {\n+        if (properties.containsKey(\"tracker_port\")) {\n+            trackerAdress = new InetSocketAddress(trackerAdress.getAddress(), Integer.parseInt(properties\n+                    .getProperty(\"tracker_port\")));\n+        }\n+        if (properties.containsKey(\"tracker_host\")) {\n+            try {\n+                trackerAdress = new InetSocketAddress(InetAddress.getByName(properties.getProperty(\n+                        \"tracker_host\")),\n+                        trackerAdress.getPort());\n+            } catch (UnknownHostException e) {\n+                e.printStackTrace(sharedComponents.getLog());\n+            }\n+        }\n+        if (properties.containsKey(\"port\")) {\n+            port = Integer.parseInt(properties.getProperty(\"port\"));\n+        }\n+        if (properties.containsKey(\"file_manager_path\")) {\n+            try {\n+                sharedComponents.setFilesManager(new FilesManager(Paths.get(properties.getProperty(\n+                        \"file_manager_path\")), DEFAULT_PART_SIZE));\n+            } catch (IOException e) {\n+                e.printStackTrace(sharedComponents.getLog());\n+            }\n+        }\n+        if (properties.containsKey(\"threads\")) {\n+            connectionExecutor = Executors.newFixedThreadPool(Integer.parseInt(properties.getProperty(\"threads\")));\n+        }\n+    }\n+\n+    private void setupDefaults() {\n+        port = DEFAULT_PORT;\n+        try {\n+            sharedComponents.setFilesManager(new FilesManager(DEFAULT_FILE_MANAGER_PROPS_PATH, DEFAULT_PART_SIZE));\n+        } catch (IOException e) {\n+            e.printStackTrace(sharedComponents.log);\n+        }\n+        connectionExecutor = DEFAULT_CONNECTION_EXECUTOR;\n+        trackerAdress = DEFAULT_TRACKER_ADRESS;\n+    }\n+\n+    private void closeAll() {\n+        shuttingDown = true;\n+        try {\n+            sharedComponents.getFilesManager().saveToDrive();\n+        } catch (IOException e) {\n+            e.printStackTrace(sharedComponents.getLog());\n+        }\n+\n+        try {\n+            serverSocket.close();\n+            sharedComponents.log.println(\"success closed seed socket\");\n+            seedControlThread.join();\n+        } catch (IOException e) {\n+            sharedComponents.log.println(\"failed close socket, now kill child using stop\");\n+            seedControlThread.interrupt();\n+        } catch (InterruptedException e) {\n+            sharedComponents.log.println(\"failed join child, now kill child using stop\");\n+            seedControlThread.interrupt();\n+            connectionExecutor.shutdownNow();\n+        }\n+\n+        updateControlThread.interrupt();\n+        sharedComponents.log.println(\"OK\");\n+    }\n+\n+    public ListResponse listRequestToTracker() throws IOException {\n+        TrackerConnection connection = new TrackerConnection(trackerAdress);\n+        connection.getRequestWriter().writeRequest(new ListRequest());\n+\n+        ListResponse response = connection.getResponseReader().nextListResponse();\n+\n+        try {\n+            connection.closeAll();\n+        } catch (IOException e) {\n+            e.printStackTrace(sharedComponents.getLog());\n+        }\n+\n+        return response;\n+    }\n+\n+    public boolean haveAllFilesDownloaded() {\n+        return haveDownloadedAllFiles.get();\n+    }\n+\n+    public UploadResponse uploadNewFileToTracker(Path path) throws IOException {\n+        TrackerConnection connection = new TrackerConnection(trackerAdress);\n+\n+        UploadRequest request = new UploadRequest();\n+        request.setName(path.getFileName().toString());\n+        request.setSize(Files.size(path));\n+\n+        connection.getRequestWriter().writeRequest(request);\n+\n+        UploadResponse response = connection.getResponseReader().nextUploadResponse();\n+\n+        try {\n+            connection.closeAll();\n+        } catch (IOException e) {\n+            e.printStackTrace(sharedComponents.getLog());\n+        }\n+\n+        return response;\n+    }\n+\n+    public SourcesResponse getFileSeeds(Integer id) {\n+        return new FileInfoSeedCollector(sharedComponents, trackerAdress, id).call();\n+    }\n+\n+    public void addNewDistributionFile(Integer fileId, Path path) throws IOException {\n+        sharedComponents.getFilesManager().insertNewDistributedFile(fileId, path);\n+        sharedComponents.getFilesManager().saveToDrive();\n+    }\n+\n+    public void removeDistribution(Integer fileId) throws IOException {\n+        sharedComponents.getFilesManager().removeDistributedFile(fileId);\n+        sharedComponents.getFilesManager().saveToDrive();\n+    }\n+\n+    public void removeDistributionPart(Integer fileId, Integer partId) throws IOException {\n+        sharedComponents.getFilesManager().removeDistributedFileEntry(fileId, partId);\n+        sharedComponents.getFilesManager().saveToDrive();\n+    }\n+\n+    public void addNewReadyToDownloadFile(Integer fileId, Long size, Path downloadPath) throws IOException {\n+        sharedComponents.getFilesManager().insertNewReadyToDownloadFile(fileId, new FilesManager\n+                .ReadyToDownloadFilesEntry(downloadPath, size));\n+        sharedComponents.getFilesManager().saveToDrive();\n+    }\n+\n+    public StatResponse getFilePartsInfo(Integer fileId, InetSocketAddress seed) {\n+        return new FileInfoPartsCollector(seed, sharedComponents, fileId).call();\n+    }\n+\n+    public void sendSeedInfoToTracker() {\n+        try {\n+            sharedComponents.log.println(\"updating info to tracker\");\n+            TrackerConnection connection = new TrackerConnection(trackerAdress);\n+            UpdateRequest request = new UpdateRequest();\n+            request.setIds(sharedComponents.getFilesManager()\n+                    .getAvailableFileIds());\n+            request.setSeedPort((short) port);\n+            connection.getRequestWriter().writeRequest(request);\n+            connection.closeAll();\n+        } catch (IOException e) {\n+            e.printStackTrace(sharedComponents.log);\n+        }\n+    }\n+\n+    @Override\n+    public void run() {\n+        try {\n+            serverSocket = new ServerSocket(port);\n+        } catch (IOException e) {\n+            e.printStackTrace(sharedComponents.log);\n+            return;\n+        }\n+        sharedComponents.log.println(\"success open tracker socket\");\n+\n+        seedControlThread = new Thread(new SeedControlRunnable());\n+        updateControlThread = new Thread(new TrackerUpdaterRunnable());\n+        downloadControlThread = new Thread(new DownloadManagerRunnable());\n+\n+        seedControlThread.start();\n+        updateControlThread.start();\n+        downloadControlThread.start();\n+\n+        while (true) {\n+            String command;\n+            try {\n+                command = controlInput.readLine();\n+                if (command == null) {\n+                    break;\n+                }\n+            } catch (IOException e) {\n+                e.printStackTrace(sharedComponents.log);\n+                continue;\n+            }\n+\n+            if (command.equals(\"quit\")) {\n+                break;\n+            }\n+        }\n+\n+        closeAll();\n+    }\n+\n+    public class SharedComponents {\n+\n+        private PrintStream log;\n+        private FilesManager filesManager;\n+\n+        public FilesManager getFilesManager() {\n+            return filesManager;\n+        }\n+\n+        public void setFilesManager(FilesManager filesManager) {\n+            this.filesManager = filesManager;\n+        }\n+\n+        public PrintStream getLog() {\n+            return log;\n+        }\n+\n+        public void setLog(PrintStream log) {\n+            this.log = log;\n+        }\n+    }\n+\n+\n+    private class DownloadManagerRunnable implements Runnable {\n+        private Map<Integer, FilesManager.ReadyToDownloadFilesEntry> readyToDownloadFiles;\n+        private Map<Integer, Future<?>> pendingSeedsInfoTasks = new HashMap<>();\n+        private Map<Integer, Map<InetSocketAddress, Future<StatResponse>>> pendingPartsInfoTasks = new HashMap<>();\n+        private Map<Integer, Map<Integer, Future<?>>> pendingDownloadTasks = new HashMap<>();\n+        private Map<Integer, Future<?>> pendingMergeTasks = new HashMap<>();\n+\n+        private Path getPartPath(Path downloadPath, Integer partId) {\n+            return Paths.get(downloadPath.toString() + \"_\" + String.valueOf(partId) + \".part\");","path":"src/main/java/ru/spbau/mit/torrent/client/Client.java","position":274,"original_position":274,"commit_id":"efc7327f9735cd7edf7daf9ae54441bb093dde5f","original_commit_id":"efc7327f9735cd7edf7daf9ae54441bb093dde5f","user":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"body":"В общем, что то разумное есть и там, и там, поэтому давайте я такое сделаю\r\n1) Размер .part файла - разумный ( в районе 1-2 GB)\r\n2) .part файл будет содержать несколько частей","created_at":"2016-04-21T07:44:13Z","updated_at":"2016-04-21T07:44:13Z","html_url":"https://github.com/sanya1111/assigments2-torrent/pull/3#discussion_r60538021","pull_request_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/comments/60538021"},"html":{"href":"https://github.com/sanya1111/assigments2-torrent/pull/3#discussion_r60538021"},"pull_request":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/3","id":65927302,"html_url":"https://github.com/sanya1111/assigments2-torrent/pull/3","diff_url":"https://github.com/sanya1111/assigments2-torrent/pull/3.diff","patch_url":"https://github.com/sanya1111/assigments2-torrent/pull/3.patch","issue_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues/3","number":3,"state":"open","locked":false,"title":"Java02. Dev01, Маркелов, подгруппа 1 ","user":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"body":"@dzharkov ","created_at":"2016-04-10T23:37:30Z","updated_at":"2016-04-21T07:44:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"763ef249681029f1ba9268352f2728211e287004","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/3/commits","review_comments_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/3/comments","review_comment_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues/3/comments","statuses_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/statuses/efc7327f9735cd7edf7daf9ae54441bb093dde5f","head":{"label":"sanya1111:dev","ref":"dev","sha":"efc7327f9735cd7edf7daf9ae54441bb093dde5f","user":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"repo":{"id":55927851,"name":"assigments2-torrent","full_name":"sanya1111/assigments2-torrent","owner":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanya1111/assigments2-torrent","description":"","fork":false,"url":"https://api.github.com/repos/sanya1111/assigments2-torrent","forks_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/forks","keys_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/teams","hooks_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/hooks","issue_events_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues/events{/number}","events_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/events","assignees_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/assignees{/user}","branches_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/branches{/branch}","tags_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/tags","blobs_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/statuses/{sha}","languages_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/languages","stargazers_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/stargazers","contributors_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/contributors","subscribers_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/subscribers","subscription_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/subscription","commits_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/contents/{+path}","compare_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/merges","archive_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/downloads","issues_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues{/number}","pulls_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls{/number}","milestones_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/milestones{/number}","notifications_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/labels{/name}","releases_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/releases{/id}","deployments_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/deployments","created_at":"2016-04-10T23:29:04Z","updated_at":"2016-04-10T23:29:55Z","pushed_at":"2016-04-10T23:37:30Z","git_url":"git://github.com/sanya1111/assigments2-torrent.git","ssh_url":"git@github.com:sanya1111/assigments2-torrent.git","clone_url":"https://github.com/sanya1111/assigments2-torrent.git","svn_url":"https://github.com/sanya1111/assigments2-torrent","homepage":null,"size":235,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sanya1111:master","ref":"master","sha":"242b2a6797e016a2481b6ba785a65e55b6965c57","user":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"repo":{"id":55927851,"name":"assigments2-torrent","full_name":"sanya1111/assigments2-torrent","owner":{"login":"sanya1111","id":8517156,"avatar_url":"https://avatars.githubusercontent.com/u/8517156?v=3","gravatar_id":"","url":"https://api.github.com/users/sanya1111","html_url":"https://github.com/sanya1111","followers_url":"https://api.github.com/users/sanya1111/followers","following_url":"https://api.github.com/users/sanya1111/following{/other_user}","gists_url":"https://api.github.com/users/sanya1111/gists{/gist_id}","starred_url":"https://api.github.com/users/sanya1111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanya1111/subscriptions","organizations_url":"https://api.github.com/users/sanya1111/orgs","repos_url":"https://api.github.com/users/sanya1111/repos","events_url":"https://api.github.com/users/sanya1111/events{/privacy}","received_events_url":"https://api.github.com/users/sanya1111/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanya1111/assigments2-torrent","description":"","fork":false,"url":"https://api.github.com/repos/sanya1111/assigments2-torrent","forks_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/forks","keys_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/teams","hooks_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/hooks","issue_events_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues/events{/number}","events_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/events","assignees_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/assignees{/user}","branches_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/branches{/branch}","tags_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/tags","blobs_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/statuses/{sha}","languages_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/languages","stargazers_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/stargazers","contributors_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/contributors","subscribers_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/subscribers","subscription_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/subscription","commits_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/contents/{+path}","compare_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/merges","archive_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/downloads","issues_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues{/number}","pulls_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls{/number}","milestones_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/milestones{/number}","notifications_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/labels{/name}","releases_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/releases{/id}","deployments_url":"https://api.github.com/repos/sanya1111/assigments2-torrent/deployments","created_at":"2016-04-10T23:29:04Z","updated_at":"2016-04-10T23:29:55Z","pushed_at":"2016-04-10T23:37:30Z","git_url":"git://github.com/sanya1111/assigments2-torrent.git","ssh_url":"git@github.com:sanya1111/assigments2-torrent.git","clone_url":"https://github.com/sanya1111/assigments2-torrent.git","svn_url":"https://github.com/sanya1111/assigments2-torrent","homepage":null,"size":235,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/3"},"html":{"href":"https://github.com/sanya1111/assigments2-torrent/pull/3"},"issue":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues/3"},"comments":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/sanya1111/assigments2-torrent/statuses/efc7327f9735cd7edf7daf9ae54441bb093dde5f"}}}}