训练bge-reranker-large时，加入参数--gradient_checkpointing 后报错

命令行如下
#!/bin/sh
CUDA_VISIBLE_DEVICES=3
torchrun --nproc_per_node 1
-m FlagEmbedding.reranker.run
--output_dir /home/dayita/model/rerank/train3
--model_name_or_path  /llms/models/bge-reranker-large/
--train_data /home/dayita/muyu/testForRerank2.jsonl
--learning_rate 1e-5
--gradient_checkpointing
--fp16
--num_train_epochs 5
--per_device_train_batch_size 3
--gradient_accumulation_steps 4
--dataloader_drop_last True
--train_group_size 5
--max_len 512
--weight_decay 0.01
--logging_steps 10
报错信息如下：RuntimeError: Expected to mark a variable ready only once. This error is caused by one of the following reasons: 1) Use of a module parameter outside the forward function. Please make sure model parameters are not shared across multiple concurrent forward-backward passes. or try to use _set_static_graph() as a workaround if this module graph does not change during training loop.2) Reused parameters in multiple reentrant backward passes. For example, if you use multiple checkpoint functions to wrap the same part of your model, it would result in the same set of parameters been used by different reentrant backward passes multiple times, and hence marking a variable ready multiple times. DDP does not support such use cases in default. You can try to use _set_static_graph() as a workaround if your module graph does not change over iterations.
Parameter at index 387 has been marked as ready twice. This means that multiple autograd engine  hooks have fired for this particular parameter during this iteration. You can set the environment variable TORCH_DISTRIBUTED_DEBUG to either INFO or DETAIL to print parameter names for further debugging.

--gradient_checkpointing 需要在开启deepspeed的情况下使用


Using ts-node with @ imports

Note: this issue is just for documentation and has a solution already:
The issue in question is an error that occurs when using imports that use the @ symbol to denote the module (e.g. import PolyKey from @polykey/PolyKey.ts). It turns out ts-node doesn't like this and throws an error. There is a whole issue about tsconfig.json/paths not working with ts-node. The solution is to use tsconfig-paths and then suffix all your calls with ts-node -r tsconfig-paths/register <file>. One can do this with a handy alias: alias ts-node='ts-node -r tsconfig-paths/register'.
For webpack, there is also a module for this: https://github.com/dividab/tsconfig-paths-webpack-plugin

I've also been running into an issue with typescript not picking up the module level imports in the tests directory since it is outside of the src directory. The fix for this is to have the baseUrl set to '.' and the module path then start from src like so:
{
  "compilerOptions": {
    .....
    "baseUrl": ".",
    "paths": {
      "@polykey/*": ["src/*"]
    }
  },
  ....
}

I forgot to mention the tests directory should also be added into the glob wildcards patter in include:
{
  "compilerOptions": {
    .....
    "baseUrl": ".",
    "paths": {
      "@polykey/*": ["src/*"]
    }
  },
  "include": [
    "./src/**/*",
    "./tests/**/*"
  ]
}

There is still the issue of the bin folder, commanderjs does not appear to have a plugin for tsconfig paths like webpack and jest do

I'm not sure what it is, but the relative imports show errors in VSCode when used in the test directory unless I include the tests directory as shown two commends above. This is fine until I try to generate typings since now tsc generates typings for the test directory as well which is undesirable.


RuntimeError: "addmm_impl_cpu_" not implemented for 'Half' 华为910 命令行推理报错

Reminder

[X] I have read the README and searched the existing issues.

System Info
llamafactory-cli env

llamafactory version: 0.8.3.dev0
Platform: Linux-4.19.36-vhulk1907.1.0.h1438.eulerosv2r8.aarch64-aarch64-with-glibc2.34
Python version: 3.9.9
PyTorch version: 2.1.0 (NPU)
Transformers version: 4.42.3
Datasets version: 2.20.0
Accelerate version: 0.31.0
PEFT version: 0.11.1
TRL version: 0.9.4
NPU type: Ascend910B
CANN version: 8.0.RC1

Reproduction
File "/usr/local/lib/python3.9/site-packages/transformers/models/llama/modeling_llama.py", line 326, in forward
query_states = self.q_proj(hidden_states)
File "/usr/local/lib64/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, kwargs)
File "/usr/local/lib64/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in call_impl
return forward_call(*args, **kwargs)
File "/usr/local/lib64/python3.9/site-packages/torch/nn/modules/linear.py", line 114, in forward
return F.linear(input, self.weight, self.bias)
**RuntimeError: "addmm_impl_cpu" not implemented for 'Half'
Expected behavior
正常
Others
Assistant: Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/lib64/python3.9/threading.py", line 973, in _bootstrap_inner
self.run()
File "/usr/lib64/python3.9/threading.py", line 910, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib64/python3.9/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
return func(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/transformers/generation/utils.py", line 1914, in generate
result = self._sample(
File "/usr/local/lib/python3.9/site-packages/transformers/generation/utils.py", line 2651, in _sample
outputs = self(
File "/usr/local/lib64/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)

请问是否 ASCEND_RT_VISIBLE_DEVICES 指定了device 呢？这个报错看起来是跑在cpu上了，cpu貌似不支持fp16
参考 https://github.com/THUDM/ChatGLM3/issues/177


Screen size VS. Resolution

This issue is regarding the Mobile Matrices Wiki page.

It is primarily for a quick reference sheet when trying to target a specific platform with CSS media queries.

I wish I could say the above quote was true however when working with media queries the screen resolution is totally irrelevant. For example the resolution of the iPhone 4/4s is 640 × 960 px, but the screen size is 320 x 480 px. Many of the items in this list have resolutions that are very different to the size of the screen that you must use in your media queries for them to work.

Hey there. Thanks for reporting this. We appreciate it :) I'm going to close this as this project is deprecated.


Create a sample application on SCP Neo using SAP S/4HANA Cloud SDK

Tutorial URL: https://developers.sap.com/tutorials/s4sdk-scp-neo-sample-application.html
Please specify the step you are referring to: Step 5
I am trying to go through this but at this step I am unable to get the browser to display the login page. When I look back up the command prompt I see Errors
[ERROR] java version "1.8.0_201"
[ERROR] Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
[ERROR] Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
[INFO] JAVA version is not correct. The supported versions are 1.6 and 1.7.
I know these are present in sample screenshot.
Can anyone provide any insight please or if there are any logs that could help?
Regards
Mark

Information in tutorial is wrong.
Url to go to is http://localhost:8080/firstapp-application/

@karstenmelato Can you address this and fix tutorial, as needed?

I don't understand the problem. What exactly is the mistake. In the tutorial, the URL 'http://localhost:8080/firstapp-application/' is given.

Hi Karsten
The tutorial looks correct now, I believe that when I was doing it it had hello-world in the url
Mark

That may be, until recently we had a discrepancy between the new and the old URL in the tutorials. Please excuse the confusion.

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.


Fails on Nexus 5 with Android 6.0

On the device in Subj, el app fails without starting with this error (on Genymotion with same params, it works). So far the % of devices with 6.0 is small, but for the future:
01-08 07:08:01.077: E/AndroidRuntime(23388): FATAL EXCEPTION: KrollRuntimeThread
01-08 07:08:01.077: E/AndroidRuntime(23388): Process: com.womala.womalaandroid, PID: 23388
01-08 07:08:01.077: E/AndroidRuntime(23388): java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.womala.womalaandroid-2/lib/arm/libti.inappbilling.so: has text relocations
01-08 07:08:01.077: E/AndroidRuntime(23388): 	at java.lang.Runtime.loadLibrary(Runtime.java:372)
01-08 07:08:01.077: E/AndroidRuntime(23388): 	at java.lang.System.loadLibrary(System.java:1076)
01-08 07:08:01.077: E/AndroidRuntime(23388): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
01-08 07:08:01.077: E/AndroidRuntime(23388): 	at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
01-08 07:08:01.077: E/AndroidRuntime(23388): 	at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:185)
01-08 07:08:01.077: E/AndroidRuntime(23388): 	at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:109)
01-08 07:08:01.078: W/ActivityManager(777):   Force finishing activity com.womala.womalaandroid/.BwomActivity

Which version of the module are you using?
Is it https://github.com/appcelerator-modules/ti.inappbilling/releases/tag/v3.0.2 ?

Yes, freshly downloaded a couple of days ago and recompiled.

I am still trying, seems to be this issue:
http://stackoverflow.com/questions/32346402/libavcodec-so-has-text-relocations

I indeed had Titanium 5.1.1 and Target Sdk set to 23

I will reply in 3-4 hours, i m outside
On Friday, 8 January 2016, Ashraf<EMAIL_ADDRESS>wrote:

Which version of the module are you using?
Is it
https://github.com/appcelerator-modules/ti.inappbilling/releases/tag/v3.0.2
?
—
Reply to this email directly or view it on GitHub
https://github.com/appcelerator-modules/ti.inappbilling/issues/14#issuecomment-169919606
.

Thanks for the update.

Update.
It is indeed what was in the stackoverflow. If I downgrade Titanium to 5.0.2 and Target SDK to 22, it works on Android 6.0
Yes, I am working with v3.0.2, I just checked the manifest. I downloaded the zip and recomplied everything on monday.

I have done one last test,
Titanium SKD 5.1.1
in manifest:
android:targetSdkVersion="23"
I have used the pre-built module I have downloaded right now from here (to exclude any problem with my environment):
https://github.com/appcelerator-modules/ti.inappbilling/releases/tag/v3.0.2
Result: CRASH on Nexus 5, Android 6.0 (device)
I guess here I am compiling with target SDK 22 (that does not crash on this problem), and the problem becomes yours :)

@annakozy2011 thanks for the update. Will need to investigate this.

Created a ticket to address this issue. https://jira.appcelerator.org/browse/MOD-2188

Thanks
On Monday, 11 January 2016, Ashraf<EMAIL_ADDRESS>wrote:

Created a ticket to address this issue.
https://jira.appcelerator.org/browse/MOD-2188
—
Reply to this email directly or view it on GitHub
https://github.com/appcelerator-modules/ti.inappbilling/issues/14#issuecomment-170416569
.

Any progress? I cannot compile on newer SDKs of Titanium, because all sdks after 5.0.2 request android:targetSdkVersion="23".... and it crashes on 6.0 that way.

@annakozy2011 with v3.0.2, I'm unable to reproduce the crash. Are there other details/logs you can provide?

Did you try on device?  It only crashes on device, weirdly, on genymotion i
dont get it to crash either
Yes, i have the logs for the crash.... Maybe i should make a test app to
exclude other reasons...
El miércoles, 20 de enero de 2016, Ashraf<EMAIL_ADDRESS>escribió:

