Prep 1.0.0 release

Requirements for Contributing to this repository

Fill out the template below. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
The pull request must only fix one issue at the time.
The pull request must update the test suite to demonstrate the changed functionality.
After you create the pull request, all status checks must be pass before a maintainer reviews your contribution. For more details, please see CONTRIBUTING.

What does this PR do?
Updates the changelog + the pom.xml file to perform the 1.0.0 release of this plugin
Used this page to see whats going out in this release - https://github.com/jenkinsci/datadog-plugin/compare/datadog-0.7.1...DataDog:master
I additionally tried to acknowledge all outside contributions to this project in the Changelog.
Review checklist (to be filled by reviewers)

[ ] Feature or bug fix MUST have appropriate tests (unit, integration, etc...)
[ ] PR title must be written as a CHANGELOG entry (see why)
[ ] Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
[ ] PR must have one changelog/ label attached. If applicable it should have the backward-incompatible label attached.
[ ] PR should not have do-not-merge/ label attached.
[ ] If Applicable, issue must have kind/ and severity/ labels attached at least.

Thanks, I think I've addressed all the items of your review @gzussa
For things like refactor/cleanup, I think anything that touches shipped code should ultimately be in the changelog

Good call, #181 is here btw - https://github.com/DataDog/jenkins-datadog-plugin/pull/194/files#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR27


Ocean Market supports >1 market per datatoken

What / TODO for this issue
Give an affordance for the user to discover >1 markets for a given datatoken. Some of these may be markets within the Ocean Market app (e.g. Bal V1 friendly fork); others could simply be linked to (e.g. Uniswap DT pool).
Prerequisite issue: MultiRepo#59 "Publish|DEX|Consume Tabs"
Motivation
A given datatoken may be in one or more of the following markets / pricing schemes:

FRE
OCEAN-DT 90/10 pool on Bal V1 friendly fork
OCEAN-DT 30/70 pool on Bal V1 friendly fork
OCEAN-DT 50/50 pool on Uniswap
OCEAN-DT 50/50 pool on Bancor
DT1-DT2-..-DT8 pool on Bal V1 ("data index pool")
OceanO-DT 30/70 pool on Bal V1 friendly fork
OceanO-DT 30/70 pool on Bal V2
OceanO-DT pool on Bal V2 with 1MM

Benefits
Doing this issue will bring many benefits listed in MultiRepo#59, especially:

Support requests by enterprise engagements for other pricing methods
Easier to support OCEAN-backed stablecoin pricing, 3rd party marketplace token, >1 of these for a given datatoken
Easier to support "Better staking"
Gives a path to migrate from old pools (eg 90/10) to newer ones (eg 30/70) or upcoming ones (eg 1SS)

Give an affordance for the user to discover >1 markets for a given datatoken

Based on this, issue implies simply adding a link to a secondary market on any asset where the respective datatoken can be found in some external pool. And that's it. We keep the concept of our Balancer pools being the primary source of price.
But then don't see how most of the benefits are met. And the last listed benefit implies even more, some way to make a new pool into the primary pool for the dataset. It also implies giving users the option to create a new (Bal V1 friendly fork) pool through the market interface. To me this is a feature in itself requiring many different user flows. Considering Bal V2, we should simply skip that and rather think of migrations between Bal V1 friendly fork & Bal V2. Again, none of that is solved by just showing more secondary markets.
If we want to get rid of primary/secondary markets, then we need to solve the price issue and figure out a way to have a consolidated price based on multiple markets.

Based on this, issue implies simply adding a link to a secondary market on any asset where the respective datatoken can be found in some external pool. And that's it.

No. That's not just it. Read the very next line.

Some of these may be markets within the Ocean Market app (e.g. Bal V1 friendly fork); others could simply be linked to (e.g. Uniswap DT pool).

So there could be >1 markets in the Ocean Market app itself. And there likely should be. Look at the "Benefits" section: it points to the use cases that we want to cover. This includes migration from an old pool to a new one. A good way to solve that ise >1 markets in the Ocean Market app itself.

If we want to get rid of primary/secondary markets concept, then we need to solve the price issue first and figure out a way to have a consolidated price based on multiple markets. Which should also be implemented in the subgraph first.

I'm not advocating getting rid of primary/secondary markets concept. The feature of this issue has both primary market and secondary market, and doesn't actually need to distinguish them (a good thing). Eg the publisher could create two pools and put DTs into each.
We don't need a "consolidated price". Each market could have it's own price, that's kind of the point of markets! Traders can discover what's best for them, just like they do right now with other tokens in blockchain land.


Add a way to disable css tree-shaking per component or a ignore-next-line rule

Describe the problem
I'm using SASS to write my CSS rules. And I often use attributes as modifiers. For example:
<div class="divClass" data-some-attribute="value" />
The CSS analyser doe not detect this usage properly and gives me warnings about unused classes and obviously removes the code from the build. In case of a simple CSS usage I could do something like this
:global(.divClass[data-some-attribute="value"]) {
  some: style;
}

But this means that I'm exposing the class to the global scope just to have it to work with this attribute. Feels wrong and inefficient. It gets worse when writing this in SASS.
.divClass {
  some: styles;

  &[data-some-attribute="value"] {
    some: style;
  }
}

In this case the whole divClass set of rules needs to be globalised just for that attribute to work. Same goes for the rules like .divClass + .otherClass or [data-some-attribute] .someClass. And I think there's more, I just haven't found these cases yet.
Describe the proposed solution
I would like CSS constructions like these to not be considered as dead code or be able to exclude them from tree-shaking.
Alternatives considered
It would be very helpful to be able to add exceptions to such rules or completely disable the tree-shaking per component. Because at this moment this introduces restrictions on how to write CSS or even the markup.
Importance
would make my life easier
Additional Information
No response
UPDATE:
I've just experimented a bit and found out that some of the rules are actually end up in the build. For example .someClass + .someClass is in the stylesheet, but vite-plugin-svelte still throws warning about it.
The [data-some-attribute] .someClass still needs the attribute to be wrapped in :global to work.

I've found a sass issue that led to css warnings. Most of the described problems are because of how the stylesheet is written, rewriting it a bit should help it. The one valid issue is the [data-attr] .someClass, but it can really easily be solved with :global. Closing it, as mostly this issue is not valid.


[libwebsockets] Build error x64-windows

Host Environment

OS: Windows 10 Pro (19043.1526)
Compiler: Microsoft (R) C/C++ Optimizing Compiler Version 19.31.31104 for x64

To Reproduce
Steps to reproduce the behavior:
.\vcpkg.exe install libwebsockets:x64-windows (also fails the x86-windows install)
Failure logs
PS C:\Users\cmjen\source\repos\vcpkg> .\vcpkg.exe install libwebsockets:x64-windows
Computing installation plan...
The following packages will be built and installed:
    libwebsockets[core]:x64-windows -> 4.3.0#2
Detecting compiler hash for triplet x64-windows...
Restored 0 packages from C:\Users\cmjen\AppData\Local\vcpkg\archives in 129.5 us. Use --debug to see more details.
Starting package 1/1: libwebsockets:x64-windows
Building package libwebsockets[core]:x64-windows...
-- Using cached warmcat-libwebsockets-a5aae049b2a386712e1be3b417915c0d44c7e675.tar.gz.
-- Cleaning sources at C:/Users/cmjen/source/repos/vcpkg/buildtrees/libwebsockets/src/0d44c7e675-2bd6d36675.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source C:/Users/cmjen/source/repos/vcpkg/downloads/warmcat-libwebsockets-a5aae049b2a386712e1be3b417915c0d44c7e675.tar.gz
-- Applying patch fix-dependency-libuv.patch
-- Applying patch fix-build-error.patch
-- Applying patch export-include-path.patch
-- Applying patch fix-find-openssl.patch
-- Using source at C:/Users/cmjen/source/repos/vcpkg/buildtrees/libwebsockets/src/0d44c7e675-2bd6d36675.clean
-- Found external ninja('1.10.2').
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:128 (message):
    Command failed: ninja -v
    Working Directory: C:/Users/cmjen/source/repos/vcpkg/buildtrees/libwebsockets/x64-windows-rel/vcpkg-parallel-configure
    Error code: 1
    See logs for more information:
      C:\Users\cmjen\source\repos\vcpkg\buildtrees\libwebsockets\config-x64-windows-out.log

Call Stack (most recent call first):
  installed/x64-windows/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:415 (vcpkg_execute_required_process)
  ports/libwebsockets/portfile.cmake:139 (vcpkg_cmake_configure)
  scripts/ports.cmake:145 (include)

Error: Building package libwebsockets:x64-windows failed with: BUILD_FAILED

config-x64-windows-out.log
Additional context
I just installed vcpkg on this system and had successfully installed several packages when I came across this issue with libwebsockets (I was trying to install mosquitto of which libwebsockets is a dependency).
Looks similar to #17582 except that one seems to have devolved into a pthreads issue, which isn't the problem I'm having.

CMake Error at cmake/FindOpenSSLbins.cmake:47 (string):
  string sub-command REGEX, mode MATCH needs at least 5 arguments total to
  command.
Call Stack (most recent call first):
  C:/Users/cmjen/source/repos/vcpkg/scripts/buildsystems/vcpkg.cmake:795 (_find_package)
  lib/tls/CMakeLists.txt:393 (find_package)

Can you please remove openssl and re-install openssl then try again?
Thanks.

I did that in a sense.  I deleted the entire 'vcpkg' directory, re-cloned vcpkg, etc.  Same outcome.

In FindOpenSSLbins.cmake:
if(OPENSSL_FOUND)

	find_program(OPENSSL_EXECUTABLE openssl openssl.exe bin/openssl.exe
		HINTS ${_OPENSSL_ROOT_HINTS}
		PATH
			/usr/bin/
			bin/
	  	DOC "Openssl executable")

	mark_as_advanced(OPENSSL_EXECUTABLE)

OK, progress -- but still something wrong on the script(s) end.
Under "\vcpkg\installed\x64-windows\bin", openssl.exe was not present.
openssl.exe did exist under "\vcpkg\packages\openssl_x64-windows\tools\openssl"
I manually copied openssl.exe from there into "\vcpkg\installed\x64-windows\bin", reran ".\vcpkg.exe install mosquitto:x64-windows" and it installed.
So thank you for your help but there does still seem to be an issue.

For the record, the openssl dll's and lib's were in their proper locations, seems only openssl.exe was missing.

@dohnatello Can you double confirm that the executable was installed in the bin folder instead of the tools/openssl folder?
Did you installed powershell manually?

No, openssl.exe was only in the tools/openssl folder.  I manually copied it to the bin folder, that's what fixed the issue.
No, I have not manually installed powershell.  It was installed with the OS (and probably auto-updated since then).

Under "\vcpkg\installed\x64-windows\bin", openssl.exe was not present.
openssl.exe did exist under "\vcpkg\packages\openssl_x64-windows\tools\openssl"

The filesystem layout for tools depends on build system. This cannot be fixed unless vcpkg specifies a desired layout. Cf. #17607

... but in any case, you shall expect tools somewhere under tools, not bin...

Yes, I suppose that makes sense (output locations).  I'm a novice when it comes to both cmake & vcpkg.
I will look at #17607 and try to understand it.
I still think its odd that it would be expected that I would need to do anything beyond the standard setup and execution of vcpkg.  My build system is quite ordinary.

