Mic 580 update protective factors

Codecov Report
Attention: Patch coverage is 81.08108% with 7 lines in your changes missing coverage. Please review.

Project coverage is 89.35%. Comparing base (926b2e6) to head (a2312d2).
Report is 2 commits behind head on main.

Files with missing lines
Patch %
Lines

...ate-investigation/protective-factors/controller.ts
58.33%
5 Missing :warning:

...record-investigation/protective-factors/schemas.ts
81.81%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #234      +/-   ##
==========================================
- Coverage   91.27%   89.35%   -1.93%
==========================================
  Files         247      249       +2
  Lines        3725     3756      +31
  Branches      594      601       +7
==========================================
- Hits         3400     3356      -44
- Misses        321      394      +73
- Partials        4        6       +2

Flag
Coverage Δ

89.35% <81.08%> (-1.93%)
:arrow_down:

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

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

We're missing tests here for char remaining count showing chars left on page load when theres already 3000+

Done


⚠ SolarOscp has degraded performance

In fa59d72, SolarOscp ($SOLAROSCP_URL) experienced degraded performance:

HTTP code: 200
Response time: 413 ms

Resolved: SolarOscp performance has improved in 6709787 after 10 minutes.


Improve Logging and Error Handling

This PR refactors logic to continue gathering data if encountering errors with support export.
This PR also improves how error messages are reported from Patroni and pgBackRest. The error messages are written to the console and the support export log for troubleshooting.

The linter is failing for a part of the code not touched by this PR. I haven't seen this failure before, so I'm not sure why this check is failing now when it didn't fail before.
Error: internal/config.go:25:6: the methods of "PatchConfig" use pointer receiver and non-pointer receiver. (recvcheck)

The linter is failing for a part of the code not touched by this PR. I haven't seen this failure before, so I'm not sure why this check is failing now when it didn't fail before.
Error: internal/config.go:25:6: the methods of "PatchConfig" use pointer receiver and non-pointer receiver. (recvcheck)

We pull in the latest version of the golang linter when we do our checks and the and version 1.62 added recvcheck. The error is because AddFlags uses a pointer receiver and the other methods use non-pointer receivers. AddFlags doesn't seem to be used at this time, so the easiest option would be to use a non-pointer receiver there, but I'll double check with the team whether or not that's what we want to do. Feel free to disregard for now.

A) Agree with TJ here re: why this is being picked up now (e.g., floating linter version means we run most recent in GH actions; these methods mix pointer and value receivers)
B) Agree with TJ here re: feel free to disregard for now.
C) Think I disagree with TJ re: fix -- rather than go all non-pointer receivers, I think we should go all pointer receivers.
It's funny that this just came up now because recently Chris went through pgo for a similar issue, so I've been reviewing this section a bunch.
The principles in that doc are (in order of importance)

be consistent
use pointers when in doubt (especially if you're going to mutate the receiver)
in other cases, especially when the receiver is small, you could use a value receiver

In CreateOptions and PatchOptions, we're not mutating the receiver -- we're using the receiver to mutate the input, i.e., to add a field to the input struct. AddFlags does mutate the receiver, though (we set the string which is a field on the receiver struct).


chore(deps): update common-dev-assets digest to b2ebd51

This PR contains the following updates:

Package
Update
Change

common-dev-assets
digest
0f20407 -> b2ebd51

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

[ ] If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 2.0.1 :tada:
The release is available on:

GitHub release
v2.0.1

Your semantic-release bot :package::rocket:


Openlm

To generate:
mlx_lm.generate --model <hf_repo> --prompt "Write a story about Einstein" --temp 0.0

To quantize:
mlx_lm.convert --hf-path <hf_repo> -q --upload-repo <hf_repo_to_upload_to>

I found that this code was working for openlm with huggingface. I think there is an issue with the tokenizer perhaps?
from transformers import AutoTokenizer
from open_lm.utils.transformers.hf_config import OpenLMConfig
import torch
from open_lm.utils.transformers.hf_model import OpenLMConfig, OpenLMforCausalLM

# Load the model and tokenizer
model_name = "mlfoundations/dclm-it"
# Load the configuration, tokenizer, and model separately
config = OpenLMConfig.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = OpenLMforCausalLM.from_pretrained(model_name, torch_dtype=torch.bfloat16, device_map="cuda", config=config)

# Define the prompt format
def create_prompt(instruction):
    PROMPT = '''Below is an instruction that describes a task.\n\nWrite a response that appropriately completes the request.\n\n### Instruction:\n{instruction}\n\n### Response:'''
    return PROMPT.format(instruction=instruction)
# Example instruction
instruction = "Give me a poem about Sachin Tendulkar."
# Create the prompt
prompt = create_prompt(instruction)
# Tokenize the input
input_ids = tokenizer.encode(prompt, return_tensors="pt").to(torch.device('cuda'))
# Generate the response
output = model.generate(input_ids, max_length=500, top_p=.95, do_sample=True, temperature=0.3)
# Decode the response
response = tokenizer.decode(output[0][len(input_ids[0]):])
response = response.split("<|endoftext|>")[0]
# Print the response
print(response)


Implement dial timeout

This should help where kubernetes reports an endpoint as active but perhaps the docker engine isn't playing ball.
d := net.Dialer{Timeout: timeout}
conn, err := d.Dial("tcp", addr)
if err != nil {
   // handle error
}

Completed with #31


65 consume message when header has expected value

Implementation of header filter function, solves issue #65

Integration test didn't pass. We can close the resp channel maybe. Could you check. 🙏🏻


make docker-build and make docker do not work on 9.0.2 branch

make docker-build does not work, because it is hardcoded to Go 1.10, which doesn't seem to have support for pulling dependencies. Updating GOVERSION to 1.14.2 in Makefile does the trick.
make docker does not work because there is no Dockerfile.
A minimal working Dockerfile might look like this (if you add the static target as a dependency for docker in Makefile)
FROM alpine:3.11
ADD bin/keycloak-gatekeeper /usr/bin/keycloak-gatekeeper
ENTRYPOINT /usr/bin/keycloak-gatekeeper

You don't even need FROM alpine:3.11. Make static binary and you can use FROM scratch.

Should be addressed by #638


Bug: Propagation of "IsProductPriceIncludeTax" in CartService.MigrateCart is missing

bug_cartservice_is_product_price_include_tax_missing.patch.txt

Hi @fhebel
Could you please create a pull request. It will be much helpful


Can't click on menu options for Pods

Rancher versions: 2.0 master 5/10
Steps to Reproduce:

Create a workload, wait for it to become active
Hover over pod
Click on menu
Now try to click on one of the menu options

Results:  As soon I try to get to get to the menu, it disappears.  The drop-down is too low as well.

another dropdown issue might be related https://github.com/rancher/rancher/issues/13453

Version - 2.0 master 5/15
Verified fixed


How to Fine-Tune XRDSLAM on KITTI Dataset? + Documentation Inquiry & Feature Suggestion

Hi team,
Thank you for developing XRDSLAM—it’s an excellent tool! I have a few points to discuss:

How can I fine-tune XRDSLAM using the KITTI dataset? I’m interested in adapting this tool for KITTI's outdoor SLAM scenarios. If possible, could you provide guidance or steps for fine-tuning on KITTI?

2-Documentation Availability: I noticed there isn't much documentation available for XRDSLAM. Are there any detailed resources or guides beyond the GitHub README? It would be helpful for understanding the tool’s full capabilities and customization options.
3-Feature Suggestion: If KITTI is not currently supported, would you consider adding official integration for it? Given its widespread use in SLAM and autonomous driving research, it could greatly extend XRDSLAM’s applicability.
Thank you for considering this, and any advice or support would be appreciated!

XRDSLAM is a general algorithm framework that currently supports running SLAM based on existing depth models but does not yet support training specific models for individual algorithms. The KITTI dataset format is not currently supported in XRDSLAM, but by modifying ‘’slam/common/datasets.py‘’, it can be easily adapted to support KITTI in XRDSLAM.

The flowchart in the document “docs/adding_a_new_algorithm.md” provides a detailed overview of XRDSLAM, offering a clear understanding of the entire algorithm framework.


It's not clear what does 'unconstrained' mean in concepts snippets

// Define concept from conjunction of constraints
template<typename T> concept SignedNumber = Number<T> && std::is_signed_v<T>;

So you call Number<T> a constraint.
// Unconstrained function
template<Number T>
void max_value(T a, T b) {
    //...
}

Which is probably an example of a constrained function for std::is_arithmetic_v<T>

True. It was "unconstrained" relative to template<SignedNumber T> but it doesn't really make sense. A better comment would be something like Number which is not SignedNumber or something like that. Or maybe just removing the comment might be a better idea.


Backup Space Check not looking at correct day

Backup space report is looking at backups that take on the current day rather than the next day.
This means with backups scheduled after midnight the space reports are not reporting the correct backup space requirements for the next 24 hours

Thanks @PeterJenner1992 , looks like I introduced this one in the latest release as I changed the logic due to an issue where it was looking at the next day.
I will get that logic back in there with a hotfix but make it configurable using DATEADD because for some users depending on what time of day they run their reports and depending on when they run their large backups may actually want to see what is going to happen today.
Makes perfect sense to be able to see the next 24 hours especially if backup space is running low.
I will add a new setting to the settings table to control the behaviour but default to to a 1: DATENAME(WEEKDAY,DATEADD(DAY,1,GETDATE()))
the opposite setting will be a 0
DATENAME(WEEKDAY,DATEADD(DAY,0,GETDATE()))
this way we cover both angles.
Thanks again for reporting.

Whilst making the changes I noticed that there is missing AND clause in BackupSpaceInsert this additional clause stops backup sizes for the current day being inserting into the table Inspector.BackupSpace. Without the clause (the current behaviour) you will get last weeks' current day so for today that would be Wednesday of last weeks backup total plus whatever has been taken today up to the collection time therefore the estimate is not correct.
Regarding the issue raised I have included the above plus changed a where clause in Inspector.BackupSpaceReport and added a new setting to Inspector.Settings (BackupSpaceWeekdayOffset), supported values are 0 and 1.
1 - Offset the current day by one day i.e DATENAME(WEEKDAY,DATEADD(DAY,1,GETDATE())) - return the day of the week for tomorrow and then get the data for that day of the week from the BackupSpace table.
0 - No offset - use the current days' weekday i.e DATENAME(WEEKDAY,DATEADD(DAY,1,GETDATE()))


Add decode function requirement to BasePasswordHasher. Partial for #31358

This PR is in service of
https://code.djangoproject.com/ticket/31358
and required a decode function on BasePasswordHasher along with
a simple decode implementation on PBKDF2PasswordHasher
Update on this PR for the sake of documentation. The PR has expanded to implement decode for all the included hashers and the decode function has subsumed manual decoding of database entries. See the commit text for more.

@jdufresne @apollo13 Any other changes you'd like the PR? Can I go ahead and squash it down?

Some builds are failing with
stderr: fatal: Unable to create '/home/jenkins/workspace/pull-requests-bionic/database/mysql_gis/label/bionic-pr/python/python3.7/.git/shallow.lock': File exists.

I'm going to assume that's an unrelated error to my new commits.

I'm going to assume that's an unrelated error to my new commits.

Yes as long as one passes you are good to go ;)

