[Vue warn]: injection "ol-options" not found. and not showing the map

Describe the bug
I want to try vue3-openlayers in my vue 3, vueitfy project using composition API. I copy and paste exact code in get started section. No matter i use it as plugin or in explicit mode i got the following warning and nothing shows:
[Vue warn]: injection "ol-options" not found.
  at <OlMap style= {min-width: '400px', min-height: '400px'} >
  at <VCol>
  at <VRow>
  at <VContainer>
  at <ServerSettings onVnodeUnmounted=fn<onVnodeUnmounted> ref=Ref< undefined > >
  at <RouterView>
  at <VMain>
  at <VApp>
  at <PrivateLayout>
  at <App>

The above gets repeated for OlView, OlTileLayer andOlSourceOsm.
Affected version(s)
├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>To Reproduce
Steps to reproduce the behavior:

add code from get started
npm run dev

Expected behavior
show the map
Desktop (please complete the following information):

OS: Windows 11
Browser Firefox, Edge

The documentation example code problem was with ol-map style. If i set the ol-map height to a number (not min-height) then it will show.


KAFKA-14339 : Do not perform prodcuerCommit on serializationError when trying offsetWriter flush

We shouldn't commitTransaction() on producer, when offsetWriter faces some issue and returns without sending offsets to producer.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

hi @C0urante, could you ptal on this quick small change

Thanks @sudeshwasnik, good catch! Would you mind filing a Jira for this so that others who encounter the same bug can track its status and fixed versions?
Regarding the actual changes--I think we should expand unit testing coverage here. The tweak to ExactlyOnceWorkerSourceTaskTest does address the case of synchronous offset flush failures (i.e., ones detected before offsets are dispatched to the producer), but it drops coverage for the case of asynchronous offset flush failures (i.e., ones detected after offsets are dispatched to the producer). Can we account for both cases?

Thanks @sudeshwasnik . This is a nice catch. I have requested couple of cosmetic changes. And I agree with Chris, might need to increase the test coverage. Currently the only test part of this change is removing an expected Call on FAIL_FLUSH_CALLBACK.

@C0urante @vamossagar12 quick dumb question - if there is an Async failure (detected after offsets are dispatched to producer), won't producer.commitTransaction also throw exception eventually? which gets captured in flushError (atleast that's what I expect, hence curious).
If so, is there a case where we require Async error tracking in offsets sent to producer separately?
Although I agree, we should anyways. And +1 to the suggestion! I'll try to add tests for Async failures (which is different from FAIL_TRANSACTION_COMMIT).
thansk for the review!

@sudeshwasnik Good point. I think with the code base as it is right now, we do get the invariant that asynchronous failures occur if and only if an offset is dispatched to Producer::send.
I'd still like to see coverage for (and handling of) this case if possible, though, since we may modify the offset writer, offset backing store, or Kafka log classes in a way that causes the callback to be invoked without the record making it to Producer::send.

@sudeshwasnik are you still working on this?

@C0urante sorry for the delay. I'll try to make the relevant changes and get back on this.

Closing this PR. Can reassign this ticket. Shouldn't block on my prioritizations.

Superseded by #12920.


Change temporary tables' schema and adjust tests

Codecov Report

Merging #128 (e5ed5b4) into dev (dfd01e3) will increase coverage by 0.01%.
The diff coverage is 90.90%.

@@            Coverage Diff             @@
##              dev     #128      +/-   ##
==========================================
+ Coverage   80.22%   80.23%   +0.01%
==========================================
  Files          25       25
  Lines        1345     1346       +1
  Branches      269      269
==========================================
+ Hits         1079     1080       +1
+ Misses        234      233       -1
- Partials       32       33       +1

Impacted Files
Coverage Δ

api/resources/summarization_gene_expression.py
41.80% <80.00%> (ø)

api/models/summarization.py
100.00% <100.00%> (ø)

api/resources/api_manager.py
67.88% <100.00%> (+0.61%)
:arrow_up:

api/resources/efp_image.py
95.08% <0.00%> (-1.64%)
: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 dfd01e3...e5ed5b4. Read the comment docs.


Add Open Telemetry Tracing Support

This enables bricksllm to opt-in support open-telemetry instrumented HTTP requests.

add distributed tracing support via otlp in internal/telemetry/otel_instrumentation.go.
add otel middleware to trace all incoming request to proxy server.
add otel roundtripper to trace all outgoing request to third party LLM provider.
flags in configuration to disable otel by default.

If you can help resolve the merge conflicts, this is good to go


HTML5:   output does not respect @frame attribute

The HTML5 output for <choicetable> elements seems to be ignoring the value of the @frame attribute.
Setting <choicetable frame="none"> to disable borders currently yields the same output as <choicetable frame="topbot">:

The <simpletable> element from which <choicetable> is specialized behaves as expected: setting <simpletable frame="none"> yields the following HTML output:

Fixed via #2239.


[BUG]

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
The search box always shows a 'no results' message briefly before showing results
Steps To Reproduce
In Dev
Go to the 'Conduct Tests' section of the app
Start typing in the search box
notice that a small modal will pop up that says 'searching' followed by 'no results' then followed by results (when applicable)
Expected Behavior
the 'no results' message should only show when the text that has been entered truly yields no results
Additional context
No response
Does this issue have a priority label?

[X] I have added a priority label

Has issue been assigned to a team?

[X] I have added a team label

Closing in favor of #4426


Hologram not showing

The hologram is not showing but all the function work properly, also after i remove the shop, i need to relog to make the armor stand disappear

Im playing in 14.4 server

You need to use a developer build for 1.13, 1.14 or 1.15 servers. See here: https://ci.codemc.io/job/EpicEricEE/job/ShopChest/


fix(openai): streaming tool_call + logging multiple tool_call

Fixes https://github.com/traceloop/openllmetry-js/issues/464 and https://github.com/traceloop/openllmetry-js/issues/465

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

@nirga just a note, this will break anyone's code which uses
span.attributes[${SpanAttributes.LLM_COMPLETIONS}.0.function_call.name] (will return undefined)
as the new format will become
span.attributes[${SpanAttributes.LLM_COMPLETIONS}.0.function_call.0.name].
To avoid any breaking changes, we could make it so that the first tool call remains
span.attributes[${SpanAttributes.LLM_COMPLETIONS}.0.function_call.name]
while all other tool calls are indexed:
span.attributes[${SpanAttributes.LLM_COMPLETIONS}.0.function_call.1.name].
However this may be confusing.

@guillaumefontan I think we should match the way we've implemented this on Python -
https://github.com/traceloop/openllmetry/blob/a1b82d8b272ce3861d88f5a2898d3170aa9a6df0/packages/opentelemetry-instrumentation-openai/opentelemetry/instrumentation/openai/shared/chat_wrappers.py#L448
So it should be tool_calls (plural)
Also note the CI is broken on your PR

Hi @nirga I've updated to tool_calls and fixed the lint warnings. However the build error:
Run pip3 install chromadb error: externally-managed-environment
does not appear to be related to my changes. Let me know if there is anything I can do.


Create annotation processor from WalkingkookaAllLocalesCodeGeneratorTool

Closed by https://github.com/mP1/j2cl-locale/issues/5


Update Jetbrains to 2022.2.3

Checklist

[x] Checked the nixpkgs master branch

[x] Checked the nixpkgs pull requests

Project name
nix search name: Jetbrains versions

current version: 2022.2.1
desired version: 2022.2.3
Notify maintainers

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

I am not a JetBrains maintainer:
Also, its probably easier to run pkgs/applications/editors/jetbrains/update.py and open a PR tagging me (would gladly review the MR)

Got it. Sorry I think I just saw your username and some previous PRs and added you based on that.  I created a PR from the update script. No idea how to test the updates.


Uncrustify command not found

Hello,
Beautify for Atom seems to be looking for uncrustify in the wrong place (at least for me).  I installed uncrustify with HomeBrew, and it installed it in /usr/local/bin/.  However, Beautify is looking in /bin/sh.  Is it possible to add an uncrustify path option?
Thanks.

I just installed uncrustify using home-brew in/usr/local/Cellar/uncrustify/0.63: and it worked for me in mac. Use brew install Uncrustify.


Declares types for typescript

Codecov Report

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

@@           Coverage Diff           @@
##           master       #2   +/-   ##
=======================================
  Coverage   99.54%   99.54%
=======================================
  Files           1        1
  Lines         222      222
=======================================
  Hits          221      221
  Misses          1        1

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 a216d6f...f517c7e. Read the comment docs.

Thanks!  This looks basically good, but the definition
interface IDoc {}

seems suspicious to me, because to me it looks like any object would then be accepted as a document, which should not be the case — assuming one actually wants some amount of type safety.  I'm not intimately familiar with TypeScript, however, so I might be missing something.

Perhaps a definition like this would be a good enough approximation:
type IDoc = string | IDocArray
interface IDocArray extends Array<IDoc> { }

This should allow one to pass strings and arrays of documents as documents, but not arbitrary objects or numbers, for example.  Of course, there are also other kinds of documents, but one should generally treat documents as abstract and never manipulate except using the functions from the library.

assuming one actually wants some amount of type safety

type IDoc = string | IDocArray
interface IDocArray extends Array<IDoc> { }

Much better, thank you. Updated it with your suggestion. Also helps with documentation and text editor support.

Looks good.  I'll try to find time to merge this and release a new version with the typings this evening.  Thanks again for the PR!


Import Profile configuration picker does not work

Does this issue occur when all extensions are disabled?: Yes

VS Code Version:
Version: 1.92.0-insider (user setup)
Commit: 52b2f67e96b4e757e8ff8e1e009dfffd70da91f5
Date: 2024-07-30T12:51:05.208Z
Electron: 30.1.2
ElectronBuildId: 9870757
Chromium: 124.0.6367.243
Node.js: 20.14.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.22621

Steps to Reproduce:

Make sure the New Profiles UI setting is disabled
Import profile
Select your profile to import - this happens both when using a pre-configured profile, or importing from a file
Un-check one of the configuration options. Note that all of the configurations become unchecked. You then cannot check any of the boxes at that point.
Expected behavior would be that only the box you select becomes unchecked, and you're able to import the profile without that configuration set.

https://github.com/user-attachments/assets/40415df7-7e0c-4264-8336-5c028120b9ba

Similar issue. I'm using "Copy from", when creating a new profile.
As soon as I pick an existing profile in the "Copy from" options drop-down, the config check-boxes are cleared below. I cannot check them manually.
I can create a new black profile. But then if I edit profile and uncheck any config checkbox, I am stuck with same issue.

