Spaces:
Running
Running
Commit ·
d25a864
1
Parent(s): 14c1612
update snippet
Browse filesFiles changed (2)
26 unmodified lines2728293031323326 unmodified linesFROM overlapping_rows, total_unique_rows;---# DuckDB Leakage Detection QueryThis snippet demonstrates how to use DuckDB to detect potential data leakage between train and test datasets by calculating the overlap percentage.26 unmodified lines2728293031323326 unmodified linesFROM overlapping_rows, total_unique_rows;---# Dataset Leakage DetectionThis snippet demonstrates how to use DuckDB to detect potential data leakage between train and test datasets by calculating the overlap percentage.
12345678910111213141516171819import adapter from '@sveltejs/adapter-node'import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'import { mdsvex, escapeSvelte } from 'mdsvex'import { createHighlighter } from 'shiki'/** @type {import('mdsvex').MdsvexOptions} */const mdsvexOptions = {extensions: ['.md'],highlight: {highlighter: async (code, lang = 'text') => {const highlighter = await createHighlighter({themes: ['github-dark'],langs: [ 'sql']})await highlighter.loadLanguage('sql')const html = escapeSvelte(highlighter.codeToHtml(code, { lang, theme: 'github-dark' }))return `{@html \`${html}\` }`}12345678910111213141516171819import adapter from '@sveltejs/adapter-node'import { vitePreprocess } from '@sveltejs/vite-plugin-svelte'import { mdsvex, escapeSvelte } from 'mdsvex'import { createHighlighter } from 'shiki'const highlighterPromise = createHighlighter({themes: ['github-dark'],langs: ['sql', 'text']})/** @type {import('mdsvex').MdsvexOptions} */const mdsvexOptions = {extensions: ['.md'],highlight: {highlighter: async (code, lang = 'text') => {const highlighter = await highlighterPromiseconst html = escapeSvelte(highlighter.codeToHtml(code, { lang, theme: 'github-dark' }))return `{@html \`${html}\` }`}
src/snippets/leakage.md+1-1
svelte.config.js+6-6