@darakian This PR is no longer mergeable due to my recent changes to the argon hasher. If you want I can force push a fix if you don't want to.

@darakian This PR is no longer mergeable due to my recent changes to the argon hasher. If you want I can force push a fix if you don't want to.

Sure.

@darakian I have rebased your changes onto the argon stuff. I am wondering if we should leave must_update as it is now or use the decode version (eat your own dogfood). The upside of the current approach is that it would take into account argon specific changes…

@darakian I have rebased your changes onto the argon stuff. I am wondering if we should leave must_update as it is now or use the decode version (eat your own dogfood). The upside of the current approach is that it would take into account argon specific changes…

Sorry, I'm not sure I follow on this. Do you mean must_update in the BasePasswordHasher? If so,  are you suggesting we call decode in there to check for salt size? If not; please elaborate :)

Also, a bit of git noise added as I get my local branch back on target.

@darakian Ah sorry, I should have mentioned that I was talking solely about the argon2 hasher.

@darakian the extract_parameters is from argon2 itself, so it cannot be really adjusted. Either way I will drop the warning from the decode function (we will add it later in must_update) and then see that this gets merged.

@apollo13 Sounds good. Thank you much for your time and attention on this PR :)

Thanks both :rocket:  I pushed minor edits.


move the consul token to the consul.yml from the secret.yml

For backward compatibility, fallback to secret.yml if it doesn't exist in the consul.yml

 move the consul token to the consul.yml from the secret.yml


Update datepicker value programmatically

Changing a datetime value programmatically seems to show an unformatted version of the date.
Currently the datepicker will show the initial value correctly, but when updated it will show the given string.
Please see a simplified fork of your Plunker for an example:
https://plnkr.co/edit/oPKqzvMLd5fIadztz1na?p=preview

Thank you for reporting this with example.
ng-model change should call formatting of value, but it seems not.
@Krisa Do you have time to look into it?

Yes I am having the same Problem. Will this be fixed.?

NOTE: this hasn't implemented yet, but writing it as a note. the change is implemented in branch 76-format-value-programmatically
I have tried many ways to resolve this issue. However, I couldn't come with a good solution to reformat ngModel value when ngModel changes.
The following is how we can do for now.
Ng2DatetimePickerDirective is exported as 'ng2DatetimePickerfor external access. You can now use its formatter,formatDate(date)`
In your app, you find instance of the directive using @ViewChild.
In your html declare reference as #var=ng2DatetimePicker as follows
       <input
         [(ngModel)]="gmtDate"
        #ng2DP=ng2DatetimePicker
         ng2-datetime-picker
         date-format="MM-DD-YYYY" />

In your app, define @ViewChild instance as following
 @ViewChild('ng2DP') myDatetimePicker;

Now you can access the formatter of datetime picker outside
this.myNgModel = this.ng2DP.formatDate('2016-11-03T22:00:00Z');

Please refer to app directory component in this repo.

Any update on when this will be merged in?

@rvdhooft sorry. I forgot about it. I will make merge soon in a day or two.

Found out that it's not possible to format ngModel value again, when ngModel is changed.
Thus, when you change a variable, please assign it as a string if you want it to be formatted.
There are two functions provided for this purpose

Ng2Datetime.formatDate to format a date from a Date
Ng2Datetime.parseDate to parse an string to Date

If your value is a Date, call Ng2Datetime.formatDate(myDate, myFormat)
e.g., Ng2Datetime.formatDate(new Date(), 'DD/MM/YYYY hh:mm')
If your value is a string, you can call Ng2Datetime.parseDate(myString, parseFormat) to get a date.
The following example is used in the app directory.
import { Ng2Datetime } from 'ng2-datetime-picker';
...
    this.dateWithTimezone = Ng2Datetime.formatDate(
      Ng2Datetime.parseDate('2017-01-15T14:22:00-06:00', this.timezoneFormat), this.timezoneFormat
    );


Pip commands

Add:
coon fetch <package> - download package from remote to local
coon install <package> - download to local, run install section actions
also these two commands can have  and <pkg_vsn> optionaly.
Add install section actions to coonfig.json

May be delete actions section should be mandatory, when install section presents.


Support login_hint for createLoginURL

OIDC login URL can have a login_hint param.
ref: https://openid.net/specs/openid-connect-core-1_0.html#AuthRequest
If you already know the login ID, it improves the UX.

🤔
Since OIDCLite doesn't actually submit the URL to an ASWebAuthentication session, or other WebView... is there much benefit to OIDCLite adding that parameter instead of having your app do it before you pass the URL on?

We need to think about the responsibilities of the method before we talk about the benefits.
I think it depends on what you consider the responsibilities of OIDCLite's createLoginURL method to be.
If the method is responsible for issuing an OIDC login URL, then I think it should support the content based on the OIDC specification.
If there are no responsibilities, then my request itself should be withdrawn, as there is no obligation to absorb the specification in that method.

@mactroll
I would really appreciate it if you could respond to the question above.


Is there a way to override parameter generation?

I need to override schema in a way that is very similar to one that is defined in the example https://github.com/domaindrivendev/Swashbuckle.AspNetCore#override-schema-for-specific-types
// PhoneNumber.cs
public class PhoneNumber
{
    public string CountryCode { get; set; }

    public string AreaCode { get; set; }

    public string SubscriberId { get; set; }
}

// Startup.cs
services.AddSwaggerGen(c =>
{
    ...
    c.MapType<PhoneNumber>(() => new OpenApiSchema { Type = "string" });
};

This works fine for the schema but not for parameters. When I try to use this type as an argument of the controller
public IActionResult SomeMethod([FromQuery]PhoneNumber number)
SwaggerUI still shows me the parameter as an object.
I want to have a definition that is exactly the same with
public IActionResult SomeMethod([FromQuery]string number)
Is there a way to override parameter generation logic?

Closing as this is really a dup of #309.
With that said, let me answer with a question: Independently of Swashbuckle - how are you telling ASP.NET Core's model binder how to deserialize a string value from the request into the complex PhoneNumber object? I'm assuming you're using a custom model binder?
As it turns out this is not the recommended approach. Instead, MS recommends a custom TypeConverter for simple string => type conversions:

We recommended you create a type converter if you have a simple string -> SomeType mapping that doesn't require external resources

If you don't go with this recommendation then ApiExplorer, ASP.NET Core's built-in API metadata provider that's heavily used by Swashbuckle gets it's head into a spin, and this manifests itself as the exact issue you're seeing.
However, if you do go with the recommended approach then everything works just fine and you don't even need to add the explicit MapType in your SB config. Here's what this would look like for you:
// PhoneNumberConverter.cs
public  class PhoneNumberConverter : TypeConverter
{
    public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
    {
        return (sourceType == typeof(string));
    }

    public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
    {
        var inputString = value.ToString();
        return new PhoneNumber
        {
            ...
        };
    }
}

// Startup.cs
public void ConfigureServices(IServiceCollection services)
{
    ...

    // Assign TypeConverter to PhoneNumber so it can be deserialized from a string
    TypeDescriptor.AddAttributes(typeof(PhoneNumber), new TypeConverterAttribute(typeof(PhoneNumberConverter)));
}

Closing as this is really a dup of #309.
With that said, let me answer with a question: Independently of Swashbuckle - how are you telling ASP.NET Core's model binder how to deserialize a string value from the request into the complex PhoneNumber object? I'm assuming you're using a custom model binder?
As it turns out this is not the recommended approach. Instead, MS recommends a custom TypeConverter for simple string => type conversions:

We recommended you create a type converter if you have a simple string -> SomeType mapping that doesn't require external resources

If you don't go with this recommendation then ApiExplorer, ASP.NET Core's built-in API metadata provider that's heavily used by Swashbuckle gets it's head into a spin, and this manifests itself as the exact issue you're seeing.
However, if you do go with the recommended approach then everything works just fine and you don't even need to add the explicit MapType in your SB config. Here's what this would look like for you:
// PhoneNumberConverter.cs
public  class PhoneNumberConverter : TypeConverter
{
    public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
    {
        return (sourceType == typeof(string));
    }

    public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
    {
        var inputString = value.ToString();
        return new PhoneNumber
        {
            ...
        };
    }
}

// Startup.cs
public void ConfigureServices(IServiceCollection services)
{
    ...

    // Assign TypeConverter to PhoneNumber so it can be deserialized from a string
    TypeDescriptor.AddAttributes(typeof(PhoneNumber), new TypeConverterAttribute(typeof(PhoneNumberConverter)));
}

This doesn't answer the question. Does it mean there is no way to achieve what the OP is asking with Swashbuckle?

This doesn't answer the question. Does it mean there is no way to achieve what the OP is asking with Swashbuckle?


ClasswiseWrapper and JaccardIndex confmat attribute error

🐛 Bug
Using JaccardIndex and ClasswiseWrapper results in an error when trying to list the named_children of a MetricCollection.
To Reproduce
from torchmetrics.classification import JaccardIndex
from torchmetrics import MetricCollection
from torchmetrics.wrappers import ClasswiseWrapper

metrics = MetricCollection(
    {
        "IoU": ClasswiseWrapper(
            JaccardIndex(
                task="multiclass", num_classes=2, average="none"
            ),
            labels=["cat", "dog"],
        ),
    },
    prefix="train_",
)

for name, module in metrics.named_children():
    print(name, module)

AttributeError                            Traceback (most recent call last)
Cell In[9], [line 1](vscode-notebook-cell:?execution_count=9&line=1)
----> [1](vscode-notebook-cell:?execution_count=9&line=1) for name, module in metrics.named_children():
      [2](vscode-notebook-cell:?execution_count=9&line=2)     print(name, module)

File [/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:2302](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:2302), in Module.named_children(self)
   [2300](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:2300) memo = set()
   [2301](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:2301) for name, module in self._modules.items():
-> [2302](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:2302)     if module is not None and module not in memo:
   [2303](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:2303)         memo.add(module)
   [2304](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:2304)         yield name, module

File [/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/metric.py:928](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/metric.py:928), in Metric.__hash__(self)
    [925](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/metric.py:925) hash_vals = [self.__class__.__name__, id(self)]
    [927](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/metric.py:927) for key in self._defaults:
--> [928](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/metric.py:928)     val = getattr(self, key)
    [929](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/metric.py:929)     # Special case: allow list values, so long
    [930](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/metric.py:930)     # as their elements are hashable
    [931](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/metric.py:931)     if hasattr(val, "__iter__") and not isinstance(val, Tensor):

File [/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/wrappers/classwise.py:223](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/wrappers/classwise.py:223), in ClasswiseWrapper.__getattr__(self, name)
    [220](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/wrappers/classwise.py:220) if name in ["tp", "fp", "fn", "tn"]:
    [221](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/wrappers/classwise.py:221)     return getattr(self.metric, name)
--> [223](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torchmetrics/wrappers/classwise.py:223) return super().__getattr__(name)

File [/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:1688](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:1688), in Module.__getattr__(self, name)
   [1686](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:1686)     if name in modules:
   [1687](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:1687)         return modules[name]
-> [1688](https://vscode-remote+ssh-002dremote-002bml-002disaac.vscode-resource.vscode-cdn.net/opt/conda/envs/dbenv/lib/python3.10/site-packages/torch/nn/modules/module.py:1688) raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")

AttributeError: 'ClasswiseWrapper' object has no attribute 'confmat'

Expected behavior
No error should occur.
Environment

TorchMetrics: 1.3.2
Python: 3.10.11
PyTorch: 2.2.1
Any other relevant information such as OS (e.g., Linux): Ubuntu

Additional context
I found this bug by trying to train using PyTorch Lightning. During the trainer setup a list of all the named_children of the LightningModule occurs and this error is then raised.
I noticed in torchmetrics/wrappers/classwise.py that the __getattr__ has a check for ["tp", "fp", "fn", "tn"]. I think maybe confmat should be added to this?
    def __getattr__(self, name: str) -> Union[Tensor, "Module"]:
        """Get attribute from classwise wrapper."""
        # return state from self.metric
        if name in ["tp", "fp", "fn", "tn"]:
            return getattr(self.metric, name)

        return super().__getattr__(name)

Closing because I see this is fixed in #2424


Merge changes from datagovsg fork

This fork currently embodies fixes that addresses the following issues:
Fixes #113
Fixes #153
Fixes #158
Fixes #135
These are currently held in the datagovsg fork of xml-crypto, itself a fork of the Asana fork of the original.
I would also like to take the opportunity to request access to the repo so that I can merge changes, and access to the npm package so that I can cut releases for this library.

what's your npm username?

it's lonerifle

Sure, will do! I'll look into the vuln, bumping the major release, and possibly #160

thanks, you do awesome work!


Create {% block navbar %} to be able to override the navbar

And also add .idea to the list of ignores so that people who may want to develop this theme using JetBrains IDEs do not share their IDE private files.

Merged. Thanks for the contribution!


Loading of new annotation standard 'ANN' field

Hi,
is anyone currently working on implementation of parser for new ANN annotation standard used by snpEff?
I would like to try to implement this, but I don't want to get in way of someone's work. It is mentioned in release notes. And this would probably require some refactoring of how VEP and snpEff annotation is handled right now.
Would you mind if I tried?
This would affect issues: #383, #415.

Hi @nuada - that would be fantastic if you have the time. It is on our list, but we haven't gotten to it yet.

Yes, that would be excellent. Please start from the dev branch as we're accumulating changes there.

OK, thank you.

Quick question.
Before implementing anything I need to be sure that I have unit tests for part of code I want to fix. But I can't find tests that check how GEMINI handles different versions of snpEff or VEP.
Where can I find them?

@nuada currently, all of the tests are functional tests in the test/ directory. It would be better to have unit tests...

Also, the bulk of the relevant functional tests are in:
https://github.com/arq5x/gemini/blob/master/test/test-effstring.sh
As @brentp mentioned, the testing here is a bit weak. ;)


Build static libgit2 with dynamic CRT on Windows

Update ports/libgits/portfile.cmake to enable building static libgit2 with dynamic CRT on Windows.

Thanks for the PR!
I needed to revert your changes to our built-in triplets (because that would be a huge change for every other user :)).


