MCPcopy Create free account

hub / github.com/PrasannaKrishna0307/oceanhazard-detection / functions

Functions461 in github.com/PrasannaKrishna0307/oceanhazard-detection

↓ 230 callersFunctioncn
(...inputs: ClassValue[])
oceanhazard-detection/lib/utils.ts:4
↓ 5 callersFunctiondispatch
(action: Action)
oceanhazard-detection/components/ui/use-toast.ts:133
↓ 5 callersFunctiondispatch
(action: Action)
oceanhazard-detection/hooks/use-toast.ts:133
↓ 4 callersFunctionclean_text
(text: str)
oceanhazard-detection/lib/processors/clean-text.py:14
↓ 4 callersFunctiongetPlatformIcon
(platform: string)
oceanhazard-detection/components/social-media-extraction.tsx:241
↓ 4 callersMethodprocess_batch
Process multiple social media posts
oceanhazard-detection/lib/processors/data_processor.py:70
↓ 4 callersFunctionrunValidation
(algorithm: NeuralNetworkValidation["algorithm"])
oceanhazard-detection/components/neural-network-validator.tsx:23
↓ 4 callersFunctionuseCarousel
()
oceanhazard-detection/components/ui/carousel.tsx:35
↓ 4 callersFunctionuseFormField
()
oceanhazard-detection/components/ui/form.tsx:45
↓ 4 callersFunctionuseSidebar
()
oceanhazard-detection/components/ui/sidebar.tsx:47
↓ 3 callersFunctiongetEnhancedAnalyticsData
(filters: any)
oceanhazard-detection/app/api/analytics/reports/route.ts:88
↓ 3 callersFunctiongetEnhancedMockData
(keywords: string[], platforms: string[], location?: any)
oceanhazard-detection/app/api/social/extract/route.ts:83
↓ 3 callersFunctiongetMockTwitterData
()
oceanhazard-detection/app/api/social/extract-twitter/route.ts:166
↓ 3 callersFunctiongetPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string, )
oceanhazard-detection/components/ui/chart.tsx:308
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
oceanhazard-detection/components/ui/use-toast.ts:58
↓ 2 callersFunctionaddToRemoveQueue
(toastId: string)
oceanhazard-detection/hooks/use-toast.ts:58
↓ 2 callersFunctionanalyze_sentiment
Analyze sentiment for a single text
oceanhazard-detection/lib/processors/sentiment_analyzer.py:153
↓ 2 callersMethodanalyze_sentiment
Comprehensive sentiment analysis for hazard-related content Returns: { 'polarity': float, # -1 to 1 'subject
oceanhazard-detection/lib/processors/sentiment_analyzer.py:27
↓ 2 callersFunctioncalculateSentiment
(text: string)
oceanhazard-detection/app/api/social/extract-twitter/route.ts:243
↓ 2 callersMethodclassify_post
Enhanced hazard classification with confidence scoring Returns: (hazard_type, urgency_level, confidence_score)
oceanhazard-detection/lib/processors/classifier.py:51
↓ 2 callersFunctionclassify_post_enhanced
Enhanced classification with confidence scoring
oceanhazard-detection/lib/processors/classifier.py:133
↓ 2 callersFunctionenhancedClassifyPost
(text: string)
oceanhazard-detection/app/api/social/extract-twitter/route.ts:5
↓ 2 callersFunctionenhancedCleanText
(text: string)
oceanhazard-detection/app/api/social/extract-twitter/route.ts:77
↓ 2 callersFunctiongenerateMockHazardData
()
oceanhazard-detection/components/real-map.tsx:629
↓ 2 callersFunctiongenerateMockMapData
()
oceanhazard-detection/app/api/social/live-data/route.ts:198
↓ 2 callersMethodprocess_social_post
Process a single social media post through the complete pipeline
oceanhazard-detection/lib/processors/data_processor.py:21
↓ 2 callersFunctionrun_command
Run a command and handle errors
oceanhazard-detection/setup_python.py:12
↓ 2 callersFunctionuseChart
()
oceanhazard-detection/components/ui/chart.tsx:27
↓ 1 callersMethod_apply_filters
Apply filters to base report count
oceanhazard-detection/lib/processors/analytics_generator.py:62
↓ 1 callersMethod_calculate_confidence
Calculate confidence score for the sentiment analysis
oceanhazard-detection/lib/processors/sentiment_analyzer.py:119
↓ 1 callersMethod_calculate_urgency_score
Calculate urgency score based on emergency keywords and patterns
oceanhazard-detection/lib/processors/sentiment_analyzer.py:68
↓ 1 callersMethod_create_empty_result
Create empty result for posts with no processable text
oceanhazard-detection/lib/processors/data_processor.py:189
↓ 1 callersMethod_default_sentiment
Return default sentiment for empty text
oceanhazard-detection/lib/processors/sentiment_analyzer.py:137
↓ 1 callersMethod_determine_sentiment_label
Determine sentiment label considering both polarity and urgency
oceanhazard-detection/lib/processors/sentiment_analyzer.py:97
↓ 1 callersMethod_empty_summary
Return empty summary for no data
oceanhazard-detection/lib/processors/data_processor.py:208
↓ 1 callersMethod_extract_emergency_indicators
Extract emergency-related indicators from text
oceanhazard-detection/lib/processors/sentiment_analyzer.py:108
↓ 1 callersMethod_generate_daily_trends
Generate daily trends data
oceanhazard-detection/lib/processors/analytics_generator.py:132
↓ 1 callersMethod_generate_geographic_distribution
Generate geographic distribution data
oceanhazard-detection/lib/processors/analytics_generator.py:212
↓ 1 callersMethod_generate_hazard_distribution
Generate hazard type distribution
oceanhazard-detection/lib/processors/analytics_generator.py:101
↓ 1 callersMethod_generate_hourly_trends
Generate hourly trends data
oceanhazard-detection/lib/processors/analytics_generator.py:183
↓ 1 callersMethod_generate_location_distribution
Generate location distribution
oceanhazard-detection/lib/processors/analytics_generator.py:123
↓ 1 callersMethod_generate_ml_insights
Generate ML insights data
oceanhazard-detection/lib/processors/analytics_generator.py:233
↓ 1 callersMethod_generate_monthly_trends
Generate monthly trends data
oceanhazard-detection/lib/processors/analytics_generator.py:167
↓ 1 callersMethod_generate_response_metrics
Generate response metrics data
oceanhazard-detection/lib/processors/analytics_generator.py:259
↓ 1 callersMethod_generate_sentiment_analysis
Generate sentiment analysis data
oceanhazard-detection/lib/processors/analytics_generator.py:201
↓ 1 callersMethod_generate_social_media_insights
Generate social media insights data
oceanhazard-detection/lib/processors/analytics_generator.py:243
↓ 1 callersMethod_generate_source_distribution
Generate source distribution
oceanhazard-detection/lib/processors/analytics_generator.py:115
↓ 1 callersMethod_generate_weekly_trends
Generate weekly trends data
oceanhazard-detection/lib/processors/analytics_generator.py:151
↓ 1 callersFunctionaddFirstDocument
()
oceanhazard-detection/test-firebase.js:19
↓ 1 callersFunctionaddHazardMarkers
()
oceanhazard-detection/components/real-map.tsx:212
↓ 1 callersMethodbatch_analyze
Analyze sentiment for multiple texts
oceanhazard-detection/lib/processors/sentiment_analyzer.py:148
↓ 1 callersFunctioncalculateRadius
(urgency: string, confidence: number)
oceanhazard-detection/app/api/social/live-data/route.ts:172
↓ 1 callersFunctioncalculateSentiment
(text: string)
oceanhazard-detection/app/api/social/extract-reddit/route.ts:132
↓ 1 callersFunctioncalculateSentiment
(text: string)
oceanhazard-detection/app/api/social/extract-instagram/route.ts:118
↓ 1 callersFunctioncalculateViralityIndex
(post: any)
oceanhazard-detection/app/api/social/live-data/route.ts:165
↓ 1 callersFunctioncheck_python_version
Check if Python version is compatible
oceanhazard-detection/setup_python.py:24
↓ 1 callersFunctionclassifyInstagramPost
(text: string, hashtags: string[])
oceanhazard-detection/app/api/social/extract-instagram/route.ts:19
↓ 1 callersFunctionclassifyRedditPost
(title: string, selftext: string, subreddit: string)
oceanhazard-detection/app/api/social/extract-reddit/route.ts:19
↓ 1 callersFunctioncreate_data_directories
Create necessary data directories
oceanhazard-detection/setup_python.py:63
↓ 1 callersFunctiondismiss
()
oceanhazard-detection/components/ui/use-toast.ts:150
↓ 1 callersFunctiondismiss
()
oceanhazard-detection/hooks/use-toast.ts:150
↓ 1 callersFunctiondownload_nltk_data
Download required NLTK data
oceanhazard-detection/setup_python.py:49
↓ 1 callersMethodextract_location_mentions
Extract potential location mentions from text
oceanhazard-detection/lib/processors/classifier.py:108
↓ 1 callersFunctionfetchHazardData
()
oceanhazard-detection/components/real-map.tsx:73
↓ 1 callersFunctionfetchInstagramData
(query: string, maxResults = 15)
oceanhazard-detection/app/api/social/extract-instagram/route.ts:50
↓ 1 callersFunctionfetchLiveData
()
oceanhazard-detection/components/enhanced-live-map.tsx:86
↓ 1 callersFunctionfetchRedditData
(query: string, maxResults = 10)
oceanhazard-detection/app/api/social/extract-reddit/route.ts:65
↓ 1 callersFunctionfetchTwitterData
(query: string, maxResults = 20)
oceanhazard-detection/app/api/social/extract-twitter/route.ts:103
↓ 1 callersFunctionfetch_and_geocode
(query, max_results=10)
oceanhazard-detection/lib/social-extractors/fetch-and-geocode.py:20
↓ 1 callersFunctionfetch_recent_tweets
(query, max_results=20)
oceanhazard-detection/lib/social-extractors/fetch-tweets.py:17
↓ 1 callersFunctiongenId
()
oceanhazard-detection/components/ui/use-toast.ts:27
↓ 1 callersFunctiongenId
()
oceanhazard-detection/hooks/use-toast.ts:27
↓ 1 callersFunctiongenerateAlertMessage
(hazardData: any)
oceanhazard-detection/app/api/alerts/generate/route.ts:50
↓ 1 callersFunctiongenerateAlertTitle
(type: string, severity: string)
oceanhazard-detection/app/api/alerts/generate/route.ts:40
↓ 1 callersFunctiongenerateDailyTrends
()
oceanhazard-detection/app/api/analytics/reports/route.ts:189
↓ 1 callersFunctiongenerateEnhancedAnalytics
(filters: any)
oceanhazard-detection/app/api/analytics/reports/route.ts:42
↓ 1 callersFunctiongenerateHeatmapData
()
oceanhazard-detection/components/heatmap-chart.tsx:49
↓ 1 callersFunctiongenerateHourlyTrends
()
oceanhazard-detection/app/api/analytics/reports/route.ts:216
↓ 1 callersFunctiongenerateMonthlyTrends
()
oceanhazard-detection/app/api/analytics/reports/route.ts:208
↓ 1 callersFunctiongenerateWeeklyTrends
()
oceanhazard-detection/app/api/analytics/reports/route.ts:200
↓ 1 callersMethodgenerate_analytics
Generate comprehensive analytics data
oceanhazard-detection/lib/processors/analytics_generator.py:19
↓ 1 callersMethodgenerate_summary_stats
Generate summary statistics for processed posts
oceanhazard-detection/lib/processors/data_processor.py:123
↓ 1 callersFunctiongeocode_place
(place)
oceanhazard-detection/lib/geocode-place.py:10
↓ 1 callersFunctiongetAlgorithmIcon
(algorithm: NeuralNetworkValidation["algorithm"])
oceanhazard-detection/components/neural-network-validator.tsx:83
↓ 1 callersFunctiongetCredibilityColor
(score: number)
oceanhazard-detection/components/social-media-integration.tsx:61
↓ 1 callersFunctiongetHazardColor
(hazardType: string)
oceanhazard-detection/components/social-media-extraction.tsx:256
↓ 1 callersFunctiongetHazardStats
(posts: any[])
oceanhazard-detection/app/api/social/live-data/route.ts:184
↓ 1 callersFunctiongetIntensityColor
(incidents: number)
oceanhazard-detection/components/heatmap-chart.tsx:37
↓ 1 callersFunctiongetPlatformIcon
(platform: string)
oceanhazard-detection/components/social-media-integration.tsx:46
↓ 1 callersFunctiongetPlatformStats
(posts: any[])
oceanhazard-detection/app/api/social/live-data/route.ts:177
↓ 1 callersFunctiongetRiskColor
(riskLevel: string)
oceanhazard-detection/components/neural-network-validator.tsx:98
↓ 1 callersFunctiongetUrgencyStats
(posts: any[])
oceanhazard-detection/app/api/social/live-data/route.ts:191
↓ 1 callersFunctiongetValidationFactors
(algorithm: NeuralNetworkValidation["algorithm"])
oceanhazard-detection/components/neural-network-validator.tsx:52
↓ 1 callersMethodget_high_priority_posts
Get high priority posts (high urgency + high confidence)
oceanhazard-detection/lib/processors/data_processor.py:114
↓ 1 callersFunctioninitMap
()
oceanhazard-detection/components/real-map.tsx:160
↓ 1 callersFunctioninstall_requirements
Install Python requirements
oceanhazard-detection/setup_python.py:34
↓ 1 callersFunctioninstall_spacy_model
Install spaCy English model
oceanhazard-detection/setup_python.py:44
↓ 1 callersFunctionload_mock_posts
(file="data/mock_social.jsonl")
oceanhazard-detection/lib/geocode-place.py:27
↓ 1 callersFunctionmain
Main test function
oceanhazard-detection/test_python_pipeline.py:232
↓ 1 callersFunctionmain
Main setup function
oceanhazard-detection/setup_python.py:103
next →1–100 of 461, ranked by callers