IntelliJ Plugin not compatible with latest versions

Hey there!
We are very interested in this library!
Sadly, the IntelliJ and Android plugin seem to be not compatible with the latest IntelliJ versions anymore.
https://plugins.jetbrains.com/plugin/19846-klutter

We will try it with the Kradle CLI then. We also would not mind adding the library manually to our existing plugin but there seems to be no documentation on this.

Thank you for bringing this to my attention. I uploaded 2024.1.1. version of the plugin but for some reason it does not show up in the marketplace. I have contacted the Jetbrains team. I will make sure it will fixed, but it might take a few days.

So I'm not sure why the new version is not showing up but it is available in the Jetbrains Marketplace. You can use that link and click on the install button there. Let me know if that works for you for now.


TDengine分页查询时，报错Encountered unexpected token: "interval

当前使用版本(必填,否则不予处理)
v3.5.3
该问题是如何引起的？(确定最新版也有问题再提!!!)
c.b.m.e.p.i.PaginationInnerInterceptor   : optimize this sql to a count sql has exception, sql:"SELECT _wstart as ts ,avg(water_level) as water_level  ,avg(water_level_elevation) as water_level_elevation,avg(battery) as battery
from  db_cellar_platform.t_cellar_history_data
WHERE
1=1
		and ts  >=   ?

		and ts <=   ?

		and device_id in
		 (
		?
	 )

	 interval(1d) fill(prev)", exception:

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "interval" "INTERVAL"
at line 17, column 4.
Was expecting one of:
";"
"CONNECT"
"EMIT"
"GROUP"
"HAVING"
"START"
<EOF>

重现步骤(如果有就写完整)
报错信息
c.b.m.e.p.i.PaginationInnerInterceptor   : optimize this sql to a count sql has exception, sql:"SELECT _wstart as ts ,avg(water_level) as water_level  ,avg(water_level_elevation) as water_level_elevation,avg(battery) as battery
from  db_cellar_platform.t_cellar_history_data
WHERE
1=1
		and ts  >=   ?

		and ts <=   ?

		and device_id in
		 (
		?
	 )

	 interval(1d) fill(prev)", exception:

net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "interval" "INTERVAL"
at line 17, column 4.
Was expecting one of:
";"
"CONNECT"
"EMIT"
"GROUP"
"HAVING"
"START"
<EOF>

我也出现如上错误，请问解决了吗？
Caused by: net.sf.jsqlparser.parser.ParseException: Encountered unexpected token: "?" "?"
at line 2, column 36.
Was expecting one of:
";"
"ACTION"
"ACTIVE"
"ALGORITHM"
"ARCHIVE"
"ARRAY"
"AS"

https://baomidou.com/plugins/pagination/#page-类     分页 optimizeCountSql  属性设置 false  关闭 sql 优化试试


Add more CI test platforms

Ensure this action would pass on all available GitHub runners

Hey @nyurik,
Thank you for the patch and sorry for being unresponsive that long. The patch makes sense to me and I'd be happy to accept it. Let us first figure out how to proceed with broken tests now. See https://github.com/ikalnytskyi/action-setup-postgres/issues/38#issuecomment-2218839834 for details.

Hey @nyurik,
May I ask you to rebase your change? I believe the broken test is fixed in the master branch.


ZoomControl passes clicks through to map

If a marker is beneath the zoom control when I click on it, the marker gets clicked too. If I click on the zoom control quickly enough to be registered as a double click, it causes the map to zoom in on that point, which would be annoying for a user just trying to zoom out quickly.
Please make it so that clicks on the zoom control are not propagated

This is fixed with the renderChildrenInPortal prop's default value introduced in v4.5.0.


Relation bewteen kube-ovn CIDR and kubernetes CIDR

While testing kube-ovn, I couldn't figure out wether the podNetwork and serviceNetwork should be related to the default cidr or if one should drop the  following flags from the controller-manager :
--allocate-node-cidrs=true
--cluster-cidr=x.x.0.0/16
--node-cidr-mask-size=24

and let the kube-ovn controller do the job.

kube-ovn will take over pod ip allocation so these flag is not needed and you can use subnet to define which cidr you want to use at anytime. The service ip is still allocated by kube-controller-manager if you want to change the service network cidr you still need to set the controller-manager flag

Thanks for the reply. Do you think it's relevant to mention it in the documentation or not ?

Yeah, I will add a doc to it


Babel error when installing fresh repository with yarn

Describe the bug
The gulp dev command throws an error and will not run when you do a fresh install of the boilerplate and continue to install the node_modules with yarn install.
The error being thrown:
yarn run v1.13.0
$ gulp dev
[18:22:22] Failed to load external module @babel/register
[18:22:22] Failed to load external module babel-register
[18:22:22] Failed to load external module babel-core/register
[18:22:22] Failed to load external module babel/register
[18:22:22] Local gulp not found in ~/Downloads/foo
[18:22:22] Try running: npm install gulp
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I was able to fix the issue by installing the node_modules with npm install, but it should support Yarn in my opinion.
To Reproduce
Steps to reproduce the behaviour:

Do a fresh clone of the boilerplate
Run yarn install
Run yarn dev
Error throws. Now run npm install followed by yarn dev and it will work.

Expected behaviour
It should not throw an error if you installed the node_modules with Yarn.
Screenshots
Not applicable
Desktop (please complete the following information):

OS: macOS
10.14.2 (18C54)

Can't reproduce, seems to work fine.
Can you try to reproduce this @DaveBitter?

I also can't reproduce this. Yarn is working out of the box

I can't reproduce this issue anymore. I will close it 👍


Forward port 3 to 6, Jan 29 2023

➡ Forward port
Port ign-rendering3 to ign-rendering6
Branch comparison: https://github.com/gazebosim//compare/<TO_BRANCH>...<FROM_BRANCH>
Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

Did a first pass review. Started fixing warnings and tests in https://github.com/gazebosim/gz-rendering/pull/819


#481: Improve MGC existing clusters guide

Closes #481

Description
Current doc is a bit confusing as it mentions <snip> when joining a spoke cluster to the hub, but it doesn't mention how to get that value.
Add a command that gets that value and improve formating

/lgtm
/approve


Issue:

Issue you'd like to raise.
lass Node(BaseModel):
problem:str=Field(...,description="the problem related to fan")
causes:List[str]=Field(...,description="causes related to particular problem")
component:Dict[str,str]=Field(...,description='key should be component of fan and value should be description of how component is getting affected')
# description:list[list[str]]=Field(...,description="description for all the causes mentioned)

class Final(BaseModel):
final:List[Node]=Field(...,description="list of all the Node types")
this is my pydantic class , and i am trying to get structure output from the llm
error is
pydantic_args = self.pydantic_schema.parse_raw(_result)  # type: ignore
File "pydantic\main.py", line 549, in pydantic.main.BaseModel.parse_raw
File "pydantic\main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic\main.py", line 341, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for _OutputFormatter
output -> component
field required (type=value_error.missing)
Suggestion:
No response

@dosu-bot
prompt_node = ChatPromptTemplate.from_messages(
[
(
"system",
"""You are a world class algorithm for extracting information in structured formats.
1.extract the problem and its causes.
2.extract the component talked in causes.
""",
),
(
"human",
"Use the given format to extract information from the following input: {input}",
),
("human", "Tip: Make sure to answer in the correct format"),
]
)
this is my prompt , how would i make sure that the LLm always extract the component part


Helper and supervisor role for events

Currently there are owners and participants.

Participants are self-explanatory
Helpers support the event but have no core responsibility
Supervisors can edit participants and add other supervisors
Owners should be able to remove supervisors

Maybe a role system would make more sense at some point.

Completed with 94addf1925f3c8297a42117b3261aa0014aac430


[14.0.x] ISPN-14223 Creates Resp default cache on first access

https://issues.redhat.com/browse/ISPN-14223
upstream #10387

Closing this, since it will never land on 14.0.x


Markup: HTML Tags and Formatting

https://gatsby-starter-breeze.netlify.app/posts/2020-01-01-markup-html-tags-and-formatting/
A variety of common markup showing how the theme styles them.
Gitalk_/posts/2020-01-01-markup-html-tags-and-formatting/

A variety of common markup showing how the theme styles them.
Header one
Header two
Header three
Header four
Header five
Header six
Blockquotes
Single line blockquote:

Stay hungry. Stay foolish.

Multi line blockquote with a cite reference:

People think focus means saying yes to the thing you've got to focus on. But that's not what it means at all. It means saying no to the hundred other good ideas that there are. You have to pick carefully. I'm actually as proud of the things we haven't done as the things I have done. Innovation is saying no to 1,000 things.

Steve Jobs --- Apple Worldwide Developers' Conference, 1997
Tables

Employee
Salary

John Doe
$1
Because that's all Steve Jobs needed for a salary.

Jane Doe
$100K
For all the blogging she does.

Fred Bloggs
$100M
Pictures are worth a thousand words, right? So Jane × 1,000.

Jane Bloggs
$100B
With hair like that?! Enough said.

Unordered Lists (Nested)

List item one

List item one

List item one
List item two
List item three
List item four

List item two
List item three
List item four

List item two
List item three
List item four

Ordered List (Nested)

List item one

List item one

List item one
List item two
List item three
List item four

List item two
List item three
List item four

List item two
List item three
List item four

def hello_world(name):
    print("Hello,", name)

You should learn both python and javascript.


Property object of MemberExpression expected node to be of a type ["Expression"] but instead got null

