{"action":"created","comment":{"url":"https://api.github.com/repos/Dariush59/acr/pulls/comments/184853046","pull_request_review_id":116136111,"id":184853046,"diff_hunk":"@@ -0,0 +1,284 @@\n+<?php\n+\n+abstract class base_optimization\n+{\n+  public $concrete_network_setting;\n+\n+  /** determines optimization type. has to be set in sub classes*/\n+  protected $opt_type;\n+\n+  /** array mit allen Kampagnen die nicht durch die Filter gefallen sind */\n+  protected $data;\n+\n+  /** current campaign that is being checked/optimized */\n+  public $row;\n+\n+  /**\n+   * @var MDB2_Driver_Mysql\n+   */\n+  public $db;\n+\n+  /** rpc Objects */\n+  protected $campObj, $campOptimization, $campLandingpages, $contCost;\n+\n+  /** When did the optimization take place */\n+  public $optimization_runtime;\n+\n+  /** Posttracking Settings */\n+  protected $period = '0';\n+\n+  protected $group = 'banner';\n+\n+  protected $type = 'html';\n+\n+  protected $debugmode = false;\n+\n+  /**\n+   * Activates or deactivates debug mode\n+   *\n+   * @param boolean $mode\n+   */\n+  public function setDebugMode($mode)\n+  {\n+    $this->debugmode = $mode;\n+  }\n+\n+  public function __construct()\n+  {\n+    $this->campLandingpages = adition_base::getInstance('campaignlandingpages');\n+    $this->campObj = adition_base::getInstance('campaigns');\n+    $this->campOptimization = adition_base::getInstance('campaignoptimizations');\n+    $this->contCost = adition_base::getInstance('contentunitcosts');\n+  }\n+\n+  public function get_posttracking_report()\n+  {\n+    $this->getRow();\n+    $pages = $this->campLandingpages->getAll(array('campaign_id' => $this->row['campaign_id']));\n+\n+\n+    $landingpageids = array();\n+    foreach ($pages as $page) {\n+      $landingpageids[] = $page['landingpage_id'];\n+    }\n+\n+    $today = date('Y-m-d');\n+    $this->get_start_date_for_post_report();\n+\n+    $params['campaign_ids'] = array($this->row['campaign_id']);\n+    $params['landingpage_ids'] = $landingpageids;\n+    $params['group'] = $this->group;\n+    $params['type'] = $this->type;\n+    $params['conversion'] = false;\n+\n+    $period = null;\n+\n+    $report = new soapreport();\n+    $rows = $report->getReport(\n+      'urn:Adition/Tracking/PostReport2',\n+      $this->row['postreport_startdate'],\n+      $today,\n+      $params,\n+      $this->row['network_id'],\n+      $params,\n+      $period,\n+      'bw'\n+    );\n+\n+    $selected_countingspots = $this->getCountingspots();\n+    $sums = array();\n+    $newdata['rows'] = array();\n+    $newdata['totalsum'] = array();\n+\n+    if (is_array($rows['days']) && !empty($selected_countingspots)) {\n+      $index = 0;\n+      foreach ($rows['days'] as $date => $date_values) {\n+        $index += 1;\n+        // LandingpageID\n+        foreach ($date_values as $landingpage_id => $landingpage_values) {\n+          $landingpage_data = adition_base:: getInstance('landingpages')->getOne($landingpage_id);\n+          foreach ($landingpage_values as $countingspot_key => $countingspot_value) {\n+            // Check whether it is a selective counting spot\n+            if (@in_array($countingspot_key, $selected_countingspots)) {\n+              $countingspot_data = adition_base:: getInstance('countingspots')->getOne($countingspot_key);\n+              foreach ($countingspot_value as $cu_key => $cu_value) {\n+                $cu_data = adition_base:: getInstance('contentunits')->getOne($cu_key);\n+                $website = adition_base:: getInstance('websites')->getOne($cu_data['website_id']);\n+                foreach ($cu_value as $banner_id => $banner_value) {\n+                  $banner_data = adition_base:: getInstance('banners')->getAll(\n+                    array('id' => $banner_id, 'with_server' => false)\n+                  );\n+                  $banner_data = $banner_data[0];\n+                  $campaignbanners = adition_base:: getInstance('campaignbanners')->getCampaigns($banner_data['id']);\n+                  $campaign_id = $campaignbanners[$banner_data['id']][0];\n+\n+                  //$campaign_costs = adition_base::getInstance('campaigncosts')->getOne($campaign_id);\n+\n+                  $newrow = array(\n+                    'date' => $date,\n+                    'landingpage_name' => $landingpage_data['name'],\n+                    'trackingspot_name' => $countingspot_data['name'],\n+                    'contentunit_name' => $cu_data['name'],\n+                    'contentunit_id' => $cu_data['id'],\n+                    'website_name' => $website['name'],\n+                    'website_id' => 'ID_' . $website['id'],\n+                    'banner_name' => $banner_data['name'],\n+                    'banner_id' => 'ID_' . $banner_data['id'],\n+                    'campaign_id' => $campaign_id,\n+                    'campaign_costs' => ''/* $campaign_costs */,\n+                  );\n+                  $newrow['visits_clicks'] = $this->convertNumber($banner_value['visits']['clicks']);\n+                  $sums[$newrow[$key]]['visits_clicks'] += $newrow['visits_clicks'];\n+                  $newrow['visits_views'] = $this->convertNumber($banner_value['visits']['views']);\n+                  $sums[$newrow[$key]]['visits_views'] += $newrow['visits_views'];\n+                  $newrow['unique_clicks'] = $this->convertNumber($banner_value['unique']['clicks']);\n+                  $sums[$newrow[$key]]['unique_clicks'] += $newrow['unique_clicks'];\n+                  $newrow['unique_views'] = $this->convertNumber($banner_value['unique']['views']);\n+                  $sums[$newrow[$key]]['unique_views'] += $newrow['unique_views'];\n+                  $newrow['data_clicks'] = $this->convertNumber($banner_value['data']['clicks']);\n+                  $sums[$newrow[$key]]['data_clicks'] += $newrow['data_clicks'];\n+                  $newrow['data_views'] = $this->convertNumber($banner_value['data']['views']);\n+                  $sums[$newrow[$key]]['data_views'] += $newrow['data_views'];\n+                  $newdata['rows'][] = $newrow;\n+                }\n+              }\n+            }\n+          }\n+        }\n+      }\n+    }\n+    foreach ($sums as $sum) {\n+      foreach ($sum as $key => $value) {\n+        $totalsum[$key] += $value;\n+      }\n+    }\n+    $this->row['cpl_by_contentunit'] = $newdata['rows'];\n+    $this->row['cpl'] = $totalsum['unique_clicks'] + $totalsum['unique_views'];\n+  }\n+  protected function convertNumber($a)\n+  {\n+    if (!isset($a) or $a == null) {\n+      $a = 0;\n+    }\n+    return $a;\n+  }\n+\n+  protected function replaceCampaign()\n+  {\n+    try {\n+      $this->set_priority_if_not_in_network_range();\n+      $this->row['datetime'] = true;\n+\n+      if (!$this->debugmode) {\n+        if (isset($this->row['campaign_data']['priority_hacked'])) {\n+          $this->row['campaign_data']['weight'] = $this->row['campaign_data']['priority'];\n+          $this->row['campaign_data']['priority'] = $this->row['campaign_data']['priority_hacked'];\n+          unset($this->row['campaign_data']['priority_hacked']);\n+        }\n+\n+        foreach (array('priority', 'weight') as $keyToBeCasted) {\n+          if (isset($this->row['campaign_data'][$keyToBeCasted])) {\n+            $this->row['campaign_data'][$keyToBeCasted] = (int)$this->row['campaign_data'][$keyToBeCasted];\n+          }\n+        }\n+\n+        $this->campObj->replaceObj($this->row['campaign_data']);\n+\n+        // Because the database field `object` is too small,\n+        // only relevant data should be saved into the `campaignoptimizationhistory` table\n+        $data = array(\n+          'order_name' => $this->row['order_name'],\n+          'lastrun' => $this->row['lastrun'],\n+          'company_name' => $this->row['company_name'],\n+          'concrete_cost' => $this->row['concrete_cost'],\n+          'type' => $this->row['type'],\n+          'costs' => $this->row['costs'],\n+          'costtype' => $this->row['costtype'],\n+          'ecpm' => $this->row['ecpm'],\n+          'new_priority' => $this->row['new_priority'],\n+          'old_priority' => $this->row['old_priority'],\n+          'calc_priority' => $this->row['calc_priority'],\n+          'campaign_data' => array(\n+            'id' => $this->row['campaign_data']['id'],\n+            'priority' => $this->row['campaign_data']['priority'],\n+            'order_id' => $this->row['campaign_data']['order_id'],\n+            'name' => $this->row['campaign_data']['name'],\n+            'type' => $this->row['campaign_data']['type'],\n+            'views_total' => $this->row['campaign_data']['views_total'],\n+            'clicks_total' => $this->row['campaign_data']['clicks_total']\n+          ),\n+          'report' => array(\n+            'views' => $this->row['report']['views'],\n+            'clicks' => $this->row['report']['clicks']\n+          ),\n+          'options' => array(\n+            'ecpm' => array(\n+              'costSelect' => $this->row['options']['ecpm']['costSelect']\n+            )\n+          ),\n+          'network_id' => $this->row['network_id'],\n+          'datetime' => $this->row['datetime'],\n+          'log_msg' => $this->row['log_msg']\n+        );\n+        $this->writeLog($data);\n+\n+        $this->post_replace_data();\n+      }\n+    } catch (Exception $e) {\n+      error_log($e->getMessage());\n+    }\n+  }\n+\n+  protected function writeLog($data)\n+  {\n+    $logMsg = !empty($data['log_msg']) ? serialize($data['log_msg']) : null;\n+    $lastrun = $data['datetime'] ? $this->optimization_runtime : null;\n+\n+    # Fixme go to rpc module\n+    $query = sprintf(\n+      'INSERT INTO campaignoptimizationhistory ( `order_id`, `network_id`, `campaign_id`, `messages`, `object`, `lastrun`)\n+      VALUES (%s, %s, %s, %s, %s, %s)',\n+      $this->db->quote($data['campaign_data']['order_id'], 'integer'),\n+      $this->db->quote($data['network_id'], 'integer'),\n+      $this->db->quote($data['campaign_data']['id'], 'integer'),\n+      $this->db->quote($logMsg, 'text'),\n+      $this->db->quote(serialize($data), 'text'),\n+      $this->db->quote($lastrun, 'timestamp')\n+    );\n+\n+    $result = $this->db->exec($query);\n+    rpcMiddlewareStorageException::throwForMdb2Error($result);\n+  }\n+\n+  # overwritten me in subclass\n+  protected function set_priority_if_not_in_network_range()","path":"base_optimization.php","position":254,"original_position":254,"commit_id":"1989bca1fca218d9f58a5b13cf34eef8571b4d4d","original_commit_id":"1989bca1fca218d9f58a5b13cf34eef8571b4d4d","user":{"login":"Dariush59","id":17017189,"avatar_url":"https://avatars2.githubusercontent.com/u/17017189?v=4","gravatar_id":"","url":"https://api.github.com/users/Dariush59","html_url":"https://github.com/Dariush59","followers_url":"https://api.github.com/users/Dariush59/followers","following_url":"https://api.github.com/users/Dariush59/following{/other_user}","gists_url":"https://api.github.com/users/Dariush59/gists{/gist_id}","starred_url":"https://api.github.com/users/Dariush59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dariush59/subscriptions","organizations_url":"https://api.github.com/users/Dariush59/orgs","repos_url":"https://api.github.com/users/Dariush59/repos","events_url":"https://api.github.com/users/Dariush59/events{/privacy}","received_events_url":"https://api.github.com/users/Dariush59/received_events","type":"User","site_admin":false},"body":"It would be better to change it to abstract method.","created_at":"2018-04-28T13:05:17Z","updated_at":"2018-04-28T13:05:17Z","html_url":"https://github.com/Dariush59/acr/pull/1#discussion_r184853046","pull_request_url":"https://api.github.com/repos/Dariush59/acr/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/Dariush59/acr/pulls/comments/184853046"},"html":{"href":"https://github.com/Dariush59/acr/pull/1#discussion_r184853046"},"pull_request":{"href":"https://api.github.com/repos/Dariush59/acr/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/Dariush59/acr/pulls/1","id":184777148,"html_url":"https://github.com/Dariush59/acr/pull/1","diff_url":"https://github.com/Dariush59/acr/pull/1.diff","patch_url":"https://github.com/Dariush59/acr/pull/1.patch","issue_url":"https://api.github.com/repos/Dariush59/acr/issues/1","number":1,"state":"open","locked":false,"title":"add files","user":{"login":"Dariush59","id":17017189,"avatar_url":"https://avatars2.githubusercontent.com/u/17017189?v=4","gravatar_id":"","url":"https://api.github.com/users/Dariush59","html_url":"https://github.com/Dariush59","followers_url":"https://api.github.com/users/Dariush59/followers","following_url":"https://api.github.com/users/Dariush59/following{/other_user}","gists_url":"https://api.github.com/users/Dariush59/gists{/gist_id}","starred_url":"https://api.github.com/users/Dariush59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dariush59/subscriptions","organizations_url":"https://api.github.com/users/Dariush59/orgs","repos_url":"https://api.github.com/users/Dariush59/repos","events_url":"https://api.github.com/users/Dariush59/events{/privacy}","received_events_url":"https://api.github.com/users/Dariush59/received_events","type":"User","site_admin":false},"body":"The code review recommendations.","created_at":"2018-04-28T10:00:45Z","updated_at":"2018-04-28T13:05:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"023077893470c9e2ec7fd645b7c327ca2da666f8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Dariush59/acr/pulls/1/commits","review_comments_url":"https://api.github.com/repos/Dariush59/acr/pulls/1/comments","review_comment_url":"https://api.github.com/repos/Dariush59/acr/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dariush59/acr/issues/1/comments","statuses_url":"https://api.github.com/repos/Dariush59/acr/statuses/1989bca1fca218d9f58a5b13cf34eef8571b4d4d","head":{"label":"Dariush59:imported_files","ref":"imported_files","sha":"1989bca1fca218d9f58a5b13cf34eef8571b4d4d","user":{"login":"Dariush59","id":17017189,"avatar_url":"https://avatars2.githubusercontent.com/u/17017189?v=4","gravatar_id":"","url":"https://api.github.com/users/Dariush59","html_url":"https://github.com/Dariush59","followers_url":"https://api.github.com/users/Dariush59/followers","following_url":"https://api.github.com/users/Dariush59/following{/other_user}","gists_url":"https://api.github.com/users/Dariush59/gists{/gist_id}","starred_url":"https://api.github.com/users/Dariush59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dariush59/subscriptions","organizations_url":"https://api.github.com/users/Dariush59/orgs","repos_url":"https://api.github.com/users/Dariush59/repos","events_url":"https://api.github.com/users/Dariush59/events{/privacy}","received_events_url":"https://api.github.com/users/Dariush59/received_events","type":"User","site_admin":false},"repo":{"id":131396112,"name":"acr","full_name":"Dariush59/acr","owner":{"login":"Dariush59","id":17017189,"avatar_url":"https://avatars2.githubusercontent.com/u/17017189?v=4","gravatar_id":"","url":"https://api.github.com/users/Dariush59","html_url":"https://github.com/Dariush59","followers_url":"https://api.github.com/users/Dariush59/followers","following_url":"https://api.github.com/users/Dariush59/following{/other_user}","gists_url":"https://api.github.com/users/Dariush59/gists{/gist_id}","starred_url":"https://api.github.com/users/Dariush59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dariush59/subscriptions","organizations_url":"https://api.github.com/users/Dariush59/orgs","repos_url":"https://api.github.com/users/Dariush59/repos","events_url":"https://api.github.com/users/Dariush59/events{/privacy}","received_events_url":"https://api.github.com/users/Dariush59/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dariush59/acr","description":null,"fork":false,"url":"https://api.github.com/repos/Dariush59/acr","forks_url":"https://api.github.com/repos/Dariush59/acr/forks","keys_url":"https://api.github.com/repos/Dariush59/acr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dariush59/acr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dariush59/acr/teams","hooks_url":"https://api.github.com/repos/Dariush59/acr/hooks","issue_events_url":"https://api.github.com/repos/Dariush59/acr/issues/events{/number}","events_url":"https://api.github.com/repos/Dariush59/acr/events","assignees_url":"https://api.github.com/repos/Dariush59/acr/assignees{/user}","branches_url":"https://api.github.com/repos/Dariush59/acr/branches{/branch}","tags_url":"https://api.github.com/repos/Dariush59/acr/tags","blobs_url":"https://api.github.com/repos/Dariush59/acr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dariush59/acr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dariush59/acr/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dariush59/acr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dariush59/acr/statuses/{sha}","languages_url":"https://api.github.com/repos/Dariush59/acr/languages","stargazers_url":"https://api.github.com/repos/Dariush59/acr/stargazers","contributors_url":"https://api.github.com/repos/Dariush59/acr/contributors","subscribers_url":"https://api.github.com/repos/Dariush59/acr/subscribers","subscription_url":"https://api.github.com/repos/Dariush59/acr/subscription","commits_url":"https://api.github.com/repos/Dariush59/acr/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dariush59/acr/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dariush59/acr/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dariush59/acr/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dariush59/acr/contents/{+path}","compare_url":"https://api.github.com/repos/Dariush59/acr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dariush59/acr/merges","archive_url":"https://api.github.com/repos/Dariush59/acr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dariush59/acr/downloads","issues_url":"https://api.github.com/repos/Dariush59/acr/issues{/number}","pulls_url":"https://api.github.com/repos/Dariush59/acr/pulls{/number}","milestones_url":"https://api.github.com/repos/Dariush59/acr/milestones{/number}","notifications_url":"https://api.github.com/repos/Dariush59/acr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dariush59/acr/labels{/name}","releases_url":"https://api.github.com/repos/Dariush59/acr/releases{/id}","deployments_url":"https://api.github.com/repos/Dariush59/acr/deployments","created_at":"2018-04-28T09:40:34Z","updated_at":"2018-04-28T09:42:00Z","pushed_at":"2018-04-28T10:00:47Z","git_url":"git://github.com/Dariush59/acr.git","ssh_url":"git@github.com:Dariush59/acr.git","clone_url":"https://github.com/Dariush59/acr.git","svn_url":"https://github.com/Dariush59/acr","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Dariush59:master","ref":"master","sha":"91aba0a0844df9f9b0594ca4de1bfd849566d6db","user":{"login":"Dariush59","id":17017189,"avatar_url":"https://avatars2.githubusercontent.com/u/17017189?v=4","gravatar_id":"","url":"https://api.github.com/users/Dariush59","html_url":"https://github.com/Dariush59","followers_url":"https://api.github.com/users/Dariush59/followers","following_url":"https://api.github.com/users/Dariush59/following{/other_user}","gists_url":"https://api.github.com/users/Dariush59/gists{/gist_id}","starred_url":"https://api.github.com/users/Dariush59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dariush59/subscriptions","organizations_url":"https://api.github.com/users/Dariush59/orgs","repos_url":"https://api.github.com/users/Dariush59/repos","events_url":"https://api.github.com/users/Dariush59/events{/privacy}","received_events_url":"https://api.github.com/users/Dariush59/received_events","type":"User","site_admin":false},"repo":{"id":131396112,"name":"acr","full_name":"Dariush59/acr","owner":{"login":"Dariush59","id":17017189,"avatar_url":"https://avatars2.githubusercontent.com/u/17017189?v=4","gravatar_id":"","url":"https://api.github.com/users/Dariush59","html_url":"https://github.com/Dariush59","followers_url":"https://api.github.com/users/Dariush59/followers","following_url":"https://api.github.com/users/Dariush59/following{/other_user}","gists_url":"https://api.github.com/users/Dariush59/gists{/gist_id}","starred_url":"https://api.github.com/users/Dariush59/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dariush59/subscriptions","organizations_url":"https://api.github.com/users/Dariush59/orgs","repos_url":"https://api.github.com/users/Dariush59/repos","events_url":"https://api.github.com/users/Dariush59/events{/privacy}","received_events_url":"https://api.github.com/users/Dariush59/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dariush59/acr","description":null,"fork":false,"url":"https://api.github.com/repos/Dariush59/acr","forks_url":"https://api.github.com/repos/Dariush59/acr/forks","keys_url":"https://api.github.com/repos/Dariush59/acr/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dariush59/acr/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dariush59/acr/teams","hooks_url":"https://api.github.com/repos/Dariush59/acr/hooks","issue_events_url":"https://api.github.com/repos/Dariush59/acr/issues/events{/number}","events_url":"https://api.github.com/repos/Dariush59/acr/events","assignees_url":"https://api.github.com/repos/Dariush59/acr/assignees{/user}","branches_url":"https://api.github.com/repos/Dariush59/acr/branches{/branch}","tags_url":"https://api.github.com/repos/Dariush59/acr/tags","blobs_url":"https://api.github.com/repos/Dariush59/acr/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dariush59/acr/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dariush59/acr/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dariush59/acr/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dariush59/acr/statuses/{sha}","languages_url":"https://api.github.com/repos/Dariush59/acr/languages","stargazers_url":"https://api.github.com/repos/Dariush59/acr/stargazers","contributors_url":"https://api.github.com/repos/Dariush59/acr/contributors","subscribers_url":"https://api.github.com/repos/Dariush59/acr/subscribers","subscription_url":"https://api.github.com/repos/Dariush59/acr/subscription","commits_url":"https://api.github.com/repos/Dariush59/acr/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dariush59/acr/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dariush59/acr/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dariush59/acr/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dariush59/acr/contents/{+path}","compare_url":"https://api.github.com/repos/Dariush59/acr/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dariush59/acr/merges","archive_url":"https://api.github.com/repos/Dariush59/acr/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dariush59/acr/downloads","issues_url":"https://api.github.com/repos/Dariush59/acr/issues{/number}","pulls_url":"https://api.github.com/repos/Dariush59/acr/pulls{/number}","milestones_url":"https://api.github.com/repos/Dariush59/acr/milestones{/number}","notifications_url":"https://api.github.com/repos/Dariush59/acr/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dariush59/acr/labels{/name}","releases_url":"https://api.github.com/repos/Dariush59/acr/releases{/id}","deployments_url":"https://api.github.com/repos/Dariush59/acr/deployments","created_at":"2018-04-28T09:40:34Z","updated_at":"2018-04-28T09:42:00Z","pushed_at":"2018-04-28T10:00:47Z","git_url":"git://github.com/Dariush59/acr.git","ssh_url":"git@github.com:Dariush59/acr.git","clone_url":"https://github.com/Dariush59/acr.git","svn_url":"https://github.com/Dariush59/acr","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Dariush59/acr/pulls/1"},"html":{"href":"https://github.com/Dariush59/acr/pull/1"},"issue":{"href":"https://api.github.com/repos/Dariush59/acr/issues/1"},"comments":{"href":"https://api.github.com/repos/Dariush59/acr/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/Dariush59/acr/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/Dariush59/acr/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dariush59/acr/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/Dariush59/acr/statuses/1989bca1fca218d9f58a5b13cf34eef8571b4d4d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Dariush59"}}