Skip to content

Commit 80f0f3a

Browse files
authored
Merge pull request #2845 from Kilo-Org/mark/add-to-approvals
Add autocomplete benchmark/evals approvals
2 parents 4281ab4 + b2efd2c commit 80f0f3a

File tree

125 files changed

+9677
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+9677
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
class ApiClient {
2+
async post(endpoint, data) {
3+
const response = await fetch(this.baseUrl + endpoint, {
4+
method: 'POST',
5+
headers: {
6+
'Content-Type': 'application/json'
7+
},
8+
body: JSON.stringify(data)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class ApiClient {
2+
async post(endpoint, data) {
3+
const response = await fetch(this.baseUrl + endpoint, {
4+
method: 'POST',
5+
headers: { 'Content-Type': 'application/json' },
6+
body: JSON.stringify(data)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class ApiClient {
2+
async post(endpoint, data) {
3+
const response = await fetch(this.baseUrl + endpoint, {
4+
method: 'POST',
5+
headers: { 'Content-Type': 'application/json' },
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(no changes parsed)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
async function fetchWithRetry(url, maxRetries = 3) {
2+
for (let attempt = 0; attempt < maxRetries; attempt++) {
3+
try {
4+
return await fetch(url);
5+
} catch (error) {
6+
if (attempt === maxRetries - 1) throw error;
7+
await new Promise(resolve => setTimeout(resolve, 1000 * (attempt + 1))
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
async function fetchWithRetry(url, maxRetries = 3) {
2+
for (let attempt = 0; attempt < maxRetries; attempt++) {
3+
try {
4+
return await fetch(url);
5+
} catch (error) {
6+
if (attempt === maxRetries - 1) throw error;
7+
await new Promise(resolve => setTimeout(resolve, 1000));
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
(no changes parsed)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
async function fetchWithRetry(url, maxRetries = 3) {
2+
for (let attempt = 0; attempt < maxRetries; attempt++) {
3+
try {
4+
return await fetch(url);
5+
} catch (error) {
6+
if (attempt === maxRetries - 1) throw error;
7+
await new Promise(resolve => setTimeout(resolve, <<<AUTOCOMPLETE_HERE>>>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
function test() {
2+
console.log('hello');
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
function test() {
2+
console.log('hello'); <<<AUTOCOMPLETE_HERE>>>

0 commit comments

Comments
 (0)