Telegram Notification raises an error when [ALERT_TRIGGERED_OR_RESOLVED]: [ENDPOINT_NAME] - [ALERT_DESCRIPTION] variables are used in description field

Hi,
Thank you for this wonderful app which meets all my expections.
By customizing it, I noticed what seems to be a bug.
The use of variables in the description field of the Telegram notification service raises an exception.
    alerts:
      - type: telegram
        enabled: true
        description: "[ALERT_TRIGGERED_OR_RESOLVED]: [ENDPOINT_NAME] - [ALERT_DESCRIPTION]"

Here is the error:
gatus              | 2021-11-03T14:20:15.400568091Z 2021/11/03 14:20:15 [watchdog][handleAlertsToTrigger] Failed to send an alert for endpoint=Intercom 2: call to provider alert returned status code 400: {"ok":false,"error_code":400,"description":"Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 197"}
When using a static text in the description field the notification works correctly.
Cheers.

Apparently, I misunderstood the use of these placeholders.  If I understand it well it is meant only for custom alerts. Anyway, I think some kind of error handling could be put in place in order to manage this special case.
Thanks.

Your conclusion was accurate - the placeholders are meant to be used for the custom alerting provider in order to dynamically generate an URL or a body based on the alert triggered.
As for why this error happened, it's because Telegram is expecting Markdown, and it most likely fails to parse the literal placeholders (e.g. [ALERT_TRIGGERED_OR_RESOLVED]) because it's expecting (https://...) after.
In any case, I don't think validating every alerting API requests that could be generated is something feasible. For instance, just for this case, we'd need to try parsing the alert description with a markdown library, which is likely to introduce tons of useless dependencies. Furthermore, other alerting providers might not return a 400 (bad request) on invalid markdown


[Bugfix] API stream returning two stops

Fixes #2266 by adapting #2267 to the current main
Example output:
data: {"id":"cmpl-64c697d392a840159142ea964ffe98cf","created":1710629390,"model":"facebook/opt-125m","choices":[{"index":0,"text":" and","logprobs":null,"finish_reason":null}],"usage":null}

data: {"id":"cmpl-64c697d392a840159142ea964ffe98cf","created":1710629390,"model":"facebook/opt-125m","choices":[{"index":0,"text":" I","logprobs":null,"finish_reason":"length"}],"usage":{"prompt_tokens":5,"total_tokens":10,"completion_tokens":5}}

data: [DONE]

Test coverage added to test_completion_streaming and test_chat_streaming (cc @simon-mo)


No styling out of the box

Hi I'm testing out your data table for my own project,
but is it correct there is no default styling to the table?
I was kinda hoping that it would look the samen as the demo out-of-the-box.
This is what it looks like when I implement the simple demo.

Yes, you need bootstrap styles (Bootstrap 3) in your own application.
<!-- index.html -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">

or getting-started-with-ng-cli
For the future implementations, I'm planning to use a "neutral" style instead bootstrap.
Let me know if this helps you.

Works great now, thanks!


[ADDED]: Neural Networks From Scratch

Hey @Om-Amitesh !
Congrats on submitting your pull request and from what I can infer, this was your first pull request towards an open-source project. Thank you for giving this repository to help you guide in your first contribution. On behalf of everyone here, I'd like to welcome you to the open-source community!
You PR has been merged and the changes will be reflected on the website in a few minutes,.
Do leave a star, if you liked the repo ;)
Happy hacking ! 🎊

hey @ishandeveloper,
would you mind adding the hacktoberfest -accepted label here, thanks!
thanks again for letting me make my first pull request!


Freshly installed node_modules error

I've been developing with VueJS 2 for a couple of weeks now and tried to deploy for production, but ran into an issue. I wanted to test on a different system, so I rebuild my dependencies (npm install). However, when I npm run dev now, it doesn't work anymore. I didn't change anything in my package.json. My webpage gives me the following errors:
You are running Vue in development mode.
Make sure to turn on production mode when deploying for production.
See more tips at https://vuejs.org/guide/deployment.html
(unknown) ReferenceError: _h is not defined
at Proxy.render (eval at  (app.js:1596), :3:14658)
at VueComponent.Vue._render (eval at  (app.js:606), :3096:22)
at VueComponent.eval (eval at  (app.js:606), :2464:21)
at Watcher.get (eval at  (app.js:606), :1663:27)
at new Watcher (eval at  (app.js:606), :1655:12)
at VueComponent.Vue._mount (eval at  (app.js:606), :2463:19)
at VueComponent.Vue$3.$mount (eval at  (app.js:606), :6104:15)
at VueComponent.Vue$3.$mount (eval at  (app.js:606), :8494:16)
at init (eval at  (app.js:606), :2777:11)
at createComponent (eval at  (app.js:606), :4120:9)
logError
How is this possible?

Please make sure to read the Issue Reporting Guidelines before opening new issues. Questions should be posted on the forum or StackOverflow. Thanks.

It depends on the last version you had. But basically, make sure you're not missing any peer dependency yarn and npm will warn you about this. And also make sure to delete the previous node_modules dir before reinstalling modules


Java SDK v4 inclusion

There is now Bulk support in the Java SDK, albeit at beta level. This gives support for the latest SDK version and should be mentioned in the opening guidance about what packages to use.
https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-api-sdk-java-v4

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

ID: f942c792-655b-4174-a427-644108abd6d5
Version Independent ID: 4009eeb3-ee41-ab49-d0d0-4269d678a0bc
Content: Use bulk executor Java library in Azure Cosmos DB to perform bulk import and update operations
Content Source: articles/cosmos-db/sql/bulk-executor-java.md
Service: cosmos-db
Sub-service: cosmosdb-sql
GitHub Login: @tknandu
Microsoft Alias: ramkris

@stephlocke Thank you for the feedback. Mostly because it is still in beta hence the document is not updated with sdk 4.x version. However I am tagging the content author as well for correct understanding.
@tknandu Can you please confirm if the bulk executor in java sdk 4 version is still in beta as the document mentions it is not supported in version 4.x?

@tknandu Could you please confirm on this?

@stephlocke @AnuragSharma-MSFT the Bulk executor library is GA'ed within the Java V4 SDK. It's best to migrate to this latest SDK to get the built-in bulk support. I will add a note at the beginning of the doc to mention this.

The above PR adds a note. Changes will be live by EOD. we will close this issue now.
#please-close

#reassign:@SnehaGunda


Changing string to wstring in MarkDownParser

Adaptive Cards need to support characters that are outside of 0x00-0xFF value range.
i.e. isspace() will assert if it receives argument out of that range in debug flavor.

This doesn't need to be done. The markdown parser takes in utf8 input and reading from the stream will always give one byte at a time. The comparisons made are always on single byte chars.


Add CF_SWIFT_NAME and NS_ENUM macro

