Sourcemaps not working with babel + ng-annotate

module.exports = {
    devtool: 'sourcemap',
    context: __dirname + '/app',
    entry: './index.js',
    output: {
        filename: 'bundle.js'
    },
    module: {
        loaders: [
            // run babel first then ng-annotate
            { test: /\.js$/, loaders: ['ng-annotate','babel'] }
        ]
    }
};

When I use the above webpack config the source-map file is messed up with duplicate entries like the following.
"webpack:///./index.js",
"webpack:///./index.js?2645",
"webpack:///../~/angular/index.js",
"webpack:///../~/angular/index.js?08f2",
"webpack:///../~/angular/angular.js",
"webpack:///../~/angular/angular.js?58d0",

This is causing Chrome to not find the correct lines...
It seems that ng-annotate is inserting lines in the code without the source-map getting corrected info.
So where before ng-annotate (when the source-map was created) the code looked like
	    /* @ngInject */
	    function HeroController(users) {

now after ng-annotate there are new lines that the source-map doesnt know about
	    /* @ngInject */
	    HeroController.$inject = ["users"];
	    function HeroController(users) {

which version?

"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.11.1",
"babel-core": "^6",
"babel-loader": "^6",
"ng-annotate-loader": "^0.1.1",
"webpack": "^1.12.13",

Thanks


feat(ignoreEnter): add new prop to disable enter key.

Closes #345.
Rename current internal variable named "ignoreEnter" to "submitOnEnter".
Add a new prop type named "ignoreEnter" which can accept
boolean value and default value is false.
If set to true then Input component will ignore Enter key.
Add Unit test case for the new prop.
Add new prop in READ.me file.

[x] All tests passing
[x] Created tests which fail without the change
[x] Extended the README / documentation
[x] Commits and PR follow conventions

This is my first PR so I am not sure about the things that needs to be checked.
I have executed npm test to make sure that all tests are passing, checked formatting.

This is so required! can we get this merged?

+1, can we please get this merged? Thanks!

@ro-ka I have pushed the suggested changes.

I have pushed some merge commits. Will close this PR and open a new one.


fix spec return type

fix spec return type that causes dialyzer error in erlang 19.3 for project using mc_worker_api:find/3

fix previous errors

sorry by making lots of useless commits cause i forgot to close PR, the latest commits is the final one though.

latest updates

still committed rebar.config, strange..

Hi,
So what is the status of this pr?
Also, could you please squash commits before opening it again? They are too many.

sorry please ignore this PR, i'll create a PR branch


Fix serial problems

Fix problems that occur when serial data is sent by the target while DAPLink is booting.

@mbed-bot: TEST

@mbed-bot: TEST

this seems to related to all targets, is it?

Hi @jupe, yep, this problem is common to all interfaces. It was introduced in the 0243 release.

@mbed-bot: TEST


PDF output no longer working

Hi,
during one of the changes after 27/12 PDF output got broken. I still get a file with content, but I can't display it in Chrome or OSX preview anymore. Chrome shows an empty canvas, OSX preview just eats all CPUs and crashes.
Converting the PDF to PS and displaying that output however works.

Can you check if the latest commit c911478 is working for you? It contains an upstream bugfix. If that doesn't fix it, can you post the source that reproduces the problem?

That fixed the output, can open it in Chrome now. The OSX preview still has issues, as well as anything based on mupdf. Evince renders OK.
Also looks like memory usage exploded when creating the pdf.

There were three subtle bugs in the PDF that Chrome seemed to ignore. Please check if 27357d4 fixes it for you, it opens correctly in MuPDF for me now! Thanks for the report.


tour: typo sigNificance

Context: /welcome/3
Missing n

Fixed with https://go-review.googlesource.com/9639

Fixed.


delete submodule path

remove path of submodules libevent\googletest\jsoncpp
to avoid problems like https://github.com/oceanbase/miniob/issues/49,
maybe "git rm --cached {submodule_name}" need execute too

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[doc] Enable wiki

Enable wiki: https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis and https://docs.github.com/en/communities/documenting-your-project-with-wikis/changing-access-permissions-for-wikis
It allows user add their projects related to typst to the wiki to let more people know. Such as:

typst-fmt: formatter for typst
typst.vim: vim syntax highlight for typst
typst-lsp: code completion, and function signature help for every editor which supports language server protocol

I also want to know should we advise these tools related to typst to transfer the position of repo to this organization? Because if the developers of these tools are busy and lose interest to maintain it, if these tools are in the typst organization, it can also be managed by the author of typst to allocate new maintainer or accept external PRs. Now it has some programs adopt this mode: let the developer who write plugin for these program transfer the repo to an organization for ease to maintain.

We can see about that in the future. For now, we don't have the bandwidth to maintain these tools.

we don't have the bandwidth to maintain these tools.

Not maintain, just manage: like assigning new maintainer when old maintainer is busy. :smile:

We can see about that in the future

:+1:


MacOS-13" elements in the header of modal window is displaced in case of long action name

Title/Description

Environment

Browser: Chrome /MacOS 13"
Safe: 0x1230B3d59858296A31053C1b8562Ecf89A2f888b
Wallet: MM
App Version: 3.4.0
Environment:

PR # https://pr2054--safereact.review.gnosisdev.com/rinkeby/app/

Steps to reproduce

Go to transaction builder
Use mastercopy 1.1.1 address
Create tx with function execTransactionFromModuleReturnData
Open execTransactionFromModuleReturnData action details before tx  creation in transaction builder
Current result: X( close window) button is displaced and the function name is displayed out of window

Expected result
Truncate function name if it's too long and can not be displayed fully in the module window header
Screenshots

Since the popup width is fixed, that's also reproducible on bigger screens.

These popup titles should be properly ellipsized to make sure that navigation controls still work. The Safe is used for quite some low level contract interaction, hence I think we should fix this.


Where can I find the python implementation of the LET-AP calculation?

I find the python port "py_metrics_ops" ,but it is empty. Where can I find the python implementation of the LET-AP calculation? I want to know details of the whole calculation.

Hi,
I'm sorry for the late reply. Thanks for your interest in the LET-AP! The metrics is implemented in C++, and the major part can be found in https://github.com/waymo-research/waymo-open-dataset/blob/master/waymo_open_dataset/metrics/iou.cc#L235-L358
Could you clarify what do you mean by py_metrics_ops is empty? It's a python API for computing the metrics, which does not contain the python native implementation of the LET-AP metrics.
Thanks,
Wayne


Build from master not working in Maven Docker

I'm trying to build the current source in the official maven docker container.  The built jar fails to run.  What am I missings?
$ docker run -itv ~/src:/tmp -w /tmp/exhibitor maven:3.3.9-jdk-8-onbuild mvn install
...
[INFO] Reactor Summary:
[INFO]
[INFO] exhibitor .......................................... SUCCESS [ 21.490 s]
[INFO] exhibitor-core ..................................... SUCCESS [01:40 min]
[INFO] exhibitor-standalone ............................... SUCCESS [  7.067 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
...
$ docker run -itv ~/src:/tmp maven:3.3.9-jdk-8-onbuild java -jar /tmp/exhibitor/exhibitor-core/target/exhibitor-core-1.1.0-SNAPSHOT.jar
no main manifest attribute, in /tmp/exhibitor/exhibitor-core/target/exhibitor-core-1.1.0-SNAPSHOT.jar

If you are building this repository, it only creates the 'standalone' jar, which isn't a 'fat jar' with all of the correct information in it.  You need to follow the instructions at https://github.com/soabase/exhibitor/wiki/Building-Exhibitor, which includes pulling down a different pom.xml file, and running 'mvn package'

Closing this issue for now. You can re-open if there are any additional problems.


Graph inputs should be full graph not splits, rename example paths

These two variables in the main yaml section suggest a split training set:
node_path: tests/resources/test_graphs/pos_train_nodes.tsv
edge_path: tests/resources/test_graphs/pos_train_edges.tsv
I imagine these are just placeholder paths but for a better example could indicate that these are the full graph edges and nodes.

The yaml file here: tests/resources/test.yaml describes graph ML on a test/train split, not the full graph


Deploying to iOS device stuck

Hey All. Newcomer here :)
Ran ionic run ios --device -l a couple of times, in which it worked fine and deployed to my iPhone 6+.
But now when I try it gets stuck here:
[ 47%] Copying /Users/freak4pc/Work/tests/ionic/first/platforms/ios/build/device/first.app/www/plugins/com.ionic.keyboard/www/ to device [ 47%] Copying /Users/freak4pc/Work/tests/ionic/first/platforms/ios/build/device/first.app/www/plugins/com.ionic.keyboard/www/keyboard.js to device [ 47%] Copying /Users/freak4pc/Work/tests/ionic/(lldb) command source -s 1 '/tmp/fruitstrap-lldb-prep-cmds-cbfe9f42899c73e55d5f7800fa5636c54f4ae185'
I've tried removing , rebuilding etc...
ionic platform remove ios
ionic platform add ios
ionic build ios

but that doesnt seem to do the trick. Not sure what I'm missing :)
Thanks!
Shai.

Greetings @freak4pc!
My sensors indicate that you need to update your issue through our custom issue form. We are now requiring all issues to be submitted this way, to ensure that we have all of the information necessary to fix them as quickly as possible.
Click Here To Update Your Issue
I will have no choice but to close this issue if it is not resubmitted through the form. Please fill out the rest of the form, so that I may use my friendly robot powers to assist you.
Thank you!

Nevermind, removing the app from the device and reconnecting fixed it. Thanks.


Why encourage more builders?

Why do we encourage a proliferation of builders when the spec itself is so precise?  Wouldn't a single canonical builder in a popular language be easier to maintain and push the spec forward with new features, etc?  It seems like a lot of duplicated effort and destined to lead to "dead" builders...  (which has already happened over the intervening years)
It seems easy to show how the community benefits from additional templates and themes, but much less so from having many fragmented builder implementations, each implementing a different version of the spec, and in slightly variant ways.
Recently the idea was floated of perhaps not letting older builders [old spec] into the new organization... that has it's own problems (IMHO) but only solves the problem today, not tomorrow when the maintainer of builder-xyz is hit by a bus and no one else really cares about xyz because abc/def/ghi builders work so well...
Obviously if someone really wants to build a builder it's a free world - but should we encourage this vs  one official builder that works on all popular platforms? (OS X, Windows, Linux, etc)

I should be clear I can sorta maybe see the desire for per language library bindings to work with scheme files... though this is largely (though not exhaustively) covered by a language having YAML bindings....
But even then what would you do with these bindings other than building builders?
And if the goal was to "support base16 themes" ... "as an application"... isn't that why we have templates?  IE, wouldn't it be better to instead  create a template for your app... and then that template turns the native Base16 theme into whatever format your language/app would most prefer to consume?  Insulting it (largely) from future changes to the builders/spec.
The more libraries/builders we have the more fractured the ecosystem becomes when a new version of the spec is announced... you end up with:

Application B (Python) only supports Base16 v12
Application A (Node.js) only supports Base16 v9
Application C (Go) supports Base16 v15

I'm wondering if this is avoidable.

Thanks for bringing this up - you bring up a number of good points.
I think you're right - supporting a single builder which works on all platforms would probably be ideal, but providing libraries (and perhaps other integrations) for other languages would also be helpful.
One issue is that I'm not sure which builder we'd want to focus on - I'd obviously prefer Go (partially because I wrote it, but also because it's easy to build/deploy in a cross-platform manner, though they're binaries so you can't download the same thing everywhere), but the Node builder is up there too, especially because Github Actions runs a nodejs environment by default (Docker is also supported by Actions, though not quite as comprehensively).
There are a few places I could see builders being used, which might help us decide:

template maintainers - used when locally building and experimenting with templates
scheme creators - used when experimenting with a scheme, probably with certain templates
CI - used to automate building all schemes, possibly through Github Actions, possibly another way
the "managers" concept - this has never been formalized, but providing a way to build/install multiple schemes

i think having multiple builders can't be avoided - for example:

if we'll agree on 'rust' builder - for people would be VERY hard to easy it inside browser or on some lofi hardware without rust support, or generally some people would be not inspired downloading and building some exotic for them toolchain for just generating the color palette for terminal let's say

if we'll agree to use javascript builder - people who would like to use it from c or python lib wouldn't be excited having js machine as a requirement for adding colorpalettes support to their lib

so having one reference implementation is alright - but having that one reference implementation instead of spec for other implementations - would really close a lot of current usecases of base16 ecosystem

would really close a lot of current usecases of base16 ecosystem

Which use cases do you feel that having a reference implementation (itself serving as a rough spec) would close off?

@joshgoebel

any other use case than running CLI manually/from the script, ie using it as a library, not as CLI tool;
running CLI manually/from the script on platforms for which having rust buildchain/js runtime/etc is crazy overhead.

using it as a library, not as CLI tool;

I'm not sure how having a reference builder implementation stops anyone from writing Base16 libraries or tools in any language...

rust buildchain/js runtime/etc is crazy overhead.

No one is forcing you to use the reference implementation (whatever it is) if you don't like it - you can always write your own in C or Nim or whatever makes you happy...

@joshgoebel i having the impression what before replying you reading only 10% of the messages
please reply again after reading them full

instead of removing alternative builders i think it should be just defined the retention policy for the builders inside org - if builder getting unsupported for too many versions or too many months/years in a row - it getting removed from org

I assure you I'm reading your messages.   I fully read your last post before I responded.  I still don't understand your two concerns about a reference implementation.  Perhaps we're hitting a language barrier?  I can repeat my thoughts in different words:
How does a reference builder implementation HURT library authors.
A reference implementation need not be the only implementation (nor does it imply that IMHO).

but i wrote it clearly what i'm not against having reference implementation - i'm against discouraging other alternative builders being part of the org (i'm not going to submit my builder to the org, so i don't have any personal benefit in this question)

Here's how I see the future of builders:

One or maybe two "official" builders aiming to always support the latest released version of the spec. An extra could to in @base16-project-contrib, or simply not be included. If we keep more than 1, we should have a reason. This currently looks like Go and Node, which could be used for different purposes (Maybe Go for CLI because it's easy to build/release binaries, Node for CI because it's supported directly by GH Actions - we're currently using Go via Docker for CI which would be another option). As a note, if we decide to drop one of these, it may be hard to choose which one.
Provide libraries in a number of languages for building templates from schemes rather than full builders.
Drop non-official builders from the README, add references to the libraries.

which could be used for different purposes

I think "different purposes" may be a bit wide (seems to allow lots of room for new builders).  Though personally I'm not in any hurry to lose the node builder as it's a measurable part of my motivation to stay involved - it allows me to easily (and quickly) prototype things like my semantic color proposal or the recent stats I posted on accessibility...  being a maintainer of a builder means it took only a few minutes to generate those stats just by writing a few lines of JS.
I think the "committed and invested maintainer" shouldn't be wholly discounted as a reason for a build tool to exist... though having contrib as a fallback is interesting... I'm not sure how I would feel if my builder got "kicked out" and into contrib. :-)  Obviously this is more of a problem for the two existing official builders... it's easy enough for us to just say "no more official builders"... though I wonder if we didn't already "drop" builders during the recent transition itself?

Provide libraries in a number of languages for building templates from schemes rather than full builders.

I still don't fully grasp this. The best real life test that those "builder libraries" worked would be to write the remaining looping code to create a full builder - and then build. We could even have a script to "build world" (using the simple CLI proposed elsewhere) and then SHA256 the resulting output to certify that all builders were producing the same exactly output for all schemes/templates.
I  mean I personally don't think we need 100 builders but I also don't see how 100 build libraries that are just 1% short of being a builder makes a lot of sense. At that point you might as well go all the way and be a library + unofficial builder.

I think "different purposes" may be a bit wide (seems to allow lots of room for new builders).

Fair point.

Though personally I'm not in any hurry to lose the node builder as it's a measurable part of my motivation to stay involved - it allows me to easily (and quickly) prototype things like my semantic color proposal or the recent stats I posted on accessibility... being a maintainer of a builder means it took only a few minutes to generate those stats just by writing a few lines of JS.

This is one of the reasons I stay involved as well - I like maintaining a builder and I like lots of the low level tooling.

I think the "committed and invested maintainer" shouldn't be wholly discounted as a reason for a build tool to exist...

This makes sense to me. Lets make this the requirement for now - similar to templates, builders would need to be "sponsored" by a primary maintainer, but in this case we can also say that maintainer needs to be already involved in other parts of base16. I'm not sure of a way to phrase that succinctly though.

though having contrib as a fallback is interesting...

I wanted contrib to be a place where less-maintained schemes (or schemes without an active primary maintainer) get moved. Maybe this will be something to revisit in the future.

though I wonder if we didn't already "drop" builders during the recent transition itself?

Yes, I dropped a number of them a long time ago - Chris used to maintain the PHP builder, but hasn't for a number of years... and I'm not a huge fan of PHP as a CLI scripting language anyway.

I still don't fully grasp this. The best real life test that those "builder libraries" worked would be to write the remaining looping code to create a full builder - and then build.
I mean I personally don't think we need 100 builders but I also don't see how 100 build libraries that are just 1% short of being a builder makes a lot of sense. At that point you might as well go all the way and be a library + unofficial builder.

Yes, that's is a fair point.
Maybe we can specify that official builders will export a library? I'm trying to think of an alternate method of making "managers" possible to build without requiring a very specific CLI interface.

@Misterio77  I understand  flavours is a builder now as well - I didn't know that before.   Could I ask what led you to writing your own builder vs wrapping one?  One thing we're trying to figure out is how to best support and grow the broader ecosystem.
Imagine if every theming tool was their own builder... any hard work we put into the styles systems and reference builders can't benefit those tools... This would seem like a problem from an ecosystem building and duplication of effort perspective.  Instead of every tool potentially automatically gaining support for Base17, Base24, Ansi16, etc as soon as we release - instead nothing happens.
Do you have any thoughts or ideas to solve this?

Yeah, I agree with the thought!
Simply put, my main issue was that existing builders seemingly aren't really designed with tool development in mind. Each builder does stuff differently and don't really treat their interfaces as something other developers would use.
Before writing flavours, I used a shell script that used the Python base16 builder. It had good features, but wasn't very scriptable or particularly fast. I wanted to build something friendlier for people, so I decided to write it.
The rust builder at the time didn't (and probably still don't) exports any of its features as a library, and calling other (slow) builders through shell commands would totally defeat the point of building a tool designed to be fast.
That's pretty much why I think we should have a clear definition of builders, that are actually designed to be small, scriptable, and that can possibly be used as libraries.

