HADOOP-17315. Use shaded guava in ClientCache.java

JIRA: https://issues.apache.org/jira/browse/HADOOP-17315

Ran "mvn clean process-sources" to update the source code via maven-replacer-plugin.

Manually tested the checkstyle rule:
$ mvn install -DskipTests -DskipShade
// Modify ClientCache.java manually
$ mvn checkstyle:checkstyle
$ open hadoop-common-project/hadoop-common/target/site/checkstyle.html

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
33m  2s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
32m 57s

trunk passed

+1 :green_heart:
compile
21m 37s

trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
compile
19m 16s

trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
checkstyle
0m 48s

trunk passed

+1 :green_heart:
mvnsite
1m 25s

trunk passed

+1 :green_heart:
shadedclient
19m  9s

branch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 31s

trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javadoc
1m 32s

trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+0 :ok:
spotbugs
2m 31s

Used deprecated FindBugs config; considering switching to SpotBugs.

+1 :green_heart:
findbugs
2m 29s

trunk passed

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 54s

the patch passed

+1 :green_heart:
compile
21m 33s

the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javac
21m 33s

the patch passed

+1 :green_heart:
compile
18m  5s

the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
javac
18m  5s

the patch passed

+1 :green_heart:
checkstyle
0m 45s

the patch passed

+1 :green_heart:
mvnsite
1m 27s

the patch passed

+1 :green_heart:
whitespace
0m  0s

The patch has no whitespace issues.

+1 :green_heart:
shadedclient
17m 31s

patch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
0m 30s

the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javadoc
1m 37s

the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
findbugs
2m 45s

the patch passed

_ Other Tests _

+1 :green_heart:
unit
10m 36s

hadoop-common in the patch passed.

+1 :green_heart:
asflicense
0m 48s

The patch does not generate ASF License warnings.

211m 33s

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2398/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/2398

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient findbugs checkstyle

uname
Linux 7b27848887e9 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / a2e7a073f03

Default Java
Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2398/1/testReport/

Max. process+thread count
3252 (vs. ulimit of 5500)

modules
C: hadoop-common-project/hadoop-common U: hadoop-common-project/hadoop-common

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2398/1/console

versions
git=2.17.1 maven=3.6.0 findbugs=4.1.3

Powered by
Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
1m 21s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+0 :ok:
mvndep
6m  8s

Maven dependency ordering for branch

+1 :green_heart:
mvninstall
29m 13s

trunk passed

+1 :green_heart:
compile
21m 34s

trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
compile
18m  5s

trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
checkstyle
2m 50s

trunk passed

+1 :green_heart:
mvnsite
1m 55s

trunk passed

+1 :green_heart:
shadedclient
21m 40s

branch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
1m  2s

trunk passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javadoc
1m 58s

trunk passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+0 :ok:
spotbugs
2m 15s

Used deprecated FindBugs config; considering switching to SpotBugs.

+0 :ok:
findbugs
0m 30s

branch/hadoop-build-tools no findbugs output file (findbugsXml.xml)

_ Patch Compile Tests _

+0 :ok:
mvndep
0m 23s

Maven dependency ordering for patch

+1 :green_heart:
mvninstall
1m  7s

the patch passed

+1 :green_heart:
compile
20m 52s

the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javac
20m 52s

the patch passed

+1 :green_heart:
compile
18m 15s

the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+1 :green_heart:
javac
18m 15s

the patch passed

+1 :green_heart:
checkstyle
2m 45s

the patch passed

+1 :green_heart:
mvnsite
1m 50s

the patch passed

+1 :green_heart:
whitespace
0m  0s

The patch has no whitespace issues.

+1 :green_heart:
xml
0m  2s

The patch has no ill-formed XML file.

+1 :green_heart:
shadedclient
16m 42s

patch has no errors when building and testing our client artifacts.

+1 :green_heart:
javadoc
1m  0s

the patch passed with JDK Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1

+1 :green_heart:
javadoc
2m  1s

the patch passed with JDK Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

+0 :ok:
findbugs
0m 30s

hadoop-build-tools has no data from findbugs

_ Other Tests _

+1 :green_heart:
unit
0m 28s

hadoop-build-tools in the patch passed.

-1 :x:
unit
10m 35s
/patch-unit-hadoop-common-project_hadoop-common.txt
hadoop-common in the patch passed.

+1 :green_heart:
asflicense
0m 47s

The patch does not generate ASF License warnings.

188m  3s

Reason
Tests

Failed junit tests
hadoop.ha.TestZKFailoverController

Subsystem
Report/Notes

Docker
ClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2398/2/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/2398

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient xml findbugs checkstyle

uname
Linux 5ff77f863d54 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / a2e7a073f03

Default Java
Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.8+10-post-Ubuntu-0ubuntu118.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_265-8u265-b01-0ubuntu2~18.04-b01

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2398/2/testReport/

Max. process+thread count
2438 (vs. ulimit of 5500)

modules
C: hadoop-build-tools hadoop-common-project/hadoop-common U: .

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-2398/2/console

versions
git=2.17.1 maven=3.6.0 findbugs=4.1.3

Powered by
Apache Yetus 0.13.0-SNAPSHOT https://yetus.apache.org

This message was automatically generated.

Merged. Thank you @ayushtkn for your review.


Game board player info - Combine curr and max values into one field?

Currently in-game the player info is displayed like this:

{PLAYER NAME}
MAX_HEALTH: 30
MANA: 2
MANA_MAX: 5
HEALTH: 22

I think it would be more natural to display something like this:

{PLAYER NAME}
HEALTH: 22 / 30
MANA: 2 / 5

It would be possible (but perhaps not very flexible) to do this with HTML (by getting each value explicitly) but perhaps there would be a way to do it more flexibly in JavaScript?

I think this should be done in the HTML (in the future it will be possible to specify different HTML files for different mods). This should not be handled in JS (and cannot be handled in JS in a clean way).
I would prefer it also if the mana and health symbols were used, instead of specified as text.

This could be done with CSS by setting the labels of the tags to display: none; and then the values to display: inline; with an :after on the first value element - assuming, of course, the labels and values are separate (they should, semantically, be in a dl)

OK, I think I can handle that then. Would it be a matter of refactoring this:

    {{name}}: {{value}}

Into something along the lines of:

HEALTH: {{info.properties.HEALTH}} / {{info.properties.MAX_HEALTH}}

MANA: {{info.properties.MANA}} / {{info.properties.MANA_MAX}}

(The symbol itself is easy to add with a span)

@Phrancis It should be something like this:

HEALTH

{{info.properties.HEALTH}} / {{info.properties.MAX_HEALTH}}

MANA

{{info.properties.MANA}} / {{info.properties.MANA_MAX}}

(Note, using dl tag instead of ul and li)

For the Vue client, I'm planning on trying another way to display the player infos.


Phone code is always expired

I'm trying to make some test with this library and, although I can get the SMS code, the call to authSingIn always says that the SMS code expired.
The phone number I'm using is already registered, so first I call authSendCode to get the phone hash and the SMS Code and then I call authSingIn to validate the phone, but always the same response:
MTProto#1001#Transport5:Start reading message: pre
MTProto#1001#Transport5:Start reading message: 104
MTProto#1001:MTProtoMessage: future_salts#ae500895
MTProto#1001#Scheduller:Forgetting message: #17
ActorDispatcher:Dispatching action: new for response
MTProto#1001:MTProtoMessage: rpc_result#f35c6d01
MTProto#1001:rpc_result:<PHONE_NUMBER>601910288
TelegramApi#1001:<< #1 error #400 PHONE_CODE_EXPIRED in 648 ms
MTProto#1001#Scheduller:Forgetting message: #16

public TLAuthorization authSignIn(String phoneNumber, String phoneHash, String code) {
        try {
            TLAuthorization authorization = api.doRpcCallNonAuth(new TLRequestAuthSignIn(phoneNumber, phoneHash, code));
            api.getState().setAuthenticated(api.getState().getPrimaryDc(), true);
            return authorization;
        } catch(RpcException e) {
            if(e.getErrorCode() == 303) {
                String split[] = e.getErrorTag().split("_");
                int destDC = Integer.parseInt(split[split.length - 1]);
                api.switchToDc(destDC);
                return authSignIn(phoneNumber, phoneHash, code);
            }
            else
            {
                logger.info("===> " + e.getErrorCode() + " - " + e.getErrorTag());
            }
        } catch(IOException e) {}

        return null;
    }

Please can anyone help me??

tapule can you send me complete working example? My email is<EMAIL_ADDRESS>

Thank you Raakh, but I solved the problem.
My connection was not to the correct DC.

Dear tapule, Can you please send me your working code example? I shall be grateful to you


Cannot connect through JDBC with README.md

Describe the bug
There are no JDBC connections in the Maven library
To Reproduce
Steps to reproduce the behavior:

Go to  https://github.com/WeBankFinTech/Linkis/wiki/通过JDBC连接Linkis
The first step is to introduce the dependency module

com.webank.wedatasphere.linkis
linkis-ujes-jdbc
0.9.1

See error .can not find linkis-ujes-jdbc in Maven repository

Expected behavior

Update the wiki documentation, focusing on connecting to the usage documents（）
Update the Maven repository or show how to connect it correcttly。

Screenshots

can not find linkis-ujes-jdbc in Maven repository
Desktop (please complete the following information):

win10
no Browser
linkis master branch
use idea （The latest）

Thank you, the linkis-jdbc-driver module has not been deployed to Maven. We will modify the documentation and deploy it to Maven in the next version.

Thank you for your reply. The problem has been solved in a timely manner
| |
石勇
|
|
<EMAIL_ADDRESS>|
签名由网易邮箱大师定制
On 2/19/2021<EMAIL_ADDRESS>wrote：
Thank you, the linkis-jdbc-driver module has not been deployed to Maven. We will modify the documentation and deploy it to Maven in the next version.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Build failing on Travis but not locally

https://travis-ci.org/surullabs/lint/builds/177229429
--- FAIL: TestGosimple (0.98s)
	testutil.go:55: Check 1 /tmp/gosimpletest794064390/src/gosimpletest/file.go:6:1: expected declaration, found 'IDENT' sfsff
		/tmp/gosimpletest794064390/src/gosimpletest/file.go:4:2: "fmt" imported but not used
		/tmp/gosimpletest794064390/src/gosimpletest/file.go:4:2: "fmt" imported but not used
		2016/11/19 08:38:32 couldn't load packages due to errors: gosimpletest
	testutil.go:55: Check 2 /tmp/gosimpletest512030637/src/gosimpletest/file.go:3:2: "fmt" imported but not used
		/tmp/gosimpletest512030637/src/gosimpletest/file.go:3:2: "fmt" imported but not used
		2016/11/19 08:38:32 couldn't load packages due to errors: gosimpletest
