text stringlengths 3 8.33k | repo stringclasses 52
values | path stringlengths 6 141 | language stringclasses 35
values | sha stringlengths 64 64 | chunk_index int32 0 273 | n_tokens int32 1 896 |
|---|---|---|---|---|---|---|
$ref: "#/components/schemas/MetadataEntry"
"400":
description: bad input parameter
/action/organization_list:
get:
tags:
- datasets
summary: List all groups within given parameters
description: |
List or search all datasets
operationId: listOrgs
para... | ifg-agentic | schema.yml | YAML | 0c49fb73dcd912a8409e05d898cbeef72e912ac0c6c6fa7a66d6ded7aaeb05b8 | 1 | 896 |
:
schema:
type: array
items:
$ref: "#/components/schemas/MetadataEntry"
/action/group_package_show:
get:
operationId: group_package_show
tags:
- datasets
summary: Return the datasets (packages) of a group
parameters:
... | ifg-agentic | schema.yml | YAML | ab688f34643a4c046964743c664f76b979bc764b3ae4578b56782594c7a607d4 | 2 | 896 |
All matches are made ignoring case; and apart from the ``hash`` field, a term matches if it is a substring of the field's value.
Finally, when specifying more than one search criteria, the criteria are AND-ed together.
The ``order`` parameter is used to control the ordering of the results. Currently o... | ifg-agentic | schema.yml | YAML | 93052b438f2423c660095a3b669148f32a36f4469faab2fba1510a3bdb8e3161 | 3 | 896 |
query
description: >
the maximum number of activities to return (optional, default: ``31`` unless set in site's configuration ``ckan.activity_list_limit``, upper limit: ``100`` unless set in site's configuration ``ckan.activity_list_limit_max``)
schema:
type: integer
... | ifg-agentic | schema.yml | YAML | 16982a82585bbb14798a6cfd510451b95d159fb4918a961ffa5974fb98507351 | 4 | 896 |
help
success:
type: boolean
result:
type: array
items:
$ref: "#/components/schemas/Activity"
/action/recently_changed_packages_activity_list:
get:
operationId: recently_changed_packages_acti... | ifg-agentic | schema.yml | YAML | e85f1c583cdc4c8810d5825f54296871bbd86f2511c6494c470759dd3f54b030 | 5 | 896 |
"201":
description: item created
"400":
description: invalid input, object invalid
"409":
description: An existing item already exists
security:
- ckanapikey: []
/action/package_update:
post:
tags:
- datamanagement
summary: Update a d... | ifg-agentic | schema.yml | YAML | d266db49f8a2cff256c501200bf226dd3d9987c58215115491faf4a1081b654a | 6 | 896 |
description: right one for sure}
* Replace all fields of a resource::
match={id: 34a12bc-1420-cbad-1922}
filter=[+resources__1492a__id, -resources__1492a__*]
update__resources__1492a={name: edits here, url: http://example.com}
:returns: a dict containing ... | ifg-agentic | schema.yml | YAML | 93e3b8e5cfc21af986a2cf42693f26cb83fb466a9c3ebd517b59ffb92f688241 | 7 | 896 |
in the front-end, but is still in the db).
You must be authorized to purge the dataset.
parameters:
- name: id
in: body
description: the id or name of the dataset to be purged
schema:
type: string
responses:
"200":
description: OK,... | ifg-agentic | schema.yml | YAML | 0f0368a845012003a59802e45c13b612cc73882f1797e7ef1e07a1d281f78fe8 | 8 | 896 |
409":
description: An existing item already exists
security:
- ckanapikey: []
/action/resource_view_update:
post:
operationId: resource_view_update
tags:
- datamanagement
summary: Update a resource view.
description: >
To update the Resource View wit... | ifg-agentic | schema.yml | YAML | 4d1f6c6e4bf30cb41eb9750e798f12ab3563095a04a5a1f2b5f38a72d448145b | 9 | 896 |
:type id2: string
:param rel: relationship as string see
:py:func:`~ckan.logic.action.create.package_relationship_create` for
the relationship types (optional)\n
:rtype: list of dictionaries\n\n
parameters:
- name: id
in: query
descriptio... | ifg-agentic | schema.yml | YAML | 3945fd9f0c3354975e24ea08e69b5098d5e87316db28f496d3db03648816e39c | 10 | 896 |
":
description: Success
security:
- ckanapikey: []
/action/tag_list:
get:
operationId: tag_list
tags:
- datamanagement
summary: Return a list of the site's tags.
parameters:
- name: query
in: query
description: a tag name query to... | ifg-agentic | schema.yml | YAML | dceea0102d9898f9c847b91ad56c2523ea872e593bc493cc4269e1078322a875 | 11 | 896 |
responses:
"400":
description: bad input parameter
"200":
description: Success
content:
application/json:
schema:
type: object
properties:
help:
type: string
... | ifg-agentic | schema.yml | YAML | f8d4506ace6806025e29916468c1e972e35a99c8c676ec588f6e9a779e111ae0 | 12 | 896 |
name or id of the object of the activity, e.g.
# ``'my_dataset'``
# :param activity_type: the type of the activity, this must be an activity
# type that CKAN knows how to render, e.g. ``'new package'``,
# ``'changed user'``, ``'deleted group'`` etc.
# :type ... | ifg-agentic | schema.yml | YAML | dce9e1f6e5d005503213a97208adce4d5a9896175d5498a8ff39095ea0fa9c1e | 13 | 896 |
the key of the task status (optional)
# :type key: string\n
# :rtype: dictionary\n
# responses:
# "400":
# description: bad input parameter
# "200":
# description: a
# security:
# - ckanapikey: []
# /action/term_translation_show:
# get:
... | ifg-agentic | schema.yml | YAML | ca77c9b2155203620c57c69ed5b42139280abd0efa5b02812df72fae2757427c | 14 | 896 |
: a list of collaborators, each a dict including the package and
# user id, the capacity and the last modified date
# :rtype: list of dictionaries\n\n
# responses:
# "400":
# description: bad input parameter
# "200":
# description: a
# /action/package_... | ifg-agentic | schema.yml | YAML | 1aee2c1c8dc0ba2a634bf4302027b03aafc897ef25b9031f82db40f53eb1f965 | 15 | 896 |
=false unless set in site's
# configuration ``ckan.group_and_organization_list_max``
# Default: ``25`` when all_fields=true unless set in site's
# configuration ``ckan.group_and_organization_list_all_fields_max``
# :type limit: int
# :param offset: when ``li... | ifg-agentic | schema.yml | YAML | 6124fe61c96797fd24bd85fa8eb2607e2149113271e6293c8efe3340c281411b | 16 | 896 |
type include_tags: bool
# :param include_followers: include the group's number of followers
# (optional, default: ``True``)
# :type include_followers: bool\n
# :rtype: dictionary\n
# .. note:: Only its first 1000 datasets are returned\n\n
# responses:
# ... | ifg-agentic | schema.yml | YAML | 01889bbe40bdc8e07e4fc2ebebc8804986ff9084ef12c1668f8eb817e46bb45b | 17 | 896 |
`)
# :type include_users: bool
# :param include_groups: include the organization's sub groups
# (optional, default: ``True``)
# :type include_groups: bool
# :param include_tags: include the organization's tags
# (optional, default: ``True``)
# ... | ifg-agentic | schema.yml | YAML | c4de0b781c86dbc353784c4c9ba56bcfe382cac62d0becf96ee29a2cda708636 | 18 | 896 |
:``False``, limit:50)
# :type include_datasets: bool
# :param include_num_followers: Include the number of followers the user has
# (optional, default:``False``)
# :type include_num_followers: bool
# :param include_password_hash: Include the stored password hash
#... | ifg-agentic | schema.yml | YAML | 389d59d1a82e65f429da89e93984d45fa79576fb21ee1d1cf8d1bcceb1e42b75 | 19 | 896 |
One of ``member``, ``editor``,
# or ``admin``
# :type role: string\n
# :returns: the newly created user
# :rtype: dictionary\n
# responses:
# "400":
# description: bad input parameter
# "200":
# description: a
# /action/member_creat... | ifg-agentic | schema.yml | YAML | 9e060e02ae03ed65320d2a302c8bfd8f46d555deda58cb45bef87dbf6ad86f97 | 20 | 896 |
: string\n\n
# responses:
# "400":
# description: bad input parameter
# "200":
# description: a
# /action/member_delete:
# post:
# operationId: member_delete
# tags:
# - organizations
# summary: Remove an object (e.g. a user, dataset or group) fr... | ifg-agentic | schema.yml | YAML | b75fe3bf24fdc8658860d6b1bfeed18a8e12522a2453e72c165a5cd65d00203b | 21 | 896 |
.interfaces.IGroupForm` plugins
# associate themselves with different group types and provide custom
# group handling behaviour for these types
# Cannot be 'organization'
# :type type: string
# :param state: the current state of the group, e.g. ``'active'`` ... | ifg-agentic | schema.yml | YAML | a5ed9c0b89ec9a4678e0d49cf5624c473848cd046a2b78722e9725157bc8aed9 | 22 | 896 |
:
# description: a
# /action/group_delete:
# post:
# operationId: group_delete
# tags:
# - organizations
# summary: Delete a group
# description: >
# You must be authorized to delete the group.\n
# :param id: the name or id of the group
# :type... | ifg-agentic | schema.yml | YAML | e87f7592c4d16e94ace27db56547e18aaec5dffc8f512d01457da91c8179c510 | 23 | 896 |
:type defer_commit: bool\n
# responses:
# "400":
# description: bad input parameter
# "200":
# description: a
# /action/group_follower_count:
# get:
# operationId: group_follower_count
# tags:
# - social
# summary: Return the number of followers... | ifg-agentic | schema.yml | YAML | 735cf8226deb8e2fbae22e9c370ed312f46a4a5041e3cce905de4c509c496e6a | 24 | 896 |
input parameter
# "200":
# description: a
# /action/user_follower_list:
# get:
# operationId: user_follower_list
# tags:
# - social
# summary: Return the list of users that are following the given user
# description: >
# :param id: the id or name of the us... | ifg-agentic | schema.yml | YAML | ce45388cab32b45cc59333ebd3bd9d1b822d01dd08892cc867b80a8a0aa7fd3d | 25 | 896 |
"200":
# description: a
# /action/followee_count:
# get:
# operationId: followee_count
# tags:
# - social
# summary: Return the number of objects that are followed by the given user
# description: >
# Counts all objects, of any type, that the given user is followi... | ifg-agentic | schema.yml | YAML | 4c82a5fdbf0bfbdeff7f2997e78f8da87cd5c2aae745a70f3df1391c82de923a | 26 | 896 |
:
# - social
# summary: Stop following a user.
# description: >
# :param id: the id or name of the user to stop following
# :type id: string\n\n
# responses:
# "400":
# description: bad input parameter
# "200":
# description: a
# /action/... | ifg-agentic | schema.yml | YAML | 50341c0879cca11f1457ab6a804adfe3827849f3c5bc1d2ef45fe1f151e2e3df | 27 | 896 |
# summary: Return a list of resource formats whose names contain a string
# description: >
# :param q: the string to search for
# :type q: string
# :param limit: the maximum number of resource formats to return (optional,
# default: ``5``)
# :type limit: int... | ifg-agentic | schema.yml | YAML | 6e23e30dc0545b49aa9ca14a3c18767a9e4f8e145cbfdc0d385fb8baed2c2795 | 28 | 896 |
``'Jazz'``
# :type name: string
# :param vocabulary_id: the id of the vocabulary that the new tag
# should be added to, e.g. the id of vocabulary ``'Genre'``
# :type vocabulary_id: string\n
# :returns: the newly-created tag
# :rtype: dictionary\n\n
# ... | ifg-agentic | schema.yml | YAML | 250f04d22df04edb808749849755ed24e91769bb5a7d2d427fbcc76f97b325b9 | 29 | 896 |
operationId: config_option_update
# tags:
# - serveradmin
# summary: Allows to modify some CKAN runtime-editable config options
# description: >
# It takes arbitrary key, value pairs and checks the keys against the
# config options update schema. If some of the provided keys ... | ifg-agentic | schema.yml | YAML | db74cef230a8fdc3c5366053113927d43edc75815f2fe2f0fbb7313fc5884556 | 30 | 896 |
# .. versionadded:: 2.7\n
# responses:
# "400":
# description: bad input parameter
# "200":
# description: a
# /action/resource_view_clear:
# post:
# operationId: resource_view_clear
# tags:
# - datamanagement
# summary: Delete all resou... | ifg-agentic | schema.yml | YAML | 0c5c3174a16605fa6f9dd8dc38a5cb49c1baacaf89fafff592459c44886a72e7 | 31 | 115 |
import type { Config } from "tailwindcss";
const config: Config = {
darkMode: "class",
content: [
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
"./components/**/*.{js,ts,jsx,tsx,mdx}",
"./app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
fontFamily: {
sans: ["var(--font-geist)"],
... | ifg-agentic | tailwind.config.ts | TypeScript | 121586878c66087801ce6fea74033d4c87f5b949cd9857b499fd4911f05eff2d | 0 | 860 |
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# --- Enterprise Data Loading and Validation ---
def load_validate_data(url):
"""
Loads and validates the Donauinsel Freizeiteinrichtungen Punkte dataset.
Performs key data quality checks and prepares latitude/longitude columns.
""... | ifg-agentic | test.py | Python | eae439c963b3f6f308abb22c39e7c75ae9adf5ac773f561ddd9d12d1241a3f7c | 0 | 800 |
@import 'tailwindcss';
@import "tw-animate-css";
@custom-variant dark (&:is(.dark *));
:root {
--card: oklch(1 0 0);
--card-foreground: oklch(0.141 0.005 285.823);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.141 0.005 285.823);
--primary: oklch(0.5749 0.233917 259.9541);
--primary-foreground: ... | ifg-agentic | app/globals.css | CSS | df29ea8b36d47434c4cc430da25ca12f0a887fb59f066100447571d4d112f64e | 0 | 896 |
);
--sidebar-accent-foreground: oklch(0.967 0.001 286.375);
--sidebar-border: oklch(0.274 0.006 286.033);
--sidebar-ring: oklch(0.442 0.017 285.786);
}
@theme inline {
--font-sans:
var(--font-sans), ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Co... | ifg-agentic | app/globals.css | CSS | 0dcd46a063a92cb1d5f427ee48f6d67693f98ca111c027e4ae5baeedacb04bf7 | 1 | 876 |
import { Toaster } from "sonner";
import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import { ThemeProvider } from "@/components/theme-provider";
import "./globals.css";
import { SessionProvider } from "next-auth/react";
export const metadata: Metadata = {
metadataBase: new ... | ifg-agentic | app/layout.tsx | TypeScript | d376e43453f21ad29e14f1909ac38023269542dbc6d60e7aa26ee38de9d1fbe7 | 0 | 596 |
'use server';
import { z } from 'zod';
import { createUser, getUser } from '@/lib/db/queries';
import { signIn } from './auth';
const authFormSchema = z.object({
email: z.string().email(),
password: z.string().min(6),
});
export type LoginActionState = {
status: 'idle' | 'in_progress' | 'success' | 'failed' ... | ifg-agentic | app/(auth)/actions.ts | TypeScript | 56d55154a366e316c3f02280f3a67c9c68f7b7dc93e045e1888086c0bebf2fce | 0 | 445 |
import type { NextAuthConfig } from 'next-auth';
export const authConfig = {
pages: {
signIn: '/login',
newUser: '/',
},
providers: [
// added later in auth.ts since it requires bcrypt which is only compatible with Node.js
// while this file is also used in non-Node.js environments
],
callbac... | ifg-agentic | app/(auth)/auth.config.ts | TypeScript | 7a977317eb4725072b015eb41d86f8e9ee8d9563669e40803e0253e8d0e5356f | 0 | 84 |
import { compare } from 'bcrypt-ts';
import NextAuth, { type DefaultSession } from 'next-auth';
import Credentials from 'next-auth/providers/credentials';
import { createGuestUser, getUser } from '@/lib/db/queries';
import { authConfig } from './auth.config';
import { DUMMY_PASSWORD } from '@/lib/constants';
import typ... | ifg-agentic | app/(auth)/auth.ts | TypeScript | ed28d23b2348579490497d5ab8bb69d896f305dbbb8a8f18bccc71c93852ac0d | 0 | 476 |
export { GET, POST } from '@/app/(auth)/auth';
| ifg-agentic | app/(auth)/api/auth/[...nextauth]/route.ts | TypeScript | 8785ef0eb6dd144dc2eb7beba2931d136c36342fd39da1d7545b5b6c59d423e6 | 0 | 19 |
import { signIn } from '@/app/(auth)/auth';
import { isDevelopmentEnvironment } from '@/lib/constants';
import { getToken } from 'next-auth/jwt';
import { NextResponse } from 'next/server';
export async function GET(request: Request) {
const { searchParams } = new URL(request.url);
const redirectUrl = searchParams... | ifg-agentic | app/(auth)/api/auth/guest/route.ts | TypeScript | 82f58f6549a8108c4c83790e2d7a31a510f4dc8ba37b3a23dabc088fca928a0a | 0 | 164 |
'use client';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import { useActionState, useEffect, useState } from 'react';
import { toast } from '@/components/toast';
import { AuthForm } from '@/components/auth-form';
import { SubmitButton } from '@/components/submit-button';
import { logi... | ifg-agentic | app/(auth)/login/page.tsx | TypeScript | 60ae40f86d73b03ad468049eb8560c22c2aff837b27cd55a220fb2218b08b84b | 0 | 632 |
'use client';
import Link from 'next/link';
import { useRouter } from 'next/navigation';
import { useActionState, useEffect, useState } from 'react';
import { AuthForm } from '@/components/auth-form';
import { SubmitButton } from '@/components/submit-button';
import { register, type RegisterActionState } from '../ac... | ifg-agentic | app/(auth)/register/page.tsx | TypeScript | c72e25264947e7ea1cbdaca422b5a4fbd16f7b55ba6365f8103fc7fdb55c4856 | 0 | 683 |
'use server';
import { generateText, type UIMessage } from 'ai';
import { cookies } from 'next/headers';
import {
deleteMessagesByChatIdAfterTimestamp,
getMessageById,
updateChatVisiblityById,
} from '@/lib/db/queries';
import type { VisibilityType } from '@/components/visibility-selector';
import { myProvider }... | ifg-agentic | app/(chat)/actions.ts | TypeScript | 818e269deb8e6397c443ed136c8307358901a383732d6cd4677ed5858920de37 | 0 | 316 |
import { cookies } from 'next/headers';
import { AppSidebar } from '@/components/app-sidebar';
import { SidebarInset, SidebarProvider } from '@/components/ui/sidebar';
import { auth } from '../(auth)/auth';
import Script from 'next/script';
import { DataStreamProvider } from '@/components/data-stream-provider';
expor... | ifg-agentic | app/(chat)/layout.tsx | TypeScript | bf157da9f90939b283e5e32188462d4863ea3f0df800fb4da3e588c012913eba | 0 | 244 |
import { cookies } from 'next/headers';
import { Chat } from '@/components/chat';
import { DEFAULT_CHAT_MODEL } from '@/lib/ai/models';
import { generateUUID } from '@/lib/utils';
import { DataStreamHandler } from '@/components/data-stream-handler';
import { auth } from '../(auth)/auth';
import { redirect } from 'next... | ifg-agentic | app/(chat)/page.tsx | TypeScript | 76b3a47b8ab87c54e72b83e7576a4637e2fde5108b4cb7e473d7ed6c03cb6d49 | 0 | 280 |
import { geolocation } from "@vercel/functions";
import {
convertToModelMessages,
createUIMessageStream,
JsonToSseTransformStream,
smoothStream,
stepCountIs,
streamText,
} from "ai";
import { unstable_cache as cache } from "next/cache";
import { after } from "next/server";
import {
createResumableStreamCo... | ifg-agentic | app/(chat)/api/chat/route.ts | TypeScript | 3f57c2f325adfae28620419ef29b725326a1fa6bc49af2e4338094e16d825472 | 0 | 896 |
({
message,
});
await saveChat({
id,
userId: session.user.id,
title,
visibility: selectedVisibilityType,
});
}
const messagesFromDb = await getMessagesByChatId({ id });
const uiMessages = [...convertToUIMessages(messagesFromDb), message];
cons... | ifg-agentic | app/(chat)/api/chat/route.ts | TypeScript | c1881e536b8ea69ddc478b5b2859146f0d520993a752fcf2470736b1fdd489f2 | 1 | 896 |
;
// if (streamContext) {
// return new Response(
// await streamContext.resumableStream(streamId, () =>
// stream.pipeThrough(new JsonToSseTransformStream())
// )
// );
// }
return new Response(stream.pipeThrough(new JsonToSseTransformStream()));
} catch (error) {
... | ifg-agentic | app/(chat)/api/chat/route.ts | TypeScript | 0c82f9ae1ea21b00c6b89f71c66b5aaec9854115fd300e1494570a12a8a0ae87 | 2 | 355 |
import { z } from "zod";
const textPartSchema = z.object({
type: z.enum(["text"]),
text: z.string().min(1).max(2000),
});
const filePartSchema = z.object({
type: z.enum(["file"]),
mediaType: z.enum(["image/jpeg", "image/png"]),
name: z.string().min(1).max(100),
url: z.string().url(),
});
const partSchema... | ifg-agentic | app/(chat)/api/chat/schema.ts | TypeScript | 0655e30d865739a510894dc1755262771e8908a4623c266ad1e96c2333b05c40 | 0 | 245 |
import { cookies } from 'next/headers';
import { notFound, redirect } from 'next/navigation';
import { auth } from '@/app/(auth)/auth';
import { Chat } from '@/components/chat';
import { getChatById, getMessagesByChatId } from '@/lib/db/queries';
import { DataStreamHandler } from '@/components/data-stream-handler';
im... | ifg-agentic | app/(chat)/chat/[id]/page.tsx | TypeScript | d1d7c5cccab671d21145b49e081881c576b49eebf61b9c0b55749d0df4028d20 | 0 | 433 |
import { toast } from "sonner";
import { CodeEditor } from "@/components/code-editor";
import {
Console,
type ConsoleOutput,
type ConsoleOutputContent,
} from "@/components/console";
import { Artifact } from "@/components/create-artifact";
import {
CopyIcon,
LogsIcon,
MessageIcon,
PlayIcon,
RedoIcon,
... | ifg-agentic | artifacts/code/client.tsx | TypeScript | 390a810601ff54dad4f93f5ef2f475af8bb4b822ca6a2f33138597d0e8d1fddc | 0 | 896 |
/>
</div>
{metadata?.outputs && (
<Console
consoleOutputs={metadata.outputs}
setConsoleOutputs={() => {
setMetadata({
...metadata,
outputs: [],
});
}}
/>
)}
</>
);
},
... | ifg-agentic | artifacts/code/client.tsx | TypeScript | e5c0996c2f7fbcdad664362fa23235f37cce32867f13bded72cd56c978406fde | 1 | 896 |
",
parts: [
{
type: "text",
text: "Add comments to the code snippet for understanding",
},
],
});
},
},
{
icon: <LogsIcon />,
description: "Add logs",
onClick: ({ sendMessage }) => {
sendMessage({
... | ifg-agentic | artifacts/code/client.tsx | TypeScript | faa43cf2e222d4c3f938b8a5f65002d16e34f6dbfcc00eebc79963259f14608d | 2 | 109 |
import { streamObject } from "ai";
import { z } from "zod";
import { codePrompt, updateDocumentPrompt } from "@/lib/ai/prompts";
import { myProvider } from "@/lib/ai/providers";
import { createDocumentHandler } from "@/lib/artifacts/server";
export const codeDocumentHandler = createDocumentHandler<"code">({
kind: "c... | ifg-agentic | artifacts/code/server.ts | TypeScript | 324dcebf2e3f0ff86e4b75508ffdb86a9d7509e7392e7cfd6cf9d668b1b5abc1 | 0 | 704 |
import { streamObject } from "ai";
import { z } from "zod";
import { sheetPrompt, updateDocumentPrompt } from "@/lib/ai/prompts";
import { myProvider } from "@/lib/ai/providers";
import { createDocumentHandler } from "@/lib/artifacts/server";
export const sheetDocumentHandler = createDocumentHandler<"sheet">({
kind:... | ifg-agentic | artifacts/sheet/server.ts | TypeScript | 009b5a49ce73b026cbcb07a04230326fdb5e3e33985f4bb8ff2e561f21715974 | 0 | 728 |
import type { ComponentPropsWithoutRef, CSSProperties, FC } from "react";
import { cn } from "@/lib/utils";
export interface AnimatedShinyTextProps
extends ComponentPropsWithoutRef<"span"> {
shimmerWidth?: number;
}
export const AnimatedShinyText: FC<AnimatedShinyTextProps> = ({
children,
className,
shimme... | ifg-agentic | components/animated-shiny-text.tsx | TypeScript | 8fe2ec3a4c537e3cfa053549e7b0abe344aa8a302d22a640b9c03f37edcb9131 | 0 | 218 |
"use client";
import Link from "next/link";
import { useRouter } from "next/navigation";
import type { User } from "next-auth";
import { PlusIcon } from "@/components/icons";
import { SidebarHistory } from "@/components/sidebar-history";
import { SidebarUserNav } from "@/components/sidebar-user-nav";
import { Button }... | ifg-agentic | components/app-sidebar.tsx | TypeScript | 1d1e6866b465f3c801a816730a98b9b476308736067784602171d6d4e5d01b74 | 0 | 497 |
import { type Dispatch, memo, type SetStateAction, useState } from "react";
import { toast } from "sonner";
import { cn } from "@/lib/utils";
import { artifactDefinitions, type UIArtifact } from "./artifact";
import type { ArtifactActionContext } from "./create-artifact";
import { Button } from "./ui/button";
import { ... | ifg-agentic | components/artifact-actions.tsx | TypeScript | bd876f19da0879fed8ca9fa99e6cf2dcef43eb6c3616c32995715099206798e9 | 0 | 661 |
import { memo } from "react";
import { X } from "lucide-react";
import { initialArtifactData, useArtifact } from "@/hooks/use-artifact";
import { Button } from "./ui/button";
import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip";
function PureArtifactCloseButton() {
const { setArtifact } = useArtifa... | ifg-agentic | components/artifact-close-button.tsx | TypeScript | be527882e89c0e455b3840c36fc7538bea6cddbc628922a68a7a86dfd5b36389 | 0 | 251 |
import type { UseChatHelpers } from "@ai-sdk/react";
import equal from "fast-deep-equal";
import { AnimatePresence, motion } from "framer-motion";
import {
type Dispatch,
memo,
type SetStateAction,
useCallback,
useEffect,
useState,
} from "react";
import useSWR, { useSWRConfig } from "swr";
import { useDebo... | ifg-agentic | components/artifact.tsx | TypeScript | b32f346205ee481af7b9150f9d1eabf2ac127a40a1a48b06ad8a161537c3bc48 | 0 | 896 |
;
const { mutate } = useSWRConfig();
const [_isContentDirty, setIsContentDirty] = useState(false);
const pathname = usePathname();
const handleContentChange = useCallback(
(updatedContent: string) => {
if (!artifact) {
return;
}
mutate<Document[]>(
`/api/document?id=${ar... | ifg-agentic | components/artifact.tsx | TypeScript | a51ad770f077b214e225f49b4fb81763cff55d42d9107faa230bb0a12540e39d | 1 | 896 |
& (
<motion.div
animate={{ width: windowWidth, right: 0 }}
className="fixed z-40 h-dvh bg-transparent"
exit={{
width: isSidebarOpen ? windowWidth - 256 : windowWidth,
right: 0,
}}
initial={{
... | ifg-agentic | components/artifact.tsx | TypeScript | 140551ca69031b9a6918a340eb35c44f032928f3c1e848b79eb166c2c9a8830c | 2 | 896 |
: "spring",
stiffness: 300,
damping: 30,
duration: 0.8,
},
}
}
className="fixed z-[70] flex h-dvh flex-col overflow-y-scroll border-zinc-200 bg-transparent dark:border-zinc-700"
exit={{
... | ifg-agentic | components/artifact.tsx | TypeScript | fb7c3afce068d86eddf836885dbbe1a5f88740d979829e13f06217b9f6560831 | 3 | 800 |
"use client";
import { useChat } from "@ai-sdk/react";
import { DefaultChatTransport } from "ai";
import { useSearchParams } from "next/navigation";
import { useEffect, useRef, useState } from "react";
import useSWR, { useSWRConfig } from "swr";
import { unstable_serialize } from "swr/infinite";
import { ChatHeader } ... | ifg-agentic | components/chat.tsx | TypeScript | 6398ded472e8be822d124797ed5ac0ca09b2b657117d42e2e52ac31a02ef65b8 | 0 | 896 |
as const,
parts: [{ type: "text", text: query }],
});
setHasAppendedQuery(true);
window.history.replaceState({}, "", `/chat/${id}`);
}
}, [query, sendMessage, hasAppendedQuery, id]);
const { data: votes } = useSWR<Vote[]>(
messages.length >= 2 ? `/api/vote?chatId=${id}` : null,
... | ifg-agentic | components/chat.tsx | TypeScript | 524b4d95925e855b5f557ba505f17caadc39772f95dde351a28a8df82e2f48da | 1 | 667 |
'use client';
type CodeBlockProps = {
node: any;
inline: boolean;
className: string;
children: any;
};
export function CodeBlock({
node,
inline,
className,
children,
...props
}: CodeBlockProps) {
if (inline) {
return (
<code
className={`${className} rounded-md bg-zinc-100 px-1 py... | ifg-agentic | components/code-block.tsx | TypeScript | 16286b4fd024a7d3501e7e23f7dc45968804acb76415835ba629476fa32e02b7 | 0 | 222 |
"use client";
import { memo, useEffect, useRef, useState } from "react";
import { createHighlighter, type Highlighter } from "shiki";
import type { Suggestion } from "@/lib/db/schema";
type EditorProps = {
content: string;
onSaveContent: (updatedContent: string, debounce: boolean) => void;
status: "streaming" |... | ifg-agentic | components/code-editor.tsx | TypeScript | 2963014940b63d6df8edc73d3f34a9a34125eab041cdc7f56fb1f70e37047099 | 0 | 684 |
import { BoxIcon, HouseIcon, PanelsTopLeftIcon } from "lucide-react"
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
} from "@/components/ui/tabs"
export default function Component() {
return (
<Tabs defaultValue="tab-1" className="items-center">
<TabsList className="h-auto rounded-none border-... | ifg-agentic | components/comp-438.tsx | TypeScript | ca8681611eb0cd7a4bf7eba67af493ad8c3a0a3e550e49aa9d760c1153c8b5b8 | 0 | 570 |
"use client";
import { Button } from "@/components/ui/button";
import {
Card,
CardContent,
CardDescription,
CardHeader,
CardTitle,
} from "@/components/ui/card";
import { FileText, Search, ExternalLink, Sparkles, Info } from "lucide-react";
import Link from "next/link";
type DataNotFoundActionProps = {
se... | ifg-agentic | components/data-not-found-action.tsx | TypeScript | 9fd6e8800eb7caea79ffce0ddb6b0c57fac2153a7e7413f697b4a58bb34d672f | 0 | 896 |
text-xs">
<FileText className="h-3 w-3" />
<span>Rechtlich konform</span>
</div>
<div className="h-1 w-1 rounded-full bg-blue-400" />
<div className="flex items-center gap-1 text-blue-600 text-xs">
<Info className="h-3 w-3" />
<... | ifg-agentic | components/data-not-found-action.tsx | TypeScript | e0bb47fbc840827657b6e80c32231c03b8490e0fbbabdb6b79130648e1d77c3a | 1 | 359 |
"use client";
import { useEffect, useRef } from "react";
import { initialArtifactData, useArtifact } from "@/hooks/use-artifact";
import { artifactDefinitions } from "./artifact";
import { useDataStream } from "./data-stream-provider";
export function DataStreamHandler() {
const { dataStream } = useDataStream();
... | ifg-agentic | components/data-stream-handler.tsx | TypeScript | e0bfefbc43ac8cf1c984f1bf72a563dbcffa1c0c2b152e9469ab4af4407b0304 | 0 | 391 |
import Link from "next/link";
type Keyword = {
id: string;
label: string;
language: string;
};
type Catalog = {
id: string;
title: { [key: string]: string };
modified?: string;
issued?: string;
};
type Publisher = {
type: string;
name: string;
};
type Distribution = {
id: string;
title: { [key... | ifg-agentic | components/dataset-details-widget.tsx | TypeScript | 891377a731a33252834ec6d27d4a65bbdbafea6bbf7a03501ce449f622fa1233 | 0 | 896 |
{result.keywords.length - 4}
</span>
)}
</div>
)}
{/* Metadata Cards */}
<div className="grid grid-cols-2 gap-2 md:grid-cols-4">
{result.distributions && result.distributions.length > 0 && (
<div className="rounded border border-border/5... | ifg-agentic | components/dataset-details-widget.tsx | TypeScript | 671eb714ae53aefe7f187dce5fad48a15cabd50a7a4da0feabe8a6b2cd973e6b | 1 | 521 |
import Link from "next/link";
import { Badge } from "./ui/badge";
import { SparklesIcon } from "./icons";
import { Skeleton } from "./ui/skeleton";
import { SearchIcon } from "lucide-react";
type DatasetSearchResult = {
id: string;
title: string;
publisher_link?: string;
};
type DatasetSearchOutput = {
result... | ifg-agentic | components/dataset-message.tsx | TypeScript | 6f9520fc099867b237291c1b9b21125ab0d20c30172984d4a311462b816f6a53 | 0 | 896 |
"flex flex-row items-center gap-2">
<span className="text-muted-foreground">
<SparklesIcon size={14} />
</span>
<Skeleton className="h-4 w-32" />
</div>
<div className="flex flex-col gap-2 py-5">
<Skeleton className="h-4 w-24" />
<div className="flex flex-ro... | ifg-agentic | components/dataset-message.tsx | TypeScript | 7736d2969138291b7435df999ea9041b8d6b62cd8039d4ce03f1608f1a43cc5e | 1 | 314 |
import { Skeleton } from "./ui/skeleton";
export const DatasetDetailsSkeleton = () => {
return (
<div className="flex flex-col gap-3 rounded-lg border bg-card/60 p-3">
{/* Header */}
<div className="flex flex-row items-start gap-2">
<Skeleton className="h-8 w-8 rounded-sm" />
<div cla... | ifg-agentic | components/dataset-skeletons.tsx | TypeScript | 6b67a57a7537c82aa3a81675003336fd7e5d24ae2cb6d3b17c682f603c460dd8 | 0 | 835 |
div>
<div>
<FullscreenIcon />
</div>
</div>
<div className="overflow-y-scroll rounded-b-2xl border border-t-0 bg-muted p-8 pt-4 dark:border-zinc-700">
<InlineDocumentSkeleton />
</div>
</div>
);
const PureHitboxLayer = ({
hitboxRef,
result,
setArtifact,
}: {
hitboxRef: R... | ifg-agentic | components/document-preview.tsx | TypeScript | c900926581396d9696a965093bb4163e2f3b81f4bb9cd489c0639dbd1dd6a3d5 | 1 | 896 |
kind === "code" ? (
<div className="relative flex w-full flex-1">
<div className="absolute inset-0">
<CodeEditor {...commonProps} onSaveContent={handleSaveContent} />
</div>
</div>
) : document.kind === "sheet" ? (
<div className="relative flex size-full fle... | ifg-agentic | components/document-preview.tsx | TypeScript | 2d8d7f2deb6cb542c4f17fc6bdffd0e1cc040e384c5ce647872fd3a7a4f0fafa | 2 | 130 |
"use client";
import type { ArtifactKind } from "./artifact";
export const DocumentSkeleton = ({
artifactKind: _artifactKind,
}: {
artifactKind: ArtifactKind;
}) => {
return (
<div className="flex w-full flex-col gap-4">
<div className="h-12 w-1/2 animate-pulse rounded-lg bg-muted-foreground/20" />
... | ifg-agentic | components/document-skeleton.tsx | TypeScript | ccca26d362975e63d29577819587816a7cf2478f86cb6ea0034a17c1d5e06033 | 0 | 486 |
"use client";
import type React from "react";
import { motion, AnimatePresence } from "framer-motion";
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
import { Button } from "@/components/ui/button";
import { Badge } from "@/components/ui/badge";
import { CheckIcon, XIcon, EyeIcon } fr... | ifg-agentic | components/form-diff-view.tsx | TypeScript | 74cf4a1d0208896d1fe2b8cb0219fe7a0ad25d2b408e77461273512bd5d78f5f | 0 | 896 |
sm"
variant="outline"
onClick={onAccept}
className="h-7 border-green-200 px-2 text-green-600 hover:bg-green-50"
>
<CheckIcon className="mr-1 h-3 w-3" />
Accept
... | ifg-agentic | components/form-diff-view.tsx | TypeScript | 88cb2d769ae006fdd3378732167362ae5393380fe9598f6c3b0232513b10e0e9 | 1 | 894 |
import Image from "next/image";
import { useState } from "react";
import { motion } from "framer-motion";
type GradientBackgroundProps = {
active: boolean;
};
const GradientBackground = ({ active }: GradientBackgroundProps) => {
const [imageLoaded, setImageLoaded] = useState(false);
const handleImageLoad = ()... | ifg-agentic | components/gradient-background.tsx | TypeScript | 6b442da572965f7d121728436df6f9957885c15671b829442e13d73633085be5 | 0 | 303 |
import { motion } from "framer-motion";
import Image from "next/image";
export const Greeting = () => {
return (
<div
key="overview"
className="mx-auto flex h-[90%] w-full max-w-3xl flex-col justify-center gap-4 overflow-hidden text-center"
>
<motion.div
initial={{ opacity: 0, scale... | ifg-agentic | components/greeting.tsx | TypeScript | a4440d3b4bb84c84578c5b6e0addd145dfbf8838129025843902ba61ea9c9650 | 0 | 408 |
"use client";
import type React from "react";
import { useState, useEffect, useRef, useCallback } from "react";
import { Input } from "@/components/ui/input";
import { Textarea } from "@/components/ui/textarea";
import { Label } from "@/components/ui/label";
import { cn } from "@/lib/utils";
type InlineCompletionInpu... | ifg-agentic | components/inline-completion-input.tsx | TypeScript | bd08ea222d6f750b10e9978c22fdf9fbabc9b9696a37599404c3bdb49e5c28c9 | 0 | 896 |
setLastValue(newValue);
};
const handleFocus = () => {
// Re-fetch completion when input is focused
if (value.trim()) {
fetchCompletion(value);
}
};
const handleBlur = () => {
// Clear completion when input loses focus
setTimeout(() => setCompletion(... | ifg-agentic | components/inline-completion-input.tsx | TypeScript | 715e131565d92df9f9847fb9804cecf0703e69a11ff49ad881daf2f117e42b83 | 1 | 468 |
import { useState } from "react";
import { motion, AnimatePresence } from "framer-motion";
import { ChevronDown, ChevronRight, Database } from "lucide-react";
import { DatasetDetailsWidget, type DatasetResult } from "./dataset-details-widget";
import { DatasetDetailsSkeleton } from "./dataset-skeletons";
import { Shiny... | ifg-agentic | components/merged-dataset-details.tsx | TypeScript | 2b065f67c5b911048e05fd491dd4eda1c89b849cc46a66c795d66b11c746c121 | 0 | 896 |
y: 20 }}
animate={{ opacity: 1, y: 0 }}
exit={{ opacity: 0, y: -20 }}
transition={{
duration: 0.3,
delay: index * 0.05,
ease: "easeOut",
}}
>
... | ifg-agentic | components/merged-dataset-details.tsx | TypeScript | 8ad5ad5600fce30672037045dee645ef3c456220d8eb56c6b9ad9b063ef9bb7e | 1 | 322 |
"use client"
import Link from "next/link";
import { Badge } from "./ui/badge";
import { SparklesIcon } from "./icons";
import { Skeleton } from "./ui/skeleton";
import { SearchIcon, ChevronDown, ChevronRight, Search } from "lucide-react";
import { useState } from "react";
import { motion, AnimatePresence } from "frame... | ifg-agentic | components/merged-dataset-search.tsx | TypeScript | 3eee56f6acf9d201a4e04ada92b3cc6b4a308a1444ac73fbe98169cc9e53d998 | 0 | 896 |
/span>
</Badge>
))}
{allKeywords.length > 3 && (
<Badge
variant="secondary"
className="border border-border bg-card/60"
>
+{allKeywords.length - 3}
</Badge>
)}
... | ifg-agentic | components/merged-dataset-search.tsx | TypeScript | 62c534522176af8fdf770e26fa00aefa9662457ffb9961ddb7342c2ccbca3895 | 1 | 896 |
-row items-center gap-2 border border-border bg-card/60 text-sm"
>
<SearchIcon size={14} />
<span>{keyword}</span>
</Badge>
))}
</div>
)}
{/* Results */}
<div ... | ifg-agentic | components/merged-dataset-search.tsx | TypeScript | 987c93e19c18ca36226064d460654ebd246e264902ea13d482585b34145f08a4 | 2 | 795 |
const MessageContainer = () => {
return <div>test</div>;
};
export default MessageContainer;
| ifg-agentic | components/message-container.tsx | TypeScript | b0bbb0f521dd4afde7a6b816d0cad0da3114a2d112e552ce9b54a50809335a93 | 0 | 24 |
"use client";
import cx from "classnames";
import { AnimatePresence, motion } from "framer-motion";
import { memo, useState } from "react";
import type { Vote } from "@/lib/db/schema";
import { MessageActions } from "./message-actions";
import { PreviewAttachment } from "./preview-attachment";
import equal from "fast-d... | ifg-agentic | components/message.tsx | TypeScript | 21eb808c7263a05e6e47837259783ee65ea0c4c4b99fb04e73763897c892c96b | 0 | 896 |
type &&
p.toolCallId === part.toolCallId &&
"state" in p &&
p.state === "output-available"
);
const dataset =
matchingOutput?.output?.dataset || matchingOutput?.output?.data?.result;
if (dataset) {
groupedDatasets.push({
toolCallId: part.toolCa... | ifg-agentic | components/message.tsx | TypeScript | 56ce76ddd4a93d5e3a4f439143214da0eba042458413339f1aee20f8ec9295f5 | 1 | 896 |
const hasAnyOutput = groupedSearches.some(
(search) => search.output
);
return (
<MergedDatasetSearch
key={`merged-all-searches-${groupedSearches
.map((s) => s.toolCallId)
.... | ifg-agentic | components/message.tsx | TypeScript | 1e6717996cd259a6ff9adf10d26cdf28ecf85b82eef7944bca5920a1d0250ea6 | 2 | 896 |
(
<DocumentToolResult
isReadonly={isReadonly}
result={part.output}
type="request-suggestions"
/>
)
}
... | ifg-agentic | components/message.tsx | TypeScript | 64f67bf891fb627402501dba5a1c117753de64176ba5d2393491c41310c816cb | 3 | 896 |
: 0 }}
animate={{ y: 0, opacity: 1, transition: { delay: 1 } }}
data-role={role}
>
<div
className={cx(
"flex w-full gap-4 rounded-xl group-data-[role=user]/message:ml-auto group-data-[role=user]/message:w-fit group-data-[role=user]/message:max-w-2xl group-data-[role=user]/message... | ifg-agentic | components/message.tsx | TypeScript | 5cbfcaa9b7a43964a2fae84a91ed079c99f90eebdf8b7c71df8090aa18b2ba19 | 4 | 324 |
.status !== nextProps.status) {
return false;
}
if (prevProps.selectedModelId !== nextProps.selectedModelId) {
return false;
}
if (prevProps.messages.length !== nextProps.messages.length) {
return false;
}
if (!equal(prevProps.messages, nextProps.messages)) {
return false;
}
if (!equal(p... | ifg-agentic | components/messages.tsx | TypeScript | 88190e846b5314729a9fd4e8f81eceb701b5b79fab981f2527c7e21766654163 | 1 | 96 |
"use client";
import type { Session } from "next-auth";
import { startTransition, useMemo, useOptimistic, useState } from "react";
import { saveChatModelAsCookie } from "@/app/(chat)/actions";
import { Button } from "@/components/ui/button";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
Dropdow... | ifg-agentic | components/model-selector.tsx | TypeScript | f4483a7f2b29242142d3ddbf7af49f66cce3f33f47f1259f8bfe31e9a699fce9 | 0 | 720 |
"use client";
import type { UseChatHelpers } from "@ai-sdk/react";
import type { UIMessage } from "ai";
import equal from "fast-deep-equal";
import {
type ChangeEvent,
type Dispatch,
memo,
type SetStateAction,
startTransition,
useCallback,
useEffect,
useMemo,
useRef,
useState,
} from "react";
impor... | ifg-agentic | components/multimodal-input.tsx | TypeScript | bbce028a85acd8bce7dcc3e76742922b21a59c7464be03b1177651cd62a402fa | 0 | 896 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.