Too many instances of AbstractUnsafe. Possible memory leak.

We are using Netty 4.0.27-final and this issue produces in our prod setup only. The service goes out of memory after some hours. The heapdump shows too many instances of AbstractUnsafe created. My application does not attach any listeners to CloseFuture. The heap analysis is posted below:

Can you upload the heapdump somewhere?

Am 24.06.2015 um 14:47 schrieb ashish-tyagi<EMAIL_ADDRESS>We are using Netty 4.0.27-final and this issue produces there only. The service goes out of memory on one of the boxes. The heapdump shows too many instances of AbstractUnsafe created. My application does not attach any listeners to CloseFuture. The heap analysis is posted below:
—
Reply to this email directly or view it on GitHub.

Uploaded here: https://drive.google.com/file/d/0By_31xcSOtE5NEtFVFZadHFfdVU/view?usp=sharing
Thanks!

@ashish-tyagi can you show me the ChannelFutureListener that you added via:
channel.closeFuture().addListener(...)

?

Hi @normanmaurer
We do not use any listeners on closeFuture in any form:
channel.closeFuture().addListener(...) or
channel.close().addListner().
We just do ChannelContext.close() when the request is finished.

Can you show me how you init your ChannelPipeline?

Am 24.06.2015 um 18:06 schrieb ashish-tyagi<EMAIL_ADDRESS>Hi @normanmaurer
We do not use any listeners on closeFuture in any form:
channel.closeFuture().addListener(...) or
channel.close().addListner().
We just do ChannelContext.close() when the request is finished.
—
Reply to this email directly or view it on GitHub.

The Netty channel initializer code is spread over many classes in our project. However this is what is looks like:
        ch.pipeline().addLast(new ServerTimingHandler());
        ch.pipeline().addLast(new HttpServerCodec());
        ch.pipeline().addLast(new HttpObjectAggregator(1024 * 1024));
        ch.pipeline().addLast(new ServiceChannelHandler());

ServerTimingHandler.class
package com.inmobi.indis.netty.handler;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

import javax.annotation.concurrent.NotThreadSafe;

import lombok.RequiredArgsConstructor;

import com.codahale.metrics.Timer.Context;
import com.inmobi.indis.server.metric.ServerMetrics;

/**
 * This handler is responsible for measuring server connection timings.
 *
 * @author Ashish.Tyagi
 */
@NotThreadSafe
@RequiredArgsConstructor
public class ServerTimingHandler extends ChannelInboundHandlerAdapter {

    private final ServerMetrics serverMetrics;

    private Context             connectionTimerContext;

    @Override
    public void channelActive(ChannelHandlerContext ctx) throws Exception {
        connectionTimerContext = serverMetrics.getConnectionTimer().time();
        serverMetrics.getConnectionGauge().inc();
        super.channelActive(ctx);
    }

    @Override
    public void channelInactive(ChannelHandlerContext ctx) throws Exception {
        super.channelInactive(ctx);
        if (connectionTimerContext != null) {
            connectionTimerContext.close();
            serverMetrics.getConnectionGauge().dec();
        }
    }
}

ServiceChannelHandler
package com.inmobi.indis.netty.handler;

import java.net.InetAddress;
import java.net.InetSocketAddress;
import java.net.SocketAddress;

import com.codahale.metrics.annotation.ExceptionMetered;
import com.inmobi.indis.server.ChannelContext;
import com.inmobi.indis.server.pipeline.ChannelEventSubscriber;
import com.inmobi.indis.server.pipeline.Pipeline;
import com.inmobi.indis.server.pipeline.event.ChannelEvent;
import com.inmobi.indis.server.pipeline.event.DataChannelEvent;

import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;
import io.netty.channel.local.LocalAddress;

import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;

/**
 * Netty pipeline interface to InDis pipeline
 *
 * @author Ashish.Tyagi
 */
@Slf4j
@RequiredArgsConstructor
public class ServiceChannelHandler extends ChannelInboundHandlerAdapter {

    private final Pipeline<ChannelEvent<Object>, ChannelEvent<Object>> pipeline;
    private final ServiceChannelHandlerMetrics                         metrics;
    private ChannelContext                                             chCtx;

    @Override
    public void handlerAdded(final ChannelHandlerContext ctx) throws Exception {
        this.chCtx = prepareAndReturnChannelContext(ctx);
        pipeline.out().subscribe(new ChannelEventSubscriber<Object>() {
            private volatile ChannelFuture lastWriteFuture = null;

            @Override
            public ChannelEventSubscriber<Object> onData(Object msg, ChannelContext chCtx) {
                metrics.getDataMeter().mark();
                if (ctx.channel().isActive()) {
                    lastWriteFuture = ctx.channel().write(msg);
                }
                return this;
            }

            @Override
            public ChannelEventSubscriber<Object> onException(Exception exception, ChannelContext chCtx) {
                metrics.getExceptionMeter().mark();
                flushAndClose(ctx, exception);
                return this;
            }

            @Override
            public ChannelEventSubscriber<Object> onFlush(ChannelContext chCtx) {
                metrics.getFlushMeter().mark();
                if (ctx.channel().isActive()) {
                    ctx.flush();
                }
                return this;
            }

            @Override
            public ChannelEventSubscriber<Object> onClose(ChannelContext chCtx) {
                metrics.getCloseMeter().mark();
                if (ctx.channel().isActive()) {
                    if (lastWriteFuture != null) {
                        lastWriteFuture.addListener(ChannelFutureListener.CLOSE);
                    } else {
                        ctx.close();
                    }
                }
                return this;
            }

            @Override
            public void onCompleted() {
                // Do not do anything with Netty channel here. Due to implementation of ConcatMap, the onComplete() can
                // be received in netty-io thread itself (with serviceScheduler), if the pipe.call() finishes too fast
                // (OperatorConcat, line-171). However, other methods, including onError are safe, as they will get
                // called in scheduler threads only.
            }

            @Override
            @ExceptionMetered
            public void onError(Throwable e) {
                flushAndClose(ctx, e);
            }
        });
    }

    @Override
    public void channelRead(final ChannelHandlerContext ctx, Object msg) throws Exception {
        pipeline.in().onNext(DataChannelEvent.of(msg, chCtx));
    }

    @Override
    public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
        pipeline.in().onCompleted();
    }

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
        flushAndClose(ctx, cause);
    }

    private void flushAndClose(ChannelHandlerContext ctx, Throwable exception) {
        if (ctx.channel().isOpen()) {
            log.error("Cant handle an exception. Closing channel.", exception);
            ctx.flush();
            ctx.close();
        }
    }

    private ChannelContext prepareAndReturnChannelContext(final ChannelHandlerContext ctx) {
        SocketAddress address = ctx.channel().remoteAddress();
        String ipAddress = null;
        // If address is of some other type do not set the IP.
        if (address instanceof InetSocketAddress) {
            InetSocketAddress inetSockAdd = (InetSocketAddress) address;
            InetAddress inetAdd = inetSockAdd.getAddress();
            if (inetAdd != null) {
                ipAddress = inetAdd.getHostAddress();
            }
        } else if (address instanceof LocalAddress) {
            ipAddress = "<IP_ADDRESS>";
        }
        ChannelContext chCtx = new ChannelContext(ipAddress);
        return chCtx;
    }
}

@ashish-tyagi thanks will have a closer look tomorrow. Could you share a reproducer by any chance ?

Hi @normanmaurer ,
This issue does not produce in a test. In fact it does not produce in our dev environment. It produces only in production. The OOM problem has been seen to occur with a network glitch. I observed that another service saw a breakage of connection, and that same time this service started building up memory.

@ashish-tyagi actually I think this is fixed in 4.0.29.Final. Could you upgrade and tell me if you still see the issue ?

Hi @normanmaurer,
Can you please give me the link of PR which fixes this issue. We will try with 4.0.29.Final. However, given that this problem does not produce always, if the problem does not produce for a few days with 4.0.29-Final, there will still remain a doubt if the problem has been fixed or if the problem has not just produced again. Thanks!

@ashish-tyagi Seems like we changed to not add a ChannelFutureListener when a VoidChannelPromise is used here: https://github.com/netty/netty/commit/275e2f0b3689a2f560a4e6c70c1f8929ee16beb7#diff-cfab6ab9111be41b2f39beb8d154e79fR540
In your heap dump all the references are because of adding listener when a VoidChannelPromise is used.

Hi @normanmaurer,
I think this should fix the issue. There is another concern related to this. There were 1048576 listeners attached to 1 NioChannel. This means that AbstractUnsage.close() would have been called 1048576 times for one channel. Is not that too big a number? I think that points to another bug.

@ashish-tyagi yes it is a big number... I wonder how this can happen.

We are going to try with 4.0.29-Final. Will update this thread with our findings. Thanks @normanmaurer !

@ashish-tyagi any update ?

Hi @normanmaurer
As this problem produces only in our prod setup, we are waiting for the new service to go in production. That would take one more week.
If you want, you can close this issue. I will still update it with the findings. Thanks!

The issue does not seem to produce any longer. Closing this. Thanks!

@ashish-tyagi thanks!


Allow Punycode In Domain

PR Details

Description

Updates the REGEX_DOMAIN to allow puny code domains e.g.: xn--ls8h.la
Related Issue

Fixes #61
Motivation and Context

Allows punycode domains to be used as whitelisted/blacklisted domains (and probably
other places).
How Has This Been Tested

Updated unit tests to cover puny code
Installed local gem into our app and verified loading domains with punycode into the blacklist doesn't break

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[x] My code follows the code style of this project
[ ] My change requires a change to the documentation
[ ] I have updated the documentation accordingly
[x] I have read the CONTRIBUTING document
[x] I have added tests to cover my changes
[x] I have run bundle exec rspec from the root directory to see all new and existing tests pass
[x] I have run rubocop and reek to ensure the code style is valid

Thanks for your PR, but there is a more flexible way add supporting of national encoding than punycode feature.

Already implemented in #65.


Fix session handling

See discussion in #608.

Add a remove method to IQueueRepository, so queues can actually be removed when no longer needed.
Make the Session the only place where the Queue lives outside of the repository by removing the queues field from SessionRegistry.
Tie a Queue and a Session in a 1-to-1 way.
Remove and clean the old Session and Queue before creating a new pair for a ClientId.
Clean Session and Queue when they are no longer needed.
In case a new Connection takes over a Session from an existing, connected connection, ensure the old session can not influence the Session any more after the Session was taken over.

@hylkevds we are almost there, just a couple of nitpick and the PR then is ready.

Excellent. They should all be fixed now.


Prepublish checklist notification messages are not the correct color

Bug Description
The messaging to user within the prepublish checklist should have variance in the presentation of the text as follows:
The color of the message should be:
Title(awesome work): FG (dark) - Secondary
Subtitle (no issues found): FG (dark) - Tertiary
Currently there does not appear to be any variance in the presentation of this text
Expected Behaviour

Steps to Reproduce

Screenshots
Currently:

Additional Context

Plugin Version:
WordPress Version:
Operating System:
Browser:

Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance Criteria

Implementation Brief

Designs have been updated, new version of pre-publish is in staging. Design to confirm.


/images/json ignores label filters