Adding the CF_SWIFT_NAME and NS_ENUM macros would provide a clean Swift interface out-of-the-box. Would you add this to the main project if it was available?
Color ColorCreateWithCMYK(float c, float m, float y, float k)           CF_SWIFT_NAME(Color.init(c:m:y:k:));
Refs:
https://developer.apple.com/library/content/documentation/Swift/Conceptual/BuildingCocoaApps/InteractingWithCAPIs.html

Yes please! Can you submit a pull request?

We are instead adopting a better obj-c wrapper which will work more nicely in swift.


SSL handshake doesn't respect timeouts

Bug Report
Current Behavior
If SSL handshake fails, RedisClient::connect takes 10 seconds to fail, no matter what value I set for the timeouts.

Stack trace
Exception in thread "main" io.lettuce.core.RedisConnectionException: Unable to connect to localhost:8999
        at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:78)
        at io.lettuce.core.RedisConnectionException.create(RedisConnectionException.java:56)
        at io.lettuce.core.AbstractRedisClient.getConnection(AbstractRedisClient.java:234)
        at io.lettuce.core.RedisClient.connect(RedisClient.java:207)
        at io.lettuce.core.RedisClient.connect(RedisClient.java:192)
        at com.example.Application.main(Application.java:33)
Caused by: io.netty.handler.ssl.SslHandshakeTimeoutException: handshake timed out after 10000ms
        at io.netty.handler.ssl.SslHandler$5.run(SslHandler.java:2054)
        at io.netty.util.concurrent.PromiseTask.runTask(PromiseTask.java:98)
        at io.netty.util.concurrent.ScheduledFutureTask.run(ScheduledFutureTask.java:170)
        at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:164)
        at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:472)
        at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:500)
        at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
        at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:834)

Input Code

Input Code
package com.example;

import io.lettuce.core.ClientOptions;
import io.lettuce.core.RedisClient;
import io.lettuce.core.RedisConnectionException;
import io.lettuce.core.RedisURI;
import io.lettuce.core.SocketOptions;
import java.time.Duration;

public class Application {
    public static void main(String[] args) {
        SocketOptions socketOptions = SocketOptions.builder()
            .connectTimeout(Duration.ofSeconds(2))
            .build();

        ClientOptions clientOptions = ClientOptions.builder()
            .socketOptions(socketOptions)
            .autoReconnect(true)
            .cancelCommandsOnReconnectFailure(true)
            .disconnectedBehavior(ClientOptions.DisconnectedBehavior.REJECT_COMMANDS)
            .build();

        RedisURI uri = RedisURI.builder()
            .withHost("localhost")
            .withPort(8999)
            .withSsl(true)
            .withTimeout(Duration.ofSeconds(2))
            .build();

        RedisClient client = RedisClient.create(uri);
        client.setOptions(clientOptions);

        var connection = client.connect();
        connection.close();
    }
}

Expected behavior/code
The connection timeout of 2 seconds should be applied and the RedisConnectionException should be thrown after the timeout.
Environment

Lettuce version(s): 5.3.0.RELEASE
Redis version: 3.2

Additional context
I couldn't seem to find documentation for this behavior nowhere in the docs. When searching for similar issues, I came across this ancient issue from when SSL support was first being implemented that says:

Build support done, connect waits for successful handshake.

Which indeed it does, but not respecting timeouts.
I know the connection timeout is part of the SocketOptions, which kind of implies it is only for establishing the socket connection, not what happens after it. However, if RedisClient::connect is only successful after a successful handshake, one could reasonably expect it to be constrained by a given connection timeout, or at least have a way of setting a timeout for the handshake.
EDIT: When creating the minimal code to reproduce the issue, I had forgotten to paste in the line that effectively sets the client options.

Thanks for reporting the issue. Lettuce uses netty's default handshake timeout of 10 seconds. Applying the RedisURI timeout is misleading as it's not intended for connect timeouts, rather for command timeouts.
We have already SocketOptions.getConnectTimeout() so it would make sense to add SslOptions.getHandshakeTimeout() and apply it to SslHandler.
Do you want to submit a pull request?

Hey, @mp911de, thanks for the reply! I can definitely submit a pull request, but I must say I'm not very familiar with the entire code, the tests and contribution protocols.
Would you be able to give me some pointers on that?

Happy to review a pull request. Check out https://github.com/lettuce-io/lettuce-core/blob/main/.github/CONTRIBUTING.md for some guidance. There isn't much to consider besides tests and formatting.

I can't seem to get all the tests to pass, even without changing anything I get 15 failures. They seem to be split into a handful of groups:
java.lang.reflect.UndeclaredThrowableException

Failing tests:
* io.lettuce.core.ClientOptionsIntegrationTests.authenticationTimeout
Error:
java.lang.reflect.UndeclaredThrowableException
    at io.lettuce.core.ClientOptionsIntegrationTests.authenticationTimeout(ClientOptionsIntegrationTests.java:345)
Caused by: java.lang.AssertionError:

Expecting a throwable with root cause being an instance of:
 <io.lettuce.core.RedisCommandTimeoutException>
but was an instance of:
 <io.lettuce.core.RedisConnectionException: Connection closed prematurely>
    at io.lettuce.core.ClientOptionsIntegrationTests.lambda$authenticationTimeout$14(ClientOptionsIntegrationTests.java:357)
    at io.lettuce.core.ClientOptionsIntegrationTests.authenticationTimeout(ClientOptionsIntegrationTests.java:345)

java.lang.AssertionError

Failing tests:
* io.lettuce.core.pubsub.PubSubCommandTest.pingNotAllowedInSubscriptionState
Error:
java.lang.AssertionError:

Expecting code to raise a throwable.
    at io.lettuce.core.pubsub.PubSubCommandTest.pingNotAllowedInSubscriptionState(PubSubCommandTest.java:496)

io.lettuce.core.RedisCommandExecutionException

Failing tests:
* io.lettuce.core.cluster.commands.ListClusterCommandIntegrationTests.lpos
* io.lettuce.core.cluster.commands.reactive.ListClusterReactiveCommandIntegrationTests.lpos
* io.lettuce.core.commands.ListCommandIntegrationTests.lpos
* io.lettuce.core.commands.reactive.ListReactiveCommandIntegrationTests.lpos
* io.lettuce.core.commands.transactional.ListTxCommandIntegrationTests.lpos
Error:
io.lettuce.core.RedisCommandExecutionException: ERR syntax error

java.net.BindException

Failing tests:
* io.lettuce.core.protocol.ConnectionFailureIntegrationTests.invalidFirstByte
Error:
java.net.BindException: Address already in use

java.security.InvalidAlgorithmParameterException

Failing tests:
* io.lettuce.core.sentinel.SentinelSslIntegrationTests.shouldConnectToMasterUsingSentinel
* io.lettuce.core.SslIntegrationTests.standaloneWithJdkSslUsingTruststoreUrl
* io.lettuce.core.SslIntegrationTests.standaloneWithClientCertificates
* io.lettuce.core.SslIntegrationTests.standaloneWithJdkSsl
Error:
io.lettuce.core.RedisConnectionException: Unable to connect to localhost:<PORT NUMBER>
    at ...
Caused by: java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Caused by: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

io.lettuce.core.RedisConnectionException

Failing tests:
* io.lettuce.core.SslIntegrationTests.masterSlaveSslWithOneInvalidHostWillSucceed
* io.lettuce.core.SslIntegrationTests.masterSlaveWithJdkSslUsingTruststoreUrl
* io.lettuce.core.SslIntegrationTests.masterSlaveWithJdkSsl
Error:
io.lettuce.core.RedisConnectionException: Unable to connect to [...]
    at ...
Caused by: io.lettuce.core.RedisConnectionException: Failed to connect to at least one node in [...]

java.util.concurrent.TimeoutException

Failing files:
* io.lettuce.core.SslIntegrationTests.pubSubSsl
Error:
java.lang.IllegalStateException: java.util.concurrent.TimeoutException: Objects are not equal: 2 and 3
    at io.lettuce.core.SslIntegrationTests.pubSubSsl(SslIntegrationTests.java:366)
Caused by: java.util.concurrent.TimeoutException: Objects are not equal: 2 and 3
    at io.lettuce.core.SslIntegrationTests.pubSubSsl(SslIntegrationTests.java:366)

I forked the repo, cloned the fork and followed the instructions in the Building section of the README. I would guess the syntax errors are due to the LPOS command being rather new, but I'm stumped about the rest. Maybe I'm missing something on my local environment? Do you think you could help me out with that?

Likely some tests are not guarded properly against using older Redis versions. Feel free to submit the PR even if some of the tests fail.

Merged via #1338.

Hello, Is there a way to set the handshake timeout from spring properties? It seem to have the same problem when using SSL it ignore timeout properties
  redis:
    host: '...'
    port: 6379
    ssl: true
    timeout: 1000


Error Downloading stash

Downloading stash for Standard, details logged to DebugInfo.log, please open a ticket at https://github.com/Stickymaddness/Procurement/issues
[13-12-2015 23:36] Error downloading stash for Standard, exception details: System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at POEApi.Transport.HttpTransport.GetStash(Int32 index, String league, Boolean refresh)
at POEApi.Transport.CachedTransport.GetStash(Int32 index, String league, Boolean refresh)
at POEApi.Model.POEModel.GetStash(Int32 index, String league, Boolean forceRefresh)
at POEApi.Model.POEModel.GetStash(String league, String accountName)

Procurement 1.9.7 has been released, please retest and open a new issue if you still have a problem.
https://github.com/Stickymaddness/Procurement/releases/tag/1.9.7


No indication of reason after validate job deployment failure (reopened)

Describe the bug
When using an SFDX version other than the most recent, deployments which fail on validate command do not show SFDX errors and instead log exception "Unexpected token › in JSON at position 1".
This appears to be the same root cause as https://github.com/Accenture/sfpowerscripts/issues/543. Issue was addressed by updating SFDX version in the container to 7.104.0 which was the most recent at the time, but behaviour is back now that 7.105.0 is available.
To Reproduce
Failing scenario:

Initialise sfpowersripts container
Run validate command with metadata which fails Salesforce validation (e.g. reference a nonexisting field in a metadata file)
Error message as per screenshot below

Working scenario:

Initialise sfpowerscripts container
Update SFDX CLI to 7.105.0
Run validate command with metadata which fails Salesforce validation
Error message shows Salesforce-generated reason for failure as expected

Expected behavior
Error message from Salesforce to be surfaced in sfpowerscripts console output
Screenshots

Platform Details (please complete the following information):

OS: Linux
Version: Version from sfpowerscripts Docker container at 17 June
Salesforce CLI(sfdx cli) Version: 7.104.0
CI Platform: Github Actions