I've got an app that compiles fine.
After I do yarn upgrade, it fails to compile with:
$ ember t
cleaning up...
Build failed.
The Broccoli Plugin: [BroccoliMergeTrees: Addon#treeFor (ember-moment - addon)] failed with:
TypeError: ember-moment/utils/get-owner.js: Property object of MemberExpression expected node to be of a type ["Expression"] but instead got null
    at Object.validate (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-types/lib/definitions/index.js:109:13)
    at Object.validate (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-types/lib/index.js:505:9)
    at NodePath._replaceWith (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-traverse/lib/path/replacement.js:176:7)
    at NodePath._remove (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-traverse/lib/path/removal.js:58:10)
    at NodePath.remove (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-traverse/lib/path/removal.js:30:8)
    at PluginPass.CallExpression (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-plugin-transform-es2015-modules-amd/lib/index.js:42:12)
    at NodePath._call (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-traverse/lib/path/context.js:76:18)
    at NodePath.call (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-traverse/lib/path/context.js:48:17)
    at NodePath.visit (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-traverse/lib/path/context.js:105:12)
    at TraversalContext.visitQueue (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/babel-traverse/lib/context.js:150:16)

The broccoli plugin was instantiated at:
    at BroccoliMergeTrees.Plugin (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/broccoli-plugin/index.js:7:31)
    at new BroccoliMergeTrees (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:16:10)
    at Function.BroccoliMergeTrees [as _upstreamMergeTrees] (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/ember-cli/node_modules/broccoli-merge-trees/index.js:10:53)
    at mergeTrees (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/ember-cli/lib/broccoli/merge-trees.js:85:33)
    at Class.treeFor (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/ember-cli/lib/models/addon.js:521:30)
    at project.addons.map.addon (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:557:22)
    at Array.map (native)
    at EmberApp.addonTreesFor (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:555:32)
    at EmberApp._addonTree (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:956:29)
    at EmberApp._processedExternalTree (/home/lolmaus/Code/bread-maker/bread-maker-ember-frontend/node_modules/ember-cli/lib/broccoli/ember-app.js:1009:25)

I doubt that ember-moment is to blame. Looks like the issue is related to Babel.
Please advise.

Here's the diff of yarn.lock before and after yarn upgrade: https://gist.github.com/lolmaus/942e8453707a635391f7b75386540df9

It seems that ember-moment is responsible after all: https://github.com/stefanpenner/ember-moment/issues/249

FWIW, the issue and stack trace here is caused by using the global require statement. As I mentioned in the issue in ember-moment that particular dynamic require isn't needed here any longer, but for others any others that land here with a similar stack trace that do need a dynamic require you need to import require from 'require'; to avoid the error.
The error is caused by the fact that babel@6 generates AMD by transpiling ES modules to CJS before transpiling to AMD format. Unfortunately, this means that any dynamic require statements are indistinguishable from ES imports. :sob:


Remove non-functional Live Caption checkbox from media controls

Before:

After:

Maybe we could also add enable_speech_service=false to gn flags. Disabling speech services also removes media controls.

I did consider disabling kLiveCaption by default, but it allows end-user to enable it and get this checkbox back.

Then in that case it might be better to do something like this:
diff
--- a/components/live_caption/caption_util.cc
+++ b/components/live_caption/caption_util.cc
@@ -128,7 +128,33 @@
 }

 bool IsLiveCaptionFeatureSupported() {
-  if (!base::FeatureList::IsEnabled(media::kLiveCaption))
-    return false;
-
-// Some Chrome OS devices do not support on-device speech.
-#if BUILDFLAG(IS_CHROMEOS_ASH)
-  if (!base::FeatureList::IsEnabled(ash::features::kOnDeviceSpeechRecognition))
-    return false;
-#elif BUILDFLAG(IS_CHROMEOS_LACROS)
-  if (!chromeos::BrowserParamsProxy::Get()->IsOndeviceSpeechSupported())
-    return false;
-#endif
-
-#if BUILDFLAG(IS_LINUX)
-  // Check if the CPU has the required instruction set to run the Speech
-  // On-Device API (SODA) library.
-  static bool has_sse41 = base::CPU().has_sse41();
-  if (!has_sse41)
-    return false;
-#endif
-
-#if BUILDFLAG(IS_WIN) && defined(ARCH_CPU_ARM64)
-  // The Speech On-Device API (SODA) component does not support Windows on
-  // arm64.
   return false;
-#else
-  return true;
-#endif
 }

 }  // namespace captions

The only reason I suggest that is because there are large changes for livecaptions that will be coming up soon (for example [4389333]), so the changes in this patch will have to be redone again once those land.

That's huge! Making maintenance a nightmare for us is the last thing I want, so disabling the flag should be good enough.  I'm currently rebuilding with the patch to disable livecaptions by default and if that is good enough (I remember disabling this flag via chrome://flags was sufficient to suppress this checkbox, so this mus work), I'll update the PR.

Yep, no checkbox if no one touches Live Caption flag.
I've just force-pushed the branch.


AutoScaling on ScheduledJobsCount has some undesired results

When runnable jobs are queuing up we want to respond automatically by increasing the number of agents so that we can clear the queue. We want to match supply with demand. When jobs have been queuing up for a long period of time, we want to be paged so we can resolve the blockage.
The best indicator we have for "runnable jobs queuing up" at this time is a queue's ScheduledJobsCount metric. We use this for autoscaling and paging. We have recently found a couple of ways that this is not ideal. Here's a brief explanation of those scenarios:
Limited jobs
When a job is scheduled on a queue, but unable to run because of a concurrency group, it is included in ScheduledJobsCount.
Since limited jobs are not runnable jobs, increasing the number of agents is the wrong response. This is what we do right now however, and we end up repeating the autoscaling of our agents until all limited jobs have been run.
Unsatisfiable jobs
When a job is scheduled on a queue, but includes additional targeting rules that are unsatisfiable, it is included in ScheduledJobsCount.
Here's an example that illustrates how this happened to us this week. Someone accidentally indented  part of the step too far, which added an extra key value pair under the agents targeting rules:
steps:
  - agents:
      queue: 'deploy'
      branch: master # oops! I indented this too far

Since these unsatisfiable jobs are not runnable jobs, increasing the number of agents is the wrong response. These unsatisfiable jobs are also included in the ScheduledJobsCount metric.
Is there a better way? Is there a better metric we could create for autoscaling?

Related https://github.com/buildkite/elastic-ci-stack-for-aws/issues/305

Perhaps we need a way to look at the maximum age of a queued job?

I think we need something like PendingJobsCount, which excludes jobs blocked on concurrency limits.

Perhaps the best fix is to simply exclude limited jobs from ScheduledJobsCount?

Perhaps the best fix is to simply exclude limited jobs from ScheduledJobsCount?

That would definitely be the ideal fix for those of us using ScheduledJobsCount for auto-scaling; no need to modify the metrics collector, or scaling rules.
But, are there people who use that metric for other purposes, who might be inconvenienced/upset/enraged?

Good point! Hrmm… the metrics collector was designed for exactly this use case though, so I think this makes a better default.

This was fixed with the move to the new agent metrics api in #40. Limited builds aren't counted as scheduled any more!


NetworkController: Remove setActive option from upsertNetworkConfiguration

There are too many methods that can be used to switch networks, and as a result we have a LOT of tests for NetworkController. It is not difficult for consumers to call setActiveNetwork after calling upsertNetworkConfiguration if they wish to switch to a newly added or updated network. Therefore to minimize the test suite, we should remove this option from upsertNetworkConfiguration.

This is obsolete as of https://github.com/MetaMask/core/pull/4286, which removed upsertNetworkConfiguration


Error on ESP32

I get this error on ESP32:
Traceback (most recent call last):
File "", line 4, in
ImportError: no module named 'ahtx0'
and SCL is connected to GPIO 14, and SDA to GPIO 12

same

I had the same issue.
To solve it, I had to manually add the ahtx0.py file inside the /lib folder.

Hello
In order to use it, you have to download the file ahtx0.py first, and then in your IDE (MUEditor e.g.) you must import the file on your device (in Mu you select Files icon on the menu and you drag and drop the file from the right panel to the left one).
Once it is transferred, you can use the example shown in the Readme file.
As to ESP32, change the 7th line:
i2c = I2C(scl=Pin(5), sda=Pin(4))
by :
i2c = I2C(scl=Pin(22), sda=Pin(21))
Good luck!

Hi all, please try installing version 0.1.2, which should fix the import issue.


I have to maintain chat in chat window whenever I switch my web pages. I am using webchat and I have places the webchat on layout.cshtml whenever I am switching to another page my webchat gets refreshed. Is there a way in which I can persist data in my chat window

Duplicate of https://github.com/Microsoft/BotBuilder/issues/3284, should be closed please


regularize pub year format

and add to guidelines
supports #1926 and #2383

@tedyoung would appreciate comments

1


What is EURUSD in readme?

What is EURUSD in readme?

I don't know

What is EURUSD in readme?

Simply a string "EURUSD"


Fix proxy plugin config validation

Proxy plugins are keyed only on the identifier, the type is specified within the proxy plugin configuration which maps to the full URI. The proxy plugin configuration is not passed to the plugin for configuration like other plugins.
Fixes a compatibility error with proxy plugins from v1 configs. Fixing the validation caused the proxy plugin ID to be wrong since "io.containerd.snapshotter.v1" or "io.containerd.content.v1" is always added based on the type.

Codecov Report

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

@@           Coverage Diff           @@
##           master    #3615   +/-   ##
=======================================
  Coverage   42.38%   42.38%
=======================================
  Files         126      126
  Lines       13901    13901
=======================================
  Hits         5892     5892
  Misses       7123     7123
  Partials      886      886

Flag
Coverage Δ

#linux
45.91% <ø> (ø)
:arrow_up:

#windows
37.2% <ø> (ø)
:arrow_up:

Continue to review full report at Codecov.

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

LGTM


First naiive attempt to combat wrapped long lines

See #79.

Coverage increased (+0.03%) to 94.636% when pulling 56041130e1afe1be994ca8cf8ae8526f037c2bbf on muellerj:master into 170475bee42d68053d8f89647f8be969afb78371 on piotrmurach:master.

The spec for the slider seems broken on my machine (on master as well as on my branch):
$ rspec

Randomized with seed 3194
..........................................F................................................................................#<Thread:0x000000060165f1b0@/cygdrive/c/Users/muellerj/projects/tty-prompt/lib/tty/prompt/timeout.rb:44 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
        4: from /cygdrive/c/Users/muellerj/projects/tty-prompt/lib/tty/prompt/timeout.rb:57:in `block in async_run'
        3: from /cygdrive/c/Users/muellerj/projects/tty-prompt/lib/tty/prompt/timeout.rb:57:in `synchronize'
        2: from /cygdrive/c/Users/muellerj/projects/tty-prompt/lib/tty/prompt/timeout.rb:63:in `block (2 levels) in async_run'
        1: from /cygdrive/c/Users/muellerj/projects/tty-prompt/lib/tty/prompt/timeout.rb:10:in `block in <class:Timeout>'
/cygdrive/c/Users/muellerj/projects/tty-prompt/lib/tty/prompt/timeout.rb:10:in `raise': timeout expired (TTY::Prompt::Timeout::Error)
..................................................................................................................................................

Failures:

  1) TTY::Prompt#slider specifies range through DSL
     Failure/Error: @format.gsub(':slider', slider) % [value]

     ArgumentError:
       incomplete format specifier; use %% (double %) instead
     # ./lib/tty/prompt/slider.rb:187:in `%'
     # ./lib/tty/prompt/slider.rb:187:in `render_slider'
     # ./lib/tty/prompt/slider.rb:168:in `render_question'
     # ./lib/tty/prompt/slider.rb:129:in `render'
     # ./lib/tty/prompt/slider.rb:102:in `call'
     # ./lib/tty/prompt.rb:381:in `slider'
     # ./spec/unit/slider_spec.rb:42:in `block (2 levels) in <top (required)>'

Fixed by @piotrmurach in<PHONE_NUMBER>10db984b4891e50f0f42e7e842a91b.


add test to irbuilder for gpu execution

add test to ir_builder for gpu execution, solved issue #1180 .

Thanks, this is merged


Update New-AutoSensitivityLabelRule.md

Appended the additional property "minConfidence" to the example for the -ContentContainsSensitiveInformation parameter. Without specifying this the default value is "-1" when the command is executed.

Docs Build status updates of commit 1e19531:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-AutoSensitivityLabelRule.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel

Docs Build status updates of commit 8e0b2fb:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

exchange/exchange-ps/exchange/New-AutoSensitivityLabelRule.md
:white_check_mark:Succeeded
View (exchange-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Add option to report overlap in join

Beautiful! What do you think of letting users name the overlap-column themselves? In that case, overlap should optionally take a string. But if it is a bool (True), let's call it Overlap.
Also, pleasing Codacy is not required :)

I don't think that it's something users would really need since Overlap is a pretty unambiguous descriptor in most situations (at least the ones I can think of).
Maybe there should be a general method for renaming columns like .rename() in pandas.

I agree with you. The method can be extended later in that case and be 100% backward-compatible. Will merge when tests pass :)

