A method to calculate the compound probability of N independent events?

First of all, a huge thanks to all the scipy developers for creating this incredibly important library!
Question
Is there a method in scipy to calculate the compound "OR" probability for some number, N, of conditionally independent events with probability specified by a list, p?  In other words, a calculation to find the probability that at least one event will occur among N independent events that each have probability p_i.
For example, say you have three weighted die such that the odds to roll the '6' side are 10%, 15%, and 20%, respectively.  The compound probability to roll at least one '6' should be 38.8%.
Written out, the "OR" probability for any two independent events is P(A) + P(B) - P(A)*P(B)
So the "OR" probability for any three events is P(A)+P(B)+P(C) - [P(A)P(B) + P(B)P(C) + P(A)P(C)] - P(A)P(B)P(C)
...and so on.
One instance where this kind of problem occurs is when calculating cumulative probabilities.  For example, if you know the independent probability of an event happening during any one year and you want to calculate the probability of it happening over a range of years.
Attempt
Not being aware of such a method in scipy or related python libraries, I wrote up a quick recursive function that does this, below.
def p_compound_or(x):
    if len(x) == 0:
        return 0
    if len(x) == 1:
        return x[0]
    elif len(x) == 2:
        return x[0] + x[1] - x[0]*x[1]
    else:
        return p_compound_or(list(itertools.chain([x[0] + x[1] - x[0]*x[1]], x[2:])))

Issues
Clearly, my code above will not be optimal performance-wise for at least these reasons,

It's written in pure python
I'm not sure I've made the most efficient use of itertools for the recursive step
It doesn't do any kind of approximation, so it may waste time computing very small conditional probabilities, especially if the probably of one event dominates.

Thank you in advance for any suggestions!

In other words, a calculation to find the probability that at least one event will occur among N independent events that each have probability p_i.

Isn't this the same as 1 - the probability of exactly 0 events occurring?

For example, say you have three weighted die such that the odds to roll the '6' side are 10%, 15%, and 20%, respectively. The compound probability to roll at least one '6' should be 38.8%.

P(0 events) = (1 - .1) * (1 - .15) * (1 - .2)
P( >0 events) = 1 - P(0 events) = .388
You could calculate this like
ps = np.array([0.1, 0.15, 0.2])
1. - np.prod(1. - ps)
# 0.3879999999999999

This is probably more stable for large numbers of ps
ps = np.array([0.1, 0.15, 0.2])
1. - np.exp(np.sum(np.log(1. - ps)))
# 0.388

Although P(0 events) will tend to get very small and so it will be easier to represent than 1 - P(0 events).

Hi @JesseLivezey thanks for taking a look, and good point!  That it the same, and definitely simpler.
For posterity - the time cost of your suggested functions seems to be pretty constant regardless of the size of the probability vector (x AKA ps). The exponential formulation is ~50% slower.  The recursive formulation I started with DOES have size-dependent speed and is a little faster than the exponential formulation up until N~8, and gets slower after that.


Package Initialization Error

Diagnostics
undefined

Versions
Teletype version: v0.13.3
Atom version: 1.36.0
Platform: win32

Thanks for the report! I'm going to go ahead and close as a duplicate of #372 so you can subscribe there for updates if you'd like. If you can, please let us know if you're consistently seeing this error or if you saw it just once. It would also be useful to know if you access the internet via a proxy.


Is it possible to add support for post object action ?

I mean can this action be added to s3rver. It is very similar putOblect:
app.post('/:bucket/:key(*)', controllers.bucketExists, controllers.postObject)

Hello @swiftanthony
According to the documentation:

The POST operation adds an object to a specified bucket using HTML forms. POST is an alternate form of PUT that enables browser-based uploads as a way of putting objects in buckets. Parameters that are passed to PUT via HTTP Headers are instead passed as form fields to POST in the multipart/form-data encoded message body.

Feel free to implement multi-part uploads and send a pull request :) Alas, I don't have much time at the moment to implement it. There is another issue that wants this feature: https://github.com/jamhall/s3rver/issues/33

Thanks @jamhall
I don't have much time at present myself, but I will look into this one once I get a bit of breathing space.


Master real fix translation

real fix for #13
use native translator or intlib property as must be, but mock if both fails

already tested, previus fix for you does not work, also generated an error

You can fix the luacheck warnings by adding intllib and gettext to the .luacheckrc
https://github.com/minetest-mods/lavastuff/runs/5159255069?check_suite_focus=true#step:4:13