Looks like it only works with the node filter.  The docker-compose test suite needs this.

I'm going to work on a fix for this

This is going to be difficult.
So swarm keeps a list of images from the engine, but it's only the output of this /images/json call, which means it doesn't include labels.  When the call to this endpoint happens it only operates on the cached list, so there's no opportunity to add the filters to the API call, and the data needed to filter is not available.
The only options I can see are:

adding extra output to the engine response
make RefreshImage() do a full inspect on every image so labels are stored (which I believe is a much more expensive operation)

Thoughts? Is there an easier way I missed?
Do you think there is any way to make 2 workable, or does this require 1?

I think it's possible with 2, but as you said it would be too much expensive.
I think 1 would be the best, the Docker API returns labels in listcontainers, it should be the same for listimages

Good news, it turns out it is actually in the API response!  It's just missing from the docs, and from the go dockerclient.
So I should be able to just fix the client and get it working in swarm.


Calling C functions from Swift

I would like to call some C functions from Swift.  I am trying to use a Bridging-Header.h to accomplish this.  However, when I try to compile:

swiftc -c SwiftTest.swift -import-objc-header Bridging-Header.h

I get an error:

<unknown>:0: error: failed to import bridging header 'Bridging-Header.h'

SwiftTest.swift contains:
    hello_c("World".cStringUsingEncoding(NSUTF8StringEncoding))
Bridging-Header.h is empty, just to make sure there's nothing offending in it.
However, Bridging-Header.h previously contained:
   #import "SwiftAPI.h"
And SwiftAPI.h contains:
    void hello_c(const char * name);
With a corresponding SwiftAPI.c:
    #include "SwiftAPI.h"
    #include <stdio.h>
    void hello_c(const char * name) {
        printf("Hello %s in C\n", name);
    }

Is there a better way to do this?
Is there a way to get more detailed error messages?
Thanks a lot!

With same SwiftAPI.h and SwiftAPI.c of yours,
$ cat SwiftTest.swift
hello_c("World")

$ gcc -c -o SwiftAPI.o SwiftAPI.c

$ swiftc -import-objc-header SwiftAPI.h SwiftTest.swift SwiftAPI.o -o SwiftTest.exe

$ ./SwiftTest
Hello World in C

Bridging-Header.h is not used.

Thanks for the quick reply, however it did not work for me.  Is there a compiler or library or something (clang.exe?) that swiftc is relying on?
As per the instructions in README.txt, I'm launching from the VS2015 x64 Native Tools Command Promt (but I also tried this in MSYS with MinGW\bin in the path, with the same results):
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>cd c:\SwiftAPI

c:\SwiftAPI>path=%path%;c:\MinGW\bin

c:\SwiftAPI>type SwiftAPI.h
    void hello_c(const char * name);

c:\SwiftAPI>type SwiftAPI.c
#include "SwiftAPI.h"
#include <stdio.h>
void hello_c(const char * name) {
    printf("Hello %s in C\n", name);
}

c:\SwiftAPI>type SwiftTest.swift
hello_c("World")

c:\SwiftAPI>gcc -c -o SwiftAPI.o SwiftAPI.c

c:\SwiftAPI>swiftc -import-objc-header SwiftAPI.h SwiftTest.swift SwiftAPI.o -o SwiftTest.exe
<unknown>:0: error: failed to import bridging header 'SwiftAPI.h'

Thanks a lot.  That worked!


tracking pose doesnt work

tracking pose work only on 1 controller , controller 2 doesnt work .

My bad , just recalibrate controller.


[BUG] Compile errors on iteration in 3.0a6 that didn't exist on 0.29

Describe the bug
On PyArrow we are seeing compile errors in for loops when using Cython master checkout.
See https://issues.apache.org/jira/browse/ARROW-12825
Those seem to be related to Cython using a wrong type for the indexing variable
Error compiling Cython file:
------------------------------------------------------------
...
    def column_types(self):
        """
        Explicitly map column names to column types.
        """
        d = {frombytes(item.first): pyarrow_wrap_data_type(item.second)
             for item in self.options.column_types}
                        ^
------------------------------------------------------------

pyarrow/_csv.pyx:491:25: Cannot assign type 'pair[string,shared_ptr[CDataType]]' to 'shared_ptr[CDataType]'

self.options.column_types is a unordered_map[c_string, shared_ptr[CDataType]] column_types
The issue can be worked around by explicitly declaring the types that were previously implicit ( https://github.com/apache/arrow/pull/10352/files ) but shouldn't previous code continue to work?
To Reproduce
Try to compile https://github.com/apache/arrow/python with a master checkout of Cython
Expected behavior
A clear and concise description of what you expected to happen.
Environment (please complete the following information):

OS: Linux and OSX
Python version 3.9.4 and 3.9.5
Cython version 3.0a6

The issue seems to have been introduced in 415c049611f118e2ecdd31ee1210d230e823f83e
Simpler test-code:
# distutils: language=c++

from libcpp.unordered_map cimport unordered_map
from libcpp.string cimport string

cdef f(unordered_map[string, double] m):
    return { (x.first, x.second) for x in m }

Seems that there was a reason for the self.mark_assignment(target, node.item) after all. :)

shouldn't previous code continue to work?

Yes. This is a regression. Thanks for the report.

IndexNode isn't always the right class to delegate the type inference to. If the object supports iteration, then we need to ask the iterator for its item type, not any artificially constructed index access.

NextNode(IterationNode) should be capable of doing the necessary type inference. Since we're dealing with a for-loop anyway, we should just leave it to that.

self.mark_assignment(target, node.item) would delegate the inference to the NextNode, which should then know how to handle this. However, it seems that it does not specialise the template parameters of the item type yet, so maybe the CppIteratorNode needs its own infer_types() implementation? Don't have the time to look into that right now.

I'll revert #4077 for now, until we have a proper fix.

Since #4077 is reverted now, I'll close this ticket.


sycl dbscan

We will continue the development in another PR: https://github.com/IntelPython/daal4py/pull/203


Error on Crashlytics

Fatal Exception: realm::LogicError: Wrong transactional state (no active transaction, wrong type of transaction, or transaction already in progress)

It's not possible for us to look into this unless, at the very least, you give us a stacktrace and the version of Realm that was being used.

Is it a realm crash or my code error?

Since it was an exception, not a Realm assertion failing (or worse), it is most likely an error in your code.

I think then i can close this issue as this occurs during beta testing of my app and not a single instance has been reported by crashlytics in the latest beta so might be fixed by some member of my team.
Thanks for your help.

Sounds good! If you run into this, or any other problem again, please do file more tickets against us.


(PUP-9192) Stop specifying file permissions for CA files

The CA settings in Puppet's settings definitions are now only used by
Puppetserver. Puppetserver does not respect the owner, group, or mode
metadata for file settings, but custom Puppet applications using these
settings could, so this commit removes that information from
the CA settings to avoid accidentally changing the perms from what
Puppetserver sets.

CLA signed by all contributors.

Is there a possibility puppetserver is relying on puppet to set the CA private key permissions (which we'd now be skipping)?

jenkins please test this

No, we do all that explicitly.
puppetserver-ca: https://github.com/puppetlabs/puppetserver-ca-cli/blob/master/lib/puppetserver/ca/action/setup.rb#L136-L138
puppetserver: https://github.com/puppetlabs/puppetserver/blob/master/src/clj/puppetlabs/puppetserver/certificate_authority.clj#L236-L242 + https://github.com/puppetlabs/puppetserver/blob/master/src/clj/puppetlabs/puppetserver/certificate_authority.clj#L600-L601 for CA and https://github.com/puppetlabs/puppetserver/blob/master/src/clj/puppetlabs/puppetserver/certificate_authority.clj#L755-L757 for master cert.


Treat undefined like null when setting html/text.

Fixes #405.
I've updated the tests but I'm waiting for tmpvar/jsdom#373 to be merged before they actually work properly.

Hooray, thanks for doing this!
I think it would be ever so slightly shorter if you checked for v == null rather than typeof v == "undefined", and then you could map both null and undefined to the empty string, rather than null. Sound good?

Hehe, I knew you would come up with something. :)
Updated, and as a side-effect of using "", the html test now passes in JSDOM (but the text one still needs my fix).

This fails locally. I'm assuming that's because it depends on a version of jsdom that hasn't been released yet? I wonder if we can patch this…

Yep, I'm waiting for tmpvar/jsdom#373 to be merged.  Without the patch, jsdom seems to perform a naive if (txt) test before updating textContent so I'm not sure there's any way to work around it.


Long label name issue

I am facing an issue for the labels which has big names i.e the label doen't fit into the ap-nav frame and it splits into two rows.
for eg:  'Centrifugal Compressor Opt' is the name of one of my app and in app-nav it splits into 'Centrifugal Compressor' as one row and 'Opt' in another row. Due to this there is issue in the sub-items for it.
Issue is clearly mentioned and explained in the docx.
By seeing the document you would be able to understand  properly.
px-app-nav issue.docx

This issue is for an outdated version of px-app-nav (v1.x). The new version (v2.x+) has a revamped API and attempts to truncate overly long nav items. Please upgrade to get this new functionality.


[MLIR] Add support for differentiating scalars with the backprop op

Description of the Change: Modify the verifier and lowering of the backprop op to support differentiation of scalars. This also adds some documentation that addresses comments on #158.
Benefits: Greater flexibility and generality of the backprop op.
[sc-42844]

Thanks!

Does this PR re-add all tests that were removed in the base? Does it add any new tests? (just so I can check them)

I'm pretty sure it does but I can double check.


Fixed hamburger menu in component category pages

Fixes Issue🛠
Closes #592
Description👨💻
The hamburger menu was not working on the component category page, after adding js files to the page it was working fine. The margin between contact and contributors page fixed
Type of change📄

[x] Bug fix (non-breaking change which fixes an issue)

How this has been tested✅
The changes has been through tested by visiting one by one and using Chrome Developer tools
Checklist✅

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have added demonstration in the form of GIF/video file
[x] I am an Open Source Contributor

Screenshots/GIF📷

Hi, @Rakesh9100, Can you please look into this and merge it

Merged 🎉 @pb0126


Bird and bgpd port conflict

if bgpd bound to port 179 during startup, bird will fail to start
Expected Behavior

bgpd should not pick up port 179

bgpd should not pick a port similar to other processes especially bird or vice versa
Current Behavior

During installation, I noticed the node status to "Error: No listening socket"
+---------------+-------------------+-------+----------+----------------------------+
| PEER ADDRESS  |     PEER TYPE     | STATE |  SINCE   |            INFO            |
+---------------+-------------------+-------+----------+----------------------------+
| <IP_ADDRESS> | node-to-node mesh | down  | 06:44:51 | Error: No listening socket |
| <IP_ADDRESS> | node-to-node mesh | down  | 06:44:51 | Error: No listening socket |
| <IP_ADDRESS> | node-to-node mesh | down  | 06:44:51 | Error: No listening socket |
+---------------+-------------------+-------+----------+----------------------------+

# netstat -nutap | grep 179
tcp        0      0 <IP_ADDRESS>:179             <IP_ADDRESS>:*               LISTEN      1522/bgpd

Possible Solution

