IronPython Console has stopped working; Crash when closing VS2015

We have a number of Win 7 x64 PC's running VS2015 Pro w/ PTVS 2.1 and 2.2.  Of my two, one of them has an issue where IronPython crashes every time you close VS2015.  I've narrowed it down to one simple action: Just 'import clr' in the IronPython 2.7 console windows within the IDE. Don't need to load any projects.  When you close the IDE, You get: IronPython Console has stopped working. with the following details:
Problem signature:
Problem Event Name:	CLR20r3
Problem Signature 01:	ipy.exe
Problem Signature 02:	<IP_ADDRESS>0
Problem Signature 03:	548329c1
Problem Signature 04:	IronPython.Modules
Problem Signature 05:	<IP_ADDRESS>0
Problem Signature 06:	548329bf
Problem Signature 07:	a80
Problem Signature 08:	23
Problem Signature 09:	System.Exception
OS Version:	6.1.76<IP_ADDRESS>.256.48
Locale ID:	1033
Additional Information 1:	0a9e
Additional Information 2:	0a9e372d3b4ad19135b953a78882e789
Additional Information 3:	0a9e
Additional Information 4:	0a9e372d3b4ad19135b953a78882e789
This is the only PC that does it.  I have fully re-installed VS2015, PTVS (and upgraded to 2.2.2) and IronPython 2.7.5 but have had no luck (2 x for PTVS and IPY).  Did registry / file cleaning in between + reboots for both.  Not sure what the recipe for disaster is on this machine. Doesn't appear to have any missing .NET compared to my own other working machine. Not sure why the CLR20r3 and not a CLR4.x......
Closest ticket I could find for this was: https://github.com/Microsoft/PTVS/pull/970.  I've attached my event viewer applicable entries and the PTVS config data.  Would love some help on this mystery - thanks.
EventViewer and Config.txt

I should probably add that this does not happen when using an iropython console outside of VS2015.  It also does not happen in Eclipse with PyDev.

Extracted from the linked file:
Application: ipy.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Exception
Stack:
   at Microsoft.Scripting.Interpreter.Interpreter.Run(Microsoft.Scripting.Interpreter.InterpretedFrame)
   at Microsoft.Scripting.Interpreter.LightLambda.Run5[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.__Canon, System.__Canon, System.__Canon, System.__Canon, System.__Canon)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute4[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Runtime.CompilerServices.CallSite, System.__Canon, System.__Canon, System.__Canon, System.__Canon)
   at IronPython.Runtime.FunctionCaller`2[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Call2(System.Runtime.CompilerServices.CallSite, IronPython.Runtime.CodeContext, System.Object, System.__Canon, System.__Canon)
   at IronPython.Runtime.Method+MethodBinding`1[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]].SelfTarget(System.Runtime.CompilerServices.CallSite, IronPython.Runtime.CodeContext, System.Object, System.__Canon)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.Runtime.CompilerServices.CallSite, System.__Canon, System.__Canon, System.__Canon)
   at IronPython.NewTypes.System.IO.TextWriter_8$8.Write(System.String)
   at System.IO.TextWriter+SyncTextWriter.Write(System.String)
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.UnhandledException(Microsoft.Scripting.Hosting.ScriptEngine, System.Exception)
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.RunCommandLine()
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.ExecuteInternal()
   at PythonConsoleHost.ExecuteInternal()
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.Execute()
   at Microsoft.Scripting.Hosting.Shell.ConsoleHost.Run(System.String[])
   at PythonConsoleHost.Main(System.String[])

The stack trace shows the exception is entirely within IronPython itself. I suspect this means that our interactive code (in visualstudio_py_repl.py) is somehow triggering an exception in IronPython that is not being caught.
I can't repro the issue on my own machine, but I'm setting up a Win7 box to try it out. There is a Win7+CLR+NGen issue that occasionally causes IronPython to crash, which has been fixed in Win8 and later. That may be involved here, but since we're running IronPython in its own process it seems unlikely.

And it repros easily on Win 7. Will let you know what I find

Thanks.  I'll butt-out after this, but wanted to let you know that calling quit() in the console before closing the IDE makes the crash go away, but the error is there when you click the console reset button.  I use the reset button a lot and at least on this machine, I've been seeing massive memory increase as I reset the console and create new instances of our .NET class's.  I thought it was our libs but now I wonder if the reset is not cleaning things up as well as it should.

So it looks like we're trying to write output back to VS, which is raising exceptions after VS is closed. I have no idea why this doesn't crash on all OSs, but perhaps .NET does caching of writers differently?
In any case, the fix can be applied by hand to visualstudio_py_repl.py. The offending code starts around line 1265 and with the fix (the try/except Exception lines added) looks like this:
if sys.platform == 'cli':
    import System
    class DotNetOutput(System.IO.TextWriter):
        def __new__(cls, backend, is_stdout, old_out=None):
            return System.IO.TextWriter.__new__(cls)

        def __init__(self, backend, is_stdout, old_out=None):
            self.backend = backend
            self.is_stdout = is_stdout
            self.old_out = old_out

        def Write(self, value, *args):
            if self.old_out:
                self.old_out.Write(value, *args)

            if not args:
                if type(value) is str or type(value) is System.Char:
                    try:
                        if self.is_stdout:
                            self.backend.write_stdout(str(value).replace('\r\n', '\n'))
                        else:
                            self.backend.write_stderr(str(value).replace('\r\n', '\n'))
                    except Exception:
                        pass
                else:
                    super(DotNetOutput, self).Write.Overloads[object](value)
            else:
                self.Write(System.String.Format(value, *args))

        def WriteLine(self, value, *args):
            if self.old_out:
                self.old_out.WriteLine(value, *args)

            if not args:
                if type(value) is str or type(value) is System.Char:
                    try:
                        if self.is_stdout:
                            self.backend.write_stdout(str(value).replace('\r\n', '\n') + '\n')
                        else:
                            self.backend.write_stderr(str(value).replace('\r\n', '\n') + '\n')
                    except Exception:
                        pass
                else:
                    super(DotNetOutput, self).WriteLine.Overloads[object](value)
            else:
                self.WriteLine(System.String.Format(value, *args))

        @property
        def Encoding(self):
            return System.Text.Encoding.UTF8

I'm currently rewriting the REPL backend entirely for our next version of PTVS, so I'll make this change locally in case I end up retaining this class (which seems likely). But there probably won't be a PTVS release with this fix any time soon as we're now focused on our next big release.

That's working nicely. Thanks a bunch.

Quickly reminded of this one after doing a fresh install today with PTVS 2.2.5 and IronPython <IP_ADDRESS> on VS2015 Pro. I don't recall this 'visualstudio_py_repl.py' being in two places last time but with the above combination of versions, I see two files. One at
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2
and one at
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.2\ptvsd
I changed both files and now I get lockups just typing import clr (Enter) and then the exception thrown before.  Not sure if I should have changed only one, or if there's a new issue.

There might be a new issue - we haven't done thorough testing with IronPython 2.7.6 yet (simply due to lack of time - we did 2.7.5 pretty well). Are you still on Windows 7?
Also, changing both files is fine, though the one in ptvsd shouldn't matter here. Because of the way we grafted remote debugging into our existing debugger, it was easiest to install two copies of the same file.

Yep, still on Windows 7 (x64 pro) - just on a PC I configured a few weeks ago.
After the above, I went back to 2.2.4 - Got an error on startup stating the PTVS couldn't load.
Since then, I've tried the following (some more often than others) in different combinations.  I either get the failed to load the extension at startup, get lockup when typing 'import clr' or get to the level of error I had earlier in this ticket (exception on closing).  Typically if I uninstall, I run CC cleaner on files and registry after:

Uninstalled Anaconda3
re-installed IronPython 2.7.6 / tried 2.7.4 again
Did a repair on VS2015
Did numerous repair trials on PTVS when not uninstalling them altogether.
Tried PTVS 2.2.3 and up. etc.
Deleted my VS2015 Component cache a few times here and there, always built the IronPython Autocompletion for the console before using etc.

My current state is PTVS 2.2.4 (installed through VS2015 setup) and IronPython 2.7.5.  Even though I changed both files, I can't get better than my original issue.  I.e.: import clr and then exit the IDE == crash.  Tried using the x64 and x86 versions of the interpreter in PTVS == same.  I have a colleage who has been running IronPython 2.7.5 with 2.2.3 PTVS for some time now.  I might try that combo now.  He has never had to do the file hack above and he's on windows 7 too.  Totally lost.

PTVS 2.2.3 and IronPython 2.7.5 on this machine in it current state, will crash after closing the IDE (after import clr) as well.  Since my colleage has this combo without issues, I wonder what else it could be.

Could you open Tools, Python Tools, Diagnostic Info and either post the contents as a gist and link it here, or email as an attachment to<EMAIL_ADDRESS>It should include info about the crashes you're seeing.

Sorry Steve, Before I saw your post, I removed and re-installed VS2015.    I snapped - uninstalled it again and have been deleting un-removed VS2015 folders and registry entries ever since.  Were SO many installer entries.....  Currently installing VS2015 from another location, with default install.  Will put IronPython 2.7.5 on if I can start VS, and will put PTVS 2.4.5 on separately after all that and let you know how it goes (tomorrow).  Thanks for being more responsive than I am observant.

Well....I managed to get VS2015 up and running by itself again - slight complaint about having a later version of VC++ at the end of the install.  Installed IronPython 2.7.5.  Then installed PTVS 2.2.5 manually (not through extensions).  I get a message when starting VS now that "The 'Python Tools Package' package did not load correctly.  I had this earlier today with some combo I was using. Not sure if this is related to the C++ runtimes but I can't click the diagnostics or I just get that same message box.

One problem that can cause that is lingering files in your %LocalAppData%\Microsoft\VisualStudio\14.0 and %AppData%\Microsoft\VisualStudio\14.0 directories. Those are safe to delete entirely if you've just reinstalled VS (you may lose some of your configuration, but everything else in there will be regenerated automatically).

Yeah, I had deleted both of those a few times yesterday.  At my last post, I had though i cleaned things up totally (registry too) but no version of PTVS that was remotely working in the past will run on my machine now (2.2.3, 4 & 5). IronPython 2.7.5.  Will tinker with it at a later time.