My main gripe is that builders try (and mostly fail) to include porcelain features for end users, and in the process cripple the scriptability and minimalism plumbing tools should have.

Each builder does stuff differently and don't really treat their interfaces as something other developers would use.

But you only need to use one - I'm not sure why slightly different interfaces would be a huge problem... you don't need to use all 20 builders, just the one you pick.

calling other (slow) builders through shell commands

How fast does it need to be?  Node builder builds all 233 schemes (1 template) in only 0.7 seconds on my system... I've made no effort to optimize it, but I don't find that particularly slow.  I imagine building 1 scheme to multiple templates would be a more useful benchmark but I don't have an easy way to test that quickly - and I'm convinced it should be equally fast.
Honestly though, shouldn't the builds be cached? Or done upfront?  I'm not sure why you would need or prefer live building unless you're generating dynamic/random schemes or something.

and that can possibly be used as libraries.

I'm pretty sure this isn't the right answer, but I know some of us want to see tons of libraries... but to me it seems the builder problem all over again... as the specs gets more complex we're duplicating work and effort 10x, 20x... with each library having it's own unique flaws, bugs, differences, etc...

My main gripe is that builders try (and mostly fail) to include porcelain features for end users, and in the process cripple the scriptability and minimalism plumbing tools should have.

What is a porcelain feature?
What would your dream builder scriptable tool (not library) look like?

Alright, I've got a few things here -

