issue with input data from cds for graphcast

when i use " ai-models --input cds --date 20230110 --time 0000 graphcast " testing the graphcast from cds era5, I got these files in "/tmp/climetlab-user" and errors  as follows. Is the model use the following .cache files to give the inference? And key='time' is related to what physical parameters (maybe the precipitation for accumulation value), should I revise download scripts the to run the inference?
files at /tmp/climetlab-user:
_- cache-2.db                                                                            grib-index-650de97dadfda5522ef6065aba6d53070b7f5474f2c88d3ecfae8603f179df6a.json
- cds-retriever-1a1d7637aaaf5616ccdf2c650bb81dd5b6613e9f032826fa57c364fbd61136c5.cache  grib-index-74269e34badef4add821af3244ea8d64cc621103c1d653d33b7896d707c62fcf.json
- cds-retriever-30f1a29a4568ca8f99f88d3e20200b657d39a0b2a54534e9875953cc04808e8d.cache  grib-index-8a9615581ca2c8859f1fe76024ba7ace185fd86c85b22b916c2befd7cec92fae.json
- cds-retriever-68098f31c2301f0a4c62ac25822c3a33eb28b44a8c8e22c17ba136f1067dff9e.cache  grib-index-a6fc434c8b189aa395892a5544257e762196fd7599dde47bf169ed1c9b301b12.json
- cds-retriever-7576dbeeafe941786b728196693f1945d77a76cd427776d24eccb6dbbfa42c02.cache_