FAIL
coverage: 57.1% of statements in github.com/surullabs/lint/gosimple, github.com/surullabs/lint/checkers
FAIL	github.com/surullabs/lint/gosimple	0.990s
--- FAIL: TestGostaticcheck (0.99s)
	testutil.go:55: Check 1 /tmp/gostaticchecktest241190326/src/gostaticchecktest/file.go:6:1: expected declaration, found 'IDENT' sfsff
		/tmp/gostaticchecktest241190326/src/gostaticchecktest/file.go:4:2: "fmt" imported but not used
		/tmp/gostaticchecktest241190326/src/gostaticchecktest/file.go:4:2: "fmt" imported but not used
		2016/11/19 08:38:35 couldn't load packages due to errors: gostaticchecktest
	testutil.go:55: Check 2 /tmp/gostaticchecktest611298205/src/gostaticchecktest/file.go:3:2: "fmt" imported but not used
		/tmp/gostaticchecktest611298205/src/gostaticchecktest/file.go:3:2: "fmt" imported but not used
		2016/11/19 08:38:35 couldn't load packages due to errors: gostaticchecktest

The change that triggered this error hasn't touched any of the failing packages.

The local version was using an older gostaticcheck and gosimple. All the more reason for #3


Key Value improperly sorting input sizes not multiples of the partition tile size

#3

Currently BlockRadixSortKeyValue works perfectly fine, but OneSweepKeyValue has an issue.
In OneSweepKeyValue when the size is not dividable by partitionSize, the sorting result is unreliable.

Could not replicate issue, and non-response from issue source. Suspected cause is that the incorrect host helper function was used to verify the sort.

@b0nes164 thanks for checking out, I was using helper function. Sorry I am caught up in projects, I'll double check the helper to see if I did something wrong. Many thanks.


[ROCm]: fix tsl path

Fixes tsl module paths.

@jakevdp @superbobry Could you please review? Thanks!


Support fields_map parameter

Now the query builder internally renames a given field name if it is one of the fields_map parameter's keys.
review plz @r7kamura

We had decided that qiita-elasticsearch can have domain models about Qiita, so no need to make it possible to pass mapping data into qiita-elasticsearch.


Generate test report file for jest

I'm not a JS test expert here, but it appears from a little googling that jest/jasmine can produce a jUnit test result file. Would be good to enable this so we can publish test results to VSTS. It makes it easier to see test failures (as opposed to console output) and also lets us track test history across many runs..
https://docs.microsoft.com/en-us/vsts/pipelines/tasks/test/publish-test-results

Sounds good!


Update TRANSPOSE_CONV

Removes dilation (set to 1).
Corrects input height to pad calculation.

BUG =  https://github.com/tensorflow/tflite-micro/issues/743

I think we need to combine the fixes from https://github.com/tensorflow/tflite-micro/pull/744 and https://github.com/tensorflow/tflite-micro/pull/736. If possible, it would also be very useful to have some unit tests that fail without these PRs but pass with them.
@njeffrie, would you be able to take that on?

Created #762 to address these change along with the changes in #736


Add AWS Well Architected Policy packs

Add

[x] AWS > Well-Architected Tool > AWS Well-Architected Framework > Security > SEC 08 - Enforce Use of Encryption at Rest Via AWS Well-Architected Tool Well-Architected Framework Security
[x] AWS > Well-Architected Tool > AWS Well-Architected Framework > Security > SEC 08 - Enforce Use of Keys Via AWS Well-Architected Tool Well-Architected Framework Security

Test Screenshots
Use of Keys

Use of Encryption at rest

Too many merge conflicts. Can create a new PR later if there is a requirement.


功能需求: cipher的benchmark功能

让用户能在实际部署平台上测试各Cipher的性能

源码的crypto_test.go 有

可是这个并没有提供binary下载...

不提供。

主页上有benchmark结果

抱歉，作者，我没有在项目中找到这个文件或者相关的
On Jan 5, 2017 1:48 PM, "xtaci"<EMAIL_ADDRESS>wrote:

源码的crypto_test.go 有
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/xtaci/kcptun/issues/371#issuecomment-270569067, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJnw_Gnuv-ySpRhim7mk5kSXxpobQc_xks5rPIQsgaJpZM4LbUpi
.

@guliujian kcp-go项目内

感谢，找到了
On Jan 5, 2017 2:50 PM, "xtaci"<EMAIL_ADDRESS>wrote:

@guliujian https://github.com/guliujian kcp-go项目内
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/xtaci/kcptun/issues/371#issuecomment-270576225, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJnw_L8BtY3xP4CxogUx4FfrelsGLJ0tks5rPJKagaJpZM4LbUpi
.


Deprecate LiteralMap in ExecutionSpec and ExecutionClosure

Due to the size of some literal maps, stowing it inside the closure and spec protobufs can result in very large messages from list endpoints. Also, it makes fetching the inputs of a workflow execution slightly different that for task and node executions.
This change offloads the literal map objects into Admin's blob store (i.e. s3 or similar) and stores a reference to it. It updates the GetExecutionData endpoints to match the behavior of node and task executions.
Additionally, it provides for a smooth migration. The only 'breaking' change is for users who rely on reading inputs of executions from the ListExecutions endpoint. We estimate this to impact no one. While clients are upgraded, we will continue to:

Accept inputs from old clients starting executions.
Return inputs only in the spec returned from GetExecution, thus not breaking old clients that read those fields for inputs of a specific execution.

Looks good to me. @matthewphsmith Would recommend directly deploying and testing this in staging before merging to master. (Also you might need a +1 from someone else after you push more tests - new github setting)


slow-mo mode doesn't highlight conditional in loop

For the following code:
let x = 0
input.onButtonPressed(Button.A, () => {
    basic.showIcon(IconNames.SmallHeart)
})
x = 1
while (x > 0) {
    x = x + 1
    basic.pause(100)
}

You'll see that the two statements in the while loop are highlighted during slow-mode (snail) execution but the loop expression never is:

Same problem with for-loops


internal/filetransfer: implement upsert and delete for file transfer config

Fixes: https://github.com/moov-io/paygate/issues/147

Codecov Report

Merging #266 into master will decrease coverage by 3.86%.
The diff coverage is 43.24%.

@@            Coverage Diff             @@
##           master     #266      +/-   ##
==========================================
- Coverage   61.19%   57.32%   -3.87%
==========================================
  Files          37       37
  Lines        4718     4750      +32
==========================================
- Hits         2887     2723     -164
- Misses       1288     1503     +215
+ Partials      543      524      -19

Impacted Files
Coverage Δ

internal/filetransfer/config.go
64.77% <43.24%> (-0.7%)
:arrow_down:

internal/accounts.go
10.95% <0%> (-69.87%)
:arrow_down:

internal/database/mysql.go
10.66% <0%> (-48%)
:arrow_down:

internal/ofac/client.go
38.65% <0%> (-35.3%)
:arrow_down:

internal/filetransfer/sftp.go
47.08% <0%> (-24.87%)
:arrow_down:

internal/microDeposits.go
64.14% <0%> (-1.52%)
:arrow_down:

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 4fe6bf6...caba887. Read the comment docs.


Upgrade setuptools to 36.5.0

This allows projects to specify their metadata in setup.cfg instead of setup.py.

The Travis fail is invalid -- but have you tested this locally? I'm a little hesitent to futz with setuptools by itself, without the other related bits (virtualenv, pip, etc)

Do you want me to upgrade the other tools as well?

@agronholm do you think there is any reason the current versions would be at odds with the new setuptools? we should be running more recent versions of each of the tools, but I'm not sure it makes a difference to us to upgrade in unison.
I'm playing around more with package configuration in setup.cfg in other projects, it's a rather nice alternative to setup.py 🙂

No, I don't.  I've seen those situations with at least setuptools and requests.
On another note, I will update the PR to the latest setuptools.

@ericholscher seems like Travis passes now, so do you still need me to run some checks locally?

Yea, travis is just code checks, this change will likely only effect actual builds, which is a hard thing to test in CI. This is another good use as @agjohnson mentioned for feature flags, would be nice to roll this out conditionally, and make sure it doesn't blow up on random environments.

#3171 bumps this again, will continue my work there.
I have a feature flag branch i'll be prepping for review today. We should be able to get this out with a basic feature flag so we're not indiscriminately forcing latest setuptools on projects. I'll follow up with a feature flag addition on #3171


Can mybatis support a list or an array as a parameter and there is no need to use ？