but intllib its optional .. how can i managed if its only for 0.4.17 cos its pretty the most played protocol (including the out released 5.5 as pointed here: https://forum.minetest.net/viewtopic.php?p=406217#p406217 ) ?

done

@mckaygerhard you forgot to add a , at the end of your additions.
I think intllib should go in the Other Mods section too

done!, sorry about the ','

Thanks for this, sorry I took so long!

dont worry .. we are all busy also..


Clang++ works in nix-shell, but doesn't when installed into the user profile

Issue description
When used in nix-shell, clang++ works perfectly and is able to produce working c++ binaries.  However, if it's installed with nix-env -i clang, it fails to compile a test c++ program.
Steps to reproduce
Compile the following program:
// hello.cpp
#include <iostream>

int main()
{
    std::cout << "hello\n";
}

nix-shell -p clang --run "clang++ -v hello.cpp"
clang version 5.0.2 (tags/RELEASE_502/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nix/store/lwhakjfxvz93dswnwicxcmqr4p6ckiqc-clang-5.0.2/bin
Found candidate GCC installation: /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0
Found candidate GCC installation: /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0
Selected GCC installation: /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/nix/store/lwhakjfxvz93dswnwicxcmqr4p6ckiqc-clang-5.0.2/bin/clang-5.0" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name hello.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer -v -dwarf-column-info -debugger-tuning=gdb -nostdsysteminc -resource-dir /nix/store/sn0yjh2wcd7243chgb1yyz1vg26lis7g-clang-wrapper-5.0.2/resource-root -idirafter /nix/store/z10kkr081zb02kyjw8ybf2s9zll49cvx-glibc-2.27-dev/include -isystem /nix/store/pi0lr4cj88vig3s5bwl6dpnrvvpc9css-compiler-rt-5.0.2-dev/include -isystem /nix/store/pi0lr4cj88vig3s5bwl6dpnrvvpc9css-compiler-rt-5.0.2-dev/include -isystem /nix/store/pi0lr4cj88vig3s5bwl6dpnrvvpc9css-compiler-rt-5.0.2-dev/include -isystem /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/include/c++/7.3.0 -isystem /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/include/c++/7.3.0/x86_64-unknown-linux-gnu -D _FORTIFY_SOURCE=2 -internal-isystem /nix/store/sn0yjh2wcd7243chgb1yyz1vg26lis7g-clang-wrapper-5.0.2/resource-root/include -O2 -Wformat -Wformat-security -Werror=format-security -fdeprecated-macro -fdebug-compilation-dir /home/user/dl -ferror-limit 19 -fmessage-length 94 -fwrapv -stack-protector 2 -stack-protector-buffer-size 4 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -vectorize-loops -vectorize-slp -o /run/user/1000/hello-c1959f.o -x c++ hello.cpp
clang -cc1 version 5.0.2 based upon LLVM 5.0.2 default target x86_64-unknown-linux-gnu
ignoring duplicate directory "/nix/store/pi0lr4cj88vig3s5bwl6dpnrvvpc9css-compiler-rt-5.0.2-dev/include"
ignoring duplicate directory "/nix/store/pi0lr4cj88vig3s5bwl6dpnrvvpc9css-compiler-rt-5.0.2-dev/include"
#include "..." search starts here:
#include <...> search starts here:
 /nix/store/pi0lr4cj88vig3s5bwl6dpnrvvpc9css-compiler-rt-5.0.2-dev/include
 /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/include/c++/7.3.0
 /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/include/c++/7.3.0/x86_64-unknown-linux-gnu
 /nix/store/sn0yjh2wcd7243chgb1yyz1vg26lis7g-clang-wrapper-5.0.2/resource-root/include
 /nix/store/z10kkr081zb02kyjw8ybf2s9zll49cvx-glibc-2.27-dev/include
End of search list.
 "/nix/store/sn0yjh2wcd7243chgb1yyz1vg26lis7g-clang-wrapper-5.0.2/bin/ld" --eh-frame-hdr -m elf_x86_64 -o a.out /nix/store/v7hg431d55q30gy7hqlpiji3jnvi8gs3-glibc-2.27/lib/crt1.o /nix/store/v7hg431d55q30gy7hqlpiji3jnvi8gs3-glibc-2.27/lib/crti.o /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0/crtbegin.o -L/nix/store/v7hg431d55q30gy7hqlpiji3jnvi8gs3-glibc-2.27/lib -L/nix/store/pw9l7c9girm5mkhzrll3rc7rfwzyiqgf-clang-5.0.2-lib/lib -L/nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0 -L/nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0/../../../../lib64 -L/nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0/../../.. -L/nix/store/lwhakjfxvz93dswnwicxcmqr4p6ckiqc-clang-5.0.2/bin/../lib -dynamic-linker /nix/store/v7hg431d55q30gy7hqlpiji3jnvi8gs3-glibc-2.27/lib/ld-linux-x86-64.so.2 /run/user/1000/hello-c1959f.o -rpath /nix/store/9j8wqd410a46wgijmm89c3ynpaa0whka-shell/lib64 -rpath /nix/store/9j8wqd410a46wgijmm89c3ynpaa0whka-shell/lib -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0/crtend.o /nix/store/v7hg431d55q30gy7hqlpiji3jnvi8gs3-glibc-2.27/lib/crtn.o

Using nix-env -i clang && clang++ -v hello.cpp:
clang version 5.0.2 (tags/RELEASE_502/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /nix/store/lwhakjfxvz93dswnwicxcmqr4p6ckiqc-clang-5.0.2/bin
Found candidate GCC installation: /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib/gcc/x86_64-unknown-linux-gnu/7.3.0
Found candidate GCC installation: /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0
Selected GCC installation: /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/lib64/gcc/x86_64-unknown-linux-gnu/7.3.0
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/nix/store/lwhakjfxvz93dswnwicxcmqr4p6ckiqc-clang-5.0.2/bin/clang-5.0" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name hello.cpp -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64 -v -dwarf-column-info -debugger-tuning=gdb -nostdsysteminc -resource-dir /nix/store/sn0yjh2wcd7243chgb1yyz1vg26lis7g-clang-wrapper-5.0.2/resource-root -idirafter /nix/store/z10kkr081zb02kyjw8ybf2s9zll49cvx-glibc-2.27-dev/include -internal-isystem /nix/store/sn0yjh2wcd7243chgb1yyz1vg26lis7g-clang-wrapper-5.0.2/resource-root/include -fdeprecated-macro -fdebug-compilation-dir /home/user/dl -ferror-limit 19 -fmessage-length 94 -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -o /tmp/hello-a005be.o -x c++ hello.cpp
clang -cc1 version 5.0.2 based upon LLVM 5.0.2 default target x86_64-unknown-linux-gnu
#include "..." search starts here:
#include <...> search starts here:
 /nix/store/sn0yjh2wcd7243chgb1yyz1vg26lis7g-clang-wrapper-5.0.2/resource-root/include
 /nix/store/z10kkr081zb02kyjw8ybf2s9zll49cvx-glibc-2.27-dev/include
End of search list.
hello.cpp:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^~~~~~~~~~
1 error generated.

Technical details
Please run nix-shell -p nix-info --run "nix-info -m" and paste the
results.
 - system: `"x86_64-linux"`
 - host os: `Linux 4.14.59, NixOS, 18.09pre147850.2428f5dda13 (Jellyfish)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.0.4`
 - channels(user): `"nixos-18.03-18.03"`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

By comparing the environment variables of the shell and my user profile, I was able to narrow the problem down to two environment variables being missing from my user profile:
NIX_TARGET_CXXSTDLIB_COMPILE= -isystem /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/include/c++/7.3.0 -isystem /nix/store/5d2njc16vdwq5ivc8y53cdlr63vmbzpf-gcc-7.3.0/include/c++/7.3.0/x86_64-unknown-linux-gnu
NIX_CC_WRAPPER_x86_64_unknown_linux_gnu_TARGET_TARGET=1

Using these fixes the problem, though I don't know why clang's wrapper isn't setting them up properly.

I'd say this is by design: https://nixos.wiki/wiki/FAQ/I_installed_a_library_but_my_compiler_is_not_finding_it._Why%3F

No stdenv should include C++. This is definitely a bug, but one that I hope is fixed in #44221.

Yeah, while I agree with the general idea of https://nixos.wiki/wiki/FAQ/I_installed_a_library_but_my_compiler_is_not_finding_it._Why%3F, a small number of packages need to use the compiler at runtime (for instance https://cffi.readthedocs.io/en/latest/cdef.html#letting-the-c-compiler-fill-the-gaps). Which means the compiler should work outside a nix-shell even if it doesn't (and shouldn't!) search ~/.nix-profile/include or ~/.nix-profile/lib for headers and libraries.

The reason I found this in the first place is all the tooling based off of clang that I need in my user profile also broke. (clang-tidy, irony-server, etc)

This is fixed in master.


Lab 1: Sugata Sen, worked with: Harish Ramesh

https://github.com/sugahiraeth/ese5190-2022-lab1-firefly


About GDR support

Hello,
I noticed that you have removed the options related to GDR in the most recent commit b5c74a0. May I ask if you have abandoned support for GDR?
I believe GDR is crucial for GPU training. Without specific optimizations, the copy overhead from device to host can severely impact the performance of AllReduce between multiple machines. So I really hope to see GDR being supported by SwitchML.

Hey apologies for the late reply,
If memory serves me right, the reliance on the CPU only exists in the "prepostprocessor". If you implement one that does SwitchML quantization directly on GPU memory then modify the integrations with PyTorch or Tensorflow so that they pass you the GPU pointers directly you should be able to make GPU direct work. No other modifications are needed.


Make todo list react app

The App has been made and is working fine
The linter errors have been removed
Add and delete tasks are working properly
Edit tasks are working properly
Tasks are stored in browser memory

Hi @zunairkhan811 ,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights

No Linters errors 💯
All requirements are complete 💯
Well-implemented code based on previous reviewers' requests 💯

Optional suggestions
No optional suggestions :)
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers, and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.


How add FilterExpression in the FilterExpressionList

About
Google.Analytics.Data.V1Beta
Support request
I searched on https://googleapis.dev/dotnet/Google.Analytics.Data.V1Beta/latest/api/Google.Analytics.Data.V1Beta.FilterExpressionList.html to know how add Expressions in the Filter Expression List but not finded
Somebody know how do it?

You just call Add on the list returned by the Expressions property - or you can do it with a collection initializer, e.g.
var list = new FilterExpressionList
{
    Expressions = { filterExpression }
}

Thanks, worked


Fix formatting in WPF breaking change

Asterisks intended for boldfacing were showing on the rendered page.
Preview link.

Strange, the bullet points aren't the correct ones.

Strange, the bullet points aren't the correct ones that should be rendered.

Oh right. I'll look into it. This is where it changes: https://review.docs.microsoft.com/en-us/dotnet/framework/migration-guide/retargeting/4.0-4.7.1?branch=pr-en-us-20461#path-colon-checks-are-stricter


Make the theme compliant with W3C standards

These changes make the theme W3C compliant as far as I checked. I cleaned a couple of unordered lists and changed all section tags I found for div tags.
If you have any questions I am happy to answer.
EDIT: Also, CSS on section plays bad with Isso, which uses them, so after this PR I would then clean the CSS and make Isso display nicely.

Hi ! Thanks for your PR, really interesting ! Do you have a link about thoses rules in W3C ? How do you know them ? Do you use a tool for this ?

Yup, would be hell to know "da rules" by memory. https://validator.w3.org/
By W3C compliant, which is understandably ambiguous (sorry), I meant that we pass this test for the HTML5 standard. We don't pass the CSS test, though.
Sections only fire a warning message, but there are two reasons to change them for divs. One being that Isso uses sections but we have them stylized, and that messes with the padding of the comment section, making it look a bit ugly. The second reason is that section is supposed to have semantic meaning and help with web crawlers and that kind of thing. Check this out too if you have the time https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_HTML_sections_and_outlines
Note that I haven't cleaned the CSS fully, but I'll make more PRs soon if you think it is worth it.

This was a great idea! I've had it on the back of my mind, but figured it'd be a ton of work to implement.
How are you testing it? Just plugging the templates themselves in, or generating a site and plugging the output in?

You always check on the generated site since it is what really matters to the browser. I use the extension because it is much more convenient to check a local environment.

Cool ! Seems okey to me. I will be testing this and then merging it if ready.

So, how is it going?

@Vipermaseg sorry for the delay, I'll be getting to this soon :fallen_leaf:


Getting a lot of "Parsing error: Unexpected token"

Version: 1.48.2
Commit: a0479759d6e9ea56afa657e454193f72aef85bd0
Date: 2020-08-25T10:56:10.074Z
Electron: 7.3.2
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.0-37-generic snap
When I'm working with a large file, linter just gets stuck with that.
On ESLint OUTPUT tab I'm getting a lot of
[Info  - 6:35:49 pm] Cannot read property 'value' of null Occurred while linting /home/user/repo/Profile.js:97
[Info  - 6:35:49 pm] Cannot read property 'value' of null Occurred while linting /home/user/repo/Profile.js:97
[Info  - 6:35:50 pm] Cannot read property 'value' of null Occurred while linting /home/user/repo/Profile.js:97
[Info  - 6:35:50 pm] Cannot read property 'value' of null Occurred while linting /home/user/repo/Profile.js:97
[Info  - 6:35:51 pm] Cannot read property 'value' of null Occurred while linting /home/user/repo/Profile.js:97
[Info  - 6:35:51 pm] Cannot read property 'value' of null Occurred while linting /home/user/repo/Profile.js:97

Which is simply a code block of
    const [profile] = await postgres`
      SELECT *
      FROM "profiles"
      WHERE id = ${profile_id}; // line 97
    `;

    "eslint": "^7.5.0",
    "eslint-config-airbnb": "^18.2.0",
    "eslint-loader": "^4.0.2",
    "eslint-plugin-import": "^2.21.2",
    "eslint-plugin-jsx-a11y": "^6.3.1",
    "eslint-plugin-react": "^7.20.3",
    "eslint-plugin-react-hooks": "^4.0.8",

module.exports = {
  globals: {
    window: true,
    document: true,
  },
  parser: 'babel-eslint',
  parserOptions: {
    ecmaVersion: 6,
    sourceType: 'module',
  },
  env: {
    browser: true,
    node: true,
  },
  extends: ['airbnb', 'airbnb/hooks'],
  plugins: ['jsx-a11y', 'react'],
};

Solved at https://github.com/eslint/eslint/issues/13662#issuecomment-687760548
TLDR: was using babel-eslint instead of @babel/eslint-parser
Thanks to @mdjermanovic :100:


Fix pointer line material not being included in the build

Overview
Unity doesn't include shaders that aren't used in materials either referenced in a scene or in a Resources folder. This PR creates a material for the pointer lines with the same settings as the code was doing, instead of trying to create one at runtime and failing when not in the Editor.

The MRTK_Standard materials? The script was creating a script that uses the Particles/Alpha Blended shader, so that's the one I used here. I can experiment with the MRTK Standard shader and see if I can replicate the look and feel with it, but, to start, I simply migrated the runtime-created material into an asset.

No worries, I'd like to see if we could get something nicer from the standard materials.
Also trying to keep misc one off materials out of the SDK where possible.

Also trying to keep misc one off materials out of the SDK where possible.

Yes! If it hasn't been done already, I plan on doing a pass to remove the UIDarkGray material and replace with the Std dark gray


CNV-32502: add option to change SC - create IT

📝 Description
Adding an option to change storage class for IT
🎥 Demo
After:

Before:

/retest

/retest

/retest


excluding screenshots out of "all games"

Hi,
it would be great to have an option to exclude screenshots from all-games collection.
Even if screenshots collection is not visible among other collections, screenshots are counted
as games in "all-games" collection and are visible in that collection.

Good Idea. So it's done.
It will be available in the next release.


Request for pythonnet package full support.

PS C:\Users\712645\Desktop> rspy -c "import clr_loader; from clr_loader import get_coreclr; runtime = get_coreclr()"
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\712645.cargo\git\checkouts\rustpython-f8ef4d934ac33cd8\bdb0c8f\Lib\clr_loader_init_.py", line 117, in get_coreclr
from .hostfxr import DotnetCoreRuntime
File "C:\Users\712645.cargo\git\checkouts\rustpython-f8ef4d934ac33cd8\bdb0c8f\Lib\clr_loader\hostfxr.py", line 5, in
from .ffi import ffi, load_hostfxr
File "C:\Users\712645.cargo\git\checkouts\rustpython-f8ef4d934ac33cd8\bdb0c8f\Lib\clr_loader\ffi_init_.py", line 11, in
ffi = cffi.FFI()  # type: ignore
File "C:\Users\712645.cargo\git\checkouts\rustpython-f8ef4d934ac33cd8\bdb0c8f\Lib\cffi\api.py", line 48, in init
import _cffi_backend as backend
ModuleNotFoundError: No module named 'cffi_backend'
PS C:\Users\712645\Desktop> rspy -c "import ctypes"
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\712645.cargo\git\checkouts\rustpython-f8ef4d934ac33cd8\bdb0c8f\Lib\ctypes_init.py", line 8, in
from _ctypes import Union, Structure, Array
ModuleNotFoundError: No module named '_ctypes'
PS C:\Users\712645\Desktop> rspy -c "import _ctypes"
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named '_ctypes'
PS C:\Users\712645\Desktop> rspy -c "import _ctypes"
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named '_ctypes'

It seems this would require a Rust implementation of the _ctypes module, which seems to be a difficult problem to solve. (See also #1217.) If you are up for the challenge, would you like to help?

Hi Team ,
I am up for the challenge.
Let me know how to contribute for the challenge to solve.
I will try to write it in my github if not started.
Nice to see you!.
Thank you.
Regards ,
Libin
On Thu, Jul 27, 2023 at 11:13 PM fanninpm @.***> wrote:

It seems this would require a Rust implementation of the _ctypes module,
which seems to be a difficult problem to solve. (See also #1217
https://github.com/RustPython/RustPython/issues/1217.) If you are up
for the challenge, would you like to help?
—
Reply to this email directly, view it on GitHub
https://github.com/RustPython/RustPython/issues/5032#issuecomment-1654101495,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUJLYNZHMUURL5HKDDKEJALXSKSDFANCNFSM6AAAAAA22LOLEU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Docs: update documents

This change is

Builds ready [c13ae56]builds: chrome, firefox, opera
bundle viz: background, ui, inpage, contentscript, ui-libs, bg-libs, phishing-detect
dep viz: background
all artifacts


lib, test: prepare for npm audit fix

I tried to run npm audit fix today and here are the changes that are necessary for the tests to pass with the upgrade, so opening a PR first to fix them. The first commit makes the test data more deterministic (probably an issue that's exposed by my particular setup as this fails on the main branch too)  by making the dates different so that the items can be sorted properly by date. The second fixes a breakage caused by a breaking change in yargs by explicitly making the checkComments default to false (instead of counting on it being coerced from undefined to that). The last one are just format changes required by eslint upgrades.

It looks like you started to work from a very old version of the code.

Oops, just noticed that my branch is out of date, I was running on the master branch. They should be fixed on the main branch now. Closing.


Documenting usage of datasets produced by pangeo-forge

What policy should pangeo-forge have on documenting how to use a dataset? The conda-forge analogy would say that you just point to the upstream's documentation. While the upstream documentation will certainly be useful for understanding the data, it won't necessarily help with using the ARCO dataset.
At a minimum, it'd be helpful to have an example showing how to load the dataset into the preferred container. This is analogous to conda-forge's conda install -c conda-forge name-of-package
>>> import intake, intake_stac  # assuming we're using intake as our recommended API
>>> my_dataset = intake.open_stac_catalog("/path/to/pangeo-catalog.json")[collection].to_dask()
>>> my_dataset
<xarray.Dataset>
...

Perhaps we cut if off there? Or perhaps we recommend / require recipes come with an example in pangeo-gallery? It now occurs to me that pangeo-gallery is federated, so we could have a gallery of notebooks in the recipe repository, and then register them with pangeo-gallery.

Totally agree that we should provide usage hints.
To me, this is tightly coupled with cataloging (#25). All the dataset that get processed by forge will be ingested into a catalog. That catalog should contain sufficient information about the format that we can generate example code for opening the data. Ideally this would include examples from many languages, not just python.
Once we solve the catalog problem, then the feature you describe would probably live in https://github.com/pangeo-forge/pangeo-forge-vue-website.


Remove turbolinks from application.js file

Suspenders doesn't use turbolinks by default. It doesn't include it in
the Gemfile, but the generated application.js was trying to include
it, resulting in a failure.
This fix make sure a newly generated application doesn't include
the turbolinks reference.
[fixes #788]

Code LGTM.


NH-32028 API method to set custom txn name

This adds a new API method, set_transaction_name, to Python APM library so that customers can assign a custom txn name to a trace from their code.
Also moves existing solarwinds_ready to the same, new api module. The old solarwinds_ready is now no-op and with deprecation warnings.
set_transaction_name should work like what's described for .NET library (this customer doc). Detailed description and results of some manual testing here: https://swicloud.atlassian.net/wiki/spaces/NIT/pages/3468230856/2023-02-23+Custom+Transaction+Naming+API, using these testbed updates.
The way this works with OTel is:

Inbound metrics span processor has a new on_start method override that always caches the trace_id and span_id of the "current" service entry span into mutable OTel baggage, associated with the much less mutable OTel context.
Yes, the way I'm writing to baggage is a little questionable. Waiting for an answer here on CN Slack.
If the customer's code calls our API set_transaction_name method, we use OTel tracer to access the inbound metrics span processor and the cached current service entry span from baggage. Customer custom txn name is written to the former's transaction name manager with the entry span from the latter as key.
Inbound metrics span processor on_end now checks for cached custom txn name for each span, and uses them with priority over the existing http or 'regular' txn name if exists for the current ended span.
The last span to end with an associated call to set_transaction_name is the last custom name assigned by the customer, and will be the one used over any earlier calls to the API in older spans.

Polished customer documentation will be completed via https://swicloud.atlassian.net/browse/NH-34187. Also this completely replaces this early PoC.
Please let me know if any questions or suggestions  😃

Ready now!


images not resizing properly

thanks for this theme! i'm having a issue with image resizing.
if i add a custom logo to replace img/logo.png, it needs to be the exact pixel heigh of top banner, otherwise else it overflows into the carousel.
similarly, if i add a 640x480 image to the carousel, it only fills part of the window - shouldn't it cropZoom to fill the space?
is there some setting i'm missing which enables automatic image scaling?

There is no automatic scaling, you need to handle image dimension manually by using custom CSS or override the theme's templates. The theme was converted from an HTML template so it can't cover all the cases.

There is no automatic scaling, you need to handle image dimension manually by using custom CSS or override the theme's templates. The theme was converted from an HTML template so it can't cover all the cases.


Prelim. implementation CSV format enhancement #184

First implementation of csv_row and sanitise_csv_cell

@lohvht looks good! I added var to limit scope for start_element, in case this is a variable name used by user in their automation flows and gets overridden when invoking the function.


fullscreen and windowed mode cli fix

"-fullscreen" and "-windowed" were not working properly. This fixes that for Full and Empty templates.

For folks getting turned around wonderign where that $WORD::FULLSCREEN is coming from:
https://github.com/GarageGames/Torque3D/blob/c152ae86f3f09b3c1d736954b352723d274582f1/Templates/Empty/game/core/main.cs#L24-L29

Safe and functional. Thanks for fixing this bug.


635 remove unnecessary files from coverage

Resolves #635
In forge currently is impossible to ignore files, but there is a wayaround to tackle this issue.
Please view https://github.com/foundry-rs/foundry/issues/2988 based on this comment https://github.com/foundry-rs/foundry/issues/2988#issuecomment-1505771312 i have setup a coverage.sh script to ignore tests, mocks and scriptint solidity files.

nice work that is what I had in mind ;)

Note for the future, it will be excellent to make this work;
diff --git a/.github/workflows/coverage-check.yml b/.github/workflows/coverage-check.yml
index 2b40567d..ef400b75 100644
--- a/.github/workflows/coverage-check.yml
+++ b/.github/workflows/coverage-check.yml
@@ -29,34 +29,7 @@ jobs:
       - name: Get development branch coverage
         id: coverage-development
         run: |
-          cd ./packages/contracts
-
-          # generates lcov.info
-          forge coverage --report lcov
-
-          # Foundry uses relative paths but Hardhat uses absolute paths.
-          # Convert absolute paths to relative paths for consistency.
-          sed -i -e 's/\/.*solidity.//g' lcov.info
-
-          # Merge lcov files
-          lcov \
-              --rc lcov_branch_coverage=1 \
-              --add-tracefile lcov.info \
-              --output-file merged-lcov.info
-
-          # Filter out node_modules, test, and mock files
-          lcov \
-              --rc lcov_branch_coverage=1 \
-              --remove merged-lcov.info \
-              --output-file filtered-lcov.info \
-              "*node_modules*" "*test*" "*mock*" "*scripts*"
-
-
-          # Generate summary
-          COVERAGE_DEVELOPMENT_OUTPUT=$(lcov \
-              --rc lcov_branch_coverage=1 \
-              --list filtered-lcov.info)
-
+          COVERAGE_DEVELOPMENT_OUTPUT=$(npm run coverage)
           echo COVERAGE=$(echo "${COVERAGE_DEVELOPMENT_OUTPUT}" | tail -n 1 | cut -d % -f 1 | cut -d \| -f 2) >> $GITHUB_OUTPUT

       - name: Checkout code in PR branch
@@ -65,33 +38,7 @@ jobs:
       - name: Get PR branch coverage
         id: coverage-pr
         run: |
-          cd ./packages/contracts
-
-          # generates lcov.info
-          forge coverage --report lcov
-
-          # Foundry uses relative paths but Hardhat uses absolute paths.
-          # Convert absolute paths to relative paths for consistency.
-          sed -i -e 's/\/.*solidity.//g' lcov.info
-
-          # Merge lcov files
-          lcov \
-              --rc lcov_branch_coverage=1 \
-              --add-tracefile lcov.info \
-              --output-file merged-lcov.info
-
-          # Filter out node_modules, test, and mock files
-          lcov \
-              --rc lcov_branch_coverage=1 \
-              --remove merged-lcov.info \
-              --output-file filtered-lcov.info \
-              "*node_modules*" "*test*" "*mock*" "*scripts*"
-
-
-          # Generate summary
-          COVERAGE_DEVELOPMENT_OUTPUT=$(lcov \
-              --rc lcov_branch_coverage=1 \
-              --list filtered-lcov.info)
+          COVERAGE_DEVELOPMENT_OUTPUT=$(npm run coverage)
           echo COVERAGE=$(echo "${COVERAGE_DEVELOPMENT_OUTPUT}" | tail -n 1 | cut -d % -f 1 | cut -d \| -f 2) >> $GITHUB_OUTPUT

       - name: Print coverages

Is that pseudo code or why not just implement the suggestion as is?

Is that pseudo code or why not just implement the suggestion as is?

Npm run coverage should run all those lines, not sure why is not working on gh action

You can link some GitHub action logs here and we might be able to help debug it.


Crashes when pressing space or enter on empty list

Describe the bug
When pressing select button (space or enter) on empty list (e.g. when nothing was found) mangal crashes
To Reproduce
Steps to reproduce the behavior:

Search for manga that does not exist (e.g. type something like 'faofigagjiaogj')
Press space or enter
See error

Expected behavior
It is expected that nothing happens
System

OS: MacOS
Go Version 1.18.3
Mangal 1.5

This behaviour happens in Arch-Linux too. I just checked it.


Add documentation badge to README

Very excited about this package! Just took me a little digging to find the documentation, which is excellent! At least the parts that are finished :sweat_smile:
This just adds a docs badge to the README.md. If you hadn't done that because they're unfinished, I wouldn't worry about it. Just reading what you have got me interested in trying things out!

I had no idea either, but it was a pleasant surprise.
Given that Term's whole point is to produce styled text and the website actually renders it correctly I can directly show the output produced by Term. Love it.
I think I will move the examples that are currently in the examples folder to the website too (a copy of them at least).
Get in touch with any questions/improvements/feature request! I've also opened up the Discussion section of the repo for broader conversations about Term


[BUG] Memory Leaking When SDK Combined With Application Insights

Describe the bug
When using the Azure.Storage.Queues (v 12.3.0) NuGet package in combination with Microsoft.ApplicationInsights.AspNetCore (v 2.13.1) in a .Net core 3.1 application that is constantly polling queues for new messages, we find that the number of objects built up in memory is steadily increasing, specifically:
Microsoft.ApplicationInsights.DependencyCollector.Implementation.AzureSdkDiagnosticsEventHandler - creating about 5000 objects a minute and the garbage collector is not disposing them.
Expected behavior
That the AI objects would be cleaned up by the GC
Actual behavior (include Exception or Stack Trace)
Eventually the app will start throwing OutOfMemoryExceptions.
To Reproduce

Have the following in your app startup:

        public void ConfigureServices(IServiceCollection services)
        {
            services.AddApplicationInsightsTelemetry();
        }

Add a hosted service:

            var host = new WebHostBuilder()
                .UseKestrel()
                .ConfigureServices(c => c.AddHostedService<QueueWorker>())

Have the worker constantly new up a QueueClient to check for queue messages.

Environment:

Azure.Storage.Queues 12.3.0
.NET runtime version 3.1.101
IDE and version : Visual Studio Professional v 16.4.5

For step 3, why not have the worker re-use the same QueueClient?  The clients are thread-safe.

That has proven to be the workaround we have gone with - storing any queue clients that we have created in a static dictionary that remains for the lifetime of the app (we have a web app that uses this shared code and would be newing up the clients pretty heavily to create queue messages).
I will leave it open and for others to decide if this is a bug that needs fixing or if it was simply of a case of us "using it wrong" in which case it can be closed.

We're tracking getting this documented for all clients in this issue. https://github.com/Azure/azure-sdk-for-net/issues/8941.

Hi there
We understand the recommended way is to use a single client though isn't still a bug having a memory leak because many clients are created?
In our specific case, we created a lot of clients for an hour or so at night and the memory is never release even days after.
We will use a single client in the future, so thanks to @speedy-ms
Thanks
Phil


Feedback Items For Consideration

@csepulv  - Thanks so much for the comprehensive tutorial and source code. You did a great job explaining everything, and I enjoyed following along. Did eventually successfully get the example running locally too :)

There were only four points wished to offer in the interests of sharing my experience:
1). In the aws-setup.md, there is confusion about needing to tick the Client Secret option when setting up the Cognito User Pool Client.
You show a screenshot with the Generate Client Secret ticked. This causes the /token endpoint to break later on. If you do generate a client secret you must pass it with the client id on that endpoint (which the web app is not configured to do).

2). The aws-api package.json script for creation of lambda/api gateway works well, however the update-api script is broken. It seems to expect the package.json file to reside at the base of the project (ie. one directory level higher than where it is now. I wonder whether when you bundled it inside aws-api folder, it inadvertently broke it?
3). Would have welcomed a README inside the web-ui directory (not the auto-generated create-react-app one) explaining each setting that the .env file would need. For instance, some settings were really clear, but I had less certainty where to get the value for REACT_APP_OAUTH_DOMAIN, REACT_APP_API_HOST and REACT_APP_API_KEY. It's like anything, the extra work actually forced me to think through the issues and I got a better learning experience as a result. But, if you're looking for a smooth tutorial with no sweat, then that would add value.
4). Would have really welcomed some prose on the auth flow itself. We just ticked accept implicit grant and authorization grant flows, opted to use hosted UI and that was it. Given we have a SPA app (using React.js), but we're using a Hosted UI for the Identity Provider piece, it was less clear precisely what your overall upfront design was. Plus Cognito adds its own magic with tokens, and credentials etc so more information here would have been helpful. Make sense?
Again, thanks so much. Great Cognito samples with solid documentation seem to be in short supply and I found this a great start.

These are good suggestions. I will try to find some time to make the tweaks.

@csepulv - I could help out with a PR for 1) and 3) above if that helps.
I'd also like to port from claudia.js to the serverless framework the contents of aws-api, and migrate the contents of the scripts folder over to terraform.
Would you be able to explain very briefly the touch points in the sample to refactor towards a social connection (OIDC/OAuth2) connection with say Facebook or Google. I'd like to create a separate branch with that connection type - still using Amplify on the Client (React) side.

