Build failed in phase LLVM Optimiser (Exit code: -11)

I'm installing on a Raspberry Pi 2 with the prebuilt GHC package. I don't know if this error is ARM specific but this is the log.
cabal: Entering directory '/tmp/cabal-tmp-7667/unicode-transforms-0.2.0'
Configuring unicode-transforms-0.2.0...
Building unicode-transforms-0.2.0...
Preprocessing library unicode-transforms-0.2.0...
[ 1 of 12] Compiling Data.Unicode.Properties.DecompositionsK ( Data/Unicode/Properties/DecompositionsK.hs, dist/build/Data/Unicode/Properties/DecompositionsK.o )
[ 2 of 12] Compiling Data.Unicode.Properties.Decompositions ( Data/Unicode/Properties/Decompositions.hs, dist/build/Data/Unicode/Properties/Decompositions.o )
[ 3 of 12] Compiling Data.Unicode.Properties.DecomposableK ( Data/Unicode/Properties/DecomposableK.hs, dist/build/Data/Unicode/Properties/DecomposableK.o )
`opt' failed in phase `LLVM Optimiser'. (Exit code: -11)
cabal: Leaving directory '/tmp/cabal-tmp-7667/unicode-transforms-0.2.0'

Can you provide ghc --version and opt --version please?