The only remaining piece here seems to be testing with new IronPython versions, which we are getting to (slowly, but it mostly seems to be okay so far).


Add github issue template

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Disallow apps without document_root configured

Do we even want to allow the user to specify /app as the document root?

Do we even want to allow the user to specify /app as the document root?

In some cases, it might be cumbersome to change the directory structure of your app. I'd provide a way to opt-in to serve the entire app for such cases.


Added longer version of The Final Countdown

Made this extended version of this tune as a sudden 3am idea, just to have it play every time my NAS reboots ;)
Though I doubt anyone but me will use this because of how long it makes GRUB sit there playing it for, I figured it's worth sharing anyway.

Hah yeah it's way too long


Fix -Wmissing-noreturn with clang11

As per title, fixes:
src/freeradius-devel/util/acutest.h:409:1: warning: function 'test_exit_' could be declared with attribute 'noreturn' [-Wmissing-noreturn]
{
^
1 warning generated.

Thanks, merged.

Thanks, merged.


Peer's certificate issuer has been marked as not trusted by the user.

Hi! I want to make image from 19.3.0 Oracle version. But get this
bash-3.2$ ./buildDockerImage.sh -v 19.3.0
Checking Docker version.
Ignored MD5 sum, 'md5sum' command not available.
==========================
DOCKER info:
Client:
 Debug Mode: false

Server:
 Containers: 23
  Running: 22
  Paused: 0
  Stopped: 1
 Images: 24
 Server Version: 19.03.8
 Storage Driver: overlay2
  Backing Filesystem: <unknown>
  Supports d_type: true
  Native Overlay Diff: true
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
 Swarm: inactive
 Runtimes: runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  seccomp
   Profile: default
 Kernel Version: 4.19.76-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: x86_64
 CPUs: 6
 Total Memory: 1.944GiB
 Name: docker-desktop
 ID: XKRQ:2EN4:TFZ3:7A5D:CQEJ:IBNP:CYNU:GGKG:D6XY:LLI4:YMPZ:E4WV
 Docker Root Dir: /var/lib/docker
 Debug Mode: true
  File Descriptors: 161
  Goroutines: 146
  System Time: 2020-06-29T19:05:56.2030929Z
  EventsListeners: 4
 HTTP Proxy: gateway.docker.internal:3128
 HTTPS Proxy: gateway.docker.internal:3129
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  <IP_ADDRESS>/8
 Live Restore Enabled: false
 Product License: Community Engine

==========================
Building image 'oracle/database:19.3.0-' ...
Sending build context to Docker daemon   3.06GB
Step 1/21 : FROM oraclelinux:7-slim as base
 ---> fd84774952b5
Step 2/21 : LABEL "provider"="Oracle"                                                     "issues"="https://github.com/oracle/docker-images/issues"               "volume.data"="/opt/oracle/oradata"                                     "volume.setup.location1"="/opt/oracle/scripts/setup"                    "volume.setup.location2"="/docker-entrypoint-initdb.d/setup"            "volume.startup.location1"="/opt/oracle/scripts/startup"                "volume.startup.location2"="/docker-entrypoint-initdb.d/startup"        "port.listener"="1521"                                                  "port.oemexpress"="5500"
 ---> Running in 7d8743a080ca
Removing intermediate container 7d8743a080ca
 ---> f2c2f1dcba3d
Step 3/21 : ENV ORACLE_BASE=/opt/oracle     ORACLE_HOME=/opt/oracle/product/19c/dbhome_1     INSTALL_DIR=/opt/install     INSTALL_FILE_1="LINUX.X64_193000_db_home.zip"     INSTALL_RSP="db_inst.rsp"     CONFIG_RSP="dbca.rsp.tmpl"     PWD_FILE="setPassword.sh"     RUN_FILE="runOracle.sh"     START_FILE="startDB.sh"     CREATE_DB_FILE="createDB.sh"     SETUP_LINUX_FILE="setupLinuxEnv.sh"     CHECK_SPACE_FILE="checkSpace.sh"     CHECK_DB_FILE="checkDBStatus.sh"     USER_SCRIPTS_FILE="runUserScripts.sh"     INSTALL_DB_BINARIES_FILE="installDBBinaries.sh"
 ---> Running in 8676d13ab06f
Removing intermediate container 8676d13ab06f
 ---> 15deb9a76ff9
Step 4/21 : ENV PATH=$ORACLE_HOME/bin:$ORACLE_HOME/OPatch/:/usr/sbin:$PATH     LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib     CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
 ---> Running in 77e0c325e3d7
Removing intermediate container 77e0c325e3d7
 ---> 04593444ef81
Step 5/21 : COPY $SETUP_LINUX_FILE $CHECK_SPACE_FILE $INSTALL_DIR/
 ---> ee2d01970e70
Step 6/21 : COPY $RUN_FILE $START_FILE $CREATE_DB_FILE $CONFIG_RSP $PWD_FILE $CHECK_DB_FILE $USER_SCRIPTS_FILE $ORACLE_BASE/
 ---> 0df68aea64f9
Step 7/21 : RUN chmod ug+x $INSTALL_DIR/*.sh &&     sync &&     $INSTALL_DIR/$CHECK_SPACE_FILE &&     $INSTALL_DIR/$SETUP_LINUX_FILE &&     rm -rf $INSTALL_DIR
 ---> Running in 9fb809b3643b
Loaded plugins: ovl
https://yum.oracle.com/repo/OracleLinux/OL7/UEKR5/x86_64/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's certificate issuer has been marked as not trusted by the user."
Trying other mirror.

 One of the configured repositories failed (Latest Unbreakable Enterprise Kernel Release 5 for Oracle Linux 7Server (x86_64)),
 and yum doesn't have enough cached data to continue. At this point the only
 safe thing yum can do is fail. There are a few ways to work "fix" this:

     1. Contact the upstream for the repository and get them to fix the problem.

     2. Reconfigure the baseurl/etc. for the repository, to point to a working
        upstream. This is most often useful if you are using a newer
        distribution release than is supported by the repository (and the
        packages for the previous distribution release still work).

     3. Run the command with the repository temporarily disabled
            yum --disablerepo=ol7_UEKR5 ...

     4. Disable the repository permanently, so yum won't use it by default. Yum
        will then just ignore the repository until you permanently enable it
        again or use --enablerepo for temporary usage:

            yum-config-manager --disable ol7_UEKR5
        or
            subscription-manager repos --disable=ol7_UEKR5

     5. Configure the failing repository to be skipped, if it is unavailable.
        Note that yum will try to contact the repo. when it runs most commands,
        so will have to try and fail each time (and thus. yum will be be much
        slower). If it is a very temporary problem though, this is often a nice
        compromise:

            yum-config-manager --save --setopt=ol7_UEKR5.skip_if_unavailable=true

failure: repodata/repomd.xml from ol7_UEKR5: [Errno 256] No more mirrors to try.
https://yum.oracle.com/repo/OracleLinux/OL7/UEKR5/x86_64/repodata/repomd.xml: [Errno 14] curl#60 - "Peer's certificate issuer has been marked as not trusted by the user."
Removing intermediate container 9fb809b3643b
The command '/bin/sh -c chmod ug+x $INSTALL_DIR/*.sh &&     sync &&     $INSTALL_DIR/$CHECK_SPACE_FILE &&     $INSTALL_DIR/$SETUP_LINUX_FILE &&     rm -rf $INSTALL_DIR' returned a non-zero code: 1

ERROR: Oracle Database Docker Image was NOT successfully created.
ERROR: Check the output and correct any reported problems with the docker build operation.

Need to update docker-images distr

It doesn’t work.

It's OK, my VPN network gets me bad certificate. I have disconnected from VPN and voilà.

I ran into this problem as well. The only way I solved this problem is to disable sslverify=false in /etc/yum.conf when the Dockerfile is creating the image.
HOW TO BUILD THIS IMAGE
-----------------------
Put all downloaded files in the same directory as this Dockerfile
Run:
$ docker build -t oracle/database:19.3.0-${EDITION} .

Pull base image
---------------
FROM oraclelinux:7-slim as base
RUN echo "sslverify=false" >> /etc/yum.conf


Fix numberinput on stakingmodal formatting in Firefox browser

Fix https://github.com/airswap/airswap-voter-rewards/pull/146


Questions regarding some pixel formats

I have a bit of confusion on some sg_pixel_format names ..

SG_PIXELFORMAT_ETC2_RGB8A1: there is no SG_PIXELFORMAT_ETC2_RGBA8 and it's the most common usage of ETC2 format. but in GL version it returns GL_COMPRESSED_RGBA8_ETC2_EAC and in Metal, returns MTLPixelFormatETC2_RGB8A1. is this ok?
SG_PIXELFORMAT_BC1_RGBA: the common usage for BC1 format is actually SG_PIXELFORMAT_BC1_RGB, but instead we have this one (which alpha seems to be 1bit punchthrough), isn't it more convenient to call it  SG_PIXELFORMAT_BC1_RGB and maybe have another one for RGBA ?
SG_PIXELFORMAT_ETC2_RGB8: I tried to use ETC1 format but it wasn't in the sg_pixel_format, but this one seems to work with ETC1 textures too. So the format is backwards compatible with ETC1 RGB? if yes, we can add another SG_PIXELFORMAT_ETC1_RGB8 to avoid confusion.

thanks

Hi, as for BC1_RGBA, that's what Metal is using: https://developer.apple.com/documentation/metal/mtlpixelformat?language=objc, there doesn't seem to be a distinction on whether the 1-bit alpha is actually used as such or not. I think it's up to the render pipeline whether the alpha channel bit is actually used for blending).
As for the ETC pixel formats: I haven't spent too much time on those I must admit, and only moved the old ETC pixel formats over. For ETC1 and ETC2 we should look at the following APIs and take the subset that's supported there:

Metal (this has 6 "EAC" formats and and 4 "ETC2" formats, see: https://developer.apple.com/documentation/metal/mtlpixelformat?language=objc)
the two WebGL ETC extensions: https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc/ and https://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_etc1/
and what WebGL2 supports out of the box...

It's a bit of work to figure out that "actually useful ETC subset", I'm happy to merge a PR :)

I have submitted a PR. hopefully resolving some confusion and adding some useful ETC/EAC formats like two component ETC2_RG11
The document you referenced here clearly shows that SG_PIXELFORMAT_ETC2_RGB8A1 should be COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2.
I think the metal document is somewhat incorrect! It states that MTLPixelFormatETC2_RGB8A1 has 4 8bit components which is not what the actual format name shows. Instead, we should use MTLPixelFormatEAC_RGBA8 for ETC2_RGBA8.
ETC2_RGB also seems to be backwards compatible with ETC1, by what it says in the wiki page and also my tests validates this, so I guess there is no need to define ETC1.
About the BC1 format, you are right, I guess there is not difference between RGB8 and RGB8A1, we could use another format like SG_PIXELFORMAT_BC1_RGB which will be same as SG_PIXELFORMAT_BC1_RGBA, but I wasn't sure it was useful so I didn't add it in PR.
Cheers

Fixed via https://github.com/floooh/sokol/pull/225


Add #debounceOnError, #getErrorFromXHR, and #stubRequest to RequestUtil

This adds the extended request functionality that we've built into DCOS UI so that it can be used in other projects.

🚢


TOOLS-2525 Everything needs to stop cloning with git:// URLs

Another one where my review isn't counting.


How to predict heart rate?

Could you please tell me whether to obtain the average heart rate it is enough to pass the output of the ordinal regression through the Hanh window, then Butterworth filter and Welch density decomposition, like the get_bpm function suggests?
https://github.com/eugenelet/Meta-rPPG/blob/bab00d97731d07966eaa3ca700be153fac0bd50a/data/data_utils.py#L127
If possible, I would be grateful if you could give an intuitive understanding of what the Butterworth bandpass does, since you use it both in pre-processing and post-processing.

Seems like there is a bug or a typo, since filtered_sig is assigned but never used:
https://github.com/eugenelet/Meta-rPPG/blob/bab00d97731d07966eaa3ca700be153fac0bd50a/data/data_utils.py#L137

Here are the metrics I get after running get_bpm on discretized PPG and pulse from UBFC:

Could you please share how you have converted predicted ordinal values to heart rate?

Here are the ideal metrics (obtained after running get_bpm on the ground truth segments for blocks of 60 frames) after switching to a higher sampling rate for the frames fed to the model (sampling on the (60/25)s timeframe). The result is still disappointing:

Could you please comment on the ideal results you get with your post-processing?

Hi there,
Thanks for taking interest on our work. May I ask what's the training data that you used to train the model? We have only provided a training dataset containing 2 users, which is not the entire dataset.

The metrics above are for videos from the UBFC dataset that have frame rates greater than 25 fps. Batches of 60 frames were taken in each time period of 2.4 seconds, with the sliding window step of 1 second, and the corresponding ground truth ppg signals segmented into 40 regions which were then used to estimate heart rate using get_bpm from your repo. This estimated heart rate was then compared with the ground truth pulse from UBFC, which gave the results above (this approach of measuring mae/r2 was recently used for evaluation in the cvpr 2020 workshop on remote sensing). What kind of metrics do you get when you segment the ground truth ppg into ordinal values and use them for predicting pulse? Or did you avoid using ground truth pulse from ubfc in your comparison?

Hi there,
the UBFC dataset we received from the author didn't contain the ground truth ppg. So we only take use of the ordinal values. The get_bpm function is for the model. The inaccuracy in your above results is because of the low sampling rate (30 fps), which causes  a rough prediction at the frequency domain. In order to make a more accurate prediction from the ppg signal, you can both input a wider sliding window or upsample the ppg signals.

Thanks! So you used just the ordinal values for estimating heart rate on the UBFC dataset and comparing it with predicted values?

Increasing the sampling rate to 29 and bumping the block size from 40 to 200, I get the following metrics after estimating heart rate from the ground truth ordinal values:

Pearson r is still a bit off in comparison with the results from your paper:

How did you load the UBFC  dataset into this model and performed inference? thanks in advance

@sdll How did you load the UBFC dataset into this model and performed inference? thanks in advance

How do you train this network and what data sets are used? I use the deap dataset, which is difficult to converge.


Cache restored on exact key, but cache-hit is false

I am caching the build directory of swift-format. The cache is being restored successfully on the exact key, but the cache-hit variable seems being set to false. Is the code wrong or is there a bug in the action?
      - name: Create swift-format build cache
        id: cache-swift-format
        uses: actions/cache@v3
        with:
          path: .build
          key: ${{ runner.os }}-spm-${{ hashFiles('**/Package.resolved') }}
          restore-keys: |
            ${{ runner.os }}-spm-

      - name: build swift-format
        if: steps.cache-swift-format.outputs.cache-hit != 'true'
        run: |
          git clone https://github.com/apple/swift-format.git
          cd swift-format
          swift build --disable-sandbox -c release
          mv .build ..

The output from the latest job:

@andreiz ,
When the workflow is running for a PR, it can restore cache from the main branch. However, cache hit will be false in this case.
There are a couple of more cases mentioned here : https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key


Error "expected string, got nil" on start

Issue Description
Type: bug report
Describe what happened (or what feature you want)
When Neovim starts it displays the following error
Error executing vim.schedule lua callback: vim/shared.lua:0: s: expected string, got nil
stack traceback:
        [C]: in function 'error'
        vim/shared.lua: in function 'validate'
        vim/shared.lua: in function 'gsplit'
        vim/shared.lua: in function 'split'
        ...im/site/pack/packer/start/octo.nvim/lua/octo/gh/init.lua:98: in function ''
        vim/_editor.lua: in function <vim/_editor.lua:0>

and the Octo command is not available.
Describe what you expected to happen
For no error to be displayed and for Octo to work.
How to reproduce it (as minimally and precisely as possible)

Add the following to your Neovim config file
return require("packer").startup(function(use)
	use {
		"pwntester/octo.nvim",
		requires = {
			"nvim-lua/plenary.nvim",
			"nvim-telescope/telescope.nvim",
			"nvim-tree/nvim-web-devicons",
		},
		config = function ()
			require "octo".setup()
		end
	}
end)

Run PackerCompile
Restart Neovim
Run PackerInstall
Restart Neovim

Tell us your environment
NVIM v0.9.5
Build type: Release
LuaJIT 2.1.1702233742
Github CLI 2.42.0
Artix Linux
Anything else we need to know?
This is 100% caused by some commit in #477. I tried using the commit before the pull request was merged (c6b008434d684e746a40e443876b646b521cebbf) and the problem doesn't occur.

What is the output of gh auth status, specifically the scopes line? We are now doing parsing to figure out which scopes you have to determine if we should or shouldn't show project v2 stuff and the line that the error is occurring is where we use the regex match
Also, what is your gh version? I happen to have 2.41.0, which is not the most recent but it's pretty darn close (only one release old, from last week)
If you happen to have an out-of-date gh then a workaround is to just update it. Long term some error handling should get added here in the event that the scopes go away from the output for whatever reason (which I can submit a PR for later tonight)

@HampusMat I just pushed a small change up https://github.com/pwntester/octo.nvim/pull/481
Can you verify if that helps for you?

@HampusMat I just pushed a small change up #481
Can you verify if that helps for you?

I had the same issue, and it works for me now. In my case, it may have been because I needed to update GH CLI. I updated and got it to work right around the same time you pushed that change, so I'm not sure what did it but thank you! 🤷

Fixes the original error for me as well, but now there's a message saying "Cannot request projects v2, missing scope 'read:project' which seems to be a GH permissions related message that I wasn't getting before.

Yep. That's expected. The most recent changes added projects v2 support, which requires the read:proejct scope on your token.
You can suppress this warning by setting suppress_missing_scope.project_v2 = true in your config

Thank you all! Just merged the fix

Great! I will try it out

It works :tada:

Yep. That's expected. The most recent changes added projects v2 support, which requires the read:proejct scope on your token.
You can suppress this warning by setting the following in your config
{
  suppress_missing_scope = {
    project_v2 = true,
  }
}

For those who are still reading this comment, it should be projects_v2.

So, what boneheaded thing am I doing then, because I have copypasta the main config from the README.md and injected the above in and am still getting the error.  Here's what I have in its completeness (I've tried multiple places in the stanza):
require("octo").setup({
	{
		suppress_missing_scope = {
			projects_v2 = true,
		},
	},
	use_local_fs = false, -- use local files on right side of reviews
	enable_builtin = false, -- shows a list of builtin actions when no action is provided
	default_remote = { "upstream", "origin" }, -- order to try remotes
	default_merge_method = "commit", -- default merge method which should be used when calling `Octo pr merge`, could be `commit`, `rebase` or `squash`
	ssh_aliases = {}, -- SSH aliases. e.g. `ssh_aliases = {["github.com-work"] = "github.com"}`
	picker = "telescope", -- or "fzf-lua"
	picker_config = {
		use_emojis = false, -- only used by "fzf-lua" picker for now
		mappings = { -- mappings for the pickers
			open_in_browser = { lhs = "<C-b>", desc = "open issue in browser" },
			copy_url = { lhs = "<C-y>", desc = "copy url to system clipboard" },
			checkout_pr = { lhs = "<C-o>", desc = "checkout pull request" },
			merge_pr = { lhs = "<C-r>", desc = "merge pull request" },
		},
	},
	comment_icon = "▎", -- comment marker
	outdated_icon = "󰅒 ", -- outdated indicator
	resolved_icon = " ", -- resolved indicator
	reaction_viewer_hint_icon = " ", -- marker for user reactions
	user_icon = " ", -- user icon
	timeline_marker = " ", -- timeline marker
	timeline_indent = "2", -- timeline indentation
	right_bubble_delimiter = "", -- bubble delimiter
	left_bubble_delimiter = "", -- bubble delimiter
	github_hostname = "", -- GitHub Enterprise host
	snippet_context_lines = 4, -- number or lines around commented lines
	gh_cmd = "gh", -- Command to use when calling Github CLI
	gh_env = {}, -- extra environment variables to pass on to GitHub CLI, can be a table or function returning a table
	timeout = 5000, -- timeout for requests between the remote server
	default_to_projects_v2 = false, -- use projects v2 for the `Octo card ...` command by default. Both legacy and v2 commands are available under `Octo cardlegacy ...` and `Octo cardv2 ...` respectively.
	ui = {
		use_signcolumn = true, -- show "modified" marks on the sign column
	},
	issues = {
		order_by = { -- criteria to sort results of `Octo issue list`
			field = "CREATED_AT", -- either COMMENTS, CREATED_AT or UPDATED_AT (https://docs.github.com/en/graphql/reference/enums#issueorderfield)
			direction = "DESC", -- either DESC or ASC (https://docs.github.com/en/graphql/reference/enums#orderdirection)
		},
	},
	pull_requests = {
		order_by = { -- criteria to sort the results of `Octo pr list`
			field = "CREATED_AT", -- either COMMENTS, CREATED_AT or UPDATED_AT (https://docs.github.com/en/graphql/reference/enums#issueorderfield)
			direction = "DESC", -- either DESC or ASC (https://docs.github.com/en/graphql/reference/enums#orderdirection)
		},
		always_select_remote_on_create = false, -- always give prompt to select base remote repo when creating PRs
	},
	file_panel = {
		size = 10, -- changed files panel rows
		use_icons = true, -- use web-devicons in file panel (if false, nvim-web-devicons does not need to be installed)
	},
	colors = { -- used for highlight groups (see Colors section below)
		white = "#ffffff",
		grey = "#2A354C",
		black = "#000000",
		red = "#fdb8c0",
		dark_red = "#da3633",
		green = "#acf2bd",
		dark_green = "#238636",
		yellow = "#d3c846",
		dark_yellow = "#735c0f",
		blue = "#58A6FF",
		dark_blue = "#0366d6",
		purple = "#6f42c1",
	},
	mappings_disable_default = false, -- disable default mappings if true, but will still adapt user mappings
	mappings = {
		issue = {
			close_issue = { lhs = "<space>ic", desc = "close issue" },
			reopen_issue = { lhs = "<space>io", desc = "reopen issue" },
			list_issues = { lhs = "<space>il", desc = "list open issues on same repo" },
			reload = { lhs = "<C-r>", desc = "reload issue" },
			open_in_browser = { lhs = "<C-b>", desc = "open issue in browser" },
			copy_url = { lhs = "<C-y>", desc = "copy url to system clipboard" },
			add_assignee = { lhs = "<space>aa", desc = "add assignee" },
			remove_assignee = { lhs = "<space>ad", desc = "remove assignee" },
			create_label = { lhs = "<space>lc", desc = "create label" },
			add_label = { lhs = "<space>la", desc = "add label" },
			remove_label = { lhs = "<space>ld", desc = "remove label" },
			goto_issue = { lhs = "<space>gi", desc = "navigate to a local repo issue" },
			add_comment = { lhs = "<space>ca", desc = "add comment" },
			delete_comment = { lhs = "<space>cd", desc = "delete comment" },
			next_comment = { lhs = "]c", desc = "go to next comment" },
			prev_comment = { lhs = "[c", desc = "go to previous comment" },
			react_hooray = { lhs = "<space>rp", desc = "add/remove 🎉 reaction" },
			react_heart = { lhs = "<space>rh", desc = "add/remove ❤ reaction" },
			react_eyes = { lhs = "<space>re", desc = "add/remove 👀 reaction" },
			react_thumbs_up = { lhs = "<space>r+", desc = "add/remove 👍 reaction" },
			react_thumbs_down = { lhs = "<space>r-", desc = "add/remove 👎 reaction" },
			react_rocket = { lhs = "<space>rr", desc = "add/remove 🚀 reaction" },
			react_laugh = { lhs = "<space>rl", desc = "add/remove 😄 reaction" },
			react_confused = { lhs = "<space>rc", desc = "add/remove 😕 reaction" },
		},
		pull_request = {
			checkout_pr = { lhs = "<space>po", desc = "checkout PR" },
			merge_pr = { lhs = "<space>pm", desc = "merge commit PR" },
			squash_and_merge_pr = { lhs = "<space>psm", desc = "squash and merge PR" },
			rebase_and_merge_pr = { lhs = "<space>prm", desc = "rebase and merge PR" },
			list_commits = { lhs = "<space>pc", desc = "list PR commits" },
			list_changed_files = { lhs = "<space>pf", desc = "list PR changed files" },
			show_pr_diff = { lhs = "<space>pd", desc = "show PR diff" },
			add_reviewer = { lhs = "<space>va", desc = "add reviewer" },
			remove_reviewer = { lhs = "<space>vd", desc = "remove reviewer request" },
			close_issue = { lhs = "<space>ic", desc = "close PR" },
			reopen_issue = { lhs = "<space>io", desc = "reopen PR" },
			list_issues = { lhs = "<space>il", desc = "list open issues on same repo" },
			reload = { lhs = "<C-r>", desc = "reload PR" },
			open_in_browser = { lhs = "<C-b>", desc = "open PR in browser" },
			copy_url = { lhs = "<C-y>", desc = "copy url to system clipboard" },
			goto_file = { lhs = "gf", desc = "go to file" },
			add_assignee = { lhs = "<space>aa", desc = "add assignee" },
			remove_assignee = { lhs = "<space>ad", desc = "remove assignee" },
			create_label = { lhs = "<space>lc", desc = "create label" },
			add_label = { lhs = "<space>la", desc = "add label" },
			remove_label = { lhs = "<space>ld", desc = "remove label" },
			goto_issue = { lhs = "<space>gi", desc = "navigate to a local repo issue" },
			add_comment = { lhs = "<space>ca", desc = "add comment" },
			delete_comment = { lhs = "<space>cd", desc = "delete comment" },
			next_comment = { lhs = "]c", desc = "go to next comment" },
			prev_comment = { lhs = "[c", desc = "go to previous comment" },
			react_hooray = { lhs = "<space>rp", desc = "add/remove 🎉 reaction" },
			react_heart = { lhs = "<space>rh", desc = "add/remove ❤ reaction" },
			react_eyes = { lhs = "<space>re", desc = "add/remove 👀 reaction" },
			react_thumbs_up = { lhs = "<space>r+", desc = "add/remove 👍 reaction" },
			react_thumbs_down = { lhs = "<space>r-", desc = "add/remove 👎 reaction" },
			react_rocket = { lhs = "<space>rr", desc = "add/remove 🚀 reaction" },
			react_laugh = { lhs = "<space>rl", desc = "add/remove 😄 reaction" },
			react_confused = { lhs = "<space>rc", desc = "add/remove 😕 reaction" },
			review_start = { lhs = "<space>vs", desc = "start a review for the current PR" },
			review_resume = { lhs = "<space>vr", desc = "resume a pending review for the current PR" },
		},
		review_thread = {
			goto_issue = { lhs = "<space>gi", desc = "navigate to a local repo issue" },
			add_comment = { lhs = "<space>ca", desc = "add comment" },
			add_suggestion = { lhs = "<space>sa", desc = "add suggestion" },
			delete_comment = { lhs = "<space>cd", desc = "delete comment" },
			next_comment = { lhs = "]c", desc = "go to next comment" },
			prev_comment = { lhs = "[c", desc = "go to previous comment" },
			select_next_entry = { lhs = "]q", desc = "move to previous changed file" },
			select_prev_entry = { lhs = "[q", desc = "move to next changed file" },
			select_first_entry = { lhs = "[Q", desc = "move to first changed file" },
			select_last_entry = { lhs = "]Q", desc = "move to last changed file" },
			close_review_tab = { lhs = "<C-c>", desc = "close review tab" },
			react_hooray = { lhs = "<space>rp", desc = "add/remove 🎉 reaction" },
			react_heart = { lhs = "<space>rh", desc = "add/remove ❤ reaction" },
			react_eyes = { lhs = "<space>re", desc = "add/remove 👀 reaction" },
			react_thumbs_up = { lhs = "<space>r+", desc = "add/remove 👍 reaction" },
			react_thumbs_down = { lhs = "<space>r-", desc = "add/remove 👎 reaction" },
			react_rocket = { lhs = "<space>rr", desc = "add/remove 🚀 reaction" },
			react_laugh = { lhs = "<space>rl", desc = "add/remove 😄 reaction" },
			react_confused = { lhs = "<space>rc", desc = "add/remove 😕 reaction" },
		},
		submit_win = {
			approve_review = { lhs = "<C-a>", desc = "approve review" },
			comment_review = { lhs = "<C-m>", desc = "comment review" },
			request_changes = { lhs = "<C-r>", desc = "request changes review" },
			close_review_tab = { lhs = "<C-c>", desc = "close review tab" },
		},
		review_diff = {
			submit_review = { lhs = "<leader>vs", desc = "submit review" },
			discard_review = { lhs = "<leader>vd", desc = "discard review" },
			add_review_comment = { lhs = "<space>ca", desc = "add a new review comment" },
			add_review_suggestion = { lhs = "<space>sa", desc = "add a new review suggestion" },
			focus_files = { lhs = "<leader>e", desc = "move focus to changed file panel" },
			toggle_files = { lhs = "<leader>b", desc = "hide/show changed files panel" },
			next_thread = { lhs = "]t", desc = "move to next thread" },
			prev_thread = { lhs = "[t", desc = "move to previous thread" },
			select_next_entry = { lhs = "]q", desc = "move to previous changed file" },
			select_prev_entry = { lhs = "[q", desc = "move to next changed file" },
			select_first_entry = { lhs = "[Q", desc = "move to first changed file" },
			select_last_entry = { lhs = "]Q", desc = "move to last changed file" },
			close_review_tab = { lhs = "<C-c>", desc = "close review tab" },
			toggle_viewed = { lhs = "<leader><space>", desc = "toggle viewer viewed state" },
			goto_file = { lhs = "gf", desc = "go to file" },
		},
		file_panel = {
			submit_review = { lhs = "<leader>vs", desc = "submit review" },
			discard_review = { lhs = "<leader>vd", desc = "discard review" },
			next_entry = { lhs = "j", desc = "move to next changed file" },
			prev_entry = { lhs = "k", desc = "move to previous changed file" },
			select_entry = { lhs = "<cr>", desc = "show selected changed file diffs" },
			refresh_files = { lhs = "R", desc = "refresh changed files panel" },
			focus_files = { lhs = "<leader>e", desc = "move focus to changed file panel" },
			toggle_files = { lhs = "<leader>b", desc = "hide/show changed files panel" },
			select_next_entry = { lhs = "]q", desc = "move to previous changed file" },
			select_prev_entry = { lhs = "[q", desc = "move to next changed file" },
			select_first_entry = { lhs = "[Q", desc = "move to first changed file" },
			select_last_entry = { lhs = "]Q", desc = "move to last changed file" },
			close_review_tab = { lhs = "<C-c>", desc = "close review tab" },
			toggle_viewed = { lhs = "<leader><space>", desc = "toggle viewer viewed state" },
		},
	},
})


Remove Duration

Mistake. I don't know what I am going.
Duration do seem to be broken in the demo, so I am removing it locally.
@onchangeany is depreciated, should anyone like to fix that in main/base to @onchange

Mistake. I don't know what I am doing.

@iamcomcy Yes, good point re @onchangeany -- it's not a breaking change, the macro is still supported. It's just not necessary anymore.
What do you mean by "duration" being broken? What duration?

What do you mean by "duration" being broken? What duration?

While trying to get the chapter 8 app running there were errors regarding the todo durations. In one variant to fix the problem, I removed duration and the app started working.
There were a LOT of newbie misconceptions that I had to struggle with, one that might be nice to mention in further publications:
Don't expect everything to work until you up() your app. ./bin/repl is often NOT enough.
It was hard to sort out what was a breaking change and what wasn't until ALL errors were dealt with.
@onchange(any) might not be a breaking change, but it now throws and error. For the people reading your book and using it to learn ... it would be a good idea to make that small change here at Github.
One of the BIGGEST pains in learning any new language, is how to fix code after finding an error and there should be NONE from a book that was paid for. :-) (I learned enough from all the typos I made) :-D

@iamcomcy Thank you. Of course, very happy to include corrections and improvements. But for that a list of the issues you encountered is needed. What page of the book, what line of code, what did you do, what were you expecting, what happened instead?

Sorry, you misunderstood:
I made mistakes, I made typos while reproducing the code from your book. The book was not in error, I was. In so much code it was inevitable that mistakes retyping each character would be made. I painstakingly went over every line of code while typing it, but STILL managed to miss ONE character from time to time. Sometimes there were whole days lost before I found MY mistake. I learned a lot with each error generated, but what I really wanted to do was get through the book. I didn't WANT to use github ... that's kind of cheating, right? ;-)
After chapter 5, I did just use github, just to see the whole app work.

I see :)
What editor are you using? VSCode with the Julia plugin is OK. But I'd highly recommend using an AI assistant like Github Copilot. It can help a lot.

VSCode and the Julia plugin. I recently added Copilot and I am using ChatGPT. I am planning to upgrade to GPT4 here very shortly.

I am getting ready to change the DB backend of Todos from SQLite to TypeDB. That will be interesting!


addition in contributing.md

Hi! I would like to add the following in contributing.md-
Difference between GIT and GITHUB
How to clone,fork repository
How to create a branch and then use git push to push to repo
Create a PR
Squash commits in a single issue into one
Updating the forked and local repo as the updations are made in the upstream

Hi @khareyash05  Thanks for your interest, but we wouldn't be needing this, We believe we already have it covered in the starter guide.
Meanwhile you can check out up-for-grab issues or the starter guide.
Also please follow the issue template next time you create an issue :)
Regards,
Praful