I will look at this later - travis-ci is acting weirdly. From experience, it is enough to wait a day and the issue will have resolved itself :)


Stable version?

What is the most stable version in IOS / Swift 4?
I'm trying to use 2.8.11, but am not able to chat normally.
I see this in de debugger when using the one2one chat
"The data could not be read because it doesn't have the right structure"
Sending an image is ending up in a crash.

Hi asharijuang,
It seems that the deployment could be the issues. The exact same code is working now correctly.
Also no crashes can be reproduced. If you like I can sent a video of the software of yesterday

thanks for you reports. for next version we will improve our sdk client, and prevent crash when something happen in our server.
yes please, if you have an video. my email<EMAIL_ADDRESS>or<EMAIL_ADDRESS>


New Budget Allocator function produces output in old format

Project Robyn
Describe issue
Hi there,
When running the new allocator function am receiving the output in the old format.
My model is not using TS validation might that be the reason?
NRMSE of the model converged but not DECOMP.RSSD
I also created the model under Robynv3.9 last week and reiinitiated the model using the Robyn_recreate() function after installing the update.
Provide reproducible example
AllocatorCollect2 <- robyn_allocator(
  InputCollect = InputCollectX,
  OutputCollect = OutputCollectX,
  select_model = select_model,
  date_range = "last_30", # When NULL, will set last month (30 days, 4 weeks, or 1 month)
  total_budget = 500000, # When NULL, use total spend of date_range
  scenario = "max_historical_response",
  channel_constr_low = 0.1,
  channel_constr_up = 2,
  channel_constr_multiplier = 5,
  export = TRUE
  #expected_spend = 850000, # Total spend to be simulated
  #expected_spend_days = 31 # Duration of expected_spend in days
)

Any help would be much appreciated!
Environment & Robyn version
Robyn.v10

Hi! Please refresh your session (close and open without saving cache) and run everything again. The robyn_allocator() will work as intended once you do (no way it can return the previous outputs).

the good old refresh worked :)


Migrate to TypeScript

Created new folder for the server.
Now written in typescript.
To run server run "npm run dev"
To build js files run "npm run build"
To only run js files without building again run "npm run start"

Hot


Break up the repository into multiple traits

A lot of the logic in the repositories looks replicated throughout all of the repositories. This may be better to break this up into reusable traits.
I.e.:
OrderService extends ... with Creatable[t] with Deleteable[T] with Updateable[T]

This makes sense to me just for standardizing across multiple types of data.
Is there a function we would write that would only rely on an instance of Creatable or Deletable?
Here's one I came up with that saves an object, does some operation, and then cleans it up.
trait Creatable[F[_], T]{
  def create(t: T) : F[Unit]
}

trait Deletable[F[_], T] {
  def delete(t : T) : F[Unit]
}

object example{
  def withAThing[M[_], T, R](f : T => M[R])(implicit
    G : Gen[T],   // scalacheck
    C : Creatable[M, T],
    D : Deletable[M, T],
    E : MonadError[M, Throwable]
  ) : M[R] = for {
    example <- G.sample.liftTo[M](new AssertionError("Example not generated"))
    _ <- C.create(example)
    result <- f(example)
    _ <- D.delete(example)
  } yield result
}

There's also the issue about how to generalize/standardize across just data generated by the database. I've played with this a bit in another project:
CRUDAlgebra/CRUDService:
https://github.com/clovellytech/h4sm/tree/master/db/src/main/scala/h4sm/db
Example typeclass extending CRUDAlgebra:
https://github.com/clovellytech/h4sm/blob/master/auth/src/main/scala/h4sm/auth/domain/users/UserRepositoryAlgebra.scala
Example instance of the typeclass:
https://github.com/clovellytech/h4sm/blob/master/auth/src/main/scala/h4sm/auth/infrastructure/repository/persistent/UserRepositoryInterpreter.scala

That's an interesting idea. However, the only thing I have a question about is how would you make those attributes stackable? I.e. if you had a caching or notification layer on each of those operations?

Hm perhaps by an interesting choice of F it could be done? I think working an example of such a thing would be good.

It is an interesting idea.  I like the idea of a CRUD algebra, because you assume you have to create/update/delete/getById on everything.

That's an interesting idea. However, the only thing I have a question about is how would you make those attributes stackable? I.e. if you had a caching or notifcation layer on each of those operations?


Update MouseMotion and CursorMoved docs

Objective

Fixes #5083

Solution
I looked at the implementation of those events. I noticed that they both are adaptations of winit's DeviceEvent/WindowEvent enum variants. Therefore I based the description of the items on the documentation provided by the upstream crate. I also added a link to CursorMoved, just like MouseMotion already has.
Observations

Looking at the implementation of MouseMotion, I noticed the DeviceId field of the winit event is discarded by bevy_input. This means that in the case a machine has multiple pointing devices, it is impossible to distinguish to which one the event is referring to. EDIT: just tested, MouseMotion events are emitted for movement of both mice.