So 7.105 fixes it and 7.104 is broken.. it so weird how some pieces are changing in a docker image, we are missing something @aly76

New Docker Image will be released as part of July21 solving this issue


I am not sure if I got the right results after I run inference

$python -m inference --protein_ligand_csv data/protein_ligand_example_csv.csv --out_dir results/user_predictions_small --inference_steps 20 --samples_per_complex 40 --batch_size 10 --actual_steps 18 --no_final_step_noise
Precomputing and saving to cache SO(3) distribution table
Precomputing and saving to cache torus distribution table
100%|█████████████████████████████████████████| 201/201 [00:45<00:00,  4.39it/s]
100%|█████████████████████████████████████████| 201/201 [00:55<00:00,  3.59it/s]
/home/xzhang/projects/DiffDock/utils/torus.py:39: RuntimeWarning: invalid value encountered in divide
score_ = grad(x, sigma[:, None], N=100) / p_
Reading molecules and generating local structures with RDKit (unless --keep_local_structures is turned on).
0it [00:00, ?it/s]rdkit coords could not be generated without using random coords. using random coords now.
6it [00:01,  3.74it/s]
Reading language model embeddings.
Generating graphs for ligands and proteins
loading complexes: 100%|██████████████████████████| 6/6 [00:02<00:00,  2.81it/s]
loading data from memory:  data/cache_torsion/limit0_INDEX_maxLigSizeNone_H0_recRad15.0_recMax24_esmEmbeddings863911206/heterographs.pkl
Number of complexes:  6
radius protein: mean 33.793853759765625, std 14.15740966796875, max 53.81545639038086
radius molecule: mean 6.548925876617432, std 3.7833714485168457, max 14.822683334350586
distance protein-mol: mean 59.33454513549805, std 22.522035598754883, max 75.89938354492188
rmsd matching: mean 0.0, std 0.0, max 0
HAPPENING | confidence model uses different type of graphs than the score model. Loading (or creating if not existing) the data for the confidence model now.
Reading molecules and generating local structures with RDKit (unless --keep_local_structures is turned on).
0it [00:00, ?it/s]rdkit coords could not be generated without using random coords. using random coords now.
6it [00:01,  3.53it/s]
Reading language model embeddings.
Generating graphs for ligands and proteins
loading complexes: 100%|██████████████████████████| 6/6 [00:02<00:00,  2.82it/s]
loading data from memory:  data/cache_torsion_allatoms/limit0_INDEX_maxLigSizeNone_H0_recRad15.0_recMax24_atomRad5_atomMax8_esmEmbeddings863911206/heterographs.pkl
Number of complexes:  6
radius protein: mean 33.793853759765625, std 14.15740966796875, max 53.81545639038086
radius molecule: mean 6.218267917633057, std 2.776658773422241, max 12.076842308044434
distance protein-mol: mean 58.96320724487305, std 22.422767639160156, max 75.24571990966797
rmsd matching: mean 0.0, std 0.0, max 0
common t schedule [1.   0.95 0.9  0.85 0.8  0.75 0.7  0.65 0.6  0.55 0.5  0.45 0.4  0.35
0.3  0.25 0.2  0.15 0.1  0.05]
Size of test dataset:  6
0it [00:00, ?it/s]/home/xzhang/miniconda3/envs/diffdock/lib/python3.9/site-packages/e3nn/o3/_spherical_harmonics.py:82: UserWarning: FALLBACK path has been taken inside: compileCudaFusionGroup. This is an indication that codegen Failed for some reason.
To debug try disable codegen fallback path via setting the env variable export PYTORCH_NVFUSER_DISABLE=fallback
To report the issue, try enable logging via setting the envvariable  export PYTORCH_JIT_LOG_LEVEL=manager.cpp
(Triggered internally at  /opt/conda/conda-bld/pytorch_1659484809662/work/torch/csrc/jit/codegen/cuda/manager.cpp:237.)
sh = _spherical_harmonics(self._lmax, x[..., 0], x[..., 1], x[..., 2])
5it [03:45, 30.19s/it]Failed on ['data/PDBBind_processed/6mo8/6mo8_protein_processed.pdb____data/PDBBind_processed/6hld/6hld_ligand.mol2'] Invariant Violation
no eligible neighbors for chiral center
Violation occurred on line 213 in file Code/GraphMol/FileParsers/MolFileStereochem.cpp
Failed Expression: nbrScores.size()
RDKIT: 2022.09.1
BOOST: 1_78
6it [04:24, 44.08s/it]
Failed for 1 complexes
Skipped 0 complexes
Results are in results/user_predictions_small
There is only one file in folder "index5_data-PDBBind_processed-6mo8-6mo8_protein_processed.pdb____data-PDBBind_processed-6hld-6hld_ligand.mol2", but there are 41 files in the other 5 folders. Did I run the inference correctly? Thanks

I had the same output and I think it failed.

Based on the output it seems to have run successfully for 5 complexes and failed for 1.
The error on the one that failed is equal to the one reported in https://github.com/gcorso/DiffDock/issues/56 however I am still not sure about the cause of this


[Hardware-id]: Update Cargo lock dependencies

the last update of Cargo.lock goes back two years ago.

I believe the Cargo.lock is no longer used, since the package is part of the workspace, and can be safely deleted.


Automation hindrance due to continuous sorties

Hello. I am playing FGO Japan version.
Due to the continuous sorties implemented in recent updates, it is no longer possible to continue to circulate free quests automatically.
How can I solve this problem?

You mean popup about doing same quest one more time at the end of the free quest without going back to menu? If yes, then it works fine for me.

yes. and sorry.
It seems my mistake.
The script worked.
However, after that, when an error (Stuck?) Occurred, even if you tap the play icon, it stopped working.

Can you screenshot the error you are getting?

this is . sometimes i see
2019年11月18日(月) 15:43 vit2657<EMAIL_ADDRESS>
Can you screenshot the error you are getting?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/29988122/Fate-Grand-Order_Lua/issues/284?email_source=notifications&email_token=ANZM3FYYEC5BUFMY2WX4BSTQUI2PRA5CNFSM4JOIPMN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEJLTJQ#issuecomment-554875302,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANZM3F5WA7OEQB76CWDCIOLQUI2PRANCNFSM4JOIPMNQ
.

The last screenshot seems like an Ankulua bug.

See https://github.com/29988122/Fate-Grand-Order_Lua/issues/317#issuecomment-585053679


Add keeper level panic catches

Closes: #3277
What is the purpose of the change
Panic catch keeper operations
Brief Changelog

panic catch keeper operations

Testing and Verifying
This change is a trivial rework / code cleanup without any test coverage.
Documentation and Release Note

Does this pull request introduce a new feature or user-facing behavior changes? yes
Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md? yes
How is the feature or change documented? Code comments

Ah yes, thank you I missed that


How to get the correct idx for mutation inference

Hi,
I am trying to use the package to do mutational influence and I use the alignment file (.a2m) generated from EVcoupling as the input of arDCA. From what I understand arnet reordered the columns in the running process and I can use idxperm to locate the correct site of my mutations.
I also found that arnet would drop some columns from the alignment too and is there a way to find out what columns were dropped and which sites from the original alignments are preserved in the idxperm so that I can map the mutations annotations onto the xori for mutation influence?
thanks in advance for your help!

Indeed, as explained here (see 3. Predicting mutational effects),
D,idxgap=dms_single_site(arnet,arvar,target_sequence)

returns D a  q x L matrix containing the mutational effects, and idxgap the indices of gap in the reference sequence.

closing


Updates Android install documentation

I just went through the installation on an Android sample app and noticed that React Native's Java code looks different now. I updated the documentation to reflect the latest version and tested it on a sample application created with react-native 0.20.
Hope this will be useful.

Great, thanks!

Had to revert this, I missed that https://github.com/johanneslumpe/react-native-fs/pull/51 was an earlier and more complete version of this. But thanks anyway :)

No worries, glad it got somehow in.


refactor(rpc)!: Rename rollup_getProof to linea_getProof

PR Description
Rename rollup_getProof to linea_getProof.
Fixed Issue(s)

Documentation

[x] I thought about documentation and added the doc-change-required label to this PR if updates are required.

Changelog

[x] I thought about adding a changelog entry, and added one if I deemed necessary.

Hi, I think that just renaming the method is an forced breaking chance and this will cause unnecessary disruption to our partners. I suggest to:

this Shomei version have both methods working linea_getProof and rollup_getProof (easy to achieve and code reused)
deploy and notify partners to migrate to linea_getProof
once migrated, make new release that only has new method.

@julien-marchand WDYT?

@jpnovais this endpoint is not yet used by external partners. The goal of this task is specifically to rename it to something more coherent before it's made available publicly

@usmansaleem @macfarla @matkt We plan to release the mainnet feature in ~10 days. Can we cut a release out of this, to rename it in the client part? Except if you want to package other changes to it in the short-term.

no other changes in the short term . I think we can make a release


target against planned output files

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.
Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

write a polciy file to a repo, then  after pike runs we acn compare any policy changes


[SPARK-45266][PYTHON] Refactor ResolveFunctions analyzer rule to delay making lateral join when table arguments are used

What changes were proposed in this pull request?
Refactors ResolveFunctions analyzer rule to delay making lateral join when table arguments are used.

Delay making lateral join when table arguments are used to after all the children are resolved
Resolve UnresolvedPolymorphicPythonUDTF in one place
Introduce a new error class UNSUPPORTED_SUBQUERY_EXPRESSION_CATEGORY.UNSUPPORTED_TABLE_ARGUMENT if table arguments are used inproperly.

Why are the changes needed?
The analyzer rule ResolveFunctions became complicated.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing tests.
Was this patch authored or co-authored using generative AI tooling?
No.

cc @dtenedor @allisonwang-db

Thanks! merging to master.


#3523: Raise syntax error when rest elt is not last

Description:
Raises a syntax error when the rest element is not the last element.
For example,
var rest, b;

for ({...rest, b} of [{}
]) ;

will raise a syntax error like so:
error: Rest element is not the last
 --> <anon>:3:7
  |