Same issue for me. This issue was not present with the previous version (probably the 1.91)

/duplicate
https://github.com/microsoft/vscode/issues/224788
Please use New Profiles UI as a workaround


File name disappears in git version 2.38.1

Broken version: git version 2.38.1
Working version: git version 2.37.1 (Apple Git-137.1)
git diff output is slightly different between these two versions. In the working version, it's like this:
diff --git a/modified.txt b/modified.txt
index 1dd297ad..1cb605b6 100644
--- a/modified.txt
+++ b/modified.txt

In the broken version, it's like this:
diff --git modified.txt modified.txt
index 12ea6ab..c801668 100644
--- modified.txt
+++ modified.txt

The a/ and b/ are gone. git-split-diffs fails to parse the file name when a/ and b/ are gone and thus displaying every file without a file name. Otherwise, everything else still works.

I just updated to git 2.39.0 and still don't see this behavior. I see your fix, but unfortunately it breaks a test case (file deletion). Can you share more detailed repro steps and any special config settings you might have (check git config -l)?


Stuttering type names

It would be nice if the types in the package could be renamed, since they all currently start with Osc, but the library is already named osc so the code ends up being filled with osc.Osc. It would be nicer to just be able to write osc.Server or osc.Client.
See also http://blog.golang.org/package-names (particularly the Naming Package Contents section)

Thanks for the hint. I'll take a look at it when i have time (today or tomorrow evening).


Fix for Git v2.35.2 spec changes

The GitHub Action fails to create a pull request due to Git v2.35.2 spec changes.
More info and should fix https://github.com/crowdin/github-action/issues/114
I have tested my fork in a private repository and it worked as expected after this patch.

Hi @JohNan, thanks a lot for your contribution!
is this compatible with the older git Git versions?

Hi @JohNan, thanks a lot for your contribution!
is this compatible with the older Git versions?

Im running git version 2.35.1 locally and the command does not throw any errors. Is that a good enough backwards compatibility check?

@JohNan I think yes


Use ruby/setup-ruby, and bundler cache for faster builds

@mscoutermarsh 👋🏻 ended up checking out @planetscale - super cool btw - and going down this random hole.
TLDR: https://github.com/actions/setup-ruby is dead, long live https://github.com/ruby/setup-ruby and it's caching awesomeness. Also, the naming of the workflows wasn't super clear, so I "fixed" that too.
Hopefully y'all will have faster builds.

🙇🏻


[FAB-16789] Fix peer join description in network key concept

Type of change

Documentation update

Description
Fix the description in doc: About peer joining a channel, per
https://jira.hyperledger.org/browse/FAB-16789
Additional details
Reference doc fixed https://hyperledger-fabric.readthedocs.io/en/latest/network/network.html#peers-and-ledgers

Thanks!


convert example project to use pod instead of carthage

There are some issues with carthage based example project. The swift version might be incompatible between the one that is checked in the project and the one that is shipped with different versions of xcode.
This PR migrate from carthage xcode project to a cocoapod based one. so that new comers can clone the project and run immediately without worrying about swift incompatibility errors.

Codecov Report

Merging #88 into master will increase coverage by 1.32%.
The diff coverage is 54.54%.

@@            Coverage Diff             @@
##           master      #88      +/-   ##
==========================================
+ Coverage   53.17%   54.49%   +1.32%
==========================================
  Files          36       35       -1
  Lines        1025      989      -36
==========================================
- Hits          545      539       -6
+ Misses        480      450      -30

Impacted Files
Coverage Δ

Sources/Provider/EmptyCollectionProvider.swift
0% <ø> (ø)
:arrow_up:

Sources/Animator/BaseSimpleAnimator.swift
56% <ø> (+4%)
:arrow_up:

Sources/DataSource/ArrayDataSource.swift
84.61% <ø> (ø)
:arrow_up:

Sources/DataSource/ClosureDataSource.swift
0% <ø> (ø)
:arrow_up:

Sources/Provider/ComposedHeaderProvider.swift
0% <0%> (ø)
:arrow_up:

Sources/Provider/ComposedProvider.swift
89.47% <100%> (ø)
:arrow_up:

Sources/Provider/BasicProvider.swift
77.77% <60%> (ø)
:arrow_up:

Sources/Layout/WrapperLayout.swift
0% <0%> (-20%)
:arrow_down:

Sources/DataSource/DataSource.swift
0% <0%> (-14.29%)
:arrow_down:

Sources/Layout/RowLayout.swift
87.5% <0%> (-12.5%)
:arrow_down:

... and 6 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 90cc3fd...3b0d758. Read the comment docs.


Exceeding the Cookie limit

I've implemented Group based permission management #184, however, how do I get around not exceeding the cookie limit, my cookie limit would be exceeded by achieving role granularity within a group. (same issue for roles without groups on users) Each Controller method would have a different role and I have a lot of controllers. So a user could hypothetically have 100 roles without having a admin role. I really need to achieve the granularity of individual roles here without condensing roles into a higher role abstraction. I'm capped by the cookie size of 4096 bytes.
One solution considered would be putting the token into a key-value cache (memcached or redis) and adding a token Id within the cookie to link this when the request is made.
How can I extend the identity service to override the current token persistent mechanism with memcache or redis?