@annakozy2011 https://github.com/annakozy2011 with v3.0.2, I'm unable
to reproduce the crash. Are there other details/logs you can provide?
—
Reply to this email directly or view it on GitHub
https://github.com/appcelerator-modules/ti.inappbilling/issues/14#issuecomment-173068751
.

Close this bug, version 3.0.2 is fine (version 3.0.1 is not). I first got the log from a friend who obviously tried with the old version (that used 3.0.1), and later it kept crashing, but other libraries were responsible.

Hi @annakozy2011,
I have been trying to use 3.0.2 on my Nexus 5 with Android 6.0.1 and it just won't work with Titanium SDK 5.2.1. I can't go back to SDK 5.0.2 because I have already made a lot of changes using cards and my client have already approved it. How did you manage to solve it?
[ERROR] :  linker: /data/app/com.douglas.upflix-1/lib/arm/libmetal.admobgoogleplay.so: has text relocations

@deckameron That looks like a different bug/module causing your issues. It mentions admobgoogleplay in error log you included. What modules are you including? AdMob?

So what is the resolution for this?  I've just updated my app to 5.2.2.GA and compiled for SDK 23, now I'm seeing crashing with Android 6:
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.XXX.XXX/lib/arm/libti.inappbilling.so: has text relocations
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at org.appcelerator.kroll.runtime.v8.V8Runtime.loadExternalModules(V8Runtime.java:132)
at org.appcelerator.kroll.runtime.v8.V8Runtime.initRuntime(V8Runtime.java:99)
at org.appcelerator.kroll.KrollRuntime.doInit(KrollRuntime.java:205)
at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:114)

@spudz000 which version of inappbilling module are you using?

I am using 3.0.0 from the Appcelerator store:
https://marketplace.appcelerator.com/apps/776#!overview
Is there a released 3.0.2 someplace I should be using instead of the store?

@spudz000 Use gitTio http://gitt.io/component/ti.inappbilling - It makes your life so much easier :) You can install/update modules right inside Studio. 3.0.2 is available.

@spudz000 I was going to recommend v3.0.2 from here. https://github.com/appcelerator-modules/ti.inappbilling/releases

Thank you all.  I don't have an android 6 device so I can't really test this but I'm going to have to give it a shot.
Why isn't this the current release through the appcelerator store.

I have an LG G4 running Android 6 and 3.0.2 is working fine for me - I can
purchase and restore purchases just fine.
Not sure why it's not in the store. IMO, the store doesn't seem to be
updated often. I always use Github or GitTio for modules.
On Thu, Apr 21, 2016 at 2:08 PM, spudz000<EMAIL_ADDRESS>wrote:

Thank you all. I don't have an android 6 device so I can't really test
this but I'm going to have to give it a shot.
Why isn't this the current release through the appcelerator store.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
https://github.com/appcelerator-modules/ti.inappbilling/issues/14#issuecomment-213041770


FabricObserver.dll not signed in the released sfpkg

Please close this if I've made a mistake but it appears the FabricObserver.dll is not signed.
Cluster observer seems OK.
Thanks

Version 3.0.9

Will check. Thanks for reporting.

Yeah. Somehow that Pipeline task went missing. My apologies. Running another build now. Appreciate the headsup.
...Charles

Fixed. Thanks again!

Thank you!


CI: pod did not terminate within timeout window

Build link: https://jenkins.cilium.io/job/Ginkgo-CI-Tests-Pipeline/2027/
Relevant output:
16:58:35 Summarizing 6 Failures:
16:58:35
16:58:35 [Fail] RuntimeValidatedLB With Containers [It] validates that services work for L3 (IP) loadbalancing
16:58:35 /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/runtime/lb.go:230
16:58:35
16:58:35 [Fail] RuntimeValidatedLB [BeforeEach] With Containers validates that services work for L4 (IP+Port) loadbalancing
16:58:35 /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/runtime/lb.go:81
16:58:35
16:58:35 [Fail] RuntimeValidatedLB [BeforeEach] With Containers validates service recovery on restart
16:58:35 /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/runtime/lb.go:81
16:58:35
16:58:35 [Fail] RuntimeValidatedLB [BeforeEach] Services Policies tests with conntrack enabled
16:58:35 /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/runtime/lb.go:81
16:58:35
16:58:35 [Fail] RuntimeValidatedLB [BeforeEach] Services Policies tests with conntrack disabled
16:58:35 /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/runtime/lb.go:81
16:58:35
16:58:35 [Fail] RuntimeValidatedLB [BeforeEach] Services Policies tests with service performing L4 port mapping
16:58:35 /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/runtime/lb.go:81
16:58:35
16:58:35 Ran 50 of 274 Specs in 2563.179 seconds
16:58:35 FAIL! -- 44 Passed | 6 Failed | 0 Pending | 224 Skipped --- FAIL: TestTest (2563.18s)

test_results_Ginkgo-CI-Tests-Pipeline_2027.tar.zip

Assigning to myself for triage.

First test that failed:
16:58:35 • Failure [32.222 seconds]
16:58:35 RuntimeValidatedLB
16:58:35 /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:238
16:58:35   With Containers
16:58:35   /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:238
16:58:35     validates that services work for L3 (IP) loadbalancing [It]
16:58:35     /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:270
16:58:35
16:58:35     failed to ping service IP <IP_ADDRESS>
16:58:35     Expected
16:58:35         <bool>: false
16:58:35     to be true
16:58:35
16:58:35     /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/runtime/lb.go:230
16:58:35 ------------------------------

Ah, the log indicates an interrupt was sent to the process. The runtime tests were actually killed by another stage (presumably K8s)!:
16:58:32 STEP: Pinging from server1 to its own service IP
16:58:32 time="2018-04-09T16:58:32Z" level=debug msg="running command: docker exec -i  httpd1 ping -W 2 -c 5 <IP_ADDRESS>"
16:58:34 Sending interrupt signal to process

Actual test failure was in K8s-1.7 build:
16:56:04 • Failure [167.664 seconds]
16:56:04 K8sValidatedPolicyTest
16:56:04 /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:238
16:56:04   KubernetesNetworkPolicy between server and client
16:56:04   /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:238
16:56:04     should enforce policy based on NamespaceSelector [It]
16:56:04     /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/ginkgo-ext/scopes.go:270
16:56:04
16:56:04     Pod "client-cannot-connect" should have finished successfully
16:56:04     Expected error:
16:56:04         <context.deadlineExceededError>: {}
16:56:04         context deadline exceeded
16:56:04     not to have occurred
16:56:04
16:56:04     /home/jenkins/workspace/Ginkgo-CI-Tests-Pipeline/src/github.com/cilium/cilium/test/k8sT/Policies.go:664

