Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/c76d3656e/rscholar
/ functions
Functions
599 in github.com/c76d3656e/rscholar
⨍
Functions
599
◇
Types & classes
163
↓ 160 callers
Method
get
Get a task by ID
src/server/task.rs:233
↓ 159 callers
Method
is_empty
Check if store is empty
src/server/task.rs:261
↓ 64 callers
Method
len
Get number of tasks
src/server/task.rs:256
↓ 30 callers
Method
as_str
(&self)
src/db/tasks.rs:21
↓ 30 callers
Method
insert
Insert a new task
src/server/task.rs:225
↓ 22 callers
Function
get
Get a cached journal ranking
src/db/journal_cache.rs:24
↓ 20 callers
Method
get_conn
Get a sync connection for direct DB operations
tests/common/mod.rs:58
↓ 16 callers
Method
run_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 callers
Function
create
Create a new API key
src/db/api_keys.rs:108
↓ 14 callers
Method
acquire
Wait until a request is permitted, then return. This method is cancel-safe.
src/sources/rate_limiter.rs:45
↓ 14 callers
Function
log_search
Log a search event
src/db/analytics.rs:11
↓ 14 callers
Method
remove
Remove a task
src/server/task.rs:251
↓ 13 callers
Function
escapeHtml
(text)
front/src/main.js:148
↓ 12 callers
Function
get_by_id
Get a task by ID
src/db/tasks.rs:124
↓ 12 callers
Function
search_papers
Search arXiv and return normalized results.
src/sources/arxiv.rs:110
↓ 11 callers
Function
regex_or_empty
(pattern: &str)
src/sources/pubmed.rs:426
↓ 10 callers
Function
success
Success response without pagination
src/server/responses.rs:59
↓ 9 callers
Function
insert
Insert a new task
src/db/tasks.rs:98
↓ 9 callers
Method
update
Update progress - always updates memory, throttles DB writes
src/server/pipeline.rs:257
↓ 9 callers
Function
upsert
Insert or update a cached journal ranking
src/db/journal_cache.rs:81
↓ 8 callers
Function
print_header
(name: &str)
tests/sources_live_fetch.rs:8
↓ 8 callers
Function
renderHistoryList
()
front/src/main.js:91
↓ 7 callers
Function
capture_first
(re: &Regex, text: &str)
src/sources/pubmed.rs:406
↓ 7 callers
Function
capture_first
(re: &Regex, text: &str)
src/sources/arxiv.rs:306
↓ 7 callers
Function
list
List tasks with pagination
src/db/tasks.rs:201
↓ 7 callers
Method
updateTask
(taskId, updates)
front/src/utils/history.js:55
↓ 6 callers
Function
decode_xml_entities
(input: &str)
src/sources/arxiv.rs:319
↓ 6 callers
Function
delete
Delete a task
src/db/tasks.rs:193
↓ 6 callers
Function
get_value
( select: Option<&HashMap<String, serde_json::Value>>, all: Option<&HashMap<String, serde_json::Value>
src/ranking/response.rs:55
↓ 6 callers
Function
init_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 callers
Function
init_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 callers
Function
save_csv
Save data to CSV file
src/cli/search.rs:524
↓ 5 callers
Function
apply_key_result_state
(state: &mut KeyRuntimeState, ok: bool, policy: KeyHealthPolicy)
src/ranking/pool.rs:384
↓ 5 callers
Function
default_source_timeout_sec
()
src/server/config.rs:284
↓ 5 callers
Method
getSortIndicator
(column)
front/src/pages/home.js:523
↓ 5 callers
Function
hash_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 callers
Function
load_config
()
tests/sources_live_fetch.rs:4
↓ 5 callers
Function
setup_db
()
src/db/api_keys.rs:289
↓ 5 callers
Method
update
Update a task
src/server/task.rs:238
↓ 5 callers
Function
validate
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 callers
Function
build_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 callers
Method
chat_completion
(&self, messages: Vec<ChatMessage>)
src/llm/providers/aiping.rs:132
↓ 4 callers
Function
default_source_max_results
()
src/server/config.rs:280
↓ 4 callers
Function
estimate_head_reservation_at
( head_requested_chunk: usize, available_keys: usize, running_leases: impl Iterator<Item = &'a Run
src/ranking/service.rs:737
↓ 4 callers
Function
estimate_runtime_secs
(cache_miss_count: usize, granted_keys: usize, eta_scale: f64)
src/ranking/service.rs:729
↓ 4 callers
Method
execute_trial
(&self, messages: Vec<ChatMessage>)
src/llm/provider_core.rs:60
↓ 4 callers
Function
extract_json
Extract JSON object from a string (handles markdown code blocks and extra text)
src/llm/keyword_expansion.rs:90
↓ 4 callers
Method
getSortIndicator
(column)
front/src/pages/task.js:386
↓ 4 callers
Function
get_stats
(conn: &Connection)
src/db/journal_cache.rs:205
↓ 4 callers
Function
parse_expansion_response
Parse the JSON response from LLM
src/llm/keyword_expansion.rs:75
↓ 4 callers
Function
parse_translation_response
(response: &str)
src/llm/keyword_translation.rs:66
↓ 4 callers
Method
provider_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 callers
Function
record_usage
Update key usage (increment count, update last_used_at)
src/db/api_keys.rs:170
↓ 4 callers
Function
resolve_enabled_sources
( source_include: Option<Vec<String>>, source_exclude: Option<Vec<String>>, server_enabled_sources
src/server/pipeline.rs:168
↓ 4 callers
Method
saveHistory
()
front/src/utils/history.js:23
↓ 4 callers
Function
strip_tags
(text: &str)
src/sources/arxiv.rs:311
↓ 4 callers
Method
update_progress
Update progress
src/server/task.rs:164
↓ 3 callers
Method
active_key_count
(&self)
src/ranking/pool.rs:105
↓ 3 callers
Function
complete
Complete a task
src/db/tasks.rs:168
↓ 3 callers
Function
configure_connection
Configure a SQLite connection for production use
src/db/mod.rs:108
↓ 3 callers
Function
decode_xml_entities
(input: &str)
src/sources/pubmed.rs:415
↓ 3 callers
Method
dispatch_job
( &self, job: PreparedJob, available_keys: usize, dispatch_mode: &'static str,
src/ranking/service.rs:454
↓ 3 callers
Method
effective_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 callers
Function
fail
Fail a task
src/db/tasks.rs:181
↓ 3 callers
Function
getTaskStatus
(taskId)
front/src/api/client.js:35
↓ 3 callers
Function
get_overview
(conn: &Connection)
src/db/analytics.rs:53
↓ 3 callers
Method
get_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 callers
Function
get_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 callers
Function
get_top_journals
(conn: &Connection, limit: u32)
src/db/analytics.rs:129
↓ 3 callers
Function
get_top_keywords
(conn: &Connection, limit: u32)
src/db/analytics.rs:101
↓ 3 callers
Method
handleRoute
()
front/src/main.js:34
↓ 3 callers
Method
navigate
(path)
front/src/main.js:29
↓ 3 callers
Function
ok
Empty success response
src/server/responses.rs:92
↓ 3 callers
Method
pick_key_indices
(&self, requested: usize)
src/ranking/pool.rs:215
↓ 3 callers
Method
refresh_states
(&self, states: &mut [KeyRuntimeState])
src/ranking/pool.rs:244
↓ 3 callers
Method
resolve_provider_config
Resolve provider config by name from registry.
src/server/config.rs:485
↓ 3 callers
Method
setButtonLoading
(isLoading)
front/src/pages/home.js:670
↓ 3 callers
Function
setup_db
()
src/db/journal_cache.rs:251
↓ 3 callers
Function
setup_db
()
src/db/analytics.rs:185
↓ 3 callers
Method
snapshot
Get current snapshot of statistics
src/traffic.rs:68
↓ 3 callers
Function
strip_tags
(text: &str)
src/sources/pubmed.rs:411
↓ 3 callers
Function
update_progress
Update task progress
src/db/tasks.rs:155
↓ 2 callers
Method
as_path
(&self)
src/sources/xrxiv.rs:33
↓ 2 callers
Function
batch_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 callers
Method
batch_lookup
(&self, venues: &[String])
src/ranking/pool.rs:122
↓ 2 callers
Method
batch_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 callers
Function
batch_upsert
Batch insert or update cached journal rankings in one transaction.
src/db/journal_cache.rs:102
↓ 2 callers
Method
buildResultsTable
()
front/src/pages/task.js:451
↓ 2 callers
Method
buildResultsTable
()
front/src/pages/home.js:593
↓ 2 callers
Function
build_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 callers
Function
build_search_url
Build OpenAlex API search URL
src/sources/openalex.rs:271
↓ 2 callers
Function
compute_requested_chunk
( cache_miss_count: usize, total_active_keys: usize, policy: LeasePolicy, target_duration_sec:
src/ranking/service.rs:713
↓ 2 callers
Function
create_final_output
Create final unified output
src/cli/search.rs:450
↓ 2 callers
Function
create_router
Create the API router with all middleware
src/server/routes.rs:19
↓ 2 callers
Function
dedup_keep_order
(values: Vec<String>)
src/server/config.rs:491
↓ 2 callers
Function
downloadBibTeX
(taskId)
front/src/api/client.js:63
↓ 2 callers
Function
downloadCSV
(taskId)
front/src/api/client.js:50
↓ 2 callers
Function
escape_bibtex
Escape special BibTeX characters
src/server/handlers.rs:583
↓ 2 callers
Method
fetchTaskStatus
()
front/src/pages/task.js:167
↓ 2 callers
Function
generate_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