MCPcopy Create free account

hub / github.com/RxChi1d/immich-geodata-zh-tw / functions

Functions676 in github.com/RxChi1d/immich-geodata-zh-tw

↓ 143 callersMethodget
(&self, key: &str)
src/pipeline/extract/types.rs:205
↓ 84 callersMethodlen
(&self)
src/wikidata/types.rs:147
↓ 78 callersMethodis_empty
(&self)
src/wikidata/types.rs:151
↓ 69 callersMethodinsert
(&mut self, name: String, translated: String)
src/pipeline/extract/wikidata_common.rs:167
↓ 32 callersMethodas_str
(self)
src/pipeline/mod.rs:52
↓ 19 callersFunctionattribute
(feature: &'a Feature, key: &str)
src/pipeline/extract/handlers.rs:221
↓ 19 callersMethodbatch_translate
( &mut self, dataset: &TranslationDataset, options: BatchTranslateOptions<'_>, )
src/wikidata/translator.rs:99
↓ 15 callersMethodtime
( &mut self, name: &'static str, operation: impl FnOnce() -> Result<T, String>, )
src/pipeline/extract.rs:103
↓ 14 callersFunctionformat_coordinate
(value: &str)
src/pipeline/table.rs:171
↓ 14 callersMethodparse
(code: &str)
src/pipeline/extract/types.rs:325
↓ 14 callersMethodtime
(&mut self, name: &'static str, action: F)
src/pipeline/translate.rs:208
↓ 14 callersFunctionwrite_naer_file
(dir: &std::path::Path, rows: &[&str])
tests/naer_lookup.rs:11
↓ 13 callersFunctioncopy_file
(source: &Path, destination: &Path)
src/pipeline/pack.rs:253
↓ 13 callersFunctionrun
(options: &RunOptions)
src/pipeline/pack.rs:20
↓ 13 callersFunctionrun_profiled_stage
( options: &ProductionOptions, stage: &str, operation: impl FnOnce() -> Result<T, String>, )
src/cli.rs:167
↓ 12 callersMethodcolumns
(self)
src/pipeline/polars_table.rs:21
↓ 12 callersFunctionload_fixtures
( fixtures_dir: &Path, fixture_name: Option<&str>, )
src/pipeline/fixtures.rs:43
↓ 11 callersFunctionrequired_value
(args: &[String], index: usize, flag: &str)
src/cli.rs:515
↓ 10 callersFunctionbuild_transform
(from_crs: &str, to_crs: &str)
src/pipeline/extract/geometry.rs:265
↓ 10 callersFunctionepsg_crs
(epsg: i32)
src/pipeline/extract/geometry.rs:352
↓ 10 callersFunctionrun_production
(options: &ProductionPackOptions)
src/pipeline/pack.rs:118
↓ 9 callersFunctionrun
(args: Vec<String>)
src/cli.rs:41
↓ 8 callersMethodas_str
(self)
src/wikidata/types.rs:20
↓ 8 callersFunctionclean_admin
(value: &str)
src/pipeline/extract/handlers.rs:265
↓ 8 callersMethodfinish
(&self)
src/observability.rs:77
↓ 8 callersFunctionindonesia_feature_rows
將印尼 feature 集合轉為 ExtractRow,並過濾未定義行政區的列。 admin1/admin2 的最終形態在此消費層統一施作,確保 live(Wikidata 即時查詢) 與 fixture(stub)兩條來源路徑得到一致輸出: - 安全字元級簡轉繁(白名單;修正 Wikidata
src/pipeline/extract/indonesia.rs:22
↓ 8 callersMethodlookup_city
( &self, name: &str, ascii_name: &str, latitude: f64, longitude: f64,
src/pipeline/naer_lookup.rs:227
↓ 8 callersMethodrecord
依距離(公里)歸入對應桶。
src/pipeline/naer_stats.rs:25
↓ 8 callersMethodset_translation
( &mut self, item: &TranslationItem, result: &TranslationResult, parent_qid: O
src/wikidata/cache.rs:114
↓ 8 callersMethodsupports_stage
(&self, stage: &str)
src/pipeline/fixtures.rs:22
↓ 8 callersFunctionthailand_options
()
src/wikidata/translator_tests.rs:550
↓ 8 callersFunctionwrite_file
共用:寫檔輔助與最小 cities500 列建構。
tests/naer_translate.rs:99
↓ 7 callersFunctionattribute
(feature: &'a Feature, key: &str)
src/pipeline/extract/thailand_wikidata.rs:253
↓ 7 callersFunctionconverter_for
(values: impl IntoIterator<Item = &'static str>)
src/pipeline/translate.rs:1273
↓ 7 callersFunctiondataframe_to_rows
(df: &DataFrame, columns: &[&str])
src/pipeline/polars_table.rs:363
↓ 7 callersMethodget_text
(&self, url: &str)
src/http.rs:118
↓ 7 callersFunctionobject_at
(root: &Value, path: &[&str])
src/wikidata/cache.rs:298
↓ 7 callersFunctionread_cities_rows
(path: &Path, delimiter: u8)
src/pipeline/polars_table.rs:60
↓ 7 callersFunctionrun_production_with_downloader
( options: &ProductionPrepareOptions, downloader: &F, )
src/pipeline/prepare_download.rs:16
↓ 7 callersMethods2t
(&self, text: &str)
src/pipeline/translate.rs:560
↓ 7 callersFunctionstub_translations
()
src/pipeline/extract/indonesia.rs:117
↓ 7 callersFunctionwikidata_result
(translated: &str, source: &str, used_lang: &str)
src/wikidata/translator.rs:441
↓ 7 callersFunctionwrite_temp_table
(file_name: &str, content: &str)
tests/polars_table.rs:229
↓ 6 callersFunctionassert_polars_matches_table
( relative_path: &str, delimiter: u8, has_header: bool, columns: &[&str], )
tests/polars_table.rs:192
↓ 6 callersFunctionattribute
(feature: &'a Feature, key: &str)
src/pipeline/extract/indonesia.rs:92
↓ 6 callersMethoddownload
(&self, url: &str, path: &Path)
src/pipeline/prepare_download.rs:392
↓ 6 callersMethoditems
(&self)
src/wikidata/types.rs:155
↓ 6 callersFunctionjson_string
(body: &str, key: &str)
src/pipeline/locationiq.rs:447
↓ 6 callersFunctionnormalize_text
(value: &str)
src/wikidata/types.rs:265
↓ 6 callersMethodon_rate_limited
收到 429 時倍增節流(至少 1 秒,最多 ADAPTIVE_THROTTLE_MAX)。
src/http.rs:63
↓ 6 callersFunctionread_delimited
( path: &Path, delimiter: char, has_header: bool, )
src/pipeline/table.rs:37
↓ 6 callersMethodset
(&mut self, key: &str, value: String)
src/pipeline/extract/types.rs:140
↓ 6 callersFunctionstring_column
(df: &'a DataFrame, name: &str)
src/pipeline/translate.rs:657
↓ 6 callersMethodtime
(&mut self, name: &'static str, action: F)
src/pipeline/pack.rs:202
↓ 6 callersFunctionwrite_delimited
( path: &Path, delimiter: char, header: Option<&[&str]>, rows: &[Vec<String>], )
src/pipeline/table.rs:58
↓ 5 callersFunctionadmin1_mapping
(records: &[GeodataRecord], country_code: &str)
src/pipeline/geodata.rs:53
↓ 5 callersFunctiondedupe_keep_order
(values: impl IntoIterator<Item = String>)
src/wikidata/translator.rs:430
↓ 5 callersFunctiondistance_km
equirectangular 距離近似(公里)。容差層級(15 km / 300 km)不需 haversine 精度。
src/pipeline/naer_lookup.rs:43
↓ 5 callersMethodflush_if_needed
( &mut self, force: bool, max_dirty: usize, max_interval: Duration, )
src/wikidata/cache.rs:191
↓ 5 callersMethodmark_dirty
(&mut self)
src/wikidata/cache.rs:279
↓ 5 callersMethodon_success
成功後回傳本次應等待的節流時間,並在連續成功後逐步回落。
src/http.rs:52
↓ 5 callersFunctionparse_production_options
(args: &[String])
src/cli.rs:386
↓ 5 callersFunctionproduction_options
(temp: &TestDir)
src/pipeline/prepare_download.rs:233
↓ 5 callersFunctionread_fixed_dataframe
( path: &Path, delimiter: u8, has_header: bool, fixed_schema: FixedSchema, )
src/pipeline/polars_table.rs:140
↓ 5 callersFunctionsplit_multipolygon_parts
將 MultiPolygon feature 拆成每個 part 各一筆(單一 Polygon)feature。 拆分後每個 part 會在後續 centroid 階段各自取中心點、各輸出一列,符合 「multipart polygon 每個部分各出一列」的預期行為。Point / Polygon
src/pipeline/extract/geometry.rs:21
↓ 5 callersFunctiontransform_geometry
( geometry: &FeatureGeometry, transform: &Proj, )
src/pipeline/extract/geometry.rs:270
↓ 4 callersMethodall
()
src/pipeline/mod.rs:38
↓ 4 callersMethodapply_name
(&mut self, name: String)
src/pipeline/translate.rs:750
↓ 4 callersFunctionbuild_item_id
(level: AdminLevel, parent_chain: &[String], name: &str)
src/pipeline/extract/indonesia_wikidata.rs:285
↓ 4 callersMethodcode
(self)
src/pipeline/extract/types.rs:336
↓ 4 callersMethodcountry_code
(&self)
src/pipeline/translate.rs:738
↓ 4 callersFunctioncountry_profile
(country_code: &str)
src/pipeline/transform_cities_schema.rs:184
↓ 4 callersFunctionfeature
(geometry: FeatureGeometry)
src/pipeline/extract/geometry.rs:365
↓ 4 callersFunctiongeometry_centroid
(geometry: &FeatureGeometry)
src/pipeline/extract/geometry.rs:309
↓ 4 callersFunctionis_simplified_chinese
(text: &str, converter: &OpenCcConverter)
src/pipeline/translate.rs:1056
↓ 4 callersFunctionis_valid_chinese_translation
判斷譯名是否為「有效的中文翻譯」。 有效條件:含 CJK 漢字、且不夾雜 ASCII 字母。 Reason: 期望純中文輸出的國家(KR/ID),任何非中文形態都應回退原文: 1. 純拉丁字串(ID 真實案例「East Barito」)——英文 label 或 stale cache 殘留的舊回
src/pipeline/extract/label_sanitize.rs:47
↓ 4 callersMethodname
(&self)
src/pipeline/translate.rs:718
↓ 4 callersFunctionnormalize_admin_fields
(records: &mut [GeodataRecord])
src/pipeline/geodata.rs:35
↓ 4 callersFunctionparse_naer_coordinate
解析 NAER 經緯坐標欄位(含 HTML entities、標籤、引號變體等髒格式)。 回傳 (latitude, longitude);不可解析回 None。
src/pipeline/naer_prepare.rs:25
↓ 4 callersFunctionpoint_geometry
(geometry: &FeatureGeometry)
src/pipeline/extract/handlers.rs:214
↓ 4 callersFunctionread_geodata
(path: &Path)
src/pipeline/geodata.rs:14
↓ 4 callersFunctionreplace_country_admin1
( country: &str, input: &Path, rows: &mut Vec<Vec<String>>, max_id: &mut i64, )
src/pipeline/admin1_load.rs:112
↓ 4 callersFunctionsave_metadata_rows
(path: &Path, rows: &[Vec<String>])
src/pipeline/locationiq.rs:342
↓ 4 callersFunctiontranslate_cities
( rows: &mut [Vec<String>], metadata: &HashMap<(String, String, String), String>, alternate_names:
src/pipeline/translate.rs:964
↓ 4 callersFunctiontranslations_with_admin2
(parent: &str, key: &str, value: &str)
src/pipeline/extract/handlers.rs:447
↓ 4 callersFunctionwrite_fixed_rows
( path: &Path, delimiter: u8, include_header: bool, fixed_schema: FixedSchema, rows: &[Vec
src/pipeline/polars_table.rs:195
↓ 3 callersFunctionassert_temp_polars_matches_table
( path: &Path, delimiter: u8, has_header: bool, columns: &[&str], )
tests/polars_table.rs:201
↓ 3 callersFunctionassert_wikidata_stub_exists
確認 Wikidata 國家的 fixture stub 存在。 Reason: load_context 的離線保證僅靠 stub 檔案存在——stub 缺失時會 靜默改打真實 Wikidata API,把離線測試變成不穩定的網路測試。 在這裡前置斷言,讓缺檔成為明確的測試失敗而非隱性網路依賴。
tests/geospatial_extract.rs:15
↓ 3 callersFunctionattribute
(feature: &'a Feature, key: &str)
src/pipeline/extract/indonesia_wikidata.rs:383
↓ 3 callersFunctionbuild_admin1_centroids
以「未翻譯」的 cities500 列計算各 admin1 的城市質心。 key 為 `CC.ADMIN1`,與 admin1CodesASCII row[0] 對齊。 必須在 translate_cities_rows 消費 cities_rows 之前呼叫。
src/pipeline/naer_lookup.rs:370
↓ 3 callersFunctionbuild_city_rows_from_geodata
( input: &Path, country_code: &str, base_geoname_id: i64, modification_date: &str, coordin
src/pipeline/transform_cities_schema.rs:71
↓ 3 callersFunctionbuild_locationiq_url
(latitude: &str, longitude: &str, api_key: &str)
src/pipeline/locationiq.rs:88
↓ 3 callersFunctiondeduplicate_by_coordinate
(rows: Vec<Vec<String>>)
src/pipeline/polars_cities.rs:24
↓ 3 callersFunctiondownload_plain_if_missing
(url: &str, output_path: &Path, downloader: &F)
src/pipeline/prepare_download.rs:86
↓ 3 callersFunctiondownload_zip_member_if_missing
( url: &str, zip_path: &Path, required_file: &Path, downloader: &F, )
src/pipeline/prepare_download.rs:97
↓ 3 callersFunctionextend_han_values
(values: &mut Vec<String>, candidates: impl IntoIterator<Item = String>)
src/pipeline/translate.rs:639
↓ 3 callersFunctionfix_simplified_chars
套用安全字元級簡轉繁。 Reason: 逐字以 `SIMPLIFIED_TO_TRADITIONAL` 白名單替換,未在表中的字一律 原樣保留(含已正確的繁體字),確保對已正確的繁體專名為冪等、零回歸。
src/pipeline/extract/indonesia_normalize.rs:18
↓ 3 callersMethodinto_unambiguous
(self)
src/pipeline/extract/wikidata_common.rs:178
↓ 3 callersFunctionis_chinese_name
(text: &str)
src/pipeline/translate.rs:1064
↓ 3 callersFunctionjson_string_array
(content: &str, key: &str)
src/pipeline/fixtures.rs:135
next →1–100 of 676, ranked by callers