Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrasannaKrishna0307/oceanhazard-detection
/ functions
Functions
461 in github.com/PrasannaKrishna0307/oceanhazard-detection
⨍
Functions
461
◇
Types & classes
24
↓ 230 callers
Function
cn
(...inputs: ClassValue[])
oceanhazard-detection/lib/utils.ts:4
↓ 5 callers
Function
dispatch
(action: Action)
oceanhazard-detection/components/ui/use-toast.ts:133
↓ 5 callers
Function
dispatch
(action: Action)
oceanhazard-detection/hooks/use-toast.ts:133
↓ 4 callers
Function
clean_text
(text: str)
oceanhazard-detection/lib/processors/clean-text.py:14
↓ 4 callers
Function
getPlatformIcon
(platform: string)
oceanhazard-detection/components/social-media-extraction.tsx:241
↓ 4 callers
Method
process_batch
Process multiple social media posts
oceanhazard-detection/lib/processors/data_processor.py:70
↓ 4 callers
Function
runValidation
(algorithm: NeuralNetworkValidation["algorithm"])
oceanhazard-detection/components/neural-network-validator.tsx:23
↓ 4 callers
Function
useCarousel
()
oceanhazard-detection/components/ui/carousel.tsx:35
↓ 4 callers
Function
useFormField
()
oceanhazard-detection/components/ui/form.tsx:45
↓ 4 callers
Function
useSidebar
()
oceanhazard-detection/components/ui/sidebar.tsx:47
↓ 3 callers
Function
getEnhancedAnalyticsData
(filters: any)
oceanhazard-detection/app/api/analytics/reports/route.ts:88
↓ 3 callers
Function
getEnhancedMockData
(keywords: string[], platforms: string[], location?: any)
oceanhazard-detection/app/api/social/extract/route.ts:83
↓ 3 callers
Function
getMockTwitterData
()
oceanhazard-detection/app/api/social/extract-twitter/route.ts:166
↓ 3 callers
Function
getPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string, )
oceanhazard-detection/components/ui/chart.tsx:308
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
oceanhazard-detection/components/ui/use-toast.ts:58
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
oceanhazard-detection/hooks/use-toast.ts:58
↓ 2 callers
Function
analyze_sentiment
Analyze sentiment for a single text
oceanhazard-detection/lib/processors/sentiment_analyzer.py:153
↓ 2 callers
Method
analyze_sentiment
Comprehensive sentiment analysis for hazard-related content Returns: { 'polarity': float, # -1 to 1 'subject
oceanhazard-detection/lib/processors/sentiment_analyzer.py:27
↓ 2 callers
Function
calculateSentiment
(text: string)
oceanhazard-detection/app/api/social/extract-twitter/route.ts:243
↓ 2 callers
Method
classify_post
Enhanced hazard classification with confidence scoring Returns: (hazard_type, urgency_level, confidence_score)
oceanhazard-detection/lib/processors/classifier.py:51
↓ 2 callers
Function
classify_post_enhanced
Enhanced classification with confidence scoring
oceanhazard-detection/lib/processors/classifier.py:133
↓ 2 callers
Function
enhancedClassifyPost
(text: string)
oceanhazard-detection/app/api/social/extract-twitter/route.ts:5
↓ 2 callers
Function
enhancedCleanText
(text: string)
oceanhazard-detection/app/api/social/extract-twitter/route.ts:77
↓ 2 callers
Function
generateMockHazardData
()
oceanhazard-detection/components/real-map.tsx:629
↓ 2 callers
Function
generateMockMapData
()
oceanhazard-detection/app/api/social/live-data/route.ts:198
↓ 2 callers
Method
process_social_post
Process a single social media post through the complete pipeline
oceanhazard-detection/lib/processors/data_processor.py:21
↓ 2 callers
Function
run_command
Run a command and handle errors
oceanhazard-detection/setup_python.py:12
↓ 2 callers
Function
useChart
()
oceanhazard-detection/components/ui/chart.tsx:27
↓ 1 callers
Method
_apply_filters
Apply filters to base report count
oceanhazard-detection/lib/processors/analytics_generator.py:62
↓ 1 callers
Method
_calculate_confidence
Calculate confidence score for the sentiment analysis
oceanhazard-detection/lib/processors/sentiment_analyzer.py:119
↓ 1 callers
Method
_calculate_urgency_score
Calculate urgency score based on emergency keywords and patterns
oceanhazard-detection/lib/processors/sentiment_analyzer.py:68
↓ 1 callers
Method
_create_empty_result
Create empty result for posts with no processable text
oceanhazard-detection/lib/processors/data_processor.py:189
↓ 1 callers
Method
_default_sentiment
Return default sentiment for empty text
oceanhazard-detection/lib/processors/sentiment_analyzer.py:137
↓ 1 callers
Method
_determine_sentiment_label
Determine sentiment label considering both polarity and urgency
oceanhazard-detection/lib/processors/sentiment_analyzer.py:97
↓ 1 callers
Method
_empty_summary
Return empty summary for no data
oceanhazard-detection/lib/processors/data_processor.py:208
↓ 1 callers
Method
_extract_emergency_indicators
Extract emergency-related indicators from text
oceanhazard-detection/lib/processors/sentiment_analyzer.py:108
↓ 1 callers
Method
_generate_daily_trends
Generate daily trends data
oceanhazard-detection/lib/processors/analytics_generator.py:132
↓ 1 callers
Method
_generate_geographic_distribution
Generate geographic distribution data
oceanhazard-detection/lib/processors/analytics_generator.py:212
↓ 1 callers
Method
_generate_hazard_distribution
Generate hazard type distribution
oceanhazard-detection/lib/processors/analytics_generator.py:101
↓ 1 callers
Method
_generate_hourly_trends
Generate hourly trends data
oceanhazard-detection/lib/processors/analytics_generator.py:183
↓ 1 callers
Method
_generate_location_distribution
Generate location distribution
oceanhazard-detection/lib/processors/analytics_generator.py:123
↓ 1 callers
Method
_generate_ml_insights
Generate ML insights data
oceanhazard-detection/lib/processors/analytics_generator.py:233
↓ 1 callers
Method
_generate_monthly_trends
Generate monthly trends data
oceanhazard-detection/lib/processors/analytics_generator.py:167
↓ 1 callers
Method
_generate_response_metrics
Generate response metrics data
oceanhazard-detection/lib/processors/analytics_generator.py:259
↓ 1 callers
Method
_generate_sentiment_analysis
Generate sentiment analysis data
oceanhazard-detection/lib/processors/analytics_generator.py:201
↓ 1 callers
Method
_generate_social_media_insights
Generate social media insights data
oceanhazard-detection/lib/processors/analytics_generator.py:243
↓ 1 callers
Method
_generate_source_distribution
Generate source distribution
oceanhazard-detection/lib/processors/analytics_generator.py:115
↓ 1 callers
Method
_generate_weekly_trends
Generate weekly trends data
oceanhazard-detection/lib/processors/analytics_generator.py:151
↓ 1 callers
Function
addFirstDocument
()
oceanhazard-detection/test-firebase.js:19
↓ 1 callers
Function
addHazardMarkers
()
oceanhazard-detection/components/real-map.tsx:212
↓ 1 callers
Method
batch_analyze
Analyze sentiment for multiple texts
oceanhazard-detection/lib/processors/sentiment_analyzer.py:148
↓ 1 callers
Function
calculateRadius
(urgency: string, confidence: number)
oceanhazard-detection/app/api/social/live-data/route.ts:172
↓ 1 callers
Function
calculateSentiment
(text: string)
oceanhazard-detection/app/api/social/extract-reddit/route.ts:132
↓ 1 callers
Function
calculateSentiment
(text: string)
oceanhazard-detection/app/api/social/extract-instagram/route.ts:118
↓ 1 callers
Function
calculateViralityIndex
(post: any)
oceanhazard-detection/app/api/social/live-data/route.ts:165
↓ 1 callers
Function
check_python_version
Check if Python version is compatible
oceanhazard-detection/setup_python.py:24
↓ 1 callers
Function
classifyInstagramPost
(text: string, hashtags: string[])
oceanhazard-detection/app/api/social/extract-instagram/route.ts:19
↓ 1 callers
Function
classifyRedditPost
(title: string, selftext: string, subreddit: string)
oceanhazard-detection/app/api/social/extract-reddit/route.ts:19
↓ 1 callers
Function
create_data_directories
Create necessary data directories
oceanhazard-detection/setup_python.py:63
↓ 1 callers
Function
dismiss
()
oceanhazard-detection/components/ui/use-toast.ts:150
↓ 1 callers
Function
dismiss
()
oceanhazard-detection/hooks/use-toast.ts:150
↓ 1 callers
Function
download_nltk_data
Download required NLTK data
oceanhazard-detection/setup_python.py:49
↓ 1 callers
Method
extract_location_mentions
Extract potential location mentions from text
oceanhazard-detection/lib/processors/classifier.py:108
↓ 1 callers
Function
fetchHazardData
()
oceanhazard-detection/components/real-map.tsx:73
↓ 1 callers
Function
fetchInstagramData
(query: string, maxResults = 15)
oceanhazard-detection/app/api/social/extract-instagram/route.ts:50
↓ 1 callers
Function
fetchLiveData
()
oceanhazard-detection/components/enhanced-live-map.tsx:86
↓ 1 callers
Function
fetchRedditData
(query: string, maxResults = 10)
oceanhazard-detection/app/api/social/extract-reddit/route.ts:65
↓ 1 callers
Function
fetchTwitterData
(query: string, maxResults = 20)
oceanhazard-detection/app/api/social/extract-twitter/route.ts:103
↓ 1 callers
Function
fetch_and_geocode
(query, max_results=10)
oceanhazard-detection/lib/social-extractors/fetch-and-geocode.py:20
↓ 1 callers
Function
fetch_recent_tweets
(query, max_results=20)
oceanhazard-detection/lib/social-extractors/fetch-tweets.py:17
↓ 1 callers
Function
genId
()
oceanhazard-detection/components/ui/use-toast.ts:27
↓ 1 callers
Function
genId
()
oceanhazard-detection/hooks/use-toast.ts:27
↓ 1 callers
Function
generateAlertMessage
(hazardData: any)
oceanhazard-detection/app/api/alerts/generate/route.ts:50
↓ 1 callers
Function
generateAlertTitle
(type: string, severity: string)
oceanhazard-detection/app/api/alerts/generate/route.ts:40
↓ 1 callers
Function
generateDailyTrends
()
oceanhazard-detection/app/api/analytics/reports/route.ts:189
↓ 1 callers
Function
generateEnhancedAnalytics
(filters: any)
oceanhazard-detection/app/api/analytics/reports/route.ts:42
↓ 1 callers
Function
generateHeatmapData
()
oceanhazard-detection/components/heatmap-chart.tsx:49
↓ 1 callers
Function
generateHourlyTrends
()
oceanhazard-detection/app/api/analytics/reports/route.ts:216
↓ 1 callers
Function
generateMonthlyTrends
()
oceanhazard-detection/app/api/analytics/reports/route.ts:208
↓ 1 callers
Function
generateWeeklyTrends
()
oceanhazard-detection/app/api/analytics/reports/route.ts:200
↓ 1 callers
Method
generate_analytics
Generate comprehensive analytics data
oceanhazard-detection/lib/processors/analytics_generator.py:19
↓ 1 callers
Method
generate_summary_stats
Generate summary statistics for processed posts
oceanhazard-detection/lib/processors/data_processor.py:123
↓ 1 callers
Function
geocode_place
(place)
oceanhazard-detection/lib/geocode-place.py:10
↓ 1 callers
Function
getAlgorithmIcon
(algorithm: NeuralNetworkValidation["algorithm"])
oceanhazard-detection/components/neural-network-validator.tsx:83
↓ 1 callers
Function
getCredibilityColor
(score: number)
oceanhazard-detection/components/social-media-integration.tsx:61
↓ 1 callers
Function
getHazardColor
(hazardType: string)
oceanhazard-detection/components/social-media-extraction.tsx:256
↓ 1 callers
Function
getHazardStats
(posts: any[])
oceanhazard-detection/app/api/social/live-data/route.ts:184
↓ 1 callers
Function
getIntensityColor
(incidents: number)
oceanhazard-detection/components/heatmap-chart.tsx:37
↓ 1 callers
Function
getPlatformIcon
(platform: string)
oceanhazard-detection/components/social-media-integration.tsx:46
↓ 1 callers
Function
getPlatformStats
(posts: any[])
oceanhazard-detection/app/api/social/live-data/route.ts:177
↓ 1 callers
Function
getRiskColor
(riskLevel: string)
oceanhazard-detection/components/neural-network-validator.tsx:98
↓ 1 callers
Function
getUrgencyStats
(posts: any[])
oceanhazard-detection/app/api/social/live-data/route.ts:191
↓ 1 callers
Function
getValidationFactors
(algorithm: NeuralNetworkValidation["algorithm"])
oceanhazard-detection/components/neural-network-validator.tsx:52
↓ 1 callers
Method
get_high_priority_posts
Get high priority posts (high urgency + high confidence)
oceanhazard-detection/lib/processors/data_processor.py:114
↓ 1 callers
Function
initMap
()
oceanhazard-detection/components/real-map.tsx:160
↓ 1 callers
Function
install_requirements
Install Python requirements
oceanhazard-detection/setup_python.py:34
↓ 1 callers
Function
install_spacy_model
Install spaCy English model
oceanhazard-detection/setup_python.py:44
↓ 1 callers
Function
load_mock_posts
(file="data/mock_social.jsonl")
oceanhazard-detection/lib/geocode-place.py:27
↓ 1 callers
Function
main
Main test function
oceanhazard-detection/test_python_pipeline.py:232
↓ 1 callers
Function
main
Main setup function
oceanhazard-detection/setup_python.py:103
next →
1–100 of 461, ranked by callers