text:
Aggregate functions aren't supported

Functions like min and max cause function MIN does not exist as error in 0.4.0/1.

they exist you just have to use lowercase. That restriction might not be needed anymore with the identifier casing fix. I'll take a look

authors: AlecStrong gabrielittner

repo: square/sqldelight


text:
Pushing a repo on master works, but using references/branches seems to fail

Steps to reproduce:
• Add a downstream remote (r.CreateRemote)

• Push https://github.com/src-d/go-git.git-> works

• Push https://github.com/src-d/go-git.git/fix/checkout-empty-repo -> results in "already up-to-date"
Example code:
    // Add a downstream remote
    _, err = r.CreateRemote(&config.RemoteConfig{
        Name: "downstream",
        URLs: []string{"https://github.com/src-d/go-git.git"},
    })
    if err != nil {
        switch err {
        case git.ErrRemoteNotFound:
            log.Fatal("remote not found")
        default:
            log.Println(err)
        }
    }

    // Push using default options
    upstreamReference := plumbing.ReferenceName("refs/remotes/fix/checkout-empty-repo")
    downstreamReference := plumbing.ReferenceName("refs/remotes/fix/checkout-empty-repo")
    referenceList := append([]config.RefSpec{},
        config.RefSpec(upstreamReference+":"+downstreamReference))

    log.Printf("Pushing to https://github.com/src-d/go-git.git ...\n")
    err = r.Push(&git.PushOptions{
        RemoteName: "downstream",
        RefSpecs:   referenceList,
    })
    if err != nil {
        log.Fatal(err)
    }

• Push with refs/heads usage also fails
Example code:
    // Add a downstream remote
    _, err = r.CreateRemote(&config.RemoteConfig{
        Name: "downstream",
        URLs: []string{"https://github.com/src-d/go-git.git"},
    })
    if err != nil {
        switch err {
        case git.ErrRemoteNotFound:
            log.Fatal("remote not found")
        default:
            log.Println(err)
        }
    }

    // Push using default options
    upstreamReference := plumbing.ReferenceName("refs/heads/fix/checkout-empty-repo")
    downstreamReference := plumbing.ReferenceName("refs/heads/fix/checkout-empty-repo")
    referenceList := append([]config.RefSpec{},
        config.RefSpec(upstreamReference+":"+downstreamReference))

    log.Printf("Pushing to https://github.com/src-d/go-git.git ...\n")
    err = r.Push(&git.PushOptions{
        RemoteName: "downstream",
        RefSpecs:   referenceList,
    })
    if err != nil {
        log.Fatal(err)
    }

Hey @dbriesz,
If you get an "already up-to-date" it means that the reference on the remote already contains the commits you are trying to push. Unless you know for sure that there are changes locally on your fix/checkout-empty-repo that are not in the remote branch, this is expected behavior.

Hey @orirawlings,
Yes, I know for sure that local changes aren't in the remote branch since I'm trying to push a branch that I have locally to an empty remote branch

Thanks @orirawlings. I'm trying a similar solution on my end, but I'm unable to get this code to work:
remoteRefs, err := ds.List(&git.ListOptions{})
This results in the error
ds.List undefined (type *git.Remote has no field or method List)
Is there another way to get a list of references from the Remote?

Sorry. I'm using a new feature in that example code that hasn't yet been published to the v4 branch. It is only available on go-git master.

Thanks - what is the proper way to use go-git master? I've tried go get -u github.com/src-d/go-git, but get an error that says package github.com/src-d/go-git ... expects import "gopkg.in/src-d/go-git.v4"

If you've retrieved the code using go get -u gopkg.in/src-d/go-git.v4/... then you can update it to the master branch by doing something like the following:
$ git -C $GOPATH/gopkg.in/src-d/go-git.v4 remote add github git@github.com:src-d/go-git.git
$ git -C $GOPATH/gopkg.in/src-d/go-git.v4 fetch github
$ git -C $GOPATH/gopkg.in/src-d/go-git.v4 checkout github/master

Thanks, that worked! I had been using http.NewBasicAuth() in order to provide a username and password when the endpoint.Protocol() was https, but I don't see that function in master. Is there a way I can still do that when using master? For example, when I was using v4, I did something like this:
case endpoint.Protocol() == "https":
		auth := http.NewBasicAuth(username, password)
		return auth

Also, as an unrelated question, when might master be the new released version of go-git?
Thanks for your help!

source: gharchive/issue

authors: dbriesz orirawlings

repo: src-d/go-git

license_type: permissive

license_source: bigquery


text:
Keep optimizing preprocess

Changes:

setup.py: added tqdm

gitbase_constants.py: new file to keep every gitbase related constant (wanted to separate from the logic contained in other files)

__main__.py:

Removed repo-list as one repo is already a lot
Removed force as it is as fast to move the output file
Removed force as it is as fast to move the output file
Added language selection
Added batching: one can select the (number of files, blob_hash pairs) to query at a time, and select a directory where batches are saved temporally. If not given, no saving is done. If given and files already exist in the directory, the files will be assumed to be batches.

preprocess.py:

process_row is not part of the main function
we only parse each blob once
added all of the batching logic
changed the log output
output is now of the form:

{"file_info":
    "ref_1" : {
          "file_1":  {"language": lang, "blob_hash": hash},
          "file_2":  {"language": lang, "blob_hash": hash},
             ...
                 }
    "ref_2" : { ...}
    }
"file_content": {
     "file_1": {
            "blob_1": {
                     "feature_1": {
                             "feature_word_1": num_occs,
                             "feature_word_2": num_occs,
                              }
                     "feature_2": { ... }
              }
            "blob_2": { ... }
    "file_2": { ...}
     }
}

@m09  fixed Travis, hopefully we will be able to remove the batch logic soon

source: gharchive/pull-request

repo: src-d/tm-experiments

license_source: github-api


text:
Error: cannot coerce a set to a string