Workaround if happened, make bird listen to other port
apiVersion: projectcalico.org/v3
kind: BGPConfiguration
metadata:
  name: default
spec:
  listenPort: 178

Steps to Reproduce (for bugs)

Calico installation
Context

Your Environment

Calico version 3.26(latest)
Orchestrator version (e.g. kubernetes, mesos, rkt): kubernetes
Operating System and version: FCOS38
Link to your project (optional):

This is working as expected - BIRD is a BGP daemon and so defaults to the default BGP port.
As you discovered, there is a configuration option to change this if you need.
https://docs.tigera.io/calico/latest/reference/resources/bgpconfig


[Improvement]: Show the generated native executable path after native image generation

Description
$subject
    user/claim_mgt:0.1.0

Generating executable with Native image
    target/bin/claim_mgt.jar
================================================================================
GraalVM Native Image: Generating 'claim_mgt' (executable)...
================================================================================
[1/7] Initializing...                                            (7.2s @ 0.30GB)
 Version info: 'GraalVM 22.3.0 Java 11 CE'
 Java version info: '11.0.17+8-jvmci-22.3-b08'
 C compiler: gcc (linux, x86_64, 9.4.0)
 Garbage collector: Serial GC
 1 user-specific feature(s)
 - com.oracle.svm.thirdparty.gson.GsonFeature
.
.
.
Produced artifacts:
 /home/user/test/releaseTest/update-3-2/claim_mgt/target/bin/claim_mgt (executable)
 /home/user/test/releaseTest/update-3-2/claim_mgt/target/bin/claim_mgt.build_artifacts.txt (txt)
================================================================================
Finished generating 'claim_mgt' in 2m 24s.

instead of above one , show something like below one
    user/claim_mgt:0.1.0

Generating executable with Native image
    target/bin/claim_mgt.jar
================================================================================
GraalVM Native Image: Generating 'claim_mgt' (executable)...
================================================================================
[1/7] Initializing...                                            (7.2s @ 0.30GB)
 Version info: 'GraalVM 22.3.0 Java 11 CE'
 Java version info: '11.0.17+8-jvmci-22.3-b08'
 C compiler: gcc (linux, x86_64, 9.4.0)
 Garbage collector: Serial GC
 1 user-specific feature(s)
 - com.oracle.svm.thirdparty.gson.GsonFeature
.
.
.
Produced artifacts:
 /home/user/test/releaseTest/update-3-2/claim_mgt/target/bin/claim_mgt (executable)
 /home/user/test/releaseTest/update-3-2/claim_mgt/target/bin/claim_mgt.build_artifacts.txt (txt)
================================================================================
Finished generating 'claim_mgt' in 2m 24s.
Generated executable
        /target/bin/claim_mgt

Ballerina 2201.3.0-SNAPSHOT
Describe your problem(s)
No response
Describe your solution(s)
No response
Related area
-> Other Area
Related issue(s) (optional)
No response
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response

We can remove the following part from the output since the graalvm output is descriptive enough:
Generating executable with Native image
    target/bin/claim_mgt.jar

The expected output would be something similar to the following log:
Compiling source
    user/claim_mgt:0.1.0

================================================================================
GraalVM Native Image: Generating 'claim_mgt' (executable)...
================================================================================
[1/7] Initializing...                                            (7.2s @ 0.30GB)
 Version info: 'GraalVM 22.3.0 Java 11 CE'
 Java version info: '11.0.17+8-jvmci-22.3-b08'
 C compiler: gcc (linux, x86_64, 9.4.0)
 Garbage collector: Serial GC
 1 user-specific feature(s)
 - com.oracle.svm.thirdparty.gson.GsonFeature
.
.
.
Produced artifacts:
 /home/user/test/releaseTest/update-3-2/claim_mgt/target/bin/claim_mgt (executable)
 /home/user/test/releaseTest/update-3-2/claim_mgt/target/bin/claim_mgt.build_artifacts.txt (txt)
================================================================================
Finished generating 'claim_mgt' in 2m 24s.


[FEA] Unify the some functions for avro reader

This is a follow up to https://github.com/NVIDIA/spark-rapids/pull/4956
PR 4956 copied some functions from parquet reader, like populateCurrentBlockChunk/copyDataRange, we need to unify them.

close it, since the issue is not existing in avro


[SSH deploy] Run ssh/scp in non interactive mode, and suppress banner display.

Fixes https://github.com/godotengine/godot/issues/72081
Fixes https://github.com/godotengine/godot/issues/72163

Thanks!


About FSL baseline

Would you please share your code about FSL baseline?

Yes, we plan to open source our FSL code soon. Thank you!


RoutemasterDelegate routesBuilder rebuilding

if you add a print inside routesBuilder you can see that it prints twice thus rebuilding navigation can we fix this in order to make it build only once.

Hi, thanks for the issue, how big a problem is this please?
Is it causing a functionality issue or is it a performance concern?

This problem affects performance and stability. it is also obliging me to add a boolean when I access the first page so that I do not target events multiple times. The idea is that you are using change notifier for the routes delegate try to add a new initial builder function for example where you remove notify listeners. This would do the trick as It would be used only for the initial call and then you would use the normal builder later on which would notify the changes in routes.

Could you post an example of the code that's causing this issue please?
Is it just on app start-up that routesBuilder is being called twice?
In general you shouldn't rely on routesBuilder only being called once, due to the design of Routemaster allowing routes to be swapped at runtime.
You can assign the routing map to a variable and return it, so you're not rebuilding it every time.

let's schedule a meeting if possible so that I can show you what I mean it would be easier

Hello, sorry, I'd much prefer a simple repro of the problem if you can. I don't really have time for meetings to support Routemaster currently.

I can't do anything more with this without reproduction code. Closing for now, please provide a repro and I'll be happy to reopen.


docs: (moesif) Add Plugin Documentation

Add Plugin Documentation for Moesif

NOTE: Please read the CONTRIBUTING.md guidelines before submitting your patch,
and ensure you followed them all:
https://github.com/Kong/docs.konghq.com/blob/master/CONTRIBUTING.md
Summary
SUMMARY_GOES_HERE
Full changelog

[Edited docs to ...]
[Added cool new feature ...]
...

Issues resolved
Fix #XXX

Checklist:

[X ] Commit message & atomicity checked
[X ] Documentation
[X ] Spellchecked my updates
[X ] Ready to be merged

Hello @dgilling
Thank you for your contribution!
We are not currently accepting additions of 3rd-party plugins into this repository.
Instead, we recommend that you distribute your plugin (most likely on GitHub and LuaRocks), as explained in the Plugins Development Guide https://docs.konghq.com/latest/plugin-development/distribution/#distributing-your-plugin .
Once done, we also encourage you to announce your plugin on Kong Nation https://discuss.konghq.com/c/announcements
In the future, we do have bigger plans for the distribution, promotion, and installation of community plugins, stay tuned.

@dgilling I'd love to chat with you privately about the "bigger plans" I mentioned above - please contact me at<EMAIL_ADDRESS>- thanks in advance!


Create type stubs for ldr_tools_py

Self-explanatory.
I don't know what's going on with the imports - this was the only approach I could find that satisfied mypy while also actually working at runtime, other than putting the .pyi file in ldr_tools_blender, contrary to PyO3's recommendations.
There's probably a better way, and I wouldn't be surprised if it involves bundling the compiled library in a slightly different fashion.

I would rather have the type annotations use the correct type (numpy.ndarray) for fields even if Blender's type annotations don't accept it. The import workaround makes sense for now since the ldr_tools_py module is only included as part of the build process. I normally wrap enum variants in ClassVar[], but that doesn't seem to make any practical difference at least with VSCode's Python plugin.

I would rather have the type annotations use the correct type

Huh, it looks like the ndarray issue even goes away on its own with Python 3.12. That's nice. I check my types with a direct CLI invocation of mypy, so I was trying to get the number of errors as low as I can. (I have some stashed changes that get it down to zero with some conditional stuff for the operator properties).

I normally wrap enum variants in ClassVar[], but that doesn't seem to make any practical difference at least with VSCode's Python plugin.

That seems like a sensible thing to do - I just wasn't aware of it. It looks like ClassVar only prevents instance-level writes to the attribute. Final prevents all writes and nothing seems to prevent instance-level reads. The two wrappers are incompatible for some reason, so I'm leaning towards adding Final. (This is also advised by PEP-591.)

Huh, it looks like the ndarray issue even goes away on its own with Python 3.12.

I expect Blender's Python version to be on Python 3.11 for a while. This PR is still a nice improvement.


Make it possible to treat non options as unknown arguments

/assign @cofyc

can you describe your use case?

Projects without non Option arguments:
APP.exe -a 123 -b 345 invalidStuff
Or just app.exe invalid stuff
Does currently not print help


Smarter, lazier, and more complete page default/api for express

This PR currently just introduces a TopLevelRecallContextManager(), which inspects it's args to determine a smarter page (i.e., page_sidebar()/page_navbar()/something else) based on the presence of top-level layout.sidebar()/layout.nav()/other components.

As result, this PR makes multi-page apps (with/without a sidebar) possible. It also closes https://github.com/posit-dev/py-shiny/issues/841.

This new approach isn't compatible with the more immediate/imperative layout.set_page(layout.page_*()) API, so I'm removing it for now. This does bring up, however, more questions as to how to the page API (https://github.com/posit-dev/py-shiny/issues/866) should look. Originally I was thinking .set_page_*() + .set_title() would be sensible, but on second thought, a set_page_preferences() is probably more ideal. There you could not only control page kwargs (e.g., title, lang, etc), but also parameters related to default page container decision (e.g., fillable, wider (i.e., page_fluid() vs page_fixed()), etc))
Also note that, we still currently have the issue of layout.sidebar() in a non-top-level context.  I think, ideally, a non-top-level RecallContextManager could handle this by doing essentially the same as TopLevelRecallContextManager (i.e., wrapping any Sidebar(s) into a layout_sidebar())

Things the user needs to control:

Title
Fillable
Width
(Maybe) If inference is wrong, explicit way of setting page function

Possible interface for this:

set_page_xxx
set_title, set_fillable, set_width
set_page_preferences(*, title, fillable, width, **kwargs)

I've added the following functions:
set_page_title()
set_page_lang()

# The two below affect heuristics for which page function is used.
set_page_fillable()
set_page_wider()

If the user wants to explicitly choose which page function is used, there are the following:
use_page_fixed()
use_page_fluid()
use_page_fillable()
use_page_sidebar()
use_page_navbar()

All of these functions live in express._page, but I haven't imported them into express.layout, because that will introduce merge conflicts with #904. I think we should merge these two PRs and then export the functions here from express.ui.

From a conversation with @cpsievert, @gadenbuie, @jcheng5:
Things we can do now:

Add page_opts() function. Make all args keyword only (first arg is *).

Make page_auto() the default page. Also add that function to core UI.

Add set_page_fn()
layout.set_page_fn(
    lambda *args: ui.page_navbar(*args, ...)
)

# or

def my_page_fn(*args):
    return ui.page_navbar(*args, ...)

layout.set_page_fn(my_page_fn)

Things we can do possibly in the future:

Maybe add page_opts(mode = "navbar", ...) or page_opts_navbar(...)
Allow passing *kwargs to page_opts()? How to distinguish between HTML attributes and proper args?

I've retargeted this PR against express-layout-to-ui (#904) to make the changes make more sense.
I implemented the changes as described in the previous comment:

Add page_opts() function. Make all args keyword only (first arg is *).

Make page_auto() the default page. Also add that function to core UI.

However, for the third item, I made a change. Instead of adding a function set_page_fn(), I added a page_fn parameter to page_opts(). It would be used like this:
page_opts(page_fn=shiny.ui.page_fillable)

I did this because the parameters to page_opts() basically map to page_auto() parameters, and page_auto() already accepts _page_fn.


improve maps

many problems with current maps, think of solution. leaflet replacement is an option

@miguelcobain has an ember-cli / es6 branch of ember-leaflet in the works: https://github.com/gabesmed/ember-leaflet/tree/ember-cli-es6

i like leaflet a lot and have been thinking about it. What improvement are you suggesting exactly

It's currently very usable. Hope to land it on master soon.

@miguelcobain Yup, using it now, it's very nice.

I've been using the how-to-sane as a base to test some ideas for projects I'm working on, so my map-related functionality needs probably diverge from what's needed for how-to-sane (I'm plotting user posts and other things on a map with overlays, custom tiles, etc.).
I started with ember-google-maps, which is great, but missing custom overlays (which are less intuitive in Google maps in general anyhow), so switched to leaflet when I found @miguelcobain 's branch.  Leaflet is in general better for customizing things, so it fits my needs.
Also, @mgenev , thanks for this repo, it's been an amazing tool for me to learn / get better at both Ember and Sails.  I should hopefully be able to contribute sometime soon.