Okay solved it - found this Cookie sessions sample (https://github.com/aspnet/Security/tree/dev/samples/CookieSessionSample)
which I'll alter to use memcached and will replace "app.UseIdentity();" within the identity Startup.cs with the new reference. Here comes role granularity :)


Create merge_df_into with custom AND argument

In the moment, the atc.transformations.merge_df_into_target uses when matched update * when not matched insert *. We should consider make a function for adding custom WHEN MATCHED AND .... AND.... OR and WHEN NOT MATCHED AND...AND.

It could be fully custom merge:
if custom: "when matched update * when not matched insert *"
else
"custom merge statement"

I think that there is too many variations of merge statements. The ones created in the atc-dataplatform focuses on the most simple ones (e.g. upsert). If one needs to make a custom merge use either Spark.get().sql("MERGE-STATEMENT") or the delta.tables library.


feat: fastify 5 with separated type-providers

Checklist

[ ] run npm run test and npm run benchmark
[ ] tests and/or benchmarks are included
[ ] documentation is changed or added
[x] commit message and code follows the Developer's Certification of Origin
and the Code of conduct

The tests will not work since this fastify 5 change has not been committed yet.
This is a patch to work correctly with https://github.com/fastify/fastify/pull/5427

Yeah so this PR might need to be combined with, or merged after, #137 (for tests and dependencies)
Feel free to take over that as well or I can look into it tonight

Please pull from the next branch

Why is this PR closed? These type definition changes are approved and will break this project.

The target branch got merged and deleted. So GitHub closed it automatically.

Alright, I think the tests should run now!


add allow OPTIONS-requests filter

Browsers typically send pre-flight requests using the OPTIONS-HTTP-method. I would therefore suggest to allow this kind of request by default.

Coverage increased (+0.1%) to 96.341% when pulling 8720f24349d12107b9b250a7661863139a7e4fb9 on cors-allow-options-request into e45d1b59bb18a775b7e3e24b3636794fb8f8b176 on master.

Turned out, that this isn't a good idea... Even OPTIONS requests must be passed through to the actual resource. Closing this PR.


Add some ways to change overlay position in settings UI

My proposal is to add another section in settings UI and provide user with 9 radio-buttons drawn on some kind of monitor picture.
Like this:
/------------------
|-o------o------o-|
|-o------o------o-|
|-o------o------o-|
\------------------/

Would be nice to have an overlay size slider as well. The max size could be limited by screen size (it's ridiculous tho, but can find its usages). Just my two cents.


Daemon crach on GCP

Instance: GCP c2-standard-4 (Cascade Lake)
OS: Ubuntu 18.04.5 LTS
Followed Getting Started and My First Transaction pages. Opened 8202, 8203 TCP ports, both ingress and engress.
When run coda daemon -peer $SEED1 I got this error as attached.
coda_crash_report_2020-09-20_09-31-51.964221.tar.gz

rpc_error (Connection_closed (\"EOF or connection closed\") which was tracked via #6001

Closing this issue as it is stale for a long time.


can chatterbot be deployed in telegram or any other social networking sites ?Without the telegram I/o adapter?

I think yes, You have write your own input and output adapters


Fix create the same cache component repeatedly

Codecov Report

Merging #5 (793db98) into main (4a3c602) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main        #5   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          133       133
=========================================
  Hits           133       133

Impacted Files
Coverage Δ

store/store.go
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


How to correctly type a state query function?

🙋♂ Question
I have asked this question on StackOverflow, but didn't get much of a response, so I thought I'd try here.
Consider the following Typescript code:
import produce, {castDraft} from "immer";

interface Item {
  readonly id: number;
  readonly value?: string;
}

interface State {
  readonly items: Item[];
}

function findItemById(state: State, id: number): Item {
  return state.items.find(x => x.id === id)!;
}

const state: State = {
  items: [{ id: 1 }, { id: 2 }, { id: 3 }]
};

// This does not work.
produce(state, draft => {
  const item = findItemById(draft, 2);
  // Cannot assign to "value" because it is a read-only property.
  item.value = "Something";
});

// This works, but it's not ideal
produce(state, draft => {
  const item = castDraft(findItemById(draft, 2));
  item.value = "Something";
});

We're following the Immer.js recommendations of setting our State as readonly. We have a 'query function', which is used to pull a chunk out of the state. In this example, that's findItemById(). We quickly run into a problem, where whenever we grab the chunk of state from our draft instance in produce(), it loses the mutability wrapper and we cannot assign to it. We can use the function castDraft() to work around this issue, but I find that less than ideal - we will be using these kind of query functions a lot in our producers, so needing to cast all the time is problematic and error prone (if you accidentally cast from the external state and not the draft, you're in trouble!)
What we'd like to do is to define the type of the function findItemById() in such a way that it returns a writeable Item when the input State is writeable, otherwise returns an immutable item. I tried something like the following:
function findItemById<T extends Draft<State> | State>(
  state: T,
  id: number
): T extends Draft<State> ? Draft<Item> : Item {
  return state.items.find((x) => x.id === id)!;
}

But that didn't seem to work - the result was always writeable, even when the input was a regular State type. Is there any way to type the function to get the results I want?

Sorry never replied to this one I see. If this is still a question let me know. Otherwise closing.


Various questions

Hey there!
I just came across WebPack while being in the need to get rid of many requests just to gather together some resources (various scripts, etc). For now, I have been doing this using PHP. A Yii extension allows me to add together all my scripts into a single file. However, minification and things alike don't work. There also is no support for some advanced parsing and pre-processing.
So I have a few questions:

Within webpack-app (the example app) you used the jamjs system for some dependencies. Would you recommend this to work nicely alongside webpack?
I currently have quite a few dependencies that I am currently managing via - you are going to scream... - git submodule. As you can tell, this is not very elegant! My main dependencies include Bootstrap and jQuery, but also smaller jQuery plugins. How can I add these smaller plugins, that are oftenly just a single file, to webpack? Is there a recommended way to do so? As an example for this question, consider jQuery.stickyFooter and jQuery.rangyInputs.
Am I right to assume that loaders are chained by separating them by exclamation points ("!")? I.e.: style-loader!css-loader!scss-loader
I want to build a loader for OJ. It has a runtime that needs to be included for the browser to work. This runtime currently only supports the browser and needs to run in global space. Imagine I had done the loader, how would I go about loading .oj files?
Within my app, I have a slightly changing demand for scripts. When I am at /site/main I only want jQuery, Bootstrap and some fancy stuff. But when I am within /chat, I would like to be able to load a lot more JS files. What is a good way to handle this? I know there is the async way of require-ing files. But how exactly does it work? Do I specify the path directly to the file? Say I have main.js and a subfolder called chat/ containing a few various scripts specially for the chat. How do I load them all?
Does webpack understand symlinks? I currently have the Socket.IO client library symlinked into my main folder. What is the best way to get this to the browser?

Sorry for the load of questions - but I decided that it was better to put it all here instead of spawning one issue per question - I hope you don't mind :)
Webpack looks very promising and I can't wait to use it. I am just currently considering how to. The CLI seems a bit sparse and I am unsure on how exactly I have to create my webpack.
Kind regards, Ingwie!

Within webpack-app (the example app) you used the jamjs system for some dependencies. Would you recommend this to work nicely alongside webpack?

I have stuck with NPM with Webpack. You can get very far with it. I'm not exactly sure what extra jamjs provides you.

I currently have quite a few dependencies that I am currently managing via - you are going to scream... - git submodule. As you can tell, this is not very elegant! My main dependencies include Bootstrap and jQuery, but also smaller jQuery plugins. How can I add these smaller plugins, that are oftenly just a single file, to webpack? Is there a recommended way to do so? As an example for this question, consider jQuery.stickyFooter and jQuery.rangyInputs.

jQuery.stickyFooter could be consumed through NPM by pointing at the repository via package.json (point at specific commit or tag if you want to play it safe). Looks like Bower could be an alternative in this case (works with Webpack). Or you could include the relevant files to project itself.
Regardless of the approach you choose, you can define an alias for the library. Then, in order to get it included within some bundle, you would invoke require('jquery-stickfooter') or whatever you set up at the alias. That seems like a clean approach to me.
If the library is used within many bundles, CommonsChunkPlugin, can deal with that (avoids duplication).

Am I right to assume that loaders are chained by separating them by exclamation points ("!")? I.e.: style-loader!css-loader!scss-loader

Yeah, that's right. I like to keep these things at webpack.config.js (or equivalent) and keep the configuration out of require (cleaner code, easier to modify). You can see my approach at react-component-boilerplate.

I want to build a loader for OJ. It has a runtime that needs to be included for the browser to work. This runtime currently only supports the browser and needs to run in global space. Imagine I had done the loader, how would I go about loading .oj files?

I cannot give you a straight answer for this one. You should check out some of the loaders for other languages like this to see how they manage it.

Within my app, I have a slightly changing demand for scripts. When I am at /site/main I only want jQuery, Bootstrap and some fancy stuff. But when I am within /chat, I would like to be able to load a lot more JS files. What is a good way to handle this? I know there is the async way of require-ing files. But how exactly does it work? Do I specify the path directly to the file? Say I have main.js and a subfolder called chat/ containing a few various scripts specially for the chat. How do I load them all?

There are multiple ways to deal with this. Webpack can generate multiple bundles for you (bundle per entry point). I think you can find the approaches you need at amongst these webpack presentation examples.

Does webpack understand symlinks? I currently have the Socket.IO client library symlinked into my main folder. What is the best way to get this to the browser?

Maybe it's easier just to have that Socket.IO client library as a regular dependency and let Webpack find it at node_modules through a require?
I hope this helps. I've been working on a book that starts from the basics and expands from there. Maybe you'll find it useful. See also the cookbook to find solutions for specific problems.

Thanks for the answers! They helped me a lot and I am beginning to re-structure my codebase in order to take full advantage of Webpack. I also just got to see the ExtractTextPlugin. This is going to be really nice. My current styles are written using a PHP framework, so I will make sure to write a loader for that too, so all my styles and scripts get packed. Webpack is a truely amazing solution.
Why isn't the presentation linked on this repo's page? It is very informative and gives great examples that actually made my mind click with this system. :)
I also found a plugin on NPM that lets me use my bower modules: https://www.npmjs.com/package/bower-webpack-plugin Very helpful.
Now a question to requireing stuff from node_modules. the OJ runtime is found within node_modules/ojc/lib/runtime.js. So can I just call it like: require("ojc/lib/runtime"); ?
I also posted a question to the ExtractTextPlugin about chaining loaders. When this is resolved, I am pretty sure I have all that I need - except that I will be coding quite a few things for Webpack, mainly loaders.
Kind regards, Ingwie

Now a question to requireing stuff from node_modules. the OJ runtime is found within node_modules/ojc/lib/runtime.js. So can I just call it like: require("ojc/lib/runtime"); ?

Yeah. You can point to individual files through a package just like that though maybe what you are looking for is actually require('ojc/src/runtime) based on the source structure as I don't see lib directory there.

Oops! I had a derp there :) But yes, that is what i ment. Awesome. :)
Do you happen to know a solution for this issue? https://github.com/webpack/extract-text-webpack-plugin/issues/63

There we go, I got myself a base environment up, using the NodeJS API. But I am a little bit confused...
For testing and base-lining, I wrote a get-and-return loader (it comments out the entire code it gets and returns it.). So I ran my build and it was called twice?
Hash: eb1afd455132db5dfe4d
Version: webpack 1.8.8
Time: 42ms
  Asset       Size  Chunks       Chunk Names
main.js  313 bytes    0, 1       main
 lib.js    3.56 kB       1       lib.js
chunk    {0} main.js (main) 129 bytes {1}
    [0] ./test/main.js 43 bytes {0} [built]
    [1] ./test/lib.oj 86 bytes {0} [not cacheable] [built]
        cjs require ./lib.oj [0] ./test/main.js 2:0-19
chunk    {1} lib.js (lib.js) 0 bytes
   [0] ./test/main.js 43 bytes {0} [built]
   [1] ./test/lib.oj 86 bytes {0} [not cacheable] [built]
       cjs require ./lib.oj [0] ./test/main.js 2:0-19

main.js:
console.log("meep.");
require("./lib.oj");

lib.oj:
@implementation Foo {}
+(id)bard {
    console.log("Foo is in Baz' bar.");
}
@end

And my config/invocation:
        var commonsPlugin = new webpack.optimize.CommonsChunkPlugin('lib.js');
        var defines = new webpack.DefinePlugin({
            "__DEV__": JSON.stringify("true"),
            "__PRERELEASE__": JSON.stringify("true"),
            "__VERSION__": config.version,
            "__CDN__": cdn,
            "__APP__": app
        });
        var compiler = webpack({
            context: config.base,
            entry: {
                //main: "../web-lib/main.js"
                main: path.join(__dirname, "../test/main.js")
            },
            output: {
                // to cdn/app/
                path: app,
                filename: "[name].js",
                publicPath: "/cdn/app/"
            },
            resolve: {
                extensions: ["",".js",".json",".oj"],
                moduleDirectories: ['node_modules', 'bower_components'],
            },
            module: {
                loaders: [
                    { // OJ -> JS
                        test: /\.oj$/,
                        loader: path.join(__dirname,"oj-loader.js")
                    },{ // WingStyle -> CSS
                        test: /\.ws\.php$/,
                        loader: path.join(__dirname,"wingstyle-loader.js")
                    },{ // Images
                        test: /\.(png|jp?g|gif)$/,
                        loaders: [
                            // 20kb or smaller
                            "url?limit="+config.maxFileSize,
                            // optimize image
                            "img"
                        ]
                    },{ // Fonts
                        test: /\.(eot|woff?|svg|tiff)$/,
                        loader: "file"
                    },/*{ // Deal with JS
                        test: /\.(js)/,
                        loader: "strip"
                    },*/{ // Markdown
                        test: /\.(md|markdown)$/,
                        loader: "markdown"
                    },{ // HTML
                        test: /\.html$/,
                        loader: "html"
                    }
                ]
            },
            plugins: [commonsPlugin,defines]
        }, function(err, stats){
            // Is this also a compile step or...?
        }).run(function(err, stats){
            console.log(stats.toString({
                colors: true,
                version: true,
                timings: true,
                assets: true,
                modules: true,
                reasons: true,
                errorDetails: true
            }));
        });

So why is my lib.oj picked up twice - is it due to the chunk plugin, or what is the reason?

So why is my lib.oj picked up twice - is it due to the chunk plugin, or what is the reason?

Maybe it's related to commonsPlugin? You could try to simplify the configuration until you get something you expect.

Seems like it was the commons plugin altogether. Thanks for answering my questions - I am already a very happy webpack user. :) Next thing I am tackling is to compress my code further or trying to split jquery into parts, stuff like that... i really hope jQuery becomes smaller in some time soon.


Add expensive recipe for mineralized water crystallization

Else it's too powerful compared to normal sludge

Would it make startup phase too painfully long?


flashing taskbar corner icons/pen strokes randomly disappearing

Microsoft PowerToys version
0.58.0
Running as admin

[ ] Yes

Area(s) with issue?
General, System tray interaction
Steps to reproduce
Draw in OneNote or xournal++ with stylus while PowerToys is running.
✔ Expected Behavior
Drawing consistently with no issues, with the taskbar icons not flashing.
❌ Actual Behavior
At first, every few seconds, the icons would flash, and my pen stroke would disappear.
After calibrating for pen input, the same would happen every 10-20 seconds.
If I exit PowerToys, the drawing would go back to normal and the icons would stop flashing.
Other Software
xournal++ for windows 1.1.1
OneNote for Windows 10 16001.14326.20838.0

What hardware is this?
Could you please try disabling PowerToys plugins and try re-enabling them one by one to check if we can figure out which PowerToy might be causing this? /needinfo

Surface Pro 7, and Surface Pen with one side button and no clip.
The only PowerToy that causes this is FancyZones.

Surface Pro 7, and Surface Pen with one side button and no clip.
The only PowerToy that causes this is FancyZones.

Looks similar to https://github.com/microsoft/PowerToys/issues/18347.
Can you please attach a /bugreport?

PowerToysReport_2022-05-27-15-57-26.zip

Thank you. I see proof of my asssumption in the logs. The fix will be in the next release. As a workaround you can set any other layouts instead on the default.
/dup of https://github.com/microsoft/PowerToys/issues/18057


AMBARI-25415 AMS - metadata table has incorrect primary key (ihorluki…

…anov)
What changes were proposed in this pull request?
Fixed the PK for ams metadata table
How was this patch tested?
manually

@ihorlukianov , does this change affect the upgrade ?

@payert all the existing clusters will use old primary key. To use the fixed one the table needs to be deleted.
Currently this issue affects only Nifi grafana graphs. The root cause that led to finding this issue is false metrics that should be fixed in other task. Once it's fixed the old PK should be fine for all graphs.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5561/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5562/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5564/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5566/
Test FAILed.
Test FAILured.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/5567/
Test FAILed.
Test FAILured.

The test failure is not related to the patch, since it happens in different package.
3504819 [INFO] ambari-metrics <IP_ADDRESS>.0 ........................... SUCCESS [  0.495 s]
3504819 [INFO] Ambari Metrics Common <IP_ADDRESS>.0 .................... SUCCESS [ 27.907 s]
3504820 [INFO] Ambari Metrics Hadoop Sink <IP_ADDRESS>.0 ............... SUCCESS [ 20.616 s]
3504820 [INFO] Ambari Metrics Flume Sink <IP_ADDRESS>.0 ................ SUCCESS [ 13.513 s]
3504820 [INFO] Ambari Metrics Kafka Sink <IP_ADDRESS>.0 ................ SUCCESS [ 11.273 s]
3504821 [INFO] Ambari Metrics Storm Sink <IP_ADDRESS>.0 ................ SUCCESS [  7.827 s]
3504821 [INFO] Ambari Metrics Storm Sink (Legacy) <IP_ADDRESS>.0 ....... SUCCESS [  7.314 s]
3504821 [INFO] Ambari Metrics Collector <IP_ADDRESS>.0 ................. SUCCESS [05:29 min]
3504822 [INFO] Ambari Metrics Monitor <IP_ADDRESS>.0 ................... SUCCESS [  5.270 s]
3504822 [INFO] Ambari Metrics Grafana <IP_ADDRESS>.0 ................... SUCCESS [  7.429 s]
3504822 [INFO] Ambari Metrics Host Aggregator <IP_ADDRESS>.0 ........... SUCCESS [ 29.732 s]
3504822 [INFO] Ambari Metrics Assembly <IP_ADDRESS>.0 .................. SUCCESS [03:30 min]
3504823 [INFO] Ambari Service Advisor <IP_ADDRESS>-SNAPSHOT ............ SUCCESS [  5.388 s]
3504823 [INFO] Ambari Server <IP_ADDRESS>.0 ............................ FAILURE [24:31 min]


Cleanup: T&, std::move, ref_t emplace_back(...)

Fix more cases of unneeded copies due to missing &
Prefer move over copy
Cosmetic change: Prove that C++17's reference_type emplace_back() actually works

https://en.cppreference.com/w/cpp/compiler_support/17#C.2B.2B17_library_features
Search for P0084R2.

Thanks!


fix: disable scrolling on the play page

Fixes #52

Seems good to me ! And it's a way better fix that the class RestrictedScroll I had implemented ^^


fix: upgrade to version 3.2.43

from: https://github.com/jenkins-x/jx

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign abayer
You can assign the PR to them by writing /assign @abayer in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
7bfb36c2a931fd184d5060c4e21bedd314c8ffe0
link
/test gsm

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

/retest


Failure obtaining db row lock: Lock wait timeout exceeded

We frequently met with following error:
org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: Lock wait timeout exceeded; try restarting transaction
at org.quartz.impl.jdbcjobstore.StdRowLockSemaphore.executeSQL(StdRowLockSemaphore.java:157) ~[quartz-2.2.1.jar:na]
at org.quartz.impl.jdbcjobstore.DBSemaphore.obtainLock(DBSemaphore.java:113) ~[quartz-2.2.1.jar:na]
at org.quartz.impl.jdbcjobstore.JobStoreSupport.doRecoverMisfires(JobStoreSupport.java:3185) ~[quartz-2.2.1.jar:na]
at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.manage(JobStoreSupport.java:3935) [quartz-2.2.1.jar:na]
at org.quartz.impl.jdbcjobstore.JobStoreSupport$MisfireHandler.run(JobStoreSupport.java:3956) [quartz-2.2.1.jar:na]
Quartz version: 2.2.1
JDK8
DB: MySQL 5.5
We used it in cluster environment, where there are 18 servers. There are total about 450 jobs are scheduled running in various frequency. The most often ones are running every 5 minutes.
Quartz property in Spring:
org.quartz.scheduler.instanceName: SomeBatchScheduler
org.quartz.scheduler.instanceId: AUTO
org.quartz.jobStore.misfireThreshold: 60000
org.quartz.jobStore.class: org.quartz.impl.jdbcjobstore.JobStoreTX
org.quartz.jobStore.driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
org.quartz.jobStore.tablePrefix: ${quartz.tablePrefix}
org.quartz.jobStore.isClustered: true
org.quartz.jobStore.dontSetAutoCommitFalse: false
org.quartz.threadPool.class; org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount: 50
org.quartz.threadPool.threadPriority: 5
DataSource defined:
dataSource class: com.mchange.v2.c3p0.ComboPooledDataSource
destroy-method: close
driverClass: ${app.jdbc.driverClassName}
jdbcUrl: ${app.jdbc.url}
maxPoolSize" value="40"
minPoolSize" value="5"
acquireIncrement" value="2"
checkoutTimeout" value="60000"
debugUnreturnedConnectionStackTraces: "true"
testConnectionOnCheckin: "true"
testConnectionOnCheckout: "true"
idleConnectionTestPeriod: "300"
preferredTestQuery: "SELECT 1"
Symptom on DB side:
When this issue happened, there are many threads (150) were stucked on query:
SELECT * FROM COAP_LOCKS WHERE SCHED_NAME = '####' AND LOCK_NAME = 'STATE_ACCESS' FOR UPDATE
or
SELECT * FROM COAP_LOCKS WHERE SCHED_NAME = '####' AND LOCK_NAME = 'TRIGGER_ACCESS' FOR UPDATE
It looks like some Quartz thread didn't release lock and these threads are waiting indefinitely.
The entries in fired_triggers stayed in "ACQUIRED" state.
Seem a bug that Quartz forgot to release lock.

Please advise for fixing the issue.
Thanks

Closing as dup of #268


firebase deploy error

Can't firebase deploy, appears this error:
Error: Error parsing triggers: Cannot find module 'firebase-admin'

Have you first run npm install in the functions directory?

Gives this output:
npm WARN saveError ENOENT: no such file or directory, open 'D:\Projectes\assistant\codelabs-nodejs\level2\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'D:\Projectes\assistant\codelabs-nodejs\level2\package.json'
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN level2 No description
npm WARN level2 No repository field.
npm WARN level2 No README data
npm WARN level2 No license field.
audited 546 packages in 2.143s
found 0 vulnerabilities

Okay, as long as there's no errors, then it should be good to deploy.

The same error:
D:\Projectes\assistant\codelabs-nodejs\level2>firebase deploy
!  functions: package.json indicates an outdated version of firebase-functions.
 Please upgrade using npm install --save firebase-functions@latest in your functions directory.

=== Deploying to 'actions-codelab-a3d59'...

i  deploying functions
i  functions: ensuring necessary APIs are enabled...

functions: all necessary APIs are enabled
i  functions: preparing functions directory for uploading...

Error: Error parsing triggers: Cannot find module 'firebase-admin'
Try running "npm install" in your functions directory before deploying.

Ah, it looks like you're installing Firebase Functions 2.1.0, which is higher than the expected ^1.0.2 as listed in the package.json file. The package also has Firebase Admin ^5.12.0, which is lower than the expected ~6.0.0 noted in the warning above.

I've already done the install, but it doesn't work:
`
D:\Projectes\assistant\codelabs-nodejs\level2>npm install --save firebase-functions@latest

<EMAIL_ADDRESS>postinstall D:\Projectes\assistant\codelabs-nodejs\level2\node_modules\firebase-functions
node ./upgrade-warning

======== WARNING! ========
This upgrade of firebase-functions contains breaking changes if you are upgrading from a version below v1.0.0.
To see a complete list of these breaking changes, please go to:
https://firebase.google.com/docs/functions/beta-v1-diff
npm WARN saveError ENOENT: no such file or directory, open 'D:\Projectes\assistant\codelabs-nodejs\level2\package.json'
npm WARN enoent ENOENT: no such file or directory, open 'D:\Projectes\assistant\codelabs-nodejs\level2\package.json'
npm WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed. You must install peer dependencies yourself.
npm WARN level2 No description
npm WARN level2 No repository field.
npm WARN level2 No README data
npm WARN level2 No license field.

<EMAIL_ADDRESS>updated 1 package and audited 546 packages in 4.637s
found 0 vulnerabilities
`

You may need to also run npm install firebase-admin
Can you run firebase --version to see what version it is? The codelab package may need to be updated.

It works!
Thank you very much.

Hang on @dumabg can you run firebase --version so we know what you're using and see if we need to update our codelab instructions?

6.1.1

Root cause of this issue would seem to be: https://github.com/firebase/firebase-functions/issues/342


Test can fail if map iterates in a different order

Problem:

Test handlesMethodNotAllowedWithHeaders in LoggingExceptionMapperTest.java  depends on the iteration order of  Response.getHeaders, and its return type is MultivaluedMap. However, it does not guarantee any specific order of entries. Therefore, the assertion in that test cases will fail if the order is different.
Solution:

This PR proposes to use containsAnyOf instead of contains, which verifies that the actual map contains the given entries in any order.
Result:

The test becomes no longer flaky.

@testfixer Thanks for your PR!
I've decided to address this slightly different in #3152.


feat: performs basic validation for ESCAnimationResource in-editor an…

…d in-game
fixes https://github.com/godot-escoria/escoria-issues/issues/214

@BHSDuncan To be rebased onto develop branch, and verify the fix is still there. Thanks!

Rebased with zero issues! Sounds too good to be true...

Narrator : "It was in fact, too good to be true..."

I suppose it's asking too much for Git to know that the NEW code should make use of the rebased code's changes. #firstworldcodingproblems


Can I use this library for video file uploding

hello @benjreinhart
I am trying to upload a video file to AWS using this library but it doesn't work here.
Please help me

it works


dart fix doesn't add optional parameters in subclasses

I was attempting to make a dart fix entry for a change made to the Flutter repo (flutter/flutter#109808) where we added a parameter to the abstract class member function SliderTrackShape.paint. The parameter is an optional (nullable) named parameter that was Offset? secondaryOffset.
To author this fix, I wrote this in the fix_data.yaml file:
  # Changes made in https://github.com/flutter/flutter/pull/109808
  - title: "Add secondaryOffset to paint() in subclasses of 'SliderTrackShape'"
    date: 2022-08-29
    element:
      uris: [ 'material.dart' ]
      method: 'paint'
      inClass: 'SliderTrackShape'
    changes:
    - kind: 'addParameter'
      index: 6
      name: 'secondaryOffset'
      style: optional_named
      argumentValue:
        expression: ''

When I ran this on the following dart file with dart fix test.dart, dart responded with "Nothing to fix!":
import 'package:flutter/material.dart';

class MyTrackShape extends SliderTrackShape {
  @override
  Rect getPreferredRect({
    required RenderBox parentBox,
    Offset offset = Offset.zero,
    required SliderThemeData sliderTheme,
    bool isEnabled = true,
    bool isDiscrete = false,
  }) {
    throw UnimplementedError();
  }

  @override
  void paint(
    PaintingContext context,
    Offset offset, {
    required RenderBox parentBox,
    required SliderThemeData sliderTheme,
    required Animation<double> enableAnimation,
    required Offset thumbCenter,
    bool isEnabled = true,
    bool isDiscrete = false,
    required TextDirection textDirection,
  }) {
    throw UnimplementedError();
  }
}

I would have expected it to modify the file to include the missing parameter:
import 'package:flutter/material.dart';

class MyTrackShape extends SliderTrackShape {
  @override
  Rect getPreferredRect({
    required RenderBox parentBox,
    Offset offset = Offset.zero,
    required SliderThemeData sliderTheme,
    bool isEnabled = true,
    bool isDiscrete = false,
  }) {
    throw UnimplementedError();
  }

  @override
  void paint(
    PaintingContext context,
    Offset offset, {
    required RenderBox parentBox,
    required SliderThemeData sliderTheme,
    required Animation<double> enableAnimation,
    required Offset thumbCenter,
	Offset? secondaryOffset,  // Expected this line to be added in this position
    bool isEnabled = true,
    bool isDiscrete = false,
    required TextDirection textDirection,
  }) {
    throw UnimplementedError();
  }
}

Also, the YAML analysis in VSCode seemed to think that the argumentValue key needed to be added, but I think that for optional parameters it should also be optional (also because it's unclear if the value should be 'null' or '' if the value should not have an initializer).
The documentation implies that this kind of change ought to be supported: "The index key is ... used to know where to add new parameters in overrides ...".
Dart SDK Version: 2.19.0 (build 2.19.0-147.0.dev)
OS: Debian GNU/Linux 5.17.11-1rodete2-amd64
cc @bwilkerson

Let me know if you think this should be higher priority.

No, P2 is sufficient for now.  I would like to be able to add a fix for this before the next major release of Flutter, but the case where I want to use this is not really a highly used API, so if it didn't make it, it wouldn't be earth shattering.

The first step would be to implement AddParameter for overriding methods, in which there is a failing test case here
A very initial CL to pass this test is in https://dart-review.googlesource.com/c/sdk/+/257402
I guess it goes about handling both ArgumentList and FormalParameterList (or the NodeList in them).


Prepare for new release

Signed-off-by: Ivan Kozlovic<EMAIL_ADDRESS>

Coverage decreased (-0.01%) to 92.124% when pulling b79d618bf73b1f41cd024c577ab0d5d7a7d85aa3 on new_release into 803ca55e87a9a96bb4e578ebab952fb633563f41 on master.


reference TypeScript 1.5

Running "grunt typescript" with the latest versions of grunt-typescript (this library) and DefinitelyTyped results in the following error.
>> path/to/node/node.d.ts(275,26): error TS2304: Cannot find name 'DataView'.

Please merge this PR.  It fixes the bug.

I had to switch to grunt-ts, which is more maintained


fix the issue netty#2944 in 4.1

Motivation:
fix the issue netty#2944
Modifications:
use - instead of =>, use ! instead of :> due to the connection is bidirectional. What's more, toString() method don't know the direction or there is no need to know the direction when only log channel information.
Result:
after the fix, log won't confuse the user

ok.
use L: can solve the confuse Rexample.com.
3ks for your suggestion.
I had update the pulled code.
and another quesion. if we need add L to this case,
strVal = String.format("[id: 0x%08x, %s]", (int) hashCode, localAddr);
. I hadn't add it due to there is only one address. but my concern if we don't add L it won't keep same style with L:localAddress - R:remoteaddress

@trustin
ok.
use L: can solve the confuse Rexample.com.
3ks for your suggestion.
I had update the pulled code.
and another quesion. if we need add L to this case,
strVal = String.format("[id: 0x%08x, %s]", (int) hashCode, localAddr);
. I had added it to keep same style with L:localAddress - R:remoteaddress


Several layout issues

[x] In home page, add more space between the graph cards, to be aligned with the original design

[x] In Agents list, in list view mode, the Delete link do not have the same cursor in mouse hover as in Details and Edit

[x] Clicking any Delete button in Agent section, appear a delete confirmation popup. In the confirmation popup, the Delete button is enable event when the user has not specified the name of the Agent to delete

[x] Agent icon are missaligned between agent list and agent popup

All defectes were fixed and validated

All defectes were fixed and validated


command “Grab a beta theme for testing from a Github repository”: missing

I am now on 0.5.7 and want to install an beta theme, but the command Grab a beta theme for testing from a Github repository is not in the palette list.

Please try a restart to Obsidian.
Also is the command available from the BRAT ribbon button?

OK, that's fine now, many thanks. I don't use the ribbon, I prefer keyboard shortcuts 😀


Broken ArrowApply Instance

Using app notation in a proc block, that is to say,
out1 <- foldStream (flip (:)) [] . something -< ()
out2 <- foldStream (flip (:)) [] . someOtherThing out1 -<< ()
varM trace -< show out2

Where someOtherThing :: a -> VarT m () b, makes out2's state reset upon the next step of the automaton. Meaning, out2 could be updated to contain a single element [ () ], and the trace would show that, but on the next runVarT, it will reset to []. Rewriting this to avoid app notation by passing in a tuple ((), out1) as input fixes this state persistence issue.
I believe the concensus is that it is impossible to implement ArrowApply for an automaton-esque structure like VarT. I've seen some solutions that rely on IO/STRefs out in the wild, but this is against the purity of varying. I'm not sure if something hacky with an internal State monad could do the equivalent trick, but otherwise, it may be best to remove this instance to prevent confusion.

Good find! I'll have to investigate this. In the meanwhile I would also accept a PR :)

(for me) https://stackoverflow.com/questions/27603108/what-is-wrong-with-this-instance-arrowapply-automaton

After thinking about it for a while, I believe it isn't possible to write ArrowApply for monadic automatons such as VarT.
First of all, any Arrow that implements ArrowApply can technically be re-written as a Monad. Now, I have yet to see a pure monadic FRP library. All monadic FRP thus far relies on IO/ST; prominent names would obviously include reflex and frpnow. I'd like to think of 'monadic FRP' in this case as more of a reactive programming framework than "FRP", but I digress.
It would be highly problematic if monadic automatons such as VarT can be expressed as a Monad, which would render all of the research & development on convoluted arrowized FRP design everyone's been working on for the past decade and a half, nil. I don't think we would find ourselves using Arrows these days if pure FRP could be succinctly expressed via Monads.

The area of concern is the second tuple element of the output parameter. In particular:
A $ \(innerAutomaton, input) -> runAutomaton innerAutomaton input >>= pure . (, ???)

What causes most instances to break is trying to find an arrow that can meet the type of ???; often times people will give up and 'go with the obvious' which would be to pass in app, but then we aren't using the second tuple element for what it is intended for: persisting state. Passing in app as is - which is how VarT does it - does not define an arrow returning the next step result as it should, even though it typechecks; and if we shouldn't be using app here, how else would we define an arrow that will both typecheck and persist state?

Yes, there is no way to define Monad for VarT as it's not sequenceable. Hence the entire Spline module. I'll remove the ArrowApply instance - I don't remember writing it and it's possible I cargo culted it from another FRP lib. Thank you so much for figuring this all out!

Uploaded to hackage.
:bowing_man:


Implement pareto logpdf and sampler

This PR adds pareto distribution to scipy.stats and random modules.
The design choice for random sampler follows a suggestion in #269 to make the API consistence: jax.random.sampler(key, distribution parameters, shape, dtype).
The parameter name b follows scipy's implementation.

You're really building out our probability stuff quite a lot!


Thread Safe Connection Pool

What?
We encountered concurrent map writes runtime errors on the pool package. This solution should address this error and provide with a safe way to access these data structures. Since they are not exported and the sync.Map works with interface{}, a type assertion is needed, making it hard to refactor this code since generics are non-existant in go (at the moment of this writing), and reflection will definitely under perform on this package, which is sort of a bottleneck.
closes #908
ping @butonic @individual-it

while a lock might be faster this PR at least makes the implementation concurrency safe. The locks require more management and the whole pool is in the todo package anyway. Good enough for now.


Remove the "Project Details" prompt when the concore editor is opened for the first time

See the .
This prompt opens up every time we open the concore editor for the first time. This is unnecessary and unintuitive since we often just want to open the concore editor with an empty workspace and load a folder of studies from the local file system using the "Upload Directory" option.
The proposed solution is to remove this prompt and, by default, open a study tab with no name (perhaps a default name such as "untitled," following the approach taken by applications such as Microsoft Word or Paint).

Thanks a lot, @Rahuljagwani. This is fixed now in main with your contribution.


WIP: add experimental sparse support

This PR implements the low-level jaxpr objects for a few sparse formats, as well as primitives to interact with and operate on these objects.
These should be thought of as akin to DeviceArray and the primitives defined in jax.lax. In analogy to how dense lax primitives do not support dtype or shape polymorphism, these sparse lax primitives avoid polymorphism with respect to sparsity structure of the inputs.
For dense arrays, this greater flexibility is implemented in higher-level wrappers, such as jax.numpy. In the same way, we plan to make more flexible sparse operations available at a higher level (details yet to be determined: perhaps an interface similar to that provided by scipy.sparse or pydata/sparse, or perhaps within jax.numpy itself).
This PR should be thought of as a reference implementation of the classes of sparse operations we would like JAX to support. This implementation, based mostly on dense scatter/gathers and associated operations, is not particularly performant compared to purpose-written sparse kernels. But the advantage building these operations on top of JAX primitives is that we can add translation rules to target more performant device-dependent backends.

@jakevdp I realize this is WIP, but as it's intended to eventually be a reference implementation I thought I'd have a play with it. With the latest stable version of jax it seems there's a missing unflatten somewhere in the jit compiled methods? Demonstrating example:
def matmul(a, x):
    return a @ x

a = COO(
    jnp.array([[0, 1], [0, 1]], dtype=jnp.int32), jnp.array([4, 3], dtype=jnp.float32)
)
x = jnp.arange(2, dtype=jnp.float32)
print(matmul(a, x))  # works
print(jax.jit(matmul)(a, x))  # TypeError

Stack trace:
Traceback (most recent call last):
  File "sparse.py", line 16, in <module>
    print(jax.jit(matvec)(a, x))  # TypeError
jax._src.traceback_util.FilteredStackTrace: TypeError: _coo_matvec_impl() takes 2 positional arguments but 3 were given

The stack trace above excludes JAX-internal frames.
The following is the original exception that occurred, unmodified.

--------------------

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "sparse.py", line 16, in <module>
    print(jax.jit(matvec)(a, x))  # TypeError
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/_src/traceback_util.py", line 139, in reraise_with_filtered_traceback
    return fun(*args, **kwargs)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/api.py", line 398, in f_jitted
    return cpp_jitted_f(context, *args, **kwargs)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/api.py", line 295, in cache_miss
    donated_invars=donated_invars)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/core.py", line 1275, in bind
    return call_bind(self, fun, *args, **params)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/core.py", line 1266, in call_bind
    outs = primitive.process(top_trace, fun, tracers, params)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/core.py", line 1278, in process
    return trace.process_call(self, fun, tracers, params)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/core.py", line 631, in process_call
    return primitive.impl(f, *tracers, **params)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/interpreters/xla.py", line 581, in _xla_call_impl
    *unsafe_map(arg_spec, args))
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/linear_util.py", line 260, in memoized_fun
    ans = call(fun, *args)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/interpreters/xla.py", line 710, in _xla_callable
    extend_name_stack(wrap_name(name, 'jit')), *xla_args)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/interpreters/xla.py", line 445, in jaxpr_subcomp
    ans = translations[eqn.primitive](c, *in_nodes, **eqn.params)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/interpreters/xla.py", line 945, in f
    return f_with_avals(c, avals, xla_args, params)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/interpreters/xla.py", line 957, in f_with_avals
    jaxpr, _, consts = pe.trace_to_jaxpr_dynamic(wrapped_fun, avals)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/interpreters/partial_eval.py", line 1186, in trace_to_jaxpr_dynamic
    jaxpr, out_avals, consts = trace_to_subjaxpr_dynamic(fun, main, in_avals)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/interpreters/partial_eval.py", line 1196, in trace_to_subjaxpr_dynamic
    ans = fun.call_wrapped(*in_tracers)
  File "/home/jackd/anaconda3/envs/tf-nightly/lib/python3.7/site-packages/jax/linear_util.py", line 166, in call_wrapped
    ans = self.f(*args, **dict(self.params, **kwargs))
TypeError: _coo_matvec_impl() takes 2 positional arguments but 3 were given

Closing in favor of #6429 and #6466 for now... we may re-visit the multi-buffer model in the future.


[BUG] Tag  missing required attribute name.

Information

Apktool Version (apktool -version) - Apktool 2.6.0
Operating System (Mac, Linux, Windows) - Windows 10
APK From? (Playstore, ROM, Other) - Playstore

Stacktrace/Logcat
PS R:\> java -jar apktool_2.6.0.jar d "R:\Soul Land Reloaded_1.1.6_apkcombo.com.apk"
I: Using Apktool 2.6.0 on Soul Land Reloaded_1.1.6_apkcombo.com.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\x\AppData\Local\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Baksmaling classes.dex...
I: Baksmaling classes2.dex...
I: Baksmaling classes3.dex...
I: Baksmaling classes4.dex...
I: Baksmaling assets/audience_network.dex...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
PS R:\> java -jar apktool_2.6.0.jar b "R:\Soul Land Reloaded_1.1.6_apkcombo.com"
I: Using Apktool 2.6.0
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether sources has changed...
I: Smaling smali_assets folder into assets.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes2 folder into classes2.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes3 folder into classes3.dex...
I: Checking whether sources has changed...
I: Smaling smali_classes4 folder into classes4.dex...
I: Checking whether resources has changed...
I: Building resources...
W: R:\Soul Land Reloaded_1.1.6_apkcombo.com\AndroidManifest.xml:11: Tag <provider> missing required attribute name.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\x\AppData\Local\Temp\brut_util_Jar_432334194602934730918786219380466270.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 30, --version-code, 16, --version-name, 1.1.6, --no-version-vectors, -F, C:\Users\x\AppData\Local\Temp\APKTOOL1205792922906901530.tmp, -e, C:\Users\x\AppData\Local\Temp\APKTOOL3303192295385742710.tmp, -0, arsc, -I, C:\Users\x\AppData\Local\apktool\framework\1.apk, -S, R:\Soul Land Reloaded_1.1.6_apkcombo.com\res, -M, R:\Soul Land Reloaded_1.1.6_apkcombo.com\AndroidManifest.xml]
PS R:\>

