[KYUUBI #1769][FOLLOWUP] Some cleanups for log4j properties

Why are the changes needed?

This is a followup of #1769. Cleanup the log4j properties files and using log4j2.properties for UT.
How was this patch tested?
Passed UT.

and the licenses?

and the licenses?

Sorry, which file should I modify?

LICENSE-binary

Codecov Report

Merging #1842 (ab86f02) into master (5ea0964) will decrease coverage by 0.15%.
The diff coverage is 46.87%.

@@             Coverage Diff              @@
##             master    #1842      +/-   ##
============================================
- Coverage     59.63%   59.47%   -0.16%
+ Complexity      272      271       -1
============================================
  Files           275      277       +2
  Lines         13783    13853      +70
  Branches       1764     1776      +12
============================================
+ Hits           8219     8239      +20
- Misses         4863     4909      +46
- Partials        701      705       +4

Impacted Files
Coverage Δ

...e/kyuubi/operation/log/Log4j12DivertAppender.scala
0.00% <0.00%> (ø)

...mon/src/main/scala/org/apache/kyuubi/Logging.scala
43.47% <25.92%> (-11.63%)
:arrow_down:

...pache/kyuubi/operation/log/LogDivertAppender.scala
50.00% <50.00%> (-39.48%)
:arrow_down:

...he/kyuubi/operation/log/Log4j2DivertAppender.scala
79.54% <79.54%> (ø)

...g/apache/spark/kyuubi/SparkSQLEngineListener.scala
86.44% <0.00%> (-1.70%)
:arrow_down:

...rg/apache/kyuubi/engine/spark/SparkSQLEngine.scala
65.06% <0.00%> (-1.21%)
:arrow_down:

...rg/apache/kyuubi/engine/trino/TrinoStatement.scala
64.70% <0.00%> (-1.18%)
:arrow_down:

...n/scala/org/apache/kyuubi/engine/ProcBuilder.scala
87.39% <0.00%> (-0.85%)
: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 53d59a0...ab86f02. Read the comment docs.

thanks, merged to master


const HtmlElementView prevents me from compiling non-web platforms

Using const HtmlElementView(), I get compilation errors when building for desktop.
The assert(!kIsWeb) in HtmlElementView fails at compile time even though the widget will never be built.
Doctor:
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel master, v1.10.15-pre.222, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 3.4)
[✓] IntelliJ IDEA Community Edition (version 2019.2)
[✓] VS Code (version 1.39.2)
[✓] Connected device (4 available)

We'd probably have to move the assert into build or some other lifecycle hook. Otherwise the only solution would be to force it to not be const

Reproducible on the latest master 1.22.0-2.0.pre.59.

flutter doctor -v
[√] Flutter (Channel master, 1.22.0-2.0.pre.59, on Microsoft Windows [Version 10.0.19041.450], locale en-US)
    • Flutter version 1.22.0-2.0.pre.59 at C:\Development\flutter_master
    • Framework revision be7c7faee6 (7 hours ago), 2020-08-24 22:31:02 -0400
    • Engine revision 8107b36c7b
    • Dart version 2.10.0 (build 2.10.0-56.0.dev)

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.1)
    • Android SDK at C:\Users\marku\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.1
    • Java binary at: C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.6.5)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.6.30320.27
    • Windows 10 SDK version 10.0.18362.0

