Fix: minor formatting issues in README and metadata

Refer to #869
Now all the README and metadata files have gone through automated checks, including

markdown lint
A linter to enforce certain markdown rules: https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md. I've opted-out a few rules that are too strict.
README style check
Refer to /runtime/common-samples/issues/2017, a specific set of rules for our README format.
title consistency check
Like #903, this check does the following stuff to ensure the title of a sample is the same everywhere.

Titles

sample displayName name in ContentPlist.plist
sample’s folder name
sample’s README.md title
README.metadata.json title

Category names

sample's category name in ContentPlist.plist
sample’s enclosing category folder name
README.metadata.json category

metadata style check
This checks if the existing metadata is consistent with auto-generated counterpart.

With these checks, most if not all READMEs and metadata JSONs should be free of formatting issues.
Issue from linting script >200 lines:

/usr/bin/python3 /Users/tin10919/PycharmProjects/200707-GitHub-checks/test_main.py
**** mdl ****
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Line of sight (geoelement)/README.md:9: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Line of sight (location)/README.md:13: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Line of sight (location)/README.md:18: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Statistical query (group and sort)/README.md:5: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Viewshed (GeoElement)/README.md:35: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Viewshed (camera)/README.md:3: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Viewshed (geoprocessing)/README.md:9: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Viewshed (location)/README.md:3: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Analysis/Viewshed (location)/README.md:18: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Cloud & Portal/Authenticate with OAuth/README.md:24: MD005 Inconsistent indentation for list items at the same level
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Cloud & Portal/Authenticate with OAuth/README.md:25: MD005 Inconsistent indentation for list items at the same level
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Cloud & Portal/Authenticate with OAuth/README.md:26: MD005 Inconsistent indentation for list items at the same level
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Cloud & Portal/Authenticate with OAuth/README.md:24: MD006 Consider starting bulleted lists at the beginning of the line
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Cloud & Portal/Authenticate with OAuth/README.md:5: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Cloud & Portal/Authenticate with OAuth/README.md:30: MD034 Bare URL used
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Cloud & Portal/List portal group users/README.md:13: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Display information/Picture marker symbols/README.md:28: MD004 Unordered list style
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Display information/Picture marker symbols/README.md:29: MD004 Unordered list style
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Display information/Show callout/README.md:18: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Display information/Show callout/README.md:19: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Display information/Show callout/README.md:20: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Display information/Simple marker symbol/README.md:18: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Edit data/Edit feature attachments/README.md:20: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Edit data/Edit feature attachments/README.md:38: MD012 Multiple consecutive blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Edit data/Edit features (connected)/README.md:11: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Edit data/Edit features (connected)/README.md:15: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Edit data/Update geometries (feature service)/README.md:22: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Add delete related features/README.md:33: MD022 Headers should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Change feature layer renderer/README.md:14: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Change feature layer renderer/README.md:32: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature collection layer/README.md:17: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature collection layer/README.md:18: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature collection layer/README.md:19: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature collection layer/README.md:20: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature collection layer/README.md:21: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature collection layer/README.md:22: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer (geodatabase)/README.md:9: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer (geodatabase)/README.md:18: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer (geodatabase)/README.md:41: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer (geodatabase)/README.md:41: MD034 Bare URL used
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer (geodatabase)/README.md:43: MD034 Bare URL used
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer (geopackage)/README.md:20: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer definition expression/README.md:3: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer rendering mode (scene)/README.md:21: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer rendering mode (scene)/README.md:22: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Feature layer selection/README.md:20: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Service feature table (cache)/README.md:29: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Features/Service feature table (no cache)/README.md:30: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Geometry/Buffer/README.md:32: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Geometry/Clip geometry/README.md:17: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Geometry/Clip geometry/README.md:18: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Geometry/Spatial operations/README.md:19: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Geometry/Spatial operations/README.md:20: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Geometry/Spatial operations/README.md:21: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Geometry/Spatial operations/README.md:22: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/ArcGIS tiled layer (tile cache)/README.md:12: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Blend renderer/README.md:9: MD012 Multiple consecutive blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Browse WFS layers/README.md:13: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Browse WFS layers/README.md:19: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Browse WFS layers/README.md:23: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Browse WFS layers/README.md:24: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Dictionary renderer with feature layer/README.md:9: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Display a WFS layer/README.md:17: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Display annotation/README.md:11: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Display annotation/README.md:27: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Display subtype feature layer/README.md:16: MD022 Headers should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Display subtype feature layer/README.md:17: MD032 Lists should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Identify KML features/README.md:26: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Load WFS with XML query/README.md:14: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Manage sublayers/README.md:8: MD025 Multiple top level headers in the same document
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/OpenStreetMap layer/README.md:29: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Show labels on layers/README.md:9: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Symbolize shapefile/README.md:13: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Layers/Web tiled layer/README.md:18: MD032 Lists should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Display drawing status/README.md:18: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Generate offline map (basemap by reference)/README.md:33: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Generate offline map (basemap by reference)/README.md:35: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Generate offline map (overrides)/README.md:29: MD007 Unordered list indentation
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Identify layers/README.md:18: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Map reference scale/README.md:12: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Map reference scale/README.md:32: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Mobile map (search and route)/README.md:10: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Set initial map area/README.md:21: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Set initial map area/README.md:22: MD022 Headers should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Set map spatial reference/README.md:22: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Set map spatial reference/README.md:23: MD022 Headers should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Set min-max scale/README.md:20: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Set min-max scale/README.md:21: MD022 Headers should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Maps/Show magnifier/README.md:19: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:17: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:18: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:19: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:20: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:21: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:22: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:23: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:24: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:25: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:29: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:30: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:31: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:32: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:33: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:34: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:35: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to an incident (interactive)/README.md:36: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to multiple incidents (service)/README.md:31: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to multiple incidents (service)/README.md:32: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to multiple incidents (service)/README.md:33: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to multiple incidents (service)/README.md:34: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to multiple incidents (service)/README.md:35: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to multiple incidents (service)/README.md:36: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to multiple incidents (service)/README.md:37: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find closest facility to multiple incidents (service)/README.md:38: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find route/README.md:27: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find route/README.md:28: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find route/README.md:29: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find route/README.md:30: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find route/README.md:31: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find route/README.md:32: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find service area interactive/README.md:18: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Find service area interactive/README.md:16: MD032 Lists should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Offline routing/README.md:14: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Route & Directions/Route around barriers/README.md:16: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Animate 3D graphic/README.md:25: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Change atmosphere effect/README.md:13: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Change atmosphere effect/README.md:19: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Change atmosphere effect/README.md:20: MD022 Headers should be surrounded by blank lines
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Choose camera controller/README.md:17: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Choose camera controller/README.md:18: MD030 Spaces after list markers
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Extrude graphics/README.md:19: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Extrude graphics/README.md:20: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Extrude graphics/README.md:21: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Extrude graphics/README.md:22: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Extrude graphics/README.md:23: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Open mobile scene (scene package)/README.md:16: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Open mobile scene (scene package)/README.md:31: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Open mobile scene (scene package)/README.md:31: MD010 Hard tabs
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Scene layer (URL)/README.md:19: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/Surface placements/README.md:17: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Scenes/View content beneath the terrain surface/README.md:19: MD029 Ordered list item prefix
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Search/Find place/README.md:35: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Search/Offline geocode/README.md:17: MD009 Trailing spaces
/Users/tin10919/Desktop/Ting/arcgis-runtime-samples-ios/arcgis-ios-sdk-samples/Utility Network/Perform valve isolation trace/README.md:25: MD009 Trailing spaces
A detailed description of the rules is available at https://github.com/markdownlint/markdownlint/blob/master/docs/RULES.md
**** README_style_checker ****

