text stringlengths 367 5.14M | id stringlengths 19 24 | metadata dict |
|---|---|---|
use crate::models::{
DocumentTask, TaskStatus, AnkiCard, AnkiGenerationOptions, AppError, StreamedCardPayload,
StreamEvent, AnkiDocumentGenerationRequest
};
use crate::database::Database;
use crate::llm_manager::LLMManager;
use crate::document_processing_service::DocumentProcessingService;
use crate::streaming_... | train_000.parquet/100 | {
"file_path": "src-tauri/src/enhanced_anki_service.rs",
"repo_id": "000haoji/deep-student",
"size": 9108,
"token_count": 3079
} |
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
pub mod models;
pub mod llm_manager;
pub mod analysis_service;
pub mod commands;
pub mod crypto;
pub mod database;
pub mod file_manager;
pub mod batch_operations;
pub mod database_optimizations;
pub mod anki_connect_service;
pub mod apkg_expo... | train_000.parquet/101 | {
"file_path": "src-tauri/src/lib.rs",
"repo_id": "000haoji/deep-student",
"size": 13878,
"token_count": 4517
} |
use crate::models::{
DocumentChunk, DocumentChunkWithEmbedding, RetrievedChunk, RagQueryOptions,
KnowledgeBaseStatusPayload, DocumentProcessingStatus, DocumentProcessingStage,
RagQueryResponse, AppError
};
use crate::vector_store::{SqliteVectorStore, VectorStore};
use crate::llm_manager::LLMManager;
use c... | train_000.parquet/102 | {
"file_path": "src-tauri/src/rag_manager.rs",
"repo_id": "000haoji/deep-student",
"size": 55374,
"token_count": 18620
} |
# Map Tiles Component for LVGL 9.x
A comprehensive map tiles component for ESP-IDF projects using LVGL 9.x. This component provides functionality to load and display map tiles with GPS coordinate conversion, designed for embedded applications requiring offline map display capabilities.
## Features
- **LVGL 9.x Compa... | train_000.parquet/103 | {
"file_path": "README.md",
"repo_id": "0015/map_tiles",
"size": 9617,
"token_count": 3484
} |
/**
* 后端调试日志记录模块
* 用于记录数据库操作、API调用、流式处理等关键信息
*/
use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use std::fs::{File, OpenOptions};
use std::io::Write;
use std::path::PathBuf;
use std::sync::{Arc, Mutex};
use tauri::Manager;
use tracing::{error, info, warn};
#[derive(... | train_000.parquet/104 | {
"file_path": "src-tauri/src/debug_logger.rs",
"repo_id": "000haoji/deep-student",
"size": 16777,
"token_count": 5570
} |
# galgame_cn
如标题所叙,本项目主要收集galgame汉化资源站点/频道
附带一个 `generate_list` 工具来生成markdown文档。
## 免责声明
本项目只是出于个人兴趣,收集一些入门门槛较低的资源站点/频道。
本项目不保证您通过这些站点/频道下载的资源是安全的,请您自行斟酌。
## 生成
```bash
cd generate_list &&
touch ../readme.md &&
mkdir res &&
cargo run -- -o ../readme.md -s ../sites.txt &&
mv res ..
```
## 频道
[莱茵图... | train_000.parquet/105 | {
"file_path": "readme.md",
"repo_id": "000ylop/galgame_cn",
"size": 5667,
"token_count": 3071
} |
#include "map_tiles.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "esp_log.h"
#include "esp_heap_caps.h"
static const char* TAG = "map_tiles";
// Internal structure for map tiles instance
struct map_tiles_t {
// Configuration
char* base_path;
char* tile_folders[M... | train_000.parquet/106 | {
"file_path": "map_tiles.cpp",
"repo_id": "0015/map_tiles",
"size": 15307,
"token_count": 6018
} |
import os
import struct
import argparse
import threading
from concurrent.futures import ThreadPoolExecutor, as_completed
from PIL import Image # pip install pillow
# No implicit defaults; these are set from CLI in main()
INPUT_ROOT = None
OUTPUT_ROOT = None
# Convert RGB to 16-bit RGB565
def to_rgb565(r, g, b):
... | train_000.parquet/107 | {
"file_path": "script/lvgl_map_tile_converter.py",
"repo_id": "0015/map_tiles",
"size": 5525,
"token_count": 1995
} |
# **LVGL Map Tile Converter**
This Python script is designed to convert a directory of PNG map tiles into a format compatible with LVGL (Light and Versatile Graphics Library) version 9\. The output is a series of binary files (.bin) with a header and pixel data in the RGB565 format, optimized for direct use with LVGL'... | train_000.parquet/108 | {
"file_path": "script/README.md",
"repo_id": "0015/map_tiles",
"size": 2451,
"token_count": 780
} |
#include "map_tiles.h"
#include "lvgl.h"
#include "esp_log.h"
static const char* TAG = "map_example";
// Map tiles handle
static map_tiles_handle_t map_handle = NULL;
// LVGL objects for displaying tiles
static lv_obj_t* map_container = NULL;
static lv_obj_t** tile_images = NULL; // Dynamic array for configurable g... | train_000.parquet/109 | {
"file_path": "examples/basic_map_display.c",
"repo_id": "0015/map_tiles",
"size": 8744,
"token_count": 3306
} |
#pragma once
#include <stdint.h>
#include <stdbool.h>
#include "lvgl.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Map tiles component for LVGL 9.x
*
* This component provides functionality to load and display map tiles with GPS coordinate conversion.
* Tiles are assumed to be 256x256 pixels in RGB565 ... | train_000.parquet/110 | {
"file_path": "include/map_tiles.h",
"repo_id": "0015/map_tiles",
"size": 7960,
"token_count": 2709
} |
use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};
use std::fmt;
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ChatMessage {
pub role: String, // "user" 或 "assistant"
pub content: String,
pub timestamp: DateTime<Utc>,
#[serde(default, skip_serializing_if = "Option::is_none")... | train_000.parquet/111 | {
"file_path": "src-tauri/src/models.rs",
"repo_id": "000haoji/deep-student",
"size": 31459,
"token_count": 12086
} |
/**
* 文档解析核心模块
*
* 提供统一的文档文本提取功能,支持DOCX和PDF格式
* 支持文件路径、字节流和Base64编码三种输入方式
*/
use std::io::Cursor;
use std::fs;
use std::path::Path;
use serde::{Deserialize, Serialize};
use base64::{Engine, engine::general_purpose};
/// 文档文件大小限制 (100MB)
const MAX_DOCUMENT_SIZE: usize = 100 * 1024 * 1024;
/// 流式处理时的缓冲区大小 (1MB)
... | train_000.parquet/112 | {
"file_path": "src-tauri/src/document_parser.rs",
"repo_id": "000haoji/deep-student",
"size": 10538,
"token_count": 3958
} |
# LVGL Joystick Library
This library provides an easy way to create virtual joysticks for use in an LVGL environment. It supports both ESP-IDF and Arduino platforms and allows you to handle joystick input with customizable styles and callbacks.
[](https://youtu.be/ZhhSd6L... | train_000.parquet/113 | {
"file_path": "README.md",
"repo_id": "0015/LVGL_Joystick",
"size": 2798,
"token_count": 961
} |
<pre>
██████╗ █████╗ ███████╗██████╗ ██████╗ ███████╗██████╗ ██████╗ ██╗ ██╗ ██████╗ ██╗
██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗╚██╗ ██╔╝ ██╔══██╗██║
██████╔╝███████║███████╗██████╔╝██████╔╝█████╗ ██████╔╝██████╔╝ ╚████╔╝ ██████╔╝██║
██╔══██╗██╔══██║╚════██║██╔═══╝ ██╔══██╗██╔══╝ ... | train_000.parquet/114 | {
"file_path": "README.md",
"repo_id": "0015/RPI-Projects",
"size": 1171,
"token_count": 1116
} |
#include "lvgl_joystick.h"
#include <math.h>
#include <stdlib.h>
static void joystick_trigger_callback(joystick_data_t *data, int16_t x,
int16_t y) {
if (data->position_callback) {
data->position_callback(data->joystick_id, x, y);
}
}
static void joystick_handle_release(... | train_000.parquet/115 | {
"file_path": "src/lvgl_joystick.c",
"repo_id": "0015/LVGL_Joystick",
"size": 5164,
"token_count": 2078
} |
#ifndef LVGL_JOYSTICK_H
#define LVGL_JOYSTICK_H
#ifdef __cplusplus
extern "C" {
#endif
#pragma once
#include <lvgl.h>
// Callback function type
typedef void (*joystick_position_cb_t)(uint8_t joystick_id, int16_t x,
int16_t y);
// Enum for how joystick reports data in the callb... | train_000.parquet/116 | {
"file_path": "src/lvgl_joystick.h",
"repo_id": "0015/LVGL_Joystick",
"size": 1193,
"token_count": 459
} |
use std::path::{Path, PathBuf};
use std::fs;
use std::sync::Mutex;
use anyhow::{Context, Result};
use rusqlite::{Connection, params, OptionalExtension};
use chrono::{Utc, DateTime};
use crate::models::{MistakeItem, ChatMessage, Statistics, SubjectConfig, SubjectPrompts, DocumentTask, TaskStatus, AnkiCard, SubLibrary, C... | train_000.parquet/117 | {
"file_path": "src-tauri/src/database.rs",
"repo_id": "000haoji/deep-student",
"size": 145648,
"token_count": 57186
} |
use serde::{Deserialize, Serialize};
use std::collections::HashMap;
use crate::models::AnkiCard;
use std::net::TcpStream;
use std::time::Duration;
const ANKI_CONNECT_URL: &str = "http://127.0.0.1:8765";
#[derive(Serialize)]
struct AnkiConnectRequest {
action: String,
version: u32,
#[serde(skip_serializing... | train_000.parquet/118 | {
"file_path": "src-tauri/src/anki_connect_service.rs",
"repo_id": "000haoji/deep-student",
"size": 12770,
"token_count": 4371
} |
use crate::models::{
DocumentChunk, DocumentChunkWithEmbedding, RetrievedChunk, VectorStoreStats, AppError
};
use crate::database::Database;
use std::sync::Arc;
use serde_json::Value;
use rusqlite::params;
type Result<T> = std::result::Result<T, AppError>;
/// 向量存储抽象接口
pub trait VectorStore {
/// 添加文档块和对应的向量
... | train_000.parquet/119 | {
"file_path": "src-tauri/src/vector_store.rs",
"repo_id": "000haoji/deep-student",
"size": 22135,
"token_count": 7986
} |
/**
* Batch Operations Module
*
* Provides efficient batch operations for database operations to improve performance
* when dealing with multiple mistakes, chat messages, or other bulk operations.
*/
use anyhow::Result;
use rusqlite::{Connection, params};
use chrono::Utc;
use crate::models::{MistakeItem, ChatMes... | train_000.parquet/120 | {
"file_path": "src-tauri/src/batch_operations.rs",
"repo_id": "000haoji/deep-student",
"size": 16531,
"token_count": 5105
} |
#!/bin/bash
# Set the WiFi SSID and password
SSID="AMB82-Mini"
PASSWORD="Password"
# Path to the wpa_supplicant configuration file
WPA_CONF_FILE="/etc/wpa_supplicant/wpa_supplicant.conf"
# Add network configuration to wpa_supplicant configuration file
# This part needs to run with root privileges
echo "network={" >>... | train_000.parquet/121 | {
"file_path": "WIFI Streaming Camera/0.RPI_Scripts/connect_cam.sh",
"repo_id": "0015/RPI-Projects",
"size": 1417,
"token_count": 497
} |
use std::fs::{self, OpenOptions};
use std::io::{BufWriter, Write};
use std::path::PathBuf;
use std::time::Duration;
use playwright::Playwright;
use std::sync::Arc;
use tokio::task::JoinSet;
#[tokio::main]
async fn main() -> anyhow::Result<()> {
let Args {
sites,
output,
proxy,
} = Args... | train_000.parquet/122 | {
"file_path": "generate_list/src/main.rs",
"repo_id": "000ylop/galgame_cn",
"size": 4474,
"token_count": 1678
} |
use crate::models::{ChatMessage, MistakeItem};
use crate::llm_manager::LLMManager;
use crate::database::Database;
use anyhow::Result;
use serde_json::json;
use std::collections::HashMap;
use std::sync::Arc;
use tauri::Window;
// 分析结果结构
#[derive(Debug, Clone)]
pub struct AnalysisResult {
pub ocr_text: String,
p... | train_000.parquet/123 | {
"file_path": "src-tauri/src/analysis_service.rs",
"repo_id": "000haoji/deep-student",
"size": 9124,
"token_count": 3549
} |
/**
* Database Optimization Module
*
* Provides optimized database query functions for better performance,
* especially for tag filtering and complex search operations.
*/
use anyhow::Result;
use rusqlite::Connection;
use chrono::{Utc, DateTime};
use crate::models::MistakeItem;
use std::collections::HashMap;
pu... | train_000.parquet/124 | {
"file_path": "src-tauri/src/database_optimizations.rs",
"repo_id": "000haoji/deep-student",
"size": 20046,
"token_count": 6173
} |
/////////////////////////////////////////////////////////////////
/*
WiFi Streaming Camera for AMB32-Mini
For More Information: https://youtu.be/FEs1RIjfO3Y
Created by Eric N. (ThatProject)
*/
/////////////////////////////////////////////////////////////////
#include "WiFi.h"
#include "StreamIO.h"
#include "Vide... | train_000.parquet/125 | {
"file_path": "WIFI Streaming Camera/1.AMB82_RTSP_APMode/1.AMB82_RTSP_APMode.ino",
"repo_id": "0015/RPI-Projects",
"size": 2946,
"token_count": 1033
} |
#
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) 5.3.0 Project Configuration
#
CONFIG_SOC_MPU_MIN_REGION_SIZE=0x20000000
CONFIG_SOC_MPU_REGIONS_MAX_NUM=8
CONFIG_SOC_ADC_SUPPORTED=y
CONFIG_SOC_UART_SUPPORTED=y
CONFIG_SOC_PCNT_SUPPORTED=y
CONFIG_SOC_PHY_SUPPORTED=y
CONFIG_SOC... | train_000.parquet/126 | {
"file_path": "examples/espidf_example/sdkconfig",
"repo_id": "0015/LVGL_Joystick",
"size": 77022,
"token_count": 43277
} |
#
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) 5.3.0 Project Configuration
#
CONFIG_SOC_MPU_MIN_REGION_SIZE=0x20000000
CONFIG_SOC_MPU_REGIONS_MAX_NUM=8
CONFIG_SOC_ADC_SUPPORTED=y
CONFIG_SOC_UART_SUPPORTED=y
CONFIG_SOC_PCNT_SUPPORTED=y
CONFIG_SOC_PHY_SUPPORTED=y
CONFIG_SOC... | train_000.parquet/127 | {
"file_path": "examples/espidf_example/sdkconfig.wt32sc01plus",
"repo_id": "0015/LVGL_Joystick",
"size": 77022,
"token_count": 43277
} |
#define LGFX_USE_V1
#include <LovyanGFX.hpp>
class LGFX : public lgfx::LGFX_Device {
lgfx::Panel_ST7796 _panel_instance;
lgfx::Bus_Parallel8 _bus_instance;
lgfx::Light_PWM _light_instance;
lgfx::Touch_FT5x06 _touch_instance;
public:
LGFX(void) {
{
auto cfg = _bus_instance.config();
cfg.freq_... | train_000.parquet/128 | {
"file_path": "examples/arduino_example/LGFX_WT32-SC01-Plus.h",
"repo_id": "0015/LVGL_Joystick",
"size": 1870,
"token_count": 889
} |
use crate::models::{
DocumentTask, TaskStatus, AnkiCard, AnkiGenerationOptions, AppError, StreamedCardPayload,
StreamEvent, SubjectConfig, FieldType, FieldExtractionRule
};
use crate::llm_manager::ApiConfig;
use crate::database::Database;
use crate::llm_manager::LLMManager;
use std::sync::Arc;
use uuid::Uuid;
... | train_000.parquet/129 | {
"file_path": "src-tauri/src/streaming_anki_service.rs",
"repo_id": "000haoji/deep-student",
"size": 40367,
"token_count": 13519
} |
// src-tauri/src/gemini_adapter.rs
use crate::models::{AppError, ChatMessage, StandardModel2Output, StreamChunk};
use crate::llm_manager::ApiConfig;
use futures_util::StreamExt;
use reqwest::Client;
use serde_json::{json, Value};
use tauri::{Emitter, Window};
use std::time::Duration;
type Result<T> = std::result::Res... | train_000.parquet/130 | {
"file_path": "src-tauri/src/gemini_adapter.rs",
"repo_id": "000haoji/deep-student",
"size": 6997,
"token_count": 2331
} |
/*
This example is based on WT32-SC01-Plus in Arduino environment. The graphics library uses LovyanGFX.
$ Tested version
Arduino ESP32: 3.0.4
LVGL: 9.2.0
LovyanGFX: 1.1.16
*/
#include "LGFX_WT32-SC01-Plus.h"
#include <lvgl.h>
#include <lvgl_joystick.h>
static LGFX tft;
#define TFT_HOR_RES 320
#define TFT_VER_RES 48... | train_000.parquet/131 | {
"file_path": "examples/arduino_example/arduino_example.ino",
"repo_id": "0015/LVGL_Joystick",
"size": 3446,
"token_count": 1601
} |
/*
This example is based on WT32-SC01-Plus in ESP-IDF environment.
Using BSP-IDF5-ESP_LCD-LVGL9 [https://github.com/sukesh-ak/BSP-IDF5-ESP_LCD-LVGL9]
$ Tested version
ESP-IDF: 5.3.0
LVGL: 9.2.0
esp_lvgl_port: 2.3.1
esp_lcd_st7796: 1.3.0
esp_lcd_touch_ft5x06: 1.0.6
*/
#include <stdio.h>
#include <inttypes.h>
#include... | train_000.parquet/132 | {
"file_path": "examples/espidf_example/main/main.c",
"repo_id": "0015/LVGL_Joystick",
"size": 10838,
"token_count": 4929
} |
use serde::{Deserialize, Serialize};
use chrono::{DateTime, Utc};
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct ProblemCard {
pub id: String,
pub content_problem: String,
pub content_insight: String,
pub status: String, // 'unsolved', 'solved'
pub embedding: Option<Vec<f32>>,
pub c... | train_000.parquet/133 | {
"file_path": "src-tauri/src/cogni_graph/models.rs",
"repo_id": "000haoji/deep-student",
"size": 5045,
"token_count": 1797
} |
use crate::cogni_graph::{
GraphConfig, GraphService, SearchService, CreateCardRequest, SearchRequest,
RecommendationRequest, ProblemCard, SearchResult, Recommendation, Tag,
CreateTagRequest, TagHierarchy, TagType
};
use crate::commands::AppState;
use crate::llm_manager::LLMManager;
use anyhow::{Result, any... | train_000.parquet/134 | {
"file_path": "src-tauri/src/cogni_graph/handlers.rs",
"repo_id": "000haoji/deep-student",
"size": 12040,
"token_count": 4034
} |
use serde::{Deserialize, Serialize};
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct Neo4jConfig {
pub uri: String,
pub username: String,
pub password: String,
pub database: Option<String>,
}
impl Default for Neo4jConfig {
fn default() -> Self {
Self {
uri: "bolt://l... | train_000.parquet/135 | {
"file_path": "src-tauri/src/cogni_graph/config.rs",
"repo_id": "000haoji/deep-student",
"size": 1044,
"token_count": 358
} |
use crate::cogni_graph::{
GraphConfig, ProblemCard, SearchRequest, SearchResult, Neo4jService, Tag, TagType
};
use crate::llm_manager::LLMManager;
use anyhow::{Result, anyhow};
use std::sync::Arc;
use std::collections::{HashMap, HashSet};
use tokio::sync::RwLock;
pub struct SearchService {
neo4j: Neo4jService,... | train_000.parquet/136 | {
"file_path": "src-tauri/src/cogni_graph/services/search_service.rs",
"repo_id": "000haoji/deep-student",
"size": 10812,
"token_count": 3505
} |
use crate::cogni_graph::{
GraphConfig, ProblemCard, Tag, CreateCardRequest, RecommendationRequest,
Recommendation, RelationshipType, Neo4jService, CreateTagRequest, TagHierarchy, TagType
};
use crate::llm_manager::LLMManager;
use anyhow::{Result, anyhow};
use std::sync::Arc;
use tokio::sync::RwLock;
pub struc... | train_000.parquet/137 | {
"file_path": "src-tauri/src/cogni_graph/services/graph_service.rs",
"repo_id": "000haoji/deep-student",
"size": 10053,
"token_count": 3076
} |
use crate::cogni_graph::{GraphConfig, ProblemCard, Tag, RelationshipType, CreateTagRequest, TagHierarchy, TagType};
use anyhow::{Result, anyhow};
use neo4rs::{Graph, Query};
use serde_json::Value;
use std::collections::HashMap;
pub struct Neo4jService {
pub graph: Graph,
config: GraphConfig,
}
impl Neo4jServi... | train_000.parquet/138 | {
"file_path": "src-tauri/src/cogni_graph/services/neo4j_service.rs",
"repo_id": "000haoji/deep-student",
"size": 19219,
"token_count": 6210
} |
import React, { useState } from 'react';
import { MarkdownRenderer } from './MarkdownRenderer';
import { StreamingMarkdownRenderer } from './StreamingMarkdownRenderer';
import { SummaryBox } from './SummaryBox';
import { ChatMessageContentPart, ChatMessage } from '../types';
interface MessageWithThinkingProps {
cont... | train_000.parquet/139 | {
"file_path": "src/components/MessageWithThinking.tsx",
"repo_id": "000haoji/deep-student",
"size": 8022,
"token_count": 2504
} |
/* 模板管理页面 - 彻底重写,优先保证卡片完整显示 */
.template-management-page {
min-height: 100vh;
display: flex;
flex-direction: column;
background: #fafafa;
/* 移除所有高度限制,让内容自然扩展 */
/* height: 100vh; */
/* max-height: 100vh; */
/* overflow: hidden; */
/* 强制移除所有可能的限制 */
width: auto !important;
height: auto !important;
... | train_000.parquet/140 | {
"file_path": "src/components/TemplateManagementPage.css",
"repo_id": "000haoji/deep-student",
"size": 19790,
"token_count": 9777
} |
/**
* Simplified Chat Interface
*
* Replaces the complex AI SDK implementation with a simpler approach
* that uses the unified stream handler directly.
*/
import React, { useState, useRef, useEffect } from 'react';
import { useUnifiedStream, StreamMessage, MarkdownRenderer, MessageWithThinking } from '../chat-co... | train_000.parquet/141 | {
"file_path": "src/components/SimplifiedChatInterface.tsx",
"repo_id": "000haoji/deep-student",
"size": 9416,
"token_count": 2735
} |
import React, { useState, useRef, useCallback, useEffect } from 'react';
import { invoke } from '@tauri-apps/api/core';
import './ImageOcclusion.css';
interface TextRegion {
text: string;
bbox: [number, number, number, number];
confidence: number;
region_id: string;
}
interface ImageOcrResponse {
success: b... | train_000.parquet/142 | {
"file_path": "src/components/ImageOcclusion.tsx",
"repo_id": "000haoji/deep-student",
"size": 25006,
"token_count": 8632
} |
import React from 'react';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
interface MarkdownRendererProps {
content: string;
className?: string;
}
// 简化的LaTeX预处理,最小化干预
const preprocessLatex = (content: s... | train_000.parquet/143 | {
"file_path": "src/components/MarkdownRenderer.tsx",
"repo_id": "000haoji/deep-student",
"size": 2488,
"token_count": 881
} |
import React, { useState, useEffect, useRef, useCallback } from 'react';
import { ReviewSessionTask, ChatMessage } from '../types/index';
import { useNotification } from '../hooks/useNotification';
import { TauriAPI } from '../utils/tauriApi';
import { listen } from '@tauri-apps/api/event';
import { MessageWithThinking... | train_000.parquet/144 | {
"file_path": "src/components/ReviewAnalysisSessionView_old.tsx",
"repo_id": "000haoji/deep-student",
"size": 20531,
"token_count": 6672
} |
/* 模板管理器主容器 */
.template-manager-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
}
.template-manager-backdrop {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.... | train_000.parquet/145 | {
"file_path": "src/components/TemplateManager.css",
"repo_id": "000haoji/deep-student",
"size": 12423,
"token_count": 6268
} |
import { useState, useEffect } from 'react';
import { getCurrentWindow } from '@tauri-apps/api/window';
export const WindowControls: React.FC = () => {
const [isMaximized, setIsMaximized] = useState(false);
useEffect(() => {
const initWindow = async () => {
const window = getCurrentWindow();
... | train_000.parquet/146 | {
"file_path": "src/components/WindowControls.tsx",
"repo_id": "000haoji/deep-student",
"size": 3374,
"token_count": 1187
} |
/* 增强RAG查询视图样式 */
.enhanced-rag-query-view {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
background: #f8fafc;
min-height: 100vh;
}
/* 查询头部 */
.query-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding: 20px;
background: white;
border-r... | train_000.parquet/147 | {
"file_path": "src/components/EnhancedRagQueryView.css",
"repo_id": "000haoji/deep-student",
"size": 9586,
"token_count": 4922
} |
import React, { useState, useEffect, useRef } from 'react';
import { CustomAnkiTemplate, CreateTemplateRequest, FieldExtractionRule, AnkiCardTemplate } from '../types';
import { templateManager } from '../data/ankiTemplates';
import './TemplateManager.css';
import { IframePreview, renderCardPreview } from './SharedPrev... | train_000.parquet/148 | {
"file_path": "src/components/TemplateManager.tsx",
"repo_id": "000haoji/deep-student",
"size": 22970,
"token_count": 7609
} |
.knowledge-graph-management {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.knowledge-graph-management h2 {
color: #2c3e50;
border-bottom: 3px solid #3498db;
padding-bottom: 10px;
margin-bottom: 30px;
}
.error-message {
background-... | train_000.parquet/149 | {
"file_path": "src/components/KnowledgeGraphManagement.css",
"repo_id": "000haoji/deep-student",
"size": 10366,
"token_count": 5179
} |
import React, { useState, useRef, useEffect } from 'react';
import './ModernSelect.css';
export interface ModernSelectProps {
options: string[];
value: string;
onChange: (value: string) => void;
placeholder?: string;
disabled?: boolean;
fullWidth?: boolean;
}
// 一个轻量级、无依赖的自定义下拉选择器
const ModernSelect: Reac... | train_000.parquet/150 | {
"file_path": "src/components/ModernSelect.tsx",
"repo_id": "000haoji/deep-student",
"size": 1806,
"token_count": 620
} |
/* 统一回顾分析组件样式 */
/* 通用容器样式 */
.review-analysis-container {
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
flex-direction: column;
}
.review-analysis-main {
flex: 1;
padding: 20px;
overflow-y: auto;
background-color: #f8fafc;
}
/* 头部样式 */
.review-analysis-header {
background: white;
... | train_000.parquet/151 | {
"file_path": "src/components/ReviewAnalysis.css",
"repo_id": "000haoji/deep-student",
"size": 13480,
"token_count": 6631
} |
import React, { useState, useEffect, useCallback } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { BatchTask, ChatMessage } from '../types';
import UniversalAppChatHost, { UniversalAppChatHostProps } from './UniversalAppChatHost';
interface BatchAnalysisProps {
onBack: () => void;
}
export cons... | train_000.parquet/152 | {
"file_path": "src/components/BatchAnalysis.tsx",
"repo_id": "000haoji/deep-student",
"size": 55570,
"token_count": 17336
} |
.tag-management-container {
padding: 20px;
background: #f8f9fa;
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.tag-management-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
padding-bottom: 15px;
border-bottom: 2px solid #3498db;
}
... | train_000.parquet/153 | {
"file_path": "src/components/TagManagement.css",
"repo_id": "000haoji/deep-student",
"size": 6519,
"token_count": 3210
} |
import React, { useState, useEffect } from 'react';
import { ReviewSessionTask } from '../types/index';
import { useNotification } from '../hooks/useNotification';
import { TauriAPI, ReviewAnalysisItem } from '../utils/tauriApi';
import { useSubject } from '../contexts/SubjectContext';
import { UnifiedSubjectSelector }... | train_000.parquet/154 | {
"file_path": "src/components/ReviewAnalysisDashboard.tsx",
"repo_id": "000haoji/deep-student",
"size": 28833,
"token_count": 10148
} |
/**
* AI Chat Interface using Vercel AI SDK
*
* This component replaces the custom streaming implementation with
* Vercel AI SDK's useChat hook for better performance and reliability.
*/
import React, { useState, useMemo } from 'react';
import { useChat } from '@ai-sdk/react';
import { createAISdkFetch, convertF... | train_000.parquet/155 | {
"file_path": "src/components/AIChatInterface.tsx",
"repo_id": "000haoji/deep-student",
"size": 8100,
"token_count": 2483
} |
.image-occlusion-container {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.header {
text-align: center;
margin-bottom: 30px;
}
.header h2 {
color: #2c3e50;
margin-bottom: 10px;
font-size: 2rem;
font-weight: 600;... | train_000.parquet/156 | {
"file_path": "src/components/ImageOcclusion.css",
"repo_id": "000haoji/deep-student",
"size": 6106,
"token_count": 3097
} |
/* RAG查询测试组件样式 */
.rag-query-view {
padding: 20px;
max-width: 1200px;
margin: 0 auto;
color: #333;
}
.rag-query-header {
margin-bottom: 30px;
text-align: center;
}
.rag-query-header h2 {
color: #2c3e50;
margin: 0 0 8px 0;
font-size: 1.8rem;
}
.subtitle {
color: #7f8c8d;
margin: 0;
font-size: ... | train_000.parquet/157 | {
"file_path": "src/components/RagQueryView.css",
"repo_id": "000haoji/deep-student",
"size": 9374,
"token_count": 4584
} |
import React, { useState, useEffect } from 'react';
import { ChatMessage } from '../types';
interface SummaryBoxProps {
chatHistory: ChatMessage[];
isVisible: boolean;
onClose?: () => void;
subject?: string;
mistakeId?: string; // 用于错题库详情
reviewSessionId?: string; // 用于批量分析详情
// 新增:与AI调用一致的接口
onGenerat... | train_000.parquet/158 | {
"file_path": "src/components/SummaryBox.tsx",
"repo_id": "000haoji/deep-student",
"size": 7987,
"token_count": 2859
} |
import React, { useState, useEffect } from 'react';
import { CustomAnkiTemplate, CreateTemplateRequest, FieldExtractionRule } from '../types';
import { templateManager } from '../data/ankiTemplates';
import { IframePreview, renderCardPreview } from './SharedPreview';
import './TemplateManagementPage.css';
interface Te... | train_000.parquet/159 | {
"file_path": "src/components/TemplateManagementPage.tsx",
"repo_id": "000haoji/deep-student",
"size": 27511,
"token_count": 9257
} |
import React, { useState, useEffect } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { BarChart3, Settings, AlertTriangle, FileText, Search, BookOpen, Tag, PieChart } from 'lucide-react';
interface DashboardProps {
onBack: () => void;
}
interface Statistics {
totalMistakes: number;
totalRevi... | train_000.parquet/160 | {
"file_path": "src/components/Dashboard.tsx",
"repo_id": "000haoji/deep-student",
"size": 17018,
"token_count": 5855
} |
## 一、简介
Bluf 是一款**慵懒**的瀑布流网址导航 Hugo 主题,源于 Wolf Set([狼集](https://ws.0000cd.com/)) 导航的实践。
与传统“规整”的网址导航相比,**自适应瀑布流**的 bluf 要随性得多,长短随意,插图随心。还有标签或颜色**筛选**、**深色**模式、网站统计、访客问候等贴心功能,更支持**多链接、多图画廊**等模式。
一切只需 YAML 轻松配置。

## 二、安装
### 2.1 快速上手
本教程基于“无需修改代码”的难度,几乎无需付费,只需三步在 [狼集](https://ws.0000cd.com/... | train_000.parquet/161 | {
"file_path": "readme.md",
"repo_id": "0000cd/wolf-set",
"size": 5877,
"token_count": 3959
} |
/**
* Streaming Chat Interface for AI SDK Analysis
*
* A simplified chat interface optimized for handling Tauri streaming events
* with proper thinking chain support and real-time rendering.
*/
import React, { useState, useImperativeHandle, useEffect, useRef } from 'react';
import { MessageWithThinking } from '.... | train_000.parquet/162 | {
"file_path": "src/components/StreamingChatInterface.tsx",
"repo_id": "000haoji/deep-student",
"size": 10206,
"token_count": 3221
} |
baseURL = "https://ws.0000cd.com/" #你的网址,以斜杠 / 结尾
languageCode = "zh-CN"
title = "狼牌网址导航 - 狼集 Wolf Set" #网站名称
theme = "bluf"
[params]
pagename = "狼集 Wolf Set" #首页标题
description = " 狼集 Wolf Set, 源自“狼牌工作网址导航”,集设计、Markdown、软件、安全、办公必备网址于一体,All in One 最佳选择。" #SEO,你的网站描述
keywords = [
"狼集",
"Wolf Set",
"狼牌",
"狼... | train_000.parquet/163 | {
"file_path": "hugo.toml",
"repo_id": "0000cd/wolf-set",
"size": 1484,
"token_count": 908
} |
import React, { useState, useEffect } from 'react';
import { invoke } from '@tauri-apps/api/core';
import { listen } from '@tauri-apps/api/event';
interface TestResult {
success: boolean;
message: string;
details?: any;
duration?: number;
}
interface ApiConfig {
id: string;
name: string;
apiKey: string;... | train_000.parquet/164 | {
"file_path": "src/components/GeminiAdapterTest.tsx",
"repo_id": "000haoji/deep-student",
"size": 48374,
"token_count": 15922
} |
import React, { useState, useEffect, useCallback, useRef } from 'react';
import { useNotification } from '../hooks/useNotification';
import { TauriAPI, ReviewAnalysisItem } from '../utils/tauriApi';
import UniversalAppChatHost from './UniversalAppChatHost';
interface ReviewAnalysisSessionViewProps {
sessionId: strin... | train_000.parquet/165 | {
"file_path": "src/components/ReviewAnalysisSessionView.tsx",
"repo_id": "000haoji/deep-student",
"size": 10173,
"token_count": 3625
} |
# https://github.com/0000cd/wolf-set
- title: 欢迎回来
hex: "#0000cd"
tags:
- 置顶
date: 24/04
description: 狼集 Wolf Set:宇宙总需要些航天器,“📀各位都好吧?” 让我们路过些互联网小行星。
links:
- name: 关于
url: https://ws.0000cd.com/posts/about/
- name: GitHub
url: https://github.com/0000cd/wolf-set
- name: 网站统计
url: https://e... | train_000.parquet/166 | {
"file_path": "data/cards.yaml",
"repo_id": "0000cd/wolf-set",
"size": 8115,
"token_count": 4273
} |
import React, { useState, useEffect, useCallback } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { useNotification } from '../hooks/useNotification';
import './EnhancedKnowledgeBaseManagement.css';
import type {
RagDocument,
KnowledgeBaseStatusPayload,
RagProcessingEvent,
RagDocumentSta... | train_000.parquet/167 | {
"file_path": "src/components/EnhancedKnowledgeBaseManagement.tsx",
"repo_id": "000haoji/deep-student",
"size": 40607,
"token_count": 13673
} |
#
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Configuration
#
CONFIG_SOC_ADC_SUPPORTED=y
CONFIG_SOC_ANA_CMPR_SUPPORTED=y
CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y
CONFIG_SOC_UART_SUPPORTED=y
CONFIG_SOC_GDMA_SUPPORTED=y
CONFIG_SOC_AHB_GDMA_SUPPORTED=y
CONFIG_SOC... | train_000.parquet/168 | {
"file_path": "sdkconfig",
"repo_id": "0015/StickiNote",
"size": 82172,
"token_count": 46364
} |
## **StickiNote – ESP32-P4 Digital Sticky Notes App**
<div align="center">

</div>
**StickiNote** is a **modern, e-paper-styled digital sticky note app** designed specifically for high-performance **ESP32-P4-based embedded systems**. This project leverages the **fast clock speed ... | train_000.parquet/169 | {
"file_path": "Readme.md",
"repo_id": "0015/StickiNote",
"size": 4136,
"token_count": 1396
} |
# This file was generated using idf.py save-defconfig. It can be edited manually.
# Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Minimal Configuration
#
CONFIG_IDF_TARGET="esp32p4"
CONFIG_ESPTOOLPY_FLASHMODE_QIO=y
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_COMPILER_OPTIMIZAT... | train_000.parquet/170 | {
"file_path": "sdkconfig.defaults",
"repo_id": "0015/StickiNote",
"size": 1523,
"token_count": 910
} |
import React, { useState, useEffect } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { useSubject } from '../contexts/SubjectContext';
import { Target, Plus, RefreshCcw, Edit, Trash2, CheckCircle, XCircle, Lightbulb, FileText, Tag, X } from 'lucide-react';
interface SubjectConfig {
id: string;
... | train_000.parquet/171 | {
"file_path": "src/components/SubjectConfig.tsx",
"repo_id": "000haoji/deep-student",
"size": 16878,
"token_count": 5742
} |
---
author: 逊狼
title: 2024-12
date: 2024-12-26
draft: false
---
```yaml
- title: Button Stealer
hex: "#ff5100"
tags:
- 网页
- 有趣
- 开源
date: "2024/12"
description: 从路过的每个网页“窃取”按钮,欣赏你的按钮藏品。
links:
- name: 官网
url: https://anatolyzenkov.com/stolen-buttons/button-stealer
- name: GitHub
url: https... | train_000.parquet/172 | {
"file_path": "content/achrive/2024-12.md",
"repo_id": "0000cd/wolf-set",
"size": 2646,
"token_count": 1374
} |
---
author: 逊狼
title: Legacy
date: 2024-04-04
draft: false
---
```yaml
- title: Unsplash
hex: "#000000"
tags:
- 推荐
- 网页
- 图片
date: "2024/04"
description: 全球摄影师 300万 高清免费图片。
links:
- name: 官网
url: https://unsplash.com
- name: 背景
url: https://unsplash.com/backgrounds
- name: 壁纸
url: htt... | train_000.parquet/173 | {
"file_path": "content/achrive/legacy.md",
"repo_id": "0000cd/wolf-set",
"size": 2449,
"token_count": 1288
} |
/**
* DEPRECATED COMPONENT - 已废弃的组件
*
* 废弃日期: 2024年6月5日
* 废弃原因: 单次回顾功能已被统一回顾模块替代,为简化用户体验而停用
* 替代方案: 请使用 ReviewAnalysisDashboard 和相关的统一回顾功能
*
* 注意: 此组件已从主界面隐藏,但保留代码以供将来可能的恢复需要
* 如需重新启用,请修改 App.tsx 中的相关注释
*/
import { useState, useEffect } from 'react';
import { TauriAPI, MistakeItem } from '../utils/tau... | train_000.parquet/174 | {
"file_path": "src/components/ReviewAnalysis.tsx",
"repo_id": "000haoji/deep-student",
"size": 18869,
"token_count": 6198
} |
#
# Automatically generated file. DO NOT EDIT.
# Espressif IoT Development Framework (ESP-IDF) 5.4.0 Project Configuration
#
CONFIG_SOC_ADC_SUPPORTED=y
CONFIG_SOC_ANA_CMPR_SUPPORTED=y
CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=y
CONFIG_SOC_UART_SUPPORTED=y
CONFIG_SOC_GDMA_SUPPORTED=y
CONFIG_SOC_AHB_GDMA_SUPPORTED=y
CONFIG_SOC... | train_000.parquet/175 | {
"file_path": "sdkconfig.esp32-p4-nano",
"repo_id": "0015/StickiNote",
"size": 82172,
"token_count": 46364
} |
/* Knowledge Base Management 组件专用样式 */
.knowledge-base-container {
min-height: 100vh;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
position: relative;
overflow-x: hidden;
overflow-y: auto;
transition: all 0.3s ease;
}
.knowledge-base-container.drag-over {
background: linear-gradient(13... | train_000.parquet/176 | {
"file_path": "src/components/KnowledgeBaseManagement.css",
"repo_id": "000haoji/deep-student",
"size": 25719,
"token_count": 13092
} |
#include "NVSManager.hpp"
#include "esp_log.h"
#include "esp_random.h"
#include <cstdlib>
#include <cstdio>
std::string NVSManager::generateUUID() {
char uuid[9];
sprintf(uuid, "%08X", esp_random());
ESP_LOGI("NVS", "ID: %s", uuid);
return std::string(uuid);
}
void NVSManager::init() {
esp_err_t r... | train_000.parquet/177 | {
"file_path": "main/NVSManager.cpp",
"repo_id": "0015/StickiNote",
"size": 4186,
"token_count": 1669
} |
#include "LVGL_WidgetManager.hpp"
#include "esp_log.h"
#include <algorithm>
#include "esp_timer.h"
#define DOUBLE_TAP_TIME 300
#define MAX_POSTITS 10
LV_IMG_DECLARE(icon_resize);
LV_FONT_DECLARE(sticky_font_32)
lv_obj_t *LVGL_WidgetManager::screen_ = nullptr;
lv_obj_t *LVGL_WidgetManager::kb_ = nullptr;
LVGL_WidgetM... | train_000.parquet/178 | {
"file_path": "main/LVGL_WidgetManager.cpp",
"repo_id": "0015/StickiNote",
"size": 12950,
"token_count": 5712
} |
---
author: 狼
title: 关于狼集
date: 2024-04-04
draft: false
---
- [这是开源项目,你也可以快速创建**属于你自己的**网址导航。](https://github.com/0000cd/wolf-set)
- [点我访问【**首页**】,浏览共 {{< total >}} 个有趣网址导航,和 {{< total "开源" >}} 个开源项目!](/)
## 狼集 Wolf Set
[
一只青海可可西里的野狼因被游客频繁投喂而成为“网红”,其行为模式从野生狼转变为类似家犬的依赖,引起网友热议与专家担忧。
## 新闻报道
近日,一头青海可可西里的野狼意外成为网络红星。最初,这只野狼因不明原因被狼群赶出,瘦弱到皮包骨。然而,自从今年7月一位过路的网友在国道附近给它投喂了两个蛋黄派后,它的命运戏剧性地改变了。
这只野狼开始每天在公路上讨食,游客们被它那瘦骨嶙峋的模样所吸引,纷纷投喂食物。经过一段时间,这头狼与人类变得亲... | train_000.parquet/180 | {
"file_path": "content/posts/example.md",
"repo_id": "0000cd/wolf-set",
"size": 770,
"token_count": 659
} |
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<!--https://github.com/vicevolf/retro-404-->
<!-- https://github.com/gaoryrt/retro-404 -->
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<meta name="viewport"
content="width=device-width, initial-scale=1, ma... | train_000.parquet/181 | {
"file_path": "themes/bluf/layouts/404.html",
"repo_id": "0000cd/wolf-set",
"size": 3809,
"token_count": 1269
} |
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head.html" . }}
<title>{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.description }}" />
<meta name="keywords" content="{{ range .Site.Params.keywords }}{{ . }},{{ end }}" />
</head>
<body>
... | train_000.parquet/182 | {
"file_path": "themes/bluf/layouts/index.html",
"repo_id": "0000cd/wolf-set",
"size": 19618,
"token_count": 5119
} |
import React, { useState, useEffect, useMemo } from 'react';
import { TauriAPI, MistakeItem } from '../utils/tauriApi';
import { useSubject } from '../contexts/SubjectContext';
interface MistakeLibraryProps {
onSelectMistake: (mistake: MistakeItem) => void;
onBack: () => void;
// 🎯 修复:添加刷新触发器,每次切换到错题库页面时会变化
r... | train_000.parquet/183 | {
"file_path": "src/components/MistakeLibrary.tsx",
"repo_id": "000haoji/deep-student",
"size": 20891,
"token_count": 7003
} |
/**
* DEPRECATED: 此组件已废弃 - 2024年6月8日
* 原因: 功能已被统一回顾分析(ReviewAnalysisDashboard)替代
*
* 这个组件使用localStorage存储数据,与新的数据库存储系统不兼容
* 请使用 ReviewAnalysisDashboard 代替此组件
*/
import React, { useState, useEffect } from 'react';
import { ReviewSessionTask } from '../types/index';
import { useNotification } from '../hooks/useNo... | train_000.parquet/184 | {
"file_path": "src/components/ReviewAnalysisLibrary.tsx",
"repo_id": "000haoji/deep-student",
"size": 10158,
"token_count": 3215
} |
import React, { useState, useRef, useEffect } from 'react';
import { GraphConfig, GraphNode, GraphRelationship } from '../types/cogni-graph';
import './GraphVisualization.css';
interface GraphVisualizationProps {
config: GraphConfig;
isInitialized: boolean;
}
const GraphVisualization: React.FC<GraphVisualizationP... | train_000.parquet/185 | {
"file_path": "src/components/GraphVisualization.tsx",
"repo_id": "000haoji/deep-student",
"size": 9843,
"token_count": 3183
} |
#include "nvs_flash.h"
#include "nvs.h"
#include "esp_log.h"
#include "esp_err.h"
#include "esp_check.h"
#include "lvgl.h"
#include "bsp/esp-bsp.h"
#include "bsp/display.h"
#include "LVGL_WidgetManager.hpp"
#include "SplashScreen.hpp"
extern int screen_width;
extern int screen_height;
void createNotebookBackground(lv... | train_000.parquet/186 | {
"file_path": "main/main.cpp",
"repo_id": "0015/StickiNote",
"size": 3189,
"token_count": 1425
} |
#include "SplashScreen.hpp"
#include "esp_log.h"
#define SPLASH_ANIM_TIME 400
#define SPLASH_HOLD_TIME 1500
LV_IMG_DECLARE(notes);
int screen_width = 800; // Default value, will be set in main
int screen_height = 480;
struct SplashData {
lv_obj_t *splash_img;
std::function<void()> on_complete;
};
static vo... | train_000.parquet/187 | {
"file_path": "main/SplashScreen.cpp",
"repo_id": "0015/StickiNote",
"size": 2114,
"token_count": 957
} |
import React, { useState, useCallback } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { useNotification } from '../hooks/useNotification';
import type { RetrievedChunk, RagQueryOptions } from '../types';
import './RagQueryView.css';
import { Search, Lightbulb, Sparkles } from 'lucide-react';
inter... | train_000.parquet/188 | {
"file_path": "src/components/RagQueryView.tsx",
"repo_id": "000haoji/deep-student",
"size": 8443,
"token_count": 2947
} |
import React, { useRef, useEffect } from 'react';
import { AnkiCardTemplate } from '../types';
export const IframePreview: React.FC<{ htmlContent: string; cssContent: string; }> = ({ htmlContent, cssContent }) => {
const iframeRef = useRef<HTMLIFrameElement>(null);
useEffect(() => {
const iframe = iframeRef.c... | train_000.parquet/189 | {
"file_path": "src/components/SharedPreview.tsx",
"repo_id": "000haoji/deep-student",
"size": 7787,
"token_count": 3150
} |
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head.html" . }}
<title>{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.description }}" />
<meta name="keywords" content="{{ range .Site.Params.keywords }}{{ . }},{{ end }}" />
</head>
<body>
... | train_000.parquet/190 | {
"file_path": "themes/bluf/layouts/index - 副本2.html",
"repo_id": "0000cd/wolf-set",
"size": 17823,
"token_count": 5031
} |
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
{{ partial "head.html" . }}
<title>{{ .Site.Title }}</title>
<meta name="description" content="{{ .Site.Params.description }}" />
<meta name="keywords" content="{{ range .Site.Params.keywords }}{{ . }},{{ end }}" />
</head>
<body>
... | train_000.parquet/191 | {
"file_path": "themes/bluf/layouts/index - 副本.html",
"repo_id": "0000cd/wolf-set",
"size": 13047,
"token_count": 3860
} |
import React, { useState, useEffect, useCallback } from 'react';
import { SubjectConfig } from './SubjectConfig';
import {
Bot,
FlaskConical,
Target,
Settings as SettingsIcon,
Plus,
TestTube,
Edit,
Trash2,
X,
Check,
AlertTriangle,
Save,
Undo2,
Zap,
CheckCircle,
XCircle,
... | train_000.parquet/192 | {
"file_path": "src/components/Settings.tsx",
"repo_id": "000haoji/deep-student",
"size": 74644,
"token_count": 25207
} |
#ifdef __has_include
#if __has_include("lvgl.h")
#ifndef LV_LVGL_H_INCLUDE_SIMPLE
#define LV_LVGL_H_INCLUDE_SIMPLE
#endif
#endif
#endif
#if defined(LV_LVGL_H_INCLUDE_SIMPLE)
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif
#ifndef LV_ATTRIBUTE_MEM_ALIGN
#define LV_ATT... | train_000.parquet/193 | {
"file_path": "main/ui_resources/icon_resize.c",
"repo_id": "0015/StickiNote",
"size": 29801,
"token_count": 28233
} |
/* 统一模板选择器样式 */
.unified-template-selector {
margin-bottom: 24px;
}
.current-template-display {
margin-bottom: 16px;
}
.current-template-card {
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 20px;
transition: all 0.2s ease;
}
.current-template-card:hover {
border-color:... | train_000.parquet/194 | {
"file_path": "src/components/UnifiedTemplateSelector.css",
"repo_id": "000haoji/deep-student",
"size": 1891,
"token_count": 972
} |
/*!
* Isotope PACKAGED v3.0.6
*
* Licensed GPLv3 for open source use
* or Isotope Commercial License for commercial use
*
* https://isotope.metafizzy.co
* Copyright 2010-2018 Metafizzy
*/
!function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e... | train_000.parquet/195 | {
"file_path": "themes/bluf/static/js/isotope.min.js",
"repo_id": "0000cd/wolf-set",
"size": 35445,
"token_count": 15260
} |
"use strict";function _objectSpread(a){for(var b=1;b<arguments.length;b++){var c=null==arguments[b]?{}:arguments[b],d=Object.keys(c);"function"==typeof Object.getOwnPropertySymbols&&(d=d.concat(Object.getOwnPropertySymbols(c).filter(function(a){return Object.getOwnPropertyDescriptor(c,a).enumerable}))),d.forEach(functi... | train_000.parquet/196 | {
"file_path": "themes/bluf/static/js/Meting.min.js",
"repo_id": "0000cd/wolf-set",
"size": 3472,
"token_count": 1519
} |
import React, { useState, useEffect, useCallback } from 'react';
import { TauriAPI } from '../utils/tauriApi';
import { useNotification } from '../hooks/useNotification';
import { MarkdownRenderer } from './MarkdownRenderer';
import type {
RagQueryResponse,
RetrievedChunk
} from '../types';
import './EnhancedRagQu... | train_000.parquet/197 | {
"file_path": "src/components/EnhancedRagQueryView.tsx",
"repo_id": "000haoji/deep-student",
"size": 20571,
"token_count": 7230
} |
import React, { useState, useEffect, useMemo } from 'react';
import { MarkdownRenderer } from './MarkdownRenderer';
interface StreamingMarkdownRendererProps {
content: string;
isStreaming: boolean;
chainOfThought?: {
enabled: boolean;
details?: any;
};
}
type ParsedContent = {
thinkingContent: strin... | train_000.parquet/198 | {
"file_path": "src/components/StreamingMarkdownRenderer.tsx",
"repo_id": "000haoji/deep-student",
"size": 4447,
"token_count": 1596
} |
/*******************************************************************************
* Size: 32 px
* Bpp: 4
* Opts: --bpp 4 --size 32 --no-compress --font Sticky Notes.otf --range 32-127 --format lvgl -o sticky_font_32.c
******************************************************************************/
#ifdef __has_incl... | train_000.parquet/199 | {
"file_path": "main/ui_resources/sticky_font_32.c",
"repo_id": "0015/StickiNote",
"size": 101409,
"token_count": 84496
} |