Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Klimabevaegelsen/landbruget.dk
/ functions
Functions
6,215 in github.com/Klimabevaegelsen/landbruget.dk
⨍
Functions
6,215
◇
Types & classes
1,072
↳
Endpoints
183
↓ 3 callers
Function
fetch
(session, url)
backend/pipelines/dma_scraper/bronze/fetch_company_detail.py:21
↓ 3 callers
Method
fetch_data
Fetch INSPIRE BBR data and enrich with GraphQL API. Strategy: 1. Download and process INSPIRE BBR GPKG 2. Extract bu
backend/pipelines/bbr_buildings/bronze/inspire_bbr_fetcher.py:53
↓ 3 callers
Function
fetch_raw_soap_response
Mock implementation of fetch_raw_soap_response. Executes a SOAP operation and returns the raw response.
backend/pipelines/chr_pipeline/tests/bronze/test_load_besaetning.py:167
↓ 3 callers
Function
formatBurden
(belastning: number)
frontend/src/components/pesticidkort/field-utils.ts:80
↓ 3 callers
Function
formatCacheAge
(timestamp: number)
frontend/src/lib/__tests__/cache-utils.test.ts:155
↓ 3 callers
Function
formatCacheAge
(timestamp: number)
frontend/tests/unit/lib/cache-utils.test.ts:155
↓ 3 callers
Function
formatPercentage
(value: number | undefined)
frontend-pesticide/src/components/map/MapTooltip.tsx:104
↓ 3 callers
Function
formatWgs84Coordinates
(lat: number, lng: number)
frontend/src/components/field-analysis/coordinateUtils.ts:84
↓ 3 callers
Method
from_api_response
Create a DriveFile from a Google Drive API response. Args: file_data: Google Drive API response for a file parent_pat
backend/pipelines/drive_data_pipeline/bronze/drive/models.py:23
↓ 3 callers
Function
generate_deterministic_track_id
Mock generate_deterministic_track_id function.
backend/pipelines/chr_pipeline/tests/bronze/test_load_vetstat.py:267
↓ 3 callers
Method
generate_field_analysis_pmtiles
Generate field analysis PMTiles for a specific year. Args: year: Target year Returns: Path to generated PMTi
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pmtiles_generator/field_analysis_generator.py:41
↓ 3 callers
Method
generate_pmtiles_for_year
Generate PMTiles for a specific year and resolution.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/pmtiles_generator.py:31
↓ 3 callers
Function
generate_timestamp
Generate a timestamp string in the format YYYYMMDD_HHMMSS. Returns: Timestamp string
backend/pipelines/drive_data_pipeline/utils/helpers.py:9
↓ 3 callers
Method
geocode_addresses_batch
Geocode multiple addresses by ID. Args: address_ids: List of DAWA address IDs max_concurrent: Maximum number
backend/pipelines/unified_pipeline/src/unified_pipeline/util/dawa_api_client.py:135
↓ 3 callers
Function
getColorScheme
( mode: VisualizationMode )
frontend/src/components/field-analysis/colorUtils.ts:189
↓ 3 callers
Method
getDataAvailability
()
frontend-pesticide/src/services/pmtiles-discovery.ts:58
↓ 3 callers
Function
getDecileBreakpoints
( mode: VisualizationMode, unit: ColorUnit )
frontend/src/components/field-analysis/colorUtils.ts:204
↓ 3 callers
Function
getMapStyle
(theme: 'light' | 'dark')
frontend/src/hooks/__tests__/useMapTheme.test.ts:86
↓ 3 callers
Method
getMaxPointsForZoom
* Get maximum points allowed for zoom level and layer type
frontend-pesticide/src/lib/data-virtualization.ts:278
↓ 3 callers
Function
getMillisecondsUntilNextTuesday
()
frontend/src/lib/cache-utils.ts:10
↓ 3 callers
Method
getOptionalPMTilesUrl
* Get a PMTiles URL for an optional layer and return null when the file is * missing so map consumers can skip the source entirely.
frontend/src/lib/pmtiles-cache-service.ts:80
↓ 3 callers
Function
getPayloadConfigFromPayload
( config: ChartConfig, payload: unknown, key: string )
frontend/src/components/chart/chart-container.tsx:360
↓ 3 callers
Function
getPesticideRiskLevel
(belastning: number)
frontend/src/app/markanalyse/components/shared/field-details/pesticide-risk-level.ts:3
↓ 3 callers
Function
getSortIcon
(column: 'belastning' | 'applications' | 'area')
frontend/src/components/pesticide-analysis/CompanyListView.tsx:59
↓ 3 callers
Function
get_A_over_A_under_for_crop
Get A_over and A_under for a crop using actual formulas. Args: crop_code: FVM crop code yield_kg_ts_ha: Harvested yield in k
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/formulas/marker/kulstofbalance.py:21
↓ 3 callers
Function
get_async_mock_session
Create a mock aiohttp session.
backend/pipelines/unified_pipeline/src/tests/bronze/test_bnbo_status_bronze.py:27
↓ 3 callers
Function
get_async_mock_session
Create a mock aiohttp session.
backend/pipelines/unified_pipeline/src/tests/bronze/test_wetlands_bronze.py:55
↓ 3 callers
Function
get_date_columns
Find date-related columns dynamically with improved logic for animal welfare data.
backend/pipelines/chr_pipeline/gold/veterinary_timeline.py:345
↓ 3 callers
Function
get_expected_rate
Get the expected payment rate for a scheme. Args: ordning_kode: Standardized scheme code use_derived: If True, use data-deri
backend/pipelines/unified_pipeline/src/unified_pipeline/util/subsidy_scheme_classifier.py:185
↓ 3 callers
Method
get_file_size
Mock get file size.
backend/common/tests/test_storage_core.py:67
↓ 3 callers
Function
get_incremental_processor
Get a configured incremental processor instance.
backend/pipelines/unified_pipeline/src/unified_pipeline/core/incremental_processing.py:476
↓ 3 callers
Function
get_legacy_fvm_credentials
Get FVM credentials from environment variables (legacy simple auth).
backend/pipelines/chr_pipeline/bronze/auth.py:387
↓ 3 callers
Function
get_manifest_version
()
backend/pipelines/api_export/exporters/parity.py:15
↓ 3 callers
Method
get_memory_usage
Get current memory usage statistics. Returns: dict: Memory usage information including DuckDB and system memory
backend/pipelines/unified_pipeline/src/unified_pipeline/common/base.py:573
↓ 3 callers
Method
get_performance_stats
Get performance statistics including cache hit rates. Returns: Dictionary with performance metrics
backend/pipelines/unified_pipeline/src/unified_pipeline/util/cached_dawa_api_client.py:142
↓ 3 callers
Method
get_schema
Get the schema of a DuckDB table.
backend/pipelines/drive_data_pipeline/standalone_tests/direct_test_duckdb.py:88
↓ 3 callers
Function
get_settings
Get application settings.
backend/pipelines/drive_data_pipeline/config/settings.py:95
↓ 3 callers
Function
get_sources_by_frequency
Get all pipeline sources that should run at the specified frequency. Args: frequency: The schedule frequency to filter by Retur
backend/pipelines/unified_pipeline/src/unified_pipeline/model/scheduling.py:197
↓ 3 callers
Function
get_storage_manager
Get a storage manager instance. Args: storage_type: Type of storage ('r2' or 'local') bucket_name: R2 bucket name (required for R
backend/pipelines/drive_data_pipeline/utils/storage.py:404
↓ 3 callers
Method
get_table_info
Fetch table metadata from the API
backend/pipelines/unified_pipeline/src/unified_pipeline/bronze/dst.py:79
↓ 3 callers
Function
get_vetstat_credentials
Mock get_vetstat_credentials function.
backend/pipelines/chr_pipeline/tests/bronze/test_load_vetstat.py:172
↓ 3 callers
Function
handleSort
(newSortBy: 'belastning' | 'applications' | 'area')
frontend/src/components/pesticide-analysis/CompanyListView.tsx:49
↓ 3 callers
Function
import_context_data
Import pipeline context data from a previous job.
backend/pipelines/chr_pipeline/bronze/export.py:700
↓ 3 callers
Function
is_high_volume_herd
Check if a herd is in the high-volume herds list.
backend/pipelines/chr_pipeline/bronze/volume_management.py:155
↓ 3 callers
Function
iter_index_pages
Yield every record from the WP REST `kontrol` index, across all pages.
backend/pipelines/dyrenesdetektiv_scraper/bronze/fetch.py:37
↓ 3 callers
Function
latitudeDeltaForMeters
(meters: number)
frontend/src/components/pesticidkort/map-utils.ts:73
↓ 3 callers
Method
list_files
(self, pattern: str)
backend/pipelines/chr_pipeline/tests/gold/test_production_sites.py:24
↓ 3 callers
Method
list_files
Mock list files.
backend/common/tests/test_storage_core.py:71
↓ 3 callers
Method
load_and_integrate_field_data
Load and integrate all field-related data for a given year. Args: year: Target year Returns: DuckDB table na
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pmtiles_generator/data_loader.py:34
↓ 3 callers
Function
load_animal_movements
Fetches animal movement data for a given herd using besListAktOms. Args: chr_dyr_client: The CHR_dyr SOAP client username: U
backend/pipelines/chr_pipeline/bronze/animal_movements.py:20
↓ 3 callers
Method
load_fields
Load field data from FVM silver layer for a specific CVR and year. This queries the agricultural field data including: - Fie
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/carbon_emissions/data_loader.py:141
↓ 3 callers
Function
load_transportation_data_sources
Load all transportation data sources dynamically using cloud storage patterns. Uses unified pipeline pattern: shared DuckDB connection with S
backend/pipelines/chr_pipeline/gold/transportation_analysis.py:89
↓ 3 callers
Function
location_from
(headers: dict[str, str], body: Any)
backend/pipelines/api_export/publish_dataset.py:744
↓ 3 callers
Method
log_error
Log error message if logger available.
backend/common/duckdb_processor.py:231
↓ 3 callers
Method
log_geometry_statistics
Log detailed geometry statistics for a DuckDB table. This method analyzes geometry properties including dimensions, area, ve
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/wetlands.py:132
↓ 3 callers
Function
longitudeDeltaForMeters
(lat: number, meters: number)
frontend/src/components/pesticidkort/map-utils.ts:77
↓ 3 callers
Function
migrate_save_data_pattern
Migrate the common _save_data pattern to StorageAccess. This replaces the pattern: ```python # OLD with tempfile.NamedTemporaryF
backend/pipelines/unified_pipeline/src/unified_pipeline/util/migration_helpers.py:192
↓ 3 callers
Function
mockApiResponse
( page: Page, urlPattern: string | RegExp, responseData: unknown, statusCode: number = 200 )
frontend/tests/utils/test-helpers.ts:434
↓ 3 callers
Function
mock_open
(*args, **kwargs)
backend/pipelines/unified_pipeline/src/tests/util/test_storage_access.py:318
↓ 3 callers
Function
polygon
(x: float, y: float)
backend/pipelines/unified_pipeline/src/tests/silver/test_skovrejsning_silver.py:20
↓ 3 callers
Method
r2_glob
Resolve an R2 glob to sorted r2:// URIs.
backend/pipelines/api_export/exporters/base.py:92
↓ 3 callers
Method
r2_uri
Build an R2 URI for the configured bucket.
backend/pipelines/api_export/exporters/base.py:81
↓ 3 callers
Method
raw
Build a path without a medallion layer prefix.
backend/common/storage_interface.py:61
↓ 3 callers
Method
read_json
(self, src_path: str)
backend/common/tests/test_storage_interface.py:167
↓ 3 callers
Method
read_parquet
Load parquet file(s) from R2 prefix into a DuckDB table. Returns row count.
backend/scripts/validate_disaggregation_robustness.py:154
↓ 3 callers
Function
require_token
(name: str, token: str | None)
backend/pipelines/api_export/publish_dataset.py:734
↓ 3 callers
Method
run
Run silver processing for DMI monthly data. Args: bronze_data: Optional data from bronze stage. If None,
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/dmi.py:319
↓ 3 callers
Function
run_multi_year_kommune_analysis
Run multi-year kommune-level PFAS analysis from cloud storage data.
backend/pipelines/h3_pfas_exposure_pipeline/src/h3_pfas_exposure/gold/analysis_functions.py:1824
↓ 3 callers
Method
save_metadata
Save metadata about the downloaded file.
backend/pipelines/bmd_scraper/bronze/export.py:199
↓ 3 callers
Method
save_metadata
Save metadata alongside data file
backend/common/pipeline_metadata.py:147
↓ 3 callers
Method
save_schema_to_storage
Save schema information to storage in JSON format.
backend/pipelines/unified_pipeline/src/unified_pipeline/common/native_schema_manager.py:175
↓ 3 callers
Method
save_table_to_parquet
Save table to parquet file (legacy method).
backend/pipelines/drive_data_pipeline/silver/duckdb_base.py:141
↓ 3 callers
Method
select_primary_address
Select the primary address from a list of addresses. Args: addresses: List of address dictionaries Returns:
backend/pipelines/unified_pipeline/src/unified_pipeline/util/enhanced_address_selection.py:63
↓ 3 callers
Method
set_source_crs
Set the source CRS of the data being processed. Bronze layer implementations should call this when they determine the CRS of
backend/pipelines/unified_pipeline/src/unified_pipeline/common/base.py:124
↓ 3 callers
Function
setup_logging
Set up logging configuration. Args: log_level: Logging level (DEBUG, INFO, WARNING, ERROR)
backend/pipelines/drive_data_pipeline/utils/logging.py:84
↓ 3 callers
Method
setup_rclone_config
Setup rclone configuration for Cloudflare R2. Returns: True if successful, False otherwise
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pmtiles_generator/uploader.py:27
↓ 3 callers
Method
sign
(self, data, padding, algorithm)
backend/pipelines/chr_pipeline/tests/test_fvst_wsse_signer.py:14
↓ 3 callers
Function
sql_transform_for_supabase
Generate SQL to transform geometry for final Supabase upload. This should be the ONLY place where data is transformed to WGS84. Use at t
backend/common/crs_utils.py:412
↓ 3 callers
Function
stream_temp_file
Stream contents of a temp file one item at a time.
backend/pipelines/svineflytning_pipeline/bronze/export.py:194
↓ 3 callers
Function
testUrl
(url, name)
frontend-pesticide/debug_pmtiles.js:13
↓ 3 callers
Function
transform_dma_json
Load JSON, sanitize nested arrays to remove empty keys, flatten nested arrays, and return as a Pandas DataFrame.
backend/pipelines/dma_scraper/silver/transformation.py:7
↓ 3 callers
Function
translateOriginType
(originType: string)
frontend/src/lib/translations/animal-transportation.ts:70
↓ 3 callers
Method
updateViewport
* Update viewport and recalculate bounds
frontend-pesticide/src/lib/data-virtualization.ts:46
↓ 3 callers
Method
upload_file
( self, method: str, url: str, path: Path, *, headers: dict[st
backend/pipelines/api_export/publish_dataset.py:255
↓ 3 callers
Function
upload_to_cloud
Upload file to storage using s3fs.
backend/pipelines/bbr_buildings/run_inspire_fetch.py:28
↓ 3 callers
Function
useAvailableYearOptions
()
frontend-pesticide/src/stores/map-store.ts:395
↓ 3 callers
Function
useDataState
()
frontend-pesticide/src/stores/map-store.ts:429
↓ 3 callers
Function
useSelectedYear
()
frontend-pesticide/src/stores/map-store.ts:390
↓ 3 callers
Function
useSheet
()
frontend/src/components/ui/sheet.tsx:15
↓ 3 callers
Function
validate_dependencies
Validate that all pipeline dependencies are properly configured. Returns: List of validation error messages (empty if all valid)
backend/pipelines/unified_pipeline/src/unified_pipeline/model/scheduling.py:319
↓ 3 callers
Method
validate_field_id_format
Validate that a field ID follows expected FVM field ID formats. FVM field IDs can be: - Simple numeric: "8", "23", "6", "2"
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/nles5_nitrogen_estimation/field_id_validator.py:51
↓ 2 callers
Method
Element
Create element.
backend/pipelines/chr_pipeline/tests/bronze/test_load_vetstat.py:76
↓ 2 callers
Method
__init__
Initialize the validator.
backend/pipelines/drive_data_pipeline/silver/validators/base.py:43
↓ 2 callers
Function
_add_inclusive_namespaces
(parent: etree._Element, prefixes: list[str])
backend/pipelines/chr_pipeline/bronze/auth.py:249
↓ 2 callers
Method
_animal_rankings
(self)
backend/pipelines/api_export/exporters/homepage.py:1139
↓ 2 callers
Method
_apply_schema_to_file
Apply schema to a processed file. Args: output_path: Path to the processed file metadata: File metadata s
backend/pipelines/drive_data_pipeline/silver/processor.py:770
↓ 2 callers
Function
_block_map
(profile: dict)
backend/pipelines/api_export/tests/test_company_profiles.py:14
↓ 2 callers
Function
_bootstrap_ci_pointbiserial
Bootstrap confidence interval for point-biserial correlation. Returns (ci_low, ci_high) at the (1-alpha) level. More appropriate than Fisher
backend/scripts/verify_pfas_groundwater_correlations.py:311
↓ 2 callers
Method
_build_clean_select_sql
Build the SELECT SQL for clean dataset transform. Args: group_filter: Optional GROUP value to filter on (e.g. 'pest').
backend/pipelines/unified_pipeline/src/unified_pipeline/silver/geus_dataverse_pesticides.py:395
↓ 2 callers
Method
_build_field_analysis_query
Build the SQL query for field analysis data export. Args: table_name: Name of the integrated data table year: Target
backend/pipelines/unified_pipeline/src/unified_pipeline/gold/pmtiles_generator/field_analysis_generator.py:277
← previous
next →
601–700 of 6,215, ranked by callers