New version: NordPassTeam.NordPass version 4.24.21

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[ ] Have you tested your manifest locally with winget install --manifest <path>?
[X] Does your manifest conform to the 1.1 schema?

Resolves #63063

Microsoft Reviewers: Open in CodeFlow

@wingetbot run


Downgrade saving Java test report step to gret rid of sporadic network failures

…k failures.

v3 uses different links and they work stable with your setup.


Stuck in loop with installing txtai[pipeline]

It fails installing the fasttext, i tried every way to make it pass but no, install pyproject.toml doesnt work, fasttext-wheel doesnt work either, tried older versions but im literally new on this debugging installation i have no idea and im lost.
Anyway to install this? :(
Im using venv

pip install txtai[pipeline]
Requirement already satisfied: txtai[pipeline] in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (6.1.0)
Requirement already satisfied: faiss-cpu>=1.7.1.post2 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (1.7.4)
Requirement already satisfied: torch>=1.12.1 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (2.1.0)
Requirement already satisfied: transformers>=4.22.0 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (4.34.0)
Requirement already satisfied: huggingface-hub>=0.9.0 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (0.17.3)
Requirement already satisfied: numpy>=1.18.4 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (1.26.0)
Requirement already satisfied: pyyaml>=5.3 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (6.0.1)
Requirement already satisfied: regex>=2022.8.17 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (2023.10.3)
Collecting onnx>=1.11.0 (from txtai[pipeline])
Obtaining dependency information for onnx>=1.11.0 from https://files.pythonhosted.org/packages/00/36/e7a7e7a85564e7d409e4e8addfa11d41015d2190bfff30064771e7c21ca0/onnx-1.14.1-cp310-cp310-win_amd64.whl.metadata
Using cached onnx-1.14.1-cp310-cp310-win_amd64.whl.metadata (15 kB)
Collecting onnxruntime>=1.11.0 (from txtai[pipeline])
Obtaining dependency information for onnxruntime>=1.11.0 from https://files.pythonhosted.org/packages/e6/b5/34dee2624c30325377271d0f3d18dbb54f1d413f7af1d505a5b5ddb4ae5e/onnxruntime-1.16.0-cp310-cp310-win_amd64.whl.metadata
Using cached onnxruntime-1.16.0-cp310-cp310-win_amd64.whl.metadata (4.2 kB)
Collecting soundfile>=0.10.3.post1 (from txtai[pipeline])
Using cached soundfile-0.12.1-py2.py3-none-win_amd64.whl (1.0 MB)
Collecting scipy>=1.4.1 (from txtai[pipeline])
Obtaining dependency information for scipy>=1.4.1 from https://files.pythonhosted.org/packages/3a/98/3041681b3a0fef0f59033861a05d846aa1d284b07b531ce35b1b97cc2e93/scipy-1.11.3-cp310-cp310-win_amd64.whl.metadata
Using cached scipy-1.11.3-cp310-cp310-win_amd64.whl.metadata (60 kB)
Collecting ttstokenizer>=1.0.0 (from txtai[pipeline])
Using cached ttstokenizer-1.0.0-py3-none-any.whl (3.1 MB)
Requirement already satisfied: beautifulsoup4>=4.9.3 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (4.12.2)
Requirement already satisfied: nltk>=3.5 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from txtai[pipeline]) (3.8.1)
Collecting pandas>=1.1.0 (from txtai[pipeline])
Obtaining dependency information for pandas>=1.1.0 from https://files.pythonhosted.org/packages/ce/cd/a7c2cbffe2afff975349e60b14b63a448162145a7acac8ba12ddc2ed78a8/pandas-2.1.1-cp310-cp310-win_amd64.whl.metadata
Using cached pandas-2.1.1-cp310-cp310-win_amd64.whl.metadata (18 kB)
Collecting tika>=1.24 (from txtai[pipeline])
Using cached tika-2.6.0-py3-none-any.whl
Collecting imagehash>=4.2.1 (from txtai[pipeline])
Using cached ImageHash-4.3.1-py2.py3-none-any.whl (296 kB)
Collecting pillow>=7.1.2 (from txtai[pipeline])
Obtaining dependency information for pillow>=7.1.2 from https://files.pythonhosted.org/packages/23/ca/7296d769f62266c0f94bf76496bc77114e7a96d2de3d7bcba91d0ba2856f/Pillow-10.0.1-cp310-cp310-win_amd64.whl.metadata
Using cached Pillow-10.0.1-cp310-cp310-win_amd64.whl.metadata (9.6 kB)
Collecting timm>=0.4.12 (from txtai[pipeline])
Obtaining dependency information for timm>=0.4.12 from https://files.pythonhosted.org/packages/7a/bd/2c56be7a3b5bc71cf85a405246b89d5359f942c9f7fb6db6306d9d056092/timm-0.9.7-py3-none-any.whl.metadata
Using cached timm-0.9.7-py3-none-any.whl.metadata (58 kB)
Collecting fasttext>=0.9.2 (from txtai[pipeline])
Using cached fasttext-0.9.2.tar.gz (68 kB)
Preparing metadata (setup.py) ... done
Collecting sentencepiece>=0.1.91 (from txtai[pipeline])
Using cached sentencepiece-0.1.99-cp310-cp310-win_amd64.whl (977 kB)
Collecting accelerate>=0.19.0 (from txtai[pipeline])
Obtaining dependency information for accelerate>=0.19.0 from https://files.pythonhosted.org/packages/d9/92/2d3aecf9f4a192968035880be3e2fc8b48d541c7128f7c936f430d6f96da/accelerate-0.23.0-py3-none-any.whl.metadata
Using cached accelerate-0.23.0-py3-none-any.whl.metadata (18 kB)
Collecting onnxmltools>=1.9.1 (from txtai[pipeline])
Using cached onnxmltools-1.11.2-py2.py3-none-any.whl (322 kB)
Requirement already satisfied: packaging>=20.0 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from accelerate>=0.19.0->txtai[pipeline]) (23.2)
Collecting psutil (from accelerate>=0.19.0->txtai[pipeline])
Using cached psutil-5.9.5-cp36-abi3-win_amd64.whl (255 kB)
Requirement already satisfied: soupsieve>1.2 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from beautifulsoup4>=4.9.3->txtai[pipeline]) (2.5)
Requirement already satisfied: pybind11>=2.2 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from fasttext>=0.9.2->txtai[pipeline]) (2.11.1)
Requirement already satisfied: setuptools>=0.7.0 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from fasttext>=0.9.2->txtai[pipeline]) (65.5.0)
Requirement already satisfied: filelock in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from huggingface-hub>=0.9.0->txtai[pipeline]) (3.12.4)
Requirement already satisfied: fsspec in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from huggingface-hub>=0.9.0->txtai[pipeline]) (2023.9.2)
Requirement already satisfied: requests in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from huggingface-hub>=0.9.0->txtai[pipeline]) (2.31.0)
Requirement already satisfied: tqdm>=4.42.1 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from huggingface-hub>=0.9.0->txtai[pipeline]) (4.66.1)
Requirement already satisfied: typing-extensions>=<IP_ADDRESS> in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from huggingface-hub>=0.9.0->txtai[pipeline]) (4.8.0)
Collecting PyWavelets (from imagehash>=4.2.1->txtai[pipeline])
Using cached PyWavelets-1.4.1-cp310-cp310-win_amd64.whl (4.2 MB)
Requirement already satisfied: click in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from nltk>=3.5->txtai[pipeline]) (8.1.7)
Requirement already satisfied: joblib in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from nltk>=3.5->txtai[pipeline]) (1.3.2)
Collecting protobuf>=3.20.2 (from onnx>=1.11.0->txtai[pipeline])
Obtaining dependency information for protobuf>=3.20.2 from https://files.pythonhosted.org/packages/c2/59/f89c04923d68595d359f4cd7adbbdf5e5d791257945f8873d88b2fd1f979/protobuf-4.24.4-cp310-abi3-win_amd64.whl.metadata
Using cached protobuf-4.24.4-cp310-abi3-win_amd64.whl.metadata (540 bytes)
Collecting skl2onnx (from onnxmltools>=1.9.1->txtai[pipeline])
Obtaining dependency information for skl2onnx from https://files.pythonhosted.org/packages/c0/d1/ef96f715f14ab4a11a4382e3eb9fc7a57ee59e3527253a7b21d62ca20402/skl2onnx-1.15.0-py2.py3-none-any.whl.metadata
Using cached skl2onnx-1.15.0-py2.py3-none-any.whl.metadata (2.3 kB)
Collecting coloredlogs (from onnxruntime>=1.11.0->txtai[pipeline])
Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
Collecting flatbuffers (from onnxruntime>=1.11.0->txtai[pipeline])
Obtaining dependency information for flatbuffers from https://files.pythonhosted.org/packages/6f/12/d5c79ee252793ffe845d58a913197bfa02ae9a0b5c9bc3dc4b58d477b9e7/flatbuffers-23.5.26-py2.py3-none-any.whl.metadata
Using cached flatbuffers-23.5.26-py2.py3-none-any.whl.metadata (850 bytes)
Requirement already satisfied: sympy in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from onnxruntime>=1.11.0->txtai[pipeline]) (1.12)
Collecting python-dateutil>=2.8.2 (from pandas>=1.1.0->txtai[pipeline])
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting pytz>=2020.1 (from pandas>=1.1.0->txtai[pipeline])
Obtaining dependency information for pytz>=2020.1 from https://files.pythonhosted.org/packages/32/4d/aaf7eff5deb402fd9a24a1449a8119f00d74ae9c2efa79f8ef9994261fc2/pytz-2023.3.post1-py2.py3-none-any.whl.metadata
Using cached pytz-2023.3.post1-py2.py3-none-any.whl.metadata (22 kB)
Collecting tzdata>=2022.1 (from pandas>=1.1.0->txtai[pipeline])
Using cached tzdata-2023.3-py2.py3-none-any.whl (341 kB)
Collecting cffi>=1.0 (from soundfile>=0.10.3.post1->txtai[pipeline])
Obtaining dependency information for cffi>=1.0 from https://files.pythonhosted.org/packages/be/3e/0b197d1bfbf386a90786b251dbf2634a15f2ea3d4e4070e99c7d1c7689cf/cffi-1.16.0-cp310-cp310-win_amd64.whl.metadata
Using cached cffi-1.16.0-cp310-cp310-win_amd64.whl.metadata (1.5 kB)
Collecting torchvision (from timm>=0.4.12->txtai[pipeline])
Obtaining dependency information for torchvision from https://files.pythonhosted.org/packages/59/af/426c2b90f5c4f8aba778746465af9e662680570e950e02379e91c6138285/torchvision-0.16.0-cp310-cp310-win_amd64.whl.metadata
Using cached torchvision-0.16.0-cp310-cp310-win_amd64.whl.metadata (6.6 kB)
Requirement already satisfied: safetensors in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from timm>=0.4.12->txtai[pipeline]) (0.4.0)
Requirement already satisfied: networkx in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from torch>=1.12.1->txtai[pipeline]) (3.1)
Requirement already satisfied: jinja2 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from torch>=1.12.1->txtai[pipeline]) (3.1.2)
Requirement already satisfied: tokenizers<0.15,>=0.14 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from transformers>=4.22.0->txtai[pipeline]) (0.14.1)
Collecting anyascii>=0.3.1 (from ttstokenizer>=1.0.0->txtai[pipeline])
Using cached anyascii-0.3.2-py3-none-any.whl (289 kB)
Collecting inflect>=0.3.1 (from ttstokenizer>=1.0.0->txtai[pipeline])
Obtaining dependency information for inflect>=0.3.1 from https://files.pythonhosted.org/packages/fb/c6/d9feb758be584f729424390af24687d3a4363d968164f94079f83cd536b4/inflect-7.0.0-py3-none-any.whl.metadata
Using cached inflect-7.0.0-py3-none-any.whl.metadata (21 kB)
Collecting pycparser (from cffi>=1.0->soundfile>=0.10.3.post1->txtai[pipeline])
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Requirement already satisfied: pydantic>=1.9.1 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from inflect>=0.3.1->ttstokenizer>=1.0.0->txtai[pipeline]) (2.4.2)
Requirement already satisfied: six>=1.5 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from python-dateutil>=2.8.2->pandas>=1.1.0->txtai[pipeline]) (1.16.0)
Requirement already satisfied: colorama in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from tqdm>=4.42.1->huggingface-hub>=0.9.0->txtai[pipeline]) (0.4.6)
Collecting humanfriendly>=9.1 (from coloredlogs->onnxruntime>=1.11.0->txtai[pipeline])
Using cached humanfriendly-10.0-py2.py3-none-any.whl (86 kB)
Requirement already satisfied: MarkupSafe>=2.0 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from jinja2->torch>=1.12.1->txtai[pipeline]) (2.1.3)
Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from requests->huggingface-hub>=0.9.0->txtai[pipeline]) (3.3.0)
Requirement already satisfied: idna<4,>=2.5 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from requests->huggingface-hub>=0.9.0->txtai[pipeline]) (3.4)
Requirement already satisfied: urllib3<3,>=1.21.1 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from requests->huggingface-hub>=0.9.0->txtai[pipeline]) (2.0.6)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from requests->huggingface-hub>=0.9.0->txtai[pipeline]) (2023.7.22)
Collecting scikit-learn>=0.19 (from skl2onnx->onnxmltools>=1.9.1->txtai[pipeline])
Obtaining dependency information for scikit-learn>=0.19 from https://files.pythonhosted.org/packages/59/ed/548f6f686845d386a727a51a3daa411d95fc599649a2d54705f6773ac259/scikit_learn-1.3.1-cp310-cp310-win_amd64.whl.metadata
Using cached scikit_learn-1.3.1-cp310-cp310-win_amd64.whl.metadata (11 kB)
Collecting onnxconverter-common>=1.7.0 (from skl2onnx->onnxmltools>=1.9.1->txtai[pipeline])
Obtaining dependency information for onnxconverter-common>=1.7.0 from https://files.pythonhosted.org/packages/6d/6a/9ed9fd4da34cb41fda35bc5cc9e990c605689db7de63ed84fedbca5a77f6/onnxconverter_common-1.14.0-py2.py3-none-any.whl.metadata
Using cached onnxconverter_common-1.14.0-py2.py3-none-any.whl.metadata (4.2 kB)
Requirement already satisfied: mpmath>=0.19 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from sympy->onnxruntime>=1.11.0->txtai[pipeline]) (1.3.0)
Collecting pyreadline3 (from humanfriendly>=9.1->coloredlogs->onnxruntime>=1.11.0->txtai[pipeline])
Using cached pyreadline3-3.4.1-py3-none-any.whl (95 kB)
Collecting protobuf>=3.20.2 (from onnx>=1.11.0->txtai[pipeline])
Using cached protobuf-3.20.2-cp310-cp310-win_amd64.whl (904 kB)
Requirement already satisfied: annotated-types>=0.4.0 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from pydantic>=1.9.1->inflect>=0.3.1->ttstokenizer>=1.0.0->txtai[pipeline]) (0.5.0)
Requirement already satisfied: pydantic-core==2.10.1 in c:\users\administrator\desktop\noiraaidcbot.venv\lib\site-packages (from pydantic>=1.9.1->inflect>=0.3.1->ttstokenizer>=1.0.0->txtai[pipeline]) (2.10.1)
Collecting threadpoolctl>=2.0.0 (from scikit-learn>=0.19->skl2onnx->onnxmltools>=1.9.1->txtai[pipeline])
Obtaining dependency information for threadpoolctl>=2.0.0 from https://files.pythonhosted.org/packages/81/12/fd4dea011af9d69e1cad05c75f3f7202cdcbeac9b712eea58ca779a72865/threadpoolctl-3.2.0-py3-none-any.whl.metadata
Using cached threadpoolctl-3.2.0-py3-none-any.whl.metadata (10.0 kB)
Using cached accelerate-0.23.0-py3-none-any.whl (258 kB)
Using cached onnx-1.14.1-cp310-cp310-win_amd64.whl (13.3 MB)
Using cached onnxruntime-1.16.0-cp310-cp310-win_amd64.whl (7.2 MB)
Using cached pandas-2.1.1-cp310-cp310-win_amd64.whl (10.7 MB)
Using cached Pillow-10.0.1-cp310-cp310-win_amd64.whl (2.5 MB)
Using cached scipy-1.11.3-cp310-cp310-win_amd64.whl (44.1 MB)
Using cached timm-0.9.7-py3-none-any.whl (2.2 MB)
Using cached cffi-1.16.0-cp310-cp310-win_amd64.whl (181 kB)
Using cached inflect-7.0.0-py3-none-any.whl (34 kB)
Using cached pytz-2023.3.post1-py2.py3-none-any.whl (502 kB)
Using cached flatbuffers-23.5.26-py2.py3-none-any.whl (26 kB)
Using cached skl2onnx-1.15.0-py2.py3-none-any.whl (294 kB)
Using cached torchvision-0.16.0-cp310-cp310-win_amd64.whl (1.3 MB)
Using cached onnxconverter_common-1.14.0-py2.py3-none-any.whl (84 kB)
Using cached scikit_learn-1.3.1-cp310-cp310-win_amd64.whl (9.3 MB)
Using cached threadpoolctl-3.2.0-py3-none-any.whl (15 kB)
Building wheels for collected packages: fasttext
Building wheel for fasttext (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [52 lines of output]
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\fasttext
copying python\fasttext_module\fasttext\FastText.py -> build\lib.win-amd64-cpython-310\fasttext
copying python\fasttext_module\fasttext_init_.py -> build\lib.win-amd64-cpython-310\fasttext
creating build\lib.win-amd64-cpython-310\fasttext\util
copying python\fasttext_module\fasttext\util\util.py -> build\lib.win-amd64-cpython-310\fasttext\util
copying python\fasttext_module\fasttext\util_init_.py -> build\lib.win-amd64-cpython-310\fasttext\util
creating build\lib.win-amd64-cpython-310\fasttext\tests
copying python\fasttext_module\fasttext\tests\test_configurations.py -> build\lib.win-amd64-cpython-310\fasttext\tests
copying python\fasttext_module\fasttext\tests\test_script.py -> build\lib.win-amd64-cpython-310\fasttext\tests
copying python\fasttext_module\fasttext\tests_init_.py -> build\lib.win-amd64-cpython-310\fasttext\tests
running build_ext
building 'fasttext_pybind' extension
creating build\temp.win-amd64-cpython-310
creating build\temp.win-amd64-cpython-310\Release
creating build\temp.win-amd64-cpython-310\Release\python
creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module
creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module\fasttext
creating build\temp.win-amd64-cpython-310\Release\python\fasttext_module\fasttext\pybind
creating build\temp.win-amd64-cpython-310\Release\src
"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include -Ic:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include -Isrc -Ic:\Users\Administrator\Desktop\NoiraAIDCbot.venv\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python310\include -IC:\Users\Administrator\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /EHsc /Tppython/fasttext_module/fasttext/pybind/fasttext_pybind.cc /Fobuild\temp.win-amd64-cpython-310\Release\python/fasttext_module/fasttext/pybind/fasttext_pybind.obj /EHsc /DVERSION_INFO=\"0.9.2\"
fasttext_pybind.cc
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2065: 'ssize_t': undeclared identifier
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: 'pybind11::init': no matching overloaded function found
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'CFunc', type expected
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include\pybind11\pybind11.h(1932): note: see declaration of 'pybind11::init'
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'Func', type expected
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include\pybind11\pybind11.h(1924): note: see declaration of 'pybind11::init'
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2974: 'pybind11::init': invalid template argument for 'Args', type expected
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include\pybind11\pybind11.h(1912): note: see declaration of 'pybind11::init'
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(171): error C2672: 'pybind11::class_fasttext::Vector::def': no matching overloaded function found
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(170): error C2780: 'pybind11::class_fasttext::Vector &pybind11::class_fasttext::Vector::def(const char *,Func &&,const Extra &...)': expects 3 arguments - 1 provided
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include\pybind11\pybind11.h(1574): note: see declaration of 'pybind11::class_fasttext::Vector::def'
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: 'ssize_t': undeclared identifier
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2065: 'ssize_t': undeclared identifier
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2672: 'pybind11::init': no matching overloaded function found
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'CFunc', type expected
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include\pybind11\pybind11.h(1932): note: see declaration of 'pybind11::init'
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'Func', type expected
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include\pybind11\pybind11.h(1924): note: see declaration of 'pybind11::init'
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2974: 'pybind11::init': invalid template argument for 'Args', type expected
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include\pybind11\pybind11.h(1912): note: see declaration of 'pybind11::init'
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(185): error C2672: 'pybind11::class_fasttext::DenseMatrix::def': no matching overloaded function found
python/fasttext_module/fasttext/pybind/fasttext_pybind.cc(182): error C2780: 'pybind11::class_fasttext::DenseMatrix &pybind11::class_fasttext::DenseMatrix::def(const char *,Func &&,const Extra &...)': expects 3 arguments - 1 provided
c:\Users\Administrator\Desktop\NoiraAIDCbot.venv\lib\site-packages\pybind11\include\pybind11\pybind11.h(1574): note: see declaration of 'pybind11::class_fasttext::DenseMatrix::def'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fasttext
Running setup.py clean for fasttext
Failed to build fasttext
ERROR: Could not build wheels for fasttext, which is required to install pyproject.toml-based projects

This issue https://github.com/facebookresearch/fastText/issues/1343 seems to confirm what you've done on Windows & Python 3.10+
You can try to install with Python 3.8/3.9 which doesn't appear to have this issue. I'd recommend commenting on the fastText project to see if they can push a fix to PyPI.
What is the reason you're installing the pipelines extra? What pipeline do you want to use?

Only reason I ask is that you don't need fasttext unless you plan to use the translation pipeline. So you might be OK with just a standard txtai install.


Homework 3

this pull request is just to check the sonal analysis and not the final PR

Metric
Value

alert_status
:white_check_mark: OK

bugs
2

code_smells
32

reliability_rating
C (at least 1 Major Bug)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0

Metric
Value

alert_status
:white_check_mark: OK

bugs
0

code_smells
22

reliability_rating
A (0 Bugs)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


Region Specific application json configs

The application json config should be region specific. You may want different settings in one region vs another

Feature has been implemented in  v3.35.0 and above.


The validate-checksum task fails with task v3.40.0 and higher.

The validate-checksum task fails with task v3.40.0 since v3.40.0 changes the behaviour of how undefined variables are treated in the ref attribute.
One potential fix is to use an empty list as the ref's default:
          EXCLUDE_PATHS:
            ref: "default (list) .EXCLUDE_PATHS"

Fixed by ad576e4.

Reported bug to task: https://github.com/go-task/task/issues/1911


Setting the desired device precision

The bit precision (or conductance levels) of memristive device does not seem to be configurable. It might be useful to have this feature at least for a conceptual device, if not feasible for device presets implemented through calibration. This feature is available in simulators such as MemTorch or NeuroSim.

Hi @SaBaKa2020 ,
Many thanks for the request! Could you maybe specify in more detail what you mean by specifying the conductance precision? Obviously, conductance is an analog quantity and it makes physical no sense to specify resolution for that directly.
For training, the way to specify the resolution implicitly is by setting the minimal width of the conductance response of a single pulse. This can be set with the parameter dw_min in most device models. Variations can be defined, too.
For inference only hardware designs, the programing noise will increase if devices are less precise, we offer a programming noise scale for that.
Some designs in the literature are using multiple devices with different significance to encode bits of a integer number, are you referring to this bit slicing method ?
Using multiple devices per cross point with different significances is also supported by using the VectorUnitCell.
So, it would be great if you could explain in more detail what you mean by precision of analog weights.

Thanks for the elaborate answer.
Maybe an example could help better clarify. Assume I would like the device to offer single bit precision (i.e. be programmed only in two states, for example high resistance and low resistance). How is it possible to configure this behavior in a device such as PCM which by nature offer around 50 reliable states? The reason I am interested in this kind of operation is twofold: 1) my weights are binary, for example they belong to a binary Ed neural network, 2) with reduced number of required states, one can program the device so that each two states will be sufficiently apart in terms of the corresponding conductance levels and hence more robust to noise (correct?).
I think my question applies mostly to inference phase. I am also aware of synaptic bit slicing which is a different topic. But slicing is useful when higher numeric precision for weights are needed.