Steps to Reproduce

java -jar apktool_2.6.0.jar d
java -jar apktool_2.6.0.jar b

Frameworks
N/A
APK
https://apkcombo.com/apk-downloader/?package=com.soullandrl.gp&device=default&arches=armeabi-v7a&sdkInt=default&format=apk&dpi=480&lang=en
Questions to ask before submission

Have you tried apktool d, apktool b without changing anything? Yes
Are you using the latest apktool version? Yes

not 100% sure it is a bug with APKTool or the way aapt decodes the binary AndroidManifest.xml.
I've got few APKs that were built for SDK30,
and have this issue as well.
Both aapt d xmltree com.package.apk AndroidManifest.xml,
and AXMLPrinter2.jar from https://code.google.com/archive/p/android4me/downloads have the same result, with provider floats outside of application..  :/
There might be a need to employ aapt2 in both decoding and building process now,
maybe the XML-binary format has changed in some way.

you can still try to build the APK using b and --use-aapt2.
it most likely will finish without showing you any errors, but you might not get a working APK.
I usually keep using aapt(1), manually fixing some of the XML errors (duplications, invalid values, and such),
and when it reaches that provider error you've got I switch to building with --use-aapt2.

I know there is a apkanalyzer that is part of the Android building tools you get when you install Android Studio,
but I haven't figured out how to make it portable to suggest including it in APKTool, it got a lot of dependencies!