Honor mobile map package expiration date - Error header - Unexpected header or extra whitespace - "{'Offline Data'}".
Map reference scale - Error header - Unexpected header or extra whitespace - "{'Additional Information'}".
Map reference scale - Error APIs - APIs are not sorted.
Manage operational layers - Error APIs - APIs are not sorted.
Set initial map area - Error APIs - APIs are not sorted.
Set initial map area - Error tags - Tags are not sorted.
Apply scheduled updates to preplanned map area - Error tags - Tags are not sorted.
Display a map - Error APIs - APIs are not sorted.
Change map view background - Error tags - Tags are not sorted.
Display drawing status - Error APIs - APIs are not sorted.
Generate offline map (basemap by reference) - Error APIs - APIs are not sorted.
Read a geopackage - Error tags - Wrong letter case for tag: "GeoPackage".
Set map spatial reference - Error tags - Wrong letter case for tag: "SpatialReference".
Map loaded - Error tags - Wrong letter case for tag: "loadStatus".
Download preplanned map - Error APIs - APIs are not sorted.
Display scenes in tabletop AR - Error APIs - APIs are not sorted.
Explore scenes in flyover AR - Error APIs - APIs are not sorted.
Navigate in AR - Error APIs - APIs are not sorted.
Collect data in AR - Error APIs - APIs are not sorted.
Create terrain surface from a local tile package - Error header - Unexpected header or extra whitespace - "{'Use Case'}".
Create terrain surface from a local tile package - Error tags - Tags are not sorted.
Open mobile scene (scene package) - Error header - Missing essential header(s) - "{'Use case'}".
Create terrain surface from a local raster - Error tags - Tags are not sorted.
Open a scene (portal item) - Error APIs - APIs are not sorted.
Display a scene - Error APIs - APIs are not sorted.
Surface placements - Error APIs - APIs are not sorted.
Add a point scene layer - Error tags - Tags are not sorted.
Animate 3D graphic - Error APIs - APIs are not sorted.
Choose camera controller - Error APIs - APIs are not sorted.
Integrated Windows Authentication - Error title - Wrong letter case for word: "Windows" in title.
Token authentication - Error header - Unexpected header or extra whitespace - "{'Use Case'}".
Viewshed (GeoElement) - Error title - Wrong letter case for word: "GeoElement" in title.
Statistical query - Error APIs - APIs are not sorted.
Viewshed (location) - Error tags - Wrong letter case for tag: "LocationViewshed".
Blend renderer - Error header - Missing essential header(s) - "{'Use case'}".
Display annotation - Error header - Unexpected header or extra whitespace - "{'About the data ', 'How to use the sample '}".
Control annotation sublayer visibility - Error header - Unexpected header or extra whitespace - "{'Offline Data'}".
ArcGIS tiled layer (tile cache) - Error header - Unexpected header or extra whitespace - "{'How to use the sample    '}".
ArcGIS tiled layer (tile cache) - Error APIs - APIs are not sorted.
ArcGIS tiled layer (URL) - Error tags - Tags are not sorted.
Browse WFS layers - Error APIs - APIs are not sorted.
Manage sublayers - Error header - Missing essential header(s) - "{'Use case'}".
Display KML network links - Error tags - Wrong letter case for tag: "Network Link".
Load WFS with XML query - Error header - Missing essential header(s) - "{'How to use the sample'}".
Web tiled layer - Error tags - Wrong letter case for tag: "Open Street Map".
Play a KML Tour - Error title - Wrong letter case for word: "Tour" in title.
Play a KML Tour - Error APIs - APIs are not sorted.
Play a KML Tour - Error tags - Tags are not sorted.
Display a WFS layer - Error APIs - APIs are not sorted.
Display a WFS layer - Error tags - Tags are not sorted.
Query a map image sublayer - Error APIs - APIs are not sorted.
Dictionary renderer with feature layer - Error tags - Wrong letter case for tag: "DictionaryRenderer".
Change sublayer renderer - Error APIs - APIs are not sorted.
OpenStreetMap layer - Error tags - Wrong letter case for tag: "OpenStreetMap".
Colormap renderer - Error header - Unexpected header or extra whitespace - "{'Use Case'}".
Colormap renderer - Error tags - Tags are not sorted.
Trace utility network - Error APIs - APIs are not sorted.
Perform valve isolation trace - Error APIs - APIs are not sorted.
Service feature table (no cache) - Error APIs - APIs are not sorted.
Feature layer rendering mode (scene) - Error APIs - APIs are not sorted.
Service feature table (manual cache) - Error APIs - APIs are not sorted.
Feature layer query - Error tags - Wrong letter case for tag: "Search and Query".
Find place - Error header - Unexpected header or extra whitespace - "{'About the data  '}".
Edit feature attachments - Error tags - Wrong letter case for tag: "Edit and Manage Data".
List transformations - Error APIs - APIs are not sorted.
Spatial relationships - Error APIs - APIs are not sorted.
Clip geometry - Error APIs - APIs are not sorted.
Densify and generalize - Error tags - Wrong letter case for tag: "Edit and Manage Data".
Spatial operations - Error APIs - APIs are not sorted.
Cut geometry - Error APIs - APIs are not sorted.
Buffer - Error APIs - APIs are not sorted.
Read symbols from a mobile style - Error header - Unexpected header or extra whitespace - "{'Offline Data'}".
Read symbols from a mobile style - Error tags - Tags are not sorted.
Simple marker symbol - Error tags - Wrong letter case for tag: "AGSSimpleMarkerSymbol".
Sketch on the map - Error tags - Wrong letter case for tag: "AGSGeometry".
Find closest facility to an incident (interactive) - Error tags - Tags are not sorted.
Offline routing - Error tags - Duplicate tags.

It seems though there are still 3 newly merged conflicts to be fixed. I'll create yet another PR to fix them and will build a preview site base on that. (Hopefully no other conflicts go into v.next before we merge the readme and metadata updates 🤞 .)


An error occurs in the docker linux environment

An error occurs in the docker linux environment. Please check.
os version

centos7.9-openjdk-11.0.10

You are going to have to provide significantly more information if you want anything to happen. Provide your code, the error that you are seeing, and what you are trying to do.

The binary is compiled with TLS support, so it goes looking for libssl.so. It doesn't find it in the docker image so it dies with this error. You can try a different base image, install libssl in your existing image or compile your own redis binary with TLS disabled.

@Marthym The binary is compiled with TLS support, so it goes looking for libssl.so. It doesn't find it in the docker image so it dies with this error. You can try any of these:
* a different base image,
* install libssl in your existing image,
* compile your own redis binary with TLS disabled.

With an image base on Ubuntu Jammy instead of Focal it seems OK

Sounds like you got it working.


Relation Matching for MetaQA

Hi,
I've been following this approach for a while, I've noticed that Relation Matching module has been added, however I couldn't find it for MetaQA/LSTM approach, will it be added later or is it not yet implemented?

Hi, I will try too add ASAP

Hi, in the paper you mentioned that relation matching was performed for the larger dataset to boost its performance and typically for relatively smaller KGs like MetaQA the answer is selected based on the highest score. Using only the highest score, it is not possible to achieve the reported results for MetaQA, as mentioned in #31 the best result for 3-hop questions is around 70. Did you use relation matching also for MetaQA/LSTM? If yes, it will be highly appreciated if you upload the code. Thank you.

