instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
vacanza__holidays__3230
vacanza/holidays
3,230
defect
63ef362c37c3da9e1e101d01624a661b9ac04f85
2f9090c2cfbe1e3f01f157e07ace1ec4ec61300a
Update United States holidays: add American Citizenship Day in Puerto Rico (PR)
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> This PR adds the American Citizenship Day in Puerto Rico every March 2nd, established by [Law No. 53 of Mar 4, 2000](https://w...
diff --git a/holidays/countries/united_states.py b/holidays/countries/united_states.py index cda146ddb5..d66ea79e16 100644 --- a/holidays/countries/united_states.py +++ b/holidays/countries/united_states.py @@ -140,6 +140,7 @@ class UnitedStates( * [Law No. 121 of Dec 24, 1991](https://web.archive.org/web/...
13
12
6
[{"id": "G0", "claim": "The holiday is implemented on March 3rd (_add_holiday_mar_3) while the PR description and Law No. 53 of Mar 4, 2000 say March 2nd; use _add_holiday_mar_2 instead.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The tests asser...
null
vacanza__holidays__3262
vacanza/holidays
3,262
defect
e863211dbc032d16388b80aedad2ec6aabfce909
b988824a8ed31f2ef9d430826eaa2799466e83e9
Refactor United Kingdom holidays
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Refactor United Kingdom holidays: - separate shared holidays of England, Wales, and Northern Ireland (also applicable to the ...
diff --git a/holidays/countries/isle_of_man.py b/holidays/countries/isle_of_man.py index e409e09d79..42c591eb3e 100644 --- a/holidays/countries/isle_of_man.py +++ b/holidays/countries/isle_of_man.py @@ -29,7 +29,7 @@ class IsleOfMan(UnitedKingdom): subdivisions = () # Override UnitedKingdom subdivisions. sub...
5
4
0
[{"id": "G0", "claim": "Consolidate the Whit Monday and Late Summer Bank Holiday branches in `_populate_common` into a single if-else, as suggested.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Inline the `ny_obs_dts` tuple into its single `as...
null
vacanza__holidays__3270
vacanza/holidays
3,270
defect
df9bc562d4e1b41e89fbd1cbd2397a1b767fae66
7d36b3edcf94d764c2d9e3f661f3725e7a80b9ee
Add Japan Exchange Group (JPX) holidays
<!-- Thanks for contributing to holidays! --> ## Proposed change This PR adds support for the Japan Exchange under financial markets by introducing a new file `japan_exchange.py`. The implementation follows the existing financial market structure and conventions used across the project. The file defines th...
diff --git a/README.md b/README.md index f7af99827d..0e37b326a5 100644 --- a/README.md +++ b/README.md @@ -1939,6 +1939,13 @@ code when available. The following financial markets are available: <td></td> </tr> <tr> +<td>Japan Exchange</td> +<td>JPX</td> +<td>Japan Exchange Group (JPX) market holidays</td> +<td>en_US...
30
28
10
[{"id": "G0", "claim": "The ISO 10383 code is XJPX, so it should be used as the market's primary code instead of \"JPX\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The module should include source references.", "category": "documentation", "ver...
null
vacanza__holidays__3272
vacanza/holidays
3,272
defect
c9246476fc19c53e8ad38146d29d60048e15e755
c88d9caaf2cd1055f8585b1ebcdc5af5306aa3ae
Update United Kingdom holidays: add Jun 15, 2026 holiday in Scotland
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Update United Kingdom holidays: add Jun 15, 2026 holiday in Scotland (to mark Scotland’s participation in the men's football W...
diff --git a/holidays/countries/united_kingdom.py b/holidays/countries/united_kingdom.py index 73ac67f21a..3f9fc29492 100644 --- a/holidays/countries/united_kingdom.py +++ b/holidays/countries/united_kingdom.py @@ -184,6 +184,12 @@ class GBR(UnitedKingdom): class UnitedKingdomStaticHolidays: + """United Kingdom...
1
1
0
[{"id": "G0", "claim": "The Thai translation of \"Scotland's participation in the FIFA World Cup final\" implies Scotland already reached the first or second place, and should be replaced with the suggested wording celebrating Scotland reaching the last 16 of the World Cup.", "category": "correctness", "verdict": "supp...
null
vacanza__holidays__3273
vacanza/holidays
3,273
defect
c9246476fc19c53e8ad38146d29d60048e15e755
e68d72fe3aa78d3d20d0d80256516a9f8e13d3cc
Update Australia holidays: add extra ANZAC Day holiday in NSW
## Proposed change Add an additional holiday for ANZAC Day in the NSW subdivision of Australia for the next two years only. The NSW government have [announced](https://www.abc.net.au/news/2026-02-15/nsw-minns-government-anzac-day-extra-public-holiday/106346332) that > Mr Minns announced on Sunday the government w...
diff --git a/holidays/countries/australia.py b/holidays/countries/australia.py index c37ff7c326..a94d6d788a 100644 --- a/holidays/countries/australia.py +++ b/holidays/countries/australia.py @@ -313,12 +313,15 @@ def _populate_subdiv_nsw_public_holidays(self): # ANZAC Day. # 1912-2010: SUN - add MON. ...
3
3
1
[{"id": "G0", "claim": "The new NSW 2027 path (Apr 25 falls on a Sunday, still triggering SAT_SUN_TO_NEXT_MON) is untested, so a 2027 assertion for NSW should be added to the test.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should inline f\...
null
vacanza__holidays__3337
vacanza/holidays
3,337
defect
550106cac834c8f72448b88493e014807c3c95d6
9113bcd34769ce746f0ef2c41f9ef8f9295d401d
Update Marshall Islands holidays: fix General Election Day
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> I've re-strumbled on my own unfinished branch for Marshall Islands from last year and added some post-1998 changes that wasn't...
diff --git a/holidays/countries/marshall_islands.py b/holidays/countries/marshall_islands.py index 1a2cb60401..0077af46f7 100644 --- a/holidays/countries/marshall_islands.py +++ b/holidays/countries/marshall_islands.py @@ -19,10 +19,14 @@ class MarshallIslands(ObservedHolidayBase, ChristianHolidays, InternationalHolid ...
3
2
0
[{"id": "G0", "claim": "The non-authoritative pomoculture.org article reference should be removed from the core holiday sources since the legal/public-law links already establish the rule history.", "category": "documentation", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The c...
null
vacanza__holidays__3338
vacanza/holidays
3,338
defect
550106cac834c8f72448b88493e014807c3c95d6
5f44e52553bbfdf06b72d6f150afa150a1e16310
Update United States holidays: update Massachusetts (MA) state holidays
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Update United States holidays: update Massachusetts (MA) state holidays. Resolves #3336. ## Type of change <!-- Type...
diff --git a/holidays/countries/united_states.py b/holidays/countries/united_states.py index cda146ddb5..5f993ff9fa 100644 --- a/holidays/countries/united_states.py +++ b/holidays/countries/united_states.py @@ -122,6 +122,9 @@ class UnitedStates( * [Alaska Statutes, Sec. 44.12.010](https://web.archive.org/...
3
1
0
[{"id": "G0", "claim": "The MA-only assertions don't depend on the loop variables, so move them outside the loop to avoid running them twice per test method.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The US_MA.json snapshot still contains u...
null
vacanza__holidays__3385
vacanza/holidays
3,385
defect
27f49563257903dbc43646707a9ea6f6a8cbf3fa
8ad711aba52fb96e7b19c220f149f8db93284338
Update Nigeria holidays: add Eid al-Fitr 2026 exact date
## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Added Eid al-Fitr date for Nigeria for 2026. - Date confirmed as March 19, 2026 - Added corresponding test to ensure test coverage Sources: - https://nigeriahcottawa...
diff --git a/holidays/countries/nigeria.py b/holidays/countries/nigeria.py index c4962eca51..97cc653892 100644 --- a/holidays/countries/nigeria.py +++ b/holidays/countries/nigeria.py @@ -202,6 +202,7 @@ class NigeriaIslamicHolidays(_CustomIslamicHolidays): 2023: (APR, 21), 2024: (APR, 10), 20...
5
5
2
[{"id": "G0", "claim": "EID_AL_FITR_DATES_CONFIRMED_YEARS should be extended to include 2026, to stay aligned with the explicitly added 2026 Eid al-Fitr date.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The test should also assert the observed se...
null
vacanza__holidays__3386
vacanza/holidays
3,386
defect
27f49563257903dbc43646707a9ea6f6a8cbf3fa
9fb70e672858d65fcf2342fe3956bff5f64d6f25
Update Russia holidays: add Simplified Chinese language support
<!-- Thanks for contributing to holidays! --> ## Proposed change Adding `zh_CN` l10n for Russia. ## Type of change <!-- Type of change you want to introduce. Please, check one (1) box only! If your PR requires multiple boxes to be checked, most likely it needs to be split into multiple PRs. --...
diff --git a/README.md b/README.md index 6ba8c9b2c8..5b5259f002 100644 --- a/README.md +++ b/README.md @@ -1434,7 +1434,7 @@ any) in brackets, available languages and additional holiday categories. All cou <td>Russia</td> <td>RU</td> <td></td> -<td>en_US, <strong>ru</strong>, th</td> +<td>en_US, <strong>ru</strong>,...
3
2
0
[{"id": "G0", "claim": "The zh_CN strings for New Year's Day and New Year Holidays should read 元旦 and 元旦假期 instead of 新年 and 新年假期 to avoid confusion with the Lunar New Year.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The translation of '%s (вы...
null
vacanza__holidays__3395
vacanza/holidays
3,395
defect
bd01922e41100f26565f6859db50886e0449e023
13c964b53a2f0cc0a2be381dfe34b1f692f21087
Update Australia holidays: change ANZAC Day holiday in 2026 (ACT)
## Proposed change The ACT government have changed the ANZAC Day holiday (again!) in 2026 to match NSW for 2026 only. ## Type of change - [ ] New country/market holidays support (thank you!) - [x] Supported country/market holidays update (calendar discrepancy fix, localization) - [ ] Existing code/document...
diff --git a/holidays/countries/australia.py b/holidays/countries/australia.py index 7e531b45e6..3d2e8cd3c5 100644 --- a/holidays/countries/australia.py +++ b/holidays/countries/australia.py @@ -191,13 +191,13 @@ def _populate_subdiv_act_public_holidays(self): # ANZAC Day. # from 1959: SUN - move to...
3
2
0
[{"id": "G0", "claim": "The ACT government page announcing the 2026 change cannot be saved in the Wayback Machine because of bot checks, so a workaround is needed to archive it for the reference link.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
vacanza__holidays__3411
vacanza/holidays
3,411
defect
b1b7de712d33849ea3e3f1dbc230b2c22e4d7cf6
f0b6c1bb96d5948a1d61a4bfdaa4a42cfec54619
Update China and Taiwan holidays: refine and standardize holiday terminology
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Refine Chinese localization (`zh_CN`, ~`zh_HK`,~`zh_TW`) to resolve literal translations, improve natural phrasing, and ensure...
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 2a6abfb841..282049978b 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -151,6 +151,7 @@ Robert Tran Roberto Panai Robin Emeršič Roshan Pradhan +Ryan Lee Ryan McCrory Saheel Sapovadia Sam Tregar diff --git a/holidays/countries/china.py b/holidays/countries/china.py in...
4
2
2
[{"id": "G0", "claim": "In holidays/locale/zh_CN/LC_MESSAGES/HK.po, translating Hong Kong's 補假 (observed) labels as 连休 (lines 39/44) shifts the terminology for Hong Kong holiday output, and the reviewer suggested using 补假(推定)/补假 instead.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "int...
null
vacanza__holidays__3426
vacanza/holidays
3,426
defect
0cc5738b0f7939af5cc822c3072fe90657690caf
ac23f7d2f04c92e24a139617f664b86b826df734
Update India holidays: add Bonalu holiday in Telangana (TS)
<!-- Thanks for contributing to holidays! --> ## Proposed change This PR adds the missing Bonalu public holiday for Telangana in the India provider. Fixes #3232 Changes included: Added a year-specific Bonalu mapping for confirmed dates: 2026-08-10 Updated Telangana subdivision holiday population to a...
diff --git a/holidays/countries/india.py b/holidays/countries/india.py index 1826cc6b29..deb6817e39 100644 --- a/holidays/countries/india.py +++ b/holidays/countries/india.py @@ -53,6 +53,9 @@ class India( estimated_label = tr("%s (estimated)") # India gained independence on August 15, 1947. start_year =...
8
6
3
[{"id": "G0", "claim": "The new Bonalu tests should pass years=2026 explicitly instead of relying on the default years auto-population, to make the test intent clearer.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "BONALU_DATES is Telangana-only and sh...
null
vacanza__holidays__3440
vacanza/holidays
3,440
defect
bd01922e41100f26565f6859db50886e0449e023
0d670f9a1298af447949c6942015b495eb5cc453
Add Hong Kong Stock Exchange holidays
## Proposed change Adds Hong Kong Stock Exchange holidays support (`XHKG` / `HKEX` / `SEHK`). This implementation uses Hong Kong general holidays as the base full-closure calendar for the exchange, and adds HKEX half-day trading days for: - Lunar New Year's Eve - Christmas Eve - New Year's Eve The PR also i...
diff --git a/README.md b/README.md index ff7c19395f..e2dd18cfe8 100644 --- a/README.md +++ b/README.md @@ -1955,6 +1955,13 @@ code when available. The following financial markets are available: <td></td> </tr> <tr> +<td>Hong Kong Stock Exchange</td> +<td>XHKG</td> +<td>Hong Kong Stock Exchange (HKEX) securities mark...
12
11
0
[{"id": "G0", "claim": "The test_code override weakens the shared financial-harness contract by accepting a present-but-None country attribute instead of requiring the attribute to be absent, and the override should be removed so the harness check applies.", "category": "testing", "verdict": "uncertain", "priority": "P...
null
vacanza__holidays__3448
vacanza/holidays
3,448
defect
18b9f84f78fa6705e8b295f5dfc51f7a5349f374
d577605341745af18c869feee382994981cdcf1c
Update India holidays: add Malayalam language support
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Added Malayalam language for India. - Added "ml" to `supported_languages` in `india.py` - Added `IN.po` with Malayalam tra...
diff --git a/README.md b/README.md index c8ce2c2dd6..c8073bd36c 100644 --- a/README.md +++ b/README.md @@ -871,7 +871,7 @@ any) in brackets, available languages and additional holiday categories. All cou <td>India</td> <td>IN</td> <td>States: AN (Andaman and Nicobar Islands), AP (Andhra Pradesh), AR (Arunachal Prade...
9
8
4
[{"id": "G0", "claim": "The pull request labels Malayalam with the wrong ISO 639-1 code \"kl\" (Kalaallisut) instead of \"ml\" in India.supported_languages, the README language table and the test name, and the language list should stay alphabetically sorted.", "category": "correctness", "verdict": "supported", "priorit...
null
vacanza__holidays__3485
vacanza/holidays
3,485
defect
996988cc5271723d24a91201373321821561606f
43c3397bc45cde80a31a2ed42b37c63400d4e57f
Update India holidays: add Maharishi Valmiki Jayanti holiday
<!-- Thanks for contributing to holidays! --> Add Maharishi Valmiki Jayanti to the India holiday calendar. ### Changes - Implemented Maharishi Valmiki Jayanti in the Hindu lunisolar calendar - Added year-wise date mappings for accurate date generation - Integrated the holiday into India holidays following ...
diff --git a/holidays/calendars/hindu.py b/holidays/calendars/hindu.py index 3d85083851..ab503c35c2 100644 --- a/holidays/calendars/hindu.py +++ b/holidays/calendars/hindu.py @@ -19,6 +19,7 @@ BATHUKAMMA = "BATHUKAMMA" BUDDHA_PURNIMA = "BUDDHA_PURNIMA" +MAHARISHI_VALMIKI_JAYANTI = "MAHARISHI_VALMIKI_JAYANTI" CHHAT...
13
13
6
[{"id": "G0", "claim": "The holiday comments should read `# Maharishi Valmiki Jayanti.` with a trailing period (in india.py and, via regeneration, in the generated .po translator comments) to match the repo's comment style.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
vacanza__holidays__3499
vacanza/holidays
3,499
defect
d46e9b4dc4b0c4a014f5860a681e09949a27511d
819db08c00a6b23e426a8386531efca58ec2ea25
Update Latvia holidays: add substituted holidays
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Update Latvia holidays: add substituted holidays (2001-2026). ## Type of change <!-- Type of change you want to intro...
diff --git a/holidays/countries/latvia.py b/holidays/countries/latvia.py index 9888c39938..3822d3a088 100644 --- a/holidays/countries/latvia.py +++ b/holidays/countries/latvia.py @@ -10,10 +10,9 @@ # Website: https://github.com/vacanza/holidays # License: MIT (see LICENSE file) -from datetime import date from ge...
1
1
0
[{"id": "G0", "claim": "The paragraph about the observed-holidays start year is unintentionally placed under the References section of the Latvia class docstring.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vacanza__holidays__3500
vacanza/holidays
3,500
defect
d46e9b4dc4b0c4a014f5860a681e09949a27511d
1ad81a2eb599b51dc29aefcf3dba378996ed93c7
Update Saudi Arabia holidays: add Bengali language support
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> #3480 Solved. I've worked on this issue and completed the changes. I hope I'll be able to handle similar problems more effecti...
diff --git a/README.md b/README.md index eddb9e6aff..e32797d584 100644 --- a/README.md +++ b/README.md @@ -1522,7 +1522,7 @@ any) in brackets, available languages and additional holiday categories. All cou <td>Saudi Arabia</td> <td>SA</td> <td></td> -<td><strong>ar</strong>, en_US</td> +<td><strong>ar</strong>,bn , ...
7
4
1
[{"id": "G0", "claim": "The new file header comment should end with a period to follow project convention.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The Bengali msgstr for 'يوم وطني' should be the plain translation 'জাতীয় দিবস' instead of ...
null
vacanza__holidays__3518
vacanza/holidays
3,518
defect
bb25f087da12a57e09e87352e339d5962fe63782
c21c4b4512e772712752f56c1b25b27db2a6370a
Refactor conditional logic using structural pattern matching (PEP 636)
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Continuing from #3512, this refactor remains conservative and is applied only where it provides a clear readability benefit (...
diff --git a/holidays/countries/antigua_and_barbuda.py b/holidays/countries/antigua_and_barbuda.py index a0ac8241e7..7ccb58c958 100644 --- a/holidays/countries/antigua_and_barbuda.py +++ b/holidays/countries/antigua_and_barbuda.py @@ -91,14 +91,15 @@ def _populate_public_holidays(self): # National Hero...
2
2
0
[{"id": "G0", "claim": "Reorder the Arafat Day case branches in test_malaysia.py so case \"03\" comes before case \"11\".", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The remaining if/elif chains in tests/countries/test_brazil.py, such as the ...
null
vacanza__holidays__3526
vacanza/holidays
3,526
defect
5a4d6f6a98697401795c028740282203e9bfec52
83f98a0dd68a077d53126897c3ac17a74f6a83c6
Update Romania holidays
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Update Romania holidays: - fix Good Friday name - update some holidays original names Resolves #3525. ## Type of chang...
diff --git a/holidays/countries/romania.py b/holidays/countries/romania.py index 9499d9b2dd..57407537ab 100644 --- a/holidays/countries/romania.py +++ b/holidays/countries/romania.py @@ -22,11 +22,20 @@ class Romania(HolidayBase, ChristianHolidays, InternationalHolidays): References: * <https://en.wikip...
4
2
0
[{"id": "G0", "claim": "The Ukrainian msgstr for the renamed Saint John the Baptist entry still reads like the old short name, so the uk locale has an outdated label that should be updated to match the new fuller feast title.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"},...
null
vacanza__holidays__3532
vacanza/holidays
3,532
defect
b9372a030c4bbe0a11a3c8daab2884654df5c44b
0d42a729e113d8bead28854d0a88df3b01e3daa4
Update Mongolia holidays
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Add holidays based on "n-th week of the month" rule, and the corresponding function `_get_nth_week_of_month` into `holidays.ca...
diff --git a/holidays/calendars/gregorian.py b/holidays/calendars/gregorian.py index 424dd8fc21..1c2c1402db 100644 --- a/holidays/calendars/gregorian.py +++ b/holidays/calendars/gregorian.py @@ -61,6 +61,34 @@ def _get_nth_weekday_from(n: int, weekday: int, from_dt: date) -> date: ) +def _get_nth_week_of_month...
5
3
1
[{"id": "G0", "claim": "The helper should reject week index 0 with a ValueError, because n=0 currently returns the week before week 1 instead of failing, making invalid input look valid.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the stal...
null
vacanza__holidays__3558
vacanza/holidays
3,558
defect
9d862c4be35465faa23918f827d31b94a1a2e896
72eb668b92d9aba845a75ee33342024ee07b88a8
Update Brazil holidays
<!-- Thanks for contributing to holidays! --> ## Proposed change <!-- Describe the big picture of your changes. Don't forget to link your PR to an existing issue if any. --> Update Brazil holidays (update some state and municipal holidays). ## Type of change <!-- Type of change you want to ...
diff --git a/holidays/countries/brazil.py b/holidays/countries/brazil.py index 457ca5df3f..64b2156d6f 100644 --- a/holidays/countries/brazil.py +++ b/holidays/countries/brazil.py @@ -28,8 +28,20 @@ class Brazil(ObservedHolidayBase, ChristianHolidays, InternationalHolidays): * [Decreto n. 19.488, de 15.12.1930]...
2
1
0
[{"id": "G0", "claim": "The inline reference 'lei n. 18.397' mismatches the abolishment note's 'Lei n. 18.384' and will send the next maintainer to the wrong statute.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The São Paulo Capital municipal-r...
null
vacp2p__zerokit__239
vacp2p/zerokit
239
defect
d91a5b35688d7b033466dc879e494b07ecbbb6ee
bf706e9af43f93573955f5afe3024e48cdfd7bee
Remove height 32 from RLN
Remove tree_height 32 resources and associated circuit loading within
diff --git a/rln/src/circuit.rs b/rln/src/circuit.rs index 305ed080..fc5d54ee 100644 --- a/rln/src/circuit.rs +++ b/rln/src/circuit.rs @@ -33,8 +33,8 @@ const WASM_FILENAME: &str = "rln.wasm"; // Note that the circuit and keys in TEST_RESOURCES_FOLDER are compiled for Merkle trees of height 20 & 32 // Changing these ...
4
3
0
[{"id": "G0", "claim": "The pull request should also remove the tree_height_32 resources from the resources sub-directory.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The comments in rln/src/circuit.rs that still reference tree height 32 shou...
null
vacp2p__zerokit__243
vacp2p/zerokit
243
defect
8581ac0b78fec5b09dd56cd261e13e3622b5bc70
28ddcde49a8a9f912156e1908b4bc3e3707807e3
chore(rln): tests and benchmarks review
Part of #237 This PR includes: - create benchmark from this test https://github.com/vacp2p/zerokit/blob/0521c7349e7aa36e25b43e4663def226451a7147/rln/tests/poseidon_tree.rs#L13 - add additional measurements for `FullMerkleTree` and `OptimalMerkleTree` using `set_range` - extract common logic in tests/ffi....
diff --git a/Cargo.lock b/Cargo.lock index 859342ea..0ccdaed1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3596,6 +3596,7 @@ dependencies = [ "color-eyre", "criterion 0.4.0", "hex-literal", + "lazy_static 1.4.0", "num-bigint", "num-traits", "pmtree", diff --git a/rln/Cargo.toml b/rln/Cargo.toml index da9736...
2
2
0
[{"id": "G0", "claim": "The benchmark name should be `OptimalMerkleTree::<Poseidon>::full_height_gen` to differentiate the rln poseidon benchmarks from the keccak-based ones in the utils crate.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The loop vari...
null
vacp2p__zerokit__246
vacp2p/zerokit
246
defect
652cc3647e767e6161571d42bdf531b94c3b7189
305752ab5699013251d35b5c07dd48ddd496a36d
fix(rln): Remove resources folder, update missed docs
Part of #237 - Remove parameter `resources_folder` from config - Update comments and docs which were missed in #245
diff --git a/rln/README.md b/rln/README.md index fe6ae2b2..02e353fb 100644 --- a/rln/README.md +++ b/rln/README.md @@ -3,6 +3,7 @@ This module provides APIs to manage, compute and verify [RLN](https://rfc.vac.dev/spec/32/) zkSNARK proofs and RLN primitives. ## Pre-requisites + ### Install dependencies and clone re...
4
3
2
[{"id": "G0", "claim": "The README's submodule link should be changed to point to https://github.com/rate-limiting-nullifier/circom-rln instead of privacy-scaling-explorations/rln.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The repeated `Curso...
null
vacp2p__zerokit__249
vacp2p/zerokit
249
defect
4931b252378623bcc6f005164950710d152ee600
1fff3f1c68b29768e676c4bbb7fd5369acd4f693
Add function for checking indices of leaves which are set to zero
Part of #237 In general everything is ready, tests that helped to find problems from #248 are commented out for now.
diff --git a/rln/benches/pmtree_benchmark.rs b/rln/benches/pmtree_benchmark.rs index 4a2df1a3b..922e67830 100644 --- a/rln/benches/pmtree_benchmark.rs +++ b/rln/benches/pmtree_benchmark.rs @@ -37,6 +37,12 @@ pub fn pmtree_benchmark(c: &mut Criterion) { tree.get(0).unwrap(); }) }); + + c.be...
3
1
0
[{"id": "G0", "claim": "Finding zero leaves via a Vec<u8> cache (~33MB for 1048576 leaves) may not be the best way; the reviewer suggests perhaps employing a bloom filter instead, which by napkin math would use ~3.5MB of memory.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced...
null
vacp2p__zerokit__255
vacp2p/zerokit
255
defect
7790954c4a450808e807837cec89700032b0adb8
14a65c166557396db554436cfba61c1e88d5b11b
feat: expose custom witness ffi
* Exposes `generate_rln_proof_with_witness` FFI, which allows to generate proofs with a custom witness. * Similar as https://github.com/vacp2p/zerokit/pull/227/, which targeted RLN v1 but now targeting RLN v2.
diff --git a/rln/src/ffi.rs b/rln/src/ffi.rs index 5ed5c028..7c89d730 100644 --- a/rln/src/ffi.rs +++ b/rln/src/ffi.rs @@ -361,6 +361,21 @@ pub extern "C" fn generate_rln_proof( call_with_output_arg!(ctx, generate_rln_proof, output_buffer, input_buffer) } +#[allow(clippy::not_unsafe_ptr_arg_deref)] +#[no_mangle...
2
2
1
[{"id": "G0", "claim": "The '// we skip it from documentation for now' comment above generate_rln_proof_with_witness is no longer valid and should be removed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The output_data layout comment of the new...
null
vacp2p__zerokit__258
vacp2p/zerokit
258
defect
85d71a5427ee78528d6420c04b67c7825e3c6e91
f25791f5ac5776d535138c3f4dd5c442a68188c2
chore(rln): add verifying key deser benchmark
Benchmarking deserialization of verifying key. Need to merge this before https://github.com/vacp2p/zerokit/pull/257 to check if performance gains are being made.
diff --git a/rln/Cargo.toml b/rln/Cargo.toml index 5d82751f..ed7b905e 100644 --- a/rln/Cargo.toml +++ b/rln/Cargo.toml @@ -88,6 +88,10 @@ harness = false name = "circuit_loading_benchmark" harness = false +[[bench]] +name = "circuit_deser_benchmark" +harness = false + [[bench]] name = "poseidon_tree_benchmark" h...
1
1
0
[{"id": "G0", "claim": "Use ark(-serde) deserialization to build the VerifyingKey instead of the manual field-by-field JSON parsing, which would also make the JSON intermediate representation in vk_from_json/vk_from_vector unnecessary.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "pre...
null
vacp2p__zerokit__266
vacp2p/zerokit
266
defect
0d5642492a2c31c7c286e581626771395aae5cff
51a7489bc8fbbb3fb047d2eb71c8448f8e95349a
chore(rln-wasm): Make rln-wasm stateless
Regarding Release v0.6.0 in issue #263 Deprecate tree and correspond function from rln-wasm
diff --git a/Cargo.lock b/Cargo.lock index 0885f80f7..630148448 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2340,6 +2340,7 @@ dependencies = [ "wasm-bindgen-test", "wasmer", "web-sys", + "zerokit_utils", ] [[package]] diff --git a/rln-wasm/Cargo.toml b/rln-wasm/Cargo.toml index 4685a2b94..4af00168d 100644 --...
1
1
1
[{"id": "G0", "claim": "The removal of the doc comment on the stateless new_with_params in rln/src/public.rs was probably not intended, and the documentation should be kept.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
vacp2p__zerokit__287
vacp2p/zerokit
287
defect
de9c0d5072723e9b1045e7d0719e6181225f1cbe
0d8ec75e0b952f1239ce3f1b890b808d0ee0bd6c
fix(rln): review and refine utility functions in rln
Review and refine utility functions to resolve #279: - Update utility functions to the current version. - Remove unused and commented-out code. - Optimize some utility functions by using extend_from_slice() and pre-allocate size for Vec<u8>.
diff --git a/rln-cli/src/examples/relay.rs b/rln-cli/src/examples/relay.rs index 46bb0920..43974f9f 100644 --- a/rln-cli/src/examples/relay.rs +++ b/rln-cli/src/examples/relay.rs @@ -8,9 +8,9 @@ use color_eyre::{eyre::eyre, Result}; use rln::{ circuit::{Fr, TEST_TREE_HEIGHT}, hashers::{hash_to_field, poseido...
1
1
0
[{"id": "G0", "claim": "Add comments explaining how the Vec::with_capacity sizes are calculated (on vec_fr_to_bytes_le and vec_u8_to_bytes_le in rln/src/utils.rs and the with_capacity calls in rln/src/protocol.rs) for readability in the future.", "category": "maintainability", "verdict": "supported", "priority": "P2", ...
null
vacp2p__zerokit__306
vacp2p/zerokit
306
defect
4077357e3f26b804a25193d4d6b1c0e25d30a729
adceb01c8f88ddbc00197d0b4d0205871ddd6e91
feat(utils): enable parallel execution for Merkle Tree
### Changes - Enhanced benchmark for testing parallelism. - Enabled parallelism in both `OptimalMerkleTree` and `FullMerkleTree`. - Added test cases to cover parallel execution and other operations. - Benchmarked to determine the optimal `MIN_PARALLEL_NODES` threshold. - Removed unused fields and updated method ...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 440ea286..be6b52a2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,8 +24,8 @@ jobs: utils-test: strategy: matrix: - platform: [ ubuntu-latest, macos-latest ] - crate: [ utils ] + platfo...
10
10
0
[{"id": "G0", "claim": "The new update_hashes loop variables 'start' and 'end' are too generic and should keep the old explicit names such as current_index.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hard-coded parallel-execution thresho...
null
vacp2p__zerokit__325
vacp2p/zerokit
325
defect
fd99b6af74f7d06b440aea4ed3438f230afc3625
9083e6fa46960a5618ee6f4922b1f49d3478abc9
feat: restore parallel flag, improve CI, resolve clippy warnings, bump deps
- Addressed the current default enablement of the parallel feature within the rln module. - Updated all feature flags and command in rln-wasm from multithread to parallel. - Resolve macro expansion problem inside `qap.rs` file by some Rayon’s trait. - Tried to optimize workflow runtime with newer version of action p...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index be6b52a2..8f0574ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -32,17 +32,13 @@ jobs: name: test - ${{ matrix.crate }} - ${{ matrix.platform }} steps: - name: Checkout sources - uses: actions/check...
4
3
0
[{"id": "G0", "claim": "The rln-wasm-parallel-test job in .github/workflows/ci.yml is still commented out, so the parallel rln-wasm build and tests the PR restores are not run in CI.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CI should not run the t...
null
vacp2p__zerokit__328
vacp2p/zerokit
328
defect
bf1e184da976e672edabffd873d0223678b9e6ed
0cf46ea6df57268bff98122a33b7b29833842fc8
feat: add wasm parallel testcase and simplify the witness_calculator.js
- Tested the parallel feature for rln-wasm on this branch: https://github.com/vacp2p/zerokit/tree/benchmark-v0.9.0 - Simplified the test case by using the default generated witness_calculator.js file for both Node and browser tests - Added a WASM parallel test case using the latest wasm-bindgen-rayon version 1.3.0 -...
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec5310e4..acb64bf5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -88,66 +88,41 @@ jobs: - name: Install dependencies run: make installdeps - name: Build rln-wasm - run: | - if [ ${{ ma...
1
1
0
[{"id": "G0", "claim": "The pmtree git dependency pins version \"2.0.3\", which may not exist yet on crates.io; consider using a pre-release version identifier or removing the version field from the git dependency.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vacp2p__zerokit__354
vacp2p/zerokit
354
defect
a52cf84f462d2e35645058de8104fe5208692168
c9160b9737a1472fda839e5ed56b25e052207d23
fix(rln): resolve memory leak in calc_witness and improve FFI memory deallocation pattern
### Memory Leak Investigation Using `valgrind` and `leaks`, I identified the following memory leak issues: - The call to `unsafe { zeroize_flat_type(v) }` in the `calc_witness` function caused a memory leak. → ~I tried assigning `U256::ZERO` instead, though it’s unclear if the compiler will optimize it away....
diff --git a/rln/README.md b/rln/README.md index 8e63e3f8..bfb7c2ed 100644 --- a/rln/README.md +++ b/rln/README.md @@ -323,7 +323,9 @@ Working examples demonstrating proof generation, proof verification and slashing ### Memory Management -All heap-allocated objects must be explicitly freed using their correspondin...
4
3
1
[{"id": "G0", "claim": "The zeroizing via zeroize_flat_type on v is not a valid Zeroize call, and zeroize should be updated to 1.8.2 (or the failure reproduced and reported upstream).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The FFI entry poin...
null
vacp2p__zerokit__380
vacp2p/zerokit
380
defect
c2481af312da0d39f1b82da3494a2aebce1194de
ea79daa400079b08cf8ca71c1a8c82e830289c93
fix(rln): prevent atomic_operation panics with shared override_range validation
## Description This PR fixes panic paths in `override_range`/`atomic_operation` flows by centralizing index/range validation and converting invalid inputs into explicit errors. Related to: #379 ## Changes - Added shared validator: `validate_override_range_inputs` in `utils/src/merkle_tree/override_range_...
diff --git a/.gitignore b/.gitignore index b226ba3d..7512efe1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ .idea *.log tmp/ +test-path/ # Generated by Cargo will have compiled files and executables /target diff --git a/rln/src/pm_tree_adapter.rs b/rln/src/pm_tree_adapter.rs index 525b53c8..7c684208 1...
2
1
0
[{"id": "G0", "claim": "The new validation module's tests are all rejection tests, so the suite would pass even if the validator always returned an error; a test exercising the valid-input Ok(...) path should be added.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1...
null
vacp2p__zerokit__381
vacp2p/zerokit
381
defect
cb6a1ba09463307ce2f82afe7911c94e3f9e4043
e6f17e38c4b7a38f0422393b085511ee886d68fb
test: RLN-WASM bindings error cases
## Description A batch of tests to cover negative/invalid input cases for RLN-WASM bindings. ## Tests added rln-wasm/tests/node.rs: - test_wasm_invalid_inputs rln-wasm/tests/utils.rs: - test_wasmfr_from_bytes_invalid - test_vec_wasmfr_from_bytes_invalid - test_uint8array_utils_from_bytes_invalid - test...
diff --git a/Makefile.toml b/Makefile.toml index e8201576..559f323f 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -1,2 +1,18 @@ [env] CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true + +[tasks.fmt] +description = "Format workspace members and excluded crates" +command = "sh" +args = [ + "-c", + "cd .. && cargo fmt -...
2
2
0
[{"id": "G0", "claim": "The custom `[tasks.fmt]` and `[tasks.fmt_check]` rules added to Makefile.toml should be dropped in favour of (and, as later revised, updated to run) `cargo +nightly fmt` so that formatting follows the `rustfmt.toml` rules instead of stable-toolchain `cargo fmt`.", "category": "maintainability", ...
null
vacp2p__zerokit__413
vacp2p/zerokit
413
defect
5d5e42059e0325331dc2f37c8a1c61b255391c52
c19f01a892fca2e49196ae6fab5262b9554a8600
chore(release): v2.0.2
## Description - **`fix(nix)`** — refresh `nix/default.nix` cargoHash. The v2.0.1 tag shipped with a stale hash; cold nix builds failed because the cache-served FOD masked the mismatch. Verified hash with logos-delivery's downstream override. - **`feat(rln)`** — add `ffi_rln_proof_new` and `ffi_rln_proof_values_new...
diff --git a/Cargo.lock b/Cargo.lock index ee358f9a..7d1d1a52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1274,7 +1274,7 @@ checksum = "dc897dd8d9e8bd1ed8cdad82b5966c3e0ecae09fb1907d58efaa013543185d0a" [[package]] name = "rln" -version = "2.0.1" +version = "2.0.2" dependencies = [ "ark-bn254", "ark-crypto-pri...
1
1
1
[{"id": "G0", "claim": "The pull request is still missing the nightly build change in .github/workflows/nightly-release.yml — the same \"link-arg=--export=__heap_base\" addition that was applied to rln-wasm's Makefile — in case the branch is released separately as v2.0.2.", "category": "correctness", "verdict": "suppor...
null
vacp2p__zerokit__94
vacp2p/zerokit
94
defect
062055dc5ea3721bb6dc89ebb8849b377143d1f3
22cfa120e34721bfa72f0c39281fb4c33d3a7d11
change: Replace `u64` for `usize` for length vars
As @s1fr0 correctly stated in https://github.com/vacp2p/zerokit/issues/39#issuecomment-1235441945, `usize` is the rust canonnical way to express lengths for data serialization. Resolves: #39 Please, let me know if I missed any serialization fn or similar where the same change logic should be applied!
diff --git a/rln/src/protocol.rs b/rln/src/protocol.rs index 240dc9c1..a9d1f6ff 100644 --- a/rln/src/protocol.rs +++ b/rln/src/protocol.rs @@ -358,8 +358,8 @@ pub fn prepare_prove_input( id_index: usize, epoch: Fr, signal: &[u8], -) -> Result<Vec<u8>> { - let signal_len = u64::try_from(signal.len())?;...
3
2
2
[{"id": "G0", "claim": "Changing the length/index types from u64 to usize breaks the API and serialization assumptions of products using zerokit rln (nwaku, go-waku, js), so the change should be coordinated with those products or mitigated by pointing them at pinned non-breaking revisions before merging.", "category": ...
null
vadimdemedes__tailwind-rn__129
vadimdemedes/tailwind-rn
129
defect
b21b745031575b0b1153b705baa7bf0ddc63a1e4
d405e97ac483600b14c6a7e805d62932474cf0f5
Toggle dark/light mode manually
Closes #125 @vadimdemedes I couldn't find a better name for the prop and I stick with `theme`, maybe you have a suggestion :)
diff --git a/readme.md b/readme.md index fdec5cd..dda9f38 100644 --- a/readme.md +++ b/readme.md @@ -183,7 +183,24 @@ import {TailwindProvider} from 'tailwind-rn'; import utilities from './tailwind.json'; const App = () => ( - <TailwindProvider utilities={utilities}> + <TailwindProvider utilities={utilities} theme=...
8
8
4
[{"id": "G0", "claim": "The provider must not call useColorScheme() conditionally inside `theme ?? useColorScheme() ?? 'light'`, because a theme prop that changes between undefined and set makes React fail to match hooks between renders; move the override logic into the useMemo instead.", "category": "correctness", "ve...
null
vaexio__vaex__1094
vaexio/vaex
1,094
defect
5a9fab638c832506901887ba28452d36913e630a
a0c846e4703a79e7fa547ed0e7b0dbb141a539a5
feat: Hive based partitioned datasets support. Read parquet, write any
Fixes #834 Similar to groupby, we can write those partitions to disk: ```python import vaex countries = ['US', 'US', 'NL', 'FR', 'NL', 'NL'] years = [2020, 2021, 2020, 2020, 2019, 2020] values = [1, 2, 3, 4, 5, 6] df = vaex.from_dict({ 'country': countries, 'year': years, 'value': values, }) d...
diff --git a/ci/conda-env.yml b/ci/conda-env.yml index d12bae086d..7ab0db7d30 100644 --- a/ci/conda-env.yml +++ b/ci/conda-env.yml @@ -13,6 +13,7 @@ numpy pandas pcre pip +psutil python-annoy # py-xgboost # pyarrow diff --git a/packages/vaex-core/vaex/__init__.py b/packages/vaex-core/vaex/__init__.py index beb011...
1
1
0
[{"id": "G0", "claim": "DatasetParquet relies on the legacy pq.ParquetDataset API (with a LegacyWrapper filesystem) to obtain partition information instead of the pyarrow.dataset ds.dataset replacement, and joris asks whether there is a specific reason for that choice.", "category": "design", "verdict": "supported", "p...
null
vaexio__vaex__1206
vaexio/vaex
1,206
defect
92f73c8f24bdfbd263f851ed71eb09c55561d891
75889e5cb6c37d545294fb23b8fd9e623a5825de
Feat: allow parsing of the FloatDtypes() from pandas
This PR allows vaex to parse the `Float64Dtype()` from pandas, which allows for masked values (also works for 32bits). - [x] Implementation - [x] Test update - [ ] Review
diff --git a/packages/vaex-core/vaex/__init__.py b/packages/vaex-core/vaex/__init__.py index a9161fcfe7..d7fe4aad70 100644 --- a/packages/vaex-core/vaex/__init__.py +++ b/packages/vaex-core/vaex/__init__.py @@ -107,7 +107,7 @@ def open(path, convert=False, shuffle=False, fs_options={}, fs=None, *args, **kw :param ...
1
1
0
[{"id": "G0", "claim": "The test should not rely on astype to go from nan to None; instead add a new series with an explicit dtype, similar to int_missing.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vaexio__vaex__1323
vaexio/vaex
1,323
defect
21589757f861f8ec35963b7831550ca2edb6cff9
1c675c73deb1a4d3a26a79c2f60e4d7bab1bec8a
Adds dtype arg to dt.func.where()
Fixes #1309
diff --git a/packages/vaex-core/vaex/functions.py b/packages/vaex-core/vaex/functions.py index be6dd1f2a3..cac8185c7c 100644 --- a/packages/vaex-core/vaex/functions.py +++ b/packages/vaex-core/vaex/functions.py @@ -2561,7 +2561,7 @@ def default_label(properties): import vaex.arrow.numpy_dispatch @register_function(...
3
3
0
[{"id": "G0", "claim": "Casting the scalar operands x and y to the requested dtype before calling np.where would be more efficient than casting the result with astype afterwards, with the final astype kept to catch array cases.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"...
null
vaexio__vaex__1441
vaexio/vaex
1,441
defect
367d3213e6a7106f9f9695a1d3c0fa1bace8b7e4
5bf8ee46af485687558377f3d6a7d3b13e76b9b2
Add quarter and halfyear datetime methods.
- [x] `df.x.dt.quarter` gives the quarter of the year (1-4) - [x] `df.x.dt.halfyear` gives the half of the year (1-2) - [x] Unit tests
diff --git a/packages/vaex-core/vaex/functions.py b/packages/vaex-core/vaex/functions.py index 86fd9f789f..d319fdb495 100644 --- a/packages/vaex-core/vaex/functions.py +++ b/packages/vaex-core/vaex/functions.py @@ -832,6 +832,64 @@ def dt_floor(x, freq, *args): import pandas as pd return _to_pandas_series(x)....
1
1
0
[{"id": "G0", "claim": "The dt_halfyear implementation should compute the half-year as ((_to_pandas_series(x).dt.quarter-1) // 2 + 1) instead of the boolean-comparison form ((_to_pandas_series(x).dt.quarter > 2).astype('int') + 1).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "int...
null
vaexio__vaex__1470
vaexio/vaex
1,470
defect
caed2cf106007c6a0141a02a5dfdf823fa38799e
73697ddbe6bbe73bfef50fbd83a6d70aebac9eff
feat(contrib): i/o between vaex and google bigquery
This PR adds a new package - `vaex-contrib` - for easier community contributions. Please see the README.md for more information. The main contribution of this PR is adding few helper functions to make the I/O between vaex and google bigquery easier. The data transfer goes via Apache Arrow.. Feedback welcome.
diff --git a/.gitignore b/.gitignore index e3be35434d..441165838b 100644 --- a/.gitignore +++ b/.gitignore @@ -79,6 +79,7 @@ catboost_info/ # symlinks generated in setup.py packages/vaex-core/vaex/astro +packages/vaex-core/vaex/contrib packages/vaex-core/vaex/distributed packages/vaex-core/vaex/graphql packages/...
6
5
1
[{"id": "G0", "claim": "The query function should be named from_query instead of query_google_big_query, matching the standard vaex.from_* naming conventions.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The download function should be named from_table...
null
vaexio__vaex__1529
vaexio/vaex
1,529
defect
0dca79804162db145f4c6638534e376848019828
6c4a98bf276c568fa7a1fd2c7ce39f46fe5b9266
ML metrics
New ml accessor, `metrics`. Allows for fast and out-of-core computation of some popular / common ML metrics for classification and regression. Please see the tests, docstrings or the documentation for examples. - [x] Implement new accessor for computing metrics such as (accuracy, precision, recall, f1, mse, ...
diff --git a/docs/source/api.rst b/docs/source/api.rst index 604b46796e..a48d727b13 100644 --- a/docs/source/api.rst +++ b/docs/source/api.rst @@ -336,31 +336,7 @@ Machine learning with vaex.ml See the `ML tutorial <tutorial_ml.ipynb>`_ an introduction, and the `ML examples <examples.rst>`_ for more advanced usage. ...
3
3
0
[{"id": "G0", "claim": "The precision/recall computation can be done in one pass by passing a list of selections, and expressions would be preferable to strings.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The DataFrameAccessorMetrics class shoul...
null
vaexio__vaex__1570
vaexio/vaex
1,570
defect
e438318bd19cebaec3eb5a08b20830a86a362a22
33c3b2e568f08d1ce3cd5ada842ca07afef17962
feat(core): Method to add virtual columns having constant values.
This PR adds a vaex method to add virtual columns having constant values. The method is called `vaex.vconstant` This was requested a few of times in the past, example #1019, #1557 This is how for instance one can create a fully virtual dataframe: ```python import vaex N = 100_000_000 df = vaex.from_arrays...
diff --git a/packages/vaex-core/vaex/__init__.py b/packages/vaex-core/vaex/__init__.py index 40f64832ce..71c9f83351 100644 --- a/packages/vaex-core/vaex/__init__.py +++ b/packages/vaex-core/vaex/__init__.py @@ -777,6 +777,11 @@ def vrange(start, stop, step=1, dtype='f8'): from .column import ColumnVirtualRange ...
2
2
2
[{"id": "G0", "claim": "ColumnVirtualConstant._get_dtype is missing a return in its else branch (the expression vaex.datatype.DataType(dtype).arrow is discarded) and the two branches return inconsistently, the first returning a raw arrow type while the second was meant to wrap it in DataType.", "category": "correctness...
null
vaexio__vaex__1671
vaexio/vaex
1,671
defect
e51c09c58e946f8caa1988bed52a3503d7c6aa60
80e9544267dd095a1cd5728551ecf855100694e1
Better dot_product
This PR improves the dot_product. Before there was a limitation of the size of the vectors one can use to calculate a dot product. Now that limitation is lifted. So things like PCA, and Incremental PCA can be used with hundreds of dimensions. The dot product is made available more generally in `df.func.dot_product`...
diff --git a/packages/vaex-core/vaex/functions.py b/packages/vaex-core/vaex/functions.py index ca7953fb20..2eb2d9f594 100644 --- a/packages/vaex-core/vaex/functions.py +++ b/packages/vaex-core/vaex/functions.py @@ -2741,3 +2741,18 @@ def stack(arrays, strict=False): def getitem(ar, item): slicer = (slice(None), i...
1
1
0
[{"id": "G0", "claim": "The transform method would be slightly cleaner if the dot_product call were hoisted out of the if/else so that only the whiten division stays inside the branch.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
vaexio__vaex__1741
vaexio/vaex
1,741
defect
25ed66d5a81c8ff719ca3b5dd32e854cad4e3174
be6ffa7650bfded4e65f64c1b5e382f2e0268f44
Allow casting integers to timedelta64 type
Assuming `x` is integer, this now will work: `df.x.astype('timedelta64[s]')` Requested by: https://github.com/vaexio/vaex/discussions/1740 Checklist: - [x] Apply fix - [x] Unit test - [ ] Review
diff --git a/packages/vaex-core/vaex/functions.py b/packages/vaex-core/vaex/functions.py index ea920fd75a..256edd4ac0 100644 --- a/packages/vaex-core/vaex/functions.py +++ b/packages/vaex-core/vaex/functions.py @@ -2512,13 +2512,25 @@ def _astype(x, dtype): # arrow does not support timestamp to int/float, ...
3
2
0
[{"id": "G0", "claim": "The new test builds its expected array from a literal that already carries the target dtype instead of reusing the input x, so the reviewer thinks it may not test what is intended, asks whether the test really failed, and suggests constructing it as np.array(x, dtype='timedelta64[s]').", "catego...
null
vaexio__vaex__1768
vaexio/vaex
1,768
defect
8c891b00985b7ee2ae20ca96b50827a18ba6a48b
02139e57b630b7c794ffbcd5837cb4dac2b011b6
handle chunked arrays in _pandas_dt_fix
When loading feather files with pyarrow 6.0.1, dt methods fail because the underlying arrays are chunked. This change modifies the test to handle chunked arrays.
diff --git a/packages/vaex-core/vaex/functions.py b/packages/vaex-core/vaex/functions.py index 256edd4ac0..08f4c7db98 100644 --- a/packages/vaex-core/vaex/functions.py +++ b/packages/vaex-core/vaex/functions.py @@ -283,7 +283,9 @@ def scalar_timedelta(amount, unit): def _pandas_dt_fix(x): # see https://github.com...
3
2
1
[{"id": "G0", "claim": "The chunked-array guard should be written as `vaex.array_types.is_arrow_array(x) and isinstance(x.type, pa.lib.TimestampType)` instead of hand-rolling the isinstance checks.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The chunk...
null
vaexio__vaex__2288
vaexio/vaex
2,288
defect
a9ae5e63f6aba5828e4afca1c2f0ab2a7352386f
bdc25c6ce196ffe1488759c30ca53b8510085b91
Fix: auto-cast to correct type when using vconstant
See discussion at https://github.com/vaexio/vaex/issues/2286 This is largely inspired by the proposal of @NickCrews in https://github.com/vaexio/vaex/issues/2286 Checklist: - [x] Create unit test - [x] Unit-test passes - [ ] Review
diff --git a/packages/vaex-core/vaex/column.py b/packages/vaex-core/vaex/column.py index f2ddabe3da..7c8c6ebf44 100644 --- a/packages/vaex-core/vaex/column.py +++ b/packages/vaex-core/vaex/column.py @@ -6,6 +6,7 @@ import six import numpy as np import pyarrow as pa +import pyarrow.compute as pc import vaex impor...
2
2
1
[{"id": "G0", "claim": "The pull request fails the unit tests when vconstant is given a list value such as [1, 2].", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "unclear"}, {"id": "G1", "claim": "The new test line casting the string '1' to dtype 'bool' is unexplained and questionable; ...
null
vaexio__vaex__299
vaexio/vaex
299
defect
2317827f2bdd83099cfc13d3c2adc28477633d3d
10c09ef7d29c2e6e849a6838a4e497b85214587c
fix(core): give a better error msg on copying a dataframe with non-existing column
Closes #221
diff --git a/CHANGELOG.md b/CHANGELOG.md index f5f454bd56..36c0271864 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ * Arguments to lazy function which are numpy arrays gets put in the variables [#573](https://github.com/vaexio/vaex/pull/573) * Executor does not block after failed/interrup...
1
1
1
[{"id": "G0", "claim": "Querying a single expression via df['sexx'] does not go through the new check, so it still raises a deep NameError without the informative 'Column or variable ... does not exist.' message; the reviewer asks that the same message be shown there too (suggestions optional).", "category": "correctne...
null
vaexio__vaex__715
vaexio/vaex
715
defect
86f51872dce33f9d16305022a9e729d3b635a576
5f41153f423fc8fd06bc22a1a29c5bc787ce35ce
Fix: limits calculation with selection
This fixes #44. _Description:_ The selection seems to be ignored when calculating limits that are not `minmax`. For `minmax` the selection is obeyed, as shown by already implemented tests, and via manual testing. ``` limits = df.limits('x', value='90%', sel='x>5') # selection is ignored ``` However, calculati...
diff --git a/tests/limits_test.py b/tests/limits_test.py index aa0d4bc9b9..e17b015148 100644 --- a/tests/limits_test.py +++ b/tests/limits_test.py @@ -27,3 +27,12 @@ def test_limits(df): assert df.limits(['x', 'y'], 'minmax', shape=10)[1] == [10, 10] assert df.limits(['x', 'y'], 'minmax', shape=(10, 12))[1]...
2
1
0
[{"id": "G0", "claim": "The new test's use of np.testing.assert_almost_equal is unnecessary — the sliced and selection-based limits should match exactly.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The limits-with-selection behaviour would be better ...
null
vaexio__vaex__880
vaexio/vaex
880
defect
8d3a0249a7ca6b75bf6bf120fb147fc9a651f928
a1278f06c2c229f3d9adc22ee5c2bde75da7e977
Fix: unique on str column that has missing values
This addresses an issue of `.unique` when applied on a string column that has missing value. I am not completely sure, but fixing this might fix #879 Checklist - [x] Make test - [ ] Make em pass
diff --git a/packages/vaex-core/vaex/array_types.py b/packages/vaex-core/vaex/array_types.py index 9b79bf5039..6a7a289aa5 100644 --- a/packages/vaex-core/vaex/array_types.py +++ b/packages/vaex-core/vaex/array_types.py @@ -23,6 +23,13 @@ def same_type(type1, type2): return False +def tolist(ar): + if is...
4
3
1
[{"id": "G0", "claim": "Removing None from the unique list with list(filter(None, unique)) is dangerous because filter(None, ...) also drops every falsy element (e.g. 0), as in list(filter(None, [0, 1, 2])); the reviewer suggests unique.remove(None) would also work.", "category": "correctness", "verdict": "supported", ...
null
vale-cli__vale__530
vale-cli/vale
530
defect
83d76cfa6609e31eff1e61091ab43233b63484ca
dbd54dd2fd290e8b8d217a303a7a40d84c2657dd
feat(config): expand ~ to home directory
Hello there. Improve usability by supporting this common pattern. Allows setting explicit paths for global vale configs that are applied to all profiles in a company. Might help with !94
diff --git a/internal/core/util.go b/internal/core/util.go index 7dbe1b96f..b1344211b 100755 --- a/internal/core/util.go +++ b/internal/core/util.go @@ -237,7 +237,23 @@ func SplitLines(data []byte, atEOF bool) (adv int, token []byte, err error) { return 0, nil, nil } +func normalizePath(path string) string { + //...
1
1
0
[{"id": "G0", "claim": "The pull request should replace its use of the deprecated ioutil package (ioutil.TempDir) with the newer os APIs, as was done recently in commit 754b3b5e32cc41ffdd1fa8ba71be7a75b066ce1e.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
vale-cli__vale__900
vale-cli/vale
900
defect
b05b065620fca0c9e0f072319fffd3f9ee20f55f
cfbeec11fdeaf55206efc9e235db5e9a1321c395
feat: Allow users to override comment delimiters
Allow users to specify the comment delimiters they are using in their documentation. vale replaces these with HTML comment tags before linting, making it possible to control style rules for specific passages of prose in file formats that use non-HTML comment syntax. This is critical for controlling style rules within a...
diff --git a/go.mod b/go.mod index a6d4d964d..b8152d605 100644 --- a/go.mod +++ b/go.mod @@ -12,6 +12,7 @@ require ( github.com/errata-ai/ini v1.63.0 github.com/errata-ai/regexp2 v1.7.0 github.com/gobwas/glob v0.2.3 + github.com/jdkato/go-tree-sitter-julia v0.1.0 github.com/jdkato/twine v0.10.1 github.com/kar...
1
1
0
[{"id": "G0", "claim": "Use a backtick raw string literal instead of a double-escaped interpreted string for the regex in the 'token ignore in cc file' test case, because the double escaping is hard to justify and confusing.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
valence-rs__valence__188
valence-rs/valence
188
defect
e3c43a733698c38a065ef1c1b9d8f2448dfcfd30
3863ae0a52a6f6bfcab7ae6743fa7011cd34216f
[ECS] re-implement opening inventories
This adds an `OpenInventory` component that indicates that an entity has opened and is viewing an inventory. This doesn't yet implement actually allowing clients to modify the inventories. This makes it possible to query all entities for open inventories. We also don't have to manage a `_modified` flag, we can j...
diff --git a/crates/valence_new/examples/inventory_test.rs b/crates/valence_new/examples/inventory_test.rs new file mode 100644 index 000000000..20d8e726c --- /dev/null +++ b/crates/valence_new/examples/inventory_test.rs @@ -0,0 +1,85 @@ +use bevy_ecs::prelude::*; +use bevy_ecs::schedule::ShouldRun; +use tracing::info;...
8
6
1
[{"id": "G0", "claim": "OpenInventory's private `entity` field should be readable from outside the crate, via a getter or by making it public.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The doc comment on OpenInventory's `entity` field should be reph...
null
valence-rs__valence__189
valence-rs/valence
189
defect
87553d705bcab4f11f4b3eeb894bac41d71f16f2
4e858edb1d20fd8498befd1be8991c8f1800b70d
[ECS] Inventory interactions
- add helper to convert slot ids - implement system to handle click container events - update inventory_test example with block platform and some chests to open - add toggle_gamemode_on_sneak system to example - fix query filter that was causing clients to get spammed with OpenScreen - move state_id to `Client` compone...
diff --git a/crates/valence_new/examples/inventory_test.rs b/crates/valence_new/examples/inventory_test.rs index 603bbbb3a..62da30f9d 100644 --- a/crates/valence_new/examples/inventory_test.rs +++ b/crates/valence_new/examples/inventory_test.rs @@ -1,13 +1,15 @@ use bevy_ecs::prelude::*; use bevy_ecs::schedule::Shoul...
18
15
3
[{"id": "G0", "claim": "Opening an inventory for the first time sends the client a SetContainerSlot packet for every occupied slot in addition to the initial SetContainerContent packet, because the modified bits are only cleared while the inventory is open; the reviewer suggests clearing the bits unconditionally in a s...
null
valence-rs__valence__198
valence-rs/valence
198
defect
3febd62565405fa982b2538bdeceab0e90a532c3
aa1e01d03734e0f8439955409a96449e2859b326
[ECS] Infra for comprehensive unit tests
Motivation: There are a lot of edge cases we have to handle, and every new line of code we write increases the risk of regressions. Regressions slow down dev time: a perfect example of this is what happened in #189. Unsolved issues: - [x] `test_client_position` is flakey ### Test plan ``` cargo test -p valence_new `...
diff --git a/crates/valence_new/src/lib.rs b/crates/valence_new/src/lib.rs index 63990bb55..0d4e412bc 100644 --- a/crates/valence_new/src/lib.rs +++ b/crates/valence_new/src/lib.rs @@ -14,6 +14,8 @@ mod packet; pub mod player_list; pub mod player_textures; pub mod server; +#[cfg(test)] +mod unit_test; /// A [`Com...
4
4
3
[{"id": "G0", "claim": "The `try_send`/`try_recv` trait methods should operate on bytes of encoded packets rather than actual packet objects, since the trait must be object-safe to be put in a `Box<dyn PacketStream>`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1",...
null
valence-rs__valence__261
valence-rs/valence
261
defect
0960ad7ead3cc64a2d7bfc2dec89aa38aa630edb
4542c23596e0d8599fe87fa0281481febc70c9fd
Replace `EncodePacket` and `DecodePacket` with `Packet`
## Description Combines the `EncodePacket` and `DecodePacket` trait into a single `Packet` trait. This makes `valence_protocol` simpler and easier to use. This can be done because all packets were made to be bidirectional in #253. Additionally, a `packet_id` method has been added. This should help with #238. #...
diff --git a/crates/packet_inspector/src/main.rs b/crates/packet_inspector/src/main.rs index d13a2210b..697900157 100644 --- a/crates/packet_inspector/src/main.rs +++ b/crates/packet_inspector/src/main.rs @@ -23,7 +23,7 @@ use valence_protocol::packet::c2s::status::{QueryPingC2s, QueryRequestC2s}; use valence_protocol...
4
3
2
[{"id": "G0", "claim": "The crate-level doc in valence_protocol_macros still links to the now-removed [`EncodePacket`] and [`DecodePacket`] traits, so the doc links are broken.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `[macro]` link defi...
null
valence-rs__valence__371
valence-rs/valence
371
defect
2ed5a8840da244d8f1f91f1df43750664952be46
cfb7dca093e7c4148e0e13529b531a037d77b2ab
Boss Bar API
## Description Hey, I started working on this issue https://github.com/valence-rs/valence/issues/337. ### So far: - I created a crate "**valence_boss_bar**" and I moved this packet there https://github.com/valence-rs/valence/blob/2ed5a8840da244d8f1f91f1df43750664952be46/crates/valence_core/src/protocol/packet.rs...
diff --git a/Cargo.toml b/Cargo.toml index cf0148b52..fbc0089c6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -91,6 +91,7 @@ valence_network.path = "crates/valence_network" valence_player_list.path = "crates/valence_player_list" valence_registry.path = "crates/valence_registry" valence_world_border.path = "crates/vale...
13
11
4
[{"id": "G0", "claim": "The BossBar component should be a Bundle instead, so that BossBarViewers is not queried as a component nested inside BossBar a second time.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The BossBarViewers component may be unneces...
null
valence-rs__valence__436
valence-rs/valence
436
defect
80c1a936487ee78fbd3c8804ed9963375fa5c2a1
0b1392d36953c391cbe2f345b163891261942049
Scoreboards
# Objective - Adds support for Scoreboards via a new crate, `valence_scoreboard` - closes #435 # TODO - [x] When the scores update, only send the diff to clients - [x] handle layer switching - [x] docs - [x] update the ctf example to show scoreboards - [x] unit tests <details> <summary>Playground us...
diff --git a/Cargo.toml b/Cargo.toml index 375bcacd0..58ffa19d1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,7 @@ default = [ "log", "network", "player_list", + "scoreboard", "world_border", "weather", ] @@ -29,6 +30,7 @@ inventory = ["dep:valence_inventory"] log = ["dep:bevy_log"...
1
1
1
[{"id": "G0", "claim": "Systems in `PostUpdate` that write packets to layers must run before `UpdateLayersPreClient` and systems that write directly to clients must run before `FlushPacketsSet`, to prevent a one tick delay; as ordered it is really easy to screw up.", "category": "correctness", "verdict": "supported", "...
null
valence-rs__valence__437
valence-rs/valence
437
defect
5058a8c39837cd83defc450eb2cdea5f3a1632df
d368886e24c5571da503a294f200c0eaea0b0210
Make bossbar use `EntityLayer` for visibility
# Objective We want things to be easy for the user as possible, so I used the same api principes from EntityLayer. # Solution `BossBarBundle` also have an `EntityLayerId` that says in what layer they are, and client see bossbar that are in his `VisibleEntityLayers`.
diff --git a/crates/valence_boss_bar/Cargo.toml b/crates/valence_boss_bar/Cargo.toml index a2d669157..7ff01f964 100644 --- a/crates/valence_boss_bar/Cargo.toml +++ b/crates/valence_boss_bar/Cargo.toml @@ -13,6 +13,7 @@ valence_network.workspace = true valence_entity.workspace = true valence_client.workspace = true v...
9
7
1
[{"id": "G0", "claim": "`BossBarTitle::to_packet_action` creates an unnecessary clone of the title text via `self.0.to_owned()`.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be convenient to split the `BossBarStyle` component into two sep...
null
valence-rs__valence__439
valence-rs/valence
439
defect
5058a8c39837cd83defc450eb2cdea5f3a1632df
2bb19925b5d163493e87e8c94cddfc1fe9523af9
Add abilities components on the player
# Objective see #438 # Solution The client is updated when a change is detected on one of the player abilities component.
diff --git a/crates/valence_client/src/abilities.rs b/crates/valence_client/src/abilities.rs new file mode 100644 index 000000000..76a7832d5 --- /dev/null +++ b/crates/valence_client/src/abilities.rs @@ -0,0 +1,62 @@ +pub use valence_packet::packets::play::player_abilities_s2c::PlayerAbilitiesFlags; +use valence_packet...
3
3
2
[{"id": "G0", "claim": "This abilities demonstration in the cow_sphere example would be better served in the anvil_loading example.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since changing game modes changes abilities on the client, the plugin shoul...
null
valence-rs__valence__455
valence-rs/valence
455
defect
8759a2163210403821c64a9e18f248a44ad71034
c2373e153d8f9ae42f3d148f64f77a0bf6b4fd1d
Added world border tests
# Objective Adding world border tests. Fixes #433
diff --git a/src/tests.rs b/src/tests.rs index c9cc45de8..a876dcdde 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -5,3 +5,4 @@ mod inventory; mod layer; mod player_list; mod scoreboard; +mod world_border; diff --git a/src/tests/world_border.rs b/src/tests/world_border.rs new file mode 100644 index 000000000..0e504...
1
1
0
[{"id": "G0", "claim": "The extra updates and clear_received in the prepare() test helper should be removable; if they are actually needed then that is probably a bug.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
valence-rs__valence__500
valence-rs/valence
500
defect
b169565a0b9e568ad90d70bd5f42947589432a85
43502c0dbde00e99d45e83ff0093953b0ab89ad3
Replace Option<ItemStack> with ItemStack
## Objective - Fixes #490 ## Solution - Replace all occurrences of `Option<ItemStack>` with `ItemStack`. - Add is_empty method to ItemStack with same semantics as vanilla isEmpty. - Add is_not_empty method to ItemStack. - Make the item count in ItemStack public and an i8. - impl {Encode, Decode} for ItemSt...
diff --git a/crates/valence_advancement/src/lib.rs b/crates/valence_advancement/src/lib.rs index eeead5eff..a5229f025 100644 --- a/crates/valence_advancement/src/lib.rs +++ b/crates/valence_advancement/src/lib.rs @@ -347,7 +347,7 @@ pub enum AdvancementFrameType { pub struct AdvancementDisplay { pub title: Text, ...
19
18
1
[{"id": "G0", "claim": "The count handling should be reworked: with count a public i8 the 1..=127 clamp via STACK_MIN/STACK_MAX is called into question (range 0..=127 or no clamping at all, count perhaps private), and STACK_MAX/constructors should be reconsidered.", "category": "design", "verdict": "supported", "priori...
null
valence-rs__valence__558
valence-rs/valence
558
defect
4c6af33846570e46d35c4f12f70b3bb8d03755d0
19ae9469c09614f04d54762e99c08e95819513a3
Potions / Status Effects
# Objective - Potion effects aren't supported by valence yet. - You can send a packet to tell the client about a potion effect, but the server still has no idea what they are <details> <summary>Example code</summary> ```rs pub fn add_potion_effect(mut clients: Query<&mut Client>, mut events: EventReader<Sneak...
diff --git a/crates/valence_entity/build.rs b/crates/valence_entity/build.rs index a50aab54f..558305d28 100644 --- a/crates/valence_entity/build.rs +++ b/crates/valence_entity/build.rs @@ -279,10 +279,12 @@ type Entities = BTreeMap<String, Entity>; pub fn main() -> anyhow::Result<()> { rerun_if_changed(["extracte...
6
4
0
[{"id": "G0", "claim": "The pull request is too large and should handle #555/#556 and the new extractor code in separate pull requests to make review easier.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hardcoded `entity_id: VarInt(0)` in create_pa...
null
valence-rs__valence__568
valence-rs/valence
568
defect
4c6af33846570e46d35c4f12f70b3bb8d03755d0
a9c997019d2c8cda09805b13202562758ef6b78e
Added food and saturation
# Objective - Food and saturation currently don't exist for the player in valence - Closes #565 # Solution Adds food and saturation to the `PlayerEntity` and tells the client about any changes. The only problem right now is that the default value for `Health` is the same for ALL entities, so the server tells...
diff --git a/crates/valence_entity/build.rs b/crates/valence_entity/build.rs index a50aab54f..4f916da85 100644 --- a/crates/valence_entity/build.rs +++ b/crates/valence_entity/build.rs @@ -366,45 +366,59 @@ fn build() -> anyhow::Result<TokenStream> { #snake_entity_name_ident: Default::defau...
1
1
1
[{"id": "G0", "claim": "A test or two should be added (in src/tests) to make sure the health/food/saturation packet isn't being sent a tick late.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
valence-rs__valence__655
valence-rs/valence
655
defect
774a14209fcc91d774432416c5facc2093552c5b
8afd6a2375495a622abfc8d2730090b4c108becc
Readonly inventory
# Objective - ability to make inventories read only (player should be able to click things in the inventory and still emit a click event, this can be useful for creating inventory menus. - closes #427 - related #307 #355 # Solution - adds a public ``readonly: bool`` field to the ``Inventory`` component, that ...
diff --git a/crates/valence_inventory/src/lib.rs b/crates/valence_inventory/src/lib.rs index 2fdf5e06e..686b2f49b 100644 --- a/crates/valence_inventory/src/lib.rs +++ b/crates/valence_inventory/src/lib.rs @@ -71,6 +71,11 @@ pub struct Inventory { /// Contains a set bit for each modified slot in `slots`. #[doc...
3
2
1
[{"id": "G0", "claim": "The doc comment on the readonly field should read \"Makes an inventory read-only for clients\" instead of \"Makes a inventory read-only\".", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The pull request adds readonly invent...
null
valhalla__valhalla__2517
valhalla/valhalla
2,517
defect
f5e464a1f7f2d75d08ea6db6bb8418c0f500eccb
1955e4a9e386371e9757e59d4d1c8602a510fe0d
fix garbage coordinates when map matched route has uturn
fixes #2442
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ea843e9c6..cf663e0e01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -70,6 +70,7 @@ * FIXED: Fix missing nullptr checks in graphreader and loki::Reach (causing segfault during routing with not all levels of tiles availble) [#2504](https://github.com/valhalla/valhalla...
2
2
1
[{"id": "G0", "claim": "The MatchResults constructor should use std::forward for the rvalue-reference parameters (and std::move for lvalue references) instead of std::move.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The uturn-trimming fix sh...
null
valhalla__valhalla__3090
valhalla/valhalla
3,090
defect
6d9f04ba581c0776c9b9e17ff9653d5c0a758bd8
3da63fb2b4eca1883993ec2f4fbed39a04843f0e
Fix avoid shortcuts
fixes #3087 Shortcuts were not included in the avoid edges set for avoid_polygons, since the rough `Allowed()` method excludes shortcuts: https://github.com/valhalla/valhalla/blob/6d9f04ba581c0776c9b9e17ff9653d5c0a758bd8/valhalla/sif/dynamiccost.h#L233-L244 Skipping this check for shortcuts I ended up with 1562...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 416b9bb4de..1890cc1e19 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ * FIXED: Incorrect routing through motor_vehicle:conditional=destination. [#3041](https://github.com/valhalla/valhalla/pull/3041) * FIXED: Highway/ramp lane bifurcation [#3088](ht...
5
4
1
[{"id": "G0", "claim": "The shortcut check should be removed from the Allowed method and loki::reach and loki::search should each get their own explicit no-shortcut checks.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The TestAvoidShortcuts test woul...
null
valhalla__valhalla__3367
valhalla/valhalla
3,367
defect
feb722af8e60ce0c2da7a4597f6ada855f3df8da
cd83a33e9c2fae88fcb4acbe25ac889edeffd018
add 'tileset_modified_date' info to /status endpoint
fixes #3366 this was so quick, I just did it. now the `/status` endpoint responds with `version` & `tileset_last_modified`, additional (and expensive) details about the tileset is still protected with `verbose=true`. if you accept it, I can write 1-2 quick tests.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3665c9b141..c0e3ac1fbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * CHANGED: Requested code clean up for phonemes PR [#3356](https://github.com/valhalla/valhalla/pull/3356) * CHANGED: Refactor Pronunciation class to struct [#3359](https://github.c...
6
5
3
[{"id": "G0", "claim": "The PR could instead drop the new fields from the proto definitions and determine/compute that information in serializers.cc.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The stat/MTIME file-system code and includes added to sta...
null
valhalla__valhalla__3833
valhalla/valhalla
3,833
defect
575557d2942f7eb8de8681e2d935d45b60bf2380
82e2e1d83c3b2414aef8054efb14b40ff95f15e4
add more warnings
will fix part of #3761 - [x] matrix_locations is ineffective if CostMatrix is used - [x] out-of-range values for costing options where we clamp to the default - ~~[ ] when loki uses filtered edges since it can't find any other edges~~ maybe later.. - [x] when time-dependent was requested, but the crow-distance e...
diff --git a/src/sif/dynamiccost.cc b/src/sif/dynamiccost.cc index 493ae7ac0f..7c004f26b8 100644 --- a/src/sif/dynamiccost.cc +++ b/src/sif/dynamiccost.cc @@ -382,6 +382,9 @@ void ParseBaseCostOptions(const rapidjson::Value& json, // shortest JSON_PBF_DEFAULT(co, false, json, "/shortest", shortest); + // TODO:...
5
1
0
[{"id": "G0", "claim": "Rework the clamped-value design: instead of storing the option name in ranged_default_t, pass a clamped boolean out of operator() and pass the request's warnings into JSON_PBF_RANGED_DEFAULT so the macro itself adds the warning.", "category": "design", "verdict": "supported", "priority": "P2", "...
null
valhalla__valhalla__3860
valhalla/valhalla
3,860
defect
591f3e669c6666336be77dc76e447d6672f59c05
2d5acc1a8f02363299a1c31ae8412e5bd33847c6
make hgv-only edges also driveable to include in the reclassification logic
fixes #3731 I'm not entirely sure if this is fine for all downstream logic.. it seems not too much depends on this directly or indirectly. If someone has a concern, please voice it. Also, again, IMO including truck here is enough, no need to respect more modes like motorbike.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8a97b3be64..5409504119 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * FIXED: Build all of Mjolnir with -Werror [#3845](https://github.com/valhalla/valhalla/pull/3845) * FIXED: Only set most destination information once for all origins in timedistanc...
1
1
1
[{"id": "G0", "claim": "ORing auto with truck (and later all vehicular) forward/backward marks motorcar-only and hgv-only ways as usable by both modes for the purposes of reclassification although they can be exclusive, so the approach is too broad/naive and should instead find a path per missing mode.", "category": "c...
null
valhalla__valhalla__3893
valhalla/valhalla
3,893
defect
be8d17835a2eb3effbfa8be4f9725f29e3ce504d
f5d66bb85ae3438aef61d02030951ac59c41c4af
Parse lit tag
fixes #3848 This PR adds parsing of the `lit` tag: - parse the possible values and map them to a boolean value in `graph.lua` - add `lit` as a member variable to `OSMWay` - add `lit` as a member variable to the `DirectedEdge` class, thereby allocating one of the remaining bits - add the `lit` tag and...
diff --git a/CHANGELOG.md b/CHANGELOG.md index a86732dd61..7e26027f74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * **Bug Fix** * **Enhancement** * CHANGED: replace boost::optional with C++17's std::optional where possible [#3890](https://github.com/valhalla/valhalla/pull/3890) + * ADDED: parse...
2
1
1
[{"id": "G0", "claim": "lit=limited is a special case (lights not turned on during the whole night) whose value cannot reliably be set as lit=true, so the hard-coded boolean mapping for it is questionable.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim...
null
valhalla__valhalla__3907
valhalla/valhalla
3,907
defect
97a4098d3a227f7aa4bc8a04ea7085cb56c71381
70ca50f55b5c06ff52c426ad39136547bced3dc7
fix exclude_polygons bug
fixes #3905
diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 76ba385ce3..d582d4bf83 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -39,7 +39,7 @@ jobs: VCPKG_DIR: '$(Build.SourcesDirectory)\vcpkg' VCPKG_ROOT: '$(Build.SourcesDirectory)\vcpkg' VCPKG_INSTALLATION_ROOT: '$(Build.Sou...
3
2
1
[{"id": "G0", "claim": "The parsing code should also check whether exclude_polygons is even an array (as kevinkreiser suggested) instead of assuming it is one.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The replaced parse loop should never have ...
null
valhalla__valhalla__4019
valhalla/valhalla
4,019
defect
98fa75242d1853dcf2a58e9f29b775cc5d4dedc2
aace6c6384d8ae3fed725f3cb42f6e18678022a9
Improvements and Bugfixes to GraphReader::GetShortcut
# Issue This resolves #3888 and fixes 3 issues within `GetShortcut` to make it more reliable: 1. **Align conditions for valid shortcut member edges with shortcut builder** There was a slight mismatch between the basic requirements an edge must fulfill to become part of a shortcut. During shortcut builder, edges wi...
diff --git a/src/baldr/graphreader.cc b/src/baldr/graphreader.cc index cdf173776f..6de34a034f 100644 --- a/src/baldr/graphreader.cc +++ b/src/baldr/graphreader.cc @@ -745,24 +745,25 @@ GraphId GraphReader::GetShortcut(const GraphId& id) { // Lambda to get continuing edge at a node. Skips the specified edge Id // ...
10
7
3
[{"id": "G0", "claim": "The macOS build is failing the shortcut tests (shortcut_id.Is_Valid() is false at recover_shortcut.cc:154) and this needs to be cleaned up.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "The pull request definitely needs a ch...
null
valhalla__valhalla__4042
valhalla/valhalla
4,042
defect
15dedaac1b26730d78bc1f4ae988ad88f4c95264
5cf6e7c22119c7359009d1d44899d01ebc2ad050
throw on duplicated names for recostings
fixes #4041 Chose to throw when there'd be dups.
diff --git a/src/sif/dynamiccost.cc b/src/sif/dynamiccost.cc index 1de29d1523..ed199814ce 100644 --- a/src/sif/dynamiccost.cc +++ b/src/sif/dynamiccost.cc @@ -542,6 +542,7 @@ void ParseCosting(const rapidjson::Document& doc, } case Costing::bikeshare: { costing->set_type(Costing::bikeshare); // Nothing...
2
1
0
[{"id": "G0", "claim": "The unordered_set of recosting names should reserve capacity up front (names.reserve(recostings->GetArray().Size())) — offered as a nitpick the author is free to ignore.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since th...
null
valhalla__valhalla__4201
valhalla/valhalla
4,201
defect
c3089cb52a05a61f3312747f88c49453b5069937
c910324baaacb8da7dde3f557dfbe4cba67cc56d
Landmark Routing 2 PR: Landmark parser
# Issue fixes #4133 Implement landmark parser to parse landmarks in pbf and store them in database. ## Requirements / Relations [Landmark Routing 2: Parse Landmarks](https://github.com/valhalla/valhalla/issues/4133)
diff --git a/src/mjolnir/landmark_database_builder.cc b/src/mjolnir/landmark_database_builder.cc index 4e93ed6bb4a..90e580aaece 100644 --- a/src/mjolnir/landmark_database_builder.cc +++ b/src/mjolnir/landmark_database_builder.cc @@ -1,8 +1,12 @@ #include "mjolnir/landmark_database_builder.h" #include "mjolnir/util.h"...
7
7
2
[{"id": "G0", "claim": "The LandmarkParser struct does not belong in the public header; since it holds no state it should be removed and its work folded into the build function.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G2", "claim": "Landmarks should be inserted ...
null
valhalla__valhalla__4275
valhalla/valhalla
4,275
defect
36d28a01990772db602ace6fc615538188c8800d
1f42f4c9b85c091ce8b12a33d2ae316c948c6996
Return LineString geometries on expansion
fixes #4266 - makes /expansion return LineStrings - adds the field `pred_edge_id` to the response to figure expansion The config limit is the same as before: it's derived from the expansion action. We could adapt that logic, but I'd do that in a follow-up PR if it's wanted. Is based on #4263 , so let's merge...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 585b1d0422..94de54182f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,9 @@ * ADDED: support for `:forward` and `:backward` for `motor_vehicle`, `vehicle`, `foot` and `bicycle` tag prefixes [#4204](https://github.com/valhalla/valhalla/pull/4204) * ADDED: ...
2
2
0
[{"id": "G0", "claim": "Rename the expansion request property keys to their singular, shorter form (e.g. `edge_id` instead of `edge_ids`) so the request names are consistent with the singular response field names, now that the API is breaking compatibility anyway.", "category": "design", "verdict": "supported", "priori...
null
valhalla__valhalla__4430
valhalla/valhalla
4,430
defect
f6e2ae4ff4b1da9aaf95c9f4769103419d63b4e7
fa32260e291a8fb7bce75c8601f5bde7524a7bea
attempt a cleanup of unused vehicle types
fixes #4429 This is pretty opinionated, feel free to reject some of it.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 39af7528db..6d6049b4b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## Release Date: 2023-??-?? Valhalla 3.4.1 * **Removed** + * REMOVED: unused vehicle types in AutoCost and segway; renamed kTruck to "truck" instead of "tractor_trailer" [#4430](https:/...
3
2
0
[{"id": "G0", "claim": "Remove the deprecated kSegway pedestrian type entirely (the PR only left it commented out and it does nothing).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the remaining commented-out code (the auto default type...
null
valhalla__valhalla__4432
valhalla/valhalla
4,432
defect
32a09fdcba8dc1fc4e6e9828652fa6ca534106af
c1b5e6c2a3c304391225432a4530f7210b255975
add shape to matrix response
fixes #4300 based on #4372 implements a new `shape_format` request field for `/sources_to_targets` with all available formats (polyline5/6, geojson and by default `"none"`), but only for CostMatrix. `shape_format` will dictate what the `shape` response field contains, if not `"none"` in which case there is no `...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 262889de2a..db8e8f2a60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -48,6 +48,7 @@ * CHANGED: use date_time API to retrieve timezone aliases instead of our own curated list [#4382](https://github.com/valhalla/valhalla/pull/4382) * CHANGED: less aggressive loggin...
20
12
1
[{"id": "G0", "claim": "The geojson_shape helper the PR adds belongs with the serialization code in the tyr serializers, not in src/midgard/util.cc, since midgard should not depend on baldr.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trivial-rout...
null
valhalla__valhalla__4463
valhalla/valhalla
4,463
defect
ac2c5d9872b8406403f6fd3c839ed7a96c3b3433
4c60b3592c9e691583f309010d919db561fc0c6a
Fix ferry cost times
Seems like `base_transition_cost.secs` was getting overridden by `OSRMCarTurnDuration` for all motorized vehicle profiles, instead of being added to it. # Issue What issue is this PR targeting? If there is no issue that addresses the problem, please open a corresponding issue and link it here. fixes #4219 ##...
diff --git a/CHANGELOG.md b/CHANGELOG.md index e6da99a8aa..dbb86d1284 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## Release Date: 2023-??-?? Valhalla 3.4.1 * **Removed** * **Bug Fix** + * FIXED: base transition costs were getting overridden by osrm car turn duration * FIXED: gcc13 was missing...
4
3
2
[{"id": "G0", "claim": "The changelog entry was added at the top of the file, but the convention here is that newest entries go at the bottom.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The isochrone tests are failing (about 150 m off) because...
null
valhalla__valhalla__4487
valhalla/valhalla
4,487
defect
7eb478460a98bb76d91d7d3bd1a9b2a2e3fe4d63
ee151cdd5a54cd90913e5a54e5798597d4a14839
Do not reclassify ferry connections when hierarchy=false
Do not reclassify ferry connections if hierarchies are not being used. Add a log statement to indicate no reclassification is occurring in the case where mjolnir config has hierarchy set to false. Update graphbuilder to call link reclassification if infer_turn_channels is true. However, if reclassify_links is false ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index b238db713d..9e60282f7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -68,6 +68,7 @@ * ADDED: find connection on backward search for bidir matrix algo [#4329](https://github.com/valhalla/valhalla/pull/4329) * FIXED: Fix segfault in OSRM serializer with bannerInstr...
2
2
0
[{"id": "G0", "claim": "The pull request should have some tests for the new reclassify_links=false behaviour.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new test should use its own tile directory instead of copying the directory of the test it w...
null
valhalla__valhalla__4493
valhalla/valhalla
4,493
defect
7eb478460a98bb76d91d7d3bd1a9b2a2e3fe4d63
0789a8309b813787c9e48e9d15e1642cbd4360f2
clamp truck speed to 90 kph
# Issue Fixes #4472 (short term fix, that is) by limiting truck speed to 90 kph, including when traffic speeds are higher. ## Tasklist - [x] Add tests - [x] Add #fixes with the issue number that this PR addresses - [x] Update the docs with any new request parameters or changes to behavior described - [...
diff --git a/docs/docs/api/turn-by-turn/api-reference.md b/docs/docs/api/turn-by-turn/api-reference.md index 735dc9be50..c2055973e2 100644 --- a/docs/docs/api/turn-by-turn/api-reference.md +++ b/docs/docs/api/turn-by-turn/api-reference.md @@ -117,7 +117,7 @@ These options are available for `auto`, `bus`, and `truck` co...
4
3
0
[{"id": "G0", "claim": "Refactor so that the directed edge's truck_speed() is read only here in EdgeCost instead of inside GetSpeed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G2", "claim": "Shortcut building should get the same truck-speed clamping trea...
null
valhalla__valhalla__4506
valhalla/valhalla
4,506
defect
5540cd7d0fcf67b5a1b8ee16fc5d6cbd2360b4c9
f35eae6f57875d6b4e8e9b2030bf6402c394e726
OSRM Serializer: Adds voice instructions
# Issue There is a proprietary extension of the OSRM routing format used in the Mabox Navi SDK and MapLibre Navi SDK, both in iOS and Android. These SDKs work better when the voiceInstructions attribute is present in the steps. This PR adds these voice instructions by using the existing `verbal_pre_transition_in...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fd91ee3e1..6d83d31724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ * CHANGED: Adujustment of walk speed when walking on slight downhill [#4302](https://github.com/valhalla/valhalla/pull/4302) * CHANGED: Do not reclassify ferry connections when no...
7
6
3
[{"id": "G0", "claim": "The surplus-distance subtraction in distance_along_geometry is based on the edge speed and may place the voice instruction at a wrong spot along the maneuver; the reviewer asks to interpolate within the final edge instead (a linear combination of accumulated distance and seconds).", "category": ...
null
valhalla__valhalla__4606
valhalla/valhalla
4,606
defect
055db1a630c2d11e8b70ed33707e750a843d90a1
ad940fc98f8f9b75a34df4b5c759999b2edc614e
"soft" ignore restrictions
# Issue Follow-up to #4574, fixes #4571. ~~ Open to better ideas for a name. I'll list more as well if I come up with any. @nilsnolde's first take was `ignore_safe_restrictions`. ~~ Edit: sticking with `ignore_non_vehicular_restrictions` now. ## Tasklist - [x] Add tests - [x] Add #fixes with the issue...
diff --git a/CHANGELOG.md b/CHANGELOG.md index da0c684181..ac47a13a07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -93,6 +93,7 @@ * ADDED: Improved instructions for blind users [#3694](https://github.com/valhalla/valhalla/pull/3694) * FIXED: Fixed roundoff issue in Tiles Row and Col methods [#4585](https://g...
6
6
4
[{"id": "G0", "claim": "The new ignore_common_restrictions exemption also needs to be added to the reverse Allowed path and to all other costings (pedestrian probably not), and a shared ignore_turn_restrictions flag should be defined in dynamiccost to avoid re-evaluating the && in every Allowed call.", "category": "cor...
null
valhalla__valhalla__4686
valhalla/valhalla
4,686
defect
2b438eebc3255da877dcb76c371fd952bfeab46c
d550f4e8b366636de719d18b53afcb4d28b831b7
Consider more forward & backward tags
# Issue Fixes #4434 ## Tasklist - [x] Add tests - [x] Add #fixes with the issue number that this PR addresses - [ ] Update the docs with any new request parameters or changes to behavior described - [ ] Update the [changelog](CHANGELOG.md) - [ ] If you made changes to the lua files, update the [tagin...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c2171d6ca..383c9549ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -109,6 +109,7 @@ * ADDED: `hgv_no_penalty` costing option to allow penalized truck access to `hgv=no` edges [#4650](https://github.com/valhalla/valhalla/pull/4650) * CHANGED: Significantly impro...
3
3
0
[{"id": "G0", "claim": "Move the AccessRestrictionDirection enum out of valhalla/baldr/graphconstants.h into valhalla/mjolnir/osmaccessrestriction.h.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add another spare uint8_t to OSMAccessRestriction, since ...
null
valhalla__valhalla__4926
valhalla/valhalla
4,926
defect
e3118f0d972ff646b67784783659e3186609d35b
8d549faf6d27ddfc2fe7355ffe092226e73ae836
Level location filtering
# Issue resolves #4878. ## Tasklist - [x] Add tests - [x] Add #fixes with the issue number that this PR addresses - [ ] Update the docs with any new request parameters or changes to behavior described - [ ] Update the [changelog](CHANGELOG.md)
diff --git a/proto/common.proto b/proto/common.proto index f6efd5bdb5..d2e8bb4230 100644 --- a/proto/common.proto +++ b/proto/common.proto @@ -61,6 +61,10 @@ message SearchFilter { oneof has_exclude_closures { bool exclude_closures = 6;// whether to exclude roads marked as closed due to traffic [default = true]...
3
3
1
[{"id": "G0", "claim": "Setting the level search cutoff warning inside PathLocation::fromPBF adds one warning per location; these should be deduplicated (e.g. when serializing out to json).", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The code needs to...
null
valhalla__valhalla__4949
valhalla/valhalla
4,949
defect
8423bc0c59eaf44a8a96095436bf0fed435d282f
24e619e5c618bec8b34e39489b5dbf4756729147
Consider smoothness in all profiles that use surface
# Issue It has been determined that we don’t consider using the smoothness tag for setting the access and/or surface. https://wiki.openstreetmap.org/wiki/Key:smoothness We should process the smoothness tag, but we should possibly consider turning off access based on this tag. We need to gather some test cases fr...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c8e1c6d2d..ada76adc9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * FIXED: `incremental_build_tiles` script works again [#4909](https://github.com/valhalla/valhalla/pull/4909) * FIXED: Fix ability to use Valhalla via cmake `add_subdirectory` [#493...
3
2
0
[{"id": "G0", "claim": "It is unclear whether the mjolnir.admin (netherlands_admin.sqlite) configuration in the new smoothness test file is actually needed.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new smoothness tests should be consolidated i...
null
valhalla__valhalla__5023
valhalla/valhalla
5,023
defect
40e2f7e089f520e128da0d0229c02dcbe0610d1d
6c8f472eea5218bb58bb2c04669b684322c1261e
Tag smoothness=impassable breaks pedestrian routing
# Issue Smoothness tag should not delete the edge in general. The smoothness tag is for the physical usability of a way for wheeled vehicles as defined in the [wiki](https://wiki.openstreetmap.org/wiki/Key:smoothness) and pedestrian access should not be removed. ## Tasklist - [x] Updated tests - [x] Add ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 601a42484e..8365c8eee9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ * FIXED: update CircleCI runners to Ubuntu 24.04 [#5002](https://github.com/valhalla/valhalla/pull/5002) * FIXED: Fixed a typo in the (previously undocumented) matrix-APIs responses...
2
2
2
[{"id": "G0", "claim": "The new assertion should be EXPECT_EQ rather than EXPECT_NE so the test actually verifies the edge's forward access equals pedestrian access.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Edges with smoothness=impassable sho...
null
valhalla__valhalla__5037
valhalla/valhalla
5,037
defect
cda44785f348df8781bd81d01c5d4efcb8c8484b
ccda3c6252d0b468c7b2789af9216354f0f1d5ad
made sure that bicycle_type is more forgiving
Fixes #5034 I am having a bit of trouble installing `prime_server`. Installation of said dependency worked, but CMake cannot find it somehow 🤷🏻‍♂️ I have no clue why or how to debug this. => This being a draft is mostly to get CI without having a working dev environment. ## Tasklist - [x] Add tests - [x] A...
diff --git a/docs/docs/api/turn-by-turn/api-reference.md b/docs/docs/api/turn-by-turn/api-reference.md index c674c0a2a7..2f473fccb4 100644 --- a/docs/docs/api/turn-by-turn/api-reference.md +++ b/docs/docs/api/turn-by-turn/api-reference.md @@ -180,8 +180,8 @@ These additional options are available for bicycle costing me...
10
10
0
[{"id": "G0", "claim": "Only some of the bicycle_type values in test_requests/bicycle_routes.txt were lowercased, so the author asked whether this half-way edit of the file was the right testing approach.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "T...
null
valhalla__valhalla__5217
valhalla/valhalla
5,217
defect
554e4ef7c73a43a6e190e5633433a1ef4c68efe5
ee2513bdb403d754eb8258e0ffdf3a2cc39ffc1a
Add some more barriers
# Issue Fixes #5202 ## Tasklist - [x] Add #fixes with the issue number that this PR addresses - [x] Update the [changelog](CHANGELOG.md) - [x] If you made changes to the lua files, update the [taginfo](taginfo.json) too.
diff --git a/CHANGELOG.md b/CHANGELOG.md index 766b2bacaf..22f25e93b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -61,7 +61,8 @@ * ADDED: Mutithreaded `PBFGraphParser::ParseWays()` [#5143](https://github.com/valhalla/valhalla/pull/5143) * CHANGED: "Multilevel Way" message logging level changed from WARN to ...
5
4
2
[{"id": "G0", "claim": "The added taginfo descriptions say \"Access for all modes is turned off\" for bollard-type barriers, but setting the bollard flag still allows pedestrian and bike access, so the description is wrong.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"},...
null
valhalla__valhalla__5328
valhalla/valhalla
5,328
defect
e241cddeedc7482be83ba6d5fc42e53780d3187d
1b5e82ac7ab488816b518a2dca5b73613901355a
perf: Speed up density calculus by using grid index
# Issue As noted in valhalla/valhalla#5201, the "enhance" stage of the graph-building process takes up about 25% of the total planet build time. Of that, the `GetDensity()` function alone accounts for around 80%. Improving `GetDensity()` would therefore significantly reduce the overall build time. The density com...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 19bbfdf90b..e064ddbe92 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -92,6 +92,7 @@ * CHANGED: pyvalhalla-git PyPI repository to pyvalhalla-weekly [#5310](https://github.com/valhalla/valhalla/pull/5310) * ADDED: `valhalla_service` to Linux Python package [#5315](...
5
3
2
[{"id": "G0", "claim": "The isochrone test fails on the pull request's CI because the computed isochrone shapes exceed the tolerance against the hard-coded expected shapes (by up to ~117.7), and the author asks for help with this failing test.", "category": "testing", "verdict": "supported", "priority": "P0", "scope": ...
null
valhalla__valhalla__5354
valhalla/valhalla
5,354
defect
d769e7a5f53f7be63101a8ab891a84f17a6e22c7
b2f39bc87c8eb7a0d3c603b1108619298c375651
Simple destination only logic for access restrictions
# Issue Fixes #5287. This PR introduces support for tags like `maxweight:conditional=none @ destination` by introducing a new flag `except_destination` in `baldr::AccessRestriction`. In simple terms, this will ignore access restrictions that have said `:conditional` tag in a second pass. So this behaves alm...
diff --git a/CHANGELOG.md b/CHANGELOG.md index bf86d5f9aa..ce41a6a458 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -102,6 +102,7 @@ * CHANGED: refactor to make valhalla/filesystem functionally redundant [#5319](https://github.com/valhalla/valhalla/pull/5319) * ADDED: Distribute C++ executables for Windows Py...
5
3
0
[{"id": "G0", "claim": "The separate directed-access-restriction handling in filter_tags_generic could be removed by folding the per-direction exemptions into the single loop above, using a tag-to-boolean map.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
valhalla__valhalla__5364
valhalla/valhalla
5,364
defect
4a33f2bb62b0b65c8d544e3f9cc88a99b280ef10
04f012b539d9c5e65fd5de38860b6176dd0e06f1
fix: change float to double when assigning tile ids
closes #5360 This is based on master - 1, i.e. https://github.com/valhalla/valhalla/commit/4a33f2bb62b0b65c8d544e3f9cc88a99b280ef10. Plus the actual fix and some logging. I'll deploy this on the public server and see tmrw if it worked and didn't log anything concerning.
diff --git a/src/baldr/tilehierarchy.cc b/src/baldr/tilehierarchy.cc index 7a5417f11c..f844aa8a7d 100644 --- a/src/baldr/tilehierarchy.cc +++ b/src/baldr/tilehierarchy.cc @@ -52,7 +52,16 @@ midgard::AABB2<midgard::PointLL> TileHierarchy::GetGraphIdBoundingBox(const Grap GraphId TileHierarchy::GetGraphId(const midgard:...
4
3
0
[{"id": "G0", "claim": "The commented-out debug/log blocks left in graphbuilder.cc (and other files) should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "It would be nice to have a test that reproduces the bad floating-point calculu...
null
valhalla__valhalla__5375
valhalla/valhalla
5,375
defect
05ef5235248c1e95a02bfb54d1edc0bf68bbf812
bf757ed6d28e8b108e0860cdc3f13b18c9c184c2
Fix exclusion check in the reverse direction
# Issue Exclusion check was incorrect in the reverse direction. Checking if only the current edge contains the bridges, tolls, tunnels, etc. attribute, and the predecessor edge doesn't means you cannot drive into bridges, tolls, tunnels, etc. in the forward direction, but in the reverse direction it means that you c...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d382a10ee5..7fc7417273 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,6 +47,7 @@ * FIXED: unknowns should be 500 and not 400 [#5359](https://github.com/valhalla/valhalla/pull/5359) * FIXED: Cover **all** nodes in the current tile by density index [#5338](https...
10
7
0
[{"id": "G0", "claim": "The new isDriveOnto logic is wrong in the reverse direction: the reverse tree can expand onto an excluded bridge but then can never expand off it, so the reverse search would get stuck there.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
valhalla__valhalla__5627
valhalla/valhalla
5,627
defect
8a0ae9dda81e5de14e2d38daab923bdf6592a932
15569ecf088e2af092f39d6713a6c959c1c8e06c
Adjust speed penalty and add dimensions to autocost
As discussed in https://github.com/valhalla/valhalla/issues/5595, this pull request extends autocosting to include the dimensions of length and weight. In addition, the speed penalty for set top speeds has been adjusted. This can now be controlled via the input parameter “speed_penalty_factor” so it can be ignored en...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b200ed224..dea017b447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -167,6 +167,7 @@ * CHANGED: Optimise turntype calls in TransitionCost [#5590](https://github.com/valhalla/valhalla/pull/5590) * CHANGED: Consistent use of `cost_ptr_t` [#5615](https://github.com...
5
4
2
[{"id": "G0", "claim": "The lower bound of kSpeedPenaltyFactorRange should be kMinFactor instead of 0.0f to avoid zero edge cost.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default auto weight of 3.0 metric tons is too high for a car and shoul...
null
valhalla__valhalla__5640
valhalla/valhalla
5,640
defect
ff5c68e7e0b5e4b7ccff55e32747931436371633
68cf91ef7dec207f5c6932973b7c9519ae49a15b
feat: time tracking in Bidirectional A*
I wasn't happy with the refactoring I did over in #5638, so I tried again. This time I decided to just go for it and try to find a simple heuristic for estimating the time of arrival/departure on the "far-end" tree. ### What this PR does: - adds time tracking to the time aware branch (depending whether it's ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index d09ad02a26..6cfe496615 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ * **Bug Fix** * **Enhancement** * CHANGED: Removed black and flake8 with ruff [#5639](https://github.com/valhalla/valhalla/pull/5639) + * ADDED: Proper time tracking in Bidirectiona...
8
8
1
[{"id": "G0", "claim": "The new ReverseTimeTracking enum value `invalid` is a strange word choice and should be renamed to something like `disabled` or `none`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "EstimateReverseStartTime need not diff...
null
valhalla__valhalla__5663
valhalla/valhalla
5,663
defect
278dd95b6395d4362971cc08a63010199a72d1af
bed27b1e6dc5a60b4b196d13ca241de5486baa4e
Add simple vector tile rendering service
# Issue closes https://github.com/valhalla/valhalla/issues/1703 Basically what I am doing is: - new config `loki.service_defaults.min_zoom_road_class` array which expects a min zoom level integer per road class (usual order: [<motorway>, <trunk>, ..., <service_other>]), below which we don't render the associated...
diff --git a/.gitmodules b/.gitmodules index 6ffc59c08b1..2f21e2b216c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -40,3 +40,6 @@ [submodule "third_party/unordered_dense"] path = third_party/unordered_dense url = https://github.com/martinus/unordered_dense +[submodule "third_party/vtzero"] + path = third_party/vt...
37
28
4
[{"id": "G0", "claim": "The new module should get a 'nordic' name following the repository's naming tradition instead of 'tile'.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new tile service should be marked BETA so users do not expect it ...
null
valhalla__valhalla__5688
valhalla/valhalla
5,688
defect
ae07d9ee79e6c94333186742e3181afe4a981b21
06b1cc2f0753a0b44670fc443e210203a2e295f7
Get rid of temporary std::vector in GraphTile::GetRestrictions
# Issue Just a revisit of what I was doing in https://github.com/valhalla/valhalla/pull/5585 I thought it would be easy to use std::span + some ranges API here, but since these restrictions are of variable size it is impossible to avoid having custom iterator (at least I don't have ideas)... ## Tasklist - [ ...
diff --git a/CHANGELOG.md b/CHANGELOG.md index 8d4168ab8c..e80e7b89ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ * ADDED: PyPI `sdist` for python to install the bindings from source [#5649](https://github.com/valhalla/valhalla/pull/5649) * CHANGED: Refactor GraphTile::GetLaneConnectivity to ...
2
2
0
[{"id": "G0", "claim": "The CHANGELOG entry's PR link has an extra opening parenthesis and should read `[#5688](https://github.com/valhalla/valhalla/pull/5688)`.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog entry for this PR needs ...
null
valhalla__valhalla__5704
valhalla/valhalla
5,704
defect
920ae954d4fc898d786e138d69764814af155138
76a8012fab0beab4c2cabcd4aa5e6ebcaaafe2d8
Use std::from_chars instead of std::stoi/stof/stod
_Please don't force-push once you received the first review._ # Issue `from_chars` (https://en.cppreference.com/w/cpp/utility/from_chars.html) is locale-independent, std::string_view friendly, never allocates and that's why should be slightly faster (of course it is not a bottleneck, but why not if we can 😄 )......
diff --git a/src/baldr/laneconnectivity.cc b/src/baldr/laneconnectivity.cc index ac090a4a71..eb6c5ccecd 100644 --- a/src/baldr/laneconnectivity.cc +++ b/src/baldr/laneconnectivity.cc @@ -1,4 +1,5 @@ #include "baldr/laneconnectivity.h" +#include "midgard/util.h" #include <boost/algorithm/string/classification.hpp> ...
2
2
1
[{"id": "G0", "claim": "to_int should be split into two versions - one that throws and a second one that returns an optional value, since with the amount of integers parsed the non-throwing variant should make a noticeable performance difference.", "category": "performance", "verdict": "supported", "priority": "P2", "s...
null