I'm trying to run nix run nixpkgs#nixci on my flake, but I'm encountering this error from devour-flake.
🍏 .
🐚 nix --extra-experimental-features 'nix-command flakes' eval '.#nixci.default' --json
🍎 default.<root>
🐚 nix --extra-experimental-features 'nix-command flakes' flake lock --no-update-lock-file .
🐚 nix --extra-experimental-features 'nix-command flakes' build '/nix/store/p8vfkmfh43yy8lmz1r65dr9yq3ql7cd7-source#default' -L --no-link --print-out-paths --override-input flake . --refresh -j auto
error:
       … while calling the 'derivationStrict' builtin

         at /derivation-internal.nix:9:12:

            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'devour-output'
         whose name attribute is located at /nix/store/qjqzr7905xxv3rv70z7mkpp06lalnzzb-source/pkgs/stdenv/generic/make-derivation.nix:300:7

       … while evaluating attribute 'text' of derivation 'devour-output'

         at /nix/store/qjqzr7905xxv3rv70z7mkpp06lalnzzb-source/pkgs/build-support/trivial-builders/default.nix:148:16:

          147|     runCommand name
          148|       { inherit text executable checkPhase allowSubstitutes preferLocalBuild;
             |                ^
          149|         passAsFile = [ "text" ];

       error: cannot coerce a set to a string
Error: devour-flake failed to run (exited: 1)

It seems it's happening because one of my outputs is actually of the form:
      packages.pythonPkgs = {
        package1 = pkgs.callPackage ./packages/mypackage1/. {};
        package2 = pkgs.callPackage ./packages/mypackage2/. {};
      };

Is there a way to make that structure work with nixci/devour-output? I'm would like to clearly separate python packages in a pythonPkgs key. Is my way of handling this non standard maybe? :thinking:

@pcboy Your package structure is not valid according to the flake schema: https://nixos.asia/en/blog/nix-rapid#packages
So, I'm closing this issue. But you are welcome to join our Zulip https://nixos.zulipchat.com/ and continue this discussion there.

@pcboy I misunderstood the issue. https://github.com/srid/devour-flake/pull/11 should address your case, specifically #8.
But's continue our discussion in Zulip: https://nixos.zulipchat.com/#narrow/stream/413950-nix/topic/2.20level.20deep.20packages.20in.20nix.20flakes

authors: pcboy srid

repo: srid/devour-flake

license: MIT


text:
Markdown code blocks don't render correctly

If I have this inside of an email:

And test it, it renders like this:

Not really that major, but still a bug.

I suspect this is a problem with markdown's lack of a formal spec -- you probably need the two-spaces-at-the-end-of-the-line thing to make it multiline.

I think this is fixed

authors: tjhorner tylermenezes

repo: srnd/Clear


text:
🛑 Plex is down

In 904b0d6, Plex (https://plex.srueg.ch/identity) was down:

HTTP code: 503
Response time: 2117 ms

Resolved: Plex is back up in 6eda4ee after 29 minutes.

repo: srueg/upptime


text:
ModuleNotFoundError: No module named 'pointnet2_cuda'

Hi, when I import the modules installed in build_and_install.sh, I get this error. It seems that the build is not seccussful, but I actually do run $sh build_and_install.sh. Could you give me some tips? Thank you.
Python 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:09:58)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.

import pointnet2_cuda as pointnet2
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pointnet2_cuda'
import roipool3d
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'roipool3d'
import iou3d
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'iou3d'

when I do this:
cd pointnet2_lib/pointnet2
python setup.py install
I got something strange.
building 'pointnet2_cuda' extension
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/TH -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-9.0/include -I/home/lijiale/anaconda3/include/python3.6m -c src/pointnet2_api.cpp -o build/temp.linux-x86_64-3.6/src/pointnet2_api.o -g -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=pointnet2_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/TH -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-9.0/include -I/home/lijiale/anaconda3/include/python3.6m -c src/ball_query.cpp -o build/temp.linux-x86_64-3.6/src/ball_query.o -g -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=pointnet2_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
/usr/local/cuda-9.0/bin/nvcc -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/TH -I/home/lijiale/anaconda3/lib/python3.6/site-packages/torch/include/THC -I/usr/local/cuda-9.0/include -I/home/lijiale/anaconda3/include/python3.6m -c src/ball_query_gpu.cu -o build/temp.linux-x86_64-3.6/src/ball_query_gpu.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -O2 -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=pointnet2_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9220): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9231): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9244): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9255): error: argument of type "const void *" is incompatible with parameter of type "const double *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9268): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9279): error: argument of type "const void *" is incompatible with parameter of type "const float *"
/usr/lib/gcc/x86_64-linux-gnu/5/include/avx512fintrin.h(9292): error: argument of type "const void *" is incompatible with parameter of type "const double *"

OK, I solved this problem in the following way:

Do make sure about your gcc version, it should be gcc4.9 or gcc5.4, plz see this [issue].(https://github.com/sshaoshuai/Pointnet2.PyTorch/issues/1#issuecomment-483575405)
And it's better to keep same gcc version on PyTorch and these extension module compile.
Import torch before you import these extension module(pointnet2_cuda, iou3d_cuda and roipool3d_cuda).
Hope these tips will help you.

I had the same problem using google colab, and this worked for me :
egg_path='/usr/local/lib/python3.6/dist-packages/pointnet2-0.0.0-py3.6-linux-x86_64.egg' sys.path.append(egg_path) egg_path='/usr/local/lib/python3.6/dist-packages/roipool3d-0.0.0-py3.6-linux-x86_64.egg' sys.path.append(egg_path) egg_path='/usr/local/lib/python3.6/dist-packages/iou3d-0.0.0-py3.6-linux-x86_64.egg' sys.path.append(egg_path) import pointnet2_cuda import roipool3d_cuda import iou3d_cuda
GCC version :
Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.5.0-3ubuntu1~18.04' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

I had the same problem using google colab, and this worked for me :
egg_path='/usr/local/lib/python3.6/dist-packages/pointnet2-0.0.0-py3.6-linux-x86_64.egg'
sys.path.append(egg_path)
egg_path='/usr/local/lib/python3.6/dist-packages/roipool3d-0.0.0-py3.6-linux-x86_64.egg'
sys.path.append(egg_path)
egg_path='/usr/local/lib/python3.6/dist-packages/iou3d-0.0.0-py3.6-linux-x86_64.egg'
sys.path.append(egg_path)
import pointnet2_cuda
import roipool3d_cuda
import iou3d_cuda
GCC version :
Thread model: posix gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)

repo: sshaoshuai/PointRCNN


text:
Setup Compat in Project.toml

Prep for package release.

Codecov Report

Merging #2 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master       #2   +/-   ##
=======================================
  Coverage   92.16%   92.16%
=======================================
  Files          18       18
  Lines        2336     2336
=======================================
  Hits         2153     2153
  Misses        183      183

Impacted Files
Coverage Δ

src/MadNLP.jl
100.00% <100.00%> (ø)

src/interiorpointsolver.jl
95.97% <100.00%> (ø)

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 18c25b0...d88bc11. Read the comment docs.

Thanks, @ccoffrin. Merging this PR.

authors: ccoffrin codecov-commenter sshin23


text:
Unable to Subscribe when Published

I am able to publish using publish.php. But when I am trying to run subscribe.php, the page was loading..... but I can't see any result. Can you please tell me the mistake I am doing.

page loading?
You are running this script from browser rather than Conmand Line Interface?
2015年9月21日星期一，srikodali-eruvaka notifications@github.com 写道：

I am able to publish using publish.php. But when I am trying to run
subscribe.php, the page was loading..... but I can't see any result. Can
you please tell me the mistake I am doing.
—
Reply to this email directly or view it on GitHub
https://github.com/sskaje/mqtt/issues/7.

--
sskaje@gmail.com
https://sskaje.me/

Yes, I am running php page. I want to check whether subscribe is working or not. In my project, I am using MQTT to communicate between sensor device and cloud DB. So when ever device publish any data I need to subscribe it and based on data received I need to reply with publish.
So for this, before trying communication between device and cloud, I am trying to publish & subscribe from the examples folder of yours. From your words I think I can't run subscribe.php, if so can you help to achieve my project goal.

CLI is a best choice if you want to do similar things.
Run php in screen like:
screen php /path/to/subscribe.php
In the subscribe.php, call functions in other files or call your php web
page for actions.
DO NOT run the infinite loop in your php web page.
sskaje@gmail.com
https://sskaje.me/
On Tue, Sep 22, 2015 at 12:17 PM, srikodali-eruvaka <
notifications@github.com> wrote:

Yes, I am running php page. I want to check whether subscribe is working
or not. In my project, I am using MQTT to communicate between sensor device
and cloud DB. So when ever device publish any data I need to subscribe it
and based on data received I need to reply with publish.
So for this, before trying communication between device and cloud, I am
trying to publish & subscribe from the examples folder of yours. From your
words I think I can't run subscribe.php, if so can you help to achieve my
project goal.
—
Reply to this email directly or view it on GitHub
https://github.com/sskaje/mqtt/issues/7#issuecomment-142178125.

For example if I am using below code for my Device Cloud communication using http
0?$qry['$rawVal']:0;
	}
?>
Can you please tell me how can I achieve this using subscribe.php.
I am doing some research on screen, as it is throwing following error:
No results found in /var/run/screen/S-user

I ran
screen php /path to/subscribe.php
It connected but when I published it is throwing error like:

A PHP Error was encountered
Severity: Warning
Message:  call_user_func() expects parameter 1 to be a valid callback, function 'default_subscribe_callback' not found or invalid function name
Filename: third_party/spMQTT.class.php
Line Number: 521