From the test code, looks like the following block was where this was hit:
func testCanConnect(k *helpers.Kubectl, ns, podName string, service *v1.Service, dPort int, canConnect bool) {
	pod := createNetworkClientPod(k, ns, podName, service, dPort)
	defer func() {
		By(fmt.Sprintf("Cleaning up the pod %s", podName))
		err := k.CoreV1().Pods(ns).Delete(pod.Name, nil)
		ExpectWithOffset(2, err).NotTo(HaveOccurred(), "Pod %q should have been deleted", pod.Name)
	}()

	ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
	defer cancel()
	err := k.WaitForPodExit(ctx, ns, podName)
	ExpectWithOffset(1, err).NotTo(HaveOccurred(), "Pod %q should have finished successfully", pod.Name)

Looks like the pod did not 'finish up running'. Let's check the test-output.log to see more.

I can see what happened here (pod did not get deleted in time), but there is nothing in the output of cilium endpoint list with "client-cannot-connect", indicating that Cilium has cleaned up the endpoint. @aanm anything else I can do to debug this / data I should be looking at based off of your writing of the test?

@ianvernon k.WaitForPodExit(ctx, ns, podName) waits for the pod podName to run its command and exit successfully within 2 Minutes. So either the pod did not start or it didn't finish its instruction entirely

Not really sure what we can do here since this seems like a Kubernetes issue; we deleted the pod and waited for it to terminate, but it didn't. Maybe we can increase the timeout for waiting for pods to terminate? @aanm any other recommendations on logs we can add, metadata that can be gathered, etc., to help triage this if it fails again? What do you think?

Ping @eloycoto.

Yep, happy to get all the logs from pods if the test fail.

@eloycoto  created https://github.com/cilium/cilium/issues/3815 for tracking this enhancement. I'm going to close this since AFAICT we don't have enough information to determine what happened, which the PR for #3815 will hopefully address.


add Flow

I like types. I think other people like types. Let's add Flow to this thing. Feel free to PR if you see this and would like to help 😄

Would you like to rewrite code on flow instead of prop types or just add flow typings?

I was thinking of replacing propTypes with Flow and using babel-plugin-react-flow-props-to-prop-types.


[Menu] Container not working with some menu types

This is an inverted labled icon menu (class="ui inverted labeled icon menu") :

Another issue, items icons in in "labeled icon menu" are not labeled !!
example : http://jsfiddle.net/rduvhn8u/28/

Fixed

@jlukic  Thanx  alot for your hard work, labled icons are fixed, but other problems apears:

I can fix that with some css codes, but we wanted fixed on the Framework... I Love SUI and I will supported forever.
As I said before Im Back-end Developper, thats why Im not making a lot of PR, but I after I finish a project, I will made a lot of PR in Docs and Languages (I speek French and Arabic)

Some more fixes. Icon menu wasnt intended to work with dropdown, but should now.
http://jsfiddle.net/4zjs6uqc/

Thanx :+1:  works fine now


TOIL: add .gitignore to repo

Trying to work on some tweaks locally, and seeing a LOOOOT of changes vs. HEAD 😁

I appreciate the help very much, but PR #44 included a large set of .gitignore lines and I applied it first. If did a quick check and it looked like everything in #43 is also in #44, but let me know if I missed something.

The only nit I have to pick here (thanks for switching to git submodules!) is
- models/ldm/stable-diffusion-v1/model.ckpt
+ models/ldm/stable-diffusion-v1/

just because of the sheer size of the SD models (some people even have more than one, with different names). Ever accidentally tried to git stash a multi-gig binary file by accident? Not pretty.


[eas-cli] reword the update configure instruction

Why
We run ensureEASUpdateIsConfiguredAsync in most of our eas update commands, and if you have a dynamic app.config.js configuration, we tell you to finish configuring EAS Update by adding some key values to the config. While this is the final step to configure for app.json, if the user is running eas update:configure, we still need to configure eas.json.
How
Reword the error message so the user isn't led to believe they are completely done with the configuration process (in the case of eas update:configure)
Test Plan

[ ] manually tested

/changelog-entry chore Reword update configuration warning


[MAID-3160] feat/derive: use scrypt for key derivation

Mock and non-mock test cases have been added and all other review comments addressed 👍

Closing, we merged these commits in #25


Ball_Shooting_Game is added

PR Description 📜
#3374
Mark the task you have completed ✅

[x] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[x] I have added screenshot for website preview in assets/images
[x] I have added entries for my game in main README.md
[x] I have added README.md in my folder
[ ] I have added working video of the game in README.md (optional)
[x] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @pallasivasai ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Thank you  @pallasivasai , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Explicitly define list of assets

I am using express to build a single page application with React.js and I am using inline html to send my app to the client:
app.get('*', function(req, res) {
  res.send(
		`
		<!doctype html>

				<link rel="stylesheet" type="text/css" href="${CDN('stylesheets/foo.min.css')}">
				<title>Figure</title>

		`
  )
})

I would like to be able to explicitly define my list of assets, [./statics/stylesheets/foo.min.css, ./statics/javascripts/bundle.js] rather than walking though views and extracting assets in the walk function.

@benoitguigal I also have a similar setup my HTML is all in JSX. Any progress on this?


Add service categories filter.

question name changed between G-Cloud-8 and G-Cloud-9
we'll need to remove the old 'service types' filter at some point after
go-live.

https://trello.com/b/yXdcOenW/g9-catalogues-sprint-in-progress

The tests here seem to be completely tied to the mapping, i.e. adding a field is not possible without breaking loads of tests.
I reckon it's probably okay just to xfail all of these, and come back later?
I need to have the "service categories" field indexed for Friday :-(


Face some problem when train on my own dataset in csv format...

Hi, I wanna train this model on my own dataset, which only has on object category, and write in csv file , but when I trian this network, I found an error that in \keras-CenterNet-master\generators\csv_.py in line 57-58:
if class_name in result:
raise ValueError('line {}: duplicate class name: '{}''.format(line, class_name))
result[class_name] = class_id
you know I only have one object category, so how should I change my code or how should I change my class.csv file, thx~

Hi, I wanna train this model on my own dataset, which only has one object category, and write in csv file , but when I trian this network, I found an error that in \keras-CenterNet-master\generators\csv_.py in line 57-58:
if class_name in result:
raise ValueError('line {}: duplicate class name: '{}''.format(line, class_name))
result[class_name] = class_id
you know I only have one object category, so how should I change my code or how should I change my class.csv file, thx~

@keersujiade 您好，我在使用自己的CSV文件训练时遇到了以下问题
Traceback (most recent call last):
File "train.py", line 356, in
main()
File "train.py", line 351, in main
validation_data=validation_generator
File "/root/data/anaconda3/envs/CenterNet-Keras/lib/python3.6/site-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/root/data/anaconda3/envs/CenterNet-Keras/lib/python3.6/site-packages/keras/engine/training.py", line 1658, in fit_generator
initial_epoch=initial_epoch)
File "/root/data/anaconda3/envs/CenterNet-Keras/lib/python3.6/site-packages/keras/engine/training_generator.py", line 181, in fit_generator
generator_output = next(output_generator)
File "/root/data/anaconda3/envs/CenterNet-Keras/lib/python3.6/site-packages/keras/utils/data_utils.py", line 616, in get
six.reraise(*sys.exc_info())
File "/root/data/anaconda3/envs/CenterNet/lib/python3.6/site-packages/six.py", line 703, in reraise
raise value
File "/root/data/anaconda3/envs/CenterNet-Keras/lib/python3.6/site-packages/keras/utils/data_utils.py", line 603, in get
inputs = future.get(timeout=30)
File "/root/data/anaconda3/envs/CenterNet-Keras/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
File "/root/data/anaconda3/envs/CenterNet-Keras/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/root/data/anaconda3/envs/CenterNet-Keras/lib/python3.6/site-packages/keras/utils/data_utils.py", line 406, in get_index
return _SHARED_SEQUENCES[uid][i]
File "/root/data/ks/code/keras-CenterNet/generators/common.py", line 521, in getitem
inputs, targets = self.compute_inputs_targets(group)
File "/root/data/ks/code/keras-CenterNet/generators/common.py", line 498, in compute_inputs_targets
inputs = self.compute_inputs(image_group, annotations_group)
File "/root/data/ks/code/keras-CenterNet/generators/common.py", line 414, in compute_inputs
batch_whs[b, i] = 1. * w, 1. * h
IndexError: index 100 is out of bounds for axis 1 with size 100
请问您这边知道如何解决吗？谢谢


Make Testcontainers extension annotation public to allow using in ordered ExtendWith

Original PR https://github.com/testcontainers/testcontainers-java/pull/2262 was closed due to inactivity on my side, sorry for this.
Hi,
I found fix of https://github.com/testcontainers/testcontainers-java/issues/2045 useful and created PR. My usecase could be found in TestcontainersSharedContainerWithGeneratedResourcesTests. Problem is that I want to have static containers that use some generated resources and without @ExtendWith I am unable to tell order in which extensions are invoked.
What do you think?
Thx
Ivos

I have rebased PR to current master.
Also I have cleaned code a bit from previous version.
This PR also add lazy file system bind that can be used to deffer creation of Bind. See test for use-case scenario.
What do you think?

Hi @bedla ! We already merged #2045 and it will available in the next release.


Changes by create-pull-request action

Automated changes by create-pull-request GitHub action

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.


Improve webhooks docs

It appears the docs are out of date and could do with improvement. A couple of people on Discord were confused, as reported by Paulo. Conversation: https://apifier.slack.com/archives/CQ96RHG2U/p1642786975000300
Also check: https://apifier.slack.com/archives/DUC52PG0J/p1647352424354999
Check out Discord to see what they need and check with Platform team how we can improve.
Probably move all the content to one page?
Also see: https://apifier.slack.com/archives/CQ96RHG2U/p1669482412125069
We need to document retries and exponential backoff, this is not described anywhere and users are surprised by this (Slack).

I was reading through the docs now, and I think the issues that people complained about are fixed:

actions are listed
variable interpolation is explained
retries and exponential backoff are there
the structure is better after Mára's restructuring

I will just close this, if it's needed we can reopen it.


Improper handling of non-existent reductions in reduction plot

When passing a reduction that does not exist to plot_reduction, the error is not properly handled:
plot_reduction(
   object = sce_3,
   group_by = "ab200_clusters",
   reduction = "TOTALVI"
  )

Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 0, 200548
A more specific error message should be returned in this case.

Needs to be addressed/tested in plotting package (scPlots).


Versions show very few characters in package details page when using semver2.0.0 versions

Looking at NuGet.Packaging, any packages with prerelease labels in their version, don't show up very well on NuGet gallery.
See attached picture.
4.8.0-previe... (current version)
4.7.0-rtm...
4.70.-rtm...
4.7.0-previe...
4.7.0-previe...
This is likely because we have SemVer 2.0.0 names --- i'd imagine we could show more of the version string...the useful part.

Just talked with @loic-sharma
I have seen how back our 4.7.0+xxxxxxxxxx version looks now.
I think we should consider hiding "+xxxxxxx" in most places in UI.
Show it in some advanced detail view for a package, if you like.
(we do that in VS Client NuGet UI)

@rrelyea @loic-sharma this is precisely what my feedback was at: https://github.com/NuGet/NuGetGallery/issues/5651

This is a duplicate of https://github.com/NuGet/NuGetGallery/issues/5651
Lets discuss there.


Add nestedRecursiveRules to ToggleButtons

Description
This PR adds the missing trait to be able to define array rules on ToggleButtons::make('foo')->multiple()

Can you please specify which rules would work well on this field? Since these are pre-defined options and not variable like TagsInput

Here is an example:
ToggleButtons::make('booked_seat_id')
                ->multiple()
                ->inline()
                ->grouped()
                ->options($booking->bookedSeats->pluck('bookable.name', 'id'))
                ->nestedRecursiveRules($booking->bookedSeats->pluck('id')->toArray())


feat: remove numpy

Closes https://github.com/jina-ai/jina/issues/3110

Are you still having problems here with non-consistent results?

Are you still having problems here with non-consistent results?

Yes, that's why the check is only >

If we remove the searcher, do we also want to remove it from bubble? @cristianmtr

Yes, good point. We should. Once this gets approved, I'll remove it, along with the compounds, and add these two new Compounds


Loading Files with REST

Hi,
I've got one more question. :)
What's the correct way to load a File via REST interface?
That's my approach:
The code for the sevice which offers the File
@RequestMapping(value = "/loadFile", method = RequestMethod.GET)
	public String getFile(){
		return JsonFactory.toJson(clientLoader.getFile());
}

and the client code which want's to get the File
	HttpResponse jsonFile = httpClient.get("/services/task-service/loadFile");

	return JsonFactory.fromJson(jsonFile.body(), File.class);

But if I use this code, I get an error:
Caused by: java.lang.ClassCastException: io.advantageous.boon.core.value.CharSequenceValue cannot be cast to java.io.File

Well, I don't get it. How to use it correctly?
edit: When I call the interface with my browser, I only get the Path:
"\"D:\\PieChart.jar\""

When returning the File without using the JsonFactory:
"D:\PieChart.jar"

I am doing this from memory so forgive me if I miss a few things.
One way
@RequestMapping(value = "/loadFile", method = RequestMethod.GET)
    public Map<String, Object> getFile(){
         return JsonFactory.fromJson(JsonFactory.toJson(clientLoader.getFile()));
}

Basically turn it into a map, then sent it out the normal route.
Another way if that does not work...
Use BoonJsonMapper this is the default JSON parser / serializer for QBit.
This way I am 90% sure it will work.
##Option 2
import io.advantageous.qbit.Factory;

//constructor
final Factory factory = QBit.factory();
JsonMapper mapper = factory.createJsonMapper();

@RequestMapping(value = "/loadFile", method = RequestMethod.GET)
    public Map<String, Object> getFile(){
        //
    <K,V> Map<K, V> fromJsonMap(String json, Class<K> componentClassKey, Class<V> componentClassValue);
         return mapper.fromJsonMap(clientLoader.getFile(), String.class, Object.class);
}

This way I am 99% sure will work.
Now let's say you want to get clever and you don't want to parse and then turn around a deserialize a JSON string.
##Option 3
@RequestMapping(value = "/loadFile", method = RequestMethod.GET)
    public void getFile(final Callback<HttpResponse> respnoseCallback){
         HttpResponseBuilder httpResponseBuilder = HttpResponseBuilder.httpResponseBuilder();
         httpResponseBuilder.setBody(clientLoader.getFile());
         httpResponseBuilder.setCode(200);
         httpResponseBuilder.setContentType("application/json");
         respnoseCallback.returnThis(httpResponseBuilder.build());
}

(Remember I am doing this from memory so spelling and names could be off but that should give you enough of a hint.)
Option 3 IMO is the best.
Check out for actual spelling
https://github.com/advantageous/qbit/blob/master/qbit/core/src/main/java/io/advantageous/qbit/http/request/HttpResponseBuilder.java
https://github.com/advantageous/qbit/blob/master/qbit/core/src/main/java/io/advantageous/qbit/reactive/Callback.java
If you download the source and search for usages of HttpTextResponse, HttpBinaryResponse and HttpResponse, you can see where we handle it specially so that you can do whatever you want.
Now how can you pay it forward.
You can fork the project and add some document.
You can write up a little tutorial on using final Callback in markdown and post it on your blog and send us a copy to put into our wiki. :)
contact me at richard  hightower at gmail dot com so we can connect and I can learn about how you are using QBit.