I understand that you are only interested in the inference case. For that, I don't see any problem of just programming the binary network you have into the analog devices, e.g. using the PCM like noise model. This will scale the largest value to gmax and the smallest to -gmax with the expected programming noise and you can test the expected accuracy.
If you are interesting in the effect of larger programming noise, you can scale the programming noise scale or simply add your own programming noise model (by overriding the base noise model). In general, the number of states can be defined by dividing the conductance range by the expected noise standard deviation for the programming (but note that programming noise typically depends on the conductance value as well). So if you scale the programming noise you can investigate the effect of "reliable states". Not sure how other frameworks allow for adjustment the number of states of conductances, but it seems a little misleading to me.

Thanks for the elaborate answer.


Fix threading issues in auto-threshold code

Previous implementation deadlocked on Windows. This change fixes that and cleans up the code in general. Now uses ThreadPoolExecutor instead of explicitly launching Threads. Even after the general cleanups I was encountering deadlocks in np.dot on normal numpy arrays in a threaded context -- switching to the "blis" BLAS implementation fixed that (requirements.yml now contains an entry for this).

This also fixes the bug where not selecting a channel names csv file in the front end caused an unexpected exception on windows. Now the code explicitly checks that the csv path exists and is not a directory rather than relying on exceptions (as the particular IO exceptions raised in some circumstances do vary by platform).