Code which I am using:
publish.php:
load->library('mos_mqtt');
		$mqtt = new spMQTT('tcp://test.mosquitto.org:1883/');
		spMQTTDebug::Enable();
		//$mqtt->setAuth('sskaje', '123123');
		$connected = $mqtt->connect();
		if (!$connected) {
			die("Not connected\n");
		}
		echo "Connected";
		$mqtt->ping();
		$msg = "Testing MQTT with new library";
		$mqtt->publish('cherryTest', $msg, 0, 1, 0, 1);
	}
}
?>
subscribe.php:
load->library('mos_mqtt');
		$mqtt = new spMQTT('tcp://test.mosquitto.org:1883/');
		spMQTTDebug::Enable();
		//$mqtt->setAuth('sskaje', '123123');
		$mqtt->setKeepalive(3600);
		$connected = $mqtt->connect();
		if (!$connected) {
			die("Not connected\n");
		}
		//$topics['sskaje/#'] = 1;
		$topics['cherryTest'] = 1;
		$mqtt->subscribe($topics);
		#$mqtt->unsubscribe(array_keys($topics));
		$mqtt->loop('default_subscribe_callback');
		/**
		 * @param spMQTT $mqtt
		 * @param string $topic
		 * @param string $message
		 */
		function default_subscribe_callback($mqtt, $topic, $message) {
			printf("Message received: Topic=%s, Message=%s\n", $topic, $message);
		}
	}
}
?>

try latest version

authors: srikodali-eruvaka sskaje

repo: sskaje/mqtt

license: mit


text:
这里有个console没有被注释

unbind(el, binding) {         console.log('unbind')         // 调查keep alive后跳转是否触发unbind         vm.isShow = false 。。。       }
这里有个console没有被注释，我百度了好一会儿，才发现不是我程序的事，一看你源码，发现这货了

😭 我应该把console.log都去掉的

repo: ssshooter/img-vuer


text:
VUE3 编辑器报错 浏览器反馈有这个错误

下面是我的页面

请问安装了哪个版本？

啊 不好意思 我没有注意 好像不支持vue3么？我是npm安装的，"mind-elixir": "^0.19.1",

啊 不好意思 我没有注意 好像不支持vue3么？我是npm安装的，"mind-elixir": "^0.19.1",

不会呀，对框架没有要求的

https://codesandbox.io/s/mind-elixir-vue3-4ctovl
代码完全一样的呀🤣

https://codesandbox.io/s/mind-elixir-vue3-4ctovl 代码完全一样的呀🤣

运行失败啊哥

https://codesandbox.io/s/mind-elixir-vue3-4ctovl 代码完全一样的呀🤣

哈哈 抱歉，检查出来是我的问题。。。 新建了一个页面整就没有问题

authors: jooler ssshooter

repo: ssshooter/mind-elixir-core


text:
MIssing External Data File

Hey there! I just stumbled across your repo as I was debugging my own LoRA onnxruntime code - it looks like we independently took a really similar approach (identify reused inits, externalize them, delete data from .onnx, load shared inits at runtime) so kudos!
The only difference is that I had to adjust the onnx source code to disable the check for the external data file because onnx was throwing an error saying that it didn't exist. It was my understanding that onnx shouldn't even be looking for this file if the initializer was already added via session_options.add_initializer(...).
If you wouldn't mind sharing, did you encounter this problem, or do you think I'm just not handling the initializers properly? Thanks!

I haven't encountered that problem, but I think that's because I am almost always loading from a model that already has an external data file, at least for the UNet. For the text encoder, that is not the case, but it seems to work anyways.
Looking at my implementation, I think https://onnx.ai/onnx/api/external_data_helper.html#set-external-data is doing a lot of the heavy lifting. If you look at convert_model_to_external_data, it calls set_external_data in a loop. I assume that any tensor with raw data needs to be externalized, for simplicity, leading to:
        if tensor.HasField("raw_data"):
            npt = numpy_helper.to_array(tensor)
            orv = OrtValue.ortvalue_from_numpy(npt)
            external_data.append((name, orv))
            # mimic set_external_data
            set_external_data(tensor, location="foo.bin")
            tensor.name = name
            tensor.ClearField("raw_data")

As you can see there, the only part of the metadata that I set is the location, and that's not a real file on my system (I checked, just in case :laughing: ).
Whether a TensorProto is considered external or not is based on a few fields, and location is the only required one:
def uses_external_data(tensor: TensorProto) -> bool:
    """Returns true if the tensor stores data in an external location."""
    return (  # type: ignore[no-any-return]
        tensor.HasField("data_location")
        and tensor.data_location == TensorProto.EXTERNAL
    )

I think removing the raw_data is also important to force the data_location to be EXTERNAL. That's also explained here: https://github.com/onnx/onnx/blob/main/docs/ExternalData.md#external_data-field
On the loading side, I believe that the loader does not look for the external data file if the initializers have already been provided, but I can't find the relevant code for that in the ORT source. My loading code is not complicated:
    (unet_model, unet_data) = buffer_external_data_tensors(unet)
    unet_names, unet_values = zip(*unet_data)
    unet_opts = device.sess_options(cache=False)
    unet_opts.add_external_initializers(list(unet_names), list(unet_values))

I have thought about turning this ONNX LoRA code into a library that can be used on its own, or contributing it upstream to one of the Huggingface projects. I have some tests, not as many as I'd like, but enough to cover the core features of a small library, if that would be useful.

authors: brian-pieces ssube

repo: ssube/onnx-web


text:
Cannot open include file: 'boost/filesystem.hpp': No such file or directory

Hi,
I was unable to build osrmnet in VS2015. I am looking forward to release version, very excited. I am currently using Route() through web server. I use returned Geometry to draw route path on a map. Once I started writing a similar program myself but did not have enough experience doing it on my own. I was following this tutorial.
https://www.codeproject.com/Articles/165383/Integrating-an-unmanaged-C-lib-with-C

a6datta please provide errors and you have to run build.ps1 to get the project dependencies at least one time.  I'll update the readme.md with this.

@a6datta , since it's been a while I assume you solved the issue. Feel free to reopen this if it's not the case.

repo: ssuluh/osrmnet


text:
Make reactions pop

Give the heart a neat little animation when it changes.

https://github.com/staab/coracle/pull/23

authors: Morkowski staab

repo: staab/coracle


text:
Secrets JSON build

Allows someone, such as a technologist, to build a local secrets-sp.json file via input prompts in terminal.

        secrets = SecretsJSONFactory(args.name, EventSyncInputs)
        secrets.build_json()
        secrets.write_json()

should basically let someone create a secrets.json file that lets them run things using the secrets() context from this library. that way we have a 1:1 exact mapping from AWS secrets to the local secrets. this is also how vote automation and event sync take in secrets as opposed to a .env file.

Also goes along with this PR in event sync - https://github.com/stac-labs/van-event-sync/pull/24/files# - would let technologists make the secret without doing what I currently do, which is copy paste the secret as plaintext from AWS Secrets Manager to a json file for running on local. and it keeps the service account and whatnot formatted correctly, and will hopefully make it easier on less technical technologists.

I think this works. But I'd argue strongly that vote automation and event sync should be changed to use .env files and command-line arguments. And that's the approach we should train technologists on. If you're running things one-off, why would you make a file about how to run it before you run it? And if you're trying out a different parameter flag, why should you edit a json file rather than just sending a parameter?

My reasons here:

The ability to copy paste back and forth with AWS secrets manager is really helpful for testing on local and then transferring to deployed with fewer errors
Technologists do have occasional one-offish things that they actually need to run 4 or 5 times
I think doing this may make building jsons a little less intimidating in general for technologists

I totally agree on the ability to copy to & from AWS secrets. But a .env approach does the same. And it's only one file that presumably matches all states. Unless you have state-specific secrets that are actual secrets and not just settings? I agree that technologists often run things multiple times, and command-line arguments make that easy. I'm unsure why we want technologists to be less intimidated by building jsons. I do think encouraging them to be more familiar with command line work -- and including arguments to command-line scripts -- is beneficial. Whenever I tell someone to run a script, I always have them run it first with -h to ensure they know the potential arguments -- and to ensure that they have the requirements installed.

I think we have to recognize that most of the time these scripts are going to run on AWS, and that we are not necessarily aiming for all technologists to be familiar with command line python all the time. Not everyone wants or needs that to be successful with what they're doing. Long term I think we need to meet people where they're at and if that's going to mean more retool for folks and less command line, that should be fine. If that means utilities like this, that should be fine too.
A utility that helps them be able to run something locally once more efficiently without overhauling loads of our code to support either secrets or .env depending on how it is run seems fine to me.

yep that's what i was gonna say - they might have different service accounts, API keys, settings, etc. anyway thanks for the conversation all 😅

authors: JulieGoldberg bxjw jrose-stac

repo: stac-labs/stac-utils-python


text:
Question about external force and impedance control

Hi,
First of all, thank you so much for the framework. It is really interesting.
I'm trying to implement an simple impedance control but my force seems to be in another frame, which I don't understand in which one. I'm using the kinova Jaco as a manipulator. The manipulator moves but not as defined in the documentation of the robot. I'm pretty sure that I'm not doing in the best way the transformation of the frames in order to have the good one.
pin.forwardKinematics(model,data,q)
pin.updateFramePlacements(model,data)
oMdes = data.oMf[model.getFrameId("j2s6s200_end_effector")]
wrench = np.array([nx,ny,nz,nx,fy,fz])
wrench_ = pin.Force.Zero()
wrench_.linear = np.array([fx,fy,fz])
wrench_.angular = np.array([nx,ny,nz])
ft = wrench_

for k in range(model.njoints):
    faux = pin.Force.Zero()
    if k == (model.njoints-1):
        faux.linear = ft.linear
        faux.angular =ft.angular
    fext.append(faux)

Then, I have the simulation part with the control algorithm
for k in range(N):
  t += dt
  tic = time.time()
  pin.forwardKinematics(model,data,q)
  pin.updateFramePlacements(model,data)
  pin.computeJointJacobians(model, data, q)
  J=pin.getFrameJacobian(model,data,frameIndex,pin.LOCAL)

  xdot = J@qdot
  velerror = -xdot

  u = Dd@velerror + wrench
  a =  J.T@(np.linalg.pinv(Md)@u)
  tau = pin.rnea(model, data, q, qdot, a,fext)
  qddot = pin.aba(model, data, q, qdot, tau, fext)

  qdot += qddot * dt
  q = pin.integrate(model,q,qdot*dt)

  toc = time.time()
  ellapsed = toc - tic
  dt_sleep = max(0,dt - (ellapsed))
  time.sleep(dt_sleep)

I know that the frames
oMdes= data.oMf[model.getFrameId("j2s6s200_end_effector")]
oMdes = data.oMi[jointIndex] # corresponds to the parent of the end_effector frame

are differents but it is not clear to me from where to where I need to transform the force and based on which idea. I tried to follow the same ideas as described in https://fr.mathworks.com/help/robotics/ug/compute-joint-torques-to-balance-an-endpoint-force-and-moment.html but I did not succeed.
Any hint ? Thanks in advance ;)