The spec is currently very simple, which makes it easy to create a builder rather than using an existing one (as an example see https://github.com/afq984/base16-xfce4-terminal which provides a minimal build.go to work with that repo, but they also encourage using other builders).
Providing lots of builders is mostly possible because the spec only requires you to read in color values, and export variables based on them - there is not currently any resolving variables, aliases, or other things. If we add these features it probably makes sense to focus on the builders we directly support rather than making it easy to create new builders.

@Misterio77 I'd be happy to add a porcelain interface to base16-builder-go, as an option rather than the only interface - I'm refactoring that builder at the moment so it may be hard to make a bunch of changes yourself, but if you're willing to work with me on a proposal, I'll build it.

At the moment here's where we are:

I have been keeping the base16-builder-go updated
All spec updates I make have a corresponding PR to base16-builder-go before being merged
We're going to focus on builders which have a "sponsor" willing to maintain them. At the moment, that is primarily the Go builder, but we semi-officially maintain a Node builder and I believe Jamy is also working on a Rust builder.
I have no preference as to which builder we end up keeping long-term, but I agree that when we start adding more complicated features, maintaining a bunch of different builders will not be ideal.

I've made my opinions known and I don't believe this ticket is currently actionable, so I'm closing it. If you think that's a mistake, please let me know or open a new ticket.


Return empty string instead of null for a single anonymous test

This fixes #487 by returning an empty string instead of null when there's just one anonymous test. This also keeps the behavior of printing [anonymous] when there are more than one anonymous tests.

Flaky Travis tests strike again?

Yeah, something is wrong with 0.10 build, I just had an issue with it too. Restarted your build.

When there's no test title, instead of outputting an empty line, it should output nothing.
Right now it outputs the following:
❯ ava --verbose

  1 test passed

Notice that there are 3 empty lines above and only 2 below.
Instead it should only output 2 empty lines above:
❯ ava --verbose

  1 test passed

Returning an empty string does put an extra line there, and returning nothing (just return) gives an XO error. I opted to return undefined, which seems to get the job done (no extra line or extra output).

Instead of return undefined; you can just do return; and it will return undefined.

@sotojuan return null did not work?

null:

undefined:

'':


Fix #58 and #52

Removed ID from NFTAsset type as we can safely use tokenId (BigNumber); surprisingly, this also fixes #52, so two birds with 1 stone :)
Loaded correct image for localhost NFT contract

wrogn branch


Add scala-xml module

tlVersionIntroduced := List("2.12", "2.13", "3").map(_ -> "skunk version this will be added").toMap

Note on testing - I've copied the pattern of the Circe tests but they aren't really adequate (they'll still pass if you change the Postgres types of the codecs.) I've done some manual end-to-end testing but we don't have any automated tests that these codecs actually work correctly with Postgres.


[Azure DevOps]:

Inputs
Provide the following required inputs:
Organization:
INOX-CODE
Project:
DPTK
Available commands
The following commands can be executed by adding a comment to this issue:

/audit
/dry-run --pipeline-type pipeline|release --pipeline-id :pipeline-id
/migrate --pipeline-type pipeline|release --pipeline-id :pipeline-id --target-url :github-repository-url

Note: The pipeline-type option will default to pipeline if omitted. If any remaining options are missing, the command will not be successful.

/audit


Chunked inference result depends on chunk length

First of all, thanks for the great work and clean code!
For the purpose of training a model on the discrete codes (as opposed to just encoding and decoding a signal), the current chunked inference is not ideal. As nicely summarized by @cinjon in #35, the current implementation slices up the input into chunks of about the requested chunk length, encodes them separately, and saves the blocks of latent codes along with the chunk length. However, concatenating the separately encoded chunks gives a different sequence of discrete codes than encoding the whole sequence at once (or, more generally, using a different chunk size). Specifically, decoding with a larger chunk size will lead to repeated audio segments at the original chunk boundaries (about 5ms per boundary in the default settings). This means a model cannot be fed with arbitrary excerpts from the discrete code sequence; the excerpts have to be aligned on chunk boundaries to be meaningful, and the model will have to learn to model the boundaries at the expected positions. It also means I cannot jump to a specific position in the audio by just multiplying the timestamp by 86Hz.
Since the model is convolutional, it is possible to implement a chunked inference that gives the same result as passing the full signal (except at the beginning and end, since we cannot simulate the zero-padding of hidden layers by padding the input). This entails setting padding to 0 in all Conv1d layers, zero-padding the input signal / code sequence (before chunking), and overlapping the chunks by the amount of padding. The current implementation already sets padding to 0, and pads the input, but chose a different strategy: to obtain the same codes, the input signal chunks would overlap by the amount they're padded with, and the code chunks would be padded and overlapped as well, but the decompression routine neither pads nor overlaps the codes. Instead, it relies on the input signal being padded and overlapped to cater for both the encoder and the decoder (i.e., it produces overlapped and padded code chunks for the chunk length that was used for encoding).

A proof-of-concept implementation of the encoding part is here: https://gist.github.com/f0k/266dd89e52417ba6138d33afa9ff8e80. The main algorithm is this part: https://gist.github.com/f0k/266dd89e52417ba6138d33afa9ff8e80#file-chunked_dac-py-L134-L173
I did not attempt to implement it as a pull request in your code base because it would need some decisions on how and whether to handle backwards compatibility, and also for my purposes I need the output to be stored in a more efficiently readable format. If interested, I'm happy to help integrating it, though.
Decoding is not implemented yet. Due to the stacked strided transposed convolutions, it needs an overlap-add algorithm to be useful (otherwise it would be limited to work with impractically large window sizes). I don't urgently need it, let's see.

Hey thanks for the implementation! I've been on parental leave the last few months, so I haven't been plugged in since writing the existing chunking code. Happy to take a look though, as I noticed the same issue with needing to use the same chunk size at encoding and decoding time. My fix then was just to save the chunk length in the metadata so things can be decoded properly, but this comes with some downsides as you mentioned. I'll take a look at your code and see what I can do!
Thanks!

I've been on parental leave the last few months

Nice, congratulations!

I'll take a look at your code and see what I can do!

Take your time! From what I see, the decoding algorithm will need more attention than what you have during a parental leave, so don't bother for now. Integrating the encoding algorithm alone will not be of much use.

Thank you for understanding! And thanks for the congrats!
If you have time, a slightly more detailed sketch of the decoding algorithm would be super helpful. The encoding algorithm looks quite nice, and it has nice properties with re: invariance to chunk size. I also feel that these sorts of tricks with convolutional nets for audio are not widely available so getting it right in this repo would be a nice contribution to open source!

If you have time, a slightly more detailed sketch of the decoding algorithm would be super helpful.

Well, we'd start by figuring out how many code frames we can decode at once to stay within the limits of the window size given by the user. Then we'd decode those, getting, say, 5 seconds of audio. We take the next chunk of code frames (that may have to overlap with the previous one, but maybe not) and again get 5 seconds of audio. Now we don't concatenate the two 5-second chunks, but we overlap the second chunk a bit with the first chunk and add up the samples in the overlapped part. The tough part is figuring out from the network architecture by how much to overlap the code chunks and by how much to overlap the outputs. If the architecture was perfectly symmetric, the output would need to overlap exactly as much as we overlapped the input during encoding, but the architecture is not symmetric (the decoder has additional convolutions interspersed with the transposed convolutions). My implementation

I was having problems getting the example python code running and wound up here. This is working, but I've noticed that, using your script, the decoded file is half the size of the original input file (7.4 mb  vs 15 mb). Is there a setting I'm missing somewhere? I've tried setting at 8kbps and 16kbps.

Glad you found it. I've just updated the gist to the version I ended up with for my use case; it adds support for input and output directories and can be launched multiple times with the same input and output directories but different CUDA devices, taking care not to process the same files. Chunked decoding is still left as an exercise for the reader ;)

Decoding in chunks that are overlapped and then chopping off the overlapped samples sounds very plausible as a good method. I'll give it a go!

I met the same issue. But now I have solved the problem.

please first confirm you are in the inferencing mode, which means you have turned off the dropout layer and so on
please confirm when your input is always same, and you can get the same outputs from the encoder and decoder. For this you can input a same audio twice and check its outputs.
I found when you turn on<EMAIL_ADDRESS>in the snake Module, the outputs will be a little different although you input is same
and in the CPU or GPU, the same input will also be different


shell: log_backend: Fix fifo cleanup

When shell log backend was disabled fifo used only in
deferred mode was unconditionally flushed which lead to
errors in immediate mode where fifo was not present. On
the other hand, in case of LOG2_MODE_DEFERRED fifo (mpsc_pbuf)
was initialized in enable stage.
In order to clean things up, deferred v1 fifo flushing and
deferred v2 mpsc pbuf initialization were moved to fifo_reset
function which is called when shell log backend is enabled.
Fixes #34403.
Signed-off-by: Krzysztof Chruscinski<EMAIL_ADDRESS>

@carlescufi can you merge?


Create tesu.txt

URL: https://www.tesu.edu/
BACS: https://www.tesu.edu/heavin/ba/computer-science
Student email: https://www.tesu.edu/about/university#how-will-the-change-affect-students (first name.last<EMAIL_ADDRESS>

@kgeno Pull request merged. Thank you!


Why aren't not null checks included in the generated code?

Hello!
I cannot track the entire history of the debate over the presence or absence of required fields in the Protocol Buffers format, but in my opinion, it is illogical to replace fields with default values. If you believe that all fields should be required, then I should not have the ability to create an class without initializing any fields, as the current situation leads to errors. For example, here is a perfectly valid code snippet:
@override
  Future<TokensDto> register(ServiceCall call, RegisterRequest request) async {
	return TokensDto();
  }

while TokensDto has 3 requierd fields
syntax="proto3";

service AuthRpc {
    rpc Register(RegisterRequest) returns (TokensDto);
}

message TokensDto {
    string access_token = 1;
    string refresh_token = 2;
    bool is_true = 3;
}

and response of course
{
    "access_token": "",
    "refresh_token": "",
    "is_true": false
}

So, it seems that in order to use the format, we have to generate an infinite number of checks. If that's the case, then why aren't these checks included in the generated code?
I suppose that the library developers are experienced individuals who have already considered everything. Perhaps it's just me being new and not having read the documentation thoroughly. Could you please point me to where the benefits of this situation are described for someone like me, an average developer creating new products using Protocol Buffers and gRPC and Dart?

I cannot track the entire history of the debate over the presence or absence of required fields

proto3 does not have required fields, all fields are optional. This is per proto3 design and not an implementation decision.
Note: when I say "all fields are optional" I don't mean "all fields are marked as optional", I just mean they're literally optional, i.e. parsing should succeed if a field is missing.

it is illogical to replace fields with default values

This is per protobuf design, not an implementation choice. Without the optional keyword you cannot distinguish a missing field from a field with the default value. New proto3 spec page explains this nicely: https://protobuf.dev/programming-guides/proto3/#field-labels.

If you believe that all fields should be required, then I should not have the ability to create an class without initializing any fields

As mentioned, proto3 does not have required fields.
Closing as this is working as intended.
I recommend reading the proto3 spec before using this library. It's possible that the design is not right for you and you may want to consider another format.


thunderbird, thunderbird-bin: 60.2.1 -> 60.3.0 [Critical security fixes]

Motivation for this change

Critical security fixes
Other fixes

https://www.thunderbird.net/en-US/thunderbird/60.3.0/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2018-28/
Things done

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

[X] NixOS
[ ] 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 nox --run "nox-review wip"
[X] 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)
[X] Fits CONTRIBUTING.md.

Picked to 18.09 as well, after some testing there.


perfomance problems in python-for-android since 1.12.5

I am using python-for-android and since sh 1.12.5 I see a delay of 1 second to every call of sh.
The usage of sh can be seen in https://github.com/kivy/python-for-android/blob/master/pythonforandroid/logger.py#L141
typical usages are sh.cp or sh.rm
With a git bisect I figured out that the following commit introduced the performance problems.
commit a500762f0915b2a3877a136c3c3d81f11dfdc95b
Author: Andrew Moffat<EMAIL_ADDRESS>Date:   Thu Dec 1 02:27:00 2016 -0600
use a quit event to reduce sleeping/spinning in threads

Thanks for reporting and finding the regression.  I'm able to reproduce the issue when using _iter, which is how shprint is working.  I'll try to dig into it soon
# takes 1 second
for line in sh.ls(_iter=True): pass

Fixed on master, version 1.12.14


[MB-14989] Improve error handling for editing/adding ppm shipments as an office user

Jira ticket for this change
Summary
In this PR, I update the handling of server errors that occur when the first page of the add/edit shipment form is submitted (I did not look at the submission of the Advances page).
The ShipmentForm component has a lot of conditional logic in it to change the form behavior slightly for different kinds of shipments and users. Server errors were not being handled consistently across all of the branches in the code. These are errors that are not the user's fault, and may be resolved if they simply resubmit the form.
Here are some of the different ways a failure to submit the closeout office could present depending on user/shipment type:

user is redirected to Move Details page with an error message displayed
user is given no indication that something went wrong, and the closeout office update is silently ignored
user gets stuck on first page of ShipmentForm with no error message, and the submit button disabled

I updated all of the different branches to stay on the page where the error occurred and display an error message, so the user would have the option to resubmit the form without losing their work, or click cancel to go back to the Move Details page.
Setup to Run Your Code
Start the UI locally.
make client_run

Start the Go server locally.
make server_run

Additional steps
There are two network requests that can fail, the request to update the closeout office and the request to update the shipment. You can block one of these at a time in your browser dev tools, and then run through the following scenarios.
In every scenario, the behavior you want to see is: when you try to submit the first page of the shipment form, you should stay on the first page and see an error message.
This screen recording shows how to block a network request with Chrome's devtools (firefox is really similar), and demonstrates editing a PPM.
https://user-images.githubusercontent.com/2627844/219819996-9bdd29d8-8401-4569-8121-5c367199c6eb.mov
This screen recording demonstrates testing adding a PPM shipment with the closeout office update request blocked:
https://user-images.githubusercontent.com/2627844/219820715-234ee235-2994-4501-abae-af861d4c9ec1.mov
Testing steps

First create or find an Army or Air Force move that a counselor can add or edit shipments on. (eg PPMSC1 in devseed data). You should be able to use this same move for all test cases

Test with DELETE /ghc/v1/moves/*/closeout-office blocked:

edit PPM as Service Counselor
create PPM as Service Counselor
edit PPM shipment as TOO

Test with PATCH /ghc/v1/move_task_orders/*/mto_shipments/* blocked:

create non-PPM shipment as SC
edit non-PPM shipment as SC
edit non-PPM shipment as TOO

Verification Steps for Author

[ ] Have the Jira acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

Frontend

[ ] User facing changes have been reviewed by design.
[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] There are no new console errors in the browser devtools
[ ] There are no new console errors in the test output
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

Messages

:book:
:link: MB-14989

  Generated by :no_entry_sign: dangerJS against 83b6fb8ab81dce6d3435704679fdcce39ed6e0ca

@mboren I may be getting stuck when trying to add a new shipment for a move that belongs to a non-Army/Airforce and there is no closeout office option in the form.  The submit button gets disabled and the POST gets called to create the shipment successfully.
On the edit version of the PPM page for non-Army/Airforce I am not taken to the 2nd advance page but am returned to the move details page.

@mboren I may be getting stuck when trying to add a new PPM shipment for a move that belongs to a non-Army/Airforce service member when there is no closeout office option in the form. The submit button gets disabled and the POST gets called to create the shipment successfully but I'm not brought to the advance page.
On the edit version of the PPM page for non-Army/Airforce I am not taken to the 2nd part of the advance page but am returned to the move details page.

Looks like Moose is going to resolve these issues related to a react query refactor so please ignore https://ustcdp3.slack.com/archives/CTNTFJSBA/p1677102226994949


Documentation for Checksumed Serial API

Moved all but proximity sensor code to use the CSSerial API
Added documentation

Rewrote serial receiver to be more efficient, understandable and reliable
Added updated ball sensor code based on #17
Moved all libraries to LIBRARIES folder
Updated documentation


React Native ios: Change role of peer 'selector' not working as expected

RN ios:
Change role of peer
Scroll not working as expected
Although role is changed
but scroll is not working as expected

This issue is happening wherever there is a selector option(scroller returns back to the top)

tested on 1.31.0(41)
still facing same issue

The PR with this issue's fix was raised today. It will be fixed in the upcoming build


Error at: parsed.paste(img, mask=img.split()[3]) for images with 3 bands

Suggested change:
bands = img.split()
parsed.paste(img, mask=(bands[3] if len(bands) == 4 else None))

I'd do a pull request but I'm using a different source code formatting and it will not merge nicely unfortunately :(

bands = img.split() throws
IndexError: tuple index out of range
Could you please help me out with this.
Thank you.

Thanks! Fix is pending in https://github.com/bhautikj/vrProjector/pull/9

Merged - thanks for the fix!


fix a crash on Android Lollipop and lower versions

The allocated memory address is not aligned by 16, which causes
BUS_ADRALN crash on Android platform of low versions.

I signed it! @googlebot

I signed it!

I signed it!

@petewarden Could you please review this commit?

Nagging Reviewer @petewarden: It has been 14 days with no activity and the awaiting review label was assigned. Can you please take a look?

Nagging Reviewer @petewarden: It has been 44 days with no activity and the awaiting review label was assigned. Can you please take a look?

@zhenyuni sorry for the delay.
Could you rebase and resolve all conflicts? Looks like we can merge as soon as all the conflicts are resolved.

@gunan I think the recent patch (commit 88103d000add4ea7f8d1a34ee3c898fc79d9e3c7) on master branch has also solved this problem so that my pull request can be closed. Thanks!


Implement clearing the clipboard after a given time

An implementation for clearing the password in the clipboard, very similar existing ones, e.g. https://github.com/mattydebie/bitwarden-rofi/. It will also kill your clipboard if you copied something else in between but that is to be expected.
Disclaimer:  This is not tested on Wayland. Could someone else check, please? Once confirmation is given I'll convert the draft.

One thing I’m wondering is whether it makes sense to consolidate all
the if clear > 0. One idea could be to keep copy_to_clipboard as
is, add a clear_clipboard to all subclasses and have a new
copy_to_clipboard_and_clear only in Clipboarder that calls the
others. What do you think?

Sounds sensible to me! Though, what do you say about having the call to
clear_clipboard here:
    elif self.args.action == self.Action.COPY_PASSWORD:
        self.clipboarder.copy_to_clipboard(cred.password)
        if self.args.clear > 0:
            time.sleep(self.args.clear)
            self.clipboarder.clear_clipboard()

That would erase the necessity of having copy_to_clipboard_and_clear.

I had also thought about something like that. The one thing that I like less about this approach is that it's coincidence that all need the time.sleep call, and it's not something rofi-rbw should care about; it's something the Clipboarder should encapsulate.
Differently put, what if there is one that has its own "clear after n seconds" call? Or even "copy and delete after n seconds"? A clean Clipboarder interface should handle that case without needing changes in the caller.
So, maybe something like that would also work:
    elif self.args.action == self.Action.COPY_PASSWORD:
        self.clipboarder.copy_to_clipboard(cred.password)
        self.clipboarder.clear_clipboard(self.args.clear)

I think I'd be fine with both implementations (or you can persuade me that calling time.sleep is no problem 😉).

The one thing that I like less about this approach is that it's coincidence that all need the time.sleep call

Well, that's a very good point, I concur. I settled for the last proposal now.
Should I mention the change in CHANGELOG.md?

Should I mention the change in CHANGELOG.md?

Sure, otherwise I have to ;)

Awesome, thank you! 🙂


Make implementation of GrpcServer::Init with Collective Ops compatible with calls in contrib/mpi

Fixes compilation errors outlined in #19924.
I haven't tested the actual MPI behavior (just that compilation succeeds). However, an if-clause in grpc_server_lib.cc guards the case in which collective_mgr_func is not explicitly passed.

Sorry for the additional noise (and additional commit). Having to compile TF with GCC 8.1/OpenMPI 3.1, and thus having to patch some MPI-related code to make it compile, I ported the changes for the PR by hand. Indeed, a closing brace was deleted together with the argument. This (probably) explains the CI tests failures. I'm very sorry for that. Now it should be fixed.

It appears that there is some tool failure in the "MacOS Python2 and CC" kokoro test. Starting test again.


Adding documentation to init widget positions

Hi, it is theoretically possible to ship default widgets with a structure, but in practice a structure should only define the dashboard "structure" and not default widgets.


Adding a word.

What's this PR do?
tell us, what have you changed?
How should this be reviewed?
tell us, how can we review, to test that this works
Any background context you want to provide?
what else?
Relevant tickets
Fixes #
Checklist

[ ] Documentation added for new features/changed endpoints.
[ ] Tested on staging.
[ ] Pinged a PM if this is a larger PR that would benefit from some additional testing love.

So. Much. Code. @_@
🐑  it!


Flutter Inspector: "The embedded browser failed to load."

Steps to Reproduce
Open the Flutter Inspector (Android Studio) on an M1 macbook
Version info

Fluttter Doctor
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.0 20A2411 darwin-arm, locale en-GB)
    • Flutter version 2.5.3 at /Users/tking/Developer/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (4 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at /Users/tking/Library/Android/sdk
• Platform android-31, build-tools 31.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.5, Build version 12E262
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2020.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
[✓] VS Code (version 1.61.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension can be installed from:
🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[✓] Connected device (2 available)
• sdk gphone64 arm64 (mobile) • emulator-5554 • android-arm64  • Android 12 (API 31) (emulator)
• Chrome (web)                • chrome        • web-javascript • Google Chrome 95.0.4638.69
• No issues found!

Same problem on MacBook Pro 16" M1 Pro

Hi @tking16, this issue is known and is being tracked in the flutter/intellij repo. https://github.com/flutter/flutter-intellij/issues/5853
Kindly follow up there for more information.
Closing as this isn't an issue with flutter itself.
Thank you


Read --dart-define in RendererBinding.initInstances()

Move SKPARAGRAPH_REMOVE_ROUNDING_HACK reading to the framework from dart:ui so flutter run --dart-define="SKPARAGRAPH_REMOVE_ROUNDING_HACK=false" works
Pre-launch Checklist

[ ] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[ ] I read the Tree Hygiene wiki page, which explains my responsibilities.
[ ] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[ ] I signed the CLA.
[ ] I listed at least one issue that this PR fixes in the description above.
[ ] I updated/added relevant documentation (doc comments with ///).
[ ] I added new tests to check the change I am making, or this PR is test-exempt.
[ ] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

doing it in a constructor seems like it would mean we're doing it more than once, when we only need to do it once, right? would the binding be a better place for it maybe?

Can you leave a pointer to the documentation of what this is? Just so we can follow the breadcrumb trail if someone new needs to clean this up later.


ui: Profile page not padding bottom inset

From beta feedback: https://chat.zulip.org/#narrow/channel/48-mobile/topic/Flutter.20beta.3A.20Long.20profiles.20render.20under.20navigation.20bar/near/2011825

The screenshot I provided is from a Pixel 9 Pro Fold (folded)

Implementation
ProfilePage needs a SafeArea in the appropriate place; probably wrapping the SingleChildScrollView.
This is a nice reminder that iPhones are not the only devices where SafeArea is needed 😉.

Hi @chrisbobbe ,
Can I work on this issue?

Sure; please send a PR when your work is ready for review.

Sure; please send a PR when your work is ready for review.

I have implemented the above solution for this issue as you told to wrap in SingleChildScrollView in SafeArea.
But I am not able to test it in a Pixel 9 Pro Fold device (AVD), since it crashes every time I open it, with or without any changes in ProfilePage.dart.

@Gaurav-Kushwaha-1225 Please report that in a fresh issue thread, or in its own chat thread in #mobile. I'm interested in debugging that issue, but let's keep this issue thread focused on the issue it's about.


Unable to Install CRC on a Internet disconnected VM

General information

OS: RHEL 8
Hypervisor: KVM
Did you run crc setup before starting it (Yes/No)? Yes
Running CRC on: VM on VMware with nested virtualization enabled

CRC version
# Put `crc version` output here
CRC version: 2.8.0+217b3bd
OpenShift version: 4.11.1
Podman version: 4.1.1

CRC status
# Put `crc status --log-level debug` output here

CRC config
# Put `crc config view` output here
- consent-telemetry                     : no

Host Operating System
# Put the output of `cat /etc/os-release` in case of Linux
NAME="Red Hat Enterprise Linux"
VERSION="8.6 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.6"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.6 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/red_hat_enterprise_linux/8/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"

REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.6
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.6"

Steps to reproduce
This machine has no internet access so I have manually placed the crc_libvirt_4.11.1_amd64.crcbundle at the /home//.crc/cache/ and I'm running $ crc setup at the terminal.
$ crc setup
INFO Using bundle path /home/<user>/.crc/cache/crc_libvirt_4.11.1_amd64.crcbundle
INFO Checking if running as non-root
INFO Checking if running inside WSL2
INFO Checking if crc-admin-helper executable is cached
INFO Checking for obsolete admin-helper executable
INFO Checking if running on a supported CPU architecture
INFO Checking minimum RAM requirements
INFO Checking if crc executable symlink exists
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if active user/process is currently part of the libvirt group
INFO Checking if libvirt daemon is running
INFO Checking if a supported libvirt version is installed
INFO Checking if crc-driver-libvirt is installed
INFO Checking crc daemon systemd service
INFO Checking crc daemon systemd socket units
INFO Checking if systemd-networkd is running
INFO Checking if NetworkManager is installed
INFO Checking if NetworkManager service is running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
INFO Checking if libvirt 'crc' network is available
INFO Checking if libvirt 'crc' network is active
INFO Checking if CRC bundle is extracted in '$HOME/.crc'
INFO Checking if /home/<user>/.crc/cache/crc_libvirt_4.11.1_amd64.crcbundle exists
INFO Getting bundle for the CRC executable
INFO Downloading crc_libvirt_4.11.1_amd64.crcbundle

Then exits.
But the crc_libvirt_4.11.1_amd64.crcbundle exists at the location(As shown below) but even after that it is complaining.
$ ls -lh /home/<user>/.crc/cache/
total 3.3G
-rwxrwxrwx. 1 <user> WASAdmins 3.3G Sep  9 12:20 crc_libvirt_4.11.1_amd64.crcbundle

@jauyzed you should use crc setup -b <bundle_path> so it will extract bundle even it is not part of ~/.crc/cache.

@praveenkumar This worked. Thank you!


fix(embed): make component focusable, only show control/placeholder on video

This PR resolves issue #1767, which states that:

the pause control button is visible, even if we are using an iframe in Embed component.

This PR also resolves issue #1742 by making the Embed component focusable using keyboard.

Other changes

control button, placeholder is not shown when video prop not set
background set to grey colorScheme.brand.background
added YouTube example

TODO

accessibility is broken even on master, this will be fixed in another PR

Let's first fix the control button of Embed component #1768

@alinais please review this PR again, it has changed quite a bit since last time

Fails

:no_entry_sign:
All of your entries in CHANGELOG.md should be in the **Unreleased** section!

  Generated by :no_entry_sign: dangerJS


Clicking QR code should prompt for user default wallet

Current functionality: clicking QR code copies the lightning invoice
Feature request: When user clicks on the QR code, it should show a modal or prompt asking the user to choose which bitcoin wallet(s) installed on their device to pay the invoice.

Somewhat related: When clicking on "Pay in Wallet" in a BTCPay invoice on Android Mobile, it opens said modal offering a variety of installed Lightning capable apps, however it does not offer Bitcoin Beach Wallet (despite being installed)

@agbegin reproduced similar behavior in IOS, again with multiple other Lightning capable wallets installed, including Bitcoin Beach Wallet, the prompt offers Breez Wallet only. I've read here that IOS simply defaults to the last used Lightning wallet.

Hello @Extheoisah good day, is this issue still available to be worked on?

Great, will update the thread as I work on it


Ensembling Methods incompatible with snnTorch models

Hi,
I have been trying to set up GradientBoosting for an snnTorch model I am working on it's mostly PyTorch in the background. However, I've run into a circular issue that I have yet to find a solution for:
Originally, my inputs for my train/test loaders for my feed forward snnTorch model were all dtype torch.float. I got this error:
     33 onehot = torch.zeros(label.size(0), n_classes).float().to(label.device)
---> 34 onehot.scatter_(1, label.view(-1, 1), 1)
     36 return onehot

RuntimeError: scatter(): Expected dtype int64 for index

In an attempt to fix this, I tried changed the type for all my inputs to be dtype torch.int64, but got this error:
    113 def forward(self, input: Tensor) -> Tensor:
--> 114     return F.linear(input, self.weight, self.bias)

RuntimeError: mat1 and mat2 must have the same dtype

For an input to require_grad, the tensor must be a float, so changing dtype in my Linear layers don't help, either.
What could be going wrong? Since snnTorch is an extension of PyTorch, I was hoping that Ensemble-Pytorch would also be compatible, but if there is some core compatibility issues I understand. Thanks in advance!
Edit: To clarify, ensemble.fit exposes these issues.

Hi @kgano-ucsd, sorry for the late response. I think the reason is that the size of one hot encoded vector mismatches the input dim of your model.


Resource viz: scoping

Scoping tasks for resource visualization. Offering a simple graph visualisation of the incoming / outgoing links centered on 1 resource).
To investigate for Graph Viz: https://github.com/scienceai/jsonld-vis (given small code base, it would be worth it to port it to the latest d3.js release)

outdated


documentation: fixed grammatical errors and typos

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

Thanks a lot for your contribution, LGTM

Thanks for your contribution @vinay-s36
You need to sign the CLA so we can merge it :-)

@pascalgrimaud I've signed the CLA


Move all trace exporters in exporters/trace directory.

Coverage remained the same at 79.081% when pulling 1b9609dfaac6a981f476f4441d626eb731352adc on bogdandrutu:exportersdir into 620d97c15db3588376adad2d0dd8c55db4650806 on census-instrumentation:master.

Codecov Report

Merging #719 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #719   +/-   ##
=========================================
  Coverage     77.28%   77.28%
  Complexity      758      758
=========================================
  Files           139      139
  Lines          3571     3571
  Branches        331      331
=========================================
  Hits           2760     2760
  Misses          747      747
  Partials         64       64

Impacted Files
Coverage Δ
Complexity Δ

...census/exporter/trace/logging/LoggingExporter.java
47.05% <ø> (ø)
3 <0> (?)

...xporter/trace/stackdriver/StackdriverExporter.java
21.87% <ø> (ø)
3 <0> (?)

...race/stackdriver/StackdriverV1ExporterHandler.java
0% <ø> (ø)
0 <0> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 620d97c...1b9609d. Read the comment docs.

Coverage remained the same at 79.037% when pulling e6ecd38aa320059620d221634e45260f78ba4eef on bogdandrutu:exportersdir into bd96a9c62b8a2f2a4cf43792ed827262688c0358 on census-instrumentation:master.


[fix](jdbc scan) 1=1 does not translate to TRUE

Proposed changes
Issue Number: close #19745
For most database systems, they recognize where 1=1 but not where true, so we should send the original 1=1 to the database
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall


how to get data

How to get data?

Hi, You can find datasets from LDC https://catalog.ldc.upenn.edu/LDC2006T06.


Adding learning rate into logging

Adding learning rate into logging.
.
Fixes #ISSUE_NUMBER
Proposed Changes

Checklist

[ ] I have read the CONTRIBUTING guide
[ ] My PR is based from the current GaNDLF master
[ ] Non-breaking change (would not break existing functionality): please provide as many details as possible for any breaking change
[ ] Function/class source code documentation added/updated
[ ] Code has been blacked for style consistency
[ ] If applicable, version information has been updated in GANDLF/version.py
[ ] If adding a git submodule, add to list of exceptions for black styling in pyproject.toml file
[ ] Usage documentation has been updated, if appropriate
[ ] History has been updated, if appropriate
[ ] Tests added or modified to cover the changes; if coverage is reduced, please give explanation
[ ] If customized dependency installation is required (i.e., a separate pip install step is needed for PR to be functional), please ensure it is reflected in all the files that control the CI, namely: python-test.yml, and all docker files [1,2,3,4]

It seems this is only available in torch 1.11? How do we proceed @sarthakpati

@Geeks-Sid should the base branch for this PR be https://github.com/Geeks-Sid/GaNDLF/tree/lr_logger?

This PR will stay in Draft until next version as it depends on pytorch version 1.11


Allow multi-deployment configuration for Azure OpenAI

Relevant to #237, this will allow overriding the following properties per model in the Azure OpenAI configuration

endpoint
resource-name
deployment-name

Example configuration that is now possible:
quarkus.langchain4j.azure-openai.ad-token=token
quarkus.langchain4j.azure-openai.api-version=2023-07-01-preview
quarkus.langchain4j.azure-openai.chat-model.enabled=true
quarkus.langchain4j.azure-openai.deployment-name=my-deployment-name
quarkus.langchain4j.azure-openai.embedding-model.enabled=true
quarkus.langchain4j.azure-openai.resource-name=name
quarkus.langchain4j.azure-openai.embedding-model.deployment-name=another-deployment-name

In ht e above example, all models in the parent configuration will have the my-deployment-name, but the Embedding model will have the another-deployment-name specifically as a name.

@geoand I removed the lamdas in favor of Suppliers I hope that's ok (I saw that there were other cases with Suppliers as well.
I suppose the reason for the change is performance?

Yeah, at some point in the past we saw there was a tiny impact related to lambdas so we decided to try and limit their use in our code

Ah, yes. done.

I force pushed an update that fixes the formatter  complaints


NoMethodError in DraftsController#update undefined method to_i for Hash

My User model is a Devise model and I'm using the trackable functionality.  If I attempt to publish a change to the User model with object_changes unrelated to devise, I receive this error:

It seems related to this and this.
I know where the problem is happening, I just don't know enough about the issue I'm running into nor do I feel proficient in Ruby enough yet to know how I can help get it fixed or if it can be.  The problem is happening during the reify call:
def reify
    without_identity_map do
      if !self.previous_draft.nil?
        reify_previous_draft.reify
      elsif !self.object.nil?

        [...]

        # The problem is happening in this loop when the key is equal to current_sign_in_ip or last_sign_in_ip
        attrs.each do |key, value|
          # Skip counter_cache columns
          if model.respond_to?("#{key}=") && !key.end_with?('_count')
            model.send "#{key}=", value
          elsif !key.end_with?('_count')
            logger.warn "Attribute #{key} does not exist on #{item_type} (Draft ID: #{id})."
          end
        end

        model.send "#{model.class.draft_association_name}=", self
        model
      end
    end
  end

I would love to help fix this if I better understood why setting these attributes was throwing this exception.

Here is the failing test:
  test 'should update user role if admin' do
    request.env['HTTP_REFERER'] = root_path
    assert_difference 'Draftsman::Draft.count', 1 do
      while_logged_in_as @admin do
        patch :update, id: @member, user_role: { role: :content_creator }
        assert_redirected_to @member
      end
    end
    @member.reload.draft.publish!
    assert 'content_creator', @member.reload.role
  end

My user model looks like this:
class User < ActiveRecord::Base
  has_many :profiles
  has_many :contributions, through: :profiles
  has_many :comments, dependent: :destroy

  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable,
         :omniauthable, :omniauth_providers => [:facebook]

  enum role: [:member, :content_creator, :moderator, :admin]
  after_initialize :set_default_role, if: :new_record?

  mount_uploader :image, UserImageUploader
  mount_uploaders :pictures, UserImageUploader

  has_drafts only: [:role]

  validates :name, length: { minimum: 6 }, allow_blank: true
  validates :image, image: true
  validates :pictures, length: { maximum: 50 }, allow_blank: true, pictures: true
  validates :homepage, url: true, allow_blank: true
  validates :description, length: { maximum: 300 }, allow_blank: true

  def self.from_omniauth(auth)
    user                  = where(provider: auth.provider, uid: auth.uid).first_or_create do |u|
      u.email    = auth.info.email
      u.password = Devise.friendly_token[0, 20]
    end
    user.name             = auth.info.name # assuming the user model has a name
    user.remote_image_url = auth.info.image # assuming the user model has an image
    user
  end

  def self.new_with_session(params, session)
    super.tap do |user|
      if data = session['devise.facebook_data'] && session['devise.facebook_data']['extra']['raw_info']
        user.email = data['email'] if user.email.blank?
      end
    end
  end

  def next_role
    User.roles.key(User.roles[role] + 1)
  end

  private

  def set_default_role
    self.role ||= :member
  end

end

And lastly, here is an example of my user fixtures (they all pretty much follow this format):
member:
  name: Member Man
  email<EMAIL_ADDRESS>  encrypted_password: <%= Devise::Encryptor.digest(User, 'password') %>
  homepage: http://ibelongsomewhere.com
  description: I'm a member of this website
  role: <%= User.roles[:member] %>
  current_sign_in_ip: <IP_ADDRESS>
  last_sign_in_ip: <IP_ADDRESS>

Since my columns in the users table are of inet type, and the object column in the drafts table is of json type, the IPAddr types in ruby are being converted to json.  For example, while debugging, I realized this when I get the object through object_attrs_for_draft_record and the object at that point still has IPAddr type.  It is the act of storing this object object into a json format:
[277, 286] in /home/jake/.rvm/gems/ruby-2.2.1/bundler/gems/draftsman-1bd3c797d540/lib/draftsman/model.rb
   277:               data = {
   278:                 :item      => self,
   279:                 :whodunnit => Draftsman.whodunnit,
   280:                 :object    => object_attrs_for_draft_record
   281:               }
=> 282:               data = merge_metadata_for_draft(data)
   283:
   284:               # If there's already a draft, update it.
   285:               if send(self.class.draft_association_name).present?
   286:                 data[:object_changes] = changes_for_draftsman if track_object_changes_for_draft?

(byebug) data[:object]['current_sign_in_ip']
#<IPAddr: IPv4:<IP_ADDRESS>/<IP_ADDRESS>>
(byebug) data[:object]['current_sign_in_ip'].to_json
"{\"family\":2,\"addr\":2130706433,\"mask_addr\":4294967295}"

(byebug) IPAddr.new(data[:object]['current_sign_in_ip'].to_s)
#<IPAddr: IPv4:<IP_ADDRESS>/<IP_ADDRESS>>
(byebug) IPAddr.new(data[:object]['current_sign_in_ip'].to_json)
*** IPAddr::InvalidAddressError Exception: invalid address

nil
(byebug)

I'm trying to wrap my head around whether or not this is an appropriate solution or not:
  has_drafts only: [:role], skip: [:current_sign_in_ip, :last_sign_in_ip]

Right now, I can't think of any reason why I would need this serialized with the rest of the fields in my user model.  In fact, as you can see, I only currently care about the role attribute.  I've confirmed that if these are not included in the json serialization that the existing values for these attributes in the user record remain as they were once the draft is published :)
Feel free to close this, but I left it open in hopes of getting some advice and/or clarification on current concerns related to this.  Thanks!

@jakehockey10 Thanks for reporting this, digging in further, and reporting your progress. I could see if it would be possible to add some logic that treats the deserialization differently if the database column was of type inet.
Right now, the tests for Draftsman only run against SQLite.  (I run Postgres in my application, so I have plenty of incentive to test against it as well.)

I really like this gem a lot, so I figured I'd give a detailed report of what I was running into because it seemed that this would be a fairly common configuration (to have devise and draftsman).  I did a little investigation on what could be changed in the gem to account for this, but I couldn't find much about the json representation of a IPAddr instance.  Do you have some initial ideas on how the gem could manage columns of type inet?

I'd have to look into it more, but perhaps reify could be modified to use
ActiveRecord's reflection functionality to treat inet-based attributes
differently when deserializing.
On Sunday, April 10, 2016, Jake Smith<EMAIL_ADDRESS>wrote:

I really like this gem a lot, so I figured I'd give a detailed report of
what I was running into because it seemed that this would be a fairly
common configuration (to have devise and draftsman). I did a little
investigation on what could be changed in the gem to account for this, but
I couldn't find much about the json representation of a IPAddr instance.
Do you have some initial ideas on how the gem could manage columns of type
inet?
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/liveeditor/draftsman/issues/43#issuecomment-208017930

This issue is still present

Hi, I think we ran into the same issue with paper_trail and found the issue with ActiveSupport. https://github.com/paper-trail-gem/paper_trail/issues/1278
The issue was IPAddr.new("<IP_ADDRESS>").to_json => {"family":2,"addr":2130706433,"mask_addr":4294967295}
Here's the Rails issue https://github.com/rails/rails/issues/40932 and fix commit https://github.com/rails/rails/commit/e7d207f02fe8bf6e351de7da106839b0ab14bbea
I think we can also fix this with a Rails initializer:
class IPAddr
  def as_json(options = nil)
    to_s
  end
end


homebrew cask?

Hi @JounQin, I am reluctant to create a Homebrew cask as Mist has it's own built-in updater (via Sparkle) and I anticipate issues with Homebrew's updating / version mechanism.

FYI, Homebrew does have the ability to define a Cask as auto-updating, which means Homebrew will allow the app to manage updating itself. It installs the newest version when you run brew install <app_name>, but then doesn't install updates to the app when running brew upgrade.

From here: https://docs.brew.sh/Cask-Cookbook#optional-stanzas
I agree with @JounQin that it'd be nice to have this as a Cask. That's the primary way I install apps these days. :)


Potential issue in Zest/tutorial 1

Hi! I am writing about a potential issue with Zest tutorial 1. The issue is reproduced both on Ubuntu and Mac OS. I am following all the steps until Optional: Test with JUnit and QuickCheck
My folder structure is
JQF
/ bin
/ examples
/ fuzz
/ instrument
/ tutorial
  / CalendarLogic.java
  / CalendarGenerator.java
  / CalendarTest.java
...

To Reproduce
In the directory tutorial, I run
java -cp .:$(../scripts/classpath.sh) org.junit.runner.JUnitCore CalendarTest

Expecting
Assumption is too strong; too many inputs discarded

Actual
java.lang.NoClassDefFoundError: edu/berkeley/cs/jqf/instrument/InstrumentationException
        at edu.berkeley.cs.jqf.fuzz.JQF.methodBlock(JQF.java:187)
        at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:366)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:103)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:63)
        at org.junit.runners.ParentRunner$4.run(ParentRunner.java:331)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:79)
......

To fix
I do not know Java well but I tried to fix the issue. I added the following lines to JQF/scripts/classpath.sh after line 17, adding classes/jars from instrument to $cp.
cp="$cp:$ROOT_DIR/instrument/target/classes:$ROOT_DIR/instrument/target/test-classes"
for jar in $ROOT_DIR/instrument/target/dependency/*.jar; do
  cp="$cp:$jar"
done

and now I am getting the expected output
1) testLeapYear(CalendarTest)
edu.berkeley.cs.jqf.fuzz.guidance.GuidanceException: Assumption is too strong; too many inputs discarded
        at edu.berkeley.cs.jqf.fuzz.random.NoGuidance.handleResult(NoGuidance.java:124)
        at edu.berkeley.cs.jqf.fuzz.junit.quickcheck.FuzzStatement.evaluate(FuzzStatement.java:176)
        at org.junit.runners.BlockJUnit4ClassRunner$1.evaluate(BlockJUnit4ClassRunner.java:100)

Question
Should the final variable $cp from scripts/classpath.sh include instrument/target/classes, instrument/target/test-classes and every jar in instrument/target/dependency (actually just 1 jar)?

Hi @YuqiHuai. Thanks for pointing this out! I was able to repro the issue on my end as well. I don't know when the tutorial instructions broke, perhaps with the last change to fuzz/pom.xml or the classpath.sh file itself. But, you are right, that currently the script does not include classes from the instrument package in the classpath, but it should! The four lines that you suggested are correct. I'll push a quick fix.

@rohanpadhye sounds good! I'll continue to explore! I have a follow-up question that might not be an issue. So I am still in the same tutorial and I am running ../bin/jqf-zest -c .:$(../scripts/classpath.sh) CalendarTest testLeapYear
I am expecting something like what the tutorial is suggesting
java.lang.AssertionError: 3600 should be a leap year
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at CalendarTest.testLeapYear(CalendarTest.java:21)

But instead, I just keep getting too many trials without coverage
Semantic Fuzzing with Zest
--------------------------

Test name:            CalendarTest#testCompare
Instrumentation:      Janala
Semantic Fuzzing with Zest
--------------------------

Test name:            CalendarTest#testLeapYear
Instrumentation:      Janala
Results directory:    /path/to/JQF/tutorial/fuzz-results
Elapsed time:         4s (no time limit)
Number of executions: 86,269 (no trial limit)
Valid inputs:         56 (0.06%)
Cycles completed:     0
Unique failures:      1
Queue size:           0 (0 favored last cycle)
Current parent input: <seed>
Execution speed:      41,603/sec now | 21,486/sec overall
Total coverage:       0 branches (0.00% of map)
Valid coverage:       0 branches (0.00% of map)
Fuzzing stopped due to guidance exception: Too many trials without coverage; likely all assumption violations
E
Time: 3.695
There was 1 failure:
1) testLeapYear(CalendarTest)
edu.berkeley.cs.jqf.fuzz.guidance.GuidanceException: Too many trials without coverage; likely all assumption violations
        at edu.berkeley.cs.jqf.fuzz.ei.ZestGuidance.lambda$getInput$0(ZestGuidance.java:672)
        at edu.berkeley.cs.jqf.fuzz.ei.ZestGuidance.conditionallySynchronize(ZestGuidance.java:1063)

Do you know if I am doing something incorrectly or is this also broken due to some updates?

@rohanpadhye Thank you so much for your timely replies and fixes! No worries! I am just getting started and have been following the tutorial. I haven't set up a maven project to run mvn jqf:fuzz but I will give it a try soon!


Autocompletion not working on Windows with a fresh install

On Windows 10, using Git Bash, after the regular setup, the autocompletion outputs the following message:
$ platform bash: C:UsersIEUser.platformshbinplatform: command not found

It seems that the \ character is stripped in the path.
Having a look at the generated autocompletion.sh, I figured out that the path to the platform CLI is not quoted, and the \ are not doubled.
I was able to fix the issue by replacing:
RESULT=$(C:\Users\IEUser\.platformsh\bin\platform _completion --shell-type bash >/dev/null)

by:
RESULT=$("C:\Users\IEUser\.platformsh\bin\platform" _completion --shell-type bash >/dev/null)

After this change, and after sourcing ~/.bashrc, the autocompletion works.
It ouputs another error, but probably related to the Windows Bash implementation:
__ltrim_colon_completions: command not found

The autocompletion script generation is done in stecman/symfony-console-completion, which is called by the self:install command. The program path is directly passed here.
#1174 adds quotes around it.


Continue searching when we get a deleted bucket

Check to see if the error we get is "NoSuchBucket"
Sometimes, ListBuckets will return buckets that have been deleted, but haven't actually been removed yet. This causes GetBucketTagging to return NoSuchBucket, and the function to return without checking any remaining buckets (which could be the one we actually want).
If we get "NoSuchBucket", just continue. A bucket that has been deleted can't be the one we are looking for (at least, it wouldn't be useful if it was).
Fixes #928
I'm not quite sure how to test this, as it it a transient error related to how S3 is working behind the scenes. It happened to me once in several days of use, but the issue persisted for an hour or more. The "phantom" bucket was gone the next morning.

Tests passed! Merging now.

https://github.com/gruntwork-io/terratest/releases/tag/v0.36.0


How to deserialize a subtype using the type name given in the input data?

Hi, I'm currently working on a project where I'm implementing a deserializer using Serde.NET. I have encountered a specific scenario and would appreciate some guidance on how to approach it.
Here is the simplified example of the scenario:
We first declare the following example types:
[GenerateDeserialize]
class Foo {
  public AbstractBar bar;
}

abstract class AbstractBar { }

[GenerateDeserialize]
class Bar1 : AbstractBar {
  public int bar;
}

[GenerateDeserialize]
class Bar2 : AbstractBar {
  public double bar;
}

And then, we extend the JSON encoding so that, if an object starts with a property "_t" (or whatever other type tagging, the details don't matter), the value of the property is the FQN of the type, so we can deserialize children class or interface implementations and assign them to the base class/interface.
For example, the following JSON input:
{ "bar": { "_t": "Bar1", "bar": 1234 } }

Would deserialize to the following data structure.
new Foo { bar = new Bar1 { bar = 1234 } }

I have noticed that there's IDeserializer::DeserializeType(typeName, fieldNames, v), but I can't find any detailed documentation or examples in this repository on how to use it (other than redirecting it into DeserializeDictionary). Could you please provide some guidance on implementing a feature like this in the deserializer?

Yeah the deserialize is more complicated. I’ll write up an example today

Added a sample: https://github.com/serdedotnet/serde/blob/main/samples/unions/Program.cs
A lot of the complexity is in the InlineDeserializer, which exists because the type tag and the data are in the same JSON object. I think if the subtypes were nested, this would be simpler to represent. I'm going to do some refactoring to try to make this simpler in the future.

That really helps! Thanks for the rapid response!


Cannot colocate nodes m_2/global_norm/L2Loss and m_2/gradients/m_2/CudnnRNN_grad/CudnnRNNBackprop

windows10

tensorflow1.4

Cannot colocate nodes m_2/global_norm/L2Loss and m_2/gradients/m_2/CudnnRNN_grad/CudnnRNNBackprop because no device type supports both of those nodes and the other nodes colocated with them

Colocation Debug Info:
Colocation group had the following types and devices:
CudnnRNNBackprop: GPU
Identity:
L2Loss: CPU

 [[Node: m_2/global_norm/L2Loss = L2Loss[T=DT_FLOAT, _class=["loc:@m_2/gradients/m_2/CudnnRNN_grad/CudnnRNNBackprop"], _device="/device:GPU:0"](m_2/gradients/m_2/CudnnRNN_grad/tuple/control_dependency_3)]]

Hi Art,
First, thanks for this incredible job.
I have the same issue as Sparo-jack had. Could you please let me know how we can resolve this!
Appreciate it in advance.


[feat] add C/C++ support

hey! amazing work on this plugin, works very well for me in some of the languages I have tested it on!
I wanted to request support for C/C++ as well, as it would be very useful and the fact that there are very few options (if any) for these languages for this level of functionality. I am aware that it might be a complicated endeavor (as suggested by discussions in splitjoin.vim plugin), but its good to start a new discussion.
I think it would be a great addition to this plugin, and will attract many more devs and appreciation!

Hi! Thanks for feedback. Can you send few examples of c++: 'result of SPLIT'/'result of JOIN' (like in tests)?
I didn't use c++ in my work and no know its syntax. I think, if c++ have similar structure, TreeSJ will handle it.
Or you can try configured c++ according README.md and open a PR.

sure! I can see what I can get this working with, just starting to get familiar with Treesitter.
but for a reference, checkout this issue on splitjoin.nvim
https://github.com/AndrewRadev/splitjoin.vim/issues/33#issuecomment-44127589

just from a quick view, progress would require support for multiple separators configurable via a list like no_format_with is.  eg: this would enable and, or, &&, ||, and so on to be used together in as one separator type.

Later, I'll look at the tree structure that the treesitter gives. I think that there should be no problems for c/c++ support.

just from a quick view, progress would require support for multiple separators configurable via a list like no_format_with is. eg: this would enable and, or, &&, ||, and so on to be used together in as one separator type.
also, there is a crash, its hard to explain how to reproduce, but it might be a missing bounds check which can just be patched:
|| Error executing Lua callback: ...e/nvim/site/pack/packer/opt/treesj/lua/treesj/format.lua:67: Cursor position outside buffer
|| stack traceback:
|| 	[C]: in function 'nvim_win_set_cursor'
|| 	...e/nvim/site/pack/packer/opt/treesj/lua/treesj/format.lua:67: in function '_format'
|| 	...are/nvim/site/pack/packer/opt/treesj/lua/treesj/init.lua:20: in function <...are/nvim/site/pack/packer/opt/treesj/lua/treesj/init.lua:19>

Can you open a separate issue and send a code, preset and cursor position where you call a plugin?

Later, I'll look at the tree structure that the treesitter gives. I think that there should be no problems for c/c++ support.

I agree, some of the use cases are very easily implemented:
        cpp = {
            parameter_list = treesj_utils.set_preset_for_args(),
            argument_list = treesj_utils.set_preset_for_args(),
            initializer_list = treesj_utils.set_preset_for_list(),
            compound_statement = treesj_utils.set_preset_for_list({
                both = {
                    separator = ';',
                    last_separator = true,
                    no_format_with = {}
                }
            })
        },

ill keep looking at this, adding more cases as I find time and use.

@ViRu-ThE-ViRuS, send a code (block where you call plugin) too, please

AndrewRadev/splitjoin.vim#33 (comment)

In the first fragment, it is a binary expression. I don't think what is the best way to format it with treesitter (because it is binary inside binary). But I also think, how implement this, but not in TreeSJ.
The second fragment you already configured in your preset. Or implied need similar formatting, when first argument stay on first line?

AndrewRadev/splitjoin.vim#33 (comment)

About this, not sure. In my todos I have task to adapt TreeSJ for split/join blocks without brackets, but here separator stay before named nodes. I'll keep that scenario in mind for future development.

AndrewRadev/splitjoin.vim#33 (comment)

In the first fragment, it is a binary expression. I don't think what is the best way to format it with treesitter (because it is binary inside binary). But I also think, how implement this, but not in TreeSJ. The second fragment you already configured in your preset. Or implied need similar formatting, when first argument stay on first line?

For the first fragment, it would make sense if clauses within ( ) are on one line, and if no grouping via ( ) is given, then just split them all into new lines. EG:
if (a && b || c) {}
---
if (
    a &&
    b ||
    c
) {}

NOTE: One would prefer to have the first clause on the first line, and the last clause inline with ) {} but I think thats a nit pick and its okay to not handle this edge case.
The main point is to split the conditions into readable lines, after which any auto formatter can take care of the first and last lines as per its configuration.
if((a && b) || c) {}
---
if (
    (a && b) ||
     c
) {}

If these groupings can be handled correctly by TreeSJ, it would be an amazing addition.
I totally understand if cases like this are beyond the scope of this plugin.

#58, #59


optimize for ios14

usage:
[cell.contentCellView addSubview:otherView]

This is the result of the fix that you provided.


[FLINK-35779][Connectors/Google PubSub] Update documentation for PubSubSinkV2

Description
Update PubSub documentation to include PubSubSinkV2 changes
Testing

This is a documentation change and need no additional testing

@snuyanzin  could you please take a look at this PR?


SEPG Automated Release - v1.2.3

SEPG Details
Release Build Link: http://sou-jenkins2.swinfra.net:8080/job/Auto-Release/399/
Build Token: github.com/CAFapi/opensuse-nodejs18-image/main/5518ea59d426e8f1c8e3800ed74e37a6332909c0
Versioning Behaviour: Roll on to next minor
Artifacts For Release
Docker

cafapi/opensuse-nodejs18:1.2.3 (Static Tag)
cafapi/opensuse-nodejs18:1.2 (Dynamic Tag)
cafapi/opensuse-nodejs18:1 (Dynamic Tag)
cafapi/opensuse-nodejs18:latest (Dynamic Tag)

 Build Stage
Action
Status

Release Checks
completed
:heavy_check_mark:

Gather Release Data

:white_small_square:

QA Documentation Site Deployment

:white_small_square:

QA Deployment Branch Promotion

:white_small_square:

Docker Image Promotion

:white_small_square:

Maven Artifact Promotion (Closed Source)

:white_small_square:

NuGet Artifact Promotion

:white_small_square:

Artifactory Release Artifact Tagging

:white_small_square:

Generic Artifact Promotion

:white_small_square:

Maven Artifact Promotion (Open Source)

:white_small_square:

Maven Staging Repository Removal (Open Source)

:white_small_square:

Git Tagging

:white_small_square:

Git Release

:white_small_square:

Git Release Asset Deployment

:white_small_square:

Pull Request Merge

:white_small_square:

Release Branch Deletion

:white_small_square:

view the build log here


Update azure-machine-learning-release-notes.md

@ctian-msft : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ktoliver : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@jialiu103 Thank you for your review! In the public repo, the content team or the product team needs to sign off on a pull request before it can be merged.
@Blackmist Could you take a look?  Thanks.

Looks good, thanks @ctian-msft and @jialiu103.
#sign-off

Thanks so much.


Enumerate missing GLSL constructs

Here's the list of GLSL intrinsics we currently support: https://github.com/sampsyo/braid/blob/19f57db2ddcd93f1d07af3f49b9cc2b375a1c1f4/src/backends/gl.ts#L128-L193
It would be awesome to have a list of what we're missing from the GLSL standard supported by WebGL 1.0.

Compare GLSL intrinsics with build-in functions in webgl reference card.
Here are missing functions in Braid.
T represents float, vec2, vec3, or vec4

Triangular Functions

T sin(T angle)
T cos(T radians)
T sin(T angle)
T cos(T angle)
T tan(T angle)
T asin(T x)
T acos(T x)
T atan(T y, T x): atan2 in java
T atan(T y_over_x)

Exponential Functions

T exp(T x): e^x
T log(T x): ln x
T log2(T x): log_2
T sqrt(T x): square root
T inversesqrt(T x): inverse square root
T sign(T x): returns -1.0, 0.0, or 1.0
T floor(T x): nearest integer <= x
T ceil(T x): neaerest integer >= x
T fract(T x): x - floor(x)
T mod(T x, T y): modulus
T mod(T x, float y): modulus
T min(T x, T, y) and T min(T x, float y): overloaded
T max(T x, T, y) and T max(T x, float y): overloaded
T step(T edge, T x) and T step(float edge, T x): 0.0 if x < edge, else 1.0
T step(T edge0, T edge1, T x) and T step(float edge0, float edge1, T x): clip and smooth

Geometric Functions

float length(T x): length of a vector
float distance(T p0, T p1): distance between two points
T faceforward(T N, T I, T Nref): returns N if dot(Nerf, I) < 0, else returns -N
T refract(T I, T N, float eta): refraction vector

Matrix functions

Mat matrixCompMult(mat x, mat y): multiply x by y for each entry, such that result[i][j] = x[i][j] * y[i][j]

Vector Relational Functions: bvec stands for a boolean vector

bvec lessThan(T x, T y): x < y
bvec lessThanEqual(T x, T y): x <= y
bvec greaterThan(T x, T y): x > y
bvec greaterThanEqual(T x, T y): x >= y
bvec notEqual(T x, T y) and bvec equal(bvec x, bvec y): x == y
bvec notEqual(T x, T y) and bvec equal(bvec x, bvec y): x != y
bool any(bvec x): true if any component of x is true
bool all(bvec x): true if all components of x are true
bvec not(bvec x): logical inverse of x

Texture Loopup Functions

Available in both vertex and frament shaders

vec4 texture2DProj(sampler2D sampler, vec3 coord)
vec4 texture2DProj(sampler2D sampler, vec4 coord)
vec4 textureCube(samplerCube sampler, vec3 coord)

Available only in vertex shaders

vec4 texture2DLod(sampler2D sampler, vec2 coord, float lod)
vec4 texture2DProjLod(sampler2D sampler, vec3 coord, float lod)
vec4 texture2DProjLod(sampler2D sampler, vec4 coord, float lod)
vec4 textureCubeLod(samplerCube sampler, vec3 coord, float lod)

Availabe only in fragment shaders

vec4 texture2D(sampler2D sampler, vec2 coord, float bias)
vec4 texture2DProj(sampler2D sampler, vec3 coord, float bias)
vec4 texture2DProj(sampler2D sampler, vec4 coord, float bias)
vec4 textureCube(samplerCube sampler, vec3 coord, float bias)

This is great; thanks! Perhaps the next step would be to group these into rough units that we might work on adding. For example, here are some patterns I see:

There are lots of plain vector math functions. These should be "easy" to add to our collection.
Boolean vectors. We don't have a type for these yet.
Texture functions. We already support texture2D, and the other functions look like they follow the same pattern, right?

Also, it strikes me after reading this list that it would be nice to support much of these functions on the CPU as well as on the GPU. We already do this for a few simple functions, such as matrix multiplication, but more uniform coverage would be awesome.


Consider creating a vanilla web component version of this repo

From this discussion: https://polymer.slack.com/archives/projects/p1460401675000212
Maybe we should consider creating a vanilla version of this element. I'll need to think about it though, since from my understanding polymer elements should be interoperable with other web components, without modification. But, the component of course would be heavier than a vanilla component, since it would need to bring in the polymer library. Think about it.

I considered it, and I don't think it's a good idea for the foreseeable future. Polymer gives us the nice abstractions that we really are going to want anyway.


No effect with RubyMine 2017.1 EAP

Didn't seem to change anything in RubyMine w/Darcula...
Others coming here might want to vote-up https://youtrack.jetbrains.com/issue/IDEA-126775
There might be some value in working with https://plugins.jetbrains.com/plugin/9377-material-theme-ui-fork to incorporate active-tab customisation as part of that, cos it's dark, and quite nice, except that the active-tab thumb-indicator is even less visible than with Darcula.

Doesn't seem to work in PhpStorm either

Now supports all IntelliJ branch 145.0+ based products


[FEATURE REQUEST] Support for Chinese and other foreign characters

Is your feature request related to a problem? Please describe.

When downloading novels that have Chinese or other foreign characters, these appear as black boxes.
Describe the solution you'd like

Support for Chinese and other foreign languages
Describe alternatives you've considered

I believe that this is the only thing that could be done.
Additional context

You can try setting the encoding when starting the jar as a workaround on windows for now.
java -Dfile.encoding=utf-8 -jar Novel-Grabber.jar

It was a font problem. The font I used didn't have a good unicode character support on Windows / wrong fall back font. Please try again.

Chinese and Japanese seem to be working great with the current font
as seen in the screenshots, but there is a problem with Korean, Korean characters are not shown correctly.

I switched to DejaVu Sans which is supposed to have one of the best coverage of unicode characters. At this point I would suggest looking into Windows font fallback on your end or switching to Linux :)

I've added a font selection option to the General settings which displays all installed fonts of your system. Alternatively, you can drop your own (.ttf) fonts inside the fonts folder (/bin/fonts). The Noto CJK font is preinstalled which should should work with Chinese, Japanese and Korean.

Assumed solved. Reopen if not.


[release-ocm-2.10] NO-ISSUE: Remove konflux

Konflux job is broken and it is blocking PRs, removing it until it is fixed

/lgtm
/approve