I only added a link to MouseMotion because a MouseMotion → CursorMoved link would violate the dependency principle (bevy_input does not depend on bevy_winit, it's the other way around).

bors r+


Create tokens for components sizing

Just like we created tokens for spacing, should we do the same thing for sizing? Something to discuss before we action this task.

Yes, we should totally do that. As of now I feel like the sizing tokens will be the same. Where will you include those tokens? I generally do it on icons only or do you asign them to height and widt for components? @justintemps

@inesdgomes done. You can check it out here https://www.figma.com/file/qr8jQnxqJkRJFQnVC5PmrB/ILO-Foundations?type=design&node-id=1648%3A571&mode=design&t=8VBKSM4tjwjO5DX7-1

Hey @inesdgomes and @beatrizmartinmartins, we have the tokens listed in this file
This includes some legacy padding-* tokens which are being used by the new website so we didn't want to change or remove them.

@beatrizmartinmartins Sorry for going back to this but if the sizes are exactly the same, wouldn't it make more sense to have one unique scale called 'Spacing and sizing'? I'm still forced to compare both to check if there are any differences
https://www.figma.com/design/qr8jQnxqJkRJFQnVC5PmrB/ILO-Foundations?node-id=1648-571&t=rq4iqSIaMCcywCxi-0

Having the same group for spacing and sizing can be misleading. Imagine we want to change ONLY the sizes of the icons from 20 to 18, if the spacing and sizing group is the same, everything that has that 20 will change to 18, and we don't want to apply that change on the spacings, only on sizings. It's better to keep them separate to better differenciate between one another and have the possibility to change tokens in the future for certain things that don't necessarily impact other places. @inesdgomes hope this makes sense

Agreed, thanks @beatrizmartinmartins.
@justintemps To be discussed if/when we want to implement the tokens for sizing in the DS.


Add tests that run example python scripts

Summary
This commit adds a new test module that will execute all the example
scripts to verify they still work as we make changes. However, a number
of example scripts rely on using the ibmq service which is an optional
component now. To make filtering the example scripts between those which
don't need ibmq from those that need ibmq this also moves all the ibmq
examples into a self contained subdir in examples/python. Those examples
which require ibmq are run conditionally as online_tests. For example
scripts which were running on both local simulators and ibmq these are
split into 2 files one for just simulation and the other in ibmq that
uses the ibmq backends.
Details and comments
Fixes #970
Fixes #2549

I would say that we should not introduce a dependency on ddt here.
For one, the ddt docs say that the package is only tested for Python 2.7 and 3.3.
But more importantly, I would say that if the standard library provides a functionality, it is strongly preferred over 3rd party libraries. Since Python 3.4, unittest.subTest was introduced, which seems to achieve most of what is intended here (i.e. test each example).

I would say that we should not introduce a dependency on ddt here.
For one, the ddt docs say that the package is only tested for Python 2.7 and 3.3.
But more importantly, I would say that if the standard library provides a functionality, it is strongly preferred over 3rd party libraries. Since Python 3.4, unittest.subTest was introduced, which seems to achieve most of what is intended here (i.e. test each example).

The docs are out of date they run on 2.7, 3.5, and 3.4 for ci: https://travis-ci.org/datadriventests/ddt/builds/497695081?utm_source=github_status&utm_medium=notification but it's not like the library is particularly complex and it doesn't have a lot of api churn that will likely cause an issues on newer versions of unittest in stdlib: https://github.com/datadriventests/ddt/blob/master/ddt.py
For this use case subtest would work easily enough, where ddt is more useful is in examples like what @1ucian0 is doing in #2563

So if subTest does the job here, can we use it? Then I'd block #2563 and #2519 until reaching a consensus on https://github.com/Qiskit/qiskit-terra/issues/2589.


[Refactor]Refactor mutable index implementation

What type of PR is this：

[ ] bug
[ ] feature
[ ] enhancement
[x] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

StarRocks now supports persistence of PrimaryIndex --PersistentIndex. But the logic of L0 is too coupled with PersistentIndex in the implementation.


Enforce that ProtocolId and the notifications protocol names should be UTF-8

The ProtocolId (ksmcc, dot, etc.) is, in practice, always a string. But at some point within the code we convert it into bytes, then employ shenanigans to turn it back into a string.
We should entirely remove maybe_utf8_bytes_to_string and enforce that ProtocolId is a string.

I've re-purposes this issue to cover both ProtocolId and the notification protocols names.


All docker images are pulling "latest"

In the helm charts all the FN images are pulled as "latest". This is not safe, this will indiscriminately pull in changes from fnproject/fn even if they haven't been tested yet in a Helm deployment. We should change to a model where fn-helm pulls in images by fixed version tags and we update the helm changes only after we've validated that the deployments and services work with new changes from upstream.

It’s in configuration values. latest tag is a default value, so you should be able to change that.

See https://github.com/fnproject/fn-helm/blob/master/fn/values.yaml


Try to run tests with pytorch 2.3

Test for https://github.com/keras-team/keras/issues/19765

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 56.88%. Comparing base (9cf4e94) to head (12bd4c5).

Additional details and impacted files
@@             Coverage Diff             @@
##           master   #19859       +/-   ##
===========================================
- Coverage   78.95%   56.88%   -22.07%
===========================================
  Files         498      498
  Lines       46129    46129
  Branches     8487     8487
===========================================
- Hits        36419    26242    -10177
- Misses       8001    18280    +10279
+ Partials     1709     1607      -102

Flag
Coverage Δ

keras
56.88% <ø> (-21.93%)
:arrow_down:

keras-jax
?

keras-numpy
56.88% <ø> (ø)

keras-tensorflow
?

keras-torch
?

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

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

Sorry, there seemed to be one more place where things are pinned down.

ps. it seemed from what I can test that the build for the first commit I made was:

Built with pytorch 2.2.2
Tested with pytorch 2.3.1 (the tests passed)

wow this is unexpected, need to see what is different about the test environment....

Its installed from conda-forge, but the test fails seems to pass :/
$ pip list | grep -E "(torch|keras)"
keras                     3.3.3                     /home/mark/git/keras
tf_keras                  2.16.0
torch                     2.3.0.post301

keras/src/callbacks/swap_ema_weights_test.py::SwapEMAWeightsTest::test_swap_ema_weights PASSED        [100%]

Its installed from conda-forge, but the test fails seems to pass :/

You mean installing with pip fails but installing with conda works?
I can reproduce the issue on MacOS (with the pip package) btw.

You mean installing with pip fails but installing with conda works?

I'm not too sure, i'll have to try to recreate my environment from scratch to confirm.

I just can't recreate on linux....
$ pytest keras/src/callbacks/swap_ema_weights_test.py::SwapEMAWeightsTest::test_swap_ema_weights
===================================== test session starts =====================================
platform linux -- Python 3.10.14, pytest-8.2.2, pluggy-1.5.0 -- /home/mark/miniforge3/envs/keras/bin/python3.10
cachedir: .pytest_cache
rootdir: /home/mark/git/keras
configfile: pyproject.toml
plugins: cov-5.0.0
collected 1 item

keras/src/callbacks/swap_ema_weights_test.py::SwapEMAWeightsTest::test_swap_ema_weights PASSED [100%]

====================================== 1 passed in 1.43s ======================================

I tried both with my nvidia drivers installed (550) and without.
installation steps
conda create --name keras python=3.10
pip install -r requirements-common.txt -r requirements-torch-cuda.txt

pip list
$ pip list
Package                      Version      Editable project location
---------------------------- ------------ -------------------------
absl-py                      2.1.0
astunparse                   1.6.3
beautifulsoup4               4.12.3
black                        24.4.2
build                        1.2.1
certifi                      2024.6.2
charset-normalizer           3.3.2
click                        8.1.7
coverage                     7.5.3
dm-tree                      0.1.8
exceptiongroup               1.2.1
filelock                     3.15.1
flake8                       7.1.0
flatbuffers                  24.3.25
fsspec                       2024.6.0
gast                         0.5.4
google                       3.0.0
google-pasta                 0.2.0
grpcio                       1.64.1
gviz-api                     1.10.0
h5py                         3.11.0
idna                         3.7
iniconfig                    2.0.0
isort                        5.13.2
jax                          0.4.28
jaxlib                       0.4.28
Jinja2                       3.1.4
keras                        3.3.3        /home/mark/git/keras
libclang                     18.1.1
Markdown                     3.6
markdown-it-py               3.0.0
MarkupSafe                   2.1.5
mccabe                       0.7.0
mdurl                        0.1.2
ml-dtypes                    0.3.2
mpmath                       1.3.0
mypy-extensions              1.0.0
namex                        0.0.8
networkx                     3.3
numpy                        1.26.4
nvidia-cublas-cu12           <IP_ADDRESS>
nvidia-cuda-cupti-cu12       12.1.105
nvidia-cuda-nvrtc-cu12       12.1.105
nvidia-cuda-runtime-cu12     12.1.105
nvidia-cudnn-cu12            <IP_ADDRESS>
nvidia-cufft-cu12            <IP_ADDRESS>
nvidia-curand-cu12           <IP_ADDRESS>
nvidia-cusolver-cu12         <IP_ADDRESS>
nvidia-cusparse-cu12         <IP_ADDRESS>
nvidia-nccl-cu12             2.20.5
nvidia-nvjitlink-cu12        12.5.40
nvidia-nvtx-cu12             12.1.105
opt-einsum                   3.3.0
optree                       0.11.0
packaging                    24.1
pandas                       2.2.2
pathspec                     0.12.1
pillow                       10.3.0
pip                          24.0
platformdirs                 4.2.2
pluggy                       1.5.0
protobuf                     4.25.3
pycodestyle                  2.12.0
pyflakes                     3.2.0
Pygments                     2.18.0
pyproject_hooks              1.1.0
pytest                       8.2.2
pytest-cov                   5.0.0
python-dateutil              2.9.0.post0
pytz                         2024.1
requests                     2.32.3
rich                         13.7.1
scipy                        1.13.1
setuptools                   70.0.0
six                          1.16.0
soupsieve                    2.5
sympy                        1.12.1
tensorboard                  2.16.2
tensorboard-data-server      0.7.2
tensorboard_plugin_profile   2.15.1
tensorflow-cpu               2.16.1
tensorflow-io-gcs-filesystem 0.37.0
termcolor                    2.4.0
tomli                        2.0.1
torch                        2.3.1+cu121
torchvision                  0.18.1+cu121
triton                       2.3.1
typing_extensions            4.12.2
tzdata                       2024.1
urllib3                      2.2.1
Werkzeug                     3.0.3
wheel                        0.43.0
wrapt                        1.16.0

Not sure what's going on with conda, but my hunch is that the bug with torch 2.3 + compile + keras  is real, not a build issue.

Not sure what's going on with conda, but my hunch is that the bug with torch 2.3 + compile + keras is real, not a build issue.

the reproducer above is all installed with pip. I only installed python through conda.
How can i test that torch + compile is being invoked?

How can i test that torch + compile is being invoked?

The test does that, there's nothing in your environment that it depends on.
You can make sure that you're using the torch backend by setting the env variable KERAS_BACKEND="torch". You can double check by looking at keras.config.backend().

Great thank you. now
KERAS_BACKEND="torch" pytest keras/src/callbacks/swap_ema_weights_test.py::SwapEMAWeightsTest::test_swap_ema_weights

correctly recreates the issue for me!
Maybe an even simpler test that fails is :
$ pytest integration_tests/torch_workflow_test.py
===================================== test session starts =====================================
platform linux -- Python 3.10.14, pytest-8.2.2, pluggy-1.5.0 -- /home/mark/miniforge3/envs/keras/bin/python3.10
cachedir: .pytest_cache
rootdir: /home/mark/git/keras
configfile: pyproject.toml
plugins: cov-5.0.0
collected 1 item

integration_tests/torch_workflow_test.py::TorchWorkflowTest::test_keras_layer_in_nn_module FAILED [100%]

========================================== FAILURES ===========================================
_______________________ TorchWorkflowTest.test_keras_layer_in_nn_module _______________________

self = <torch_workflow_test.TorchWorkflowTest testMethod=test_keras_layer_in_nn_module>

    def test_keras_layer_in_nn_module(self):
        net = Net()

        # Test using Keras layer in a nn.Module.
         See more at https://github.com/torvalds/linux/blob/v6.0/Documentation/ABI/testing/sysfs-bus-pci#L344-L355
2024-06-16 20:17:51.680884: W tensorflow/core/common_runtime/gpu/gpu_device.cc:2251] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
=================================== short test summary info ===================================
FAILED integration_tests/torch_workflow_test.py::TorchWorkflowTest::test_keras_layer_in_nn_module - AssertionError: 0 != 2
====================================== 1 failed in 0.35s ======================================