model.frames[model.getFrameId("j2s6s200_end_effector")].placement contains the relative placement between the LOCAL frame associated to the Frame itself, and its parent joint.
In your case, J=pin.getFrameJacobian(model,data,frameIndex,pin.LOCAL) is already taking things into account, meaning that the Jacobian is already expressed in the LOCAL frame of the Frame.
The question is in which frame wrench is expressed in your case?
You could also simplify your code with:
for k in range(N):
  t += dt
  tic = time.time()
  pin.forwardKinematics(model,data,q)
  pin.updateFramePlacements(model,data)
  pin.computeJointJacobians(model, data, q)
  J=pin.getFrameJacobian(model,data,frameIndex,pin.LOCAL)

  xdot = J@qdot
  velerror = -xdot

  u = Dd@velerror + wrench
  a =  J.T@(np.linalg.pinv(Md)@u)

  qdot += a * dt
  q = pin.integrate(model,q,qdot*dt)

  toc = time.time()
  ellapsed = toc - tic
  dt_sleep = max(0,dt - (ellapsed))
  time.sleep(dt_sleep)

Thanks a lot for your fast answer and for the simplification of the code. You are totally right.
Well, following the ideas of the impedance control, I believe the wrench should be described in the end-effector frame. I implemented this control on MATLAB and the results that I'm looking for are the following: If I remember well, the force (different from the wrench) control was described in the global frame (or inertial frame).
Thanks in advance for your help.

So, if your wrench quantity is expressed in the LOCAL frame, nothing needs to be changed.
Otherwise, you can use oMdes= data.oMf[model.getFrameId("j2s6s200_end_effector")].actInv(wrench) to transform a wrench expressed at the origin of the world aligned with the world coordinate systems to the LOCAL frame of the Frame.
I hope this answer helps you. Could we close this issue then?

repo: stack-of-tasks/pinocchio


text:
[math] Build error with SINCOS macro on Linux and float

On Linux, the SINCOS macro simply forwards the call to the sincos function.
As the output arguments are pointers, sincos only compiles for double but not float. This renders explog functions unusable with scalars other that double.
I don't know what a proper fix would be in this case.

I will provide one in version 2.0.0.
But maybe, you need a fix now?
By the way, why float and not double?

Thanks @jcarpent, it's not urgent so we can wait until v2.0.0.
We internally use pinocchio with float, never with double. I don't have a proper justification for that, other than performance issues. We did not benchmark this choice, so I can't exclude that we will revert back to using double some day.

My own experience is that computation are really less precise/stable with float than double.
If your CPU can handle directly 64 bits I would suggest to stick with it.
If not then indeed you are on a very constrained environment.
Then you probably would benchmark pinocchio more closely. The prediction capabilities of your CPU can have an impact.

It should be fixed by #563.
@aelkhour Can you try it?

authors: aelkhour jcarpent olivier-stasse


text:
Research - Bench de MLops

Descrição
Benchmark comparando as seguintes ferramentas de MLOps:
MLflow
Kubeflow
Metaflow
Sage Maker
Google Cloud AI Platform - Vertex AI concorrente Sagemaker
Azure Machine learning
DVC
Seldon
Domino Data Lab
DataRobot
H2O.ai
Weights & Biases
prefect.io
kedro.org
Katonic.ai
DOD
Apresentação com tabela comparativa entre as plataformas, apontando quais os requisitos básicos de um produto de MLOps (Licença para operar) e quais os possíveis diferenciais (licença para competir e vencer)
Tasks

[x] Listar features de comparação
[x] Validar lista com time técnico
[x] Definir players
[x] Construir o benchmark
[ ] Validar tabela com time técnico
[ ] Construir apresentação

Tabela de benchmark https://docs.google.com/spreadsheets/d/1imHzP5uD-5c4ubuwCiyPhISsASCGV8nrmsJttk2q4nY/edit#gid=1123411942

authors: fernandosantoszup flavioaraujozup


text:
chore(kafka): Remove kubectl

Description
We need to wait for the merge of https://github.com/stackabletech/kafka-operator/pull/443
Definition of Done Checklist

Not all of these items are applicable to all PRs, the author should update this template to only leave the boxes in that are relevant
Please make sure all these things are done and tick the boxes

- [ ] Changes are OpenShift compatible
- [ ] All added packages (via microdnf or otherwise) have a comment on why they are added
- [ ] Things not downloaded from Red Hat repositories should be mirrored in the Stackable repository and downloaded from there
- [ ] All packages should have (if available) signatures/hashes verified
- [ ] Add an entry to the CHANGELOG.md file
- [ ] Integration tests ran successfully

TIP: Running integration tests with a new product image
The image can be built and uploaded to the kind cluster with the following commands:
bake --product <product> --image-version <stackable-image-version>
kind load docker-image <image-tagged-with-the-major-version> --name=<name-of-your-test-cluster>

See the output of bake to retrieve the image tag for <image-tagged-with-the-major-version>.

I'm happy to silently remove it, as only kafka-operator should be using it.
I just proposed to wait until the release is over, just in case some customer messes up his env and the product image being more recent than the operator image