Font identifier

Description of the new feature / enhancement
Identify font, font family used on web/local
Scenario when this would be used?
For building websites is super useful. Everywhere when you need to know what font used, kinda like color picker.
Supporting information
No response

/dup https://github.com/microsoft/PowerToys/issues/20670


<EMAIL_ADDRESS>

https://github.com/sanctuary-js/sanctuary-type-classes/compare/v0.3.0...v1.0.0
v1.0.0 is equivalent to v0.3.1. I released the former upon your suggestion, @Avaq. The library is solid.

Current coverage is 100% (diff: 100%)

Merging #43 into master will not change coverage

Powered by Codecov. Last update 057a36b...6ce7675

Thanks! :deciduous_tree:


[Enhancement] Release without pyinstaller

Hi, I'm using this great tool for text modding.
But I want to use your scripts with portable python environment.
So, I made a branch can make a release package without pyinstaller.
https://github.com/matyalatte/REMSG_Converter/tree/no_compile
In the branch,
download_python_embeddable.bat will put portable python in your repo.
Then, you can run the scripts like python\python.exe src\main.py ...
build.bat will make a zip from your repo.
You can upload the zip to the release page as it is.
Here is a zip file made from the branch.
REMSG_Converter_no_compile.zip
It's smaller, faster, and safer than compiled exe.
Also, it's easy for end-users to edit codes!
I'll send PR if you like it.

If any one wants to edit my code that means they known Python and installed Python so they can manually clone or download my code then py main.py directly
It would be great to be a optional choice, I think I will keep both version on release page (exe some how more user friendly although user friendly is nothing when doing a mod). Please send a PR and I will merge it.


V1 alpha

Codecov Report

Merging #336 (ae3419b) into master (5bea2ee) will decrease coverage by 11.03%.
The diff coverage is 18.76%.

@@             Coverage Diff             @@
##           master     #336       +/-   ##
===========================================
- Coverage   36.56%   25.53%   -11.04%
===========================================
  Files          22       29        +7
  Lines        1865     2495      +630
  Branches      296      414      +118
===========================================
- Hits          682      637       -45
- Misses       1183     1858      +675

Impacted Files
Coverage Δ

contracts/CreditLine/CreditLineEthUtils.sol
23.07% <0.00%> (ø)

contracts/PooledCreditLine/LenderPool.sol
0.00% <0.00%> (ø)

contracts/PooledCreditLine/PooledCreditLine.sol
0.00% <0.00%> (ø)

...ontracts/SavingsAccount/SavingsAccountEthUtils.sol
30.00% <0.00%> (ø)

contracts/test/ActorsUtils.sol
0.00% <0.00%> (ø)

contracts/test/ProtocolFeeCollector.sol
0.00% <0.00%> (ø)

contracts/test/TestUtils.sol
0.00% <0.00%> (ø)

contracts/test/creditLine.t.sol
0.00% <0.00%> (ø)

contracts/test/roles/Admin.sol
0.00% <0.00%> (ø)

contracts/test/roles/CreditLineActor.sol
0.00% <0.00%> (ø)

... and 21 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 3fb58c2...ae3419b. Read the comment docs.


feat(GlobalHeader): Update business logic for BAM profile menu

Overview

PR Checklist

[ ] Related to designs:
[ ] Related to JIRA ticket: [ABC-123]
[ ] I have run this code to verify it works
[ ] This PR includes unit tests for the code change
[ ] This PR includes testing instructions tests for the code change
[ ] The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions

Don't make me tap the sign.
PR Links and Envs

Repository
PR Link
PR Env

Monolith
Monolith PR
Monolith Env

Portal
Portal Link
Portal Env

Another Repo
Another Link
Another Env

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.198-alpha.76cc34.0@codecademy/gamut-labs@33.3.2-alpha.76cc34.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6318a959330fdf00a735ced2--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.198-alpha.83b160.0@codecademy/gamut-labs@33.3.2-alpha.83b160.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6318add30bdea10ec4567ba8--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.198-alpha.9d9cd9.0@codecademy/gamut-labs@33.3.2-alpha.9d9cd9.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6318b252c15f3219eb2245e3--gamut-preview.netlify.appDeploy Logs

🚀 Styleguide deploy preview ready!https://6318bc37330fdf13753663c5--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.198-alpha.3a470d.0@codecademy/gamut-labs@33.3.2-alpha.3a470d.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6318c02a9df4b228a6b7fc2b--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.199-alpha.11ca7e.0@codecademy/gamut-labs@33.3.3-alpha.11ca7e.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6318fc34fe855428c9d0f7bb--gamut-preview.netlify.appDeploy Logs


Fix granules search example

https://docs.maap-project.org/en/latest/search/granules.html#Searching-by-Additional-Attributes the query
results = maap.searchGranule(site_name="Mondah Forest Gabon",data_format='GeoTIFF')

fails b/c it needs a collection filter

closing as stale


Support for sub-cookies

Hello Scott,
Would you consider supporting sub-cookies like the following?
Cookies.set('key', 'subkey', 'value');

Hey fadetogrey,
No, this is out of the scope of the library. If you'd like to somehow encode extra information into a single cookie value, I'd recommend using JSON.
Cookies.set('key', JSON.stringify({ subkey: 'value' }));
JSON.parse(Cookies.get('key')).subkey; // "value"


add D.Gumbel

Jenkins, test this please.

Jenkins CI test (for commit 3f96191385bfc32aadb983e14be357a4323bc707, target branch master) failed with status FAILURE.
(For contributors, please wait until the reviewer confirms the details of the error.)

Jenkins, test this please.

Jenkins, test this please.

Jenkins CI test (for commit bc27c3fa7aa8415e74b3a733648c956acf49331c, target branch master) succeeded!


Fixed incorrect parameter ZoneName in PS example

@subsarma : Thanks for your contribution to the Azure documentation! The author, @KumudD, has been notified to review your proposed change.

#sign-off


use library for mimetypes

remove the manually written dict of mimetypes in utils.py and use some library to extract the mimetype from file extension.

I would like to work on this issue. I have found a library called mimetypes in python which provides this functionality. I'll try implementing this.