Can you provide ghc --version and opt --version please?

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1
$ opt --version
LLVM (http://llvm.org/):
LLVM version 3.7.1
Optimized build.
Default target: armv7l-unknown-linux-gnueabihf
Host CPU: (unknown)
I'm on Ubuntu Mate

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1
$ opt --version
LLVM (http://llvm.org/):
LLVM version 3.7.1
Optimized build.
Default target: armv7l-unknown-linux-gnueabihf
Host CPU: (unknown)
I'm on Ubuntu Mate

I just compiled it with llvm (stack build --flag unicode-transforms:has-llvm) on x86 machine:
$ stack ghc -- --version
The Glorious Glasgow Haskell Compilation System, version 8.0.1

$ opt --version
LLVM (http://llvm.org/):
  LLVM version 3.7.1

  Optimized build.
  Built Oct  7 2016 (06:55:25).
  Default target: x86_64-pc-linux-gnu
  Host CPU: haswell

It looks like an ARM specific issue. Can you raise an issue on ARM GHC instead?

GHC's bug tracker says it's an out of memory exit code. Do you know if it's possible to disable optimization?

The RPI itself has 1gb of ram. I added a swap file (~7gb) and it fixed issues with other packages running out of memory, but unicode-transforms still fails

I split the big file into two parts. Can you try compiling the latest code from the github repo?

Still error -11, even with the swap file

Error on which file? Can you paste the error here?

Ah, I split the wrong file. Your original problem was with DecomposableK and not DecompositionsK.

Can you please try now? I reduced the size of the input list to bitarray by half. Hopefully this will fix the llvm optimizer issue.

While building package unicode-transforms-0.3.0 using:
/home/lumberjack/.stack/setup-exe-cache/arm-linux/Cabal-simple_mPHDZzAJ_<IP_ADDRESS>_ghc-8.0.2 --builddir=.stack-work/dist/arm-linux/Cabal-<IP_ADDRESS> build --ghc-options " -ddump-hi -ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to: /home/lumberjack/Work/stack/.stack-work/logs/unicode-transforms-0.3.0.log
Configuring unicode-transforms-0.3.0...
Building unicode-transforms-0.3.0...
Preprocessing library unicode-transforms-0.3.0...
[ 1 of 14] Compiling Data.Unicode.Types ( Data/Unicode/Types.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Types.o )
[ 2 of 14] Compiling Data.Unicode.Properties.DecompositionsK2 ( Data/Unicode/Properties/DecompositionsK2.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/DecompositionsK2.o )
[ 3 of 14] Compiling Data.Unicode.Properties.DecompositionsK ( Data/Unicode/Properties/DecompositionsK.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/DecompositionsK.o )
[ 4 of 14] Compiling Data.Unicode.Properties.Decompositions ( Data/Unicode/Properties/Decompositions.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/Decompositions.o )
[ 5 of 14] Compiling Data.Unicode.Properties.DecomposeHangul ( Data/Unicode/Properties/DecomposeHangul.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/DecomposeHangul.o )
[ 6 of 14] Compiling Data.Unicode.Properties.Compositions ( Data/Unicode/Properties/Compositions.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/Compositions.o )
[ 7 of 14] Compiling Data.Unicode.Properties.BitArray ( Data/Unicode/Properties/BitArray.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/BitArray.o )
[ 8 of 14] Compiling Data.Unicode.Properties.CombiningClass ( Data/Unicode/Properties/CombiningClass.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/CombiningClass.o )
[ 9 of 14] Compiling Data.Unicode.Properties.Decomposable ( Data/Unicode/Properties/Decomposable.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/Decomposable.o )
[10 of 14] Compiling Data.Unicode.Properties.DecomposableK ( Data/Unicode/Properties/DecomposableK.hs, .stack-work/dist/arm-linux/Cabal-<IP_ADDRESS>/build/Data/Unicode/Properties/DecomposableK.o )
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
`opt' failed in phase `LLVM Optimiser'. (Exit code: -11)

Can you try compiling just that file i.e. DecomposableK and see if it compiles? You can use stack ghc Data.Unicode.Properties.DecomposableK to compile it.
I have never compiled the package on arm. Can you help me in compiling it on arm, what all do I need? I definitely do not have an arm hardware other than a phone.
It is most likely an llvm problem but don't know what factors cause llvm to blow up, and if there is anything that we can do in our source to avoid the problem.

Cloned your library and ran that command, got this
Data/Unicode/Properties/BitArray.hs:15:8:
Could not find module ‘Data.BitArray.ST’
Perhaps you meant
Data.Array.ST (from array-<IP_ADDRESS>@array_67iodizgJQIIxYVTp4emlA)
Use -v to see a list of the files searched for.
Data/Unicode/Properties/BitArray.hs:17:8:
Could not find module ‘Data.BitArray’
Perhaps you meant
Data.Array (from array-<IP_ADDRESS>@array_67iodizgJQIIxYVTp4emlA)
Use -v to see a list of the files searched for.

After switching to lts-8.5 I got this
[1 of 2] Compiling Data.Unicode.Properties.BitArray ( Data/Unicode/Properties/BitArray.hs, Data/Unicode/Properties/BitArray.o )
[2 of 2] Compiling Data.Unicode.Properties.DecomposableK ( Data/Unicode/Properties/DecomposableK.hs, Data/Unicode/Properties/DecomposableK.o )
qemu: uncaught target signal 11 (Segmentation fault) - core dumped
opt' failed in phase LLVM Optimiser'. (Exit code: -11)

Can you watch the memory consumption while this file is being compiled, using top or something equivalent?

It has to be some kind of instant memory spike.....because I can't see it go up
it goes from like 0.2% to crash

What is the llvm version you are using? Not sure if ghc will work with any llvm version, if it does we can try a newer llvm.

3.7.1 is the newest we can use....

i'm trying to build the new stack, and it requires this library

It can be quite difficult, but you can setup qemu arm

Ah, ok, let me try asking @borsboom how the original stack binary was built in the first place. Why it did not fail then and is failing for you?

In a nutshell you take a raspberry pi image you mount it
and then chroot into the image while using qemu as a
raspberry pi emulator to be able to run the files in the image
as armv7.  Once inside the image you can do about anything
you want.  You can install ghc and llvm and compile code. This article is where I found this info.
https://lionfacelemonface.wordpress.com/2015/04/18/raspberry-pi-build-environment-in-no-time-at-all/
These were the commands I used.
sudo apt-get install kpartx pv
wget http://static.proot.me/proot-x86_64
chmod +x proot-x86_64
sudo mv proot-x86_64 /usr/local/bin/proot

downlaod qemu
http://wiki.qemu.org/Download
 sudo apt-get install build-essential pkg-config libzip-dev libglib2.0-dev zlib1g-dev autoconf libtool -y
 cd ~/Downloads && tar xf qemu-2.6.0.tar.bz2
 cd qemu-2.6.0/
 ./configure
 make -j4
 sudo make install

sudo kpartx -a -v 2015-02-16-raspbian-wheezy.img
ls /dev/mapper shows you the created loops
mkdir raspbian-boot raspbian-root make mount directories
sudo mount /dev/mapper/loop0p1 raspbian-boot
sudo mount /dev/mapper/loop0p2 raspbian-root
you can set the stack size like this in next command -q "qemu-arm -s "
sudo proot -q qemu-arm -S raspbian-root -b raspbian-boot:/boot /bin/bash
Once you are in the image you have to add the path to your root user
export PATH=$PATH:/usr/sbin:/sbin:/bin/:/usr/local/sbin/:/home/pi/.cabal/bin:/home/pi/.yesod/.cabal-
sandbox/bin:/home/pi/.ghc/bin:/home/pi/Work/node-v5.0.0-linux-armv7l/bin
or you can su into a user on that image example su pi
Now you can install ghc for pi and install llvm 3.5.2 just move opt and llc to /usr/bin
Make sure you are using the gold linker
sudo ln -sf /usr/bin/ld /usr/bin/ld.gold
Now compile your raspberry pi code and then you can
exit
sync
sudo umount raspbian-root raspbian-boot
sudo kpartx -d 2015-02-16-raspbian-wheezy.img
Add it is back to image form which can be transfered back to
sd card and ran on pi.

He was able to build stack 1.4 for arm?

that guide is a bit dated, you can get newer version of qemu

It couldn't be a 32bit problem, like something that doesn't happen on a 64bit? just know I have ran into that sometimes in the past, but usually doesn't cause compile issues, just runtime

stack releases an arm binary distribution, I can see it on the release page up to release 1.3.2 (https://github.com/commercialhaskell/stack/releases/download/v1.3.2/stack-1.3.2-linux-arm.tar.gz) . unicode-transforms does not change much, if it compiled for earlier versions of stack it should compile for 1.4 as well. @borsboom might have a plan to create an arm binary for 1.4 as well.

Yeah, I think unicode-transforms might have gotten added to this version
not sure on that though.  I have built the previous versions though.

unicode-transforms has been there for quite some time, it was definitely there in 1.3.2. That's why I am wondering why is it failing now. It may be something specific to your setup.

Ok, well thanks for trying to look into for me.

I tried building all of your versions from 2.0 up I think, they all failed for me

Its a segmentation fault, we will need a core dump to investigate what's going wrong with llvm opt. I will try creating an arm setup sometime and see if I can reproduce this. Meanwhile, stack team might build an arm version of stack 1.4 for you.

that would great, thank you

I have an update.  I switched back to ghc-7.10.3 and used llvm 3.5 binaries (opt and llc) and it built.  I'm not sure what the issue is, but I think I will try build stack with this setup now.

https://github.com/commercialhaskell/stack/issues/2103 is related to getting stack to officially work on ARM. It may have some relevant info.

FYI: I'm running into this same exact issue, following the same process to build a stack-1.5.0 arm binary as I did for the stack-1.3.2 binary.

@borsboom @harendra-kumar
I submitted a pr to fix the llvm build

Cool!  Still a change in behaviour in newer GHC/LLVM that indicates a bug somewhere but this workaround will be most helpful for future Stack builds.

Awesome! Thanks @brent80! I will take a look at the PR and merge it.

Fixed by be05072.


Add latest API data to Map

Add the latest forecast to UK Map

The map should be zoomable
hover over region should give PV value

API end point:

v0/GB/solar/gsp/forecast/all
Note currently this takes a few seconds to load
This provider's 338 forecast (ignore the gsp_id=0)

  "forecasts": [
    {
      "location": {
        "label": "string",
        "gspId": 0,
        "gspName": "string",
        "gspGroup": "string",
        "regionName": "string",
        "rmMode": true
      },
      "model": {
        "name": "string",
        "version": "string"
      },
      "forecastCreationTime": "2022-05-09T08:56:38.870Z",
      "forecastValues": [
        {
          "targetTime": "2022-05-09T08:56:38.871Z",
          "expectedPowerGenerationMegawatts": 0
        }
      ],
      "inputDataLastUpdated": {
        "gsp": "2022-05-09T08:56:38.871Z",
        "nwp": "2022-05-09T08:56:38.871Z",
        "pv": "2022-05-09T08:56:38.871Z",
        "satellite": "2022-05-09T08:56:38.871Z"
      }
    }
  ]
}

We should use the first forecastValues and use expectedPowerGenerationMegawatts for the value
Colours:

yellow TODO add hex
opacity, start at 0, going to 100%
range 0 to 500 kw (would be good to be able to easily change the maximum, in the code)

Refresh

data should be refreshed every 5 mins. In the future, we can adjust the time the fresh is made

Make it vertical (northernly aligned), but have an easy way to change to a bearing of 90 (in the code)
Future:
Want to show animation / video of different forecasts, i.e 30 mins, 1 hour, 1.5 hours and 2 hours.

Just to add to that:
1. Mock API Server
I just remembered that I actually already created a mock API server!
It's a bit old and probably outdated, so maybe fetch new data from the dev API and update accordingly.
2. GSP Shape File
https://github.com/openclimatefix/nowcasting/blob/5d0422e23bdfca9cd82b58ca63646ab64fd26fb1/apps/nowcasting-app/data/gsp-regions.json
3. Plotting GeoJSON on Map using Mapbox
You can follow this great Mapbox tutorial to do that.
In addition, we already have implemented this as part of the ux-demos here. It's probably a bit more complicated to follow than the mapbox tutorial above though.

@dctanner
“hover over region should give PV value” - is this referring to the info box? If so, the design looks more like it should open on click (and the X button is used to close it)

@dctanner  said:
 “We should use the first forecastValues ” - just to confirm, this means you will ensure the array in the API is always ordered (by date I assume?)

@dctanner
“hover over region should give PV value” - is this referring to the info box? If so, the design looks more like it should open on click (and the X button is used to close it)

I was thinking,of a quick hover to show the forecast value, and the 'info box' is the click event that is in #27 that shows much more detail

@dctanner said:
 “We should use the first forecastValues ” - just to confirm, this means you will ensure the array in the API is always ordered (by date I assume?)

Yea that does assume they are ordered, let's assume they are orderd in time, and then use the first one. Would be good if this was very easy to change (in the code) so that we might want to display the 3rd value instead

@dctanner
“hover over region should give PV value” - is this referring to the info box? If so, the design looks more like it should open on click (and the X button is used to close it)

I was thinking,of a quick hover to show the forecast value, and the 'info box' is the click event that is in #27 that shows much more detail

I'm happy to split this out to a separate issue if you like @dctanner

@dctanner
“hover over region should give PV value” - is this referring to the info box? If so, the design looks more like it should open on click (and the X button is used to close it)

I was thinking,of a quick hover to show the forecast value, and the 'info box' is the click event that is in #27 that shows much more detail

I'm happy to split this out to a separate issue if you like @dctanner

That might be best. We also need a quick design for it. Also when showing expectedPowerGenerationMegawatts values should 'MW' be appended?

@peterdudfield if the yellow shading is showing an absolute Mw between 0 and 500, should we have a key somewhere so which shades of yellow equals what MW amount. If there is no key, should we show the expectedPowerGenerationMegawatts in the pop up, as well as the Percent of total?

Sorry this is all a bit of working progress,

Lets try without a key first, and we can always add it if we need it. That ok?
Yea, I think that is a good idea, by the end of the week we should know what will be in that pop up

range 0 to 500 kw (would be good to be able to easily change the maximum, in the code)

Btw did you mean MW here, as this is what expectedPowerGenerationMegawatts is in.

range 0 to 500 kw (would be good to be able to easily change the maximum, in the code)

Btw did you mean MW here, as this is what expectedPowerGenerationMegawatts is in.

Yea sorry my mistake, yea [MW]


Features

@DmytroPopovSSA you have 2 "Features" sections, and one is blank. Please remove the blank one and re-submit the PR.

@dunphyben - blank 'Features' removed


fix(Algebra/Order/Field): fix instance diamond for NNRat

The Semifield ℚ≥0 instance used a default definition of zpow using zpowRec, while the LinearOrderedSemifield instance has a custom definition of zpow called Nonneg.zpow (using the fact that zpow preserves nonnegativity). These two are not defeq and therefore we found an instance diamond in #18830.
The fix is to use Nonneg.zpow (or something defeq to it) in the definition of NNRat.instSemifield. However, this is tricky because Nonneg.zpow is only defined after that instance.
I saw two ways to implement the fix:

postpone the Semifield NNRat instance to after the definition of Nonneg.zpow. It should definitely be possible to move all the NNRat-related definitions from Algebra.Field.Rat to Algebra.Order.Field.Rat, but it looks like the import graph gets a bit more tangled this way.
redo the proof of Nonneg.zpow inline in NNRat.instSemifield. It turns out inv and div are already redefined in the same way in the same section, so this seems like the neatest solution with the least surprises.

I also added an example that checks the diamond is indeed now fixed.

bors d+
Feel free to merge also if you move test @eric-wieser

bors merge


Flip to left when overflow right with default placement to top

When creating a popper element placed on top but that overflows on the right I would have expected that it will be flipped on the left.
CodePen demo
https://codepen.io/jrichardeau/pen/YzzWPQz
Steps to reproduce the problem

Create a popper element with top placement and flip behavior  ['top', 'bottom', 'left', 'right']
Make it overflow on the right
The element remains on the top

What is the expected behavior?
I would have expected that the element will be flipped on the left
Any other comments?
I think the issue comes from this code line :
var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;
In my case overflowsRight is true but my placement is top so it does not change the position of the element.
Thank you

I fear this use case is not supported, we do have the preventOverflow modifier that can shift the element to make it stay within the viewport, but the flip modifier only supports to flip the element if the latter is overflowing from the side opposite to its reference element.


Fix focus state on neutral header

What is the context of this PR?
#3204...
Three issues are addressed in this PR:

Text in focus state is black instead of white in header.
Single line is displayed in focus state instead of a double line when navigating through menu items.
ONS logo is now displayed in focus state

After conversations with Dina and Joe following things were changed:

The background color of the neutral header is now white instead of black.
The color of the logo links is now black.
The focus state of the logo is consistent with the other header examples.
The focus state of the links is now black.
The area around the header title and navigation menu has a grey background (--ons-color-grey-75), and the text color is white.
The focus state of the menu items is now white with an underline in black.Hover state underline is white.

How to review this PR
Go to 'components/header/example-header-neutral-for-multicoloured-logo' and focus each element to check the changes above mentioned and compare this with the original 'example-header-neutral-for-multicoloured-logo'
Checklist
This needs to be completed by the person raising the PR.

[x] I have selected the correct Assignee
[x] I have linked the correct Issue

The logo looks good but I think we need a bit more information on the other things. I'm not sure the hover line in the header links should be white. Also the sub navigation now no longer shows if it is being hovered and there isn't much differentiation between one that is selected and hovered. Is this ok? Also to me I think the hover line should be closer to the text and not be shown if the item is selected but that doesn't solve the issue in the difference between just selected and hovered and selected. Think this needs some design discussion.

Had a chat with Joe, white line on the hover needs a more investigation along with usage of neutral header. He said he will follow up with Dina and let me know again. He is fine with changes made in sub navigation menu items focus, hover and click.

I don't think you have either your husky hooks set up and/or the EditorConfig plugin in your vscode because your css isn't formatted
Sri's comment: This is done. Can you check it now

The changes look good, just checking did you manage to get your husky hooks working or did you do it manually?

I don't think you have either your husky hooks set up and/or the EditorConfig plugin in your vscode because your css isn't formatted
Sri's comment: This is done. Can you check it now

The changes look good, just checking did you manage to get your husky hooks working or did you do it manually?

Yess, I have setup husky with Alessio's help and downloaded all the extensions. Some were missing

Are these dark blue links supposed to still be dark blue?
Sri's Comment: I've checked the links in the original neutral header, there are dark blue links here too. Shall I discuss this with Dina?

Had a chat with Dina and changed the color of the links to black

Is this account button meant to be black? shouldn't it be white?

I have used existing class .ghost-dark here. If we require white when its active, I will have to add a new class for this. Shall I do that?

Is this account button meant to be black? shouldn't it be white?

I have used existing class .ghost-dark here. If we require background colour white when its active, I will have to add a new class for this. Shall I do that?

Looking at the other versions of the menu button they don't have a change this big. The other ones seem to just have a small adjustment to the colour because its selected. I would check with Joe and Dina but I don't think this should be black. To match other menu buttons I think it should be a very light grey or maybe white

Is this account button meant to be black? shouldn't it be white?

I have used existing class .ghost-dark here. If we require background colour white when its active, I will have to add a new class for this. Shall I do that?

Looking at the other versions of the menu button they don't have a change this big. The other ones seem to just have a small adjustment to the colour because its selected. I would check with Joe and Dina but I don't think this should be black. To match other menu buttons I think it should be a very light grey or maybe white

I checked with Dina. She told to make account button similar to the menu button here. I will create a new class for this

When the new menu button is open the text changes to blue

Just wanted to ask the question because the design has changed quite a bit since the ticket was written but do we still want the green in the logo? Because we usually use either an all black logo or a colour logo which is green and blue. Might need to check this with the designers

I think we should rename the example from example-header-neutral-for-multicoloured-logo to example-header-neutral


Extracting content by intercepting render_raw_text

Thanks for this nice project.
I may be a noob in this, but I was able to parse a readme get the returned content wrapper in their html elements. But the returned content is one giant text. So, my question is: is there any built-in function to extract only contents but not codes? as in get only data from ..

 or

 ...

Hey, sorry – just making sure I understand what you're trying to do, say the returned data is
sample paragraph
, what you want is sample paragraph, is that correct? And do you need all the text without the enclosing HTML tags, or do you want to isolate each token and do something with them individually?
In either case, it seems like you would probably want to write a custom renderer. Could you explain more what your project is, so that I might give appropriate suggestions?

Ah, I see what you mean. No need to write a entirely new renderer then. In your case it would be easier to use a design feature of mistletoe, namely, that all render functions eventually need to call render_raw_text, so that the recursions may bottom out. Here's a hacky way to do it:
import mistletoe

readme = ['## hey\n', '\n', 'APP class that ...\n', '\n', 'using git\n']
raw_text = []

def render_raw_text(self, token):
    raw_text.append(token.content)
    return token.content

mistletoe.HTMLRenderer.render_raw_text = render_raw_text  # hacky!

rendered = mistletoe.markdown(readme)
print(raw_text)

So in this case I am creating a (global) variable called raw_text, which is a list to put all the contents into. I defined a new version of render_raw_text, essentially telling the renderer to first put whatever is in token.content into my raw_text list, and then do whatever rendering as needed. I then hacked this function onto my HTMLRenderer class (if you want a neater solution you may want to subclass it). Finally, I let the renderer run through all the tokens, rendering each one. In doing so my custom version of render_raw_text will get hit every time.
Here's what raw_text looks like, after running the script:
['hey', 'APP class that ...', 'using git']

I assume this is what you want? But great question, I might document this in an example in the future.
Let me know if something's confusing!

Ah, thanks for the response and detailed explanation. I will check this during the weekend and see how it goes. I will close this for now, I will re-open it if something comes up.
thanks again

hmm so I finally got some time just now and when I tried your code I get this error:
TypeError: render_raw_text() takes 2 positional arguments but 3 were given
I'll try to parse it in regex until you can find a solution for this

Oops sorry about that. There are some changes re: renderer's handling of footnotes that haven't been updated to pypi yet (see commit 95af86e). I'll prepare a release soon.
If you clone the repo directly (mistletoe v0.4) the above code should work. If you installed by pypi (mistletoe v0.3.1) you need to define render_raw_text with an additional footnotes argument:
def render_raw_text(self, token, footnotes):
    ...

All other code stays the same.
Sorry about that, and watch for the recent v0.4 release to get rid of the footnotes argument!

Version 0.4 released! Run pip3 install --upgrade mistletoe to upgrade.

Thanks. I'll do this now 👍

Nope. Sadly this doesn't work.  I updated to 0.4 and I don't have the error but I get all contents of the readme, ... maybe I didn't make my question clear enough because I get the codes, and markdown tags.
Can you check for the last time if this code is correct?
import mistletoe

raw_text = []
def render_raw_text(self, token):
   raw_text.append(token.content)
   return token.content

path = os.getcwd() + "/clones/samayo/Autolog/readme.md"
readme = open(path, "r")
mistletoe.HTMLRenderer.render_raw_text = render_raw_text
rendered = mistletoe.markdown(readme)
print(raw_text)

Could you paste in the result of your print(raw_text), and what you want it to look like? Maybe also run it with the README of this repo, so that we have something to compare notes with. On my machine, even with a fresh install from pip, I seem to be seeing the correct outputs, so perhaps there's still miscommunication going on!
It's totally fine to drag on this issue! I want to help you resolve this, because extracting stuff from HTML by regex is not a good idea..

Sorry for the delay. I hardly get any time off, so hopefully I make it clear this time.
In short. I only want the headers, paragraph (actual English words/text) to get from a readme. As in, I don't want the codes (anything inside ``` because you can not spell check sys for example. also, I don't want to get the ### or --- symbols) I only want to get the real understandable words, like:

Autolog
A PHP class that to save/log/mail errors or notifications from your app or from /var/log/ or as they appear

So, let's assume you have a README.md file that contains these lines:
## Autolog

A PHP class that to save/log/mail errors or notifications from your app or from `/var/log/` or as they appear

Install
-----

Using git
```bash
$ git clone https://github.com/samayo/autolog.git
```bash
Using composer
```bash
$ composer require samayo/autolog
```bash

Usage
-----
#### Short Example.
A simple snippet to send a message to your inbox.
```php
require __DIR__ . "/src/Logger.php";

So, since I only want to get the actual headers, sentences I expect to get from mistletoe Not the code part, but all others (with the exception of the markdown tags (###, ---)
So, if I run this code on python3.x
raw_text = []
def render_raw_text(self, token):
	raw_text.append(token.content)
	return token.content

path = os.getcwd() + "/clones/samayo/Autolog/readme.md"
readme = open(path, "r")
mistletoe.HTMLRenderer.render_raw_text = render_raw_text
rendered = mistletoe.markdown(readme)
print(raw_text)

what I get in return is this.
[root@samayo typot]# python3 typot.py
['Autolog', 'A PP class that to  errors or notifications from your app or from ', '/var/log/', ' or as they appear', 'Install', 'Using git', '$ git clone https://github.com/samayo/autolog.git\n', 'Using composer', '$ composer require samayo/autolog\n````\n\nUsage\n-----\n#### Short Example. \nA simple snippet to send a message to your inbox. \n```php\nrequire __DIR__ . "/src/Logger.php"; \n\n$log = new  => "user@domain.tld"]);\n\nif($userCommented){\n   $log->log("Someone just commented!", $log::INFO, $log::EMAIL);     \n}\n', 'The ', '$log->log()', ' method accepts 4 arguments, only the first ', '$msg',
' is required, others are optional.', 'log($msg, $type, $handler, $verbosity);\n', 'You can use different logtype, handler and verbosity', '// options for $type  - to describe the log type\n$type::INFO; // info for simple tasks\n$type::ERROR; // simple error like 404 .. \n$type::ALERT; // fatal error or suspicious activity\n\n// Options for $handler - on how to registered the log message\n$handler::EMAIL; // send to email\n$handler::FILE; // write to file\n$handler::DATABASE; // insert to database \n$handler::SMS; // send to sms\n\n// do you need the all the info, or relevant (simple)\n$verbosity::SIMPLE; // send simplified log\n$verbosity::VERBOSE; // send every log information\n\n// to get log of all error in verbose format\n$log = new  => "user@domain.tld"]);\n$log->log($msg, $log::ERROR, $log::EMAIL,
$log::VERBOSE);\n', 'Passing only the message as ', '$log->log($msg)', " is possible, and it'll be handled type INFO, and sent by email", 'Examples', '##### Sending logs to your email', '// First you need to setup your email as\n$log = new Taut...