repo: stackabletech/docker-images


text:
CRD docs style guide

We need a style guide for CRD docs.

How to link to the docs
Start with a capital letter and end with a period.
Follow the style from here: https://www.manifests.io/kubernetes/1.28/io.k8s.apimachinery.pkg.apis.meta.v1.APIGroup
code style when? In our docs we have it for CRD properties/keys but not for the objects. I'd keep it like that in the CRD docs.

Maybe we can just add a brief section in our regular style guide: https://docs.stackable.tech/home/stable/contributor/style-guide
combine with this: https://github.com/stackabletech/documentation/issues/488
link the style guide in the PR template in operator-templating: https://github.com/stackabletech/operator-templating/blob/main/template/.github/pull_request_template.md

https://github.com/stackabletech/operator-templating/pull/293

repo: stackabletech/documentation


text:
Hangs on Booting Container

Describe the bug
it never gets beyond "Booting Container"
Link to the blitz that caused the error
https://stackblitz.com/~/github.com/jmc420/graphql_scalar
Steps to reproduce
Go to the url
Expected behavior
Should Boot Container, install dependencies
Parity with Local

[X] I have run the project in my local machine and I could not reproduce the issue.

Screenshots
No response
Platform
Version = 1.84.0
Hash = 89ac2eda2442b1f81682ad2a5dd682d8621aae36
WebContainer = 9e24d36e

Browser name  = Chrome
Full version  = 119.0.0.0
Major version = 119
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 84449925,
  "usedJSHeapSize": 53974841,
  "jsHeapSizeLimit": 4294705152
}

Additional context
No response

Hi @jmc420 👋 ! Thanks for reporting! This is a bug indeed on our side. It does work in Firefox and Safari, and we have a fix ready for Chrome. The reason was the _ in the repository name that caused a bug in Chrome. We will also report this bug in the Chrome issue tracker as it shouldn't have happened in the first place.

@jmc420 The fix is deployed and I checked that your repository loads now, which it does 👍 . Thanks again for reporting!

thanks

repo: stackblitz/webcontainer-core


text:
Support multiple NWC relays

Describe the problem you're trying to solve
Wallets like cashu.me include multiple relays in their NWC connection string. We currently only use the first relay.
Describe the solution you'd like
Parse all relays from NWC connection in parseNwcUrl using url.searchParams.getAll('relay') instead of url.searchParams.get('relay') and use all of them to publish requests and listen for responses.
https://github.com/stackernews/stacker.news/blob/4cc3780eca1f1390bdd331f0e418b9a7efd4347e/lib/url.js#L190-L214
Describe alternatives you've considered
No response
Additional context
Logging would become very noisy if we log all events for every relay individually like we do now for the single relay. We should consider to remove all logs inside the nwcCall function if they aren't needed. NWC is the only wallet that uses the logger inside its own functions. So maybe it's indeed not needed and we can simply rely on general wallet logs?

this is the default behavior in ndk

authors: ekzyis riccardobl


text:
Fix deposit push notifications

Description
Fix #1661
Checklist
Are your changes backwards compatible? Please answer below:
yes
On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:
7. Tested with a deposit.
For frontend changes: Tested on mobile, light and dark mode? Please answer below:
n/a
Did you introduce any new environment variables? If so, call them out explicitly here:
no

TODO for me: look if there is the same bug in other places


text:
ROX-22760: fix SARIF printer for empty results

Description
We've received an issue where the SARIF report couldn't be generated in case no violations have been found during image / deployment check.
The reason is that the JSON path expressions we use with GJSON, particularily the help one, is returning a - as value. This is our "empty value" replacement string, which is needed to be returned for array values.
We didn't handle this properly during evaluating the JSON path expressions, so this is now being handled correctly.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change

see CI.

Manual test:
Run roxctl for a deployment which doesn't have violations and expect no errors being returned, just an empty SARIF report:
roxctl image check --image=quay.io/jetstack/cert-manager-webhook:v1.14.3 --output sarif

Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

Current dependencies on/for this PR:

#10150  👈
master

This stack of pull requests is managed by Graphite.

repo: stackrox/stackrox


text:
QA end-to-end tests : Centralize postgres run identification logic

Description
Some end-to-end tests require knowledge of whether the current run targets a central instance running against postgres.
This knowledge can be used to disable some tests that are not ready yet to run against postgres, or to adjust the test flow to either target specific endpoints, or to adjust request elements passed to Central.
The change at hand reduces the number of locations in the test code where this logic (currently check of an environment variable) appears.
Checklist

