Improve README
#1
by
nielsr
HF Staff
- opened
README.md
CHANGED
|
@@ -1,11 +1,11 @@
|
|
| 1 |
---
|
| 2 |
-
tags:
|
| 3 |
-
- code
|
| 4 |
base_model:
|
| 5 |
- 01-ai/Yi-Coder-9B
|
| 6 |
library_name: transformers
|
| 7 |
-
pipeline_tag: text-generation
|
| 8 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
| 9 |
---
|
| 10 |
|
| 11 |
# CursorCore: Assist Programming through Aligning Anything
|
|
@@ -114,13 +114,27 @@ sample = {
|
|
| 114 |
{
|
| 115 |
"type": "code",
|
| 116 |
"lang": "python",
|
| 117 |
-
"code": """def quick_sort(arr)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
}
|
| 119 |
],
|
| 120 |
"current": {
|
| 121 |
"type": "code",
|
| 122 |
"lang": "python",
|
| 123 |
-
"code": """def quick_sort(array)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
},
|
| 125 |
"user": ""
|
| 126 |
}
|
|
@@ -202,7 +216,14 @@ sample = {
|
|
| 202 |
"current": {
|
| 203 |
"type": "code",
|
| 204 |
"lang": "python",
|
| 205 |
-
"code": """def quick_sort(array)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 206 |
},
|
| 207 |
"user": "Add Docstring."
|
| 208 |
}
|
|
@@ -273,7 +294,14 @@ sample = {
|
|
| 273 |
"current": {
|
| 274 |
"type": "code",
|
| 275 |
"lang": "python",
|
| 276 |
-
"code": """def quick_sort(array)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 277 |
},
|
| 278 |
"user": "Add Docstring."
|
| 279 |
}
|
|
@@ -342,7 +370,14 @@ sample = {
|
|
| 342 |
"current": {
|
| 343 |
"type": "code",
|
| 344 |
"lang": "python",
|
| 345 |
-
"code": """def quick_sort(array)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 346 |
},
|
| 347 |
"user": "Add Docstring."
|
| 348 |
}
|
|
@@ -414,4 +449,4 @@ CursorCore is still in a very early stage, and lots of work is needed to achieve
|
|
| 414 |
|
| 415 |
## Contribution
|
| 416 |
|
| 417 |
-
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 |
- 01-ai/Yi-Coder-9B
|
| 4 |
library_name: transformers
|
|
|
|
| 5 |
license: apache-2.0
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
---
|
| 10 |
|
| 11 |
# CursorCore: Assist Programming through Aligning Anything
|
|
|
|
| 114 |
{
|
| 115 |
"type": "code",
|
| 116 |
"lang": "python",
|
| 117 |
+
"code": """def quick_sort(arr):
|
| 118 |
+
if len(arr) <= 1:
|
| 119 |
+
return arr
|
| 120 |
+
pivot = arr[len(arr) // 2]
|
| 121 |
+
left = [x for x in arr if x < pivot]
|
| 122 |
+
middle = [x for x in arr if x == pivot]
|
| 123 |
+
right = [x for x in arr if x > pivot]
|
| 124 |
+
return quick_sort(left) + middle + quick_sort(right)"""
|
| 125 |
}
|
| 126 |
],
|
| 127 |
"current": {
|
| 128 |
"type": "code",
|
| 129 |
"lang": "python",
|
| 130 |
+
"code": """def quick_sort(array):
|
| 131 |
+
if len(arr) <= 1:
|
| 132 |
+
return arr
|
| 133 |
+
pivot = arr[len(arr) // 2]
|
| 134 |
+
left = [x for x in arr if x < pivot]
|
| 135 |
+
middle = [x for x in arr if x == pivot]
|
| 136 |
+
right = [x for x in arr if x > pivot]
|
| 137 |
+
return quick_sort(left) + middle + quick_sort(right)"""
|
| 138 |
},
|
| 139 |
"user": ""
|
| 140 |
}
|
|
|
|
| 216 |
"current": {
|
| 217 |
"type": "code",
|
| 218 |
"lang": "python",
|
| 219 |
+
"code": """def quick_sort(array):
|
| 220 |
+
if len(arr) <= 1:
|
| 221 |
+
return arr
|
| 222 |
+
pivot = arr[len(arr) // 2]
|
| 223 |
+
left = [x for x in arr if x < pivot]
|
| 224 |
+
middle = [x for x in arr if x == pivot]
|
| 225 |
+
right = [x for x in arr if x > pivot]
|
| 226 |
+
return quick_sort(left) + middle + quick_sort(right)"""
|
| 227 |
},
|
| 228 |
"user": "Add Docstring."
|
| 229 |
}
|
|
|
|
| 294 |
"current": {
|
| 295 |
"type": "code",
|
| 296 |
"lang": "python",
|
| 297 |
+
"code": """def quick_sort(array):
|
| 298 |
+
if len(arr) <= 1:
|
| 299 |
+
return arr
|
| 300 |
+
pivot = arr[len(arr) // 2]
|
| 301 |
+
left = [x for x in arr if x < pivot]
|
| 302 |
+
middle = [x for x in arr if x == pivot]
|
| 303 |
+
right = [x for x in arr if x > pivot]
|
| 304 |
+
return quick_sort(left) + middle + quick_sort(right)"""
|
| 305 |
},
|
| 306 |
"user": "Add Docstring."
|
| 307 |
}
|
|
|
|
| 370 |
"current": {
|
| 371 |
"type": "code",
|
| 372 |
"lang": "python",
|
| 373 |
+
"code": """def quick_sort(array):
|
| 374 |
+
if len(arr) <= 1:
|
| 375 |
+
return arr
|
| 376 |
+
pivot = arr[len(arr) // 2]
|
| 377 |
+
left = [x for x in arr if x < pivot]
|
| 378 |
+
middle = [x for x in arr if x == pivot]
|
| 379 |
+
right = [x for x in arr if x > pivot]
|
| 380 |
+
return quick_sort(left) + middle + quick_sort(right)"""
|
| 381 |
},
|
| 382 |
"user": "Add Docstring."
|
| 383 |
}
|
|
|
|
| 449 |
|
| 450 |
## Contribution
|
| 451 |
|
| 452 |
+
Contributions are welcome! If you find any bugs or have suggestions for improvements, please open an issue or submit a pull request.
|