I know there is a (closed) issues for asking to migrate to aapt2
https://github.com/iBotPeaches/Apktool/issues/1689
but there isn't seems to be any progress in there,
so if you still don't get a working APK I'm afraid you have little to do,
other than look in apkmirror or similar sites for an older build (preferably one that targets a SDK lower than 29),
those seems to still work with APKTool.

Again, just removing:
    <queries>
        <provider android:authorities="com.facebook.katana.provider.PlatformProvider"/>
    </queries>

lets you compile. No issue with the app so far
But apparently, the dev fixed it so it become
    <queries>
        <package android:name="com.facebook.katana"/>
    </queries>

and it's now compileable without any fix.
I think i will close this issue

Manually add android:name="xxx" in  will bypass this error, everything still works.


Updated docs for DS server capability.

Updated how-to docs for Delivery Service Required Capability and linked the same (Required Capabilities) in DS form.
Related: https://github.com/apache/trafficcontrol/pull/7224

Which Traffic Control components are affected by this PR?

Documentation
Traffic Portal

What is the best way to verify this PR?

Click on links on DS form and ensure it routes to right how-to documentation page and the diagram is also updated.

If this is a bugfix, which Traffic Control versions contained the bug?

PR submission checklist

[ ] This PR has tests
[x] This PR has documentation
[ ] This PR has a CHANGELOG.md entry
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