Hey on that last option. You need to add a bogus header.
There is a patch but it will be in the new release. See PR #399.


feat: support both user/pass/auth

Signed-off-by: Boris Glimcher<EMAIL_ADDRESS>

@jcastanos2 I opened #70 to fix naming and will merge this one since you approved in slack


Add ability to set a custom access checker when using CommandSpec

Instead of only allow permissions to be checked in CommandSpec, this will allow plugin developers to supply an custom Predicate<CommandSource> instead. This is a better idea than putting the code in the beginning of the CommandExecutor, because the access control checking can be kept in a central location now, at testPermission(CommandSource).

I like this, and I suggest you to squash commits.

@CrystalMageX Why not call this method testPermission as well?

I don't want to pull this without a handy singleton Function somewhere that keeps the same functionality present here as many devs won't care to do more indepth permission checks.

@kashike Having a Function instead of a Predicate would avoid having redundant code repeating the same code.
Consider the Predicate version of a magic plugin's /fireball command:
public boolean hasAccess(CommandSource src) {
    if (!(src instanceof Player)) return false;
    Player p = (Player) src;

    if (MagicalFactions.WIZARD != getFaction(p)) return false;
    if (getLevel(p) < 10) return false;

    return true;
}

public Optional<Text> getError(CommandSource src) {
    if (src instanceof Player)
        return Optional.of(Text.of("You must be a player to cast spells!"));
    Player p = (Player) src;

    if (MagicalFactions.WIZARD != getFaction(p))
        return Optional.of(Text.of("You must be a wizard to firewall players!"));
    if (getLevel(p) < 10)
        return Optional.of(Text.of("You aren't a wise enough wizard yet for this skill!"));

    // should never happen and only needed in this Predicate version
    throw new IllegalStateException("???");
}

Consider the same command with a Function:
public Optional<Text> hasAccess(CommandSource src) {
    if (!(src instanceof Player))
        return Optional.of(Text.of("You must be a player to cast spells!"));
    Player p = (Player) src;

    if (MagicalFactions.WIZARD != getFaction(p))
        return Optional.of(Text.of("You must be a wizard to firewall players!"));
    if (getLevel(p) < 10)
        return Optional.of(Text.of("You aren't a wise enough wizard yet for this skill!"));

    // No error message, not even a generic one, means no error
    return Optional.empty();
}

The Function version is 9 lines shorter, does not repeat code that could have put bugs in multiple places, and does not have to worry about sending an error message when there is no error.
@Zidane The method CommandSpec.builder().permission("some.permission.node") is still present. (https://github.com/SpongePowered/SpongeAPI/pull/1080/files#diff-4201653595f5b8d8b5f941fef8403bdbR115). It has only be re-written internally to use the permissionTester field, to simplify the code. All current plugins using the CommandSpec.builder().executor(commandExecutor).permission("pluginName.category,permission").build() syntax will still work.

I don't want to pull this without a handy singleton Function somewhere that keeps the same functionality present here as many devs won't care to do more indepth permission checks.

The "handy singleton Function", Builder.permission(), remains available, and developers that don't care about more in depth permission checks can safely ignore Builder.permissionTester() without any effect on the behavior of their plugin.

@CrystalMageX
Upon reviewing @kashike 's proposed change and your rebuttal, I still agree with @kashike solely on the premise that I seriously dislike the fact that a present Text object in the Optional means that they failed the permission check. That reeks of bad design.
Closing this as I think it needs re-thinking.


Add accounting

We need an accounting system to easily conduct benchmarks.

[ ] Gather lambda runtimes.
[ ] Count queue events.
[ ] Aggregate DynamoDB operation counts.
[ ] S3 operations count.
[ ] Storage fees.

Hello @mcopik , I have learned python recently like 5 days ago, and I want to try my hands to use what I have learned. I was reading this issue but wasn't able to understand.
If possible, can you provide me some feedback?

@nitilpoddar  JS will not be necessary for this project. FaaSKeeper cost is based on three components: Lambda runtimes, queue operations, and database access cost. What we want to is to be able to run a program using FaaSKeeper, and then estimate their costs.
In all functions, we already gather storage use statistics, and we use it in functions to count how often we update the storage. We also use this structure in faaskeeper-python to count the number of storage accesses on the client side.
What we want to do is to implement a method in the client library that would parse Lambda logs, extract storage logs, add this to the data accesses done on the client side, and export it.

Hello, @mcopik I tried making an AWS account specifically to learn about this project but failed because my debit card provider is not yet accepted by AWS. I am sorry I wasted your time.
If possible can you point me to a beginner-friendly project to which I could contribute?
Again! I apologize

@nitilpoddar No worries :-) I'm sad to hear that the free account will not work for you.
So there's another opportunity that we explored in the past, but it didn't work as expected - I opened issue #25. You can start working with the serverless offline framework and report progress there.


Can LION use sparsehead to predict object?

Thanks for your excellent work. do you try to use the sparse detection head to predict object? Like the https://arxiv.org/abs/2403.05817, will this method can save the inference time?
@happinesslz

SAFDNet

@qifeng22 Yes, it will. For sparse detection head (similar with SAFDNet and VoxelNext), you could refer to lion_models/lion_mamba_1f_1x_argo_128dim_sparse_v2.yaml, which could save much more inference time compared with dense detection head.


Segmentation fault when training the network numba falling back to object mode error

While training the network using the command
python ./pytorch/train.py train --config_path=./configs/car.fhd.config --model_dir=model_dir
I get a Segmentation Fault. Seems it is the issue with Numba and jit in the file core/geometry.py.
I am using latest numba version 0.45.1.
which is the correct version of numba to be used for this repository??
Error:
/home/anshul/deep_tracking/codes/second.pytorch/second/core/geometry.py:272: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: Invalid use of Function(<built-in function getitem>) with argument(s) of type(s): (array(float32, 3d, C), (slice<a:b>, list(int64), slice<a:b>))
In definition 10:
    TypeError: unsupported array index type list(int64) in (slice<a:b>, list(int64), slice<a:b>)
    raised from /home/anshul/deep_tracking/env/pytorch_py3/lib/python3.6/site-packages/numba/typing/arraydecl.py:71
In definition 11:
    TypeError: unsupported array index type list(int64) in (slice<a:b>, list(int64), slice<a:b>)
    raised from /home/anshul/deep_tracking/env/pytorch_py3/lib/python3.6/site-packages/numba/typing/arraydecl.py:71
This error is usually caused by passing an argument of a type that is unsupported by the named function.
[1] During: typing of intrinsic-call at /home/anshul/deep_tracking/codes/second.pytorch/second/core/geometry.py (288)

File "core/geometry.py", line 288:
def points_in_convex_polygon_jit(points, polygon, clockwise=True):
    <source elided>
        vec1 = polygon - polygon[:, [num_points_of_polygon - 1] +
                                 list(range(num_points_of_polygon - 1)), :]

  @numba.jit
/home/anshul/deep_tracking/codes/second.pytorch/second/core/geometry.py:272: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: cannot determine Numba type of <class 'numba.dispatcher.LiftedLoop'>

File "core/geometry.py", line 296:
def points_in_convex_polygon_jit(points, polygon, clockwise=True):
    <source elided>
    cross = 0.0
    for i in range(num_points):

 @numba.jit
/home/anshul/deep_tracking/env/pytorch_py3/lib/python3.6/site-packages/numba/compiler.py:742: NumbaWarning: Function "points_in_convex_polygon_jit" was compiled in object mode without forceobj=True, but has lifted loops.

File "core/geometry.py", line 273:
@numba.jit
def points_in_convex_polygon_jit(points, polygon, clockwise=True):
^

  warnings.warn(errors.NumbaDeprecationWarning(msg, self.func_ir.loc))
Segmentation fault (core dumped)

I have been using Numba version 0.43.1 successfully for a while.
0.44 has starting showing some deprecation warnings for me, see here for more details.

My question is the same as yours, do you solve your question?
python train.py train --config_path=/home/PointCloud/second.pytorch/second/configs/pointpillars/car/xyres_16.proto --model_dir=/home/PointCloud/models
Segmentation fault (core dumped)
I have been using gdb to find something:
(pointpillars) ~/PointCloud/second.pytorch/second/pytorch$ gdb python
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python...done.
(gdb) r train.py
Starting program: /home/freetech/anaconda3/envs/pointpillars/bin/python train.py
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x00007fff905b91ab in env_dealloc (env=0x7fff887c3280) at numba/_dynfunc.c:52
52	numba/_dynfunc.c: No such file or directory.
(gdb) where
#0  0x00007fff905b91ab in env_dealloc (env=0x7fff887c3280)
at numba/_dynfunc.c:52
#1  0x00005555556f584f in subtype_dealloc ()
at /tmp/build/80754af9/python_1565725737370/work/Objects/typeobject.c:1278
#2  0x0000555555661cf7 in tupledealloc ()
at /tmp/build/80754af9/python_1565725737370/work/Objects/tupleobject.c:246
#3  0x00005555556f584f in subtype_dealloc ()
at /tmp/build/80754af9/python_1565725737370/work/Objects/typeobject.c:1278
#4  0x00005555556686cb in frame_dealloc (f=0x555557d34130)
at /tmp/build/80754af9/python_1565725737370/work/Objects/frameobject.c:470
#5  _PyEval_EvalCodeWithName ()
at /tmp/build/80754af9/python_1565725737370/work/Python/ceval.c:3946
#6  0x0000555555669860 in _PyFunction_FastCallDict ()
at /tmp/build/80754af9/python_1565725737370/work/Objects/call.c:376
#7  0x0000555555721232 in do_call_core (kwdict=0x7fff88ed1c30,
callargs=0x7fff88f185f0, func=0x7fff88f5c7a0)
at /tmp/build/80754af9/python_1565725737370/work/Python/ceval.c:4645
#8  _PyEval_EvalFrameDefault ()
at /tmp/build/80754af9/python_1565725737370/work/Python/ceval.c:3191
#9  0x0000555555668d09 in _PyEval_EvalCodeWithName ()
at /tmp/build/80754af9/python_1565725737370/work/Python/ceval.c:3930
#10 0x00005555556b7f57 in _PyFunction_FastCallKeywords ()
at /tmp/build/80754af9/python_1565725737370/work/Objects/call.c:433
---Type  to continue, or q  to quit---