Improve readability of assertion messages

If there is an request processing error, e.g. syntax error:
User u = gql.document("{user(login: \"john\"){{ login status} }")
	.execute()
	.path("user")
	.entity(User.class)
	.get();
assertEquals("john", u.getLogin());

then assertion error message does not have good enough information which makes development bit harder ($Error@5bb0122])
[ERROR]   GraphQlTests.testGetUser:26 Response has 1 unexpected error(s) of 1 total. If expected, please filter them out: [org.springframework.graphql.support.DefaultExecutionGraphQlResponse$Error@5bb0122]
Request: document='{user(login: "john"){{ login status} }'

I am proposing a simple change to improve the readability. Here is the result:
[ERROR] Failures:
[ERROR]   GraphQlTests.testGetUser:34 Response has 1 unexpected error(s) of 1 total. If expected, please filter them out: [InvalidSyntaxError{ message=Invalid Syntax : offending token '{' at line 1 column 22 ,offendingToken={ ,locations=[SourceLocation{line=1, column=22}] ,sourcePreview={user(login: "john"){{ login status} }
}]
Request: document='{user(login: "john"){{ login status} }'

@MariuszCwikla Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.

@MariuszCwikla Thank you for signing the Contributor License Agreement!


error resolving name when attempting to create the dnsendpoint object

What happened:
I am getting this error when the federation control plane is attempting to create a dnsendpoint object related to a servicednsrecord:
E0503 16:33:11.838916       1 common.go:71] Failed to resolve af1d01e4c6dc011e99c520672c4b2178-1584149087.us-west-1.elb.amazonaws.com, err: lookup af1d01e4c6dc011e99c520672c4b2178-1584149087.us-west-1.elb.amazonaws.com on <IP_ADDRESS>:53: no such host
E0503 16:33:11.838961       1 controller.go:162] Error processing fns1/httpd (will retry): lookup af1d01e4c6dc011e99c520672c4b2178-1584149087.us-west-1.elb.amazonaws.com on <IP_ADDRESS>:53: no such host

attempting the same resolution from the container terminals gives this result:
nslookup af1d2ee956dc011e9bdde023a7fb9768-592033900.us-east-2.elb.amazonaws.com
nslookup: can't resolve '(null)': Name does not resolve

Name:      af1d2ee956dc011e9bdde023a7fb9768-592033900.us-east-2.elb.amazonaws.com
Address 1: <IP_ADDRESS> ec2-52-14-123-115.us-east-2.compute.amazonaws.com
Address 2: <IP_ADDRESS> ec2-18-219-167-21.us-east-2.compute.amazonaws.com
Address 3: <IP_ADDRESS> ec2-18-223-8-153.us-east-2.compute.amazonaws.com

the name seems to be resolved correctly, but at notice the initial error:
nslookup: can't resolve '(null)': Name does not resolve
digging on it, it seems to be related to how name resolution works in an alpine image, and there are issues on it: https://github.com/gliderlabs/docker-alpine/issues/476
I am not 100% sure this is the root cause.
Also this issue is happening in AWS because in AWS loadbalancers return a name instead of an IP.
Overall though this looks like a bug to me because this should work.
Environment:

Kubernetes version (use kubectl version)

kubectl version
Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.1", GitCommit:"b7394102d6ef778017f2ca4046abbaa23b88c290", GitTreeState:"clean", BuildDate:"2019-04-08T17:11:31Z", GoVersion:"go1.12.1", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"13+", GitVersion:"v1.13.4+81fc896", GitCommit:"81fc896", GitTreeState:"clean", BuildDate:"2019-04-21T23:18:54Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}

Federation version

Federation v2 controller-manager version: version.Info{Version:"v0.0.9", GitCommit:"442e8868c6bd02bb61871af02269cb18a58804d4", GitTreeState:"clean", BuildDate:"2019-04-30T05:36:16Z", GoVersion:"go1.11.2", Compiler:"gc", Platform:"linux/amd64"}

Install method (helm vs script)
helm
Install configuration (namespaced vs cluster-scoped)
namespaces
Others
cluster running on AWS

/kind bug

@raffaelespazzoli, Thanks for filing the issue. This is legit issue and affects the environment involving AWS loadbalancers.

Related Issue: https://github.com/kubernetes/kubernetes/issues/56903#issuecomment-484673984

@shashidharatd I run a test with a different base image. The issue remains, so I can confirm that it's not caused by the alpine base image.
Are there any plans to fix this issue?

@raffaelespazzoli, this need more investigation to find the root cause.

/remove-lifecycle stale


operator project-quay (3.9.0-nightly.20230202)

Add 3.9.0-nightly.20230202 to community operators

/merge possible


Time benchmarking script for device-model-compute

This is not really an issue, but just wanted to share a script that might be helpful if anyone wants to check how much time it takes cpu/gpu per model etc on their own machine.
import itertools
import time
import logging
from faster_whisper import WhisperModel

logging.basicConfig(
    level=logging.INFO,
    format="%(asctime)s - %(levelname)s - %(message)s",
    datefmt="%Y-%m-%d %H:%M:%S",
)

running_times = {}

def transcribe(device, mod, compute):
    logging.info("processing model: {} device: {} compute: {}\n".format(mod, device,compute))
    model = WhisperModel(mod, device=device, compute_type=compute)

    segments, info = model.transcribe("steve2.wav", beam_size=5)
    logging.debug("Detected language '%s' with probability %f" % (info.language, info.language_probability))
    for segment in segments:
        logging.debug("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

if __name__ == '__main__':
    devices = "cuda cpu".split()
    models = "small.en medium large-v1 large-v2".split()
    compute = "int8 float16 int8_float16".split()
    for i in itertools.product(devices, models, compute):
        try:
            start = time.time()
            transcribe(*i)
            end = time.time()
            running_times["{}-{}-{}".format(*i)] = round(end - start, 1)
        except ValueError:
            continue
    for k,v in running_times.items():
        print("{} : {}".format(k,v))

sample output
cuda-small.en-int8 : 5.3
cuda-small.en-float16 : 2.5
cuda-small.en-int8_float16 : 2.9
cpu-small.en-int8 : 14.1

@guillaumekln  let me know if this will be helpful in this project, I'll cleanup and make a PR, otherwise this issue should be closed.

Thanks! I don't think we need this kind of script in the repo itself, but I'm moving this into a discussion so people can find it in the future.
Couple comments about your script:

The model loading time should typically not be included in the measured time, since the loading only happens once.
The time may vary from one run to another depending on what's happening on the system, so you should measure multiple samples for each configuration and take the minimum or average time.


rancher-gatekeeper - When creating a new constraint if I click in Edit as YAML in the Parameters section the UI gets refreshed back to Cluster Overview

Install Rancher HA k8s
Check Local cluster is active
Go to Dashboard -> Apps -> Charts
Install rancher-gatekeeper
rancher-gatekeeper:v3.1.0-beta.11 gets installed.

Go to OPA gatekeeper and Create constraint
In parameters section click Edit as YAML
Browser get reloaded completely

Rancher version master-head (08/12/2020) d19f179c4

The bug ic not reproduced with Rancher server rancher\rancher:master-head version 8a60de75d master-8a60de75db5324c73535b71c087c3e4bd5f36d29-head
Closing issue. Will reopen if behavior is seen again.

Reopening as behavior was observed. User is redirected because of href.


Sex organ - Last link not clickable

FR - Body - Provider - Homme - 80- Sex organ - Last link not clickable - https://immunize.ca/sites/default/files/Resource and Product Uploads (PDFs)/Products and Resources/Pneumococcal/Pocket Guide/2016/Adults/pneu_pocketguide_adults_2017_web_f.pdf

both link and text had problems...
linked replaced to:
https://www.canada.ca/fr/sante-publique/services/maladies-infectieuses/sante-sexuelle-infections-transmissibles-sexuellement/sante-sexuelle-infections-transmises-sexuellement-faits-information-public.html#infogen
and text set to:
plus de renseignements sur les infections transmissibles sexuellement
it should be ok in the next update.
please recheck.
thanks for giving details

should be fixed on the test website update (13-7-2020: 6 PM)
Please consider it in your tests.

Tested the issue. It works as expected


stark.compileCalldata with Array of struct

In the documentation, we find the following behavior for compiling data of type Uint256
const transferCallData = stark.compileCalldata({
  to: recipient,
  token_id: { type: 'struct', low: token.low, high: token.high },
});

I also read that you can directly pass an Array, and it automatically fills the {}_len.
const arr = [1, 2 ,3];
const transferCallData = stark.compileCalldata({
  to: recipient,
  token_ids: arr,
});

So I naively thought that I could pass an Array of { type: 'struct' ...}
const arr = [
	{ type: 'struct', low: 1, high: 0 },
	{ type: 'struct', low: 2, high: 0 },
	{ type: 'struct', low: 3, high: 0 },
];
const transferCallData = stark.compileCalldata({
  to: recipient,
  token_ids: { type: 'struct', low: token.low, high: token.high },
});

But when I execute, I get an Uncaught Error Error: Assertion failed error.
Am I doing it wrong? Maybe I should transform my list first, but {}_len must always be correct, So in the example :
{}_len = 3 and not 6.
Imo, it would be cool to be able to pass directly the filled array
EDIT : mb,  I misread this part of the documentation, it has all the info I need. But it would still be cool to pass an Array of struct.

Please take a look at this PR description and give u feedback (it will resolve your issue, but it is highly probable it will be in v5 because of breaking changes)
https://github.com/0xs34n/starknet.js/pull/498

Thank you for your feedback, I am closing now this issue as it is part of mentioned PR changes.


🐛 Bug Report: "Recent Search" Click Causes Error Popup

Describe the bug.
When clicking on the "Recent Search" feature, users encounter a popup message stating "Uh, something went wrong." Despite having the URL correctly added to the "Search By Repository" link, the error persists, causing confusion and hindering usability.
Explain bug encounter!
The bug occurs after users perform a search using the "Search By Repository" feature. Although the recent searches are displayed, clicking on them results in an error, leading to confusion and a negative user experience.
Steps to Reproduce

Perform a search using the "Search By Repository" feature.
Click on any entry in the "Recent Search" list.
Observe the popup message indicating an error.

Expected behavior.
When a user clicks on any entry in the "Recent Search" list, they should be directed to the corresponding repository page without encountering any error messages.
Screenshot.

Please assign this issue to me for Hacktoberfest and GSoC-ext

I would like to work on this issue and this would be my first contribution

hello @amitb0ra may i work on this issue?


Optional Inclusion and Cardinality of Lists

Should the ADAPT Standard mandate that an empty list is always omitted, and an included list always have at least one member?
E.g.,
Catalog
-Brands (0..1)
--Brand (1..∞)

Agreement in 21 June 2023 meeting that the list should be optional, but that if included any list must have at least one member.


💡[Feature]: Blood Cell Cancer Detection with CNN and EfficientNetB3

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Using CNN to detect the presence of blood cell cancer from the images dataset uploaded on kaggle.
Dataset : https://www.kaggle.com/datasets/unclesamulus/blood-cells-image-dataset/data
Use Case
Will help in detection of blood cell cancer.
Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I want to work on this issue

@navyabijoy assigned!

No update on this issue since a week
So @TAHIR0110, can I work on this issue ?

@sreevidya-16 i am going to work on it this weekend. the pr will be created by tomorrow.


Selective display of publications and multiple lists on a single page

First, a huge thank you for your work. It saved me so much time. Particularly as I haven't coded in Javascript since 2013!
There are two things I have trouble figuring out:

Is it possible to display by default only publications with a specific keyword or bibtexkey (i.e. without having to select through a list)? A hack I found is to create a Select elements with a selected option element and a preset value. You can set the Select item display:none via CSS. However, I would love to hear a better way.
Can you embed multiple publications lists at different parts of a single page? E.g. show one or two papers right after some text, then have more text and another short list of publications right after that. In my unsuccessful attempt of having two  elements, upon rendering the page I would get one merged list whether the first  was placed.

Thank you in advance for any pointers/help!
PS: I made some minor changes, which I pushed.

I'm glad its been useful! And welcome back to web development =)
Have you looked at this part of the wiki: https://github.com/pcooksey/bibtex-js/wiki#selecting-bibtex-entries
The examples below this section show how to select bibtex entries using the bibtexkey or author.
Let me know if this doesn't work for you. It was designed for this exact purpose of having multiple lists on a single page with different bibtex entries.

Hey! Thank you for the response.
It is an "interesting" coffee-fueled journey. ;-)
I tried to follow those instructions at first, but I was still getting only one bibtex_display. After spending some time trying to debug the issue, I had a "duh moment" and realised how simple the bug was. I was using a
 instead of
