Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/day-mon/sports-betting-ai
/ functions
Functions
84 in github.com/day-mon/sports-betting-ai
⨍
Functions
84
◇
Types & classes
76
↓ 5 callers
Function
fetchHelper
(url: string)
Website/src/util/fetchHelper.ts:1
↓ 4 callers
Function
getTotalScore
(game: Game | SavedGame)
Website/src/components/GameCard.tsx:14
↓ 4 callers
Method
insert
(&self, conn: &mut PgConnection)
API/src/models/game_with_odds.rs:157
↓ 3 callers
Function
directory_exists
(path: &String)
API/src/util/io_helper.rs:76
↓ 3 callers
Function
findPrediction
(game: Game)
Website/src/pages/Bets.tsx:109
↓ 3 callers
Function
getBaseUrl
(useRemote?: boolean)
Website/src/constants.ts:38
↓ 3 callers
Function
getWinPercentage
(games: SavedHistory[])
Website/src/pages/History.tsx:105
↓ 3 callers
Method
name
(&self)
API/src/models/api_error.rs:26
↓ 2 callers
Function
call_model
( df: &DataFrame, matches: &[Match], model_name: &String, model_dir: &String, )
API/src/util/nn_helper.rs:60
↓ 2 callers
Function
convert_rows_to_f64
(df: &mut DataFrame)
API/src/util/polars_helper.rs:5
↓ 2 callers
Function
drop_columns
(df: &mut DataFrame, model_name: &str)
API/src/util/polars_helper.rs:17
↓ 2 callers
Function
fetch
(request, env)
API/worker.js:9
↓ 2 callers
Function
fetchBets
(refresh?: boolean)
Website/src/pages/Bets.tsx:75
↓ 2 callers
Function
getBaseUrl
(useRemote?: boolean)
Website/src/pages/Bets.tsx:13
↓ 2 callers
Function
getGamesOnDate
(modelName: string, date: Date)
Website/src/pages/History.tsx:50
↓ 2 callers
Function
getPredictedWinColor
(winPercentage: number)
Website/src/pages/History.tsx:11
↓ 2 callers
Function
getWinPercentage
()
Website/src/pages/Bets.tsx:112
↓ 2 callers
Function
getWinner
(game: Game)
Website/src/components/GameCard.tsx:26
↓ 2 callers
Function
getWinner
(game: Game)
Website/src/pages/Bets.tsx:143
↓ 2 callers
Function
get_data_dates
(con: &mut PgConnection)
API/src/models/game_with_odds.rs:242
↓ 2 callers
Function
get_model_data
( matches: Option<&Vec<Match>>, date: &String, model_name: &str, data_dir: &String, worker
API/src/util/nn_helper.rs:13
↓ 2 callers
Method
into_injury_store
(self)
API/src/models/game_with_odds.rs:307
↓ 2 callers
Method
into_saved_game
( self, our_prediction: Option<&Prediction>, saved_model_name: &str, )
API/src/models/game_with_odds.rs:71
↓ 2 callers
Method
is_saved
(&self, conn: &mut PgConnection)
API/src/models/game_with_odds.rs:164
↓ 2 callers
Function
run
(pool: r2d2::Pool<ConnectionManager<PgConnection>>, model_dir: String)
API/src/services/history_service.rs:16
↓ 2 callers
Method
status_code
(&self)
API/src/models/api_error.rs:41
↓ 1 callers
Function
changeCardShow
(index: number)
Website/src/pages/Bets.tsx:214
↓ 1 callers
Function
fetchPredictions
(model_name: string)
Website/src/pages/Bets.tsx:33
↓ 1 callers
Function
games
()
API/src/routes/nn.rs:163
↓ 1 callers
Function
gatherResponse
(response)
API/worker.js:42
↓ 1 callers
Function
getGameStatus
()
Website/src/components/GameCard.tsx:59
↓ 1 callers
Function
getInjuries
(game: Game)
Website/src/components/GameCard.tsx:37
↓ 1 callers
Function
getOptions
()
Website/src/pages/History.tsx:111
↓ 1 callers
Function
getPercentageRounded
(num: number)
Website/src/components/GameCard.tsx:67
↓ 1 callers
Function
getPercentageRounded
(num: number)
Website/src/util/math.ts:1
↓ 1 callers
Function
getPredictedWinColor
(winRate: number)
Website/src/pages/About.tsx:39
↓ 1 callers
Function
getPredictionAgainstOdds
(odd: Odd, prediction: Prediction)
Website/src/components/GameCard.tsx:52
↓ 1 callers
Method
get_final_score
(&self)
API/src/models/game_odds.rs:149
↓ 1 callers
Function
get_injuries_by_game_id
( game_id: &String, conn: &mut PgConnection, )
API/src/models/game_with_odds.rs:349
↓ 1 callers
Function
get_model_win_rate
( other_model_name: &str, conn: &mut PgConnection, )
API/src/models/game_with_odds.rs:176
↓ 1 callers
Function
get_saved_games_by_date
( params: &HistoryQueryParams, con: &mut PgConnection, )
API/src/models/game_with_odds.rs:213
↓ 1 callers
Method
get_team_stats
(&self, team_id: i64)
API/src/models/team_stats.rs:87
↓ 1 callers
Method
get_winner
(&self)
API/src/models/game_odds.rs:132
↓ 1 callers
Function
handleRequest
(request)
API/worker.js:14
↓ 1 callers
Function
hideDropdown
()
Website/src/components/Navbar.tsx:15
↓ 1 callers
Method
into_odds
(self)
API/src/models/game_odds.rs:311
↓ 1 callers
Method
is_finished
(&self)
API/src/models/game_with_odds.rs:104
↓ 1 callers
Function
retrieve_game_score
( output: &Tensor<f32>, matches: &[Match], row_index: usize, )
API/src/util/nn_helper.rs:165
↓ 1 callers
Function
retrieve_match_winner
( output: &Tensor<f32>, matches: &[Match], row_index: usize, )
API/src/util/nn_helper.rs:183
↓ 1 callers
Function
sortByWinner
()
Website/src/pages/History.tsx:95
↓ 1 callers
Function
sortedBetsByTime
(games: Game[])
Website/src/pages/Bets.tsx:157
↓ 1 callers
Function
store_in_cache
(redis_client_opt: &Option<Client>, key: &String, value: T)
API/src/util/io_helper.rs:132
↓ 1 callers
Function
write_to_csv
( matches: &Vec<Match>, team_stats: &TeamStats, date: &String, data_dir: &String, )
API/src/util/io_helper.rs:13
Function
About
()
Website/src/pages/About.tsx:5
Function
App
()
Website/src/App.tsx:12
Function
Bets
()
Website/src/pages/Bets.tsx:21
Function
Error
()
Website/src/pages/Error.tsx:3
Function
ErrorPopup
(props: IErrorPopupProps)
Website/src/components/ErrorPopup.tsx:9
Function
GameCard
(props: IBetCards)
Website/src/components/GameCard.tsx:23
Function
History
()
Website/src/pages/History.tsx:16
Function
Home
()
Website/src/pages/Home.tsx:3
Function
InjuryModal
(props: IInjuryProps)
Website/src/components/modals/InjuryModal.tsx:11
Function
Loading
()
Website/src/components/Loading.tsx:3
Function
LoadingButton
(props: ILoadingButtonProps)
Website/src/components/LoadingButton.tsx:12
Function
LoadingSelect
(props: iLoadingSelectProps)
Website/src/components/LoadingSelect.tsx:12
Function
Modal
(props: IModalProps)
Website/src/components/Modal.tsx:8
Function
Navbar
()
Website/src/components/Navbar.tsx:7
Function
NavbarLink
(props: Props)
Website/src/components/NavbarLink.tsx:11
Function
NoData
(props?: INoDataProps)
Website/src/components/NoData.tsx:8
Function
SavedGameCard
(props: ISavedGameCardProps)
Website/src/components/SavedGameCard.tsx:12
Method
error_response
(&self)
API/src/models/api_error.rs:54
Method
from_dataframe
( dataframe: &DataFrame, game: &[crate::models::game_odds::Game], )
API/src/models/daily_games.rs:168
Method
from_g
(match_up: &Game, date: &str)
API/src/models/game_with_odds.rs:42
Method
from_game
(game: Game)
API/src/models/daily_games.rs:238
Method
from_prediction
(missed_game_dto: MissedGameDTO)
API/src/models/game_with_odds.rs:134
Function
get_from_cache
( redis_client_opt: &Option<Client>, key: &String, )
API/src/util/io_helper.rs:108
Function
get_t_from_source
(source: &str)
API/src/util/io_helper.rs:80
Function
history
( params: web::Query<HistoryQueryParams>, pool: web::Data<r2d2::Pool<ConnectionManager<PgConnection>>>
API/src/routes/nn.rs:106
Function
history_dates
( pool: web::Data<r2d2::Pool<ConnectionManager<PgConnection>>>, )
API/src/routes/nn.rs:121
Function
main
()
API/src/main.rs:27
Function
model_accuracy
( params: web::Query<ModelAccuracy>, pool: web::Data<r2d2::Pool<ConnectionManager<PgConnection>>>,
API/src/routes/nn.rs:138
Method
new
( date: &'a String, game_match: &'a Match, score: &Game, other_model_name: &'a
API/src/services/missed_games_service.rs:187
Function
predict_all
( params: web::Query<PredictQueryParams>, redis: web::Data<Option<Client>>, model_dir: web::Data<M
API/src/routes/nn.rs:35
Function
run
( pool: r2d2::Pool<ConnectionManager<PgConnection>>, model_dir: String, data_dir: String, work
API/src/services/missed_games_service.rs:26