While training the network using the command python ./pytorch/train.py train --config_path=./configs/car.fhd.config --model_dir=model_dir I get a Segmentation Fault. Seems it is the issue with Numba and jit in the file core/geometry.py. I am using latest numba version 0.45.1. which is the correct version of numba to be used for this repository??
Error:
/home/anshul/deep_tracking/codes/second.pytorch/second/core/geometry.py:272: NumbaWarning:
Compilation is falling back to object mode WITH looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: Invalid use of Function(<built-in function getitem>) with argument(s) of type(s): (array(float32, 3d, C), (slice<a:b>, list(int64), slice<a:b>))
In definition 10:
    TypeError: unsupported array index type list(int64) in (slice<a:b>, list(int64), slice<a:b>)
    raised from /home/anshul/deep_tracking/env/pytorch_py3/lib/python3.6/site-packages/numba/typing/arraydecl.py:71
In definition 11:
    TypeError: unsupported array index type list(int64) in (slice<a:b>, list(int64), slice<a:b>)
    raised from /home/anshul/deep_tracking/env/pytorch_py3/lib/python3.6/site-packages/numba/typing/arraydecl.py:71
This error is usually caused by passing an argument of a type that is unsupported by the named function.
[1] During: typing of intrinsic-call at /home/anshul/deep_tracking/codes/second.pytorch/second/core/geometry.py (288)

File "core/geometry.py", line 288:
def points_in_convex_polygon_jit(points, polygon, clockwise=True):
    <source elided>
        vec1 = polygon - polygon[:, [num_points_of_polygon - 1] +
                                 list(range(num_points_of_polygon - 1)), :]

  @numba.jit
/home/anshul/deep_tracking/codes/second.pytorch/second/core/geometry.py:272: NumbaWarning:
Compilation is falling back to object mode WITHOUT looplifting enabled because Function "points_in_convex_polygon_jit" failed type inference due to: cannot determine Numba type of <class 'numba.dispatcher.LiftedLoop'>

File "core/geometry.py", line 296:
def points_in_convex_polygon_jit(points, polygon, clockwise=True):
    <source elided>
    cross = 0.0
    for i in range(num_points):

 @numba.jit
/home/anshul/deep_tracking/env/pytorch_py3/lib/python3.6/site-packages/numba/compiler.py:742: NumbaWarning: Function "points_in_convex_polygon_jit" was compiled in object mode without forceobj=True, but has lifted loops.

File "core/geometry.py", line 273:
@numba.jit
def points_in_convex_polygon_jit(points, polygon, clockwise=True):
^

  warnings.warn(errors.NumbaDeprecationWarning(msg, self.func_ir.loc))
Segmentation fault (core dumped)

@anshulpaigwar  Have you found correct version of numba for this repository?


fix answer area

Codecov Report

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

@@           Coverage Diff           @@
##           master      #91   +/-   ##
=======================================
  Coverage   58.06%   58.06%
=======================================
  Files           9        9
  Lines        1326     1326
=======================================
  Hits          770      770
  Misses        466      466
  Partials       90       90

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 844c649...aa852b2. Read the comment docs.


Control-comments / comment commands

I think we still need control comments to control some of compiler behavior. We may need some conditions in component code based on target framework. For most of the parts environment vars will be enough, but we can’t do it with imports, when we may need different assets for different frameworks. Something like eslint has:
// phenome-line-vue
// phenome-next-line-react

Fixed with #9dc2113
Added support for following command comments:
// phenome-{compiler}-line
// phenome-{compiler}-next-line

// e.g.
// phenome-vue-line
// phenome-react-next-line


loss of data due to null values in between

When the data has null values between, it would populate rest of the consecutive columns as null as well.
for ex:
col1|col2|col3|col4
a|b||d
Above record would null out col4 as well due to null in col3.

It's been a while since the last release. Could we maybe have a new one to include the latest patches?
There is a bunch of patches I had to add to the Debian package to make it work, please consider importing these: https://salsa.debian.org/postgresql/postgresql-multicorn/tree/master/debian/patches
Thanks.

@df7cb I've merged that patch about month ago. I will be looking more closely to one more, to find what is regression there.


[$250] Incorrect font in Distance rates table

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.59-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @shawnborton
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1712175981976759
Action Performed:
Break down in numbered steps
Go to Workspace Settings > Distance rates and view the rates table
Expected Result:
Describe what you think should've happened
The enabled/disabled text should match other parts of the workspace editor where we use our label font size (13px) and our textSupporting color
Actual Result:
Describe what actually happened
Different font
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:

Which of our officially supported platforms is this issue occurring on?

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01195bf27980258b6e
Upwork Job ID:<PHONE_NUMBER>603196928
Last Price Increase: 2024-04-09

Issue OwnerCurrent Issue Owner: @dylanexpensify

I'm unable to repro in staging. I think it was fixed by #39557

Correct, this one is done as the PR is linked, we are only holding this as open to pay @eh2077 for their testing and review.

Updated with the hold for payment

@eh2077 sent invite to apply!

Done!


Added wrapper types and Codable support

Added wrapper types for JS APIs (JSType)
Added SwiftFoundation support for porting Foundation code
Added JSEncoder for Codable support
Added Promise support (JSPromise)
Added Web Bluetooth API support (tested on Chrome)
Added support for console.log and assertions


After updating to Obsidian v1.2.7, AQS stopped working

Console logs:
Command failed to execute:  obsidian-another-quick-switcher:search-command_recent-search
app.js:1 TypeError: Cannot read properties of undefined (reading 'instance')
    at AppHelper.getStarredFilePaths (plugin:obsidian-another-quick-switcher:1812:59)
    at AnotherQuickSwitcherModal.indexingItems (plugin:obsidian-another-quick-switcher:2477:22)
    at new AnotherQuickSwitcherModal (plugin:obsidian-another-quick-switcher:2405:10)
    at showSearchDialog (plugin:obsidian-another-quick-switcher:3907:17)
    at Object.callback (plugin:obsidian-another-quick-switcher:4000:11)
    at bU (app.js:1:1677780)
    at e.executeCommand (app.js:1:1679216)
    at e.onTrigger (app.js:1:1093798)
    at e.handleKey (app.js:1:1007319)
    at e.handleKey (app.js:1:1007432)

Think it has to do w/ starred file paths being phased out as of this release (AppHelper.getStarredFilePaths seems to be the culprit). Thanks for looking in to this and apologies if this is not an issue, but just has to to with my outdated plugin or lack of Obsidian skills :)

Hi, @leterhaar :)
Unfortunately, I couldn't reproduce it. Could you tell me the reproduction steps in the sandbox vault? (AQS version is v8.9.2)

I’m glad to hear that!


[New Port Request] SimpleAmqpClient

Library name: SimpleAmqpClient
Library description: SimpleAmqpClient is an easy-to-use C++ wrapper around the rabbitmq-c C library. It derives inspiration from the puka AMQP library in that it abstracts away the underlying AMQP wire concept of channels and uses them as an error/consumer scope. This should make writing simple single-threaded AMQP-enabled apps easy.
Source repository URL: https://github.com/alanxz/SimpleAmqpClient

If you wish to add this port in the future, you can reopen this issue, but we're closing it for now.


Add datafieldenc = base64 flag

This patch utilises the new base64 enc flag for IPFS to allow the Data field in a MerkleDAG node to be sent as Base64 and decoded to byte array before being hashed and stored.
See IPFS PR here https://github.com/ipfs/go-ipfs/pull/2520
See longer IPFS discussion here https://github.com/ipfs/go-ipfs/issues/1582
See net-ipfs-api serialization issue here https://github.com/TrekDev/net-ipfs-api/issues/4

@slothbag Thanks for trying to get the Ipfs dev's attention about this issue. I'll be keeping a close eye on it.

IPFS devs merged my patch.. All systems are go for this to be merged.. If you want to of course :)

@slothbag. Congrats. I'll merge yours into develop.

@slothbag. Congrats. I'll merge yours into develop.


Different host reps v2

resolves #193
resolves #194
New letter alignments using px instead.
Foreign profile pics in Author and Friends cards added.
EditProfile now uses redux which Sidebar is connected to so it'll update the profile picture when the displayName in profile is edited.
More spacing added to 404 page and author page.