I did not test this but all the changes i requested were made


getToken

Hello,
How do i access to getToken?
https://firebase.google.com/docs/auth/server/verify-id-tokens
firebase.auth().currentUser.getToken(/* forceRefresh */ true).then(function(idToken) {
  // Send token to your backend via HTTPS
  // ...
}).catch(function(error) {
  // Handle error
});

This doesn't use the issue template, and is not a potential bug or a feature request, which means it would be best suited for Stack Overflow or one of the other support channels mentioned in the template.


'Sequencer_section_add_key' parameter added FRotator found error

when i try to Importing FBX Camerea into CineCameraActor in Sequencer, I place each curve transform in the sequencer timeline,
when Sequencer_section_add_key parameter add FRotator all key will be 0,
transform.sequencer_section_add_key(key, FTransform(FVector(v[0],v[1],v[2]), FRotator(v[3],v[4],v[5])))

when remove FRotator transform will be ok
transform.sequencer_section_add_key(key, FTransform(FVector(v[0],v[1],v[2]))))

Is i doing it wrong? or bug？

What is the output of the following commands ?
transform = FTransform(FVector(1, 2, 3), FRotator(90, -90, 10))
ue.log(transform)

output
<unreal_engine.FTransform {'translation': (1.0, 2.0, 3.0), 'rotation': (85.96376037597656, -90.0, 14.036263465881348), 'scale': (1.0, 1.0, 1.0)}>

sorry!  Maybe I made mistakes
When I add camara to sequence It will aotu create transform track,and then I created new transform track for this camera, so when i delete empty transform track, key looks ok!

I found new question,
No matter how large I set, or how small the value, can not let the rotation value becomes larger
in sqeuence ecitor i found camera track's transform value is ok as i see! but rotation value was not ok!
transform = FTransform(FVector(1, 2, 3), FRotator(90, -90, 10))
# rx = -0.511675
# ry = 0.454519
# rz = 0.541675

