Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/0010aor/FlashNotes
/ functions
Functions
539 in github.com/0010aor/FlashNotes
⨍
Functions
539
◇
Types & classes
158
↳
Endpoints
22
↓ 168 callers
Function
t
()
frontend/src/utils.ts:4
↓ 28 callers
Function
random_lower_string
()
backend/tests/utils/utils.py:9
↓ 27 callers
Method
delete
(collectionId: string, id: string)
frontend/src/repositories/card/CardRepository.ts:8
↓ 21 callers
Method
update
(collectionId: string, id: string, data: CardUpdate)
frontend/src/repositories/card/CardRepository.ts:7
↓ 19 callers
Function
random_email
()
backend/tests/utils/utils.py:13
↓ 16 callers
Function
create_user
(*, session: Session, user_create: UserCreate)
backend/src/users/services.py:15
↓ 12 callers
Function
verify_entity_deleted
Helper function to verify an entity was deleted.
backend/tests/flashcards/test_cascade_delete.py:100
↓ 8 callers
Method
create
(collectionId: string, data: CardCreate)
frontend/src/repositories/card/CardRepository.ts:6
↓ 8 callers
Function
isGuest
()
frontend/src/utils/authUtils.ts:5
↓ 7 callers
Function
authentication_token_from_email
Return a valid token for the user with given email. If the user doesn't exist it is created first.
backend/tests/utils/user.py:31
↓ 7 callers
Function
check_and_increment_ai_usage_quota
(session: Session, user: User)
backend/src/users/services.py:71
↓ 7 callers
Function
create_random_user
(db: Session)
backend/tests/utils/user.py:23
↓ 6 callers
Function
collection_with_sessions
(db)
backend/tests/stats/test_api.py:15
↓ 6 callers
Function
get_practice_cards
Get practice cards for a session, optionally filtering, ordering, and limiting.
backend/src/flashcards/services.py:282
↓ 5 callers
Function
repo
()
frontend/src/services/collections.ts:5
↓ 5 callers
Function
repo
()
frontend/src/services/cards.ts:5
↓ 5 callers
Function
resolve
( options: ApiRequestOptions<T>, resolver?: T | Resolver<T>, )
frontend/src/client/core/request.ts:113
↓ 5 callers
Function
useColorMode
()
frontend/src/components/ui/color-mode.tsx:27
↓ 4 callers
Function
check_collection_access
( session: Session, collection_id: uuid.UUID, user_id: uuid.UUID )
backend/src/flashcards/services.py:187
↓ 4 callers
Function
create_collection
( session: Session, user_id: uuid.UUID, name: str, cards: list[CardBase] | None = None )
backend/src/flashcards/services.py:50
↓ 4 callers
Function
generate_ai_collection
(provider, prompt: str)
backend/src/flashcards/services.py:375
↓ 4 callers
Function
get_collection
( session: Session, id: uuid.UUID, user_id: uuid.UUID )
backend/src/flashcards/services.py:41
↓ 4 callers
Function
get_or_create_practice_session
( session: Session, collection_id: uuid.UUID, user_id: uuid.UUID )
backend/src/flashcards/services.py:250
↓ 4 callers
Function
isString
(value: unknown)
frontend/src/client/core/request.ts:11
↓ 4 callers
Function
record_practice_card_result
( session: Session, practice_card: PracticeCard, is_correct: bool, )
backend/src/flashcards/services.py:340
↓ 4 callers
Function
toCollection
(local: LocalCollection, localCards: LocalCard[])
frontend/src/repositories/collection/LocalCollectionRepository.ts:16
↓ 4 callers
Function
useAuthContext
()
frontend/src/hooks/useAuthContext.tsx:61
↓ 4 callers
Function
useRichTextEditor
({ content = '', characterLimit = 3000, onUpdate, }: UseRichTextEditorOptions = {})
frontend/src/components/commonUI/RichText/useRichTextEditor.ts:19
↓ 3 callers
Method
_check_default_secret
(self, var_name: str, value: str | None)
backend/src/core/config.py:78
↓ 3 callers
Function
_get_collection_basic_info
( session: Session, collection_id: uuid.UUID )
backend/src/stats/services.py:16
↓ 3 callers
Function
create_card
( session: Session, collection_id: uuid.UUID, card_in: CardCreate )
backend/src/flashcards/services.py:139
↓ 3 callers
Function
generate_ai_flashcard
(prompt: str, provider)
backend/src/flashcards/services.py:396
↓ 3 callers
Function
get_card_with_collection
( session: Session, card_id: uuid.UUID, user_id: uuid.UUID )
backend/src/flashcards/services.py:110
↓ 3 callers
Function
get_cards
( session: Session, collection_id: uuid.UUID, skip: int = 0, limit: int = 100 )
backend/src/flashcards/services.py:90
↓ 3 callers
Function
get_collections
( session: Session, user_id: uuid.UUID, skip: int = 0, limit: int = 100 )
backend/src/flashcards/services.py:25
↓ 3 callers
Function
get_practice_session
( session: Session, session_id: uuid.UUID, user_id: uuid.UUID )
backend/src/flashcards/services.py:213
↓ 3 callers
Function
handleSubmit
()
frontend/src/components/commonUI/AiPromptDialog.tsx:54
↓ 3 callers
Function
isStringWithValue
(value: unknown)
frontend/src/client/core/request.ts:15
↓ 3 callers
Function
repo
()
frontend/src/services/practiceSessions.ts:5
↓ 3 callers
Function
toCard
(local: LocalCard)
frontend/src/repositories/card/LocalCardRepository.ts:6
↓ 3 callers
Method
use
(fn: Middleware<T>)
frontend/src/client/core/OpenAPI.ts:22
↓ 3 callers
Function
useAuth
()
frontend/src/hooks/useAuth.ts:24
↓ 3 callers
Function
verify_password
(plain_password: str, hashed_password: str)
backend/src/auth/services.py:46
↓ 2 callers
Function
PracticeCard
({ card, isFlipped, onFlip }: PracticeCardProps)
frontend/src/components/practice/PracticeCard.tsx:11
↓ 2 callers
Function
_get_collection_cards
(session: Session, collection_id: uuid.UUID)
backend/src/flashcards/services.py:233
↓ 2 callers
Function
_get_difficult_cards
( session: Session, collection_id: uuid.UUID, min_attempts: int = 2, limit: int = 5, )
backend/src/stats/services.py:70
↓ 2 callers
Function
_get_recent_sessions
Get recent practice sessions using an optimized query.
backend/src/stats/services.py:42
↓ 2 callers
Function
append
(key: string, value: unknown)
frontend/src/client/core/request.ts:43
↓ 2 callers
Function
authenticate
(*, session: Session, email: str, password: str)
backend/src/auth/services.py:50
↓ 2 callers
Function
calculateSessionSuccessRate
( session: PracticeSessionStats | null, )
frontend/src/utils/stats.ts:14
↓ 2 callers
Function
card_response_schema
(schema_type)
backend/src/flashcards/ai_config.py:7
↓ 2 callers
Function
createCard
(collectionId: string, data: CardCreate)
frontend/src/services/cards.ts:15
↓ 2 callers
Function
createCollection
(data: CollectionCreate)
frontend/src/services/collections.ts:15
↓ 2 callers
Function
create_cards
(db, collection, num_cards)
backend/tests/stats/utils.py:4
↓ 2 callers
Function
create_content_config
( temperature: float = DEFAULT_TEMPERATURE, top_p: float = DEFAULT_TOP_P, top_k: int = DEFAULT_TOP
backend/src/ai_models/gemini/config.py:37
↓ 2 callers
Function
create_practice_cards
(db, sessions, cards)
backend/tests/stats/utils.py:31
↓ 2 callers
Function
create_sessions
(db, user_id, collection, num_sessions, num_cards)
backend/tests/stats/utils.py:14
↓ 2 callers
Method
getAll
(collectionId: string)
frontend/src/repositories/card/CardRepository.ts:4
↓ 2 callers
Method
getById
(collectionId: string, id: string)
frontend/src/repositories/card/CardRepository.ts:5
↓ 2 callers
Function
getNextPracticeCard
( sessionId: string, )
frontend/src/services/practiceSessions.ts:11
↓ 2 callers
Function
get_ai_usage_quota_for_user
(user: User)
backend/src/users/services.py:51
↓ 2 callers
Function
get_card
(session: Session, card_id: uuid.UUID)
backend/src/flashcards/services.py:106
↓ 2 callers
Function
get_card_by_id
(session: Session, card_id: uuid.UUID)
backend/src/flashcards/services.py:370
↓ 2 callers
Function
get_collection_stats
( session: Session, collection_id: uuid.UUID, limit: int = 30 )
backend/src/stats/services.py:114
↓ 2 callers
Function
get_password_hash
(password: str)
backend/src/auth/services.py:68
↓ 2 callers
Function
get_practice_card
( session: Session, practice_session_id: uuid.UUID, card_id: uuid.UUID, )
backend/src/flashcards/services.py:328
↓ 2 callers
Function
get_practice_sessions
( session: Session, user_id: uuid.UUID, skip: int = 0, limit: int = 100 )
backend/src/flashcards/services.py:197
↓ 2 callers
Function
get_user_by_email
(*, session: Session, email: str)
backend/src/users/services.py:45
↓ 2 callers
Function
init
(db_engine: Engine)
backend/tests/tests_pre_start.py:22
↓ 2 callers
Function
init_db
(session: Session)
backend/src/core/db.py:14
↓ 2 callers
Function
initializeAnalytics
()
frontend/src/components/commonUI/AnalyticsConsent.tsx:25
↓ 2 callers
Function
isBlob
(value: any)
frontend/src/client/core/request.ts:19
↓ 2 callers
Function
isSuccess
(status: number)
frontend/src/client/core/request.ts:27
↓ 2 callers
Function
logout
()
frontend/src/hooks/useAuthContext.tsx:48
↓ 2 callers
Function
onSubmit
(data)
frontend/src/routes/_publicLayout/login.tsx:43
↓ 2 callers
Function
process
(key: string, value: unknown)
frontend/src/client/core/request.ts:88
↓ 2 callers
Function
removeIncompletePracticeSessionsForCollection
(collectionId: string)
frontend/src/data/localDB/cards.ts:4
↓ 2 callers
Method
run_model
( self, content_config: types.GenerateContentConfig, prompt: str )
backend/src/ai_models/gemini/provider.py:23
↓ 2 callers
Function
setGuestMode
(value: boolean)
frontend/src/hooks/useAuthContext.tsx:38
↓ 2 callers
Method
submitCardResult
(sessionId: string, cardId: string, isCorrect: boolean)
frontend/src/repositories/practiceSession/PracticeSessionRepository.ts:6
↓ 2 callers
Function
update_card
(session: Session, card: Card, card_in: CardUpdate)
backend/src/flashcards/services.py:153
↓ 2 callers
Function
useCard
(collectionId: string, cardId?: string)
frontend/src/hooks/useCard.ts:17
↓ 2 callers
Function
useTextCounter
(editor: Editor | null, setTextLength: (length: number) => void)
frontend/src/hooks/useTextCounter.tsx:7
↓ 1 callers
Function
_add_card_to_ongoing_sessions
(session: Session, card: Card)
backend/src/flashcards/services.py:121
↓ 1 callers
Function
_create
(user_id, num_cards=5, num_sessions=10)
backend/tests/stats/test_services.py:42
↓ 1 callers
Function
_create_practice_cards
( session: Session, practice_session: PracticeSession, cards: list[Card] )
backend/src/flashcards/services.py:238
↓ 1 callers
Function
_get_uncompleted_session
( session: Session, collection_id: uuid.UUID, user_id: uuid.UUID )
backend/src/flashcards/services.py:222
↓ 1 callers
Function
_remove_incomplete_practice_sessions
(session: Session, card: Card)
backend/src/flashcards/services.py:164
↓ 1 callers
Function
base64
(str: string)
frontend/src/client/core/request.ts:31
↓ 1 callers
Function
calculateAverageAccuracy
( sessions: PracticeSessionStats[] | undefined, )
frontend/src/utils/stats.ts:3
↓ 1 callers
Function
calculateLearningTrend
( sessions: PracticeSessionStats[] | undefined, )
frontend/src/utils/stats.ts:21
↓ 1 callers
Function
catchErrorCodes
(options: ApiRequestOptions, result: ApiResult)
frontend/src/client/core/request.ts:245
↓ 1 callers
Function
clean_orphaned_records
Clean up orphaned records that would violate new foreign key constraints
backend/src/alembic/versions/cb7e65c8085b_add_user_cascade_delete_relationships.py:22
↓ 1 callers
Function
collection_response_schema
(schema_type)
backend/src/flashcards/ai_config.py:22
↓ 1 callers
Function
confirmPasswordRules
(getValues: () => unknown, isRequired = true)
frontend/src/utils.ts:38
↓ 1 callers
Method
createCard
* Create Card * @param data The data for the request. * @param data.collectionId * @param data.requestBody * @returns Card Successful Resp
frontend/src/client/sdk.gen.ts:198
↓ 1 callers
Method
createCollection
* Create Collection * @param data The data for the request. * @param data.requestBody * @returns Collection Successful Response * @throws
frontend/src/client/sdk.gen.ts:79
↓ 1 callers
Function
createPracticeCardsForSession
(sessionId: string, cards: LocalCard[])
frontend/src/data/localDB/practiceSessions.ts:56
↓ 1 callers
Function
createPracticeSession
( collectionId: string, totalCards: number, now: number, )
frontend/src/data/localDB/practiceSessions.ts:35
↓ 1 callers
Function
create_access_token
(subject: str | Any, expires_delta: timedelta)
backend/src/auth/services.py:61
next →
1–100 of 539, ranked by callers