@namadjidku Relation matching was needed for only 3-hop full setting in MetaQA since the paths are too long for the base model to handle properly. For 3-hop half, relation matching was not used (since it doesn't work well on incomplete graphs).
The code requires a bit of cleaning up before upload. Will be uploading it ASAP.

Hello, is there any updates for relation matching, to generate 3-hop model as state-of-the-art classifier.

Hi, is there any updates for Relation Matching code?

Not yet unfortunately. I will pin this issue until it gets added. However, based on more recent work in this area/MetaQA dataset, I would recommend against using EmbedKGQA in full KG setting - semantic parsing models should be used in such a setting IMO.
If needed, you can use the 0.728 number mentioned in #31 for reporting.


upgrade to bitcoin-php ^0.0.35

A new inspection was created.

A new inspection was created.

A new inspection was created.

The inspection completed: 50 new issues, 26 updated code elements


Embed Llama.cpp into Marsha for local usage

Currently getting to the third stage with Llama 2 13B but failing there.

70B took a lot longer (since only about 1/4th of the layers could fit on my GPU) required different params to llama.cpp that weren't predictable in any way, and actually did a worse job than 13B in my test run, unexpectedly.
Going back to 13B for the faster iteration speed (it's on par with OpenAI response times, if not the quality).


Remote Images?

Is it possible to use this great tool on images from another domain?
of course after they have been loaded.

Sadly because of it using canvas, it requires the image to be on the same server, so you'll either have to proxy it or make sure the server passes the Access-Control-Allow-Origin header with your hostname.

For CORS img.setAttribute('crossOrigin', 'anonymous') does the trick !

@jariz can you confirm that?
will:

Work?

Yes, just tested this and it does work. It can't be added to vibrant however, because vibrant expects the image to be loaded already. So simply add the attribute to the image (either programmatically or through html), add the 'load' event listener like normal and you're good to go.

@jariz please give the example code of adding load event listener. I integrated with instagram photo.

Uhh, this is 101 javascript, but something like
<img src="http://example.org/test.jpg" crossOrigin="anonymous">

document.querySelector("img").addEventListener(function() {
     // do your vibrant stuff here.
});

should do the trick

thanks!

This is a great repo! But I to am having this issue.
I cannot send the crossOrigin="anonymous" on my <img attribute as gets rejected by some servers. So I tried the setAtrribute but that didnt work either.
Any suggestions?
Code sample:
https://codesandbox.io/s/1jwL9vvEZ

No. You will have to ask the webmaster to enable CORS on the images, or rehost them yourself, there's sadly no other solution.

@jariz thanks for that. just quickly, how do I choose which color to use as the response? Your example logs a varying number (eg Vibrant, Muted etc). How do I say specifically only return vibrant for example?
Doing the below code always gets the response of the last hex in the swatch:
  matchCols = () => {
    const img = document.getElementById("favicon");
    var vibrant = new window.Vibrant(img);
    var swatches = vibrant.swatches();
    for (var swatch in swatches)
      if (swatches.hasOwnProperty(swatch) && swatches[swatch])
    this.setState({
      color: (swatch, swatches[swatch].getHex())
    });
        // console.log(swatch, swatches[swatch].getHex());
  };


vscode 1.83.0 freezes on folder with git, debian bookworm 12

Does this issue occur when all extensions are disabled?: Yes/No

VS Code Version: 1.83.0
OS Version: Debian GNU/Linux 12 (bookworm) amd64

Steps to Reproduce:

Create directory with a git tree with a size of 2.5M (size of .git = 2.5M)
Still occurs with disabled extensions
Still occurs in vscode insiders
Open vscode in that directory

This does not happen with a small git tree (tested with on one with a .git of 172K)
edit: This appears to be the same issue as https://github.com/microsoft/vscode/issues/188397. I don't get the error when running with --pasword-store=basic

Assigning to @deepak1556 to confirm whether this is indeed a duplicate.

Can you attach the cpu profile following the steps at https://github.com/microsoft/vscode/wiki/Performance-Issues#visual-studio-code-starts-up-slowly

Same here... 1.83.0, opened a medium repo, it freezes. Opening a folder with just a few files gives me no problems. This is a fresh install for me and it also freezes when I try to sign in to sync settings (gets stuck when I press the button 'sign in' that appears in the command input widget)

Unfortunately, since code freezes, best I can do is make a screenshot of those stats:

This fixes it for me: I can sync settings and load large repos
https://github.com/microsoft/vscode/issues/188397

Hey @deepak1556, this issue might need further attention.
@nigelvr, you can help us out by closing this issue if the problem no longer exists, or adding more information.

Based on the comments that --pasword-store=basic addresses the issue, merging to https://github.com/microsoft/vscode/issues/188397


converting a bunch of stray   to spaces

Doesn't matter, I know, but it makes the source a little easier to read.
I like deck.js, starting my first right now.

Once upon a time the design of this page was more fluid, before I said screw it and made it fixed width.  All of those nbsp were included to guard against orphans.  Many of them probably don't need this protection anymore.  The "Only Know HTML?" and "JS Badass" sections do break to a one-word line if removed (on OSX).  I haven't checked Windows browsers to see what other sections this change would effect.  Would love to remove what can be safely removed and keep the orphans away.


Make gltf-loader a dependency

Currently gltf loader is statically included, would be nice when it is a dependency. Available from:
https://github.com/johh/three-gltf-loader

Closed with https://github.com/Geodan/mapbox-3dtiles/commit/ed52d327ef5bd6a121c7c7d50c2bdfe4cdc27003


How do I pass statistics=true as a param to /projects?

Hi,
I need to collect the statistics for the projects on our gitlab instance.   This is done by adding &statistics=true to the /projects request.

I found my answer in the code, there exists an overload getProjects( ... boolean statistics, ...).

@aram535
You'll find overloaded methods like this because GitLab continually adds things like this, really hard to keep up with them ;-)


No way to configure the cert-manager-acmesolver image using Helm charts.

Describe the bug:
We are running cert manager behind a proxy and are able to configure the cert-manager-controller, cert-manager-webhook and cert-manager-cainjector Images using helm chart. But there is no way to configure cert-manager-acmesolver Image using helm chart. So there is image pull back off error always.
Expected behaviour:
cert-manager-acmesolver image repository  should be configurable  from helm chart.
Steps to reproduce the bug:
Deploy cert manager behind a proxy environment and use the ACME http01 solver.
Anything else we need to know?:
Environment details::

Kubernetes version (e.g. v1.10.2):
Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.7", GitCommit:"b4455102ef392bf7d594ef96b97a4caa79d729d9", GitTreeState:"clean", BuildDate:"2020-06-17T11:32:20Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

Cloud-provider/provisioner (e.g. GKE, kops AWS, etc): Bare metal k8s deployment

cert-manager version (e.g. v0.4.0): v0.16.0

Install method (e.g. helm or static manifests): Helm charts

/kind bug

There is a way: you can set  extraArgs[0]= --acme-http01-solver-image=<image>, we do this ourselves for the OLM deployment: https://github.com/jetstack/cert-manager-olm/blob/master/watches.yaml
/unkind bug
/triage support

@meyskens : Great !! Will try it out. Thanks a lot for your quick help :)


Show list of fuzzy fields as a note before the search form (fixes #46)

Fixes #46.
Shows a bulleted list of field names that will use 'strict' search when the 'enable strict searching' box is checked in lookup dialogs.
Adds a field to the Entity data container called 'fuzzy' (a boolean) for tracking which fields are fuzzy-able.

Closing in favor of #55


ALF Automation

Brackets: Please merge this pull request created by ALF. @ArturOledzki @pantkowiak @rajjain FYI

@walfgithub Can this be retargetted to master?


error in function vid_eval_motion: What is  motion_iou ??

Hey I'm trying to evaluate  my model but I get the following error:
eval_vid_detection :: accumulating: motion [0.0 1.0], area [0.0 0.0 100000.0 100000.0]
Traceback (most recent call last):
File "experiments/fgfa_rfcn/fgfa_rfcn_end2end_train_test.py", line 21, in
test.main()
File "experiments/fgfa_rfcn/../../fgfa_rfcn/test.py", line 58, in main
enable_detailed_eval=config.dataset.enable_detailed_eval)
File "experiments/fgfa_rfcn/../../fgfa_rfcn/function/test_rcnn.py", line 90, in test_rcnn
pred_eval_multiprocess(gpu_num, feat_predictors, aggr_predictors, test_datas, imdb, cfg, vis=vis, ignore_cache=ignore_cache, thresh=thresh, logger=logger)
File "experiments/fgfa_rfcn/../../fgfa_rfcn/core/tester.py", line 386, in pred_eval_multiprocess
info_str = imdb.evaluate_detections_multiprocess(res)
File "experiments/fgfa_rfcn/../../fgfa_rfcn/../lib/dataset/imagenet_vid.py", line 243, in evaluate_detections_multiprocess
info = self.do_python_eval_gen()
File "experiments/fgfa_rfcn/../../fgfa_rfcn/../lib/dataset/imagenet_vid.py", line 429, in do_python_eval_gen
motion_ranges, area_ranges, ovthresh=0.5)
File "experiments/fgfa_rfcn/../../fgfa_rfcn/../lib/dataset/imagenet_vid_eval_motion.py", line 240, in vid_eval_motion
if ig_gt_motion[k] & (ov > ovmax_ig):
IndexError: list index out of range
Im trying to undrstand what is the function vid_eval_motion, but it looks so complicated.
Anybody can explain what is the function do, and why I get this error?

Ok I think it happen since I use my own dataset, with multiple object in a image.
However it stil not clear for me what is motion_iou and what its value represented.
Thanks!

Hi, I am getting the same error during the testing of my FGFA implementation. How did you get around this error? I have been stuck on this error for some time.

@ron5569 @bhumit04  hi guys, I think motion iou is an indicator which represent object's speed according its paper,

An object’s speed is measured by its averaged intersection-over-union (IoU) scores with its corresponding instances in the nearby frames (±10 frames). The indicator is dubbed as “motion IoU”.