Which is clearly unintended because I get the all even the code parts. I get what's inside my code blocks and I even get the the markdown tags '##### Sending logs to your email', when it should have been something like ''Sending logs to your email','
Anyway, it is still not clear, don't bother with it, it was a silly project and not worth to waste any of our time. thanks

I see what the problem is. So you want to suppress BlockCode and InlineCode outputs. The cleanest way would be to write your own renderer. Here's the quick and dirty way, though:
import mistletoe

raw_text = []

class CustomRenderer(mistletoe.HTMLRenderer):
    def render_inline_code(self, token):
        return ''

    def render_block_code(self, token):
        return ''

    def render_raw_text(self, token):
        raw_text.append(token.content)
        return token.content

with open('foo.md', 'r') as f:
    with CustomRenderer() as renderer:
        rendered = renderer.render(mistletoe.Document(f))

print(raw_text)

The other problem is that your markdown format is slightly messy. For code blocks, the format should be:
```python
# some code
```

... instead of:
```python
# some code
```python

I don't plan to support the second format (commonmark also doesn't support it), so maybe clean it up before you feed it into mistletoe?

Ah, ok thanks. I will check this out, closing for now. Also, I added the second python in the code block so I can render the example, otherwise I am only using the first example as others do :)
cheers


How can I implement the RCNN model by mxnet?

I want to impelement the RCNN model by mxnet. My code is as follows:
def rcnn_factory(data, num_filter, kernel, stride=(1,1), pad=(0,0), name=None, suffix=''):     #conv = conv_factory(data=data, num_filter=num_filter, kernel=(3,3), name=('conv_%s' % name))     conv = mx.symbol.Convolution(data=data, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad, name = 'conv_%s%s'%(name, suffix))     bn = mx.symbol.BatchNorm(data=conv, name='bn_%s%s'%(name,suffix))     act = mx.symbol.LeakyReLU(data=bn, act_type='rrelu', name='rrelu%s%s'%(name,suffix))     conv_a = mx.symbol.Convolution(data=act, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad, name='conv_a_%s%s'%(name,suffix), weight='conv_%s%s_weight'%(name, suffix),no_bias=True)     sum_a = mx.symbol.ElementWiseSum(conv, conv_a)     bn_a = mx.symbol.BatchNorm(data=sum_a, name='bn_a_%s%s'%(name,suffix))     act_a = mx.symbol.LeakyReLU(data=bn_a, act_type='rrelu', name='rrelua%s%s'%(name,suffix))     conv_b = mx.symbol.Convolution( data=act_a, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad, name='conv_b_%s%s'%(name, suffix), weight='conv_%s%s_weight'%(name, suffix),no_bias=True)     sum_b = mx.symbol.ElementWiseSum(conv, conv_b)     act_b = mx.symbol.LeakyReLU(data=sum_b, act_type='rrelu', name='rrelub%s%s'%(name,suffix))     conv_c = mx.symbol.Convolution(data=act_b, num_filter=num_filter, kernel=kernel, stride=stride, pad=pad, name='conv_c_%s%s'%(name, suffix), weight='conv_%s%s_weight'%(name, suffix),no_bias=True)     sum_c = mx.symbol.ElementWiseSum(conv, conv_c)     act_c = mx.symbol.LeakyReLU(data=sum_c, act_type='rrelu', name='rreluc%s%s'%(name,suffix))     return act_c
The conv, conv_a, conv_b, conv_c are shared weights.
But there are some bugs.

The RCNN is proposed by https://papers.nips.cc/paper/5634-convolutional-neural-networks-with-intra-layer-recurrent-connections-for-scene-labeling.pdf.
and the caffe model is as follows:
model_RCNN128.txt

@YuetianLiu  There are examples rcnn in example directory

@austingg Thank you for your reply. The RCNN is recurrent convolutional layer which is different to the rcnn examples in example directory.

@YuetianLiu Model parameters in Mxnet are stored in dictionary type. The index is parameter name.
By now, Mxnet couldn't automatically make parameters share same weights even two layer have same name defined with name. You have to firstly define your parameters Variable with unique name. Then you can bind them to your desired layer just as #3113

@YuetianLiu You can refer to the LSTM example. See https://github.com/dmlc/mxnet/blob/master/example/rnn/lstm.py#L17-L113


Change authlevel through env variables

We want to be able to switch authlevels of all functions using env variable.
Background: When running azure function in container, it uses authlevel:function even if developing locally if authlevel is set to function in function.json. Instead of changing authlevel:function to authlevel:anonymous one by one for every function, we want to be able to switch the authlevel for all function with env vars.
According to the azure functions documentation, this seems possible by using the %xxx% expressions:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-expressions-patterns#binding-expressions---app-settings