when  import camera fbx the translation value can be larger!


No ability to close frontend sidebars

There's currently no ability to close frontend sidebars. This goes for any frontend sidebar (add page, add block, etc.).
Steps to reproduce:

Open your page when logged in
Click on 'dashboard' or 'add page' icons in toolbar, or any other icon that opens sidebar (left or right)
Sidebar shows up, but there's no way to hide it and go back to page

Similar issue affects 'settings' sidebar (gear icon), that for most options covers entire page (composer, SEO, etc). We can't go back if we click it. Only option is to refresh page.
Can we do something with this? Maybe go close sidebar when clicking overlay that covers page? Or add 'x' icon in the corner of sidebar?

@ArniPL
After clicking a toolbar button to open a panel, clicking a second time will close the panel.
If clicking a toolbar button a second time does not close a panel, then this problem is specific to your install.
For further troubleshooting, it might be recommended to post on the forums instead of here.

My apologies. I tried now with the latest dev version and everything is working as expected. As you say, something must be wrong with my install then.
Again, sorry for any inconvenience.
PS On the side note, I once tried posting an issue on the concrete5.org bug tracker and to this day, it didn't receive any response. Community on GitHub is just much more active, but this time it was my mistake. I will make sure to be more careful in the future. :)


Removed stepless distributed K-Means PoC

-Experimental feature was removed

@amgrigoriev could you also remove this note from docs/source/dev_guide/algorithms/kmeans/k-means-clustering.rst?
.. note:: In DPC++, distributed processing for K-Means is only available as a `technical preview feature <https://github.com/oneapi-src/oneDAL#technical-preview-features>`_.

@amgrigoriev could you also remove this note from docs/source/dev_guide/algorithms/kmeans/k-means-clustering.rst?
.. note:: In DPC++, distributed processing for K-Means is only available as a `technical preview feature <https://github.com/oneapi-src/oneDAL#technical-preview-features>`_.

I think it's better to replace the note to clarify why it was stated that we have distributed and batch computation modes, but examples were provided only for batch for DPC++. Like following: "Note: For DPC++, only batch computation mode is available."

Not only batch, distributed steps are also available for GPU. My suggestion is to remove the notice about preview feature right now and decide on final notice for DPC++ later.

/intelci: run


DS-4018: delete workflow and workspaceitems as well

https://jira.duraspace.org/browse/DS-4018
In order to delete a community you have to delete the workflowitems and the workspaceitems as well. Took a code snipplet from DeleteWorkflowItemsAction.java

@gregorgabriel : thanks for the contribution!
As a note, this looks to be related to & complementary to fixes in #2200.  Any reviewers looking at this may wish to review #2200 first, as it makes updates to the DeleteWorkflowItemsAction that may also be useful in this PR.


Actors health checks should use the app health subsystem

In what area(s)?
/area runtime
Describe the proposal
Currently, we have 2 separate subsystems that perform health checks for the app:

When using actors, pkg/health is used to ping the app at the /healthz endpoint to determine if it's ready to run actors, using HTTP (the same package contains code for the health check server too, in addition to the health check client used by actors)
When app health checks are enabled, pkg/apphealth is used to probe the app and, when it's in an un-healthy state, stop delivering pubsub messages and incoming service invocation requests. This supports both HTTP and gRPC.

The two subsystems are performing very similar tasks, and it would make sense to merge them by making actors use pkg/apphealth too, which has the benefit of supporting gRPC too.

🤖


Update README.md

corrected Typo in docs

Provide a description of what has been changed
Checklist

[ ] Commits are signed with Developer Certificate of Origin (DCO)
[ ] A PR is opened to update the documentation on our docs repo

Fixes #

<3


Bug: Return 403 Instead of 500 for missing Branches in policy checks

