{"info":{"_postman_id":"e45c705e-9b46-4d96-ab46-21fd4c3a8755","name":"Hackathon Zoom Chat GPT - Code Review","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"33205095","collectionId":"e45c705e-9b46-4d96-ab46-21fd4c3a8755","publishedId":"2sA3BoZWXv","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-04-19T14:31:22.000Z"},"item":[{"name":"Zoom GPT Code Review","id":"9d18eccf-e219-4217-a79a-bd25208b5c1a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"commitId\": \"5fae7c10d44224addbd3953946d4ed5b7baaa1e9\",\n    \"repoName\": \"codeztech-atique/InterviewPreparationKit\",\n    \"totalLinesAdded\": 29,\n    \"filesChanged\": [\n        {\n            \"sha\": \"9696c20488a422492bdfb1f737aecd10b0b8588b\",\n            \"filename\": \"Algorithms/Sorting/practice.js\",\n            \"status\": \"modified\",\n            \"additions\": 29,\n            \"deletions\": 16,\n            \"changes\": 45,\n            \"blob_url\": \"https://github.com/codeztech-atique/InterviewPreparationKit/blob/5fae7c10d44224addbd3953946d4ed5b7baaa1e9/Algorithms%2FSorting%2Fpractice.js\",\n            \"raw_url\": \"https://github.com/codeztech-atique/InterviewPreparationKit/raw/5fae7c10d44224addbd3953946d4ed5b7baaa1e9/Algorithms%2FSorting%2Fpractice.js\",\n            \"contents_url\": \"https://api.github.com/repos/codeztech-atique/InterviewPreparationKit/contents/Algorithms%2FSorting%2Fpractice.js?ref=5fae7c10d44224addbd3953946d4ed5b7baaa1e9\",\n            \"patch\": \"@@ -1,21 +1,34 @@\\n-const merge = (left, right) => {\\n-    let arr = [];\\n-    while(left.length && right.length) {\\n-        if(left[0] > right[0]) {\\n-            arr.push(left.shift());\\n-        } else {\\n-            arr.push(right.shift());\\n-        }\\n-    return [...arr, ...left, ...right];\\n-} const mergeSort = (arr) => {\\n-    let half = arr.length / 2;\\n-    if(arr.length < 2) {\\n-        return arr;\\n-    let left = arr.splice(0, half);\\n-    return merge(left, arr);\\n-} console.log(mergeSort([2, 5, 3, 0, 57, 9, 12, 13]));\\\\ No newline at end of file\\n+const quickSort = (arr, left = 0, right = arr.length - 1) => {\\n+    if (left >= right) {\\n+        return;\\n+    const pivot = partition(arr, left, right);\\n+    quickSort(arr, left, pivot - 1);\\n+    quickSort(arr, pivot + 1, right);\\n+    return arr;\\n+} const partition = (arr, left, right) => {\\n+    const pivotElement = arr[right];\\n+    let partitionIndex = left; \\n+    for (let j = left; j < right; j++) {\\n+        if (arr[j] <= pivotElement) {\\n+            swap(arr, partitionIndex, j);\\n+            partitionIndex++;\\n+        }\\n+    swap(arr, partitionIndex, right); // Moving the pivot to the correct place\\n+    return partitionIndex;\\n+} const swap = (arr, i, j) => {\\n+    let temp = arr[i];\\n+    arr[i] = arr[j];\\n+    arr[j] = temp;\\n+} // Example usage:\\n+console.log(quickSort([2, 5, 3, 0, 57, 9, 12, 13]));\"\n        }\n    ],\n    \"committerUserId\": \"atique-zoom\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8081/api/code-review","description":"<p>This API of your code-reviewer-bot is designed to interact with OpenAI's GPT-4 to review code changes submitted as part of a development effort. Its primary function is to send snippets of code to the AI model and receive insights or suggestions on the code, which can then be used to enhance the code quality or assist developers in improving their coding practices.</p>\n","urlObject":{"protocol":"http","port":"8081","path":["api","code-review"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9d18eccf-e219-4217-a79a-bd25208b5c1a"}]}