error messages:
2023-09-18 19:06:25,607 INFO Creating training dataset
2023-09-18 19:06:28,613 INFO Creating input data: 3 minutes.
2023-09-18 19:06:28,613 INFO Total time: 3 minutes 1 second.
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/ai-models/bin/ai-models", line 8, in <module>
    sys.exit(main())
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/ai_models/__main__.py", line 274, in main
    _main()
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/ai_models/__main__.py", line 247, in _main
    model.run()
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/ai_models_graphcast/model.py", line 199, in run
    training_xarray, time_deltas = create_training_xarray(
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/ai_models_graphcast/input.py", line 60, in create_training_xarray
    fields_sfc.to_xarray().rename(GRIB_TO_XARRAY_SFC).isel(number=0, surface=0)
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/climetlab/readers/grib/xarray.py", line 106, in to_xarray
    result = xr.open_dataset(
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/xarray/backends/api.py", line 570, in open_dataset
    backend_ds = backend.open_dataset(
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/cfgrib/xarray_plugin.py", line 108, in open_dataset
    store = CfGribDataStore(
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/cfgrib/xarray_plugin.py", line 40, in __init__
    self.ds = opener(filename, **backend_kwargs)
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/cfgrib/dataset.py", line 750, in open_fieldset
    return open_from_index(filtered_index, read_keys, time_dims, extra_coords, **kwargs)
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/cfgrib/dataset.py", line 726, in open_from_index
    dimensions, variables, attributes, encoding = build_dataset_components(
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/cfgrib/dataset.py", line 680, in build_dataset_components
    dict_merge(variables, coord_vars)
  File "/home/user/anaconda3/envs/ai-models/lib/python3.10/site-packages/cfgrib/dataset.py", line 611, in dict_merge
    raise DatasetBuildError(
cfgrib.dataset.DatasetBuildError: key present and new value is different: key='time' value=Variable(dimensions=('time',), data=array([1673287200,<PHONE_NUMBER>])) new_value=Variable(dimensions=('time',), data=array([1673244000,<PHONE_NUMBER>]))

Hello, have you resolved the issue yet? I'm experiencing the same problem.

Can you please try again? We have made some changes to the code that should fix that issue.

For me the issue persists with the latest version of the code:
Traceback (most recent call last):
  File "/home/k/k202141/.conda/envs/ai-models/bin/ai-models", line 8, in <module>
    sys.exit(main())
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/ai_models/__main__.py", line 274, in main
    _main()
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/ai_models/__main__.py", line 247, in _main
    model.run()
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/ai_models_graphcast/model.py", line 199, in run
    training_xarray, time_deltas = create_training_xarray(
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/ai_models_graphcast/input.py", line 60, in create_training_xarray
    fields_sfc.to_xarray().rename(GRIB_TO_XARRAY_SFC).isel(number=0, surface=0)
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/climetlab/readers/grib/xarray.py", line 106, in to_xarray
    result = xr.open_dataset(
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/xarray/backends/api.py", line 570, in open_dataset
    backend_ds = backend.open_dataset(
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/cfgrib/xarray_plugin.py", line 108, in open_dataset
    store = CfGribDataStore(
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/cfgrib/xarray_plugin.py", line 40, in __init__
    self.ds = opener(filename, **backend_kwargs)
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/cfgrib/dataset.py", line 750, in open_fieldset
    return open_from_index(filtered_index, read_keys, time_dims, extra_coords, **kwargs)
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/cfgrib/dataset.py", line 726, in open_from_index
    dimensions, variables, attributes, encoding = build_dataset_components(
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/cfgrib/dataset.py", line 680, in build_dataset_components
    dict_merge(variables, coord_vars)
  File "/home/k/k202141/.conda/envs/ai-models/lib/python3.10/site-packages/cfgrib/dataset.py", line 611, in dict_merge
    raise DatasetBuildError(
cfgrib.dataset.DatasetBuildError: key present and new value is different: key='time' value=Variable(dimensions=('time',), data=array([1696010400,<PHONE_NUMBER>])) new_value=Variable(dimensions=('time',), data=array([1695967200,<PHONE_NUMBER>]))

Thanks a lot for your help @b8raoult! I follow the instruction in https://github.com/ecmwf-lab/ai-models-graphcast/issues/1  with the ai-model code 0.28 update from 0.25.
conda create -n ai-models028 python=3.10
conda activate ai-models028
conda install cudatoolkit==11.8.0
pip install ai-models==0.2.8

git clone https://github.com/ecmwf-lab/ai-models-graphcast.git
cd ai-models-graphcast
pip3 install --upgrade -e .
pip3 install -r requirements-gpu.txt -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

The above methened issue was solved. However, a small problem arrived as follows:
ai-models --input cds --date 20230110 --time 0000 graphcast
2023-10-08 18:31:16,385 INFO Writing results to graphcast.grib.
/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/gribapi/__init__.py:23: UserWarning: ecCodes 2.31.0 or higher is recommended. You are running ver
sion 2.30.0
  warnings.warn(
2023-10-08 18:31:16,677 INFO Model description:
GraphCast model at 0.25deg resolution, with 13 pressure levels. This model is
trained on ERA5 data from 1979 to 2017, and fine-tuned on HRES-fc0 data from
2016 to 2021 and can be causally evaluated on 2022 and later years. This model
does not take `total_precipitation_6hr` as inputs and can make predictions in an
operational setting (i.e., initialised from HRES-fc0).

2023-10-08 18:31:16,677 INFO Model license:
The model weights are licensed under the Creative Commons
Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). You
may obtain a copy of the License at:
https://creativecommons.org/licenses/by-nc-sa/4.0/.
The weights were trained on ERA5 data, see README for attribution statement.

2023-10-08 18:31:16,678 INFO Loading params/GraphCast_operational - ERA5-HRES 1979-2021 - resolution 0.25 - pressure levels 13 - mesh 2to6 - precipitation output only.n
pz: 0.3 second.
2023-10-08 18:31:16,678 INFO Building model: 0.3 second.
2023-10-08 18:31:16,678 INFO Loading surface fields from CDS
2023-10-08 18:31:16,751 INFO Loading pressure fields from CDS
2023-10-08 18:31:28,367 INFO Creating forcing variables: 11 seconds.
2023-10-08 18:31:33,994 INFO Converting GRIB to xarray: 5 seconds.
2023-10-08 18:31:37,726 INFO Reindexing: 3 seconds.
2023-10-08 18:31:37,759 INFO Creating training data: 21 seconds.
2023-10-08 18:31:44,758 INFO Extracting input targets: 6 seconds.
2023-10-08 18:31:44,758 INFO Creating input data (total): 28 seconds.
2023-10-08 18:31:45,771 INFO Unable to initialize backend 'rocm': NOT_FOUND: Could not find registered platform with name: "rocm". Available platform names are: CUDA
2023-10-08 18:31:45,772 INFO Unable to initialize backend 'tpu': INTERNAL: Failed to open libtpu.so: libtpu.so: cannot open shared object file: No such file or director
y
2023-10-08 18:32:38.298253: E external/xla/xla/service/slow_operation_alarm.cc:65] Constant folding an instruction is taking > 1s:

  %pad.149 = bf16[3114720,8]{1,0} pad(bf16[3114720,4]{1,0} %constant.365, bf16[] %constant.768), padding=0_0x0_4, metadata={op_name="jit(<unnamed wrapped function>)/jit
(main)/while/body/remat/mesh2grid_gnn/_embed/mesh2grid_gnn/sequential/encoder_edges_mesh2grid_mlp/linear_0/dot_general[dimension_numbers=(((2,), (0,)), ((), ())) precis
ion=None preferred_element_type=bfloat16]" source_file="/share/project_master/ai-models-graphcast/ai_models_graphcast/model.py" source_line=168}

This isn't necessarily a bug; constant-folding is inherently a trade-off between compilation time and speed at runtime. XLA has some guards that attempt to keep constan
t folding from taking too long, but fundamentally you'll always be able to come up with an input program that takes a long time.

If you'd like to file a bug, run with envvar XLA_FLAGS=--xla_dump_to=/tmp/foo and attach the results.
2023-10-08 18:32:43.824286: E external/xla/xla/service/slow_operation_alarm.cc:133] The operation took 6.526109636s
Constant folding an instruction is taking > 1s:

  %pad.149 = bf16[3114720,8]{1,0} pad(bf16[3114720,4]{1,0} %constant.365, bf16[] %constant.768), padding=0_0x0_4, metadata={op_name="jit(<unnamed wrapped function>)/jit
(main)/while/body/remat/mesh2grid_gnn/_embed/mesh2grid_gnn/sequential/encoder_edges_mesh2grid_mlp/linear_0/dot_general[dimension_numbers=(((2,), (0,)), ((), ())) precis
ion=None preferred_element_type=bfloat16]" source_file="/share/project_master/ai-models-graphcast/ai_models_graphcast/model.py" source_line=168}

This isn't necessarily a bug; constant-folding is inherently a trade-off between compilation time and speed at runtime. XLA has some guards that attempt to keep constan
t folding from taking too long, but fundamentally you'll always be able to come up with an input program that takes a long time.

If you'd like to file a bug, run with envvar XLA_FLAGS=--xla_dump_to=/tmp/foo and attach the results.
2023-10-08 18:32:46.097633: E external/xla/xla/service/slow_operation_alarm.cc:65] Constant folding an instruction is taking > 2s:

  %pad.1 = bf16[1618752,8]{1,0} pad(bf16[1618745,4]{1,0} %constant.374, bf16[] %constant.687), padding=0_7x0_4, metadata={op_name="jit(<unnamed wrapped function>)/jit(m
ain)/while/body/remat/grid2mesh_gnn/_embed/grid2mesh_gnn/sequential/encoder_edges_grid2mesh_mlp/linear_0/dot_general[dimension_numbers=(((2,), (0,)), ((), ())) precisio
n=None preferred_element_type=bfloat16]" source_file="/share/project_master/ai-models-graphcast/ai_models_graphcast/model.py" source_line=168}

This isn't necessarily a bug; constant-folding is inherently a trade-off between compilation time and speed at runtime. XLA has some guards that attempt to keep constan
t folding from taking too long, but fundamentally you'll always be able to come up with an input program that takes a long time.

If you'd like to file a bug, run with envvar XLA_FLAGS=--xla_dump_to=/tmp/foo and attach the results.
2023-10-08 18:32:47.464672: E external/xla/xla/service/slow_operation_alarm.cc:133] The operation took 3.367102627s
Constant folding an instruction is taking > 2s:

  %pad.1 = bf16[1618752,8]{1,0} pad(bf16[1618745,4]{1,0} %constant.374, bf16[] %constant.687), padding=0_7x0_4, metadata={op_name="jit(<unnamed wrapped function>)/jit(m
ain)/while/body/remat/grid2mesh_gnn/_embed/grid2mesh_gnn/sequential/encoder_edges_grid2mesh_mlp/linear_0/dot_general[dimension_numbers=(((2,), (0,)), ((), ())) precisio
n=None preferred_element_type=bfloat16]" source_file="/share/project_master/ai-models-graphcast/ai_models_graphcast/model.py" source_line=168}

This isn't necessarily a bug; constant-folding is inherently a trade-off between compilation time and speed at runtime. XLA has some guards that attempt to keep constan
t folding from taking too long, but fundamentally you'll always be able to come up with an input program that takes a long time.

If you'd like to file a bug, run with envvar XLA_FLAGS=--xla_dump_to=/tmp/foo and attach the results.
2023-10-08 18:33:02,922 INFO Doing full rollout prediction in JAX: 1 minute 18 seconds.
2023-10-08 18:33:02,922 INFO Converting output xarray to GRIB and saving
2023-10-08 18:33:18,984 ERROR Error setting expver=None
2023-10-08 18:33:18,984 ERROR Invalid type of value when setting key 'expver'.
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/climetlab/readers/grib/codes.py", line 243, in set
    return eccodes.codes_set(self.handle, name, value)
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/gribapi/gribapi.py", line 2133, in grib_set
    raise GribInternalError(
gribapi.errors.GribInternalError: Invalid type of value when setting key 'expver'.
2023-10-08 18:33:19,137 ERROR Error setting expver=None
2023-10-08 18:33:19,137 ERROR Invalid type of value when setting key 'expver'.
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/climetlab/readers/grib/codes.py", line 243, in set
    return eccodes.codes_set(self.handle, name, value)
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/gribapi/gribapi.py", line 2133, in grib_set
    raise GribInternalError(
...
2023-10-08 18:35:09,466 ERROR Error setting expver=None
2023-10-08 18:35:09,466 ERROR Invalid type of value when setting key 'expver'.
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/climetlab/readers/grib/codes.py", line 243, in set
    return eccodes.codes_set(self.handle, name, value)
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/gribapi/gribapi.py", line 2133, in grib_set
    raise GribInternalError(
gribapi.errors.GribInternalError: Invalid type of value when setting key 'expver'.
2023-10-08 18:35:09,474 INFO Saving output data: 2 minutes 6 seconds.
2023-10-08 18:35:09,545 INFO Total time: 3 minutes 53 seconds.

It seems that the problem happens in key-value settings while writting to grib file. Is the problem related with lower version of ECCODES? I open the output grib with xrray, it shows:
xr.open_dataset('graphcast.grib')
/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/gribapi/__init__.py:23: UserWarning: ecCodes 2.31.0 or higher is recommended. You are running ver
sion 2.30.0
  warnings.warn(
Ignoring index file 'graphcast.grib.923a8.idx' older than GRIB file
skipping variable: paramId==165 shortName='u10'
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/cfgrib/dataset.py", line 680, in build_dataset_components
    dict_merge(variables, coord_vars)
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/cfgrib/dataset.py", line 611, in dict_merge
    raise DatasetBuildError(
cfgrib.dataset.DatasetBuildError: key present and new value is different: key='heightAboveGround' value=Variable(dimensions=(), data=2.0) new_value=Variable(dimensions=
(), data=10.0)
skipping variable: paramId==166 shortName='v10'
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/cfgrib/dataset.py", line 680, in build_dataset_components
    dict_merge(variables, coord_vars)
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/cfgrib/dataset.py", line 611, in dict_merge
    raise DatasetBuildError(
cfgrib.dataset.DatasetBuildError: key present and new value is different: key='heightAboveGround' value=Variable(dimensions=(), data=2.0) new_value=Variable(dimensions=
(), data=10.0)
skipping variable: paramId==228 shortName='tp'
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/cfgrib/dataset.py", line 680, in build_dataset_components
    dict_merge(variables, coord_vars)
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/cfgrib/dataset.py", line 611, in dict_merge
    raise DatasetBuildError(
cfgrib.dataset.DatasetBuildError: key present and new value is different: key='time' value=Variable(dimensions=(), data=1673308800) new_value=Variable(dimensions=(), da
ta=1673287200)
<xarray.Dataset>
Dimensions:            (step: 40, latitude: 721, longitude: 1440,
                        isobaricInhPa: 13)
Coordinates:
    time               datetime64[ns] ...
  * step               (step) timedelta64[ns] 0 days 06:00:00 ... 10 days 00:...
    heightAboveGround  float64 ...
  * latitude           (latitude) float64 90.0 89.75 89.5 ... -89.5 -89.75 -90.0
  * longitude          (longitude) float64 0.0 0.25 0.5 ... 359.2 359.5 359.8
    valid_time         (step) datetime64[ns] ...
    meanSea            float64 ...
  * isobaricInhPa      (isobaricInhPa) float64 1e+03 925.0 850.0 ... 100.0 50.0
Data variables:
    t2m                (step, latitude, longitude) float32 ...
    msl                (step, latitude, longitude) float32 ...
    t                  (step, isobaricInhPa, latitude, longitude) float32 ...
    z                  (step, isobaricInhPa, latitude, longitude) float32 ...
    u                  (step, isobaricInhPa, latitude, longitude) float32 ...
    v                  (step, isobaricInhPa, latitude, longitude) float32 ...
    w                  (step, isobaricInhPa, latitude, longitude) float32 ...
    q                  (step, isobaricInhPa, latitude, longitude) float32 ...
Attributes:
    GRIB_edition:            2
    GRIB_centre:             ecmf
    GRIB_centreDescription:  European Centre for Medium-Range Weather Forecasts
    GRIB_subCentre:          0
    Conventions:             CF-1.7
    institution:             European Centre for Medium-Range Weather Forecasts
    history:                 2023-10-08T18:53 GRIB to CDM+CF via cfgrib-0.9.1...

Try the following --path 'output-{levtype}.grib. That will create two GRIB files, one for single level parameters, one for upper air parameters. If that does not help, try --path 'output-{shortName}.grib that should create a file per parameter.

I tried ai-models --input cds --date 20230110 --time 0000 graphcast --path 'output-{shortName}-{step}-{levtype}-{level}.grib, The output grid names are like "output-q-240-pl-300.grib". But I still got the error :
Traceback (most recent call last):
  File "/home/user/anaconda3/envs/ai-models028/lib/python3.10/site-packages/climetlab/readers/grib/codes.py", line 243, in set
    return eccodes.codes_set(self.handle, name, value)
  File "/home/sprixin/anaconda3/envs/ai-models028/lib/python3.10/site-packages/gribapi/gribapi.py", line 2133, in grib_set
    raise GribInternalError(
gribapi.errors.GribInternalError: Invalid type of value when setting key 'expver'.
2023-10-09 18:18:14,364 ERROR Error setting expver=None
2023-10-09 18:18:14,365 ERROR Invalid type of value when setting key 'expver'.
Traceback (most recent call last):

So I ADD output.to_netcdf('graphcast_test.nc') in output.py. Then I use the nc file as output. Is it proper for the inference? @b8raoult
def save_output_xarray(
    *,
    output,
    target_variables,
    write,
    all_fields,
    ordering,
    lead_time,
    hour_steps,
    lagged,
):
    LOG.info("Converting output xarray to GRIB and saving")

    ### output with netcdf format before converting to grib
    output.to_netcdf('graphcast_test.nc')

    output["total_precipitation_6hr"] = output.data_vars[
        "total_precipitation_6hr"
    ].cumsum(dim="time")

Ihave the same issue as @mixty1101 (issue comment) when running pangu. The error did not produce a week or so ago.
I tried with a path using {step} and with a path using no eccodes keys.

Can you give the exact command line that you run?

The exact command was:
    while read -r line
    do
    read -r date time lead_time <<< "$line"
    dir_out = "/scratch/lpoulain/panguweather/pangu_d_${date}_t_${time}_{step}h.grib"
    ONNXRUNTIME=onnxruntime-gpu ai-models --assets ./panguweather/ --input cds --date "$date" --time "$time" --lead-time "$lead_time" --path dir_out panguweather
    done < input_params_pangu.txt

I also provided dir_out only as pangu.grib with no change
Update
I added the following to the command line expver 1 (while I don't really understand what this is doing) and got the error ECCODES ERROR   :  Wrong length for experimentVersionNumber. It has to be 4 2023-10-12 11:20:06,826 ERROR Error setting expver=1

Thanks, the issue is fixed

I've got ai-models graphcast running. This is my conda setup for running graphcast
`cname=ai_models0211
conda create -n $cname -c conda-forge python=3.10 gpustat
conda activate $cname
conda install -c "nvidia/label/cuda-11.8.0" cuda-toolkit cuda-nvcc
python -m pip install --default-timeout=120 --no-cache-dir --upgrade
nvidia-cudnn-cu11==<IP_ADDRESS>
"jax[cuda11_local]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
pip install xxhash
pip install ai-models==0.2.11
git clone https://github.com/ecmwf-lab/ai-models-graphcast.git
cd ai-models-graphcast
pip3 install --upgrade -e .
pip3 install -r requirements-gpu.txt -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
`
To run graphcast
`nvidia-smi
gpustat -a
pip freeze | grep cud
mkdir -p $CONDA_PREFIX/etc/conda/activate.d
echo 'CUDNN_PATH=$(dirname $(python -c "import nvidia.cudnn;print(nvidia.cudnn.file)"))' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
echo 'export LD_LIBRARY_PATH=$CONDA_PREFIX/lib/:$CUDNN_PATH/lib:$LD_LIBRARY_PATH' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
export XLA_PYTHON_CLIENT_PREALLOCATE=false
export XLA_PYTHON_CLIENT_ALLOCATOR=platform
ai-models --input cds --date 20230110 --time 0000 --expver $cname graphcast --debug`


DataType::Dictionary is out of spec

Describe the bug
The schema.fbs and corresponding generated code has no concept of a Dictionary datatype.
However, we declare a DataType::Dictionary.
Additional context
As a user, I would like to be able to not have to change my DataType whenever I want to change an arrays' encoding. In the context of DataFusion, that uses DataType to declare the schema of the logical plan, this forbids optimizations at the physical level that e.g. would convert an array to a dictionary-encoded array, which is useful in any group-by or hashing operation.

table DictionaryEncoding is part of the definition of table Field, theoretically we could move the dictionary-ness onto Field. However, this would complicate downcasting, and given Field is part of Schema regardless this wouldn't change the fact that dictionary-ness is an inherent part of an array's schema.
Feel free to re-open if I have missed something


Add a new function in ExtensionsClassLoader

What changes are proposed in this pull request?
Add a new function in ExtensionsClassLoader
Why are the changes needed?
Adds a path where the class loader can load resource from.
Does this PR introduce any user facing changes?
NA

alluxio-bot, merge this please

alluxio-bot, merge this please


Idea: Remove '--sql' from string-start

Hi.
I just came across bqb a few days ago and I very much like its approach to query building.
I'm using vscodium to write my code and the syntax highlighter I use recognizes embedded SQL statements by the string --sql.
I also like to format longer SQL statements.
So a query can looks like this:
sql, err := bqb.New(`--sql
    INSERT INTO my_table (json_map, json_list)
    VALUES (?, ?)
    ' , bqb.JsonMap{"a": 1, "b": []string{"a","b","c"}},
    bqb.JsonList{"string",1,true,nil},
).ToRaw()

While it's syntactically no issue to have the --sql in the final string, I think it would be a good option to remove it. Especially when you think about query building where several --sql might be scattered around. Especially when they are appended and not preceded by a line break.
So my proposal ist to remove from every string passed, to remove any leading --sql\n.

Hi Skeeve,
I'm glad you like bqb!
I have never seen the --sql bit before, and wouldn't want to add an additional string replacement for this specific use case, as we'd need to handle the replacement for each part, and several users use BQB to generate thousands of bqb.Query instances quickly. If we could do that in a performant way, it's still kind of magic behavior that seems specific to the syntax highlighter you're using.
Does your formatter have a Go comment option, similar to this extension's usage: https://github.com/antonnyman/vscode-go-sql-highlight ?

Understood.
I installed the extension you recommended.
In the meantime I already had a string wrapper:
func sql(query string) string {
	if strings.HasPrefix(query, "--sql\n") {
		return query[6:]
	}
	return query
}

Playground link just in case someone wants it.

I have never seen the --sql bit before,

It's this extension: Inline SQL


[analyzer] Augmenting enums and enum values is not supported

The following test produce errors in the analyzer
// main_lib.dart

import augment 'aug_lib.dart';

enum E {
  e1;
}

main() {
  print(E);
}

// aug_lib.dart

augment library 'main_lib.dart';

augment enum E { // COMPILE_TIME_ERROR.DUPLICATE_DEFINITION.  The name 'E' is already defined.
  augment e1; //  SYNTACTIC_ERROR.EXPECTED_TOKEN.  Expected to find ','.
}

Augmentations specification uses this syntax, so there should be no error

Note that there is a certain overlap: The discussions in https://github.com/dart-lang/language/issues/3689 could give rise to changes about augmentations of enumerated types in a more broad sense. It is possible that we will make augmentations of enumerated types and their members a very restricted feature, or disallow augmentations of enumerated types entirely.


Work In Progress: commands: Show server error info in browser

Fixes #5284

The current set of information elements on the error page:

Error title
Error message
Error stack trace
Hugo version string

Oh, and that is not it is supposed to look ...


Add givPower historic Snapshots tables

https://github.com/Giveth/impact-graph/issues/750

Thanks @CarlosQ96 , great job.


Add a "LookAt" point to the room objects and characters

Benefit description
Clickables have a WalkTo point, representing the position a character has to reach when he walks to the object.
Since currently, the character walking function supports 8 possible directions, it would be nice if each clickable could be configured with a "LookAt" point so that no scripting is required to place and direction the character when it reaches the object on the scene.
Solution description
Mimicking the WalkTo point implementation, adding an helper to move around the room so that the character may face that element once it reaches the WalkTo point.
Exclusions
One possible alternative is to expose a "Look at direction" on each clickable, instead of adding a point. This may be simpler (you can just face that direction), but I see the following cons:

You are stuck with the currently defined 8 directions (probably not that much of a problem but still, less resilient to future improvements)
Creates inconsistency in the developers experience

Implications
One possible caveat is that, placing the point freely may end up in strange behaviors if only four of the eight character directions are implemented.
Imagine a bookshelf hotspot on the scene left side: you place the WalkTo point on the floor, on the right of the shelf; by instinct you the LookAt point on the shelf at eye-eight.
If you calculate the angle between the two points, the character may end up looking "north" instead of "west" as you expect, because the lookat point is on the near-left but far-up compared to the walkto point.
There may be no solution for this but - from previous experience - fixing this on the editor is pretty simple (just lower the lookat point a bit). The high affordance of the point helper should be enough for the devs to visually compose the scene in a way that makes sense.

Duplicated by #233. Keeping the newest one because it mentions the new gizmo system.


Add since and join parameters to entries endpoints

You can now request only entries that have been published since your provided UNIX timestamp via a since parameter.
I was also able to add a join parameter to toggle whether an entry's feed object gets joined into the entry itself. When join=disabled is sent as a URL parameter, entry JSON objects will contain a feed_id field rather than the feed, category, and icon objects that they normally have.
Closes #124

Partially implemented in commit 36dab8b5182215d53512525991cc23523bdf23dc.
Closing this because comments are not addressed and not mergable anymore.


Bump Python APIView version to 0.3.12

Enables CrossLanguagePackageId support

You need to update the version here also. https://github.com/Azure/azure-sdk-for-python/blob/main/eng/apiview_reqs.txt#L1


Bind "this" to defaultResolveFn if source is a class/object

Fixes #367

@dimitri-koenig would you mind sending a PR to use this instead? https://github.com/graphql/graphql-js/commit/c6a6388339b8c5af6b75ca14b6861497018bd19f

@stubailo: What do you mean exactly?

There we go: https://github.com/graphql/graphql-js/issues/979

I'll close this PR and open another one for the defaultFieldResolver import


🐛 wizard: fixes and improvements

Fixes indentation in origin.citation_full (see #1752).
Improves uploading message in snapshot step (see #1753).
Update docs and schema to stop encouraging the usage of date_published: latest.

wrong branch


Add priority "none"

Having warnings with no priorities would be helpful to show informational "warnings" that do not require any work to be done by the User, but would allow us to provide them with information about their code

Why don't you use priority LOW for warnings that need no work? I well-considered adding only 3 different priorities in the plug-in.
Is this feature planned to be used in a new plug-in?

Using the OWASP Dependency-Check Plugin as an example, instead of just showing the results with vulnerabilities we would like to show all of the results in the ResultAction.
The HIGH priority is used for files with vulnerabilities with High severities, the NORMAL priority is used for files with vulnerabilities with medium severities, the LOW priority is used for files with vulnerabilities with low severities.
We dont want to mess up the summary or the trend graphs by including the files/depenendencies without vulnerabilities in the LOW priority, so we need another NONE priority to include these in the ResultAction.

But can't you just map the priorities as this is done for the other (>50) parsers? I don't see a reason that this should not work in that case.

What do you mean by map the priorities? As I said in my example we do not want the files/dependencies without vulnerabilities to be included in the other priorities because we dont want to mess up the numbers in the summary or in the trend graph for the counts of high, medium, and low severity vulnerabilities. But we do still want to know how many files/dependencies were found without vulnerabilities. We would like to include these in the summary and the trend graph as their own entity.

I still don't get the point why an additional priority is required.
I mean that all available parsers currently have n priorities (n is a value between 1 and 20): each of these parsers map their values to the existing values HIGH, NORMAL or LOW.
Here an example for Findbugs: https://github.com/jenkinsci/findbugs-plugin/blob/master/plugin/src/main/java/hudson/plugins/findbugs/parser/FindBugsParser.java#L447
Or an example for Checkstyle https://github.com/jenkinsci/checkstyle-plugin/blob/master/src/main/java/hudson/plugins/checkstyle/parser/CheckStyleParser.java#L99
Why is this not possible in your case? You can use the following mapping for OWASP
HIGH -> HIGH
NORMAL -> NORMAL
LOW -> NORMAL
INFO -> LOW
What makes the warnings of INFO so special in your case? Is this something in your develeopment process or is there a different handling required by the plug-in? You even can set the minimum priority that is used to evaluate thresholds...


How to solve simple linear equations?

I'm trying to solve some simple equations like "0.15*(183-y)+0.3y=0.2183" is it possible to accomplish using this library?

Yes you can! 😄

Rewrite it as 0.15*(183-y)+0.3*x-0.2183
Use a root finding algorithm represented by Newton, Bisection or any other methods

We don't provide a direct way to solve that equation. You need a root finding algorithm. Check here 🙂

I'm getting an exeption:  ExpressionParserException: The given expression cannot be parsed! Make sure that all operators are supported. Make also sure that the product of two values explicitly has the '*' symbol. The expression i'm passing: (0.15*(183-y)+0.3*y)-36.6
var equacao = Newton(function: expression, x0: -1);

You have to use x instead of y 🙂

Thank you very much sir! I ended up simplifying the whole equation and doing regular math. But just so you know, i looked every where, and there is no library for evaluating and solving simple equations in Dart.  :-)


Is it possible to update something other than the BODY tag?

By default, Turbolinks swaps out the entire BODY tag. But can it be configured to swap out some other element?
I had an idea to capture the outgoing request and add a custom header, so my server knows this is a Turbolinks request. Then the server could strip down what it returns -- in my case, the only thing that changes would be some elements in the HEAD tag and the HTML in the MAIN tag.  All of the surrounding elements are global and static and do not change from page to page.
By doing this, I could cut down the number of bytes transferred. If I just send back the contents of the MAIN tag, I could probably cut down the response size by 50%.

Not sure if you've seen StimulusReflex yet but it has this feature called morph modes that does exactly what you need
https://docs.stimulusreflex.com/morph-modes

@robzolkos I spent some time over on the Stimulus and StimulusReflex sites.
Is StimulusReflex built into Turbolinks?  I know the two libraries are closely related, but I can't figure out how they actually connect.
From their doc, it looks like I need to put a data-reflex-root element on the returning HTML?


ng-repeat inside template does not seem to work (demo)

Why is it not possible to use ng-repeat inside a deckgrid while ng-repeat can be used recursively ?
Demonstration of both non-working (deckgrid) and working (ng-repeat) behaviour here : (http://codepen.io/anon/pen/nfzHk/)

Indeed, it does work. I was able to have ng-repeat div work within the template file and render different templates for different listing styles. I have experience and confidence working with Directives in AngularJS.
You are welcome to check out my repo for solution to your end: my repo - R37


Added currency exchange rates script

Description
Added a script that can convert your choosen currency amount to another choosen one with current exchange rates.
Fixes #92
Look at description.
Have you read the Contributing Guidelines on Pull Requests?

[x] Yes
[ ] No

Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[x] My code follows the style guidelines(Clean Code) of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have created a helpful and easy to understand README.md
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests/screenshots(if any) that prove my fix is effective or that my feature works.

Please Don't make any changes in contrbutors files..Close this PR and create a New one..


[Feature Request] Enforce builds to be run by specific agents

On Drone 0.5, Agents connect to the the Server polling the queue for pending builds. There's currently no support for enforcing which agent (or group of agents) should run the build.
This could be achieved by:

environment variable with some information (eg. tags) to be passed to the agent on start;
.drone.yml constraint that would match the above information and run build. For example:

pipeline:
  build:
    image: some_image
    commands:
      - do something
    when:
      - tag: some_tag

tracking under #758


Generated certificate does not match the hostname

Description
When deploying Quay with the latest code in master to GKE with the following configuration:
apiVersion: redhatcop.redhat.io/v1alpha1
kind: QuayEcosystem
metadata:
  name: example-quayecosystem
spec:
  quay:
    image: quay.io/projectquay/quay:latest
    imagePullSecretName: redhat-quay-pull-secret
    keepConfigDeployment: true
    externalAccess:
      hostname: example.com
      type: LoadBalancer

The hostname is forced to the IP Address of the Service. Attempting to override it as demonstrated in the documentation does not work.
This blocks the ability to use the Configuration Application because it attempts to validate the self-signed certificate and finds that it does not match the hostname.
Steps to Reproduce

Deploy a Quay Instance. Keep the Config app running.
Access the config app.
Don't make any changes. Just click "Save Configuration".
The Configuration App will complain that the certificate does not match the hostname.

Acceptance Criteria

The Quay Config application should not fail when validating the generated certificate.
The CR should be able to override the hostname.
If a hostname is automatically assigned, such as a subdomain or IP address, and no certificate is supplied, then I would assume the self-signed certificate to be generated for the correct host. (Debatable)

I believe one solution for handling the self-signed certificate is to verify that an existing certificate matches the current hostname.
It appears that this conditional is where all of the magic happens.

After some additional testing, it appears that this does not happen when using routes on OpenShift.

This appears fixed in the 1.1.0 release candidate. Closing.


feat(reporter): cache SourceMapConsumer

Error formatting is very slow on big files. This makes it a lot faster.

@vojtajina I'm not familiar with the Karma release process. Is there anywhere I can read up on how that works? Really, I'm trying to figure out when this will get released, as TDDing is starting to get pretty annoying for my team as our app grows (due to the long times it takes for karma to output errors.)
Thanks!

@minznerjosh now this changes allowed in canary branch/release. I think this changes should be moved to master branch because how said @vojtajina it's refactoring not new feature.
\cc @zzo

@maksimr Getting this released in master as soon as possible would be really helpful to my team. Thank you all!
\cc @vojtajina @zzo


Should we "codify" some guidelines for the blog?

Since we have some influx of blog posts right now, I recognize that there are some repeating patterns on things we ask people to change. And, as someone who assisted to create and created a blog post himself, it would be great to have some guidance on what to do and what to avoid. So, I am wondering if we should codify some guidelines for the blog? And if so, where should it live?
A few points I have in mind:

Existence & length of linkTitle
Author name (are we ok with "orgs" or should there always be a person? what about listing the company that person is working for?)
title: what's a good title? what are some good lengths?
images: where to store them? -- /static/img/blog? Right now some are stored there, some are in /static/img
images: recommend that people provide a descriptive alt title
cross-posting: we are ok with vendors re-publishing material from their blog here, what are the rules for that? (e.g. replace vendor backend with oss backend (does it have to be jaeger or are other oss backends also ok)?
ask people to run prettier

Just to clarify that, my goal is not to have them all as rules people have to follow. I would like to have only as few "must do" as possible and some "should do".

kind of done


[bug] "../invalid/path.yml": %!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)

The e2e.go.schedule.main.adversarial-invalidpath.yml e2e test reports the following error which I don't think is the right one:
"../invalid/path.yml": %!v(PANIC=Error method: runtime error: invalid memory address or nil pointer dereference)

https://github.com/slsa-framework/example-package/actions/runs/5198739235/jobs/9375307254

Repo: https://github.com/slsa-framework/example-package/tree/main
Run: https://github.com/slsa-framework/example-package/actions/runs/5210029267
Workflow file: https://github.com/slsa-framework/example-package/tree/main/.github/workflows/e2e.go.schedule.main.adversarial-invalidpath.yml
Workflow runs: https://github.com/slsa-framework/example-package/actions/workflows/e2e.go.schedule.main.adversarial-invalidpath.yml
Trigger: schedule
Branch: main
Date: Thu Jun  8 10:16:15 UTC 2023
Tests are passing now. Closing this issue.

This is caused by incorrect use of the internal/errors package. We don't really need this package anymore since you can wrap multiple errors in Go 1.20.


Failed to fetch board-id property

Receiving the below error :Failed to fetch board-id property.
2024-07-31 16:34:39.428111+0530  localhost Nudge[47423]: [com.github.macadmins.Nudge:utilities] Failed to fetch board-id property.
2024-07-31 16:34:39.632367+0530  localhost Nudge[47423]: [com.github.macadmins.Nudge:softwareupdate-device] Error assessing DeviceID: remotectl: Unable to find device "localbridge".
2024-07-31 16:34:39.632918+0530  localhost Nudge[47423]: [com.github.macadmins.Nudge:sofa] Assessed Model IDs: ["Unknown", "", "J514sAP", "J514sAP"]
2024-07-31 16:34:39.632995+0530  localhost Nudge[47423]: [com.github.macadmins.Nudge:sofa] Assessed Model ID found in SOFA Entry: true
2024-07-31 16:34:39.636925+0530  localhost Nudge[47423]: [com.github.macadmins.Nudge:softwareupdate-download] enforceMinorUpdates: true
2024-07-31 16:34:39.791578+0530  localhost Nudge[47423]: [com.github.macadmins.Nudge:utilities] Current operating system (14.5) is greater than or equal to required operating system (14.5)
2024-07-31 16:34:39.791598+0530  localhost Nudge[47423]: [com.github.macadmins.Nudge:user-interface] Device is fully updated
2024-07-31 16:34:39.791621+0530  localhost Nudge[47423]: [com.github.macadmins.Nudge:user-interface] Nudge is terminating due to condition met
2024-07-31 17:00:05.084179+0530  localhost Nudge[76375]: [com.github.macadmins.Nudge:user-interface] Delaying initial run (in seconds) by: 570
2024-07-31 17:09:35.159212+0530  localhost Nudge[76375]: [com.github.macadmins.Nudge:user-interface] Finished delay
2024-07-31 17:09:35.189365+0530  localhost Nudge[76375]: [com.github.macadmins.Nudge:sofa] Assessing macOS version range for active exploits: ["14.5"]
2024-07-31 17:09:35.189655+0530  localhost Nudge[76375]: [com.github.macadmins.Nudge:sofa] SOFA Actively Exploited CVEs: false
2024-07-31 17:09:35.190296+0530  localhost Nudge[76375]: [com.github.macadmins.Nudge:sofa] SOFA Matched OS Version: 14.5
2024-07-31 17:09:35.190515+0530  localhost Nudge[76375]: [com.github.macadmins.Nudge:sofa] SOFA Assets: ["J132AP", "J137AP", "J140AAP", "J140KAP", "J152FAP", "J160AP", "J174AP", "J180dAP", "J185AP", "J185FAP", "J213AP", "J214KAP", "J215AP", "J223AP", "J230KAP", "J274AP", "J293AP", "J313AP", "J314cAP", "J314sAP", "J316cAP", "J316sAP", "J375cAP", "J375dAP", "J413AP", "J414cAP", "J414sAP", "J415AP", "J416cAP", "J416sAP", "J433AP", "J434AP", "J456AP", "J457AP", "J473AP", "J474sAP", "J475cAP", "J475dAP", "J493AP", "J504AP", "J514cAP", "J514mAP", "J514sAP", "J516cAP", "J516mAP", "J516sAP", "J613AP", "J615AP", "J680AP", "J780AP", "Mac-1E7E29AD0135F9BC", "Mac-63001698E7A34814", "Mac-937A206F2EE63C01", "Mac-AA95B1DDAB278B95", "VMA2MACOSAP", "VMM-x86_64"]
2024-07-31 17:09:35.190913+0530  localhost Nudge[76375]: [com.github.macadmins.Nudge:sofa] SOFA CVEs: ["CVE-2024-27817": false, "CVE-2024-27796": false, "CVE-2024-27830": false, "CVE-2024-27826": false, "CVE-2024-27799": false, "CVE-2024-27855": false, "CVE-2024-27841": false, "CVE-2024-27811": false, "CVE-2024-27832": false, "CVE-2024-27822": false, "CVE-2024-27813": false, "CVE-2024-27831": false, "CVE-2024-27815": false, "CVE-2024-27801": false, "CVE-2023-42893": false, "CVE-2024-27800": false, "CVE-2024-23251": false, "CVE-2024-27844": false, "CVE-2024-27857": false, "CVE-2024-27820": false, "CVE-2024-27838": false, "CVE-2024-27810": false, "CVE-2024-27802": false, "CVE-2024-27798": false, "CVE-2024-27821": false, "CVE-2024-27843": false, "CVE-2024-27834": false, "CVE-2024-27848": false, "CVE-2024-27823": false, "CVE-2024-27825": false, "CVE-2024-27884": false, "CVE-2024-27806": false, "CVE-2024-27827": false, "CVE-2024-27824": false, "CVE-2024-27829": false, "CVE-2024-27847": false, "CVE-2024-27837": false, "CVE-2024-27851": false, "CVE-2024-27805": false, "CVE-2024-27836": false, "CV<…>

plist settings

optionalFeatures

acceptableCameraUsage

acceptableScreenSharingUsage

aggressiveUserFullScreenExperience

asynchronousSoftwareUpdate

attemptToFetchMajorUpgrade

disableSoftwareUpdateWorkflow

enforceMinorUpdates

honorFocusModes

refreshSOFAFeedTime
900

osVersionRequirements

aboutUpdateURL
https://abb.service-now.com/myservices?id=kb_article&sys_id=ba63ebcb87161918c3bc32270b3536
activelyExploitedCVEsMinorUpdateSLA
5
requiredMinimumOSVersion
latest-supported
standardMinorupdateSLA
10
targetedOSVersionsRule
14

userExperience

allowGracePeriods

allowedDeferrals
5
gracePeriodInstallDelay
3
gracePeriodLaunchDelay
3
gracePeriodPath
/private/var/db/.AppleSetupDone
imminentRefreshCycle
300
initialRefreshCycle
900
loadLaunchAgent

nudgeMinorUpdateEventLaunchDelay
1
nudgeRefreshCycle
60

userInterface

fallbackLanguage
en
forceFallbackLanguage

iconDarkPath
/Users/Shared/ABB.png
iconLightPath
/Users/Shared/ABB.png
showDeferralCount

showDaysRemainingToUpdate

simpleMode

updateElements

_language
en
informationButtonText
Need Help..! click here [K036095]
mainContentText
A fully up-to-date device is required
subHeader
A friendly reminder from your MAC team

It's expected. Nothing to be concerned about.


Extract wkWebViewConfig setup into setUpWkWebViewConfig function

Summary
I intend to implement updatable user scripts (i.e. user scripts such as injected JS would be updated upon props change), and this will involve removing and re-adding all scripts on the wkWebViewConfiguration.
A necessary first step is to extract all the config setup from didMoveToWindow() into a separate function. This is beneficial anyway as didMoveToWindow() is enormous and hard to analyse at the moment due to all this logic.
This purely a function extraction and will not impact the library.
Test Plan
None; minor change.
What's required for testing (prerequisites)?
None; minor change.
What are the steps to reproduce (after prerequisites)?
None; minor change.
Compatibility

OS
Implemented

iOS
✅

Android
N/A

Checklist

[ ] I have tested this on a device and a simulator
[ ] I added the documentation in README.md
[ ] I mentioned this change in CHANGELOG.md
[ ] I updated the typed files (TS and Flow)
[ ] I added a sample use of the API in the example project (example/App.js)

@shirakaba Looks good to me!


No matching results found dispaly in red

Fixes #1871
deployment link:- https://shubham3211.github.io/facebook5/

@agbilotia1998 done.

@shubham3211 can you please align this text with the input box, currently it is looking like this

@agbilotia1998 done :+1:

@shubham3211 is the preview link updated?

@agbilotia1998 done


Output cobertura data before bailing out

This fixes an issue where if --cobertura and --output-path are used simultaneously, then the saved file doesn't contain the cobertura-style output because the code returns inside if let Some(output_path) = &cx.args.cov.output_path and doesn't enter the cobertura clause at all.

Published in 0.5.2.


Changes to accommodate UserStorageQuota in StoragePreferences

This is the first cut as part of EPIC: https://issues.apache.org/jira/browse/AIRAVATA-3315. Any newly created UserStorageQuota entry for an existing StoragePreference has the value 0. 0 in the backend would mean the admin does not want any quotas/limitations for his users.
When this is the case, the frontend, instead of displaying the value 0, displays "N/A" letting know the client that there are no storage restrictions in the Gateway.

Hi @machristie ,
As discussed, I'm merging all my changes to a feature branch(AIRAVATA-3315-storage-quotas). Please let me know if you want me to change anything else.

Looks good @vivekshresta

Looks good @vivekshresta

Hi @machristie ,
Can you please merge this PR. Reaching out to you since I do not have the necessary permissions yet to merge the changes.


New nighty rust build can't build gtk when using paths for override crates

I noticed this when updated from 6-week old version (don't know concrete version)
See https://github.com/rust-lang/cargo/issues/3288

Last working version in https://static.rust-lang.org/dist/2016-10-04/index.html

Bug fixed on latest nightly
>rustc --version
rustc 1.15.0-nightly (ac635aa95 2016-11-18)
>cargo --version
cargo 0.16.0-nightly (d1bfc01 2016-11-18)


Constructor for "Any" type not generated?

Hello, thanks a ton for this library
I have run into a problem while trying to write a Node.js implementation for Apache Arrow's Flight RPC service
The protobuf files use bytes to represent unknown payloads:
https://github.com/apache/arrow/blob/11d2e4863974b95c1fa637e83757b98f291366c3/format/Flight.proto#L232-L236
  /*
   * Opaque value used to express a command. Should only be defined when
   * type = CMD.
   */
  bytes cmd = 2;

These payloads in FlightSQL are expected to be Any.pack(SomeType).
https://github.com/apache/arrow/blob/968e6ea488c939c0e1f2bfe339a5a9ed1aed603e/java/flight/flight-sql/src/main/java/org/apache/arrow/flight/sql/FlightSqlClient.java#L128-L138
  public FlightInfo getCatalogs(final CallOption... options) {
    final CommandGetCatalogs.Builder builder = CommandGetCatalogs.newBuilder();
    final FlightDescriptor descriptor = FlightDescriptor.command(Any.pack(builder.build()).toByteArray());
    return client.getInfo(descriptor, options);
  }

However, when I ran the generator on the proto files, I didn't get code generated for Any.
I tried to do this:
const service: IFlightService = {
    getFlightInfo: function (call: grpc.ServerUnaryCall<FlightDescriptor, FlightInfo>, callback: grpc.sendUnaryData<FlightInfo>): void {

        if (CommandGetCrossReference.is(CommandGetCrossReference.fromBinary(flightDescriptor.cmd))) {
            const cmd = CommandGetCrossReference.fromBinary(flightDescriptor.cmd);
            console.log("CommandGetCrossReference", cmd);
        }

        if (CommandGetDbSchemas.is(CommandGetDbSchemas.fromBinary(flightDescriptor.cmd))) {
            const cmd = CommandGetDbSchemas.fromBinary(flightDescriptor.cmd);
            console.log("CommandGetDbSchemas", cmd);
        }

        // Etc, repeated for each type
    },
}

client.getFlightInfo({
    path: [],
    type: FlightDescriptor_DescriptorType.CMD,
    cmd: CommandGetTables.toBinary({
        includeSchema: true,
        tableTypes: ["TABLE", "VIEW"],
        catalog: "my-catalog",
    })
});

But the issue is that it seems to actually match every type:
CommandGetTables {
  tableTypes: [ 'TABLE', 'VIEW' ],
  includeSchema: true,
  catalog: 'my-catalog'
}
CommandGetTableTypes {}
CommandStatementQuery {
  query: 'my-catalog',
  [Symbol(protobuf-ts/unknown)]: [
    { no: 4, wireType: 2, data: <Buffer 05 54 41 42 4c 45> },
    { no: 4, wireType: 2, data: <Buffer 04 56 49 45 57> },
    { no: 5, wireType: 0, data: <Buffer 01> }
  ]
}

What should I do here?
Thank you =)

However, when I ran the generator on the proto files, I didn't get code generated for Any.

Yes, protobuf-ts doesn't publish the well-known types, and only generates them if they are within the files to generate. With protoc, that means adding google/protobuf/any.proto to the argument list. If Any is used anywhere within the proto files you compile, that is not necessary, but in your case, it isn't.
I'd suggest decoding from binary only once:
const cmdAny = Any.fromBinary(flightDescriptor.cmd);
if (Any.contains(cmdAny, CommandGetTables)) {
   const cmd = Any.unpack(cmdAny, CommandGetTables);

But mostly for code style, performance is probably irrelevant here.
Quite the mind-bender to see an Any put into a bytes field :stuck_out_tongue:

Ahh I didn't know you could add google/protobuf/any.proto directly to the list, that's very useful!

I'd suggest decoding from binary only once:

This is much better, nice suggestion -- thanks

Quite the mind-bender to see an Any put into a bytes field 😛

😅


fix an unstable test that depended on timing

Scope & Purpose
Fix unstable recovery test that depended on timing.

[x] Bug-Fix for devel-branch (i.e. no need for backports?)
[x] The behavior in this PR can be (and was) manually tested (support / qa / customers can test it)
[x] The behavior change can be verified via automatic tests

Testing & Verification
This change is already covered by existing tests, such as scripts/unittest recovery.
http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/9776/

http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/9781/

Tests blue


RAW api iframe switching test added (closes #602)

/cc @AlexanderMoskovkin @georgiy-abbasov

lgtm

ping @georgiy-abbasov

\r- Just few minor remarks, i explained in private

it's better to publish them here in the next time

@testcafe-build-bot \retest

FPR

lgtm

lgtm


Make use of standard RecyclerView Holder optimizations.

An important optimization that RecyclerView offers is the ability to cache the results of (potentially expensive) calls to findViewById() inside a ViewHolder so that they don't have to be repeated every time data is bound to a recycled view.

LGTM, made one comment for an additional improvement while I have you here.


query prometheus before setting a lock

Hi
This PR adds the feature to fleetlock, to query Prometheus for active alerts. If there are active alerts fleetlock will deny a request for a lock.
We have been using this patch for several months and it helped so far to make the upgrade process more stable.
The code is based on https://github.com/kubereboot/kured/blob/main/pkg/alerts/prometheus.go, any problems/bugs are mine.

Thank you, but no thanks. This feature feels to me overly specific to one use case and I don't wish to maintain it. Plus if this expands the scope, next there will be asks to monitor PagerDuty, Datadog, etc. I think fleetlock is fairly feature complete and focused. I'm glad it's been working for you with this change, I think it's probably best this live in your personal fork.


Closing Heredoc Indentation

When autocorrecting heredoc indentation, the heredoc close is ignored. I think I would expect it to be realigned with the heredoc open.
The following examples use
class Foo
  <<-SQL.strip_indent
    foo
SQL
end

as starting code.

Expected behavior
When running rubocop, I'd expect to see a violation for SQL needing to be indented two spaces and for the autocorrect to result in
class Foo
  <<-SQL.strip_indent
    foo
  SQL
end

Actual behavior
Instead, there are no violations.
Steps to reproduce the problem
See above.
RuboCop version
$ rubocop -V
0.52.1 (using Parser <IP_ADDRESS>, running on ruby 2.3.1 x86_64-linux)

Further Discussion
I'm not sure whether this would fall on the IndentHeredoc rule (which currently only handles the innards of the heredoc), the IndentationWidth rule (which handles the opening), a new ClosingHeredocIndentation rule, or somewhere else. I'd be happy to work on this if given some indication of a preferred location.

Any thoughts here?

Either IndentationWidth or ClosingHeredocIndentation seem like a good place. 🙂

Sounds good - thanks! I'll see if I can take a look at this this weekend.

Swell! Feel free to ping me here if you have any questions.

@Drenmi I opened https://github.com/bbatsov/rubocop/pull/5557 and would love comments! I started with IndentationWidth since I thought that might be preferable, but got a bit stumped trying to make it work there. Then I got ClosingHeredocIndenation working. Knowing what I know now, I might revisit an IndentationWidth implementation, but that will probably have to wait until the weekend.

I opened #5557 and would love comments!

Will have a look!

I started with IndentationWidth since I thought that might be preferable, but got a bit stumped trying to make it work there.

Expected so. It's already an insanely complex thing. 🙂


Create codeql-analysis.yml

:tada: This PR is included in version 2.2.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Investigate API to hook into user scripts loading

Investigate adding an API to allow hooking into the user scripts load sequence to allow custom special tags with associated behaviors.
E.g.,
_CustomTagAPI_.add('userscript', function (passage) {
	/* Process `passage` as a script. */
});
_CustomTagAPI_.add('userstyle', function (passage) {
	/* Process `passage` as a stylesheet. */
});
_CustomTagAPI_.add('something', function (passage) {
	/* Process `passage` in some way. */
});

This can already be done with JavaScript alone, so this isn't a necessity, but it might be nice to have.

It would likely be cleaner than the various JS solutions if only because there are nuances to the processing of special elements (e.g. the IMG markup in stylesheets) that could otherwise be left out.


semantic-nerfw requiring camera.json

Hi! When I run nerfstudio with method semantic-nerfw  it shows:
FileNotFoundError: [Error 2]: No such file or directory: " xxxx/colmap/cameras.json"
I am wondering what this cameras.json file is, is it another version of the cameras.bin file ?
Other methods of nerfstudio doesn't require this file.

Semantic-nerfw assumes you have semantic data in the dataset. We don't currently have a pipeline to create the data in this format. You can look at the friends dataset to see an example of the format for this data.


test: testing ci on fork of repo branch

What kind of change does this PR introduce?
This is a draft PR to test whether gh action CI checks will run correctly on a PR originating from a fork. There is one change to a checkout in a specific action that will also be tested in a companion PR, to assure that the workflow will support a branch pushed to same repo, or a fork of repo branch PR (this one is the latter)

Closing will not fix.


Not seeing level 1 cached

Hi,
I'm using openresty/<IP_ADDRESS>.
I installed mlcache via luarocks.
lru_size is 1500, and I use cache:get with no options and a socket-fetching callback.
I initialize in init_by_lua_file and share via global 'cache' variable.
Everything works but I invariably get one L3 hit, from then on only L2 hits.
Never L1 hits.
What could be the reason?
Cheers, Markus

Hard to say just from this description, can you share the code?

Never mind, I figured it out: the nginx location in which Lua accesses the mlcache via get needs to have
lua_code_cache on;
for L1 caching to work!
Maybe this is worth mentioning in the docs as a potential pitfall, as it is common to have the Lua code cache set to off during development?!!

Indeed; glad you figured it out. Yes, I’ll add a note about this in the documentation, thank you for the suggestion.

@cloudspeech I just added a note to the README in 2d7d7ac.


how to quickly add import xxx to top

It is usually inconvenient to add import xxx .
For example,
I want import numpy as np
I need go to top,  add it  under
# -*- coding: utf-8 -*-
# @Author: mithril

from __future__ import unicode_literals, print_function, absolute_import, division

import xxx
from xxx import xxx
import numpy as np

Then go back to original position , is there any quick way to do this ?

As this is a question, this should go on Stack Overflow at the link provided in the issue template so I'm closing this.
But to quickly answer the question, the answer is there isn't a current way but #636 would implement this if/when we merge that PR (this is also a duplicate of #21 ).

@brettcannon Looks like this feature is already available for TypeScript: https://github.com/Microsoft/vscode/issues/21764
Could you please rename this issue into a feature request and reopen? I can create a separate issue if that's the preferred way to track it.
Please note that "Auto import" or "Optimize imports" (using isort, for example) is not a substitution for this feature because there could be ambiguous imports, and only developer knows which one is best, thus a quickfix action functionality is necessary.

@balta2ar if we implement this it will be through a quickfix/lightbulb anyway and not a magical "insert without asking" type of solution.

@brettcannon Sure! This is exactly what I meant, some kind of a menu with possible import alternatives should be displayed to the user.


Topic/callable lens with args

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

81 of 83 (97.59%)  changed or added relevant lines in 5 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.5%) to 51.737%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

chainsight-cdk-macros/src/canisters/relayer.rs
34
35
97.14%

chainsight-cdk-macros/src/canisters/snapshot_indexer_icp.rs
29
30
96.67%

Files with Coverage Reduction
New Missed Lines
%

chainsight-cdk/src/config/components.rs
1
34.38%

Totals

Change from base Build<PHONE_NUMBER>:
0.5%

Covered Lines:
2681

Relevant Lines:
5182

💛  - Coveralls


CosmosDB docs should contain a recommendation on how to save costs when using actor state management to handle large documents

Feel free to throw this issue out the window if you believe it doesn't belong in the Dapr docs, but I thought it might be nice to have :)
What content needs to be created or modified?
The Dapr CosmosDB state management documentation should maybe mention that CosmosDB's billing profile is a consumption-based billing profile. This means that when using Dapr to read and write state, more specifically Actor state which is raw, formatted JSON, if the actor's state object grows in size, it will consume a fair chunk of money to run. This grows linearly with document size and concurrency. One way to combat this growth in cost is to compress the document using something like GZip before saving state and decompressing when getting state.
Describe the solution you'd like
Something simple like a new heading on savings costs. Could look as simple as:

Saving costs when using actors to store large documents
Cosmos DB uses a consumption-based billing model. This means that if you have an actor state object that is large in size, you will pay for every KB you write on every actor call and for every get each time an actor is hydrated. For example, if you have an actor state object that is 75KB in size when the actor is hydrated, you will use 75 RU/s to read that object out of state. If you then modify the state object and it grows to 100KB, you will use 100 RU/s to write that object to Cosmos DB. Totalling 175 RU/s for the I/O operation. Let's say your actors are concurrently handling 1000 requests per second, you will need at least 175,000 RU/s to meet that load.
This is largely because Dapr actor state is saved as raw, formatted JSON in the state store. Furthermore, Dapr interacts with state as key-value pairs and as such, there is no definite need to store the actor state as raw JSON. One way to save costs is to compress the state object before saving. This can be done with any compression algorithm but ideally pick one that favours speed over outright compression optimisation.
Done correctly, this can reduce costs by 95% or more.

It could also be worth linking to this header where it mentions:

If you are using the Dapr SDKs (for example the .NET SDK), the SDK automatically serializes your data to JSON.

Where should the new material be placed?
Under the Azure Cosmos DB (SQL API) page at the bottom below the Optimizing Cosmos DB for bulk operation write performance header.
The associated pull request from dapr/dapr, dapr/components-contrib, or other Dapr code repos

Additional context
This is inspired by some good work one of my colleagues has recently completed and published an article about: Maximizing Efficiency in Scalable Systems: Part I — Reducing costs of consumption-based state stores by up to 97% when using Dapr actors at scale

Hey @olitomlinson
Yeah we've been running with all properties excluded from indexing for a while. That was driven more from a performance aspect in our case but happily helped with costing too. So we're running no indexing and compressed data at the moment and seeing huge ROI for that. Obviously the compression really only works when you're interacting with the state store in a key-value kind of way but that is how Dapr works through the state management API so it's relevant.
Truth be told, they've made our product viable in the longer term.
I'll try get a PR out for this soon 👍🏻

@KrylixZA
Going back to your original point about compressing the state, I assume you're doing all this in your application layer?
To me it seems reasonable there should be an option to compression / decompression the state transparently by the cosmosDb state store component, so that end-users such as yourself don't have to take on this responsibility. What do you think?

Is there something inherent to actors that cause extra queries to be done here? I am thinking, if you were to build the same "workflow" without the actors and query the state you need from a database each time your long running transaction needs to continue, would that be cheaper than using actors?
I guess what I'm getting at here is, does the actor framework abuse cosmos or is this just by nature of what you are asking it to do? If the latter, I don't really see how a warning is relevant.

Hey @joshuadmatthews
Not sure you and I are on the same page. I'm not suggesting a warning is put on the documentation. More of a cost savings pro tip type of section. Could even be a note.
All I'm suggesting is that it can be extremely financially rewarding to compress actor state if there is no need to run queries against it. In fact it's true of all state usages that if it's only ever to be used as key-value, then it will be financially rewarding to implement compression.
I definitely don't think there's anything wrong with the implementation as it stands and any reason to warn users.

Hey @joshuadmatthews
From my experience, the actor framework is extremely efficient at managing state interactions.
Given it only reads from state when the actor is hydrated, you're saving a read every time the actor is called and it's sitting alive in memory.
The only thing about actor state is that it's raw, formatted JSON. By nature, raw JSON uses up a lot of KBs, and therefore RU/s in CosmosDB. This is because of all the white space and line endings to make it formatted.
Building the same code without the actor pattern would be very hard to get right. Specifically working around the race conditions reading and writing state. Actors are good at that, by nature of their implementation. You'd likely build it worse if you had to do it yourself. Or at least I would ;)
Alls I am suggesting, instead of a warning, is just a little note block that informs the user that if they are using actors and have no intention to query the state through bindings or the SDK directly, then dapr is only going to use the state in a key-value fashion. And by virtue of that, users stand to gain a lot in terms of financial benefits if they store their actor state in a compressed format.


Have you considered making your plug-in API compatible with Raycast (if that’s possible)?

This was actually asked 2 years ago on HN.
I'm incubating a big project for my startup to use Raycast with lot of custom code but thought open source would be much better for future customizations.
Also, making it compatible with Raycast apps downloaded from the store would be nice too!!
(I'm still new in the launcher landscape)

thanks for the answer. I'll take that and consider building it once usage of the launcher grows big enough.


Typographical error - Incorrect sentence / meaning ...

The page contains the sentence:
Note all values may be available due to how each device queries geolocation through different providers.
... but was probably meant to read:
Not all values may be available due to how each device queries geolocation through different providers.
Typo: should be Not instead of Note

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: f0acf3fa-b705-f0cc-b676-eeca60176dfa
Version Independent ID: 1788a5d5-a3cb-15c8-927c-b6a24810245a
Content: Xamarin.Essentials: Geolocation - Xamarin
Content Source: docs/essentials/geolocation.md
Product: xamarin
Technology: xamarin-essentials
GitHub Login: @jamesmontemagno
Microsoft Alias: jamont

Microsoft support for Xamarin will end on May 1, 2024 for all Xamarin SDKs including Xamarin.Forms. In preparation for this, all issues and PRs in this repository are being closed.
.NET MAUI is the replacement for Xamarin.Forms, and it's documentation can be found here.


add hmm support

add hmm support

Codecov Report

Merging #10 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #10   +/-   ##
=======================================
  Coverage   91.93%   91.93%
=======================================
  Files           7        7
  Lines         397      397
=======================================
  Hits          365      365
  Misses         25       25
  Partials        7        7

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5ea5e8c...7c24276. Read the comment docs.


Allow About Me to be written in rST or Markdown

Curremtly, LANDING_PAGE_ABOUT is used for that, which is not ideal, especially since it needs (I think) to be written in raw html. Perhaps a solution where this file is read off some file somewhere?
(encouraged by https://github.com/talha131/pelican-elegant/pull/77#issuecomment-29552207 to request a feature before 2.0 gets released)

Shouldn't there be a way in Pelican to create any particular section of text (like the About Me) from markdown? What if I wanted, say, a Message of the Day to appear in the right column of each page? How would I go about putting this md content in its own file,  and have it treated as a "section", rather than a page?

Figured out an easy way to do this. Put "About Me" markdown in a page, but make it status: hidden. Then in the index.html template (class="article-content"), just look in the list hidden_pages for the page which has the correct title, and insert the page.content.

@codecachet very cool. Love it. Let me know if you can open a PR.

@iranzo can you find time to implement what @codecachet has suggested?
This is in Q3 milestone, it's not as urgent as tasks in Q2 milestone.

I was having a look at this yesterday night, I need to find how to loop in jinja for this and then extract the data and make the relevant code changes

Talha, do you have a pointer on how to perform the loop against the filter for articles? Not familiar enough with pelican templates for writing the loop for this :-/

Can you try
{% for article in articles %}
{% if article.status == blah and article.title == "Landing Page About Me" %}

I think we need a specific title for the article we are going to use for about me.

@tshepang and @calfzhou, it took five years 😆 but the feature is finally here. Currently in beta.
https://next.elegant.oncrashreboot.com/customize-home-page
(You may have to add ssl error exception to visit the page. Netlify SSL has some issue.)
It gives me immense pleasure to close a five year old feature request.

@all-contributors please add @codecachet for ideas

:tada: This issue has been resolved in version 3.0.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Bugfix shear strengh model parameters not getting through in DStabilility 2023

"ShansepShearStrengthModel" in GEOlib is called "SuShearStrengthModel" in soils.json (when unzipping a .stix file)

Thanks for the fix!

Thnx for implementing it so fast! :)


The intuition for the values of heur_score_table

Thank you for sharing a good project.
When I study your code, I cannot understand why heur_score_table[row] is calculated in a such way in init_tables().
heur_score_table[row] = SCORE_LOST_PENALTY +
SCORE_EMPTY_WEIGHT * empty +
SCORE_MERGES_WEIGHT * merges -
SCORE_MONOTONICITY_WEIGHT * std::min(monotonicity_left, monotonicity_right) -
SCORE_SUM_WEIGHT * sum;
Why does every entry have SCORE_LOST_PENALTY value?
It seems to have no effect on determining the priorities between moves.

I think a larger sum value takes advantage to get the final score highly.

The heuristic score will be zero for lost positions (positions where no further moves are possible), so the SCORE_LOST_PENALTY is really a bonus for not losing yet. The large value of LOST_PENALTY helps to ensure that the model always prioritizes not losing, and also helps to buffer against large penalties, since we want to ensure that the score for any non-lost position is positive.
Final score (as reported by the game) doesn't really matter; survival does. The longer you survive, the larger your score, because the score increments at essentially a fixed rate. The SCORE_SUM_WEIGHT heuristic was added in commit a64d74945df90f81960fa420be96cb3eaa940b4d. If you look at the calculation of sum, you will see that it is the sum of pow(rank, 3.5) for each rank on the board (where rank ranges from 0 to 15). This is not the same as the sum of the face values of the tiles (which would be pow(2, rank)). It is carefully calculated such that 2 * pow(N, 3.5) > pow(N, 3.5) only for N >= 6; that is, two 32 tiles sum to less than one 64 tile, but two 64 tiles sum to more than one 128 tile. By negating this component, the heuristic will prefer to leave smaller tiles unmerged, but will prefer to merge larger tiles earlier.


timeular: 4.7.1 -> 4.8.0

Description of changes

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.05 Release Notes (or backporting 21.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

the profile part is not needed since https://github.com/NixOS/nixpkgs/pull/161739
XDG_DATA_DIRS= ./result/bin/timeular


fix: Move network logic into ViewModel with Broadcast Receiver

Details:

Use broadcast receiver to detect connectivity change
Delete Retry button in no internet card as connectivity is auto-detected and reloading will be made automatically
Set up live data boolean for connectivity in ViewModel

Fixes: #1550
Screenshots for the change:

Still, retry button should remain

I reverted it @iamareebjamal


Accidental spaces in example code

See list declarations under Scope, apply1 and apply2 functions under Function Values, result4 under Lambda Expressions.
Also, numbers list declaration under Pipelines does not follow same style as rest of document (but might be the only correct instance of the preferred style).

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: e16a9ad9-820d-c4cf-df83-d9c33a848d74
Version Independent ID: 71e8487a-16d2-1b9e-9bbc-a48884196673
Content: Functions - F#
Content Source: docs/fsharp/language-reference/functions/index.md
Product: dotnet-fsharp
GitHub Login: @cartermp
Microsoft Alias: dotnetcontent

@BillWagner @IEvangelist  I will work on this!


RGB guess still isn't right!

Load in a multi image. Click Guess RGB. Nothing happens (often). This needs proper looking at.

Looks better now?


remove unnecessary step

Which problem does this PR solve?
The action doesn't depend on the source code of the repo where we need to use this action, so remove the checkout step
Main changes

clean the example

Pull Request Test Coverage Report for Build 621656947

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build 594084768:
0.0%

Covered Lines:
80

Relevant Lines:
80

💛  - Coveralls


KNN efficiency on S2ORC graph

In your paper, you say that "the KNN strategy is implemented with FAISS using a flat index (exhaustive search) and takes less than 30min for indexing and retrieval". How did you achieve this speed with a flat index containing 52 M vectors?

KNN is not performed on the full S2ORC but only on the pool of candidate papers (~680k papers). The candidate papers come from SPECTER's training corpus (see Appendix C).

The SciNCL triplets are generated based on the citation graph embeddings of the same 680,967 unique papers IDs, i.e, the FAISS index contains only these papers and not the remaining S2ORC papers.

I see. I want to replicate your process on a different corpus of a similar size to S2ORC. I am worried that a random sample of ~680k papers will have sufficiently different citation behavior from the curated SPECTER set that I cannot use your k+ and k- parameters. I'll have to measure collisions in my sample.


Instructions on how Azure Data Factory (ADF) support Databricks Repos?

Please provide instructions how this is supported and used: (Does Azure Data Factory (ADF) support Repos?)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 0edc68be-c91d-f305-d1d9-8999778b6a7f
Version Independent ID: 1bcf3fba-9d14-544c-8cc1-29c401b87611
Content: Repos for Git integration - Azure Databricks
Content Source: databricks/repos.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

@baatch Please check the GitHub issue addressing similar issue: https://github.com/MicrosoftDocs/azure-docs/issues/74826

@baatch Please check the GitHub issue addressing similar issue: #74826

The instructions in the link are not complete and does not show how to run notebook in a specific branch through Data Factory.


Update README.md

The spelling "herein" is correct, closing this PR. Feel free to open another anytime!


Fix moarvm build failure on x86_64-darwin

Description of changes
Add a patch to apply on darwin, where it removes checks the consistency of ar ld and cc.
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[x] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

#268596

Please also fix the commit message according to commit conventions. An example:

moarvm: fix build failure on x86_64-darwin

Added back original postPatch commands, please try again @stigtsp. Thanks!

Result of nixpkgs-review pr 268600 run on aarch64-darwin 1

4 packages built:

moarvm
nqp
rakudo
zef

I'm a bit uncomfortable with us patching Configure.pl with both substituteInPlace Configure.pl and moarvm-darwin.patch. Would it be possible to include the changes substituteInPlace does in the patch?

Yes, probably that's more generic. I think I can add --replace "$^O eq 'darwin'" '0' to disable the checks instead of removing the checks.

Yes, probably that's more generic. I think I can add --replace "$^O eq 'darwin'" '0' to disable the checks instead of removing the checks.

That OK with me, although a patch would be safer as it would fail to apply if future versions change this logic (which is desired imho).

I made a mistake by not adding --ignore-environment with nix develop. Build failure persist with current pr. But things are getting even weirder. Errors are different between doing manual build with genericBuild and nix build. And no error with manual make.
If I run nix build .#moarvm, I get:
......

ld: warning: ignoring file 3rdparty/dyncall/dyncallback/libdyncallback_s.a, building for macOS-x86_64 but attempting to li>
ld: warning: ignoring file 3rdparty/dyncall/dynload/libdynload_s.a, building for macOS-x86_64 but attempting to link with >
ld: warning: ignoring file 3rdparty/dyncall/dyncall/libdyncall_s.a, building for macOS-x86_64 but attempting to link with >
Undefined symbols for architecture x86_64:

......

Inside the shell spawned by nix develop .#moarvm --ignore-environment, if I build moarvm with buildPhase or genericBuild, the following errors will occur:
......

linking libmoar.dylib
ld: warning: ignoring file 3rdparty/sha1/libsha1.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
ld: warning: ignoring file 3rdparty/cmp/libcmp.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
ld: warning: ignoring file 3rdparty/libuv/libuv.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 )
ld: warning: ignoring file 3rdparty/libtommath/libtommath.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64

......

But if I manually build it with make after unpack, patch, configure phase, it will not give any error.
I have no clue how this would happen. Did I do something wrong or is nix on x86_64-darwin kind of broken?

I can confirm @wegank 's commit solves the build failure. Thanks!

There could be incompatibilities between our primarily-LLVM toolchain and Apple's. Haven't had time to investigate yet.


Decide on design for battleground

how should players connect and agents be run.

what place (AWS/Google Cloud/etc)
deployment platform (Docker, native, vagrant, etc)
runtime (python only?)
more?

Possible design for the battleground:

allow any kind of language/library/framework. The agent will be executed in a docker container where the owner of the agent is free to use whatever he/she wants

each agent implements an interface "Actionable"? with the method action(Status:status):Action that takes as an input a status and return an action

there will be a third agent (containerized too) that is the referee (or game owner) that will coordinate the 2 different agents invoking the "action" method on them and checking the validity of the action returned.

for this purpose a message broker is needed. In particular, the RPC service provided by RabbitMQ seems to be a good solution (see link)

I like this approach. Not entirely sure how to do 1 but we can start with one language and then fifure out where to go from there. I'll have to read up on RabbitMQ :)


Avoid the table body getting into the table header when scrolling

I'm creating a table (with product names) in my desktop application using React. To create the table I use the React Table Library (https://react-table-library.com/?path=/story/getting-started-installation--page). I have already customized some settings to suit my needs, but there are moments for which I just can’t find a solution.
My code is here... https://codesandbox.io/s/dazzling-maxwell-rplf43
As you can see, I have a table, but when scrolling, the table body merges with the table header (since I'm using background-color: transparent). Tell me, how can I scroll the table body so that the table body is not visible in the header?
And perhaps you can tell me how to customize the scroll bar in this library. I would like to change its width, remove the up/down arrows, and have the scroll bar start not from the table header, but only at the height of the table body.
Perhaps you can help either with the code or with advice, since I have already tried all the possible options that I knew and read
my code below
`  export default function App() {
  const data = { nodes };
  const theme = useTheme([
    getTheme(),

{
  HeaderRow: `
    background-color: transparent;
    color: hsl(0, 0%, 71%);
    font-size: 10px;
  `
},
{
  Row: `
    background-color: transparent;
    color: black;
    font-size: 11px;

  `
}
]);

const COLUMNS = [
  { label: "Name of phone", renderCell: (item) => item.name },
  { label: "Cost", renderCell: (item) => item.length },
  { label: "Specified hotkey", renderCell: (item) => item.hotkey },
  { label: "Charge", renderCell: (item) => item.isActivness }
];

const VIRTUALIZED_OPTIONS = {
  rowHeight: (_item, _index) => 33
};

return (
  <div style={{ height: "300px" }}>
    <CompactTable
      columns={COLUMNS}
      virtualizedOptions={VIRTUALIZED_OPTIONS}
      data={data}
      theme={theme}
      layout={{ isDiv: true, fixedHeader: true }}
    />
  </div>
);

}`

I know it's possible as I did something similar a while back, but can't remember all the tricks, sorry. You can see it working on https://ems-esp.derbyshire.nl/dashboard/devices (click a entry in the table).
And the code is starts in https://github.com/emsesp/EMS-ESP32/blob/df9f75a5c99a6360d3cf68b7d207f37e3558b17a/interface/src/project/DashboardDevices.tsx#L520
I removed the scroll bar and used a custom theme. It might not help, but wanted to say there's always a way around it!

@proddy Thank you for paying attention to my question. Yes, our tables are somewhat similar. But the peculiarity of my table is that I have to make a scrollbar in the table body (since both the body and the header in my table are transparent and when I start scrolling, the information from the table body is visible in the header)


Az 5 as a client i want to be able to check flights

Am adaugat butonul de check flight care afiseaza zborurile adaugate de admin.

Foarte bine facut 🎖


branch-2.0 support HTTP request with chunked transfer (#26520)

Proposed changes
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

#26520


feat: options Supports the conversion between cluster-id and cluster-name

What would you like to be added:
options Supports the conversion between cluster-id and cluster-name
Why is this needed:
Reduce the cost of the program to the user
Completion requirements:
This enhancement requires the following artifacts:

[  ] options can be converted from clusetr-name to cluster-id #83
[  ] options can be converted from clusetr-id to cluster-name

The artifacts should be linked in subsequent comments.

options can be converted from clusetr-id to cluster-name recommended DescribeClusterDetail to complete

@helen-frank Please assign it to me.

@helen-frank It looks like I need to call the GET /clusters/{ClusterId} api and get the name property in the response?

@helen-frank It looks like I need to call the GET /clusters/{ClusterId} api and get the name property in the response?

Use the SDK is a better way, it is recommended to use DescribeClusterDetail


Configure Azure PipelinesBuild pipeline

This config builds the application and produces builds for both debug and release config

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: lemli sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


⚠ Jerry Savelle Ministries International Australia has degraded performance

In 771db97, Jerry Savelle Ministries International Australia (https://jsmiaustralia.org) experienced degraded performance:

HTTP code: 200
Response time: 5676 ms

Resolved: Jerry Savelle Ministries International Australia performance has improved in fc8bc9c after 12 minutes.


How to create a generator with a random seed

Hello!
How do I create a random seed with this package to not always get the same generated values?
Thanks!

Hello there!
Have you looked at random.random_sample and random.to_random_iterator? Those are the go to I'd recommend to get truly random values out of generators, are those two function enough for your needs or do you feel like the package is missing something?
Anyways, thanks for pointing it out! I forgot about exposing a way to generate random seeds, I've just release v2.0.0 where the seed module now has a random function to generate truly random seeds. If the functions I suggested you above are not enough for your use case you could make use of that :)

Oh I see! Thank you. I did read the README but I got confused as to how actually get random values, likely due to not paying enough attention.


Draw rectangle

Hi, I saw there is already Circle support. Could this be also implemented for Rectangle? Thanks!

yes, going to implement it. Need a bit time though.

I have this implemented!
If I can be made a contributor, I'm more than happy to PR it, so you can approve/suggest changes!

hey @Mesonyx. If you forked the repo and implemented this you can simply create a PR :-). You'll become a contributor automatically once it's merged.
Sorry that it's taking so long, I'm currently working on support for holes.

Ahhhh... That's my mistake.
I cloned the repo, not forked it. Didn't realize there was a difference.
HOW DO I OPEN SOURCE, GUYZ?


fixed 'cant roll a zero sided dice' error

major error causing all roll attempts to fail.
literal one character error

Okay. If you can, setup roxbot and test changes. Even if it's just moving this command to just a fresh bot handler. I'll be updating roxbot with a easy setup soon but for now you'll have to work on that on your own. Thanks 💙


Inline LaTeX shows on multiple lines

Renders as:

This is definitely annoying. Moving to someday maybe for now as not urgent and want to see if someone comes in who wants to fix this.

Any news on this issue? It's the main thing stopping me from using Flowershow—would love to see it fixed up soon!

@willjhliang not yet. We'll look into this within the next 2 weeks.

@willjhliang this has just been fixed! Let us know if it works!


Add CCR to 2.4 build manifest

Signed-off-by: Ankit Kala<EMAIL_ADDRESS>Description
Add CCR to 2.4 build manifest
Issues Resolved
#451
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Codecov Report

Merging #2822 (593333a) into main (f3dddc7) will decrease coverage by 0.33%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2822      +/-   ##
==========================================
- Coverage   94.15%   93.82%   -0.34%
==========================================
  Files         157      157
  Lines        4242     4242
==========================================
- Hits         3994     3980      -14
- Misses        248      262      +14

Impacted Files
Coverage Δ

src/system/temporary_directory.py
64.44% <0.00%> (-28.89%)
:arrow_down:

src/system/os.py
93.75% <0.00%> (-6.25%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Manifest test on 3.0.0 is failing due to unrelated changes.

Close in favor of this one due to conflicts: #2826
Thanks.


Rope needs to implement std::iter::FromIterator

Just like String, Rope needs to implement the std::iter::FromIterator trait.
We should implement this for char, &'a char, &'a str and String. Should consider implementing it for Rope as well?

This shouldn't be hard.

@rachlmac: i'll open a dev branch for you to work on this, and push up some more stubs & unit tests like I did for #14.

Okay, @rachlmac, I've created the rope-from-iter branch, which has stubs and unit tests for these implementations.
Implementing FromIterator is going to be basically the same as the work you did on #14, except for one key difference: iter::Extend extends an existing Rope with the contents of an Iterator, while iter::FromIterator creates a new Rope from the contents of an Iterator.
What this means is: instead of adding new elements to a a self reference, like you did for Extend, you'll create a new Rope with Rope::new(), and add new elements to that, and then you'll need to return the new Rope.

I'm gonna let you try this on your own – hopefully, you should be able to figure it out based on my above comment and on the work you did yesterday.
If you do have any problems, let me know and I'm happy to help!

Closed by @rachlmac in #48