However I encounter the same error as yours. By reading imageinet_vid_eval_motion.py, I even guess there is only one class in provided gt_motion_iou.mat because its shape like (xxx,1):(.   How did you solve this problem?  Please give me a favor~

what is the size of total dataset VID and DET? can u give me exact link or please refer to this https://github.com/Scalsol/mega.pytorch/issues/73#issue-754884469


[Feature]: libsql crate support for turso

Describe the feature
This allows users to use the more beta libsql crate as opposed to the libsql_client crate which has some nicer features along with being Send+Sync (Connection at least)
Suggestion or Example of how the feature would be used
Pass in a libsql::Database object instead of a libsql_client::Client and then it would be available
Duplicate declaration

[X] I have searched the issues and this feature has not been requested before.

Also I'd be happy to do this just want to make sure there isn't any issues with the idea

Just wanted to throw this in here for the Engineering team but it looks like we can re-build the Turso database connection pretty easily according to this example since the remote connect method allows for a URL and an auth token (just like with the libsql_client crate): https://github.com/tursodatabase/libsql/blob/main/libsql/examples/example_v2.rs

Could you motivate further why libsql would be the better choice? libsql_client uses it internally for the "local backend" for local files. The latter is also more feature complete and is the recommended library to use.

https://github.com/libsql/libsql-client-rs/issues/52#issuecomment-1847968384
Just found this out, sorry for the late response

Looks good. We can't publish crates with git dependencies, so we need to wait until they publish theirs in order to support it.

Alright can 100% do this when it gets published

Awesome :D . Feel free to try it out in shuttle-turso and make a PR if it works well.

Awesome :D . Feel free to try it out in shuttle-turso and make a PR if it works well.

@jonaro00 I have a draft PR open which migrates to the new libsql crate https://github.com/shuttle-hq/shuttle/pull/1531 The changes on the shuttle side are pretty simple. There might be some changes to how database url's are handled, so I am waiting for a response by the shuttle team on that. Other than that, I feel that most is described in the PR itself. Being my first contribution I am not sure on how to properly test these changes (the unit tests succeed at least). What I can and plan to do is see how it works with a project of mine that makes use of shuttle and shuttle-turso.
I hope this contribution is useful and let me know what I might have missed!


SQLiteDecoder & Codable with NULL Values

Are null values actually supported by your SQLiteDecoder?
Build Information
CocoaPods, SQLite.swift version 0.12.2
iOS 13.4, XCode 11.4.1
General guidelines
I just tried to read an array of my table's contents, but then I got an exception.
In Coding.swift:235 I get an error by  QueryError.unexpectedNullValue.
Are null values within Codables supported?

No. You need to handle it yourself.
I came up with this if you wanna try :
Put this somewhere
protocol SQLiteCompatibleType: Encodable {}
extension Int: SQLiteCompatibleType {}
extension String: SQLiteCompatibleType {}
extension Bool: SQLiteCompatibleType {}
extension Double: SQLiteCompatibleType {}
extension Float: SQLiteCompatibleType {}
extension Data: SQLiteCompatibleType {}

extension KeyedEncodingContainerProtocol {
    mutating func encodeNullable<T>(_ value: T?, forKey key: Key) throws where T: SQLiteCompatibleType {
        if let unwrappedValue = value {
            if let int = unwrappedValue as? Int {
                try self.encode(int, forKey: key)
            } else if let double = unwrappedValue as? Double {
                try self.encode(double, forKey: key)
            } else if let float = unwrappedValue as? Float {
                try self.encode(float, forKey: key)
            } else if let bool = unwrappedValue as? Bool {
                try self.encode(bool, forKey: key)
            } else if let data = unwrappedValue as? Data {
                try self.encode(data, forKey: key)
            } else if let string = unwrappedValue as? String {
                try self.encode(string, forKey: key)
            } else {
                try self.encode(unwrappedValue, forKey: key)
            }
        } else {
            try self.encodeNil(forKey: key)
        }
    }
}

and change the following func in Coding.swift :
func encode<T>(_ value: T, forKey key: Key) throws where T: Swift.Encodable {
            if let data = value as? Data {
                self.encoder.setters.append(Expression(key.stringValue) <- data)
            } else if let string = value as? String {
                self.encoder.setters.append(Expression(key.stringValue) <- string)
            } else {
                let encoded = try JSONEncoder().encode(value)
                let string = String(data: encoded, encoding: .utf8)
                self.encoder.setters.append(Expression(key.stringValue) <- string)
            }
}

And then in func encode(to encoder: Encoder) throws in your object class definition, use encodeNullable for optional values.
Hope it will help :)

Thanks for your support, will try that.

I have added SQLIte.swift using SPM (Swift Package Manager). How do I update Coding.swift file code ?

@TenMaKo
I have added SQLIte.swift using SPM (Swift Package Manager). How do I update Coding.swift file code ?

I don’t use SPM so I’m not sure about this but I think you can’t cause SPM import pre-built packages.
Maybe you will need to fork this repo, modify the file and then import the lib from your own repo :/
Again, it’s just a guess.

@TenMaKo Don't you think you should create a PR and then merge this fix into master. More people are facing the issue..

@TenMaKo Don't you think you should create a PR and then merge this fix into master. More people are facing the issue..

No sorry cause this is just a workaround. A clean fix should make standard Codable usage for this lib handle optionals correctly.

@TenMaKo got it thanks for clarification...

@TenMaKo Feel free to open a PR to fix this issue


added comments for clarity & removed unnecessary checks

I have refined the 'fetch_transaction' function in the Solana Pay integration module

added improvements to the codebase

this includes variable names and comments for maintainability and readability & also removed redundant checks

hey, this condition isn't handled -- https://github.com/SuperteamDAO/solathon/pull/43/commits/6dcca87810cb09ae4efdcbbee0754a6f0504fcf7#diff-3a34bc15086665ca2ad85b293d025d1e9a5b565da3b89b714194bff399a8619dL80
where if there are no signatures. then fee payer is the account itself

hey, this condition isn't handled -- 6dcca87#diff-3a34bc15086665ca2ad85b293d025d1e9a5b565da3b89b714194bff399a8619dL80
where if there are no signatures. then fee payer is the account itself

it must be fixed now


MergeYaml recipe fileMatcher property is present in 7.x version but removed in 8.x versions

MergeYaml recipe fileMatcher is present in 7.x version but removed in 8.x version
causing the recipe changes to apply to all yml files in project and not only to specific files.
I am using

OpenRewrite recipe bom V2.3.1
Maven compiler plugin v3.8.0
rewrite-yaml v8.7.2 and 8.11.1

How are you running OpenRewrite?
Are you using the Maven plugin, Gradle plugin, Moderne CLI, Moderne.io or something else?
Maven plugin
Is your project a single module or a multi-module project?
Single Module
Can you share your configuration so that we can rule out any configuration issues?
I am using the Maven plugin, and my project is a single module project.
<plugin>
  <groupId>org.openrewrite.maven</groupId>
  <artifactId>rewrite-maven-plugin</artifactId>
  <version>3.8.0</version>
</plugin>
<dependency>
      <groupId>org.openrewrite</groupId>
      <artifactId>rewrite-yaml</artifactId>
      <scope>compile</scope>
</dependency>

org.openrewrite.yaml.MergeYaml:
      key: $
      yaml: >
        tasks:
          preBuild:
            - closure: startServer

      acceptTheirs: false
      fileMatcher: '**/jules.yml'
      objectIdentifyingProperty: name

What is the smallest, simplest way to reproduce the problem?
using the declarative approach of the above mentioned recipe in creating our own recipe and compile and run the jar on our projects to will apply the yaml changes to all the yml files in the project structure not only to jules.yml.
What did you expect to see?
We are expecting to revert the changes done to MergeYaml recipe to include back fileMatcher property and apply changes only to those files.
Like in above example only to jules.yml in all directories of project.
What did you see instead?
Right now after 8.x versions as the fileMatcher property is removed we see the changes getting applied to all the yml files in the project which is not expected.
What is expected to be done to fix it?
Earlier the code for the 7.11.0 and above version is
 @Override
    protected TreeVisitor<?, ExecutionContext> getSingleSourceApplicableTest() {
        return new HasSourcePath<>(fileMatcher);
    }

We need similar code to check which files to have the changes applied.
Are you interested in contributing a fix to OpenRewrite?
Yes i would like to contribute to openrewrite in fixing this bug.

Hi @vijay-chavakula ! We have indeed removed file matchers from individual recipes are recommend that folks use Preconditions instead:

https://docs.openrewrite.org/authoring-recipes/recipe-conventions-and-best-practices#use-preconditions
https://docs.openrewrite.org/reference/yaml-format-reference#preconditions

Preconditions allow you to limit where recipes are applied, similar to how you used fileMatcher before. For that you can use FindSourceFiles as a precondition:

https://docs.openrewrite.org/recipes/core/findsourcefiles

By using preconditions we no longer have to add fileMatcher options to some of the 1300+ recipes that we maintain, which helps simplify our individual recipe implementations. I hope that context and link to the docs helps!
I'll close this issue as I don't think there's anything to do on our side at the moment, but you can still reply and ask follow up questions below. If it turns out there's something to be done still we can reopen the issue.

hi @timtebeek, I tried in declarative approach for Preconditions.
type: specs.openrewrite.org/v1beta/recipe
name: net.example.recipe.yaml.AddingCassandraEnv
displayName: sample jules file
description: "sample jules file"
preconditions:
  - org.openrewrite.FindSourceFiles:
      filePattern: "**/jules.yml"
recipeList:
  - org.openrewrite.yaml.MergeYaml:
      key: $
      yaml: >
        buildConfig:
          env:
            variables:
              - CASSANDRA_HOST: "<IP_ADDRESS>"
      acceptTheirs: false
      objectIdentifyingProperty: value

What does above precodition do?
It checks if jules.yml is found in project and then if found then it appends the yaml content to all the yml files and not to jules.yml file.

@timtebeek can you kindly reopen this one please.

That's surprising  and disappointing to hear @vijay-chavakula ; are you able to reproduce that issue with a unit test in MergeYamlTest using org.openrewrite.test.RecipeSpec#recipeFromYaml to add the precondition?

We used only declarative approach for this as shown above so there is no unit test for the same, but yes it is reproducible, @timtebeek, can i contribute for this fix? can you guide me what are the steps to contribute for the fix for this issue.