Hi @priyaananthasankar,
It this issue Python worker specific, or is this a feature request to the host?
Just want to get more context before we decide to make the change.

For me this is python specific but I guess it is for the host? It would make it much easier for doing end-2-end testing with docker-compose, if you could disable the auth instead of doing workarounds.

I would be nice to do it with an extra option to AzureWebJobsSecretStorageType https://docs.microsoft.com/en-us/azure/azure-functions/functions-app-settings#azurewebjobssecretstoragetype

In future, with new programming model work we are doing, this could be handled by the an easy approach. How it'll look like soon:
import azure.functions as func

app = func.FunctionApp(auth_level=func.AuthLevel.ANONYMOUS)

@app.function_name(name="HttpTrigger1")
@app.route(route="hello") # HTTP Trigger
def test_function(req: func.HttpRequest) -> func.HttpResponse:
     return func.HttpResponse("HttpTrigger1 function processed a request!!!")

So you can convert this to be an environment variable.
import azure.functions as func

app = func.FunctionApp(auth_level=ENV_VARIABLE)

@app.function_name(name="HttpTrigger1")
@app.route(route="hello") # HTTP Trigger
def test_function(req: func.HttpRequest) -> func.HttpResponse:
     return func.HttpResponse("HttpTrigger1 function processed a request!!!")

@vrdmr that looks promising :-)

@thomasfrederikhoeck Hi Thomas, thanks for raising this issue, with python v2 new programming model released, you can set authlevel from environment var at runtime, please refer to the doc and the pictures for example
https://techcommunity.microsoft.com/t5/azure-compute-blog/azure-functions-v2-python-programming-model/ba-p/3665168#:~:text=The v2 new programming model,by easy to reference documentation.


itorch notebook requires yet unavailable versions of iPython

My mistake.

Javier, ipython 3.0 is the latest. 1.2.1 is pretty old.
On Monday, May 25, 2015, Javier<EMAIL_ADDRESS>wrote:

When running itorch notebook on Ubuntu 14.04.2 with iPython version 1.2.1
I get the following error message:
"Unsupported ipython version. Only major versions 2.xx or 3.xx are
supported"
As far as I can tell, iPython 1.2.1 is the latest version.
Thank you in advance.
Javier
--
Reply to this email directly or view it on GitHub
https://github.com/facebook/iTorch/issues/49.

My apologies!


Add CMakeLists.txt

We can use CMake, one of the greatest tools, in this repo 😊🎉 after this PR is merged.
I changed the structure of dirs for CMake so I'm afraid to miss finding a file wanted 😒

I made a commit, f902453

I have found the issue #5

I'll make a new PR.


Cannot read property 'setTheme' of undefined

Not sure if this can be reproduced (happened only 2 times).
I switched theme from light to dark but terminal remained light and editor decorations stuck. There is an extension active that always activates (*) and creates terminal, so it's possible that it was just a very bad timing.
vscode.window.createTerminal({
	name: 'terminal',
});

ERR Cannot read property 'setTheme' of undefined: TypeError: Cannot read property 'setTheme' of undefined
    at Terminal._setTheme (\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:588:28)
    at Terminal.setOption (\resources\app\node_modules.asar\vscode-xterm\lib\Terminal.js:307:22)
    at Terminal.setOption (\resources\app\node_modules.asar\vscode-xterm\lib\public\Terminal.js:193:20)
    at e._updateTheme (/resources/app/out/vs/workbench/workbench.main.js:3713:403)
    at _disposables.push._themeService.onThemeChange.e (/resources/app/out/vs/workbench/workbench.main.js:3695:561)
    at d.fire (/resources/app/out/vs/workbench/workbench.main.js:77:983)
    at W.applyTheme (/resources/app/out/vs/workbench/workbench.main.js:4384:292)
    at s.ensureLoaded.then.i (/resources/app/out/vs/workbench/workbench.main.js:4382:730)

VS Code version: Code 1.35.1 (c7d83e57cd18f18026a8162d042843bda1bcf21f, 2019-06-12T14:30:02.622Z)
OS version: Windows_NT x64 10.0.18362

/duplicate of https://github.com/xtermjs/xterm.js/issues/2220

Should be in insiders :+1:


update dependencies

Codecov Report

Merging #131 (8c0ab50) into main (102c557) will increase coverage by 0.01%.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##             main     #131      +/-   ##
==========================================
+ Coverage   82.01%   82.02%   +0.01%
==========================================
  Files          44       44
  Lines        5520     5520
==========================================
+ Hits         4527     4528       +1
+ Misses        780      779       -1
  Partials      213      213

Impacted Files
Coverage Δ

