NoClassDefFoundError: com/google/inject/ProvisionException

Using ErrorProne 2.19.0 with the latest dataflow jar, ProvisionException does not appear to be on the classpath.

Can certainly share a stacktrace when I'm back in the office tomorrow.
Everything worked fine with 2.18.0 and dataflow 3.15. Have tried 2.19.0 with dataflow 3.15 and 3.34 and the same issue occurs.

Thanks, can you try with 3.27.0? That's the one we're building and testing against currently:
https://github.com/google/error-prone/blob/94a93e9ffd0aba7e0523f389a8d45cffd1b52c17/pom.xml#L38

Thanks, can you try with 3.27.0? That's the one we're building and testing against currently:
https://github.com/google/error-prone/blob/94a93e9ffd0aba7e0523f389a8d45cffd1b52c17/pom.xml#L38

As expected, this also doesnt work.

Sorry, I got distracted by the mention of dataflow, it makes sense that's unrelated to the missing ProvisionException.
The latest versions are using ProvisionException directly:
https://github.com/google/error-prone/blob/7335ba2402aa0b725978c3686f144e6f3de11ef1/check_api/src/main/java/com/google/errorprone/scanner/ErrorProneInjector.java#L68
There is a testonly dep on it here, which might be preventing it from being included in the -with-deps jar: https://github.com/google/error-prone/blob/7335ba2402aa0b725978c3686f144e6f3de11ef1/core/pom.xml#L182-L183

I have the problem (usingf Java 11 or 17 used via ant) and see the same error message "Failed to find an injectable constructor for AlwaysThrows requested by AlwaysThrows" ... if I disable this check, then then next pops up "Failed to find an injectable constructor for CheckReturnValue requested by CheckReturnValue" (stacktraces below)
May this commit https://github.com/google/error-prone/commit/01e750325a476be53a5396308c650bb500faba44 makes the constructor invisible?
Stacktraces:
  [javac] java.lang.AssertionError: com.google.inject.ProvisionException: Unable to provision, see the following errors:
    [javac] 1) Failed to find an injectable constructor for CheckReturnValue requested by CheckReturnValue
    [javac] 1 error
    [javac] ======================
    [javac] Full classname legend:
    [javac] ======================
    [javac] CheckReturnValue: "com.google.errorprone.bugpatterns.CheckReturnValue"
    [javac] ========================
    [javac] End of classname legend:
    [javac] ========================
    [javac] 	at com.google.errorprone.ErrorProneAnalyzer.lambda$scansPlugins$0(ErrorProneAnalyzer.java:85)
    [javac] 	at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:183)
    [javac] 	at com.google.errorprone.ErrorProneAnalyzer.finished(ErrorProneAnalyzer.java:152)
    [javac] 	at jdk.compiler/com.sun.tools.javac.api.MultiTaskListener.finished(MultiTaskListener.java:132)
    [javac] 	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1418)
    [javac] 	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.flow(JavaCompiler.java:1365)
    [javac] 	at jdk.compiler/com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:960)
    [javac] 	at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:311)
    [javac] 	at jdk.compiler/com.sun.tools.javac.main.Main.compile(Main.java:170)
    [javac] 	at jdk.compiler/com.sun.tools.javac.Main.compile(Main.java:57)
    [javac] 	at jdk.compiler/com.sun.tools.javac.Main.main(Main.java:43)
    [javac] Caused by: com.google.inject.ProvisionException: Unable to provision, see the following errors:
    [javac] 1) Failed to find an injectable constructor for CheckReturnValue requested by CheckReturnValue
    [javac] 1 error
    [javac] ======================
    [javac] Full classname legend:
    [javac] ======================
    [javac] CheckReturnValue: "com.google.errorprone.bugpatterns.CheckReturnValue"
    [javac] ========================
    [javac] End of classname legend:
    [javac] ========================
    [javac] 	at com.google.errorprone.scanner.ErrorProneInjector.lambda$getInstance$0(ErrorProneInjector.java:72)
    [javac] 	at java.base/java.util.Optional.orElseThrow(Optional.java:408)
    [javac] 	at com.google.errorprone.scanner.ErrorProneInjector.getInstance(ErrorProneInjector.java:66)
    [javac] 	at com.google.errorprone.scanner.ErrorProneInjector.getInstance(ErrorProneInjector.java:55)
    [javac] 	at com.google.errorprone.scanner.ScannerSupplierImpl.instantiateChecker(ScannerSupplierImpl.java:66)
    [javac] 	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
    [javac] 	at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
    [javac] 	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
    [javac] 	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
    [javac] 	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
    [javac] 	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
    [javac] 	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
    [javac] 	at com.google.errorprone.scanner.ScannerSupplierImpl.get(ScannerSupplierImpl.java:74)
    [javac] 	at com.google.errorprone.scanner.ScannerSupplierImpl.get(ScannerSupplierImpl.java:37)
    [javac] 	at com.google.errorprone.ErrorProneAnalyzer.lambda$scansPlugins$0(ErrorProneAnalyzer.java:80)
    [javac] 	... 10 more

Short update regarding the "Failed to find an injectable constructor" problem - after reading https://github.com/google/error-prone/issues/3931 and the linked PR https://github.com/PicnicSupermarket/error-prone-support/pull/621/files (including adding https://search.maven.org/artifact/javax.inject/javax.inject/1/jar) I tried the same and it worked :-)
Not sure, why "javax.inject" is not part of the "with-dependencies" artifact, but adding it separately fixed it.

Not sure, why "javax.inject" is not part of the "with-dependencies" artifact

I think this was an oversight, I will look at getting it included in the next release.

This is resolved in 2.23.0


yet more lint cops

fixes:
Lint/AmbiguousOperator
Lint/DuplicateMethods

@chef/client-core couple more easy ones

:+1:

:+1:

:+1:


Manifest releaser: Customize PR title

Is your feature request related to a problem? Please describe.
When using the Manifest releaser, the PR title is always chore: release main. It seems like the PR title is configurable for the non-Manifest releaser. We'd like to customize the title of our PRs in a similar fashion.
Describe the solution you'd like
It'd be ideal to specify a PR title format in the release-please manifest file.
Describe alternatives you've considered
I've also considered writing a custom workflow that updates the PR title after release-please runs.
Additional context
Here's a Grain release PR: https://github.com/grain-lang/grain/pull/872 - Notice that we have to remember to update the title to chore: Release Grain vX.X.X before we merge.

This is probably possible to add an option like pull-request-title-pattern for the manifest itself.
We would only be able to inject the version if there is a configured root component (path of .), otherwise we wouldn't know which component to pick (and it would not necessarily be in every release).

@chingor13 Maybe we can make it an option on the "." path? That's what we use currently.


Vulnerabilities for Python Upstream dependencies

Description of Problem:
Clair needs integration with a vulnerability database to display vulnerabilities for Python  upstream dependencies.
Expected Outcome:
Integrate with OpenShift.IO AI platform as another 'Vulnerability Metadata source' to track upstream vulnerability metadata for Python dependencies. CVE IDs are mapped from NVD to specific Python dependencies, this work is tracked here.

Get a OpenShift.IO API token under 'profile' section   (Require registration at OpenShift.IO)
Find any vulnerabilities for a Python application dependency
curl -k -H "Authorization: Bearer $token"  https://recommender.api.openshift.io/api/v1/component-analyses/pypi/dependency-name/version
(For Python dependency pycrypto:2.6.1, check out API response showing associated vulnerabilities)

Actual Outcome:
Currently scanning does not cover vulnerabilities for Python upstream dependencies.
Environment:
NA

Since there are two different issues with nearly the same content, I'll comment only once:
Link to another issue: #590

It looks interesting but please point me to the API/usage documentation of the https://recommender.api.openshift.io/api/v1/component-analyses/ end point to see if it's compatible with Clair.
The language wide package vulnerability scanning may be added in the future but currently it's not supported.
What is the upstream vulnerability data source in this end point and how can we ensure that those vulnerabilities are related correctly?

Thanks.

Here is the swagger spec. for this end point:

Here are the docs. covering the process for mapping CVEs to specific application dependencies and roadmap.
https://github.com/fabric8-analytics/cvejob/tree/master/docs

Here is a link to try out component-analyses using the swagger spec:
http://analytics-bayesian-coreapi.dev.rdu2c.fabric8.io/api/v1/ui/#!/Scan_Services/f8a_scanner_api_v1_component_analyses
This communicates with the production deployed analytics service to fetch component data. One requires to provide one's openshift.io user token in the spec to authorize the call.

cc @KeyboardNerd

Quoting myself from the other thread:

So far, Clair has only supported vulnerability sources from official sources for the given namespace. For example, Node should probably use the same API as npm audit. I'm also hesitant to add any vulnerability sources gated behind API keys.
I think this is a reasonable thing to implement, but I'm not sure it makes sense to upstream.

Mapping process CVEs to specific application dependencies varies a lot for each programming language. 'npm audit' (official source) takes care of NPM dependencies. Couple of points to note:

'npm audit' audits a given application which different from the pull model of Clair (periodically pull in all the new CVEs from a source to PG)
Mapping a CVE to an application dependency is very different for each language (eg: For GO language, there is hardly any coverage at NVD, OpenShift.IO team is getting started with NLP on Git Commit messages)
Currently there no official sources (opensource, no license terms) for covering CVEs for application level dependencies. OpenShift.IO aims to cover CVEs for application dependencies spanning multiple languages under one API.
API keys are hindrance to be viable on upstream, team is currently removing the need for API keys to reach OpenShift.IO platform.
Team is figuring out the data model and components of Clair to start working here, upstream.

For all the ongoing activities, soon I will be sharing the relevant issues, documentation.


Unable to find #localforage IRC channel on FreeNode

I am unable to find localforage channel. Do we still have it?

Honestly I've not been on that channel for some time; it's possible that it's been removed. I think it's best for me to remove it from the README, as I don't predictably hang out there these days.

Are you available on FreeNode network in general if not that channel?

These days not really, but if you wanted to file an issue with your question/problem feel free. Or you can send me an email :-)

Addressed in 8d68cc745db8fa279391b8fdd9c48176817f74ac.

Thanks for maintaining this amazing library. :)


ansible-role-cis-amazon-linux playbook error

Hello!, first off thank you for the ansible-role-cis-amazon-linux playbook. I've hooked this in to AWS codebuild and the AMI creation fails when Ansible task executions either take a very long time or hung.
Ansible version: 2.4.3
Specifically here:
AWS AMI Builder - CIS: TASK [anthcourtney.cis-amazon-linux : 3.6.2 - Ensure default deny firewall policy(DROP INPUT)] ***

Failed messages from build.log
AWS AMI Builder - CIS: TASK [anthcourtney.cis-amazon-linux : 3.5.4 - Ensure TIPC is disabled] *********
AWS AMI Builder - CIS: changed: [<IP_ADDRESS>]
AWS AMI Builder - CIS:
AWS AMI Builder - CIS: TASK [anthcourtney.cis-amazon-linux : 3.6.1 - Ensure iptables is installed] ****
AWS AMI Builder - CIS: ok: [<IP_ADDRESS>]
AWS AMI Builder - CIS:
AWS AMI Builder - CIS: TASK [anthcourtney.cis-amazon-linux : 3.6.2 - Ensure default deny firewall policy(DROP INPUT)] ***
AWS AMI Builder - CIS: changed: [<IP_ADDRESS>] => (item=INPUT)
AWS AMI Builder - CIS: changed: [<IP_ADDRESS>] => (item=FORWARD)
==> AWS AMI Builder - CIS: Terminating the source AWS instance...
==> AWS AMI Builder - CIS: Cleaning up any extra volumes...
==> AWS AMI Builder - CIS: No volumes to clean up, skipping
==> AWS AMI Builder - CIS: Deleting temporary security group...
==> AWS AMI Builder - CIS: Deleting temporary keypair...
Build 'AWS AMI Builder - CIS' errored: Error executing Ansible: Non-zero exit status: 2300218

==> Some builds didn't complete successfully and had errors:
--> AWS AMI Builder - CIS: Error executing Ansible: Non-zero exit status: 2300218

With verbose enabled
AWS AMI Builder - CIS: TASK [anthcourtney.cis-amazon-linux : 3.6.2 - Ensure default deny firewall policy(DROP INPUT)] ***
AWS AMI Builder - CIS: task path: /tmp/packer-provisioner-ansible-local/5a918be7-cf73-af80-79ad-2c4d415a3b6a/roles/anthcourtney.cis-amazon-linux/tasks/level-1/3.6.2.yml:6
AWS AMI Builder - CIS: Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/system/iptables.py
AWS AMI Builder - CIS: <<IP_ADDRESS>> ESTABLISH LOCAL CONNECTION FOR USER: ec2-user
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'echo ~ && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.45-210223813466673 `" && echo ansible-tmp-1519488317.45-210223813466673="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.45-210223813466673 `" ) && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> PUT /tmp/tmpWst8Um TO /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.45-210223813466673/iptables.py
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.45-210223813466673/ /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.45-210223813466673/iptables.py && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-mjyykfcuhnygkfssisoxutueavlofpmo; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.45-210223813466673/iptables.py; rm -rf "/home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.45-210223813466673/" > /dev/null 2>&1'"'"' && sleep 0'
AWS AMI Builder - CIS: changed: [<IP_ADDRESS>] => (item=INPUT) => {
AWS AMI Builder - CIS: "chain": "INPUT",
AWS AMI Builder - CIS: "changed": true,
AWS AMI Builder - CIS: "flush": false,
AWS AMI Builder - CIS: "invocation": {
AWS AMI Builder - CIS: "module_args": {
AWS AMI Builder - CIS: "action": "append",
AWS AMI Builder - CIS: "chain": "INPUT",
AWS AMI Builder - CIS: "comment": null,
AWS AMI Builder - CIS: "ctstate": [],
AWS AMI Builder - CIS: "destination": null,
AWS AMI Builder - CIS: "destination_port": null,
AWS AMI Builder - CIS: "flush": false,
AWS AMI Builder - CIS: "fragment": null,
AWS AMI Builder - CIS: "goto": null,
AWS AMI Builder - CIS: "icmp_type": null,
AWS AMI Builder - CIS: "in_interface": null,
AWS AMI Builder - CIS: "ip_version": "ipv4",
AWS AMI Builder - CIS: "jump": "DROP",
AWS AMI Builder - CIS: "limit": null,
AWS AMI Builder - CIS: "limit_burst": null,
AWS AMI Builder - CIS: "match": [],
AWS AMI Builder - CIS: "out_interface": null,
AWS AMI Builder - CIS: "policy": null,
AWS AMI Builder - CIS: "protocol": null,
AWS AMI Builder - CIS: "reject_with": null,
AWS AMI Builder - CIS: "set_counters": null,
AWS AMI Builder - CIS: "set_dscp_mark": null,
AWS AMI Builder - CIS: "set_dscp_mark_class": null,
AWS AMI Builder - CIS: "source": null,
AWS AMI Builder - CIS: "source_port": null,
AWS AMI Builder - CIS: "state": "present",
AWS AMI Builder - CIS: "table": "filter",
AWS AMI Builder - CIS: "tcp_flags": {},
AWS AMI Builder - CIS: "to_destination": null,
AWS AMI Builder - CIS: "to_ports": null,
AWS AMI Builder - CIS: "to_source": null,
AWS AMI Builder - CIS: "uid_owner": null
AWS AMI Builder - CIS: }
AWS AMI Builder - CIS: },
AWS AMI Builder - CIS: "ip_version": "ipv4",
AWS AMI Builder - CIS: "item": "INPUT",
AWS AMI Builder - CIS: "rule": "-j DROP",
AWS AMI Builder - CIS: "state": "present",
AWS AMI Builder - CIS: "table": "filter"
AWS AMI Builder - CIS: }
AWS AMI Builder - CIS: Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/system/iptables.py
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'echo ~ && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.62-94776954667970 `" && echo ansible-tmp-1519488317.62-94776954667970="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.62-94776954667970 `" ) && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> PUT /tmp/tmp_yVIIW TO /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.62-94776954667970/iptables.py
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.62-94776954667970/ /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.62-94776954667970/iptables.py && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-uurjubgfoaekyikzlvzbqwxrrjtxkjoe; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.62-94776954667970/iptables.py; rm -rf "/home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.62-94776954667970/" > /dev/null 2>&1'"'"' && sleep 0'
AWS AMI Builder - CIS: changed: [<IP_ADDRESS>] => (item=FORWARD) => {
AWS AMI Builder - CIS: "chain": "FORWARD",
AWS AMI Builder - CIS: "changed": true,
AWS AMI Builder - CIS: "flush": false,
AWS AMI Builder - CIS: "invocation": {
AWS AMI Builder - CIS: "module_args": {
AWS AMI Builder - CIS: "action": "append",
AWS AMI Builder - CIS: "chain": "FORWARD",
AWS AMI Builder - CIS: "comment": null,
AWS AMI Builder - CIS: "ctstate": [],
AWS AMI Builder - CIS: "destination": null,
AWS AMI Builder - CIS: "destination_port": null,
AWS AMI Builder - CIS: "flush": false,
AWS AMI Builder - CIS: "fragment": null,
AWS AMI Builder - CIS: "goto": null,
AWS AMI Builder - CIS: "icmp_type": null,
AWS AMI Builder - CIS: "in_interface": null,
AWS AMI Builder - CIS: "ip_version": "ipv4",
AWS AMI Builder - CIS: "jump": "DROP",
AWS AMI Builder - CIS: "limit": null,
AWS AMI Builder - CIS: "limit_burst": null,
AWS AMI Builder - CIS: "match": [],
AWS AMI Builder - CIS: "out_interface": null,
AWS AMI Builder - CIS: "policy": null,
AWS AMI Builder - CIS: "protocol": null,
AWS AMI Builder - CIS: "reject_with": null,
AWS AMI Builder - CIS: "set_counters": null,
AWS AMI Builder - CIS: "set_dscp_mark": null,
AWS AMI Builder - CIS: "set_dscp_mark_class": null,
AWS AMI Builder - CIS: "source": null,
AWS AMI Builder - CIS: "source_port": null,
AWS AMI Builder - CIS: "state": "present",
AWS AMI Builder - CIS: "table": "filter",
AWS AMI Builder - CIS: "tcp_flags": {},
AWS AMI Builder - CIS: "to_destination": null,
AWS AMI Builder - CIS: "to_ports": null,
AWS AMI Builder - CIS: "to_source": null,
AWS AMI Builder - CIS: "uid_owner": null
AWS AMI Builder - CIS: }
AWS AMI Builder - CIS: },
AWS AMI Builder - CIS: "ip_version": "ipv4",
AWS AMI Builder - CIS: "item": "FORWARD",
AWS AMI Builder - CIS: "rule": "-j DROP",
AWS AMI Builder - CIS: "state": "present",
AWS AMI Builder - CIS: "table": "filter"
AWS AMI Builder - CIS: }
AWS AMI Builder - CIS: Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/system/iptables.py
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'echo ~ && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.78-154260623678646 `" && echo ansible-tmp-1519488317.78-154260623678646="` echo /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.78-154260623678646 `" ) && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> PUT /tmp/tmp8vSpSS TO /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.78-154260623678646/iptables.py
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'chmod u+x /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.78-154260623678646/ /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.78-154260623678646/iptables.py && sleep 0'
AWS AMI Builder - CIS: <<IP_ADDRESS>> EXEC /bin/sh -c 'sudo -H -S -n -u root /bin/sh -c '"'"'echo BECOME-SUCCESS-mjqvzztsrygiuyivyrvzqjvacorlxplm; /usr/bin/python /home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.78-154260623678646/iptables.py; rm -rf "/home/ec2-user/.ansible/tmp/ansible-tmp-1519488317.78-154260623678646/" > /dev/null 2>&1'"'"' && sleep 0'