@adtyanair sure :+1: go ahead

@adtyanair just remember, you need to wait till 28th of Feb as per the timeline for the official coding period to begin.

I tried implementing the mimetypes library, but it's not returning all file types as in the utils.py file.
for example: for .zip file,  the library returns application/zip but it is application/x-zip-compressed in the utils file


Backups

If you want, add backups to minecraft server, add allow to select path/disk

This idea has been dismissed before. The main consideration is that the MC server may not support backup at runtime, which may result in bad backup files.
The backup recommendation for Minecraft is to use plugins or mods. Quite a few of them even support offsite backups.

This idea has been dismissed before. The main consideration is that the MC server may not support backup at runtime, which may result in bad backup files. The backup recommendation for Minecraft is to use plugins or mods. Quite a few of them even support offsite backups.

what about, making server backup when shutting down server?

you can write a bat/sh file to do that.

you can write a bat/sh file to do that.

i forgot i can do it, i will do sh script to backups


CSV Loader - Get only 2 rows when queried

Hi there,
Thank you for an awesome library.. I have been reading through it and is very impressed.. Also it is evolving extremely rapidly..
I am trying to read a CSV file (a list of 100 trump tweets) for analysis. When I try to read the docs loaded by the CSVLoader, I get 100 docs. I add them to a MemoryVectorStore and I can see it has 100 docs in that as well. However whenI try to use the VectorStore with OpenAI LLM Model and issue a simple query, I always get "2 rows". I get the same response even after I reduce the number of tweets in the CSV file from 100 to 50.
Can you please let me know what is it that I am doing wrong?
Here is the relevant part of the code that matters:

import { OpenAI } from "langchain/llms/openai";
import { CSVLoader } from "langchain/document_loaders/fs/csv";
import { MemoryVectorStore } from "langchain/vectorstores/memory";

const OPENAI_API_KEY = 'sk-xxxxxxxxxxxxxxx';

const model = new OpenAI({
  openAIApiKey: OPENAI_API_KEY,
  temperature: 0.9
});
const loader = new CSVLoader("documents/trumptweets.csv");
const docs = await loader.load();
console.log(docs); //Prints 100

const vectorStore = await MemoryVectorStore.fromDocuments(docs, new OpenAIEmbeddings({openAIApiKey: OPENAI_API_KEY}));
console.log("\n\nVectorStore created from the docs", vectorStore.memoryVectors.length); //Prints 100

const chain = RetrievalQAChain.fromLLM(model, vectorStore.asRetriever());

async function askQuestion(q: string) {
  console.log("\n\nQ) ", q);
  await chain.call({query: q, chat_history: []});
  console.log();
}

await askQuestion("How many rows are in the dataset?");

Q)  How many rows are in the dataset?
There are two rows in the dataset.
Surprisingly, I can ask questions about a tweet that is not part of this "2 rows" dataset and I get a right answer.
Q)  What did Trump say about his birthday?
Trump said "Thanks to all for your thoughtful birthday wishes" on June 16, 2009.

I don't think a vectorstore is the correct way of doing it. At least not storing each row as a separate entity. The python lib has CSV agent which should do a better job but It's not added to the TS implementation of Langchin yet.


clean only when build succesful

Hello, id like to have the option to only remove packages from the build dir which have succesfully compiled.

Done in<PHONE_NUMBER>eac30fb12accdc3a8e5e1949e25065.
With the rework done with the 4.2 release, all situations should be handled correctly. If not, please reopen.


Update Devices/IotHubs/certificates resource type

Existing Regex gives error in case you want to generate a name: Invalid pattern '^[a-zA-Z0-9_-.]{1,64}$' at offset 15. [x-y] range in reverse order.

I will create new one to scope it to dev branch


feat: add chainSpec_v1 group of functions

Last missing group of functions to provide support with papi, so this closes #801
I may need help with the genesisHash function - I thought this would be available on the chain object directly, but it's not.
I called getBlockHash(0), which seems to get the job done, it seems to work when starting from genesis and from a wsUrl, but the types say it might return null. I couldn't find any case where this happens, but I'm also not sure what to do in this case.... any ideas?

You can call getBlockHash with a future block number and it will return null, however, for genesis, it should always give you a block hash. It will be an unreachable code path for the null case. You could throw error like "Unexpected null genesis" if it ever happens.


needs examples

challenge number 2

This repo needs some scripting examples. Put them in the premade example directory.

What kind of scipting examples like organizing your desktop script etc?

closing


Feature/trigger and swap attributes

Tests added. I also added a test for th:each to make that works as well.

@checketts Tests ok like this or did you have something else in mind?

Those look great! Thanks


Weight

Issue Id you have worked upon -
#266
Briefly explain your program logic -
Converts masses between various units and calculates the body weight based on different planets...
Screenshots(Attach 2 screenshots of your own input and output) -

By raising this PR I affirm that -

[x] My code follows the guidelines of this project.

[x] I have performed a self-review of my own code.

[x] I have commented my code.

[x] My code gives the correct output.

[x] I affirm that I strictly follow contributing guidelines and code of conduct.

Congratulations 🎉 @chinmayr633 on your contribution.
Thanks for adding value to this repository. 😊
Let's celebrate this fest 😃 by providing more developers 👨💻👩💻 an opportunity to contribute. Help us make this repository reach far and more by sharing this to your friends and colleagues.
Your efforts can make difference.

Hey 👋, may you also encourage us by clicking the star icon on the repository main page. ⭐


[WIP] sorted merge for facets

Codecov Report

Merging #513 (fa4cfe7) into main (0a2f567) will decrease coverage by 0.09%.
The diff coverage is 7.50%.

@@            Coverage Diff             @@
##             main     #513      +/-   ##
==========================================
- Coverage   30.22%   30.13%   -0.10%
==========================================
  Files          84       85       +1
  Lines        9959     9999      +40
==========================================
+ Hits         3010     3013       +3
- Misses       6664     6700      +36
- Partials      285      286       +1

Impacted Files
Coverage Δ

server/search/facets.go
7.50% <7.50%> (ø)

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


remove rlimit bumping in extractor

As noticed by @i-am-yuvi recently, bumping the rlimit is not required (anymore).
It turns out that, since libbpf commit https://github.com/libbpf/libbpf/commit/216eaa760edf06f3521d5d49a419515607c1f38e, the rlimit bump in downstream applications isn't needed anymore as libbpf handles it, if needed.

I don't see any problem with the rlimit. It's been more than 20 hours that peer-observer is running without any issue!


Additional support for attributes

Hello,
here are some changes I made to version 2.2 in order to import a graph into Gephi: Some support for attribute value types other than string and addition of the for attribute (as requested in #17).
mforkel

Please submit a PR with your fixes.


DeprecationWarning with Python 3.8

While running the tests on Python 3.8 we get a DeprecationWarning:
.../procrastinate/lib/python3.8/site-packages/aiopg/connection.py:90: DeprecationWarning: The loop argument is deprecated since Python 3.8, and scheduled for removal
 in Python 3.10.

We get this warning several times.

I believe #178 closed this. Can you confirm @elemoine ? Or @k4nar ? (reopen if not)

No it didn't close this. This needs to be fixed in aiopg.

I believe aiopg fixed the issue. I'm not seeing the warning anymore.


Unnecessary print statement

Could you please either comment out this print statement, or put it behind some verbosity flag? Thank you!
https://github.com/a-r-j/graphein/blob/6f6913a71aa2cab40d0b26b6e6bfbf7a2760a8fd/graphein/protein/edges/distance.py#L79

Thanks for tracking that down - it was getting on my nerves a little! Yep, will change this.


Build error. Property 'enabled' cannot be accessed on 'Flag?' because it is potentially null

flutter/.pub-cache/hosted/pub.dartlang.org/flagsmith_core-2.1.0+1/lib/src/storage_provider.dart:141:68: Error: Property 'enabled' cannot be accessed on 'Flag?' because it is potentially null.

'Flag' is from 'package:flagsmith_core/src/model/flag.dart' ('/usr/local/Caskroom/flutter/1.22.2/flutter/.pub-cache/hosted/pub.dartlang.org/flagsmith_core-2.1.0+1/lib/src/model/flag.dart').
Try accessing using ?. instead.
log('_updateSubject ${item.key} -> ${_streams[item.key]?.value.enabled} f: ${item.enabled}');

../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flagsmith-2.0.1+2/lib/src/store/storage_provider.dart:131:68: Error: Property 'enabled' cannot be accessed on 'Flag?' because it is potentially null.

'Flag' is from 'package:flagsmith/src/model/flag.dart' ('../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flagsmith-2.0.1+2/lib/src/model/flag.dart').
Try accessing using ?. instead.
log('_updateSubject ${item.key} -> ${_streams[item.key]?.value.enabled} f: ${item.enabled}');

FAILURE: Build failed with an exception.
Flutter: 2.5.3
environment:
sdk: ">=2.3.0 <3.0.0"

Looks more like an error after migrating the project to flutter 2 and still without null safety :)

@AndrewBotalov80 Were you able to resolve the problem?


As a user, I can find a person by name with the specified platforms

... so that I can locate details of persons who have the social media platforms without having to go through the entire list.

Feature implemented in: https://github.com/CS2103JAN2018-F12-B3/main/pull/100 and https://github.com/CS2103JAN2018-F12-B3/main/pull/101/


MvpActivity can not  add  v4 Fragment

can let MvpActivity extents FragmentActivity?

You able to extends MvpAppCompatActivity (available in com.arello-mobile:moxy-app-compat:1.5.3) for ability to add support v4 fragments.
Also you able to create your own activity. Then just call MvpDelegate methods how MvpActivity does this.

thanks


Experimenting streamlit-webrtc using Google Colab and Ngrok

Hi, anyone have been experimenting streamlit-webrtc component with Google Colabs and Ngrok, i need this setup because google colab have free gpu to serve my model.
I have an ICE connection state is failed after running app.py example,
https://gist.github.com/trisgelar/86968b75a3ff84f1425c1ccee6ad0415
Thanks.