old font looks better :(


Autocompletions not being found for numpy

I have installed LSP-pylsp on ST4 and generally everything is working well.
Only problem I have is that it isn't providing me with any autocompletions for numpy.
I have everything in a venv and am pretty sure I'm pointing to the right location with the following in a .sublime-project file:
"settings": {
    "LSP": {
        "LSP-pylsp": {
            "command": [
                "/Path/To/venv/my_venv/bin/pylsp",
            ],
            "settings": {
   	        // Jedi config
   	        "pylsp.plugins.jedi.environment": "/Path/To/venv/my_venv",
   	        // Linter config:
   	        "pylsp.plugins.pycodestyle.enabled": false,
   	        "pylsp.plugins.flake8.enabled": true,
   	        "pylsp.configurationSources": ["flake8"],
   	        // formatter config
   	        "pylsp.plugins.autopep8.enabled": false,
   	        "pylsp.plugins.pylsp_black.enabled": true,
   	        "pylsp.plugins.pylsp_black.cache_config": true,
   	        "pylsp.plugins.pylsp_black.line_length": 88,
   	        "pylsp.plugins.pylsp_black.preview": true,
            },
        },
    },
},

Generally I am getting autocompletion.
If I start typing import it suggests modules in my venv:

It then suggests autocompletions for functions in that module:

However, this is not working for numpy.
It detects numpy in my venv when I come to import it (see image above), but does not provide any numpy autocompletion when using it:

If you can work out what's going wrong I'd be really grateful, and apologies if I've missed something somewhere - I've been battling with setting this up all afternoon. Thanks.

Interestingly it does seem to work for an older version of numpy I have (1.20.3).
If I upgrade this to the version I was using above (1.23.4) I then experience the same error.
Further investigation suggests this is an issue with Jedi following changes to numpy in recent versions and is still open.
davidhalter/jedi#1864
Guess this can probably be closed/removed as it's seemingly not an issue with this codebase.

Yep, looks like a Jedi issue.
Maybe can ping the jedi issue since it didn't have any activity in a while.


Changing RootState from within Sub-Saga

Hello,
Perhaps a good addition to this repo would be to somehow outline how one would change RootState from within a sub-component saga (GitHubRepoForm for example).
I think the most simple answer involves changing ./internals/startingTemplate/src/utils/types/injector-typings.ts to incorporate the full RootState but perhaps I am incorrect in this assumption?
Thanks

What do you mean by changing the RootState?
Currently GitHubRepoForm saga changes the redux state. There is no such thing as changing the RootState. Do you mean changing the type definitions?

No, I mean accessing and changing ThemeState from within GithubRepo saga or otherwise.

ThemeState is a redux state as so as the githubrepoform. You just dispatch an action like this one. You can dispatch any action from any slice. For example here we update the theme with an action

Nice one Can, saga is new to me! :+1
On Mon, 10 Aug 2020, 17:12 Can Sahin<EMAIL_ADDRESS>wrote:

ThemeState is a redux state as so as the githubrepoform. You just dispatch
an action like this one
https://github.com/react-boilerplate/react-boilerplate-cra-template/blob/91765925a409150f2e449d9bbdfcad114565b8f4/src/app/containers/GithubRepoForm/saga.ts#L25.
You can dispatch any action from any slice. For example here
https://github.com/react-boilerplate/react-boilerplate-cra-template/blob/91765925a409150f2e449d9bbdfcad114565b8f4/src/app/containers/ThemeSwitch/index.tsx#L17
we update the theme with an action
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/react-boilerplate/react-boilerplate-cra-template/issues/62#issuecomment-671448077,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAZYAR2YFAMAGSO35A52XNDSAAL5FANCNFSM4PXAL4RQ
.


Missing demo.c

The docs refer to file called demo.c I couldn't see it (easily) unless I'm being silly and missed it.

Bitbucket: https://bitbucket.org/zserge/jsmn/issue/19
Originally reported by: Alex Key
Originally created at: 2013-09-17T21:46:43.014

Readme edited in #1d20b6021972

Original comment by: Serge Zaitsev

Correct, that was old layout. Still, I will still need to add a simple usage example.

Original comment by: Serge Zaitsev


Sublime Text doesn't set the initial cursor position

Setup
Browser: Safari
Editor: Sublime Text
Broken in Sublime Text
https://user-images.githubusercontent.com/1402241/224997186-292860e2-d530-44ec-a6d2-5480f10a3ef7.mov
Working in VS Code
https://user-images.githubusercontent.com/1402241/224997202-d7b88c90-6713-4b10-a2c6-121168e81a3f.mov
Related

#258

Hi Federico, I ran into this issue, so I looked into it and tried to submit a fix: https://github.com/GhostText/GhostText-for-SublimeText/pull/9


[Bug]: 收藏夹无法正常显示Favorites do not work effectively

Bug Description
如果你在收藏夹里放这么多网站，那它就会这样，网站无法完全显示，还有一部分网站
会被隐藏。
If you put so many sites in your favorites, then it will be like this, the site will not be fully displayed, there are still parts of the site
Will be hidden.
Relevant Screenshot

To Reproduce
在收藏夹里添加二十多个网址
Add more than 20 urls to your favorites
Obsidian Version
1.6.7
web-browser-only

[X] Did you install only one web browser plugin?

Checklist

[X] I updated to the latest version of the plugin.

不，它现在完全不工作了
No, it doesn't work at all now

真是见鬼我的老天爷


Remote builds documentation needs to be easily understandable at a glance from the top of the documentation page.

To address this issue I want to share this draft for a revision to the overview of remote builder that should make the purpose much clearer and much more concise.
Concept
Remote Builder is an open-source tool for Unity projects that makes it easy and reliable to run automated tasks. Instead of running them locally, Remote Builder starts a Cloud server on-demand and streams the results back to you.
[insert graphic of pushing an object to remote machine]
Remote Builder can cache large files and imported resources in Cloud Storage to make builds fast. Remote Builder only needs to pull the files that change to run more than once.
The most common automated task Remote Builder is used for is to Build, Test and Deploy a Unity project.
However, you can use Remote Builder to run any automated work that requires the Unity Editor.
Use Cases
Cloud build system with support for large projects
[insert size graphic]
If you're building large projects, many Cloud CI/CD services will not offer the large disc space needed for game development. Remote Builder offers support for massive projects and optimizes the cost well with caching. Even very large projects are not particularly expensive.
Flexible burst workloads
[insert burst graph graphic]
Remote Builder's powerful caching gives it the ability to accelerate scale-up to large numbers of tasks much faster than a dedicated server. With Remote Builder, you can scale up to massive numbers of builds and back down to zero as needed on-demand.
This gives you the flexibility to forget about your build system and focus on what you're building.
Most automated workloads fluctuate dramatically over a project's lifespan, especially if one is successful and needs to evolve rapidly. Forecasting the number of dedicated build machines that will be required, estimating their specs, handling caching, and scaling dedicated machines up and out can be a significant investment especially for a lightweight project.
Managing the accompanying build machines can be a significant time cost that is easy to underestimate. And not being able to quickly deliver CI/CD capabilities at scale can be a big drag on a team/organization's agility.
Fast via optimized caching
[insert speed/caching graphic]
Remote Builder caches git LFS/large files and your Unity Library folder into Cloud storage to make builds as fast as possible. This reduces bandwidth costs and startup time significantly.

Going to update the above to be consistent and use the term "job" as the unit of work Remote Builder does.
I like the term job because it is consistent with Unity's job system.
I like the idea of renaming Remote Builder to further reinforce this; to something like "Cloud Job".

Started in:
https://github.com/game-ci/documentation/tree/cloud-runner


Stream Slicing

I wanted to start a discussion on stream slicing. In particular, I wanted to go over why stream slicing could be helpful, as that has a major impact on how it is designed, implemented, and used.
The major benefit of slicing, is isolation. It's an API enforced boundary to data access.
I think the clearest example of why stream slicing would be useful is to consider a compressed ZIP/RAR/7Z file with various types of files. Each file type may have its own stream parser to handle the data, and those stream parsers may be written later than the ZIP parser, or be unknown to it.
Some of the file parsers may be a bit buggy or ill behaved. In particular, some of them may have been written to only consider the case of reading a single file from disk, and processing the entire contents. There may be no header data to indicate the data length, or the header data is ignored. This might actually be typical behaviour for some movie file parsers, particularly ones that play past the stated end of the file. These parsers might rely on hitting the end of stream to know it is done processing. Others might try to read a file from disk, such as a graphics file format, but the parser is old and can't handle a newer extension to the file format, and so aborts with an error before reading all of the data. Any data unexpectedly left in the stream might have unintended consequences for future stream processing.
There might also be security concerns, where some internal files contain sensitive info, perhaps passwords, and you want to protect that data from unknown parsers that shouldn't have access to it. Perhaps one buggy or ill behaved parser reads past the end of its data, and fails on the contents at the start of the next file, containing passwords, and those passwords end up getting dumped to a publicly readable log file detailing the parse error.
This is why you want isolation. It puts a limit on the damage that bad parsers can do. It prevents problems processing one internal file, from spreading to the processing of other internal files.
Slicing is able to enforce this isolation without doing wasteful intermediate steps, such as extracting to a temporary file and then running the parser on that. It sidesteps the issue of cleaning up temporary files, particularly after bugs, crashes, or power loss.
Side note: Slicing maps nicely over the concept of solid archives. In a solid archive, it's as if all files are concatenated into one big stream before being compressed, with only the index containing information to split that data apart into individual files. In such an archive, the compressed form of a file might not even end on a byte boundary. The compression scheme might use a variable number of bits for various codes, and end 3 bits into a byte, with the remaining 5 bits being part of the compressed stream for the next file. In this case, one solid stream is fed into a decompressor, and the output stream is sliced into files.

I don't have a lot of experience here. Maybe one way to support this better is to create a function on MemoryStreamReader that creates a new MemoryStreamReader from an existing one with more restrictive boundaries? We could also create a function of FileStreamReader that returns a FileSliceReader in a similar fashion?
We are using the Lzh compression in VolFile. Maybe that is a place to start experimenting with how we want the stream library to interact with some sort of compression algorithm?
void VolFile::ExtractFileLzh(std::size_t fileIndex, const std::string& pathOut)

Do we want to close this issues since we have the ability to slice both a memory and a file stream? We can even re-slice an existing FileSliceReader.

We do indeed have a working usable slice implementation now.
I kind of feel there are still some design considerations that were never discussed. Though perhaps some of those considerations are more generically related to the stream design, rather than just the slicing aspect of it. In terms of slicing though, I feel there is more that can be done with the design.

One thing I'd like to support, is having a generic way to slice any stream, even if it doesn't provide it's own slice implementation. In particular, the FileSliceReader class has very little of its implementation that depends on the specifics of FileStreamReader. The actual dependencies are the private member variable type, and the constructor. If this class was a template for the internal stream type, or if it simply took a reference to an existing stream in the constructor, it could potentially wrap any stream type into a slice.
A possible template solution:
template <class InternalStream>
class SlicedStream {
  SlicedStream(uint64_t startingOffset, uint64_t sliceLength, /* Forwarded args */) :
    startingOffset(startingOffset),
    sliceLength(sliceLength),
    internalStream(/* Forwarded args */)
  {}

private:
  InternalStream internalStream;
};

A possibe interface reference solution:
class SlicedStream {
  SlicedStream(uint64_t startingOffset, uint64_t sliceLength, Stream& internalStream) :
    startingOffset(startingOffset),
    sliceLength(sliceLength),
    internalStream(internalStream)
  {}

private:
  Stream& internalStream;
};

The first has clear semantics concerning ownership of the internal stream. Since it uses containment, when the slice is destroyed, the constructed internal stream is also destroyed. A downside is it requires constructing a new internal stream to take a slice, which might not always be appropriate. How do you construct an object to represent the 3rd file in a solid .7z archive? This might be easier to accomplish if you had access to the internal stream to advance the state, or otherwise manipulate it into the correct starting state.
The second by-reference wrapping solution gives greater access and control of the internal stream, allow arbitrary setup before the slice object is created. However, it has less clear semantics concerning ownership. It's probably unexpected to call delete on the reference, and so the internal stream wouldn't be automatically cleaned up when the slice is destroyed. In practice though, it's likely a slice object would just be a local variable wrapping another local variable, so everything would work just fine. However, if you tried to new an object, or return one from a function by pointer or reference, the ownership of the internal stream could become an issue.

The above ownership issue also affects the MemoryStreamReader class. It does not own the internal buffer, but rather just borrows access to a pre-existing buffer by taking a pointer to it in the constructor. There have been a few cases in development where it might have been easier and quicker to get to a working solution (though sometimes sub-optimal) if we had a memory buffer stream that owned its own buffer, rather than being a simple view into it. In particular, returning a newly allocated MemoryStreamReader object with a newly allocated buffer can be a problem, as the buffer will be leaked memory.
StreamReader* GetStream() {
  char* buffer = new char[1024]; // Who will clean this up?
  Initialize(buffer);
  auto stream = new MemoryStreamReader(buffer, 1024);  // Not me, I'm just a simple view. My destructor is empty!
  //delete[] buffer; // Clearly this would be a bad idea. Last chance though
  return stream;
}

The borrowed view also has benefits, in particular, it makes it dead simple to create a slice of the stream, since each slice is still using the same borrowed buffer, with no copying of buffer data required. More generally, it allows for easy re-use of the same buffer of data.
char buffer[1024]; // Local variable, automatically cleaned up on function exit
Initialize(buffer);

// Process data
MemoryStreamReader stream1(buffer, 1024); // Borrow buffer, creating view into it. Object is local variable
Header header = ParseHeader(stream1);
auto someData = ProcessChunk1(stream1.slice(header.chunk1Size)); // Easy slicing, without buffer copy

// Re-process data
MemoryStreamReader stream2(buffer, 1024); // Crate another view, again no buffer copy. Object is local variable
auto checksum = ChecksumStream(stream2);

The view offers higher performance solutions, while a class which owns a buffer might provide more convenience in some situations. In particular, views are often a better choice when passing data in to functions, while buffer ownership is often more convenient when returning data from functions.
For this reason, I've been tempted to rename the MemoryStreamReader to something like MemoryViewStreamReader, and adding an alternate MemoryBufferStreamReader. I'm open to better suggestions on the names. Also open to discussion on if this is useful enough to implement.
Note: A slice of a MemoryBufferStreamReader could be a MemoryViewStreamReader to avoid copying. We could also support a .Copy() operatoin, which for either memory stream class could return a MemoryBufferStreamReader.

I wanted to formalize some additional thoughts on this.
First, there is the concept of Random Access Memory (RAM) objects. I think this goes beyond simply being able to seek and read or write. I think a proper RAM object combines seeking and reading into a single atomic operation. There is no seeking which is independent of a read or write.
Memory and disk both allow for random access. At least, that's true of disk access at lower layers within the OS. The OS might present both a sequential streaming read API (commonly used), as well as a concurrent random access model (higher performance). For example, in Windows, there is both a ReadFile and a ReadFileEx. The later makes use of an OVERLAPPED structure, which contains an offset. By using the later function, with an offset, there is no distinction between seeking and reading, its all one operation. This is similar to memcpy with an array of memory, which takes both a position and a length.

If you want to build a seekable stream, a fairly natural way is to combine a RAM object, with a stream position.
The MemoryStreamReader class is an example of combining a RAM object (the array buffer), with a stream position.
Along with this natural construction for a seekable stream, you also get really easy slicing. If you want a sliced stream you combine the RAM object of the parent stream with a new stream position.
In a previous reply above, I discussed ownership semantics. That is relevant here. In the case of the proposed MemoryViewStreamReader, the RAM object is shared between the parent and the slice. The lifetime of the slice is limited by the lifetime of the parent, since otherwise the referenced RAM object which they share would become a dangling pointer. For the proposed MemoryBufferStreamReader, the RAM object is copied from the parent, producing a new RAM object in the slice. The slice is then fully independent of the parent, and can have its own lifetime.

A RAM model plays well with concurrency. A stream model does not.
With a RAM model, there is no shared mutable state between separate read/write operations. In particular, there is no shared position. Each seek+read/write is atomic, and multiple concurrent calls will not interfere with each other. This is true even if multiple calls to the same object are made on separate threads.
For a stream, the stream position is a shared mutable state. The seek and the read/write are separate non-atomic operations, which both update shared state. Further, considering each read/write updates the stream position at the end, even a chain of read/write operations can be considered to have implicit embedded seeks in it. This makes the operations order dependent. If you were to interleave calls to the same object, you could be separating a read/write from a previous seek. For single threaded code, this could be done carefully, such that a seek is always done after an interleaved operation. For multithreaded code, there is no hope other than to throw synchonization primitives around any seek + chain of read/write operations.

A less natural way of producing a seekable stream is to use a data source which is already stream-like, and provides a seek operation which is independent from the read/write. This is what happened with FileStreamReader. The underlying ifstream object is stream-like, with independent seek and read. Because such sources have their own position, you likely delegate seeks to the underlying data source.
When slicing a stream object with a stream-like data source, you'll probably need to copy the underlying data source. This is why FileSliceReader had to duplicate/reopen the underlying ifstream object. If you instead try to slice using a shared data source, you run into challenges with concurrency. This comes from the parent and the slice sharing access to the same mutable state, the stream position. Interleaving calls on the parent and the slice, supposedly independent streams, could break apart paired seek + read/write operations (including chains of read/write operations) on the underlying stream-like data source.
An alternative design is to duplicate the stream position in the stream class, and seek before each read/write operation. Such a design is much less efficient, likely producing many more seek calls than are necessary, though it does offer some protection when slicing with a shared underlying data source. With such a design, you would be protected from concurrency problems when both the parent and the slice access the underlying data source within a single thread. For multithreaded code, you'd still need sychronization primitives to ensure the seek + read/write operation on the underlying stream are atomic. This could be done within the read/write operation of the stream class, so there are some conveniences gained there. However, synchronization primitives add overhead, and would slow down even the single threaded case.
In short, you probably still want to stick to copying the underlying data source if it is at all stream-like.

So that's the theory. I'm still working on what it should mean in practice.
For the MemoryStreamReader class, the buffer portion could be extracted to a RAM type Memory class.
I believe it would be possible to use templates to build seekable streams from a RAM object, including slice support. Hence the MemoryStreamReader and MemoryStreamWriter classes could become one-line instantiations of such a template. The same could be done for files if a RAM type file object existed.
It seems possible to write a RAM type object for File access. However, I'm not aware of any C/C++ standard library methods that allow for concurrent file access. I know such functions exist on Windows (overlapped I/O), and I've just found some stuff on Linux (aio = asynchronous I/O), though I really don't care to program at that level. It's too much effort to go that low, and it limits the platforms the code will compile on. Another option is to fake it with a wrapper class that presents a RAM like interface. That falls prey to some of the concurrency issues mentioned though.
Templates could also be used for non-RAM type data sources with copy constructors to implement streams with slicing. For non-RAM type data sources without copy constructors, perhaps it would still be possible using a bit of class specific customization. We should probably stay away from implementing non-RAM type data source classes that try to slice without copying.

It seems like the strongest appeal for the RAM type reader/writer would be allowing access to the same reader/writer by multiple threads simultaneously? This seems interesting, but beyond my experience. I have occasionally coded with multiple threads, but I would always limit reading/writing data to a single thread. For example, the primary UI thread would update a status bar while a background thread would load a file.
Are there other use cases beyond multi-threading?
I don't feel like I can contribute much to this part of the codebase due to lack of experience and knowledge on the subject. Would still be happy to read over any developed code though to look for errors and ease of readability.

Yes, there are benefits beyond multi-threading. This relates to the coupling of stream position between parent and slice, and allows us to easily keep them independent. In particular, if you slice a stream, pass the slice to a function for processing, and then resume processing on the parent stream afterwards in the parent function, there should be no odd interactions between the stream positions of the slice and the parent, even though operations were interleaved between the two.


Update README.md

Revise the list of features
Remove rav1erepl.rs from the Design section

More suggestions/corrections welcome.

@vibhoothiiaanand
Agreed with most of these.
Fine directional prediction I think is covered in the prediction modes line.
The intra edge filter might fit into a new line about the different supported filters, but it doesn't bring a large improvement so it's probably not worth mentioning on its own.
I'll update this with the rest in a bit.

Can we land it now? (and then @vibhoothiiaanand patch)


Adds pagination on the events page

Adds pagination on the events page. Displays 50 records per page.
Adds will_paginate gem
FactoryBot for event,
events_controller_spec
fixes part of #690

Coverage increased (+0.007%) to 81.954% when pulling a0c678378e32855fb65b206efebe4fb2ce45c523 on 690-pagination-events-page into d9b88bdf5e0f1fd58538c4fc14694cea823aaf7c on master.


Formatter: Implicit concatenation in compare expressions

Summary
This PR implements the logic for breaking implicit concatenated strings before compare expressions by building on top of  #7145
The main change is a new BinaryLike enum that has the BinaryExpression and CompareExpression variants. Supporting both variants requires some downstream changes but doesn't introduce any new concepts.
Test Plan
I added a few more tests. The compatibility improvements are minor but we now perfectly match black on twine :partying_face:
PR

project
similarity index
total files
changed files

cpython
0.76083
1789
1632

django
0.99966
2760
58

transformers
0.99928
2587
454

twine
1.00000
33
0

typeshed
0.99978
3496
2173

warehouse
0.99824
648
22

zulip
0.99948
1437
28

Base

project
similarity index
total files
changed files

cpython
0.76083
1789
1633

django
0.99966
2760
58

transformers
0.99928
2587
454

twine
0.99982
33
1

typeshed
0.99978
3496
2173

warehouse
0.99823
648
23

zulip
0.99948
1437
28

Current dependencies on/for this PR:

main

PR #7145

PR #7193   👈

This comment was auto-generated by Graphite.

Merge Activity

Sep 8, 5:32 AM: @MichaReiser merged this pull request with Graphite.


make channel_id_type optional in transport_channel_id()

Codecov Report

Merging #1353 into master will increase coverage by 0.71%.
The diff coverage is 39.62%.

@@            Coverage Diff             @@
##           master    #1353      +/-   ##
==========================================
+ Coverage   59.05%   59.77%   +0.71%
==========================================
  Files          59       59
  Lines       12645    12930     +285
==========================================
+ Hits         7468     7729     +261
- Misses       5177     5201      +24

Impacted Files
Coverage Δ

autobahn/wamp/cryptosign.py
53.72% <16.66%> (+0.68%)
:arrow_up:

autobahn/asyncio/util.py
23.52% <23.07%> (+0.45%)
:arrow_up:

autobahn/twisted/util.py
48.21% <34.78%> (-2.95%)
:arrow_down:

autobahn/asyncio/rawsocket.py
29.32% <60.00%> (+1.01%)
:arrow_up:

autobahn/asyncio/websocket.py
46.83% <100.00%> (ø)

autobahn/twisted/rawsocket.py
56.10% <100.00%> (ø)

autobahn/twisted/websocket.py
60.45% <100.00%> (ø)

autobahn/util.py
57.31% <0.00%> (-3.42%)
:arrow_down:

autobahn/asyncio/component.py
32.36% <0.00%> (-0.38%)
:arrow_down:

... and 30 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 a62a0eb...08f0b63. Read the comment docs.

I added a comment here: https://github.com/crossbario/autobahn-python/pull/1351


What could be the reason that Holidays do not appear under Org-wide settings?

@jacobjohnk
thank you for submitting feedback.
I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome let me know if it is something that can be called out in the docs.
Please follow this link to contact support for business products:https://docs.microsoft.com/office365/admin/contact-support-for-business-products
Please keep us posted here on the resolution so we can feed whatever information you discover into the content.


Set-up kanban

Link github project: https://github.com/EvansSnave/Space-traveler/projects/1
It's just me in this project.

Hi @EvansSnave,
Your project is complete!  There is nothing else to say other than... it's time to merge it :shipit:
Congratulations! 🎉

Highlights

Kanban board setup ✔

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this PR. However, I strongly recommend you to take them into account as they can make your code better. Some of them were simply missed by the previous reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something is not 100% clear.
Please, remember to tag me in your question so I can receive the notification.

As described in the Code reviews limits policy  you have a limited number of reviews per project (check the exact number in your Dashboard). If you think that the code review was not fair, you can request a second opinion using this form.


Binary download starts multiple times

Hey there
I know this might be a duplicate to #31 but those comments didn't help me. 😞
The post-update-cmd doesn't install the binary in the bin nor in the vendor/bin folder. The strange thing is that the download starts multiple times (see log below).
My composer.json
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/stefanzweifel/php-phantomjs"
        }
    ],
    "require": {
        ...
        "jonnyw/php-phantomjs": "dev-master",
    },
    "scripts": {
        "post-install-cmd": [
            "PhantomInstaller\\Installer::installPhantomJS"
        ],
        "post-update-cmd": [
            "PhantomInstaller\\Installer::installPhantomJS"
        ]
    },
    "config": {
        "bin-dir": "vendor/bin"
    }
}