You can start with a unit test similar to this one
https://github.com/openrewrite/rewrite/blob/b537267807c1af2948c39c12805741d9fc689c26/rewrite-java-test/src/test/java/org/openrewrite/java/search/HasJavaVersionTest.java#L63-L79
But then place it in MergeYamlTest and use the yaml recipe configuration that you shared above. If you put that in a draft pull request we can step through what's needed to fix your issue.

@timtebeek i have opened a PR for the fix of this issue https://github.com/openrewrite/rewrite/pull/3866
kindly help to review and merge.

@vijay-chavakula Maybe you can use the following test case as a basis to demonstrate the issue.
    @Test
    void mergeYamlAppliedWhenFileMatchesGivenPattern() {
        rewriteRun(
          spec -> spec
            .recipeFromYaml(
              """
                ---
                type: specs.openrewrite.org/v1beta/recipe
                name: test.recipe
                displayName: Test Recipe
                preconditions:
                  - org.openrewrite.FindSourceFiles:
                      filePattern: "**/jules.yml"
                recipeList:
                  - org.openrewrite.yaml.MergeYaml:
                      key: "$"
                      yaml: >
                        node: java
                      acceptTheirs: false
                """,
              "test.recipe"
            ),
          yaml(
            """
              service: db
              host: localhost
              """,
            """
              service: db
              host: localhost
              node: java
              """,
            spec -> spec.path("src/main/resources/jules.yml")
          ),
          yaml(
            """
              service: db
              host: localhost
              """,
            spec -> spec.path("src/main/resources/application.yml")
          )
        );
    }

I cannot contribute to this issue, can someone please pick this issue. @knutwannheden  above testcase i copied in my local and it failed.

I just ran the above unit test again after pasting it into
https://github.com/openrewrite/rewrite/blob/5b1ee6eb9715940665e89f7afcf5aea61720e0aa/rewrite-yaml/src/test/java/org/openrewrite/yaml/MergeYamlTest.java#L27
That test (now) passes, or perhaps already passed back in January. I'm leaning towards closing this issue until we're able to reproduce the issue. There have been quite some fixes in the past six months that might already show different behavior for you as well. Hope that's the case, but let us know if not; preferably with steps to reproduce.


Search has issues with words adjacent to puncutation characters

Describe the feature you'd like
https://github.com/BookStackApp/BookStack/issues/2095
Describe the benefits this would bring to existing BookStack users

Can the goal of this request already be achieved via other means?

Have you searched for an existing open/closed issue?

[X] I have searched for existing issues and none cover my fundamental request

How long have you been using BookStack?
Not using yet, just scoping
Additional context

Estimation Time : 3 Hour
Exploration Time : 6 Hour

--Exploration started

--Exploration Stop

Estimation Start

Estimation Stop


Remove confirmation alert after changing language