3 | for ({...rest, b} of [{}
  |       ^^^^^^^

BREAKING CHANGE:

Related issue (if exists):
https://github.com/swc-project/swc/issues/3523

closing this as it's dup of https://github.com/swc-project/swc/pull/3675


"slurp" is not exported by the Mojo::Util module

Another one:
"slurp" is not exported by the Mojo::Util module
Can't continue after import errors at test/version.t line 6.
BEGIN failed--compilation aborted at test/version.t line 6.
test/version.t ............
Dubious, test returned 255 (wstat 65280, 0xff00)
No subtests run

Still fails with 1.102.

It does not fail if Mojar 2.101 is installed, so probably just the minimum prereq version has to be set:
****************************************************************
Regression 'mod:Mojar'
****************************************************************
Name           	       Theta	      StdErr	 T-stat
[0='const']    	     -0.0000	      0.0000	  -8.18
[1='eq_2.101'] 	      1.0000	      0.0000<PHONE_NUMBER>3819704.00

R^2= 1.000, N= 49, K= 2

Thank you for contributing @eserte.
This was fixed in v1.102
https://travis-ci.org/niczero/mojar-message/builds/238050235


Suggestion: 301 redirects for old post links

This is along the lines of the feature discussed on the roadmap trello board, but with an added wrinkle: I'd like to be able to set a URL that Ghost will listen on to redirect traffic. This is important to me because my old posts (which have been linked elsewhere) have the URL structure /category/year/month/day/title/ and although I can get close with Ghost's date-in-the-permalink setting I'd like to not break everyone's links unnecessarily. So basically, the feature request is:
/development/2014/01/01/blah/ -> 301 /2014/01/01/blah/

It'd also be great if changed post titles/URLs would make redirection links, so as to never break a URL.
It might make sense for this to be an app, but it would certainly help ease the transition of popular blogs coming to ghost.

+1

This may be a job for the server if you're coming from an external platform, but I feel Ghost should absolutely be responsible for setting up redirects when you change the location of the post via the editor.
Case in point, I edited the 'welcome-to-ghost' post and changed its location, but not before Google found and listed it.
Now it's a 404. It should be a 301 to the new location of that post. This is pretty easy to manage by storing old and new slugs in the database and running all missing content requests though a front end controller.
Please re-open this... it's basic functionality.

This is pretty easy to manage by storing old and new slugs in the database and running all missing content requests though a front end controller.
Please re-open this... it's basic functionality.

@GaryStanton That's a different feature than this issue. We have wishlist where you can make/vote on feature requests, there are :

http://ideas.ghost.org/forums/285309-wishlist/suggestions/8616571-posts-redirects
http://ideas.ghost.org/forums/285309-wishlist/suggestions/11501454-404-not-found-redirects

However, this is not as simple as it sounds, if we do what you suggest then anywhere slugs are used in the UI it needs to be able to cope with the possibility of conflicts and management of historic data. What happens if you want to re-assign/delete an old slug? What happens when you want an old slug to point elsewhere completely? Does the user want the redirect be a 301 or 302? How is cache invalidation handled as slugs change? How long should the trail of historic slugs be? How do we prevent user's from shooting themselves in the foot with soft-404 penalties from Google?
All the above complexity needs to be designed, managed and maintained in order to account for an outside use case. In the rare occasions where a redirect is actually desired/warranted it's better to set up individual rules in your web server of choice.

Sure, everywhere a slug can be changed or created in the UI it needs to run through a bunch of functions to check for conflicts and such.
I've rolled this solution on several applications myself... I'd contend that slug functionality simply shouldn't exist in an application unless this side of it has been taken care of, otherwise you're just creating endless 404s every time a user changes a slug. I don't think you should expect the user to handle this server-side, it can become completely unmanageable very quickly.
My usual solution has a function to check for a slug conflict (presumably something like this exists already, lest two posts end up with the same slug) and deletes any records where the 'Old' slug matches our 'New' slug - otherwise you can end up in an infinite redirect.
I can't think of a use case where these redirects should be anything other than 301. If a user renames a slug back, the redirect conflict function takes care of the historical slug, and the redirect from the once new, now old, becomes a 301. 'Permanent' in this context is more about intention than timespan.
I have no experience with NodeJS at all, otherwise I'd have a crack at this myself... I might give it a look anyway. ;)

:+1: for this!


Update documentation on available structs

Document the Network struct introduced by #144
Document the IPv6 support introduced by #122

Thanks!


Job TF.AW.AdMetricSync is failing

Describe the bug 🐛
AdWords Transformation AdMetricSync is failing due to the error below.
Failed. Took "00:00:29.1411271".
System.OverflowException: Value was either too large or too small for an Int32.
   at System.Number.ParseInt32(ReadOnlySpan`1 s, NumberStyles style, NumberFormatInfo info)
   at Jobs.Transformation.AdWords.AdMetricSync.<>c__DisplayClass4_3.<ListAdMetrics>b__5(SourceAdMetric a) in /home/ubuntu/BuildAgent/work/65d81077067c10a5/src/Jobs.Transformation/Google/AdWordsJobs.cs:line 233

[x] I have searched the issues of this repository and believe that this is not a duplicate.

To Reproduce
Steps to reproduce the behavior 😯:

Go to src/ConsoleApp
Run dotnet run -- jobs -j Jobs.Transformation.AdWords.AdMetricSync
See error

Expected behavior  🤔
In my opinion, this error can be happening due to a problem during fetching data or fetching a wrong type(expected int but it is a string).
Your environment:

OS: Ubuntu 18.04
Browser chrome

This issue can be closed due to the result of #25


Correction for raw affiliation Department of Health Research Promotion Advocacy and Registration, National Institute for Medical Research, P.O.BOX 9653, Dar es Salaam, Tanzania<EMAIL_ADDRESS>

Correction needed for raw affiliation Department of Health Research Promotion Advocacy and Registration, National Institute for Medical Research, P.O.BOX 9653, Dar es Salaam, Tanzania<EMAIL_ADDRESS>raw_affiliation_name: Department of Health Research Promotion Advocacy and Registration, National Institute for Medical Research, P.O.BOX 9653, Dar es Salaam, Tanzania<EMAIL_ADDRESS>new_rors: 05fjs7w98
previous_rors: 04tnbqb63
works_examples: W3015053587
contact: e84780c71001242d2478d7c71456ad06:062267961d3b91a1b047e646d017c608baeea30b @ crick.ac.uk

This issue was accepted and ingested by the OpenAlex team on 2024-10-10. The new affiliations should be visible within the next 7 days.


Preset "fix" for users using file: protocol

Browser security limitations render it impossible to access the filesystem of users (obviously), but this extends to local document viewing. There's no fix for this.
This pull requests adds a modal when a user accesses the Preset menu from a file: protocol and instructs solutions.

For context, this feature will have absolutely no effect on those using the website from GitHub pages but is more targeted towards contributors who are accessing the document locally.
Keep in mind these developers should most definitely consider whipping up some sort of backend for the best results.


Hello, is PnP compatible while provisioning with Variations ? From my expiriance no, but perhaps i'm doing wrong.

Thank you for reporting an issue or suggesting an enhancement. We appreciate your feedback - to help the team to understand your needs, please complete the below template to ensure we have the necessary details to assist you. If you have a actual question, we would ask you to use PnP Yammer group at http://aka.ms/OfficeDevPnPYammer. Thanks!
Which PnP repository to report the issue?

PnP Samples - https://github.com/OfficeDev/PnP
PnP Sites Core - https://github.com/OfficeDev/PnP-Sites-Core
PnP JS Core - https://github.com/OfficeDev/PnP-JS-Core
PnP PowerShell - https://github.com/OfficeDev/PnP-PowerShell

You can delete this section after you have confirmed target repository for your submission.
Category
[ ] Bug
[ ] Enhancement
Environment
[ ] Office 365 / SharePoint Online
[ ] SharePoint 2016
[ ] SharePoint 2013
If SharePoint on-premises, what's exact CU version:
Expected or Desired Behavior
If you are reporting a bug, please describe the expected behavior. If you are suggesting an enhancement please
describe thoroughly the enhancement, how it can be achieved, and expected benefit.
Observed Behavior
If you are reporting a bug, please describe the behavior you expected to occur when performing the action. If you are making a suggestion, you can delete this section.
Steps to Reproduce
If you are reporting a bug please describe the steps to reproduce the bug in sufficient detail to allow testing. Only way to fix things properly, is to have sufficient details to reproduce it. If you are making a suggestion, you can delete this section.
Submission Guidelines
Delete this section after reading

All suggestions or bugs are welcome, please let us know what's on your mind.
If you are reporting any issues around PnP Core Component, please reproduce the issue with latest release.
If you are reporting issue around PnP Provisioning Engine, please share the xml template, if possible.
If you are reporting an issue around any of the samples, please ensure that you have clear reference on the sample and possibly code file, which should be fixed.
If you have a general question, please use the PnP Yammer Group.
Remember to include sufficient details and context.
If you have multiple suggestions or bugs please submit them in seperate bugs so we can track resolution.

Thanks for your contribution! Sharing is caring.

Variations are dependent on the root site definition which the site has. This means that remote provisioning or even web templates (or site templates) do not really support variation style logic.


Any new release plan?

The latest release is 2020.06. Would there be another one soon?

2020.07 is out. I guessed the voice was heard. Closing it.

Yeah, sorry. This got passed around and we forgot to follow up. Thanks for the poke!


Add loading cursor on all loading stages

From @Robbie1977 on November 8, 2017 14:19
Ensure the mouse cursor also changes when fly spins
Copied from original issue: VirtualFlyBrain/geppetto-vfb#100

From @dosumis on November 21, 2017 15:39
The spinning fly is too unobtrusive - very easy to miss.


Child hasn't been found for path

Import: System.Exception: Child  hans't been found for path
   at uTinyRipper.Classes.Transform.FindChild(String path, Int32 startIndex)
   at uTinyRipper.Classes.AnimationClips.CustomCurveResolver.ToAttributeName(BindingCustomType type, UInt32 attribute, String path)
   at uTinyRipper.Classes.AnimationClips.AnimationClipConverter.AddCustomCurve(AnimationClipBindingConstant bindings, GenericBinding binding, String path, Single time, Single value)
   at uTinyRipper.Classes.AnimationClips.AnimationClipConverter.ProcessStreams(IReadOnlyList`1 streamFrames, AnimationClipBindingConstant bindings, IReadOnlyDictionary`2 tos, Single sampleRate)
   at uTinyRipper.Classes.AnimationClips.AnimationClipConverter.ProcessInner()
   at uTinyRipper.Classes.AnimationClip.ExportGenericData()
   at uTinyRipper.Classes.AnimationClip.GetAnimationCurves(Version version, Platform platform)
   at uTinyRipper.Classes.AnimationClip.ExportYAMLRoot(IExportContainer container)
   at uTinyRipper.Classes.Object.ExportYAMLDocument(IExportContainer container)
   at uTinyRipper.AssetExporters.YAMLAssetExporter.Export(IExportContainer container, Object asset, String path, Action`3 callback)
   at uTinyRipper.AssetExporters.YAMLAssetExporter.Export(IExportContainer container, Object asset, String path)
   at uTinyRipper.AssetExporters.AssetExportCollection.ExportInner(ProjectAssetContainer container, String filePath)
   at uTinyRipper.AssetExporters.AssetExportCollection.Export(ProjectAssetContainer container, String dirPath)
   at uTinyRipper.AssetExporters.ProjectExporter.Export(String path, FileCollection fileCollection, IEnumerable`1 assets)
   at uTinyRipperGUI.MainWindow.ExportFiles(Object data)

level1.zip
If you need dependencies, it's pretty big file like 4gb so I can upload somewhere else

Yes I need a dependecies. Please upload to something like mega or google drive

I tested and got the same error with these files.
The game uses engine version: 5.6.2p4
https://mega.nz/#!QIlmXYaS!PctfEG2BTJqVqTMakRUPx8Qv52smQP0aZnopyjWNkR0

Try last update

Last update I had this issue: https://github.com/mafaca/UtinyRipper/issues/83

Worked perfectly. Thanks for the help. This is a sick project man. Btw it's impossible to get scripts?

UR exports stubs for scripts if game uses .NET (Mono) scripting backend. Il2cpp isn't implemented and I'm not going to add support for it soon.


x/build: host-aix-ppc64-osuosl is missing

AIX builder is missing. The VM has to be restarted this morning, but something went wrong during the restart.
It should be up tomorrow.  I'll post updates on this issue, if it needs more time.

Thanks for looking into this.

Closing. Everything seems alright.
I might restart it once just to check that my modification is working correctly.

It looks as though the builder is having issues again. According to  https://farmer.golang.org/
host-aix-ppc64-osuosl: 52 waiting (oldest 5h48m3s, newest 1m20s, progress 9m4s)
gomote: 1 (oldest 1m20s, newest 1m20s)
Is this expected?  I kicked off a "gomote create" just now and it is still running after 10 mins.
It would be great if the aix-ppc64 builder were working today, it is one the critical path right at the moment for the new linker effort.

Update: my "gomote create" finally went through. Closing the issue again, hopefully it will behave.

yes, the machine is just busy building the delayed commits I think.

I've been warn that the machine will be down again on Thursday 30st of April from 6 GMT to 12 GMT.


Tracing API

Tracing API header files.

Test this please

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.

Test this please.


Fix app labels

Towards

https://github.com/giantswarm/giantswarm/issues/30245

We generate the manifests with make all. I fixed that part.


Generating Filters

Translate the core functions which generate the wavelet filters from s2let (c) to s2wav (base python).
Difficulty:

Medium

Background:

The wavelet transform works by "tiling" the harmonic domain with sets of filters, which can be designed for particular applications. Using filter functions (which must already be translated) we can essentially iteratively generate a vector of filters.

S2let File to translate:

can be found here but don't include lines 41-110.

S2Wav File location:

should be put in the main package directory here

Notes:

Remember that in python we don't need to allocate memory, so we can just start with standard numpy arrays of the correct dimension and ignore commands like "calloc" etc.

This issue can be split straightforwardly into three sub-issues: (1) to implement the axisymmetric filters (i.e. filters which depend only on multipole l, these are circularly symmetric filters on the sphere); (2) to implement the directional filters (i.e. filters which depend both on l and m, these filters are more general); (3) implement the validation functions (just to check everything is working!).

[ ] Implement axisymmetric filters (from this line to this line.
[ ] Implement directional filters (from this line to this line)
[ ] Implement the identity validation functions (from this line until the end of the file)

I'm having some trouble with computing the normalisation. In this line. It throws a divide by zero error in my implementation. The tiling integrand is computed with the value k = 1/B, making t = -1, and giving a 0 in the denominator in the exponent here. This is happening for the first i=0 in this loop here. From my understanding of C this loop should start from i=0. Or is it i=1? That would seemingly solve the issue?  @CosmoMatt @jasonmcewen

Or perhaps the issue is that Python throws an exception with division by zero. Then I could modify the function so that it doesn't try to compute the integrand in the Python version of this if it would be undefined instead of not adding the contribution from undefined terms like in the C code? Or modify the limits when computing the normalisation. @CosmoMatt @jasonmcewen

I've just taken a look @alicjapolanska and that is particularly funky. I'll take a deeper look now and try to figure out what on earth is going on here.

Ok @alicjapolanska I think in theory this loop would be better suited to start from 1 than 0 BUT then we would need a different function which starts from 0 for all the other iterations when a != 1/B. To avoid duplicating code we instead have this exception catch, which in your case (a=1/B) will just ignore the contribution from the first loop.
Now, why the divide by 0 here isn't caught in the C code. C code can be compiled in multiple modes; the two most common being debug and release. When in debug mode C is much more sensitive to these kind of errors (as its useful to see where these bugs will crop up), however because of the extra checks the overall code will be slower. When in release mode C will take whatever garbage you feed it and return an associated value, but it will do this extremely quickly. In this case the divide by zero leads to exp(-infty) = 0 and so the term doesn't contribute as it is 0.
Best way to get around this for now is probably just to explicitly add a check for
if a == 1/B:     return 0 else:    do the normal function
or something to that effect. Does that make sense?

I see, thanks @CosmoMatt ! I'll add this check. I imagine we will need to rethink this anyway when we switch to the scipy integrator in the future.


Replace RtR intro text with what Emily suggested

Something along these lines.. also could be tweaked with how we go with #683
The questions you have about sleep apnea are important. MyApnea.Org is different in that it is focused on patient-centered research. Who else knows more about your condition and your lived experience than you?
This tool offers a way for you to let other members (patients, providers and researchers) know what questions matter to you most.
The end goal is to take a top rated question (a question that has received many “endorsements”) and for researchers to develop a grant proposal or study investigation on those questions that currently lack data. Top rated questions that have already been well researched will be reviewed and presented in the Research Highlights section of MyApnea.Org.
Let's get started with 10 research topics. Once you click 'Get Started', you'll see a series of ten research questions that have been submitted by our members. You can “Agree” if you think it is an area that should be researched or you can “Disagree” if you don’t think it is of significant importance. We encourage you to add a comment to help explain your vote.
Once you're finished with these ten, we'll bring you to the full view, where you can see the most popular and most discussed topics, and get the chance to ask your own questions.

Also, for the outro (from @mrueschman ):

It looks like you're really getting the hang of this. Why don't you try propsing your own research question? Or, you can continue on and see all of the research topics that are currently being voted on, and read the state of the research for topics that have been approved.


Unable to deploy PolicyRecordingBot.

Describe the issue
Unable to deploy PolicyRecordingBot.
Code Snippet
Expected behavior
Deploy PolicyRecordingBot to Cloud Services (extended support)
Graph SDK (please complete the following information):
Call ID
Provide the list call ids that encountered this issue. Include the time in UTC/GMT when these call have occurred.
Logs
Additional context
Hello.
I'm trying to make sure PolicyRecordingBot is working.
But it fails to deploy.
Currently, newly created subscriptions are
Cloud Services (classic) is not supported, so I have to choose Cloud Services (extended support).
Have you confirmed that it works there?
Cloud.cscfg and ServiceDefinition.csdef provided by Github are sufficient?
Also, there seems to be no SampleGraphBotProduction1.azurePubxml, where is it?
-------こんにちは
PolicyRecordingBotの動作確認しようとしていますが
でも、デプロイに失敗します
現在新規に作成したサブスクリプションでは
Cloud Services (classic) はサポートされないため Cloud Services (extended support) 一択なのですが
そこでの、動作確認はできていますか？
ServiceConfiguration.Cloud.cscfg、ServiceDefinition.csdefはGithubで提供されているもので十分でしょうか
また、SampleGraphBotProduction1.azurePubxmlがないようですが、どこにありますか

I can confirm that the bot can work in cloud services extended support. Not sure what is in the sample code.

thank you for your help!
I was able to deploy.
However, I have not been able to debug it, so I have not been able to verify that it is working correctly.

How to debug remotely from Visual Studio 2019?

I have not debugged remotely, but this tells you how to do it locally:
https://microsoftgraph.github.io/microsoft-graph-comms-samples/docs/articles/Testing.html
Some helpful stuff here too; https://blog.markoliver.website/Category/Microsoft Teams Compliance Recording

Sorry, I encountered a problem when deploy to Cloud Services (extended support).
What DnsName should I use in .cscfg file?
Anyone can solve my problem? Thank you so much.


Hotkeys activate when typing a comment.

If you write a comment with the letter p in it is changes the video speed.

I'll add, whatever the focus is, the letter p causes the change of the video speed

This is a consistent issue and should be fixed. At the least, a menu to turn this hotkey on or off would be fine. All the other hotkeys do don't really have consistent problems with, except this one.

Thanks for this feedback. For the moment I've disabled the keyboard functionality with #16. I'll look out for the feedback on the removed functionality and if it's missed will work out a plan to support it without the hotkey activation issue when typing in search and comments.


apt-get -qq flag doesn't hush root

Although apt-get has a -q and -qq flag, root gets the whole story no matter what.
Possible solutions:

Pipe output to disk instead of stdout?
Don't be root?
Sit back in awe as the screenfuls scroll ad nauseam?

Interesting, on the topic of headless installs (not related to hush):
http://stackoverflow.com/questions/7739645/install-mysql-on-ubuntu-without-password-prompt
https://obviate.io/2008/12/04/truly-non-interactive-unattended-apt-get-install/


feat(prettier) Print Super expression

Current dependencies on/for this PR:

main

PR #1263

PR #1264   👈

This stack of pull requests is managed by Graphite.


Auth/OpenID/CryptUtil.php : replace mt_rand() by something better

http://www.php.net/manual/en/function.mt-rand.php
http://www.openwall.com/php_mt_seed/

Because mt_rand only uses 32-bit seeds, the use is deprecated. http://www.php.net/manual/en/function.mt-rand.php recommends the use of  openssl_random_pseudo_bytes() .

This repo is being archived. Closing issue.


Example module.xml

Hi! Are you able to provide an example module.xml file? Currently I'm getting the following error:
16:08:35,049 ERROR [org.keycloak.services.error.KeycloakErrorHandler] (default task-2) Uncaught server error: java.lang.NoClassDefFoundError: javax/ws/rs/core/Response
My module.xml file:
<?xml version='1.0' encoding='UTF-8'?>

<module xmlns="urn:jboss:module:1.1" name="fr.benjaminfavre.provider">

    <resources>
        <resource-root path="provider.jar"/>
    </resources>

    <dependencies>
        <module name="org.keycloak.keycloak-core"/>
        <module name="org.keycloak.keycloak-server-spi"/>
        <module name="org.keycloak.keycloak-services"/>
        <module name="org.keycloak.keycloak-server-spi-private"/>
    </dependencies>
</module>

I tried to provide this dependency using another module.xml:
<?xml version='1.0' encoding='UTF-8'?>

<module xmlns="urn:jboss:module:1.1" name="javax.ws.rs-api">

    <resources>
        <resource-root path="provider.jar"/>
    </resources>

    <dependencies>
    </dependencies>
</module>

of course i provided the dependency to the "Apple Social Identity Provider" module using:
<module name="javax.ws.rs-api"/>

At first no errors occurred any more, but after trying to sign in nothing happens and the broker endpoint returned a 405.

I tried to provide this dependency using another module.xml:
<?xml version='1.0' encoding='UTF-8'?>

<module xmlns="urn:jboss:module:1.1" name="javax.ws.rs-api">

    <resources>
        <resource-root path="provider.jar"/>
    </resources>

    <dependencies>
    </dependencies>
</module>

of course i provided the dependency to the "Apple Social Identity Provider" module using:
<module name="javax.ws.rs-api"/>

At first no errors occurred any more, but after trying to sign in nothing happens and the broker endpoint returned a 405.

I also included the "fr.benjaminfavre.provider" module in the standalone-ha.xml section specified in the README

I also included the "fr.benjaminfavre.provider" module in the standalone-ha.xml section specified in the README

@asterix11 Have you solved the problem already? I'm also stuck on module.xml file. What should I write in standalone.xml? @BenjaminFavre @asterix11  please help )))

@asterix11 Have you solved the problem already? I'm also stuck on module.xml file. What should I write in standalone.xml? @BenjaminFavre @asterix11  please help )))

Do you need more information to classify the issue?

Do you need more information to classify the issue?

@BenjaminFavre Are you still maintaining this?

I'm getting the a different problem with the same file:
15:18:14,920 FATAL [org.keycloak.services] (ServerService Thread Pool -- 63) Error during startup: java.lang.RuntimeException: org.jboss.modules.ModuleLoadException: Error loading module from /opt/jboss/keycloak/modules/fr/benjaminfavre/provider/main/module.xml.

I work on the provider only when I need to upgrade my own Keycloak production server, sorry.
For now, the provider works fine for me and other people, and I’m not sure the bug comes from the provider, maybe it is related to the way you install it and I am no help for the matter.
I never had to modify module.xml, I just drop the jar in the deployments folder and it works.
If you find the cause of your problem and it appears to be solvable by a fix in the provider code, please post a pull request and I will gratefully merge it.
Check your Keycloak version too, current provider release works with Keycloak 11.0.2

@BenjaminFavre we are using the last keycloak version: 12.0.3, it seems the current provider version is not compatible with the last deployment requirements.

@BenjaminFavre we are using the last keycloak version: 12.0.3, it seems the current provider version is not compatible with the last deployment requirements. I tested with 11.0.3 and 11.0.2 from JBoss/Keycloak and it never worked.


Secor does not handle topic deletion gracefully

When a topic gets deleted, the consumer offset for secor stays at whatever it was before, and causes these sorts of ERRORs:
2015-08-27 21:53:50,911 [ConsumerFetcherThread-secor_consumer1231423_e25fd1c7e266_1_12-0-1] (kafka.utils.Logging$class:97) ERROR [ConsumerFetcherThread-secor_consumer1231423_e25fd1c7e266_1_12-0-1], Current offset 15 for partition [test.endtoendtest.category01,0] out of range; reset offset to 0
However, it doesn't resolve itself. In the mean time, a lot of errors get produced on the kafka end, since secor is requesting out of range offsets or non-existent topics.
I was hoping auto.offset.reset=min would help but looks like it has no effect.

Would restart secor help to remove the deleted topic?
If not, would specify some regex expression on topicFilter work to exclude that topic?
Kafka also have a concept of Blacklist (we only used its Whitelist), you can extend secor to use the Kafka's Blacklist to exclude topics (and send us the PR).

Hi henry,
Just tried restarting secor; doesn't seem to have an effect.
Filtering out the topic probably works, but it seems like a bandaid fix, and requires explicit input. I wonder how much work it would be to have secor fix its consumer group offsets whenever it encounters this sort of situation.

This seems to me more like a kafka bug (the high level consumers is still
consuming from a deleted topic), if you put more work in secor to handle
deleted topic, this sounds kludge to me.
Kafka topic deletion is usually not a common event in a production system,
that's why I suggest using topicFilter (or add support for Blacklist) for
those deleted topics, this only needs to happen once in a long while.
On Thu, Aug 27, 2015 at 4:14 PM, fabeschan<EMAIL_ADDRESS>wrote:

Hi henry,
Just tried restarting secor; doesn't seem to have an effect.
Filtering out the topic probably works, but it seems like a bandaid fix,
and requires explicit input. I wonder how much work it would be to have
secor fix its consumer group offsets whenever it encounters this sort of
situation.
—
Reply to this email directly or view it on GitHub
https://github.com/pinterest/secor/issues/126#issuecomment-135580375.

fabeschan, I am closing this one.  Let me know whether you want to play with topic filters.


Sonarr + rclone + crypt + mount + ACD

Hi,
I have mounted a ACD using rclone crypt mount. And using Sonarr to manage my Seasons collection. (Sonarr is pointed to mounted location)
After my torrent client download the file(Local). Sonarr tries to rename the file and move the file to my mounted location but it fails everytime.
In the logs I get the below:
2016/10/21 15:12:16 TV Shows/Vikings/Season 04/Vikings - 04x01 - A Good Treason - SDTV - x264 AAC.mp4.partial~: WriteFileHandle.Flush error: Post https://content-na.drive.amazonaws.com/cdproxy/nodes?suppress=deduplication: http: ContentLength=540 with Body length 390787417
2016/10/21 15:12:16 TV Shows/Vikings/Season 04/Vikings - 04x01 - A Good Treason - SDTV - x264 AAC.mp4.partial~: WriteFileHandle.Flush error: Attempt to use closed file handle
2016/10/21 15:12:16 TV Shows/Vikings/Season 04/Vikings - 04x01 - A Good Treason - SDTV - x264 AAC.mp4.partial~: Dir.Rename error: no such file or directory
2016/10/21 15:12:19 TV Shows/Vikings/Season 04/Vikings - 04x01 - A Good Treason - SDTV - x264 AAC.mp4.partial~: Dir.Remove error: no such file or directory
Seems like Sonarr tries to transfer the file in parts and thus causing some issue.
I tried above setup by removing the crypt. But its causing the same error.
Please let me know if you need any other logs.
Thanks

Also When I sync my Plex Library. Pointed towards mounted location. I get below errors:
2016/10/21 15:44:32 Anime/Looney Tunes/Looney Tunes Vol 1/Looney.tunes.e39.1080p bluray x265 HEVC-Lewiswill[UTR].mkv: ReadFileHandle.Read error: file already closed
2016/10/21 15:44:43 Anime/The Legend Of Korra/Season 00/The Legend Of Korra S00E00 S2 Scene Bending Harmonic Convergence x265 HEVC-ByteShare[UTR].mkv: ReadFileHandle.Read error: file already closed

The problem I suspect is that ACD doesn't support renames: https://github.com/ncw/rclone/issues/122
I don't recommend you upload files with the mount - use rclone copy for that as it will be a lot more reliable.

@ncw, I've been able to rename files using acdcli.  Just throwing that out there in case you weren't aware of potentially an undocumented capability.

I'm going to close this as #835 covers the rename issue.


Triple-slash reference affects all files instead of just the one file that contains it.

TypeScript Version:  2.4.2
Code
/// <reference types="mocha" />

Expected behavior:
Types from mocha are only available to the test ts file that include this triple-slash reference.
Actual behavior:
Types from mocha are available to all the ts files in the project, including both prod code and test code.
This is unexpected. How do we prevent Mocha test types from accidentally getting into prod code?

We're having the same problem with Jest, which declares even more ambient definitions than mocha:  If one unit test does /// <reference types="mocha" />, then all the product code can suddenly access these definitions.

/// <reference types="mocha" /> is a global directive. it is an alias to --types in your tsconfig.json or on the commandline.
What mocha does is it adds declarations to the global scope, and there is no way to tease out what a global means in one module and not the other..
My recommendation here is to have your tests in a separate compilation, and they would include mocha.

My recommendation here is to have your tests in a separate compilation, and they would include mocha.

If we want VS Code IntelliSense for the unit tests, does that mean we need to create a separate package.json and/or tsconfig.json file?
@iclanton

tsconfig.json is all you need


Update SSH Host key of aoc.lewagon.engineering

Let's try this one and see if it fixes staging deployment.

Staging is running 👍 https://github.com/pil0u/lewagon-aoc/actions/runs/11476772063/job/31937478254
Thank you!

À la bonne heure


Non-working implementation of eic::pin::ExternalInterrupt::id()

In attempting to use the button_debounce_pins() function in my RTIC example, I was unable to successfully use the atsamd_hal::thumbv7em::eic::pin::ExternalInterrupt trait. Instead of using the id() function, I simply hardcoded the ID's value in.
I've submitted a pull request #639 which has the edge_counter example. This has the hard-coded fix as well as the non-working line on lines 70/71, and I'm not sure how to get line 71 working in a more idiomatic way.

Duplicate issue of #628

Closed by #641


button

this is a solution to the button hover please check it out

Hey @naim16031988
You're simply awesome bro!

Hi bro!
Is there any possibility to make link active when user visits mohamedmafaz.github.io/Propoplex  I found a bug that after clicking the page If I click anything else, that gray colour disappears.

Uploading Propoplex_ Your Freelancing Partner.mp4…

Take a look at this
https://github.com/MohamedMafaz/Propoplex/assets/113255500/d7f2f003-7fb4-46b5-a158-b50df0020a60

Alright i will give it a try

i just pulled request this issue.


fix: add Host header when used with http_proxy

fix: add Host header when used with http_proxy
What kind of change does this PR introduce?
a bugfix

Did you add tests for your changes?
If relevant, did you update the documentation?
Summary

Does this PR introduce a breaking change?
no

Other information
manual http.get() differs from use a agent = HttpProxyAgent() (imported from http-proxy-agent package) instance, for Host header.
say proxy for https://httpbin.org/headers

use https.get('https://httpbin.org/headers', { agent: HttpProxyAgent('http://<IP_ADDRESS>:54321') }) will have Host: httpbin.org sent to <IP_ADDRESS>:54321
https.get without Host set will use proxy's host <IP_ADDRESS>:54321 which breaks my current proxy server.

I found some evidence indicates it's client's job to make it right.

https://datatracker.ietf.org/doc/html/rfc2616#section-14.23
from http: the definitive guide Book, page 419

If the URL contains a hostname, the Host header must contain the same name.

Host headers and proxies
Some browser versions send incorrect Host headers, especially when configured to use proxies. > For example, when configured to use a proxy, some older versions of Apple and PointCast clients mistakenly sent the name of the proxy instead of the ori- gin server in the Host header.

AND why https-proxy-agent but not http-proxy-agent?

signed.