RQD python 3 compatibility

Add support for python 3 in rqd and test.

Did @gregdenton or @bcipriano encounter protobuf issue 1491 when you were porting other code to Python 3?
The generated Python code includes relative imports of other generated modules, for example the department_pb2.py file includes this line:
import task_pb2 as task__pb2

This fails in Python 3, which requires relative imports to be explicit:
from . import task_pb2 as task__pb2

I'm new to Protocol Buffers, so it's not obvious to me how to address this. One workaround that was suggested on the issue discussion was to just add a step to the build to modify those import lines in the generated code. This works fine of course - it's a trivial fix - but it feels a bit unwelcome.
cd compiled_proto
sed -i -E 's/^import.*_pb2/from . \0/' *.py

Anyway with that modification and some minor tweaks, the rqd daemon at least starts up.
It's a problem that the / operator works differently in Python 3, so compare:
# python3
4 / 3
1.33333333333

# python2
4 / 3
1

So - because the gRPC stuff is type-sensitive but the underlying code is not, we should expect runtime errors unless we get coverage up.

For the division, it should be possible to add from __future__ import division at the top of the file with sed to make it behave like in Py3.
About the imports in the compiled proto, as far as I remember it was something along letting the compiler know where is the actual root of the package. There is an issue that talks about it: https://github.com/protocolbuffers/protobuf/issues/1491#issuecomment-262968397

Thanks  @salvaom - let me reply to your suggestions separately:
Briefly - from __future__ import division would introduce the Python 3 behaviour to Python 2, but I'm afraid this is the opposite of what we want. Our goal is to preserve the behaviour of the code while making it work under Python 3.
Python 3 changes the behaviour of the / operator, which is a problem because many variables that were previously of type int will now be of type float. Introducing that same problem into the Python 2 codebase will not help us - just the opposite.
We could blanket change all occurrences of / with // - I haven't thought that through, but it is possible that this will preserve the old behaviour in all cases. It may result in some inaccuracy where a float result was in fact expected, because:
0.5 / 0.51
0.9803921568627451

# Whereas:
0.5 // 0.51
0.0

So as you can see, although introducing that change would avoid type errors, it would result in significant inaccuracy in any division involving floats.
Alternatively we could take a longer route:

refactor the code to make it more amenable to testing
build a suite of tests for the existing code that are sensitive to variable typing
groom the code until all tests pass under py3

That might be the best approach, unless the project leads already have some more radical plan for replacing rqd.

On the protocol buffers question - you link to the issue that I referenced in the first line of my comment,

Did @gregdenton or @bcipriano encounter protobuf issue 1491 when you were porting other code to Python 3?

...and I did test the approach outlined in the specific comment you linked to, but I was unable to make it work.
If I remember correctly, when I arranged the .proto files into a compiled_proto subdirectory, the compilation failed because department was unable to import task.
It might be a simple problem for someone who knows what they're doing :)
If not I can still make progress for now, so it's not a blocker.

@donalm, We have run into the compiled proto gRPC import error from protobuf issue 1491.  If you look into the pyoutline/Dockerfile line 42, you'll see that a similar sed command was used to allow for python 3 imports.
The division difference is an interesting one. I would probably start with replacing all / with // to maintain code intent with Python3 like you mention.
You also bring up a good point about lack of unit tests for RQD. I'll add a separate issue to add unit tests there and bring it up to coverage.

Yeah, like Greg said we've been using that same sed hack. It's horrible but it was the best solution we found at the time. Definitely open to other solutions if anyone has suggestions.
Re: division, the way I handled that for other components was to just go one by one through instances of division in the code, try to understand the intent of the original code, and replace with the correct operation. It wasn't too bad -- there aren't too many spots in the code to check.
past.utils.old_div is an option as well if you'd rather not deal with that. My thinking was that the one-by-one replacement was going to happen sooner or later so I may as well do it now.

This issue is covered by #557 now.


Post-process to aggregate FIM outputs to HUC6 scale

Adding post-processing step to fim_run.sh to aggregate FIM outputs to HUC6 scale.
resolves #161, resolves #4
Additions

aggregate_fim_outputs.py: aggregates hydroTable.csv, src.json, rem_zeroed_masked.tif, and gw_catchments_reaches_filtered_addedAttributes.tif to HUC6 scale and saves outputs to aggregate_fim_outputs folder
split_flows.py now splits streams at HUC8 boundaries to ensure consistent catchment boundaries along edges

Removals

removed aggregate_fim_outputs.sh
removed filter_catchments_and_add_attributes.py; contents were moved to split_flows.py and make_stages_and_catchlist.py
no longer need to re-rasterize catchment layer (removed step from run_by_unit.sh)

Changes

replaced geopandas driver arg with getDriver throughout repo
organized parameters in environment files by group
cleaned up variable names in split_flows.py and buildstreamtraversal.py
buildstreamtraversal.py: assigning HydroID by midpoint instead centroid
cleanup of clip_vectors_to_wbd.py  (remove unused args, error handling, import driver function)

Metrics
dev-aggregate-hucs is branched off of dev-nhd-ftypes

dev-nhd-ftype
dev-aggregate-hucs
Extent
Event

0.386
0.385
MS
100 yr

0.557
0.557
FR
100 yr

0.407
0.406
MS
500 yr

0.584
0.583
FR
500 yr

