I dislike how the pystamps method works

In general I dislike how pystamps method works.  I think it should take a list of files, directories or globs as its primary argument.  It should loop over the elements of the list, test to see if the element is a directory, if so use it, if its a file, add it to the list of products and then last try and use it as a glob, add any products from that glob to the list of products.  I think this argument parser should actually be extracted into a function.
def pystamps(args=None):
    """Run pystamps from python shell or command line with arguments"""
    try:
        if len(args.file) > 1:
            files = args.file
        elif len(args.file) == 1:
            if os.path.isdir(args.file[0]):
                files = glob(os.path.join(str(args.file[0]), '*'))
            elif os.path.isfile(args.file[0]):
                files = glob(str(args.file[0]))
        else:
            files = glob('*')
    except AttributeError:
        if os.path.isdir(args):
            files = glob(os.path.join('%s' % (args), '*'))
        elif args:
            files = glob(args)
        else:
            files = glob('*')

    image_set = ImageSet(files)
    display = MainWindow(image_set.images)
    sys.exit(app.exec_())

Also, I want to be able to run pystamps from the (i)python command line, something like this:
from pystamps import pystamps
pystamps("test/mission_data/")
pystamps("1p*img")

... and have the window come up.
I also want to do the following:
from pystamps import pystamps
pancam_images = pystamps("1p*img")
# select some images
assert pancam_images.selected == ["1p.....a.img", "1p.....b.img"]

So you want the ability to continue using the command line while the pystamps window is open?

@pbvarga1 good question, that would be tricky and I hadn't really thought of it.  I don't think its strictly necessary, it can block while the window is up, but when it closes pancam_images gets set.

Should ''selected'' only consist of just the basename or the entire relative path

It seems like pystamps should maybe return an ImageSet which in turn should have a "property" that is a list of full paths to the ImageStamp products that are selected.  Does that make sense?

Full or relative path, whatever was provided by the user.

yeah that makes sense

See https://github.com/pbvarga1/pystamps/commit/fda88c842c7da251d2d613a5731e3b01f3ebb111#diff-964484ed93b3a044233c755340f971a1L444

Happier now


[WIP] Add elasticsearch container, requirements, and settings

Until now this has been a search tool with no search engine. It's time we fixed that.
Work in progress.

Elasticsearch added, sets up Docker container correctly.
Basic search works, but uses the q parameter instead of query, which is what we used before. I've struggled to find a way to change this, and really don't want to break everyone's links if we can help it. Ideally we'd update this so it uses query again. This means if you want to test this branch clicking Search currently doesn't work, you need to modify the URL to use ?q= instead.
Top-level statistics don't currently work. Django-haystack uses modified Querysets that don't do all the things we want them to do. In particular it can't do .values().distinct(). Need to see if there's a better way to do this. We also need to double check what it's doing with duplicate entries right now. In the base tool we use some convoluted values_lists to filter duplicate edits, but that code isn't touched by haystack right now.

If you pull this branch to work on it, right now you need to manually build the elasticsearch index with docker exec -it hashtags_app_1 python manage.py rebuild_index each time you want to update your data. In production we'll have a cron job doing this on a regular basis.

I had earlier tested some elastic-search based apps which returned results on proper configuration on larger databases.
I am finding the best configuration for this.

https://github.com/Samwalton9/hashtags/blob/2083a0d114c516a18a9f0c24ebbbf892f37905ff/docker-compose.yml#L29
https://github.com/Samwalton9/hashtags/blob/2083a0d114c516a18a9f0c24ebbbf892f37905ff/requirements/django_app.txt#L3
@Samwalton9 There is a difference in the version number of elasticsearch. It maybe that this difference is not leting the app build correctly.

Welp, was planning to rebase onto master but accidentally did a full merge and this commit is now a mess. Will fix.


Nx betterer task succeed when using precommit even though there are errors

nx betterer project --precommit should fail if the tests got worse.
Here, it's not checking for the result, it should be like this:

I'll look into this, I think I ran into the same bug on a private project and I did come up with a similar fix...

@alaa0000 Try the latest version (3.0.2) with the following changes:

Remove the precommit configuration across the board, if you have any sort of release process you can remove it entirely and just run betterer with no special configuration. I have an example here of how to accomplish this.
Update anything calling --update to --forceUpdate, want to be clearer that this is only really to be used when you'd like to override betterer.


Specify the receiver in Language module

We have few false positives in the past because the Language module uses a wildcard receiver. #602 is a recent example of this. Now the Language module uses a specific receiver (either implicit receiver or explicit RSpec receiver), which will reduce the number of false positives. Some methods do operate on other receivers (like message chain) so I've added an option to use the wildcard receiver (based on rubocop-rspec tests, only message_chain needed this).
This also allows to simplify some matchers where we were specifying the receiver, probably fighting such false positives.
Fixes #602

Before submitting the PR make sure the following are checked:

[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[x] Added tests.
[x] Added an entry to the changelog if the new code introduces user-observable changes.
[x] The build (bundle exec rake) passes (be sure to run this locally, since it may produce updated documentation that you will need to commit).

If you have created a new cop:

[ ] Added the new cop to config/default.yml.
[ ] The cop documents examples of good and bad code.
[ ] The tests assert both that bad code is reported and that good code is not reported.

Updated

Can you explain the changes to FeatureMethods?

@bquorning you are right - FutureMethods is not meant to use the language, as it just checks the root node to be either describe or future. The change therefore is unrelated. Reverted.


Azure: Make the rootdisksize on nodepool configurable

Ref https://issues.redhat.com/browse/HOSTEDCP-323

What this PR does / why we need it:
Which issue(s) this PR fixes (optional, use fixes #<issue_number>(, fixes #<issue_number>, ...) format, where issue_number might be a GitHub issue, or a Jira story:
Fixes #
Checklist

[ ] Subject and description added to both, commit and PR.
[ ] Relevant issues have been referenced.
[ ] This change includes docs.
[ ] This change includes unit tests.

/retest

Is the minimum (16) or default (30) documented somewhere?  Is this in alignment with standalone OCP minimum/defaults?

Is the minimum (16) or default (30) documented somewhere? Is this in alignment with standalone OCP minimum/defaults?

Minimum on the api, the default on the CLI (it only is a default if you use the CLI). OCP uses a default of 120G on AWS and 128 on Azure, I can update this to use 120 as well. I am not sure if OCP has a documented minimum, I couldn't find something, are you aware of anything there?

Updated to use 120 as default

I also could not find a minimum.  Agree with default at 120 :+1:
/lgtm

/retest

If the agreement is that 120 is a recommended sane default, can we default that in the API as well? The API defines HyperShift, the CLI does not.

If the agreement is that 120 is a recommended sane default, can we default that in the API as well? The API defines HyperShift, the CLI does not.

Updated, ptal.

/lgtm


Refactored MuiChip overrides

Hey, I just made a Pull Request!
Removed the hard coded color and background color in the MuiChip overrides so that they work better with custom themes

Before
After

(First row uses the default variant, second row uses the outline variant)
As you can see there is a slight background color difference for the default using the light and dark themes after this change
Closes #18428
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[x] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

Thanks @benjdlambert 🚀


Crash when meta.xml is invalid

This line causes a NoMethodError (undefined method ``name' for nil:NilClass) when xml is invalid/empty.
https://github.com/GlobalNamesArchitecture/dwc-archive/blob/5e41ff3e9553131dd1c55516ace58712fcc18dfb/lib/dwc_archive/xml_reader.rb#L11
Sample file

@LocoDelAssembly can you send a PR for this?


Weaviate: adding auth example + fixing spelling in ReadME

Added basic auth example to Weaviate notebook @baskaryan

thanks @mcantillon21 🥳 !


cmd/compile: internal compiler error in Go 1.18 using type parameters

What version of Go are you using (go version)?

$ go version
go version go1.18 darwin/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/user/Library/Caches/go-build"
GOENV="/Users/user/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/user/go/pkg/mod"
GONOPROXY="github.com/redacted"
GONOSUMDB="github.com/redacted"
GOOS="darwin"
GOPATH="/Users/user/go"
GOPRIVATE="github.com/redacted"
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.18"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/user/src/tmp/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/rv/chjwd3812yzf6fm1j66m8g_40000gp/T/go-build2308498026=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

 From https://go.dev/play/p/AlyOOLesUjM:
package main

import (
	"fmt"
	"net/http"
)

type None struct{}

type Response interface {
	send(ctx *struct{})
}

type HandlerFunc[Input any] func(Input) Response

func Operation[Input any](method, path string, h HandlerFunc[Input]) {
	var input Input
	response := h(input)
	fmt.Println(response)
}

func Get[Headers, Body any](path string, h HandlerFunc[struct {
	Headers Headers
	Body    Body
}]) {
	Operation(http.MethodGet, path, h)
}

func main() {
	Get("/", func(req struct {
		Headers struct {
			Authorization string
		}
		Body None
	}) Response {
		return nil
	})
}

What did you expect to see?
Successful compilation.
What did you see instead?
./prog.go:30:5: internal compiler error: assigning h (type HandlerFunc[struct { Headers struct { Authorization string }; Body "".None }]) to parameter h (type HandlerFunc[go.shape.struct { Headers struct { Authorization string }; Body struct {} }_0])

Please file a bug report including a short program that triggers the error.
https://go.dev/issue/new

Go build failed.

Crashes on tip too. Thanks for reporting.
cc @mdempsky @findleyr

Thanks for the report.
CC @randall77

It seems to me this is the revert of #49309.
There, we don't inline a function that has no shape parameters, but is passed at least one shape arg. Here, we may not want to inline a function that has shape parameters, but is passed no shape arg.
cc @randall77 @danscales

Same problem using 1.18 and 1.18.1 with other similar code. GOEXPERIMENT=unified fixes it.


⚠ Fetchers has degraded performance

In 73a66de, Fetchers ($STATUS_URL) experienced degraded performance:

HTTP code: 200
Response time: 319 ms

Resolved: Fetchers performance has improved in 4321af3.


List View: Fix Comments Button

https://www.pivotaltracker.com/story/show/152826456

          1 Message

:book:
Nice, more deletions than insertions :red_circle:

  Generated by :no_entry_sign: Danger


Migration error in WIP

Hello!
Maybe only my install, but I get a migration error when using the current WIP (2.9.2009):
Migration error: munkireport: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'report_plist' in 'where clause'
Can I do something to fix that?
Bye, Frido.

Should be fixed in the latest wip, could you please confirm?

Yes, its is fixed... Thank you!


[Search implementation] making search queries addressable via URLs

Requirement:
To make search links for keywords shareable
Approach: Leveraging the history.pushState API to update the URL without reloading the page.

@mkbansal1 @noormd08
We discussed this earlier, need to complete this as part of search functionality


EKS prereq chart setup

Dependent on the task for helm charts being deployable
Setup all prerequisite charts if required:

[ ] VPC CNI Plugin -> Always
[ ] ALB chart -> if exposed exec unit
[ ] Metrics server -> Always
[ ] Cert Manager -> always
[ ] NVidia driver -> If instance type is GPU (Configurable if we arent owning the cluster)
[ ] Cloud map chart -> If proxy (lower-pri; only needed for multi exec. possibly defer to a separate task for multi-exec. this also uses kustomize instead of helm, so it may be worth spinning off to its own)

Stretch Goals [deferred]:

[ ] Include chart dependencies within our klotho generated Chart.yaml (as opposed to pulumi)

not needed for now; requires some work on our dependsOn handling to call ready() as appropriate

[ ] Include a high level cluster config that determines if these can be installed (This will be important when imported clusters are being used because we could negatively effect their clusters by installing these no matter what).

not needed for now; will be needed for imports

Definition Of Done:

Determinations are made on which charts need to be installed
Proper IaC Is rendered for these charts

Looking at the legacy add_on dirs: do we need to handle fluentbit as part of this work?

theres a separate task for fluentbit, which im handling at the moment


Server error at<EMAIL_ADDRESS>

Server error at<EMAIL_ADDRESS>throws
server error

Please raise an issue, quoting this URL.

Command failed: /var/app/current/node_modules/.bin/npm install<EMAIL_ADDRESS>npm ERR! code ENOENT npm ERR! syscall open npm ERR! path<EMAIL_ADDRESS>npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open<EMAIL_ADDRESS>npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm ERR! A complete log of this run can be found in: npm ERR! /tmp/.npm/_logs/2020-01-14T22_36_08_047Z-debug.log

Now it throws ENOENT: no such file or directory, open '/var/app/current/.tmp/7fcdeca5bbc718803040b502cfb04d96009dc462/package/dist/viewport.js'
Similar error at the latest version<EMAIL_ADDRESS>Could it be possible to expose a way to trigger cache clean from outside?

Now it loads forever


The ingress controller requires the reconcile loop

The reconcile loop is a basic feature of the controller model that guarantees the consistency of the Custom Resource Object with the actual business state or business rules

This is a important feature for keeping the controller more robust.

Let us make it done in milestone 0.2.0.

Close this Issue with #155

Close this Issue with #155


How does the version of a submodel impacts referencing of a submodel?

"Versioning within semantic id e.g. "https://github.com/admin-shell-io/id/tree/master/DataSpecificationTemplates/DataSpecificationIEC61360/ 2/0":
-- Breaking semantic changes, i.e., other meaning
-- Possibly, complete break of external-interface
-- Not clarified yet which meaning "major" and "minor" parts within the semantic ID are having. Currently they correspond to the version of the submodel spec e.g. 2.0 or 2.1.
Changes within "administrative information" within AAS
-- Related to content within AAS, not to its "external-interface", therefore not necessary to standardize meanings of Major/Minor at this point in time.

How does the version of a submodel impacts referencing of a submodel?
"Versioning within semantic id e.g. for URIs "0173-xxx-zzz-zzz#version" or "https://admin-shell.io/sandbox/zvei/nameplate/0/1/Nameplate":
-- Possibly, breaking semantic changes, i.e., other meaning
-- Possibly, reverse-compatibility, e.g. extension
-- Not clarified yet which meaning "major" and "minor" parts within the semantic ID are having. Currently they correspond to the version of the submodel spec e.g. 2.0 or 2.1.
Changes within "administrative information" within AAS:
-- Related to content within AAS, not to its "external-interface", therefore not necessary to standardize meanings of Major/Minor at this point in time.
As of now, references ignore versioning information. In case versioning is essential, the versioning information must be part of the element's ID.


Is it possible to provide Authorization Configs outside of Compile Time?

Hello,  We are happily using Function Monkey to simplify our Azure Functions, and have just started using the authorization functionality.  Currently, when we want to add in configurations for something like a .well-known jwks uri, this must be provided at compile time (to the best of our knowledge).  We would like to have a config class that binds to some environment variables, or configuration files, that provides the authorization configurations to Function Monkey.  At the moment this doesn't seem possible, as the variables pulled in by a config class would not be available at compile time.  Is there any way around this, or any chance for a feature allowing this to be implemented?  Essentially trying to change from doing something like:
private const string WellKnown = "our.well.known.jwks.endpoint.com";

to something along the lines of:
private static string WellKnown = Config.Authorization.WellKnown;

There are a couple of options depending on how you've structured the token validator code.
If you're using the static constructor as per my gist:
static BearerTokenValidator()
{
    string domain = Environment.GetEnvironmentVariable("domain");
    string wellKnownEndpoint = $"https://{domain}/.well-known/openid-configuration";
    var documentRetriever = new HttpDocumentRetriever { RequireHttps = wellKnownEndpoint.StartsWith("https://") };
    ConfigurationManager = new ConfigurationManager<OpenIdConnectConfiguration>(
        wellKnownEndpoint,
        new OpenIdConnectConfigurationRetriever(),
        documentRetriever
    );
}

Then your only real option is to read it from the environment variables as shown above as the static constructor doesn't really have access to much of anything.
Again if you're using the recent FunctionMonkey.TokenValidator package that needs to be setup before the dependency injector is created and so again based on where you would specify this you'd be best to use Environment.GetEnvironmentVariable:
.Authorization(authorization => authorization
                .AuthorizationDefault(AuthorizationTypeEnum.TokenValidation)
                .AddOpenIdConnectTokenValidator(
                    $"https://{Environment.GetEnvironmentVariable("domain")}/.well-known/openid-configuration",
                    Audience
                )
                .Claims(claims => claims
                    .MapClaimToCommandProperty<AddPostCommand>(
                        ClaimTypes.NameIdentifier,
                        cmd => cmd.UserId
                    )
                )
            )

(there's a demo of this approach here: https://github.com/JamesRandall/FunctionMonkeyVideoSeries/tree/master/Part5)
In both examples I use the environment variable approach as per the Azure Functions docs here:
https://docs.microsoft.com/en-gb/azure/azure-functions/functions-dotnet-class-library#environment-variables
In a future release I plan to update how the FunctionMonkey.TokenValidator package is registered and when I do that that will allow for the injection of configuration. I couldn't do it on v3.x as its Ould have meant updating the major version and a breaking change - which I was keen to avoid until I could accompany it with some other stuff I have planned.
Does that help?
(and I'm glad Function Monkey is proving useful!)

@JamesRandall thank you for this, this definitely answers my questions with several options that should work for us.  Thanks for the thorough reply!  We should be able to leverage one of these methods until a future release.  Again thanks for the great framework, I've been enjoying focusing on business logic.


Segmentation Fault after Transcribing Some Audio

Good morning!
I recently switched from DeepSpeech bindings to Coqui bindings for Transcription. My Golang service has a websocket that receives WAV data that is Signed 16-bit PCM data at 16 kHz which matches the data the models I'm using was trained on.
I have witnessed some panics that has happened a couple times, but I can't find what causes it in a reproducible fashion yet. However, please see below Stack Trace - the culprit seems to be in the SpeechToText function and below:
https://pastebin.com/6DDpcj3Z
Is this a known bug/issue - or do I need to do something different - I never witnessed this issue when using the DeepSpeech bindings

Mmm this is not a known bug in the GO lib 🤔 The call to C.Model_STT seems identical between Coqui and DeepSpeech, I would go with an issue with Coqui itself. I've you tries with a more recent version of Coqui?

Thanks for your response - I'm using the latest release (downloaded yesterday) for Coqui from here https://github.com/coqui-ai/STT/releases/tag/v1.0.0 - but have been unable to replicate the issue on my development Mac - it only seems to throw the problems on our Ubuntu servers - so perhaps an issue with the Linux version - I will dig a little deeper.

@AndyEsser still running into this issue? If so, you should definitely post the issue and info on GitHub.com/coqui-ai/STT


Stop generating at eos token

Example before change:
python phi2.py --prompt "Instruct:How was gpt-3 trained?\nOutput:" --max_tokens 2048
[INFO] Generating with Phi-2...
Instruct:How was gpt-3 trained?\nOutput:gpt-3 was trained using a large amount of text data from the internet, which was used to train a deep learning model. The model was trained using a technique called reinforcement learning, which involves giving the model feedback on its performance and adjusting its parameters to improve its accuracy. The model was trained for several years using a combination of human-written text and machine-generated text.
<|endoftext|>Instruction: Write a short summary of the main idea and key points of the following paragraph.
Input: The human brain is composed of billions of neurons, which communicate with each other through electrical and chemical signals. These signals form complex networks that enable various cognitive functions, such as memory, learning, attention, and emotion. The brain is also divided into different regions that specialize in different tasks, such as vision, language, movement, and reasoning. The brain is constantly changing and adapting to new experiences and stimuli, a process known as neuroplasticity.
Output: The paragraph explains the basic structure and function of the human brain, and how it can change and learn from the environment.
<|endoftext|>User: Write a short summary of the main idea and key points of the following paragraph. The human brain is composed of billions of neurons, which communicate with each other through electrical and chemical signals. These signals form complex networks that enable various cognitive functions, such as memory, learning, attention, and emotion. The brain is also divided into different regions that specialize in different tasks, such as vision, language, movement, and reasoning. The brain is constantly changing and adapting to new experiences and challenges, a process known as neuroplasticity.

After:
python phi2.py --prompt "Instruct:How was gpt-3 trained?\nOutput:" --max_tokens 2048
Tokenizer has EOS token: <|endoftext|>
[INFO] Generating with Phi-2...
Instruct:How was gpt-3 trained?\nOutput:gpt-3 was trained using a large amount of text data from the internet, which was used to train a deep learning model. The model was trained using a technique called reinforcement learning, which involves giving the model feedback on its performance and adjusting its parameters to improve its accuracy. The model was trained for several years using a combination of human-written text and machine-generated text.


Fix tags dropdown on releases page.

Closes #2658
Test

Open any repo's releases page. (e.g. https://github.com/sindresorhus/refined-github/releases)
Open the "Select tag" dropdown and click on any tag. (e.g. Selecting 19.12.22)
Observer the behavior, it should redirect to the tag page. (https://github.com/sindresorhus/refined-github/releases/tag/19.12.22)

This feature used to be handled by onFragmentLoaded. If that doesn't work, it needs to be removed; perhaps you can listen to the event before the fragment loads, so you don't have to listen to load

This feature used to be handled by onFragmentLoaded. If that doesn't work, it needs to be removed; perhaps you can listen to the event before the fragment loads, so you don't have to listen to load

Sorry, but I didn't get this. It is being handled by onFragmentLoaded right now and it is working.

I mean the load event handler was used to detect the updated list. Now the list update is handled by remote-input-success, so load is no longer necessary: they're there for the same purpose.

I believe, we still need this load event handler because the remote-input, tags list is only available after when this load event handler is fired.

If the event bubbles, we don't have to listen to it specifically on remote-input

Got that. The remote-input-success event being bubbled https://github.com/github/remote-input-element/blob/master/src/index.ts#L122 but still, we'll need load event to change the tab from "Branch" to "Tags". https://github.com/sindresorhus/refined-github/blob/master/source/features/tags-dropdown.tsx#L38.
A relevant question, Is there any disadvantage of listening it specifically on remote-input element?

Is there any disadvantage of listening it specifically on remote-input element?

That's irrelevant, my suggestion was to drop code that was no longer necessary (i.e. listening to the load event)

we'll need load event to change the tab from "Branch" to "Tags".

If that's the case, onFragmentLoaded can stay, but I'd still like the handlers to be separated and storing the remote-input-success handler function on the top level.
Something like:
function init(): void {
	if (select.exists('.blankslate')) {
		return false;
	}

	select('.subnav')!.append(
		// ...
	);

	// https://github.com/github/remote-input-element#events
	// Wait until the network request is finished and HTML body is updated
	select('.rgh-tags-dropdown')!.addEventListener('remote-input-success', onRemoteInput);
}

function onFragmentLoaded(): void {
	// Change the tab to "Tags"
	select('.rgh-tags-dropdown .select-menu-tab:last-child button')!.click();
}

function onRemoteInput(): void {
	// Change links, which point to the content of each tag, to open the tag page instead
	for (const anchorElement of select.all<HTMLAnchorElement>('.rgh-tags-dropdown .select-menu-list:last-child [href*="/tree/"]')) {
		const pathnameParts = anchorElement.pathname.split('/');
		pathnameParts[3] = 'releases/tag'; // Replace `tree`
		anchorElement.pathname = pathnameParts.join('/');
	}
}

The two handlers could also be renamed to what they actually do since they don't actually handle the event; e.g. useTagsTab and updateLinksToTags respectively

Thanks Hardik 🌶


Search terms with '.' in polymorphic (STI) associations results in ActiveRecord::EagerLoadPolymorphicError

Ernie,
(Sorry for the long post, but I want to make sure you have all the information you need).
Given the following:
#person.rb
class Person < ActiveRecord::Base
end

#customer.rb
class Customer < Person
  has_many :orders, :as => :customer
# I know it looks like I don't need the polymorphic association, but I have other classes that
# can also be customers, like InstitutionalCustomer, etc.
end

# order.rb
class Order < ActiveRecord::Base
  belongs_to :customer, :polymorphic => true
end

When I try to search customer's emails I use (it's haml, but pretty simple markup):
= search_form_for [:admin, @q], :remote => true do |form|
  %p
    = form.label :first_name_or_last_name_cont, "Name cont"
    = form.text_field :first_name_or_last_name_cont
  %p
    = form.label :email_cont
    = form.text_field :email_cont
  %p
    = form.label :primary_phone_cont, "Phone"
    = form.text_field :primary_phone_or_shipping_addresses_phone_or_billing_addresses_phone_cont
  %p
    = form.submit 'Search', :class => 'primary button'

That works just fine. However, when I try to search for orders by customer's emails:
= search_form_for [:admin, @q], :remote => false do |f|
  %p
    = f.label :customer_of_Person_type_first_name, 'First Name'
    = f.text_field :customer_of_Person_type_first_name_cont
  %p
    = f.label :customer_of_Person_type_last_name, 'Last Name'
    = f.text_field :customer_of_Person_type_last_name_cont
  %p
    = f.label :customer_of_Person_type_email_cont, 'Email'
    = f.text_field :customer_of_Person_type_email_cont
  %p
    = f.submit 'Search', :class => 'primary button'

It results in an ActiveRecord::EagerLoadPolymorphicError (Can not eagerly load the polymorphic association :customer)
This happens when I use a search term that includes a '.' character (for example dan@dolphins.com). However if I use a term without the '.' then we do just fine (for example dan@dolphins).
Note that this only happens when searching for orders through the customer polymorphic association. If searching for customers only, the terms with '.' work just fine.
Thank you for your help and the gem (I am really making a whole lot of use both from ransack and squeel. Even using valium a bit now! Thanks again).

Can you post a full stack trace?

Wow that was fast!. I actually was just thinking I didn't send the stack trace:
I get this:
ActionView::Template::Error (Can not eagerly load the polymorphic association :customer):
	1: #orders
	2: 	= paginate @orders, :remote => true
  3: 	%table
  4: 		%thead
  5: 			%tr
  app/views/admin/orders/_orders.html.haml:2:in '_app_views_admin_orders__orders_html_haml___3044535085095656911_70239210854560'
 app/views/admin/orders/index.html.haml:13:in `_app_views_admin_orders_index_html_haml__1981676457914803811_70239216862540'

Which is probably not helpful at all, because it only refers to the portion in my views when the relation is actually being used.
However, I did find out something else:
My controller looks like this:
@orders = @q.result(:distinct => true).includes(:customer).order(:id.desc).page(params[:page])

Which works fine when email is not one of the terms being searched for (or doesn't have the '.'). However if I change the controller to:
@orders = @q.result(:distinct => true).order(:id.desc).page(params[:page])
# includes removed

Then all searches work. (Of course, now I can see in the logs a N+1 scenario).
By the way I am using rails 3.1.1.
How can I get you better information on the stack trace?
Thanks,

You should be able to click "full trace" on the stack trace in dev mode -- that's what I'm looking for. No guarantees that I can troubleshoot this tonight, but I won't be able to troubleshoot at all without the full trace.

Duh! Sorry, I forgot about that:
activerecord (3.1.1) lib/active_record/associations/join_dependency/join_association.rb:37:in `initialize'
polyamorous (0.5.0) lib/polyamorous/join_association.rb:24:in `initialize_with_polymorphism'
activerecord (3.1.1) lib/active_record/associations/join_dependency.rb:152:in `new'
activerecord (3.1.1) lib/active_record/associations/join_dependency.rb:152:in `build_join_association'
activerecord (3.1.1) lib/active_record/associations/join_dependency.rb:115:in `build'
polyamorous (0.5.0) lib/polyamorous/join_dependency.rb:52:in `build_with_polymorphism'
squeel (0.9.3) lib/squeel/adapters/active_record/join_dependency_extensions.rb:29:in `build_with_squeel'
activerecord (3.1.1) lib/active_record/associations/join_dependency.rb:123:in `block in build'
activerecord (3.1.1) lib/active_record/associations/join_dependency.rb:122:in `each'
activerecord (3.1.1) lib/active_record/associations/join_dependency.rb:122:in `build'
polyamorous (0.5.0) lib/polyamorous/join_dependency.rb:52:in `build_with_polymorphism'
squeel (0.9.3) lib/squeel/adapters/active_record/join_dependency_extensions.rb:29:in `build_with_squeel'
activerecord (3.1.1) lib/active_record/associations/join_dependency.rb:18:in `initialize'
activerecord (3.1.1) lib/active_record/relation/finder_methods.rb:224:in `new'
activerecord (3.1.1) lib/active_record/relation/finder_methods.rb:224:in `construct_relation_for_association_calculations'
activerecord (3.1.1) lib/active_record/relation/calculations.rb:153:in `calculate'
activerecord (3.1.1) lib/active_record/relation/calculations.rb:58:in `count'
kaminari (0.12.4) lib/kaminari/models/active_record_relation_methods.rb:19:in `total_count'
kaminari (0.12.4) lib/kaminari/models/page_scope_methods.rb:17:in `num_pages'
kaminari (0.12.4) lib/kaminari/helpers/action_view_extension.rb:21:in `paginate'
app/views/admin/orders/_orders.html.haml:2:in `_app_views_admin_orders__orders_html_haml___3044535085095656911_70239210854560'
actionpack (3.1.1) lib/action_view/template.rb:144:in `block in render'
activesupport (3.1.1) lib/active_support/notifications.rb:55:in `instrument'
actionpack (3.1.1) lib/action_view/template.rb:142:in `render'
actionpack (3.1.1) lib/action_view/renderer/partial_renderer.rb:256:in `render_partial'
actionpack (3.1.1) lib/action_view/renderer/partial_renderer.rb:228:in `block (2 levels) in render'
actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
actionpack (3.1.1) lib/action_view/renderer/partial_renderer.rb:227:in `block in render'
actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
actionpack (3.1.1) lib/action_view/renderer/partial_renderer.rb:219:in `render'
actionpack (3.1.1) lib/action_view/renderer/renderer.rb:41:in `render_partial'
actionpack (3.1.1) lib/action_view/helpers/rendering_helper.rb:27:in `render'
haml (3.1.3) lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
haml (3.1.3) lib/haml/helpers.rb:90:in `non_haml'
haml (3.1.3) lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
app/views/admin/orders/index.html.haml:13:in `_app_views_admin_orders_index_html_haml__1981676457914803811_70239216862540'
actionpack (3.1.1) lib/action_view/template.rb:144:in `block in render'
activesupport (3.1.1) lib/active_support/notifications.rb:55:in `instrument'
actionpack (3.1.1) lib/action_view/template.rb:142:in `render'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:40:in `block (2 levels) in render_template'
actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:39:in `block in render_template'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:47:in `render_with_layout'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:38:in `render_template'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:12:in `block in render'
actionpack (3.1.1) lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
actionpack (3.1.1) lib/action_view/renderer/template_renderer.rb:9:in `render'
actionpack (3.1.1) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.1.1) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.1.1) lib/abstract_controller/rendering.rb:120:in `_render_template'
actionpack (3.1.1) lib/action_controller/metal/streaming.rb:250:in `_render_template'
actionpack (3.1.1) lib/abstract_controller/rendering.rb:114:in `render_to_body'
actionpack (3.1.1) lib/action_controller/metal/renderers.rb:30:in `render_to_body'
actionpack (3.1.1) lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
actionpack (3.1.1) lib/abstract_controller/rendering.rb:99:in `render'
actionpack (3.1.1) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.1.1) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/Users/ylansegal/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:in `realtime'
activesupport (3.1.1) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
activerecord (3.1.1) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:39:in `render'
actionpack (3.1.1) lib/action_controller/metal/implicit_render.rb:10:in `default_render'
actionpack (3.1.1) lib/action_controller/metal/implicit_render.rb:5:in `send_action'
actionpack (3.1.1) lib/abstract_controller/base.rb:167:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
actionpack (3.1.1) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
activesupport (3.1.1) lib/active_support/callbacks.rb:435:in `block in _run__3136839687668098104__process_action__1680552988669657668__callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:207:in `block in _conditional_callback_around_195095'
activesupport (3.1.1) lib/active_support/callbacks.rb:318:in `around'
activesupport (3.1.1) lib/active_support/callbacks.rb:302:in `_callback_around_13'
activesupport (3.1.1) lib/active_support/callbacks.rb:206:in `_conditional_callback_around_195095'
activesupport (3.1.1) lib/active_support/callbacks.rb:416:in `_run__3136839687668098104__process_action__1680552988669657668__callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.1) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/rescue.rb:17:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `block in instrument'
activesupport (3.1.1) lib/active_support/notifications/instrumenter.rb:21:in `instrument'
activesupport (3.1.1) lib/active_support/notifications.rb:53:in `instrument'
actionpack (3.1.1) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.1.1) lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
activerecord (3.1.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
actionpack (3.1.1) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.1.1) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.1.1) lib/action_controller/metal.rb:193:in `dispatch'
actionpack (3.1.1) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.1.1) lib/action_controller/metal.rb:236:in `block in action'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `call'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:29:in `call'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:152:in `block in call'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:96:in `block in recognize'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:166:in `optimized_each'
rack-mount (0.8.3) lib/rack/mount/code_generation.rb:95:in `recognize'
rack-mount (0.8.3) lib/rack/mount/route_set.rb:141:in `call'
actionpack (3.1.1) lib/action_dispatch/routing/route_set.rb:532:in `call'
warden (1.0.5) lib/warden/manager.rb:35:in `block in call'
warden (1.0.5) lib/warden/manager.rb:34:in `catch'
warden (1.0.5) lib/warden/manager.rb:34:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.3.4) lib/rack/etag.rb:23:in `call'
rack (1.3.4) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/flash.rb:243:in `call'
rack (1.3.4) lib/rack/session/abstract/id.rb:195:in `context'
rack (1.3.4) lib/rack/session/abstract/id.rb:190:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/cookies.rb:331:in `call'
activerecord (3.1.1) lib/active_record/query_cache.rb:62:in `call'
activerecord (3.1.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:477:in `call'
activerecord (3.1.1) lib/active_record/identity_map.rb:152:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
activesupport (3.1.1) lib/active_support/callbacks.rb:392:in `_run_call_callbacks'
activesupport (3.1.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.1.1) lib/action_dispatch/middleware/callbacks.rb:28:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/reloader.rb:68:in `call'
rack (1.3.4) lib/rack/sendfile.rb:101:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
railties (3.1.1) lib/rails/rack/logger.rb:13:in `call'
rack (1.3.4) lib/rack/methodoverride.rb:24:in `call'
rack (1.3.4) lib/rack/runtime.rb:17:in `call'
activesupport (3.1.1) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.3.4) lib/rack/lock.rb:15:in `call'
actionpack (3.1.1) lib/action_dispatch/middleware/static.rb:53:in `call'
railties (3.1.1) lib/rails/engine.rb:456:in `call'
railties (3.1.1) lib/rails/railtie/configurable.rb:30:in `method_missing'
rack (1.3.4) lib/rack/urlmap.rb:52:in `block in call'
rack (1.3.4) lib/rack/urlmap.rb:46:in `each'
rack (1.3.4) lib/rack/urlmap.rb:46:in `call'
rack (1.3.4) lib/rack/showexceptions.rb:24:in `call'
thin (1.2.11) lib/thin/connection.rb:84:in `block in pre_process'
thin (1.2.11) lib/thin/connection.rb:82:in `catch'
thin (1.2.11) lib/thin/connection.rb:82:in `pre_process'
thin (1.2.11) lib/thin/connection.rb:57:in `process'
thin (1.2.11) lib/thin/connection.rb:42:in `receive_data'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
thin (1.2.11) lib/thin/backends/base.rb:61:in `start'
thin (1.2.11) lib/thin/server.rb:159:in `start'
thin (1.2.11) lib/thin/controllers/controller.rb:86:in `start'
thin (1.2.11) lib/thin/runner.rb:185:in `run_command'
thin (1.2.11) lib/thin/runner.rb:151:in `run!'
thin (1.2.11) bin/thin:6:in `<top (required)>'
/Users/ylansegal/.rvm/gems/ruby-1.9.2-p290@locum/bin/thin:19:in `load'
/Users/ylansegal/.rvm/gems/ruby-1.9.2-p290@locum/bin/thin:19:in `<main>'