Language should change without confirmation dialog (cause this dialog has language that user probably doesn't understand). Let's remove it. Apply language and bring to the previous screen just by tapping on language's line

Also, is it possible to not restart app every time when we change language?

checked


Fix AWS Cognito source (Identity pools)

test current AWS Cognito Identity Pool source, fix if needed or replace with User Pool source

Couldn't make current AWS Cognito source working, ended up by replacing with new AWS CognitoUserPoolSource

I don't understand. We have a Cognito source already. Are you saying it does not work ? if yes we should fix it.
And/or are you saying that the CognitoUserPoolSource is a new source that does the same thing as the previous Cognito source ?

I just needed to have an issue to reflect my work on AWS Cognito. Besides, after some investigation I had an impression that User Pool is more common case for AWS Cognito event source while Identity Pool requires either AWS Mobile or JavaScript SDK to work with it. That is, until we figure out the flows to use AWS Cognito Identity Pool, I'd call User Poll our default AWS Cognito event source. Anyway, I'm sorry that I confused everyone with this issue

Shall we take action and remove or rename the old source in that case?

If we worry that Triggermesh users get confused by Cognito/CognitoUserPool sources, then I'd rename them, although I don't have a strong opinion about that


Feature/add composition

Project features
Interface

Created a class Nameable.

Implemented a method called correct_name that will raise a NotImplementedError.

Turned the Person class to Nameable

Person class inherits from Nameable
This class has a method correct_name implemented  returning the name attribute.

Decorator that inherits from Nameable.

In the constructor a nameable object is assigned from params to an instance variable.
Implemented the correct_name method that returns the result of the correct_name method of the @nameable.

CapitalizeDecorator and TrimmerDecorator

For the CapitalizeDecorator:

Created a class that inherits from the base Decorator class.
Implemented a method correct_name that capitalizes the output of @nameable.correct_name.

For the TrimmerDecorator:

Created a class that inherits from the base Decorator class.
Implementd a method correct_name that makes sure that the output of @nameable.correct_name has a maximum of 10 characters. If it's longer it trims the word.

thank you @tresorsawasawa


Add "community" column to late meal signup form

Apparently Kathy B has been dealing with some sloppy late signups on paper. It seems that it would be helpful to include a column just for the community.
Originally created by Willie Northway at 2015-12-02 02:10, migrated from redmine-#3703

Category set to Public Release

By Tom Smyth at 2017-01-26 06:31

Estimate set to 0.50 h

By Tom Smyth at 2017-01-26 07:33

Version set to 3.0.4

By Tom Smyth at 2017-01-26 19:39

Status changed from New to Closed

By Tom Smyth at 2017-01-26 07:52


CIF-1235 - Create the Core CIF Components library pages - for client-side components

Description

Added storybook to examples/ui.frontend project.
Added new dynamic storybook clientlib at /content/core-components-examples/library/commerce/storybook that is generated during the build. It contains all the static output files of storybook, so it can be delivered by AEM.
Added prettier.io formatting.
Added introduction section to storybook to describe the general setup for the React components.
Added documentation for the following components:

ResetPassword
CartTrigger
Cart (minicart + checkout)

The components use MockedProvider from the Apollo React client to mock the GraphQL endpoint. They don't actually talk to the Mock GraphQL servlet.
Added new navigation items in component library which links to the before-mentioned components.
Since the stories require some (not exported) GraphQL queries directly from the react-components project, it is required to always build with the fedDev profile to use the "snapshot" version of the React components. I therefore set the fedDev profile active by default.

You can build the whole project by running mvn clean install -Pinclude-wcm-components-examples in the examples folder.
Screenshots (if appropriate):

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

[X] I have signed the Adobe Open Source CLA.
[X] My change requires a change to the documentation.
[X] I have updated the documentation accordingly.
[X] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes and the overall coverage did not decrease.
[X] All unit tests pass on CircleCi.
[X] I ran all tests locally and they pass.

@cjelger I updated the description. The storybook build will fail without the fedDev profile on. I changed the pom to have it active by default. So the Cloudmanager build should pass.


Select arrow needs bottom positioning

See screenshot. "carbon-components": "9.84.12". The select's caret (happens to be inside 3rd accordion item) is higher than expected.
Notice how the bx--select__arrow has no bottom positioning:

But it used to:

This could cause migration issues.

Closing this to open as a React but, needs bx--select-input__wrapper class.

just a heads up it should also be resolved in React https://github.com/IBM/carbon-components-react/pull/2030, but let me know if it isn't after you've updated your dependencies

@emyarod rad. I see that PR is using bx--select-input__wrapper class so probably good, thanks!


Reproduce the results

Hi,
Thanks for sharing the code. I am interested in your paper.
I followed your instructions and ran the code with the default setting, but I cannot reproduce the results you proposed in the paper.
The following are the results I reproduced:
CHAMELEON: 'MAE': 0.032, CAMO: 'MAE': 0.075, COD10K: 'MAE': 0.033
I am wondering how to reproduce your results.
Thank you.

@redman0226
Thank you for your attention.
To get our results, first make sure to use the same device (RTX 2080Ti) and environment (See readme.md) as ours.
In addition, in the OneCycle learning rate decay strategy we adopted, a larger learning rate (0.05) was used. Such a setting can be used for regularization, which may also introduce some fluctuations in the training process.
This is what we hope to solve in our future work.

Dear author,
I downloaded your code directly and also have the results CAMO: "MAE": 0.076. You mentioned that the decay strategy is OneCycle. So I guess this strategy affects the final results. Would you provide the configuration of superparameters for OneCycle please? Further,  it is mentioned that "The learning rate is initialized to 0.05 and follows a linear warm-up and linear decay strategy" in your paper.

Hi, Thanks for sharing the code. I am interested in your paper. I followed your instructions and ran the code with the default setting, but I cannot reproduce the results you proposed in the paper. The following are the results I reproduced: CHAMELEON: 'MAE': 0.032, CAMO: 'MAE': 0.075, COD10K: 'MAE': 0.033 I am wondering how to reproduce your results. Thank you.

Hi,
Have you obtained the best results reported in the paper? If yes, how to get it?

Hi, Thanks for sharing the code. I am interested in your paper. I followed your instructions and ran the code with the default setting, but I cannot reproduce the results you proposed in the paper. The following are the results I reproduced: CHAMELEON: 'MAE': 0.032, CAMO: 'MAE': 0.075, COD10K: 'MAE': 0.033 I am wondering how to reproduce your results. Thank you.

Same result here. I guess it is best to provide the original config in paper for us to reproduce.

Hi, Thanks for sharing the code. I am interested in your paper. I followed your instructions and ran the code with the default setting, but I cannot reproduce the results you proposed in the paper. The following are the results I reproduced: CHAMELEON: 'MAE': 0.032, CAMO: 'MAE': 0.075, COD10K: 'MAE': 0.033 I am wondering how to reproduce your results. Thank you.

Same result here. I guess it is best to provide the original config in paper for us to reproduce.

Hello，
I have obtained the best results in the paper. I delete my pre-trained resnet50-19c8e357.pth and then follow the README again.

Hi, Thanks for sharing the code. I am interested in your paper. I followed your instructions and ran the code with the default setting, but I cannot reproduce the results you proposed in the paper. The following are the results I reproduced: CHAMELEON: 'MAE': 0.032, CAMO: 'MAE': 0.075, COD10K: 'MAE': 0.033 I am wondering how to reproduce your results. Thank you.

Same result here. I guess it is best to provide the original config in paper for us to reproduce.

Hello，
I have obtained the best results in the paper. I delete my pre-trained resnet50-19c8e357.pth and then follow the README again.

I see. Thanks so much for your answer.

Thanks for your comments and I am closing this issue now.
Please feel free to reopen it if you still have questions, or open an new issue.


Open the "automated error reports" on a separate repo

Could we have a separate GitHub repo and have the "automated error reports" opened as issues on that repo? I want to watch the main TagBot repo (this repo), but I don't want to get GitHub notifications for all of these automated error reports.
cc: @christopher-dG

Yeah that's a good idea. I'll make a new repo in this org?


Added support for fetching logs from Spark History

@superbobry thanks for the contribution! I'll start review this PR soon. In the past month I was having issue with our own spark cluster's history server api (probably a setup issue on our history server side) so I didn't get a chance to provide an out of box solution. I'll find a way to test it on my laptop

And a side note: Please attach a javadoc string to the HistorySource.scala below the headers so you leave your trace, like
/**
  * This class is used for .....
  *
  * @author superbobry
  * @since 1/5/17.
  */

I've reworked the implementation so that it doesn't write anything to disk. The only remaining downside is that we have to fully read the HTTP response before we can parse it into a sequence of Spark events. This is easy to fix (see TODO in HistoryApi.getLogs), but I wanted to get your opinion first.

We've been using this patch locally for a while now and there's an obvious (but nonetheless critical) issue with it: memory consumption. The current design is heavily biased towards Sparklint's original use-case: browsing a fixed amount of local files. It loads he whole contents of each file into memory and never unloads anything. Add constant updates to that scheme and OutOfMemory becomes an inevitable reality.
Do you have any ideas on how to best approach this limitation? I think the most straightforward way would be to make parsing on-demand and invalidate the results on timeout or memory pressure

@superbobry I'm thinking about some UI optimization. The history server will be providing only the list of (AppName, AppId), which eventually powers a dropdownlist on UI, and they get downloaded only when selected.
Similar to the github branch selection, whenever user selected the app, its log get downloaded and analyzed

I'm quite occupied during the week, if you can wait until this weekend, let me find an afternoon and finish it. Just several lines of code away to make this work! You are welcomed to do this as well if you have the appetite :)

I've got some local branch working with the UI I proposed. Going to finished the coding this weekend and open a new PR.

Hey @roboxue, did you have a moment to finish that UI patch? If not, could you open a PR with the version you have and I'll take it from there.

I've got the middle work here: https://github.com/groupon/sparklint/pull/49
So it has a directory structure right now if you boot up the server. The directory is lazily evaluated, clicking the list item in UI will activate the corresponding eventSource and start processing it.
Having migrate the history server code to there. This PR it self should be workable, other than some unit test not updated

Sorry about that, accidentally force-pushed an empty local branch.

Sidenote: this version doesn't work when Spark has compression disabled or when the codec used is different from Snappy.

I'm trying to USe the HistoryEventSource with a Spark 2.1 sparkhistory sserver and get a suprising error ```
{“level”: “ERROR”, “timestamp”: “2017-03-21 15:29:23,089", “classname”: “com.groupon.sparklint.SparklintServer”, “body”: Execution of History source poller [http://1c-98-ec-1d-4d-c8.pa4.hpc.criteo.prod:18082] failed with exception.}
java.lang.NumberFormatException: For input string: “1490106186214"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
...
at jawn.support.json4s.Parser$$anon$1.jint(Parser.scala:15)
...
Just adding it it here for the record, will try to investigate further ASAP.

Merging the changes to #49 . I have an entire day to work on this today. This branch has been frozen for too long..

@superbobry I've got the no snappy version with org.apache.commons.io.IOUtils.toString(zis)

@superbobry I've got the non-snappy version with org.apache.commons.io.IOUtils.toString(zis)

Nah, it's a bit more complex. I've spotted the issue while working on linkedin/dr-elephant. Here's a relevant file in Spark codebase: https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/io/CompressionCodec.scala#L46

I finally figured out the compress config around history server, this really took me a while. My company's hadoop cluster doesn't enable compression so I'm able to decode everything just fine. And It's a little bit hard for me to test for different compression codec at this moment, since I don't have any actual log files to test other than non-compressed version. I'll add a dropdown in the other branch to select codec...

I'll add a dropdown in the other branch to select codec...

I don't think you have to, the codec is either configured globally in Spark settings or can be determined from the filename inside the ZIP archive.

Thanks for the reminder, I'll create InputStream with a match on the file suffix based on https://github.com/apache/spark/blob/master/core/src/main/scala/org/apache/spark/io/CompressionCodec.scala#L55

#52 should have covered this, I've been testing using my history server without compress enabled. @superbobry would you like to check out the PR , sbt run and see if it likes your history server?


Auto-update Dependencies

Write GitHub Actions to auto-update dependencies

I would like work on this issue.

Hello @atapas,
I hope you are doing good.
**I have some doubts regarding the cron and node version.Here's the relevant code **

Currently i have scheduled ci  to run at every day using cron, Is it ok ?
Node vesrion is 14,  is it ok or shall chnage it lasted lts version ?

Yaml for auto update dependices
name: Update Dependencies

on:
 schedule:
    - cron: '0 0 * * *' # This runs the workflow daily at midnight

jobs:
 update:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout code
      uses: actions/checkout@v2

    - name: Setup Node.js
      uses: actions/setup-node@v2
      with:
        node-version: '14'

    - name: Install dependencies
      run: npm ci

    - name: Check for updates
      run: |
        npm outdated --json > outdated.json
        if [ -s outdated.json ]; then
          echo "Updates found"
          echo "::set-output name=updates_found::true"
        else
          echo "No updates found"
          echo "::set-output name=updates_found::false"
        fi
      id: check

    - name: Create Pull Request
      if: steps.check.outputs.updates_found == 'true'
      uses: peter-evans/create-pull-request@v3
      with:
        title: "Update dependencies"
        body: "This PR updates the dependencies to their latest versions."
        branch: "update-dependencies"
        delete-branch: true
        commit-message: "Update dependencies"
        labels: "dependencies"

With warn regards
Jayakumar

Hello @atapas,
I hope you are doing good.
I have some doubts regarding the cron and node version.Here's the relevant code

Currently i have scheduled ci  to run at every day using cron, Is it ok ?

Node vesrion is 14,  is it ok or shall i change it lasted lts version ?

Latest LTS Version: 20.11.1
Yaml for auto update dependices

name: Update Dependencies

on:

 schedule:

    - cron: '0 0 * * *' # This runs the workflow daily at midnight

jobs:

 update:

    runs-on: ubuntu-latest

    steps:

    - name: Checkout code

      uses: actions/checkout@v2

    - name: Setup Node.js

      uses: actions/setup-node@v2

      with:

        node-version: '14'

    - name: Install dependencies

      run: npm ci

    - name: Check for updates

      run: |

        npm outdated --json > outdated.json

        if [ -s outdated.json ]; then

          echo "Updates found"

          echo "::set-output name=updates_found::true"

        else

          echo "No updates found"

          echo "::set-output name=updates_found::false"

        fi

      id: check

    - name: Create Pull Request

      if: steps.check.outputs.updates_found == 'true'

      uses: peter-evans/create-pull-request@v3

      with:

        title: "Update dependencies"

        body: "This PR updates the dependencies to their latest versions."

        branch: "update-dependencies"

        delete-branch: true

        commit-message: "Update dependencies"

        labels: "dependencies"

With warn regards
Jayakumar

Hello @Jayakumar03
We can run it once a week.
Yes let's use the latest Node.
Thank you!

Hi @atapas
There is an issue with the conditional statement. Which will determine whether a packages is outdated or not.
Command :
npm outdated --json > outdated.json  || { echo "npm outdated failed with exit code $?"; exit 1; }
Do you have any idea what might be causing the problem?
Attaching screenshot for your reference

Hi @atapas
There is an issue with the conditional statement. Which will determine whether a packages is outdated or not. Command : npm outdated --json > outdated.json || { echo "npm outdated failed with exit code $?"; exit 1; }
I tried npm outdated --json > outdated'.json locally, it works great, the issue only occurs in the github action workflow.
Do you have any idea what might be causing the problem?
Attaching screenshot for your reference

Is it related to permission?

No, Work flow has nesscary permission.
But i did not make any changes now the workflow is working.

No, Work flow has nesscary permission.
But i did not make any changes now the workflow is working.

Is this issue solved?


Expand tilde in credential_file configuration

Currently the example configuration at https://hub.steampipe.io/plugins/turbot/gcp uses tildes to represent the users home directory. This doesn't seem to be supported by the GCP SDK however, this PR expands the tilde to the current users home directory to support using the credential_file configuration this way.
Haven't run any tests on this branch yet, I'll need to look into how to do that.
Integration test logs
TODO: Integration tests

Logs
Add passing integration test logs here

@RyanJarv This is great stuff - thanks!
I've used your code already in the (under development) CSV plugin, and it's working great - https://github.com/turbot/steampipe-plugin-csv/commit/a7f5f994765e16d5f577b7c1c967b5eb8a76dd0d
I believe this should be merged in, but will leave it with @rajlearner17 and @bigdatasourav to review and merge.


kubectl-mayastor get block-devices not listing all the storages

Mayator deployed using helm. I've noticed that on a few VMs, the command kubectl-mayastor get block-devices <worker> doesn't show the attached volume.
example
➜  mayastor git:(master) ✗ ~/kubectl-mayastor get block-devices ewazrcephnp02
 DEVNAME     DEVTYPE  SIZE      AVAILABLE  MODEL  DEVPATH                       MAJOR  MINOR  DEVLINKS
 /dev/loop0  disk     63.9MiB   yes               /devices/virtual/block/loop0  7      0
 /dev/loop1  disk     63.9MiB   yes               /devices/virtual/block/loop1  7      1
 /dev/loop2  disk     111.9MiB  yes               /devices/virtual/block/loop2  7      2
 /dev/loop3  disk     87MiB     yes               /devices/virtual/block/loop3  7      3
 /dev/loop4  disk     40.4MiB   yes               /devices/virtual/block/loop4  7      4
 /dev/loop5  disk     160.9MiB  yes               /devices/virtual/block/loop5  7      5
➜  mayastor git:(master) ✗

➜  ~ hostname
ewazrcephnp02
➜  ~ lsblk
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0     7:0    0  63.9M  1 loop /snap/core20/2105
loop1     7:1    0  63.9M  1 loop /snap/core20/2182
loop2     7:2    0 111.9M  1 loop /snap/lxd/24322
loop3     7:3    0    87M  1 loop /snap/lxd/27037
loop4     7:4    0  40.4M  1 loop /snap/snapd/20671
loop5     7:5    0 160.9M  1 loop /snap/microk8s/6364
sda       8:0    0   512G  0 disk
sdb       8:16   0    32G  0 disk
├─sdb1    8:17   0  31.9G  0 part /
├─sdb14   8:30   0     4M  0 part
└─sdb15   8:31   0   106M  0 part /boot/efi
sdc       8:32   0    32G  0 disk
└─sdc1    8:33   0    32G  0 part /mnt
➜  ~

There is a 512GB disk attached to /dev/sda which is not being listed. Any clue what might be the issue?

Hmm can you try using the argument --all?

You're not using the device already for a pool are you?

No further info. Please reopen if further help is needed.


Help with Morpho Devices

Can you help me with Search Results MorphoSmart 1300 series devices?
Do you have any sdk?

Sorry, @smohannagaraj. There is no module for Morpho. You may edit this module to make it useful for morpho too by forking this repo.


chore: update gopkg.in/yaml.v3 to 3.0.1

This is to fix a dependabot alert. Performed:
$ go mod edit -require<EMAIL_ADDRESS>$ go mod tidy
$ go test ./...

Unfortunately, go test failed for me, but for seemingly unrelated reasons (all context deadline exceeded):
$ go test ./...
--- FAIL: TestClient_WaitForReadable (5.00s)
    iox_client_test.go:47:
        	Error Trace:	iox_client_test.go:47
        	            				iox_client_ingester_writeinfo_test.go:57
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestClient_WaitForReadable
--- FAIL: TestClient (5.00s)
    iox_client_test.go:47:
        	Error Trace:	iox_client_test.go:47
        	            				iox_client_test.go:93
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestClient
FAIL
FAIL	github.com/influxdata/influxdb-iox-client-go	10.007s
?   	github.com/influxdata/influxdb-iox-client-go/internal/ingester	[no test files]
--- FAIL: TestSQLOpen (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:116
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestSQLOpen
--- FAIL: TestNormalLifeCycle (100.03s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:122
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestNormalLifeCycle
--- FAIL: TestTransactionsNotSupported (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:149
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestTransactionsNotSupported
--- FAIL: TestQueryCloseRowsEarly (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:158
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestQueryCloseRowsEarly
--- FAIL: TestExecNotSupported (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:191
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestExecNotSupported
--- FAIL: TestArgsNotSupported (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:199
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestArgsNotSupported
--- FAIL: TestConnQueryConstantString (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:232
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnQueryConstantString
--- FAIL: TestConnQueryConstantByteSlice (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:246
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnQueryConstantByteSlice
--- FAIL: TestConnQueryFailure (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:264
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnQueryFailure
--- FAIL: TestConnQueryRowUnsupportedType (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:273
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnQueryRowUnsupportedType
--- FAIL: TestConnRaw (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:287
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnRaw
--- FAIL: TestConnPingContextSuccess (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:302
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnPingContextSuccess
--- FAIL: TestConnPrepareContextSuccess (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:310
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnPrepareContextSuccess
--- FAIL: TestConnQueryContextSuccess (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:320
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnQueryContextSuccess
--- FAIL: TestConnQueryContextFailureRetry (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:337
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestConnQueryContextFailureRetry
--- FAIL: TestRowsColumnTypeDatabaseTypeName (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:357
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestRowsColumnTypeDatabaseTypeName
--- FAIL: TestStmtQueryContextCancel (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:374
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestStmtQueryContextCancel
--- FAIL: TestStmtQueryContextSuccess (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:388
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestStmtQueryContextSuccess
--- FAIL: TestRowsColumnTypes (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:408
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestRowsColumnTypes
--- FAIL: TestQueryLifeCycle (5.00s)
    driver_test.go:51:
        	Error Trace:	driver_test.go:51
        	            				driver_test.go:491
        	Error:      	Received unexpected error:
        	            	context deadline exceeded
        	Test:       	TestQueryLifeCycle
FAIL
FAIL	github.com/influxdata/influxdb-iox-client-go/ioxsql	195.078s
FAIL
[1]

Indeed, I get the same errors when running the testsuite against current main.

Thanks for the reviews!


feat: Utilize all available TypeScript's codefixes automatically

TS team is adding codefixes for new features to help developers fix the code in IDEs.
We can have a plugin to codefix to utilize them automatically (all to to have some allowed list) instead of doing this one by one
This will help to fix code in advance as soon as TS team released codefixes.
https://github.com/microsoft/TypeScript/tree/main/src/services/codefixes

This will likely include leveraging ts jsDoc fixes for type inference


Request to move repo under NW Userland

Hi @sanusart!
I'm a member of NW Utils. I'm trying to consolidate NW tooling so it's easier to find useful projects and give much needed life to stagnant ones.
Hope to chat soon!
Best Regards
Ayush

Hey @A9U3HC this one is pretty old and unmaintained. Are you sure?

@sanusart Yup - this may sound crazy but people are using all sorts of outdated tools for their builds! By moving the project under the NW Utils org, it allows the project at receive fixes/feats and at the very least be in maintainance mode.

Sure thing then,
@morsdyce any objections?

Nope, feel free to move it

@A9U3HC I think I need to be a member

@morsdyce @sanusart thanks!

@A9U3HC thank you!


Fix unset PassFunc

Resolved sigstore/cosign#2545
Summary
Fixing issue #2545
Release Note

Bug fix for incorrect key password handling on attest-blob command.

@cpanato just did a rebase because of conflict with the new v2 dependency changes on main.

Wow that was a fast review. I accidentally click re-review already as I was looking around the PR.

Wow that was a fast review. I accidentally click re-review already as I was looking around the PR.

nothing changed, you did a rebase only :)


Method for providing extra props?

Is it currently possible or are there plans to support adding extra props to a component that can then be passed on to the passthrough arguments?
Example:
Most of my Panels are only text, so I have some padding for the content:
content: {
  class: 'p-4 sm:p-6'
}

I would like the possibility to also have panels with no margins since that works better for some content.
Ideally I would be able to do something like this:
// MyComponent.vue
<Panel noMargin header="Foo">
  <AnotherComponent />
</Panel>

and then change my preset to the following:
content: {
  class: [
    { 'p-4 sm:p-6': props.noMargin !== true }
  ]
}

Hi, currently, this is not possible. But you can add class, and using the has- utility in the preset, you can achieve a similar outcome.
https://tailwindcss.com/docs/hover-focus-and-other-states#styling-based-on-descendants


refactor(core): normalize orderby in QueryObject

🏆 Enhancements
Currently, Superset hasn't got a consistent order by clause in the v1 query API.

Some Charts can generate order by with ASC, some charts can't.
The Superset query always appends the limit clause, but often forgets to append the order by clause. (This can lead to inconsistent query results once the data has changed.)
There are 3 ways of orderby definitions in QueryObject. (a: order_desc and timeseries_limit_metric, b: first of metrics and form_data.sort_by_metric, c: orderby)

This PR implements a uniform approach to orderby, avoiding to processing of each viz.

The codebase on this repo has been moved to the main Apache Superset repo, and consequently the repo is in the process of being archived. See the Superset Improvement Proposal for details: https://github.com/apache/superset/issues/13013 . While all currently open issues and PRs will be closed, we encourage you to reopen this PR on the main repo, which should be as simple as moving over any code changes as follows:

core packages: packages/** (this repo) -> superset-frontend/packages/** (main repo)
plugins: plugins/** (this repo) -> superset-frontend/plugins/** (main repo)

If you need help with the migration, please post a message on the SIP or reach out on the community Slack.


GPU memory wrongly calculated for dolly-v2-12b

System Info
compute_environment: LOCAL_MACHINE
distributed_type: 'NO'
downcast_bf16: 'no'
gpu_ids: all
machine_rank: 0
main_training_function: main
mixed_precision: bf16
num_machines: 1
num_processes: 1
rdzv_backend: static
same_network: true
tpu_env: []
tpu_use_cluster: false
tpu_use_sudo: false
use_cpu: false

I am using accelerate and transformers from source (master and Python 3.9.16

Information

[ ] The official example scripts
[X] My own modified scripts

Tasks

[ ] One of the scripts in the examples/ folder of Accelerate or an officially supported no_trainer script in the examples folder of the transformers repo (such as run_no_trainer_glue.py)
[X] My own task or dataset (give details below)

Reproduction
Reproducible example:
import time
from accelerate import init_empty_weights, load_checkpoint_and_dispatch, infer_auto_device_map
from transformers import AutoConfig, AutoModelForCausalLM, AutoTokenizer
start_time = time.time()

### Select model
## Dolly
checkpoint = "/extradata/model/dolly-v2-12b-sharded-bf16"
no_split_module_classes=["GPTNeoXLayer"] # these modules should not be split on different devices

## GPT-j
# checkpoint = "/extradata/model/sharded-gpt-j-6B"
# no_split_module_classes=["GPTJBlock"]

load_in_8bit = False
if load_in_8bit:
    data_type = "int8" # this is not LLM.int8()
    gpu_memory = "3GiB"
else:
    data_type = "bfloat16"  # or float16
    gpu_memory = "6GiB"

config = AutoConfig.from_pretrained(checkpoint)

with init_empty_weights():
    model = AutoModelForCausalLM.from_config(config)
# print(model) # view model config

# Note that loading the model with from_config in Transformers does not tie the weights, which may cause issue when loading a checkpoint that does not contain duplicate keys for the tied weights. So you should tie the weights before loading the checkpoint.
model.tie_weights()

# device_map = "auto" # "auto", "balanced", "balanced_low_0", "sequential"; irrelevant for single GPU; does not work for dolly due to the bug mentioned below
device_map = infer_auto_device_map(model,
                                   max_memory={0: gpu_memory, "cpu": "30GiB"}, # bug: for some reason this uses more than twice as much memory on the GPU
                                   no_split_module_classes=no_split_module_classes,
                                   dtype=data_type)

print(device_map) # see which layers are on GPU and which on CPU

model = load_checkpoint_and_dispatch(
    model=model,
    checkpoint=checkpoint,
    device_map=device_map
)

# print(model.hf_device_map)
print(f"Loading time: {time.time() - start_time}")

Expected behavior
I'd expect this code to use 6GB of GPU memory. However, it utilizes more than 13GB on my T4 with 16GB.
device_map = "auto" gave a CUDA out of memory error, thus I discovered that for some reason the device map is over allocating. Also setting gpu_memory  to a higher value, say 10GB, gives an out of memory error.
If I use GPT-J instead everything works as expected. Also the auto device map produces no error.

Is the model you are using diegi97/dolly-v2-12b-sharded-bf16? We can't reproduce the bug with a model you only have locally, we need to have access to it.

Yes, it was that model (sorry forgot to change the links to hub). Strange, then it should be a problem with my machine. I'll close the bug. Thank you!

The issue is that you are not loading your model in bfloat16s, so it is in float32 which is double the size. You need to add
with init_empty_weights():
    model = AutoModelForCausalLM.from_config(config, torch_dtype=torch.bfloat16)

Thanks, that was it :)


Firefox 63.0.3 (64 bit) don't work

It doesn't work, the example page does not work too ( https://jonas.hartmann.site/webcam-directive/#/ ).
There is no error only a warning:
navigator.mozGetUserMedia è stato sostituito da navigator.mediaDevices.getUserMedia
For me worked by
changing this:
videoElem.mozSrcObject = stream;
into:
videoElem.srcObject = stream;

I ran into the same issue
BTW: the englisjh version of the warning is:
navigator.mozGetUserMedia has been replaced by navigator.mediaDevices.getUserMedia

I think there is already a fix for this : https://github.com/jonashartmann/webcam-directive/pull/67
The problem is that this hasn't been published in a build. But if you grab the source for yourself from github, I think you might be okay.


Minor memory leak with mySound.play()

Bug: Playing a sound causes a small memory leak. This becomes much more noticeable when a sound is repeatedly played several thousand times.
The following code will cause memory usage on Chrome to rise by about 100mb every 10-15 seconds:
var audioContext;
try {
    audioContext = new (window.AudioContext || window.webkitAudioContext)();
} catch (e) {
    console.error(e);
}

var config = {
    type: Phaser.AUTO,
    width: 800,
    height: 600,
    parent: 'phaser-example',
    scene: {
        preload: preload,
        create: create,
        update: update
    },
    pixelArt: true,
    audio: {
        context: audioContext
    }
};

var game = new Phaser.Game(config);
var explosion;

function preload ()
{
    this.load.audio('explosion', ['assets/audio/SoundEffects/explosion.mp3']);
}

function create ()
{
    explosion = this.sound.add('explosion', {
        volume: 0.5
    });
}

function update ()
{
    if(explosion) {
        for (let i = 0; i < 1000; i++) {
            explosion.play();
        }
    }
}

Bug was encountered on a Windows 10 desktop using the Chrome browser on Phaser 3.10.1.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@maximtsai Does memory usage decrease at some point when running the code above or does it just keeps rising?
If it doesn't decrease, can you find out what objects are NOT being garbage collected and are causing memory leak?
This code creates 1000 AudioBufferSourceNode objects per frame, 60000 per second.
Is not a real world use case scenario, you won't even be able to hear any sound if you run this code.
Most likely Web Audio garbage collector is being overloaded and requires much more time to release all created objects.

I haven't been able to reproduce this issue with the 3.14 Phaser build and the conditions are indeed beyond what a normal game would expect to do so I guess this is a non-issue at worse.

I know the issue is several years old, but I've tested under the new 3.60 version, and with a reduced (and more realistic) audio creation rate, it's not leaking anything anymore (as long as gc has time to run)


Add Y-axis Control for TouchPanner.

I added Y-axis touch control with TouchPanner.
http://recordit.co/CTV4bxB24Z

I don't think we actually want this. Panning arbitrarily in Y, you can end up in really weird states. If you want this, I'd suggest a maximum absolute pitch.


added kafunk legacy module ConsumerInfo

Overall question, why parallelize? Does it give real benefits? From what I remember kafka process command from single client one-by-one.


Release 1.3.5

Hi,
I was wondering if there's any plan for a 1.3.5 release ?
https://github.com/Jasig/phpCAS/compare/1.3.4...master
Let me know if there are short issues that needs attention first !

I think the only open bug is currently #213 which is most likely a onliner to fix the visibility of some functions. If you could fix this we can release a version 1.3.5 shortly.

Just pushed the new version!

Top, thank you very much, we'll finally be able to use the validation callback in stable. Reminds me I should probably write an example for this one ?