So, I also tried to modify ssh config to something like this:
#!/bin/bash -x

# These SSH configuration values are set when the server comes up so that Packer can
# maintain a hanging, trafficless SSH connection.

sudo sed -i -e '/Defaults    requiretty/{ s/.*/# Defaults    requiretty/ }'  /etc/sudoers
sudo sed -i -e '/ClientAliveInterval 300/{ s/.*/ClientAliveInterval 1000/ }' /etc/ssh/sshd_config
sudo sed -i -e '/ClientAliveCountMax 0/{ s/.*/ClientAliveCountMax 10/ }'      /etc/ssh/sshd_config
sudo sed -i -e '/#TCPKeepAlive yes/{ s/.*/TCPKeepAlive yes/ }'               /etc/ssh/sshd_config

sudo service sshd restart
exit $?

Please let me know if you need any additional information

After debugging a bit, the following exclusions had to be placed to ensure AMI build was successful
    cis_level_1_exclusions:
      - 3.6.2
      - 5.3.3

I am pretty sure that this is an Ansible 2.4.x issue. I will debug further. Meanwhile if you have any suggestions, that'll be great.

Hi @smuthali ,
the issue is due to firewall task 3.6.2 which by default will block all ports including SSH which is used by anisble. So once task 3.6.2 has ran there is no way to SSH into the host and all subsequent tasks fails.
To fix the issue allow port 22 in 3.6.5.yml and  update level-1.yml to rearrange the firewall task so that 3.6.2 is executed after all firewall task has finished.
Testing has finished and working on the PR to fix this issue.


Separate local packages from 3rd party with newline?

My normal company policy is "standard lib/company packages/3rd party" groups, each separated by newlines.
Basically "most" to "least" trusted packages.
I see that I can define "local" packages from 3rd party packages so they are at the end, but is there a way have a new line between them? e.g.
import (
	"bytes"

	"github.com/aws/aws-sdk-go-v2/aws"

	"awesomeLocalEnterpriseGit.company.com/pkg1"
)

It is kindly of multiple imports support, would support soon.

Support multiple prefix:
sections:

Standard
Prefix(github.com/local)
Prefix(github.com/daixiang0)


[Dojo] Migrate testing to use starknet-foundry

Currently we are using the cairo test runner. This task is to migrate tests to https://github.com/foundry-rs/starknet-foundry

snforge for sozo test
Line of thought, WIP

Adding forge package,

max_recursion_depth is missing from our custom blockifier.
Sync dojoengine/blockifier to starkware-libs:9238b4d786bb5de2fac68d22257b0479eb8649e4 (Forge dep)

Forge requires compiled targets, perhaps sozo build before forge::run()?
Potential cairo-lang-* version conflicts.
Forge requires corelib
Perhaps pass db directly to forge?
What's predeployed_contracts in forge::run?
Build forge equivalents for forge::run

@shramee perhaps we should adopt a pattern similar to https://docs.swmansion.com/scarb/docs/testing#using-third-party-test-runners
that way we can avoid the dependency resolution challenges with so many different deps wanting different versions of cairo

Yeah, I was thinking sozo build might be required for snforge command, which builds all artifacts before tests. Which might require stepping into Rust to change some stuff?

Hi Tarrence,
Just to confirm, why are we switching to foundry?
Like what do we expect to be able to do.
And whether we should use 0.2.0 or wait for newer version with Cairo 2.1.0 which has signed ints.

WIP
Have sozo test call forge::run to run tests via forge to allow access cheats and other good stuff that comes with Starknet Foundry for better easier tests.
Highlights

sozo test arguments include_ignored and ignored are ignored 🥲 I mean, they don't work.
corelib fetched from scarb.
Foundry crates/cheatable-starknet/predeployed-contracts copied over to ./crates/snforge-predeployed-contracts
Katana dependencies separated from the workspace (move to the crates)
Showstopper: 🔴thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /Users/shramee/.cargo/git/checkouts/cairo-f086c7e6d4098a68/f9e7b41/crates/cairo-lang-semantic/src/corelib.rs:582:60

Probably some issue with core_lib but looks really good to me, could also be DojoPlugin missing from test_collector in Foundry.
Notes for Shramee
forge::run args from snforge
package_path: /Users/shramee/www/starknet/starknet_forge_template
lib_path: /Users/shramee/www/starknet/starknet_forge_template/src/lib.cairo
dependencies: [LinkedLibrary { name: "starknet_forge_template", path: "/Users/shramee/www/starknet/starknet_forge_template/src" }]
runner_config: RunnerConfig { test_name_filter: None, exact_match: false, exit_first: false }
corelib: /var/folders/hg/qktjzkwj6w78g7bryxs00ynw0000gn/T/.tmpV76qHb
contracts: HashMap<String, StarknetContractArtifacts>
predeployed_contracts: /var/folders/hg/qktjzkwj6w78g7bryxs00ynw0000gn/T/.tmp0avphg

forge::run args from sozo test
package_path: /Users/shramee/www/starknet/dojo/crates/dojo-core
lib_path: /Users/shramee/www/starknet/dojo/crates/dojo-core/src/lib.cairo
dependencies: []
runner_config: RunnerConfig { test_name_filter: None, exact_match: false, exit_first: false }
corelib: /Users/shramee/Library/Caches/com.swmansion.scarb/registry/std/v2.0.1/core/src
contracts: HashMap<String, StarknetContractArtifacts>
predeployed_contracts: /var/folders/hg/qktjzkwj6w78g7bryxs00ynw0000gn/T/.tmpKco0if

The library was missing PanicDestruct,

Upgraded cairo-lang* to 2.0.2 and scarb to 0.5.2 But that wasn't enough.
Foundry is using a specific revision of cairo >2.0.2. So added their core-lib to dojo.
Final piece of the puzzle involves copying across sn-foundry test-collector with a patch to replace it in snforge and adding DojoPlugin. But this causes Cairo version conflicts which is hard to resolve with scarb depending on v2.0.2.
What would we like to do?

Okay, I thought patching everything to use 2.0.2 could do it but snfoundry is actually using a cairo-lang-sierra-type-size crate which isn't in v2.0.2. We could try the other way round and patch everything to the newer sn-foundry's cairo version. cairo-lang-sierra-type-size Seems to have types for them signed ints everyones raving about 🤤

Ah interesting, thanks for digging in! I'm close to updating the repo to Cairo 2.1.0. Perhaps we should wait for that?

Yeah, sounds good! 👍

can we close this @tarrencev ?

After discussion with SWM team, starknet foundry is not yet ready to be integrated as a library due to the current work on new proc macros.


[iOS] installation instructions outdated?