Except for FR 100yr, there is a slight regression of aggregate CSI score. This is likely related to small stream segments/catchments created at the outflows of each HUC and the corresponding synthetic rating curve. A related task (#100)  has been created to address this issue by updating small catchment rating curves with the upstream segment's.

@nickchadwick-noaa @BrianAvant-NOAA Have you tried running inundation.py with the original outputs of the aggregate_fim_outputs.sh (two VRT files and the combined hydroTable.csv) and simply passing the HUC6 layer as the hucs_layerName parameter for inundation.py? You can try this with the "huc" mask approach as is or append an ogrmerge.py call to the aggregate_fim_outputs.sh script to create an aggregate catchments vector file.

@nickchadwick-noaa @BrianAvant-NOAA Have you tried running inundation.py with the original outputs of the aggregate_fim_outputs.sh (two VRT files and the combined hydroTable.csv) and simply passing the HUC6 layer as the hucs_layerName parameter for inundation.py? You can try this with the "huc" mask approach as is or append an ogrmerge.py call to the aggregate_fim_outputs.sh script to create an aggregate catchments vector file.

@fernando-aristizabal FIM 3 only uses inundation.py for evaluation as a post process. This PR is meant to aggregate outputs to the HUC6 scale to meet the needs of the viz team. I will leave aggregate_fim_outputs.sh in the repo in case you need it for FIM 4.


Rename about-pull-requests.md to about-pull-requests.md8th

Why:
Closes [issue link]

What's being changed:

Check off the following:

[x] I have reviewed my changes in staging (look for "Automatically generated comment" and click Modified to view your latest changes).
[x] For content changes, I have completed the self-review checklist.

Writer impact (This section is for GitHub staff members only):

[x] This pull request impacts the contribution experience

[x] I have added the 'writer impact' label
[x] I have added a description and/or a video demo of the changes below (e.g. a "before and after video")

Ugug

Isaiahdupre


GH1037 Remove na_sentinel from factorize methods

[x] Closes #1037
[x] Tests added: Please use assert_type() to assert the type of any return value

All should align with the docs now, let me know if anything extra is needed.

Aahh I see what you mean, sorry I got confused, added a test on the side, the type hinting seems a bit broad on it but that is for another day.


Current directory name and git branch for tmux powerline window name

It would be awesome to make the window name that shows up in powerline for tmux the name of the current directory and git branch if applicable instead of it being the current running program (or perhaps show both if it isn't bash/zsh). I typically rename my windows to be the project I am working on and this is usually the current working directory.
There could be an issue if the window has splits because it would need to do one or the other. I'm opening this to start a conversation about what we think this should be.

I'm looking for the same thing. Did you find anything?

Yea, it works now. I honestly don't remember what I did. I think it is something in SPF13.


Board Is not Properly Shown

Board  of tic tac toe game is visible in abrupt manner. So try to make it appear in correct way

Assign this issue to me


Question above VRAM during training with QLoRA

In the paper, authors stated that: "In practice, this means whenever a QLoRA weight tensor is used, we dequantize the tensor to BFloat16, and then perform a matrix multiplication in 16-bit". When converting a "4-bit" weight tensor back to 16-bit weight tensor, the VRAM usage of the model should go back to normal like finetuning LoRA with BF16 no?

This happens for each matrix separately. So most of the model is still encoded in 4bits. The dequantization to 16bits happens only for the layers that are being used for a computation. This maintains the memory benefits while ensuring that we use 16bits precision for computations.

This happens for each matrix separately. So most of the model is still encoded in 4bits. The dequantization to 16bits happens only for the layers that are being used for a computation. This maintains the memory benefits while ensuring that we use 16bits precision for computations.

Thank you, now I understand why VRAM usage stays low!


Old webview page content will be updated to newly generated webview page

VSCode Version: 1.10.2
OS Version: MacOS Sierra 10.12.3

Steps to Reproduce:
In the REST Client extension, we use the vscode.PreviewHtml command to preview the response. To render different responses in different webview pages, we set different uris to the response view page, like rest-response://authority/response-preview/1489729942929 and rest-response://authority/response-preview/1489729991935.
And in vscode version <=1.7.2, the behavior of this command works as expected and users are able to switch between the response webview pages to view corresponding result. While currently, when I switch to an old webview page, the content of the webpage is updated to newly generated webview page.

@Huachao It is unclear what you mean by: "updated to newly generated webview page." Can you please explain the issue in more detail, perhaps by providing an list of example steps along with the expected behavior vs the actual behavior
Thanks

@mjbvz what I mean is that, when I create a webview page with the previewHTML command with some content in one tab , and then create another webview page with different content in another tab. However, if I switch back to previous tab, the content surprisly changed to the newly generated page content. While the behavior is right in vscode version before 1.8.
And you can follow the steps described in the referennced issue above of rest client extension.

@Huachao Please provide a self contained example that shows this problem. Otherwise, using your complete extension, there are too many other factors at play here to know if this is vscode or not

@mjbvz thanks, I've found the root cause and solved in my code.


Question: Is it possible to rename the file on upload

so I have an image i want to upload but the source image will not conform to the naming requirement used by the application that in the end will be looking for.
Is it possible to rename the file on upload

Hi @LiamDHall
This is an interesting situation that hasn't come up yet, because usually the file is available to be renamed before the upload step.
It's as easy as this single command Rename-Item -NewName {$_.name -replace 'original', 'replacement'}, so you can put it directly before the upoad step.
Tor example, let's say I want to replace - with an _ in all my .png file names.
- name: Change filename dashes to underscores
  run: |
    Get-ChildItem "/MyFolderToUpload" -Recurse -Filter "*.png" | Rename-Item -NewName {$_.name -replace '-', '_'}

- name: Uploading Files to Azure Blob
  id: sideload-blob-upload
  uses: LanceMcCarthy/Action-AzureBlobUpload@v3
  with:
    connection_string: "${{ secrets.AZURE_DVLUP_BLOB_CONNECTION_STRING }}"
    container_name: general-app-files
    source_folder: "/MyFolderToUpload"
    destination_folder: "MyUploadedStuff"
    clean_destination_folder: true
    is_recursive: true
    delete_if_exists: true

I'll see about possible adding this feature to the upload action, I'll need to be extra careful not to break anyone else in the process though.


Allow Collaborators to edit settings on a personal repository

I don't think I can physically list out the number of times I've needed to go back and forth between a repo owner and myself over a settings dilemma (webhooks, secrets), etc. This poses a major development flow restriction since the repo owner and I are in different timezones.
Github org would work in this case but, our workflow/development team isn't large enough to support an entire organization. It just makes zero sense to do so when a singular user account works perfectly fine. Eventually, there are plans to move it to an actual org but for now, we're both against it.
Thanks.

Hi @Sanjay-B,
This repository here is for a Nodejs / JS API module for GitHub and it is not affiliated with GitHub.
Please contact the GitHub support and check their community.

Github org would work in this case but, our workflow/development team isn't large enough to support an entire organization. It just makes zero sense to do so when a singular user account works perfectly fine

An org is a bit like a group and easy to setup. You can move the repo to it.


Add support for XCFramework and Apple Silicon for tvOS Simulator

Summary

Update the tvOS scripts for all the dependencies to generate arm64 slices against
AppleTVSimulator SDK.
Update the build script to generate XCFrameworks
Ensure xcframework also includes tvOS slices

I primarily tried to follow the pattern for scripts, as I am not sure the exact reasoning behind all the arguments passed to configure. So there is likely a bit of refactoring required.
Next Steps:

[ ] Update the XCFrameworks to also incorporate Mac and Mac Catalyst.
This is likely very quick update, but I'd rather leave it for another PR.

Thank you @mofarajmandi !  Change merged.


KeyError: 'content-transfer-encoding'

I have some issue with an email from Paypal, as it hasn't any 'content-transfer-encoding' in the header.
Due to this I have an exception, originated by replace_header function inside message.py
To Reproduce
Steps to reproduce the behavior:

import mailparser
(stuff for connection and retrieve the last unread email)
mail = mailparser.parse_from_bytes(data[0][1])

This is working good for the rest of the emails, but when I read the one who hasn't this header, then I have this exception:
exception=KeyError('content-transfer-encoding',)>
Traceback (most recent call last):
  File "C:/Users/BOHEM/imapbot/beta/imapbot.py", line 47, in connectMail
    body = await searchMail(imap4ssl)
  File "C:/Users/BOHEM/imapbot/beta/imapbot.py", line 26, in searchMail
    mail = mailparser.parse_from_bytes(data[0][1])
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\site-packages\mailparser\mailparser.py", line 115, in parse_from_bytes
    return MailParser.from_bytes(bt)
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\site-packages\mailparser\mailparser.py", line 238, in from_bytes
    return cls(message)
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\site-packages\mailparser\mailparser.py", line 135, in __init__
    self.parse()
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\site-packages\mailparser\mailparser.py", line 338, in parse
    p_string = ported_string(p.as_string())[:100] + "..."
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\email\message.py", line 158, in as_string
    g.flatten(self, unixfrom=unixfrom)
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\email\generator.py", line 116, in flatten
    self._write(msg)
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\email\generator.py", line 181, in _write
    self._dispatch(msg)
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\email\generator.py", line 214, in _dispatch
    meth(msg)
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\email\generator.py", line 272, in _handle_multipart
    g.flatten(part, unixfrom=False, linesep=self._NL)
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\email\generator.py", line 116, in flatten
    self._write(msg)
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\email\generator.py", line 189, in _write
    **msg.replace_header('content-transfer-encoding', munge_cte[0])**
  File "C:\Users\BOHEM\AppData\Local\Programs\Python\Python36\lib\email\message.py", line 559, in replace_header
    **raise KeyError(_name)
KeyError: 'content-transfer-encoding'**

Raw mail
The raw mail to reproduce the behavior.
(https://gist.github.com/baldruus/dae5ce430687060832a9aa4b47d4d328).
Environment:

OS: [Windows]
Docker: [no]
mail-parser version [e.g. 3.8.1]

Additional context
For testing purposes, I modified replace_header function in message.py, from this:
def replace_header(self, _name, _value):
        _name = _name.lower()
        for i, (k, v) in zip(range(len(self._headers)), self._headers):
            if k.lower() == _name:
                self._headers[i] = self.policy.header_store_parse(k, _value)
                break
        else:
            raise KeyError(_name)

To this:
def replace_header(self, _name, _value):
        _name = _name.lower()
        for i, (k, v) in zip(range(len(self._headers)), self._headers):
            if k.lower() == _name:
                self._headers[i] = self.policy.header_store_parse(k, _value)
                break
        else:
            pass

With this modification, the mailparser was parsing good the email, being able to read data from header, like mail.subject, mail.from_, mail.body, etc.

Hi @Marenostrum81,
I can't access your gist. Can you give me access to it?

https://gist.github.com/Marenostrum81/dae5ce430687060832a9aa4b47d4d328

Hi @Marenostrum81,
I can't access your gist. Can you give me access to it?

https://gist.github.com/Marenostrum81/dae5ce430687060832a9aa4b47d4d328

The first part of your email is not valid:
Mensaje original
ID de mensaje<EMAIL_ADDRESS>Creado a las:	31 de enero de 2019, 22:26 (entregado en 3 segundos)
De:	PayPal<EMAIL_ADDRESS>Para<EMAIL_ADDRESS>Asunto:	Comparta su opinión con nosotros
SPF:	PASS con la IP <IP_ADDRESS> Más información
DKIM:	'PASS' con el dominio mail.paypal-survey.com Más información
DMARC:	'PASS' Más información

Descargar original	Copiar en el portapapeles

I've just removed it and then I parsed the email correctly.
The output is here.

If I read the message with parse_from_bytes method, I continue with the same error.
If I save data[0][1] to file, and I use parse_from_file, it parses everything ok.
Sorry for the gist, as I copied it from gmail client as raw message. The email content is like you said, i will update it now with the correct format.

I'm checking this error, and I found this error in a bug Python issue27321.
In mail-parser code this issue happen for a line of code p.as_string().

I fixed this issue in mail-parser but this is an Python bug. From my analysis this header part
Content-Type: multipart/alternative;
        boundary="----=_NextPart_001_001F_01C26331.F7121560"

fires the error, but it's RFC correct. So I can't understand.
mail-parser uses as_string() for logging, so I changed it and works.
Thanks for your contribution.


Make insecure flag and thumbprint in datacenter config mutable

Issue #, if available:
#1206
Description of changes:
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Github account that made this commit was changed by mistake.


about the citation dataset

Hello Thomas,
I am wondering if you have the directed graph of the citation datasets ? Or do you have the script to generate those data ? I feel those 140 labeled nodes and testing instances are well-chosen. Do you have any idea about this ?

Have a look at my other repository https://github.com/tkipf/keras-gcn or https://github.com/tkipf/pygcn for the original datasets incl appropriate dataset loaders. Hope this helps.

Thank you.


add CREATE_NO_WINDOW for gui mode

//it will popup a black console windows in windows
#![windows_subsystem = "windows"]
extern crate subprocess;
use subprocess::{Exec,Redirection};
use std::io::{BufReader, BufRead};
use std::io::prelude::*;
use std::fs::File;
fn main() {
let out = Exec::cmd("dir")
.stdout(Redirection::Pipe)
.capture().unwrap()
.stdout_str();
println!("{}",out);
let mut file = File::create("out.txt").unwrap();
file.write_all(&out.into_bytes()).unwrap();
}

Is it safe to specify CREATE_NO_WINDOW unconditionally? Neither Rust's Command nor Python's subprocess.Popen are doing it. Rust specifies DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP if a detach flag is turned on, but the code appears dead - there doesn't seem to be a way to turn it on using the std::process API.

how about add a method called no_windows in builder which use like Exec::cmd("ls").no_window().stream_stdout().unwrap()

This would probably require a platform-specific extension module, but it would be acceptable.
What about the question of implementation? Should it use CREATE_NO_WINDOW or DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP? Is there reliable documentation on how to do this properly?

@woodgear Just a ping regarding the CREATE_NO_WINDOW or DETACHED_PROCESS question.
According to this stackoverflow answer, the difference is that DETACHED_PROCESS is disallowed from talking to the parent's console. This seems like a good idea when starting a non-trusted process.

@woodgear , Any news on this one?

Closing due to lack of response by the submitter.


fix: repeated calls to ray() throw an exception

This PR fixes an issue where only the first call in a series of repeated calls to ray() succeeds; the second call throws an exception.

Error message encountered:
Return value of Spatie\Ray\Settings\SettingsFactory::getSettingsFromConfigFile() must be of the type array, bool returned
  at vendor/spatie/ray/src/Settings/SettingsFactory.php:24

Example code to reproduce:
function example()
{
    ray()->ban();
    ray()->ban();
}

This issue was encountered with the example code within a new Laravel project using the base spatie/ray package, NOT the Ray package for Laravel.

Cause: the exception is caused by use of include_once.
Fix: use include instead of include_once.

Note: I have also added empty directories referenced by the existing test but that didn't exist and caused the test to fail.
Reference:
tests/SettingsTest.php line 26
... __DIR__ . Ray::makePathOsSafe('/testSettings/subDirectory/subSubDirectory'));
Added:
tests/testSettings/subDirectory/subSubDirectory
tests/testSettings/subDirectory/subSubDirectory/.placeholder (empty file to force git to keep the dir)

OS: Linux
PHP: 7.4.13
spatie/ray: <IP_ADDRESS>
Laravel: 8.20.1

Thanks!

Thanks!


Task: Generate examples for functions with an axis parameter (open idea)

Description:

At the triage meeting, one place where additional examples could be welcome is functions that have an axis element. The axis parameter can be tricky (and many of the AI examples generated so far have completely gotten it wrong).
I bet we could design a better prompt that helps generate these types of examples, and includes an example to help understand the axis parameter.
Acceptance Criteria:

[ ] Identify the functions in NumPy that have an axis parameter.
[ ] Create a prompt that generates examples with explanations.
[ ] Generate examples for the functions.
[ ] Create PRs in groups of 3 that include these examples.

I've created a script using groq and incorporated some security measures, such as masking github tokens using os environs.I have documented the script to explain what each item does. If anyone has suggestions for improvements or deletions, it would be greatly appreciated! I'm in the process of setting up my test environment. If you have any lack with it please share your findings.
"""
This script creates pull requests on a GitHub repository to add examples for NumPy functions that have an 'axis' parameter.

The script first sets up a GitHub instance using an environment variable for the GitHub token. It then retrieves all the NumPy functions that have an 'axis' parameter, and creates a dictionary to store the examples and explanations for each function.

The script then creates a pull request template that includes the function name, three examples, and their descriptions. It then creates a pull request for each function, with the title 'Add examples for {function_name}' and the pull request body filled in with the examples and descriptions.

The script waits for 10 seconds between creating each pull request to avoid rate limiting.

Finally, the script prints the number of pull requests that were created.
"""
import importlib
import numpy as np
import difflib
from github import Github
from github.GithubException import UnknownObjectException
import os
import time
import inspect
import github
from github.GithubException import UnknownObjectException
import git

# Set up environment variable for GitHub token
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")

# Check if the environment variable is set
if GITHUB_TOKEN is None:
    print("Error: GITHUB_TOKEN environment variable is not set")
    exit()

# Create a GitHub instance with the token
g = Github(GITHUB_TOKEN)

# Set up the repository and branch you want to create pull requests for
repo = g.get_repo("your-repo-name")
branch = repo.get_branch("main")

# Get all numpy functions with axis parameters
axis_params = []
for name in dir(np):
    obj = getattr(np, name)
    if hasattr(obj, "__call__") and "axis" in inspect.signature(obj).parameters:
        axis_params.append((name, obj))

# Create a dictionary to store the examples and explanations for each function
examples = {}

# Create the pull request template
pr_template = """
# Examples for {function_name}

{function_name} is used to perform various operations on arrays. Here are some examples of how to use it:

**Example 1:**
{example_code}

This code does {example_description}

**Example 2:**
{example_code}

This code does {example_description}

**Example 3:**
{example_code}

This code does {example_description}

Please let me know if you have any questions or need further clarification.
"""

# Create the pull requests
pr_count = 0
for func, obj in axis_params:
    # Create the examples and explanation for the function
    examples[func] = []
    for i in range(3):
        example_code = f"{func}(np.array([1, 2, 3]), axis={i})"
        example_description = f"Performing operation on axis {i}"
        examples[func].append((example_code, example_description))

    # Create the pull request
    pr_title = f"Add examples for {func}"
    pr_body = pr_template.format(function_name=func, **examples[func])
    pr = repo.create_pull(title=pr_title, body=pr_body, head=branch.name, base=branch.name)
    pr_count += 1

    # Wait for 10 seconds before creating the next pull request to avoid rate limiting
    time.sleep(10)

print(f"Created {pr_count} pull requests!")

When you have something ready remember you can submit a pull request to genai-numpy.
I'm worried your code may submit a PR rather than just push to a branch. We do not want to flood numpy with PRs.

How much feedback do you want at this stage? I'm guessing you need to play with things some more to see how it performs. Here's some initial thoughts.

The current code above will only find some thigs in the main np namespace.  There are many, many, more modules.
A PR requires you modify the source code, not create a template of suggested changes. You'll need to inject the actual examples into the source code at an appropriate spot. This is what took me the most time in example_post_processing.py.
Remember that pushing to a branch on your fork is not the same as submitting a PR.  You want to push to a branch on a fork so others in POSSEE can review it first, NOT submit a PR. The last thing you want to do right now is to start spamming the NumPy PR list with empty PRs that contain suggestions. They are in the the middle of a somewhat heated discussion about the merits of AI.
The OSS maintainers requested that PRs come in groups of 3, as that will make it simpler to review PRs for them, when it finally comes time to actually submit things as a PR.

I don't see any portion of the code above that generates examples using AI.
Do you understand the axis parameter?  The example you gave example_code = f"{func}(np.array([1, 2, 3]), axis={i})" has only one axis, but you want to run a for loop over it using axis=2 and axis=3 (which will fail). If you're not sure what the axis parameter does, then you'll need to spend more time with things before you're ready to generate examples for this. The explanation portion needs to be more than just example_description = f"Performing operation on axis {i}".  The point was to have a detailed description to help a user understand some potentially tricky axis choices. That will require more than a header.

Thank you, Ben, for the feedback. Having these conversations helps me understand what needs to be done and how to proceed in the right direction. i'm currently experimenting with different approaches. I was using this issue  as a reference to understand the axis parameter. Are there  other resources that i get to help me better understand the axis parameter?

Looks like a great resource.  Keep searching the web.  Have you used AI (GPT, Groq, Claude, etc.) to help you?  I would hope that through a series of conversations with AI you can come to a better understanding, and even figure out a prompt, or series of prompts, that can help you generate examples with AI.  That's our goal, namely find ways to use AI to help improve NumPy. Maybe the examples will need a good story around them (the one you pointed to has such a story).
Based off recent discussions on your PRs, when you do find a way to prompt AI to generate the needed examples, look to see if the examples it generates come from somewhere on the web. Keep a record of your prompts (GPT does that automatically - for better or worse, but Groq will require you keep track of the prompts yourself).


fix: pin all internal dependencies

Related: #2040

#2040 didn't work out as lerna version overrides this back to the version ranges. This PR handles it as a separate step, for all @crawlee/* packages too, as it probably makes more sense to enfore the versions everywhere and not just for crawlee meta package.


refresh/invalidate cache button

Hello
we're currently spawning the korap/kalamar/kustvakt stack on demand for our internal needs, with the frontend and backend colocated on the same hardware, running as containers.
I'm still unsure how (timeout, empty response, 500 from backend) but in some cases, when a query is done before kustvakt has finished its startup and warmup, we have cases where a invalid response is cached and we can't query this particular term anymore without getting an empty result from cache
This PR is an attempt at adding a simple "refresh" checkbox to invalidate the cache on a query (which could probably also be useful if the backend index is updated without a frontend restart)
PS: I don't really understand the i18n mechanism used so feel free to fix this in the template file

Many thanks for this contribution!
In principle, I have nothing against the inclusion of the feature, but it should be optionally integrated via configuration and not be automatically available for all instances. If you want, I can add a draft to this commit and also integrate the localization accordingly.
However, Kalamar should not cache invalid values that result from incorrect or incomplete responses from the backend, so it would be nice if you could report the error as an issue as soon as it is reproducible. The best way to delete the entire cache as soon as new data has been added to the index is to use
perl script/kalamar chi clear

(or the corresponding command for the running Docker container) as a restart doesn't clear the cache in case it is persistent. Admittedly, this is not well documented.


SQL AST: ifnull/nullif improvements

Previously the IfNullReturnTypeExtension was used for both IFNULL and NULLIF. However, these SQL functions should have different behavior.
NULLIF(expr1,expr2)

Returns NULL if expr1 = expr2 is true, otherwise returns expr1.

IFNULL(expr1,expr2)

If expr1 is not NULL, IFNULL() returns expr1; otherwise it returns expr2.

Note that IFNULL has additional type-mutating logic because it has to compare the two values in a temporary table:

The default return type of IFNULL(expr1,expr2) is the more "general"
of the two expressions, in the order STRING, REAL, or INTEGER.

We now also require that the functions take exactly two arguments.
The typemix table is used for these tests since its column names clearly identify the column type (e.g. c_tinyint vs. gesperrt).

thanks for the in detail discussion and your analysis. I really appreciate it.


Error in PostgreSQL connection: Error { kind: Closed, cause: None }

Hi Prisma Team! My Prisma Client just crashed. This is the report:
Versions

Name
Version

Node
v15.5.0

OS
darwin

Prisma Client
2.15.0

Query Engine
query-engine e51dc3b5a9ee790a07104bec1c9477d51740fe54

Database
undefined

Query
The query was programmatically generated. See the code below.

Logs
m
  engine Search for Query Engine in /Users/alexbruns/code/autodidactv3/node_modules/.prisma/client
  plusX Execution permissions of /Users/alexbruns/code/autodidactv3/node_modules/.prisma/client/query-engine-darwin are fine
  engine { flags: [ '--enable-raw-queries' ] }
  engine port: 54820
  engine stdout  Starting a postgresql pool with 9 connections.
  engine stdout  Started http server on http://<IP_ADDRESS>:54820
  engine Search for Query Engine in /Users/alexbruns/code/autodidactv3/node_modules/.prisma/client
  plusX Execution permissions of /Users/alexbruns/code/autodidactv3/node_modules/.prisma/client/query-engine-darwin are fine
  engine Client Version: 2.15.0
  engine Engine Version: query-engine e51dc3b5a9ee790a07104bec1c9477d51740fe54
  engine Active provider: postgresql
  engine {
  engine   error: PrismaClientUnknownRequestError2 [PrismaClientUnknownRequestError]: Error in connector: Error querying the database: connection closed
  engine       at NodeEngine.graphQLToJSError (/Users/alexbruns/code/autodidactv3/node_modules/@prisma/client/runtime/index.js:27079:14)
  engine       at NodeEngine.request (/Users/alexbruns/code/autodidactv3/node_modules/@prisma/client/runtime/index.js:26975:24)
  engine       at runMicrotasks (<anonymous>)
  engine       at processTicksAndRejections (node:internal/process/task_queues:93:5) {
  engine     clientVersion: '2.15.0'
  engine   }
  engine }  +2d
  engine stdout  Error in PostgreSQL connection: Error { kind: Closed, cause: None }
  engine stdout  Error in PostgreSQL connection: Error { kind: Closed, cause: None }
  engine {
  engine   error: PrismaClientUnknownRequestError2 [PrismaClientUnknownRequestError]: Error in connector: Error querying the database: connection closed
  engine       at NodeEngine.graphQLToJSError (/Users/alexbruns/code/autodidactv3/node_modules/@prisma/client/runtime/index.js:27079:14)
  engine       at NodeEngine.request (/Users/alexbruns/code/autodidactv3/node_modules/@prisma/client/runtime/index.js:26975:24)
  engine       at runMicrotasks (<anonymous>)
  engine       at processTicksAndRejections (node:internal/process/task_queues:93:5) {
  engine     clientVersion: '2.15.0'
  engine   }
  engine }
  engine stdout  Error in PostgreSQL connection: Error { kind: Closed, cause: None }  +2d
  engine stdout  Error in PostgreSQL connection: Error { kind: Closed, cause: None }
  engine {
  engine   error: Error: Error occurred during query execution:
  engine   InterpretationError("Error for binding \'3\'", Some(QueryGraphBuilderError(RelationViolation(RelationViolation { relation_name: "LicenseToRightArea", model_a_name: "License", model_b_name: "RightArea" }))))
  engine       at /Users/alexbruns/code/autodidactv3/node_modules/@prisma/client/runtime/index.js:27026:19
  engine       at runMicrotasks (<anonymous>)
  engine       at processTicksAndRejections (node:internal/process/task_queues:93:5)
  engine }  +21h
  engine {
  engine   error: Error: Error occurred during query execution:
  engine   InterpretationError("Error for binding \'3\'", Some(QueryGraphBuilderError(RelationViolation(RelationViolation { relation_name: "LicenseToRightArea", model_a_name: "License", model_b_name: "RightArea" }))))
  engine       at /Users/alexbruns/code/autodidactv3/node_modules/@prisma/client/runtime/index.js:27026:19
  engine       at runMicrotasks (<anonymous>)
  engine       at processTicksAndRejections (node:internal/process/task_queues:93:5)
  engine }
  engine {
  engine   error: Error: Error occurred during query execution:
  engine   InterpretationError("Error for binding \'3\'", Some(QueryGraphBuilderError(RelationViolation(RelationViolation { relation_name: "LicenseToRightArea", model_a_name: "License", model_b_name: "RightArea" }))))
  engine       at /Users/alexbruns/code/autodidactv3/node_modules/@prisma/client/runtime/index.js:27026:19
  engine       at runMicrotasks (<anonymous>)
  engine       at processTicksAndRejections (node:internal/process/task_queues:93:5)
  engine }

Client Snippet
import { assert } from "console";
import { NextApiHandler } from "next";
import prisma, { deepRightArea } from "../../../lib/prisma";
import { Prisma } from "@prisma/client";
import { getSession } from "next-auth/client";
import { ppCreateContract } from "../../../lib/preprossessor";
import { deleteContract } from "../../../lib/deleteTransactionBuilder";

const includer = {
  include: {
    licenses: {
      include: {
        ipArticle: true,
        rightArea: deepRightArea,
      },
    },
  },
} as const;

export type DeepContract = Prisma.ContractGetPayload<typeof includer>;

const handler: NextApiHandler<DeepContract | DeepContract[]> = async (
  req,
  res
) => {
  try {
    const session = await getSession({ req });
    assert(session);
    switch (req.method) {
      case "POST": {
        return res.json(
          await prisma.contract.create({
            data: ppCreateContract(req.body, { userId: session?.userId }),
            ...includer,
          })
        );
      }
      case "GET": {
        return res.json(
          await prisma.contract.findMany({
            where: { ownerId: session?.userId },
            ...includer,
          })
        );
      }
      case "DELETE": {
        await prisma.$transaction(deleteContract(req.body));
        return res.end();
      }
      default:
        throw new Error("Unsupported HTTP method");
    }
  } catch (e) {
    console.error(e);
    res.status(400).end();
  }
};

export default handler;

// in ../../../lib/deleteTransactionBuilder

import { DeepContract } from "../pages/api/contract";
import { DeepIpArticle } from "../pages/api/ip-article";
import { DeepLicense } from "../pages/api/license";
import prisma from "./prisma";

export const deleteContract = (v: DeepContract) => {
  let queries: unknown[] = [];
  queries = [
    ...queries,
    ...v.licenses.reduce<unknown[]>(
      (acc, license) => [...acc, ...deleteLicense(license)],
      []
    ),
  ];
  queries = [...queries, prisma.contract.delete({ where: { id: v.id } })];
  return queries;
};

export const deleteIpArticle = (v: DeepIpArticle) => {
  let queries: unknown[] = [];
  queries = [
    ...queries,
    ...v.licenses.reduce<unknown[]>(
      (acc, license) => [...acc, ...deleteLicense(license)],
      []
    ),
  ];
  queries = [...queries, prisma.iPArticle.delete({ where: { id: v.id } })];
  return queries;
};

export const deleteLicense = (
  v: Omit<DeepLicense, "contract" | "ipArticle">
) => {
  let queries: unknown[] = [];
  queries = [...queries, ...deleteRightArea(v.rightArea)];
  queries = [...queries, prisma.license.delete({ where: { id: v.id } })];
  return queries;
};

export const deleteRightArea = (v: DeepLicense["rightArea"]) => {
  let queries: unknown[] = [];
  queries = [
    ...queries,
    ...v.children.reduce<unknown[]>(
      (acc, child) => [...acc, ...deleteRightArea(child)],
      []
    ),
  ];
  queries = [...queries, prisma.rightArea.delete({ where: { id: v.id } })];
  return queries;
};

Schema
datasource db {
  provider = "postgresql"
  url = env("DATABASE_URL")
}

generator client {
  provider = "prisma-client-js"
}

model PrimitiveRight {
  id String @default(cuid()) @id
  name String @unique
  owner User @relation(fields: [ownerId], references: [id])
  ownerId Int
}

model Qualifier {
  id String @default(cuid()) @id
  name String @unique
  owner User @relation(fields: [ownerId], references: [id])
  ownerId Int
}

enum RightAreaType {
  SUBTRACTIVE
  ADDITIVE
}

model RightArea {
  id String @default(cuid()) @id
  type RightAreaType
  primitiveRights PrimitiveRight[]
  qualifiers Qualifier[]
  children RightArea[]
  license License?
  owner User @relation(fields: [ownerId], references: [id])
  ownerId Int
}

model License {
  id String @default(cuid()) @id
  startDate DateTime?
  contract Contract @relation(fields: [contractId], references: [id])
  contractId String
  ipArticle IPArticle @relation(fields: [ipArticleId], references: [id])
  ipArticleId String
  rightArea RightArea @relation(fields: [rightAreaId], references: [id])
  rightAreaId String
  owner User @relation(fields: [ownerId], references: [id])
  ownerId Int
}

model Contract {
  id String @default(cuid()) @id
  name String
  signingDate DateTime
  licenses License[]
  owner User @relation(fields: [ownerId], references: [id])
  ownerId Int
}

model IPArticle {
  id String @default(cuid()) @id
  name String
  description String?
  licenses License[]
  owner User @relation(fields: [ownerId], references: [id])
  ownerId Int
}

model User {
  id Int @default(autoincrement()) @id
  name String?
  email String? @unique
  emailVerified DateTime? @map(name: "email_verified")
  image String?
  createdAt DateTime @default(now()) @map(name: "created_at")
  updatedAt DateTime @updatedAt @map(name: "updated_at")

  IpArticles IPArticle[]
  Contracts Contract[]
  Licenses License[]
  RightArea RightArea[]
  Qualifier Qualifier[]
  PrimitiveRight PrimitiveRight[]

  @@map(name: "users")
}

model Account {
  id                 Int       @default(autoincrement()) @id
  compoundId         String    @unique @map(name: "compound_id")
  userId             Int       @map(name: "user_id")
  providerType       String    @map(name: "provider_type")
  providerId         String    @map(name: "provider_id")
  providerAccountId  String    @map(name: "provider_account_id")
  refreshToken       String?   @map(name: "refresh_token")
  accessToken        String?   @map(name: "access_token")
  accessTokenExpires DateTime? @map(name: "access_token_expires")
  createdAt          DateTime  @default(now()) @map(name: "created_at")
  updatedAt          DateTime  @default(now()) @map(name: "updated_at")

  @@index([providerAccountId], name: "providerAccountId")
  @@index([providerId], name: "providerId")
  @@index([userId], name: "userId")

  @@map(name: "accounts")
}

model Session {
  id           Int      @default(autoincrement()) @id
  userId       Int      @map(name: "user_id")
  expires      DateTime
  sessionToken String   @unique @map(name: "session_token")
  accessToken  String   @unique @map(name: "access_token")
  createdAt    DateTime @default(now()) @map(name: "created_at")
  updatedAt    DateTime @default(now()) @map(name: "updated_at")

  @@map(name: "sessions")
}

Same as https://github.com/prisma/prisma/issues/5976

Information about the PR that closed this:
https://github.com/prisma/prisma/issues/6329#issuecomment-815012006
Feel free to reply here again if the problem is not solved/better for you and we can reopen the issue of course.


Waypoint ui features

waypoint status enum and logic
public functions to lock (for when it's the next waypoint), unlock, highlight the waypoint (for when it's uploaded)
auto-locking and dehighlighting after the drone has passed
different color when being grabbed by the user
added clip shader logic to rfs mesh

I really like the shade of purple you chose!
When I edit the waypoints, they visually disappear for me.
Also, what does it mean that you closed it? Is it a work in progress?

Hmmm, I'll figure it out. I merged the work into DynamicWaypoint System and plan on just using that one for everything. Hence closing this.


clear all existing credentials

fix https://github.com/intersystems/ipm/issues/649
when registry URL changing - clear all existing credentials

@nsolov could you retarget this against the v1 branch? We're very close to merging / releasing v0.9 and I suspect this is still an issue there.
cc @isc-shuliu

Actually, this is good to merge to master; we'll just duplicate against v1


[FORMATTING] Must disable error on parsing unexpected tokens

Hello sir, very good job, but i can't use in my angular project.
My application let users to write query with custom tokens that my parser replace at runtime before execute.
For example the condition
{{ AND c.created >= $[rng_from] }}
this means that if the param  $[rng_from] (optional during the user input) has value
become
AND created >= "user input value"
else completely removed from the statement and so on for the others
At this time when i try to format the statements sql-formatter gives me an error when encounters the firs {
Is it possible to do?
TIA
I have seen on stackblitz an example that works, but with an older version of sql-formatter
https://stackblitz.com/edit/angular-ngf1xl?file=src%2Fapp%2Finput-overview-example.css
Original query:
SELECT c.id, c.name AS label, c.id AS value, c.description, c.code AS codice, '#[COGNOME]' AS COGNOME, '🤣 Ridi' AS ICONA FROM categories c WHERE 1=1 {{ AND c.created >= $[rng_from] }} {{ AND c.created <= $[rng_to] }} {{ AND 1 = #[IDUTENTE] }} ORDER BY 1
Desired result:
SELECT
  c.id,
  c.name AS label,
  c.id AS value,
  c.description,
  c.code AS codice,
  '#[COGNOME]' AS COGNOME,
  '🤣 Ridi' AS ICONA
FROM
  categories c
WHERE
  1 = 1
  {{ AND c.created >= $[rng_from] }}
  {{ AND c.created <= $[rng_to] }}
  {{ AND 1 = #[IDUTENTE] }}
ORDER BY 1

I also experienced this issue. We have been using {{ parameter }} to insert our own parameter into SQL, but since version 10 this has been broken. We rolled back to version 9 where it does work, but we prefer to keep our packages up 2 date.
Can you please look into this? Thanks!

You can treat these placeholders as SQL parameters and define a custom parameter type for these. Like:
{
  "paramTypes": {
    "custom": [{ "regex": "\\{\\{.+?\\}\\}" }]
  }
}

You can either save this to a config file (when running sql-formatter from command line) or pass this object as the second parameter of the format() function.
The output will be like this, as the formatter has no idea about the meaning of these placeholders:
SELECT
  c.id,
  c.name AS label,
  c.id AS value,
  c.description,
  c.code AS codice,
  '#[COGNOME]' AS COGNOME,
  '🤣 Ridi' AS ICONA
FROM
  categories c
WHERE
  1 = 1 {{ AND c.created >= $[rng_from] }} {{ AND c.created <= $[rng_to] }} {{ AND 1 = #[IDUTENTE] }}
ORDER BY
  1

See the custom paramTypes documentation


Error issues

[19:43:03] [DEBUG] Created script domain 'ScriptDomain_5C250BD2'.
[19:43:03] [DEBUG] Loading scripts from 'C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\scripts' into script domain 'ScriptDomain_5C250BD2' ...
[19:43:03] [ERROR] Failed to reload scripts because directory is missing.
What Directory is missing?

A folder named "scripts" inside your game directory, e.g.:
C:\Program Files (x86)\Steam\steamapps\common\Grand Theft Auto V\scripts


avrcp

AVRCP implementation.
This is still fairly basic, but enough to implement a number of Controller and Target use cases.
Still WIP, gathering comments/suggestions.

Since this PR is quite big, can we start from a fundemental part like protocol definitions?

Since this PR is quite big, can we start from a fundemental part like protocol definitions?

I apologize to the reviewers for the large PR. Unfortunately, breaking it down into smaller PRs is more work than I have the time for right now :-(


unit tests do not work

@vdaviot I cannot make it work with this command: AWS_REGION=eu-west-1 python3 -m unittest tests.py
The config.load_incluster_config() seems to not work as I got this error:
kubernetes.config.config_exception.ConfigException: Service host/port is not set.


Naming of repo

As I browse the repos, I keep getting confused between the tutors-reference-* repos.
In my mind, one of them might be renamed, and given that you might surprise folks with 'manual' ("What tutors is a tool to create manuals?"), this seemed the better candidate.
On the other hand, the 'reference course' is confusing as I'm not sure if it's meant to be 'the' course that acts as a reference with every possible option exercised, so maybe that could become the 'validation-course'
Naming things is hard, would another option be to  combine them into a single course?

Thanks @pwright - yes, the naming could do with some reconsideration; We have the following:

tutors: the core ‘reader’ application
tutors-apps: the generator(s) + some cloud functions
tutors-reference-manual: the main documentation
tutors-reference-course: a test of all tutors learning objects in various configurations (link target for the manual)
layout-reference-course: alternative layout, recently introduced to display more interesting course structures

The first 2 were in a single monorepo, but I factored them out as it was a bit confusing for people coming to the project afresh, mainly because of the multiple targets (node CLI, SvelteKit, cloud etc…).
The last three could certainly be renamed to something more salient - happy to take suggestions.


mock-api: /auth/token should support body params

My applications currently uses body params as per Section 2.3.1 of RFC 6749 for app access tokens.
curl -X POST "https://id.twitch.tv/oauth2/token" --data "grant_type=client_credentials&client_id=myclientid&client_secret=myclientsecret" --header "content-type: application/x-www-form-urlencoded"

This is not supported with mock-api "/auth" endpoints.
curl -X POST "http://localhost:8080/auth/token" --data "grant_type=client_credentials&client_id=myclientid&client_secret=myclientsecret" --header "content-type: application/x-www-form-urlencoded"

returns an empty body
It should be easy for me to migrate to the non-RFC query variant, but could this be implemented too?

Agree; we can tackle this in the next minor iteration.


Sign conversion warnings

My project is now linked with zlib-ng, and I like to turn up the warning level, especially for sign conversion warnings,
as this can lead to real bugs.
There is now one conversion warning coming from zlib-ng:
https://my.cdash.org/viewBuildError.php?type=1&buildid=1984952
Thanks.

Looks like that link no longer works. If you see any warnings feel free to make a PR.

Thanks, this was fixed in a PR. Closing.


Flutterfire plugins should not use dynamic dependency versions on Android

Steps to Reproduce
Try building an app with cloud_firebase ^0.2.6, you may observe on some systems an error when building such as:
Multiple dex files define Lcom/google/android/gms/internal/zzbf

This happened to me when working on https://github.com/dart-lang/conference_app/pull/43, for example. After clearing all Gradle and Android Gradle Plugin build caches, the issue disappeared, but it may well happen to anyone who updates a dependency and then tries to build immediately.
This is due to the various levels of caching that happen in Gradle, where a failed resolution may cause the build system to pick a cached version of a dependency, which may not be compatible with the other(s). This leads to unreproducible builds and the risks of having some users for which things don't work. Diagnosing these issues, due to their transient and random nature, is very complicated.
For all these reasons, using dynamic dependencies versions is a strongly discouraged practice on Android.
The issue can be solved by simply specifying a single, hardcoded version for the dependencies in the plugins' build.gradle files:
dependencies {
    api 'com.google.firebase:firebase-firestore:11.8.0'
    api 'com.google.firebase:firebase-core:11.8.0'
}

Flutter Doctor
$ flutter doctor
[✓] Flutter (on Mac OS X 10.13.2 17C205, locale en-GB, channel master)
    • Flutter version 0.0.21-pre.287 at /Users/rock3r/src/flutter
    • Framework revision 159db5ca44 (2 days ago), 2018-01-20 14:43:23 -0800
    • Engine revision e45eb692b1
    • Tools Dart version 2.0.0-dev.16.0
    • Engine Dart version 2.0.0-edge.93d8c9fe2a2c22dc95ec85866af108cfab71ad06

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.2)
    • Android SDK at /Users/rock3r/android-sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.2
    • ANDROID_HOME = /Users/rock3r/android-sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.3.1

[✓] Android Studio
    • Android Studio at /Applications/Android Studio 3.1 Preview.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Community Edition (version 2017.3.3)
    • Flutter plugin version 21.0.3
    • Dart plugin version 173.4301.22

[✓] Connected devices
    • Pixel XL • HT73V0201200 • android-arm • Android 8.1.0 (API 27)

@rock3r
This issue has been moved to https://github.com/FirebaseExtended/flutterfire/issues/908. Any further collaboration will be done there.


Add release pipeline for Unity

Add Azure DevOps pipeline scripts to enable setting up an NPM package release pipeline for Unity. The pipeline allows building the mrwebrtc native library in Release config for all 5 supported platforms/architectures on Windows, as well as the C# library. It then packages those with the Unity library package and publish it alongside the samples package to a chosen NPM register.

The most recent build lost tranceiver in peerconnection, so that I am not able to add media send and receiver channel


chore: remove unused windows pipeline yaml

What type of PR is this?
/kind cleanup

What this PR does / why we need it:
remove unused windows pipeline yaml
Which issue(s) this PR fixes:

Fixes #
Requirements:

[x] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests
[ ] tested upgrade from previous version

Special notes for your reviewer:
Release note:
none

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

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

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
2243

Relevant Lines:
2839

💛  - Coveralls


Arhitecture concepts

Basic program flow proposal:
UPDATE (26.02.2023): reason variable shall be linker in NOINIT RAM section to exchange data between app and bootlaoder

Requirements:

[x] Data exchange between booloader and application via common shared file
[x] Template of shared data structure must be provided
[x] Using NOLOAD linker flag for .noinit section for data exchange + documentation
[x] Detailed linker script configuration must be part of README
[x] Explore possiblitites to share same linker file between application and bootloader (configured with compiler symbols -D...)
[ ] Boot from external flash if configured to do so
[x] Application image encryption
[ ] Single-bank and Dual-bank options (like Nordic)
[x] Must use application header to detect image version and to check CRC
[x] Application header must be compatible with revision module

Firmware authentication using digital signatures
Link: https://interrupt.memfault.com/blog/secure-firmware-updates-with-code-signing
Interesting point of view on encrypting the application:

If using digital signatures (consequently HASH), then CRC of application is sort of a redundant info:

OPEN SSL is already part of Git installation

Memfault about firmware cryptography:

firmware-encryption-with-python
secure-firmware-update-with-code-signing


Fsharp41: get file name without extension type inference patch

Motivation for this change
I got this error when building fsharp41:
/private/var/folders/.../nix-build-fsharp-4.1.34.drv-0/fsharp-4.1.34/src/scripts/fssrgen.fsx(334,28) : error FS0041: A unique overload for method 'GetFileNameWithoutExtension' could not be determined based on type information prior to  this program point. A type annotation may be needed. Candidates: System.IO.Path.GetFileNameWithoutExtension(path: System.ReadOnlySpan< char>) : System.ReadOnlySpan<char>, System.IO.Path.GetFileNameWithoutExtension(path: string) : string  (...)
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[ ] Fits CONTRIBUTING.md.

@ofborg build fsharp41


Questions about train.log

Hello,
I was wondering in the train.log what loss, Closs, Eloss, wd, waet and top1avg mean?
Thanks for any clarification!
Warm regards,
Andrew

Hi,
Thanks for your question! loss is the total loss as described in the paper, which is the sum of mixmatch_loss+aet_loss+kl_loss. Here Closs is the cross-entropy loss in MixMatch loss. Eloss is another term in MixMatch loss, which is a MSE loss as described in MixMatch paper. wd is the weight for the Eloss. waet is the weight for aet-loss1(projective transformation), other weights for aet loss also follow the same trend to warm up. top1avg is the accuracy when I used the average predictions of all different transformation.
Any questions, welcome to update in this issue. If your question is resolved, please close the issue. Thanks!


Update-java-GeneratedSdks should not use the Typespec-project scripts

Current function Update-java-GeneratedSdks in the LanguageSettings.ps1 file has a dependency on TypeSpec-Project-Sync.ps1 and TypeSpec-Project-Generate.ps1. These should be replaced with the usage of tsp-client

See https://github.com/Azure/azure-sdk-tools/issues/9420#issuecomment-2495227928


Add @mrobinson to authorized_keys

@bors-servo r+

:pushpin: Commit caa3602 has been approved by delan

:hourglass: Testing commit caa3602142935b27951209d75ee896ae8fa6bd7f with merge 1c3a26a38c9f01759baaca2a1ac3f81028cb55e7...

@jdm this repo seems to be managed by homu, but where does the testing happen? does it work?


Next button

If you click twice, 'selected' becomes String, and 3 becomes 21.

@a-pock-tf  Could you provide a more specific example?


Fix `dispatchKeyboardEvent' not working (#9)

This PR fixes #9 (at least partially)

@NetanelBasal Should I also bump the library version, or are you going to add it directly (among with other changes I assume) as a 1.1.0/1.0.1 version?

Yes, there is no need.


Add ~/.local/share/bash-completion/completions to the README

~/.local/share/bash-completion/completions is the XDG directory for bash completions installed by the user.

Thanks.

Do you have a reference that lists this directory as a common location?
We should probably also add it to the list of directories that are used by the installer:
https://github.com/DannyBen/completely/blob/54dd2593dba9f8d9eeecaa4a81c18a0aca8b4210/lib/completely/installer.rb#L11-L15

@DannyBen there are a few Google search results:

https://github.com/scop/bash-completion/blob/master/README.md#faq
A StackOverflow comment explaining when .local/share/bach-completion/completion was added to replace ~/.bash_completion.d.
https://serverfault.com/a/831184

Thanks.
Merged and added to the installer as well.


Fixes invalid propType error for templates, stops reducer from constantly reloading templates

@mattben @chaosphere2112 this is to stop the issue where the reducer for templates was firing off an ajax request on every state update.
@mattben I couldn't get it to only send the ajax requests once. I tried to get the redux store's state and use that to determine if the request had already been sent and the store had been updated, but several of those requests are fired multiple times before the store even updates.


Request host connection port

Background
When serving the swagger docs on one connection, and the API on another, the sandbox functionality does not work. This is because hapi-swagger is setting the hostname and port to match that of the connection which hosts the API, but most connections are not aware of the actual hostname on which they are reachable (that is handled by external load balancers, proxies, etc...). For instance, when running locally, I can send requests to localhost:8080, but the hapi connection on that port thinks that its hostname is L-SB8V2RBG8W-M.local.
Solution
We know that this server is reachable by the same hostname used to get to the docs in the first place: only the port is different between the docs connection and the API connection. So, we should always use the request hostname and the connection port.
Discussion
This does not fix more complex scenarios in which a proxy is involved which sets x-forwarded-host.

Coverage remained the same at 100.0% when pulling b296820748eaeae7e07bbabb696fea9072e8e152 on dylancwood:request-host-connection-port into 4fdd0c90af028811c7bb3b71b75ff4777310543f on glennjones:master.

This was manually merged into repo and will be in next release.


Kubectl commands not working on MacOS Monterey 12.0.1

What happened:
I upgraded MacOS to Monterey 12.0.1 and executed kubectl commands. Got the below error:
kubectl apply -f some_file.yaml
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x194b60e, 0x21)
	/usr/local/Cellar/go/1.10/libexec/src/runtime/panic.go:619 +0x81 fp=0x7ff7bfeff598 sp=0x7ff7bfeff578 pc=0x1029da1
runtime.goenvs()
	/usr/local/Cellar/go/1.10/libexec/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff5c8 sp=0x7ff7bfeff598 pc=0x1027923
runtime.schedinit()
	/usr/local/Cellar/go/1.10/libexec/src/runtime/proc.go:496 +0xa4 fp=0x7ff7bfeff620 sp=0x7ff7bfeff5c8 pc=0x102c664
runtime.rt0_go(0x7ff7bfeff650, 0x6, 0x7ff7bfeff650, 0x1000000, 0x6, 0x7ff7bfeff830, 0x7ff7bfeff849, 0x7ff7bfeff84f, 0x7ff7bfeff852, 0x7ff7bfeff870, ...)
	/usr/local/Cellar/go/1.10/libexec/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff628 sp=0x7ff7bfeff620 pc=0x1052834
Unable to connect to the server: getting credentials: exec: executable heptio-authenticator-aws failed with exit code 2

What you expected to happen:
It should have applied the configuration
How to reproduce it (as minimally and precisely as possible):

A basic yaml file with minimal configuration required to create a deployment.
Execute this command : kubectl apply -f some_file.yaml
Anything else we need to know?:
Using heptio-authenticator-aws for fetching aws credentials
Environment:

Kubernetes client and server versions (use kubectl version):

kubectl version --client
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:34:20Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"darwin/amd64"}

➜  ~ kubectl version
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x194b60e, 0x21)
	/usr/local/Cellar/go/1.10/libexec/src/runtime/panic.go:619 +0x81 fp=0x7ff7bfeff5c8 sp=0x7ff7bfeff5a8 pc=0x1029da1
runtime.goenvs()
	/usr/local/Cellar/go/1.10/libexec/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff5f8 sp=0x7ff7bfeff5c8 pc=0x1027923
runtime.schedinit()
	/usr/local/Cellar/go/1.10/libexec/src/runtime/proc.go:496 +0xa4 fp=0x7ff7bfeff650 sp=0x7ff7bfeff5f8 pc=0x102c664
runtime.rt0_go(0x7ff7bfeff688, 0x6, 0x7ff7bfeff688, 0x0, 0x1000000, 0x6, 0x7ff7bfeff868, 0x7ff7bfeff881, 0x7ff7bfeff887, 0x7ff7bfeff88a, ...)
	/usr/local/Cellar/go/1.10/libexec/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff658 sp=0x7ff7bfeff650 pc=0x1052834
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.3", GitCommit:"c92036820499fedefec0f847e2054d824aea6cd1", GitTreeState:"clean", BuildDate:"2021-10-27T18:34:20Z", GoVersion:"go1.16.10", Compiler:"gc", Platform:"darwin/amd64"}
Unable to connect to the server: getting credentials: exec: executable heptio-authenticator-aws failed with exit code 2

Cloud provider or hardware configuration:
AWS
OS (e.g: cat /etc/os-release):

➜  ~ sw_vers
ProductName:	macOS
ProductVersion:	12.0.1
BuildVersion:	21A559
➜  ~ uname -a
Darwin Shanmugas-MacBook-Pro.local 21.1.0 Darwin Kernel Version 21.1.0: Wed Oct 13 17:33:23 PDT 2021; root:xnu-8019.41.5~1/RELEASE_X86_64 x86_64

I get the same error with older kubectl binaries after upgrading to Monterey. The stacktrace similar and is pointing to the same line in /usr/local/go/src/runtime/asm_amd64.s:
$ ./kubectl-1.12.10 version --client
fatal error: runtime: bsdthread_register error

runtime stack:
runtime.throw(0x23d3b5f, 0x21)
	/usr/local/go/src/runtime/panic.go:616 +0x81 fp=0x7ff7bfeff4d8 sp=0x7ff7bfeff4b8 pc=0x1028ff1
runtime.goenvs()
	/usr/local/go/src/runtime/os_darwin.go:129 +0x83 fp=0x7ff7bfeff508 sp=0x7ff7bfeff4d8 pc=0x1026b73
runtime.schedinit()
	/usr/local/go/src/runtime/proc.go:501 +0xd6 fp=0x7ff7bfeff570 sp=0x7ff7bfeff508 pc=0x102b8e6
runtime.rt0_go(0x7ff7bfeff5a8, 0x3, 0x7ff7bfeff5a8, 0x0, 0x1000000, 0x3, 0x7ff7bfeff7b8, 0x7ff7bfeff7ca, 0x7ff7bfeff7d2, 0x0, ...)
	/usr/local/go/src/runtime/asm_amd64.s:252 +0x1f4 fp=0x7ff7bfeff578 sp=0x7ff7bfeff570 pc=0x1052174

And as you can see it's evening happening when providing the --client option for version. I tried different binaries from https://storage.googleapis.com/kubernetes-release/release and it's happening up and including to v1.12.10. v1.13.0 and above is working fine as far as I can see (although I didn't test every single version of course).

@bitti I found another thread with a similar issue, and someone mentioned that anything installed as binaries is not working after the macOS Monterey update, but brew install works fine. In my case, it was heptio-authenticator-aws which is available only in binary format. I switched to aws-iam-authenticator as it was available in the brew install method.
To temporarily unblock yourself, remove the kubectl binaries and use the brew install method

A related issue (https://github.com/golang/go/issues/49425) and page (https://github.com/golang/go/wiki/MacOS12BSDThreadRegisterIssue).
I wonder if heptio-authenticator-aws was compiled with an older, unsupported version of go (<= 1.10).
Can you use aws-iam-authenticator or aws eks get-token?

@bitti I found another thread with a similar issue, and someone mentioned that anything installed as binaries is not working after the macOS Monterey update, but brew install works fine.

I can't confirm that, since as mentioned the kubectl binaries since v1.13.0 are working fine for me, only the earlier ones are making problems.

To temporarily unblock yourself, remove the kubectl binaries and use the brew install method

I don't think brew provides a way to install different versions in parallel?

@bitti You can install multiple versions using brew, but yes you will not be able to use them in parallel. Each and every time when you need a particular version, you will have to make that version active and use.

+1

As Brian points out this is an issue with running binaries built with older versions of Go.
Please upgrade your binaries.
For context heptio-authenticator-aws became aws-iam-authenticator in 2018 and Kubernetes 1.12 is also from 2018.
/close

Same error when trying to search history "ctrl + R"... any idea ?!

Same error when trying to search history "ctrl + R"... any idea ?!

Do you use fzf for command history? It's written in Go, so try to update/reinstall it via brew.

 brew update then brew upgrade may help

I had to do a which -a aws-iam-authenticator, delete both results, then brew reinstall aws-iam-authenticator

For me the problem was an old version of google-cloud-sdk
Your current Cloud SDK version is: 211.0.0
You will be upgraded to version: 370.0.0


lvis_v0.5_train_rare.json

Thank you for your excellent work!
Since lvis_v0.5 is not allowed to be downloaded on the official website, I directly used lvis_v1.0. Instead of modifying the code, I directly changed the filename of lvis_v0.5.
I tried to run
python3 -m tools.train_net --num-gpus 1
--config-file configs/LVIS-detection/faster_rcnn_R_50_FPN_fc_novel.yaml
--opts MODEL.WEIGHTS checkpoints/lvis/faster_rcnn/faster_rcnn_R_50_FPN_base_nomask2/model_reset_remove.pth
Error:
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/few-shot-object-detection/tools/train_net.py", line 113, in
args=(args,),
File "/root/fsdet/lib/python3.6/site-packages/detectron2/engine/launch.py", line 62, in launch
main_func(*args)
File "/root/few-shot-object-detection/tools/train_net.py", line 99, in main
trainer = Trainer(cfg)
File "/root/few-shot-object-detection/fsdet/engine/defaults.py", line 308, in init
data_loader = self.build_train_loader(cfg)
File "/root/few-shot-object-detection/fsdet/engine/defaults.py", line 493, in build_train_loader
return build_detection_train_loader(cfg)
File "/root/fsdet/lib/python3.6/site-packages/detectron2/config/config.py", line 201, in wrapped
explicit_args = _get_args_from_config(from_config, *args, **kwargs)
File "/root/fsdet/lib/python3.6/site-packages/detectron2/config/config.py", line 236, in _get_args_from_config
ret = from_config_func(*args, **kwargs)
File "/root/fsdet/lib/python3.6/site-packages/detectron2/data/build.py", line 307, in _train_loader_from_config
proposal_files=cfg.DATASETS.PROPOSAL_FILES_TRAIN if cfg.MODEL.LOAD_PROPOSALS else None,
File "/root/fsdet/lib/python3.6/site-packages/detectron2/data/build.py", line 220, in get_detection_dataset_dicts
dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in dataset_names]
File "/root/fsdet/lib/python3.6/site-packages/detectron2/data/build.py", line 220, in
dataset_dicts = [DatasetCatalog.get(dataset_name) for dataset_name in dataset_names]
File "/root/fsdet/lib/python3.6/site-packages/detectron2/data/catalog.py", line 58, in get
return f()
File "/root/few-shot-object-detection/fsdet/data/meta_lvis.py", line 129, in
lambda: load_filtered_lvis_json(json_file, image_root, metadata, name),
File "/root/few-shot-object-detection/fsdet/data/meta_lvis.py", line 55, in load_filtered_lvis_json
assert global_cfg.MODEL.ROI_HEADS.NUM_CLASSES == len(
File "/root/fsdet/lib/python3.6/site-packages/yacs/config.py", line 141, in getattr
raise AttributeError(name)
AttributeError: MODEL
How I can solve thie error?

Hey sorry for the delayed response. It looks like a data registration error.  The number of categories in LVIS v0.5 and v1.0 is different so the data registration is problematic. You can add another data registration for lvis 1.0.
You are very welcome to contribute a PR if you have time.  We will put this on the to-do list to add support for this.
Thanks!

I meet the same problem , you need to change from detectron2.config import global_cfg --> from fsdet.config import global_cfg


Add check for empty layers

Why is this check necessary?  The foreach should just not do anything if the collection is empty.  If an error is being thrown here it suggests that there's some deeper problem with the collection enumerator.

It was running an error when I was trying to export the surrounding geometry to dxf. Although I fixed some of the layer name problems, so I will check if the other fixes still have the issue.


feat: enable autotag in elixir fts

Copied from the body of the commit

Closes https://github.com/windwp/nvim-ts-autotag/issues/200

I have no idea how elixir works, so this a prayer based on previous PRs like https://github.com/windwp/nvim-ts-autotag/pull/91

Tests still fail due to the issues identified by #205.
Does not impact this PR.


Jacobian for polytopes of parametric dimension 3

Write jacobians for all relevant primitives

Add polytopes/jacobian for the polytopes of parametric dimension 3

Just need to do quadratic hexahedron now.


Compiler crash while building for Web

I updated my (quite old) Flutter app to point at a different backend URL. When autodeploy was attempted on Netlify (the host), I got a compiler crash (output below):

0:20:06 AM: Please include the following information:
10:20:06 AM: * the name and version of your operating system,

I'm unsure as it's not my machine. It appears to be ubuntu, but not sure of version.

10:20:06 AM: * the Dart SDK build number (2.19.0-81.0.dev), and
10:20:06 AM: * the entire message you see here (including the full stack trace
10:20:06 AM:   below as well as the source location above).

Full output:

10:19:55 AM: Setting "enable-web" value to "true".
10:19:55 AM: You may need to restart any open editors for them to read new settings.
10:19:57 AM: Downloading Material fonts...                                      774ms
10:19:57 AM: Downloading Gradle Wrapper...                                       30ms
10:19:57 AM: Downloading package sky_engine...                                  282ms
10:19:57 AM: Downloading flutter_patched_sdk tools...                           473ms
10:19:58 AM: Downloading flutter_patched_sdk_product tools...                   357ms
10:19:59 AM: Downloading linux-x64 tools...                                   1,006ms
10:20:00 AM: Downloading linux-x64/font-subset tools...                         109ms
10:20:01 AM: Downloading Web SDK...                                             953ms
10:20:02 AM: Downloading CanvasKit...                                           393ms
10:20:04 AM: Running "flutter pub get" in repo...                             1,624ms
10:20:04 AM: This app is using a deprecated version of the Android embedding.
10:20:04 AM: To avoid unexpected runtime failures, or future build failures, try to migrate this app to the V2 embedding.
10:20:04 AM: Take a look at the docs for migrating an app: https://github.com/flutter/flutter/wiki/Upgrading-pre-1.12-Android-projects
10:20:04 AM: 💪 Building with sound null safety 💪
10:20:04 AM: Upgrading .gitignore
10:20:06 AM: Compiling lib/main.dart for the Web...
10:20:06 AM: Target dart2js failed: Exception: Warning: The 'dart2js' entrypoint script is deprecated, please use 'dart compile js' instead.
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/ui/geometry.dart:37:16:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   const Offset(super.dx, super.dy);
10:20:06 AM:                ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/ui/geometry.dart:37:26:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   const Offset(super.dx, super.dy);
10:20:06 AM:                          ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/ui/geometry.dart:91:14:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   const Size(super.width, super.height);
10:20:06 AM:              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/ui/geometry.dart:91:27:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   const Size(super.width, super.height);
10:20:06 AM:                           ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/ui/semantics.dart:300:14:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     required super.range,
10:20:06 AM:              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/ui/semantics.dart:316:14:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     required super.range,
10:20:06 AM:              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/canvaskit/canvas.dart:323:21:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   RecordingCkCanvas(super.skCanvas, ui.Rect bounds)
10:20:06 AM:                     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/canvaskit/path.dart:21:28:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   CkPath.fromSkPath(SkPath super.skPath, this._fillType) {
10:20:06 AM:                            ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/canvaskit/picture.dart:14:23:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   CkPicture(SkPicture super.picture, this.cullRect, this._snapshot) :
10:20:06 AM:                       ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/backdrop_filter.dart:11:52:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedBackdropFilter(PersistedBackdropFilter? super.oldLayer, this.filter);
10:20:06 AM:                                                    ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/clip.dart:71:40:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedClipRect(PersistedClipRect? super.oldLayer, this.rect, this.clipBehavior);
10:20:06 AM:                                        ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/clip.dart:186:50:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedPhysicalShape(PersistedPhysicalShape? super.oldLayer, this.path,
10:20:06 AM:                                                  ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/clip.dart:447:26:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:       PersistedClipPath? super.oldLayer, this.clipPath, this.clipBehavior);
10:20:06 AM:                          ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/color_filter.dart:11:46:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedColorFilter(PersistedColorFilter? super.oldLayer, this.filter);
10:20:06 AM:                                              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/image_filter.dart:11:46:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedImageFilter(PersistedImageFilter? super.oldLayer, this.filter);
10:20:06 AM:                                              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/offset.dart:11:36:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedOffset(PersistedOffset? super.oldLayer, this.dx, this.dy);
10:20:06 AM:                                    ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/opacity.dart:11:38:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedOpacity(PersistedOpacity? super.oldLayer, this.alpha, this.offset);
10:20:06 AM:                                      ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/path/path_metrics.dart:601:25:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   const _SurfaceTangent(super.position, super.vector, this.t);
10:20:06 AM:                         ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/path/path_metrics.dart:601:41:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   const _SurfaceTangent(super.position, super.vector, this.t);
10:20:06 AM:                                         ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/scene.dart:38:34:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedScene(PersistedScene? super.oldLayer) {
10:20:06 AM:                                  ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/shader_mask.dart:22:26:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     PersistedShaderMask? super.oldLayer,
10:20:06 AM:                          ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/html/transform.dart:12:42:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   PersistedTransform(PersistedTransform? super.oldLayer, this._matrixStorage);
10:20:06 AM:                                          ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:556:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.callback,
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:557:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.glassPaneElement,
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:558:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.pointerDataConverter
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:753:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.callback,
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:754:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.glassPaneElement,
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:755:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.pointerDataConverter
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:896:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.callback,
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:897:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.glassPaneElement,
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/pointer_binding.dart:898:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.pointerDataConverter
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/semantics/text_field.dart:21:32:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   SemanticsTextEditingStrategy(super.owner);
10:20:06 AM:                                ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/services/buffers.dart:328:14:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   _IntBuffer(super.buffer);
10:20:06 AM:              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text/canvas_paragraph.dart:310:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.width,
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text/canvas_paragraph.dart:311:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.height,
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text/canvas_paragraph.dart:312:5:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     super.alignment, {
10:20:06 AM:     ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text/canvas_paragraph.dart:313:14:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     required super.baselineOffset,
10:20:06 AM:              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text/canvas_paragraph.dart:314:14:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:     required super.baseline,
10:20:06 AM:              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text_editing/text_editing.dart:963:41:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   GloballyPositionedTextEditingStrategy(super.owner);
10:20:06 AM:                                         ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text_editing/text_editing.dart:1002:36:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   SafariDesktopTextEditingStrategy(super.owner);
10:20:06 AM:                                    ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text_editing/text_editing.dart:1407:26:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   IOSTextEditingStrategy(super.owner);
10:20:06 AM:                          ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text_editing/text_editing.dart:1604:30:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   AndroidTextEditingStrategy(super.owner);
10:20:06 AM:                              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/text_editing/text_editing.dart:1675:30:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:   FirefoxTextEditingStrategy(super.owner);
10:20:06 AM:                              ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/window.dart:351:7:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:       super.windowId, super.platformDispatcher);
10:20:06 AM:       ^^^^^
10:20:06 AM: flutter/bin/cache/flutter_web_sdk/lib/_engine/engine/window.dart:351:23:
10:20:06 AM: Error: The 'super-parameters' language feature is disabled for this library.
10:20:06 AM:       super.windowId, super.platformDispatcher);
10:20:06 AM:                       ^^^^^
10:20:06 AM: .dart_tool/flutter_build/c82948ed5ee71e1b5750ea9f08214b62/main.dart:
10:20:06 AM: Internal Error: The compiler crashed when compiling this element.
10:20:06 AM: The compiler is broken.
10:20:06 AM: When compiling the above element, the compiler crashed. It is not
10:20:06 AM: possible to tell if this is caused by a problem in your program or
10:20:06 AM: not. Regardless, the compiler should not crash.
10:20:06 AM: The Dart team would greatly appreciate if you would take a moment to
10:20:06 AM: report this problem at http://dartbug.com/new.
10:20:06 AM: Please include the following information:
10:20:06 AM: * the name and version of your operating system,
10:20:06 AM: * the Dart SDK build number (2.19.0-81.0.dev), and
10:20:06 AM: * the entire message you see here (including the full stack trace
10:20:06 AM:   below as well as the source location above).
10:20:06 AM: The compiler crashed: Crash when compiling null,
10:20:06 AM: at character offset null:
10:20:06 AM: Null check operator used on a null value
10:20:06 AM: #0      InferableTypeBuilderMixin.type (package:front_end/src/fasta/builder/type_builder.dart:392:29)
10:20:06 AM: #1      InferableTypeBuilder.inferType (package:front_end/src/fasta/builder/omitted_type_builder.dart:155:12)
10:20:06 AM: #2      SourceLoader.performTopLevelInference (package:front_end/src/fasta/source/source_loader.dart:2358:19)
10:20:06 AM: #3      KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:532:14)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #4      withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #5      _buildInternal (package:front_end/src/kernel_generator_impl.dart:139:7)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #6      withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #7      compile.<anonymous closure> (package:front_end/src/api_unstable/dart2js.dart:195:37)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #8      compile (package:front_end/src/api_unstable/dart2js.dart:193:36)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #9      _loadFromSource (package:compiler/src/phase/load_kernel.dart:292:29)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #10     run (package:compiler/src/phase/load_kernel.dart:393:36)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #11     Compiler.loadKernel (package:compiler/src/compiler.dart:392:9)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #12     Compiler.produceKernel (package:compiler/src/compiler.dart:399:35)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #13     Compiler.runSequentialPhases (package:compiler/src/compiler.dart:663:33)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #14     Compiler.runInternal.<anonymous closure> (package:compiler/src/compiler.dart:315:7)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #15     Compiler.runInternal (package:compiler/src/compiler.dart:314:5)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #16     Compiler.run.<anonymous closure> (package:compiler/src/compiler.dart:235:11)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #17     main (package:compiler/src/dart2js.dart:1423:3)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #0      InferableTypeBuilderMixin.type (package:front_end/src/fasta/builder/type_builder.dart:392:29)
10:20:06 AM: #1      InferableTypeBuilder.inferType (package:front_end/src/fasta/builder/omitted_type_builder.dart:155:12)
10:20:06 AM: #2      SourceLoader.performTopLevelInference (package:front_end/src/fasta/source/source_loader.dart:2358:19)
10:20:06 AM: #3      KernelTarget.buildOutlines.<anonymous closure> (package:front_end/src/fasta/kernel/kernel_target.dart:532:14)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #4      withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #5      _buildInternal (package:front_end/src/kernel_generator_impl.dart:139:7)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #6      withCrashReporting (package:front_end/src/fasta/crash.dart:122:12)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #7      compile.<anonymous closure> (package:front_end/src/api_unstable/dart2js.dart:195:37)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #8      compile (package:front_end/src/api_unstable/dart2js.dart:193:36)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #9      _loadFromSource (package:compiler/src/phase/load_kernel.dart:292:29)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #10     run (package:compiler/src/phase/load_kernel.dart:393:36)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #11     Compiler.loadKernel (package:compiler/src/compiler.dart:392:9)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #12     Compiler.produceKernel (package:compiler/src/compiler.dart:399:35)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #13     Compiler.runSequentialPhases (package:compiler/src/compiler.dart:663:33)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #14     Compiler.runInternal.<anonymous closure> (package:compiler/src/compiler.dart:315:7)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #15     Compiler.runInternal (package:compiler/src/compiler.dart:314:5)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #16     Compiler.run.<anonymous closure> (package:compiler/src/compiler.dart:235:11)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: #17     main (package:compiler/src/dart2js.dart:1423:3)
10:20:06 AM: <asynchronous suspension>
10:20:06 AM: Compiling lib/main.dart for the Web...                           1,847ms
10:20:06 AM: Exception: Failed to compile application for the Web.
10:20:06 AM:

Also if you have any ideas how to fix my actual issue
Error: The 'super-parameters' language feature is disabled for this library.

that would be greatly appreciated!

@SimonInman as for the super-parameter quertsion, debugging questions like this are better asked on a user forum like StackOverflow with lots of eyes.
I'll pass on the null-check exception to the front-end team.

For me, any import of a Flutter library (e.g. package:flutter/widgets.dart) into a library that is later compiled as part of a build_runner build script causes this error.

Similar crash reported when using grpc-dart library with a reproduction provided, see https://github.com/grpc/grpc-dart/issues/578
Could you investigate @chloestefantsova?

Bumping priority to P1 because more and more reports of this are coming in, see

https://github.com/flutter/flutter/issues/111833
https://github.com/dart-lang/sdk/issues/47470#issuecomment-1250232084

I can't reproduce it at the current top of main. It's likely fixed in https://github.com/dart-lang/sdk/commit/bbdb9e43608a33313ec4a057225204d2b69dabf5, and I'm working on verifying that.

@chloestefantsova @johnniwinther do we think this needs a CP request?

I think we need a CP request for this.

I am waiting for Chloe to confirm that CPing fixes the issue if it does I will file one.

@johnniwinther @mraleph I can confirm that CPing that CL fixes this particular crash. I'm investigating the issue further though because the crash happens due to fragile handling of an erroneous case, and as far as I can tell that erroneous case should not exist.

Is this fixed now?  CP landed.  Anything else to do?


Jsinha/just try

Description
Update rubies, and get build/tests working again
Replaces #194
Issues Resolved
Check List

[x] New functionality includes tests
[x] All tests pass
[x] All commits have been signed-off for the Developer Certificate of Origin. See https://github.com/chef/chef/blob/master/CONTRIBUTING.md#developer-certification-of-origin-dco

https://buildkite.com/chef/chef-opscode-pushy-server-master-omnibus-adhoc/builds/18 passes. Awesome work, thanks @markan 👍


[BUG] Calculation of alpha and initialization of lambda incorrect

Hello,
I noticed two deviations from the Griffin paper in your code.
Lambda
Here, Lambda is initialized as:
https://github.com/kyegomez/Griffin/blob/83bbfdd9b0698cc27c19439ec16fb4fce07436c9/griffin_torch/main.py#L39-L42
However, the Griffin paper states in the second part of chapter 2.4:

We initialize Λ such that a^c is uniformly distributed between 0.9 and 0.999 at the start of training,

and a = sigmoid(Λ).
So actually, the initialization for Lambda should be calculated as Λ = -log((1 / a^(1/c)) - 1) with a uniformly between 0.9 and 0.999.
Alpha
And second a_t is defined in the paper (equation 3) as:

a_t = a^(c*r_t)

which is in nowhere near the formula in the code:
https://github.com/kyegomez/Griffin/blob/83bbfdd9b0698cc27c19439ec16fb4fce07436c9/griffin_torch/main.py#L62-L63
And also, the implementation should follow the recommendation from Appendix A (Implementation) in the paper (equation 6), to implement this operation in log-space:
a_t = exp(-c*softplus(-Λ) ⊙ r_t)
Note, that the formula in the paper is missing the minus before the Lambda, but you can easily check, that it should be there yourself:
https://www.wolframalpha.com/input?i=exp(-8*log(1%2Bexp(-l)))+%3D+sigmoid(l)^8
or for general c:
https://www.wolframalpha.com/input?i=exp(-c*log(1%2Bexp(-l)))+%3D+sigmoid(l)^c

@ozppupbg I agree with the $\alpha$ formula
$$
\begin{align}
Formula (3) &= (sigmoid(\Lambda))^{c \cdot r_t} \
&= \left(\frac{1}{1+e^{- \Lambda}}\right)^{c \cdot r_t} \
&= \frac{1}{(1+e^{- \Lambda})^{c \cdot r_t}} \
&= \left((1+e^{- \Lambda})^{c \cdot r_t}\right)^{-1} \
&= (1+e^{- \Lambda})^{-c \cdot r_t} \
&= e^{\log (1+e^{- \Lambda})^{-c \cdot r_t}} \
&= e^{-c \cdot r_t \cdot \log (1+e^{- \Lambda})} \
&= e^{-c \cdot r_t \cdot \text{softplus}(-\Lambda)} \
&= e^{-c \cdot \text{softplus}(-\Lambda) \cdot r_t} \
&= e^{Formula (6)} \
\end{align}
$$

@ozppupbg why ba and bx  is initialize zero?