I use my own fork of jonnyw/php-phantomjs, so I can use your newest release 2.1.1-p4.
Now if I deploy my app or update dependencies on my linux boxes, I see the following output (verbose mode activated).
> post-update-cmd: PhantomInstaller\Installer::installPhantomJS
  - Installing phantomjs (2.1.1)
Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
    Downloading: 100%
    Extracting archive
  - Installing phantomjs (2.1.1)
Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
    Downloading: 100%
    Extracting archive
  - Installing phantomjs (2.1.1)
Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
    Downloading: 100%
    Extracting archive
  - Installing phantomjs (2.1.1)
Downloading https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2
    Downloading: 100%
    Extracting archive

This only happens in my local environment where I use laravel/homestead and on my production server which is a Digital Ocean Droplet with Ubuntu 16.04. I'm also running php7.0 everywhere.
If I run composer run-script post-update-cmd in my host system (OS X) the binary get's downloaded correctly.
It don't use our package directly. I use jonnnnyw/php-phantomjs, but the error comes from your package. That's why I created the issue here.
Does anyone might have a solution to this problem?

My current workaround is wget the binary from bitbucket and extracting / moving it with shell commands. But I think it would be better, if I could use the built in downloader :)

I dig through the Installer class and found the root of the problem.
The download starts 4 times, because the installer tries to install older versions of phantom-js. Currently there are 4 versions available. Link to loop
Second, only the \Composer\Downloader\TransportException gets catched. The installer fails silently if something else happens. In my case the bz2 extensions is not activated:
"unable to decompress bzipped phar archive  "/home/vagrant/code/project/vendor/jakoch/phantomjs/b82b82cf21fc412368fb8125c6a39f11.bz2" to temporary file, enable bz2 extension in php.ini
I digg further ...

