infosave's picture
Example inputs used on the model card
102eccc verified
Raw History Blame Contribute Delete
1.68 kB
{"text": "wait until the user stops typing before calling a function", "prompt_name": "CodeRetrieval"}
{"text": "удалить старые логи командой в терминале", "prompt_name": "CodeRetrieval"}
{"text": "function debounce(fn, ms) {\n let timer;\n return (...args) => {\n clearTimeout(timer);\n timer = setTimeout(() => fn(...args), ms);\n };\n}", "prompt_name": "Document", "title": "debounce.js"}
{"text": "def quicksort(xs):\n if len(xs) <= 1:\n return xs\n pivot, *rest = xs\n left = [x for x in rest if x < pivot]\n right = [x for x in rest if x >= pivot]\n return quicksort(left) + [pivot] + quicksort(right)", "prompt_name": "Document", "title": "quicksort.py"}
{"text": "def binary_search(a, target):\n lo, hi = 0, len(a) - 1\n while lo <= hi:\n mid = (lo + hi) // 2\n if a[mid] == target:\n return mid\n if a[mid] < target:\n lo = mid + 1\n else:\n hi = mid - 1\n return -1", "prompt_name": "Document", "title": "binary_search.py"}
{"text": "SELECT c.name, COUNT(o.id) AS orders, SUM(o.total) AS revenue\nFROM customers c\nJOIN orders o ON o.customer_id = c.id\nWHERE o.created_at >= DATE '2026-01-01'\nGROUP BY c.name\nORDER BY revenue DESC\nLIMIT 10;", "prompt_name": "Document", "title": "top_customers.sql"}
{"text": "#!/bin/sh\n# delete application logs older than seven days\nfind /var/log/myapp -name '*.log' -mtime +7 -delete", "prompt_name": "Document", "title": "cleanup.sh"}
{"text": "fn longest<'a>(x: &'a str, y: &'a str) -> &'a str {\n if x.len() > y.len() { x } else { y }\n}", "prompt_name": "Document", "title": "longest.rs"}