The installation instructions for iOS state:
https://github.com/Shopify/react-native-skia/blob/main/docs/docs/getting-started/installation.md#ios
"You will need to disable Bitcode in order to create a release build"
However, the README says:
https://github.com/Shopify/react-native-skia/blob/main/README.md#ios
"NOTE: Device builds now includes Bitcode generation on iOS - so there is no longer necessary to build with bitcode disabled for release builds."
So I guess the installation instructions are outdated and need to be updated.
Please confirm and I can provide a PR.

Hi, @schiller-manuel - this is correct! We'd absolutely appreciate a PR fixing this!!


Add html5 self-closing / empty-element tags

HTML5 adds some empty-element tags, such as  <embed>.
This commit makes pyjade consistent with jade for these tags (see jade's void-elements list).
//-
  jade source    pyjade, previously     pyjade, now

embed            <embed></embed>        <embed/>

doctype html     <!DOCTYPE html>        <!DOCTYPE html>
embed            <embed></embed>        <embed>

The existing test case html5.jade covers this, I think, because it has <input>s, which were already in the self-closing list.

The alternative would be to check if we're using a modern doctype, and then add these elements to the list/set.
Does that make more sense?


operator ibm-block-csi-operator-community (1.11.4)

Thanks for submitting your Operator. Please check the below list before you create your Pull Request.
New Submissions

[x] Are you familiar with our contribution guidelines?
[x] Are you familiar with our operator pipeline?

[x] Have you considered whether you want to use semantic versioning order?
[x] Is your submission signed?
[x] Is operator icon set?

Your submission should not

[x] Add more than one operator bundle per PR
[x] Modify any operator
[x] Rename an operator
[x] Modify any files outside the above mentioned folders
[x] Contain more than one commit. Please squash your commits.

Operator Description must contain (in order)

[x] Description of the managed Application and where to find more information
[x] Features and capabilities of your Operator and how to use it
[x] Any manual steps about potential pre-requisites for using your Operator

Operator Metadata should contain

[x] Human readable name and 1-liner description about your Operator
[x] Valid category name1
[x] One of the pre-defined capability levels2
[x] Links to the maintainer, source code and documentation
[x] Example templates for all Custom Resource Definitions intended to be used
[x] A quadratic logo

Remember that you can preview your CSV here.
--
1 If you feel your Operator does not fit any of the pre-defined categories, file an issue against this repo and explain your need
2 For more information see here

/tests/skip/check_replaces_availability

/lgtm

/label tests/skip/check_replaces_availability

hi @jfrancin
can you please assist with adding the "tests/skip/check_replaces_availability" label, as this is the same case we had in #4542 and reported in https://github.com/redhat-openshift-ecosystem/community-operators-prod/issues/4543

Label added.


How to properly use multiple loaders with this plugin?

Hello!
I am using<EMAIL_ADDRESS>and<EMAIL_ADDRESS>I am trying to configure this plugin to extract multiple loaders (start with sass, end with css).
The piece of configuration code in my webpack.config.js looks like this:
...
    module: {
        rules: [
            ...
            // Stylesheets
            {
                test: /\.scss$/,
                include: path.resolve(__dirname, 'src'),
                use: ExtractTextPlugin.extract([{
                    fallbackLoader: 'style-loader',
                    loader: 'css-loader!postcss-loader!sass-loader',
                }]),
            },
            ...
        ],
    },
    ...
    plugins: [
        ...
        new ExtractTextPlugin('./stylesheets/[name].css'),
        ...
    ],
...

I am getting errors output in terminal. The first one looks like this and the rest are similar to this one:

ERROR in ./styles.scss
Module parse failed: C:\Users...\node_modules\extract-text-webpack-plugin\loader.js?{"omit":0,"remove":true}!css-loader!postcss-loader!sass-loader!C:\Users...\src\styles.scss Unexcepted character @ (1:0)
You may need an appropriate loader to handle this file type.
| @import './fonts/fonts';
|
| body,
@ ./index.js 7:0-24

I tried several possible ways to make it work. Everytime the same error output.
After some hours of struggling with it I found the only setup which worked so far:
...
            {
                test: /\.scss$/,
                include: path.resolve(__dirname, 'src'),
                use: [
                    ExtractTextPlugin.extract([{ fallbackLoader: 'style-loader', loader: 'css-loader' }]),
                    'css-loader',
                    'postcss-loader',
                    'sass-loader',
                ],
            },
...

However as you could probably have guessed, the result isn't what I excepted to have.
It bundles every stylesheets in folder to one file, which makes a heavy css file from it.
I've followed documentation, tried setup from webpack version 1 and nothing worked so far.
I believe I could have missed something, since I am still a beginner that's why I seek for a help here and I hope to get an advise in case I missed something important.
Also I found out that on gitter webpack chat someone was struggling with same problem as me and got same error output, so naturally I started to think that it could be a bug and I decided to report it.

Linking my related SO: http://stackoverflow.com/questions/41554983/using-extracttextplugin-with-webpack-2-2-0-rc3-throws-errors?noredirect=1#comment70353523_41554983

Running into this same issue as well. Same setup as @frederikprijck just without the post-css loader.

I also am having those issues trying to load less files.

I was running in to a similar issue when moving to webpack 2 from 1, and I found:
http://stackoverflow.com/questions/41021614/webpack-2-css-modules-support
Keeping my css-loader line the same as what I had in webpack 1 worked. My rule now looks like:
...
    {
        test: /\.(scss)$/,
        include: [path.join(__dirname, 'src')],
        loader: ExtractTextPlugin.extract({
          fallbackLoader: 'style-loader',
          loader: [
            'css-loader?modules&importLoaders=1&localIdentName=[path]___[name]__[local]___[hash:base64:5]',
            'sass-loader'
          ]
        })
     }
...

@415DomSmith Thanks a lot! You saved me!

@415DomSmith's solution worked for me. It appears ExtractTextPlugin doesn't yet support the Webpack 2 { loader: "loader-name", options: { ... } } syntax like:
    {
        test: /\.(scss)$/,
        include: [path.join(__dirname, 'src')],
        loader: ExtractTextPlugin.extract({
          fallbackLoader: 'style-loader',
          loader: [
            { loader: 'css-loader', options: { modules: true, importLoaders: 1, localIdentName: "[path]___[name]__[local]___[hash:base64:5]" },
            { loader: 'sass-loader' }
          ]
        })
     }

It might also make sense to change/alias the loader option to use like in Webpack 2.

passing in options into the sass-loader through query params solved this for me:
modules: {
  rules: [
     {
        test: /\.scss$/,
        loader: ExtractTextPlugin.extract([
          'css-loader', 'sass-loader?includePaths=./node_modules/compass-mixins/lib'
        ])
      }
  ]
}

I have no idea why, but @dylanjha 's format above with no fallback loader was the only way I could get it to work.  Definitely some rough edges here that need fixed up.  Spent half a day of trial and error on this one. :(

This plugin doesn't support Webpack v2 yet, here is the milestone.

@jaydenseric That's not correct. The readme clearly says:

extract text plugin for webpack 2

@TheLarkInn confirmed it was a bug and should have been fixed with the latest release: https://github.com/webpack/extract-text-webpack-plugin/releases/tag/v2.0.0-beta.5

Alright I verified my reproduce app mentioned above is working using the following syntax:
{ test: /\.(css|less)$/, loader: ExtractTextPlugin.extract(["css-loader", "postcss-loader", "less-loader"]) }
Aswell as using the following syntex
{
    test: /\.(css|less)$/,
    loader: ExtractTextPlugin.extract({
        fallbackLoader: "style-loader",
        loader: ["css-loader", "postcss-loader", "less-loader"]
    })
},

This is not 100% according to the readme, but that should be fixed once https://github.com/webpack/extract-text-webpack-plugin/pull/341 get's merged.

@frederikprijck, do you have an example for when we want to use plugins as well? Say I want to use autoprefixer with postcss-loader, any idea on how to set that up?

@cascornelissen the postcss-loader is used in my syntax above.
you also have to add this to the plugins section IIRC:
new LoaderOptionsPlugin({
    debug: true,
    options: {
        postcss: {
            plugins: () =>[autoprefixer]
        }
    }
})
``

Ah, didn't know about the LoaderOptionsPlugin. I'll see if that works. Is passing a configuration object to autoprefixer also supported this way?

With regards to postcss plugins specifically.  You can also provide a postcss.config.js file at your project root that get's picked up by postcss-loader.
// postcss.config.js
module.exports = () => {
  const pluginConfigs = {
    'import': {
      path: ['somepath']
    }
  }

  const plugins = [{
    name: 'import',
    mod: require('postcss-import')
  }, {
    name: 'mixins',
    mod: require('postcss-mixins')

  }, {
    name: 'simple-vars',
    mod: require('postcss-simple-vars')

  }, {
    name: 'color-function',
    mod: require('postcss-color-function')

  }, {
    name: 'autoprefixer',
    mod: require('autoprefixer')
  }]

  return {
    syntax: 'postcss-scss',
    plugins: plugins.map(plugin => {
      if (plugin.name in pluginConfigs) {
        return plugin.mod(pluginConfigs[plugin.name])
      }

      return plugin.mod()
    })
  }
}

https://github.com/michael-ciniawsky/postcss-load-config

I got it to work in webpack 2.0 with the following syntax:
{
  test: /\.s[ac]ss$/,
  use: [
    'to-string-loader',
    ExtractTextPlugin.extract({
      fallbackLoader: 'style-loader',
      loader: [
          'css-loader?-url&sourceMap',
          'postcss-loader',
          'sass-loader?sourceMap'
      ]
    })
  ],
  exclude: [
    root('node_modules')
  ]
}

notice I had to add the "to-string-loader" to get it to work.

I got it to work with Webpack 2, PostCSS (with postcss-import, postcss-cssnext and postcss-reporter plugins) and sourcemaps:

ExtractTextPlugin in webpack.config.js
PostCSS config in package.json

I wish I would have read @415DomSmith comment more carefully earlier on, would have saved me a few hours. I had the syntax inside of the ExtractTextPlugin.extract({ ... }) correct, but do note that you have to use loader: and not use: in the outer webpack-config as well.
Just to clarify, this does NOT work:
{
  test: /\.s[ac]ss$/,
    use: ExtractTextPlugin.extract({
    fallbackLoader: 'style-loader',
    loader: ['css-loader', 'sass-loader']
  })
}

This DOES work:
{
  test: /\.s[ac]ss$/,
    loader: ExtractTextPlugin.extract({
    fallbackLoader: 'style-loader',
    loader: ['css-loader', 'sass-loader']
  })
}

@kb3eua If you change use to loader in your example you should be able to remove the to-string-loader.
As I understand it ExtractTextPlugin.extract takes the options and returns a string based on the old loader!loader-2-syntax. I guess this needs to return an array with the loaders instead to work with use:? This however would break the current way of using it with loader:. Not sure what the best way forward would be with this, but the readme could probably be clarified in the meantime. :)

@Ephem using both use and loader should work, depending on the version of webpack 2 you're using.

Nice catch @Ephem .
I've modified my reproduction sample (webpack-less.zip) and It idd fails when using use. Replacing use with loaders works fine
.
Tagging @TheLarkInn based on our twitter conversation.

Returning an array instead of a string so that use: works is actually what PR #343 does and luckily this does NOT break loader: in Webpack 2. In Webpack 1 loader: only works with a string, but I tried it out in Webpack 2 and loader: works fine with arrays there.

@xeho91 Can you update to rc0? Please note that you have to extract with use, not loader. Let me know how it goes.

@xeho91 Any news on this? This is a blocking final release. A standalone project to study would be ideal. Note that loader: format should work too. There's rc2 available now.

@bebraw To me it's working. But well, I didn't file the issue so I guess that doesn't matter. But I did solve my reproduction sample mentioned previously (https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/330#issuecomment-271635246).
To summarize, I'm succesfully using the following versions:

webpack 2.2.0 (final)
extract-text-webpack-plugin: 2.0.0-rc.1

Together with the following configuration:
{
    test: /\.(css|less)$/,
    use: ExtractTextPlugin.extract({
        fallbackLoader: 'style-loader',
        loader: ['css-loader', 'postcss-loader', 'less-loader']
    })
}

and
plugins: [new ExtractTextPlugin('index-[contenthash].css')]

@frederikprijck Ok, excellent to hear. Often it's hard to work with issues like this as the information tends to be partial (not much to work with), but still cool. 👍

I have tried multiple variations to get chained loaders to get to work with this plugin. I have tried all the examples in this thread and nothing seems to work.

webpack 2.2.0
extract-text-webpack-plugin: 2.0.0-rc.3

here is my simple configuration:
               test: /\.scss$/,
                use: ExtractTextPlugin.extract({
                    loader: [
                        'css-loader',
                        'resolve-url-loader',
                        'sass-loader?sourceMap=true'
                    ]
                })
            },