[ ] Investigated and inspected CI test results
- [ ] Unit test and regression tests added
- [ ] Evaluated and added CHANGELOG entry if required
- [ ] Determined and documented upgrade steps
- [ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Test logic changes. CI run should be sufficient.

/test all

/test all

/test all


text:
Dashrews/migration prob option 2

Description
We need to be able to not panic when a legacy migration is added as part of a patch release or for some other reason.  We can take advantage of the fact that if we determine that Postgres is the source database, we will pass nils to the migrations for both Bolt and Rocks.  If we determine we need to migrate from legacy we are ensured that Bolt and Rocks are not nil because we fail before calling the runner if they are.  So here we have annotated the migrations if they are a legacy to Postgres migration.  If they are and the legacy database are nil, we skip those migrations.
This solution is a quick and dirty one based on the state that we have saved currently for migrations.  A larger refactor and storing additional state is also an option, but that would take longer to release and would prove unnecessary in a couple of releases.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Manual tests for now.  Spin up an environment from earlier in 3.73.  Upgrade to these images and note in the logs that migration 169 was skipped.  #4003 will have added this case to CI runs upon its completion.

/test gke-upgrade-tests

/test gke-qa-e2e-tests


text:
Enable executing TLSChallengeTest and UpgradesTest on P/Z

This PR intends to enable executing TLSChallengeTest and UpgradesTest on P/Z. Also a workaround has been added in UpgradesTest to make it execute on P/Z.
Changes are verified manually using ./gradlew test --tests=TestName
Part of this PR intends to revert few changes added as part of #4357

/test ocp-4-10-qa-e2e-tests
/test ocp-4-12-qa-e2e-tests

hi @gavin-stackrox kindly check this PR

/test ocp-4-10-qa-e2e-tests
/test ocp-4-12-qa-e2e-tests


text:
Release v2

Issues to be solved before v2 is released

https://github.com/stackworx/formik-material-ui/issues/130
https://github.com/stackworx/formik-material-ui/issues/129
https://github.com/stackworx/formik-material-ui/issues/128
https://github.com/stackworx/formik-material-ui/issues/126
https://github.com/stackworx/formik-material-ui/issues/119
https://github.com/stackworx/formik-material-ui/issues/98
https://github.com/stackworx/formik-material-ui/issues/111

Converted to project

repo: stackworx/formik-material-ui


text:
How To Open "OpenUtau"?

I have been having trouble trying to open "OpenUtau" anyone know how to open it?

please send the log from the logs folder if there is any

authors: RonIsBest nagotown

repo: stakira/OpenUtau


text:
Debugger shouldn't step into formatting methods by default

Yet another aspect of source code distribution that isn't yet addressed is debugging behaviour. User code probably doesn't want to have the debugger step into stringBuilder.AppendFormattedName or type.GetFormattedName.
These extension methods should probably be decorates with a suitable [System.Diagnostics.Debugger...] custom attribute.

Fixed in 717e5e1e8c4f04e8543ce7c02ea3a463fabfe4ec with [DebuggerStepThrough]. See commit message for details.

repo: stakx/TypeNameFormatter


text:
🛑 Proxima/DNS Server is down

In 6346908, Proxima/DNS Server (http://proxima01.its-telekom.eu/livewatch.php) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Proxima/DNS Server is back up in b622793.

repo: stamateas/upptime


text:
Can't seem to mock axios in a stamp

Hi there,
I'm trying to write a unit test that tests my stamp, this is the setup of my files:
useFetch.ts
import stampit from '@stamp/it';
import axios from 'axios';

export default stampit({
  init({
    baseURL,
    headers
  }: {
    baseURL: string;
    headers: object;
  }) {
    this.fetch = axios.create({
      baseURL: this.baseURL || baseURL,
      headers: this.headers || headers
    });
  },
  methods: {
    async setQuery(params: string) {
      if (!this.query) {
        this.query = `?${params}`;
      } else {
        this.query = `${this.query}&${params}`;
      }
    },
    async request(url: string, type: string) {
      try {
        const fullURL: string = `${url || '/'}${this.query || ''}`
        return await this.fetch.get(fullURL);
      } catch (error) {
        throw error;
      }
    }
  }
});

And my test file:
import MockAdapter from 'axios-mock-adapter';
import { expect, assert } from 'chai';
import sinon from 'sinon';
import useFetch from './useFetch';
import axios, { AxiosError } from 'axios';
import stampit from '@stamp/it';

describe("useFetch", function() {
  describe("get", async () => {

    let stub: MockAdapter;
    const receivedData = { data: 'data' };

    before(() => {
      stub = new MockAdapter(useFetch());
      stub.onGet('https://google.com').replyOnce(200, receivedData);
    });

    it("returns data in a string", async () => {
      const response = await useFetch({
        baseURL: 'https://google.com'
      }).request();

      expect(response.status).to.be.equal(200);
      expect(response.data).to.be.deep.equal(receivedData);
    });

    after(() => {
      stub.restore();
    });
  });
});

What should I do to make this test work?

Thanks for your question.
Everything seems right. What's not working though?

It is calling the original Axios instance instead of the MockedAdapter.

Ah, mate, you need to ask the question in the axios and axios-mock-adapter projects respectively. I do not see you are using Stamps for mocking.
With stamps, one do not need any mocking libraries. Stampit can mock anything. Here is an article on that topic: https://medium.com/@koresar/fun-with-stamps-episode-17-easy-100-unit-test-coverage-in-js-d97e09591f18

authors: koresar raynmakers

repo: stampit-org/stampit


text:
Compilation failures under LLVM 19

Description
LLVM 19.1.0 was released last week: https://discourse.llvm.org/t/llvm-19-1-0-released/81285
Running our test pipeline uncovered some failures: https://jenkins.flatironinstitute.org/blue/organizations/jenkins/Stan%2FBleedingEdgeCompilersMonthly/detail/BleedingEdgeCompilersMonthly/198/pipeline/207
Example
Details

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::var_value<double, void>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1116:47: note: in instantiation of template class 'std::__promote<int, stan::math::var_value<double>>' requested here

 1116 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const _Tp& __x, const complex<_Up>& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:275:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = int, _Up = stan::math::var_value<double>, $2 = (no value)]

  275 |   auto a5 = pow(i, cv);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::var_value<double, void>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1116:47: note: in instantiation of template class 'std::__promote<double, stan::math::var_value<double>>' requested here

 1116 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const _Tp& __x, const complex<_Up>& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:281:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = double, _Up = stan::math::var_value<double>, $2 = (no value)]

  281 |   auto b5 = pow(d, cv);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::var_value<double, void>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1110:47: note: in instantiation of template class 'std::__promote<stan::math::var_value<double>, int>' requested here

 1110 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:295:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::var_value<double>, _Up = int, $2 = (no value)]

  295 |   auto d1 = pow(cv, i);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::var_value<double, void>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1110:47: note: in instantiation of template class 'std::__promote<stan::math::var_value<double>, double>' requested here

 1110 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:296:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::var_value<double>, _Up = double, $2 = (no value)]

  296 |   auto d2 = pow(cv, d);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::var_value<double, void>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1103:47: note: in instantiation of template class 'std::__promote<stan::math::var_value<double>, stan::math::var_value<double>>' requested here

 1103 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type>

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:299:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::var_value<double>, _Up = stan::math::var_value<double>]

  299 |   auto d5 = pow(cv, cv);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<double>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1116:47: note: in instantiation of template class 'std::__promote<int, stan::math::fvar<double>>' requested here

 1116 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const _Tp& __x, const complex<_Up>& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:321:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = int, _Up = stan::math::fvar<double>, $2 = (no value)]

  321 |   auto a5 = pow(i, cv);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<double>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1116:47: note: in instantiation of template class 'std::__promote<double, stan::math::fvar<double>>' requested here

 1116 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const _Tp& __x, const complex<_Up>& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:327:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = double, _Up = stan::math::fvar<double>, $2 = (no value)]

  327 |   auto b5 = pow(d, cv);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<double>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1110:47: note: in instantiation of template class 'std::__promote<stan::math::fvar<double>, int>' requested here

 1110 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:335:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::fvar<double>, _Up = int, $2 = (no value)]

  335 |   auto d1 = pow(cv, i);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<double>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1110:47: note: in instantiation of template class 'std::__promote<stan::math::fvar<double>, double>' requested here

 1110 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:336:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::fvar<double>, _Up = double, $2 = (no value)]

  336 |   auto d2 = pow(cv, d);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<double>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1103:47: note: in instantiation of template class 'std::__promote<stan::math::fvar<double>, stan::math::fvar<double>>' requested here

 1103 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type>

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:339:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::fvar<double>, _Up = stan::math::fvar<double>]

  339 |   auto d5 = pow(cv, cv);

      |             ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::fvar<double>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1110:47: note: in instantiation of template class 'std::__promote<stan::math::fvar<stan::math::fvar<double>>, int>' requested here

 1110 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:163:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::fvar<stan::math::fvar<double>>, _Up = int, $2 = (no value)]

  163 |   auto a2 = pow(std::complex<T>(1.0), 1);

      |             ^

test/unit/math/mix/fun_16_test.cpp:179:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::fvar<double>>>' requested here

  179 |   expect_arith_instantiate<fvar<fvar<double>>>();

      |   ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::fvar<double>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1110:47: note: in instantiation of template class 'std::__promote<stan::math::fvar<stan::math::fvar<double>>, double>' requested here

 1110 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:164:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::fvar<stan::math::fvar<double>>, _Up = double, $2 = (no value)]

  164 |   auto b2 = pow(std::complex<T>(1.0), 1.0);

      |             ^

test/unit/math/mix/fun_16_test.cpp:179:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::fvar<double>>>' requested here

  179 |   expect_arith_instantiate<fvar<fvar<double>>>();

      |   ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::fvar<double>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1116:47: note: in instantiation of template class 'std::__promote<int, stan::math::fvar<stan::math::fvar<double>>>' requested here

 1116 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const _Tp& __x, const complex<_Up>& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:165:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = int, _Up = stan::math::fvar<stan::math::fvar<double>>, $2 = (no value)]

  165 |   auto c2 = pow(1, std::complex<T>(1.0));

      |             ^

test/unit/math/mix/fun_16_test.cpp:179:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::fvar<double>>>' requested here

  179 |   expect_arith_instantiate<fvar<fvar<double>>>();

      |   ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::fvar<double>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1116:47: note: in instantiation of template class 'std::__promote<double, stan::math::fvar<stan::math::fvar<double>>>' requested here

 1116 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const _Tp& __x, const complex<_Up>& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:166:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = double, _Up = stan::math::fvar<stan::math::fvar<double>>, $2 = (no value)]

  166 |   auto d2 = pow(1.0, std::complex<T>(1.0));

      |             ^

test/unit/math/mix/fun_16_test.cpp:179:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::fvar<double>>>' requested here

  179 |   expect_arith_instantiate<fvar<fvar<double>>>();

      |   ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::fvar<double>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1103:47: note: in instantiation of template class 'std::__promote<stan::math::fvar<stan::math::fvar<double>>, stan::math::fvar<stan::math::fvar<double>>>' requested here

 1103 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type>

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:167:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::fvar<stan::math::fvar<double>>, _Up = stan::math::fvar<stan::math::fvar<double>>]

  167 |   auto e2 = pow(std::complex<T>(1.0), std::complex<T>(1.0));

      |             ^