The repo policy checks return a 500 internal server error if a branch is not found for a pull request. This can happen when a test is retriggered after a pr has been merged. The check should return a 403 error with an appropriate message instead of a 500.
For example, run https://github.com/canonical/flask-multipass-saml-groups/actions/runs/6666007601/job/18927232000
logs:
Nov 22 10:46:10 runner systemd[1]: Started Gunicorn instance to serve repo policy compliance endpoints.
Nov 22 10:46:10 runner gunicorn[6428]: [2023-11-22 10:46:10 +0000] [6428] [INFO] Starting gunicorn 20.1.0
Nov 22 10:46:10 runner gunicorn[6428]: [2023-11-22 10:46:10 +0000] [6428] [INFO] Listening at: http://<IP_ADDRESS>:8080 (6428)
Nov 22 10:46:10 runner gunicorn[6428]: [2023-11-22 10:46:10 +0000] [6428] [INFO] Using worker: sync
Nov 22 10:46:10 runner gunicorn[6448]: [2023-11-22 10:46:10 +0000] [6448] [INFO] Booting worker with pid: 6448
Nov 22 11:06:54 runner gunicorn[6448]: 2023-11-22 11:06:54,031 - start func 'pull_request'
Nov 22 11:06:54 runner gunicorn[6448]: 2023-11-22 11:06:54,031 - start func 'target_branch_protection'
Nov 22 11:06:54 runner gunicorn[6448]: 2023-11-22 11:06:54,033 - Starting new HTTPS connection (1): api.github.com:443
Nov 22 11:06:54 runner gunicorn[6448]: 2023-11-22 11:06:54,033 - Starting new HTTPS connection (1): api.github.com:443
Nov 22 11:06:54 runner gunicorn[6448]: 2023-11-22 11:06:54,700 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups HTTP/1.1" 200 None
Nov 22 11:06:54 runner gunicorn[6448]: 2023-11-22 11:06:54,700 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups HTTP/1.1" 200 None
Nov 22 11:06:55 runner gunicorn[6448]: 2023-11-22 11:06:55,237 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/main HTTP/1.1" 200 None
Nov 22 11:06:55 runner gunicorn[6448]: 2023-11-22 11:06:55,237 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/main HTTP/1.1" 200 None
Nov 22 11:06:55 runner gunicorn[6448]: 2023-11-22 11:06:55,239 - start func 'branch_protected'
Nov 22 11:06:55 runner gunicorn[6448]: 2023-11-22 11:06:55,239 - func 'branch_protected' finished, result: Report(result=<Result.PASS: 'pass'>, reason=None)
Nov 22 11:06:55 runner gunicorn[6448]: 2023-11-22 11:06:55,799 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups HTTP/1.1" 200 None
Nov 22 11:06:55 runner gunicorn[6448]: 2023-11-22 11:06:55,799 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups HTTP/1.1" 200 None
Nov 22 11:06:56 runner gunicorn[6448]: 2023-11-22 11:06:56,403 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/main/protection HTTP/1.1" 200 None
Nov 22 11:06:56 runner gunicorn[6448]: 2023-11-22 11:06:56,403 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/main/protection HTTP/1.1" 200 None
Nov 22 11:06:56 runner gunicorn[6448]: 2023-11-22 11:06:56,895 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/main/protection/required_pull_request_reviews HTTP/1.1" 200 None
Nov 22 11:06:56 runner gunicorn[6448]: 2023-11-22 11:06:56,895 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/main/protection/required_pull_request_reviews HTTP/1.1" 200 None
Nov 22 11:06:56 runner gunicorn[6448]: 2023-11-22 11:06:56,895 - start func 'signed_commits_required'
Nov 22 11:06:57 runner gunicorn[6448]: 2023-11-22 11:06:57,389 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/main/protection/required_signatures HTTP/1.1" 200 None
Nov 22 11:06:57 runner gunicorn[6448]: 2023-11-22 11:06:57,389 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/main/protection/required_signatures HTTP/1.1" 200 None
Nov 22 11:06:57 runner gunicorn[6448]: 2023-11-22 11:06:57,389 - func 'signed_commits_required' finished, result: Report(result=<Result.PASS: 'pass'>, reason=None)
Nov 22 11:06:57 runner gunicorn[6448]: 2023-11-22 11:06:57,389 - func 'target_branch_protection' finished, result: Report(result=<Result.PASS: 'pass'>, reason=None)
Nov 22 11:06:57 runner gunicorn[6448]: 2023-11-22 11:06:57,391 - start func 'source_branch_protection'
Nov 22 11:06:57 runner gunicorn[6448]: 2023-11-22 11:06:57,392 - Starting new HTTPS connection (1): api.github.com:443
Nov 22 11:06:57 runner gunicorn[6448]: 2023-11-22 11:06:57,392 - Starting new HTTPS connection (1): api.github.com:443
Nov 22 11:06:58 runner gunicorn[6448]: 2023-11-22 11:06:58,043 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups HTTP/1.1" 200 None
Nov 22 11:06:58 runner gunicorn[6448]: 2023-11-22 11:06:58,043 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups HTTP/1.1" 200 None
Nov 22 11:06:58 runner gunicorn[6448]: 2023-11-22 11:06:58,643 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/remove-warning HTTP/1.1" 404 None
Nov 22 11:06:58 runner gunicorn[6448]: 2023-11-22 11:06:58,643 - https://api.github.com:443 "GET /repos/canonical/flask-multipass-saml-groups/branches/remove-warning HTTP/1.1" 404 None
Nov 22 11:06:58 runner gunicorn[6448]: 2023-11-22 11:06:58,644 - Exception on /pull_request/check-run [POST]
Nov 22 11:06:58 runner gunicorn[6448]: Traceback (most recent call last):
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/repo_policy_compliance/github_client.py", line 72, in wrapper
Nov 22 11:06:58 runner gunicorn[6448]:     return func(github_client, *args, **kwargs)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/repo_policy_compliance/log.py", line 36, in wrapper
Nov 22 11:06:58 runner gunicorn[6448]:     result = func(*args, **kwargs)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/repo_policy_compliance/check.py", line 222, in source_branch_protection
Nov 22 11:06:58 runner gunicorn[6448]:     branch = get_branch(
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/repo_policy_compliance/github_client.py", line 131, in get_branch
Nov 22 11:06:58 runner gunicorn[6448]:     return repository.get_branch(branch_name)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/github/Repository.py", line 2003, in get_branch
Nov 22 11:06:58 runner gunicorn[6448]:     headers, data = self._requester.requestJsonAndCheck("GET", f"{self.url}/branches/{branch}")
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/github/Requester.py", line 494, in requestJsonAndCheck
Nov 22 11:06:58 runner gunicorn[6448]:     return self.__check(*self.requestJson(verb, url, parameters, headers, input, self.__customConnection(url)))
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/github/Requester.py", line 525, in __check
Nov 22 11:06:58 runner gunicorn[6448]:     raise self.createException(status, responseHeaders, data)
Nov 22 11:06:58 runner gunicorn[6448]: github.GithubException.GithubException: 404 {"message": "Branch not found", "documentation_url": "https://docs.github.com/rest/branches/branches#get-a-branch"}
Nov 22 11:06:58 runner gunicorn[6448]: The above exception was the direct cause of the following exception:
Nov 22 11:06:58 runner gunicorn[6448]: Traceback (most recent call last):
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1455, in wsgi_app
Nov 22 11:06:58 runner gunicorn[6448]:     response = self.full_dispatch_request()
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 869, in full_dispatch_request
Nov 22 11:06:58 runner gunicorn[6448]:     rv = self.handle_user_exception(e)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 867, in full_dispatch_request
Nov 22 11:06:58 runner gunicorn[6448]:     rv = self.dispatch_request()
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 852, in dispatch_request
Nov 22 11:06:58 runner gunicorn[6448]:     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/flask_httpauth.py", line 174, in decorated
Nov 22 11:06:58 runner gunicorn[6448]:     return self.ensure_sync(f)(*args, **kwargs)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/flask_pydantic/core.py", line 251, in wrapper
Nov 22 11:06:58 runner gunicorn[6448]:     res = func(*args, **kwargs)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/repo_policy_compliance/blueprint.py", line 193, in pull_request_check_run
Nov 22 11:06:58 runner gunicorn[6448]:     report := pull_request(input_=body, policy_document=policy_document)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/repo_policy_compliance/log.py", line 36, in wrapper
Nov 22 11:06:58 runner gunicorn[6448]:     result = func(*args, **kwargs)
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/repo_policy_compliance/__init__.py", line 91, in pull_request
Nov 22 11:06:58 runner gunicorn[6448]:     source_branch_report := check.source_branch_protection(
Nov 22 11:06:58 runner gunicorn[6448]:   File "/usr/local/lib/python3.10/dist-packages/repo_policy_compliance/github_client.py", line 84, in wrapper
Nov 22 11:06:58 runner gunicorn[6448]:     raise GithubClientError("The github client encountered an error.") from exc
Nov 22 11:06:58 runner gunicorn[6448]: repo_policy_compliance.exceptions.GithubClientError: The github client encountered an error.

I believe the issue can be closed, as the source branch protection that caused the problem is no longer present.

The problem may still occur (for target branch protection checks), see https://github.com/canonical/repo-policy-compliance/actions/runs/8922515544/job/24504801066.

This also seems to happen when branch protection is defined by a ruleset. https://github.com/canonical/repo-policy-compliance/blob/cb2f4b6207ce3b33a39ef0ca89720d8482ff9ea5/repo_policy_compliance/check.py#L173 throws an error that is not currently caught. This happened in https://github.com/canonical/cluster-api-k8s/actions/runs/9790801826/job/27033200676


Use native scalar fma instruction

Cranelift 0.87 now supports lowering fma as a libcall on x86.
With 0.88 enabling the native x86 instruction under the has_fma flag.
aarch64 and s390x already support this as a native instruction, so it's nice that we emit it for those.
We can't lower the SIMD version using the fma instruction since the lowering can fail if the x86 has_fma flag is not enabled. Cranelift doesn't yet know how to fallback for these cases.
We need to wait for the 0.87 release before merging this.

Updated to Cranelift 0.87.0 in https://github.com/bjorn3/rustc_codegen_cranelift/commit/b14c7337db5861288afc3b26ba006859ed052d39. Can you please rebase?


Error running example classifier assertion

Version 0.68.2
Take the example config generated by init and add a classifier type assertion to the test that uses a HuggingFace model. This classifier example is taken straight from the docs:
# Learn more about building a configuration: https://promptfoo.dev/docs/configuration/guide
description: "My eval"

prompts:
  - "Write a tweet about {{topic}}"
  - "Write a concise, funny tweet about {{topic}}"

providers:
  - "openai:gpt-3.5-turbo"
  - "openai:gpt-4o"

tests:
  - vars:
      topic: new york city
    assert:
      # For more information on model-graded evals, see https://promptfoo.dev/docs/configuration/expected-outputs/model-graded
      - type: llm-rubric
        value: ensure that the output is funny

      - type: classifier
        provider: huggingface:text-classification:facebook/roberta-hate-speech-dynabench-r4-target
        value: nothate
        threshold: 0.5

Running eval fails with error:
TypeError: Cannot assign to read only property 'options' of object '#<Object>' at runAssertion...

Thanks for flagging!  #1083 should fix this

@lacom Thanks for reporting this one too! A fix was also deployed in 0.68.3
Please let us know if you run into any other issues!

@mldangelo excellent, appreciate you fixing!


Build in Travis, Add Xenial (not as latest)

cc @fancyremarker — let me know if you want to make Xenial latest

Note: I also threw in an apt-install fix, to make it fail properly when apt-get install fails. I had already fixed in this in docker-debian a while ago, so nothing new here.

@krallin: Thanks! I don't have a strong preference on whether Trusty or Xenial should be latest.


Develop the testing strategy for new  NLP modules being added to the kit

Search before asking

[X] I searched the issues and found no similar issues.

Component
Transforms/Other
Feature
We are adding document quality and spoken language id NLP modules and new code modules for HAP, License filtering and PII to the kit and we need testing similar (or better!) to what was done for the initial set of code modules.
Are you willing to submit a PR?

[ ] Yes I am willing to submit a PR!

The two new NLP modules; lang_id and doc_quality are being merged. I have already tested lang_id as a unit test (3 test files on a local Mac).  Both of theses transforms are being tested heavily on a large cluster in the Pipelines testing by the inner repo team and we do not need a cluster testing strategy.  For local testing (and inclusion in a corresponding Notebook example), it would make sense to identify a small set of input files for which these transforms create meaningfully observable output.

@shahrokhDaijavad we have doc_quality and its tests.  are they not sufficient?  Not sure about other transforms.  If there is a problem with a specific transform's test data. maybe we need separate issues?

@daw3rd I think we should close this as an overarching issue. The language modules have been tested individually and we are creating Notebooks similar to what we have with Code to run them sequentially, which can also be used for testing.


ESM only module checking?

Hi there,
I am looking to create an ESM only module that would only work on Node@16+
I am hoping to disable the checks for node@10 and possibly node@16 (from CJS).
Is there a way I could do that today? I cannot seem to find a way (other than manually searching through the result json and calculating success based on specific resolutionKinds)

@andrewbranch, I think this is covered by profiles nowadays :)


Add darts exercise

The test generator failed to unwrap the test cases so I had to add them by hand.

There is a merge conflict

Conflict resolved


Support building on Arch-based systems

Status

[x] Ready

Summary
The current state of the project is that it can only be used on Debian-based distros. Adding an OS abstraction and proper support for distributions such as Arch Linux will greatly increase the reach of the project. On top of this, further distro's can be easily supported afterwards, possibly MacOS as well if needed.
Tasks

[x] Arch support
[x] Fedora support
[x] Per-Distro dependency abstraction
[ ] Update docs
[x] Initial approval

Early work in progress. I'm also a bit busy but I will try and get it complete asap if its something desired :)

Running makepkg as root is not allowed, and simply running the command under su fails as well. Defaulted to letting the user install.

This is some really clean code. I'll be adding some PRs to your fork (before merging) if you don't mind.

One thing I haven't quite figured out yet is per-system dependency management, as package names can vary per system.
For example:
vboot-kernel-utils ~ debian; vboot-utils ~ arch
One way to go about this would be to catch the error, and then check what dep and install, but this will be quite bloated in the long run...

What I would do is pass something like installDependencies vboot-kernel-utils, and installDependencies has an if statement that would work something like this (psuedocode):
PACKAGE=$* # Will be overriden if using a special package, I don't think we can set $*

if [[ $* == "vboot-kernel-utils" ]]; then
    case DISTRO in
      Debian)
        PACKAGE=vboot-kernel-utils
      Arch)
        PACKAGE=vboot-utils
fi

@MilkyDeveloper That's pretty smart, that's what I'll do

Found a better solution
for var in "$@"
do
    case $var in

    # vboot-utils
    vboot-kernel-utils)
        var=vboot-utils;

    esac
    yay -S --noconfirm var
done

Essentially instead of overriding $*, we would loop through all arguments and replace the ones that aren't correct.

Oh yeah, that looks better. Nice one.

Ok now the biggest problem is running yay as sudo will cause problems. The most notable of which now is happening when trying to install vboot-utils:
:: (0/1) Downloaded PKGBUILD: vboot-utils
 -> error fetching vboot-utils: fatal: could not create work tree dir 'vboot-utils': Permission denied
	 context: exit status 128

I'm not exactly sure how to go about doing this, I've tried adding a command in functions.sh unsucessfully. Will keep researching, there should be a way to drop root priveleges for this.

Are you running setup.sh as root? That could be the cause for it, try running it as a normal user.

Yes I am. Isn't the script required to run as root though?

Ok running some tests to make sure everything works :)

Alrighty everything is working as expected! @MilkyDeveloper you did note you were going to merge something into this branch as well, so I'll call my work done from here for now and let you take over :)

Im going to add fedora support if I have enough time today, will test in a vm.

Alright Fedora support is working, but just like arch vboot-kernel-utils and cgpt require some edits. Will finish tomorrow.

Nice, huuge thanks for this. Could I merge this PR? I'll be updating the docs.

@MilkyDeveloper feel free, just finished up :)

One thing to note though, the iso installation wasn't touched, and as such will only work on debian. An oversight on my part, but can be fairly easy fix if you need that.

Yes expand.sh, and alright good luck :+1:


Defer: Level of Activity

URL: http://localhost:8000/libraries/accumulators/
Per meeting on 12/2/2022, keep Level of Activity on the Library detail page set to 0. Boost will need to do their own processing to determine that value. At that time, we will need to determine how those values get added to the Library record.

Part of #19

We can reopen if needed, but for now I'm closing as "won't fix"


NetUtils.getLocalAddress() 在服务器中获取不到地址，求解

Which OS and how many net adapters

This is my linux system version. If I can make the system run, I have to modify the hosts file. Modify the IP corresponding to the hostname Bogon for the hosts file。

Please make a discussion in here: https://github.com/apache/incubator-dubbo/issues