Can mybatis support a list or an array as a parameter and there is no need to use ？
For example:
SQL:select name from my_table where id in (#{idList})

I have written a mybatis plugin base on mybatis3.1，code here https://github.com/gaohanghbut/mybatis-list-param/blob/master/src/main/java/cn/yxffcode/mybatis/ListParameterResolver.java

I think you have found your answer.
Your plugin may be useful when there are many arrays or lists with simple type elements.
Thank you for sharing!


read the dependencies from requirements.txt and pass them into the setup

ensures dependencies will be installed when this package gets installed
allows to use pip install -e . to do the installation
closes #6

@linknum23 -- the extra try-except safeguard makes sense but didn´t get included into the merge -- just wanted to make you aware


Inconsistent polygons between Mac and Linux

Three Natural Earth polygons (Antarctica, Canada, and Indonesia) from ne_110m_admin_0_countries get encoded differently on Mac vs Linux, making the tests flaky.
Removed from test as a workaround in https://github.com/mapbox/tippecanoe/commit/886b2c3350eb4754e10c1fdf64fcefc0bcb4e411.
Must be floating point calculations somewhere in Clipper, but I'm not sure where.

The specific polygons that come out different: https://gist.github.com/ericfischer/1446a3d1621a910c927a
It's noteworthy that both versions appear to have the same vertices, just in a different order, so maybe there is some additional canonicalization that would make them identical.

@springmeyer points out that this is because of https://github.com/mapnik/node-mapnik/issues/442 and will be fixed by incorporating the https://github.com/mapnik/clipper/ clipper fork.

@ericfischer fyi: here is the branch/hash we are currently using of clipper: https://github.com/mapbox/mapnik-vector-tile/blob/master/Makefile#L17

Thanks @springmeyer. I'll try that branch. After swapping in the version from master I'm seeing some crashes in tippecanoe (close_poly, apparently with a bogus reference in geom) so there's a bug in the glue code that I need to track down.

The crash goes away with the newer branch, and may have been from some of my object files still having been built with the old headers.
Code coverage check is unfortunately failing again in https://github.com/mapbox/tippecanoe/pull/173, but manual tests are looking encouraging, including the ones that weren't matching across platforms before.


Translate blog/spring-boot-dubbo-start-stop-analysis.md to English from Chinese - Team 6

What is the purpose of the change
Translate blog/spring-boot-dubbo-start-stop-analysis.md to English from Chinese.
Resolve #95.
Brief changelog
Add translated blog/en-us/spring-boot-dubbo-start-stop-analysis.md
Prefect layout of blog/zh-cn/spring-boot-dubbo-start-stop-analysis.md
Finish the configuation of site_config/blog.js
Run docsite start to output html file
BaiJi training camp 269 Team No.6, Alibaba-Inc.
Follow this checklist to help us incorporate your contribution quickly and easily:

[x] Make sure there is a GITHUB_issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a GITHUB issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Test your code locally by running docsite start, and make sure it works as expected.
[x] Make sure no files under build directory is added.
[x] If this contribution is large, please follow the Software Donation Guide.

"Therefore, it is necessary to explicity start a thread and continue to wait under certain conditions, thereby avoid thread exit."
I guess "explicity" should be replaced with "explicitly". ——Team8

@ChasePGit Fixed.Thanks a lot.


feat: Custom x-powered-by header

Description
It would be very nice if Dart Frog would update the x-powered-by Header to something like: Dart with Dart Frog and or if we would be able to change this header/remove it somehow.
Requirements

[x] Set x-powered-by
[x] add a way to remove this header

Nice
Thanks for the fast Implementation 👌
Could we add a method so that Middleware's can change or remove this header👀

We can change the header with this, but not remove it.
We need to set the HeaderValue to null if we want to remove it.
So maybe we should set it to null in shelf and set the header custom in dart_frog, so that we can change/remove it on the fly🤔
The following for example is giving you the default:
import 'package:dart_frog/dart_frog.dart';

Middleware poweredByHeader(String? value) {
  return (handler) {
    return (context) async {
      final response = await handler(context);
      return response.copyWith(
        headers: Map.of(response.headers)
          ..update('X-Powered-By', (_) => value, ifAbsent: () => value),
      );
    };
  };
}

Handler middleware(Handler handler) {
  // `null` to omit the header
  return handler.use(poweredByHeader(null));
}

Resulting Response:
"x-powered-by":"dart with package:dart_frog"

We can change the header with this, but not remove it. We need to set the HeaderValue to null if we want to remove it. So maybe we should set it to null in shelf and set the header custom in dart_frog, so that we can change/remove it on the fly🤔
The following for example is giving you the default:
import 'package:dart_frog/dart_frog.dart';

Middleware poweredByHeader(String? value) {
  return (handler) {
    return (context) async {
      final response = await handler(context);
      return response.copyWith(
        headers: Map.of(response.headers)
          ..update('X-Powered-By', (_) => value, ifAbsent: () => value),
      );
    };
  };
}

Handler middleware(Handler handler) {
  // `null` to omit the header
  return handler.use(poweredByHeader(null));
}

Resulting Response: "x-powered-by":"dart with package:dart_frog"

If you want to remove the header, you can set it to null when calling serve in a custom entrypoint:
import 'dart:io';

import 'package:dart_frog/dart_frog.dart';

Future<HttpServer> run(Handler handler, InternetAddress ip, int port) {
  return serve(handler, ip, port, poweredByHeader: null);
}


⚠ Bofrost.at has degraded performance

In c75b2b6, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1858 ms

Resolved: Bofrost.at performance has improved in a99eb05 after 6 minutes.


Fix merge conflicts

There were other changes required when merging master into the branch and I've addressed them so I'm going to close this one out.


Reduce bundle size

Main bundle size is coming from support for SVG parsing for Icon component (i.e. parse5, rehype*, hast* packages).
See<EMAIL_ADDRESS>Aside from the above concern, and also potentially using explicit fela plugins instead of fela-preset-web, the package is unlikely to be reduced.
Explore ways or potentially rethink icons system spec to reduce the bundle size requirement.

Fixed in 9301c2a, switching to svg-parser (hast-compatible)


Clustered bar chart?

is there any way to get 2 data fields to cluster like the standard PBI clustered bar chart using deneb / vega-lite?

I'm going to be closing this as a simple way of managing (with x/y offset) is on the VL roadmap and is currently a language limitation. The above example has now been published to the main Vega-Lite examples site, which may assist with this particular challenge.
I've done a quick extension of this example in the visual and while I haven't gone completely all the way there, this looks okay (with the unfortunate exception of having to prescribe step width and height due to faceting):

Spec for this as follows (with config in-lined):
{
  "data": {"name": "dataset"},
  "width": {"step": 15},
  "height": 250,
  "config": {
    "view": {"stroke": "transparent"},
    "font": "Segoe UI",
    "header": {"title": null},
    "axis": {
      "grid": false,
      "domain": false,
      "ticks": false,
      "tickCount": 5,
      "labelPadding": 10,
      "title": null
    },
    "axisX": {"disable": true},
    "legend": {
      "orient": "top",
      "title": null
    }
  },
  "mark": {
    "type": "bar",
    "tooltip": true
  },
  "encoding": {
    "column": {
      "field": "Country",
      "header": {"orient": "bottom"}
    },
    "color": {"field": "Product"},
    "x": {"field": "Product"},
    "y": {
      "field": "$ Sales",
      "type": "quantitative",
      "axis": {
        "format": "$#0,,,.0bn",
        "formatType": "pbiFormat"
      }
    }
  }
}

nice work.  thank you.

Although this is closed, Vega-Lite 5.2.0 has the new offset channel is added in 5.2.0, including 2 examples:

Grouped Bar Chart
Grouped Bar Chart(with repeat)

5.2.0 ia scheduled for #158 / v1.1


Invalid p.account.findUnique() invocation with prisma

Title
Invalid p.account.findUnique() invocation with prisma
How to reproduce ☕
next-auth: 4.0.0-beta.7
@next-auth/prisma-adapter: 0.5.2-next.19
/pages/api/[...nextauth].ts
import { PrismaAdapter } from '@next-auth/prisma-adapter';
import { hasBetaAccess } from 'lib/backend-utils';
import { prisma } from 'lib/prisma';
import NextAuth from 'next-auth';
import Discord from 'next-auth/providers/discord';

export default NextAuth({
  adapter: PrismaAdapter(prisma),
  providers: [
    Discord({
      clientId: process.env.CLIENT_ID,
      clientSecret: process.env.CLIENT_SECRET,
      authorization: 'https://discord.com/api/oauth2/authorize?scope=identify+guilds',
      profile(profile) {
        let image_url: string;

        if (profile.avatar === null) {
          const defaultAvatarNumber = parseInt(profile.discriminator, 10) % 5;
          image_url = `https://cdn.discordapp.com/embed/avatars/${defaultAvatarNumber}.png`;
        } else {
          const format = profile.avatar.startsWith('a_') ? 'gif' : 'png';
          image_url = `https://cdn.discordapp.com/avatars/${profile.id}/${profile.avatar}.${format}`;
        }

        return {
          id: profile.id,
          username: profile.username,
          discriminator: profile.discriminator,
          avatar: image_url,
          profile: {
            vanity: profile.id,
            user_id: profile.id,
          },
        };
      },
    }),
  ],
  callbacks: {
    async session({ session, user }) {
      return {
        ...session,
        user,
      };
    },
    async signIn({ user }) {
      // Check for a development environment
      if (process.env.NODE_ENV === 'development') return true;

      // Check if the user has access to the beta
      const betaUser = user.beta || (await hasBetaAccess(user.id));
      return betaUser ? true : '/?error=AccessDenied';
    },
  },
});

Account schema
model Account {
  id                 String  @id @default(cuid()) @map("_id")
  userId             String  @map("user_id")
  type               String
  provider           String
  providerAccountId  String  @map("provider_account_id")
  refresh_token      String?
  access_token       String?
  expires_at         Int?
  token_type         String?
  scope              String?
  id_token           String?
  session_state      String?

  user User @relation(fields: [userId], references: [id], onDelete: Cascade)

  @@unique([provider, providerAccountId])
  @@map("accounts")
}

Your question/bug report 📓
The bug below results from the above code. It is worth noting I am using MongoDB and not any sort of SQL.
Invalid `p.account.findUnique()` invocation in
C:\Users\folder\path\node_modules\@next-auth\prisma-adapter\dist\index.js:11:45

   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),
   9 async getUserByAccount(provider_providerAccountId) {
  10     var _a;
→ 11     const account = await p.account.findUnique({
           where: {
             provider_providerAccountId: {
             ~~~~~~~~~~~~~~~~~~~~~~~~~~
               providerAccountId: '366652352125599744',
               provider: 'discord'
             }
           },
           select: {
             user: true
           }
         })

Unknown arg `provider_providerAccountId` in where.provider_providerAccountId for type AccountWhereUniqueInput. Available args:

type AccountWhereUniqueInput {
  id?: String
}

Contributing  🙌🏽
Yes, I am

This is similar to #288 but there are a few differences that are big enough to give me a reason to create a new issue.

There is a separate MongoDB adapter. MongoDB with Prisma hasn't been tested.

Sorry, closed by accident. Would be happy to add support/tests, but currently, I cannot speak of how to get this working. ALthough the issue doesn't seem to be MongoDB specific.
Could you see if it works without the mapping stuff?

Currently testing over on https://github.com/TeamDmod/dmod/tree/prisma, the entire codebase is a mess so it's being rewritten. Just started work on integrating prisma as the ORM today.
I would be happy to help run some tests, and I will try to reproduce the issue in a clean project. I shall try without the mapping to snake_case tomorrow.

So based off of your debug output, it doesn't look like your Account model has any other available unique fields to query on, even though the [provider, providerAccountId] is clearly defined in the schema.. :thinking:
See:
Unknown arg `provider_providerAccountId` in where.provider_providerAccountId for type AccountWhereUniqueInput. Available args:

type AccountWhereUniqueInput {
  id?: String
}

However, looking through the docs, I see that you can optionally give @unique and @@unique values a specific name now to query by (https://www.prisma.io/docs/concepts/components/prisma-schema/names-in-underlying-database#constraint-and-index-names)
i.e. @@unique([pageId, readerId], name: "bookmark_page_id_reader_id_key")
You may also be able to use findOne instead

Same issue here, I'm using Google Provider with Prisma Adapter.
[next-auth][debug][adapter_getUserByAccount] {
  args: [
    { providerAccountId: '117367287917655988076', provider: 'google' }
  ]
}
[next-auth][error][adapter_error_getUserByAccount]
https://next-auth.js.org/errors#adapter_error_getuserbyaccount
Invalid `p.account.findUnique()` invocation in
/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:45

   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),
   9 async getUserByAccount(provider_providerAccountId) {
  10     var _a;
→ 11     const account = await p.account.findUnique(
  The table `(not available)` does not exist in the current database. {
  message: '\n' +
    'Invalid `p.account.findUnique()` invocation in\n' +
    '/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:45\n' +
    '\n' +
    '   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),\n' +
    '   9 async getUserByAccount(provider_providerAccountId) {\n' +
    '  10     var _a;\n' +
    '→ 11     const account = await p.account.findUnique(\n' +
    '  The table `(not available)` does not exist in the current database.',
  stack: 'Error: \n' +
    'Invalid `p.account.findUnique()` invocation in\n' +
    '/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:45\n' +
    '\n' +
    '   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),\n' +
    '   9 async getUserByAccount(provider_providerAccountId) {\n' +
    '  10     var _a;\n' +
    '→ 11     const account = await p.account.findUnique(\n' +
    '  The table `(not available)` does not exist in the current database.\n' +
    '    at cb (/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@prisma/client/runtime/index.js:38688:17)\n' +
    '    at async getUserByAccount (/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:29)',
  name: 'Error'
}

Same issue here, I'm using Google Provider with Prisma Adapter.
error - unhandledRejection: Error:
Invalid `p.account.findUnique()` invocation in
/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:13

   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),
   9 async getUserByAccount(provider_providerAccountId) {
  10     var _a;
→ 11     const account = await p.account.findUnique(
  The table `(not available)` does not exist in the current database.

No, that looks like a different error. Have you made sure to run npx prisma migrate?

@MattA-Official yes, I've done.
I'm sure that is the same issue. I'm mapping my tables and got this error.
[next-auth][debug][adapter_getUserByAccount] {
  args: [
    { providerAccountId: '117367287917655988076', provider: 'google' }
  ]
}
[next-auth][error][adapter_error_getUserByAccount]
https://next-auth.js.org/errors#adapter_error_getuserbyaccount
Invalid `p.account.findUnique()` invocation in
/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:45

   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),
   9 async getUserByAccount(provider_providerAccountId) {
  10     var _a;
→ 11     const account = await p.account.findUnique(
  The table `(not available)` does not exist in the current database. {
  message: '\n' +
    'Invalid `p.account.findUnique()` invocation in\n' +
    '/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:45\n' +
    '\n' +
    '   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),\n' +
    '   9 async getUserByAccount(provider_providerAccountId) {\n' +
    '  10     var _a;\n' +
    '→ 11     const account = await p.account.findUnique(\n' +
    '  The table `(not available)` does not exist in the current database.',
  stack: 'Error: \n' +
    'Invalid `p.account.findUnique()` invocation in\n' +
    '/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:45\n' +
    '\n' +
    '   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),\n' +
    '   9 async getUserByAccount(provider_providerAccountId) {\n' +
    '  10     var _a;\n' +
    '→ 11     const account = await p.account.findUnique(\n' +
    '  The table `(not available)` does not exist in the current database.\n' +
    '    at cb (/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@prisma/client/runtime/index.js:38688:17)\n' +
    '    at async getUserByAccount (/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:29)',
  name: 'Error'
}

@MattA-Official yes, I've done.
I think is the same issue. I'm just mapping my models. But when the Google auth is finished, Prisma Provider got me that error.

The error messages say two completely different things, it could be related, but I doubt it. The original one is where an individual field isn't unique for some reason. Your one is where the table itself doesn't exist in the database, which isn't a possible error with mongo as it doesn't check for these things.

@MattA-Official anyway this is what I got when I remove the @unique in Account model:
[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error
Invalid `p.account.findUnique()` invocation in
/Users/mateonunez/Documents/dev/boilerplates/base-fullstack-javascript/node_modules/@next-auth/prisma-adapter/dist/index.js:11:45

   8 getUserByEmail: (email) => p.user.findUnique({ where: { email } }),
   9 async getUserByAccount(provider_providerAccountId) {
  10     var _a;
→ 11     const account = await p.account.findUnique({
           where: {
             provider_providerAccountId: {
             ~~~~~~~~~~~~~~~~~~~~~~~~~~
               providerAccountId: '117367287917655988076',
               provider: 'google'
             }
           },
           select: {
             user: true
           }
         })

Unknown arg `provider_providerAccountId` in where.provider_providerAccountId for type AccountWhereUniqueInput. Available args:

type AccountWhereUniqueInput {
  id?: String
}

It seems the same output!
These are my Models:
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema

generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["dataProxy"]
}

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

model Account {
  id                String   @id @default(cuid())
  userId            String   @map("user_id")
  type              String
  provider          String
  providerAccountId String   @map("provider_account_id")
  refresh_token     String?
  access_token      String?
  expires_at        Int?
  token_type        String?
  scope             String?
  id_token          String?
  session_state     String?
  createdAt         DateTime @default(now()) @map(name: "created_at")
  updatedAt         DateTime @default(now()) @map(name: "updated_at")

  user User @relation(fields: [userId], references: [id], onDelete: Cascade)

  @@map("accounts")
}

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

  accounts Account[]
  sessions Session[]

  @@map("users")
}

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

  user User @relation(fields: [userId], references: [id], onDelete: Cascade)

  @@map("sessions")
}

model VerificationToken {
  identifier String
  token      String   @unique
  expires    DateTime
  createdAt  DateTime @default(now()) @map(name: "created_at")
  updatedAt  DateTime @default(now()) @map(name: "updated_at")

  @@map("verification_tokens")
}

I have a similar issue when I added supabase DB connection string in environment variable.

database successfully migrated
seed is working
But when I try to login it throws an error saying credentials are wrong!

[next-auth][error][OAUTH_CALLBACK_HANDLER_ERROR]
https://next-auth.js.org/errors#oauth_callback_handler_error
Invalid `p.account.findUnique()` invocation in

Please make sure to provide valid database credentials for the database server at `db.xyz.supabase.co`.
    at cb (/Users/pranjalsoni/Desktop/projects/course project/code-course-platform/node_modules/@prisma/client/runtime/index.js:38697:17)
    at async getUserByAccount (/Users/pranjalsoni/Desktop/projects/course project/code-course-platform/node_modules/@next-auth/prisma-adapter/dist/index.js:11:29) {
  name: 'GetUserByAccountError',
  code: undefined

@mateonunez you're model seems to be missing one crucial line from our default model, at the end of the Account section, please add:
@@unique([provider, providerAccountId])

We've manually told the prisma model that provider__providerAccountId should be unique, and yuo're model seems to be missing that, therefore the failed request there.
See: https://github.com/nextauthjs/adapters/blob/1923ebf1f69ee9c4549a9c80703d7d795da0827b/packages/prisma/prisma/schema.prisma#L36

@MattA-Official the crux of your issue seems to be the same, right? That @@unique([provider, providerAccountId]) isn't being applied, so to speak.
I did some digging through the Prisma docs, and it seems in the case of MongoDB, you must create this @@unique compound index yourself - Prisma can't/doesn't (not sure) do it in Mongo yet.
See: https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#mongodb-4

Here is my models, I am not able to figure out what is going on 🥲
model Account {
  id                 String  @id @default(cuid())
  userId             String
  type               String
  provider           String
  providerAccountId  String
  refresh_token      String? @db.Text
  access_token       String? @db.Text
  expires_at         Int?
  token_type         String?
  scope              String?
  id_token           String? @db.Text
  session_state      String?
  oauth_token_secret String?
  oauth_token        String?

  user User @relation(fields: [userId], references: [id], onDelete: Cascade)

  @@unique([provider, providerAccountId])
}

model Session {
  id           String   @id @default(cuid())
  sessionToken String   @unique
  userId       String
  expires      DateTime
  user         User     @relation(fields: [userId], references: [id], onDelete: Cascade)
}

model User {
  id            String    @id @default(cuid())
  stripeId      String?   @unique
  isSubscribed  Boolean   @default(false)
  name          String?
  email         String?   @unique
  emailVerified DateTime?
  image         String?
  accounts      Account[]
  sessions      Session[]
  courses       Course[]
}

model VerificationToken {
  identifier String
  token      String   @unique
  expires    DateTime

  @@unique([identifier, token])
}

Soni, without any further information, it seems like prisma can't login to your supabase database. Are you sure the credentials are entered correctly? Does supabase require any sort of IP Whitelisting maybe?

Hi @ndom91, thank you for your response.

Yes, I have provided the correct credentials. That's why migrations are working, seeding is working, but the only problem is in next-auth.

I am facing same issue, I did migrate npx prisma migrate.
 model Account {     id                 String    @id @default(cuid())     userId             String     providerType       String     providerId         String     providerAccountId  String?     refreshToken       String?     accessToken        String?     accessTokenExpires DateTime?     createdAt          DateTime  @default(now())     updatedAt          DateTime  @updatedAt     user               User      @relation(fields: [userId], references: [id])     @@unique([providerId, providerAccountId])   }

@krishnaUIDev can you provide more detail as well? i.e. your config and copy of the error msg, etc. Thanks!
@sonipranjal okay but it still seems that prisma is having issues. Can you successfully run npx prisma studio to open the database viewer UI thing? Does that connect successfully? If so, can you share how yuo're using that p.account.findUnique() exactly?


Added new feature: Modal/dialog should be closed with Esc key

I added a new feature for issue-7.
I used keycode to close modal and I used code that is similar to "function handleCloseLessonModal()"
let me know if I need to update more or have some issue
Thank you :)
I modify the code but I couldn't use my last PR because I have an error about rebase
So I added new PR here which I modified code following your advice

Hey @sonechca, I was wondering if you're still working on this?


Allowing non-negative integer variables

Is your feature request related to a problem? Please describe.
I don't understand why it should not be possible to create non-negative integer variables. At the moment, this is forbidden due to the following exception being raised:
counts = cp.Variable(shape=5, integer=True, nonneg=True)

ValueError: Cannot set more than one special attribute in Variable.

Describe the solution you'd like
I don't see why this should pose a problem and it would just require some special casing for the logic that raises the ValueError.
Describe alternatives you've considered
I know that I can add a constraint counts >= 0 but counts.sign is 'UNKNOWN' when it should really be 'NONNEGATIVE'.

The reason we forbid this is because we project the optimal value of variables returned by the solver onto the constraints encoded in the variable attributes, and in the fully general case of arbitrary attributes this becomes another convex optimization problem (e.g., PSD + nonneg). Whereas if we restrict things to a single attribute then we have closed form solutions.
This particular combination of attributes is of course simple and could in theory be supported. But I'm not super comfortable permitting multiple attributes in some cases but not others.

Alright. Fair enough.

@Midnighter if you need counts.sign == 'NONNEGATIVE, then you could probably add a nonneg_wrap atom much like our psd_wrap atom: https://github.com/cvxpy/cvxpy/blob/master/cvxpy/atoms/affine/wraps.py.


How to build an electron app using HyperApp?

You can build Electron apps using React, Vue, etc.
It would be awesome if we could do the same using HyperApp.
HyperTron? 😏

You can build an Electron with litteraly everything is just a browser which capable to load only your content (JS, CSS, HTML).
I donc think, this need to be in the Hyperapp scope. Everyone who know well Electron, know it could be possible.
Samething with Cordova, Node-webkit, Crosswalk, etc..
I am experimenting with Nativescript too.
I love Hyperapp because its FIRST and KISS. I am running away from React, Vue, Ember because of thing everywhere.

I am going to do this next week, will push a template repo up when it is done and tested!

https://github.com/lukejacksonn/hyperapp-electron 😉

@lukejacksonn Looks super cool! Let's close here and add that nugget to the awesome list. 👊😄:+1:


Initial commit

What CDN does this PR relate to

Does this require running via sniproxy

Capture method

Testing Scenario

Testing Configuration
<!-- Paste either your docker run command from the DNS container OR explain how you have setup DNS zone files etc to test this issue -->

Sniproxy output
Please paste the output from docker logs <sniproxy container name/id> | sed 's/.*\:443 \[//;s/\].*//' | sort | uniq -c below
<!-- If you are running sniproxy paste the output to the following command
docker logs <sniproxy container name/id> | sed 's/.*\:443 \[//;s/\].*//' | sort | uniq -c
-->

This PR doesn't appear to contain any content. If you were trying to submit something to the project then please try again.


Babylon changes?

Are there going to be changes made to this library for the Babylon proposal?

Following

Seems to have been added


The search does not start with s key press as stated in the docs, it instead deletes a character under the cursor and enters insert mode

The plugin is installed @ path ~/.local/share/lunarvim/site/pack/lazy/opt/leap.nvim
I use LunarVim.

Have you defined keymappings? (require('leap').add_default_mappings() or custom ones)

Add the the require('leap').add_default_mappings(true) did the trick.
Now I am thinking whether I should remap original s and S. I used s heavily.

Thanks @ggandor
Closing this!

I used s heavily

IMHO using cl and cc is as comfortable as it gets.


@badeball/cypress-cucumber-preprocessor does not read "And" keyword

Current behavior
Hi!
I´m trying to run "And" keyword using Cypress, Gherkin and @badeball and I´ve got this error:

I was reviewing the code of the library and I cannot see the "And" keyword neither "But".

I don´t know if it was the last version. Can you help me with that?
Thanks in advance
Versions
@badeball/cypress-cucumber-preprocessor: "^21.0.3"
@bahmutov/cypress-esbuild-preprocessor: "^2.2.3"
cypress: "^13.15.2"

https://github.com/badeball/cypress-cucumber-preprocessor/issues/821


Babel6 compatibility

Support babel6 + update various demo apps that were lagging behind a bit

I think some of the imports can be simplified, similar to what they used to be, given that we are using babel-plugin-transform-export-extensions. Maybe we should investigate this and see if this is the case to keep the projects consistent. Other than that it looks ready to merge.


Pushing to Hugging Face hub branches (revisions) and tags not working

When using the fine-tuned model's push_to_hub_merged and push_to_hub_gguf functions, the specified revision is not used and things are instead pushed to the default active branch.
Looking through the save.py code, 'd say you need to modify the upload_to_huggingface function by adding "revision" and "tags" arguments and use those in the push_to_hub and upload_file functions enclosed therein. Maybe do similarly in other places as needed.
Would be very thankful for a fix or tips if I got something wrong.
Many thanks for your work and great framework!

Sorry on the issue! I'll see what I can do!

Thank you for looking into this. Also, in a related manner, the commit_messageand commit_description that are passed to the unsloth_push_to_hub_merged and unsloth_push_to_hub_gguf functions are not used. A push to Hugging Face only shows up with the commit message "(Trained with Unsloth)" even though a specific message was passed. I think this should be easy to fix (see my opening issue message). Many thanks in advance!

Oh so sorry this got buried - I'll recheck the issue


How to pass this script block

This may be simple,but i tried many variations of below script...Any suggestions would be greatly helpfull
$scriptblock ={
get-service -ComputerName $parameter.computername | where {$_.name -eq $parameter.serviceName }
}

$pscustomobject = @()

$pscustomobject += [pscustomobject]@{
Computername ='server1'
Servicename ="service1"
}

$pscustomobject += [pscustomobject]@{
Computername ='server2'
Servicename ="service2"
}

Now i tried invoking it like below variations
Invoke-Parallel -ScriptBlock $scriptblock -Parameter $pscustomobject
"server1","server2" | Invoke-Parallel -ScriptBlock $scriptblock -Parameter $pscustomobject
Some services exist in some servers and some other servers ,they dont,so i created pscustom object which maps services to servers

Hi @sateeshmachineni,
You are assigning 2 pscustomobjects to the variable $pscustomobject, then in the scriptblock attempting to match on each.  I believe that it is failing because it is lacking an iteration method.
As I understand the Invoke-Parallel cmdlet, -Parameter allows passing a set of static values into the script block without iteration.
To iterate on a list coming into the scriptblock would require passing list into Invoke-Parallel by using either the pipeline or -InputObject.
Here is an untested example, but it should work:
$scriptblock ={
$ComputerName = $_.Computername
$ServiceName = $_.Servicename
get-service -ComputerName $ComputerName | where {$_.name -eq $ServiceName }
}

$pscustomobject = @()

$pscustomobject += [pscustomobject]@{
Computername ='server1'
Servicename ="service1"
}

$pscustomobject += [pscustomobject]@{
Computername ='server2'
Servicename ="service2"
}

Invoke-Parallel -ScriptBlock $scriptblock -InputObject $pscustomobject

$pscustomobject | Invoke-Parallel -ScriptBlock $scriptblock

Cheers,
Alan

Thank you @dieselVtwin and sorry for late reply...


[ADD] What are community Standards to README

The readme for this page will like be the readme for the project. It would be good to explain what Github's Community Standards are. Sadly, I don't see much in the documentation. So perhaps we get a screenshot when our standards are up to snuff.

Duplicate of #6
hc-I believe this is a duplicate issue because the "Github Community Standards" will live in ./README.md
Before realizing this was a duplicate, I grabbed screenshots of the default(nothing completed except default public repo docs).
Gonna assign this to @jennjunod, she is working on same issue.
-hc


-Z flag set but lower zoomlevels get still processed

I want to process each z-level separately so I set -z = -Z and this gives the correct results. But what I observe from the shell-output is, that z-levels < -Z are also processed, while they luckily don´t get written to the mbtiles file.
Looks to me like this makes the processing time a lot longer then necessary.
Is there a way to completly avoid  0 to -Z levels.
Nevertheless I wanted to thank you for your work. i'm so glad that I found tippecanoe.

@indus Some of the processing still has to take place at low zooms to subdivide the features into the higher-zoom tiles that they will eventually end up in. It will skip over as many intermediate zooms as it can given the number of CPUs your computer has and the number of files it can have open at one time, but it will always need to look at zoom level 0 and possibly some others in between.
There might be some possibility of optimizing for non-global data sets by finding the single highest-zoom tile that all the features fit in. For instance if all your features are in Germany it could start with 4/8/5 instead of working all the way from 0/0/0.

Should be fixed in https://github.com/mapbox/tippecanoe/pull/341

Thanks for the quick response ;-)

Thanks for suggesting the improvement!


python3Packages.pyobjc-core: init at 10.3.1

Description of changes

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Hi, can anyone please review?

Any more issues there?

It looks like most of the oustanding requested changes were addressed in c0ea0f0a072dab2933867904fe6aca20dd4de708.  Is there anything else blocking these being merged?

@ferrine Are you on Matrix? I've been chatting with @emilazy about this PR there and there's now a much easier way to do it. Your work just fell into a crack between the old way and the new way,

Not yet on matrix, let me join

This is about to become much simpler. A build of darwin.libffi is coming: #354108
The rest of the build becomes easier. You can remove the darwin import and all of the BuildInputs (and the xcodebuild reference); these are all provided automatically for Darwin builds now.
I can take a look at the unusual test setup and see if I can fit it into the standard model. The same for replacing the substitutions with patches (it's much clearer to read then).

@ferrine could you rebase this over master, please? It's the one thing I can't do for you directly.

@ferrine could you rebase this over master, please? It's the one thing I can't do for you directly.

Did that today and got two errors in tests, will push soon

These new errors appeared
error: builder for '/nix/store/vp41w5311igaw6rjz98qriwk3nadfzda-python3.12-pyobjc-core-10.3.1.drv' failed with exit code 1;
       last 25 log lines:
       > test_cannot_create (PyObjCTest.test_varlist.TestVarlistVarious.test_cannot_create) ... ok
       >
       > ======================================================================
       > FAIL: testSignatureCount (PyObjCTest.test_splitsig.SplitSignatureTest.testSignatureCount) (cls='NSObject', sel=b'_ns:setObservationTrackingDictionary:')
       > ----------------------------------------------------------------------
       > Traceback (most recent call last):
       >   File "/private/tmp/nix-build-python3.12-pyobjc-core-10.3.1.drv-0/pyobjc_core-10.3.1/PyObjCTest/test_splitsig.py", line 174, in testSignatureCount
       >     self.assertEqual(
       > AssertionError: 1 != 2 : _ns:setObservationTrackingDictionary: [1:2] (b'v', b'@', b':', b'@') <objective-c class NSObject at 0x1f93a0330>
       >
       > ======================================================================
       > FAIL: testSignatureCount (PyObjCTest.test_splitsig.SplitSignatureTest.testSignatureCount) (cls='NSObject', sel=b'isNSURL::')
       > ----------------------------------------------------------------------
       > Traceback (most recent call last):
       >   File "/private/tmp/nix-build-python3.12-pyobjc-core-10.3.1.drv-0/pyobjc_core-10.3.1/PyObjCTest/test_splitsig.py", line 174, in testSignatureCount
       >     self.assertEqual(
       > AssertionError: 0 != 2 : isNSURL:: [0:2] (b'B', b'@', b':') <objective-c class NSObject at 0x1f93a0330>
       >
       > ----------------------------------------------------------------------
       > Ran 3786 tests in 475.284s
       >
       > FAILED (failures=2, skipped=4, expected failures=3)
       > SUMMARY: {'count': 3786, 'fails': 2, 'errors': 0, 'xfails': 3, 'xpass': 0, 'skip': 4}
       > error: some tests failed
       > hello
       For full logs, run 'nix log /nix/store/vp41w5311igaw6rjz98qriwk3nadfzda-python3.12-pyobjc-core-10.3.1.drv'.

This is one of the last things to merge https://github.com/cachix/devenv-nixpkgs/pull/9, how can I help?

I'm getting a whole series of linker warnings:
ld: warning: directory not found for option '-L/nix/store/eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee-gdbm-1.24-lib/lib'

and can't complete the compilation step.

I believe @sarahec was working on this

Apologies. I spent yesterday getting an updated ID and passport and have been away from the keyboard.

I have this working and just need to figure out how to send the changes

Ugh. There's a bunch of patches missing. I may have to open a fresh PR and link back to this one.

I'm happy if you help with this

I finished the patch. Unfortunately, I had to open a new PR (#358063)
It couldn't be done here in suggestions, nor could I push code to this PR.

No problems, the progress you did is huge step forward anyway


Update website with 2019 sponsor logos

Sponsor list is as follows:
Avalara
Booz
Cisco
Guidepoint
RSA
SecureWorks
TrendMicro
Valiant
Veracode
ZScaler
Logos can be found on Google Drive in the Sponsorships/Logos directory.

Added the BSIDES RDU 2019 Sponsors via https://github.com/BSidesRDU/website/commit/758cb90ef5e9840883e4d48c9e609d92668ec3a7


add 1.20.5 support

NOT TESTED

changes how the MC version is detected
uses a different ComponentSerializer on 1.20.5+ for the item and lore of the item

Paper post https://forums.papermc.io/threads/important-dev-psa-future-removal-of-cb-package-relocation.1106/

Why revert Folia ?!

Why revert Folia ?!
Because it requires the project to be higher Java version than intended, it needs to stay on Java 8.
I was intending on doing it in a different way, the suggestion you gave is great. Ty!

Why revert Folia ?!

Because it requires the project to be higher Java version than intended, it needs to stay on Java 8. I was intending on doing it in a different way, the suggestion you gave is great. Ty!

Alright I understand. So reflection is the best solution.

Why revert Folia ?!

Because it requires the project to be higher Java version than intended, it needs to stay on Java 8.
I was intending on doing it in a different way, the suggestion you gave is great. Ty!

May I ask what the reason as to why it must stay on Java 8 despite most platforms, including Minecraft itself running on Java 17 by now?

May I ask what the reason as to why it must stay on Java 8 despite most platforms, including Minecraft itself running on Java 17 by now?

Because the library supports all the down to Spigot 1.8.8, there are a lot of legacy plugins depending on it and a sudden Java version change would not go well with them. This will change with v4 which will fully drop legacy support.


Placing order for FuturesContract on Binance

Can't submit market order for futures contract, details below:
java.lang.IllegalStateException: The instrument of this order is not a currency pair: BTC/USDT/perpetual 	at org.knowm.xchange.dto.Order.getCurrencyPair(Order.java:238) 	at org.knowm.xchange.binance.service.BinanceTradeService.placeOrder(BinanceTradeService.java:147) 	at org.knowm.xchange.binance.service.BinanceTradeService.placeMarketOrder(BinanceTradeService.java:101)
https://github.com/knowm/XChange/blob/9fd9618faeac567a516e68ba6e7108d58bd1504f/xchange-binance/src/main/java/org/knowm/xchange/binance/service/BinanceTradeServiceRaw.java#L52

I don't think it's possible to submit FutureContracts via BinanceTradeService atm


Not seeing language-markdown grammar classes in DOM

I started playing around with custom styling for markdown based on the language-markdown grammar but when I looked at the inspector I noticed I am not seeing the classes defined in the package (heading-1.md). Instead, I am seeing classes that follow the pattern syntax--heading-1:

I have syntax Markdown selected for the file. I also have the One Dark UI theme and Cobalt 2 syntax theme activated. Is the Cobalt theme somehow interfering with it?

See this blog for details, and the markdown styles from one of my themes for an example.
In essence, Atom prefixes all scopes added by grammars with syntax-- to avoid conflicts with global scopes of the same name. Just add the prefix to each className in your theme, and you should be fine. If you forget one, the deprecation cop in Atom will show a warning.

Got it, thanks!


fix: rust keyword conflict

Motivation
Fixes #343

Solution
Take all unique rust keywords and enforce them to be RawIdents in SolIdent

PR Checklist

[ ] Added Tests
[ ] Added Documentation
[ ] Breaking changes

@DaniPopes  Not sure why the CI is failing, everything on my local is working when i run the same commands. Any idea?

You have to rebase to main. Tests run on merge with main, not on the latest commit


Tye deploy doesn't respect namespace when checking kubectl cluster-info

Describe the bug
Some kubernetes providers doesn't allow you to access the "kube system". This is a problem when deploying, since the KubectlDetector class calls kubectl cluster-info.
No matter what namespace is defined for your current context, kubectl cluster-info always tries to retrieve from kube-system unless you directly specify kubectl cluster-info --namespace=my-namespace
The issue is that even if I try to deploy with tye deploy --namespace my-namespace it doesn't use that namespace when it checks if kubectl is connected to a cluster in IsKubectlConnectedToClusterAsync() - so in return I get a Forbidden error back, and since it has a non zero exit code, Tye says that kubectl is not connected to a cluster (even though it is).
Further technical details

Include the output of tye --version
0.11.0-alpha.22111.1+3edef5428949c518c078844d6438e5ba86fce600

If possible rerun the command with -v debug and include the output

$ tye deploy -v debug --namespace rsoeborg
Loading Application Details...
Restoring and evaluating projects
Resolved metadata for service site-crawler at /home/rso/repos/SDT/services/site.crawler/obj/Debug/net6.0/MicrosoftTye.ProjectMetadata.txt
Resolved metadata for service test-service at /home/rso/repos/SDT/services/test.service/obj/Debug/net6.0/MicrosoftTye.ProjectMetadata.txt
Resolved metadata for service auth-service at /home/rso/repos/SDT/services/auth.service/obj/Debug/net6.0/MicrosoftTye.ProjectMetadata.txt
Restore and project evaluation took: 1891.2194ms
Found application version: 1.0.0
RunCommand=/home/rso/repos/SDT/services/site.crawler/bin/Debug/net6.0/site.crawler
RunArguments=
TargetPath=/home/rso/repos/SDT/services/site.crawler/bin/Debug/net6.0/site.crawler.dll
PublishDir=bin/Debug/net6.0/publish/
AssemblyName=site.crawler
IntermediateOutputPath=obj/Debug/net6.0/
Found target framework: net6.0
Parsed target framework name: net
Parsed target framework version: 6.0
Found shared frameworks: Microsoft.NETCore.App, Microsoft.AspNetCore.App
IsAspNet=True
Evaluation Took: 2.6088ms
Found application version: 1.0.0
RunCommand=/home/rso/repos/SDT/services/test.service/bin/Debug/net6.0/test.service
RunArguments=
TargetPath=/home/rso/repos/SDT/services/test.service/bin/Debug/net6.0/test.service.dll
PublishDir=bin/Debug/net6.0/publish/
AssemblyName=test.service
IntermediateOutputPath=obj/Debug/net6.0/
Found target framework: net6.0
Parsed target framework name: net
Parsed target framework version: 6.0
Found shared frameworks: Microsoft.NETCore.App, Microsoft.AspNetCore.App
IsAspNet=True
Evaluation Took: 1.0948ms
Found application version: 1.0.0
RunCommand=/home/rso/repos/SDT/services/auth.service/bin/Debug/net6.0/auth.service
RunArguments=
TargetPath=/home/rso/repos/SDT/services/auth.service/bin/Debug/net6.0/auth.service.dll
PublishDir=bin/Debug/net6.0/publish/
AssemblyName=auth.service
IntermediateOutputPath=obj/Debug/net6.0/
Found target framework: net6.0
Parsed target framework name: net
Parsed target framework version: 6.0
Found shared frameworks: Microsoft.NETCore.App, Microsoft.AspNetCore.App
IsAspNet=True
Evaluation Took: 0.2791ms
Verifying kubectl installation...
Verifying kubectl connection to cluster...
Drats! 'deploy' failed:
        Cannot apply manifests because kubectl is not connected to a cluster.

The platform (Linux/macOS/Windows)

Linux running on WSL: cat /etc/os-release
NAME="Ubuntu"
VERSION="20.04 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04 LTS"
VERSION_ID="20.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=focal
UBUNTU_CODENAME=focal

Just to add to this issue:
In the ingress validation step, the namespace is set but not used when listing deployments: ListDeploymentForAllNamespacesWithHttpMessagesAsync, giving a 403 Forbidden as well
            // If namespace is null, set it to default
            config.Namespace ??= "default";

            var kubernetes = new Kubernetes(config);

            // Looking for a deployment using a standard label.
            // Note: using a deployment instead of a service - minikube doesn't create a service for the controller.

            try
            {
                var result = await kubernetes.ListDeploymentForAllNamespacesWithHttpMessagesAsync(
                    labelSelector: "app.kubernetes.io/name in (ingress-nginx, nginx-ingress-controller)");
                if (result.Body.Items.Count > 0)
                {
                    foreach (var service in result.Body.Items)
                    {
                        output.WriteInfoLine($"Found existing ingress controller '{service.Metadata.Name}' in namespace '{service.Metadata.NamespaceProperty}'.");
                    }

                    return;
                }
            }


plotjuggler: 2.1.8-0 in 'kinetic/distribution.yaml' [bloom]

Increasing version of package(s) in repository plotjuggler to 2.1.8-0:

upstream repository: https://github.com/facontidavide/PlotJuggler.git
release repository: https://github.com/facontidavide/plotjuggler-release.git
distro file: kinetic/distribution.yaml
bloom version: 0.7.2
previous version for package: 2.1.7-0

plotjuggler
* bug fixes
* xy equal scaling seems to work
* Super fancy Video cheatsheet (#164)
* better date display
* Fix issue #161 and remember last directory used
* mainwindow - use yyyy-MM-dd_HH-mm-ss name when saving a plot as png. This allows to save several times without having to rename the previous image (#162)
* Contributors: Davide Faconti, bresch

Holding for sync


167 participants screen

fire PARTICIPANTS_CHANGED event to native code whenever PARTICIPANT_JOINED, PARTICIPANT_LEFT or TRACK_UPDATED action is fired. The PARTICIPANTS_CHANGED event has payload of the current conference participants that are passed as string to ease the communication between JS and Java/Objective C.
expose new dispatchReduxAction(action) method to the public JitsiMeet interface which sends message to JS code to dispatch a redux action. To implement this communication between native and JS code I extended jitsi's ExternalAPI module.

Good job on the redux triggers


upsample problem

Can deconv replace bilinear upsample?

hi, sorry for the late reply. We did try deconv before, but as found in other research like ICNet, bilinear upsample is more efficient than deconv in terms of acc/latency. However, if deconv is as fast as bilinear interpolation on your deployment target, deconv can still be a good option.


Is loss.mean() needed?

In run_classifier.py, there is a:
https://github.com/huggingface/pytorch-pretrained-BERT/blob/3fc63f126ddf883ba9659f13ec046c3639db7b7e/examples/run_classifier.py#L841-L842
However, a couple of lines higher, the logits are already flattened
https://github.com/huggingface/pytorch-pretrained-BERT/blob/3fc63f126ddf883ba9659f13ec046c3639db7b7e/examples/run_classifier.py#L834-L839
So I assume the loss returned will only be a single-element tensor, correct? I also tested this code on 2 gpus and there indeed is only one single-element tensor.

This line is used when people use multi-gpu in a single python process (parallel instead of distributed). This is not the recommended setting (distributed is usually faster).
I wrote a blog post on this (parallel/distributed and the like) a few months ago: https://medium.com/huggingface/training-larger-batches-practical-tips-on-1-gpu-multi-gpu-distributed-setups-ec88c3e51255

So on a multi-GPU machine, if we run run_classifier.py, by default it uses the distributed setting, correct? I'm assuming the answer is yes because when I ran this code on a 2 gpu machine, the loss was already a single-element tensor before the .mean() call.


test: Improve coverage for Saxon Scales.

I was trying to make a test for '7a/7b' but it was erroring that it was not an expected Saxon Grade. I believe this is a problem with the regex in src/scales/saxon.ts. From some simple testing, this regex matches '7a/7b': 1/^((([7-9]|1[0-3])([a-c]))|([1-6])|([7-9]|1[0-3])(([a-c])\/([7-9]|1[0-3])([a-c])))$/i.
For now I pushed up tests that pass inside one commit. For the sake of performance, they were specifically written to improve coverage and nothing else (i.e. __tests__/saxon.ts is not a comprehensive test suite for the Saxon system).
The other commit includes a potential solution to the grade regex.

Could you move the existing tests to the location of your current tests and add any new cases to that?

@marinojoey can you finish this PR?


TASK-798 [WIP] import the hisat2 spec and function

Adding a checklist here of things left to do:

[x] support for genome objects as ref
[ ] support for assembly objects as ref
[x] support for single end libraries (KBaseAssembly + KBaseFile)
[x] support for paired end libraries (KBaseAssembly + KBaseFile)
[x] support for samplesets
[x] support for readssets
[ ] integrate with kb_parallel for multiple jobs
[x] integrate with ReadsAlignmentUtil for uploading final product
[x] integrate previous module's report code.
[ ] move HISAT2 version string to config

Time to get this merged and on CI. The rest of the checklist isn't required, but kinda nice to have anyway.


Nested route groups

Route groups are very useful and help a lot. How about to make them nesting?
Some sort of Rails sugar.
Route.group('admin',function () {

  // Users
  Route.group('users',function () {

    Route.get('/','UsersController.index');

  }).prefix('/users').close()

}).prefix('/manage').close()

Hmm, sorry, didn't pay attention to .close() in users group, removed it and it worked out well.

Okay, strange situation. Removing .close() worked, but in case like this I have an error.
Route.group('manage',function () {

  // Dashboard
  Route.get('/','HomeController.manage');

  // Users
  Route.group('users',function () {

    Route.get('/','UsersController.index');

  }).prefix('/users')

}).prefix('/manage').close()

When I try to access dashboard "/manage" + "/", I get 404.

Nested groups are not supported yet, Newer version of adonis will eliminate the close method and groups will self close themselves and there will be support for nested groups as well.

Can we add this to the Roadmap?

Any updates here?

Nested groups are not supported yet, Newer version of adonis will eliminate the close method and groups will self close themselves and there will be support for nested groups as well.

This is going to be available at version 5?
https://github.com/adonisjs/discussion/issues/62


add content to home page

New layout for the homepage
Integration of textual content (graphics are still placeholders)

Fixes #7
Fixes #9
Proposed Changes

Add graphic content to front page
Minor adjustments

Code looks fine! We should replace the last (satellites) animation with an image of the foreverontheblockchain web app though. It looks less impressive but it gives a better impression of the actual product. We can do this in a separate PR.

@oceanByte We could maybe utilize the animation of the logo that you have on page load in the foreverontheblockchain home page to make it a little bit more dynamic


Accessing the 'input' and 'list' components of Autosuggest for inline styling and Velocity animation?

First off, thanks for this plugin.  I'm trying to get a few features from my attempt across to the Autosuggest code, but it's all wrapped neatly inside the  component so I'm not sure how/if I can access it.
In my implementation, the result list items animated in because I surrounded the list items with a <VelocityTransitionGroup>:
<VelocityTransitionGroup enter={animationEnter} leave={animationLeave}>
    { cardCollection.map(function(card, i){
        return
{card.name} {card.tagCost}
;
    }) }
</VelocityTransitionGroup>

I was also styling the input with my own custom inline style:
var borderStyle = {
    borderImageSlice: 1,
    borderImage: '-webkit-linear-gradient(right, '+borderColour2+' 0%, '+borderColour2+' 40%, '+borderColour1+' 60%, '+borderColour1+' 100%) 1'
};
<input type="text" style={borderStyle}/>

I know I can access the suggestion styles via css, but since the borderStyle is a variable controlled by code in the component, it's not possible to push that into the css. So is there any way to get access to the bits I need?

@PAK90 To style the input using inline styles, you'll have to provide theme to Autosuggest:
<Autosuggest theme={theme} ... />

This means that you'll need to translate all your Autosuggest styles from pure CSS to inline styles (and put them in the theme prop). See docs for the various keys theme could have.
Adding VelocityTransitionGroup around suggestion items is not possible at the moment. Looking at the DOM structure, are you basically trying to wrap suggestionsContainer with VelocityTransitionGroup
<VelocityTransitionGroup enter={animationEnter} leave={animationLeave}>
  [suggestionsContainer]
    [suggestion][/suggestion]
    [suggestion][/suggestion]
  [/suggestionsContainer]
</VelocityTransitionGroup>

?

So I could do something like:
var theme = {
    .input { borderStyle }
}

where I've previously defined borderStyle and then I'd pass theme to Autosuggest?
Yeah, wrapping the whole suggestionsContainer or the individual list of suggestions I think would do the trick.

I tried the input style solution and it works, but only statically; I can't get the input border colour to update.

When exactly do you want to update it? Is it based on user interaction?
Is wrapping the whole Autosuggest with VelocityTransitionGroup (like in your example above) works for you? (at the moment, there is no way to wrap only the suggestions)

Yes, it's based on user interaction. When the user selects an item from the suggestion list certain properties of that item should be reflected in the colour of the input border.
Wrapping the whole Autosuggest didn't work, unfortunately. Another way to use Velocity transitions is directly on the elements, so is there a way of defining a suggestion's onEnter and onLeave?

Try wrapping a single suggestion in your renderSuggestion function.
Regarding the theme issue, could you create a Codepen that demonstrates the issue based on one of these Codepens?

I'll try the wrapping in that function when I get back to my code, but I see what you're getting at and I think/hope it'll work.
I mangled your codepen to create an example. I'm passing the default input theme to theme except that the border's colour is a variable, which works when I first load it. I made a button to change that variable's value and when you click the button, nothing changes.

@PAK90 To get the input element, you can use Autosuggest's ref. No need to grab it by class name (react-autosuggest__container). See this example.
Currently, there is no API to pass props to
s. If you could pass props to
s, would that solve the problem, or you actually have to wrap the
s with VelocityComponent?

s are getting props via itemProps here (itemProps is currently not in the public API of Autosuggest). Maybe fork the repo and try to add the props you need there, and see if it works. Feel free to submit a Pull Request if you find an elegant solution.

@PAK90 Just wanted to let you know that the theme issue not being updated dynamically was resolved in 3.5.0.

Hello 👋  First, I've been having a wonderful time with this plugin, thank you so much for this! I'm wondering if you would be willing to revisit this issue? Is there some possibility of getting a renderSuggestions prop to be able to animate children with something like ReactMotion or CSSTransitionGroup? I'd love to be able animate children individually in/out if possible.


024 registration system

API Changes: https://github.com/michaelkerrigan/ApiTeamB/pull/6

Used BFG to purge any traces of the used keys from previous commits 😁


fix: Typo in Contributing to Meshery Server documentation #8924

docs: Correct typos in Contributing to Meshery Server documentation #8924

Fixed "for the any issues" to "for any issues."
Corrected "Addionally" to "Additionally."
Replaced "explicitely" with "explicitly."

🚀 Preview for commit f8a37fb5650aceee0b75ba474ba1fc1e0b601c36 at: https://651289d92da7f9267336c6de--meshery-docs-preview.netlify.app

Hey @SAF2k really appreciate your enthusiasm to contribute , However please refrain from creating direct PRs without getting assigned first .


[BUG] Agent does not start when running on GCP Cloud Run

Agent Environment
Agent: 7.45.1
Describe what happened:
I am attempting to run the agent on Cloud Run to forward traces from other containers, I use the following Dockerfile:
FROM datadog/agent:7

ENV DD_HOSTNAME=dd-agent \
  DD_SITE=datadoghq.eu \
  DD_API_KEY=xyz

# Features we want
ENV DD_APM_NON_LOCAL_TRAFFIC=true \
  DD_APM_ENABLED=true

# Turn everything else off
ENV DD_LOGS_ENABLED=false \
  DD_ENABLE_METADATA_COLLECTION=false \
  DD_SEND_HOST_METADATA=false \
  DD_ENABLE_GOHAI=false \
  DD_COLLECT_KUBERNETES_EVENTS=false

EXPOSE 8126

The container, once on Cloud Run, crashes with:
PROCESS | CRITICAL | (comp/core/log/logger.go:104 in Critical) | Error collecting host details: strconv.ParseInt: parsing "unknown": invalid syntax
PROCESS | CRITICAL | (comp/core/log/logger.go:104 in Critical) | Failed to initialize the process agent: error collecting host details: strconv.ParseInt: parsing "unknown": invalid syntax

Coming from: https://github.com/DataDog/datadog-agent/blob/fbc3a566b5ca593435126c8c757780d62f1dc5ba/comp/process/hostinfo/hostinfo.go#L32C1-L32C1
Describe what you expected:
The Dockerfile above works fine / as expected when running locally on a Linux machine. I would expect the container to run without issues on GCP Cloud Run.
Steps to reproduce the issue:
You can use this Cloud Build file:
---
steps:
  # Build the container image
  - name: "gcr.io/cloud-builders/docker"
    args:
      [
        "build",
        "-t",
        "gcr.io/${PROJECT_ID}/agent",
        ".",
      ]

  # Push the container image to Container Registry
  - name: "gcr.io/cloud-builders/docker"
    args: ["push", "gcr.io/${PROJECT_ID}/agent"]

  # Deploy container image to Cloud Run
  - name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
    entrypoint: gcloud
    args:
      [
        "run",
        "deploy",
        "agent",
        "--image=gcr.io/${PROJECT_ID}/agent",
        "--region=us-central1",
        "--allow-unauthenticated",
      ]

images:
  - gcr.io/${PROJECT_ID}/agent

# gcloud builds submit config c.yaml --region us-central1

Save this to a file named dd-agent.yaml. And then, with the gcloud cli installed and configured:
gcloud builds submit config dd-agent.yaml --region us-central1

Additional environment details (Operating System, Cloud provider, etc):
GCP Cloud Run

We experience a similar issue.
We are trying to get CloudSQL postgres DB query analysis in Datadog and wondering what's the correct config for Datadog agent running docker in GCP CloudRun and which env vars should be set beside DD_SITE and DD_API_KEY

I was having the same error, in my case these annotations were missing:
metadata:
  annotations:
    run.googleapis.com/launch-stage: BETA
spec:
  template:
    metadata:
      annotations:
        run.googleapis.com/execution-environment: gen2

run.googleapis.com/execution-environment

Very cool! Deploying CloudRun with Gen2 indeed made the deployment successful thank you!
Though I'm still combating some network issues.
Can you please share a bit more details about your configuration? Which env vars did you set beside DD_API_KEY?

@LiuVII What is the error you're experiencing? Besides DD_API_KEY I believe another important one would be DD_HOSTNAME.

@LiuVII What is the error you're experiencing? Besides DD_API_KEY and DD_SITE the other one I needed was DD_HOSTNAME.

I don't see any specific error coming from the agent just don't see the expected metrics in Datadog dashboard.
Basically, we're trying to use CloudRun service to host Database Monitoring Agent
https://docs.datadoghq.com/database_monitoring/setup_postgres/gcsql/?tab=docker#install-the-agent
to get query insights in Datadog

Well I don't have this specific use-case. Only other thing I can think of right now is enabling debug logs to find more hints.


Model predictions on colored images

How is your model working on colored images, given that the dataset you have trained contains no colored image ?
Are you binarising each image before doing inference  or am i missing something ?

The dataset we tried on had colored images in it.
It works well, given that the images look similar to that of colored images

Thanks @DevashishPrasad
But my question is how is your model working on colored images, given that your training set here  contains zero colored images.

All of the images in the dataset are considers as RGB images no matter how they look.


fix edgeXSnyk global var call

Signed-off-by: Ernesto Ojeda<EMAIL_ADDRESS>

@lenny-intel @rsdmike Can you take a look at this PR.  The change is edgexSnyk() --> edgeXSnyk()

please merge this @rsdmike


:sparkles:Operator support MultipleHubs.

Summary
The PR is to support MultiHubs also in the operator.
The PR is related to: https://github.com/open-cluster-management-io/ocm/pull/443

/assign @elgnay

@qiujian16 The e2e part is removed and will join the refactor PR, the intergration test added, please take another look, thanks!

/approve

/lgtm


fix(player_msg_control): add lock

Signed-off-by: pingkai<EMAIL_ADDRESS>

Codecov Report

Merging #79 into develop will decrease coverage by 3.96%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           develop     #79      +/-   ##
==========================================
- Coverage    71.96%     68%   -3.97%
==========================================
  Files          200     200
  Lines        10593   10594       +1
==========================================
- Hits          7623    7204     -419
- Misses        2970    3390     +420

Impacted Files
Coverage Δ

mediaPlayer/player_msg_control.cpp
81.96% <100%> (-3.16%)
:arrow_down:

framework/tests/dataSource/ipList.h
0% <0%> (-100%)
:arrow_down:

framework/tests/demuxer/demuxerUnitTest.cpp
0% <0%> (-100%)
:arrow_down:

framework/tests/decoder/decoderUnitTest.cpp
0% <0%> (-93.48%)
:arrow_down:

framework/tests/dataSource/dataSourceUnitTest.cpp
0% <0%> (-93.34%)
:arrow_down:

framework/tests/demuxer/demuxerUtils.cpp
0% <0%> (-76%)
:arrow_down:

framework/data_source/ffmpeg_data_source.cpp
9.37% <0%> (-65.63%)
:arrow_down:

framework/demuxer/AVBSF.cpp
25.27% <0%> (-42.86%)
:arrow_down:

framework/data_source/curl/CURLShareInstance.cpp
69.44% <0%> (-27.78%)
:arrow_down:

framework/data_source/ffmpeg_data_source.h
80% <0%> (-10%)
:arrow_down:

... and 14 more

Continue to review full report at Codecov.

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


Add IDN_AUTH_USER_SESSION_MAPPING data cleanup to session cleanup scripts

Currently, the data cleanup of IDN_AUTH_USER_SESSION_MAPPING table is handled within the code and is done when the session clean up task is running. We need to add the cleanup of this table's data to the session cleanup scripts as well for when the session clean up task is disabled and the cleanup scripts are used.

@DinikaSen is working on this.

ack

Still, it does not cleanups up the records from IDN_AUTH_USER_SESSION_MAPPING for the following scenario since we have added IDN_AUTH_USER_SESSION_MAPPING cleanup into the session data cleanup section only.

A user logs in and logs out
So we have two entries in the IDN_AUTH_SESSION_STORE table for SESSION_TYPE AppAuthFrameworkSessionContextCache with STORE and DELETE operations
The operation data cleanup section of the session cleanup stored procedure cleans up these entries from the IDN_AUTH_SESSION_STORE table
Still, the entry in the IDN_AUTH_USER_SESSION_MAPPING table is not cleaned up
Because operation data cleanup has a lower timeout defined in the script than session data cleanup (12h < 14d)

To solve this issue fully, we will have to improve the session cleanup stored procedure and also clean all the stale data in the IDN_AUTH_USER_SESSION_MAPPING table as well. Because we use the data on the IDN_AUTH_USER_SESSION_MAPPING for session termination operations in events like password update. If we have stale data accumulated in the IDN_AUTH_USER_SESSION_MAPPING table, it will iterate though all of these and spend longer to complete the password change operation.
The following query can be used to delete stale data on IDN_AUTH_USER_SESSION_MAPPING table for MySQL.
DELETE T1
FROM IDN_AUTH_USER_SESSION_MAPPING T1
LEFT JOIN
IDN_AUTH_SESSION_STORE T2
ON T1.SESSION_ID = T2.SESSION_ID
WHERE T2.SESSION_ID IS NULL;


Add support for OPR v4

Change OPR version 3 to version 4
Read logs and errors from file instead of headers
Add test for binary request and response
Rename x-open-runtimes-encoding to x-open-runtimes-body-encoding
Increase the size of logs and errors to 5 MB from 1 MB

@Meldiron there are some failures because of changing datatype of headers and variables to string. Please fix.

Reviewed, LGTM! ✨


Added a new signal for when a block is validated but not imported

This allows event streams to show block messages before head messages.
Documentation

[X] I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

[X] I thought about adding a changelog entry, and added one if I deemed necessary.

To me looks good. The only thing we should address it the optimistic flag.
I also noticed that we do not support payload_attributes event which has been merged https://github.com/ethereum/beacon-APIs/blob/8b52d949965d2294d3f0191c6b15644535a933fe/apis/eventstream/index.yaml#L35

and lightclient events...

we've not really addressed lightclient anywhere (basically), so i can't see us doing that until we allocate an epic...

I also noticed that we do not support payload_attributes event which has been merged https://github.com/ethereum/beacon-APIs/blob/8b52d949965d2294d3f0191c6b15644535a933fe/apis/eventstream/index.yaml#L35

raised #7477

do we want to be set independently? Does make sense to set them both to true? I think more that the param should be associated to an enum that could be NONE, VALIDATION, IMPORT. WDYT?

do we want to be set independently? Does make sense to set them both to true? I think more that the param should be associated to an enum that could be NONE, VALIDATION, IMPORT. WDYT?

I think i was going to just let it set separately in case there's another weird use-case...  If they want to get notified for none, or all, or just validation, its all possible with the 2 flags, and simple to flow through but the enumeration would end up ,none, validation, import,validation_and_import' so the checks end up more complicated on the code side because you'd need to check that its in the set that allows validation, and i wasn't sure it was worth it...

I see, but I don't see why there should be the need to get notified twice for the same block. To me the true, true combination is odd.

I see, but I don't see why there should be the need to get notified twice for the same block. To me the true, true combination is odd.

sure it's odd, but I'm not against it if people want to see the block and then actually get the optimistic flag properly once its fully imported.

so we get this messages for each block when subscribing to block and head, with both flags at true
event: block
data: {"slot":"7270564","block":"0xbf34b0c85dd8d56d64db5fc6f3a39a3a35ca1ffa17b9e32c961375ee5049ebe4","execution_optimistic":false}

event: head
data: {"slot":"7270564","block":"0xbf34b0c85dd8d56d64db5fc6f3a39a3a35ca1ffa17b9e32c961375ee5049ebe4","state":"0x1edbea7443751452b723418f882842407018176d74228104449ae6182478108e","epoch_transition":false,"previous_duty_dependent_root":"0x84ac0d9cfc2ab85ad892cc3f26b257f8b89c462cc08ea4364a83efd5c26d4c80","current_duty_dependent_root":"0x01639a86dda3e8b058cadda82a23318b983b9ac3e92ed9c4f965402d84514d46","execution_optimistic":false}

event: block
data: {"slot":"7270564","block":"0xbf34b0c85dd8d56d64db5fc6f3a39a3a35ca1ffa17b9e32c961375ee5049ebe4","execution_optimistic":false}

so we get this messages for each block when subscribing to block and head, with both flags at true

yep the less reliable thing is that first block notification when the head is optimistic etc, but i've got limited options other than searching for the blocks parent...