test/unit/math/mix/fun_16_test.cpp:179:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::fvar<double>>>' requested here

  179 |   expect_arith_instantiate<fvar<fvar<double>>>();

      |   ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::var_value<double, void>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1110:47: note: in instantiation of template class 'std::__promote<stan::math::fvar<stan::math::var_value<double>>, int>' requested here

 1110 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:163:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::fvar<stan::math::var_value<double>>, _Up = int, $2 = (no value)]

  163 |   auto a2 = pow(std::complex<T>(1.0), 1);

      |             ^

test/unit/math/mix/fun_16_test.cpp:180:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::var_value<double>>>' requested here

  180 |   expect_arith_instantiate<fvar<var>>();

      |   ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::var_value<double, void>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1110:47: note: in instantiation of template class 'std::__promote<stan::math::fvar<stan::math::var_value<double>>, double>' requested here

 1110 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:164:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = stan::math::fvar<stan::math::var_value<double>>, _Up = double, $2 = (no value)]

  164 |   auto b2 = pow(std::complex<T>(1.0), 1.0);

      |             ^

test/unit/math/mix/fun_16_test.cpp:180:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::var_value<double>>>' requested here

  180 |   expect_arith_instantiate<fvar<var>>();

      |   ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::var_value<double, void>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1116:47: note: in instantiation of template class 'std::__promote<int, stan::math::fvar<stan::math::var_value<double>>>' requested here

 1116 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const _Tp& __x, const complex<_Up>& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:165:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = int, _Up = stan::math::fvar<stan::math::var_value<double>>, $2 = (no value)]

  165 |   auto c2 = pow(1, std::complex<T>(1.0));

      |             ^

test/unit/math/mix/fun_16_test.cpp:180:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::var_value<double>>>' requested here

  180 |   expect_arith_instantiate<fvar<var>>();

      |   ^

In file included from test/unit/math/mix/fun_16_test.cpp:1:

In file included from ./test/unit/math/test_ad.hpp:4:

In file included from ./stan/math/mix.hpp:4:

In file included from ./stan/math/mix/meta.hpp:6:

In file included from ./stan/math/fwd/core.hpp:4:

In file included from ./stan/math/fwd/core/fvar.hpp:4:

In file included from ./stan/math/prim/meta.hpp:72:

In file included from ./stan/math/prim/meta/append_return_type.hpp:4:

In file included from ./stan/math/prim/fun/Eigen.hpp:22:

In file included from lib/eigen_3.4.0/Eigen/Dense:1:

In file included from lib/eigen_3.4.0/Eigen/Core:19:

In file included from lib/eigen_3.4.0/Eigen/src/Core/util/Macros.h:679:

In file included from /usr/local/include/c++/v1/cmath:316:

In file included from /usr/local/include/c++/v1/__math/hypot.h:15:

In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:

/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::fvar<stan::math::var_value<double, void>>>::value'

   32 |   static_assert((is_arithmetic<_Args>::value && ...));

      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/usr/local/include/c++/v1/complex:1116:47: note: in instantiation of template class 'std::__promote<double, stan::math::fvar<stan::math::var_value<double>>>' requested here

 1116 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const _Tp& __x, const complex<_Up>& __y) {

      |                                               ^

test/unit/math/mix/fun_16_test.cpp:166:13: note: while substituting deduced template arguments into function template 'pow' [with _Tp = double, _Up = stan::math::fvar<stan::math::var_value<double>>, $2 = (no value)]

  166 |   auto d2 = pow(1.0, std::complex<T>(1.0));

      |             ^

test/unit/math/mix/fun_16_test.cpp:180:3: note: in instantiation of function template specialization 'expect_arith_instantiate<stan::math::fvar<stan::math::var_value<double>>>' requested here

  180 |   expect_arith_instantiate<fvar<var>>();

      |   ^

fatal error: too many errors emitted, stopping now [-ferror-limit=]

20 errors generated.

Expected Output
Compilation to succeed
It smells like #3006 may be related again, it looks like these asserts are in the complex functions
Current Version:
v4.9.0

Looks like this static assert was introduced by https://github.com/llvm/llvm-project/pull/81379

@SteveBronder @andrjohns are you able to take a look at this? It will become a blocker for the upcoming release I think!

It appears the issue is specifically with mixing a complex value of our autodiff types with a primitive in pow()

The actual error in details it comes from here.
template <class _Tp, class _Up, __enable_if_t<is_arithmetic<_Up>::value, int> = 0>
inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type> pow(const complex<_Tp>& __x, const _Up& __y) {
  typedef complex<typename __promote<_Tp, _Up>::type> result_type;
  return std::pow(result_type(__x), result_type(__y));
}

and the offending code in the tests is calling a complex<var> and double
auto d2 = pow(cv, d);

which should be calling the stan pow function from here
/**
 * Return the first argument raised to the power of the second argument.
 *
 * @tparam T arithmetic type
 * @param x first argument
 * @param y second argument
 * @return first argument to the power of the second argument
 */
template <typename T, typename = require_arithmetic_t<T>>
inline std::complex<var> pow(const std::complex<var>& x, T y) {
  return internal::complex_pow(x, y);
}

We could make ours a more likely candidate by making T info const T&, but I think that just kicks the can down the line. I'm going to file an issue with them about this but for now I think your #3109 is the right answer

Hmm, actually maybe we should just make our T, const T& since all of their signatures are const T&. I don't have 19.0.1 locally but that would solve the problem.

For testing I can pull the docker image we use, if there’s something you’d rather me try

Yes I think that's right because the standard has the pow signature using const &
https://en.cppreference.com/w/cpp/numeric/complex/pow

Can you try changing the signature I linked above to be
template <typename T, typename = require_arithmetic_t<T>>
inline std::complex<var> pow(const std::complex<var>& x, const T& y) {
  return internal::complex_pow(x, y);
}

@SteveBronder it looks like this model also fails, due to the apply_scalar overload calling pow instead of stan::math::pow.
Details

n file included from pow.hpp:1:
In file included from /home/jenkins/cmdstan/stan/src/stan/model/model_header.hpp:4:
In file included from /home/jenkins/cmdstan/stan/src/stan/model/model_base.hpp:7:
In file included from /home/jenkins/cmdstan/stan/src/stan/io/var_context.hpp:4:
In file included from /usr/local/include/c++/v1/sstream:317:
In file included from /usr/local/include/c++/v1/__ostream/basic_ostream.h:16:
In file included from /usr/local/include/c++/v1/__system_error/error_code.h:18:
In file included from /usr/local/include/c++/v1/__system_error/error_category.h:15:
In file included from /usr/local/include/c++/v1/string:614:
In file included from /usr/local/include/c++/v1/__memory_resource/polymorphic_allocator.h:20:
In file included from /usr/local/include/c++/v1/tuple:268:
In file included from /usr/local/include/c++/v1/compare:174:
In file included from /usr/local/include/c++/v1/cmath:316:
In file included from /usr/local/include/c++/v1/__math/hypot.h:15:
In file included from /usr/local/include/c++/v1/__math/exponential_functions.h:17:
/usr/local/include/c++/v1/__type_traits/promote.h:32:18: error: static assertion failed due to requirement 'is_arithmetic<stan::math::var_value<double, void>>::value'
   32 |   static_assert((is_arithmetic<_Args>::value && ...));
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/c++/v1/complex:1103:47: note: in instantiation of template class 'std::__promote<double, stan::math::var_value<double>>' requested here
 1103 | inline _LIBCPP_HIDE_FROM_ABI complex<typename __promote<_Tp, _Up>::type>
      |                                               ^
/home/jenkins/cmdstan/stan/lib/stan_math/stan/math/prim/fun/pow.hpp:66:12: note: while substituting deduced template arguments into function template 'pow' [with _Tp = double, _Up = stan::math::var_value<double>]
   66 |     return pow(c, d);
      |            ^
/home/jenkins/cmdstan/stan/lib/stan_math/stan/math/prim/functor/apply_scalar_binary.hpp:290:42: note: in instantiation of function template specialization 'stan::math::pow(const std::vector<std::complex<double>> &, const std::complex<stan::math::var> &)::(anonymous class)::operator()<std::complex<double>, std::complex<stan::math::var>>' requested here
  290 |   using T_return = std::decay_t<decltype(f(x[0], y))>;
      |                                          ^
/home/jenkins/cmdstan/stan/lib/stan_math/stan/math/prim/fun/pow.hpp:64:10: note: in instantiation of function template specialization 'stan::math::apply_scalar_binary<std::vector<std::complex<double>>, std::complex<stan::math::var>, (lambda at /home/jenkins/cmdstan/stan/lib/stan_math/stan/math/prim/fun/pow.hpp:64:36), nullptr, nullptr>' requested here
   64 |   return apply_scalar_binary(a, b, [](const auto& c, const auto& d) {
      |          ^
pow.hpp:6351:21: note: in instantiation of function template specialization 'stan::math::pow<std::vector<std::complex<double>>, std::complex<stan::math::var>, nullptr, nullptr>' requested here
 6351 |         stan::math::pow(d_complex_array, p_complex),
      |                     ^
pow.hpp:12239:12: note: in instantiation of function template specialization 'pow_model_namespace::pow_model::log_prob_impl<false, false, Eigen::Matrix<stan::math::var_value<double>, -1, 1>, Eigen::Matrix<int, -1, 1>, nullptr, nullptr, nullptr>' requested here
 12239 |     return log_prob_impl<propto__, jacobian__>(params_r, params_i, pstream);
       |            ^
/home/jenkins/cmdstan/stan/src/stan/model/model_base_crtp.hpp:98:50: note: in instantiation of function template specialization 'pow_model_namespace::pow_model::log_prob<false, false, stan::math::var_value<double>>' requested here
   98 |     return static_cast<const M*>(this)->template log_prob<false, false>(theta,
      |                                                  ^
pow.hpp:991:3: note: in instantiation of member function 'stan::model::model_base_crtp<pow_model_namespace::pow_model>::log_prob' requested here
  991 |   ~pow_model() {}
      |   ^
3 errors generated.

Unfortunately it doesn't look like adding const & to all our Ts fixes it

(note: that failure does not mention std::complex)

Oh that's very interesting. Yes in that case I think just adding stan::math:: to pow calls in that test makes sense. We do that for the compiler generated code anyway

authors: SteveBronder WardBrian

repo: stan-dev/math


text:
symmetrize function

Summary:
Given how often users have to do this themselves, it seems like it'd be useful to have a function
/**
 * Return symmetric form of matrix with entries below the diagonal copied
 * into the above-diagonal positions.
 */
matrix symmetrize(matrix a) {
  if (rows(a) != cols(a)) reject("require square matrix");
  matrix[rows(a), cols(a)] b = a;
  for (i in 1:rows(a)) for (j in i + 1:cols(a)) a[i, j] = a[j, i];
}

An alternative would be to define the return as 0.5 * (x + x') but that's a whole lot more work for autodiff and it won't work in the situation where we fill in the below-diagonal then call this function to complete.
Current Version:
v2.14.0

Given the ambiguity as to which triangle gets copied into which,
I’d recommend making the naming explicit, a la symmetrize_ld
or symmetrize_up or the like.

On Jan 31, 2017, at 3:16 PM, Bob Carpenter notifications@github.com wrote:
Summary:
Given how often users have to do this themselves, it seems like it'd be useful to have a function
/**

Return symmetric form of matrix with entries below the diagonal copied
into the above-diagonal positions.
*/
matrix symmetrize(matrix a) {
if (rows(a) != cols(a)) reject("require square matrix");
matrix[rows(a), cols(a)] b = a;
for (i in 1:rows(a)) for (j in i + 1:cols(a)) a[i, j] = a[j, i];
}
An alternative would be to define the return as 0.5 * (x + x') but that's a whole lot more work for autodiff.

Current Version:
v2.14.0
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/stan-dev/math/issues/482, or mute the thread https://github.com/notifications/unsubscribe-auth/ABdNliKYLPThFA0QjTDFOMDHVJhVkPe8ks5rX5aggaJpZM4LzH2z.

https://github.com/stan-dev/math/pull/2209 added symmetrize_from_lower_tri(). Do we leave the issue open for symmetrize_from_upper_tri() or is that a less common case that we dont need to add it?

authors: betanalpha bob-carpenter rok-cesnovar


text:
Any support to disable Rails/WhereRange ?

Since rubocop-rails 2.25 a new cop Rails/WhereRange was introduced. I see it was enabled in standard here
Just wanted to tentatively put out why I think it maybe should have been disabled in standard-rails instead.
While I agree to discourage using SQL string fragments, I'm not sure that beginless ranges make readable alternatives, eg User.where('age < ?', 18) becomes User.where(age: ...18)
I imagine < is more widely understandable as "less than" compared to, "range up to but not including 18" (which one must remember that ... mean exclusive end).
Also when you consider <= vs < I find 2 dots vs 3 dots range literal syntax here hides the intent of the code more than its original form, eg:
User.where('age <= ?', 18).where('height < ?', 200)
User.where(age: ..18).where(height: ...200)

Finally, Ranges always include their beginning, so there is no Range where clause form for greater than, ie User.where('age > ?', 18) , so either way those versions will remain in your codebase, eg
User.where('age <= ?', 18).where('height > ?', 200) becomes User.where(age: ..18).where('height > ?', 200)
Thanks for the consideration and for all the work on standard!!

I agree, I actually missed this in the original PR -- my bad. Would support disabling :+1:

@searls ok cool. I tried to get a bit of feedback from other devs on this, and no one seems particularly pro it, so I will open a PR to disable it

authors: searls stevegeek

repo: standardrb/standard-rails


text:
fix wet tls protocol error

For some reason wget does not download files important for evalution with  tlsv2 protocol in Ubuntu 22.04

Could you provide the error message that you get when running wget with the default flags on Ubuntu 22.04? Ideally, we should figure out how to install the correct packages in Ubuntu 22.04 to resolve this. TLSv1 is deprecated and we should avoid using it if possible.

Hi @agoncharenko1992, any update on this PR?

@yifanmai
Sorry, a little bit busy, can I send precise error message later? I've fixed it for myself locally and I don't want to ruin my venv.

Hi @agoncharenko1992, I am closing this PR due to staleness. Feel free to either reopen this pull request or create an new issue once you have error logs.

repo: stanford-crfm/helm


text:
Adding stress tester and fixing two bugs in StreamingFPGrowth. Should fix #25.

I wrote a stress test for the StreamingFPTree and found two bugs, one of which should correspond to #25.
Bug one: When we merge two nodes, and the receiving node doesn't have any children, it needs to be marked as a leaf node. Otherwise, the node is removed from the tree twice L169.
Bug two: We should only remove a node from the tree when it no longer has children; this seems paradoxical but can be possible with low precision doubles (or if someone inserts a transaction with count zero) L640. I believe this is actually a bug instead of just hiding another behavior; the stress test doesn't pass otherwise.

The stress test is also in the commit.

I don't quite understand what "this seems paradoxical but can be possible with low precision doubles" means :)
Also, we allow inserting transactions with count 0?!?

Ha, fair. Okay, two things:

The frequent item base class allows insertion of items with arbitrary counts. I thought this was the case with the frequent itemsets too, but it's not: you can only insert arbitrary transactions.
I believe it's possible for a tree node to fall to zero. Here's the scenario: insert a transaction with size one. If you decay the count enough times at a sufficiently high rate and/or perform subtractions in the meantime, there's a chance that the count will go to zero (or will be so small that double precision errors creep into the tree.

edit: per our discussion on Slack, let's consider just dropping nodes with extremely low support (1e-10 or lower).

repo: stanford-futuredata/macrobase