Add code-generation tag, link to paper

#1
by nielsr HF Staff - opened
Files changed (1) hide show
  1. README.md +47 -9
README.md CHANGED
@@ -1,17 +1,20 @@
1
  ---
2
- tags:
3
- - code
4
  base_model:
5
  - deepseek-ai/deepseek-coder-6.7b-base
6
  library_name: transformers
7
- pipeline_tag: text-generation
8
  license: other
9
  license_name: deepseek
10
  license_link: LICENSE
 
 
 
 
11
  ---
12
 
13
  # CursorCore: Assist Programming through Aligning Anything
14
 
 
 
15
  <p align="center">
16
  <a href="http://arxiv.org/abs/2410.07002">[📄arXiv]</a> |
17
  <a href="https://hf.co/papers/2410.07002">[🤗HF Paper]</a> |
@@ -116,13 +119,27 @@ sample = {
116
  {
117
  "type": "code",
118
  "lang": "python",
119
- "code": """def quick_sort(arr):\n if len(arr) <= 1:\n return arr\n pivot = arr[len(arr) // 2]\n left = [x for x in arr if x < pivot]\n middle = [x for x in arr if x == pivot]\n right = [x for x in arr if x > pivot]\n return quick_sort(left) + middle + quick_sort(right)"""
 
 
 
 
 
 
 
120
  }
121
  ],
122
  "current": {
123
  "type": "code",
124
  "lang": "python",
125
- "code": """def quick_sort(array):\n if len(arr) <= 1:\n return arr\n pivot = arr[len(arr) // 2]\n left = [x for x in arr if x < pivot]\n middle = [x for x in arr if x == pivot]\n right = [x for x in arr if x > pivot]\n return quick_sort(left) + middle + quick_sort(right)"""
 
 
 
 
 
 
 
126
  },
127
  "user": ""
128
  }
@@ -204,7 +221,14 @@ sample = {
204
  "current": {
205
  "type": "code",
206
  "lang": "python",
207
- "code": """def quick_sort(array):\n if len(arr) <= 1:\n return arr\n pivot = arr[len(arr) // 2]\n left = [x for x in arr if x < pivot]\n middle = [x for x in arr if x == pivot]\n right = [x for x in arr if x > pivot]\n return quick_sort(left) + middle + quick_sort(right)"""
 
 
 
 
 
 
 
208
  },
209
  "user": "Add Docstring."
210
  }
@@ -275,7 +299,14 @@ sample = {
275
  "current": {
276
  "type": "code",
277
  "lang": "python",
278
- "code": """def quick_sort(array):\n if len(arr) <= 1:\n return arr\n pivot = arr[len(arr) // 2]\n left = [x for x in arr if x < pivot]\n middle = [x for x in arr if x == pivot]\n right = [x for x in arr if x > pivot]\n return quick_sort(left) + middle + quick_sort(right)"""
 
 
 
 
 
 
 
279
  },
280
  "user": "Add Docstring."
281
  }
@@ -344,7 +375,14 @@ sample = {
344
  "current": {
345
  "type": "code",
346
  "lang": "python",
347
- "code": """def quick_sort(array):\n if len(arr) <= 1:\n return arr\n pivot = arr[len(arr) // 2]\n left = [x for x in arr if x < pivot]\n middle = [x for x in arr if x == pivot]\n right = [x for x in arr if x > pivot]\n return quick_sort(left) + middle + quick_sort(right)"""
 
 
 
 
 
 
 
348
  },
349
  "user": "Add Docstring."
350
  }
@@ -416,4 +454,4 @@ CursorCore is still in a very early stage, and lots of work is needed to achieve
416
 
417
  ## Contribution
418
 
419
- Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
 
1
  ---
 
 
2
  base_model:
3
  - deepseek-ai/deepseek-coder-6.7b-base
4
  library_name: transformers
 
5
  license: other
6
  license_name: deepseek
7
  license_link: LICENSE
8
+ pipeline_tag: text-generation
9
+ tags:
10
+ - code
11
+ - code-generation
12
  ---
13
 
14
  # CursorCore: Assist Programming through Aligning Anything
15
 
16
+ This repository contains the model for the paper [CursorCore: Assist Programming through Aligning Anything](https://huggingface.co/papers/2410.07002).
17
+
18
  <p align="center">
19
  <a href="http://arxiv.org/abs/2410.07002">[📄arXiv]</a> |
20
  <a href="https://hf.co/papers/2410.07002">[🤗HF Paper]</a> |
 
119
  {
120
  "type": "code",
121
  "lang": "python",
122
+ "code": """def quick_sort(arr):
123
+ if len(arr) <= 1:
124
+ return arr
125
+ pivot = arr[len(arr) // 2]
126
+ left = [x for x in arr if x < pivot]
127
+ middle = [x for x in arr if x == pivot]
128
+ right = [x for x in arr if x > pivot]
129
+ return quick_sort(left) + middle + quick_sort(right)"""
130
  }
131
  ],
132
  "current": {
133
  "type": "code",
134
  "lang": "python",
135
+ "code": """def quick_sort(array):
136
+ if len(arr) <= 1:
137
+ return arr
138
+ pivot = arr[len(arr) // 2]
139
+ left = [x for x in arr if x < pivot]
140
+ middle = [x for x in arr if x == pivot]
141
+ right = [x for x in arr if x > pivot]
142
+ return quick_sort(left) + middle + quick_sort(right)"""
143
  },
144
  "user": ""
145
  }
 
221
  "current": {
222
  "type": "code",
223
  "lang": "python",
224
+ "code": """def quick_sort(array):
225
+ if len(arr) <= 1:
226
+ return arr
227
+ pivot = arr[len(arr) // 2]
228
+ left = [x for x in arr if x < pivot]
229
+ middle = [x for x in arr if x == pivot]
230
+ right = [x for x in arr if x > pivot]
231
+ return quick_sort(left) + middle + quick_sort(right)"""
232
  },
233
  "user": "Add Docstring."
234
  }
 
299
  "current": {
300
  "type": "code",
301
  "lang": "python",
302
+ "code": """def quick_sort(array):
303
+ if len(arr) <= 1:
304
+ return arr
305
+ pivot = arr[len(arr) // 2]
306
+ left = [x for x in arr if x < pivot]
307
+ middle = [x for x in arr if x == pivot]
308
+ right = [x for x in arr if x > pivot]
309
+ return quick_sort(left) + middle + quick_sort(right)"""
310
  },
311
  "user": "Add Docstring."
312
  }
 
375
  "current": {
376
  "type": "code",
377
  "lang": "python",
378
+ "code": """def quick_sort(array):
379
+ if len(arr) <= 1:
380
+ return arr
381
+ pivot = arr[len(arr) // 2]
382
+ left = [x for x in arr if x < pivot]
383
+ middle = [x for x in arr if x == pivot]
384
+ right = [x for x in arr if x > pivot]
385
+ return quick_sort(left) + middle + quick_sort(right)"""
386
  },
387
  "user": "Add Docstring."
388
  }
 
454
 
455
  ## Contribution
456
 
457
+ Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.