I've posted an update for the (1) and (3). For (2), I think it works as is. You need to run the claudia commands from the aws-api directory. Did you run from different directories?
On serverless and terraform, I prefer to not make those type of changes. It would require changes to the tutorial. The sample code is meant as an example, not a boilerplate. If you would like to create a fork with those changes, I would be happy to link to it from the main README.
On your last comment, on social logins, are you looking to add them via Cognito or independent of Cognito. If they are configured on the Cognito side, you don't need to change anything on the client/react side. (I use this setup and it is only a AWS side config change)


⚠ Samsung has degraded performance

In 8a08344, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2877 ms

Resolved: Samsung performance has improved in f4cf90e.


[MOB-21475] Exposing new API from SDK to send array of propositions

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):
Types of changes

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

Checklist:

[ ] I have signed the Adobe Open Source CLA.
[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

@spoorthipujariadobe @siddique-adobe How do you feel about using a Repo pattern to stick to the existing Object-oriented paradigm:
public class PropositionRepository {

    private List<OptimizeProposition> propositions;

    public PropositionRepository(OptimizeProposition... initialPropositions) {}

    public void addPropositions() {}

    public void trackDisplayInteraction() {
        ...
        generateDisplayXdm() // private
        dispatchEvent(...).      // private
        ...
        clearPropositions() }
}

Usage:
PropositionRepository repository = new PropositionRepository(optimizeProposition1, optimizeProposition2);
repository.trackDisplayInteraction();

@spoorthipujariadobe @siddique-adobe How do you feel about using a Repo pattern to stick to the existing Object-oriented paradigm:
public class PropositionRepository {

    private List<OptimizeProposition> propositions;

    public PropositionRepository(OptimizeProposition... initialPropositions) {}

    public void addPropositions() {}

    public void trackDisplayInteraction() {
        ...
        generateDisplayXdm() // private
        dispatchEvent(...).      // private
        ...
        clearPropositions() }
}

Usage:
PropositionRepository repository = new PropositionRepository(optimizeProposition1, optimizeProposition2);
repository.trackDisplayInteraction();

Sounds like a good idea. We already have OptimizeProposition today which has List<Offer>. We can have a similar OptimizePropositionRepository which has List<OptimizeProposition>. We can even populate this automatically based on the cached propositions we have in-memory, if needed. Customers can just call pass a list of decision scopes in trackDisplayInteraction for us to automatically sending tracking events for those

Please make sure to update the Optimize Extension version before the release.


Continuous color gradient mapper

The Cytoscape Web documention mentions a "Color Gradient Mapper" that can be used to map double to continuous colors.
The third example in the cyREST folder "r_markdown" shows a method to map a finite number of states to colors using mappingType="discrete". Is it possible currently to map double values to a continuous color gradient? If yes, could you give an example?
Thanks!

I solved my issue by looking at the payload returned when querying information about the existing styles.


Critical css

Hi, @elisei!
Sorry for the late reply.

using "/pub" in urls is not correct. You need 2 calls to the same file when the css is loaded.

The browser will cache the image (for example) the first time it loads, so any subsequent use of the same image will be loaded from the cache instead of from the server.
And I don't  understand how to avoid pub/ if we have it in our static files path on each page.

In addition, the absolute path can cause problems for stores that do not use ssl in all requests (which is not my case).

I think we can move this config to local.js
module.exports = {
    hostname: 'hostname',
    generic: 'loc',
    useHttp2: true
};

@elisei
I would be grateful if you test this solution.


Update menu item titles and links

A few Menu items need to be updated.
Update title to SomaFM:
https://github.com/alfg/somafm/blob/master/app/menu.js#L50
https://github.com/alfg/somafm/blob/master/app/menu.js#L54
Replace the help menu titles and links:
https://github.com/alfg/somafm/blob/master/app/menu.js#L98
https://github.com/alfg/somafm/blob/master/app/menu.js#L161
Homepage - https://alfg.github.io/somafm
Github - https://github.com/alfg/somafm
Issues - https://github.com/alfg/somafm/issues
Releases - https://github.com/alfg/somafm/releases
Reference:
https://electron.atom.io/docs/api/menu/#examples

Checking into this now 👀

Should be done: https://github.com/alfg/somafm/pull/6


is this project dead?

Hello everyone!
Just checking in! when seeing build is failing message it freaks me out!

@arunoda Is this package supported by Meteor 1.4? Most of us recall meteorhacks back to Meteor 1.2 version.

@arunoda Is this package supported by Meteor 1.4? Most of us recall meteorhacks back to Meteor 1.2 version.

or by Meteor 1.5?

Well if you click on build failed, it will tell you that the job failed rather than that the tests failed, although I don't know how travis works.


[feature request] python and ruby API to get secrets

I want to have python (and ruby) API to get secrets.
We currently have to map them into environment variables to get in python (or ruby) as https://blog.torut.tokyo/entry/2017/11/22/233844 says.
To do it, we again suffer with _env as we state at https://github.com/treasure-data/digdag/issues/937.

Your suggestion makes sense. If we use secrets in py> / rb> operator, we'd better to get them from project secrets API directly. To pass secrets to the Python/Ruby program, the operator create a JSON file and write the exact values of the secrets in the file as plain text to communicate inter-processes between operator process (java) and external process (Python/Ruby).
My thought is that it's good to introduce Python/Ruby API defined in runner.py/runner.rb. But the spec is almost similar to http client to support various types of authentication methods. I don't have other better idea.
ref: https://github.com/treasure-data/digdag/blob/master/digdag-standards/src/main/resources/digdag/standards/py/runner.py
@sonots @yoyama @frsyuki If you have any good idea, please leave your comment in this ticket.

As talked with @yoyama about this ticket, I was missing that Digdag doesn't have an endpoint for getting the secret value(s) of specific key(s) instead of endpoint to list secret keys from the perspective of security. My above idea doesn't work.


[Integration] Regenerate response doesn't work if there is error instead of response (empty response from model). Error in console.

Create new chat
In console set Network -> offline
Send any message to the chat -> Error is shown (ok)
In console set Network -> Not throttling
In the chat click on Regenerate response button -> nothing happens -> bug
Note: if to hover over Send icon in message bot there is a tooltip that user should regenerate the response to continue working (ok)

Error in console:

Expected result: Regenerate response should work

The ticket was fixed along with another one. Seems with #691


Removing pterm

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (715501e) 73.11% compared to head (b9c86b5) 73.78%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #32      +/-   ##
==========================================
+ Coverage   73.11%   73.78%   +0.67%
==========================================
  Files          15       15
  Lines        1763     1713      -50
==========================================
- Hits         1289     1264      -25
+ Misses        389      375      -14
+ Partials       85       74      -11

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fixed #31376 -- Optimized nulls ordering when possible on SQLite and MySQL.

https://code.djangoproject.com/ticket/31376

Both backends order NULLs first on ascending ordering and last on descending ordering which makes ORDER BY IS (NOT)? NULL wasteful when asc(nulls_first) and desc(nulls_last) are used since it prevents indice usage.

@charettes Thanks :+1:


How to remove Custom Properties for SDOs

Hi @631068264, in order to remove custom properties from an SDO you need to version it via the new_version method. Example below:
Lets say you have:
{
    "type": "indicator",
    "id": "indicator--548af3be-39d7-4a3e-93c2-1a63cccf8951",
    "created": "2018-04-05T18:32:24.193Z",
    "modified": "2018-04-05T18:32:24.193Z",
    "name": "File hash for malware variant",
    "pattern": "[file:hashes.md5 = 'd41d8cd98f00b204e9800998ecf8427e']",
    "valid_from": "2018-04-05T18:32:24.193659Z",
    "labels": [
        "malicious-activity"
    ],
    "x_foo_bar": "my custom property"
}

You would remove it by:
new_indicator = indicator.new_version(x_foo_bar=None, allow_custom=True)

I could not find a link in our documentation so maybe we could add an example for this case.

Thanks for your reply @emmanvg , it works.


Archive issue with iOS

App runs properly in device and simulator both, but when I try to archive it gives following error.

Any update on this?


💭 In android, can i use lower version of org.jetbrains.kotlinx:kotlinx-coroutines-android, such as 1.6.4

Question
Because of compatibility with another lib
What I tried
No response
VisionCamera Version
latest
Additional information

[X] I am using Expo
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar questions in the issues page as well as in the discussions page and found none.

Try it. If it builds, yes.-


Update browser title to use alternate title if it is available for SEO

In the future we could think about whether the alternateTitle should keep the site suffix or not.
Currently the site suffix (Sourcegraph Learn) is added to the title tag. So a title (or alternate title) of Lorem Ipsum is transformed into Lorem Ipsum - Sourcegraph Learn.
https://github.com/sourcegraph/learn/blob/1f4a0f7dd7051bf75279d39af5fc8be507d8274f/components/Layout.tsx#L38-L44
When alternateTitle is used, should it omit the site suffix? That would give the post author full control over the title tag.
That's a suggestion outside of the scope of this PR.

In the future we could think about whether the alternateTitle should keep the site suffix or not.
Currently the site suffix (Sourcegraph Learn) is added to the title tag. So a title (or alternate title) of Lorem Ipsum is transformed into Lorem Ipsum - Sourcegraph Learn.
https://github.com/sourcegraph/learn/blob/1f4a0f7dd7051bf75279d39af5fc8be507d8274f/components/Layout.tsx#L38-L44
When alternateTitle is used, should it omit the site suffix? That would give the post author full control over the title tag.
That's a suggestion outside of the scope of this PR.

I think this is a discussion, we can have with the entire team.

Agree, we should omit the site suffix in alternative titles


[OpenAPI Bug] ConflictError due to already declared in service.yml

Describe the Bug
We're hitting the following issue in this PR: pokt-network/poktroll/pull/344
[api]: Found 5 errors and 6 warnings. Run fern check --warnings to print out the warnings.
[api]: __package__.yml -> types -> CosmosTxV1Beta1BroadcastTxRequestMode
       CosmosTxV1Beta1BroadcastTxRequestMode is already declared in service.yml
[api]: __package__.yml -> types -> CosmosTxV1Beta1BroadcastTxRequest
       CosmosTxV1Beta1BroadcastTxRequest is already declared in service.yml
[api]: __package__.yml -> types -> CosmosTxV1Beta1TxDecodeAminoRequest
       CosmosTxV1Beta1TxDecodeAminoRequest is already declared in service.yml
[api]: __package__.yml -> types -> CosmosTxV1Beta1TxDecodeRequest
       CosmosTxV1Beta1TxDecodeRequest is already declared in service.yml
[api]: __package__.yml -> types -> CosmosTxV1Beta1TxEncodeAminoRequest
       CosmosTxV1Beta1TxEncodeAminoRequest is already declared in service.yml

We managed to circumvent it by commented out large blocks of yaml in the auto-generate OpenAPI spec built by cosmos.network/sdk
But believe it shouldn't be an issue based on [1] & [2]. Is our expectation inaccurate
[1] https://github.com/fern-api/fern/issues/2374
[2] https://github.com/fern-api/fern/pull/2550
Information to Reproduce
CLI Version
{
    "organization": "olshansk",
    "version": "0.16.36"
}

Generator Config
default-group: local
groups:
  local:
    generators:
      - name: fernapi/fern-typescript-node-sdk
        version: 0.7.2
        output:
          location: local-file-system
          path: ../sdk/typescript
      - name: fernapi/fern-go-sdk
        version: 0.9.4
        config:
          module:
            path: github.com/pokt-network/poktroll
            version: "1.19"
        output:
          location: local-file-system
          path: ../sdk/go

Got feedback from Oleg that You need to specify items field with data's types of array's elements. Looking into that now.

This may actually be resolved, if you could retry this on the latest version of the Fern CLI (fern upgrade), and if necessary adding this configuration to the generation:
api:
  path: ./openapi/openapi.yaml
  settings:
    use-title: false             # <-- this is the important configuration

Facing the same issue tried the suggestion above nada

@b0xtch do you mind pasting your OpenAPI spec here? If not, please feel free to join our slack community and dm me!

@b0xtch and @Olshansk closing as this latest message hasn't had a reply in 6 weeks. Can re-open if this is an issue for you down the line!


add response module

Added  vmngclient/utils/response.py module which extracts and validates requests.Response according to typical use patterns.

Separates response operations from request method (put,post,get...)
Extracts and parses data from response
Provides debug information about request and response when exception occurs (unexpected response payload)

Useful during API method development and maintenance.
Usage example:
from vmngclient.response import parse_as_list

body = {'deviceIP': device_id}
response = self.session.post(url='/dataservice/device/tools/admintechlist', json=body)
return parse_as_list(response, AdminTech)

Exeption message example:
vmngclient.utils.response.VManageResponseException: Cannot create <class 'vmngclient.dataclasses.AdminTech'>: __init__() missing 3 required positional arguments: 'tac_state', 'device_ip', and 'system_ip'
{'request': {'body': '{"deviceIP": "<IP_ADDRESS>"}',
           'method': 'POST',
           'url': 'https://<IP_ADDRESS>:443/dataservice/device/tools/admintechlist'},
'response': {'reason': 'OK',
            'status': 200,
            'text': '{"header":{"generatedOn":1670486642403},"data":[{"fileName":...

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/pull/56


how to use case when in select statement

original sql :
SELECT
  a.id,a.tweet_id,a.user_id,a.target_id,a.content,a.create_at,a.update_at,
  CASE WHEN b.user_id = 3
    THEN TRUE
  ELSE FALSE END AS favoured,
  count(b.id)    AS favours_count
FROM tb_comment a , tb_comment_favour b
WHERE a.tweet_id = 52 AND a.id=b.comment_id
GROUP BY b.id
ORDER BY create_at DESC;

how to achieve it with querydsl , I have tried like below :

it generate sql like this, why does it have three parameters ? It should have two.
select comment.id, user.id, user.userName, user.avatar, user.id, user.userName, user.avatar, comment.content, comment.createAt, comment.updateAt,
 (case when commentFavour.userId = ?1 then ?2 else false end) as favour, cast(count(commentFavour) as integer) as favoursCount
from net.ddder.inner.model.Comment comment, net.ddder.inner.model.CommentFavour commentFavour
where comment.tweetId = ?3 and comment.userId = user.id and comment.targetId = user.id and comment.id = commentFavour.commentId
group by commentFavour.id
order by comment.createAt desc

The exception is
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: Invalid path: 'user.id' [select comment.id, user.id, user.userName, user.avatar, user.id, user.userName, user.avatar, comment.content, comment.createAt, comment.updateAt,
(case when commentFavour.userId = ?1 then ?2 else false end) as favour, cast(count(commentFavour) as integer) as favoursCount
from net.ddder.inner.model.Comment comment, net.ddder.inner.model.CommentFavour commentFavour
where comment.tweetId = ?3 and comment.userId = user.id and comment.targetId = user.id and comment.id = commentFavour.commentId
group by commentFavour.id
order by comment.createAt desc]

Still doing screenshots?
You need to join the two user paths.

@thackel how?


Ideas for next year

Starting a thread to put ideas for next year.
Tibble Joins lecture

Would have been useful to demonstrate what happens when we have a song like "What's love got to do with it" by Tina Turner in one tibble, and the same song by another author in another tibble.
Would have been useful to demonstrate joining a tibble with two predictions, where the columns have the same name in both tibbles, showing that you don't always need to choose columns that are in common between the two. Something like:

set.seed(1)
x <- rnorm(5)
model1 <- tibble(x = x, yhat = 2.1 + 3.2 * x)
model2 <- tibble(x = x, yhat = 1.5 + 2.9 * x)
left_join(model1, model2, by = "x")

And, perhaps follow with a pivot_longer() -- as an alternative to the clunky bind_cols() then bind_rows() method.
General Idea
For the tibble joins lecture today, I did a little segue into a higher-level discussion about where tibble joins often show up in practice. I think it was useful for framing the topic, but it also brought up other aspects of writing a data analysis that's hard to treat as its own topic, such as using mass[1] vs unique(mass) to retrieve island land mass.

here::here() lecture
Definitely important to go over the notion of running code interactively vs. from source. Too hard to explain this at the same time as trying to explain why here::here() sometimes gives different things between the two.

Rmd: interactive = just execute the cells; from source = knit.
R script: interactive = just execute code (moves it to console); from source = "render report" or source().

Worksheet 1B
I think there might be too much emphasis on having functions print() things as opposed to just outputting a character vector.

Mini Data Analysis project
Instead of allowing them to work with any dataset, choose 3 that will definitely work nicely with the questions posed in the project.
If you are invested in a dataset of your own, encourage them to use it, but also describe it so that the teaching team can understand it. Perhaps even get them to put it in a data folder with a README describing each column -- or at least, the most important ones.

Mini data analysis milestone 2
Questions ended up being too specific -- would be more effective to generalise.

Mini data anlysis milestone 3
People were copying their knitted md files into the output folder. Indicate not to do this (it's not reproducible anyway)

Feedback for Assignment 1-B in the private instructor repo: https://github.com/UBC-STAT/stat-545-instructor/issues/24

Assignment 1-B
RRR not clear enough.

Policies
Late assignments should not have 24h limit to receive the 50% penalty because there's no "solutions" document that needs releasing.

Assignment 2-B
Let students and TA's know that we can check vignettes and install the tagged release version using these two arguments of install_github():
install_github(build_vignettes = TRUE, ref = "0.1.0")

General assignments

Would be useful to get students to provide a link on the diff between the template commit and the final commit -- useful for grading things like the BC Liquor app.
Make assignments out of 100, because we ended up working with units of 0.25 when grading.

General topic flow
At least for 545B, where topics span 2 days, it may be useful to cut out some instruction on more details, and end with a 10-20 minute presentation on expanding the topic. This would allow me to at least plant the seed for topics that I wish we could cover in this course, like Rmd presentations, bookdown, GitHub pages, etc.

Assignment 4-B: Makefiles
Using /usr/share/dict/words as a dependency for words.txt is causing issues for Windows users. Looks like this has consistently been a problem in the past years. I advised the current students to adapt this issue into code, and download words.txt from here:
words.txt:
    Rscript -e "code to download words.txt here"

Assignment 4-B: Makefiles
This assignment is not Windows-friendly. Should teach remake instead of make, and just allude to make at the end.

Assignment 3-B:

Have them make this in a separate repository (doesn't make sense for the makefile analysis).
Students are tending not to use interactive UI -- for example, filtering by subtype in the BC Liquor.

Assignments 1 and 4

This should be a "data analysis" repo.
Make sure they keep updating their main README in addition to the assignment README.

Assignment 5-B
strings assignment: there was an article that many people drew on for removing stopwords. It's OK to draw from it, but many people didn't cite it. I should use this as an example of how and when to cite code.

Overall
Extensions:

As for an extension only within 48 hours of the launch (this means it is a foreseen circumstance).
Deadline no more than 1 week after the original deadline.
Standardized way of asking for extensions -- google form?
Should go over the policies section on Class 1.

Assignment feedback: there should be a document outlining procedures:

How to interact with your feedback.
Watch your repo.
Dispute only 1 week after the grade (can't add this to the calendar, because this is a variable date. Instead: add a section on the assignment (akin to the "how to submit your assignment") labeled "how to follow up with the assignment".
Don't use Slack for

Improving the stat545 content:

The guidebook was missed this year. Would be good to make a hybrid guidebook: embed videos, etc.

Others:

Importance of why we use github. Emphasize that we are using git and GH throughout the course (this was a big surprise for many coming in to the course).

Team leading:

Vision for the course: indicate to the team and the students

Clarification on Assignment 4:

a lot of students thought 'add dependencies' for each assignment in the README meant to list the file dependencies (i.e. dependencies for the target in the Makefile), instead of the 'package dependencies'
some students tried to rm phony targets in their clean, so this may also need some more clarification

Overall clarifications:

even for the later assignments, I still saw some students submitting local URLs or paths to their assignment instead of the GitHub link, e.g. /var/temp/private/etc or http://<IP_ADDRESS>:XXXX

Overall, I think there was quite a bit of 'hand-holding' in 545A, with the checklists etc. It shouldn't be our responsibility if the students miss certain criteria for not reading carefully. I also think that the students should be able to just download our .Rmd files for assignments, and not need us to create a pull request for each assignment. Although if this is the direction we want to continue on, and if the course coordinator is git-savvy, this could be one of their consistent tasks.

Here's a fun dataset that would be useful to introduce dplyr and ggplot2 -- an analysis of pride parade entries across time: https://github.com/GaytaScience/PrideParades

Yulia recommends ProjectTemplate as an alternative topic to Makefiles.


Omit testing files from coverage stats

Pull Request Checklist:

[ ] This PR addresses an already opened issue (for bug fixes / features)

This PR fixes #xyz

[ ] Tests for the changes have been added (for bug fixes / features)

[ ] (If applicable) Documentation has been added / updated (for bug fixes / features)

[ ] HISTORY.rst has been updated (with summary of main changes)

[ ] Link to issue (:issue:number) and pull request (:pull:number) has been added

[ ] bumpversion patch has been called on this branch
[ ] The relevant author information has been added to .zenodo.json

What kind of change does this PR introduce?

Omits the testing files from the coverage statistics

Does this PR introduce a breaking change?
Other information:

Coverage decreased (-1.2%) to 90.38% when pulling 26ba17d4f38e04a0fb1b332d5d9163edf08e1767 on boost_coverage into bdb6e8e5694a1771ad309f5e9afa4f190a5f1f51 on master.


Add writing mode support in old versions of Tizen and WebOS

Related to https://github.com/google/shaka-player/pull/3309#discussion_r612023547

The tests for writing mode are failing on our Tizen 3 device.  It appears that 'writingMode' in document.documentElement.style and 'webkitWritingMode' in document.documentElement.style are both true on this device, but setting style.writingMode is a no-op.  Reading the value back will always return the empty string.
To fix this, I need to change both the fallback in UITextDisplayer and the check in the test.  I'll link to the fix here once it lands.


not found @import GoogleMobileAds

Hi ! Thank for your plugin but i have a problem after 'react-native run-ios'
node_modules/react-native-admob/ios/BannerView.h:7:9: fatal error: module 'GoogleMobileAds' not found
@import GoogleMobileAds;
Do you have an idea?

Did you find a solution to this? I'm having the same problem

Have the same issue. What was the solution?

For me it was just a matter of installing Firebase correctly.  Either use cocoapods or install manually.  https://firebase.google.com/docs/ios/setup#frameworks

the following comment fixed my issue
https://github.com/thecodrr/react-native-google-admob/issues/5


enable autoscaling by default

Instead, we can document autoscaling in the docs. Adding a CTF playbook in #280


Feature/#201

new optional parameters for the embed tag
<div id="yak-chat-embended"
	bg-color="#247BA0,#B2DBBF"
	color="#B2DBBF">
	<!-- the chat will be generated inside this -->
</div>

bg-color [body-bg, msg-area-bg]
color [font-color] (this affect only the header font color and icons)

why Inline CSS style?

why Inline CSS style?

that are the custom parameters. By default, it has his own styles but inside that div will be generated the chat component. The idea is you can pass some styles like the background color, the color for the font and the message area background-color.


Multi-line strings containing quotes breaks the parser

Quotes in multi-line strings cause the parser to crash in a few different ways.
For example:
about:
  summary: fooo
    'bar' bar

Results in:
EXCEPTION: An exception occurred while parsing the recipe file
did not find expected <document start>
  in "<unicode string>", line 1, column 7

Looks like this is not limited to quotes, but also includes other special characters:
And
about:
  summary: |
    fooo (bar) bar

Results in:
EXCEPTION: An exception occurred while parsing the recipe file
list index out of range

Here is another example that causes the same excapetion:
  description: "
    `doit` is a task management & automation tool.

    `doit` comes from the idea of bringing the power of build-tools to execute
    any kind of **task**

    `doit` is a modern open-source build-tool written in python designed to be
    simple to use and flexible to deal with complex work-flows.

    It is specially suitable for building and managing custom work-flows where
    there is no out-of-the-box solution available.

    `doit` has been successfully used on: systems test/integration automation,
    scientific computational pipelines, content generation, configuration
    management, etc."

(from https://github.com/AnacondaRecipes/doit-feedstock)

There are many R-recipes that contain description fields that cause exceptions.


chore(jobs): add ttl of 30 days to job templates

There are currently >300 job objects floating around in our prod cluster. Are there any downsides of setting a ttl to them? I went for 30 days here
https://kubernetes.io/docs/concepts/workloads/controllers/ttlafterfinished/
As an alternative we could add a script or something that edits this into the spec of existing jobs, so we could also opt for "cleaning" whenever we feel like its too much, instead of specifying it in beforehand (this would also come in handy to get rid of the current pile of old completed jobs)

I could also live with a TTL of 7 days I guess.

this would also come in handy to get rid of the current pile of old completed jobs

I doubt we miss out on anything if we delete all of them as of now. Can't think of anything we'd need to retroactively debug right now.

I could also live with a TTL of 7 days I guess.

Me too.

I doubt we miss out on anything if we delete all of them as of now. Can't think of anything we'd need to retroactively debug right now.

Yup, I think so too.


Dockerfile is failing to build on branch v1.12.0

I am trying to build the tensorflow v1.12.0 using the docker container on VM (Ubuntu 16.04). I was successful multiple times in the past. Recently, (today) I deleted the docker image tf-arm:latest that I was using previously and tried to make a clean build of tensorflow for RaspPi but unfortunately that is failing with this error. I am not sure if this is temporary server downtime or something that needs to be addressed permanently.
Err:9 http://httpredir.debian.org/debian jessie/main arm64 Packages
  404  Not Found
Ign:9 http://cdn-fastly.deb.debian.org/debian jessie/main arm64 Packages
Ign:16 http://cdn-fastly.deb.debian.org/debian jessie/non-free arm64 Packages
Ign:17 http://cdn-fastly.deb.debian.org/debian jessie/contrib arm64 Packages
Fetched 13.9 MB in 3s (3608 kB/s)
Reading package lists...
E: Failed to fetch http://httpredir.debian.org/debian/dists/jessie/main/binary-arm64/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c echo "deb http://httpredir.debian.org/debian/ jessie main contrib non-free" > /etc/apt/sources.list.d/jessie.list     && apt-get update && apt-get install -y libpng12-dev     && rm -f /etc/apt/sources.list.d/jessie.list     && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100

Any suggestion as to what can be done to come up with a clean build with minimum effort ?

+1 had the same issue.

Edit the dockerfile and change this line:
RUN echo "deb http://httpredir.debian.org/debian/ jessie main contrib non-free" > /etc/apt/sources.list.d/jessie.list \

To:
RUN echo "deb http://ftp.us.debian.org/debian/jessie main contrib non-free" > /etc/apt/sources.list.d/jessie.list \

Jessie is LTS only, and there is no arm64 LTS support. The archive removal announcement is here:
https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html


move to fabric8io github org for the shared pipeline library now release changes have been merged

@rawlingsj trust you fully ;-)

[merge]


Resizing windows with top/bottom does nothing

Hi 👋
thanks for making this happen.
I want to report an error, where I am unable to resize the top/bottom border of a window.
Just want to add that right/left resizing works just fine
Here is a video of the behaviour:
https://user-images.githubusercontent.com/7422767/159004981-d2571407-8d95-4790-9f2e-539b9d72bcd6.mov

🤦  thanks for clarifying that works as expected


Fix IME window position issue #23

This PR is to address this bug: #23
The Input Method Manager (IMM) needs to report after the cursor changes position, to update the position of the IME window.
The IMM is only enabled on East Asian (Chinese, Japanese, Korean) localized Windows systems.
I don’t know how it will work on Windows with IMM disabled. I don't have the environment, please test it before merging.

Seems to work fine on my end, thanks a lot for the contribution.
Merging 👍

The new release now contains the merged PR - https://github.com/RMichelsen/Nvy/releases/tag/v0.2.4


Monorepo setup

Closes #18
Changes

adds Nx to the repo,
moves templates/default to packages/template
creates packages/template-e2e package for template e2e tests

also: moves playwright dependency to the root, so that it can be used for other projects in the future
also: changes the bash setup script to use temporary directory, where template and content fixture are copied and symlinked, so that setup script doesn't ever touch the original template codebase and we don't need to clean up (i.e. revert symlinks to original ones) after the tests have run,

configures Nx Cloud distributed caching, so that devs can use cached results of tasks run by others
moves eslint dependency and base config to the root

each project can also have its own eslint.json file for project-specific configurations

moves lint-staged, husky and changeset to the root
adds basic info related to Nx and changesets in README.dev.md
adds a note about Nx basics in content/notes/Nx.md
renames the CLI to namespaced @flowershow/cli

ALSO

adds docs section about recommended package manager - pnpm - and basic configurations

npm workspaces which were added to support multi-package changesets setup in the monorepo have broken template's dependency resolution due to npm's hoisting algorithm
there is no option to opt-out of hoisting in npm workspaces

pnpm has this option but it turns out their algorithm correctly installs all the dependencies, so turning hoisting off is not even needed
BONUS: it's much faster than npm

Suggestions

I think we should also include all the other packages that we currently have outside of this repository but are using them as dependencies, i.e. all three remark plugins.

It would make it much easier from the developer's perspective. Since everything is in the same repository there is a guarantee that all the changes you make will work together, if they work together locally.
You don't need to make some workaround solutions for local development of such dependencies, to test if the changes you make work with the consumer package (e.g. change package.json to point to the local directory with the dependency project you're working on)
You don't need to remember about updating versions of the dependencies, as consumer packages will always use the current code found in the monorepo

Create an app in /apps with current flowershow website (i.e. a project running off of the flowershow template with /site folder inside)

currently the /template package is a hybrid of package/app,
we could then have a separate changesets and changelogs for our site's custom components, configs, site content etc.
(this is probably for the future, when we have the upgrade process figured out)

Publish all packages under @flowershow organization

TODOs

[ ] publish CLI to npm
[ ] update deploy configs on Netlify with the new location of the template

@rufuspollock the E2E tests and builds won't succeed until this is merged, the new version of CLI is published, and deploy settings on Netlify are adjusted. I'll do all of it once this is approved.

Minor

adds basic info related to Nx and changesets in README.dev.md

I'd say we move this to flowershow docs e.g. flowershow.app/docs/contributors or just have a section in main README.md on this (i'd prefer the former a little).

renames the CLI to namespaced @flowershow/cli

to check i can still do npx flowershow right? I much prefer that to npx flowershow@cli xyz?

I think we should also include all the other packages that we currently have outside of this repository but are using them as dependencies, i.e. all three remark plugins.

Generally agree on this though as discussed yesterday YAGNI means let's see how things go for next few weeks and then decide if worth merging.

Create an app in /apps with current flowershow website (i.e. a project running off of the flowershow template with /site folder inside)

This is a good idea and something i think we discussed. Suggest we open an issue for this where you can set out in a bit more detail and we can discuss


Tweetest Prep work for tomcat tests

👾 Description of the issue
We run external third-party application tests at this project.  They are contained within the external directory.  We would like to improve how we run these tests.  The first step to improving how we run them is to add some documentation and to pull out the individual test properties that we use so that they are stored in the same directory as the test.
This issue is to add a README.md and a test.properties file to the /external/tomcat test directory.  As part of this prep work, since we already generate the Dockerfile, please also remove the static https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/external/tomcat/dockerfile/Dockerfile.
The contents of the README file can be simply some instructions for how to run the test locally.  Use with the instructions from https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/external/README.md#running-external-tests-locally and modify Steps 7 and 9 to reference tomcat and tomcat_test specifically.
The contents of the test.properties file will be a key=value format, copying the information from https://github.com/AdoptOpenJDK/openjdk-tests/blob/master/external/common_functions.sh#L422-L435 to populate it.
Adding these files will not change the current way we run these tests.  A separate change will be made to reference the test.properties file, at which point the contents must match those in the common_functions.sh script.
Please take the time to try and run the test locally (using the instructions you are adding in the README file).  Some of the external tests are failing.  When you run it locally, you may find that to be the case.  The reviewer can help to advise you if there are any further steps you can take to try and debug the pre-existing failure, if it exists.
📋 Step by Step
To solve this issue and contribute a fix you should check the following step-by-step list. A more detailed documentation of the workflow can be found here.  Note: that you do not need to add yourself to a Contributors.md file as outlined in the detailed instructions.

[ ] Claim this issue: Comment below.
[ ]  Fork the repository in github by simply clicking the 'fork' button.
[ ]  Check out the forked repository
[ ]  Create a feature branch for the issue. We do not have any naming definition for branches.
[ ]  Commit your changes.
[ ]  Start a Pull Request.
[ ]  Done 👍 Ask in comments for a review :)
[ ]  If the reviewer find some missing pieces or a problem they will start a discussion with you and describe the next steps how the problem can be solved.
[ ]  You did it 🎉 We will merge the fix in the master branch.
[ ]  Thanks, thanks, thanks for being part of this project as an open source contributor ❤

🤔❓ Questions
If you have any questions just ask us directly in this issue by adding a comment. You can join our community chat at Slack. Next to this you can find a general manual about open source contributions here.

Hi! I’d like to be assigned this task. Thank you!

That's great @quoththeravyn !  If you have any questions, please ask them in this issue!

@smlambert Please assign this issue to me.


Mark a unittest for std.uni.decodeGrapheme as @system

It should be @system because Grapheme.opSlice is @system but
currently it is accidentally marked as @trusted because of global @trusted: block.
This request fixes this issue.

global @trusted: block

!!
That doesn't bode well.

Oh wow, almost every single function in this file is marked as @trusted :-( Some of them unnecessarily, because they can just be @safe, but many of them are actually wrong! I think the best would be to remove all @trusted annotations, just to be on the safe side.

Some of them unnecessarily, because they can just be @safe, but many of them are actually wrong! I think the best would be to remove all @trusted annotations, just to be on the safe side.

Some of them are intensionally marked as @trusted to prevent boundschecks or other reasons.
In such case, it is enough to add comments to clarify it, IMO.
The problem is the functions which are accidentally marked as @trusted like this unittest.
We have to remove wrong @trusted attribute but it will break existing code.
We should be careful to do that.
Anyway, marking this unittest as @system is no problem because it is not public API and will not break any existing code.

The problem is that @trusted is usually in the wrong place. It must be applied to the smallest piece of code possible, never to an entire struct, or with @trusted:. Slapping it onto any template is outright dangerous.
Then, the code marked as such must actually be memory safe. Just look at equalS(), for example. It calls the range primitives for any types that it happens to get instantiated with. These could literally do anything. All those safeRead, unalignedRead and friends... they can never check whether the index is out of bounds, and therefore mustn't be @trusted. Instead, the code calling them needs to receive that attribute, after careful validation. Same goes for destroy(). It cannot know whether it produces dangling references.
And marking unittests as @trusted is entirely pointless.
As for code breakage, that's what the unittests are for. The sanest thing would be to remove all @trusted to start with a clean slate. Then, mark all the unittests as @safe, and carefully apply @trusted in the right places until it compiles.

For reference:
https://issues.dlang.org/show_bug.cgi?id=13560
https://issues.dlang.org/show_bug.cgi?id=14336
https://issues.dlang.org/show_bug.cgi?id=14136

The problem is that @trusted is usually in the wrong place. It must be applied to the smallest piece of code possible, never to an entire struct, or with @trusted:. Slapping it onto any template is outright dangerous.

I agree with it. We should make @trusted blocks narrower.

Then, the code marked as such must actually be memory safe.

No. This unittest should be @system because it includes Grapheme.opSlice which is explicitly marked as @system.

No. This unittest should be @system because it includes Grapheme.opSlice which is explicitly marked as @system.

That's what I'm saying: If something is marked as @trusted, it must be memory safe. Because the unittest isn't, it needs to be @system.

Auto-merge toggled on

@klickverbot, this is a single line, correct change. Moving @trusted around can be done in the future. Why turn off auto-merge?


Draw text limit

This PR adds a naive-approach DrawCharLimit which sets the renderable text limit, which preserves the line-wrapping. This is probably not the best approach, so any corrections would be appreciated :)
Before (using manual substr to slice the "visible text" before CreateBuffer, notice the words "anything" and "even" have an awkward wrapping behaviour:
    ZL_String printedText = text.substr(0, charIndex);
    fntMain.CreateBuffer(printedText, 180, true).Draw(20, 100, ZL_Origin::TopLeft);

After:
    fntMain.DrawCharLimit(charIndex);
    fntMain.CreateBuffer(text, 180, true).Draw(20, 100, ZL_Origin::TopLeft);

Ahh.. The charLimit affects texts globally, so it's not a good idea. I'll have to refactor this.

Nope, artifacts still appear. I'll make a separate PR if I manage to figure a clean solution for this.


Is there a recommended way to version a model graph

I think this is what #17 is getting at, but I thought it was worth asking to be clear.
When models have FK relations, you can put history on both models, but the FK references on history instances will still always point to the primary, non-history objects.
So, e.g.,

I have model A and model B with an FK to A
For an instance of A with several related instances of B
Where the instances of B are being changed

What is the best way to have multiple versions of the A instance that is related to the correct historical instances of B?
I see that the history manager has as_of, which takes a date-time, but that is of course potentially non-exact if two versions could ever land on the same measurable instant.
Is there a better or more obvious way I'm not seeing? Is there a way to link historical versions of one model to historical versions of another to get model graph snapshots?

I'm not sure if I'm asking the same thing as the stated in the question, but this is my situation:
class Product(Model):
    history = HistoricalRecords()
    name = CharField(max_length=200, verbose_name=_('name'))

class Order(Model):
    history = HistoricalRecords()
    company = ForeignKey('Company', verbose_name=_('company'), on_delete=PROTECT)
    customer = ForeignKey('Customer', verbose_name=_('customer'), on_delete=PROTECT)
    purchased_at = DateTimeField(verbose_name=_('purchased at'), null=True, blank=True)

class OrderItem(DateModel):
    history = HistoricalRecords()
    order = ForeignKey('Order', verbose_name=_('order'), on_delete=PROTECT)
    product = ForeignKey('Product', verbose_name=_('product'), on_delete=SET_NULL)
    quantity = PositiveIntegerField(verbose_name=_('quantity'), default=1)

The store admin may change the product name over time (or even delete it) but I need to show to the customer the information exactly as when he bought it.
By using the code below, I'm able to get only the historic version of Order, but OrderItem and Product data retrieved are not the historical ones.
order = Order.objects.first()
as_bought = order.history.as_of(order.order_created_at)

Let me know if this post is not related, so that I can create a new issue.
Thanks!

I came across a similar use case and agree that it would be great to have a version of as_of which produces a historical snapshot of the model instance itself (which it does) with historical versions of all related models. I don't think it is possible today (or trivial to implement).
I guess, for now, you should be able to live with something like:
order_items = OrderItem.objects.filter(order_id=as_bought.id)
historic_items = [item.history.as_of(order.order_created_at) for item in order_items]

Having items, you can go for historical versions of related products:
item.product.history.as_of(order.order_created_at)

I have not tested the code, but you get the idea. Hope it helps.

Just wanted to add my +1 - this would be a great feature - I'm quite surprised there hasn't been more clamour for it!  As I'm really pushed for time right now I've just manually queried for historic related sets and stitched them together in python - but asof_related would be great.


tf.case evaluates all operations

Hi:
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/case
From this official link, The tensors returned by the first pair whose predicate evaluated to True, or those returned by default if none does. If exclusive==False, execution stops at the first predicate which evaluates to True. But it seems that the tf.case still tries to run all operations although it should stop at the first one.
My code:
import tensorflow as tf
sess = tf.InteractiveSession()
x = 1.0
f1 = lambda: tf.constant(10.)
f2 = lambda: tf.constant(x/(x-1.0))
r = tf.case([(tf.less(x, 100.), f1)], default=f2, exclusive=False)

It produces error. r is supposed to return the value of f1, but it still tries to run f2 and produces error as follows: ZeroDivisionError: float division by zero.
Any suggestion what function I should use so the function can avoid run function f2 so it does not produce error? I have a more complex situation with this same issue. Thanks! I also tried tf.cond, it also produces error.  Thanks!
System information

OS Platform and Distribution: linux
TensorFlow version: 1.15.0
Python version: 3.7.6

hi @saikumarchalla , could you please look at my issue at your convenience? Thanks.

hi @google-admin  Nobody started to look at my issue yet, could you please help? Thanks!

@shangh1  Could you please upgrade to TF 2.x version since 1.x version is no more actively supported. Aplogize for the delay.Thanks!

hi @saikumarchalla, thanks! Sorry for the late reply, I was camping last few days with bad signal. Upgrading to TF 2. version will involve the change for the whole framework, and our production model currently uses TF 1. if this tf.case is not actively supported in TF1. Is there any other functions you know in TF 1 that can overcome this issue? Thanks!

@shangh1,
We recommend the Developers to switch to Tensorflow Version, 2.x.  Please refer the Migration Guide and Upgrade Guide which makes migration from Tensorflow Version 1.x to Tensorflow Version 2.x easier. Thanks!


speech: Modifying livecaption.go to just return transcription without all the other stuff

First of all. OMG this actually works. Beautiful. I talk into my mic, it streams the audio to Google Cloud, transcribes and keeps sending back the transcribed text real time. What code changes would I ned to make to just display the transcribed text and nothing else? TIA.
Sample (From my Live Aid Wembley program)
Result: alternatives:<transcript:"when Bob Geldof first came to my office to discuss this event I thought he was joking when Maurice Jones joined Bob and myself for the next meeting it suddenly became reality let's go For Broke we said let's raise as much money as possible and now seems reality" confidence:0.9714806 > is_final:true result_end_time:<seconds:21 nanos:650000000 >

I'm glad it worked!
You'll want to modify these lines:
https://github.com/GoogleCloudPlatform/golang-samples/blob/719088e61bd13c9925b9673a5115491f9e195411/speech/livecaption/livecaption.go#L104-L106
Here is the type that is returned by Recv: https://pkg.go.dev/google.golang.org/genproto/googleapis/cloud/speech/v1?tab=doc#StreamingRecognizeResponse
So, you'll want something like result.Alternatives[0].Transcript. Of course, there might be more than one alternative, or the one there might have a low confidence. So, it depends on your application how you want to use it. :)

I'm going to close this for now, but let us know if you have any other issues!

@tbpg Thank you.


Fix estimate gas rpc

Purpose
as set_transaction_defaults is setting wrong gas limit we where always returning only gas <= 90k, now it should return correct estimation up to GAS_LIMIT
How does the solution address the problem

Changes made

@MatusKysel create PR also to release branch


add color to plot_interactive_matrix

This property is currently missing. We should check if Altair allows for this.

https://github.com/RasaHQ/whatlies/pull/80#issuecomment-657704910

Have used plot_interactive(). configure (background='red')
@koaning  will this work...?

The goal of this feature is to add color to the points depending on the properties that are in the embeddingset. .plot_interactive currently has this featre .plot_interactive_matrix does not.

@koaning does this include support for label information? For example, I can add PoS tag information to each word in the embedding set and have that information colour coded in the plot. Would also be awesome at the sentence level, i.e. visualise the label information (i.e. Intent labels) when generating the plot.

In essense, yes!
You first need to add a property to a word embedding at the moment. The current API for that is described here.
You will need to manually specify a function that can "attach" the POS/label/property to each embedding but it's very flexible.

That said @tttthomasssss , the interactive matrix chart does not support colors yet. Anybody interested in contributing this feature can look at the implementation in plot_interactive for inspiration on how to solve it for the matrix plot as well.


Adds bullet collision to station lights

About the PR

Adds collision with bullets to wall lights and post lights so that lights can be shot out with guns.
Why / Balance

Adds fun escape/stealth opportunities and more environmental consequences to hectic gun fights.
Media

https://github.com/user-attachments/assets/9130e6cc-1477-40fe-90c1-a50c5b0573ef
Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Breaking changes

Changelog

:cl: SpaceRox1244

add: Station lights can now be destroyed by bullets.

Absolutely beautiful, I was so annoyed when I couldn't shoot these to conceal myself in a dark corner of the station to gain an advantage.

Do you have to hover over the light to shoot it, or just hit it with a bullet?
Either way, this is a very nice feature.

Since lamp spam is a thing, would I be possible to set up a wall of lamp spam in a hall ways to make a bullet shield? It's unclear to me wether this would break just one or all of the lamps when it hit them and if it's just one then you could effectively make a bullet shield that can be walked through. Granted it would take a bunch of RCD charges, but I have seen a moth captain spend all of Engis compressed matter on a very bright lamp, and it didn't even have a tactical purpose.


Pls clarify that the aligned DNA sequences are horizontal and other issues

Fig 6.2a p154, pdf p184 Draft 2020-01-03
People who don't know much about DNA may not realize the bases are sequential horizontally and that the columns are to compare similarity.  To clarify, I suggest changing (1st paragraph, 2nd sentence)

(e.g., from different species)

to

(e.g., each row is a sequence from a different species)

In addition, it would help if you had the sequence numbers at the bottom of the figure (but I'm not sure how to squeeze in 10, 11...)
a t a g c c g g t a c g g c a
t t a g c t g c a a c c g c a
t c a g c c a c t a g a g c a
a t a a c c g c g a c c g c a
t t a g c c g c t a a g g t a
t a a g c c t c g t a c g t a
t t a g c c g t t a c g g c c
a t a t c c g g t a c a g t a
a t a g c a g g t a c c g a a
a c a t c c g t g a c g g a a
1 2 3 4 5 6 7 8 9

You might even want to color the letters in 6.2a to match the colors in 6.2b
I confessed I was confused by text for Fig 6.2b:

The overall
vertical axis represents the information content of that location measured in bits (i.e., using log base 2).
Deterministic distributions (with an entropy of 0) have height 2, and uniform distributions (with an entropy
of 2) have height 0

I thought that an entropy of 0 had no information (completely deterministic), but you have bits (height) being 2.  (e.g. position 3 is always A).  On the other hand, I do understand that for a position to be highly conserved (i.e. doesn't change so that the function of the motif is preserved through evolution) is provides "information" about the importance of the position in the sequence.  E.g. positions 3,5, and 13 are critical (no variation), and positions 10 and 15 are highly important (mostly the same base.). I do see that this is explained a bit more on the next page (155), first paragraph, where you mention that the hight of the bar is 2-H_t.  Maybe because information content isn't really defined in this chapter (as far as I can see.)
Finally, I note that fig 6.2b is not color blind friendly.  Prof. Jerome Friedman redid the figures in later printings of Elements of Statistical Learning to account for that.

I fixed the wording. I could not fix the color coding, since my old matlab code no longer runs :(

I fixed the wording. I could not fix the color coding, since my old matlab code no longer runs :(


Fix Travis build issues

Description

Attempt to re juggle the python package installations in scripts/provision/host.sh
Motivation and Context

Fixes #2266
New Pull Requests won't pass the Travis CI tests if this is not fixed.
How Has This Been Tested?

None needed, trying to get the tests to run correctly in Travis.
Checklist:

[x] I have added a Signed-off-by.
[x] I have either added documentation to cover my changes or this change requires no new documentation.
[x] I have either added unit tests to cover my changes or this change requires no new tests.
[x] I have run golint and have fixed valid warnings in code I have added or modified. This tool generates false positives so you may choose to ignore some warnings. The goal is clean, consistent, and readable code.

Signed-off-by: Julian Carrivick<EMAIL_ADDRESS>

reverify travis
Passed 1st time: re-verifying as I found issue to be intermittent and want to make sure this fixes it

Ready to be merged sans feedback!

LGTM thanks

LGTM, will squash merge it in.


both custom and native hover showing

Fixes #111082

@bpasero I have made sure that this fixes the issue. I just didn't want to sneakily change code you own.


prepared release of version 3.6.21.dev1

Proposed changes:

...

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[ ] reformat files using black (please check Readme for instructions)

This is just a test run to check the state of our CI. After switching to another installer for poetry only execution of tests on Windows fail. They all pass on Ubuntu.