. Obviously as IDs are meant to be unique, the library was getting confused and outputting everything to the first bibtex_display. Note, the live demo uses id instead of class too, which is probably how I introduced that bug; i.e. by copying without thinking.
What might be useful is to expand the selection bibtex fields to include keywords. I may work on that and push it to my fork later this week (unfortunately, reviewing takes priority).

Yes, the demo is demonstrating the standard one bibtex_display. The wiki does say to use class when trying to select.
I don't know what you mean by include keywords. If you have a bibtex field called keywords then you can also select on that keywords="something". If you want to select on the entire bibtex entry then you can probably use bibtexraw="keywords".
I looked at your fork. You are adding stuff that is already possible, but that I believe should be implemented in html.
You added new text for different BIBTEXTYPEKEY
But if you want this you would write this using operators:
Article
Book

for all your different types.
However, your commit says better support for selecting on types which makes me think you just want this then (note values needs to be capitalized):

And, the urls have an entire page on them which will do exactly what you wanted. The example is already DOI.
The editor should probably be added though.

I did try this

but it did not work.
On my commit(s), what is different is that the options generated by
``

will have a more easy-to-read label. E.g. instead of
<option label="INPROCEEDINGS">' , you get .  Moreover, it adds a CSS class, so you can have a colorful list, matching any other visual identification you may have for the different types of BIBTEXTYPEKEY`.
I use the library for Talks, not only for Publications. For Talks, I have an upcoming bibtex field, which is missing by most entries. I am generating options to display upcoming talks or not via <select class="bibtex_search bibtex_generate_upcoming ">. If the field is missing, then the option gets the value="null"instead ofvalue=""as it would by default. Then, inbibtex_js_drawfunction, I deal with thenull` value accordingly.  What this allows me to do is to have options in the selection box to either display only upcoming talks (if any) or filter them out.
WRT URL and DOI, I do not think that it should be one or the other.  Quite often, you may have a URL to an OpenAccess repository in addition to the DOI link. I prefer to display both, as the journal may be have a non-OA version. This might be more useful for us in Europe, where our institutions require (or at least encourage) us to upload any publications into their OA repositories. I have also added support for generating arXiv links with the arxivid field.
You can see how I use this on my website: www.recklesscoding.com Just to be clear, I am not debating that you should fork my changes over, as these hacks are based on my own preferences and needs.
I understand that you would rather do things in HTML, while I would rather minimise the HTML part. In any case, thank you again for both the library and your engagement.

Ah I see. I hadn't taken a close enough look to realize it was about the select options. From your previous messages I was assume it was still about selecting bibtex entries. My bad.
I was only trying to suggest that you might be reinventing the wheel, but I can understand wanting to keep within javascript. For my case and the library its becomes a challenge because everyone wants something else as shown by your usage. So, the html part makes it easier to provide options rather than hard-coded ways in javascript. I can easily find someone who would want the select label to have some prefix or suffix or something else slightly different.
WRT URL and DOI, you can have both the URL and DOI with the html code I linked. Its just another if statement. But no matter you have your solution already.
I really like the select with different color coding! Looks good!


BACKLOG-11781: add documentation of each packages

JIRA

https://jira.jahia.org/browse/BACKLOG-11781
Description

Tests
The following are included in this PR

[ ] Unit Tests (Most changes should have unit tests)
[ ] Integration Tests

Checklist

I have considered the following implications of my change:

[ ] Security (in particular for changes to authentication, authorization, data fetching, ...)
[ ] Performance
[ ] Migration
[ ] Code maintainability

Documentation

[x] Inline documentation
[x] Internal Documentation (wiki)
[x] User-facing Documentation

@tdraier I have no right to merge it. If you approuved, then you can merge it.
Thanks :-)


this environment is missing the following Web Fetch API type: fetch is not defined. You may need to use polyfills

(base) ➜  zod-gpt-test node index.js
~Documents/code/js/github/zod-gpt-test/node_modules/_openai@4.29.2@openai/_shims/web-runtime.js:27
        throw new Error(`this environment is missing the following Web Fetch API type: ${error.message}. ${recommendation}`);
              ^

Error: this environment is missing the following Web Fetch API type: fetch is not defined. You may need to use polyfills
    at getRuntime (~Documents/code/js/github/zod-gpt-test/node_modules/_openai@4.29.2@openai/_shims/web-runtime.js:27:15)
    at Object.<anonymous> (~Documents/code/js/github/zod-gpt-test/node_modules/_openai@4.29.2@openai/shims/web.js:30:55)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
    at Module.load (node:internal/modules/cjs/loader:1074:32)
    at Function.Module._load (node:internal/modules/cjs/loader:909:12)
    at Module.require (node:internal/modules/cjs/loader:1098:19)
    at require (node:internal/modules/cjs/helpers:108:18)
    at Object.<anonymous> (~Documents/code/js/github/zod-gpt-test/node_modules/_llm-api@1.4.1@llm-api/dist/src/models/openai.js:4:1)
    at Module._compile (node:internal/modules/cjs/loader:1196:14)

Does is supoort node? My node version is 16.

You should really upgrade your node version to 18 or above. Going to close this.


WebAuthenticationBroker on Xbox doesn't pop soft keyboard

Describe the bug
WebAuthenticationBroker on Xbox doesn't pop soft keyboard.
This prevents signing in to any OAuth protected APIs as the user can't type.
It used to work months ago, now it doesn't.
Steps to reproduce the bug

Create a blank UWP app.
Add a WebAuthenticationBroker (For example, to Pinterest).
Deploy to Xbox.
Notice that the WebAuthenticationBroker doesn't pop the keyboard, and in fact takes the cursor.

(as a side note; it ignores the any attempts at preventing scaling with  ApplicationViewScaling.TrySetDisableLayoutScaling(true); but that's not a big issue.)
Expected behavior
When the dialog pops up, and the text fields are selected, it should pop the soft keyboard so login can be attempted.
Which Windows versions did you see the issue on? Leave blank if you didn't try that version
| Insider Build (xxxxx)                   |    |
| October 2018 Update (17763)   |    |
Which device form factors did you see the issue on? Leave blank if you didn't try that device.

Device form factor
Saw the problem?

Desktop
No

Xbox
Yes

Additional context
These used to work.  An app with no changes which used to function, now doesn't so it may be an incompatibility with later OS builds of Win10/Xbox.

@Austin-Lamb any thoughts on this issue?

We've filed an internal issue for tracking.

The internal issue is marked as fixed. I don't have information at this time about what releases will contain the fix.

How exactly was this fixed? Was the cursor completely removed?? How do you solve recaptchas then?

@jevansaks do you happen to remember any of the context around this? I followed the internal bug but it isn't clear to me how this is was fixed from that's resolution.

@stephenlpeters I don't have any more context on the fix, sorry.


License?

What's the license for wiki?

I just added the MIT license, so feel free to pretty much use it however you'd like.

Thanks


Extremely slow with large repositories.

This program is very slow when running it on large repositories, for example ReactOS.

@o2sh Should we revisit this?

A lot of time still appears to be spent reading commit information in Repo::get_logs, most of which is only used by Repo::get_authors.
Reading commits in parallel seems like a way to speed this up a bit, but I'm not sure if this is possible with libgit2.
git-repository from gitoxide seems like a promising alternative.
Otherwise some form of caching could work, but I'm not sure if this is a good idea.

gitoxide is indeed a promising alternative.
It might be an idea worth exploring even it means losing some features like mailmap.

mailmap is on their radar, at least. I guess we can open an issue to show them that there's interest for it 😆
If we do drop .mailmap support, reopening #447, we should probably make a release before we drop support. That way users that have used the .mailmap feature (#596) will have a release that's as up-to-date as possible before the breaking change.

I created the issue https://github.com/Byron/gitoxide/issues/363.

If we do drop .mailmap support, reopening https://github.com/o2sh/onefetch/issues/447, we should probably make a release before we drop support. That way users that have used the .mailmap feature (https://github.com/o2sh/onefetch/issues/596) will have a release that's as up-to-date as possible before the breaking change.

That's a perfect plan 💯

Reading commits in parallel seems like a way to speed this up a bit, but I'm not sure if this is possible with libgit2.
git-repository from gitoxide seems like a promising alternative.

It looks like major speedups are possible even on a single thread for commit graph traversal, for example I'd expect onefetch to go from ~19s on the v5.16 linux kernel checkout to something like 11s.
If more/all operations are done in parallel, like the syntax analysis, it should become as fast as the slowest of these operations, the commit graph traversal which clocks in at about ~7s.
I wouldn't know how to parallelize the commit graph traversal though - the only way I can imagine this to work is to traverse different branches on multiple threads. This usually comes at the overhead of avoiding them to do duplicate work which requires a parallel hashset (like dashmap) which will limit the amount of threads that are effective there. That also depends on the graph, a linear history with a single trunk can't be sped up at all. Anyway, it's sounds like an interesting task to implement high-performance parallel traversal, maybe gitoxide can provide one once all other options are exhausted here.

The above is my profiling run on the linux kernel v5.16. Most of it is the commit graph traversal, the spike towards the end is tokei, and there is about ~1s of releasing memory (which can and should probably be avoided with process::abort() or by leaking the values with mem::forget()).
All in all, I think switching to gitoxide and running the syntax analysis alone in parallel, along with process::abort() to avoid memory deallocation at the end, one should be able to get roughly 2x the speed on the linux kernel.

Thanks a lot for your input @Byron, I've created two issues as a follow up #628 and #629.

I couldn't resist to do a quick measurement on reactos which seems tame compared to the linux kernel. The numbers, however, are even more promising.

It seems that ~1.5s are spent on the commit graph traversal, a task which could be accomplished in ~0.4s with gitoxide.

Interestingly tokei finished in about ~0.5s so it appears that if both would run in parallel, one should finish the onefetch invocation in about 0.5s, down from ~1.5s . Can't wait to see this happen!

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

For completeness, here is the final values, before…
 /usr/bin/time -lp onefetch-pre-gitoxide
                 ++++++                    Sebastian Thiel ~ git version 2.32.1 (Apple Git-133)
              ++++++++++++                 ----------------------------------------------------
          ++++++++++++++++++++             Project: reactos (57 branches, 274 tags)
       ++++++++++++++++++++++++++          HEAD: 2ba6b09 (master, origin/master)
    ++++++++++++++++++++++++++++++++       Version: 0.4.14-release
 +++++++++++++************+++++++++++++    Created: 26 years ago
+++++++++++******************++++++++;;;   Languages:
+++++++++**********************++;;;;;;;              ● C (89.6 %) ● C++ (9.4 %)
++++++++*********++++++******;;;;;;;;;;;              ● CMake (0.6 %) ● Python (0.2 %)
+++++++********++++++++++**;;;;;;;;;;;;;              ● JavaScript (0.1 %) ● HTML (0.0 %)
+++++++*******+++++++++;;;;;;;;;;;;;;;;;              ● Other (0.1 %)
+++++++******+++++++;;;;;;;;;;;;;;;;;;;;   Authors: 8% Amine Khaldi 6777
+++++++*******+++:::::;;;;;;;;;;;;;;;;;;            7% Timo Kreuzer 5536
+++++++********::::::::::**;;;;;;;;;;;;;            6% Eric Kohl 4808
++++++++*********::::::******;;;;;;;;;;;   Last change: 3 months ago
++++++:::**********************::;;;;;;;   Contributors: 361
+++::::::::******************::::::::;;;   Repo: https://github.com/reactos/reactos
 :::::::::::::************:::::::::::::    Commits: 81668
    ::::::::::::::::::::::::::::::::       Lines of code: 4900543
       ::::::::::::::::::::::::::          Size: 401.85 MiB (26712 files)
          ::::::::::::::::::::             License: BSD-2-Clause-Views, GPL-2.0-only, GPL-3.0-only, LGPL-2.1-only, LGPL-3.0-only
              ::::::::::::
                 ::::::

real 1.61
user 2.56
sys 0.78
           196935680  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
               12570  page reclaims
                   0  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                   7  voluntary context switches
               10044  involuntary context switches
<PHONE_NUMBER>5  instructions retired
<PHONE_NUMBER>  cycles elapsed
           113985408  peak memory footprint

…in 1.61s with a 1.13 GB memory footprint, and after…
❯ /usr/bin/time -lp onefetch
                 ++++++                    Sebastian Thiel ~ git version 2.32.1 (Apple Git-133)
              ++++++++++++                 ----------------------------------------------------
          ++++++++++++++++++++             Project: reactos (57 branches, 274 tags)
       ++++++++++++++++++++++++++          HEAD: 2ba6b097543 (master, origin/master)
    ++++++++++++++++++++++++++++++++       Version: 0.4.14-release
 +++++++++++++************+++++++++++++    Created: 26 years ago
+++++++++++******************++++++++;;;   Languages:
+++++++++**********************++;;;;;;;              ● C (89.6 %) ● C++ (9.4 %)
++++++++*********++++++******;;;;;;;;;;;              ● CMake (0.6 %) ● Python (0.2 %)
+++++++********++++++++++**;;;;;;;;;;;;;              ● JavaScript (0.1 %) ● HTML (0.0 %)
+++++++*******+++++++++;;;;;;;;;;;;;;;;;              ● Other (0.1 %)
+++++++******+++++++;;;;;;;;;;;;;;;;;;;;   Authors: 8% Amine Khaldi 6777
+++++++*******+++:::::;;;;;;;;;;;;;;;;;;            7% Timo Kreuzer 5536
+++++++********::::::::::**;;;;;;;;;;;;;            6% Eric Kohl 4808
++++++++*********::::::******;;;;;;;;;;;   Last change: 3 months ago
++++++:::**********************::;;;;;;;   Contributors: 361
+++::::::::******************::::::::;;;   Repo: https://github.com/reactos/reactos
 :::::::::::::************:::::::::::::    Commits: 81668
    ::::::::::::::::::::::::::::::::       Lines of code: 4900543
       ::::::::::::::::::::::::::          Size: 401.85 MiB (26712 files)
          ::::::::::::::::::::             License: BSD-2-Clause-Views, GPL-2.0-only, GPL-3.0-only, LGPL-2.1-only, LGPL-3.0-only
              ::::::::::::
                 ::::::

real 0.62
user 2.23
sys 0.77
           127516672  maximum resident set size
                   0  average shared memory size
                   0  average unshared data size
                   0  average unshared stack size
                8541  page reclaims
                   0  page faults
                   0  swaps
                   0  block input operations
                   0  block output operations
                   0  messages sent
                   0  messages received
                   0  signals received
                   8  voluntary context switches
               10711  involuntary context switches
<PHONE_NUMBER>4  instructions retired
<PHONE_NUMBER>  cycles elapsed
            43878208  peak memory footprint

…in 0.62s with a 438 MB memory footprint.

@Byron  😮 ❤
BTW, do you have an ETA for:

[ ] config 'user.name', remote information
[ ] git status/pending changes

config 'user.name', remote information

This will probably be available this month as I am currently working hard to get git-config a big step closer to 1.0. All the building blocks are there already, so this can happen earlier with a few more lines of code in onefetch.

git status/pending changes

This one is further away, as this year is entirely dedicated to cloning related issues and integration into cargo, which doesn't yet involved worktree status. That said, if it goes well I will use the extra time to get it ready earlier.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.


adding bdio output

Sorry about the volume of code - I still have to add the gradle task to deploy the bdio output so that will come in a later PR.

looks good.  The comments about the task names to be consistent aren't reason enough to prevent this pull request from being approved.  We have time to change the names of the task and maven goals if they need to be changed again.

Looks good

Looks good to me


System Usage Query: HTTP Request Write endpoint

Add test cases to cover HTTP Request Write endpoint based on the following IDPE query:
from(bucket: "system_usage")
|> range(start: #{start_time})
|> filter(fn: (r) =>
  r.org_id == "#{focused_org_id}"
  and r._measurement == "http_request"
  and ((r.endpoint == "/api/v2/write" and r._field == "req_bytes" and r.hostname !~ /^gateway-internal/)
    or (r.endpoint == "/api/v2/query" and r._field == "resp_bytes")

Added test "test_http_metrics_usage_write_endpoint" totest_metrics_usage suite.
Will review with Gershon and submit PR

Opened by mistake in wrong place


Move op storage tests into new crate reth-optimism-storage

Describe the feature
Move test to new crate reth-optimism-storage. Just keep the test in a a test module in the lib.rs file. Most likely this crate will be filled with more code soon, otherwise we can reconsider its existence (and if test should be moved into another op crate) in the future.
https://github.com/paradigmxyz/reth/blob/d3114b4eec39790fb5b1c567fe095d2d65c24bfd/crates/storage/db-api/src/models/mod.rs#L349-L375
Additional context
No response

@emhane I can take this up. Could you please assign it to me?


hlint doesn't install on ghc 9.6.1

hlint doesn't install on ghc 9.6.1
cabal install hlint
Warning: Unknown/unsupported 'ghc' version detected (Cabal <IP_ADDRESS> supports
'ghc' version < 9.6): /usr/local/bin/ghc is version 9.6.1
Warning: Unknown/unsupported 'ghc' version detected (Cabal <IP_ADDRESS> supports
'ghc' version < 9.6): /usr/local/bin/ghc is version 9.6.1
Resolving dependencies...
Error: cabal: Could not resolve dependencies:
[__0] trying: hlint-3.5 (user goal)
[__1] next goal: ghc-lib-parser (dependency of hlint +/-ghc-lib)
[__1] rejecting: ghc-lib-parser-<IP_ADDRESS>30312 (conflict: hlint +/-ghc-lib =>
ghc-lib-parser>=9.4 && <9.5)
[__1] trying: ghc-lib-parser-<IP_ADDRESS>21225
[__2] next goal: base (dependency of hlint)
[__2] rejecting: base-<IP_ADDRESS>/installed-<IP_ADDRESS> (conflict: ghc-lib-parser =>
base>=4.15 && <4.18)
[__2] skipping: base-<IP_ADDRESS> (has the same characteristics that caused the
previous version to fail: excluded by constraint '>=4.15 && <4.18' from
'ghc-lib-parser')
[__2] rejecting: base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>,
base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>,
base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>,
base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>,
base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>,
base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>,
base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>,
base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>, base-<IP_ADDRESS>,
base-<IP_ADDRESS>, base-<IP_ADDRESS> (constraint from non-upgradeable package requires
installed instance)
[__2] fail (backjumping, conflict set: base, ghc-lib-parser, hlint)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: base, ghc-lib-parser, hlint, aeson,
haskell-src-exts, haskell-src-exts:setup.Cabal, template-haskell,
th-abstraction
Try running with --minimize-conflict-set to improve the error message.

with --allow-new it gets the following compile error
cabal install hlint --allow-new
...
Building     hlint-3.5 (lib)

Failed to build hlint-3.5.
Build log ( /Users/gcolpitts/.cabal/logs/ghc-9.6.1/hlnt-3.5-3e44558f.log ):
Configuring library for hlint-3.5..
Preprocessing library for hlint-3.5..
Building library for hlint-3.5..
[ 1 of 60] Compiling EmbedData        ( src/EmbedData.hs, dist/build/EmbedData.o, dist/build/EmbedData.dyn_o )
[ 2 of 60] Compiling Extension        ( src/Extension.hs, dist/build/Extension.o, dist/build/Extension.dyn_o )
[ 3 of 60] Compiling Fixity           ( src/Fixity.hs, dist/build/Fixity.o, dist/build/Fixity.dyn_o )
[ 4 of 60] Compiling GHC.Util.ApiAnnotation ( src/GHC/Util/ApiAnnotation.hs, dist/build/GHC/Util/ApiAnnotation.o, dist/build/GHC/Util/ApiAnnotation.dyn_o )
[ 5 of 60] Compiling GHC.Util.Brackets ( src/GHC/Util/Brackets.hs, dist/build/GHC/Util/Brackets.o, dist/build/GHC/Util/Brackets.dyn_o )

src/GHC/Util/Brackets.hs:55:7: error: [GHC-76037]
    Not in scope: data constructor ‘HsSpliceE’
    Suggested fix: Perhaps use ‘HsSpliceTy’ (imported from GHC.Hs)
   |
55 |       HsSpliceE{} -> True
   |       ^^^^^^^^^
[ 6 of 60] Compiling GHC.Util.DynFlags ( src/GHC/Util/DynFlags.hs, dist/build/GHC/Util/DynFlags.o, dist/build/GHC/Util/DynFlags.dyn_o )

src/GHC/Util/DynFlags.hs:11:45: error: [GHC-88464]
    Variable not in scope: fakeLlvmConfig
   |
11 | baseDynFlags = defaultDynFlags fakeSettings fakeLlvmConfig
   |                                             ^^^^^^^^^^^^^^
[ 7 of 60] Compiling GHC.Util.FreeVars ( src/GHC/Util/FreeVars.hs, dist/build/GHC/Util/FreeVars.o, dist/build/GHC/Util/FreeVars.dyn_o )

src/GHC/Util/FreeVars.hs:100:53: error: [GHC-83865]
    • Couldn't match expected type ‘OccName’ with actual type ‘RdrName’
    • In the expression: x
      In the first argument of ‘Set.fromList’, namely ‘[x]’
      In the expression: Set.fromList [x]
    |
100 |   freeVars (L _ (HsUnboundVar _ x)) = Set.fromList [x] -- Unbound variable; also used for "holes".
    |                                                     ^
...

this is expected. the current version of hlint requires a ghc-lib-parser-9.4.* these versions of ghc-lib-parser cannot be built by compilers > 9.4.
the next version of hlint will upgrade hlint to the ghc-9.6.1 parse tree (https://github.com/ndmitchell/hlint/pull/1470). when released, it will be buildable with compilers in the range [ghc-9.2.2, ghc-9.6.1].

Thanks Shayne!
On Tue, Mar 21, 2023 at 5:47 PM Shayne Fletcher @.***>
wrote:

this is expected. the current version of hlint requires a
ghc-lib-parser-9.4.* these versions of ghc-lib-parser cannot be built by
compilers > 9.4.
the next version of hlint will upgrade hlint to the ghc-9.6.1 parse tree (
#1470 https://github.com/ndmitchell/hlint/pull/1470). when released, it
will be buildable with compilers in the range [ghc-9.2.2, ghc-9.6.1].
—
Reply to this email directly, view it on GitHub
https://github.com/ndmitchell/hlint/issues/1477#issuecomment-1478559140,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQIJ63PNRM5R63VTRUSMZTW5IHXXANCNFSM6AAAAAAWCVS6WA
.
You are receiving this because you authored the thread.Message ID:
@.***>

Now works on master, but going to see how long an apply-refact release will be as per https://github.com/mpickering/apply-refact/pull/137. If it's not long I'll wait as then we can have the CI passing first. If it will take a bit longer I'll release without apply-refact support.

Sorry for the delay; I just released apply-refact-<IP_ADDRESS>.

@ndmitchell master works well for GHC 9.6. May I ask you to release a new version of hlint?

In the natural flow of events, hlint dropped out of stackage nightly now, which moved to GHC 9.6: https://www.stackage.org/diff/lts-20.26/nightly-2023-06-24

A release is also the only thing blocking HLS hlint support for 9.6.

A release is also the only thing blocking HLS hlint support for 9.6.

noted @michaelpj. spoke to @ndmitchell about it today. it's on the radar.

Sorry for the delay - I've done all my release checks. CI running now. Once the CI goes green (which may take a few more iterations) there will be a release. Likely tomorrow sometime.

Just released v3.6 which works with GHC 8.6.

@ndmitchell Thanks a lot!


[RFC] Rename derive macro to py: prefixed

Summary

#[pyclass] => #[py:class]
#[pyimpl] => #[py:class] // I think we can distinguish this from macro
#[pyattr] => #[py:attr]
#[pyfunction] => #[py:function]
#[pyslot] => #[py:slot]
#[pymethod] => #[py:method]
#[pyproperty] => #[py:property]

Detailed Explanation

Drawbacks, Rationale, and Alternatives

Unresolved Questions

How would rustfmt deal with the colon?

I added another colon to negotiate with rustfmt


Sedivy/24 update valueset query

Update /valueset cypher query

Replaced by https://github.com/x-atlas-consortia/ubkg-api/pull/37, which is a new branch off main instead of dev-integrate


Change Jquery script into Vanilla JS

Hi, I am trying to include React on this theme...
Bootstrap is already replace and everything is fine, even the requirement with jquery.
Now I want to remove jquery also from the clean-blog.js
The option A is doing it with React 100%. (Is what I am going to do)
And the option B, for no expert users is to stop using jquery, and use Vanilla js.
Just that!  good luck! .

I would check out this: https://react-bootstrap.github.io/


Opaque string types

I've got an opaque string type. We basically use this type for things that are strings under the hood, but shouldn't be interchanged with actual free text strings- for example GUIDs. We also use the nominal type checking hack with the private void property to nominally type check them.
We have a problem, though, which is that the compiler won't permit them as dictionary keys.
Can we permit a type annotation or something to say that the type is really a string or integer under the hood and should be permitted as a dictionary key?

Duplicate of #5599

The opaque type is not an intersection type, since we do not want to permit assigning a Guid to a string, which the intersection type does permit.

Maybe you can post some code?

It currently looks like this:
// Construct Guids using Guid.fromString()
abstract class Guid {
private nominal: void;
// Expose method from actual runtime String class.
abstract toString(): string;

static fromString(value: string): Guid {
    return <any>value;
}

static toString(value: Guid): string {
    return <any>value;
}

static emptyGuid(): Guid {
    return Guid.fromString("00000000-0000-0000-0000-000000000000");
}

static isNullOrEmpty(value: Guid) {
    return _.str.isBlank(Guid.toString(value)) || value === Guid.emptyGuid();
}

}
export default Guid;
Guid.fromString is an evil method that we use for tests but shouldn't really. The return types from our web services specify Guids to match guid types on the server; they're actually serialized as strings. Our client really shouldn't be doing any interesting processing on Guids at all- just passing them around.
So basically, the nature of Guids as actually strings at runtime is completely hidden from the user, and we want the strongest of checking between Guids and strings- they are completely not interchangable in any way.
But it would also improve the typing of our code if we could use them as dictionary keys, like we can on the server.

I would refer to this as "tagged" types. basically a sub type of string, that is only assignable from values of the same type, but otherwise behaves like a string. Tagged types are just a form of nominal typings. there is a long discussion about this in, https://github.com/Microsoft/TypeScript/issues/4895 and you can see how in the TS compiler code bases we use a similar approach in https://github.com/Microsoft/TypeScript/blob/master/src/compiler/types.ts#L8.
I think this issue is better handled by https://github.com/Microsoft/TypeScript/issues/202

Like I explained to the other guy, they're not remotely the same as we do not permit assignments the other way either, or a vast majority of the members.


Fix/logger sync

If logger.Sync() return an error, syscall.ENOTTY for UNIX, fs.PathError for Windows; ignore it.
See:

https://github.com/uber-go/zap/issues/991
https://github.com/uber-go/zap/issues/880

LGTM!


Make sim4life.cloud an alias of sim4life.io

We are going to remove s4l product in osparc.io deployment. This product is associated to sim4life.cloud. We will reuse this domain as an alias to sim4life.io.

done