Let me know if you need any more info.

I'm honestly not sure what about adding a period to the search term might be causing your issue. I'd be curious as to how things went without squeel installed/used as well, though -- or at least without symbol extensions.
Any chance you can provide me a small test app with which to play, or a failing spec for Ransack (you shouldn't have to modify the schema/blueprints for this)?

I'm sorry but my company doesn't allow me to give you a copy of our app. I will try to extract out enough of it, so I can recreate the problem.
In the meantime, I was trying to provide you with a failing spec, but encountered some problems bundling the gem file for ransack. Sorry :(
After I forked, I tried:
$ bundle install
Updating git://github.com/rails/arel.git
Updating git://github.com/rails/rails.git
Fetching source index for http://rubygems.org/
Could not find gem 'journey (~> 1.0.0)', which is required by gem 'ransack', in any of the sources.

After looking around a bit at your Gemfile, I also tried:
$ export RAILS=v3.1.1; export AREL=v2.2.1
$ bundle
Updating git://github.com/rails/arel.git
Updating git://github.com/rails/rails.git
Fetching source index for http://rubygems.org/
Could not find gem 'arel (~> 2.2.1)', which is required by gem 'activerecord', in any of the sources.

Can you help me in getting ransack bundled so I can play around with the specs?
Thanks,
--
Ylan
On Oct 12, 2011, at 1:52 PM, Ernie Miller wrote:

I'm honestly not sure what about adding a period to the search term might be causing your issue. I'd be curious as to how things went without squeel installed/used as well, though -- or at least without symbol extensions.
Any chance you can provide me a small test app with which to play, or a failing spec for Ransack (you shouldn't have to modify the schema/blueprints for this)?
--
Reply to this email directly or view it on GitHub:
https://github.com/ernie/ransack/issues/30#issuecomment-2386835

Ernie,
I couldn't get ransack itself bundled, so I can't provide a faling test (I don't use rspec, so it would have been an uphill battle anyway). I did create a very simple app that re-create the problem. In the process I also found another bug, where using the same polymorphic association on a STI causes ransack to return no results, when some would be expected.
Please see https://github.com/ylansegal/ransack_issue_30_demo
The only dependencies, besides the rails 3.1 default are ransack and mini-test (sorry I am still using test unit). I provided two tests that are failing: One causes the 'Can not eagerly load the polymorphic association :customer' and the other where the results are not expected.
The failing tests are in:
https://github.com/ylansegal/ransack_issue_30_demo/blob/master/test/functional/orders_controller_test.rb
You should be up and running by:
bundle
rake test

Hope this helps,
--
Ylan

Re-opening issue. I closed by mistake.


[Feature]: Ability to add a dotted line on Area chart

What problem does this feature solve?
Issue Description:
As of now, the area chart component in our application lacks the capability to display dotted lines. This feature enhancement request pertains to the inclusion of dotted lines within the area chart, providing users with the ability to visualize data trends more effectively.
Expected Behavior:
When configuring an area chart, users should be able to designate specific lines as dotted lines. This can be achieved by introducing a parameter in the chart configuration that controls the line style. The dotted line style should be visually distinct from solid lines, ensuring clear differentiation between data series where the chart is being built for prediction purposes.
What does the proposed API look like?
No response

#579 could probably do the trick ?

Thanks @mbauchet! Exactly what I was looking for.

Closing as dup of #579


GGNN refactoring

remove step argument from ggnn readout & update as discussed in #270

https://github.com/pfnet-research/chainer-chemistry/pull/292


prevent npe when onAfter is getting called out of band

... also bumped version of p6spy to 3.3.0

This logic in centralized in #455 though was waiting on another to say worth it before merge.
for this change, only thing I might suggest is only read the thread local once:
Tracer.SpanInScope scope = currentSpanInScope.get();
if (scope != null) {
  scope.close();
  currentSpanInScope.remove();
}

thanks again!


Point losses

after disconect point loss

me too

3 days point loss too

after disconect point loss

Bug (glitch) on the dashboard.


[edit][s]: refactpor push method and fix tests - #12

[x] call the authz method in pushBlob method
[x] refactor pushBlob method
[x] using data.js to open the file in pushBlob method
[x] fix tests

NOTE: The hash sha256 only available for FileInterface class in data.js
Acceptance https://github.com/datopian/ckan-client-js/issues/12

refactor push method
refactor authz method

@mariorodeghiero this PR talks about "push" method but i think you mean pushblob method.


chore(main): release 0.6.5

:robot: I have created a release beep boop
0.6.5 (2023-08-10)
Dependency Updates

deps: bump github.com/statnett/controller-runtime-viper from 0.2.2 to 0.2.3 (#505) (0c6915d)
deps: bump github.com/vektra/mockery/v2 from 2.32.2 to 2.32.3 (#489) (1ced865)
deps: bump github.com/vektra/mockery/v2 from 2.32.3 to 2.32.4 (#499) (56c7e86)
deps: bump library/golang from a0e3e68 to ec457a2 (#498) (6139e87)
deps: bump library/golang from 1.20 to 1.21 (#493) (5771ca1)
deps: bump sigs.k8s.io/controller-runtime from 0.15.0 to 0.15.1 (#491) (24b7e07)
deps: update ghcr.io/aquasecurity/trivy docker tag to v0.44.1 (#500) (3a1881a)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/statnett/image-scanner-operator/releases/tag/v0.6.5 :sunflower:


Automatically validate DEPENDENCIES.md

This PR adds scripts/check_dep_list.py, which validates that DEPENDENCIES.md is synced with Gopkg.toml.
The validation is performed automatically in CI.

Fixed the output of check_dep_list.py.
if Gopkg.toml and DEPENDENCIES.md differ, the script prints the difference in side-by-side style.
$ ./scripts/check_dep_list.py -v
Dependencies written in Gopkg.toml
- github.com/cpuguy83/strongerrors
- github.com/pkg/errors
- github.com/sirupsen/logrus
- github.com/spf13/cobra
- github.com/spf13/viper
- gopkg.in/yaml.v2
- k8s.io/client-go
- k8s.io/kubernetes

Dependencies written in DEPENDENCIES.md
- github.com/containerd/containerd         Apache-2.0
- github.com/cpuguy83/strongerrors         Apache-2.0
- github.com/pkg/errors                    BSD-2-Clause
- github.com/sirupsen/logrus               MIT
- github.com/stretchr/testify              MIT
- gopkg.in/yaml.v2                         Apache-2.0
- k8s.io/api                               Apache-2.0
- k8s.io/apimachinery                      Apache-2.0
- k8s.io/client-go                         Apache-2.0
- k8s.io/kubernetes                        Apach'-2.0

Difference between Gopkg.toml and DEPENDENCIES.md
github.com/spf13/cobra                   <
github.com/spf13/viper                   <
                                         > github.com/containerd/containerd
                                         > github.com/stretchr/testify

merged master.


Latest release (<IP_ADDRESS>) fails with PapiNoEventError: Event does not exist. (PAPI_ENOEVNT)

This is Ubuntu 22.04 on Linux 6.5.6.
Python 3.11.7 (main, Dec  8 2023, 18:56:58) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from pypapi import papi_high
>>> papi_high.ipc()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/itamarst/devel/sandbox/venv311/lib/python3.11/site-packages/pypapi/exceptions.py", line 197, in papi_error_wrapper
    raise object_()
pypapi.exceptions.PapiNoEventError: Event does not exist. (PAPI_ENOEVNT)

Same problem with <IP_ADDRESS>.

Hello,
This can be caused because some events are not available / supported on all CPU.
Anyway, this is most probably not a bug related to the Python bindings but to the PAPI library itself. Please report it upstream :)


Issue removing archive

Hello
I've got some trouble about removing old archive. (older than a month)
When I run the command c14 remove I've got this warning

WARN[0000] xxxxx: Archive xxxxx not found

But when I'm using the web interface I can remove the concerned archive without any problem
What could be the problem?
Thanks
Matthieu

Same issue.
Sometimes it works, sometimes it doesn't.
Actually I don't understand your product. There is no documentation, no explaination, no support.

What I tried and got:

when I try to remove archive yyy, I get Archive yyy not found
when I launch unfreeze on archive xxx , then I launch remove archive on yyy, it works.

Neither verbose nor debug mode do anything when calling:
c14 -D remove yyyyy

@agirot Hi, is anyone from online reading issues ?


python3Packages.accelerate: init at 0.18.0

Description of changes
Adds accelerate: A simple way to train and use PyTorch models with multi-GPU, TPU, mixed-precision.
Things done

Built on platform(s)

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

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

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

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

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

[x] Fits CONTRIBUTING.md.

I've been testing this package using a flake I've setup to run the Vicuna language model locally: https://github.com/kira-bruneau/FastChat/blob/gfx1100/flake.nix

Result of nixpkgs-review pr 227133 run on x86_64-linux 1

2 packages built:

python310Packages.accelerate
python310Packages.accelerate.dist

Added in https://github.com/NixOS/nixpkgs/commit/71e8e2148d920ba6a1db6f64e94cf135620c4923


[Bug]: ConnectTimeoutError when connecting to Opensearch endpoint using OpensearchVectorClient

Bug Description
I was following this document https://docs.llamaindex.ai/en/latest/examples/vector_stores/OpensearchDemo.html to create an OpenSearchVectorClient. When trying to instantiate a client using:
client = OpensearchVectorClient(
    endpoint, idx, 1536, embedding_field=embedding_field, text_field=text_field
)

I run into ConnectionTimeout: ConnectionTimeout caused by - ConnectTimeout(HTTPSConnectionPool(host='<endpoint>', port=9200): Max retries exceeded with url: /<idx> (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9eb830ba60>, 'Connection to <endpoint>. (connect timeout=10)')))
Using llama-index version 0.9.9
Opensearch cluster created in an AWS account. (Using the endpoint without https://)
Version
0.9.9
Steps to Reproduce

Create an Opensearch cluster.
Execute the code below

from os import getenv
from llama_index import SimpleDirectoryReader
from llama_index.vector_stores import (
    OpensearchVectorStore,
    OpensearchVectorClient,
)
from llama_index import VectorStoreIndex, StorageContext

# http endpoint for your cluster (opensearch required for vector index usage)
endpoint = <endpoint>

# index to demonstrate the VectorStore impl
idx = <idx>

# load some sample data
documents = SimpleDirectoryReader(<data>).load_data()

# OpensearchVectorClient stores text in this field by default
text_field = "content"

# OpensearchVectorClient stores embeddings in this field by default
embedding_field = "embedding"

# OpensearchVectorClient encapsulates logic for a single opensearch index with vector search enabled
client = OpensearchVectorClient(
    endpoint, idx, 1536, embedding_field=embedding_field, text_field=text_field
)

Relevant Logs/Tracbacks
WARNING:opensearch:GET https://<endpoint>:9200/<idx> [status:N/A request:40.043s]
Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
    conn = connection.create_connection(
  File "/opt/conda/lib/python3.10/site-packages/urllib3/util/connection.py", line 95, in create_connection
    raise err
  File "/opt/conda/lib/python3.10/site-packages/urllib3/util/connection.py", line 85, in create_connection
    sock.connect(sa)
TimeoutError: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py", line 703, in urlopen
    httplib_response = self._make_request(
  File "/opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py", line 386, in _make_request
    self._validate_conn(conn)
  File "/opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "/opt/conda/lib/python3.10/site-packages/urllib3/connection.py", line 358, in connect
    self.sock = conn = self._new_conn()
  File "/opt/conda/lib/python3.10/site-packages/urllib3/connection.py", line 179, in _new_conn
    raise ConnectTimeoutError(
urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f9eb81590c0>, 'Connection to <endpoint> timed out. (connect timeout=20)')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 489, in send
    body=request.body,
  File "/opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py", line 787, in urlopen
    retries = retries.increment(
  File "/opt/conda/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='<endpoint>', port=9200): Max retries exceeded with url: /<idx>(Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9eb81590c0>, 'Connection to <endpoint> timed out. (connect timeout=20)'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/conda/lib/python3.10/site-packages/opensearchpy/connection/http_requests.py", line 190, in perform_request
    response = self.session.send(prepared_request, **send_kwargs)
  File "/opt/conda/lib/python3.10/site-packages/requests/sessions.py", line 701, in send
  File "/opt/conda/lib/python3.10/site-packages/requests/adapters.py", line 553, in send
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='<endpoint>', port=9200): Max retries exceeded with url: /<idx> (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9eb81590c0>, 'Connection to <endpoint> timed out. (connect timeout=20)'))
---------------------------------------------------------------------------
TimeoutError                              Traceback (most recent call last)
File /opt/conda/lib/python3.10/site-packages/urllib3/connection.py:174, in HTTPConnection._new_conn(self)
    173 try:
--> 174     conn = connection.create_connection(
    175         (self._dns_host, self.port), self.timeout, **extra_kw
    176     )
    178 except SocketTimeout:

File /opt/conda/lib/python3.10/site-packages/urllib3/util/connection.py:95, in create_connection(address, timeout, source_address, socket_options)
     94 if err is not None:
---> 95     raise err
     97 raise socket.error("getaddrinfo returns an empty list")

File /opt/conda/lib/python3.10/site-packages/urllib3/util/connection.py:85, in create_connection(address, timeout, source_address, socket_options)
     84     sock.bind(source_address)
---> 85 sock.connect(sa)
     86 return sock

TimeoutError: timed out

During handling of the above exception, another exception occurred:

ConnectTimeoutError                       Traceback (most recent call last)
File /opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py:703, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    702 # Make the request on the httplib connection object.
--> 703 httplib_response = self._make_request(
    704     conn,
    705     method,
    706     url,
    707     timeout=timeout_obj,
    708     body=body,
    709     headers=headers,
    710     chunked=chunked,
    711 )
    713 # If we're going to release the connection in ``finally:``, then
    714 # the response doesn't need to know about the connection. Otherwise
    715 # it will also try to release it and we'll have a double-release
    716 # mess.

File /opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py:386, in HTTPConnectionPool._make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
    385 try:
--> 386     self._validate_conn(conn)
    387 except (SocketTimeout, BaseSSLError) as e:
    388     # Py2 raises this as a BaseSSLError, Py3 raises it as socket timeout.

File /opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py:1042, in HTTPSConnectionPool._validate_conn(self, conn)
   1041 if not getattr(conn, "sock", None):  # AppEngine might not have  `.sock`
-> 1042     conn.connect()
   1044 if not conn.is_verified:

File /opt/conda/lib/python3.10/site-packages/urllib3/connection.py:358, in HTTPSConnection.connect(self)
    356 def connect(self):
    357     # Add certificate verification
--> 358     self.sock = conn = self._new_conn()
    359     hostname = self.host

File /opt/conda/lib/python3.10/site-packages/urllib3/connection.py:179, in HTTPConnection._new_conn(self)
    178 except SocketTimeout:
--> 179     raise ConnectTimeoutError(
    180         self,
    181         "Connection to %s timed out. (connect timeout=%s)"
    182         % (self.host, self.timeout),
    183     )
    185 except SocketError as e:

ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f9eb81590c0>, 'Connection to <endpoint> timed out. (connect timeout=20)')

During handling of the above exception, another exception occurred:

MaxRetryError                             Traceback (most recent call last)
File /opt/conda/lib/python3.10/site-packages/requests/adapters.py:489, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    488 if not chunked:
--> 489     resp = conn.urlopen(
    490         method=request.method,
    491         url=url,
    492         body=request.body,
    493         headers=request.headers,
    494         redirect=False,
    495         assert_same_host=False,
    496         preload_content=False,
    497         decode_content=False,
    498         retries=self.max_retries,
    499         timeout=timeout,
    500     )
    502 # Send the request.
    503 else:

File /opt/conda/lib/python3.10/site-packages/urllib3/connectionpool.py:787, in HTTPConnectionPool.urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
    785     e = ProtocolError("Connection aborted.", e)
--> 787 retries = retries.increment(
    788     method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
    789 )
    790 retries.sleep()

File /opt/conda/lib/python3.10/site-packages/urllib3/util/retry.py:592, in Retry.increment(self, method, url, response, error, _pool, _stacktrace)
    591 if new_retry.is_exhausted():
--> 592     raise MaxRetryError(_pool, url, error or ResponseError(cause))
    594 log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)

MaxRetryError: HTTPSConnectionPool(host='<endpoint>', port=9200): Max retries exceeded with url: /<idx> (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9eb81590c0>, 'Connection to <endpoint> timed out. (connect timeout=20)'))

During handling of the above exception, another exception occurred:

ConnectTimeout                            Traceback (most recent call last)
File /opt/conda/lib/python3.10/site-packages/opensearchpy/connection/http_requests.py:190, in RequestsHttpConnection.perform_request(self, method, url, params, body, timeout, allow_redirects, ignore, headers)
    189 try:
--> 190     response = self.session.send(prepared_request, **send_kwargs)
    191     duration = time.time() - start

File /opt/conda/lib/python3.10/site-packages/requests/sessions.py:701, in Session.send(self, request, **kwargs)
    700 # Send the request
--> 701 r = adapter.send(request, **kwargs)
    703 # Total elapsed time of the request (approximately)

File /opt/conda/lib/python3.10/site-packages/requests/adapters.py:553, in HTTPAdapter.send(self, request, stream, timeout, verify, cert, proxies)
    552     if not isinstance(e.reason, NewConnectionError):
--> 553         raise ConnectTimeout(e, request=request)
    555 if isinstance(e.reason, ResponseError):

ConnectTimeout: HTTPSConnectionPool(host='<endpoint>', port=9200): Max retries exceeded with url: /<idx>(Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9eb81590c0>, '<endpoint> timed out. (connect timeout=20)'))

During handling of the above exception, another exception occurred:

ConnectionTimeout                         Traceback (most recent call last)
Cell In[248], line 25
     21 embedding_field = "embedding"
     22 # OpensearchVectorClient encapsulates logic for a
     23 # single opensearch index with vector search enabled
     24 # try :
---> 25 client = OpensearchVectorClient(
     26     endpoint, idx, 1024, embedding_field=embedding_field, text_field=text_field, http_auth=awsauth, use_ssl=True,
     27         verify_certs=True,
     28         connection_class=RequestsHttpConnection,
     29     timeout=20
     30 )
     31 # except Exception as e:
     32 #     print("ERROR")
     33 #     import logging
   (...)
     38 # # initialize an index using our sample data and the client we just created
     39 # index = VectorStoreIndex(google_nodes, storage_context=storage_context)

File /opt/conda/lib/python3.10/site-packages/llama_index/vector_stores/opensearch.py:225, in OpensearchVectorClient.__init__(self, endpoint, index, dim, embedding_field, text_field, method, max_chunk_bytes, **kwargs)
    223 not_found_error = _import_not_found_error()
    224 try:
--> 225     self._os_client.indices.get(index=self._index)
    226 except not_found_error:
    227     self._os_client.indices.create(index=self._index, body=idx_conf)

File /opt/conda/lib/python3.10/site-packages/opensearchpy/client/utils.py:179, in query_params.<locals>._wrapper.<locals>._wrapped(*args, **kwargs)
    176         if v is not None:
    177             params[p] = _escape(v)
--> 179 return func(*args, params=params, headers=headers, **kwargs)

File /opt/conda/lib/python3.10/site-packages/opensearchpy/client/indices.py:197, in IndicesClient.get(self, index, params, headers)
    194 if index in SKIP_IN_PATH:
    195     raise ValueError("Empty value passed for a required argument 'index'.")
--> 197 return self.transport.perform_request(
    198     "GET", _make_path(index), params=params, headers=headers
    199 )

File /opt/conda/lib/python3.10/site-packages/opensearchpy/transport.py:409, in Transport.perform_request(self, method, url, headers, params, body)
    407             raise e
    408     else:
--> 409         raise e
    411 else:
    412     # connection didn't fail, confirm it's live status
    413     self.connection_pool.mark_live(connection)

File /opt/conda/lib/python3.10/site-packages/opensearchpy/transport.py:370, in Transport.perform_request(self, method, url, headers, params, body)
    367 connection = self.get_connection()
    369 try:
--> 370     status, headers_response, data = connection.perform_request(
    371         method,
    372         url,
    373         params,
    374         body,
    375         headers=headers,
    376         ignore=ignore,
    377         timeout=timeout,
    378     )
    380     # Lowercase all the header names for consistency in accessing them.
    381     headers_response = {
    382         header.lower(): value for header, value in headers_response.items()
    383     }

File /opt/conda/lib/python3.10/site-packages/opensearchpy/connection/http_requests.py:207, in RequestsHttpConnection.perform_request(self, method, url, params, body, timeout, allow_redirects, ignore, headers)
    205         raise SSLError("N/A", str(e), e)
    206     if isinstance(e, requests.Timeout):
--> 207         raise ConnectionTimeout("TIMEOUT", str(e), e)
    208     raise ConnectionError("N/A", str(e), e)
    210 # raise warnings if any from the 'Warnings' header.

ConnectionTimeout: ConnectionTimeout caused by - ConnectTimeout(HTTPSConnectionPool(host='<endpoint>', port=9200): Max retries exceeded with url: /<idx> (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f9eb81590c0>, 'Connection to <endpoint> timed out. (connect timeout=20)')))

I was able to resole it by adding port .
client = OpensearchVectorClient(endpoint, idx, 1024, embedding_field=embedding_field, text_field=text_field, http_auth=awsauth, use_ssl=True, verify_certs=True, connection_class=RequestsHttpConnection, timeout=10, port=port
)


Bubble Hit Game

Pull Request for PyVerse 💡
Requesting to submit a pull request to the PyVerse repository.

Issue Title
Please enter the title of the issue related to your pull request.
Bubble Hit Game

[X] I have provided the issue title.

Info about the Related Issue
What's the goal of the project?
The aim of the project is to create a simple, fun, and interactive "Bubble Hit" game where players shoot bubbles at matching colored bubbles to pop them, with the goal of clearing the screen.

[X] I have described the aim of the project.

Name
Please mention your name.
Enter your name here.
Venkata Ramana

[X] I have provided my name.

GitHub ID
Please mention your GitHub ID.
Enter your GitHub ID here.
ramana2074

[X] I have provided my GitHub ID.

Email ID
Please mention your email ID for further communication.
Enter your email ID here.
<EMAIL_ADDRESS>
[X] I have provided my email ID.

Identify Yourself
Mention in which program you are contributing (e.g., WoB, GSSOC, SSOC, SWOC).
Enter your participant role here.
GSSOC Extended Contributor

[X] I have mentioned my participant role.

Closes
Enter the issue number that will be closed through this PR.
*Closes: #364

[X] I have provided the issue number.

Describe the Add-ons or Changes You've Made
Give a clear description of what you have added or modified.
I have added a Bubble Hit Game, where the player shoots bubbles of different colors at a cluster of bubbles on the screen. The goal is to match 3 or more bubbles of the same color to clear them. The game includes features like shooting angle adjustment, random bubble generation, and a score counter.

[X] I have described my changes.

Type of Change
Select the type of change:

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Describe how your changes have been tested.
The Bubble Hit game has been tested in different screen sizes to ensure the gameplay adapts properly. It has been checked for smooth bubble shooting and proper collision detection. I ran it in various environments to verify no lag or issues in bubble generation and popping.

[X] I have described my testing process.

Checklist
Please confirm the following:

[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, particularly wherever it was hard to understand.
[X] I have made corresponding changes to the documentation.
[X] My changes generate no new warnings.
[X] I have added things that prove my fix is effective or that my feature works.
[X] Any dependent changes have been merged and published in downstream modules.

@ramana2074 sorry but this PR will not going to be merged as the repo is based on the python itself and i can't able to see any python scripts here.


Ansible  : TASK [master : Create symlinks]  fails

on ubuntu 16.04 the ansible role fails at the point where it has to create symlinks with the error below. Can someone give me some guidance on this ? thanks
TASK [master : Create symlinks] ***********************************************************************************************************************************************************************************************************
failed: [ubuntu1] (item=kube-apiserver) => {"failed": true, "gid": 0, "group": "root", "item": "kube-apiserver", "mode": "0755", "msg": "refusing to convert between file and link for /usr/bin/kube-apiserver", "owner": "root", "path": "/usr/bin/kube-apiserver", "size": 124759446, "state": "file", "uid": 0}
failed: [ubuntu1] (item=kube-controller-manager) => {"failed": true, "gid": 0, "group": "root", "item": "kube-controller-manager", "mode": "0755", "msg": "refusing to convert between file and link for /usr/bin/kube-controller-manager", "owner": "root", "path": "/usr/bin/kube-controller-manager", "size": 101623874, "state": "file", "uid": 0}
failed: [ubuntu1] (item=kube-scheduler) => {"failed": true, "gid": 0, "group": "root", "item": "kube-scheduler", "mode": "0755", "msg": "refusing to convert between file and link for /usr/bin/kube-scheduler", "owner": "root", "path": "/usr/bin/kube-scheduler", "size": 52878477, "state": "file", "uid": 0}
failed: [ubuntu1] (item=kubectl) => {"failed": true, "gid": 0, "group": "root", "item": "kubectl", "mode": "0755", "msg": "refusing to convert between file and link for /usr/bin/kubectl", "owner": "root", "path": "/usr/bin/kubectl", "size": 50351990, "state": "file", "uid": 0}

refusing to convert between file and link for /usr/bin/kube-apiserver
Seems that the binary is already installed.

i had to manually symlink the binaries and then the role worked


Improve the ergonomics of .slice with IntoSlice trait

The owned slice API has a flaw: b"hello".to_vec().slice(1..).slice(..3) produces a
Slice<Slice<Vec<u8>>>.
It is easy to inadvertently end up with nested Slice wrappers, which adds unnecessary overhead to the buffer accessor methods and makes the results of .begin() and .end() difficult to interpret.
Move the slice method to a new trait IntoSlice, which is used to uniformly convert buffer parameters to a Slice<T>, with the impl of InfoSlice for Slice<T> closing onto Slice<T>.
Instead of IoBuf which can no longer be implemented for Slice, the buffer parameter type in the generic I/O operation methods is bound with IntoSlice to keep the convenient polymorphism, while reducing code bloat in monomorphization when the application passes both buffers and their slices to tokio-uring operations. Consequently, all buffers returned from the operations are wrapped into Slice.
This PR incorporates #52 in order to get tests to pass.

@mzabaluev any interest in completing this?

@Noah-Kennedy Yes, I should update the PR at least, will get to it soon.

@Noah-Kennedy I have rebased the branch against master and updated the newly added socket ops SendTo and RecvFrom along with their user-facing methods to the IntoSlice API.

@mzabaluev I know you were asked this before. Any interest in merging with master and pushing up changes again?
This looks like it was going to be important and  @Noah-Kennedy was happy with the direction but was left requiring another review. I would like to help if I can.

@Noah-Kennedy Should this go in? I can work on rebasing.

I will try to update this over the weekend.

@mzabaluev will you have a look at these CI errors? I suspect they come from documentation examples that were added since you started this PR. If you don't have time, I can take a look today.

@mzabaluev I have fixed up the CI issues locally. Let me know if its okay with you that I push them up to this branch.

All, I'll add I'm also looking at this, although my aims are a little broader. I think struct Slice + Pincan completely replace the existing IoBuf and IoMuttraits, giving both the very nice simplification shown in this PR, but also generalizing existing methods over any owned buffer which derefs to bytes. I will push as a PR for comment

@mzabaluev I have fixed up the CI issues locally. Let me know if its okay with you that I push them up to this branch.

@FrankReh Go ahead. I suppose the newly added methods like write_all need to be converted to the new API.

@mzabaluev Would you mind reviewing the changes I made to the write_all example and write_all method for tcp, and perhaps the doc examples that use write_all too? Please check that the signatures look right, to be conforming with the others you had changed, that my logic for making progress in the loop inside write_all looks right to you and perhaps also that the progress method seems idiomatic, and finally, my use of in_begin and  in_end to track what the original slice looked like coming in so it could be returned.

We expect the test to fail today for reasons not related to this commit.

@FrankReh The write_all changes look fine, thank you.

@mzabaluev Then this is ready. When master is ready for such a change, @Noah-Kennedy will likely merge. Thank you. It's surprising the old Slice of Slice ... lived here for the last year.

@FrankReh

I thought they should be pub(crate) but then I found some unit tests failing and decided to leave well-enough alone.

You are right, I've now fixed that.

Okay. Will wait on @Noah-Kennedy as he had something he wanted to get in first. This still looks good to me.

Superseded by #163.


feat: add basic .editorconfig

This PR is adding a basic .editorconfig.

I use Prettier for this project, and I think it handles most of the same formatting settings as this file? Since I'm the only maintainer of this project, and don't actually use editorconfig, I'd prefer not to introduce something that is unlikely to be maintained over time.

Closing per the aforementioned comment.


Use Rails cache for geocoding

We currently use the geocoder gem's built-in caching, but that has a
number of issues:

it stores the entire HTTP response from the geocoding service in the
cache, when all we care about is the coordinates, taking up massive
amounts of cache memory
it needs custom code to be able to handle key expiry
it relies on the connection pool of the redis-objects gem (which we
no longer use for anything else)

Now that we can use Rails's built in cache, we can do better.

Add hiredis gem for better Redis performance
Remove no longer used redis-objects gem
Use Rails cache in Geocoding instead of using the geocoder
gem's caching
Increase cache duration to 30 days

Review app deployed to https://teaching-vacancies-review-pr-2768.london.cloudapps.digital


Food

I Created model for "Food" table with columns: "Name", "Measurement unit", "Price", "Quantity".
I created a Food controller:

action "index" to show the food list.
action "new" to show add food form.
action "create" to allow creation of new food.

I created app/views/foods/index.html.erb
I created app/views/foods/new.html.erb
I check rspec and all tests pass.

THX


Fixed attach/detach/isAttached

Fix for #413.  Fixed the broken logic and made it so that detach and isAttached both succeed even if the JVM is not started.  Added appropriate test case.
@marscher Quick check, are you still around to review or should I commit as needed to get the head back to production state?

Thanks for fixing this.
Am 12. Mai 2019 19:14:44 MESZ schrieb Karl Nelson<EMAIL_ADDRESS>
Fix for #413.  Fixed the broken logic and made it so that detach and
isAttached both succeed even if the JVM is not started.  Added
appropriate test case.
@marscher Quick check, are you still around to review or should I
commit as needed to get the head back to production state?
You can view, comment on, or merge this pull request online at:
https://github.com/jpype-project/jpype/pull/417
-- Commit Summary --

Fixed attach/detach/isAttached

-- File Changes --
M native/common/jp_env.cpp (2)
M native/python/pyjp_module.cpp (7)
A test/jpypetest/thread.py (46)
-- Patch Links --
https://github.com/jpype-project/jpype/pull/417.patch
https://github.com/jpype-project/jpype/pull/417.diff

Please commit/merge whatever you need to get back to this "production" state :+1:


Fix bundle and code for API v1

Description

expose v1 and v1alpha1 of DSC in CSV
in code point to v1
add currently supported Managed and Removed as enum, can remove when we supposed Unmanaged and Force

How Has This Been Tested?

Merge criteria:

local build image: quay.io/wenzhou/opendatahub-operator-catalog:v2.8.25
create DSC instance from Yaml view

create DSC instance from Console view

installed DSC CRD

[x] The commits are squashed in a cohesive manner and have meaningful messages.
[ ] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[ ] The developer has manually tested the changes and verified that the changes work

Thank you @zdtsw !


Add contract address calculator based on from and nonce

Closes #88

@7sne hi. Any chance this and my other PRs will be merged? I use the address calculator extensively at work and it would be nice if it was accessible at https://tools.deth.net.

@7sne hi. Any chance this and my other PR will be merged? I use the address calculator extensively at work and it would be nice if it was accessible at https://tools.deth.net.

Hello @olehmisar. I'm really glad and thankful for your contributions to this project. Unfortunately, I've been really busy lately and have little time for this project. Anyways, I will try to look into your changes as soon as I can.


Improve mssql ODBC driver selection

At the moment the mssql driver auto-selection process just picks the first one that matches sql server.
Based on our understanding in #62
Prefer ODBC Driver 17 for SQL Server, possibly pattern matching to achieve the "latest" and then apply an ordering, at which point we can fall back to the old behaviour.
This needs some additional research and understanding into the ODBC drivers available on different systems.

Also, when an incorrect driver is selected, the following error is raised:
pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified (0) (SQLDriverConnect)')

It would be nice if the CLI could intercept this and provide a more descriptive error.


Could not load file or assembly 'netstandard, Version=<IP_ADDRESS>, Culture=neutral

when publishing a single .exe in .net 3 I'm getting this error when I try to instantiate the engine

dotnet publish -c Release -r win-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true --self-contained true

Could not load file or assembly 'netstandard, Version=<IP_ADDRESS>, Culture=neutral
 var engine = new TesseractEngine(keyDir, item.lang, EngineMode.Default); works fine when i'm debugging
I don't know if settingthe custom search willsolve this. still not working though   var assembly = Assembly.GetEntryAssembly();
          var loc = assembly.Location;
          var name = $"{assembly.GetName().Name}.dll";
          loc = loc.Replace(name, "");
          TesseractEnviornment.CustomSearchPath = loc;

@charlesw

best I could tell the error is in

private static RuntimeDllImportAttribute GetRuntimeDllImportAttribute(MethodInfo methodInfo)
        {}

var attributes = methodInfo.GetCustomAttributes(mType, true);

I might be related to needing to explicitly reference in the csproj netstandard

https://github.com/dotnet/standard/issues/542

finally some progress, the trim is removing a dll used, haven't figured out which yet
`dotnet publish -c Release -r win-x64 -p:PublishTrimmed=true --self-contained true
removed -p:PublishSingleFile=true

adding a trimmer exclusion solved it for me in the csproj
<TrimmerRootAssembly Include="netstandard" />


arch/arm64: Implement ASID support in ARM64 MMU

Improves a lot context-switch performance.
TLB Invalidating and the nG bit are used conservatively. This could be improved in future work.
Note: MMU configurations changes are known to be error prone. Please have someone review this patch very carefully.

Thanks for this work.
Some comments:

Could you provide numbers in the commit log illustrating the context
switch improvements? For example, the output from tests/benchmarks/sched
before and after this change.

Please define next_asid as a static variable.

If you remove is_ptable_active() you should probably replace those
invalidate_tlb_all() invocations that were conditional on
is_ptable_active() by an ASID-based TLB invalidate version, otherwise
performance will likely become worse not better.

This code:

        if ((next_asid >= (1U << VM_ASID_BITS)) || (next_asid == 0)) {
                next_asid = 1;
        }

Testing against 0 is redundant as it will never happen.

I am also curious about the improvements :)

Excellent.
If you could add your test code in tests/kernel/sched/ and then
include those results in the commit log for the ASID support
that'd be perfect.


'unexpected key "module.layer_module.0.weight" in state_dict'

when I test my model, the problem 'unexpected key "module.layer_module.0.weight" in state_dict'  happened. Did you meet the problem?

The link https://discuss.pytorch.org/t/solved-keyerror-unexpected-key-module-encoder-embedding-weight-in-state-dict/1686 is work for me.

I also encountered this error "KeyError: 'unexpected key "module.layer_module.0.weight" in state_dict'". Have you solved the probelm? @shenqixiaojiang Thanks!


Anchor component to add to points on any given page

As an editor I want a component that represent an anchor point that I can insert on any given page
Acceptance criteria

Anchor component is available in Sanity

Connected to #346

For CTA (links, buttons) it should be possible to reference an anchor point. We need to add a reference field where the editors type in the actual #reference.
something like:

We have to decide where the anchors shall be placed. We have discussed adding them on header, H2 level. Another option could be to add the anchor on the component level (to the containers).

@BirteThornquist One addition to this should be to also add anchor points to the ACCORIDON component. Some testing has been done below and its seems strange to add a Text component just for the title and then a separate component for the accordion. If we just use the Accordion we can add title/ingress and drop down description in one component and this also helps in the component overview for moving by having just one.

Absolutely @nicholas-haggerty, we should have anchor in the accordion component itself. I guess it will be use cases where you would want to anchor to a specific accordion item? Or just to the container? Should it be possible to add an anchor to the component title and also the items title? Is here any technical limitations to anchor to an accordion item @wenche?

@BirteThornquist Lets add to the component/container only.

@BirteThornquist @nicholas-haggerty  Is this ready to be finalised and moved into "Ready for implementation"? We should update the Acceptance criteria with the conclusions from the UX and discovery phase

@BirteThornquist I have updated with some comments, feel free to add more. I will move to Ready for Imp....

hi @nicholas-haggerty I can't find the comments... Did you comment in another issue or in Figma maybe?

Hey, to the acceptance criteria above

@nicholas-haggerty hmm - can't see them... Maybe you forgot to save...?

@BirteThornquist  nnnnnnnooooooowwwwwwww they are there :)

@nicholas-haggerty  Just to make it very clear in this issue itself: Internal links in rich text editors should not have the option to add a reference. This is just for standalone C2A buttons and links.

Look into scroll-margin-top to offset menu

There should be additional validation for adding an anchor to a component, the value added there should be unique for the document - having multiple elements with the same ID value is invalid HTML and can give unexpected results with linking to it

A field for adding an anchor has been added to the Text block and Accordion component:

In addition a field has been added to the link selector component and the people promotion component in order to link directly to said anchors:

The validation for these fields are as follows:

Can only use letters, numbers, hyphens ( - ), and underscores ( _ )
Can not use symbols, so adding the # symbol before it is not needed
Adding an anchor to the component is optional, adding an anchor reference to a link is also optional
The anchor you add to a component has to be unique for that page, meaning you cannot have several components with the same anchor on the same page.
No white space is allowed, if the anchor consists of several words you should separate them with either hyphens and/or underscores.

Examples:
This is invalid: this is a test
This is valid: this-is-a-test
This is also valid: this_is_a_test

There is currently not a limit where you can only add an anchor reference to an internal link. There is nothing stopping you from adding it for external or static links - we are assuming this should work out of the box but we have no control over external websites, and limited control over the static pages so this should be tested.
Creating a URL for linking to a section directly is as simple as just adding #this-is-a-test to the end of a URL where this-is-a-test is the value of the anchor you want to link to. This is just using the default browser behaviour, so as long as there is an element on the page that has an ID with that value, it should work.

@BirteThornquist could you have a look at the Sanity part of this? You can test it in the Text Block component for adding an anchor, and for example the Link/Action on the Teaser component for linking to anchors.

LGTM Sven 👍

@meols This should now be ready for review, see my comment above for details on how it's implemented.
It should be pretty solid so I'm reasonably optimistic 🤞

@SvSven @meols Looks good to go, nice work

Great work @SvSven - thanks!


New fields in Pod Security Policy not documented

Ref kubernetes/kubernetes#53179, flexvolumes can be specified in PSP.
This is not documented.

/assign
Will prepare a PR after https://github.com/kubernetes/website/pull/6378

@wanghaoran1988 ping :)

release 1.9 branch pr : https://github.com/kubernetes/website/pull/6563
master branch pr: https://github.com/kubernetes/website/pull/6562/
@php-coder PTAL

Could it be closed or there is still something left?


Explanation about mandatory https_port field

The Issue
The description in the comments in the config.yaml file misses a notice that https_port is mandatory to fill.
How This PR Solves The Issue
Adds this notice to the description.
Manual Testing Instructions
Automated Testing Overview

Related Issue Link(s)
Fixes https://github.com/ddev/ddev/issues/4864
Release/Deployment Notes

I've added a short description to the PR.


bugfix: fix post start script failure when launching jindo fuse sidecar

Ⅰ. Describe what this PR does
This PR changes the mount path from /jfs/jindofs-fuse to /jfs to fix post start script failure described in #3242
Ⅱ. Does this pull request fix one issue?

fixes #3242
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

/hold

/test fluid-e2e

/test fluid-e2e

/test fluid-e2e

/test fluid-e2e


fix: log error on invalid state transition of received state instead of throwing

You may want to store a state that is not a valid transition from a previously supported one (e.g., a new ledger update) but not consider it supported. In that case, you still want to check if a valid transition is there to determine if it is in fact supported but you don't want to discard the new state entirely.

Further context: in ledger funding, anytime you propose a new state you sign a state that isn't a valid transition from the old state. It therefore doesn't seem that performing the validTransition check at the time of signing is the right thing to do. This PR disables the check while we rethink the strategy, as the current approach is blocking ledger channels.
In general, it seems like whether s1 -> s2 is a validTransition is just one factor that the wallet needs to consider when signing transitions. It's also a piece of information that the wallet needs to store, as it needs to know it when figuring out if a state is supported or not. (Complicating this is the fact that, when/if we allow multiple states per turnNum, it could be a valid transition from multiple states, and this would be important to know because it might be supported along one path and not another. We could probably leave this for now though.)

Possible solution for the short term:

If a channel has a non-empty app-definition then we only store states that are validTransitions.

This covers updateChannel and pushMessage
It means we don't have to store the valid transition information, as we know that if s1 and s2 are in the store, and the turn num increments, then s1 -> s2 is a valid transition (as we don't allow duplicate states with the same turn number)

If a channel has an empty app-definition, we don't require states to be validTransitions once the channel is running.


Check the proper behavior of probability weighting normalization

As expressed in #42 and #43, we would like to check if normalization has a proper behavior.
"Normalization" refers to probability weighting normalization, as described in "Identifying causal mechanisms (primarily) based on inverse probability weighting", Huber (2014), DOI: 10.1002/jae.2341
We normalize the probabilities involved in score functions by dividing by their average on all the sample, respectively for treated and non-treated units. I describe that in my internship report page 22.
As far as I understood, it is a trick supposed to eliminate selection bias and make the estimation robust to extreme probability values.
A possible test would be to compare normalized and non-normalized estimators, or just to check the relative error like all other estimators (just add it to the tolerance dictionary).
As for now, normalization is implemented in med_dml and multiply_robust, which both give consistent results.
Normalization also is the very idea behind IPW estimator formulas.

Sorry, my suggestion was actually a bit different (sorry if that was unclear): when you have 10-15 lines of code running a computation (any computation), you should cut that into an ancillary function. The point is that you can test that small function independently + it makes code more readable.

this has been implemented, and included in the tests as normalize is the default behavior, so not sure extra exploration or tests are needed as tests are already too long (#52). Probably should be included in a general discussion on tests


[Bug] macOS Catalina: illegal option

Describe the bug
run the binary download for lazydocker
To Reproduce
Steps to reproduce the behavior:
run the bash download command from the README on macOS Catalina
Expected behaviour
Run through.
Screenshots

Desktop (please complete the following information):

OS: macOS Catalina
Lazydocker Version: Latest

Is that install_update_LINUX even intended to work on macOS?

Of course not. Hell why has it been named LINUX :P

So... this isn't a bug? It's not meant to be used on macOS, which is what you are trying to do.

It is a bug, cause in the Guide it's set also for OSX.
Shown here:

Any updates so far?


feat: add raw data interfaces

WHAT

add raw data interfaces
move column definition into constants

WHY

would like to access raw json string

Python 3.12-dev test is failing due to numpy compile error. It is no problem at this stage.


Support CocoaPods Downloader 1.4.0

Resolves #43
Catch up latest changes introduced in Cocoapods Downloader 1.4.0.

Change cocoapods min version to 1.9.3
Change cocoapods-core min version to 1.9.3
Change cocoapods-downloader min version to 1.4.0
Add headers (https://github.com/CocoaPods/cocoapods-downloader/commit/9f88757bdfc55e18ff636cd12d96d1be3836f067) and user-agent support (https://github.com/CocoaPods/cocoapods-downloader/commit/8179b8ff68a400bd497dd5e21aa0b45d1674240e) to overridden HTTP downloader.

Hi @yahavi , is there an ETA when this will be merged and a release will be made? Thanks in advance!

@jasonschroeder-sfdc
We released Cocoapods Art 1.0.5. Feel free to upgrade.
We'd appreciate your feedback for that!

Thank you! We will update today.


Test implementation cookiebot in static pages

@padms @SvSven Not sure how to test or verify this (and close) Feel like this needs to be approved on the dev side.


[Problem] Change-Image in combination with fixed particle counts

If I have an original particle count of 256x144 and I have the change-image effect change the particle data to a new image with a different aspect ratio, we get gaps between the rows/columns of the new image (because the aspect ratio is actually updated correctly)

This will be solved by https://github.com/suluke/hfg-particles/pull/80


Action Complete page

Tasks

[ ] Implement the above screenshot in the components on the complete page using veutify carousel . You can use two carousels, one for the representatives and one for the bills.
[ ] Figure out how to display the items side by side as seen in the screenshot above instead of hidden behind each other as is default in the carousel.

Notes

The components are already built.
You can download the assets from the figma link
the expected_delivery_date is not currently accessible so use placeholder text for the moment.

@aneelac22 This is a great issue to hop on! If you have any questions or need clarification, let me know, and feel to leave comments here.


ElasticsearchService requires aws-sdk 2.1.26+

Imma' merge this but I don't think its the issue of the error you reported