[√] Android Studio (version 4.0)
    • Android Studio at C:\Users\marku\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\193.6626763
    • Flutter plugin version 47.1.2
    • Dart plugin version 193.7361
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[√] Connected device (4 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Windows (desktop)           • windows       • windows-x64    • Microsoft Windows [Version 10.0.19041.450]
    • Web Server (web)            • web-server    • web-javascript • Flutter Tools
    • Chrome (web)                • chrome        • web-javascript • Google Chrome 84.0.4147.135

• No issues found!

Reproducible on latest stable version, while compiling for non-web platform (ex: macOS), I get below compile error:
dhs@Dhss-MacBook-Pro newtest % flutter run -d macos
Launching lib/main.dart on macOS in debug mode...
lib/main.dart:15:26: Error: Constant evaluation error:
            child: const HtmlElementView(viewType: '',)
                         ^
../../../documents/fluttersdk/flutter/packages/flutter/lib/src/widgets/platform_view.dart:348:15: Context: This assertion failed with message: HtmlElementView is only available on Flutter Web.
       assert(kIsWeb, 'HtmlElementView is only available on Flutter Web.');
              ^

Command PhaseScriptExecution failed with a nonzero exit code
/Users/dhs/Documents/NCFlutter/newtest/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.7, but the range of supported deployment target versions is 10.9 to 12.2. (in target 'leveldb-library' from project 'Pods')
** BUILD FAILED **

Building macOS application...
Exception: Build process failed
dhs@Dhss-MacBook-Pro newtest % flutter run -

 stable, master flutter doctor -v
[✓] Flutter (Channel stable, 3.3.7, on macOS 12.2.1 21D62 darwin-x64, locale
    en-GB)
    • Flutter version 3.3.7 on channel stable at
      /Users/dhs/documents/fluttersdk/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e99c9c7cd9 (2 days ago), 2022-11-01 16:59:00 -0700
    • Engine revision 857bd6b74c
    • Dart version 2.18.4
    • DevTools version 2.15.0

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.

[!] Flutter (Channel master, 3.5.0-12.0.pre.105, on macOS 12.2.1 21D62
    darwin-x64, locale en-GB)
    • Flutter version 3.5.0-12.0.pre.105 on channel master at
      /Users/dhs/documents/fluttersdk/flutter
    ! Warning: `flutter` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/flutter, which is not inside
      your current Flutter SDK checkout at
      /Users/dhs/documents/fluttersdk/flutter. Consider adding
      /Users/dhs/documents/fluttersdk/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to
      /Users/dhs/Documents/Fluttersdk/flutter/bin/dart, which is not inside your
      current Flutter SDK checkout at /Users/dhs/documents/fluttersdk/flutter.
      Consider adding /Users/dhs/documents/fluttersdk/flutter/bin to the front
      of your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 44b6cd2ec7 (2 hours ago), 2022-11-03 23:02:22 -0400
    • Engine revision fb7cde6970
    • Dart version 2.19.0 (build 2.19.0-370.0.dev)
    • DevTools version 2.19.0
    • If those were intentional, you can disregard the above warnings; however
      it is recommended to use "git" directly to perform update checks and
      upgrades.

[!] Xcode - develop for iOS and macOS (Xcode 12.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    ! Flutter recommends a minimum Xcode version of 13.
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.11.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] VS Code (version 1.62.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.21.0

[✓] Connected device (5 available)
    • SM G975F (mobile)       • RZ8M802WY0X • android-arm64   • Android 11 (API 30)
    • Darshan's iphone (mobile)  • 21150b119064aecc249dfcfe05e259197461ce23 •
      ios            • iOS 14.4.1 18D61
    • iPhone 12 Pro Max (mobile) • A5473606-0213-4FD8-BA16-553433949729     •
      ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-3 (simulator)
    • macOS (desktop)            • macos                                    •
      darwin-x64     • Mac OS X 10.15.4 19E2269 darwin-x64
    • Chrome (web)               • chrome                                   •
      web-javascript • Google Chrome 98.0.4758.80

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 1 category.


Time tracking gives me incorrect values

Hello,
sorry for using Google Translate, but unfortunately my English is not that good anymore.
I suspect that I made a mistake in the configuration of Measurit, because the times are not correct for me.
All of my devices are connected to Shelly Plug S and are almost always on. I record the devices connected to it via the increased power consumption. So if the power consumption is higher than a value I have defined, the device is switched on and the time should be counted until the consumption falls below the value again. Then the time recording should end.
I have now switched on my air conditioning unit several times for 5 minutes and then checked Measurit. I expected 5 minutes there, but it showed 37 minutes.
I am attaching the code of my configuration and would be happy if you could tell me what I am doing wrong.
{% if float(states.sensor.shelly_klimageraet_switch_0_power.state) > 20%}   on {%else%}   off {%endif%}
Best regards, Andy

I'm a bit confused by the percentage in your expression. What is the unit of measurement of your power sensor?
Anyway, the condition should look something like this: {{ states('sensor.shelly_klimageraet_switch_0_power') | float > 20 }}
PS: Please use the community forum for these kind of support questions.

The sensor's unit of measurement is watts, but I only want to measure the time the device connected to it is switched on. So I think something is wrong in my configuration.

And what is your definition of 'on'? Is that when it pull more than 20 watts of power? In that case the condition I gave above should work for you.

Yes, thats right. Okay Thank you


Error: Cannot call method 'forEach' of undefined

I see this error every once in a while in my logs. It would be nice if it threw a more helpful error instead.
Cannot call method 'forEach' of undefined
    GoogleContacts.GoogleContacts._saveContactsFromFeed in /app/node_modules/google-contacts-api/index.js:211
    Object.receivedContacts in /app/node_modules/google-contacts-api/index.js:105
    IncomingMessage.[anonymous] in /app/node_modules/google-contacts-api/index.js:76

@FredKSchott any steps to reproduce?

same error, but only for some users


Test stuff

Pull Request Description
What issue does this change request address?
What are the significant changes in functionality due to this change request?
Nothing, but trying to test regression system.

For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.

[ ] 1. Review all computer code.
[ ] 2. If any changes occur to the input syntax, there must be an accompanying change to the user manual and xsd schema. If the input syntax change deprecates existing input files, a conversion script needs to be added (see Conversion Scripts).
[ ] 3. Make sure the Python code and commenting standards are respected (camelBack, etc.) - See on the wiki for details.
[ ] 4. Automated Tests should pass, including run_tests, pylint, manual building and xsd tests. If there are changes to Simulation.py or JobHandler.py the qsub tests must pass.
[ ] 5. If significant functionality is added, there must  be tests added to check this. Tests should cover all possible options.  Multiple short tests are preferred over one large test. If new development on the internal JobHandler parallel system is performed, a cluster test must be added setting, in  XML block, the node <internalParallel> to True.
[ ] 6. If the change modifies or adds a requirement or a requirement based test case, the Change Control Board's Chair or designee also needs to approve the change.  The requirements and the requirements test shall be in sync.
[ ] 7. The merge request must reference an issue.  If the issue is closed, the issue close checklist shall be done.
[ ] 8. If an analytic test is changed/added is the the analytic documentation updated/added?
[ ] 9. If any test used as a basis for documentation examples (currently found in raven/tests/framework/user_guide and raven/docs/workshop) have been changed, the associated documentation must be reviewed and assured the text matches the example.

Job Test qsubs sawtooth on bdc336a : invalidated by @joshua-cogliati-inl
restarted civet

Was just for testing.


Expose refreshInstanceViewAsync in VirtualMachineScaleSetVM

At the moment there is no way to trigger an asynchronous instance view refresh in VirtualMachineScaleSetVM. This PR adds a refreshInstanceViewAsync method.

@rdegnan,
Thanks for your contribution.
To ensure that the project team has proper rights to use your work, please complete the Contribution License Agreement at https://cla.microsoft.com.
It will cover your contributions to all Microsoft-managed open source projects.
Thanks,
Microsoft Pull Request Bot

Can one of the admins verify this patch?

@rdegnan, thanks for signing the contribution license agreement. We will now validate the agreement and then the pull request.
Thanks, Microsoft Pull Request Bot

@anuchandy Migrate to .NET as well


Update requirements.txt

Coverage remained the same at 100.0% when pulling 4ff38d928e2666ebbf9a557a9528ff5885e1c75b on weppy_0_7_1_update into 7678ee5b7904381547e74cea8a17963aeee47291 on master.


KAst.from_dict is no longer concrete method

Due to https://github.com/runtimeverification/pyk/pull/96, we have that KAst.from_dict is now virtual.
It's debatable to me whether it needs to be non-virtual in any cases, but this is here to track that. If people need it (they don't know whether the file they are reading is KInner or KOuter, for example), then they can comment here and let us know.

The function signature
def from_dict(cls: Type[T], d: Dict[str, Any]) -> T

with T = TypeVar('T', bound='KAst') is not type safe. The simplest way to fix this is by implementing KAst.from_dict in the reasonable way. Alternatives are duplicating code in KInner and KOuter, or coming up with a more complicated and weaker type hint.
A use case for calling KAst.from_dict: converting JSON KAST to pretty format.


Can't login ,What's  the default  username and  password?

I try to use this username and password,it dose not work。
And  why when i write the real and collect google account and password ,it still can't login?It's a fake  function?
I don't understand the login logic。

Hi<PHONE_NUMBER>, you can avoid email validation from and can go to the main screen even if login, so if u want to enjoy and learn MVP then add getMvpView().openMainActivity(); at line 97 in LoginPresenter.java
Hope this helps

I added in LoginPresenter
    @Override
    public void onServerLoginClick(String email, String password) {
        getMvpView().openMainActivity();
        //validate email and password


Parse try { .. } expressions

Pending if we merge and implement https://github.com/rust-lang/rfcs/pull/2388, parse:
fn main() {
    let foo: Result<usize, ()> = try { 42 };
}

(do catch { .. } will not be supported after implementation...)
Update: The RFC has been merged.

Does the plan include parsing try + ! contextually

Elaborate? Not sure what you mean by this. What in particular is it about the combination try and ! syntactically that is different?

If try is parsed as a keyword, it will become unavailable as an ident for macros. AFAIK preserving ability to use try!() requires special handling in the parser.

Status update: The RFC has been merged.

We currently use ExprCatch to mean do catch { ... } and ExprTry to mean expr?. Presumably we will want ExprTry to mean try { ... } and will need to pick a different name for expr?.

Fixed in fb2dd4b7f4e6c879b7dc7a17f57cc8373ec373d4, will be released in 0.15.


Add support for Laravel 5.5

Fixed fire method and added auto registering of service providers

Hello @akalongman, thank you for the PR, this looks great


Update dependencies

Run 'yarn upgrade' on both directories.

You also have to do the following https://github.com/flatpak/flatpak-github-actions/blob/master/CONTRIBUTING.md#prerequisites

Oops. Looking into that.


Add cache on MirrorNodeClient.getBlock()

Description:

Related issue(s):
Fixes #1191
Notes for reviewer:

Checklist

[x] Documented (Code comments, README, etc.)
[x] Tested (unit, integration, etc.)

Codecov Report
Patch coverage: 100.00% and project coverage change: +0.04 :tada:

Comparison is base (f347dd0) 74.64% compared to head (1ba2941) 74.69%.

:exclamation: Current head 1ba2941 differs from pull request most recent head 8675ebb. Consider uploading reports for the commit 8675ebb to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1192      +/-   ##
==========================================
+ Coverage   74.64%   74.69%   +0.04%
==========================================
  Files          31       31
  Lines        2213     2221       +8
  Branches      436      437       +1
==========================================
+ Hits         1652     1659       +7
  Misses        438      438
- Partials      123      124       +1

Impacted Files
Coverage Δ

packages/relay/src/lib/clients/mirrorNodeClient.ts
90.09% <100.00%> (+0.20%)
:arrow_up:

packages/relay/src/lib/constants.ts
100.00% <100.00%> (ø)

... and 2 files with indirect coverage changes

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


Import error in scaffold script

I get the following error when I run the scaffold script.
python scripts/scaffold.py
Traceback (most recent call last):
File "/moto/scripts/scaffold.py", line 40, in
from moto.core import BaseBackend
ImportError: cannot import name 'BaseBackend' from 'moto.core' (/moto/moto/core/init.py)

Thanks @archinksagar - I've raised a PR with a fix. Let me know if you run into any other issues after that's merged


Bug: TaskSeq.item and tryItem should NOT read past the found item, not even a little bit

Consider this:
task {
    let mutable i = 0

    let ts = taskSeq {
        i <- i + 1
        yield 1
        i <- i + 1
        yield 2
        i <- i + 1 // we should never get here, if we pick idx 1
    }

    do! ts |> TaskSeq.item 1
    printfn "%i" i
}

This prints "3", not "2". That's wrong. Side effects beyond the item found should not execute.

Test added in #61.


Clean up Makefile and add support for running unit tests.

Use pip to build and locally install for development so
that extensions are compiled correctly.
Always use yapps from third_party.
Correctly express build dependencies.
Add support for running unit tests with python -m unittest discover.
Properly clean up built files and local pip installations.
Streamline variable setting and phony target declarations.

lgtm


disabling jdk11 pipeline job for not ready branch

The jdk 11 pipeline job now makes sense only for master branch so disabling on 7.48.x where we know it won't work.

How to retest a PR or trigger a specific build:

* a pull request please add comment: Jenkins retest this

@mareknovotny to disable complete the jdk11 pipeline on 7.48.x we also have to do this on https://github.com/kiegroup/kie-jenkins-scripts/blob/master/job-dsls/jobs/kieAll_meta_pipeline.groovy#L39 {where a errro is since it has to state 7.48.x instead of master} But this line can be removed easily.
Attention. Rght now we know that the daily builds are triggered bu a cron job since the UMB messaged don't work at all. I will meanwhile change this cron job so the jdk 11 pipeline will not run for 7.48.x.

@mareknovotny to disable complete the jdk11 pipeline on 7.48.x we also have to do this on https://github.com/kiegroup/kie-jenkins-scripts/blob/master/job-dsls/jobs/kieAll_meta_pipeline.groovy#L39 {where a errro is since it has to state 7.48.x instead of master} But this line can be removed easily.
Attention. Rght now we know that the daily builds are triggered bu a cron job since the UMB messaged don't work at all. I will meanwhile change this cron job so the jdk 11 pipeline will not run for 7.48.x.

hmm, it seems to me chaotic to have metadata UMB trigerring different branch jobs :/
I think there should be used that metadata job for every branch, WDYT?

hmm, it seems to me chaotic to have metadata UMB trigerring different branch jobs :/
I think there should be used that metadata job for every branch, WDYT?


update keboola/php-component package

Jira - https://keboola.atlassian.net/browse/CM-639
test job - https://connection.keboola.com/admin/projects/6231/queue/981119204

@AdamVyborny ping


Implement Dict literal

Related to #35.
TODOs:

[x] Completed implement normal dict

[x] parse
[x] hir
[x]  lower

[x] add Dict/Dict! type
[x] register Dict, Dict! definitions to the builtin Context
[x] check if objects implement Eq
[ ] (optional) warn of any duplicate elements
[x] tyvar
[x] link

[x] effectcheck
[x] memcheck
[x] codegen

Fixed by #204.


[FEATURE] Limit scope of project and use new approach

This looks great!
I pulled this branch into my quart-template project, along with something I schemed up which I'm currently calling the dictconfig-interceptor, and the logging configs are loading quite nicely!


Proposal: Explore future migration to winUI 3

Will allow additional features such as acrylic.

WinUI 3 neither have acrylic nor reveal 😂. We have to use xaml islands until they support them.
There won't be acrylic or reveal in WinUI 3. It is planned for WinUI 4? Which will be released in 2021-2022.
So for a immediate need we can switch to WinUI 2 and xaml islands

Even if we switch to WinUI 2 xaml islands, I don't know how we are gonna create the flyout. For settings window there won't be any problems. The flyout is going to be a tricky one.

There can be blur too with XAML islands, right?

Yes! That's what I said (xaml islands + WinUI 2).
We can have proper acrylic effect only if we use xaml islands (not present in WinUI 3 so we can use WinUI 2 xaml islands)
But the problems are (applies to both WinUI 2 & WinUI 3) :

No modern window border, title bar (chrome) in settings (a similar issue can be found in PowerToys)

No rounded corners/shadows in the flyout (could have rounded corners but it won't be good)

No animations while showing/hiding flyout (since WinUI 2 & 3 won't supports transparent alpha blended windows)

Not sure whether it will be fast/slow. BUT Since the UI is in WinRT and our code being in .NET the communication between two runtimes could be slow (still not sure)

It would lead to the same static look like that in windows default flyout, right?

done some work on the multi language support, unfortunately it appears to be rather difficult in WPF, in winUI and UWP it can be partially automated. Another thing to keep in mind when considering future options.

Yes that's why I'm hesitant to add multi-lingual support. Too much work for a feature that no one bother not having.
Let's see if somehow find an efficient way 🤷♂

Closing as not useful unless WinUI adds rounded corners and acrylic as well as the others mentioned above.
None of which are planned in the near future.


fix/site/broken-hyperjs-link

the popup pointed to https://alpinejs.hyperui.dev which is broken.

Oops! I didn't realise that was using the old URL! 🤦

Thanks for helping with this @asheeeshh much appreciated! 🙌


Using roberta for fake news detection

❓ Questions and Help
Before asking:

search the issues.
search the docs.

What is your question?
Code

What have you tried?
What's your environment?

fairseq Version (e.g., 1.0 or master):
PyTorch Version (e.g., 1.0)
OS (e.g., Linux):
How you installed fairseq (pip, source):
Build command you used (if compiling from source):
Python version:
CUDA/cuDNN version:
GPU models and configuration:
Any other relevant information:

Hi, we want to use roberta for fake news detection. Is it possible to use roberta for prediction only, and not having to train the model ourselves? If that is the case, which pretrained model do you recommend for classifying whether a text is fake news or not?

Is it possible to use roberta for prediction only, and not having to train the model ourselves?

I'm not sure, but I would be surprised if the model works for your task out of the box.  Usually some kind of finetuning is required.


Importing build guide error "validation error for AffixFilterModel"

Using this planner: https://maxroll.gg/d4/planner/yu4up0w5#1
[5.1.2 2024-05-23 12:02:44,406] INFO       Loading https://maxroll.gg/d4/planner/yu4up0w5
[5.1.2 2024-05-23 12:02:50,913] INFO       Importing Sorcerer The_Pit
[5.1.2 2024-05-23 12:02:52,914] WARNING    utils.build_importer._import_build: Skipping Tibault's Will unique importing currently unsupported
[5.1.2 2024-05-23 12:02:53,904] WARNING    utils.build_importer._import_build: Skipping Esadora's Overflowing Cameo unique importing currently unsupported
[5.1.2 2024-05-23 12:02:54,364] WARNING    utils.build_importer._import_build: Skipping Tal Rasha's Iridescent Loop unique importing currently unsupported
[5.1.2 2024-05-23 12:02:58,450] ERROR      utils.build_importer.import_build: An error occurred importing the build 1 validation error for AffixFilterModel
name
  Value error, affix attacks_reduce_evade's_cooldown_by_seconds does not exist [type=value_error, input_value="attacks_reduce_evade's_cooldown_by_seconds", input_type=str]
    For further information visit https://errors.pydantic.dev/2.7/v/value_error. retrying```

https://i.imgur.com/ssZJVOP.png

fixed here: https://github.com/aeon0/d4lf/pull/244


Second travis test failing consistently.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test (default-test) on project druid-processing: ExecutionException The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Command was /bin/sh -c cd /home/travis/build/druid-io/druid/processing && /usr/lib/jvm/java-8-oracle/jre/bin/java -Xmx768m -Duser.language=en -Duser.country=US -Dfile.encoding=UTF-8 -Duser.timezone=UTC -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager -jar /home/travis/build/druid-io/druid/processing/target/surefire/surefirebooter6872093151481612081.jar /home/travis/build/druid-io/druid/processing/target/surefire/surefire4148885626359220171tmp /home/travis/build/druid-io/druid/processing/target/surefire/surefire_08792527364693215048tmp

Is being thrown again and again during travis automated testing on the second travis test.

It seems that BufferHashGrouperTest is often started but not completed, suggesting that's the one that crashes the VM.
Raised #4779 to maybe help, on the guess that the way we're allocating the large buffers is causing the crashes. I think mmapping past the end of a file isn't kosher.

Closing this -- haven't seen it in a while, and the issue is a year old.


closePanel command ignored when problems filter text box focused.

Version: 1.29.0-insider
Commit: f151c46b1783cf4f9a4ca934a85f78846f08688e
Date: 2018-10-11T05:12:53.188Z
Electron: 2.0.11
Chrome: 61.0.3163.100
Node.js: 8.9.3
V8: 6.1.534.41
Architecture: x64
Running on Linux Mint 19
Observed Behaviour:
With the problems panel open, and focus applied to the filter text box (ctrl+f default), hitting the mapped keyboard shortcut for workbench.action.closePanel, does not close the panel.
Expected Behaviour:
Regardless of where focus is in the panel workbench.action.closePanel should always close it.

@safield I assigned cmd+j keybinding to Close Panel command and it works even when the focus is in filter text box. Can you please let me know what keybinding are you using?

I am using shift+esc. I can confirm that other bindings do work to close the panel.

@safield I rebound cmd+j to close panel command.
So you say only shift+esc keybinding does not work and other keybindings work for close panel? Can you please see if there are other commands bound to shift+esc?

shift+escape is not mapped to anything else in my user settings.
shift+escape is mapped to quite a few other commands in default settings.
None of those commands stand out as overriding closePanel.

@safield Thanks for confirmation. I could reproduce it.
Fixed.


Use Unity logger types in ForwardingDispatcher

Description
Pretty quick fix - use Unity's LogType instead of the C#IO's LogLevel. Requested in #753
(This was cherry-picked out of #844 where I driveby fixed in a few days ago).
Tests
Ran the game - logging still worked.
Documentation
Changelog + closes known issue.

Realized this is actually a breaking change as well - will edit the changelog


nixos-unstable: Gnome: Oh no something went wrong

Describe the bug
After upgrading from 22.05pre335103.6daa4a5c045 to 22.05pre336298.bc5d68306b4 GDM leaves me in a "Oh no something went wrong" screen after booting. The journal shows "GdmDisplay: Session never registered, failing". See log below.
I'm not sure in which log I find further information. Please let me know if there's more you need.
Steps To Reproduce
Steps to reproduce the behavior:

Update to 22.05pre336298.bc5d68306b4
Enable gdm & gnome
Boot

Expected behavior
gnome starts after booting.
Additional context
$ journalctl -b-1 -g "gdm|gnome"

-- Journal begins at Sat 2021-07-31 19:37:28 CEST, ends at Wed 2021-12-08 21:40:39 CET. --
Dec 08 20:58:43 Hostname systemd-logind[1003]: New session c1 of user gdm.
Dec 08 20:58:43 Hostname systemd[1245]: pam_unix(systemd-user:session): session opened for user gdm(uid=132) by (uid=0)
Dec 08 20:58:43 Hostname systemd[1]: Started Session c1 of User gdm.
Dec 08 20:58:44 Hostname gnome-session[1281]: gnome-session-binary[1281]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 08 20:58:44 Hostname gnome-session[1281]: gnome-session-binary[1281]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 08 20:58:44 Hostname gnome-session[1281]: gnome-session-binary[1281]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 08 20:58:45 Hostname /nix/store/8c92zvlflv5gka582d5svbmbvmyww03q-gdm-41.0/libexec/gdm-wayland-session[1280]: dbus-daemon[1280]: [session uid=132 pid=1280] Activating service name='org.freedesktop.systemd1' requested by ':1.2' (uid=132 pid=1281 comm="/nix/store/p1n9zjyh727r1j5p2nnypy2wc6zjsbwr-gnome-" label="kernel")
Dec 08 20:58:45 Hostname gdm[1235]: Gdm: GdmDisplay: Session never registered, failing
Dec 08 20:58:45 Hostname gdm[1235]: Gdm: Child process -1261 was already dead.
Dec 08 20:58:45 Hostname gdm[1235]: Gdm: GdmDisplay: Session never registered, failing
Dec 08 20:58:45 Hostname gdm[1235]: Gdm: Child process -1261 was already dead.
Dec 08 20:58:45 Hostname systemd-logind[1003]: New session c2 of user gdm.
Dec 08 20:58:45 Hostname systemd[1]: Started Session c2 of User gdm.
Dec 08 20:58:47 Hostname /nix/store/8c92zvlflv5gka582d5svbmbvmyww03q-gdm-41.0/libexec/gdm-x-session[1556]: dbus-daemon[1556]: [session uid=132 pid=1556] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=132 pid=1576 comm="/nix/store/p1n9zjyh727r1j5p2nnypy2wc6zjsbwr-gnome-" label="kernel")
Dec 08 20:58:47 Hostname gnome-session[1559]: gnome-session-binary[1559]: WARNING: Failed to upload environment to systemd: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 08 20:58:47 Hostname gnome-session[1559]: gnome-session-binary[1559]: WARNING: Failed to reset failed state of units: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 08 20:58:47 Hostname gnome-session[1559]: gnome-session-binary[1559]: WARNING: Falling back to non-systemd startup procedure due to error: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.systemd1" does not exist
Dec 08 20:58:47 Hostname /nix/store/8c92zvlflv5gka582d5svbmbvmyww03q-gdm-41.0/libexec/gdm-x-session[1601]: dbus-daemon[1601]: Activating service name='org.a11y.atspi.Registry' requested by ':1.1' (uid=132 pid=1609 comm="/nix/store/p1n9zjyh727r1j5p2nnypy2wc6zjsbwr-gnome-" label="kernel")
Dec 08 20:59:13 Hostname login[1624]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring
Dec 08 21:05:11 Hostname gnome-session[1559]: gnome-session-binary[1559]: WARNING: Lost name on bus: org.gnome.SessionManager
Dec 08 21:05:11 Hostname gnome-session-binary[1559]: WARNING: Lost name on bus: org.gnome.SessionManager
Dec 08 21:05:11 Hostname gdm[1235]: Gdm: Tried to look up non-existent conversation gdm-launch-environment
Dec 08 21:05:11 Hostname gdm[1235]: Gdm: GdmDisplay: Session never registered, failing
Dec 08 21:05:11 Hostname systemd[1]: Stopping Session c2 of User gdm...
Dec 08 21:05:11 Hostname gdm[1235]: Gdm: Failed to list cached users: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name :1.7 was not provided by any .service files
Dec 08 21:05:11 Hostname systemd[1]: Stopped Session c2 of User gdm.

Notify maintainers

@hedning @jtojnar @dasj19 @maxeaubrey
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.81, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4`
 - channels(root): `"nixos-22.05pre336298.bc5d68306b4"`
 - channels(redacted): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Duplicate of https://github.com/NixOS/nixpkgs/issues/149539

Ah my bad. I thought I've searched enough.


Basic SKU is NOT able to be deployed via PowerShell

Under: https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-vpn-faq#vpn-basic

Can I create a VPN gateway with the Basic gateway SKU in the portal?
No. The Basic SKU is not available in the portal. You can create a Basic SKU VPN gateway using Azure CLI or PowerShell.

It states that I'll be able to create a basic VPN gateway, however, I am unable to do this my subscription with an error stating that the basic SKU is not available:

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

ID: 98d7fd30-80a8-f690-6191-d97ae4cac174
Version Independent ID: 3e15f99b-2f2d-7adc-a2d9-0b2184989db7
Content: Azure VPN Gateway FAQ
Content Source: articles/vpn-gateway/vpn-gateway-vpn-faq.md
Service: vpn-gateway
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

@durrante , thank you for your feedback. We'll review this and get back to you shortly!

I am experiencing the same issue, also in the same region (UK South).

@durrante & @drchino , I tested this in my lab and was able to create a Basic SKU VPN gateway using PowerShell successfully.

The error you shared seems to be something else.
It says: Virtual network gateway SKU specified is not valid for subscription with deployment VMScaleset.
I believe you may be hitting some other limitation with Basic SKU VPN gateway.
Refer: https://learn.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-about-skus-legacy#gwsku
Are you using a Basic SKU Dynamic allocation Public IP address?
For a Basic SKU VPN gateway, you must use a Basic SKU Dynamic Public IP.
Do you have an existing ExpressRoute gateway in the same GatewaySubnet?
ExpressRoute-VPN Gateway coexist configurations are not supported on the Basic SKU.
Refer: https://learn.microsoft.com/en-us/azure/expressroute/how-to-configure-coexisting-gateway-portal?toc=%2Fazure%2Fvpn-gateway%2Ftoc.json#limits-and-limitations
Please check the above limitations and try again.
Sharing the script that I used for creating a Basic SKU VPN gateway:
$vnet = Get-AzVirtualNetwork -Name myvnet -ResourceGroupName myrg1

$subnet = Get-AzVirtualNetworkSubnetConfig -name 'GatewaySubnet' -VirtualNetwork $vnet

$ngwpip = @{
    Name = 'mypip'
    ResourceGroupName = 'myrg1'
    Location = 'uksouth'
    Sku = 'Basic'
    AllocationMethod = 'Dynamic'
    IpAddressVersion = 'IPv4'
}
New-AzPublicIpAddress @ngwpip

$ngwpip = Get-AzPublicIpAddress -Name ngwpip -ResourceGroupName myrg1

$gwipconfig = New-AzVirtualNetworkGatewayIpConfig -Name gwipconfig1 -SubnetId $subnet.Id -PublicIpAddressId $ngwpip.Id

New-AzVirtualNetworkGateway -Name myNGW -ResourceGroupName myrg1 -Location "UK South" -IpConfigurations $gwipconfig -GatewayType "Vpn" -VpnType "RouteBased" -GatewaySku "Basic"

We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.

I can confirm that this works perfectly now that I'm using the basic SKU on the public IP. Thank you @GitaraniSharma-MSFT


adding public init

Current coverage is 100% (diff: 100%)

Merging #14 into master will not change coverage

@@           master   #14   diff @@
===================================
  Files           5     5
  Lines          49    50     +1
  Methods         0     0
  Messages        0     0
  Branches        0     0
===================================
+ Hits           49    50     +1
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last update 334911c...0c10484


Kivy problem on mac osx

Kivy doesn't work on mac osx 10.12 sierra.I can't open it.Update please

@drogu
Follow the steps provided

https://kivy.org/docs/installation/installation-osx.html

and if problem continues provide the logs.

@drogu. The instruction provided above work when tested on 10.12. If they do not work for you, please post what you did, where it went wrong and what the message was. Otherwise we can't really help and will close the ticket.

Hello,
I receive this error "35 warnings and 4 errors generated.
error: command 'gcc' failed with exit status 1" when trying to compile Kivy for MacOS Sierra.

@MFaisalZaki. What command did you run that produced the errors? Surely you can copy and paste from the console?

@Zen-CODE I have cloned the repo and then executed sudo python setup.py install

The post the complete output of the command so we can see what the problems is. But please post it as a new report on the Kivy user group.
https://groups.google.com/forum/#!forum/kivy-users
To create a ticket discussion, you need to prove it is a kivy problem, not something you are doing wrong or skipping. The "There is a problem, what is wrong?" proves only that the reporter has not taken the time to try and understand what the problem is. These type of discussions can be had on the forums, but tickets discussions should be reserved for instances where there is clear proof + evidence  of a kivy failing.
You mention nothing of where you ran this command, what you did before it, what the output is. You need to provide these things as evidence.


Text replace op

Implements the text_replace op in Lua, Nim, Python, Swift. In Lua, this is done by escaping the arguments and using the gsub function, I don't know if there's a better way.
Implements a new backend-only text_multireplace op in Nim and Python.
Adds a plugin converting a nested text_replaces to text_multireplace.

Small bugfix in #219, I thought it would show up in this thread rather than in its own PR. But yeah looks good besides that fix.


Update AboutUs (Eugene)

Update AboutUs.md to include my photo and current role (https://github.com/AY2223S1-CS2103-F09-1/tp/issues/47).

Add my photo in doc/images/eugenelmj.png.

Add eugenelmj.md into team folder

LGTM!


Setup DCA instances for CSBC

Following up on the INCLUDE dev and prod instances, let's create similar instances for CSBC.
It looks like these instructions are aligned with the DCA deployment docs here. @afwillia @ychae do you think we need another issue for adding the DCA release process as a new doc on github (e.g. RELEASE.md)?

[ ] dev instance for CSBC instantiated in shinyapps.io
[ ] prod instance for CSBC instantiated in shinyapps.io

@afwillia - needs more info into where to fork the repo, where should this be set up?
@milen-sage will contact Ashley Clayton

@afwillia 1st version of the CSBC data model that can be converted to json-ld and used in the CSBC DCA app instance.

https://www.shinyapps.io/admin/#/application/5992584

@afwillia @ychae how can the CSBC team access the admin side of the setup? Should we share lastpass credentials with them?

If it's easier, the credentials can be shared with just me for the time-being.

@ychae @milen-sage The github repo is https://github.com/mc2-center/data_curator and the app has been deployed to
https://sagebio.shinyapps.io/csbc_data_curator_staging/. I shared the LastPass notes with @vpchung

@ychae @vpchung  just fyi the plan is to deploy a production instance as well. Docs to come on how updates to the two instance work. These would be handled in separate issues.


Bundler plugin: add hanami to list of ruby commands

Hello,
I added hanami command to list of bundler commands

@davydovanton sorry, an exact duplicate of this got merged in #6334 :)


multiple index.html

If there are multiple folders and there are multiple index.html, I think the plugin needs to provide a hint.

contentBase: [resolveFile('example1'), resolveFile('example'), resolveFile('dist')]

Or add a configuration that specifies a index.html in a directory.

Hi, I'm afraid I don't understand what you are saying. Do you have an example?

If there are multiple folders and multiple index.html files in the project, the first imported index.html is read by default.


[FEATURE] Round About Page

Problem
Explain the problem in detail
User Story(s):
As a _______, I want to ____, so that I can
Description
Description of solution
Acceptance Criteria
Outline what needs to be done
Limitations
Outline any potential limitations
Resources

outline links and relevant resources, references, implementations

UI Done

https://github.com/PotLock/grantpicks/pull/38


grocy: 3.2.0

Checklist

[ ] Checked the nixpkgs master branch

[ ] Checked the nixpkgs pull requests

Project name
nix search name: grocy

current version: 3.0.0
desired version: 3.2.0
Notify maintainers

maintainers: @Ma27
Note for maintainers
Please tag this issue in your PR.

Sorry just not in 21.11


Multiple queues

Use a dedicated queue for transfers on hardware that supports it

I don't think this is strictly necessary, but it would help much larger projects, maybe.


Prerelease semver for experimental v2

Would it be possible to use prerelease versions for the v2 release train, which I understand will be completely experimental (https://github.com/kriskowal/q/issues/484)?
I realize that:

This is kind of a PITA
npm uses dist-tags to indicate latest stable

However, not using prerelease versions affects some other tools that strictly apply semver rules to the versions array of the npm package (e.g., https://bitbucket.org/versioneye/versioneye/issue/14/npm-use-dist-tags-for-actual-latest).   While this is only a mild annoyance with this particular tool, I can imagine that are others with more grave consequences.
Thanks for considering.

/cc @reiz

There are releases of v2 published to npm. Use npm install q@2 to get the latest release of the v2 branch. Also, expect breaking changes on patch releases. v2 is far from final. The same applies to many v2 branches of various projects I contribute to.

Yes, but it is kind of a bummer to break semver so completely.  Is it unacceptable to use e.g.,
semver.inc('2.0.0-unstable.0', 'pre', 'unstable')
// 2.0.0 -> 2.0.0-unstable.0
// 2.0.1 -> 2.0.0-unstable.1
// 2.0.2 -> 2.0.0-unstable.2
// 2.0.3 -> 2.0.0-unstable.3

or
semver.inc('2.0.0-unstable', 'prepatch', 'unstable')
// 2.0.0 -> 2.0.0-unstable.0
// 2.0.1 -> 2.0.1-unstable.0
// 2.0.2 -> 2.0.2-unstable.0
// 2.0.3 -> 2.0.3-unstable.0

Thank you for the ideas. I will think about it.
However, perhaps you should wait for the smoke to clear. I intend to announce a v2 release from which semver will be reinstated when it would be appropriate to start migrating dependees. The state of Q at present is so very experimental that you are likely to thrash needlessly on interface changes.

+1


Correct the coordinates computation for small residue graohs, and when granularity: centroids

Reference Issues/PRs
Fixes #219
What does this implement/fix? Explain your changes

Add conditions to graphein/protein/edges/distance.py not to compute distances and angles on empty dataframes
Ensure the good calculation of centroids coordinates by correcting the selection (atoms.groupby("residue_number") -> atoms.groupby(["residue_number","chain_id","residue_name"]))

What testing did you do to verify the changes in this PR?
from graphein.protein.graphs import construct_graph
from graphein.protein.config import ProteinGraphConfig
from graphein.protein.edges.distance import (add_peptide_bonds,
                                             add_hydrogen_bond_interactions,
                                             add_disulfide_interactions,
                                             add_ionic_interactions,
                                             add_aromatic_interactions,
                                             add_aromatic_sulphur_interactions,
                                             add_cation_pi_interactions,
                                             add_distance_threshold
                                            )

new_edge_funcs = {"edge_construction_functions": [add_peptide_bonds,
                                                  add_aromatic_interactions,
                                                  add_hydrogen_bond_interactions,
                                                  add_disulfide_interactions,
                                                  add_ionic_interactions,
                                                  add_aromatic_sulphur_interactions,
                                                  add_cation_pi_interactions,
                                                  partial(add_distance_threshold, long_interaction_threshold=2, threshold=20.)]}

params_to_change = {"granularity": "centroids"}
config = ProteinGraphConfig(**new_edge_funcs, **params_to_change)

pdb_name = 'xxxx.pdb'
g = construct_graph(config=config, pdb_path=pdb_name)
g.coords

Pull Request Checklist

[x] Added a note about the modification or contribution to the ./CHANGELOG.md file (if applicable)
[x] Added appropriate unit test functions in the ./graphein/tests/* directories (if applicable)
[x] Modify documentation in the corresponding Jupyter Notebook under ./notebooks/ (if applicable)
[x] Ran python -m py.test tests/ and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g., python -m py.test tests/protein/test_graphs.py)
[x] Checked for style issues by running black . and isort .

Codecov Report
Base: 40.27% // Head: 47.76% // Increases project coverage by +7.49% :tada:

Coverage data is based on head (3eb36cf) compared to base (8123f42).
Patch coverage: 51.86% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #220      +/-   ##
==========================================
+ Coverage   40.27%   47.76%   +7.49%
==========================================
  Files          48       85      +37
  Lines        2811     5435    +2624
==========================================
+ Hits         1132     2596    +1464
- Misses       1679     2839    +1160

Impacted Files
Coverage Δ

graphein/grn/parse_trrust.py
37.77% <ø> (ø)

graphein/ml/diffusion.py
0.00% <0.00%> (ø)

graphein/ppi/edges.py
100.00% <ø> (ø)

graphein/ppi/graph_metadata.py
0.00% <ø> (ø)

graphein/ppi/graphs.py
54.34% <ø> (ø)

graphein/ppi/parse_biogrid.py
75.00% <ø> (ø)

graphein/ppi/visualisation.py
0.00% <0.00%> (ø)

graphein/protein/analysis.py
0.00% <0.00%> (ø)

graphein/protein/edges/intramolecular.py
22.68% <0.00%> (ø)

graphein/protein/features/sequence/utils.py
28.00% <0.00%> (+3.00%)
:arrow_up:

... and 77 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Hi all! Just a comment regarding the updates in the atoms.groupby called inside the centroid calculations. It seems the input list starts with residue_number which makes the centroid data.frame being ordered by the residue_number. In the case we are working with two protein chains, the rows of this data.frame will be different from the G.graph["pdb_df"] called, for instance, inside the add_distance_threshold. Thus, the edges are created between wrong nodes. It seems that just changing the order of the input list for atoms.groupby (starting for instance by chaid_id) could correct this issue, but not sure about downstream impacts of this modification.


Add more meta data to projects

When creating/editing a project's en.catkeys ("Application | Edit") additional data could be added:

a 32 bit icon (defaulting to Haiku's three colour cubes)
the URL to the project home page
the URL to the project issue tracker

The icon can then be used whereever here's currently only the project name. This can help not to get confused, if e.g. there are several slightly similarly named projects, like "PecoRename" and "PecoBeat".
The URLs can be added to small icons after the project's name, to give quick access, e.g. if a translator found a typo. Add a tooltip to those icons "Project's website", Project's bugtracker".
Here's a mockup:

Hmm... maybe even add an optional URL for downloading a special pre-release the translators can install, because the app being translated hasn't been released yet. Translation is much easier when not done blindly...
That would add another icon to the project and bugtracker one.

Also, a text box where a dev can give additional info that'll be displayed on the "Files" and "Translation" pages. Could be used to communicate what has changed with the latest en.catkeys update, for example.
Should be limited to 500 characters or somethins sensible.

I am not convinced by the text box for additional info. Is this info really relevant to translators?

I'm not exactly sure either anymore... :)
BTW, for that release date (is that te planned date for the next release?) a date-picker-wdget would be nice. Until then, or maybe instead if it's not trivial, insert the format "YYYY-MM-DD" as start value intot he textbox.

It's date of next release. It wouldn't make much sense otherwise ;) Date picker-widget is available in browsers which support input type="date".

Such a date picker is available at the Haiku forums when pinning a topic (admin feature) for both web+ and qupzilla. Dunno how that's implemented though...
Maybe add "Next release date" anyway, to make it clear to morons like me even. :)


Owasp Dependency Check devdependency exclusion

Hello @jeremylong,
I am looking to exclude development dependencies from the OWASP Dependency Check scan. I use the --nodeAuditSkipDevDependencies and --nodePackageSkipDevDependencies parameters for it. However, it does not exclude some of our development dependencies. For a better understanding, can you please explain how this exclusion process works? How does it determine which dependencies are development and which are production?

disable the node package analyzer - its garbage and needs to be re-written. If you use just the node audit analyzer - it is really no different the just running npm audit as that is what it does under the covers.


Conflict with other gems that use the tag method

this might not be ideal... but seams to be a popular issue.

+1


[FEATURE] Add a new page to display all contributors

I want to add a page to showcase all the contributors of this website.
@GVishnudhasan  please assign me this task.

@GVishnudhasan

It is not needed.


Repo sync for protected CLA branch

The pull request is created from main637858989065828091 to main to fix git push error for protected CLA branch

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


Open Update PRs prevent newer PRs from being opened

Description
The workflow to detect existing PRs only checks if there is an update PR for the provider. It does not check that the upstream PR corresponds to the latest upstream version of the provider.
That means that if an update PR fails and isn't closed, it will block future updates to that provider, even ones that would succeed. Examples of that blocking include:

https://github.com/pulumi/registry/pull/5782
https://github.com/pulumi/registry/pull/5719
https://github.com/pulumi/registry/pull/4826

Work-around
The work-around is to close upgrade PRs as soon as they fail. This is annoying as genuine failures (an invalid release) will be re-opened every day (and must be closed every day). The alternative is to let providers get stale once they get stuck once, so we should close failed PRs.
Solution
Our tooling should be robust to bad versions, closing outdated PRs and opening new ones as necessary. I propose the following algorithm for updating metadata:

Get the latest version of a provider (published upstream)
Get the version of a provider (published in our registry)
If these match, return
If they don't match, scan for PRs (by @pulumi-bot) of the form "^Publish Package Metadata<EMAIL_ADDRESS>If no PR exists of the form "^Publish Package Metadata <provider>@<target-version>$", open it.
Close all other PRs for that provider, marking them as closed in favor of the current PR.

This algorithm has the following properties, all of which I believe are necessary:

A PR is raised for each new upstream release, regardless of prior state.
Only one PR is raised per upstream release, unless the prior PR was closed.
All providers that are not up to date will have an outstanding PR, regardless of prior state.
When a provider is up to date, there will be no outstanding PRs.

Implementing the solution described here will also fix the problem described in https://github.com/pulumi/registry/pull/4025.


npm run build or yarn run build is Failing - cross-env is not recognized

While running, npm run build, I'm getting this error

and while using yarn build also, I got the same error. I'm kinda new to the cross-env thing. Do lmk how can i resolve this and how can get a production build of the site.

I wanted to build and deploy this app in netlify also, but still the same error there also.

@Blari @okendoken @stepnov Sorry for the mention, but my whole project was done on this and we aren't able to build it. if you don't mind, pls do let me know what can I do here?

Install cross env using
yarn add cross-env
or
npm install cross-env --save-dev to resolve this error


[improve] [broker] PIP-299-part-1: Stop dispatch messages if the individual acks will be lost in the persistent storage

Motivation & Modifications
The part 1 of PIP-299: the implementation of "Stop dispatch messages if the individual acks will be lost in the persistent storage"
Subsequent PRs:

part-2: add config dispatcherPauseOnAckStatePersistentEnabled
part-3: Dynamic config
part-4: Topic policies support.
part-5: Doc

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: x

Codecov Report
Attention: 26 lines in your changes are missing coverage. Please review.

Comparison is base (181b20b) 73.42% compared to head (5cf31a2) 73.40%.
Report is 6 commits behind head on master.

Additional details and impacted files

@@             Coverage Diff              @@
##             master   #21423      +/-   ##
============================================
- Coverage     73.42%   73.40%   -0.02%
- Complexity    32791    32827      +36
============================================
  Files          1897     1899       +2
  Lines        140633   140733     +100
  Branches      15491    15508      +17
============================================
+ Hits         103254   103306      +52
- Misses        29306    29345      +39
- Partials       8073     8082       +9

Flag
Coverage Δ

inttests
24.16% <24.63%> (-0.03%)
:arrow_down:

systests
24.85% <20.28%> (+0.22%)
:arrow_up:

unittests
72.70% <62.31%> (-0.02%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

...che/bookkeeper/mledger/impl/ManagedCursorImpl.java
79.25% <100.00%> (+0.06%)
:arrow_up:

...rg/apache/pulsar/broker/service/AbstractTopic.java
87.77% <100.00%> (+0.03%)
:arrow_up:

...a/org/apache/pulsar/broker/service/Dispatcher.java
57.89% <100.00%> (+2.33%)
:arrow_up:

...atcherSignatureOnCursorDataCanNotFullyPersist.java
100.00% <100.00%> (ø)

...sar/broker/service/persistent/PersistentTopic.java
78.84% <100.00%> (+0.16%)
:arrow_up:

...r/common/policies/data/HierarchyTopicPolicies.java
100.00% <100.00%> (ø)

...che/pulsar/common/policies/data/TopicPolicies.java
58.73% <100.00%> (+0.66%)
:arrow_up:

...a/org/apache/bookkeeper/mledger/ManagedCursor.java
40.00% <0.00%> (-2.86%)
:arrow_down:

...tent/PersistentDispatcherSingleActiveConsumer.java
70.49% <0.00%> (-1.38%)
:arrow_down:

...ker/service/persistent/PersistentSubscription.java
76.44% <53.84%> (-0.82%)
:arrow_down:

... and 1 more

... and 71 files with indirect coverage changes


on_attestation: if Attestation's target block is unknown, consider delaying processing the attestation

https://github.com/ethereum/eth2.0-specs/blob/v0.9.2/specs/core/0_fork-choice.md#on_attestation
According to spec:"An attestation that is asserted as invalid may be valid at a later time,consider scheduling it for later processing in such case.""# Attestations target be for a known block. If target block is unknown, delay consideration until the block is found""# Attestations must be for a known block. If block is unknown, delay consideration until the block is found"


About languageHints

I'm glad to using this feature. But i have a question about configuring options for documentTextDetection.
i have to recognize Mongolian (crylic) charecter from document, and set languageHints to languageHints: ["mn"] .
I can't set options to client.documentTextDetection method.
Please help, how to set features or options for client.documentTextDetection method.
Thanks!
Best regards

now i'm doing it by
let options = {             imageContext: {                 languageHints: ["mn"],             }         };         client.documentTextDetection(file, options).then(callback).catch(err);

Thank you, i solved my problem way
fs.readFile(fileName, (err, data) => {
let param = {
image: {
content: Buffer.from(data).toString('base64')
},
imageContext: {
languageHints: ["mn"]
}
};
vision.document(param, (results) => {
id_card.recognize_front(results, fileHash, callback);
}, (err) => {
console.log(err);
callback(err, null);
});
});


Control plane wouldn't converge randomly

General
In some cases, it looks like when deploying a cluster on Packet the k8s control plane doesn't converge properly.
Symptoms

lokoctl cluster apply finishes successfully, however kubectl actions fail with refused connections.
The controller node isn't listening on port 6443, which explains the above.

Investigation
Following are relevant logs:
core@johannes-test-controller-0 ~ $ docker ps | grep apiserver
86611727e641        c2a8b49795ca           "/bin/sh -c 'set -xe…"   17 minutes ago      Up 17 minutes                           k8s_kube-apiserver_kube-apiserver-597b547687-dtv5g_kube-system_3173f666-1d16-4ea0-b76b-91c6d25db70b_1

I0402 19:59:58.348452       1 controller.go:107] OpenAPI AggregationController: Processing item v1beta1.metrics.k8s.io
W0402 19:59:58.348568       1 handler_proxy.go:97] no RequestInfo found in the context
E0402 19:59:58.348681       1 controller.go:114] loading OpenAPI spec for "v1beta1.metrics.k8s.io" failed with: failed to retrieve openAPI spec, http error: ResponseCode: 503, Body: service unavailable
, Header: map[Content-Type:[text/plain; charset=utf-8] X-Content-Type-Options:[nosniff]]
I0402 19:59:58.348708       1 controller.go:127] OpenAPI AggregationController: action for item v1beta1.metrics.k8s.io: Rate Limited Requeue.
E0402 20:00:02.350342       1 available_controller.go:419] v1beta1.metrics.k8s.io failed with: failing or missing response from https://<IP_ADDRESS>:443/apis/metrics.k8s.io/v1beta1: Get https://<IP_ADDRESS>:443/apis/metrics.k8s.io/v1beta1: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
E0402 20:00:12.351206       1 available_controller.go:419] v1beta1.metrics.k8s.io failed with: failing or missing response from https://<IP_ADDRESS>:443/apis/metrics.k8s.io/v1beta1: Get https://<IP_ADDRESS>:443/apis/metrics.k8s.io/v1beta1: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
E0402 20:00:32.349854       1 available_controller.go:419] v1beta1.metrics.k8s.io failed with: failing or missing response from https://<IP_ADDRESS>:443/apis/metrics.k8s.io/v1beta1: Get https://<IP_ADDRESS>:443/apis/metrics.k8s.io/v1beta1: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

core@johannes-test-controller-0 ~ $ sudo netstat -anp | grep LISTEN | grep api
tcp        0      0 <IP_ADDRESS>:7443     <IP_ADDRESS>:*               LISTEN      3396/kube-apiserver

core@johannes-test-controller-0 ~ $ sudo netstat -anp | grep LISTEN | grep 6443
core@johannes-test-controller-0 ~ $

The information in https://github.com/kinvolk/lokomotive/commit/95af6c9679f8ce037b462798697a4b65f24726c1 could be relevant.

We solved that @johananl, right? I recall debugging it.

Could be, I'm not sure. This was an intermittent problem so it's hard for me to say it's surely gone. If you've identified a root cause, could you describe it here and link to a fix?

I don't remember the details. Maybe it was related to Packet not serving latest Flatcar images?

I'll close it, as it seems this is no longer an issue.


[Suggestion] JEI Support For Wooden Crucibles

I have this working in Pull #162.

Merged, adding to curse soon.


style: convert unicode to human-readable character

Thank you for these conversions.  Mostly they are there because I was being lazy.  All of the translations have the escaped unicode, and so I have to unescape each one of them manually as I'm adding anything.  Unfortunately I could not find an eslint rule for this, but I think the way you have it is preferred over the escaped format.


Issue tracking history on polymorphic associations (4.0.0.beta2)

Hi there!  I'm trying to use the paper_trail gem with custom version tables/abstract PaperTrail::Version model as well as tracking version associations.  My relevant classes and modules look like this:
# config/initializers/paper_trail.rb
PaperTrail::Rails::Engine.eager_load!

PaperTrail::Version.module_eval do
  self.abstract_class = true
end

# app/models/concerns/taggable.rb
module Taggable
  extend ActiveSupport::Concern

  included do
    has_many :taggings, as: :taggable, inverse_of: :taggable, dependent: :destroy
    has_many :tags, through: :taggings
  end
end

# app/models/question.rb
class Question < ActiveRecord::Base
  include Taggable

  has_paper_trail class_name: 'QuestionVersion'
end

# app/models/tagging.rb
class Tagging < ActiveRecord::Base
  belongs_to :taggable, polymorphic: true, inverse_of: :taggings
  belongs_to :tag, inverse_of: :taggings, counter_cache: true

  has_paper_trail class_name: 'TaggingVersion'
end

# app/models/tag.rb
class Tag < ActiveRecord::Base
  has_many :taggings, inverse_of: :tag, dependent: :destroy
  has_many :taggables, through: :taggings

  has_paper_trail class_name: 'TagVersion'
end

# app/models/question_version.rb
class QuestionVersion < PaperTrail::Version
  self.table_name = :question_versions
end

# app/models/tagging_version.rb
class TaggingVersion < PaperTrail::Version
  self.table_name = :tagging_versions
end

# app/models/tag_version.rb
class TagVersion < PaperTrail::Version
  self.table_name = :tag_versions
end

For reference, my migrations are defined as:
class CreateQuestionVersions < ActiveRecord::Migration
  def change
    create_table :question_versions do |t|
      t.string   :item_type,     null: false
      t.integer  :item_id,       null: false
      t.string   :event,         null: false
      t.integer  :transaction_id
      t.string   :whodunnit
      t.text     :object
      t.text     :object_changes
      t.datetime :created_at,    null: false
    end

    add_index :question_versions, [:item_type, :item_id]
    add_index :question_versions, [:transaction_id]
  end
end

class CreateTagVersions < ActiveRecord::Migration
  def change
    create_table :tag_versions do |t|
      t.string   :item_type,     null: false
      t.integer  :item_id,       null: false
      t.string   :event,         null: false
      t.integer  :transaction_id
      t.string   :whodunnit
      t.text     :object
      t.text     :object_changes
      t.datetime :created_at,    null: false
    end

    add_index :tag_versions, [:item_type, :item_id]
    add_index :tag_versions, [:transaction_id]
  end
end

class CreateTaggingVersions < ActiveRecord::Migration
  def change
    create_table :tagging_versions do |t|
      t.string   :item_type,     null: false
      t.integer  :item_id,       null: false
      t.string   :event,         null: false
      t.integer  :transaction_id
      t.string   :whodunnit
      t.text     :object
      t.datetime :created_at,    null: false
    end

    add_index :tagging_versions, [:item_type, :item_id]
    add_index :tagging_versions, [:transaction_id]
  end
end

class CreateVersionAssociations < ActiveRecord::Migration
  def change
    create_table :version_associations do |t|
      t.integer  :version_id
      t.string   :foreign_key_name, null: false
      t.integer  :foreign_key_id
    end

    add_index :version_associations, [:version_id]
    add_index :version_associations, [:foreign_key_name, :foreign_key_id], name: 'index_version_associations_on_foreign_key'
  end
end

The error pops up in the save_associations method of has_paper_trail.rb.  The call to assoc.klass is returning Taggable, which from my model definitions is supposed to be a polymorphic association.  Instead, it's resolving to my Taggable module, and attempting to call paper_trail_enabled_for_model? on it, which is not defined.
It seems that instead of trying to classify the polymorphic association via assoc.klass (which returns Taggable), it would make more sense to call send(assoc.name).class (which in this case would return Question).  Unfortunately, I'm not sure if this will fix everything since the following call would end up storing the foreign_key_name as taggable_id instead of question_id with no reference to the foreign_type of taggable_type:
PaperTrail::VersionAssociation.create(
  :version_id => version.id,
  :foreign_key_name => assoc.foreign_key,
  :foreign_key_id => self.send(assoc.foreign_key)
)

Any thoughts or input?  I could very well just be doing something wrong, or perhaps there is no working path for polymorphic associations at this time.

I encountered the same problem, too.
I just wanted to add that if there weren't a Taggable constant available, assoc.klass would yield a
NameError: uninitialized constant Tagging::Taggable.
As fas as I understand that is caused by a long-standing Rails bug which affects Rails 2.3 to 4.2 and is apparently hard to fix (https://github.com/rails/rails/issues/2386, https://github.com/rails/rails/issues/15833)


feature request: throw error / fail test on selector in expect

What is your Test Scenario?
We've seen a few team members accidentally use t.expect(Selector) w/out using .exists. This of course triggers the warning
 Warnings (1):
 --
  You passed a Selector object to 't.expect()'.
  If you want to check that a matched element exists, pass the
  'selector.exists' value instead.

What are you suggesting?
I would like to be able to configure testcafe to throw an error in this case so the developer knows to use .exists
What alternatives have you considered?

a lint rule, but that could get very hairy and the runtime clearly is aware of it.
Additional context

@benmonro
Hello,
Thank you for your suggestion.
For the team.
See the "Treat errors as warning" feature description here.


[docs] Fixed code styling in examples for User Roles

This pull request fixes code styling in examples for User Roles
Also:

Fixed link in azure-devops.md

It looks like tests fail is not related to the changes introduced in this PR:
URL: http://localhost:8080/testcafe/documentation/continuous-integration/azure-devops.html
[02:09:59] Broken links:
[02:09:59] https://github.com/Microsoft/azure-pipelines-image-generation/blob/master/images/linux/Ubuntu1604-README.md
[02:09:59] undefined
[02:16:47] 'test-website-run' errored after 7.58 min
[02:16:47] Error: Broken links found!

@Marketionist, thank you for the fix!

@VasilyStrelyaev thanks for fast merge!


Conductor: flyingdetector error when with processing and plotting activated

Trying to run a minimal protocol with a single trial and "processing" and "Plotting" activated, I see the following error:
Error using load
Number of columns on line 13 of ASCII file C:\Users\labadmin\src\Modular-LED-Display\Generation 4\Display_Tools\G4_Data_Analysis\data processing\G4_Process_Data_flyingdetector.m must be
the same as previous lines.

Error in feedback_model/get_wbf_limits (line 224)
            S = load(processing_path);

Error in G4_conductor_controller/run (line 604)
                self.fb_model.get_wbf_limits(self.model.processing_file);

Error in G4_conductor_view/run_exp (line 602)
            self.con.run();

Error in G4_conductor_view>@(varargin)self.run_exp(varargin{:}) (line 140)
                'units', 'pixels', 'Position', [15, self.fig_size(4)- 305, 115, 85],'Callback', @self.run_exp);

Error while evaluating UIControl Callback.

Settings in the Conductor:

The default paths in the plotting and processing spaces are Matt's old code and don't work. For a protocol, you have to create a settings file for each specific to that protocol and load those files in the box before running the experiment. I will update the conductor's settings file so these paths are no longer there by default, because if the user doesn't remember to replace them with their own, they'll always getting processing and plotting errors.

commit 851bbcd


Conditional validations

I found there's no conditional validations like validates :name, presence, if: :some_condition. IMO it's used very frequently. Curious the reason it's not implemented in Lotus validations. Is it already in plan? Or there's other way you recommend more to do the same thing?

@darkbaby123 atm there is a PR #71 that allows users to define custom validator which can work around this issue.
I like your suggestion and open for the PR submission. The validator should take in a proc/lambda OR the symbol name of a private condition method

@darkbaby123 Hello and thanks for this suggestion. We won't to support conditionals for action callbacks, validators, because they increase the complexity both of the frameworks and applications.
If you use validations around use cases, and not in entities/models, you'll almost eliminate this need. Now, I don't know your specific use case, so please share with us, and we can find a solution for you of for the framework.
As @joneslee85 we'll offer soon a more flexible approach for validations, so it could be helpful for you. But my opinion on conditionals is :-1:

@jodosha I watched your blog post before I submit this issue, and I'm not use validations in entities/model level in my recent project (all plain Ruby object + validation mixin, it's a Rails project). I admit that most of time I don't need the conditional validations, but they're still useful in some of my cases:
Case 1
I have an API that responsible to connect some device (hardware) to current user, and I use a single API endpoint to handle all 3 connection types. It's like this:
{
  conn_type: 'a/b/c',
  quick_code: 'xxx', // should be present in type a
  uuid: 'xxx', // should be present in type b
}

In this case I can use 2 different validators, but a conditional validation can make it simpler.
Case 2
In my another project I have a "sign contract" page, the user need to choose a "sign via" radio button to select sign type, he should either enter:

Driver's licence and state
SSN

The validation in this logic is depend on what "sign via" he choose. So I did something like this:
validates :signer_driver_lic, :signer_state, presence: true, if: :sign_via_driver_lic?
validates :signer_ssn, presence: true, if: :sign_via_ssn?

I think conditional validations are not used frequently (if so then it's wrong way to use validations), but in some cases it make sense. A simple "if" is better than an extra abstraction (e.g. a different validator object).

BTW maybe out of the topic, but in these days I'm also thinking about what is a good validation system. I checked Ruby/Node/PHP implementations and I really like Laravel's validation because of 2 reasons:

It separates validation rules and validator. A rule (e.g. required/digits) just validate a value and does not care about what object attribute it applies and how to set error messages. A validator does that.
It's code. So it's flexible to composite different validation rules. I found most of Ruby validation libraries are using DSLs (maybe affected by Rails). It's clean but not flexible enough. For example to support conditional validations they need to create more syntax like if: :some_condition?

@darkbaby123 I made a mistake by evaluating this feature. My apologize.
Now, we could think of a better design that uses composition rather than a DSL. I still believe that :if/:unless once introduced, will go soon out of hand.
I'm reopening this, and inviting other devs who asked for the same feature, to better explain their needs and discuss together.

@jodosha Thank you, you're really open minded :smile:

I understand the concern about complexity. And most of the times it can be modeled in a different way. But sometimes the design decision is not up to the developer. So i guess this might be useful.

@pascalbetz Thank you. In my understanding from chat conversation, you had a concrete use case. Is it correct? Would you love to bring into this thread? Thank you!

:+1: for rethinking validation DSL and reconsidering. I'm absolutely convinced the DSL introduced in Rails was never-ever a good idea. Validations can be very complex, a DSL is limited, trying to make it flexible by introducing tons of options is not the way to go. Which is actually a general issue with any DSL. It's interesting that @darkbaby123 mentioned Laravel's validation with validators and rules, coincidently I've been thinking about a very similar approach, with lightweight validations that work with "rules" (I wanted to call them predicates) that are composable.
Validation DSL is a dead end, especially when you start to introduce more and more options.
I love Jose Valim's quote from one of his elixir talks where he mentioned that he gave a talk in 2010 titled "DSL or NoDSL" and then he says "I can give you a short digest of this talk: "NoDSL". Brilliant and very true.
And I agree. We should have less DSLs, in most cases we shouldn't have them at all.

@jodosha
I can not point out one single project. I just had the requirements of conditional validations in various projects.

a user profile form. If the password is changed, then the confirmation needs to be provided (and match) as well.
if some fields need to be filled out depending on the age/birthdate
an API endpoint as described by @darkbaby123
...

@solnic i don't know Laravel's validation. Can you explain?

Spoiler
:+1: for predicates within validators
:-1: for validates :bar, if :foo?
Laravel uses php's lambda to build conditional/complex validations, some kind of:
attribute :driver_lic do
  presence: true if age > 18
  size: 14
  type: Integer
end

Those predicates are composed within main attribute and does not rely on DSL's to build it.

@pascalbetz boils down to what @hlegius just wrote :)
I'll be experimenting with a validation library soon, I can share some API ideas. The only reason why I may introduce a DSL is to reduce boilerplate required for composing validations, but I'm strongly against AM::V-like validation DSL, it's convoluted, inflexible and introduces ambiguity in many places which is a nonsense in a validation world (see :allow_blank or :presence validation etc.)

@solnic
let me know when you can share something. You've got me interested:-)
@hlegius thanks.

@pascalbetz will do :) the work will be happening in dry-validation repo (current prototype will be replaced)

@solnic can you tell me the link for Elixir talk? I also checked how validation works in Phoenix & Ecto, but I think it's not the best choice to use the same thing in Ruby land. But I'm very interested in how Jose think about DSLs.
Share some of my thinking about validation rules and validators:
A validation rule just check if a value is valid and nothing more. It doesn't care how to get the value from an data object, or how to set the error type or error message. It can be a pure function without side effect, so it can be used anywhere (even used standalone).
A validator is something like a form object. It includes how to apply validation rules to a data object's attributes. It gets a data object in, validate it, and set errors object. The errors object is maintained by validator but not data object. A validator's validate process has side effect: set errors object.
I found this kind of thinkings are more appeared in Node.js land, maybe it's because it's super easy to construct a plain object in JavaScript world. I saw an NPM library called composable-validator, but I can not find it now. It has really interesting ideas about how to composite validators.
I think to bring a good validator library, we can get ideas from many other languages (JavaScript, Elixir, PHP, etc.). Because validation issue are very common in programming world, and on the other side, many Ruby's validator libraries are very like Rails ActiveModel validator. That means if you don't agree with Rails way, you don't like the rest either.

OK I'm getting close to wrap up the rewrite of dry-validation. You can check out its DSL right here. It's based on simple (and stateless!) predicate logic and rule composition. Error objects are serializable to an AST for further processing, so various error messages can be produced (this needs a bit more work, I literally started a couple of hours ago).
The huge difference is that you're composing validations from simple predicate rules, they obey predicate logic and it's very precise, you can say that I expect key :email to be present, assuming it is, its value must be a string and it must match this regex. This is something that cannot be easily done with huge DSL with lots of options, as it gets hairy very quickly and it's hard to reason about it.
I'm trying to put huge emphasis on preciseness and simple composition. It's not a good idea to have ambiguity and implicit behavior in a validation library. Next thing is that validation objects receive input that they will validate, rather than making them state-full using the input and making assumptions about things like how a value is being extracted from input. This means that in dry-validation you'll be able to validate plain hashes, plain arrays or objects with attr readers, this includes scenarios where things are deeply nested too.
The DSL is only meant to precisely define expected input structure along with the validation logic. I'm planning more advanced features like defining validation "safe-points" where you'll be able to say that if rule A passed then do this or a system for generating error messages where information "from the outside" is required to produce the full error message to the client (which is often needed).
I'm very happy with the progress so far, I believe it's a good direction, definitely better than heavy DSLs with lots of options (it's an anti-pattern in general, regardless of the type of a library).

Looks like the spec mentioned above has moved: https://github.com/dryrb/dry-validation/blob/feature/predicate-set/spec/integration/validation_spec.rb

Just checked the repo and the spec is moved to https://github.com/dryrb/dry-validation/blob/master/spec/integration/validation_spec.rb

@darkbaby123 We finally coded a solution for your problem.
Please have a look at: #102 - For that PR I used your examples to implement the high level rules feature. https://github.com/hanami/validations/blob/814233a3a45e3fefe12e3d2f28850e59504a1b76/test/rules_test.rb


Display redacted strings in the client

I'm making this pull request mainly more of a code review. I have too many questions and it's easier to do this here rather than get on a call and try and sort it out.
First Question: where do you see this code going? At first I thought it would go into redacted.rs in the client, but then for some reason I can't remember I decided I didn't like that and put it into a utils.rs. I'm pretty sure I don't like it in utils and it should go into redaction.rs with the ToMd code .. .but again, I'll leave the code here so it gets your feedback and ideas.
Second Question: I'm not positive the spot in query.rs where I've put replace_redacted_items is the best spot. There might be a more obvious location that I'm missing? Let me know.
Third Question: utils.rs is heavily commented b/c I wasn't sure any of what I was doing would make sense to anyone else.
Fourth Question: It also has a ton a debug statements left over so I can grok what's going on with the redactions when we attempt to do anything. Do you want all those stripped out or left in? I'm also wary of the spec changing underneath us at the last moment and then not having them.
Fifth Question: Do you want this code more streamlined, re-factored, anything else with it? I'm not in love with how it came out and I definitely don't like the names of any of the methods.  I've also  left the code for replacementValue in but commented out, so I'm open to changing anything and everything about it.
Sixth Question: More tests? Or is what we have here sufficient?
Anything else I've missed? I've looked at it for so long I think I've become blind to the issues and have certainly overlooked more than a few things.

I definitely think it should go in redacted.rs and not utils.rs.
Regarding the db! question, this is from the Rustdoc on it:

The dbg! macro works exactly the same in release builds. This is useful when debugging issues that only occur in release builds or when debugging in release mode is significantly faster.
Note that the macro is intended as a debugging tool and therefore you should avoid having uses of it in version control for long periods (other than in tests and similar). Debug output from production code is better done with other facilities such as the debug! macro from the log crate.

So rip it out.

Cool, I will rip the dbg stuff out, move the stuff around and then re-do a pull request


custom-server-typescript production build does not work

Examples bug report
Example name
custom-server-typescript
Describe the bug
Starting the app in production mode fails.
To Reproduce
$ npx create-next-app --example custom-server-typescript custom-server-typescript-app
$ npm install
$ npm run build
$ npm start

> @ start C:\custom-server-typescript-app
> cross-env NODE_ENV=production node .next/server

module.js:550
    throw err;
    ^

Error: Cannot find module 'C:\custom-server-typescript-app\.next\server'
    at Function.Module._resolveFilename (module.js:548:15)
    at Function.Module._load (module.js:475:25)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3

Expected behavior
The server should be started.
System information

OS: Windows 10
Version of Next.js: 8.1.0

I just had the same issue. In my case I forgot to configure the outDir in tsconfig.server.json.
It used to be there, but it seems to have been removed from the example in https://github.com/zeit/next.js/pull/7362
Commit in question: https://github.com/zeit/next.js/commit/69ef5d43d6fea620a8ea7405cb81ac3393fa139b#diff-49a7f4ecf6efce19ca858e4092c5ac89

I've attempted to cleanup the custom-server-typescript example here. Server builds should now work again 🙏


WIP: refactor: rewrite prover in rust

Purpose or design rationale of this PR
Refactor prover in rust, fixing the memory issue and supporting multi-version circuits.
PR title
refactor: rewrite prover in rust.

[ ] build: Changes that affect the build system or external dependencies (example scopes: yarn, eslint, typescript)
[ ] ci: Changes to our CI configuration files and scripts (example scopes: vercel, github, cypress)
[ ] docs: Documentation-only changes
[ ] feat: A new feature
[ ] fix: A bug fix
[ ] perf: A code change that improves performance
[x] refactor: A code change that doesn't fix a bug, or add a feature, or improves performance
[ ] style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
[ ] test: Adding missing tests or correcting existing tests

Deployment tag versioning
Has tag in common/version.go been updated or have you added bump-version label to this PR?

[x] No, this PR doesn't involve a new deployment, git tag, docker image tag
[ ] Yes

Breaking change label
Does this PR have the breaking-change label?

[x] No, this PR is not a breaking change
[ ] Yes

The log is too less ,and more log

you can add the "bump-version" tag, then you don't need to manually bump version every time


Unable to setup through yaml

Home Assistant Adaptive Lighting Issue Template
Bug Reports
If you need help with using or configuring Adaptive Lighting, please open a Q&A discussion thread here instead.
Before submitting a bug report, please follow these troubleshooting steps:
Please confirm that you have completed the following steps:

[x] I have updated to the latest Adaptive Lighting version available in HACS.
[x] I have reviewed the Troubleshooting Section in the README.
[ ] (If using Zigbee2MQTT) I have read the Zigbee2MQTT troubleshooting guide in the README.
[x] I have checked the V2 Roadmap and open issues to ensure my issue isn't a duplicate.

Required information for bug reports:
Please include the following information in your issue.
Issues missing this information may not be addressed.

Debug logs captured while the issue occurred. See here for instructions on enabling debug logging:
(Got additional data in the debug logging for my own troubleshooting)

2023-08-13 18:37:33.971 DEBUG (MainThread) [custom_components.adaptive_lighting.switch] Setting up AdaptiveLighting with data: {'e9dc015ec551ed2af75b99c023b6265a': {'undo_update_listener': <function ConfigEntry.add_update_listener.<locals>.<lambda> at 0x7ffacd4f3240>}} and config_entry {'entry_id': 'e9dc015ec551ed2af75b99c023b6265a', 'version': 1, 'domain': 'adaptive_lighting', 'title': 'bank', 'data': mappingproxy({'name': 'bank', 'lights': ['light.ceiling_lights'], 'prefer_rgb_color': False, 'transition': 60.0, 'initial_transition': 2.0, 'interval': 90.0, 'min_brightness': 75, 'max_brightness': 100, 'min_color_temp': 2000, 'max_color_temp': 5800, 'sleep_brightness': 20, 'sleep_color_temp': 2000, 'min_sunrise_time': '06:15:00', 'max_sunrise_time': '07:00:00', 'sunrise_offset': -900.0, 'min_sunset_time': '18:20:00', 'max_sunset_time': '21:15:00', 'sunset_offset': 1800.0, 'brightness_mode': 'tanh', 'brightness_mode_time_dark': 2700.0, 'brightness_mode_time_light': 4500.0, 'take_over_control': True, 'adapt_only_on_bare_turn_on': True, 'detect_non_ha_changes': False, 'only_once': False, 'skip_redundant_commands': True, 'transition_until_sleep': False, 'adapt_delay': 0.0, 'include_config_in_attributes': False, 'autoreset_control_seconds': 0, 'sleep_rgb_color': [255, 56, 0], 'send_split_delay': 0, 'multi_light_intercept': True, 'sleep_transition': 1.0, 'sleep_rgb_or_color_temp': 'color_temp', 'separate_turn_on_commands': False}), 'options': mappingproxy({}), 'unique_id': 'bank', 'supports_unload': True, 'supports_remove_device': False, 'pref_disable_new_entities': False, 'pref_disable_polling': False, 'source': 'import', 'state': <ConfigEntryState.LOADED: 'loaded'>, 'disabled_by': None, '_setup_lock': None, 'update_listeners': [<function async_update_options at 0x7ffac7ae9c60>], 'reason': None, '_async_cancel_retry_setup': None, '_on_unload': None, 'reload_lock': <asyncio.locks.Lock object at 0x7ffafe6fc190 [unlocked]>, '_tasks': set(), '_background_tasks': set()}
2023-08-13 18:37:33.971 WARNING (MainThread) [custom_components.adaptive_lighting.switch] Deleting AdaptiveLighting switch 'bank' because YAML defined switch has been removed from YAML configuration

Your Adaptive Lighting configuration:
Issue reproduces on HA 2023.8.1 with a clean config with demo entities.

demo:

adaptive_lighting:
  - name: "bank"
    lights:
      - light.ceiling_lights
    prefer_rgb_color: false
    transition: 60
    initial_transition: 2
    interval: 90
    min_brightness: 75
    max_brightness: 100
    min_color_temp: 2000
    max_color_temp: 5800
    sleep_brightness: 20
    sleep_color_temp: 2000

    min_sunrise_time: '06:15:00'
    max_sunrise_time: '07:00:00'
    sunrise_offset: -900 # 15 min earlier
    min_sunset_time: '18:20:00'
    max_sunset_time: '21:15:00'
    sunset_offset: 1800 # 30 min later

    brightness_mode: tanh
    brightness_mode_time_dark: 2700
    brightness_mode_time_light: 4500

    take_over_control: true
    adapt_only_on_bare_turn_on: true
    detect_non_ha_changes: false
    only_once: false
    skip_redundant_commands: true

(If using Zigbee2MQTT), provide your configuration files (remove all personal information before posting):

devices.yaml
groups.yaml
configuration.yaml ⚠; Warning REMOVE ALL of the PERSONAL INFORMATION BELOW before posting ⚠;

mqtt: server:
mqtt: user:
mqtt: password:
advanced: pan_id:
advanced: network_key:
anything in log_syslog if you use this

Brand and model number of problematic light(s)

N/a

Describe the bug and how to reproduce it:
Cannot get AL to configure through yaml (See initial warning in logs).
After encountering on my live config on 2023.7.3, I tried some debugging on a clean 2023.8.1 HA Config with demo entities and it reproduces.

Create clean HA environment with the provided yaml in the config file and observe the logs for the warning to appear.

Steps to reproduce the behavior:
See part 4.

Workaround to get past the warning.
After commenting out the lines that cause AL to preemptively stop, the config simply procedes and actually completes. Reverting this change and restarting HA causes the warning to be bypassed somehow as the entities had already been created. All works as expected from there on out... 🤔

I have fixed this in #752, thanks a lot for reporting!


Ensure proper & consistent use of English in UserGuide.adoc

Refer to CS2101 material on writing a good User Guide.

Refer to #75


Document Zowe Ports/URLs

Is your request for enhancement related to a problem? Please describe.
Doing vulnerability testing against apps prior to deployment helps to counteract security risks by generating vulnerability reports and fix recommendations. As a Zowe developer, I want to run security scans against Zowe to validate and ensure that no security exposures have been introduced. To do this, I need to know and scan every accessible URL on Zowe (such as MVD, API catalog, JES-explorer, MVS-explorer, USS-explorer etc.) Where can I get a full list of such URLs?
Describe the solution you'd like
Document the URLs and ports on Zowe.
Some examples:
APIs
API Gateway: https://your-server-domain:7554/
API Discovery Service: https://your-server-domain:7553/

Web UI/Zowe Desktop
API Gateway UI: https://your-server-domain:7554/
API Catalog (from gateway, expected way): https://your-server-domain:7554/ui/v1/apicatalog/
API Catalog (access directly): https://your-server-domain:7552/apicatalog/

Related doc pages
Perhaps a new topic under Appendix.
Additional context

Today, the person who installs zowe must configure the ports they would like to use. So, the installer is a source of truth on what ports exist:
https://github.com/zowe/zowe-install-packaging/blob/master/install/zowe-install.yaml.template
Note that as of 1.1.0, no version of zowe released runs the Zowe Desktop through the mediation layer, so they have 2 distinct ports. When that changes, it can be expected that all servers users would access would be access through 1 port: the api gateway port. However, if servers are bound to external interfaces and/or are not firewalled, the distinct ports still exist for direct connection, though it is not desired that users actually do direct connection.

@1000TurquoisePogs Are there new ports added in Zowe 1.2.0 (compare to the above list)?

Closing due to inactivity. Port information can also be found in the Zowe yaml configuration file reference guide now: https://docs.zowe.org/stable/appendix/zowe-yaml-configuration


All IO functions should support DataFrame configuration options

When reading a file into DataFrame, we should be able to pass in a DataFrame configuration option just like we do when creating a new DataFrame.
For example, the following should be possible:
const df = await dfd.read_csv("file.csv", { frameConfig: { lowMemoryMode: true } })

Fixed


[Bug] Hiding players doesn't work after they reset the course, go back to a checkpoint or join a map.

Good morning,
I found out that the option to "hide all players" isn't working as intended. When players use it, the item doesn't change to HideAllEnabled. Also, when a player who should be invisible restarts the course, teleports back to a checkpoint or joins a course - they become visible too.
Steps to replicate (2 players required):

Both players join the same course
Player #1 uses SHIFT + RIGHT-CLICK on the "Toggle visibility" item (Player #2 should become invisible)
Player #2 restarts the course, teleports back to a checkpoint or rejoins the course
Player #2 is visible to Player #1 even though they shouldn't be

I've demonstrated the issue in this video: https://youtu.be/vRLLdjPGqdU
I'm using Parkour version 6.2 (newest available on spigotmc.org as of 06.01.2021).
Here is my config: https://pastebin.com/nw8NfQDh
I'm running my server on Paper 1.16.4 (build #391) but the issue is also present on Spigot 1.16.4 #685
My plugin list:

Thank you for raising this issue, it has now been fixed in the 6.3 release.

Thank you for raising this issue, it has now been fixed in the 6.3 release.