prompt
stringclasses
5 values
completion
stringclasses
5 values
_dlt_load_id
stringclasses
1 value
_dlt_id
stringclasses
5 values
<fim_prefix>package main import ( "fmt" "os" "strconv" ) func main() { if len(os.Args) != 2 { panic("Invalid number of arguments") } sortAlgorithm, err := strconv.Atoi(os.Args[1]) if err != nil { fmt.Println(err) } arr := []int{5, 2, 4, 1, -6, 3, 9, 1111, 90} switch sortAlgorithm { case 1: { bubbleSort(arr) } case 2: { mergeSort(arr) } case 3: { quickSort(arr, 0, len(arr)-1) } case 4: RadixSort(arr) case 5: // Write <fim_suffix> default: { fmt.Println("Invalid option") } } // Print the sorted array after running the selected algorithm fmt.Println("Sorted array:", arr) } <fim_middle>
5th algorithm here.
1729169381.7201102
MdadoaR9S3j6qQ
<fim_prefix>package main func main(<fim_suffix>)<fim_middle>
) {
1729169381.7201102
bekuI8O0340CfA
<fim_prefix>package main func main() { // implement binary<fim_suffix> }<fim_middle>
search
1729169381.7201102
M9QyyINxClLf4g
<fim_prefix>package main func main() { // implement binary search } func binary<fim_suffix><fim_middle>
Search(nums []int, target int) int {
1729169381.7201102
jdUWyRSC9qicSA
<fim_prefix>import dlt import json from huggingface_hub import HfApi @dlt.resource(table_name="autocompletions") def resource(): # find home directory <fim_suffix> with open("/Users/oakela/Downloads/autocomplete_nate_continue.jsonl", "r") as file: for line in file: full_data = json.loads(line) if full_data["accepted"]: yield { "prompt": full_data["prompt"], "completion": full_data["completion"], } <fim_middle>
home = os.path.expanduser("~")
1729169381.7201102
y34qY+EGow4c3g
README.md exists but content is empty.
Downloads last month
30