{
"messages": [
{
"role": "system",
"content": "You are an assistant who generates concise titles for SQL written for Hugging Face Datasets."
},
{
"role": "user",
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| // --- Guard (so you can re-run safely) --- | |
| if (window.__NET_HUD__) { | |
| window.__NET_HUD__.destroy(); | |
| console.log("[net-hud] removed existing HUD"); | |
| } | |
| // --- Config --- | |
| const CFG = { | |
| maxItems: 200, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| // Remove existing instance | |
| const existing = document.getElementById('__keystroke_hud__'); | |
| if (existing) existing.remove(); | |
| // HUD container | |
| const hud = document.createElement('div'); | |
| hud.id = '__keystroke_hud__'; | |
| hud.style.cssText = ` | |
| position: fixed; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (() => { | |
| // 1) Find the biggest table on the page (handles cases with multiple tables) | |
| const tables = [...document.querySelectorAll("table")]; | |
| if (!tables.length) throw new Error("No <table> elements found."); | |
| const table = tables | |
| .map(t => ({ t, rows: t.querySelectorAll("tbody tr").length })) | |
| .sort((a, b) => b.rows - a.rows)[0].t; | |
| // 2) Extract header |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import time | |
| import json | |
| import sys | |
| import requests | |
| from bs4 import BeautifulSoup | |
| GOODREADS_SHELF_URL = "https://www.goodreads.com/review/list/<<add-your-own-here>>" | |
| SHELF_NAME = "read" | |
| MAX_PAGES = 20 | |
| REQUEST_DELAY = 1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import requests | |
| from dotenv import load_dotenv | |
| import numpy as np | |
| import soundfile as sf | |
| # Load environment variables from .env file | |
| load_dotenv() | |
| # Base URL for Cartesia API |