node.go
79.78% <0.00%> (+0.21%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


restic check should report if superseded index files still exist

Output of restic version
restic 0.9.6 (v0.9.6-253-g642da0a0-dirty) compiled with go1.14.3 on linux/amd64
How did you run restic exactly?
Use the repo from /cmd/restic/testdata/repo-obsolete-index.tar.gzfrom
https://github.com/restic/restic/pull/2718/commits/abd85e65c0d23c6ce20807edc410e7393f36d828
(password is "geheim").
This repo contains two index files: {392240e9 e88b8990} which are identical except that  392240e9 supersedes e88b8990. This can be easily checked by running restic cat index on both files.
run restic check -r /path/to/repo with the path to the unpacked repo.
What backend/server/service did you use to store the repository?
local backend
Expected behavior
check should warn that superseded index files still exist in the repo.
Actual behavior
pack f5c03970 contained in several indexes: {392240e9 e88b8990}
pack 88128df7 contained in several indexes: {392240e9 e88b8990}
This is non-critical, you can run `restic rebuild-index' to correct this

Steps to reproduce the behavior
see above
Do you have any idea what may have caused this?
superseded index information is not handled by the check command
Do you have an idea how to solve the issue?
implement handling of superseded indexes within check
Did restic help you today? Did it make you happy in any way?
Makes me happy most days as I learned a lot about go programming when working on restic.
Sometimes makes my family unhappy because I'm spending too much time on it. :smirk:

The superseded field in the index has been removed in https://github.com/restic/restic/pull/4812


Port euclidean cluster

Compiles fully with some warnings on my local machine.
The launch files are yet to be ported.

@nik-tier4 @mitsudome-r I thought we were going to use the euclidean_cluster package from Autoware.Auto

@esteve Yes, that was the reason why we set it to low priority, but the node in AutowareArchitectureProposal also have some features that are not included in Autoware.Auto version (e.g. euclidean cluster in xy-plane) so we wanted to have that feature as Tier IV until similar feature is merged to Autoware.Auto.


LIBMOBILE-1277- fix androidx lifecycle causes analytics init in background crash

LIBMOBILE-1277

fix androidx lifecycle causes analytics init in background crash

Codecov Report
Patch coverage has no change and project coverage change: +39.35 :tada:

Comparison is base (3d49b95) 45.57% compared to head (f534c94) 84.92%.

Additional details and impacted files
@@              Coverage Diff              @@
##               main     #158       +/-   ##
=============================================
+ Coverage     45.57%   84.92%   +39.35%
- Complexity       14      460      +446
=============================================
  Files             8       66       +58
  Lines           858     5107     +4249
  Branches         85      634      +549
=============================================
+ Hits            391     4337     +3946
+ Misses          437      233      -204
- Partials         30      537      +507

see 74 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


[FEATURE] Support for approximate search using hamming distance

Is your feature request related to a problem?
I have a large data set (>500M) of binary data (64 bits) which I would like to search for the KNN based on hamming distance.
What solution would you like?
I would like to achieve the capability of running approximate search on binary data using hamming distance.
What alternatives have you considered?
I used the script score exact search with hammingbit, but the search is slow for my dataset.
Do you have any additional context?
Seems like the native faiss library supports binary index using hamming distance:
https://github.com/facebookresearch/faiss/wiki/Binary-indexes

Thanks @gilamsalem. Will close in favor of #81


Installing elodie fails on MacOS Sonoma 14.5 (23F79) using Python 3.13.0

Prior installing elodie I installed Python 3.13.0 on MacOS 14.5
Runnning pip install -r requirements.txt fails with the following error.
Collecting Pillow==9.3 (from -r requirements.txt (line 8))
  Using cached Pillow-9.3.0.tar.gz (50.4 MB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [18 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
          exec(compile('''
          ~~~~^^^^^^^^^^^^
          # This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ...<31 lines>...
          exec(compile(setup_py_code, filename, "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          ''' % ('/private/var/folders/2q/ygw576jx1_b_hv4t302d2dlc0000gn/T/pip-install-tyds98li/pillow_2d6b86140cdf431ca590709c15d66ad4/setup.py',), "<pip-setuptools-caller>", "exec"))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/2q/ygw576jx1_b_hv4t302d2dlc0000gn/T/pip-install-tyds98li/pillow_2d6b86140cdf431ca590709c15d66ad4/setup.py", line 29, in <module>
          PILLOW_VERSION = get_version()
        File "/private/var/folders/2q/ygw576jx1_b_hv4t302d2dlc0000gn/T/pip-install-tyds98li/pillow_2d6b86140cdf431ca590709c15d66ad4/setup.py", line 26, in get_version
          return locals()["__version__"]
                 ~~~~~~~~^^^^^^^^^^^^^^^
      KeyError: '__version__'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

I assume the affected package isn't working with a new python version.
Could you help?

There are some known issues with pythong 3.10+. Unfortunately, the app is blocked on supporting newer versions of python because (last time I checked) nosetests are not supported on 3.10+ and the test suite is large (larger LOC than the application itself).
Here's another thread with some possible workarounds - but basically, I suggest running it in a 3.9 virtual environment.
https://github.com/jmathai/elodie/issues/418

Thanks for your reply. I will give it a try to work around it.


Git ignorance support for Vim

Pulls in:

https://github.com/github/gitignore/raw/main/Global/Vim.gitignore

Figured out how to do this via personal settings that seems to work ;-)

This is fine to add to all the repos. I just used the default python ignore file from github when I started the projects. So anyone that runs into workspace specific issues can push up changes.


Not compatible with 1.19.2

I would really like to use the mod but it isn't for my version, I would really  appreciate if u back port the mod to 1.19.2 Fabric.

Same but for 1.16.5


Demo

Hello
Thank you very much for your great work. Will there soon be a demo for inferencing available?

Hi!
I'm happy to update that we've just uploaded a lab collab demo, please check it out here:
https://colab.research.google.com/github/amazon-science/glass-text-spotting/blob/master/demo/glass_demo.ipynb
😄


feat(MapUtils): Add empty string judgment

Add empty string judgment

-1 I agree with @kinow. This would also create a bad precedent where empty strings are treated differently in a single method and also likely to break existing applications.


Merge pull request #37 from jakub-sterba/master

Correction of mistakenly quoted NULL value in MAQL expression
Reviewed-by: hvnis
https://github.com/huavannis

Build succeeded (check pipeline).

https://checklist.intgdc.com/job/gooddata-public-demos/job/gooddata-public-demos-validation/81/ : SUCCESS in 9s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-oss-check/91/ : SUCCESS in 9s

Sonar scan result

No issue found. Congratulations!

More detail, see in https://sonarqube-gate.intgdc.com/dashboard?id=gooddata-public-demos-gate-PR38
To scan for vulnerabilities in dependencies and run unit tests (to get coverage report in sonar) please comment your PR with 'extended check sonar'.

Build succeeded (gate pipeline).

https://checklist.intgdc.com/job/gooddata-public-demos/job/gooddata-public-demos-validation/82/ : SUCCESS in 12s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-merge-compliance-check/37/ : SUCCESS in 26s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-sonarqube-scan-zuul-gate/35/ : SUCCESS in 22s
https://checklist.intgdc.com/job/compliance/job/gooddata-public-demos-fossa-scanning-zuul-el7/35/ : SUCCESS in 3m 04s (non-voting)


Only point to /usr/lib/axonivy-engine

what do you prefer?

no prefix ;)

/ivy
?

/axonivy
/axonivy-engine
/ivy-engine
...

why so long?

we'll later change probably the ivy home directory. changes will be done in a new pr.


As a customer I want to download a swagger/open API specification for the RS interface

Story
As a customer I want to have a published swagger specification so that I can generate an implementation of the SBAT RS interface.
Acceptance criteria

We have a published yaml document.
There is a swagger endpoint on the RS from which the swagger spec can be obtained
Any non OB objects used by the API is published in its own library along with swagger specs

Tasks

Related to #53

Hey team! Please add your planning poker estimate with Zenhub @dbadham-fr @jorgesanchezperez


JavaScript style guide

As the project is open-source, it would be interesting to adopt a style guide. Well known is StandardJS, it automatically corrects the code.

Nice idea!


multi-line paste not working

From TvE: pasting a multi-line forth definition into folie doesn't seem to work. looks like stuff gets eaten after the first CR.

This can't be fixed without a major overhaul of the Folie logic - right now, Folie will send lines and wait for their echo and ok prompt when sending includes, but (incorrectly) just passes all incoming lines to the serial port without waiting. The solution is to make all serial sends a full round trip, i.e. send, wait for echo, optional output, and the ok prompt (or timeout if that doesn't come very soon after the last output). I'm working on this is a separate local branch.


OpenCL asynchronous copy of destroyed object bug demo

Summary
A test showing a bug in how we construct matrix_cl.
Tests
Side Effects
Checklist

[x] Math issue #1346

[x] Copyright holder: Tadej Ciglarič (University of Ljubljana)
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[ ] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[ ] the code is written in idiomatic C++ and changes are documented in the doxygen

[ ] the new changes are tested

I thought this issue with bot pushing pormating was fixed?

@syclik can you check the stanbuildbot email for the approval and use the password Serban sent us to approve our branch? You can also send me the email and I'll take care of it.
Still not sure why this is happening. @t4c1 I think the build-bot uses clang-format-6 (might be 5). If you use that version then it should not have any fixes

Just made a branch with a bugfix for this I'll put up the PR for it tmrw

Great, thanks to both. Might add this test also.

Closing this PR as the demo issue it shows will be fixed in #1356 The demo test is included in it.


SLEIGH: how to implement an "erepeat" instruction

Hello,
I'm trying to add Toshiba MeP support to ghidra however I'm having trouble implementing the erepeat instruction.
The instruction works as follows:
                 erepeat loc_80B5AA
                 lw      $3, ($2)

 loc_80B5AA:
                 and3    $1, $3, 1
                 beqz    $1, loc_80B5B0

is equivalent to
while (1) {
                 lw      $3, ($2)

 loc_80B5AA:
                 and3    $1, $3, 1
                 beqz    $1, loc_80B5B0
}

(Notice that 1 more instruction is executed past the label specified in erepeat)
The problem is that there is no instruction at the end of the loop so I cannot add a symbol at the end which would perform a branch back to the top. The instruction/symbol is only present at the start of the loop so I need to propagate the label somehow.
What I've tried:
I've implemented erepeat as follows:
:erepeat rpe_ctx is op0015=0xe019 ; simm1631 [ rpe_ctx = inst_start + (simm1631 << 1); repeat_end = 2; globalset(rpe_ctx, repeat_end); ] {
	rpb = inst_next;
	rpe = rpe_ctx;
}

I'm using globalset to set a context variable on the end instruction that indicates it is the end of repeat. Also, I'm saving the next instruction address (beginning of the loop) to the $rpb register.
Then,
# Simulate mep delay slot in repeat/erepeat instructions
:^instruction is repeat_end=2 & instruction [ repeat_end=1; globalset(inst_next, repeat_end); repeat_end=0; ] {
	build instruction;
}

:^instruction is repeat_end=1 & instruction [ repeat_end=0; ] {
	build instruction;
	goto [rpb];
}

I'm propagating the end 1 instruction further. Once the "real" end instruction is identified, I append a branch back to the start of the loop.
Now, the problem is that since I'm performing a jump to a register, it generates BRANCHIND rpb p-code. Understandably, this confuses the decompiler a lot and it generates very weird code:

As a test I've tried replacing goto [rpb]; with a hardcoded integer value specific to that function, and the generated code looked much better:

So my question is how should I do it properly? Is there a way to propagate the label specified in erepeat into instructions below it as a constant, or maybe there's some other way to implement it I'm not thinking of?

Okay, I figured out a possible solution:
So first I need to propagate repeat-begin in the context so that we know where to jump (the globalset(end, rpb_ctx); part):
:erepeat end is op0015=0xe019 ; simm1631 [ rpb_ctx = inst_start + 4; end = inst_start + (simm1631 << 1); repeat_end = 2; globalset(end, repeat_end); globalset(end, rpb_ctx); ] {
	rpb = inst_next;
	rpe = end;
}

As well as propagate it in the delay-slot emulator:
# Simulate mep delay slot in repeat/erepeat instructions
:^instruction is repeat_end=2 & instruction [ repeat_end=1; globalset(inst_next, repeat_end); repeat_end=0; globalset(inst_next, rpb_ctx); ] {
	build instruction;
}

Then I'm making a new symbol that makes use of that context variable:
RepeatTgt: is rpb_ctx {
	export *[ram]:4 rpb_ctx;
}

and using it:
:^instruction is repeat_end=1 & instruction & RepeatTgt [ repeat_end=0; ] {
	build instruction;
	goto RepeatTgt;
}

And now it generates a constant branch and the decompile looks just like I expected it to:

I'll leave this open just in case there's a better solution I'm not aware of (which to be honest there probably is).

Closing this out due to inactivity.


Android 9

My works in android before Geofence start working but becomes unresponsive once it start listener.
I have built it to target kitkat min and 8.1
What can I do?

I got into the same problem. Let me know if you found an answer :(

Hi @coosmiyn in my own case it was caused by async/await result which was deadlocking thereby making my app unresponsive!


Dynamic Error Classes for Controls

Hi,
I didn't see this in any examples, but is there a simple way we can have custom error classes for controls, so we can manipulate their style when they have invalid data?
I assumed there wasn't, and went down the path of creating custom controls via component="{}"... tried a range of approaches in the manner that all seem to fail.
I got close in one way, which was to pass the actual validators into the custom component and have it revalidate internally, but this doesn't work quite right since the component has no way of knowing that form is pristine (props do appear in the child component but no .pristine there), and I would like the validation cycle to fire only after the form is submitted.
Any ideas would be appreciated.

Yep, there is! Check out the FAQs: http://davidkpiano.github.io/react-redux-form/docs/guides/faqs.html
<Control.text
  model="user.firstName"
  mapProps={{
    className: ({fieldValue}) => fieldValue.focus
      ? 'focused'
      : ''
  }}
/>

Thank you so much!


Assignment registers cannot be declared after write registers

If they are, pilgen throws Register combination A <=X= not found.
Reproduce with
reg pc[@pc];
reg A;
reg X[<=];

A <=X= 1;

done


Build fails when building on GCC mac.

Had some errors while using GCC on a Mac.
To fix this we included <sys/types.h> in the sole.hpp file.

care to paste the compiler errors plz? thx :)

Forgot angle brackets hide on here. Edited the above comment.
The error was "error: ‘uint32_t’ does not name a type".
This Stackoverflow page talks about this error:
http://stackoverflow.com/questions/11069108/uint32-t-does-not-name-a-type


Remove JODA dependency from druid-basic-security package

Fixes #8225

Description
Remove JODA time from Druid, one package at a time since it would be way to unwieldy to review in one shot.

This PR has:

[x] been self-reviewed.

[ ] using the concurrency checklist (Remove this item if the PR doesn't have any relation to concurrency.)

[ ] added documentation for new or modified features or behaviors.
[ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
[ ] added or updated version, license, or notice information in licenses.yaml
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
[ ] added integration tests.
[ ] been tested in a test Druid cluster.

For now, I had to add some new APIs to the druid-core library to support JDK Time and JODA Time concurrently.

@jon-wei FYI since you helped me on #10010


Support OpenSSH formatted private keys

UniPipe crashes if it receives keys OpenSSH encoded keys with an error message similar to:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'catalogRepository' defined in URL [jar:file:/app/unipipe-service-broker-1.0.0.jar!/BOOT-INF/classes!/io/meshcloud/dockerosb/persistence/CatalogRepository.class]: Unsatisfied dependency expressed through constructor parameter 1; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gitHandlerService' defined in URL [jar:file:/app/unipipe-service-broker-1.0.0.jar!/BOOT-INF/classes!/io/meshcloud/dockerosb/persistence/GitHandlerService.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.meshcloud.dockerosb.persistence.GitHandlerService]: Constructor threw exception; nested exception is org.eclipse.jgit.api.errors.TransportException: git@github.com:meshcloud/unipipe-demo.git: invalid privatekey: [B@5f233b26
	at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:800) ~[spring-beans-5.3.7.jar!/:5.3.7]
	at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:229) ~[spring-beans-5.3.7.jar!/:5.3.7]

Working on this issue could be combined with #33

If you tell ssh-keygen to generate a key in PEM format it will not work for current key algorithms so you will be stuck with an insecure key which will then get refused by GitHub, this is a pretty bad experience for what should be the most normal use case.


Schema.org

We should consider reformatting our metadata, e.g. to fit into schemas like this:
https://schema.org/Course
See also: https://bioschemas.org/
CC @joshmoore

I just got this link / hint from @ClementCaporal
https://bioschemas.org/profiles/TrainingMaterial/1.0-RELEASE

Hi, nice to meet you:)

I think this can be achieved by adding a text like this one to pages we auto-generate for our training materials:
{
  "@context": "https://schema.org/",
  "@type": "LearningResource",
  "@id": "https://elixir-europe-training.github.io/ELIXIR-TrP-TeSS/",
  "http://purl.org/dc/terms/conformsTo": {
    "@type": "CreativeWork",
    "@id": "https://bioschemas.org/profiles/TrainingMaterial/1.0-RELEASE"
  },
  "description": "Strategic Use of Generative AI - this is our hands-on course for general use and research-specific use of Generative AI.",
  "keywords": "FAIR, OPEN, Generative AI, Writing, Ethics, Scripting",
  "name": "Strategic Use of Generative AI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "educationalLevel": "beginner",
  "competencyRequired": "none",
  "teaches": [
    "Providing a background of the evolution of generative AI models",
    "Providing an overview of the features and capabilities of genAI",
    "Analysing prompt engineering techniques for different purposes",
    "Exploring several applications of genAI in academic research (afternoon session)",
    "Providing hands-on experience with using different genAI tools for work and research purposes",
    "Critically evaluating the AI generated outcomes"
  ],
  "audience": "researchers",
  "inLanguage": "en-US",
  "learningResourceType": [
    "tutorial"
  ],
  "author": [
    {
      "@type": "Person",
      "name": "Bruna Piereck"
    },
    {
      "@type": "Person",
      "name": "Alexander Botzki"
    }
  ],
  "contributor": [
    {
      "@type": "Person",
      "name": "Christof De Bo"
    }
  ]
}

source: https://github.com/vibbits/introduction-to-generative-ai/blob/main/README.md

Is "TESS" this website? https://tess.elixir-europe.org/

Yes!

Concerning the "keywords", a yet-another-structure to organize bia-curriculum is proposed within a sub-group of Globias, I just wanted to put it here in case it is useful : https://docs.google.com/document/d/1yuiQLNXnsaUfYWmsqLDB-c0cdoK03BxVmKYSCkEgGg8/
I don't know what are your current ideas to infer tags/keywords

Maybe @emiglietta has a clearer idea about that


Add additional tests for normal.c based on code coverage

Codecov Report

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

@@            Coverage Diff             @@
##           master    #5746      +/-   ##
==========================================
+ Coverage   84.18%   84.28%   +0.09%
==========================================
  Files         138      138
  Lines      152448   152448
==========================================
+ Hits       128341   128484     +143
+ Misses      24107    23964     -143

Impacted Files
Coverage Δ

src/if_xcmdsrv.c
86.17% <0%> (-0.18%)
:arrow_down:

src/channel.c
84% <0%> (-0.08%)
:arrow_down:

src/window.c
88.73% <0%> (+0.03%)
:arrow_up:

src/message.c
88.55% <0%> (+0.04%)
:arrow_up:

src/search.c
84.12% <0%> (+0.07%)
:arrow_up:

src/term.c
81.46% <0%> (+0.11%)
:arrow_up:

src/getchar.c
84.57% <0%> (+0.15%)
:arrow_up:

src/ops.c
89.87% <0%> (+0.17%)
:arrow_up:

src/gui_gtk_x11.c
58.5% <0%> (+0.19%)
:arrow_up:

src/edit.c
85.99% <0%> (+0.19%)
:arrow_up:

... and 7 more

Continue to review full report at Codecov.

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


[ATooltip]: trigger on unexpected elements

What is actually happening?
When we use ATooltip within an HTML tag, its triggering area becomes the current component instead of the current HTML tag. Here's an example:

  <ABtn>
    <ATooltip text="Hello!" />
    Hover Over Me
  </ABtn>

    <ATooltip text="Hi!Anu"></ATooltip>
    Anu

When the mouse moves over the entire outer div area, it triggers the appearance of the Tooltip

What is Expected?
It will only be triggered by its wrapping element.

I found that this is related to the setting of parentEl, which can be seen from here

Thanks for reporting. I contributed to VueUse and we can now use useParentElement  from VueUse but unfortunately, I'm unable to find a solid way to add a tooltip to the component.
Certainly, we can wrap the target in the tooltip for ease but let's try if we can use the correct structure and still fix the bug.
Please let me know if you have any suggestions on this.

I checked vuetify & quasar. They are adding flag like thing to their components to correctly get the parent element.

Vuetify adds data-no-activator attribute to skip the DOM element from selecting as parent and omits defining this attribute for component's root element
Quasar uses class q-anchor-skip something like that to dot he same

🤷🏻♂
We can do that but let's explore more to achieve the same this in more simpler way 😇


Please write more detail about Authentication, Authorization on Blazor Server web-app (Individual User Accounts)

Due to the Balazor Server approach/architect is different to

ASP.NET Core Razor Page
ASP.NET Core MVC
ASP.NET Web Form
ASP.NET Core WebAPI

therefore development team should write more about Authentication, especially Authorization. How to put authentication tag in Razor component, Razor page?
I spent many days for research about this, and looking for authentication/authorization on Google, GitHub, YouTube, etc. but I still did not implement authorization, authentication (Individual User Accounts)  for my Blazor Server webapp success. If development team has a reference sample web-app, it is very helpful and easy-to-understand.
Thank you very much!

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b1a9f84a-feaa-d2b0-409a-01f75f9101a0
Version Independent ID: aeec639f-a9d6-2f00-b61f-2c316ef6afb6
Content: Secure ASP.NET Core Blazor Server apps
Content Source: aspnetcore/security/blazor/server.md
Product: aspnet-core
Technology: aspnetcore-security
GitHub Login: @guardrex
Microsoft Alias: riande

After anchor link https://docs.microsoft.com/en-us/aspnet/core/security/blazor/?view=aspnetcore-3.0&tabs=visual-studio#blazor-webassembly-authentication

Implementation of a custom AuthenticationStateProvider service for Blazor WebAssembly apps is covered in the following sections.

// Authentication for Blazor Server content.
These words make me mis-understanding about the content below is for Blazor WebAssembly, not for Blazor Server.

This is going to be covered by one or more other issues. I'm going to probably end up with a tracking issue later. For now, the other issues are ...

Social login provider tokens+claims for Blazor auth
Google Social login provider for Blazor
Token Based Authorization using IdentityServer with Blazor
Signalr Context.User missing on hub
Logout Flow
Blazor auth topic enhancements

Let's close this one since you're asking for general guidance.

These words maybe make me mis-understanding about the content below is for Blazor WebAssembly, not for Blazor Server.

It just means that a dev should implement a custom AuthenticationStateProvider and the rest of the scenarios in the topic should work.


[csrng/data] moving csrng to D2 status

@mateenfaisal FYI
Thanks @mwbranstad for your work on getting CSRNG to this stage!


Warning on install

I get this error upon installation:

npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install
peer  dependencies yourself.

Should we add ajv-keywords to the dependencies ? Or is it more an issue with ajv-keywords ?

I'm sure it's required somewhere deep in the dependency graph, although I'm failing to find it at a quick glance.
Assuming the tests pass, this should be okay without it though. I'll keep this open to double check more in depth though.

I'm going to assume that time has fixed this issue. If not, please open a new issue.


Conformance tests interop

Issue summary

Tracking issue for conformance test vectors all passing.
Currently with no changes #638 has 7/58 tests passing. Most failures are due to gas discrepancy, puppet and chaos actor not being registered, resolution lookups in state tree due to changed code, and some state root inconsistencies.
Progress and discussion on making the test vectors pass should happen here
Other information and links

closed with #671 (added tests and updates to invalid ones will be done as they change)


ci: change stale bot config

Changes

Decrease daysUntilStale days to just 30 days
Decrease daysUntilClose to 60 days
Adding 3.0 in exempted labels
Also exempting project and milestone issues

@all-contributors please add maddhruv for bug code content doc example ideas projectManagement question review

@all-contributors please add maddhruv for bug, code, content, doc, example, ideas, projectManagement, question, review


Why minSdkVersion 16?

Hi Ross.
I don't see any usage of specific features in API 16. RxAndroid's and Espresso's minSdk is 10. Maybe lower it to 10 too?

Sorry for the delay in following up on this.  This is a good point and if you submit a PR for it I'll merge it quickly.

resolved in f808a7f2c1934ba7b7b146c1cc4ce4b9a4f806bd


[Feature] Unfurl a pasted link

Unfurling links that are pasted in the editor would be great. Unfurling is used by Slack to pull in a small amount of information and often times embedded players if it's video content.
Good article on unfurling https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254

Interesting feature, I would really love to see someone could mke it a community plugin.

Any ideas if this has been done?

Any ideas if this has been done?

As mentioned above. This feature hasn't been part of the official plugins.


base: args and config method using NamedTuple class

Pain Point
If you look anywhere in the DFFML codebase you see giant nasty args and config methods.

args purpose is to tell argparse, and the HTTP API, and other services, how to configure any given class.
config transforms the arguments given via argparse or the HTTP API, etc. into and instance of a NamedTuple or dataclass.

Examples:

model/scratch
model/tensorflow
source/mysql

Proposed Solution
We want to do something a long the lines of what we did in model/scikit, by using inspect to dynamically create the call sequence to config_set and config_get by inspecting the config class (CONFIG) rather than the scikit model:
https://github.com/intel/dffml/blob/8577ca57a0bad2c63b860cdd585ae6ca3e4e8fe9/model/scikit/dffml_model_scikit/scikit_models.py#L139-L163
This means that just like many classes set CONTEXT, they will also have a property called CONFIG which points to their ClassNamePluginTypeConfig class.
The metadata field of dataclasses.dataclass might be helpful here to declare the help. This task probably involves changing all the ...Config classes into dataclasses if that is the way we go. Another way would be to have another property, something like CONFIG_HELP which specifies help for each.

Closed in 0.3.1


Find occurances of problematic language in this repository

Acceptance criteria: issues created to remove/update source codes and documentation to avoid problematic language

Done, see #359


doc: added CONTRIBUTING.md file

#17
Setting guidelines for repository contributors
This file contains the guidelines to help people contribute to mockBee.

Hey @supminn ! Thank you for the contribution 🚀


Add missing requires to openssl.cr

This makes sure that require "openssl" requires everything, and fixes the
documentation to include all the OpenSSL modules.
Fixes #7770

Ty!


Cleanup 2D tilings - [merged]

In GitLab by @perarnau on Aug 27, 2018, 10:12
Merges tiling-cleanup -> master
Improve the 2D tilings to provide easier interfaces, make the benchmarking code a bit easier to follow.

In GitLab by @perarnau on Aug 28, 2018, 13:46
merged
By Swann Perarnau on 2018-08-28T18:46:55 (imported from GitLab project)

In GitLab by @perarnau on Aug 27, 2018, 10:15
enabled an automatic merge when the pipeline for e66f5948ab2bfbd13da362639a3607da5a05d089 succeeds
By Swann Perarnau on 2018-08-27T15:15:30 (imported from GitLab project)

In GitLab by @perarnau on Aug 27, 2018, 10:58
added 1 commit
c759c9df - [fix] fixup unit tests
Compare with previous version
By Swann Perarnau on 2018-08-27T15:58:31 (imported from GitLab project)


Add helper functions to easily & ergnomically access the properties on a Feature

Add helper functions to easily & ergnomically access the properties on a Feature
Allows things like:
    assert_eq!(feature.len_properties(), 0);
    assert_eq!(feature.get_property("foo"), None);
    assert_eq!(feature.contains_property("foo"), false);
    assert_eq!(feature.properties_iter().collect::<Vec<_>>(), vec![]);

    feature.set_property("foo", 12);
    assert_eq!(feature.get_property("foo"), Some(&json!(12)));
    assert_eq!(feature.len_properties(), 1);
    assert_eq!(feature.contains_property("foo"), true);
    assert_eq!(feature.properties_iter().collect::<Vec<_>>(), vec![(&"foo".to_string(), &json!(12))]);

    feature.remove_property("foo");
    assert_eq!(feature.get_property("foo"), None);
    assert_eq!(feature.len_properties(), 0);
    assert_eq!(feature.contains_property("foo"), false);
    assert_eq!(feature.properties_iter().collect::<Vec<_>>(), vec![]);

I have no idea why we didn't merge this ages ago. The only minor nit is that get_ isn't idiomatic for getters, according to https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis. @rory How do feel about changing this to plain property(), and then let's merge.

Done.
I've remade the commit & rebased, so it's all clean

bors r+


Minimap headers not detected in language extension

Type: Bug
Not sure if that's a bug or I'm just missing some config, but the new minimap headers (https://github.com/microsoft/vscode/pull/190759) are not detected with my language configuration.
I have comments specified in the lang-config.json as follows:
{
    "comments": {
        "lineComment": ";"
    },
}

But it doesn't work:

Here are the full sources of the language extension: https://github.com/naninovel/vscode/tree/1.20
To reproduce, install the extension and add a comment line ; MARK: Test.

Nope, I get Other. Could it be LSP/semantic tokenizer overriding the default one?

This is a bit complicated:

in the editor, there are typing operations, such as pressing ' which behave differently when inside a comment or not. Outside a comment, ' will auto-close itself. Inside a comment, it will not.
therefore, we sometimes need to run the tokenization synchronously as part of typing to find out if you're typing in a comment or not. We don't do this all the times (like when typing at the end of a huge file) but we do it when tokenization has reached the line that is being typed on.
this makes it that typing is predictable, i.e. pressing ' behaves the same way at a particular code location as long as the line was tokenized before typing, irrespective if tokenisation was fast enough or slow.
semantic tokens are async, so we cannot block the typing operation to wait on semantic tokens
we therefore decided that semantic tokens cannot change the token type defined by syntactical highlighting.

Ah, so I just had to make a tm grammar with comments. Everything works now. Thanks for the help!


Add first service method to initial ContainerRegistryClient

Adding the initial version of the ContainerRegistryClient, with single GetRepositories() method.  In addition, adding the test resources and a project with a single test that exercises the GetRepositories() method.
This is the first PR addressing https://github.com/azure/azure-sdk-for-net/issues/18916, and
Fixes https://github.com/azure/azure-sdk-for-net/issues/19291

/check-enforcer evaluate

/azp run net - containerregistry - ci

/azp run net - containerregistry - ci

/azp run net - containerregistry - ci


The mis-matching on the pretrained model

The name of the time_distributed layers would be set as a default way:
time_distributed; time_distributed_1; time_distributed_2
This would cause error due to the names of these layers in hdf5 file (time_distributed_1; time_distributed_2; time_distributed_3).
I suggest to edit the detect.py as follows:
resnetlast = (model_classifier.layers[-1].output)
out_class = TimeDistributed(Dense(int(resnetlast.shape[2]), kernel_initializer='uniform'),name='time_distributed_2')(resnetlast)
out_class = Activation('relu')(out_class)
out_class = Dropout(.5)(out_class)
out_class = TimeDistributed(Dense(word.shape[0], activation='linear', kernel_initializer='uniform'),name='time_distributed_3')(out_class)

Thank you for this pointer , however I still am getting an error which is

ValueError: The name "dense_regress_178" is used 2 times in the model. All layer names should be unique.

I have named the layers in detect.py as follows
resnetlast = (model_classifier.layers[-1].output)
out_class = TimeDistributed(Dense(int(resnetlast.shape[2]), kernel_initializer='uniform'),name='time_distributed_2')(resnetlast)
out_class = Activation('relu')(out_class)
out_class = Dropout(.5)(out_class)
out_class = TimeDistributed(Dense(word.shape[0], activation='linear', kernel_initializer='uniform'),name='time_distributed_3')(out_class)
out_class = TimeDistributed(Dense(word.shape[0], activation='linear', kernel_initializer='uniform'),name='dense_class_{}'.format(nb_classes))(out_class)
out_class = MyLayer(output_dim=word_all.shape[1])(out_class)

and this seems to be causing the problem
out_regr = TimeDistributed(Dense(4 * (nb_classes - 1), activation='linear', kernel_initializer='zero'),name='dense_regress_{}'.format(nb_classes))(resnetlast)

Since this was a problem with the naming I thought perhaps changing this to any other name would solve this issue (doesn't seem like the right thing to do at all but tried it and failed as follows)
out_regr = TimeDistributed(Dense(4 * (nb_classes - 1), activation='linear', kernel_initializer='zero'),name='dense_regressor_{}'.format(nb_classes))(resnetlast)

which does get rid of the ValueError , however it causes an error at following line
model_classifier.load_weights(C.model_path, by_name=True)

ValueError: Layer #178 (named "time_distributed_2"), weight <tf.Variable 'time_distributed_2/kernel:0' shape=(708, 708) dtype=float32, numpy=
array([[ 0.03911747, -0.02416103, -0.04996177, ..., -0.00052779,
-0.04415029,  0.03913448],
[ 0.02350913, -0.04238098,  0.04727681, ...,  0.00107334,
0.03948401,  0.0225733 ],
[ 0.00324714,  0.0267023 ,  0.03767557, ..., -0.03660261,
0.02911811, -0.04166988],
...,
[ 0.00710471, -0.02927768,  0.02644283, ...,  0.0140437 ,
0.02945073, -0.01651412],
[ 0.03027074, -0.03358974,  0.03127309, ..., -0.00256994,
-0.00981454, -0.00117335],
[ 0.00760389,  0.02819859, -0.02207704, ..., -0.01791253,
-0.04420076, -0.00320693]], dtype=float32)> has shape (708, 708), but the saved weight has shape (2048, 2048).


Add Notional Validator

Please provide some contact info provided. Not merged for now due to no contact info

Contact info:

Twitter: @notionaldao, @gadikian
Telegram: @mgl2150
Discord: G.Long#2150, #Du | Notional#7274
Email<EMAIL_ADDRESS>

@adrianbrink can we continue with this one or should I open a new pr?


Change parametrization of truncexpon

According to documentation, the parameter b is the upper boundary of the support. However, when the scale is different from 1.0, say 2.0, the distribution is defined until scale*b which is not very intuitive.
The problem is when performing a fit on a constant support. Fixing the scale means that the slope of the exponential is set also. And fixing b is not working because the support depends on scale also.
One idea would be to do like for uniform, define the support between 0 and 1, which translate to [loc, loc+scale], and use a l parameter for the shape inside the exponential:
def pdf(x, l):
    return l*np.exp(-l*x)/(-sc.expm1(-l))

I created a custom distribution with such a pdf and I can fit an histogram on a fixed support (defining floc and fscale). Behavior at small l should be looked more closely though.
Example:
import numpy as np
import scipy
x = np.linspace(0,2,500)
y0 = scipy.stats.truncexpon(x, 1, 0, 1)
y2 = scipy.stats.truncexpon(x, 2, 0, 1)  # in [0,2]
y1 = scipy.stats.truncexpon(x, 1, 0, 2)  # in [0,2] instead of [0,1]

Scipy/Numpy/Python version information:
python=3.6.5
numpy=1.14.3
scipy=1.0.1

We cannot just change parametrizations because of the backwards compatibility. Might want to try the paramnormal project (not sure how active it is). Explanations are most welcome in the Notes section of the docstring.

AFAIU, this is not a reparameterization in the loc scale family, i.e. scale always shifts the support of the distribution if a support point is not zero or inf. So, I guess paranormal wouldn't be able to help it.
If we want to change scale in truncated distributions separately from the truncation points, then we would need an extra shape parameter. (The individual distribution need to be defined without loc and scale information.)
However, for fixed parameters, the user can compensate by adjusting the truncation point for loc and scale to compensate for the generic shifting and scaling of the support bounds.
So this is only relevant in fit. I don't see a way to handle this there without an extra argument.
(It's a bit similar to the recent vonmises/vonmises_line discussion where we cannot change loc and scale and keep the support interval fixed.)


use dlmopen for modules to clearly separate symbol namespace

https://github.com/JohnSully/KeyDB/blob/aa274960fff095c4c3cd570cdbaaabb9ca005651/src/module.cpp#L5210
refers to https://github.com/antirez/redis/pull/6125
can file a PR here too if desired.

I do want to better understand any compatibility implications with this change.  But we should continue the discussion in the PR so its all in one place.


Option to always expand open editors section by default

I have tabs disabled, and it's a hassle to me that I can't find a way to make the open editors section expanded by default.

As soon as you expand the first time it should remain expanded forever. Is that not what you are seeing?

It is for existing projects, but not for new blank window or new projects

Aha yes I understand. Yes we can keep this open as a feature request, even though I personally am not a fan.

Too bad.  I open many small workspaces per day, the clicking adds up. Thanks for consideration.
If adding, make default "expand always" option expanded even with zero edited files. Editing first file automatically shows up entry under always-expanded "OPEN EDITORS" heading, without needing to change state of heading.

Plus one

Same


Add writeWord writeBlock

This adds two new functions that target the same functionality as writeByte(): writeWord() and writeBlock(). The intent is to be able to send data over I2C without indexing to a register. This is helpful in the case where the device simply expects I2C commands over I2C. Examples of this include products like the new Ultrasonic Distance Sensor, Quad Relay, Qwiic Twist, Qwiic RFID, etc. Basically devices, at least in the examples I listed, that have micro-controllers that act as peripherals.

Haven't reviewed, but in testing the Ultrasonic Arduino lib, I get the following warning:
sfeTkArdI2C.cpp:129:9: error: unused variable 'nData' [-Werror=unused-variable]
  129 |     int nData = 0;
      |         ^~~~~

I strongly recommend setting "Compiler warnings" in Arduino to "All" so these warnings show up

I've been using the arduino-cli and didn't even think to increase verbosity! I will do that!

I added a few more methods for reading from a device without a register parameter. This compliments the previously added write methods.  I have enabled warnings to makes sure I didn't miss those, and I've also adjusted the language around the description of the new and existing methods in the pull request. Many apologies for the disjointed manner of this pull request.

Can I get another look at this? There's a library that is dependent on these functions going live this week. Thanks!

Issues addressed, may I get another look @gigapod? Thank you!


Extract common functionality into a new BaseTreeViewer._finishRendering method

Note how the end of the {PDFOutlineViewer, PDFAttachmentViewer, PDFLayerViewer}.render methods share almost identical code, hence we can reduce some duplication by introducing the new BaseTreeViewer helper method here.
Furthermore, setting this._lastToggleIsShow can be made ever so slightly more efficient, since we don't care about the number of ".treeItemsHidden"-classes but only want to know if at least one exists.

/botio-linux preview

Thanks!


Upgrade libwasmvm to CosmWasm 2.0

[x] Upgrade to beta version and adapt codebase (#487)
[x] Upgrade to next beta
[x] Add ValidateAddress to GoAPI
[x] Add entrypoints field to Go types.AnalysisReport
[x] Adapt wasmvm types to changes; Add new wasmvm types
[x] Add payload length limit of 128 KiB per submessage in func DeserializeResponse(
[x] Upgrade to release candidate
[x] Bump libwasmvm version
[x] Upgrade all deps in lockfile (https://github.com/CosmWasm/wasmvm/issues/497)
[x] Upgrade to cosmwasm-vm and cosmwasm-std 2.0.0

I believe all types are updated now that #515 and #517 are merged.

Done
https://github.com/CosmWasm/wasmvm/releases/tag/v2.0.0


Adopt Tx prioritization

Summary
With upgrading the SDK to 0.46.x (beta is tagged) and tendermint 0.35.x, we get Tx prioritization. But we should make sure that this also properly applies to messages/data in the same namespace. Or as @musalbas put it:

for validators I think we should introduce a tx prioritisation mechanism where if there are multiple transactions in the same namespace, the one that pays the highest fees gets included first
When ordering messages in the block
This is so that sovereign zk rollups can impose block size limits... Because generating proofs is expensive (edited)
So DoS resistance is needed

This is somewhat critical for launch and hence for incentivized testnet too. Let's add a test-case that asserts the above behaviour.

closing as we updated to v0.46 of the sdk, but also created #513


Support install headscale with helm to kubernetes cluster

Feature request
Support install headscale with helm to kubernetes cluster. kubernetes is easy to install 、manage and scale application.

Hi
We will not support this as it is too much for us to maintain, we only support the binary install. We are happy to review and have people contribute community supported configuration: https://github.com/juanfont/headscale/tree/main/docs/examples


Example deployment script

Idea: It would be great to have an example deployment script (e.g., truffle 2_deploy_contracts.js) that can be used in truffle. The script should take facet addresses as inputs, calculate the respective function selectors and create the array of structs to be passed to the diamond constructor.

Yes, there is one here: https://github.com/mudgen/diamond-1/blob/master/migrations/2_diamond.js

Yes, there is one here: https://github.com/mudgen/diamond-1/blob/master/migrations/2_diamond.js

Many thanks!!

Many thanks!!

Welcome!

Welcome!

Welcome!

Welcome!


Added hooks support

This PR adds React hooks support

Pull Request Test Coverage Report for Build 17

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

Totals

Change from base Build 16:
0.0%

Covered Lines:
1

Relevant Lines:
1

💛  - Coveralls


[Bug]: Share button is not working in Contribute page

Give a brief about the bug ✍
Description
Share button is not working on any other page except home page
this should be the expected behaviour of share button on clicking

but it is not responding on other pages
What is the expected behavior? 🤔
Description
it should be open on clicking and show all 4 options
Provide step by step information to reproduce the bug 📄
Description
i will the logic to the each pages so that it will work smooth
Select program in which you are contributing
GSSoC24
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

@Durgesh4993  please assign me this issue

can you assign me the issue i can work on it @Durgesh4993

@vaibhavi-singh-673 please work on other issues I have found, raised it


Outstanding overdue invoice report

Notion card
https://www.notion.so/saeloun/Create-the-front-end-for-outstanding-and-overdue-invoices-reports-and-API-Integration-273f14df1afa4e7983952a0726f2d304
Summary

Added Summery title for showing total.
Added Listing tables.
Not added filters.
Added API integration

Preview

https://user-images.githubusercontent.com/104751221/178964646-b3f6661c-45d3-4c90-9836-c68832852522.mp4
Type of change
Please delete options that are not relevant.

[ ] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Tested Manually on local machine
Checklist:

[ ] I have manually tested all workflows
[ ] I have performed a self-review of my own code
[ ] I have added automated tests for my code

Kindley Ignore the changes related to the filter as it is not included in this PR.

Divider line below invoice name (microsoft) should be #5B34EA (Han Purple)
'Issued Date / Due date' should be all capital like other table headers
Amount table header should be right aligned

@AkashKale the divider line colour is same as given in design.


How to insert only if not exist

I have a function and that function is called addReaction, it will add the commentId and the userId in the join (pivot) table called reaction. I have a model called Reaction.
I was wondering, how can I insert commentId and userId only if it doesn't exist already? I'm asking to know if it's possible to do that without having to query first or relaying on erros such as unique constraints (which is something I don't want).

That's not atomic. You need to use custom locks to make that atomic.

@koskimas Can't you pass existing transaction to upserGraph method?

Yes, but a transaction alone doesn't help here.

@koskimas As it's a pivot (join) table, how can I add the unique constraint for both commentId and userId? Like if the user tries to add again a reaction to that comment it would not allow it.

You can add composite unique constraints in knex migrations like this:
table.unique(['commentId', 'userId'])

Then you can use the objection-db-errors plugin to catch the UniqueViolationError.

@koskimas Thank you, you rock. Is there a community like Slack, Discord or any other for Objection.js? It would be really nice. Keep up the good work.

@zefexdeveloper https://gitter.im/Vincit/objection.js


add no opener no referrer to any target='_blank' link

Add noopener and noreferrer to any target="_blank" link.
Contract change checklist:

[ ] Code reviewed by 2 reviewers. See template and example.
[ ] Unit tests pass
[ ] Slither tests pass with no warning
[ ] Echidna tests pass if PR includes changes to OUSD contract (not automated, run manually on local)

Merging this in since it is of so little importance


Add Dark  Theme

I can make changes with the UI and add dark theme that most of the user wants. It will change it's look and will be cool.
Assign me I'll do it ASAP.

Also the width is more than it should be due to video. It's not looking good in 14' laptop. I can fix it.

ok go ahead and implement your idea

okay Thanks. I will start working on it.
Can you please hectober fest tags.

I want to make few changes to make it good looking and user friendly. Can I remove the video which is playing in between..? and some cards instead of that for the future use.
Also Can I remove the bottom sliding "welcome" animation button

NO don't remove anything just do what you are asked . Just add the Dark mode thats all

NO don't remove anything just do what you are asked . Just add the Dark mode thats all

Okay got it.

Added Dark Mode and made a PR can you please review my PR before merging


Allow passing down classes for chip list of InputChip

Describe the feature in detail (code, mocks, or screenshots encouraged)
Passing down classes for the chip list would enable the developer to alter the styling, overflows etc.
Could be done by making the field cChipList accessable, kind of like the padding or rounded fields already are.
What type of pull request would this be?
New Feature
Provide relevant links or additional information.
No response

instead of making cChipList accessible I would suggest to use the regionProps just like in the ListBox:
https://github.com/skeletonlabs/skeleton/blob/5b9aab9c55ecd5920b65e908831fb816529366a5/packages/skeleton/src/lib/components/ListBox/ListBox.svelte#L27
This will follow our guidelines and if the user wants to override styles they can do so easily!
@endigo9740 if this sounds reasonable I would be happy to handle it.

@Mahmoud-zino yeah if there's a region that's currently inaccessible then I'm good with this. I'll assign the ticket to you. Thanks!


Mango integrated with pileup.js

works with pileup.js for features, variants, reference and alignments for multiple sample
added GA4GH http request for pileup

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/mango-prb/230/
Test PASSed.


Add ability to rename, delete and export schema templates

We recently introduced the notion of "schema template", which helps the user start from a skeleton of Wikibase schema instead of creating one from scratch.
Users can currently create their own schema templates, but they are not able to:

rename them
delete them
export them to JSON

Proposed solution
We should have an additional dialog which lists the templates stored for the current Wikibase instance, letting the user perform the actions above.
Alternatives considered
It was also suggested by @lozanaross to store those schema templates in a directory of the file system, and let the user perform those operations using their file manager. While this is attractive (no need to re-implement our own file manager), templates are currently stored in the preference store (so in workspace.json), so it would be involved to change that.
Additional context
Part of the Wikimedia Commons integration project.

Proposing a sample management dialog:

(I am proposing the option to select multiple templates, so that they can be downloaded via same button, but if it's easier to just have separate rename / delete / download options next to each template name, that's also OK.)
Users can get to this management dialog via the "Save new..." dialog:


[rush-init-project-plugin] rush update generates files with windows newlines (CRLF) on MacOS

Summary
Running the rush update on MacOS causes the command-line.json file in autoinstallers directory to change the line format to Windows lines (CRLF).
Repro steps

Be on MacOS (or presumably *nix would have the same issue)
Run rush update
Look at the generated files. They all use windows newlines:

*/autoinstallers/*/rush-plugins/rush-init-project-plugin/rush-init-project-plugin/command-line.json

Expected result: These files should use Unix (LF) style newlines (i.e. \n)
Actual result: These files use Windows (CRLF) style newlines (i.e. \r\n)
Details

Question
Answer

@microsoft/rush version
5.90.2

rushVersion
5.90.2

Operating system
MacOS 14.1.1

Node.js version
18.18.2

Hi kostyamm, I can not reproduce your issue on my side. Could you kindly check is there any .gitattributes file in your repository?
This file is controlling the eol for specific patterns. Related doc: https://git-scm.com/docs/gitattributes#_eol
If everything seems to be good, could you provide a reproduciable repository? We can help to do further investigation based on this repo.


CI: Enable RUST_BACKTRACE for tests

Could be useful in some cases when GitHub Actions fails on a specific target.

I went through with issuing a PR for this because I think I missed it in: https://github.com/hermit-os/uhyve/pull/701#issuecomment-2203425761
Having the backtrace in the logs in the first place would be optimal - provided that I don't make an identical commit in my own tree just to be able to read the backtrace and then undo it.
(Note: This was a quick change and I did not test it against the sysinfo PR or otherwise)


Show Product Identifiers in API

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
When I look in the website I see Show Product Identifiers
which specifies CPE \ PURL of a package \ distro
is it possible to display it in the API?
Describe the solution you'd like
A clear and concise description of what you want to happen.
Include a list of identifiers of a package\distro in the API
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Hey, I think this is tracked here: https://github.com/endoflife-date/endoflife.date/issues/763

check #2080  , that's the PR with the specific commits to get the Identifiers like CPE.#5352 is also related to this.
as of now, we just have to wait for the v1 of the API with the fields, because the data is mostly in the repo but there isn't the API update yet.