You can now view your Streamlit app in your browser.
Network URL: http://<IP_ADDRESS>:8501
External URL: http://<IP_ADDRESS>:8501
2021-07-19 15:16:47.944 Restore the component value (key=object-detection)
2021-07-19 15:17:45.056 No worker exists though the offer SDP is set. Create a new worker (key="object-detection").
2021-07-19 15:17:45.073 _webrtc_thread_impl starts
2021-07-19 15:17:46.110 Connection(0) Remote candidate "47ce6f98-7967-4bee-af8b-3fba9e547390.local" could not be resolved
2021-07-19 15:17:46.110 Track audio received
2021-07-19 15:17:46.110 Add a track <aiortc.rtcrtpreceiver.RemoteStreamTrack object at 0x7fd7b9e60b10> of kind audio to <aiortc.rtcpeerconnection.RTCPeerConnection object at 0x7fd7d5325cd0>
2021-07-19 15:17:46.111 Track video received
2021-07-19 15:17:46.111 Set <aiortc.rtcrtpreceiver.RemoteStreamTrack object at 0x7fd7b8d32fd0> as an input video track with video_processor <class 'streamlit_webrtc.process.AsyncVideoProcessTrack'>
2021-07-19 15:17:46.111 Add a track <streamlit_webrtc.process.AsyncVideoProcessTrack object at 0x7fd7b8d37b90> of kind video to <aiortc.rtcpeerconnection.RTCPeerConnection object at 0x7fd7d5325cd0>
2021-07-19 15:17:46.149 Connection(0) Check CandidatePair(('<IP_ADDRESS>', 49728) -> ('<IP_ADDRESS>', 33875)) State.FROZEN -> State.WAITING
2021-07-19 15:17:46.197 ICE connection state is checking
2021-07-19 15:17:46.344 Connection(0) Check CandidatePair(('<IP_ADDRESS>', 49728) -> ('<IP_ADDRESS>', 33875)) State.WAITING -> State.IN_PROGRESS
2021-07-19 15:18:13.134 Unset the worker because the frontend state is neither playing nor signalling (key="object-detection").
2021-07-19 15:18:17.852 No worker exists though the offer SDP is set. Create a new worker (key="object-detection").
2021-07-19 15:18:17.853 _webrtc_thread_impl starts
2021-07-19 15:18:17.888 Track audio received
2021-07-19 15:18:17.888 Add a track <aiortc.rtcrtpreceiver.RemoteStreamTrack object at 0x7fd7d531a510> of kind audio to <aiortc.rtcpeerconnection.RTCPeerConnection object at 0x7fd7d8149a10>
2021-07-19 15:18:17.888 Track video received
2021-07-19 15:18:17.888 Set <aiortc.rtcrtpreceiver.RemoteStreamTrack object at 0x7fd7b8c0e410> as an input video track with video_processor <class 'streamlit_webrtc.process.AsyncVideoProcessTrack'>
2021-07-19 15:18:17.889 Add a track <streamlit_webrtc.process.AsyncVideoProcessTrack object at 0x7fd7b8c03090> of kind video to <aiortc.rtcpeerconnection.RTCPeerConnection object at 0x7fd7d8149a10>
2021-07-19 15:18:17.972 Connection(2) Check CandidatePair(('<IP_ADDRESS>', 53740) -> ('<IP_ADDRESS>', 39647)) State.FROZEN -> State.WAITING
2021-07-19 15:18:17.973 Connection(2) Check CandidatePair(('<IP_ADDRESS>', 53740) -> ('<IP_ADDRESS>', 39647)) State.FROZEN -> State.WAITING
2021-07-19 15:18:18.112 ICE connection state is checking
2021-07-19 15:18:18.112 Connection(2) Check CandidatePair(('<IP_ADDRESS>', 53740) -> ('<IP_ADDRESS>', 39647)) State.WAITING -> State.IN_PROGRESS
2021-07-19 15:18:18.189 Connection(2) Check CandidatePair(('<IP_ADDRESS>', 53740) -> ('<IP_ADDRESS>', 39647)) State.WAITING -> State.IN_PROGRESS
2021-07-19 15:18:49.853 Connection(0) Check CandidatePair(('<IP_ADDRESS>', 49728) -> ('<IP_ADDRESS>', 33875)) State.IN_PROGRESS -> State.FAILED
2021-07-19 15:18:49.853 Connection(0) ICE failed
2021-07-19 15:18:49.860 ICE connection state is failed
2021-07-19 15:18:49.860 ICE connection state is closed
2021-07-19 15:19:21.619 Connection(2) Check CandidatePair(('<IP_ADDRESS>', 53740) -> ('<IP_ADDRESS>', 39647)) State.IN_PROGRESS -> State.FAILED
2021-07-19 15:19:21.705 Connection(2) Check CandidatePair(('<IP_ADDRESS>', 53740) -> ('<IP_ADDRESS>', 39647)) State.IN_PROGRESS -> State.FAILED
2021-07-19 15:19:21.706 Connection(2) ICE failed
2021-07-19 15:19:21.720 ICE connection state is failed
2021-07-19 15:19:21.721 ICE connection state is closed

Can you check with streamlit 0.83 version. Seems like a general issue

It worked in my environment.
Is it not a Google Colab specific problem, but a problem stated here?

I solve using by creating TURN Server.
In case if anybody have same problem my solution are:

Create TURN Server using this tutorial.
Configure iceServers on RTCConfiguration
{"iceServers": [{
"urls": ["turn:turn.xxx.dev:5349"],
"username": "user",
"credential": "password",
}]}

hello @trisgelar
I installed a coturn server and make it sure it's working by looking at the logs
I tried to use the configuration you propose and I don't see any logs coming from coturn when I start and run the streamlit-webrtc app.
Any ideas?


Add CMake metadata

Not generated by default since upstream doesn't support the lib-only usecase

These are really annoying and pointless errors. Seems that the compiler activation isn't working as intended in the test environment. Since I'm creating this from scratch, I would have preferred an explicit test.
For some reason, this approach worked for grpc-cpp, but unsure what's the difference

So I had gotten the language/compiler wrong, easy fix (with the benefit of hindsight, as always)... But now it's CMake being inconsistent. I'm gonna wait for a response there before I drop down to hacking on COMPONENTs.


Add a Daily Beast story to the press clippings list

I rule and have completed some work on Case Manager that's ready for review!
The Daily Beast said some nice stuff about our project in a (behind a paywall though). (Also note: We aren't uber for abortion, although...)
This pull request makes the following changes:

Add the Daily Beast story to our press clippings

no view changes
no issues
For reviewer:

Adjust the title to explain what it does for the notification email to the listserv.
Tag this PR:

feature if it contains a feature, fix, or similar. This is anything that contains a user-facing fix in some way, such as frontend changes, alterations to backend behavior, or bug fixes.
dependencies if it contains library upgrades or similar. This is anything that upgrades any dependency, such as a Gemfile update or npm package upgrade.

If it contains neither, no need to tag this PR.

no code implications, so yolo merging


f-strings in expressions and background characters

My implementation of background characters and f-strings in the expressions lists.
I think that some things need to been changed...

Good job!


GUI: incorrect wording on greeting page

It should not be "install on another network" if there is no network for which it is installed in the first place
Isn't "welcome back" incorrect if it's the first time we start Liana?

cc @kloaec

weird it should go in install mode directly

I tried and got directly the install when the datadir does not exist
I think your .liana directory did exist

Oh i routinely deleted network-specific datadirs to test the installer, so maybe it's that: it existed but was empty.
------- Original Message -------
Le mercredi 21 décembre 2022 à 9:58 AM, Édouard @.***> a écrit :

I tried and got directly the install when the datadir does not exist
I think your .liana directory did exist
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: @.***>

I guess it's a cool edge case: still "welcome back", but not "another network" :)

I can confirm that this happens when the .liana directory exists, but without config for a specific network (empty directory).
I think an empty directory could be managed as no directory at all because :

Why differentiate a clean uninstall and a "less clean" uninstall ?
Fewer cases to manage = less code and less bugs

If agreed I can update this so that when there is no directory for specific network it will go in install mode.

Hi. I'm getting started with Liana and I'd like to work on this issue. Can you point me to the relevant files for this issue

Hello, @darosior  how about this, thought of something generic to cater to both new and existing users.
Let me know what you think, and if this is fine, then I can raise a PR

Hello, @darosior how about this, thought of something generic to cater to both new and existing users.
Let me know what you think, and if this is fine, then I can raise a PR

@darosior

I don't think this user is active anymore.
-------- Original Message --------
On Aug 19, 2023, 5:26 PM, pythcoiner wrote:

Hello, @.***(https://github.com/darosior) how about this, thought of something generic to cater to both new and existing users.
Let me know what you think, and if this is fine, then I can raise a PR

@.***(https://github.com/darosior)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

I can confirm that this happens when the .liana directory exists, but without config for a specific network (empty directory).
I think an empty directory could be managed as no directory at all because :

Why differentiate a clean uninstall and a "less clean" uninstall ?
Fewer cases to manage = less code and less bugs

If agreed I can update this so that when there is no directory for specific network it will go in install mode.

agree with this point, can we go forward and follow this way? if @trigger67 is not interested in working on this I can handle it.

Yep do it @pythcoiner

adressed by #919


Fix rest error and add better error handling

@alika I think that k8s error handling could be much improved - it had some very simple logic but over time we need better handling there.
I think internal makes sense for things that have no reuse factor, but things like "generic grpc error handling" or "generic k8s error handling" i think could be useful to others.

this is too old, punting


[suggest] short upgrade guide for breaking changes

It will be helpful if we have a section in the docs for breaking changes upgrade guide for each version.

Sorry, I saw BREAKING_CHANGES.md just now.


Autoclose on disabled dates

The docs state:

Options:
name: autoClose
type: boolean
default: false
Description: Auto close the picker when a date was selected.

If you set autoClose to true and select a disabled date, the widget is closed. IMO it shouldn't close, since a date wasn't "selected".

This had fixed in v0.2.0.


How to remove the swapfile

My installation was incomplete due to lack of space on device. As I try to rm ~/swapfile, I get Operation not Permitted. Even tried as root. Didn't help. Any pointers on this?

Nevermind, I figured it out. Just reboot the device and rm the file. I reckon the swap may be in use so was not able to remove.
Would nevertheless appreciate a solution without a reboot.

you can use swapoff and then rm

Agreed, swapoff and then rm.


About Us Page - Clickable Avatar - Dependent on #427

Requirement

Retrieve the list of C4SG developers by calling Rest API: GET /api/users/developers
Display number of avatars matching number of developers. Use the same avartar image representing each developer.
Each user avatar is clickable. The link URL is the Volunteer Detail page, which is: http://localhost:4200/user/{id}. The IDs for each avatar link should match the IDs returned from Rest API. Upon clicking the avatar, the Volunteer Detail page is launched.

Note
Hold off on this task until #427 is resolved.

Error on #427 solved.

This issue was moved to Code4SocialGood/c4sg-web#59


:sparkles: Support Operation Responses Being Defined in Service Classes

Support @response Decorator in Service Classes.
E.g:
class Httpbin(Service):
    @get("/ip")
    def ip(self) -> str:
        ...

    @ip.response
    def _ip_response(self, body: dict) -> str:
        return body["origin"]

Blocked by #97


Upd gitignore + dont return unknown language

I am using the library to check if a language really exists and then format it to the format I want.
The problem is that, without the exception the converter still returns something for zh-kt for example even if it doesn't exist ! Why returning that whereas we have a strong repository with a lot of countries informations in it ?
At least if this PR is not accepted, put a parameter like "isValid" or something

Hi @kangoo13, glad you're using the library!
I think your PR was failing the unit tests because you forgot to put a ! in the condition:
if (!$this->repository) {
    throw new \Exception('Language is not in our repository');
}

Anyway, it's a good idea to throw an Exception if the language is not defined in the LanguagesRepository (https://github.com/whiteCube/lingua/blob/master/languages.php).
In order to do this properly, there are a few things that'll have to change. I'll add this to my to-do list.


feat: default priority class

Have a default priority name longhorn-critical.
Ref: longhorn/longhorn#6528

James, as we discussed, this PR should not be necessary anymore. WDYT?

Agreed and closed this PR.

The PR will be invalid after the PR https://github.com/longhorn/longhorn-manager/pull/2411 of https://github.com/longhorn/longhorn/issues/7173