Hey Stefan!
Thank you for reporting this issue.
The automatic version lowering for downloads kicks in and downloads are retried, not because the transport itself failed, but the extraction of the downloaded archive (because of the missing/not loaded bz2 extension).
We could do two things to address this issue:

We could check with extension_loaded bz2 at the top inside installPhantomJS() and exit early. We have to take a special case for Windows into account, where this extension isn't needed, because zip file, not tar.gz.

Or add another catch inside download(), this time for a more unspecialized exception - so that the extraction error catched. But then the already downloaded file dangles somewhere in a Composer or main temp folder.. not so good.

(If i remember correctly, it was a normal catch all, before i merged a patch to catch the TransportException. Grr.)
I guess i will go with 1 and add the extension_loaded() check and then output a message.

But I would like to create a PR, so every error get's reported to the CLI. Is that okay for you?

Of course! I would be happy to add your PR.

Will get right to it. 🎉


Local Package Identifiers not currently supported in Gitea

Description
When running Gitea as a private PyPi package registry there may be packages that do not match the canonical public version and instead use a local version identifier as outlined in PEP-0440.  An example of this could be an internally forked version of certify https://pypi.org/project/certifi/#files that includes custom CAs specific to that organization.
When attempting to use these packages with Gitea it will return a 400 Bad Request with "invalid name or version"
Gitea Version
1.17.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
https://gist.github.com/Racer159/8aa895f1ffd62fb56d567d26e812c973
Screenshots

Git Version
2.38.0
Operating System
popOS 22.04
How are you running Gitea?
For this testing/log locally off of the main branch, but in production it is inside of the official Gitea chart, specifically version 6.0.3.
Database
SQLite

Also as a note, to quickly make a version that matches you can do the following:

Download the latest Built version of certify from here: https://pypi.org/project/certifi/#files
Extract the .whl as a zip archive
Rename the .dist-info folder to include the +<local_id>

Inside of that folder, edit the METADATA file to include the +<local_id> on its version

Rezip the two folders into a .whl named with the new local id version. (these folders should be at the root of the archive)


fix: Validate and get compression ratio if available row groups

Fix for https://github.com/huggingface/dataset-viewer/issues/2709

The remaining cases are mostly becase of:
Atlas atlas-x5jgb3-shard-0 [primary] datasets_server_cache> db.cachedResponsesBlue.aggregate([{$match: {kind:"config-parquet-and-info", http_status:{$ne:200}, error_code:"FileSystemError"}},{$group: {_id: {error: "$details.error"}, count: {$sum: 1}}},{$sort: {count: -1}}])

  {
    _id: {
      error: 'Could not read the parquet files: Parquet magic bytes not found in footer. Either the file is corrupted or this is not a parquet file.'
    },
    count: 40
  },
  {
    _id: {
      error: 'Could not read the parquet files: Metadata contains Thrift LogicalType that is not recognized'
    },
    count: 14
  }

And the others (296) are because of specific issues like Could not read the parquet files: Disallowed deserialization of 'arrow.py_extension_type':\n


fix(python): fixes the error handling of starting analytical engine process

Codecov Report

Merging #3422 (ac1e63e) into main (3dd67d9) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #3422      +/-   ##
==========================================
- Coverage   64.47%   64.46%   -0.01%
==========================================
  Files         109      109
  Lines       11321    11321
==========================================
- Hits         7299     7298       -1
- Misses       4022     4023       +1

see 1 file with indirect coverage changes

Continue to review full report in Codecov by Sentry.

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


ModuleNotFoundError: No module named 'cli'

Can someone help me with this? I'm trying to make my Raspberry Pi 4B act as an access point. When I try to run "sudo hotspotd start" I get the following error:
File "/usr/local/lib/python3.9/dist-packages/hotspotd/main.py", line 8, in
import cli
ModuleNotFoundError: No module named 'cli'
Thanks!
Jesse

I've stopped maintaining this project since many years. I can see there are some forks generated over time, try raising this issue on one of those.


Migrate to use the dm_control (or mujoco Python binding)

Hi,
Thanks for taking on the maintenance of D4RL. I am really happy to see that D4RL can continue to be maintained!
I have a question, is there any plan to migrate from using mujoco-py to dm_control (or directly depend on the the mujoco python bindings) since now mujoco-py is no longer maintained? I have had quite a few issues with mujoco-py and migrating to either dm_control or mujoco should make future maintenance easier.
I am also happy to contribute if this is on the roadmap.

Hey, thanks for getting in touch. Yes is the general answer, to which is unknown at this point as we have just taken over the project.
We would love more people to help maintain these projects. Would you join the gym discord server (https://discord.gg/nHg2JRN489) and message me PseudoRnd and we can discuss how you can get involved


Added noplaylist true to youtubedl so that videos in playlists will work

A good example is Song2 by Blur in a playlist: https://www.youtube.com/watch?v=WlAHZURxRjY&list=PL7A55EB715FBB2940&index=7

unless I'm misreading, this closes #68


Attributions not changing when tilelayer changes

Hi!
Problem: Modified Attribution Control text not changing when tilelayer is changed.
Version: Not working in 1.0, but works in 0.7.7
My code:
var map = L.map('map', {
	center: [58.81, 23.08],
	minZoom: 8,
	maxZoom: 19,
	attributionControl: false,
	zoomControl: !L.Browser.mobile,
	layers: [navionics_kaart, weatherstations]
});

L.control.attribution({
	prefix: false,
	position: 'bottomleft'
}).addTo(map);

When I delete second block and use default position for Attribution control, then everything works fine.
Am I using L.control.attribution incorrectly in 1.0? Because same code in 0.7.7 works as I want.
Link to my website where bug is present

Hhhhmmmm, interesting. At first sight I don't see any problem with your code.
I've copy-pasted the relevant bits of the website into a playground to have a better look: http://playground-leaflet.rhcloud.com/jad/1/edit?html,output

Bisecting indicates we should be looking at https://github.com/Leaflet/Leaflet/commit/6b132009af48b4e3f9b4f25cbcf241e47009f905

Okay, so made a debug page directly from @siimots code, and this PR solves for his case, as well as not affecting existing behavior for  attribution controls added by init hooks.

@snkashis Unfortunately your fix was incomplete - I needed to make some unit tests at https://github.com/Leaflet/Leaflet/commit/663978227dc89a4b0269a50b6c6d4d7dcce79f5c - unit tests are your friend!

Yep, thanks for spotting this, had a feeling it involved more than my initial commit.