feat: Clear store values

Description
At the moment developer can add to store & update store
This Implementation is to allow developer

Clear all store value
Clear specifics value from store

Fixes https://github.com/appsmithorg/appsmith/issues/11639
Type of change

New feature (non-breaking change which adds functionality)

/ok-to-test sha=ad649e9

/ok-to-test sha=f28d764

LGTM, can be merged to release

@rimildeyjsr can you share an example usage for both the new functions? Can they be used directly or with appsmith. accessor?
If usage is direct, then removeValue may need a better naming, because every other function that is to do with the store has the word store used somewhere, and this would be the only exception. cc @bharath31


Patching scikit-learn dev version fails with: ImportError: cannot import name '_logistic_loss_and_grad' from 'sklearn.linear_model._logistic'

The development version of scikit-learn now uses a unified loss module for several estimators including Logistic Regression: https://github.com/scikit-learn/scikit-learn/pull/21808
This causes the following problem when using the latest version of scikit-learn-intelex (from conda-forge) on the development version of scikit-learn.
[...]
   File "/usr/share/miniconda/envs/sklbench/lib/python3.8/site-packages/daal4py/sklearn/__init__.py", line 17, in <module>
    from .monkeypatch.dispatcher import enable as patch_sklearn
  File "/usr/share/miniconda/envs/sklbench/lib/python3.8/site-packages/daal4py/sklearn/monkeypatch/dispatcher.py", line 30, in <module>
    from ..linear_model.coordinate_descent import Lasso as Lasso_daal4py
  File "/usr/share/miniconda/envs/sklbench/lib/python3.8/site-packages/daal4py/sklearn/linear_model/__init__.py", line 19, in <module>
    from .logistic_path import logistic_regression_path, LogisticRegression
  File "/usr/share/miniconda/envs/sklbench/lib/python3.8/site-packages/daal4py/sklearn/linear_model/logistic_path.py", line 37, in <module>
    from sklearn.linear_model._logistic import (
ImportError: cannot import name '_logistic_loss_and_grad' from 'sklearn.linear_model._logistic' (/usr/share/miniconda/envs/sklbench/lib/python3.8/site-packages/sklearn/linear_model/_logistic.py)

I tried to explore the CI to see if there was a nightly build that could have already detected this problem that will impact the next release but could not find it. Sorry if this problem was already known or fixed in the dev version of scikit-learn-intelex.

Side comment: are there any nightly builds of scikit-learn-intelex published anywhere (e.g. as a wheel or a conda package)?

Hi @ogrisel, Thanks for submitting issue. We have reproduced this issue and included a fix in the 2021.6 release, which will be released at the end of March. However, the Intel(R) extension for scikit-learn may still become unstable with the scikit-learn master.
Unfortunately we don't currently have a public space with nightly builds.
Feel free to ask any questions.

A CI artifact would already be useful even if not that easy to install with pip or conda.
For scikit-learn we upload nightly built wheels in the pypi-compatible service of anaconda.org:
https://scikit-learn.org/stable/developers/advanced_installation.html#installing-nightly-builds
https://github.com/scikit-learn/scikit-learn/blob/4a52eb6de9b4533518a677123c9b11927fe8604f/.github/workflows/wheels.yml#L225-L231
If you prefer uploading packages on conda-forge, it should be possible to use a dedicated dev label for instance.

Fixed in https://github.com/intel/scikit-learn-intelex/pull/980


Kernel dies when triggering auto-complete and Intellisense does not work.

Hello and thanks in advance!
I'm running Windows 8.1 Pro x64 in Parallels VM and recently installed IfSharp. It looks really great, and I'm able to execute code and generate graphs.
Issue is that Intellisense does not work, and when i hit . to trigger auto-complete, the kernel dies. Below is my log - after the 2nd open system is when i hit . Anyone have any ideas?
As an aside,  I'm rather new to windows, but when I execute .\ifsharp.exe --install from Powershell I get ifsharp program crash errors, including a ..\--install file not found...
2015-07-17 13:00:39 - --> Added 'C:\Program Files\BayardRock\IFSharp' to library include path
2015-07-17 13:00:39 - --> Referenced 'C:\Program Files\BayardRock\IFSharp\IfSharp.Kernel.dll' (file may be locked by F# Interactive process)
2015-07-17 13:00:39 - --> Referenced 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Data.dll' (file may be locked by F# Interactive process)
2015-07-17 13:00:39 - --> Referenced 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Windows.Forms.DataVisualization.dll' (file may be locked by F# Interactive process)
2015-07-17 13:00:39 - --> Referenced 'C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\<IP_ADDRESS>\Type Providers\FSharp.Data.TypeProviders.dll' (file may be locked by F# Interactive process)
2015-07-17 13:00:39 - --> Referenced 'C:\Program Files\BayardRock\IFSharp\FSharp.Charting.dll' (file may be locked by F# Interactive process)
2015-07-17 13:00:39 - --> Referenced 'C:\Program Files\BayardRock\IFSharp\fszmq.dll' (file may be locked by F# Interactive process)
2015-07-17 13:01:02 - open System
2015-07-17 13:01:09 - open System
2015-07-17 13:01:13 - ArgumentNullExceptionValue cannot be null.
2015-07-17 13:01:13 - Parameter name: value
2015-07-17 13:01:13 -    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
2015-07-17 13:01:13 -    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
2015-07-17 13:01:13 -    at IfSharp.Kernel.IfSharpKernel.completeRequest(KernelMessage msg, CompleteRequest content)
2015-07-17 13:01:13 -    at IfSharp.Kernel.IfSharpKernel.doShell()
2015-07-17 13:01:17 - ArgumentNullExceptionValue cannot be null.
2015-07-17 13:01:17 - Parameter name: value
2015-07-17 13:01:17 -    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
2015-07-17 13:01:17 -    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
2015-07-17 13:01:17 -    at IfSharp.Kernel.IfSharpKernel.completeRequest(KernelMessage msg, CompleteRequest content)
2015-07-17 13:01:17 -    at IfSharp.Kernel.IfSharpKernel.doShell()
2015-07-17 13:01:17 - ArgumentNullExceptionValue cannot be null.
2015-07-17 13:01:17 - Parameter name: value
2015-07-17 13:01:17 -    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
2015-07-17 13:01:17 -    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
2015-07-17 13:01:17 -    at IfSharp.Kernel.IfSharpKernel.completeRequest(KernelMessage msg, CompleteRequest content)
2015-07-17 13:01:17 -    at IfSharp.Kernel.IfSharpKernel.doShell()
2015-07-17 13:01:17 - ArgumentNullExceptionValue cannot be null.
2015-07-17 13:01:17 - Parameter name: value
2015-07-17 13:01:17 -    at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
2015-07-17 13:01:17 -    at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
2015-07-17 13:01:17 -    at IfSharp.Kernel.IfSharpKernel.completeRequest(KernelMessage msg, CompleteRequest content)
2015-07-17 13:01:17 -    at IfSharp.Kernel.IfSharpKernel.doShell()
2015-07-17 13:01:21 - // include directory, this will be replaced by the kernel
2015-07-17 13:01:21 - #I "C:\\Program Files\\BayardRock\\IFSharp"
2015-07-17 13:01:21 - // load base dlls
2015-07-17 13:01:21 - #r "IfSharp.Kernel.dll"
2015-07-17 13:01:21 - #r "System.Data.dll"
2015-07-17 13:01:21 - #r "System.Windows.Forms.DataVisualization.dll"
2015-07-17 13:01:21 - #r "FSharp.Data.TypeProviders.dll"
2015-07-17 13:01:21 - #r "FSharp.Charting.dll"
2015-07-17 13:01:21 - #r "fszmq.dll"
2015-07-17 13:01:21 - // open the global functions and methods
2015-07-17 13:01:21 - open FSharp.Charting
2015-07-17 13:01:21 - open IfSharp.Kernel
2015-07-17 13:01:21 - open IfSharp.Kernel.Globals
2015-07-17 13:01:24 - F# Interactive for F# 3.1 (private)
2015-07-17 13:01:24 - Freely distributed under the Apache 2.0 Open Source License
2015-07-17 13:01:24 - For help type #help;;
2015-07-17 13:01:24 - >
2015-07-17 13:01:24 - --> Added 'C:\Program Files\BayardRock\IFSharp' to library include path
2015-07-17 13:01:24 - --> Referenced 'C:\Program Files\BayardRock\IFSharp\IfSharp.Kernel.dll' (file may be locked by F# Interactive process)
2015-07-17 13:01:24 - --> Referenced 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Data.dll' (file may be locked by F# Interactive process)
2015-07-17 13:01:24 - --> Referenced 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Windows.Forms.DataVisualization.dll' (file may be locked by F# Interactive process)
2015-07-17 13:01:24 - --> Referenced 'C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp\.NETFramework\v4.0\<IP_ADDRESS>\Type Providers\FSharp.Data.TypeProviders.dll' (file may be locked by F# Interactive process)
2015-07-17 13:01:24 - --> Referenced 'C:\Program Files\BayardRock\IFSharp\FSharp.Charting.dll' (file may be locked by F# Interactive process)
2015-07-17 13:01:24 - --> Referenced 'C:\Program Files\BayardRock\IFSharp\fszmq.dll' (file may be locked by F# Interactive process)

also I should note that IfSharp installed within my C:\Program Files dir -- not sure if that makes sense for refrences.

Hi, we've made several improvements to the install process and resilience of loading intellisense. If you get a chance please try the latest on the Jupyter branch:
https://github.com/fsprojects/IfSharp/tree/jupyter
There are also instructions for running on Mac and Linux now if that's a more familiar environment.
If it's still giving issues reopen and let us know.


Automator: update proxy@master in istio/istio@master

Generated by Automator - 2023-07-12T18:15:34+00:00

@istio-testing: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name
Commit
Details
Required
Rerun command

integ-ambient_istio
87cae2c97d567e61c102d2ce1965c0edb6544366
link
true
/test integ-ambient

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/test integ-ambient


[MM-49090]: Exclude file count on channel stats api call on from channel header

Summary
Exclude file count on channel stats API call on from channel header.
cherry-pick for https://github.com/mattermost/mattermost-webapp/pull/12245
Ticket Link
Fixes https://mattermost.atlassian.net/browse/MM-49090
Related Pull Requests

Has server changes (Merged) https://github.com/mattermost/mattermost-server/pull/22096

Screenshots

Release Note
* Exclude file count on channel stats api call on from channel header.

@amyblais, this is ready, for I am unaware of the backporting process. Please let me know what I can do to get these merged.
Note: I have done testing locally on my end.

Trying to auto merge this PR.

Pull Request successfully merged
SHA: d446bdf44b7b7c73c646a8c940748263ef79b7a3


--add-import option adds the import after vulcanization and not before

The --add-import option doesn't seem to work in the way it was intended to.
Given the following bower.json
{
  "name": "vulcan",
  "authors": [
    ""
  ],
  "description": "",
  "main": "",
  "moduleType": [],
  "license": "MIT",
  "homepage": "",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "test",
    "tests"
  ],
  "dependencies": {
    "polymer": "Polymer/polymer#1.2.3",
    "paper-dialog": "PolymerElements/paper-dialog#~1.0.3",
    "paper-button": "PolymerElements/paper-button#1.0.0"
  }
}

with the dependencies listed installed, running the following command:
vulcanize --inline-css --strip-comments --inline-scripts --exclude "bower_components/polymer/" --add-import bower_components/paper-button/paper-button.html bower_components/paper-dialog/paper-dialog.html --out-html polymers.html
yields in a polymers.html file with the "imported" paper-button imported like so:
<link rel="import" href="bower_components/paper-button/paper-button.html">
instead of being inlined.

This is the intended behavior of the feature. --add-import is meant for use by a tool that builds a sharded application, in order to add dependencies that weren't included during vulcanization.

The documentation states that the --add-import flag is supposed to add the import prior to vulcanization and not after:

--add-import : Add this import to the target HTML before vulcanizing. Can be used multiple times.

If it adds the import before vulcanization, then it would be like having the import already present in the import chain. However currently it seems that the import gets inserted after.


Follow-up from "Logging pattern set from yaml"

In GitLab by @ksiero on Jul 26, 2021, 12:59
The following discussion from !344 should be addressed:

[ ] @jbigot started a discussion:  (+1 comment)

could you maybe make it a Logger& instead?

Changing all -> to . should be done in separate MR.

In GitLab by @ksiero on Aug 2, 2021, 08:10
mentioned in commit 669cbf2f7e3f78dd2ad59ae26b31b4f134913008

In GitLab by @ksiero on Aug 3, 2021, 15:20
mentioned in commit 108cbfe7ec3c3fa180633b0b28f694ebcd08c29a

In GitLab by @ksiero on Jul 30, 2021, 15:14
mentioned in commit 0f8375520c4881aafd58322a240f4c04c7baa0cb

In GitLab by @ksiero on Jul 30, 2021, 15:00
mentioned in commit 30b7590a7207badcf4b081ba7fcfcb01f9627151

In GitLab by @ksiero on Aug 4, 2021, 12:44
mentioned in commit d1883c36c000eb1d4f265ff367a288d2c77e9b38


Detect actual breaking interview error more quickly

We might look into whether <meta itemprop="name" content="docassemble: Error"> is consistently present on actually broken pages. Would really speed up error finding. This might at least speed up finding one type of error.

I think we're doing this now.


ARROW-5584: Add import for link reference in FieldReader javadoc

see ARROW-5584.

Codecov Report

Merging #4546 into master will increase coverage by 0.96%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4546      +/-   ##
==========================================
+ Coverage   88.55%   89.52%   +0.96%
==========================================
  Files         796      646     -150
  Lines      103239    91405   -11834
  Branches     1253        0    -1253
==========================================
- Hits        91425    81830    -9595
+ Misses      11569     9575    -1994
+ Partials      245        0     -245

Impacted Files
Coverage Δ

cpp/src/arrow/csv/column-builder.cc
95.29% <0%> (-1.77%)
:arrow_down:

cpp/src/arrow/util/thread-pool-test.cc
97.66% <0%> (-0.94%)
:arrow_down:

go/arrow/ipc/writer.go

go/arrow/math/uint64_amd64.go

go/arrow/memory/memory_avx2_amd64.go

go/arrow/ipc/file_reader.go

js/src/enum.ts

go/arrow/array/builder.go

js/src/Arrow.node.ts

js/src/schema.ts

... and 142 more

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 25b4a46...33924ae. Read the comment docs.


Added source map support for babel

For now, we disallow babel pre-compiled files with the js extension
because we have no other way to differentiate pre and post compiled
files. Supported extensions are es6, es, jsx.

@ofrobots PTAL.

I'm fine with landing this, but the title needs to be updated as this doesn't solve the full use-case of supporting transpiled JS.

LGTM w/ comment.

Progress on #37


Google maps typings

Hi,
Is there any chance to convert google maps typings to be compatible with flow? I really need this
Thanks a lot :)

You can file an issue here: https://github.com/flowtype/flow-typed/issues


Delete stim/GATES.md

Delete the gates doc not in the doc folder
This file does have some information missing from doc/gates.md, including the general information about gate targets

How... how did I not see this for months. For years.


resource contention

multiple calls to the API results in errors
benchmark requests
clean up error

This is due to multi threading issues with pysam
https://www.biostars.org/p/275974/
https://pysam.readthedocs.io/en/latest/faq.html

add multiple_iterators = True to fetch

[2022-05-19 02:15:06,902] ERROR in app: Exception on /api/gene_phenos/TCF7L2 [GET]
Traceback (most recent call last):
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/mwm1/Work/pheweb/pheweb/serve/server.py", line 236, in api_gene_phenotypes
phenotypes = [res for res in jeeves.gene_phenos(gene) if res.pheno['phenocode'] in use_phenos]
File "/home/mwm1/Work/pheweb/pheweb/serve/server_jeeves.py", line 104, in gene_phenos
results = self.result_dao.get_top_per_pheno_variant_results_range(chrom, start, end)
File "/home/mwm1/Work/pheweb/pheweb/serve/data_access/db.py", line 894, in get_top_per_pheno_variant_results_range
pval = split[pheno[1]]
IndexError: list index out of range
Traceback (most recent call last):
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/home/mwm1/Work/pheweb/.direnv/python-3.7.3/lib/python3.7/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/mwm1/Work/pheweb/pheweb/serve/server.py", line 236, in api_gene_phenotypes
phenotypes = [res for res in jeeves.gene_phenos(gene) if res.pheno['phenocode'] in use_phenos]
File "/home/mwm1/Work/pheweb/pheweb/serve/server_jeeves.py", line 104, in gene_phenos
results = self.result_dao.get_top_per_pheno_variant_results_range(chrom, start, end)
File "/home/mwm1/Work/pheweb/pheweb/serve/data_access/db.py", line 908, in get_top_per_pheno_variant_results_range
if "maf_cases" in self.header_offset


Hooks

Example hooks should be added to the repository.
e.g. Preventing large files from being committed or automatic pushes.

From #55

I've been investigating git large-file storage solutions, and while git-fat is more generally useful, GitHub's git-lfs is a bit nicer to use. One reason is that you don't have to manually "git lfs push" when you "git push", because when git-lfs installs its filters, it also installs a pre-push hook that automatically runs "git-lfs push".

Since the user wouldn't run "git push" if they didn't already expect to have a network connection, it should be safe for "git-fat init" to always set up a pre-push hook that runs "git-fat push".


[Cordova] Support to download and install 64 bit crosswalk canary aar by itself

Download and install 64 bit crosswalk canary aar by itself

Impacted tests(approved): new 0, update 2, delete 0
Unit test platform: Crosswalk Project for android 19.48.483.0
Unit test result summary: pass 2, fail 0, block 0
BUG=https://crosswalk-project.org/jira/browse/XWALK-6301

@ibelem Pls review it.

LGTM


#3250 Login page Responsive error Solved

Fixes #3250
Improves:

Login page is now responsive and centered to the screen . working with all screen size

@VedantRaut-sudo you need to sign the Plone Contributor Agreement in order to merge this pull request.
Learn about the Plone Contributor Agreement: http://docs.plone.org/develop/coredev/docs/contributors_agreement_explained.html

@VedantRaut-sudo please see https://6.docs.plone.org/volto/developer-guidelines/contributing.html#create-a-pull-request

@VedantRaut-sudo you need to sign the Plone Contributor Agreement to merge this pull request.
Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement

Already fixed


Problems with dependencies on windows (Fortran)

Link to SCons Users thread discussing your issue.
https://pairlist4.pair.net/pipermail/scons-users/2019-May/007752.html

Version of SCons
3.0.5

Version of Python
3.6.7

Which python distribution if applicable (python.org, cygwin, anaconda, macports, brew,etc)
anaconda

How you installed SCons
conda install -c scons anaconda

What Platform are you on? (Linux/Windows and which version)
Windows 10 64 bits

How to reproduce your issue?  Please include a small self contained reproducer. Likely a SConstruct should do for most issues.
Seems that compilation is done using alphabetic order.
Fortran_Dependencies.zip

How you invoke scons (The command line you're using "scons --flags some_arguments")
scons

Scons version: 3.0.5
Python: 3.6.7
O.S: Windows 10
While this example work in MacOS( and probably in Linux), it isn't the case for Windows. In Windows
for any reason forget the dependencies between fortran files and follow an alphabetic order(???) for compilation.
I have attached the example. (The correct order for compilation was written in SConstruct file on sources list (as guide).
In windows try to compile a_test2.f90 file before to compile test_1.f90 for example.
To get correct dependencies in fortran project should be look at the USE modules....
Javier
Tree_MacOS.txt
Tree_Windows.txt
Fortran_Dependencies.zip

@jglezplatas - Please fill in the issue template information above.

Version of Scons: 3.0.5
Version Python: 3.6.7
Python distribution: Anaconda
Installation Scons: conda install -c anaconda scons
Plataform: Windows 10 - 64 bits
How reproduce the problem:
GFortran have to be installed. 32 or 64 bits is the same for this case.
Apply patch that resolve the problem #3135 to compile submodules in fortran using scons
Unzip the example attached in my first message and try execute scons.
In my case, scons try to compile the files (in alphabetic order?) and not looking dependencies between different files.
The command line to execute scons: scons

@jglezplatas  - You've still not edited the bug summary... Go to the top part where the template is. Click the three ...'s and then edit. Also please delete your other comments.
We ask users to not file issues until approved on  the users mailing list. Which has not yet happened.
Also I asked for you to create a repro on the mailing list and create a git repo to simplify seeing the issue.

Please add info on which fortran compiler and how you installed it on your system. (URL,etc)

Is it safe to assume that the order is wrong because the required .smod files are not built before they are used in your example?

I'm 99% sure this is effectively a duplicate of #3366
On windows what order is it actually compiling on?
I'm guessing testing.f90 gets compiled before files in your subdir which is what produces the .smod's

The correct order was written on Sconstruct in sources list.
Why in Linux compile but not in Windows? Casuality?

The installer for fortran in windows was taken from
https://sourceforge.net/projects/mingw-w64/files/
After I have selected the packages for 32bits and for 64bits.
The version of compiler is 8.1.

Can you paste a log of building on windows and on other platforms?
Also what is the "Correct" order?

Please paste the output for:  scons --tree=prune --taskmastertrace=trace.log
Also upload the trace.log as an attachment

Also run same on another platform where the build works and paste output and attach trace.log

OK
Here you have the trace.log in my MacOS system where I can get the executable.
Also the trace.log in windows where scons fails.
I hope that it help you.
trace_macos.log
trace_windows.log

The correct order of compilation could be
sources = ['test_1.f90', 'b_test1.f90', 'c_test1.f90', 'test_2.f90', 'a_test2.f90', 'testing.f90']
1                   2                 3                   4                    5                    6
2 and 3 can be interchanged
Also I think that could be 1  4  2  3  5  6 (I'm not sure).
But never the file 5 before that 1 for example....

Correct order could be
sources = ['test_1.f90', 'b_test1.f90', 'c_test1.f90', 'test_2.f90', 'a_test2.f90', 'testing.f90']


delete obj folder

@Korijn Considering that the pylinalg.obj folder now only contains an empty init and that the "actual" object API lives in pygfx.utils.transform, shall we remove the folder/submodule?

Yes. I'd also like to perform that larger renaming operation to provide a less verbose API.

Merged with #67


Corrected preset for xyz2 hexagonal stabilizer code

Summary
Corrected Issue #342 where the problem was that the preset for the weight 6 operators was incorrect as per the issue.
Details and comments
"cYZX2-hXX": [
            PauliList(["YZXYZX"], input_qubit_order="left-to-right"),  # 0
            PauliList(["YZXYZX"], input_qubit_order="left-to-right"),  # 1
            PauliList(["YZXYZX"], input_qubit_order="left-to-right"),  # 2
            None,  # 3
            PauliList(["XX"]),  # 4
            None,  # 5
            None,  # 6
            PauliList(["XX"]),  # 7
            None,  # 8
            None,  # 9
            PauliList(["XX"]),  # 10
            None,  # 11
        ],

Closes #342

Not for the Tile since the presets can be used for a range of codes of which some will be correct and others will not be correct. I guess that we could write a test for the builder that is using the tile and preset that would check that the code being generated is the code in question. That is probably a good idea.


Fix compatibility with vpype 1.9

Done:

pinned vpype to 1.9
fixed vpype-related imports
switched options to expression-compatible types
added source file recording in eread
added color support to eread

Notes:

Color support should probably be added to ewrite but I'm unsure how to do that. The color of the current layer can be obtained with layer.property(vp.METADATA_FIELD_COLOR). It returns None if undefined or a vp.Color instance otherwise.
I'm unsure if reading/writing pen width and/or layer name would make sense too.

There is actually something in some rare embroidery like VP3 which includes thread weight, which is basically how fat the thread is and for that pen-width would make sense but it's actually very rare and I don't currently fully read that though I did map the whole thing out. Usually thread is going to be 40 weight and thus about 0.3mm wide. This is about 1.13385827 so about 1 pixel which is default here. So the defaults should turn out fairly okay. And it makes no difference outside visualizations.
Also, awesome and good job. I'll upload this version then work on the write for colors where it matters. There's some other thread metadata things that should probably be preserved but I'll read up on the 1.9 api stuff (assuming the docs are updated) and make the rest of this work since outside of the lack of colors this was extremely good work before and is now much more fully functional. I might even generally recommend it for some projects and use it places where things like automatically digitizing logos is a useful feature set.

I did quite extensive work on the documentation (which of course doesn't mean it is either complete or good at all). I guess all you need to know really is:
# set a global property
document.set_property("emb_myprop", my_prop)

# set a layer property
lc.set_property("emb_myprop", my_prop)
document.layers[1].set_property("emb_myprop", my_prop)

If you move around line collection (e.g. doc.add(lc, 2, with_metadata=True), check the API. Metadata is often not moved/copied by default.
Now, on the general strategy, I'd choose a prefix (emb_) and dump everything you have, like it's done with SVG attributes.


master startup error：rpc error: code = Unknown desc = mongo: no documents in result

master_1  | replaced api url in file: crawlab-ui.14fd3a25.js
master_1  | 2023/09/02 17:49:33  info initialized controllers successfully
master_1  | 2023/09/02 17:49:33  info initialized middlewares successfully
master_1  | 2023/09/02 17:49:33  info initialized routes successfully
master_1  | 2023/09/02 17:49:33  info current node type: master
master_1  | 2023/09/02 17:49:33  info running in docker container
master_1  | [nginx]  * Starting nginx nginx
master_1  | 2023/09/02 17:49:33  info grpc server listens to <IP_ADDRESS>:9666
master_1  | 2023/09/02 17:49:33  info master[051d6c45-4976-11ee-887f-0242ac120002] does not exist in db
master_1  | 2023/09/02 17:49:33  info added master[051d6c45-4976-11ee-887f-0242ac120002] in db. id: 64f3052d4f4f0d406cac7a41
master_1  | 2023/09/02 17:49:33  info master[051d6c45-4976-11ee-887f-0242ac120002] monitoring started
master_1  | 2023/09/02 17:49:33  info cron: start
master_1  | 2023/09/02 17:49:33  info [GrpcClient] grpc client connected to localhost:9666
master_1  | 2023/09/02 17:49:33  info [GrpcClient] grpc client registered client services
master_1  | 2023/09/02 17:49:33  info [GrpcClient] grpc client subscribed to remote server
master_1  | 2023/09/02 17:49:33  info [GrpcClient] start handling stream message...
master_1  | 2023/09/02 17:49:33  info [GrpcClient] grpc client connected to localhost:9666
master_1  | 2023/09/02 17:49:33  info [GrpcClient] grpc client registered client services
master_1  | 2023/09/02 17:49:33  info [GrpcClient] grpc client subscribed to remote server
master_1  | 2023/09/02 17:49:33  info subscribe events
master_1  | 2023/09/02 17:49:33  info [GrpcClient] start handling stream message...
master_1  | 2023/09/02 17:49:33  info [NodeServer] master received subscribe request from node[051d6c45-4976-11ee-887f-0242ac120002]
master_1  | 2023/09/02 17:49:33  info [NodeServer] master subscribed node[051d6c45-4976-11ee-887f-0242ac120002]
master_1  | 2023/09/02 17:49:33  info [MessageServer] received connect request from node[051d6c45-4976-11ee-887f-0242ac120002], key: plugin:notification:051d6c45-4976-11ee-887f-0242ac120002
master_1  | 2023/09/02 17:49:33  info [NodeServer] master received subscribe request from node[051d6c45-4976-11ee-887f-0242ac120002]
master_1  | 2023/09/02 17:49:33  info [NodeServer] master subscribed node[051d6c45-4976-11ee-887f-0242ac120002]
master_1  | mongo: no documents in result
master_1  | /go/pkg/mod/github.com/crawlab-team/go-trace@v0.1.1/trace.go:13 github.com/crawlab-team/go-trace.TraceError()
master_1  | /go/pkg/mod/github.com/crawlab-team/crawlab-core@v0.6.3-0.20230804030437-664646cf1665/grpc/server/plugin_server.go:50 github.com/crawlab-team/crawlab-core/grpc/server.PluginServer.Register()
master_1  | /go/pkg/mod/github.com/crawlab-team/crawlab-grpc@v0.6.0-beta.20211219.1930.0.20221020032435-afa1c691f73c/plugin_service_grpc.pb.go:159 github.com/crawlab-team/crawlab-grpc._PluginService_Regist
er_Handler.func1()
master_1  | /go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:31 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1()
master_1  | /go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/auth/auth.go:46 github.com/grpc-ecosystem/go-grpc-middleware/auth.UnaryServerInterceptor.func1()
master_1  | /go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:34 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1()
master_1  | /go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/recovery/interceptors.go:29 github.com/grpc-ecosystem/go-grpc-middleware/recovery.UnaryServerInterc
eptor.func1()
master_1  | /go/pkg/mod/github.com/grpc-ecosystem/go-grpc-middleware@v1.0.1-0.20190118093823-f849b5445de4/chain.go:39 github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1()
master_1  | /go/pkg/mod/github.com/crawlab-team/crawlab-grpc@v0.6.0-beta.20211219.1930.0.20221020032435-afa1c691f73c/plugin_service_grpc.pb.go:161 github.com/crawlab-team/crawlab-grpc._PluginService_Regist
er_Handler()
master_1  | /go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:1282 google.golang.org/grpc.(*Server).processUnaryRPC()
master_1  | /go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:1616 google.golang.org/grpc.(*Server).handleStream()
master_1  | /go/pkg/mod/google.golang.org/grpc@v1.42.0/server.go:921 google.golang.org/grpc.(*Server).serveStreams.func1.2()
master_1  | /usr/local/go/src/runtime/asm_amd64.s:1571 runtime.goexit()
master_1  | rpc error: code = Unknown desc = mongo: no documents in result

my docker-compose file
version: '3.3'
services:
  master:
    image: crawlabteam/crawlab:latest
    container_name: crawlab_master
    environment:
      CRAWLAB_NODE_MASTER: "Y"
      CRAWLAB_MONGO_HOST: "<IP_ADDRESS>"
      CRAWLAB_MONGO_PORT: "27017"
      CRAWLAB_MONGO_DB: "crawlab"
      CRAWLAB_MONGO_USERNAME: "mongo"
      CRAWLAB_MONGO_PASSWORD: "password"
      CRAWLAB_MONGO_AUTHSOURCE: "admin"
    volumes:
      - "/opt/crawlab/metadata:/root/.crawlab"
      - "/opt/crawlab/data:/data"
      - "/opt/crawlab/logs:/var/log/crawlab"
    ports:
      - "8080:8080"
      - "9666:9666"

mongodb
version: '3.3'
services:
  mongo:
    container_name: mongo
    image: mongo:4.2
    restart: always
    environment:
      MONGO_DATA_DIR: /data/db
      MONGO_LOG_DIR: /data/logs
      MONGO_INITDB_ROOT_USERNAME: "mongo"
      MONGO_INITDB_ROOT_PASSWORD: "password"
    volumes:
      - "/opt/mongo/data/db:/data/db"
      - "/opt/mongo/logs:/data/logs"
      - "/opt/mongo/conf:/etc/mongo"
    ports:
      - "27017:27017"
    command: mongod --auth

I encountered the same issue
no log updates

This is an error log generated when initializing the notification plugin, but it does not affect the normal operation of the framework. The issue has already been reported to the author.

I encountered(遇到) the same issue(问题)
no log updates(更新)

Your question is not related to this error log; please check whether the SeaweedFS service is running properly.


fix docstring by removing ResNet

The PR fixes the documentation bug discussed in issue #5209.
I tried to follow the instructions in the file CONTRIBUTING.md.
The tool ufmt makes several changes in several modules. So, I did not include the changes in this PR. I can add them if it is necessary.
Building the documentation using the command make html results in a runtime error (maybe it is a problem on my side).
However, running make html-noplot finishes with no error.

@NicolasHug @jdsgomes Tagging you to see the feedback of @mohrez86 who is a first-time contributor. He faced a few problems which are worth addressing on the future. I believe the issues he describes with make html are linked to the optional dependencies which actually cause issues if missing while building the documentation. Let me know your thoughts and whether we have any existing issues for fixing this. Thanks!


Singer Spec clarification: supporting mergeable STATE artifacts

Migrated from GitLab: https://gitlab.com/meltano/meltano/-/issues/2903
Originally created by @aaronsteers on 2021-08-19 15:26:09

As discussed in office hours yesterday, we need to document a spec clarification to allow STATE merging.
Use Cases
The main use cases involve orchestrator-driven or user-driven parallelization.

For any initial backfill tasks where we want the streams to be parallelized by the orchestrator (Meltano), for instance by breaking the list of streams into multiple sync groups, we also need a means of merging the multiple STATE outputs which are produced from the 4 jobs.
For #2727 (Melturbo), multiple states will be created and we'll need to merge them afterward.
(More use cases to-be-added...)

Spec Proposal A: Top-level Mergeability
The simplest spec proposal is as follows:

All top level bookmarks in the STATE json object should be considered atomic and mergeable with other top-level bookmarks.

In practice, this convention is already true for 99% of taps. The implications are that, if the STATE output from one job contains a top-level users bookmark, and the STATE output from another job contains a top-level customers bookmark, the two job outputs may be merged together to create a single merged STATE output with both users and customers bookmarks combined.
Compatibility Detection
As noted above, we can probably assume all taps already support this capability and then manage to the exceptions. If we do not take this assumption, detecting/confirming compatibility should still be simple step to accomplish, since we can check top-level boookmarks to see that they matching the name of the streams which were synced in the executed job.
Limitations
This method has the limitation of not being able to merge partitioned state. Optionally, we could expand the definition above to encompass multiple partition states within the jobs' STATE outputs.
Spec Proposal B: JSON Patch
A more complex spec proposal might implement the JSON Patch implementation for more advanced merging: http://jsonpatch.com/
This is likely not true today for most taps. There could still be valuable to enable this capability in order to support more advanced use cases

View 5 previous comments from the original issue on GitLab

Still relevant

Related:

https://github.com/meltano/meltano/issues/8033
#8195
#8258
#8542


Fix CRON expressions

Turns out I had messed up all the samples, making them fire every second of minutes that match! First field needs to be a 0 instead of * in all of them.

Hi @davidebbo, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

It looks like you're working at Microsoft (davidebb). If you're full-time, we DON'T require a contribution license agreement.

If you are a vendor, or work for Microsoft Open Technologies, DO please sign the electronic contribution license agreement. It will take 2 minutes and there's no faxing! https://cla.azure.com.

TTYL, AZPRBOT;


[Bug report]

✅ Checklist

[X] I am using the latest version
[X] I have searched FAQ

📄 System Info
npx: installed 4 in 5.374s
Watching D:\temp\menu-admin and all sub-directories not excluded by your .gitignore. Will not monitor dotfiles.
Found & ignored ./.git ; is listed in .gitignore
Found & ignored ./.husky ; is listed in .gitignore
Found & ignored ./.idea ; is listed in .gitignore
Found & ignored ./.vscode ; is listed in .gitignore
Found & ignored ./node_modules ; is listed in .gitignore
Found & ignored ./public ; is listed in .gitignore
Found & ignored ./src ; is listed in .gitignore
Found & ignored ./auto-imports.d.ts ; is listed in .gitignore
Found & ignored ./CHANGELOG.md ; is listed in .gitignore
Found & ignored ./commitlint.config.js ; is listed in .gitignore
Found & ignored ./components.d.ts ; is listed in .gitignore
Found & ignored ./index.html ; is listed in .gitignore
Found & ignored ./lint-staged.config.js ; is listed in .gitignore
Found & ignored ./package-lock.json ; is listed in .gitignore
Found & ignored ./package.json ; is listed in .gitignore
Found & ignored ./pnpm-lock.yaml ; is listed in .gitignore
Found & ignored ./postcss.config.js ; is listed in .gitignore
Found & ignored ./README.md ; is listed in .gitignore
Found & ignored ./STANDARD.md ; is listed in .gitignore
Found & ignored ./tsconfig.json ; is listed in .gitignore
Found & ignored ./vite.config.ts ; is listed in .gitignore
  ^

Error: Cannot find module 'D:\temp\menu-admin\lint-staged'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
    at Function.Module._load (internal/modules/cjs/loader.js:725:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
[master 2ef4569] docs: 📚 规范文档调整

🔎 Description
Concise Description
执行  报错  上
Expected behavior
没有按期执行
Steps to reproduce
git  add  .   cz
Screenshots or Screen Recording(if possible)
🔗 Reproduction link / repo:
No response

Error: Cannot find module 'D:\temp\menu-admin\lint-staged'

lint-staged 的未找到模块错误
你可以试试仅用 git commit -m "docs: 📚 规范文档调整" 命令进行调试，
如果有问题可以提供最小化例子 或 查看一下其他issue 希望可以帮助到你


Implement Stable Helm Repository

Reason
As Catena-X Rel 2.0/2.1 is available since mid of december 2022, stable helm repo should be implemented.
Things to clarify/design:

Which source of available Charts for stable Helm Repository should be used?
How to build the index.yaml for stable Helm Repository (using excerpt of DEV, or reading it from the product git repos)?
...

Additional information / links

We have one aligned helm chart version; next move will be to nexus