MCPcopy Create free account

hub / github.com/c76d3656e/rscholar / functions

Functions599 in github.com/c76d3656e/rscholar

↓ 160 callersMethodget
Get a task by ID
src/server/task.rs:233
↓ 159 callersMethodis_empty
Check if store is empty
src/server/task.rs:261
↓ 64 callersMethodlen
Get number of tasks
src/server/task.rs:256
↓ 30 callersMethodas_str
(&self)
src/db/tasks.rs:21
↓ 30 callersMethodinsert
Insert a new task
src/server/task.rs:225
↓ 22 callersFunctionget
Get a cached journal ranking
src/db/journal_cache.rs:24
↓ 20 callersMethodget_conn
Get a sync connection for direct DB operations
tests/common/mod.rs:58
↓ 16 callersMethodrun_db
Run a database operation asynchronously. Uses deadpool-sqlite's `interact()` which runs the closure on a dedicated thread pool, then returns the resu
src/server/state.rs:86
↓ 15 callersFunctioncreate
Create a new API key
src/db/api_keys.rs:108
↓ 14 callersMethodacquire
Wait until a request is permitted, then return. This method is cancel-safe.
src/sources/rate_limiter.rs:45
↓ 14 callersFunctionlog_search
Log a search event
src/db/analytics.rs:11
↓ 14 callersMethodremove
Remove a task
src/server/task.rs:251
↓ 13 callersFunctionescapeHtml
(text)
front/src/main.js:148
↓ 12 callersFunctionget_by_id
Get a task by ID
src/db/tasks.rs:124
↓ 12 callersFunctionsearch_papers
Search arXiv and return normalized results.
src/sources/arxiv.rs:110
↓ 11 callersFunctionregex_or_empty
(pattern: &str)
src/sources/pubmed.rs:426
↓ 10 callersFunctionsuccess
Success response without pagination
src/server/responses.rs:59
↓ 9 callersFunctioninsert
Insert a new task
src/db/tasks.rs:98
↓ 9 callersMethodupdate
Update progress - always updates memory, throttles DB writes
src/server/pipeline.rs:257
↓ 9 callersFunctionupsert
Insert or update a cached journal ranking
src/db/journal_cache.rs:81
↓ 8 callersFunctionprint_header
(name: &str)
tests/sources_live_fetch.rs:8
↓ 8 callersFunctionrenderHistoryList
()
front/src/main.js:91
↓ 7 callersFunctioncapture_first
(re: &Regex, text: &str)
src/sources/pubmed.rs:406
↓ 7 callersFunctioncapture_first
(re: &Regex, text: &str)
src/sources/arxiv.rs:306
↓ 7 callersFunctionlist
List tasks with pagination
src/db/tasks.rs:201
↓ 7 callersMethodupdateTask
(taskId, updates)
front/src/utils/history.js:55
↓ 6 callersFunctiondecode_xml_entities
(input: &str)
src/sources/arxiv.rs:319
↓ 6 callersFunctiondelete
Delete a task
src/db/tasks.rs:193
↓ 6 callersFunctionget_value
( select: Option<&HashMap<String, serde_json::Value>>, all: Option<&HashMap<String, serde_json::Value>
src/ranking/response.rs:55
↓ 6 callersFunctioninit_pool
Initialize database connection pool Creates the database file and parent directories if they don't exist. Configures WAL mode and busy timeout for pr
src/db/mod.rs:72
↓ 6 callersFunctioninit_tables
Initialize all database tables This function is idempotent - safe to call multiple times. Also enables WAL mode for better concurrent read/write perf
src/db/schema.rs:90
↓ 6 callersFunctionsave_csv
Save data to CSV file
src/cli/search.rs:524
↓ 5 callersFunctionapply_key_result_state
(state: &mut KeyRuntimeState, ok: bool, policy: KeyHealthPolicy)
src/ranking/pool.rs:384
↓ 5 callersFunctiondefault_source_timeout_sec
()
src/server/config.rs:284
↓ 5 callersMethodgetSortIndicator
(column)
front/src/pages/home.js:523
↓ 5 callersFunctionhash_key
Hash a key using HMAC-SHA256 with server pepper This is more secure than plain SHA256 because: 1. Requires knowledge of pepper to generate valid hash
src/db/api_keys.rs:85
↓ 5 callersFunctionload_config
()
tests/sources_live_fetch.rs:4
↓ 5 callersFunctionsetup_db
()
src/db/api_keys.rs:289
↓ 5 callersMethodupdate
Update a task
src/server/task.rs:238
↓ 5 callersFunctionvalidate
Validate an API key and return key info if valid Uses constant-time comparison to prevent timing attacks.
src/db/api_keys.rs:134
↓ 4 callersFunctionbuild_prompt
Build the prompt for relevance judgment (English) # Arguments `keyword` - The search keyword `paper` - Paper information (title, abstract, venue) `co
src/llm/mod.rs:71
↓ 4 callersMethodchat_completion
(&self, messages: Vec<ChatMessage>)
src/llm/providers/aiping.rs:132
↓ 4 callersFunctiondefault_source_max_results
()
src/server/config.rs:280
↓ 4 callersFunctionestimate_head_reservation_at
( head_requested_chunk: usize, available_keys: usize, running_leases: impl Iterator<Item = &'a Run
src/ranking/service.rs:737
↓ 4 callersFunctionestimate_runtime_secs
(cache_miss_count: usize, granted_keys: usize, eta_scale: f64)
src/ranking/service.rs:729
↓ 4 callersMethodexecute_trial
(&self, messages: Vec<ChatMessage>)
src/llm/provider_core.rs:60
↓ 4 callersFunctionextract_json
Extract JSON object from a string (handles markdown code blocks and extra text)
src/llm/keyword_expansion.rs:90
↓ 4 callersMethodgetSortIndicator
(column)
front/src/pages/task.js:386
↓ 4 callersFunctionget_stats
(conn: &Connection)
src/db/journal_cache.rs:205
↓ 4 callersFunctionparse_expansion_response
Parse the JSON response from LLM
src/llm/keyword_expansion.rs:75
↓ 4 callersFunctionparse_translation_response
(response: &str)
src/llm/keyword_translation.rs:66
↓ 4 callersMethodprovider_order
Resolve provider order from config. Priority: 1) `llm.providers = ["..."]` (if non-empty) 2) default_provider first + discovered configured providers
src/server/config.rs:463
↓ 4 callersFunctionrecord_usage
Update key usage (increment count, update last_used_at)
src/db/api_keys.rs:170
↓ 4 callersFunctionresolve_enabled_sources
( source_include: Option<Vec<String>>, source_exclude: Option<Vec<String>>, server_enabled_sources
src/server/pipeline.rs:168
↓ 4 callersMethodsaveHistory
()
front/src/utils/history.js:23
↓ 4 callersFunctionstrip_tags
(text: &str)
src/sources/arxiv.rs:311
↓ 4 callersMethodupdate_progress
Update progress
src/server/task.rs:164
↓ 3 callersMethodactive_key_count
(&self)
src/ranking/pool.rs:105
↓ 3 callersFunctioncomplete
Complete a task
src/db/tasks.rs:168
↓ 3 callersFunctionconfigure_connection
Configure a SQLite connection for production use
src/db/mod.rs:108
↓ 3 callersFunctiondecode_xml_entities
(input: &str)
src/sources/pubmed.rs:415
↓ 3 callersMethoddispatch_job
( &self, job: PreparedJob, available_keys: usize, dispatch_mode: &'static str,
src/ranking/service.rs:454
↓ 3 callersMethodeffective_sources
Derive the effective enabled-source list from per-section `enabled` flags. Falls back to explicit `enabled_sources` if set (backward compat).
src/server/config.rs:114
↓ 3 callersFunctionfail
Fail a task
src/db/tasks.rs:181
↓ 3 callersFunctiongetTaskStatus
(taskId)
front/src/api/client.js:35
↓ 3 callersFunctionget_overview
(conn: &Connection)
src/db/analytics.rs:53
↓ 3 callersMethodget_rank_with_status
Query one venue and return both data and request health state. `request_ok = true` means HTTP exchange and parsing succeeded (even if venue has no ra
src/ranking/client.rs:50
↓ 3 callersFunctionget_task_with_fallback
Get task from memory cache first, fallback to database. This enables task retrieval after server restart.
src/server/handlers.rs:109
↓ 3 callersFunctionget_top_journals
(conn: &Connection, limit: u32)
src/db/analytics.rs:129
↓ 3 callersFunctionget_top_keywords
(conn: &Connection, limit: u32)
src/db/analytics.rs:101
↓ 3 callersMethodhandleRoute
()
front/src/main.js:34
↓ 3 callersMethodnavigate
(path)
front/src/main.js:29
↓ 3 callersFunctionok
Empty success response
src/server/responses.rs:92
↓ 3 callersMethodpick_key_indices
(&self, requested: usize)
src/ranking/pool.rs:215
↓ 3 callersMethodrefresh_states
(&self, states: &mut [KeyRuntimeState])
src/ranking/pool.rs:244
↓ 3 callersMethodresolve_provider_config
Resolve provider config by name from registry.
src/server/config.rs:485
↓ 3 callersMethodsetButtonLoading
(isLoading)
front/src/pages/home.js:670
↓ 3 callersFunctionsetup_db
()
src/db/journal_cache.rs:251
↓ 3 callersFunctionsetup_db
()
src/db/analytics.rs:185
↓ 3 callersMethodsnapshot
Get current snapshot of statistics
src/traffic.rs:68
↓ 3 callersFunctionstrip_tags
(text: &str)
src/sources/pubmed.rs:411
↓ 3 callersFunctionupdate_progress
Update task progress
src/db/tasks.rs:155
↓ 2 callersMethodas_path
(&self)
src/sources/xrxiv.rs:33
↓ 2 callersFunctionbatch_lookup
Batch lookup papers by DOI using Semantic Scholar API. # Arguments `dois` - List of DOI strings (without "DOI:" prefix) `api_key` - Optional API key
src/sources/semanticscholar.rs:88
↓ 2 callersMethodbatch_lookup
(&self, venues: &[String])
src/ranking/pool.rs:122
↓ 2 callersMethodbatch_lookup_with_chunk
Batch lookup using at most `chunk_size` clients from the pool. This is used by the ranking scheduler to enforce per-job key chunk leasing.
src/ranking/pool.rs:129
↓ 2 callersFunctionbatch_upsert
Batch insert or update cached journal rankings in one transaction.
src/db/journal_cache.rs:102
↓ 2 callersMethodbuildResultsTable
()
front/src/pages/task.js:451
↓ 2 callersMethodbuildResultsTable
()
front/src/pages/home.js:593
↓ 2 callersFunctionbuild_expansion_prompt
Build the prompt for keyword expansion Uses the user-provided prompt structure for academic keyword expansion.
src/llm/keyword_expansion.rs:32
↓ 2 callersFunctionbuild_search_url
Build OpenAlex API search URL
src/sources/openalex.rs:271
↓ 2 callersFunctioncompute_requested_chunk
( cache_miss_count: usize, total_active_keys: usize, policy: LeasePolicy, target_duration_sec:
src/ranking/service.rs:713
↓ 2 callersFunctioncreate_final_output
Create final unified output
src/cli/search.rs:450
↓ 2 callersFunctioncreate_router
Create the API router with all middleware
src/server/routes.rs:19
↓ 2 callersFunctiondedup_keep_order
(values: Vec<String>)
src/server/config.rs:491
↓ 2 callersFunctiondownloadBibTeX
(taskId)
front/src/api/client.js:63
↓ 2 callersFunctiondownloadCSV
(taskId)
front/src/api/client.js:50
↓ 2 callersFunctionescape_bibtex
Escape special BibTeX characters
src/server/handlers.rs:583
↓ 2 callersMethodfetchTaskStatus
()
front/src/pages/task.js:167
↓ 2 callersFunctiongenerate_key
Generate a new API key Returns (SecretString containing plaintext_key, hmac_hash)
src/db/api_keys.rs:74
next →1–100 of 599, ranked by callers