with plugins looking like:
 new ExtractTextPlugin('[name].[contenthash].css')

I execute webpack and it seems to compile successfully, but the css file is never emitted. There is no error message or anything that points me in the right direction.

@nryoung I would need a project to study to say anything concrete. Based on your description alone I can't see how you refer to CSS in your code.

@nryoung with this bit of code it's difficult to tell what the issue is. Are you using import in your entry file or any of the files that get loaded? It would probably be most beneficial to you to post a question on stack overflow with a complete example.

@bebraw @dylanjha Thanks for the replies. I went back and looked at my entry point file and realized it was basically a global include for all of my other sass modules. I added this to plugins and it worked:
new ExtractTextPlugin({
  filename: '[name].[contenthash].css',
  allChunks: true
)

Notice the allChunks: true, this allowed ExtractTextPlugin to bundle all of the includes in the entry point .scss file.

@bebraw
Sorry, I was away for a few weeks.
I'm currently using following versions:
"extract-text-webpack-plugin": "^2.0.0-beta.5",
"webpack": "^2.2.0-rc.4","webpack": "^2.2.0-rc.4".
(I know I need to update, but I'm checking the older versions just in case).
and the code for this plugin I've got right now (sorry, I don't have the older - the one which was used to report this issue):
const ExtractTextPlugin = require('extract-text-webpack-plugin');

module.exports = function extractCSS(paths, env) {
    return {
        module: {
            rules: [
                // Extract CSS during build
                {
                    test: /\.scss$/,
                    include: paths,
                    exclude: /node_modules/,
                    loader: ExtractTextPlugin.extract({
                        fallbackLoader: 'style-loader',
                        loader: [
                            {
                                loader: 'css-loader',
                                query: {
                                    sourceMap: (env === 'development'),
                                },
                            },
                            'postcss-loader',
                            {
                                loader: 'sass-loader',
                                query: {
                                    sourceMap: (env === 'development'),
                                    sourceMapContents: (env === 'development'),
                                },
                            },
                        ],
                    }),
                },
            ],
        },

        plugins: [
            new ExtractTextPlugin('stylesheets/[name].css'),
        ],
    };
};

And it works perfectly.

loader and use should work the same. Thanks for confirming it works now. Time to close.

Not working for me :
{
      test: /\.(scss|sass)$/,
	  loader: ExtractTextPlugin.extract(scssLoader),
      include: [__dirname]
    }

My package.json : https://gist.github.com/jy95/99377c113252e6baaa23087abe859814
My webpack.config.js (without this line) : https://gist.github.com/jy95/e2359fdbc3c5a73c3d2430a9c61f78ad
Any idea ? I become mad with this bug for hours

It's really working with use instead loader I want to expand @bebraw closing comment with an example with some:
Packages: webpack - 3.5.6, extract-text-webpack-plugin - 3.0.0.
module: {
    rules: [
      {
        test: /\.css$/,
        use: ExtractTextPlugin.extract({
          fallback: 'style-loader',
          use: [
            'css-loader',
            {
              loader: 'postcss-loader',
              options: {
                plugins: () => [
                  Autoprefixer, // Imported at the top of the file
                ],
              },
            },
          ],
        }),
      },
    ],
},

Also I've tested this with code splitting and webpack pushes all the css imports to the style tag as expected.

Apperently for Webpack v4 you need to switch to mini-css-extract-plugin


1905 add content endpoint

@jlpereira, things for you before we can merge:

[x] This removes  /contents/filter.json, it is replaces with /contents.json.   We need to update Content editor, others? to reflect this, then this can be moved.

[x] we replaced most_recent_upates with standard user facet filter, i.e. we need to use (user_date_start/end) + user_target=updated

@mjy besides https://github.com/SpeciesFileGroup/taxonworks/pull/1911#discussion_r532281982 I think it is OK too. Will let you do the merge.

Codecov Report

Merging #1911 (7fed6b3) into development (1a2b9b5) will increase coverage by 0.02%.
The diff coverage is 94.24%.

@@               Coverage Diff               @@
##           development    #1911      +/-   ##
===============================================
+ Coverage        88.74%   88.77%   +0.02%
===============================================
  Files             1778     1776       -2
  Lines            60796    60802       +6
===============================================
+ Hits             53954    53974      +20
+ Misses            6842     6828      -14

Impacted Files
Coverage Δ

app/controllers/contents_controller.rb
80.64% <63.63%> (-2.69%)
:arrow_down:

lib/queries/content/filter.rb
94.80% <94.80%> (ø)

app/models/content.rb
89.65% <100.00%> (ø)

spec/lib/queries/content/filter_spec.rb
100.00% <100.00%> (ø)

lib/queries/note/filter.rb

app/controllers/concerns/shallow_polymorphic.rb

spec/lib/queries/note/filter_spec.rb

app/controllers/notes_controller.rb
78.84% <0.00%> (+4.65%)
:arrow_up:

Continue to review full report at Codecov.

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


Can't verify the effect of the backdoor attack

Hello,
this is not really a code issue, but rather a question. As I run the attack with (let's say) trigger_label=1 for MNIST, I would expect that the prediction accuracy for class=1 would be much worse than the rest of the classes which were not triggered. However, in the results also provided in the README, the accuracies for all classes are very high and so is the attack success rate. Maybe I have misunderstood how the attack works, so could you explain to me how I could verify the effect of the attack in the testing phase?

Hi,
Backdoor attacks have two evaluation metrics: Test Clean Accuracy(TCA and Attack Success Rate(ASR).
For ASR, it means when the trigger is attached on the samples, and the predicted results should be the target label no matter what the sample really looks like.
For TCA, it means the accuracy of the original samples (no trigger attached).
If the two metrics are both high, then it means the backdoor attacks indeed achieve good performances.
You can check this paper for details: https://arxiv.org/pdf/2210.01632.pdf, in Section A.2

Thank you. Where does these print outs of the classification reports correspond to? The clean model or the poisoned one?
             precision    recall  f1-score   support

    0 - zero       0.98      0.99      0.99       980
     1 - one       0.99      0.99      0.99      1135
     2 - two       0.99      0.98      0.98      1032
   3 - three       0.96      0.98      0.97      1010
    4 - four       0.98      0.96      0.97       982
    5 - five       0.96      0.97      0.97       892
     6 - six       0.99      0.98      0.98       958
   7 - seven       0.97      0.97      0.97      1028
   8 - eight       0.98      0.97      0.97       974
    9 - nine       0.95      0.97      0.96      1009

    accuracy                           0.98     10000
   macro avg       0.98      0.97      0.98     10000
weighted avg       0.98      0.98      0.98     10000

This is the TCA of the poisoned model.
For the complete performance, you can check this file: https://github.com/verazuo/badnets-pytorch/blob/master/logs/CIFAR10_trigger1.csv


Btd6 is stuck on the loading screen whenever i pick my save (i have the mobile version as well )

All of the following criteria must be met

[X] All Requirements must be installed.
[X] Changed the title so that it doesn't just says "[Bug]: "
[X] I have searched the GitHub issues for my bug, even in the closed issues.

All of the following are optional to answer

[X] Tried reinstalling the Game.
[X] Tried reinstalling MelonLoader.
[X] Tried restarting PC.
[X] Was able to see the Start Screen.

Describe the issue.
its literally jsut stuck on the loading screen as soon as i press a save after i press start and it says "During invoking native->managed trampoline" and "[11:49:54.331] [BloonsTD6_Mod_Helper] Failed to save ShowRoundsetChanger for BloonsTD6 Mod Helper
[11:49:54.337] [BloonsTD6_Mod_Helper] System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Permissions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Security.Permissions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Newtonsoft.Json.Serialization.JsonTypeReflector.get_DynamicCodeGeneration()
at Newtonsoft.Json.Serialization.JsonTypeReflector.get_ReflectionDelegateFactory()
at Newtonsoft.Json.Serialization.DefaultContractResolver.GetDefaultCreator(Type createdType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract(JsonContract contract)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePrimitiveContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at Newtonsoft.Json.Utilities.ThreadSafeStore2.Get(TKey key)    at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContract(Object value)    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe(Object value)    at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)    at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)    at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value)    at Newtonsoft.Json.Linq.JToken.FromObjectInternal(Object o, JsonSerializer jsonSerializer)    at Newtonsoft.Json.Linq.JToken.FromObject(Object o)    at BTD_Mod_Helper.Api.ModOptions.ModSettingsHandler.SaveModSettings(BloonsMod mod, Boolean initialSave) [11:49:54.338] [BloonsTD6_Mod_Helper] Failed to save BypassSavingRestrictions for BloonsTD6 Mod Helper [11:49:54.338] [BloonsTD6_Mod_Helper] System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Permissions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified. File name: 'System.Security.Permissions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'    at Newtonsoft.Json.Serialization.JsonTypeReflector.get_DynamicCodeGeneration()    at Newtonsoft.Json.Serialization.JsonTypeReflector.get_ReflectionDelegateFactory()    at Newtonsoft.Json.Serialization.DefaultContractResolver.GetDefaultCreator(Type createdType)    at Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract(JsonContract contract)    at Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePrimitiveContract(Type objectType)    at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)    at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)    at Newtonsoft.Json.Utilities.ThreadSafeStore2.Get(TKey key)
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContract(Object value)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe(Object value)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value)
at Newtonsoft.Json.Linq.JToken.FromObjectInternal(Object o, JsonSerializer jsonSerializer)
at Newtonsoft.Json.Linq.JToken.FromObject(Object o)
at BTD_Mod_Helper.Api.ModOptions.ModSettingsHandler.SaveModSettings(BloonsMod mod, Boolean initialSave)
[11:49:54.340] [BloonsTD6_Mod_Helper] Failed to save AutoHideModdedClientPopup for BloonsTD6 Mod Helper
[11:49:54.340] [BloonsTD6_Mod_Helper] System.IO.FileNotFoundException: Could not load file or assembly 'System.Security.Permissions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Security.Permissions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at Newtonsoft.Json.Serialization.JsonTypeReflector.get_DynamicCodeGeneration()
at Newtonsoft.Json.Serialization.JsonTypeReflector.get_ReflectionDelegateFactory()
at Newtonsoft.Json.Serialization.DefaultContractResolver.GetDefaultCreator(Type createdType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.InitializeContract(JsonContract contract)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreatePrimitiveContract(Type objectType)
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract(Type objectType)
at System.Collections.Concurrent.ConcurrentDictionary2.GetOrAdd(TKey key, Func2 valueFactory)
at Newtonsoft.Json.Utilities.ThreadSafeStore`2.Get(TKey key)
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract(Type type)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContract(Object value)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe(Object value)
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.SerializeInternal(JsonWriter jsonWriter, Object value, Type objectType)
at Newtonsoft.Json.JsonSerializer.Serialize(JsonWriter jsonWriter, Object value)
at Newtonsoft.Json.Linq.JToken.FromObjectInternal(Object o, JsonSerializer jsonSerializer)
at Newtonsoft.Json.Linq.JToken.FromObject(Object o)
at BTD_Mod_Helper.Api.ModOptions.ModSettingsHandler.SaveModSettings(BloonsMod mod, Boolean initialSave)
[11:49:54.341] [BloonsTD6_Mod_Helper] Failed to save CleanProfile for BloonsTD6 Mod Helper"
Did you attach your log file?
No, I could not find a log file at {Game_Directory}\MelonLoader\Latest.log

This has been resolved.
For the time being please downgrade to MelonLoader v0.6.1 on BTD6.


Incompatibilities with optifine/optifabric/sodium?

Like said in the title, the mod is currently not working with optifine or optifabric.
Please do not create new post about it, they will be marked as duplicate and closed.

Can create incompatibility with Sodium too


fix whitespace regular expression

Referenced here: https://github.com/robbyrussell/oh-my-zsh/issues/3208

Already in the codebase, please close


selinux: ignore issues with sssd

['type=AVC msg=audit(1614438637.552:5615): avc: denied { read } for pid=876 comm="sssd" name="resolv.conf" dev="sda1" ino=265261 scontext=system_u:system_r:sssd_t:s0 tcontext=unconfined_u:object_r:admin_home_t:s0 tclass=file permissive=1']
(currently seen on rhel 8.3)
Signed-off-by: Sage Weil<EMAIL_ADDRESS>

@susebot run deploy

Yeah, fixed in master
On Sun, Feb 28, 2021 at 4:08 PM Patrick Donnelly<EMAIL_ADDRESS>wrote:

@batrick commented on this pull request.
In teuthology/task/selinux.py
https://github.com/ceph/teuthology/pull/1622#discussion_r584368988:

@@ -131,6 +131,7 @@ def get_denials(self):
'comm="rpm"',
'tcontext=system_u:object_r:container_runtime_exec_t:s0',
'comm="ksmtuned"',

       'common="sssd"',

comm=?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/ceph/teuthology/pull/1622#pullrequestreview-600311116,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADJXB36XM7AX7UQPLAZCXTTBK5HPANCNFSM4YKBC7PQ
.


NTR: Grouping classes: molecular function activator and molecular function inhibitor

Please provide as much information as you can:

Suggested term label:
molecular function activator and molecular function inhibitor

Definition (free text)
A molecular function regulator that activates or increases the activity of its target via non-covalent binding that does not result in covalent modification to the target.

A molecular function regulator that inhibits or decreases the activity of its target via non-covalent binding that does not result in covalent modification to the target.

Reference, in format PMID:#######

Parent term(s)
molecular function regulator

Children terms (if applicable) Should any existing terms that should be moved underneath this new proposed term?
All mf regulators - should classify automatically with LDs.

Synonyms (please specify, EXACT, BROAD, NARROW or RELATED)

Cross-references

For enzymes, please provide RHEA and/or EC numbers.

Can also provide MetaCyc, KEGG, Wikipedia, and other links.

Any other information

+[Term]
+id: GO:0140677
+name: molecular function activator activity
+namespace: molecular_function
+def: "A molecular function regulator that activates or increases the activity of its target via non-covalent binding that does not result in covalent modification to the target." [GOC:curators]
+is_a: GO:0098772 ! molecular function regulator
+property_value: term_tracker_item https://github.com/geneontology/go-ontology/issues/21782 xsd:anyURI
+created_by: pg
+creation_date: 2021-07-07T07:24:16Z
+
+[Term]
+id: GO:0140678
+name: molecular function inhibitor activity
+namespace: molecular_function
+def: "A molecular function regulator that inhibits or decreases the activity of its target via non-covalent binding that does not result in covalent modification to the target." [GOC:curators]
+is_a: GO:0098772 ! molecular function regulator
+property_value: term_tracker_item https://github.com/geneontology/go-ontology/issues/21782 xsd:anyURI
+created_by: pg
+creation_date: 2021-07-07T07:24:32Z


Players can hide in hamster cages

Description
Hamster cages are essentially equivalent to lockers and can be hidden in by anyone that is... not a hamster. This has led to an obnoxious "meta" of hiding inside of Hamlet's cage to jump anyone who comes inside, when normally the room doesn't have any hiding place at all.
Suggest adding some sort of whitelist for hamster cages to prevent non-hamster-sized entities from hiding inside (it's only logical, after all)

probably a whitelist for only small size items


update fescar version

update fescar version 0.4.2

Ⅰ. Describe what this PR did
Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #784 into develop will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop     #784   +/-   ##
==========================================
  Coverage      32.77%   32.77%
  Complexity       939      939
==========================================
  Files            228      228
  Lines           9066     9066
  Branches        1098     1098
==========================================
  Hits            2971     2971
  Misses          5749     5749
  Partials         346      346

Continue to review full report at Codecov.

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

lgtm


Feature/deploy docs

This should deploy. All github actions pass.

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@7fd63c5). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main       #4   +/-   ##
=======================================
  Coverage        ?   82.58%
=======================================
  Files           ?        6
  Lines           ?      448
  Branches        ?        0
=======================================
  Hits            ?      370
  Misses          ?       78
  Partials        ?        0

Continue to review full report at Codecov.

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


Try to make travis.ci faster

http://docs.travis-ci.com/user/workers/container-based-infrastructure/

Coverage remained the same at 94.94% when pulling fbde918378461808bd3c5e6b7e61b9b7dc05387c on travis-no-sudo into b366de4ab660e91a961516c573bb2aa6ce9f777f on master.


Add SSL support to RabbitMQ Scaler

Signed-off-by: Anson Au<EMAIL_ADDRESS>
Provide a description of what has been changed
Checklist

[ ] Commits are signed with Developer Certificate of Origin (DCO)
[ ] Tests have been added
[ ] A PR is opened to update the documentation on https://github.com/kedacore/keda-docs
[ ] Changelog has been updated

Fixes #

Thanks for the PR, can you please target our v2 branch?

Closing and repulling to v2


feat(home): display pinned articles only only once on the top

Resolves #78

:tada: This PR is included in version 1.3.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Fix phone number formats for en-GB

Issue: #163
Minimized error code to +-10

Codecov Report

Merging #274 (19737b5) into master (94d9955) will increase coverage by 0.36%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master     #274      +/-   ##
============================================
+ Coverage     94.26%   94.63%   +0.36%
- Complexity     1881     1891      +10
============================================
  Files           195      195
  Lines          3819     3819
  Branches        391      391
============================================
+ Hits           3600     3614      +14
+ Misses          117      104      -13
+ Partials        102      101       -1

Impacted Files
Coverage Δ

...ker/idnumbers/pt/br/IdNumberGeneratorPtBrUtil.java
92.59% <0.00%> (-3.71%)
:arrow_down:

.../java/net/datafaker/service/FakeValuesService.java
87.92% <0.00%> (+0.60%)
:arrow_up:

src/main/java/net/datafaker/Internet.java
90.41% <0.00%> (+1.36%)
:arrow_up:

src/main/java/net/datafaker/Address.java
97.14% <0.00%> (+2.85%)
:arrow_up:

src/main/java/net/datafaker/Commerce.java
100.00% <0.00%> (+4.00%)
:arrow_up:

src/main/java/net/datafaker/IdNumber.java
100.00% <0.00%> (+6.66%)
:arrow_up:

src/main/java/net/datafaker/Lorem.java
97.91% <0.00%> (+8.33%)
:arrow_up:

...ava/net/datafaker/HitchhikersGuideToTheGalaxy.java
100.00% <0.00%> (+11.11%)
:arrow_up:

src/main/java/net/datafaker/OscarMovie.java
100.00% <0.00%> (+16.66%)
:arrow_up:

:mega: Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@snuyanzin seems the concurrent tests are still flaky

looks like i forgot one field
currently playing with https://github.com/datafaker-net/datafaker/pull/275
in case it will not fail after a bunch of runs i'll merge it


⚠ Bofrost.fr has degraded performance

In 6b10159, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1253 ms

Resolved: Bofrost.fr performance has improved in 70d95a4 after 1 hour.


Default skin

Hello, the default option unlike the original application forces the champion's default to show and not leave it unchanged.

yes, please fix this

yes it's annoying tbh

This was caused by using an older buggy version. Please delete the configuration file and try again. It's in the R3nzSkin folder within the Documents directory on my computer.

Worked in a strange way where the model remains on the original skin, but the skill effects are those of the selected skin.

I've downloaded your beta release but the issue is still present, sir.


C++ code for level order traversal of a binary tree.

🚀 Feature
I would like to add C++ code for the level order traversal of a binary tree.
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
I would love to contribute to this project as a GSSOC'21 participant.
Pitch
This feature should be implemented for a better understanding of the logic behind the algorithm in a different programming language.

/assign


FileNotFoundError: [Errno 2] No such file or directory: 'var/log/simbak'

Using the program (cli or as lib) from the example leads to a FileNotFoundError.
When creating the var/log/simbak directory relative to the workdir, it works (but not really a solution for me).
For my own use case I don't really need a logfile. Perhaps set it the default to /dev/null, and offer optional override.

Yeah I will remove the need for logging into files, it can be set up in people's scripts if they want. I was mistaken in forcing file logging with simbak to begin with.

Thx for looking into this :)
Don't know if forcing logging is necessarily a bad idea. But depending on use case, the defaults differ. For a root/system user, the /var/log/simbak is probably ok. For regular users the homedir .symbak folder might be a good one. (not sure what the windows equivalents are though)

Fixed in v0.4.0, file logging is now optional, thanks for submitting this issue :)


Smooth param change

Now changing value of a-param creates glitches in output. We have to track phase and make their change smoother. What are possible approaches?

Phase adjusting. https://github.com/audiojs/audio-oscillator/pull/20/commits/06150ff515f0c827debf61ce972d4ee8d043a16d


Cannot connect via raspberrypi 4

Followed instructions:

Downloaded client to desktop and connected raspberrypi to laptop under same ethernet network.
Configured config.txt and modules (then I rebooted) to power up raspberrypi as a usb when connected via my laptop.
Downloaded server-side inputshare-server (inputshare-server-armv7-unknown-linux-gnueabihf.tar.gz), unzipped and did the sudo command to start the server.

-When I attempted to connect via client desktop connection it would time out. I left the json file as default.
-using wireless usb connection for mouse and keyboard.
The only error is: Disconnected:TimedOut from the desktop client side.
Here is rasbperrypi 4 with process running:

Your screenshots seems to imply that you are using USBraspberrypi as hostname instead of the default raspberrypi.local. Have you edited the json file to reflect this?
Basically when you press Connect the client will start sending ConnectionRequest packets to the host from that file. The server will answer these packets with ConnectionAccepted. However if the client does not get one of these ConnectionAccepted packets within 5s it will throw the Disconnected:TimedOut error.
Can you ping (ping USBraspberrypi) your raspberry?

You're absolutely right. So obvious but didn't realize it. Thank you for the quick response and this awesome app you created.


Use ^ versions and readd lock file

@terrestris/devs Please review. Just downgrades canvas again to 2.0.0-alpha.1 due to compilation/test failures.

Unfortunately that didn't help, we're not even using mocking here (and adding jest-canvas-mock didn't help as well). Building the latest canvas from source also doesn't even work on a Debian jessie because the compiler/libstdc++ seems to be too new :confused:


Add methods to construct a ZarrDataset from Zarr.jl objects

This commit allows the user to construct a ZarrDataset from a Zarr.AbstractStore or Zarr.ZGroup.
It also refactors the pipeline such that strings open stores, stores open ZGroups, and then ZGroups are finally wrapped in ZarrDataset.  This way, all of the infrastructure is reused and bugfixes are cleaner.
Closes #5

Thanks a lot ! (wow, rarely seen such a great PR!!!)


Background color on .modal-header overflows rounded corners

.modal-header {
background: $blue;
}
Produces:

yep, if you want to add background to the header element you need to round the corners of the header as well

That's easy enough but shouldn't bootstrap be doing that by default? I can patch it if you agree.
(sent from a mobile device)
On Nov 7, 2011, at 5:14 AM, Jacob<EMAIL_ADDRESS>wrote:

yep, if you want to add background to the header element you need to round the corners of the header as well

Reply to this email directly or view it on GitHub:
https://github.com/twitter/bootstrap/issues/571#issuecomment-2647755

no i don't think so, doesn't hurt anything and saves a few lines

It's easy to lose a lot of development time on this non-obvious side-effect, so I agree with @gavinhughes that Bootstrap should handle this itself if possible. I am on 3.3.2.


The release is corrupted

Description
I have downloaded the following release : https://github.com/tesseract-ocr/tessdata/releases/tag/4.1.0
I have an error when I try to unzip it.
Tested Environments

Mac OSX 12.4
Amazon Linux 2 (Docker container)

Reproduce
Run the following commands
wget https://github.com/tesseract-ocr/tessdata/archive/refs/tags/4.1.0.zip
unzip ./4.1.0.zip

You will get this
Archive:  ./4.1.0.zip
  End-of-central-directory signature not found.  Either this file is not
  a zipfile, or it constitutes one disk of a multi-part archive.  In the
  latter case the central directory and zipfile comment will be found on
  the last disk(s) of this archive.
unzip:  cannot find zipfile directory in one of ./4.1.0.zip or
        ./4.1.0.zip.zip, and cannot find ./4.1.0.zip.ZIP, period.

I can confirm that problem. The release zip files are provided by GitHub, so there is nothing we can do to fix it.

tessdata repository is huge repository and:

ZIP format had a 4 GB limit on various things (uncompressed size of a file, compressed size of a file, and total size of the archive), as well as a limit of 65,535 entries in a ZIP archive.

so it seems you chose to use the wrong technology. Use git clone --depth 1 https://github.com/tesseract-ocr/tessdata.git for downloading all data.

The tar.gz file is about 565 MiB. The zip file 543 MiB, far away from the limit but the size seems to be too small.
git clone is a good alternative which has several advantages compared to downloading a zip or tar.gz file.

Is the root problem understood?

Ask Microsoft, the owners of GitHub. The zip files are created automatically by GitHub.

Also, we had similar issues with the tar.gz file.

In my test tar.gz worked fine.

I now tried several downloads of the zip file using wget. The resulting files had different sizes although there was no download error.

More tests confirmed that the download terminates after exactly 100 seconds, resulting in a partial file.

I close this issue as we cannot solve it, but there is a good alternative way to get the data using git clone (see above).

Hi !
Thank you for your reply. I will use git clone instead. About tar.gz in my remember it did not work either but i'm not sure.
Anyway, the main thing is that I can use tessdata somehow !
thank you for your explanations and yout time :)


Using traineddata from tesseract-ocr

Hello,
I wish to know how to use the traineddata available from tesseract-ocr without inducing
actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES:Error:Assert failed:in file tessdatamanager.cpp, line 53
Much appreciated.

+1

+1

+1000000000000000000000000000

I was able to resolve it by using a different version of the traineddata file that I borrowed from a Tesseract tutorial posted elsewhere. I found the installation instructions work perfectly, but the current version of thetraineddata does not work with 4.0.0. Details here

+1

+1

+1

Apparently this is a very common issue that I keep getting upvotes for this but nobody actually knows how to solve it.

@takzee I was able to solve it using the link in my post above.

@AdrianBinDC Yes that is a workaround, I think this issue should be looked into since the workaround only applicable to English or luckily some other languages where there are available trained files.

https://github.com/exherb/Tesseract-OCR-iOS
This example in Chinese is ok, thank you. @FWJonathan

@AdrianBinDC Thanks for saving my time!! Your solution really works for me. I installed it using pod 'TesseractOCRiOS', '4.0.0' and it just crashed.

To resolve this issue use older version of training data from: https://github.com/tesseract-ocr/tessdata/tree/3.04.00. Worked for me.

As friend checked, for Android version, their using newest tessdata file have better OCR result with Chinese..Is anyone know how to update the Tesseract library?

how to fixit... help me....
actual_tessdata_num_entries_ <= TESSDATA_NUM_ENTRIES:Error:Assert failed:in file tessdatamanager.cpp, line 53

Switching back to Tessdata 3.0.4 allows the program to compile but the results are horrendous. I supplied a very simple image with English words and the program failed to recognize it. I wonder if the 4.0.0 would be better.

@computerion Thank you very much.

@AdrianBinDC Thank you~~~

<EMAIL_ADDRESS>is working in android. And I found accuracy rate of<EMAIL_ADDRESS>is better than this version tessdata

@gali8 Get some help, please.

Hello. I have a problem with japanese languge. i hope get hep! thank you so much

@AdrianBinDC  thanks for helping. It works with 4.0 version on iOS

The previous version data won't crash. But can't recognize anything.

+1 I have problem with Thai language
@gali8, any idea how to resolve it?

Hello, I am using the tessdata from this repo https://github.com/tesseract-ocr/tessdata/tree/bf82613055ebc6e63d9e3b438a5c234bfd638c93
But they won't work with  pod 'TesseractOCRiOS', '4.0.0'
My goal is to use this project https://github.com/vinhvu200/BillSplit with other language traineddata but I don't know where to find out which tess data version i have to use?
I would try them all but I cloned several versions (2GB!) and my internet connection is not that fast.

I believe this issue could be solved by upgrading the Tesseract version to 3.04 so that it is sync with the training data here: https://github.com/tesseract-ocr/langdata.
There is at least one fork were this is done, e.g. https://github.com/exherb/Tesseract-OCR-iOS

As friend checked, for Android version, their using newest tessdata file have better OCR result with Chinese..Is anyone know how to update the Tesseract library?

Hello, have you solved this problem? I have a similar problem. Android and Windows worked fine, iOS crashed. I compared the OCR version of android, which is 3.0.5. I plan to recompile the Submodule dependency library version to solve this problem, but there are more problems after the revision. Has anyone tried to upgrade successfully?

I found this to solve the problem. https://github.com/chaoskyme/Tesseract-OCR-iOS

thanks @AdrianBinDC , your suggested traineddata files are comaptible when used on Android & iOS.
I do have a question. From what i understand, the traineddata files from normal_tessdata directory are compatible with Android & iOS. But the traineddata files from tessdata_best & tessdata_fast directories are not compatible with Android & iOS platforms, and give the error TessBaseAPIInit3(tessHandle,dataPath,lang) != 0 .
I need to perform some additional training on eng.traineddata file, for which i must use traineddata file from tessdata_best directory. But files from this directory are not compatible when used on Android & iOS platforms.
Any solutions on how to make the file from tessdata_best directory run on Android? Why files from "tessdata" are compatible, but those from "tessdata_best" are not?
Thanks...


TypeError: Cannot read properties of undefined (reading 'endsWith')

Hello, I tried to use your repository as an attempt to modify it just for fun, But, When I tried to run it, I ran into some errors.
TypeError: Cannot read properties of undefined (reading 'endsWith')
at Object.<anonymous> (/home/runner/majoexe/web/web.js:5:35)

and another error in the same process
/home/runner/majoexe/node_modules/mysql/lib/protocol/Parser.js:437
     throw err; // Rethrow non-MySQL errors`
             ^
Error: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'JSON NULL, `leaves` JSON NULL, `last_updated` DATE NOT NULL, PRIMARY KEY (`guild' at line 1
    at Query.<anonymous> (/home/runner/majoexe/utilities/mysql/database.js:37:22)
   at Query.<anonymous> (/home/runner/majoexe/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home/runner/majoexe/node_modules/mysql/lib/Connection.js:488:16)
   at Query.Sequence.end (/home/runner/majoexe/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)

process.env.DOMAIN is undefined. it is possible that there is no .env file
Your MySQL version is too old

By the way, is there anyway possible to get a free MySQL database, since I really can't find anything good as described.

Unfortunately I don't know any free mysql host. However, if you want MySQL (+ Bot hosting) at a very low price you can use https://terohost.com


Mock every interface

Mock every interface so we can write tests

[x] Broker
[x] Registry
[x] Client
[ ] Server
[x] Transport

+1

+1

PRs welcome

I will give this a go

Cool. Just give it the same kind of layout at the registry/mock https://github.com/micro/go-micro/tree/master/registry/mock. [package]/mock/mock.go and provides New[Whatever] e.g registry/mock/mock.go has NewRegistry().

So far:
https://github.com/micro/go-micro/tree/master/registry/mock
https://github.com/micro/go-micro/tree/master/broker/mock

https://github.com/micro/go-micro/tree/master/client/mock

Now the question is whether there's a need for a mock server and how useful it would actually be.

Done