@JackBoosY But yes, to add to the answer to your earlier question, "\vcpkg\installed\x64-windows\tools\openssl" does contain openssl.exe and I did not copy it there.
I deleted the necessary packages (and deleted the vcpkg archives) on my system to do a full reinstall of openssl, libwebsockets, and mosquitto to recreate the failure.  Upon experiencing the failure again, I can confirm the following
"\vcpkg\installed\x64-windows\tools\openssl" contains:

libcrypto-1_1-x64.dll
libssl-1_1-x64.dll
openssl.cnf
openssl.exe

"\vcpkg\installed\x64-windows\bin" contains (omitting non-openssl files):

c_rehash.pl
libcrypto-1_1-x64.dll
libcrypto-1_1-x64.pdb
libssl-1_1-x64.dll
libssl-1_1-x64.pdb
openssl.pdb

However, the libwebsockets configuration fails to find openssl.exe without me having to take additional measures of some sort (I haven't had a chance to go through #17607 yet).

This is a baseline regression.

"\vcpkg\installed\x64-windows\tools\openssl" does contain openssl.exe and I did not copy it there.

This is right.

However, the libwebsockets configuration fails to find openssl.exe

This indicates a problem with how the toolchain sets the search path for find_program.

find_program(OPENSSL_EXECUTABLE openssl openssl.exe bin/openssl.exe
...

You can call set(CMAKE_FIND_DEBUG_MODE 1) before this line for extra debug output. (And reset after this statement.)

Reproduced, maybe related to https://github.com/microsoft/vcpkg/pull/22701.

@dg0yt
How would you recommend I add that line to the cmake file? (remember I'm a vcpkg noob)
FindOpenSSLbins.cmake exists in the "warmcat-libwebsockets-a5aae049b2a386712e1be3b417915c0d44c7e675.tar.gz" archive and in the "/vcpkg/buildtrees/libwebsockets/src/0d44c7e675-2bd6d36675.clean" directory.
If I edit the archive it breaks the hash and if I edit the file on disk, it is deleted and replaced when I run vcpkg to test the install.

Oh no...
OPENSSL_EXECUTABLE: OPENSSL_EXECUTABLE-NOTFOUND
CMAKE_PROGRAM_PATH: F:/vcpkg/installed//tools
CMAKE_PREFIX_PATH: F:/vcpkg/installed/x64-windows;F:/vcpkg/installed/x64-windows/debug
CMAKE_APPBUNDLE_PATH:
_OPENSSL_ROOT_HINTS: F:/vcpkg/installed/x64-windows;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenSSL (32-bit)_is1;Inno Setup: App Path];[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenSSL (64-bit)_is1;Inno Setup: App Path];ENV;OPENSSL_ROOT_DIR

@dg0yt Is this also related to the vcpkg toolchain?


community[patch]: Add streaming for HuggingFace Inference (also add the support of stop-sequences)

Fixes # (issue)

I think the param is actually called stop?

It's hard to pin down but I believe the parameter is indeed stop:
https://huggingface.co/docs/api-inference/detailed_parameters#question-answering-task

Thank you!


Uptda

While upgrading to 0.18.1 a new process killer popped up. I had three processes to kill: Alienware Command Center, nVidia Overlay and Microsoft Store. Having to manually kill these processes is a bit of a pain, especially when one, nVidia Overlay, is not killable.
In that popup, add an option for the installation process to kill those processes like Ccleaner does when the Cookies Options tab is accessed.

I don't think this is specific to Power Toys. Especially when the screenshot above shows CCleaner to be the program trying to close them. Please provide the steps to reproduce the issue. If you think this was a mistake feel free to close the issue.

Hi @Smiley0227
thank you for reporting the issue.

I'm seeing this too when upgrading.  It's asking to close Teams, Outlook, Explorer, Calculator, Weather. Some apps are running, some apps just tombstoned (the UWP apps). I click ignore to continue on the installation, but this is not something you want people to be seeing especially on a background update.

Closing this as duplicate of https://github.com/microsoft/PowerToys/issues/3534


Fix tox and GitHub actions settings

Remove the branch constraint for pull request triggering
Use Python 3.12 for main tests
Use ubuntu-20.04 for Python 3.6 since it's been removed in ubuntu-latest
Remove Python 2.7 since it's not supported by GitHub Actions anymore (https://github.com/actions/setup-python/issues/672)
Add the missing setup-python step
Merge the pip install commands

What do you think about using single quotes around the name for all 3 Python 3.12 names? This would match the others.

It's OK since these names don't contain dots or whitespaces. Similar to the settings in Flask.

Let's ship this, added a trivial inline code comment for clarity, hope you don't mind. If you do feel strongly about that, let me know so that in the future I know to wait for you.


added e books

Added 10 e-books on data science and machine learning.
All the books are uploaded to google drive. Please follow this link - https://drive.google.com/drive/folders/1kHY18VBZGVIJHOisKTG-fqPdnv3WqhNE?usp=sharing

closes #86


read data files as bytes, force conversion to UTF-8, and split on OS-…

…agnostic newlines explicitly
I think this fixes #320

@newville thanks for fixing this! I confirm this solves #320. All tests passed for me, I think it is safe to merge into master.


Make MosaicGPT a HuggingFace PreTrainedModel

(you can ignore the long list of commits this PR claims to have, it is just because I started working off of the 0.13.2 merge PR before it was merged to main)
This PR makes MosaicGPT a subclass of transformers.PreTrainedModel, allowing us to call generate and other HF utils. Note: there are still some todos, like supporting kv caching, but I think all of those should be called out with explicit errors in the code, and should be easy to add once this base is in.
Testing todos:

[x] make sure generate works properly on a trained model, both with and without padding
Shows 7b with batched (i.e. padded) and not batched output (i.e. not padded)

['I believe that MosaicML is the best company in the world. Someday, I hope to be a part of it.\nI am a senior at the University of Texas at', '<|endoftext|><|endoftext|>Q: What city is the capital of the United States?\nA: Washington, D.C. The capital of the United States is Washington, D.C.\n', '<|endoftext|><|endoftext|><|endoftext|>Q: What is the capital of the United States?\nA: Washington, D.C. The capital of the United States is Washington, D.C.\n'] 2023-03-20 22:53:23

I believe that MosaicML is the best company in the world. Someday, I hope to be a part of it.
I am a senior at the University of Michigan,

Q: What city is the capital of the United States?
A: Washington, D.C. The capital of the United States is Washington, D.C.

Q: What is the capital of the United States?
A: Washington, D.C. The capital of the United States is Washington, D.C.

[x] compare training run before and after, need to test with all three attention implementations
(base run is from before this PR and uses flash attention)

[x] add tests for save_pretrained and from_pretrained

[ ] add kv caching support after vitaliy's pr

test generate script for the curious: https://gist.github.com/dakinggg/b960c934cf021f92b6e909b12b8513a1

1bs training again


wrong padding of file image outline icon

all other file icons have about 5px right padding. but for file image outline icon, it has about 10px right padding.
the code is:

            {{page count}}

{{file name}}

Could you please create a jsfiddle so we can reproduce your issue more easily?

Closing the issue until there’s a test case.


Match Central US Region name with portal

@TimSBenjamin : Thanks for your contribution! The author, @iainfoulds, has been notified to review your proposed change.

Thanks, @TimSBenjamin. This update looks good to merge.
#sign-off


event-strings transforms not working correctly (string to int, juniper router)

Having an issue trying to have event-strings replace a string with an int.  I'm using gnmic to talk to a juniper MX router, and trying to change the PSU states from "Online" and "Offline" to "1" and "0" so i can send this to prometheus.
This is my config.yml
targets:
  bbr2:
    address: "<IP_ADDRESS>:32767"
    username: admin
    password: xxx
    insecure: true
    subscriptions:
      - sub2

subscriptions:
  sub2:
    paths:
       - "/components/component[name=PEM2]/properties/"
       - "/components/component[name=PEM1]/properties/"
    encoding: json
    mode: stream
    format: event
    stream-mode: sample
    sample-interval: 15s

processors:
 - pem-state:
    event-strings:
      value-name:
        - "/components/component/properties/property/state/value"
      transforms:
        - replace:
            apply-on: "value"
            old: "Online"
            new: "1"
        - replace:
            apply-on: "value"
            old: "Offline"
            new: "0"
outputs:
  out1:
    type: file
    format: event
    event-processors:
      - pem-state
    msg-template: |
      {{range .}}
      {{if index .values "/components/component/properties/property/state/value"}}
      Name: {{.name}}
      Component Name: {{(index .tags "component_name")}}
      Subscription Name: {{(index .tags "subscription-name")}}
      State: {{ index .values "/components/component/properties/property/state/value" }}
      {{- end}}
      {{- end}}

#  prom-output:
#    type: prometheus
#    listen: localhost:9091
#    path: /metrics

(trying to send this to prometheus but for testing i'm just outputting it to a the screen)
This is the response from the Juniper device i'm querying:
    "name": "default-1718636139",
    "timestamp":<PHONE_NUMBER>994525462,
    "tags": {
      "component_name": "PEM2",
      "property_name": "state",
      "source": "<IP_ADDRESS>:32767",
      "subscription-name": "default-1718636139"
    },
    "values": {
      "/components/component/properties/property/state/value": "Offline"
    }
  },

When i run gnmic --config config.yml sub --debug i'm not seeing anything get replace... this is my output on the screen:
Name: sub2
Component Name: PEM2
Subscription Name: sub2
State: Offline

the debug output shows this:
2024/06/17 15:33:48.612352 /home/runner/work/gnmic/gnmic/pkg/app/collector.go:71: [gnmic] target "bbr2": gNMI Subscribe Response: &{SubscriptionName:sub2 SubscriptionConfig:{"name":"sub2","paths":["/components/component[name=PEM2]/properties/","/components/component[name=PEM1]/properties/"],"mode":"stream","stream-mode":"sample","encoding":"json","sample-interval":15000000000} Response:update:{timestamp:1718638428606405141  prefix:{elem:{name:"components"}  elem:{name:"component"  key:{key:"name"  value:"PEM2"}}  elem:{name:"properties"}  elem:{name:"property"  key:{key:"name"  value:"state"}}}  update:{path:{elem:{name:"state"}  elem:{name:"value"}}  val:{json_val:"\"Offline\""}}  update:{path:{elem:{name:"state"}

Any thoughts as to what i'm missing here?
gnmic version is 0.37.0

ended up getting this working:
processors:
 - pem-state:
    event-strings:
            #      debug: true
      value-names:
        - "/components/component/properties/property/state/value"
      transforms:
        - replace:
            apply-on: value
            old: "Online"
            new: "1"
        - replace:
            apply-on: value
            old: "Offline"
            new: "0"

diff is i had "value" quoted


Rewrite bash pre-commit hooks in Python

[x] gen_schema
[x] gen_docs
[x] run_mypy

TODO: delete zsh-compatibility branch upon merging this one


feature: pdf generator

The current pdf generation is based on absolute positions and painting controlled by very old fashioned php code (< 4.0). See old repo in bitbucket.
Implement a more dynamic and fresh way to achieve reporting in PDF for iZivi 2.0

This feature could be developed in any language exposing any api as micro-service to be reused in various other projects.
HTML Template + Contextual Data + PDF Generation = Exported Report


Docs/release 1.0.2

Codecov Report

Merging #33 into master will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master     #33   +/-   ##
======================================
  Coverage    97.5%   97.5%
======================================
  Files           2       2
  Lines          80      80
  Branches       15      15
======================================
  Hits           78      78
  Misses          2       2

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 44c0dd2...0e6c280. Read the comment docs.


Add ability to delete ds saves from cartridges

Can't you just import a zeroed save file?

I could but then I would have to go through the trouble of creating one. Not that it is hard but I think it is unnecessary given that deleting it would just be easier.

Added.


[mypy] Enforcing typing for a number of modules

CATEGORY
Choose one

[ ] Bug Fix
[x] Enhancement (new features, refinement)
[ ] Refactor
[ ] Add tests
[ ] Build / Development Environment
[ ] Documentation

SUMMARY
Adding type enforcement for a number of modules including:

queries
security
sql_validators
tasks

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN
CI.
ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Changes UI
[ ] Requires DB Migration.
[ ] Confirm DB Migration upgrade and downgrade tested.
[ ] Introduces new feature or API
[ ] Removes existing feature or API

REVIEWERS
to: @dpgaspar @etr2460 @villebro

Codecov Report

Merging #9586 into master will decrease coverage by 6.87%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #9586      +/-   ##
==========================================
- Coverage   65.63%   58.75%   -6.88%
==========================================
  Files         574      392     -182
  Lines       30079    12414   -17665
  Branches     3054     3054
==========================================
- Hits        19742     7294   -12448
+ Misses      10153     4936    -5217
  Partials      184      184

Flag
Coverage Δ

#javascript
58.75% <ø> (ø)

#python
?

Impacted Files
Coverage Δ

superset/connectors/druid/__init__.py

superset/db_engine_specs/hive.py

superset/connectors/sqla/__init__.py

superset/db_engine_specs/clickhouse.py

superset/views/database/forms.py

superset/db_engines/hive.py

superset/views/datasource.py

superset/models/user_attributes.py

superset/utils/cache.py

superset/examples/birth_names.py

... and 161 more

Continue to review full report at Codecov.

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

Thanks @dpgaspar for the review. I've addressed your comments.

ping @dpgaspar and @villebro. I was hoping to get this PR merged to minimize the chance of conflicts.


feat: next release from main branch is 1.117.0

enable releases

@mmicatka Can you tell me what's the purpose of these changes?


Lazurite bug

Unable to build Shaders due to Lazurite plugin update to version 0.3.0

Use older version for now. Supported version is mentioned in requirements.txt
pip install -r requirements.txt

We already found the solution, a guy on the discord suggested that we uninstall lazurite and install it with pip install lazurite==0.2.1


Bug report - wrong castling in chess

I have come across what appears to be a bug and would like to report it. In the following FEN position (Left Fig.), the castling on the kingside, which should not be possible for the black player, is incorrectly deemed as possible by the legal_actions() function. Furthermore, when attempting to perform this castling, one of the rooks mysteriously disappears (Right Fig.).
Buggy state: 4k1rr/1b1p3p/nn1p4/P3Np2/3P1bp1/6PP/P5R1/1B1K2N1 b k - 1 37
You can find the steps to reproduce this issue in the following gist.
https://gist.github.com/sotetsuk/77f72626a2d89c6be24adcd44b6c7a8f

Buggy state
Wrong king side castling by black

@matthewlai can you take a look?

This is due to broken partial support for chess960. I will investigate more tomorrow.

This is due to broken partial support for chess960. I will investigate more tomorrow.

@matthewlai has a fix (thanks!), and we'll update the master branch as soon as it's sufficiently tested.


which way efficient?

sending init data for each message to the child contract has less cost or saving that id uint32 (or address) in my parent contract?

I don't know the whole details, but from the sound of things using parent contract with ids may be cheaper. This issue is quite old, have you tested your hypothesis @SC-One?


python311Packages.marshmallow-dataclass: 8.5.14 -> 8.6.0

Diff: https://github.com/lovasoa/marshmallow_dataclass/compare/refs/tags/v8.5.14...v8.6.0
Changelog: https://github.com/lovasoa/marshmallow_dataclass/blob/v8.6.0/CHANGELOG.md
Description of changes

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

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

[ ] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 255663 run on x86_64-linux 1

17 packages built:

ggshield
ggshield.dist
home-assistant-component-tests.renault
lektor
lektor.dist
python310Packages.marshmallow-dataclass
python310Packages.marshmallow-dataclass.dist
python310Packages.pygitguardian
python310Packages.pygitguardian.dist
python310Packages.renault-api
python310Packages.renault-api.dist
python311Packages.marshmallow-dataclass
python311Packages.marshmallow-dataclass.dist
python311Packages.pygitguardian
python311Packages.pygitguardian.dist
python311Packages.renault-api
python311Packages.renault-api.dist


Borrow in Verification functions

Hello!
Found some use for this crate in my master's thesis, and ran into some issues I'd like to fix. Please check through when you have time :)
Changes:
Modifies the implementation of the struct Verification so that it uses references instead of values.
Doesn't change anything related to inner logic :)
Also:

Improved tests, all have an assert! of some sort now and they pass
Fixed some issues pointed by clippy, like redundant clones
Fixed the example in new_safe_prime
Ran cargo fmt
Parked the used nightly version with rust-toolchain so that it should work with ramp.

Closes #1

Looks Great! Thank you for your contribution.


Lazy load commands

Currently, during the cli tool initialization, Ronin is loaded all commands and their dependencies. If the CLI tools have a lot of commands, which need different dependencies, we have very long initialization time.
Solution:
During the execution of specified command, load only needed dependencies.

Thanks for suggestion, I will address this issue. I am currently refactoring Ronin to make it more flexible and make codebase more clean.

Refactored and released Ronin v0.3.0. I thought about this issue and decided that this problem does not really exist. I've never noticed slow initialization time, despite many require() statements. If you can provide me with an example of slow init time because of many require(), I will reopen the issue for sure.

Em... Well, we will just fork it then. When we will open our tool publicly, I will show the example.
But really, if you're doing semi-complex CLI tool that covers few different use cases with non reusable dependencies, you will always get really unpleasant loading time.

What loading time are you experiencing?

I've done some perf tests, currently our CLI with 9 commands, on my 2014 MB Air (1,7 GHz Intel Core i7) takes 1.2-1.4 seconds to initialize.
If I remove all other commands, and leave only one that I call, initialization takes 0.5 seconds. I'm expecting commands to be initialized as fast as possible, and 0.5 seconds is pretty okay, comparing with 1.5.
Perf measurement triggered before Ronin program.run() till the start of command code execution.

wow, there must be something wrong about your setup. I have a Ronin-based CLI tool with approx. 15-20 commands and it starts up instantly. Do you use auto-update functionality in your program?

There is nothing wrong with my setup, it's just a set of dependencies that takes time to initialize.
Here's an example, which takes 400-500 ms to initialize without any command code https://github.com/operatino/test-ronin. I listed there not full list of our deps, so you could imagine what happens if other commands require different deps.

Tested myself, discovered slow delay too. Will fix in next releases.

Thank you.

+1


Integrated terminal has wrong PATH components order on MacOS

When a custom path in prepended in the PATH environment variable in the ~/.bash_profile it  is not correctly available in the PATH environment variable from the integrated terminal (while it is in the Terminal App).
Here is how to reproduce the problem:

Create a very simple ~/.bash_profile to prepend custom bin path if they are not already available in PATH:

      a_bin_dir=/my/custom/install1/bin
      if [[ ":${PATH}:" != *":${a_bin_dir}:"* ]]; then
          export PATH=${a_bin_dir}${PATH+:${PATH}}
      fi

      a_bin_dir=/my/custom/install2/bin
      if [[ ":${PATH}:" != *":${a_bin_dir}:"* ]]; then
          export PATH=${a_bin_dir}${PATH+:${PATH}}
      fi

Open the Terminal App and validate the expected output:

      $ echo $PATH
      /my/custom/install2/bin:/my/custom/install1/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

As expected, '/my/custom/install1/bin' and '/my/custom/install2/bin' are prepended in order after '/usr/local/bin', '/usr/bin', '/bin', '/usr/sbin', and '/sbin', i.e.: the content of /etc/paths

Open Visual Studio Code and an integrated terminal in the IDE:

	$ echo $PATH
	/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/my/custom/install2/bin:/my/custom/install1/bin

Issue: the custom paths are added in the expected order (relative to each other), but the content of /etc/paths is prepended before them. Unfortunately this is incompatible when using 'brew' to redefine/update standard commands available in Mac OS.
Here is the current workaround I am adding to my ~/.bash_profile:

	# If exists, move to front (Fix for VS-Code Terminal
	#  to avoid it putting '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin' in front)
	while read bin_dir; do
	    if [[ ":${PATH}:" == *":${bin_dir}:"* ]]; then
        	PATH=${PATH//":${bin_dir}:"/":"} # delete any instances in the middle
        	PATH=${PATH/#"${bin_dir}:"/} # delete any instance at the beginning
	        PATH=${PATH/%":${bin_dir}"/} # delete any instance in the at the end
        	export PATH=${PATH}:${bin_dir}
    	fi
	done < /etc/paths

This loop will move the paths described in the /etc/path to the end of the PATH to match the expected order.
For any question, you can contact me at<EMAIL_ADDRESS>

This is happening because VS Code launches your login shell and then the terminal uses that environment and runs the login shell as well. You can try this setting:
"terminal.integrated.inheritEnv": true

Or make your .bash_profile idempotent.

Thanks for your feedback @Tyriar but it doesn't fit in my case. In my configuration (quite vanilla) the  terminal.integrated.inheritEnv was already set to true. I actually tried to set it to false, the PATH has a better shape, but the integrated terminal is not correctly initialized.
I understand I can workaround the issue in my rc-config, that's actually what I am already doing. Still I was hoping to find a more VSCode-integrated solution.


Calculating initial costs with units count

:+1:

Thanks! Could you add some documentation to the topology_costs and technology_costs methods? explaining the difference?


refactor(mps): Input validation checks in APFProcessor for max size

closes AB#6610
PR Checklist

[ ] Unit Tests have been added for new changes
[ ] API tests have been updated if applicable
[ ] All commented code has been removed
[ ] If you've added a dependency, you've ensured license is compatible with Apache 2.0 and clearly outlined the added dependency.

What are you changing?

Anything the reviewer should know when reviewing this PR?
If the there are associated PRs in other repositories, please link them here (i.e. open-amt-cloud-toolkit/repo#365 )

umm, I'm gonna pushback on this one a bit.
It was way off the edge of my IDE and I don't like code wrapping or small text or not being able to see all the code and needing to scroll.
Maybe it would be better if if the parameters aligned under each other on wrap?
That being said, if single line calls are what the team wants and is expected formatting then I can readjust my formatting rules.
Does this apply to appended strings and other potential mutliline situations?
From: Matt Primrose @.>
Sent: Friday, April 22, 2022 09:08
To: open-amt-cloud-toolkit/mps @.>
Cc: Shockley, Timothy @.>; Author @.>
Subject: Re: [open-amt-cloud-toolkit/mps] refactor(mps): Input validation checks in APFProcessor for max size (PR #594)
@matt-primrose commented on this pull request.

In src/amt/APFProcessor.tshttps://github.com/open-amt-cloud-toolkit/mps/pull/594#discussion_r856378091:

 )

},

SendChannelOpen: (socket: CIRASocket, direct: boolean, channelid: number, windowSize: number, target: string, targetPort: number, source: string, sourcePort: number

): void => {

SendChannelOpen: (socket: CIRASocket,

can we keep the function parameters on a single line?
—
Reply to this email directly, view it on GitHubhttps://github.com/open-amt-cloud-toolkit/mps/pull/594#pullrequestreview-950304757, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK374CN2UCCY7DOL6GOIDILVGLFG3ANCNFSM5T44K2FA.
You are receiving this because you authored the thread.Message ID: @.***>

API specifies the field lists it as 1 byte and Common.ShortToStr to me implies 2 bytes even though I realize that number 0 will convert to '0' as a char code. Suppose it's the embedded C/C++ background coming out.
From: Matt Primrose @.>
Sent: Friday, April 22, 2022 09:40
To: open-amt-cloud-toolkit/mps @.>
Cc: Shockley, Timothy @.>; Author @.>
Subject: Re: [open-amt-cloud-toolkit/mps] refactor(mps): Input validation checks in APFProcessor for max size (PR #594)
@matt-primrose commented on this pull request.

In src/amt/APFProcessor.tshttps://github.com/open-amt-cloud-toolkit/mps/pull/594#discussion_r856401061:

@@ -561,9 +800,9 @@ const APFProcessor = {

 APFProcessor.Write(

   socket,

   String.fromCharCode(APFProtocol.USERAUTH_FAILURE) +

   Common.IntToStr(8) +

   'password' +

   Common.ShortToStr(0)

 Common.IntToStr(8) +

 'password' +

 String.fromCharCode(0)

why aren't we using common.ShortToStr(0) here as well?
—
Reply to this email directly, view it on GitHubhttps://github.com/open-amt-cloud-toolkit/mps/pull/594#pullrequestreview-950338284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK374CLC2EGNUUCCQRSXGBDVGLI6DANCNFSM5T44K2FA.
You are receiving this because you authored the thread.Message ID: @.***>

to align with the API and checking fields as they are parsed instead of having just the 'magic' number at the begining (for almost every method)
additional checks are added later, the overall logic is still the same.
From: Matt Primrose @.>
Sent: Friday, April 22, 2022 09:19
To: open-amt-cloud-toolkit/mps @.>
Cc: Shockley, Timothy @.>; Author @.>
Subject: Re: [open-amt-cloud-toolkit/mps] refactor(mps): Input validation checks in APFProcessor for max size (PR #594)
@matt-primrose commented on this pull request.

In src/amt/APFProcessor.tshttps://github.com/open-amt-cloud-toolkit/mps/pull/594#discussion_r856385970:

},

channelOpen: (socket: CIRASocket, length: number, data: string): number => {

if (length < 33) return 0

const ChannelTypeLength: number = Common.ReadInt(data, 1)

if (length < 33 + ChannelTypeLength) return 0

channelOpen: (socket: CIRASocket, dataLen: number, data: string): number => {

if (dataLen < 5) return 0

Why did the length check change from 33 to 5 on this?
—
Reply to this email directly, view it on GitHubhttps://github.com/open-amt-cloud-toolkit/mps/pull/594#pullrequestreview-950315735, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AK374CNNNWPT5B6SVTXPB43VGLGPRANCNFSM5T44K2FA.
You are receiving this because you authored the thread.Message ID: @.***>


Add option to not generate noarg constructors

I already had the problem with jOOQ, and now I have it with NetBeans' annotation processors. Sometimes tools or frameworks don't work properly because they use the implicit @Jpa noarg constructor instead of the constructors I define in my classes.
I would like the possibility to opt-out of these implicit constructors, either via a compiler option (that applies to the whole project), or via an annotation to target a single class.
The current workaround is to add a Java superclass with an explicit constructor that takes a dummy argument (eeek!).
Possible names for the annotation:

noNoArgConstructor
noImplicitConstructor
iDontCareAboutJpaAndThisConstructorIsUselessMostOfTheTimes

But this wasn't done primarily for JPA. This was done because it's a requirement of Java serialization.
Frankly I think the problem here is NetBeans annotation processors being shit, not anything wrong with Ceylon.

OK, but still there are cases where I don't need serialization, and where I don't want that constructor.
You'll have to deal with it, there are a lot of "shitty tools" around.

I'm completely against adding an annotation to Ceylon for this, frankly.

Default constructors are even a requirement of the JavaBeans spec, FTR. So there's plenty of good reasons to generate them. It's nothing to do with JPA per se.

Except all classes are not JavaBeans!

What we could do is add an abstract class named Unserializable written in Java to ceylon.interop.java.  That would at least solve the problem for cases where you don't need to extend another concrete class.

That's another possibility, but AFAIU it would still need a dummy parameter, otherwise the subclass would be able to call super() and the noarg constructor would still be generated.
I believe it would look like this:
public abstract class Unserializable {
    public Unserializable(String unused) {}
}

class MyClass(MyParam param) extends Unserializable("") {
}

I think we might be able to make it work by giving it something that looked to Ceylon like a named constructor. Would have to try that out though.
Then you would write:
class MyClass(MyParam param) extends Unserializable.create() {}

This Unserializable is horrible because it doesn't work in the case where you need to extend some other class.
Why can't we have an annotation in ceylon.java.interop?

Actually what about declaring a non-shared default constructor.

@tombentley well the one we generate is already protected, so apparently NetBeans goes to great lengths to call the wrong constructor.

But would a private one work, for NetBeans and for JOOQ? Because we've already got #6611

No, NetBeans annotation processors will also look for private constructors, AFAICT:
http://grepcode.com/file/bits.netbeans.org/maven2/org.netbeans.api/org-openide-filesystems/RELEASE691/org/openide/filesystems/annotations/LayerBuilder.java#209
(lines 209-215)

It works with this class:
@Ceylon(major = 8)
@Class(constructors=true, extendsType="ceylon.language::Basic")
public class Unserialized {

    @Ignore
    public static final Unserialized.create_ create_ = null;

    @Ceylon(major = 8)
    @Ignore
    @ConstructorName("create")
    public static final class create_ {
        private create_() {
        }
    }

    @Name("create")
    public Unserialized(@Ignore Unserialized.create_ $name$) {
    }
}

I could live with that.

This Unserializable is horrible because it doesn't work in the case where you need to extend some other class.

You wouldn't need it if the superclass has no noarg constructor. I agree this specific case can still happen, and we have no solution for that yet.

@quintesse given this class (it's Ceylon's native):
class Native(s, shared native String u) {
    shared native String s;
    shared native String t;
    shared native String m();
}

It seems we generate a getter for u, and fields for u and s, but nothing else. I don't really understand why, but I need to if we're going to support javaNative native declarations. Can you enlighten me?

Grrr wrong issue

I guess we could add an annotation to java.lang, similar to what I've done with overloaded.

I guess we could add an annotation to java.lang, similar to what I've done with overloaded.

I'd like to implement this change. From what I understand, here's what we need:

a new annotation named unserialized (or unserializable?)
that can only appear on class declarations
which will make the JVM  backend skip noarg constructors

shared unserializable class MyClass(String arg) {
}

@gavinking wdyt?

Sure, go ahead, it should not be very hard at all.

I added that annotation in a branch and it works as expected, but I don't really like its name. It's job is not to skip the serialization stuff (which is enabled by serializable), it's only skipping the JPA noargs constructor. Does someone have a better name?

unbeany :-)

nonbean

nonbean is acceptable, I guess. Closing :)

Thanks Bastien.


add cookbook page for linear svm

Looking forward to feedback. I'll send the data PR once this gets finalized.

Nice! :)

Needs one or two iterations, but already looks nice. Thanks for that! :)

some travis builds fail. I actually never used enums from meta examples. It might be that you have to replace it with the int value for now -- and I need to fix this

I tried Int L2R_L2LOSS_SVC = 2. Its not working. generate.py is giving some error. Real L2R_L2LOSS_SVC = 2 generates the cookbook but then cpp complains.

Ok, this is almost ready to be merged. A few minor updates. Let me fix the enum issue and then you can rebase and we can merge

Looks like we need to do the same for ruby
@sanuj can you send a separate patch for that, and then rebase against it here.
You can test this PR locally via enabling ruby ´-DRubyModular=On`

@karlnapf I pushed a temporary commit (ruby modular doesn't build on my local) to check if changing the json file fixes the problem but it's not working. See here.

Just restarted travis. If it still fails, try to rebase against latest develop. I just merged your other PR. Thanks for that!

@karlnapf build fails after rebasing :(

will check later

This should fix it: #3126

I'm pretty sure Travis is going to fail for Lua, in which case the fix should be #3127

Ah finally :)


[Collect] collect/:medium urls

Depends on: https://github.com/artsy/reaction/pull/1243

@xtina-starr bump

👍


Object Following for 3 classes at the same time instead of only 1

Hello
I have a custom trained Yolov5 model that recognizes 3 objects.
Can I customize the object navigation code so that I can recognize all 3 classes at once?
I know, the original idea ist that the OpenBot just follows 1 object (person).
In the app it is only possible to select one of the three objects at a time. So the app recognizes either object 1, or object 2 or object 3.
But I would like all 3 objects to be recognized at once.
I am very happy about any ideas!
Thanks

Hi @RoBoFAU.
Yes, just requires to changing one line in the code.
https://github.com/isl-org/OpenBot/blob/062116ac651ab2a7e99641f637c7cfab603f23a8/android/app/src/main/java/org/openbot/tflite/DetectorYoloV5.java#L172
Here the detections are filtered by the one selected class.
Of course when you detect more than 1 class, you will need to implement the logic what to do with that information.


Will this project ever be updated?

I can see there is no now commit since 2 years here. Will this be ever updated to use 10.6 or recent mariadb?
Is there a point to invest this into our environment? I do not seem to found any usable project specifically wrote for Docker Swarm besides this, but 10.4 will lose support soon.

There may be minor differences in 10.6 that break something but most of it should still work. If you want to test it and fix or report issues I'd be happy to inspect and merge a PR.

I did some light testing with 10.4 through 10.8 and everything appears to be working. New images built and pushed.

I did some light testing with 10.4 through 10.8 and everything appears to be working. New images built and pushed.

Awesome work, thanks!
Can you upgrade to mariadb 10.11 (it’s announced as LTS)?

@fannyfan414 I just pushed 10.11. Also updated 10.3-10.8 and removed 10.2 from the repo.


Server crash

When using flux 3.0.7 whenever placing any block from the mod down the server freezes and then crashes. Dropped back to 3.0.5 and works just fine. Attaching the crash report
crash-2018-04-09_23.41.06-server.txt

Update SonarCore


Analyzer, pubspec.yaml and .packages inconsistencies

If I have the following tree structures:
├── lib
│   ├── bla.dart
│   └── foo.dart
├── .packages
└── test
    └── test1
        ├── lib
        │   └── bar.dart
        ├── main.dart
        └── .packages

with ./test/test1/.packages being distinct from the other one (saying bar:lib), and ./test/test1/main.dart importing package:bar/bar.dart, everything is fine (modulo my editor for a short while, though I can no longer reproduce, reported errors in main.dart until I saved the file).
If I however introduce a pubspec.yaml file in the root (literally an empty file):
.
├── lib
│   ├── bla.dart
│   └── foo.dart
├── .packages
├── pubspec.yaml
└── test
    └── test1
        ├── lib
        │   └── bar.dart
        ├── main.dart
        └── .packages

and restart my editor I get the error
Target of URI doesn't exist: 'package:bar/bar.dart'.\nTry creating the file referenced by the URI, or Try using a URI for a file that does exist.

If I then create a pubspec.yaml file in the test1 folder (literally an empty file):
.
├── lib
│   ├── bla.dart
│   └── foo.dart
├── .packages
├── pubspec.yaml
└── test
    └── test1
        ├── lib
        │   └── bar.dart
        ├── main.dart
        ├── .packages
        └── pubspec.yaml

(and potentially restart my editor --- it might not be necessary in this case) the error goes away.
If I instead create the pubspec.yaml file directly in test (i.e. with no corresponding .packages file) like this:
.
├── lib
│   ├── bla.dart
│   └── foo.dart
├── .packages
├── pubspec.yaml
└── test
    ├── pubspec.yaml
    └── test1
        ├── lib
        │   └── bar.dart
        ├── main.dart
        └── .packages

I also get an error.
If I instead only had the pubspec.yaml file in the test1 directory:
.
├── lib
│   ├── bla.dart
│   └── foo.dart
├── .packages
└── test
    └── test1
        ├── lib
        │   └── bar.dart
        ├── main.dart
        ├── .packages
        └── pubspec.yaml

everything is still fine.
It seems that

With no pubspec.yaml files, the nearest .packages file is used for that subtree (good)
With pubspec.yaml files in play, for all subtrees of the folder containing it, it only looks for a .packages file if there is also a pubspec.yaml file next to it (weird).

Can we have it use the nearest .packages file, even in the face of pubspec.yaml files, or is there a good reason for this behavior?
(This is on a basically up-to-date HEAD build).

To aid with debugging, this will setup my example:
echo "H4sIAPF+KF0AA+3Y3U6DMBQH8F7zFOiN8wba0o9En6bTaabbIMAujPHdPcWhTBMJCS0X+/+SsY2R
tMvh9PSQ5Sw4TqzmTCipldCMS221LLrzJ0wUWkhubSEE40IYo1mqw0+NsWPTujpN2cvm0Lz8c11V
b/eufnuuy2MVY16RZHlWuYdX97xpgo3hA2zUf/G3ffxloRTFn44FS3mwGQ1cePyfyvJut10vPQ1Y
SJa3m6YNWwQmrP9GWvpdSKMV1v8YTvH3BxHqLphS/7ny9b+gd8Q/hrP4B9oKTKn/uvD5r5VRqP8x
rF2N+n/BzvJ/77aH7NHV7bxjjOY/JXtf/wthfP5ragOR/xFs91VZt+nNaeW/o/Ugp1d3F9zcJ4m/
JVa36XuSpnR6dXuffCRLzxnmc5b/VAhC7AEn7P/oAt//K6Xx/CeKP/Hvk3/GMUbXfzGIv/Xrv6FP
WP9j6Bb19P1j6XnAMs7yvzqum2rzkL25/W7GMcb7v9/9v5GSI/9jyEIV/YEp9V9RLeBCKmlQ/2P4
iv9TWQbo+3rj/Z/8ib+0fv/HLZ7/RPG7/6M7IV/v3Hf/R9/79m/nuvZv6RnDnL7yv494mDFG878Y
5L+SXf4rPP+JosvqLr/pDx7a1TWduLpGnl+KLNSmf2DC/t9QB+DzX+L5LwAAAAAAAAAAAAAAAAAA
AAAAAAAAwF+fMYHeeQBQAAA=" | base64 -d | tar vxz

--- giving the code I have with this tree
.
├── lib
│   ├── bla.dart
│   └── foo.dart
├── .packages
├── pubspec.yaml
└── test
    └── test1
        ├── lib
        │   └── bar.dart
        ├── main.dart
        ├── .packages
        └── pubspec.yaml

(Note to self for future: The base64-string was created like this: tar -cz . | base64)

/cc @johnniwinther  FYI.

Actually, it's even weirder than this:

If I have the two pubspec.yaml files (e.g. as with the base64 -d | tar vxz command above), while no errors are reported, autocompletion doesn't work (e.g. it doesn't help me write bar() in main.dart.

If I have no pubspec.yaml files (but only the two .packages) I get no errors, and autocompletion works (i.e. it does help me write bar() in main.dart).


Example to decode binary?

It's great that this works simply with websockets, or with a url. But I am getting my data from some other webRTC, and I have the video as a base64 string.
I am struggling to figure out how I can decode the video from that. I have large chunks of data coming in at random intervals, and am trying to buffer the chunks and play a smooth stream.
It seems like this would be easy compared to XHR requests, or WS. However, trying to reverse engineer those has proven to be pretty difficult. Any help with be appreciated.
I added this to the prototype:
  // ----------------------------------------------------------------------------
  // Loading via base64
  jsmpeg.prototype.playBase64 = function (base64String) {
    this.buffer = new BitReader(base64ToArrayBuffer(base64String))
    this.play()
  }
  jsmpeg.prototype.base64ReaderPump = function (reader) {
    var that = this
    reader.read().then(function (result) {
      that.base64Decode(reader, result)
    })
  }
  jsmpeg.prototype.base64Decode = function (reader, result) {
    if (result.done) {
      if (this.seekable) {
        var currentBufferPos = this.buffer.index
        this.collectIntraFrames()
        this.buffer.index = currentBufferPos
      }

      this.duration = this.frameCount / this.pictureRate
      this.lastFrameIndex = this.buffer.writePos << 3
      return
    }
    this.buffer.bytes.set(result.value, this.buffer.writePos)
    this.buffer.writePos += result.value.byteLength

    // Find the last picture start code - we have to be careful not trying
    // to decode any frames that aren't fully loaded yet.
    this.lastFrameIndex = this.findLastPictureStartCode()

    // Initialize the sequence headers and start playback if we have enough data
    // (at least 128kb)
    if (!this.sequenceStarted && this.buffer.writePos >= this.progressiveMinSize) {
      this.findStartCode(START_SEQUENCE)
      this.firstSequenceHeader = this.buffer.index
      this.decodeSequenceHeader()

      // Load the first frame
      this.nextFrame()

      if (this.autoplay) {
        this.play()
      }

      if (this.externalLoadCallback) {
        this.externalLoadCallback(this)
      }
    }

    // If the player starved previously, restart playback now
    else if (this.sequenceStarted && this.wantsToPlay && !this.playing) {
      this.play()
    }

    // Not enough data to start playback yet - show loading progress
    else if (!this.sequenceStarted) {
      var status = { loaded: this.buffer.writePos, total: this.progressiveMinSize }
      if (this.gl) {
        this.updateLoaderGL(status)
      }
      else {
        this.updateLoader2D(status)
      }
    }

    this.base64ReaderPump(reader)
  }
  function base64ToArrayBuffer (base64) {
    var binaryString = window.atob(base64)
    var len = binaryString.length
    var bytes = new Uint8Array(len)
    for (var i = 0; i < len; i++) {
      bytes[i] = binaryString.charCodeAt(i)
    }
    return bytes.buffer
  }

And it worked. When I get some time I'll put together a PR that closes this issue.

Thanks for the PR!
However, I recently refactored the whole codebase. The base64 loading code could now be written as a Source, alongside with the Ajax and WebSocket sources. I would accept a PR that adds the functionality as a new Source now, if you're interested to work with the new codebase.


Some ui-icons do not render

Some ui-icons do not render, or incorrectly render in some webviews. This issue was noted on the $10 phone.

view_module
<ui-icon icon="view_module"/>


<mat-svg category="action" name="view_module"/>
<ui-icon><mat-svg category="action" name="view_module"/></ui-icon>

Seems like this is due to the webview not supporting ligatures.
A solution would be to use the following markup
<ui-icon ariaLabel="Label">
  <mat-svg category="action" name="view_module"/>
</ui-icon>

This would allow us to benefit from the styling and accessibility of the ui-icon. We could also simplify this, by creating a k-icon component.
<k-icon name="view_module" ariaLabel="label"/>
<k-icon ariaLabel="label">
  <file-svg src="./customicon.svg"/>
</k-icon>

I like the idea of adding a core k-icon component. However I don't think we should be creating a styleguide page for it

This was fixed in https://github.com/learningequality/kolibri/pull/3708

great!


add german ability translations

Adds german translations for ability description prose and ability changelog prose. I tried to stay in the same style for all translations.

Thanks! This is amazing. I will make sure it gets merged... sometime (pretty busy at the moment). Sorry it sat around for so long.

Squashed and merged as https://github.com/veekun/pokedex/commit/10f024a80c37201b89f7dce827d2ed0b0d0d7ce4. Thanks again.


Required axis order and make clear how axis order is defined

The FITS standard uses axis definion (stored in the TDIMX) keyword contrary to e.g. numpy.
In numpy, the shape of an array goes from slowest varying (outer most dimension) to fastest varying (inner most dimension).
The FITS standard uses the exact opposite definition for TDIM.
We should clarify which order we mean in the documentation.
Also, if the axis order is only recommended, how is the actual axis order specificed? By the order of the columns?

It is currently very confusing at least for gammapy, as it seems that it expects
a different array in the file than when directly instantiated:
https://docs.gammapy.org/dev/api/gammapy.irf.EffectiveAreaTable2D.html#gammapy.irf.EffectiveAreaTable2D

I saw that some files are using a CREF header attribute to specify axis order like so:
CREF   = (ENERG,THETA)
But I could not find any documentation on this. CREF is not a reserved fits header keyword.
Where does this convention come from? Any references for this? If it is just our invention, why is it not documented in the specs?
Do science tools support this?

Seems like I just missed the definiion in irf axes section of the docs, sorry for the spam


Footnote ref number in TOC

In [13]: t = '''
    ...: # Header with footnote[^1]
    ...:
    ...: Lorem Ipsum
    ...:
    ...: [^1]: footnote text
    ...: '''

In [14]: print(markdown.markdown('[TOC]\n\n' + t, extensions=['markdown.extensions.toc', 'markdown.extensions.footnotes']))

Header with footnote1

Header with footnote1

Lorem Ipsum

footnote text ↩

So the code which sanitizes the text for use in the TOC is pretty simple. It simply pulls the text from the HTML elements. It could be significantly more complex to exclude footnote refs. And I find it odd that we would need to only do this for a non-standard add-on syntax. Additionally, the fact that this is only being reported now suggests that this is an unusual edge case that not many users will every encounter.
That said, it is clearly not what one would expect and should probably be fixed. Of course, pull requests are welcome.


[Enhancement] adjust cost model for right join of nestloopjoin

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] I have added user document for my new feature or new function

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 14 / 14 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/qe/SessionVariable.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/cost/CostModel.java
12
12
100.00%
[]

run starrocks_admit_test

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 14 / 14 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/qe/SessionVariable.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/cost/CostModel.java
12
12
100.00%
[]

[FE PR Coverage Check]
:heart_eyes: pass : 13 / 13 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/qe/SessionVariable.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/cost/CostModel.java
12
12
100.00%
[]

run starrocks_admit_test

run starrocks_admit_test

[FE PR Coverage Check]
:heart_eyes: pass : 14 / 14 (100.00%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/qe/SessionVariable.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/sql/optimizer/cost/CostModel.java
12
12
100.00%
[]

run starrocks_admit_test

@Mergifyio backport branch-2.4


Increase max instances

Increase the max instance count, default is 100.
We are currently running into the max instance count (or almost running into it, there is 97 instances running at the moment).

Do we need any quota increases for this for our GCP project?


What am I doing wrong?

Challenge Prioritize One Style Over Another has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
Can somebody kindly look at my code and see what's wrong with it?
My code:

Hello World!

@hneufville Thank you for reporting this issue.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on Free Code Camp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding!

@hneufville if you really want the answer, you forgot to clost the bracket in body

Thanks!!!


[UI] Rows per page is not working in meshmodel tabs in settings

Current Behavior
In tabs Models, Components Rows per page is not working
https://github.com/meshery/meshery/assets/71271069/7143b00d-e2d4-4409-b111-ffc1eb6a9050
Expected Behavior

Screenshots/Logs

Environment

Host OS: Mac Linux Windows
Platform: Docker or Kubernetes
Meshery Server Version: stable-v
Meshery Client Version: stable-v

Contributor Guides and Handbook

🛠 Meshery Build & Release Strategy
📚 Instructions for contributing to documentation

Meshery documentation site and source

🎨 Wireframes and designs for Meshery UI in Figma
🙋🏾🙋🏼 Questions: Discussion Forum and Community Slack

I would like to work on this issue, can I get assigned, please?

@HarshDobariya79 you got it!

@Yashsharma1911 @Meyazhagan
page size for all mesh model components APIs is hard coded to 25 from the back-end. So let's say user selects page size as 100, should we call the API multiple times (4 times in this case) or should we provide an optional argument in API itself for page size? or we can do something else. Please give your inputs.

@HarshDobariya79 You can pass pagesize in query. ref: https://github.com/meshery/meshery/blob/820f14eb7ffe52e60fc8b0fa24bd043f054f4330/server/handlers/component_handler.go#L175

@HarshDobariya79 You can pass pagesize in query. ref:
https://github.com/meshery/meshery/blob/820f14eb7ffe52e60fc8b0fa24bd043f054f4330/server/handlers/component_handler.go#L175

Oops I missed that. Thank you for pointing out.

I'm not able to understand why we need to perform AND operation. Can anyone please assist?
https://github.com/meshery/meshery/blob/820f14eb7ffe52e60fc8b0fa24bd043f054f4330/ui/components/MeshModelComponent.js#L306


docs: Update extraneous markdown tag in faq.md

Description

Motivation and Context

Breaking Changes

How Has This Been Tested?

[ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[ ] I have tested and validated these changes using one or more of the provided examples/* projects

[ ] I have executed pre-commit run -a on my pull request

This PR is included in version 18.24.0 :tada:


Plumb the metric's Value LabelType through to the adapter

So that adapters can determine the type of the payload they're pushing to the backend.

This change is

Jenkins job mixer/presubmit passed

Stackdriver does require this info for custom metrics, which is what prompted me to add it.

We should figure out what it means to have non-float metric values and how they should be handled in float-only worlds.

I think in general it doesn't matter: any of these metric backends that require this type of information have their own notion of typed values, and the adapter has to implement a translation from our notion of a LabelValue to the backend's type-universe. So it's still in the adapter's control to decide how it pushes the data to the backend, and what shape it tells the backend its sending (if it tells the backend at all).

Sure. I was just thinking out loud about updating existing code to remove
the insistence on float (and/or add better error handling, etc.).
On Mon, Jun 12, 2017 at 12:59 PM, Zack<EMAIL_ADDRESS>wrote:

Stackdriver does require this info for custom metrics, which is what
prompted me to add it.
We should figure out what it means to have non-float metric values and how
they should be handled in float-only worlds.
I think in general it doesn't matter: any of these metric backends that
require this type of information have their own notion of typed values, and
the adapter has to implement a translation from our notion of a LabelValue
to the backend's type-universe. So it's still in the adapter's control to
decide how it pushes the data to the backend, and what shape it tells the
backend its sending (if it tells the backend at all).
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/istio/mixer/pull/815#issuecomment-307907217, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AUKx3VcDtVcHMsMWxa-3qn25BysUQ1Zrks5sDZipgaJpZM4N3kTu
.

--
Douglas Reid |  Software Engineer |<EMAIL_ADDRESS>|<PHONE_NUMBER>

Ah, gotcha. Yeah, IIRC prometheus code assumes all values are floats? We'll definitely need to give some thought to the handling typed metric values in this context (e.g. what is Prometheus supposed to do with a string metric payload?).

Jenkins job mixer/presubmit passed

Jenkins job mixer/pilot-regression passed

Jenkins job mixer/e2e-smoketest passed


Survey form breaks when we use autocomplete widget with matrixdynamic

When you use matrixdynamic with autocomplete widget, if you use "text" type in matrixdynamic, form throws error. Here is the url for sandbox https://codesandbox.io/s/brave-smoke-oq5s9?file=/src/SurveyComponent.jsx

Thank you for the sample. We'll take a look.

When the fix will available?

Hello,
The fix will be available with the next minor update, which will be in the coming days, probably, tomorrow.
Thanks,
Dmitry
SurveyJS Team

@dk981234 Hello, the fix is not working in latest release 1.8.22. Url to sandbox https://codesandbox.io/s/brave-smoke-oq5s9?file=/src/SurveyComponent.jsx

@dk981234 How i can pass custom configuration to easy-autocomplete widget?

@dk981234 Is there any limit to number of choices? Because for 500 long text it does not work, but for 100 of them it works.

Hello,
We've implemented the 'config' property to pass custom configuration to the easy-autocomplete widget.
For example, you can pass placeholder like this:
var json = {   questions: [     {       name: "autocomplete1",       title: "What car are you driving?",       type: "text",       config: {         placeholder: "Car",       },       choices: ["None"],     },   ], };
The feature will be available with the next minor update next week.
Thanks,
Dmitry
SurveyJS Team


Add setter to FeatureFlagResolverConfigurationProtocol’s stores property

stores in resolver configuration should be mutable.

Done in 0865972.


Update app.yaml with new gunicorn config to avoid worker timeout

I signed it!

I signed it!

Thanks!


fix README of nginx-ingress-controller

I see examples/default-backend.yaml contains both a Deployment and a Service, then the next line
kubectl expose rc ...
seems to be needless. So fix it smoothly.

This change is

Coverage decreased (-0.02%) to 43.459% when pulling 710eaffc69092f70c111d9777e258983ac673d76 on dunjut:master into 1bcfb15e5051f472e41091bd46faa207cc795890 on kubernetes:master.

/lgtm

@dunjut thanks!


Feat : Navbar enhancements

Hey i guess the navbar can look more good if we add little padding and move this part to center

lemme know if yes then you can assign this to me

@shobhitexe  if you want to work on this issue go ahead.

Hey brother @shobhitexe there is another problem. When we open a website in mobile, there is a navbar option in the middle. can you fix it !

Sure 👍 like you want all links "Home" ,  "About" And all to be left side ?

leave it @shobhitexe , it's looking good and thank you for your contribution.


Servers are down. No access to insiders.liveshare.vsengsaas.visualstudio.com

Product and Version [VS/VSCode]:
OS Version [macOS/Windows]:
Live Share Extension Version:
Target Platform or Language [e.g. Node.js]:
Steps to Reproduce / Scenario:

Click share button in VSCode UI

$ dig insiders.liveshare.vsengsaas.visualstudio.com
insiders.liveshare.vsengsaas.visualstudio.com. 3654 IN CNAME vsls-prod-ins-tm.trafficmanager.net.
vsls-prod-ins-tm.trafficmanager.net. 216 IN CNAME vsls-prod-ins-use-180720001953.eastus.cloudapp.azure.com.```
but a `dig` for the final CNAME in the chain returns no IP address.

Thanks for the report. The service is back up now. Please let us know if you are continuing to run into issues.

Closing this issue since this appears to be fixed now. Thanks for all the reports and apologies for the trouble.

Hello Many thanks o/


"error": "Could not connect to websocket endpoint wss://api-such.andsuch.xyz/graphql/. Please check if the endpoint url is correct."

Hello! I recently deployed a project I'm working on to production. I use this great library and I have GraphQL Playground set up via django-graphql-playground. Everything works fine locally - there are no issues whatsoever. However, when I deployed I get the error below when I hit the Play button in Playground:
{
  "error": "Could not connect to websocket endpoint wss://api-such.andsuch.xyz/graphql/. Please check if the endpoint url is correct."
}

I use Gunicorn with a Uvicorn worker class in production. I even used the Gunicorn command locally to see if the issue could be from there but it works. One thing to note is that the application is dockerized. Could it be from there? I don't think so because it works locally. Here's what my docker-compose file looks like:
version: '3.7'

services:
  nginx:
    container_name: nginx
    image: nginx
    restart: always
    depends_on:
      - web
    volumes:
      - ./web/dev.nginx.template:/etc/nginx/conf.d/dev.nginx.template
      - ./static:/static
      - ./media:/media
    ports:
      - "8080:80"
    networks:
      - SOME_NETWORK
    command: /bin/bash -c "envsubst \"`env | awk -F = '{printf \" $$%s\", $$1}'`\" < /etc/nginx/conf.d/dev.nginx.template > /etc/nginx/conf.d/default.conf && exec nginx -g 'daemon off;'"

  web:
    container_name: web
    restart: always
    build: ./web
    networks:
      - SOME_NETWORK
    depends_on:
      - postgres
      - redis
    volumes:
      - ./web:/usr/src/app/
    environment:
      - REDIS_HOST=redis
      - REDIS_PORT=6379
      - GRAPHQL_ENDPOINT=https://api-such.andsuch.xyz/graphql/
    command: bash -c /start.sh

  postgres:
    container_name: postgres
    restart: always
    image: postgres:latest
    networks:
      - SOME_NETWORK
    volumes:
      - pgdata:/var/lib/postgresql/data/

  redis:
   container_name: redis
   restart: always
   image: redis:latest
   networks:
    - SOME_NETWORK
   ports:
     - "6379:6379"
   volumes:
     - redisdata:/data

volumes:
  pgdata:
  redisdata:

networks:
  SOME_NETWORK:
    name: SOME_NETWORK
    driver: bridge

settings.py
...
...
CHANNEL_LAYERS = {
    'default': {
        'BACKEND': 'channels_redis.core.RedisChannelLayer',
        'CONFIG': {
            'hosts': [(os.getenv('REDIS_HOST', 'redis'), os.getenv('REDIS_PORT', 6379))],
        }
    }
}
...
...

urls.py
...
...
from graphql_playground.views import GraphQLPlaygroundView

urlpatterns = [
    path('admin/', admin.site.urls),
    path('playground/', GraphQLPlaygroundView.as_view(
        endpoint=os.getenv('GRAPHQL_ENDPOINT'))),
]
...

What could be wrong? I'm outta ideas. Thanks!

Did u solve the issue? @Cimmanuel

After going through lots of articles, I discovered this one, and this section made me realize the only thing that was wrong was the fact that I didn't expose port 8000 internally to other docker services. In my docker-compose file, the web service was supposed to have...
...
...
expose:
    - 8000
...
...

... in it. I added that and it was solved.

After going through lots of articles, I discovered this one, and this section made me realize the only thing that was wrong was the fact that I didn't expose port 8000 internally to other docker services. In my docker-compose file, the web service was supposed to have...
...
...
expose:
    - 8000
...
...

... in it. I added that and it was solved.

@mohammed-sehweil check this out!


test vectors

Hello,
I noticed that in the test vectors for Noise_XX_25519_ChaChaPoly_SHA512, after the handshake has completed the server will send the first payload to the client, which is the inverse of what other test vectors do (the client send the first payload).
Is this normal?

The test vector format specifies it as such:

The messages array describes a conversation alternating between the initiator and responder, starting with the initiator. No distinction is made between when the handshake begins and when it is complete. For example, if a handshake pattern has three messages in it, the responder will send the first non-handshake Noise message. For one-way patterns the messages simply flow from the initiator to the responder.

Ah, didn't notice there was a wiki here :) I'd suggest adding link to the README file now that you're the reference for Noise's test vectors.
Thanks!

I appreciate the suggestion.


Errors without any reason (just only sometimes)

Hi. I am creating a app with this api. When I try to get the user's screen, I get error saying undefined index: errorno on line 266 Twitter.php the code works fine after refreshing but shows this error sometimes. Please help.

Having similar issues on laravel 4.2

Same issue over here, laravel 4.2

on Twitter.php, line 266, there's the following line
$this->log('ERROR_CODE : '.$response['errorno']);

I believe it needs to be as follows
$this->log('ERROR_CODE : '.$response['errno']);

This is in the following pull request:
https://github.com/thujohn/twitter/pull/96


Update pom.xml to support ODFE 1.10.1

Issue #, if available:
https://github.com/opendistro-for-elasticsearch/opendistro-infra/issues/251
Description of changes:
This PR is to update pom.xml to support ODFE 1.10.1
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Please reword commit to "Change version to <IP_ADDRESS>"


API Endpoints for Teams resource

The following requests must be implemented:

[x] [GET] Get a list of all {resource}
[x] [GET] Get a {resource} by ID
[x] [POST] Create a new {resource}
[x] [PATCH] Update a {resource}
[x] [DELETE] Delete a {resource} by ID

The OpenAPI document must be updated to represent the request implementation:

[x] [GET] Get a list of all {resource}
[x] [GET] Get a {resource} by ID
[x] [POST] Create a new {resource}
[x] [PATCH] Update a {resource}
[x] [DELETE] Delete a {resource} by ID

All tasks complete and merged into dev


[Enhancement]: Update the 404 illustration on Appsmith to reflect the new visual language

The 404 image used is an illustration that is outdated in style and doesn't fit with the new visual style of Appsmith.
Update the image to the following:

Also, the current 404 image is a .png file. The updated image should be an svg.


Is it possible to force Text objects to have a maximum width?

Hi,
I'm trying to add some points along with their text over the map using the following code:
private fun addRoutes(routesVectorDataSource: LocalVectorDataSource) {
        val vectorElementVector = VectorElementVector()
        routes.forEach { route ->
                val originLatitude = route.origin_latitude
                val originLongitude = route.origin_longitude
                val pointPos = baseProjection.fromLatLong(originLatitude, originLongitude)
                val point = Point(pointPos, getRoutePointStyle())
                vectorElementVector.add(point)

                val markerText = Text(pointPos, getLabelTextStyle(), route.getName())
                vectorElementVector.add(markerText)
        }
        routesVectorDataSource.addAll(vectorElementVector)
    }

And It's working quite nice so far, since I added the anchorPointY property so the Text objects are at a certain distance from the markers:
textStyleBuilder.anchorPointY = 2.5f
However, long lines produce an undesired effect. They don't get wrapped. So if the line is pretty long...well, it'll show in a single line over the map. It'd be really nice if we could add some property to control the width of the Text objects. Perhaps, it's already available and I wasn't able to find it?
Cheers

Correct, specifying max text width is currently not available. I am tagging this as 'idea maybe future' and we may include this even in 4.2.1 release.
There is a workaround for this, though. You could do text splitting yourself and use '\n' to break lines. In order for this to work properly you need to set TextStyleBuilder.isBreakLines flag to true.


Create list view for functions using extensibility

Description
Changes proposed in this pull request:

Create list view for functions using extensibility
Add tooltips for badges
...

Related issue(s)

Part one of #1735

/retest


SkyUI Group Equip not working on right hand

Basically, anything except magic that equips to the right hand (left click) refuses to equip via the SkyUI quick menu groups assigned to hotkeys, including bows. I have not tested 2h yet as I do not currently have one available to my character. I've even tested with left/right claws properly equip set to remember which hand and the left equips (right click) but the right does not. Setting anything to the standard keybind instead of the group keybind equips properly to the right hand. Setting the group to unequip hands does not fix the issue but will properly unequip if nothing is in the group.
Completely fresh install; just got my character to level 4 mostly by discovering places and the first few quests of the Explorer Guildmaster alternate start. I was headed into Silent Moons Camp when I noticed it because this was the first real combat I'd had where I had set up equipment sets on the quick menu.

So, I noticed another problem. I was checking some configurations in the MCM and noticed that CCO's drop down lists for mining and gems were blank. This gave me the idea that something may have corrupted my save file and I started a new game to check. The new game has none of the problems of the original save. I'm not really that far in so I'm not that worried about it, but hopefully it isn't something in the list causing save corruption.


Files not emitted when referenced by multiple projects

I'm working in a monorepo where I need to emit both commonjs (for a Node.js server) and esnext (for tree shaking with Webpack) for each workspace. I want to arrange the tsconfig.json files such that running tsc -b in a workspace will build both the esnext and commonjs outputs.
My original approach was to have a tsconfig.json in the workspace that includes the files, and emits esnext, but have it also reference another tsconfig.cjs.json that has the same includes, but emits commonjs. I found that using this setup, some files are missing from the output.

TypeScript Version: 3.7x 3.8.x, 3.9.0-dev.20200413

Search Terms:

project references
missing files
overlapping includes

Code
// tsconfig.json
{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "outDir": "./dist/cjs",
    "rootDir": "./src",
    "composite": true,
    "strict": true,
    "baseUrl": "./",
    "typeRoots": [],
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true
  },
  "references": [{ "path": "./tsconfig.es.json" }]
}

// tsconfig.es.json
{
  "compilerOptions": {
    "target": "esnext",
    "module": "esnext",
    "outDir": "./dist/es",
    "rootDir": "./src",
    "composite": true,
    "strict": true,
    "typeRoots": [],
    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true
  }
}

// src/index.ts
import { MyString } from "./types";
export const myString: MyString = "";

// src/types.ts
export type MyString = string;

Expected behavior:
Building tsconfig.json via tsc -b would produce the files:
dist
├── cjs
│   ├── index.d.ts
│   ├── index.js
│   ├── types.d.ts
│   └── types.js
├── es
│   ├── index.d.ts
│   ├── index.js
│   ├── types.d.ts
│   └── types.js
├── tsconfig.es.tsbuildinfo
└── tsconfig.tsbuildinfo

Actual behavior:
On the first build, the following files are emitted (notice dist/cjs/types.d.ts and dist/cjs/types.js missing)
dist
├── cjs
│   ├── index.d.ts
│   └── index.js
├── es
│   ├── index.d.ts
│   ├── index.js
│   ├── types.d.ts
│   └── types.js
├── tsconfig.es.tsbuildinfo
└── tsconfig.tsbuildinfo

On the second build, a compile error:
$ npx typescript@next -b                                                                                 ✔  1540  07:50:56
npx: installed 1 in 1.315s
dist/cjs/index.d.ts:1:26 - error TS2307: Cannot find module './types' or its corresponding type declarations.

1 import { MyString } from "./types";
                           ~~~~~~~~~

Found 1 error.

This can be worked around by introducing a third project, in the structure
                tsconfig.json
                 ↙    ↘
tsconfig.cjs.json      tsconfig.es.json

Where the tsconfig.json becomes a solution project that itself includes no files, but merely references tsconfig.cjs.json and tsconfig.es.json, all the emitted files are output as desired.
Playground Link:
Related Issues:

@sheetalkamat this doesn't look immediately wrong to me but please verify

This is working as intended. Since tsconfig.json references project tsconfig.es.json that means that whenever file from tsconfig.es.json is referenced in tsconfig.json its built d.ts file will be included in the project so the types.d.ts file is included instead of the ts file. and is not emitted
TSFILE: c:/temp/test3/dist/cjs/index.js
TSFILE: c:/temp/test3/dist/cjs/index.d.ts
TSFILE: c:/temp/test3/dist/tsconfig.tsbuildinfo
c:/TypeScript/built/local/lib.d.ts
c:/TypeScript/built/local/lib.es5.d.ts
c:/TypeScript/built/local/lib.dom.d.ts
c:/TypeScript/built/local/lib.webworker.importscripts.d.ts
c:/TypeScript/built/local/lib.scripthost.d.ts
c:/temp/test3/dist/es/types.d.ts
c:/temp/test3/src/index.ts
[2:14:14 PM] Updating unchanged output timestamps of project 'c:/temp/test3/tsconfig.json'...

The next build since tsconfig.es.json doesnt exclude folder dist the dist/src/index.d.ts is included and doesnt contain types.d.ts next to it and errors:
c:\temp\test3>node c:\TypeScript\built\local\tsc.js -b --traceResolution --listFiles --listEmittedFiles -v
[2:15:20 PM] Projects in this build:
    * tsconfig.es.json
    * tsconfig.json

[2:15:20 PM] Project 'tsconfig.es.json' is out of date because oldest output 'dist/es/index.js' is older than newest input 'dist/cjs/index.d.ts'

[2:15:20 PM] Building project 'c:/temp/test3/tsconfig.es.json'...

======== Resolving module './types' from 'c:/temp/test3/dist/cjs/index.d.ts'. ========
Module resolution kind is not specified, using 'Classic'.
File 'c:/temp/test3/dist/cjs/types.ts' does not exist.
File 'c:/temp/test3/dist/cjs/types.tsx' does not exist.
File 'c:/temp/test3/dist/cjs/types.d.ts' does not exist.
File 'c:/temp/test3/dist/cjs/types.js' does not exist.
File 'c:/temp/test3/dist/cjs/types.jsx' does not exist.
======== Module name './types' was not resolved. ========
======== Resolving module './types' from 'c:/temp/test3/src/index.ts'. ========
Module resolution kind is not specified, using 'Classic'.
File 'c:/temp/test3/src/types.ts' exist - use it as a name resolution result.
======== Module name './types' was successfully resolved to 'c:/temp/test3/src/types.ts'. ========
dist/cjs/index.d.ts:1:26 - error TS2307: Cannot find module './types' or its corresponding type declarations.

1 import { MyString } from "./types";
                           ~~~~~~~~~

c:/TypeScript/built/local/lib.es5.d.ts
c:/TypeScript/built/local/lib.es2015.d.ts
c:/TypeScript/built/local/lib.es2016.d.ts
c:/TypeScript/built/local/lib.es2017.d.ts
c:/TypeScript/built/local/lib.es2018.d.ts
c:/TypeScript/built/local/lib.es2019.d.ts
c:/TypeScript/built/local/lib.es2020.d.ts
c:/TypeScript/built/local/lib.esnext.d.ts
c:/TypeScript/built/local/lib.dom.d.ts
c:/TypeScript/built/local/lib.dom.iterable.d.ts
c:/TypeScript/built/local/lib.webworker.importscripts.d.ts
c:/TypeScript/built/local/lib.scripthost.d.ts
c:/TypeScript/built/local/lib.es2015.core.d.ts
c:/TypeScript/built/local/lib.es2015.collection.d.ts
c:/TypeScript/built/local/lib.es2015.generator.d.ts
c:/TypeScript/built/local/lib.es2015.iterable.d.ts
c:/TypeScript/built/local/lib.es2015.promise.d.ts
c:/TypeScript/built/local/lib.es2015.proxy.d.ts
c:/TypeScript/built/local/lib.es2015.reflect.d.ts
c:/TypeScript/built/local/lib.es2015.symbol.d.ts
c:/TypeScript/built/local/lib.es2015.symbol.wellknown.d.ts
c:/TypeScript/built/local/lib.es2016.array.include.d.ts
c:/TypeScript/built/local/lib.es2017.object.d.ts
c:/TypeScript/built/local/lib.es2017.sharedmemory.d.ts
c:/TypeScript/built/local/lib.es2017.string.d.ts
c:/TypeScript/built/local/lib.es2017.intl.d.ts
c:/TypeScript/built/local/lib.es2017.typedarrays.d.ts
c:/TypeScript/built/local/lib.es2018.asyncgenerator.d.ts
c:/TypeScript/built/local/lib.es2018.asynciterable.d.ts
c:/TypeScript/built/local/lib.es2018.intl.d.ts
c:/TypeScript/built/local/lib.es2018.promise.d.ts
c:/TypeScript/built/local/lib.es2018.regexp.d.ts
c:/TypeScript/built/local/lib.es2019.array.d.ts
c:/TypeScript/built/local/lib.es2019.object.d.ts
c:/TypeScript/built/local/lib.es2019.string.d.ts
c:/TypeScript/built/local/lib.es2019.symbol.d.ts
c:/TypeScript/built/local/lib.es2020.bigint.d.ts
c:/TypeScript/built/local/lib.es2020.promise.d.ts
c:/TypeScript/built/local/lib.es2020.string.d.ts
c:/TypeScript/built/local/lib.es2020.symbol.wellknown.d.ts
c:/TypeScript/built/local/lib.esnext.intl.d.ts
c:/TypeScript/built/local/lib.esnext.string.d.ts
c:/TypeScript/built/local/lib.esnext.promise.d.ts
c:/TypeScript/built/local/lib.esnext.full.d.ts
c:/temp/test3/dist/cjs/index.d.ts
c:/temp/test3/src/types.ts
c:/temp/test3/src/index.ts
[2:15:21 PM] Project 'tsconfig.json' can't be built because its dependency 'tsconfig.es.json' has errors

[2:15:21 PM] Skipping build of project 'c:/temp/test3/tsconfig.json' because its dependency 'c:/temp/test3/tsconfig.es.json' has errors

Found 1 error.

I dont think you want to reference tsconfig.es.json from tsconfig.json since you want to build everything again with new compilation settings rather than just some of the files.

Thanks for investigating this one @sheetalkamat!

The next build since tsconfig.es.json doesnt exclude folder dist

Hmm I thought that because rootDir: "src/" was set, that implicitly excluded dist/? What would be the proper way to exclude dist? Do I need an exclude: ["dist/"] in tsconfig.es.json?

The next build since

It's surprising to me that this wasn't the behaviour for the first build, in the first build why wasn't types.d.ts emitted as consequence of tsconfig.es.json first (since that project is referenced/depended on), and then tsconfig.json use that file. Why does this only happen the second time?

I dont think you want to reference tsconfig.es.json from tsconfig.json since you want to build everything again with new compilation settings rather than just some of the files.

I think I was thinking about project references the wrong way… I was thinking about it more in terms of just a build order, rather than projects depending on specific files from one another.

Hmm I thought that because rootDir: "src/" was set, that implicitly excluded dist/? What would be the proper way to exclude dist? Do I need an exclude: ["dist/"] in tsconfig.es.json?

rootDir has no consequence of which files are part of your project.  You can find more info on compiler options at https://www.typescriptlang.org/v2/en/tsconfig

It's surprising to me that this wasn't the behaviour for the first build, in the first build why wasn't types.d.ts emitted as consequence of tsconfig.es.json first (since that project is referenced/depended on), and then tsconfig.json use that file. Why does this only happen the second time?

types.d.ts is never emitted as part of tsconfig.json. Thats why your dist/cjs doesnt have types.d.ts. The reason first build didnt have error was because it was dist\es folder didnt exist during initial build so it wasnt included in your build of tsconfig.json

Hi, i have similar issue and project structuct, i reinstall all and rebuild and working at once time. I see doc and solved run the next command, tsc build successfull.
tsc -b ./packages/a ./packages/b ./packages/c

@sheetalkamat do you recommend run always command? this apply a order to build?
<EMAIL_ADDRESS>


:pencil2: Correct the library comparison

Codecov Report
Patch and project coverage have no change.

Comparison is base (5fe39da) 100.00% compared to head (19bfa55) 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@            Coverage Diff            @@
##            master       #39   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            3         3
  Lines           84        84
  Branches        14        14
=========================================
  Hits            84        84

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.


Failed to fetch dynamic configuration

I got this error Failed to fetch dynamic configuration
This is on my global_styles
@import "http://asset.localhost/C%3A%2FUsers%2F0xJWL%2F%2Fglzr%2Fzebar.styles%2Fglobal.css";

And on global.css
@import "http://asset.localhost/C:/Users/0xJWL/.glzr/zebar/styles/themes/catppuccin.css";
@import "http://asset.localhost/C:/Users/0xJWL/.glzr/zebar/styles/config.css";
@import "http://asset.localhost/C:/Users/0xJWL/.glzr/zebar/styles/animations.css";
@import "http://asset.localhost/C:/Users/0xJWL/.glzr/zebar/styles/bar.css";
@import "http://asset.localhost/C:/Users/0xJWL/.glzr/zebar/styles/group-left.css";
@import "http://asset.localhost/C:/Users/0xJWL/.glzr/zebar/styles/group-center.css";
@import "http://asset.localhost/C:/Users/0xJWL/.glzr/zebar/styles/group-right.css";

Now it does work, but it looks like this

@import "http://asset.localhost/C%3A%2FUsers%2F0xJWL%2F%2Fglzr%2Fzebar.styles%2Fglobal.css";

On this import the encoding between zebar and styles is incorrect. It should be zebar%2Fstyles.

Should I use your feat/adapt-v2 or wait until v2 is released?

That one is very much not finished, so no I would not recommend using it yet.

Closed as I've released V2 config now


Add multiarch support to All_in_one image

Which problem is this PR solving?

Short description of the changes

Codecov Report

Merging #6 (4cdbab3) into master (40e96f9) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   95.95%   95.91%   -0.04%
==========================================
  Files         223      223
  Lines        9704     9704
==========================================
- Hits         9311     9308       -3
- Misses        325      327       +2
- Partials       68       69       +1

Impacted Files
Coverage Δ

cmd/collector/app/server/zipkin.go
73.07% <0.00%> (-3.85%)
:arrow_down:

cmd/query/app/static_handler.go
94.35% <0.00%> (-2.42%)
:arrow_down:

plugin/storage/integration/integration.go
77.90% <0.00%> (+0.55%)
:arrow_up:

Continue to review full report at Codecov.

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

Codecov Report

Merging #6 (da1e074) into master (312f83b) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master       #6      +/-   ##
==========================================
- Coverage   95.95%   95.93%   -0.03%
==========================================
  Files         223      223
  Lines        9712     9712
==========================================
- Hits         9319     9317       -2
- Misses        325      326       +1
- Partials       68       69       +1

Impacted Files
Coverage Δ

cmd/query/app/static_handler.go
95.16% <0.00%> (-1.62%)
: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 312f83b...da1e074. Read the comment docs.


Data Files

Leveraging a dataset containing 1000 documents categorized into eight diverse classes—Business, Entertainment, Food, Graphics, Historical, Politics, Space, Sport, and Technology—the aim is to develop robust classifiers capable of accurately assigning documents to their respective categories.
Key Components:
Multiple Model Implementation: The project utilizes five distinct machine learning models—Random Forest, K-Nearest Neighbors (KNN) Classifier, Gradient Boosting, Naive Bayes, and Support Vector Machine (SVM)—to perform document classification.
Dataset Processing: While the dataset itself cannot be provided in this repository due to privacy constraints, comprehensive guidelines and instructions are included to help users acquire a similar dataset and preprocess it effectively for model training.
How It Works:
The codebase is organized into various directories encompassing essential functionalities:
Data Handling: Placeholder directory (data/) providing guidance on structuring and handling the dataset.
Model Implementations: Code for each machine learning model resides in the models/ directory.
Notebooks: Jupyter notebooks (notebooks/) demonstrate the end-to-end process of training, evaluating, and testing the models.
Utilities: Handy scripts and utility functions for data preprocessing are located in the utils/ directory.
Dependencies: A requirements.txt file lists the necessary Python packages for running the codebase seamlessly.


Change “FAQs” to User Guides and update

Based on new functionality in PATRIC

updated from page description.

This is done.


issue-2: How I build backon?

Nice article, I love the backon crate which is tiny and elegant. However, I suggest renaming the title to `How I design the API for backon, a backoff retry crate" or similar? What do you think?

I totally agree it's a nice article and I like the new title  - is "designed" better than "design"?

yes, my typo, sorry.


Implement subtle traits for core primitives

https://docs.rs/subtle/2.3.0/subtle/
This is needed to fix rather serious constant time violation here: https://github.com/LLFourn/secp256kfun/blob/c124785118e42dff0cf95d0d854812a18673b428/sigma_fun/src/ext/dl_secp256k1_ed25519_eq.rs#L139-L142

https://github.com/LLFourn/secp256kfun/pull/57 did what was needed here.


Create st for hanoi law university

@ductho1201 lib/domains/vn/edu/hlu/st: this request has an incorrect file path format, please ensure that you are familiar with     this repository rules located at the bottom of this page and change     your request accordingly. If you don't know how to change request, close it and open a new one.     If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message.

@ductho1201 First stage of verification passed, official domain is hlu.edu.vn as far as I verified. This is just an informational note. Pull request is still in the review. I appreciate your patience while waiting for the final decision.

@ductho1201 #11067 has been merged with a different email domain for students of this university. Please clarify whether the domain was changed? If yes, where can I see an announcement about it?
Thank you!

@ductho1201 You might miss my previous comment. Please react.

@ductho1201 I am sorry, this request remains unanswered for a while. I have to close it without merging. Please reopen and comment if you have an update regarding the aforementioned issue. Thank you for your understanding!