innodb support (mysql 5.6+)

fixes #455
1/ the original algorithm works only on mysql < 5.6 or if myisam engine is enabled. On innodb, deletion strategy isn't reliable at all. We have many test failures because of this bug.
2/ instead of using information_schema COUNT(*) entries from all tables. This is suprisingly much faster (about 30 times) and reliable.
3/ also accessing information_schema is VERY slow, if caching is enabled, we don't have to access information_schema over and over again. It saves some additional time between tests.

@ahorek Thank you! 👍


Encountered an error

dotnet watch
dotnet watch 🔥 Hot reload enabled. For a list of supported edits, see https://aka.ms/dotnet/hot-reload.
💡 Press "Ctrl + R" to restart.
dotnet watch 🔧 Building...
Determining projects to restore...
All projects are up-to-date for restore.
BlazorApp -> C:\Users\30233674\BlazorApp\bin\Debug\net8.0\BlazorApp.dll
dotnet watch 🚀 Started
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://localhost:5192
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Development
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\Users\30233674\BlazorApp
warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.

The message "Failed to determine the https port for redirect." is just a warning that you can safely ignore.
We're tracking an improvement of this experience at https://github.com/dotnet/aspnetcore/issues/53229.


Read me file is not complete

I want to see better title, description and roadmap.

Working on this now

Includet in pre-release v0.0.1-alpha


Always require GTFS+ yml on config init

Checklist

[x] Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
[x] Any modified or new methods or classes have helpful JSDoc and code is thoroughly commented
[x] The description lists all applicable issues this PR seeks to resolve
[x] The description lists any configuration setting(s) that differ from the default settings
[x] All tests and CI builds passing

Description
Fix #486 by always requiring GTFS+ yml.

Codecov Report

Merging #487 into dev will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##              dev     #487      +/-   ##
==========================================
+ Coverage   16.27%   16.28%   +<.01%
==========================================
  Files         309      309
  Lines       15308    15307       -1
  Branches     4666     4665       -1
==========================================
+ Hits         2492     2493       +1
+ Misses      10954    10952       -2
  Partials     1862     1862

Flag
Coverage Δ

#unit_tests
16.28% <100%> (ø)
:arrow_up:

Impacted Files
Coverage Δ

lib/common/util/config.js
70.9% <100%> (+3.05%)
:arrow_up:

Continue to review full report at Codecov.

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

:tada: This PR is included in version 4.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


pandas documentation

Looks good. In general, when you open a PR, you want to add the issue you're addressing to it. So there is context for the reviewer. That also will make GitHub to automatically add a link in the issue, so it's easy for anyone that checks the issue that there is already work done on that.
Then, two things about the context of your PR:

I think it'd be better to copy the files to docs/source/development, the same exact path as in pandas
You added to the PR many files in a .svn directory. I don't think we want those in our repo.

Thanks!


Notification email talks about mobile app like it doesn't exist yet

I added a new mobile device and got a notification email from<EMAIL_ADDRESS>which includes stuff like this:
### What happens if I wipe/restore a mobile install of Keybase?

 Our mobile app isn't ready, but we're answering this in advance.

This needs a once-over to acknowledge the existence of the (quite good) mobile app.

cc @malgorithms

ah thanks, this is specifically in the plaintext version of the email. fixed.


[Question]: Why is the token count fixed at 128 when using the Ollama embedding model, instead of being based on the text content?

Describe your problem
Why is the token count fixed at 128 when using the Ollama embedding model, instead of being based on the text content?

It's just a mockup data since ollama doesn't return the count.

thanks，i try it and get the same result.


Need more verbosity when launching containers with errors

Rancher Version: 1.1.1
Docker Version: 1.11.2
OS and where are the hosts located? (cloud, bare metal, etc): AWS, RancherOS 0.4.5
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB) External DB
Environment Type: (Cattle/Kubernetes/Swarm/Mesos) Cattle
Steps to Reproduce:
Try to start a container through Rancher on a host or service. Do something intentionally incorrect, like try to run alpine without a command.
Results:
You get either a container stuck on "Starting (Starting)" indefinitely, or you get to see that the container has "Stopped" without any insight in the logs. Rancher server logs have errors like this:
2016-08-16 14:23:15,368 ERROR [:] [] [] [] [orService-11144] [i.c.p.e.e.i.ProcessEventListenerImpl] Unknown exception running process [instance.start:133645] on [1636] io.cattle.platform.eventing.exception.EventExecutionException: 500 Server Error: Internal Server Error ("No command specified")

Expected:
If I were to try this locally I get much better insight
[rancher@ip-10-0-6-47 ~]$ docker run alpine
docker: Error response from daemon: No command specified.
See 'docker run --help'.

Can we start relaying these types of errors to the Rancher UI instead of burying them in the Rancher Server logs?

The same error message exists at the container level. As we try to start up containers, the container will error out and stick around for a bit before being removed and restarted.

Weird, I never saw that no matter how long I waited! It was just stuck on "Restarting" while the Rancher server logs did show that. Maybe there's something broken in between?

Are you looking at the contianer or service?

Container. If I see the problem again I'll grab some more logs from both the UI and server and try to get some better insight for you.


Adds debug log to frame evm

This PR only adds debug logs for the EVM frame, providing some information for easier troubleshooting.
It is based on sp-evm-run branch.
Example of output:
2020-06-27 13:10:03.088 tokio-blocking-driver DEBUG evm  Execution Succeed(Returned) [source: 0x6be02d1d3665660d22ff9624b7be0551ee1ac91b, value: 0, gas_limit: 1048576, used_gas: 890864, actual_fee: 0]
2020-06-27 13:10:03.088 tokio-blocking-driver DEBUG evm  Updating state of 0x6be02d1d3665660d22ff9624b7be0551ee1ac91b [value:<PHONE_NUMBER>09135999863044, nonce: 10]
2020-06-27 13:10:03.089 tokio-blocking-driver DEBUG evm  Updating state of 0xdc552396caec809752fed0c5e23fd3983766e758 [value: 0, nonce: 1]
2020-06-27 13:10:03.089 tokio-blocking-driver DEBUG evm  Inserting code (3642 bytes) at 0xdc552396caec809752fed0c5e23fd3983766e758
2020-06-27 13:10:03.089 tokio-blocking-driver DEBUG evm  Updating storage for 0xdc552396caec809752fed0c5e23fd3983766e758 [index: 0x0000000000000000000000000000000000000000000000000000000000000002, value: 0x0000000000000000000000000000000000000000000000000000000000026160]
2020-06-27 13:10:03.089 tokio-blocking-driver DEBUG evm  Updating storage for 0xdc552396caec809752fed0c5e23fd3983766e758 [index: 0x72045beb6bfbe6197e6cbe54e7341ffbeaf432433d0457a5de91cb6e7ffd69a7, value: 0x0000000000000000000000000000000000000000000000000000000000026160]
2020-06-27 13:10:03.089 tokio-blocking-driver TRACE evm  Inserting log for 0xdc552396caec809752fed0c5e23fd3983766e758, topics (3) [0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef, 0x0000000000000000000000000000000000000000000000000000000000000000, 0x0000000000000000000000006be02d1d3665660d22ff9624b7be0551ee1ac91b], data (32): [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 97, 96]]

[clabot:check].

@crystalin Published the evm 0.17.0 with the new interface. See if this fixes your problem.

@sorpaas do you know why this one was not merged?

@crystalin Looks like what happened is that this PR was opened against sp-evm-run branch. Then sp-evm-run PR got merged, that target branch deleted, so this PR was automatically closed. And then it got missed. Sorry about this!
Would you mind to reopen a new PR against master branch? Thank you!


remove possibility for multiple content frames

In #54 we concluded that we want, for the first version of the protocol, to restrict messages to a single json-rpc frame. This now corrects an additional place where multiple frames were mentioned.

I would not restrict the Message format to have only one payload frame. The restriction applies only to the json rpc messages.
That allows the routing etc. to handle more than one content frame (for future or user applications), while the parsing of commands (in LECO's native format: jsonrpc) takes place only in the first frame.

Okay, I understand, fine with me, closing this.


Emitter.js accidentally committed?

I think the file https://github.com/Microsoft/TypeScript/blob/master/src/compiler/emitter.js should not be there?

@mhegazy works fast

:+1:

:D @github ui roks!


Support for struct update ?

Hi ?
Would it be feasible to have support for struct updates : ~M(%State state|val1, val2) ?

Thanks for your interest in the project! Currently, ShorterMaps works on Structs because they are maps, e.g.: ~M{state|val1, val2}, which expands to %{state|val1: val1, val2: val2}.  By adding the syntax you propose, you'd gain compile-time checking of keys.
I think this is definitely syntax we can and should support, though at the current moment my time is a bit stretched.  I'll definitely add this with my next update, but if you are looking to use it right away, I'll gladly welcome a pull request.
Chris

Sure I would like to help, but I'm not sure I could know how to do that. I'll give it a try, though :)

I've published version 2.2, which provides this functionality.  Please comment after you've given it a try to let me know if it solves your need.

Hey, thank you, it works great !


Provide RegularFileProperty replacement for ArchiveFileTask#getArchiveFile

This will add:
@OutputFile public RegularFileProperty getArchive()
and deprecate the existing:
@OutputFile public Provider<RegularFile> getArchiveFile()
Having the more specific type present in the API enables clients to do things like call getArchive().getOutputLocation() to reference/dependUpon a file location without implicitly referencing/dependingUpon the contents of the file or the task that produces that file.
This new property can use the same backing field.
See https://github.com/gradle/gradle/issues/10619 for context.

The current property Provider<RegularFile> getArchiveFile() blocks users from modifying the underlying value. I believe, it is good.
If you expose RegularFileProperty, then users would accidentally be able to modify the value by using RegularFileProperty#fileValue(File) and similar APIs.
It would play strangely with the existing DirectoryProperty getDestinationDirectory() property that configures the destination directory for the file.
At the same time, every Provider.map and Provider.flatMap would drop RegularFileProperty down to Provider<RegularFile>, and the users won't be able to use locationFile anyway.
What do you think of adding an API like the following instead?
interface ProviderFactory {
    <T extends FileSystemLocation> Provider<T> locationOnly(Provider<T>);
}

Kotlin DSL could add an accessor
fun <T : RegularFile> Provider<T>.locationOnly(): Provider<T> =
    providers.locationOnly(this)

Then the users should be able to query locationOnly from all Provider<RegularFile> instances.

Frankly speaking, I do not see why locationOnly is a special case. Even though it might be useful on its own (e.g. assembling the list of the files), it looks like a part of a more common use-case.
So it might make sense to add an explicit API to drop task dependencies:
interface ProviderFactory {
    <T> Provider<T> withoutTaskDependencies(Provider<T>);
}

@big-guy what do you think about this suggestion?
I like the idea of withoutTaskDependencies, and I think this is a good point against changing the provider to a property.  I don't really like the idea of adding a separate locationOnly provider based on the same data.


adding docker support

Adds docker support
You can set this up as a trusted build with https://hub.docker.com

Thanks @ekristen this looks great! Could you add some documentation to the README.md to explain that it now has docker support and how to get it up and running using docker?

bump
I'd love to get this in, just needs a little documentation!

:+1:

I'm all for getting this updated. Would you be opposed to merging in the RC config one too? or is that too much of a change. The reason I ask is because the RC config would make configuring David WWW 100% by env vars possible which makes the configuration and documentation to for docker easier.
Without it, its a bit more work, but not impossible.

Yes I'd rather use rc

should I merge my RC PR into this one, so its all in one fell swoop?

if you like yeah...

Superseded by https://github.com/alanshaw/david-www/pull/220


Info on DFL

Hey @iperov Curious if you can share what the violation was, that caused the DFL repo to be taken down? Sorry I'm posting here, not sure how else to ask you.

github has banned the DeepFaceLab repo in accordance with the new rules:
GitHub does not allow any projects that are designed for, encourage, promote, support, or suggest in any way the use of synthetic or manipulated media for the creation of non-consensual intimate imagery or any content that would constitute misinformation or disinformation under this policy.


RuntimeError: Already borrowed using mtl model in Hanlp2.1.x  with multiple threads

Describe the bug
The multiple task learning model in Hanlp2.1.x can not support multiple threads, a RuntimeError with Already borrowed is raised and can reproduce stably. Seem as this is a bug in transformers >3.5.0 with a fast tokenizer.
Code to reproduce the issue
from multiprocessing.dummy import Pool as ThreadPool
import hanlp

class Hanlp(object):
    def __init__(self):
        self.model = hanlp.load(hanlp.pretrained.mtl.CLOSE_TOK_POS_NER_SRL_DEP_SDP_CON_ELECTRA_SMALL_ZH)
    def get_batch(self, sentences):
        return self.model(sentences)

model = Hanlp()
def tokenizer_test(text):
    print(model.get_batch(text)['tok/fine'])

pool = ThreadPool(10)
data_list = ['测试这是测试'] * 100
pool.map(tokenizer_test, data_list)
pool.close()
pool.join()

Describe the current behavior
Traceback (most recent call last):
  File "mul_test.py", line 17, in <module>
    pool.map(tokenizer_test, data_list)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/multiprocessing/pool.py", line 290, in map
    return self._map_async(func, iterable, mapstar, chunksize).get()
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/multiprocessing/pool.py", line 683, in get
    raise self._value
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/multiprocessing/pool.py", line 121, in worker
    result = (True, func(*args, **kwds))
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
    return list(map(*args))
  File "mul_test.py", line 12, in tokenizer_test
    print(model.get_batch(text)['tok/fine'])
  File "mul_test.py", line 8, in get_batch
    return self.model(sentences)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/components/mtl/multi_task_learning.py", line 748, in __call__
    return super().__call__(data, batch_size, **kwargs)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/torch/autograd/grad_mode.py", line 26, in decorate_context
    return func(*args, **kwargs)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/common/torch_component.py", line 631, in __call__
    **kwargs))
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/common/component.py", line 36, in __call__
    return self.predict(data, **kwargs)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/components/mtl/multi_task_learning.py", line 483, in predict
    for batch in dataloader:
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/common/dataset.py", line 429, in __iter__
    for raw_batch in super(PadSequenceDataLoader, self).__iter__():
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 435, in __next__
    data = self._next_data()
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/torch/utils/data/dataloader.py", line 475, in _next_data
    data = self._dataset_fetcher.fetch(index)  # may raise StopIteration
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/torch/utils/data/_utils/fetch.py", line 44, in <listcomp>
    data = [self.dataset[idx] for idx in possibly_batched_index]
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/common/dataset.py", line 206, in __getitem__
    sample = self.transform_sample(sample)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/common/dataset.py", line 105, in transform_sample
    sample = self.transform(sample)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/common/transform.py", line 319, in __call__
    sample = t(sample)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/transform/transformer_tokenizer.py", line 309, in __call__
    input_tokens, input_ids, subtoken_offsets = tokenize_str(input_tokens, add_special_tokens=True)
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/hanlp/transform/transformer_tokenizer.py", line 248, in tokenize_str
    add_special_tokens=add_special_tokens).encodings[0]
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 2462, in encode_plus
    **kwargs,
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 465, in _encode_plus
    **kwargs,
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 372, in _batch_encode_plus
    pad_to_multiple_of=pad_to_multiple_of,
  File "/home/anaconda3/envs/tensorflow2-cpu/lib/python3.7/site-packages/transformers/tokenization_utils_fast.py", line 325, in set_truncation_and_padding
    self._tokenizer.no_truncation()
RuntimeError: Already borrowed

After search with Google, it seems as this is a bug in transformers >3.5.0 with a fast tokenizer.
https://github.com/huggingface/tokenizers/issues/537
I tried init an instance of the model for each thread as followed, the error is also occured, so confused. Whether there is bug in hanlp?
from multiprocessing.dummy import Pool as ThreadPool
import hanlp
from numpy import array

class Hanlp(object):
    def __init__(self):
        self.model = hanlp.load(hanlp.pretrained.mtl.CLOSE_TOK_POS_NER_SRL_DEP_SDP_CON_ELECTRA_SMALL_ZH)
    def get_batch(self, sentences):
        return self.model(sentences)

def tokenizer_test(model, text):
    print(model.get_batch(text)['tok/fine'])

pool = ThreadPool(10)
data_list = ['测试这是测试'] * 100
models = list(array([Hanlp() for i in range(10)]).repeat(10))
print(models)
data = zip(models, data_list)
pool.starmap(tokenizer_test, data)
pool.close()
pool.join()

If move model init in single thread as follows，there is no error...but this solution is not effective because each data will init a model...
def tokenizer_test(text):
    model = Hanlp()
    print(model.get_batch(text)['tok/fine'])

Expected behavior
no error
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux
Python version: 3.7.1
HanLP version: 2.1.0
transformer version: 3.5.1

Other info / logs

[x] I've completed this form and searched the web for solutions.

Great issue. Yes, this an upstream bug and I've bypassed it in the above commit. Upgrade pip install hanlp -U to apply the patch.

Great issue. Yes, this an upstream bug and I've bypassed it in the above commit. Upgrade pip install hanlp -U to apply the patch.

Thanks!
By the way, mtl pretrained model contains 10 tasks, it is very cool! Could
I use it just to finish few tasks，such as tok and pos without other tasks
output?
hankcs<EMAIL_ADDRESS>于2021年1月7日周四 上午1:11写道：

Great issue. Yes, this an upstream bug and I've bypassed it in the above
commit. Upgrade pip install hanlp -U to apply the patch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hankcs/HanLP/issues/1602#issuecomment-755434370, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABF4AMHAHAQTQNQGB2DEDO3SYSKVXANCNFSM4VXJXPTA
.

--
Xilian Li(李喜莲)
School of Electronics Engineering and Computer Science, Peking University
Tel：(+86)18611331614

Thanks!
By the way, mtl pretrained model contains 10 tasks, it is very cool! Could
I use it just to finish few tasks，such as tok and pos without other tasks
output?
hankcs<EMAIL_ADDRESS>于2021年1月7日周四 上午1:11写道：

Great issue. Yes, this an upstream bug and I've bypassed it in the above
commit. Upgrade pip install hanlp -U to apply the patch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/hankcs/HanLP/issues/1602#issuecomment-755434370, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ABF4AMHAHAQTQNQGB2DEDO3SYSKVXANCNFSM4VXJXPTA
.

--
Xilian Li(李喜莲)
School of Electronics Engineering and Computer Science, Peking University
Tel：(+86)18611331614

Yes, you have 2 options:

Specify what tasks to run: https://hanlp.hankcs.com/docs/api/hanlp/components/mtl/mtl.html#hanlp.components.mtl.multi_task_learning.MultiTaskLearning.predict
Delete unwanted tasks: https://hanlp.hankcs.com/docs/api/hanlp/components/mtl/mtl.html#hanlp.components.mtl.multi_task_learning.MultiTaskLearning.delitem

Yes, you have 2 options:

Specify what tasks to run: https://hanlp.hankcs.com/docs/api/hanlp/components/mtl/mtl.html#hanlp.components.mtl.multi_task_learning.MultiTaskLearning.predict
Delete unwanted tasks: https://hanlp.hankcs.com/docs/api/hanlp/components/mtl/mtl.html#hanlp.components.mtl.multi_task_learning.MultiTaskLearning.delitem


Number frequency

Feature ✅
Description
Given a string find the frequency of single digits(0-9) in it.
Example
Input:
a11472o5t6
Output:
0 2 1 0 1 1 1 1 0 0
Explanation:
1 occurs twice
2,4,5,6,7 occur once
rest don't occur at all
Contributors are supposed to mention their coding language while asking for assignment

Hi, I can do it in c++. Can you please assign it to me?

Hello, i would like if u assign me on this issue. I will do in Python.

Hello, I would like to be assigned this issue. I would us python to develop this. Thanks!

Hey, I'd like to implement it using python if assigned

Hey, I would like to do it in Java. Can you please assign it to me?

Hey can  i work on this using java.

@falguni-k @TediaN97 @deepharshsri Are assigned according to FCFS.

@Kirkkm @ItIsUday Y'all can try javascript and golang

how to save file like freuency.java in the java folder will be ok ?

Create a folder inside Java , named after the problem and place the .java file inside it along with a readme containing your name and github link.

Hey can you assign this to me? I'll do it with JavaScript

Hey, can you assign me? I want to contribute with javascript?

@Kirkkm @ItIsUday Y'all can try javascript and golang

I would like to try this in golang. Please assign this to me. Thanks!


import io.cucumber.messages.types. can't be resolved

Importing Classes from io.cucumber.messages.types gives error saying "the import cannot be resolved"
The same packages are used in some test classes of gherkin-java project. I tried importing that project and ended up with the same error.
import io.cucumber.messages.types.Envelope;
import io.cucumber.messages.types.Feature;
import io.cucumber.messages.types.GherkinDocument;
import io.cucumber.messages.types.Pickle;
import io.cucumber.messages.types.PickleStep;
import io.cucumber.messages.types.Scenario;

Version used: messages: 15.0.0, cucumber-core: 6.10.3
Operating System and version: Windows 10

The types you are looking for are located in import io.cucumber.messages.Messages.*


Fixed issue where error was thrown when message body is not JSON

In cases where the message's body is not JSON, trying to parse the body as JSON throws an error and crashes the process.
To prevent this from happening, we can attempt to parse the message body in a try block. If the message is not valid JSON, the catch block catches the error and then assigns the raw message string as the data.

Any possibility we could get this merged?
Thanks!


TextEntry with \n or \r\n doesn't work on a RichTextBox

using the TextEntry method, the newlines work fine on notepad but don't work if the target is a System.Windows.Forms.RichTextBox
sim.Keyboard.TextEntry("foo\nbar") ;
sim.Keyboard.TextEntry("foo\r\nbar") ;

I don't understand something, it works through sim.Keyboard.KeyDown('\r') sim.Keyboard.KeyUp('\r'). So I decided to look at what the difference is between the KeyDown, & TextEntry methods and what I wasn't expecting was that the KEYBDINPUT struct has different fields assigned between the two like Unicode flags, scan code & keycode. Both are doing keydowns & keyups so why are the different struct values assigned and what is the fundamental difference between the two?


Supported holes for stampreceiver and modified pad length and holes position of stampboard

We can keep it hard coded if we create a CONSTANT that explains what it is eg TOP_BOTTOM_RECESSION_OFFSET


Enable indexing directly from point clouds

c.f. #508 and #509

I think this can be closed right?

Not before #513 is merged


REFACTOR-#1527: split test_dataframe.py into several others

Signed-off-by: Alina<EMAIL_ADDRESS>
What do these changes do?

[ ] commit message follows format outlined here
[ ] passes flake8 modin
[ ] passes black --check modin
[ ] signed commit with git commit -s
[ ] Resolves #?
[ ] tests added and passing

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@cc60f25). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #1   +/-   ##
=========================================
  Coverage          ?   45.32%
=========================================
  Files             ?       79
  Lines             ?     8924
  Branches          ?        0
=========================================
  Hits              ?     4045
  Misses            ?     4879
  Partials          ?        0

Continue to review full report at Codecov.

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


NumberField allows [e] character to get typed

While the NumberField disabled input for letters and invalid characters, the e character is allowed to get typed in. Also you can type in many . characters (and not just one).
i.e. at the following example
NumberField field = new NumberField(); numberField.setStep(1); numberField.setMin(1); numberField.setMax(65565);
By typing in eeeeee.... you get the following view:

Normally you shouldn't be allowed
a) to add the [e] character within a field
b) to add more than one commas
Checked on FireFox and Chrome, have the same behavior.

This is because the number field is based on the native <input type="number"> that also allows it.

OK that explains a lot and the fact that it allows multiple . characters as well as Firefox allows all kind of characters while Chrome allows only the e character..

Hi, the current behavior as of Vaadin 14.3.2 is a bit inconsistent, as can be tested at https://vaadin.com/components/vaadin-number-field/java-examples/number-field :

Chromium 84: In addition to numbers, you can only type e into the "basic number field". However you can't type e into the "Integer field".
Firefox 79: In addition to numbers, Firefox allows you to type anything into the "basic number field", however you can only type letters into the "Integer field"

Is there some additional guard (JavaScript perhaps) for the IntegerField, preventing invalid input?


test asymmetric tonic

test asymmmetric tonic neutral lateralising is redudant and should be deleted, only options are left or right laterality, not neutral

The tag invalid is rather for GitHub issues that shouldn't be issues.


[CARBONDATA-2313] Fixed SDK writer issues and added comment for SDK writer API methods

*Blockletsize and Blocksize issue fix in sdk writer
*Decimal dataype issue fix in sdk writer
*Drop table issue in cluster
*Added comment for SDK writer API methods
*Query two writer's output at same path issue fix
*Block alter table rename
Be sure to do all of the following checklist to help us incorporate
your contribution quickly and easily:

[ ] Any interfaces changed? NO

[ ] Any backward compatibility impacted? NO

[ ] Document update required? NO

[ ] Testing done. NA

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3629/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4320/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4851/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4868/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3646/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4337/

retest this please

retest this please

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3654/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4877/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4344/

retest this please

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4345/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3667/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4890/

retest this please

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3704/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4925/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4388/

retest this please

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3710/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4929/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4952/

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4409/

retest this please

@jackylk & @gvramana : please review this PR.

SDV Build Fail , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4435/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4990/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3771/

retest this please

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3778/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/4995/

retest this please

SDV Build Success , Please check CI http://<IP_ADDRESS>:8080/job/ApacheSDVTests/4439/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5004/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3788/

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3818/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5034/

retest this please

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5049/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5051/

retest this please

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5052/

Retest this please

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5053/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3835/

Retest this please

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3839/

Retest this please

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5061/

Build Failed with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3844/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5066/

retest this please

Build Success with Spark 2.2.1, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder/3856/

Build Failed  with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5077/

Build Success with Spark 2.1.0, Please check CI http://<IP_ADDRESS>:8080/job/ApacheCarbonPRBuilder1/5080/

LGTM


References to Linksmart specifications

There are references to linksmart specifications  in LA. These links needs to be moved to a public domain once these pages are publicly available, the cross reference in  wiki home can be updated

Can remove them. I removed those on home page.


Get more than 5 results from youtube.search.list?

I'm only getting 5 results. Is it possible to specify how many results I want returned?

edit: found it in their docs: maxResults: 50
https://developers.google.com/youtube/v3/docs/search/list


Anyone have any Vietnamese books and resources they can share?

Would be nice, thanks :) I'll start looking today.

Fixed up :)

shouldn't these be in free-courses-vi.md?

replaced by #2651


New version: Wondershare.Filmora version <IP_ADDRESS>

[X] Have you signed the Contributor License Agreement?
[X] Have you checked that there aren't other open pull requests for the same manifest update/change?

[X] Does your manifest conform to the 1.0 schema?

Microsoft Reviewers: Open in CodeFlow

12/17/2021 3:21:08 PM
Status: Completed
##[error] Installer https://download.wondershare.com/cbs_down/filmora_64bit_full846.exe
##[error] Result: Failed
##vso[task.logissue type=error] Specified hash doesn't match.
Actual hash:   D4FDD82283177FA101DF12F19C25ED35C919038F1AA68E6B1740F97C5D3AEBBF
Expected hash: 7437e9099d907419587286b717c638a21fd472876428887cc61461b37771a265

wingetbot is currently downloading <IP_ADDRESS> which is 7437E9099D907419587286B717C638A21FD472876428887CC61461B37771A265

It appears my host machine was downloading <IP_ADDRESS> while my VM and Validation was downloading <IP_ADDRESS> 🤦♂

Enter a pull request number: 38063

Manifest validation succeeded.
Found Wondershare Filmora X [Wondershare.Filmora] Version <IP_ADDRESS>
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://download.wondershare.com/cbs_down/filmora_64bit_full846.exe
  ██████████████████████████████   392 MB /  392 MB
Successfully verified installer hash
Starting package install...
Successfully installed

Finding the application in the following registry paths below...
1) Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
2) Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall
3) Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall

Name          : Microsoft Visual C++ 2008 Redistributable - x64 9.0.30729.4148
Publisher     : Microsoft Corporation
Version       : 9.0.30729.4148
Product Code  : {4B6C7001-C7D6-3710-913E-5BC23FCE91E6}
Registry Path : Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4B6C7001-C7D6-3710-913
                E-5BC23FCE91E6}
Uninstall     : winget uninstall "{4B6C7001-C7D6-3710-913E-5BC23FCE91E6}"

Name          : Wondershare Filmora X(Build <IP_ADDRESS>)
Publisher     : Wondershare Software
Version       :
Product Code  : Wondershare Filmora X_is1
Registry Path : Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Wondershare Filmora
                X_is1
Uninstall     : winget uninstall "Wondershare Filmora X_is1"

Name          : Wondershare Helper Compact 2.6.0
Publisher     : Wondershare
Version       : 2.6.0
Product Code  : {5363CE84-5F09-48A1-8B6C-6BB590FFEDF2}_is1
Registry Path : Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{5363CE84-5
                F09-48A1-8B6C-6BB590FFEDF2}_is1
Uninstall     : winget uninstall "{5363CE84-5F09-48A1-8B6C-6BB590FFEDF2}_is1"

Press any key to continue . . .


Turned CSRF checker into an event subscriber

CSRF tokens are being checked in an event subscriber now.
This one is a bit tricky. Since Symfony does not offer the possibility to attach listeners to routes, I'm marking the affected routes with a request attribute.
As a auggestion: You should consider using Symfony forms because would gain CSRF protection out of the box.
Related to #618.

@derrabus We used to use Symfony forms but they got removed when we did a big UI overhaul. Probably wise to go back to using them again.


Add theme cache to the inspector

Adds theme cache to everything in editor_inspector.cpp, i.e. EditorInspector, EditorProperty etc.
Unlike other theme caches, editor properties and other sub-classes don't have their own cache. Instead they use a theme cache from a singleton inspector. This should make inspector updates faster, while the editor startup might be slower (due to different theme update method and a new inspector, which exists only to hold theme cache). I did not do any benchmarks, but everything seems to work and appear as it did before, at least.

Rebased after #93435
I also realized I didn't put theme icons in the cache. There is so many of them though 🤔

Works except it changed the size of categories and sections and also section arrows are pointing in the wrong direction 🙃

Master
PR

Works as expected after the last changes

Needs a rebase, and this seemed to crash when generating Mono glue on CI, but it's not clear whether it's from this PR or just bad timing.

Indeed C# glue generation still seems to crash. We don't have debug symbols on the CI build to know why though, would need to be tested locally.

Needs rebase.


Disable waitUntilFirstFrameRasterized

And mark flutter_gallery__transition_perf as non-flaky so people won't
break it without affecting the tree.
However, the error log doesn't seem to suggest that the flakiness
is due to waitUntilFirstFrameRasterized. Moreover, the ios and io32
versions of that test are working properly without any flakiness.
Therefore, I'm not confident that this will fix the flakiness. But
hopefully it will help solving the flakiness.

Abandon as the flakiness doesn't seem to be caused by waitUntilFirstFrameRasterized.


adding roc-nijmegen student subdamain

Sorry for the delay - i've added the general roc-nijmegen.nl to cover both teachers and students (@stud. is already covered this way). You'll be able to apply shortly.

Thanks!


Remove ReactiveUI usage from sample apps

We should not depend on a package that's affected by religious views

Probably worth moving Avalonia.ReactiveUI to the main ReactiveUI repository after merging this, as Avalonia will no longer use the package in the samples, and this seems to be the only blocker https://github.com/reactiveui/ReactiveUI/pull/1748#issuecomment-427683717 I doubt that ReactiveUI will use strong name signing someday in the future... Not quite happy to see ReactiveUI decoupling from Avalonia, but this seems to be a matter of priorities. Curious if we could do a rename from Avalonia.ReactiveUI to ReactiveUI.Avalonia without introducing a massive breaking change 🤔

We should probably use this MiniMVVM inside Avalonia.Diagnostics as well.


fix: update cookie policy date

Overview
https://github.com/gnosis/safe-landing-page/pull/17 updated the cookie policy to include details of Beamer but didn't update the "Last updated" date. This updates the date to match that of the original PR and fixes a small grammar mistake.

Nice catch. Let's merge it in the release branch


INSPhotosViewController datasource public?

How can I read the INSPhotosViewControllers datasource, im just getting error:
'dataSource' is inaccessible due to 'internal' protection level
If I change private(set) var dataSource: INSPhotosDataSource to public var dataSource: INSPhotosDataSource in INSPhotosViewController.swift it works correctly.
Is there a reason why it is private or can I submit a PR where it is fixed? Or is there another way to read it?

Submit PR,

https://github.com/inspace-io/INSPhotoGallery/pull/35

Sorry, i understood that you want to change it to private(set), this shouldn't be public because of encapsulation

How can I then access the datasource? I need it to show the "image index" in the overlay. @m1entus

This should be just public private(set) var photos: [INSPhotoViewable] = []

In the examples you get the index like this:
if let index = photosViewController.dataSource.indexOfPhoto(photo) {
    self.navigationItem.title = "\(index+1) / \(photosViewController.dataSource.numberOfPhotos)"
}

But now the datasource is private. And I get the 'dataSource' is inaccessible due to 'internal' protection levelerror.

Doing public private(set) only setter is private, and getter is public

Alright, so you want me to do a PR with that change @m1entus ? private(set) -> public private(set)

It is already done

Yes I can see that you changed it in the datasource, but how do I access the datasource? I have a custom overlay where I need to access it.

Ok, i have opened some fields


regular timeouts on core tests

The core tests and Pytest in Docker regularly timeout (Jenkins timeout, not python timeout) on tests/server/test_server_status.py. This seems to happen every few days (both on slow and fast runs). So far we've been unable to reproduce it consistently. This ticket is meant to keep track of what has been tried to investigate this, as well as collect helper scripts for future investigation.
Reliable reproduction (sort of)
Based on the "Preceding tests" section below I managed to set up a Jenkins job for a reliable reproduction. It executes pytest 300 times on four tests in a given order. This takes about 45 minutes if successful. However, luckily most runs aren't successful and the timeout occurs somewhere down the road. The Jenkins job can be found here. I didn't change anything on Jenkins' side, only modified tox a bit on the timeout-experiments-2 branch.
I have not yet investigated whether the run of four tests used here are actually a minimal set to reproduce this (I expect not). Feel free to experiment as you like with the branch. At the time of writing the tox command config used is the following:
commands=sh -c 'seq 300 | xargs -I_i_ sh -c "echo run _i_ && py.test --log-level DEBUG --junitxml=junit-{envname}.xml -vvv {env:INMANTA_EXTRA_PYTEST_ARGS:} --randomly-dont-reorganize tests/agent_server/test_evolution.py::test_resource_evolution tests/server/test_server_status.py::test_server_status_database_unreachable tests/server/test_server_status.py::test_server_status tests/compiler/test_is_defined.py::test_is_defined_block_scoping[if\ in\ implementation\ self]"'

First occurrence
This issue was first observed in Pytest in Docker build 1905 on 2022-06-07. The build logs at the time of writing only go back until 2022-05-23. Within that window no other instances of this issue were found. Given the infrequency with which this occurs, nothing can be said with certainty about when exactly the root cause was introduced, but it seems likely (because of the large amount of tests run in Pytest in Docker every day) that it was on or a few days before 2022-06-07.
Preceding tests
A potential cause could be that one or more of the preceding tests occasionalmultiple timesly result in a state where the timeout occurs. If this is indeed the case, we might be able to pinpoint which tests are responsible by collecting data from each build that timed out this way.
Below is an overview of all relevant builds so far:

936.txt
943.txt
docker-1905-master-fedora-latest.txt
docker-1907-iso5-stable-fedora-latest.txt
docker-1911-master-centos8.txt
docker-1912-iso5-ubuntu-rolling.txt

The files list all (non-skipped) tests up to the timed out one, in the order in which they were run. From this the tests that occurred in all runs can be determined: all-6.txt (number in the name indicates number of builds included when file was generated). These can then be run with xargs -a <file> pytest --randomly-dont-reorganize. So far I did not manage to reproduce the issue using this approach (about 200 runs at the time of writing, part on my local machine, part on Jenkins).
The single build files above were obtained using the following procedure:

copy all test lines from Jenkins output
grep -v " SKIPPED " <input> | sed 's/^\(..:..:.. \)\?\(.*\) \(PASSED\|FAILED\) .*/\2/'  > <output>

The common tests were then determined with grep -Ff <one> <two> | grep -Ff <three> | ....
Randomly seed
Attempts were made to run with the same randomly-seed on the same commit as one of the timed out builds. So far (10+ builds at the time of writing) this did not manage to reproduce the issue.
Jenkins agent
Both builds so far ran on jenkins runner 2. This runner does not result in consistent timeouts, even when combined with the randomly seed approach (at the time of writing only forced one such build on jenkins runner 2).
Stack dump
This has not been tried yet but is the next path to be explored. If we could temporarily set up the Pytest in Docker and/or core test jobs to detect timeouts like this and export a dump, this could give some more information as soon as the issue pops up again.

This issue is caused by a deadlock in the database locking mechanism. What happens is the following:

When the server stops, the Scheduler cancels all tasks that are in flight. This includes tasks that access the database like the job that cleans up the old Compile reports. Each of these queries implicitly acquire a lock on the records they access. These locks are normally automatically released when the query finishes execution.
Due to a bug in the asyncpg library, these lock are not freed correctly when an in flight query gets cancelled.
As such, the cleanup clean_db fixture, that executes a TRUNCATE query, hangs because these types of query require an exclusive lock on each table they act on.

Concrete example and logging output collected:
Stack trace that occurs when the query that cleans up old compile reports, is cancelled:
Traceback (most recent call last):
  File "/tmp/inmanta-core/src/inmanta/data/__init__.py", line 1252, in _execute_query
    return await con.execute(query, *values)
  File "/tmp/inmanta-core/env/lib64/python3.9/site-packages/asyncpg/connection.py", line 320, in execute
    _, status, _ = await self._execute(
  File "/tmp/inmanta-core/env/lib64/python3.9/site-packages/asyncpg/connection.py", line 1659, in _execute
    result, _ = await self.__execute(
  File "/tmp/inmanta-core/env/lib64/python3.9/site-packages/asyncpg/connection.py", line 1684, in __execute
    return await self._do_execute(
  File "/tmp/inmanta-core/env/lib64/python3.9/site-packages/asyncpg/connection.py", line 1711, in _do_execute
    stmt = await self._get_statement(
  File "/tmp/inmanta-core/env/lib64/python3.9/site-packages/asyncpg/connection.py", line 398, in _get_statement
    statement = await self._protocol.prepare(
  File "asyncpg/protocol/protocol.pyx", line 168, in prepare
	asyncio.exceptions.CancelledError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/inmanta-core/src/inmanta/server/services/compilerservice.py", line 509, in _cleanup
    await data.Compile.delete_older_than(oldest_retained_date)
  File "/tmp/inmanta-core/src/inmanta/data/__init__.py", line 3442, in delete_older_than
    await cls._execute_query(query, oldest_retained_date, connection=connection)
  File "/tmp/inmanta-core/src/inmanta/data/__init__.py", line 1252, in _execute_query
    return await con.execute(query, *values)
  File "/tmp/inmanta-core/env/lib64/python3.9/site-packages/asyncpg/pool.py", line 993, in __aexit__
    await self.pool.release(con)
  File "/tmp/inmanta-core/env/lib64/python3.9/site-packages/asyncpg/pool.py", line 855, in release
    self._check_init()
  File "/tmp/inmanta-core/env/lib64/python3.9/site-packages/asyncpg/pool.py", line 948, in _check_init
    raise exceptions.InterfaceError('pool is closed')
asyncpg.exceptions._base.InterfaceError: pool is closed

State of the locks in the database when the test suite hangs:
inmanta4610007640=# select datname, pid, application_name, state_change, wait_event_type, wait_event, state, query FROM pg_stat_activity;
      datname      |   pid   | application_name |         state_change          | wait_event_type |     wait_event      | state  |
                                                          query
-------------------+---------+------------------+-------------------------------+-----------------+---------------------+--------+-------------------------------------
--------------------------------------------------------------------------------------------------------------------------------------------------------------
                   | 3099923 |                  |                               | Activity        | LogicalLauncherMain |        |
                   | 3099921 |                  |                               | Activity        | AutoVacuumMain      |        |
 inmanta4610007640 | 3099980 |                  | 2022-07-08 07:57:58.41367+02  | Lock            | relation            | active | TRUNCATE project, code, unknownparam
eter, agent, agentinstance, agentprocess, compile, configurationmodel, dryrun, parameter, report, resourceaction, environment, notification, resource CASCADE
 inmanta4610007640 | 3100006 |                  | 2022-07-08 07:57:58.403579+02 | Client          | ClientRead          | active | DELETE FROM compile WHERE completed
<= $1::timestamp with time zone
 inmanta4610007640 | 3100005 |                  | 2022-07-08 07:57:58.406418+02 | Client          | ClientRead          | idle   | ROLLBACK;
 inmanta4610007640 | 3100007 |                  | 2022-07-08 07:57:58.40925+02  | Client          | ClientRead          | idle   | COMMIT;
 inmanta4610007640 | 3100530 | psql             | 2022-07-08 08:55:39.196387+02 |                 |                     | active | select datname, pid, application_nam
e, state_change, wait_event_type, wait_event, state, query FROM pg_stat_activity;
                   | 3099919 |                  |                               | Activity        | BgWriterHibernate   |        |
                   | 3099918 |                  |                               | Activity        | CheckpointerMain    |        |
                   | 3099920 |                  |                               | Activity        | WalWriterMain       |        |

The above-mentioned table shows that the query to cleanup old compile reports has the wait_event ClientRead, This indicates that the client didn't properly close the transaction. The TRUNCATE query on the other hand waits on the lock held by the Compile report cleanup query.
Proposed solution:
Shield the queries to the database from cancellation (See: https://docs.python.org/3/library/asyncio-task.html#shielding-from-cancellation)


Fix NUMA node detection

https://github.com/tenstorrent/tt-umd/issues/134

Fix implicit assumption that every accelerator is of the same type (GS/WH/BH)
Remove some use of PCIDevice::logical_id from tt_silicon_driver.cpp
Add NUMA node detection to PCIDevice class
Add a PCIDevice class test harness (+ test for NUMA node detection)

@broskoTT thanks I appreciate the input.  I'm going to defer some of the the PCIDevice code consolidation/cleanup to #147.


Music continues playing on Chromecast when app quits

OS: MacOS 10.15.3
GPMDP Version: 4.7.1
Issue Descriptions: If I'm casting music (In my case to a Chromecast Audio, but not sure if the device I'm casting to makes a difference) and then quit GPMDP, the music keeps playing. (Assumed) Intended outcome would be that the music stops when the application playing it is quit.
Steps to Reproduce:

Start GPMDP
Play some music
Cast that music somewhere
Quit GPMDP
Music continues playing through the Chromecast device

Playing music locally (ie not casting it anywhere) works fine, the audio stops immediately when I close GPMDP. Issue is only when casting

It is because you're not actually casting the music, you're casting a playlist and the chromecast actually manages the rest.
Try this: Start casting music from your mobile with Google Play Music or Youtube Music. Disconnect your phone from wifi. You'll lose connection to the chromecast device, but the chromecast will continue to play music and the playlists.
I assume google has done this from a userexperience standpoint.
What we could talk about is if the Chromecast should be sent a Stop command as GPMDP is closed.

I did have a suspicion that it was something like this going on.

Try this: Start casting music from your mobile with Google Play Music or Youtube Music. Disconnect your phone from wifi. You'll lose connection to the chromecast device, but the chromecast will continue to play music and the playlists.

Losing wifi unexpectedly and closing the app gracefully are 2 very different things though. I just tried with both Play Music on my phone and Play Music casting from Chrome on desktop, closing either app causes the music to stop playing which is what I would've thought is the expected behaviour.

What we could talk about is if the Chromecast should be sent a Stop command as GPMDP is closed.

I would strongly suggest that this be considered. It's a somewhat jarring UX to close an application and have 'it' continue doing something (Particularly something like external audio) with no way to immediately stop it without either grabbing another device or restarting the app.

I would strongly suggest that this be considered. It's a somewhat jarring UX to close an application and have 'it' continue doing something (Particularly something like external audio) with no way to immediately stop it without either grabbing another device or restarting the app.

I think this is a UX thing, but in the case of a desktop player, I think a stop command would be wise if the program quits, or maybe a prompt to allow the option to stop casting music or let it keep playing?


The non-abstract class 'Protocol' is missing implementations

I followed the get started and i got this error
workroom/workroom/workroom_server via 🐳 desktop-linux via 🎯 v3.3.0 took 2s
❯ dart bin/main.dart --apply-migrations
lib/src/web/widgets/default_page_widget.dart:7:28: Warning: Operand of null-aware operation '!' has type 'Serverpod' which excludes null.

'Serverpod' is from 'package:serverpod/src/server/serverpod.dart' ('../../../../../.pub-cache/hosted/pub.dev/serverpod-1.2.5/lib/src/server/serverpod.dart').
'runmode': Serverpod.instance!.runMode,
^
../../../../../.pub-cache/hosted/pub.dev/postgres-2.6.4/lib/src/substituter.dart:24:52: Warning: Operand of null-aware operation '!' has type 'Map<String, dynamic>' which excludes null.
'Map' is from 'dart:core'.
replace ??= (spec, index) => converter.convert(values![spec.name]);
^
lib/src/generated/protocol.dart:15:7: Error: The non-abstract class 'Protocol' is missing implementations for these members:
SerializationManagerServer.getModuleName
SerializationManagerServer.getTargetTableDefinitions
Try to either
provide an implementation,
inherit an implementation from a superclass or mixin,
mark the class as abstract, or
provide a 'noSuchMethod' implementation.

class Protocol extends _i1.SerializationManagerServer {
^^^^^^^^
../../../../../.pub-cache/hosted/pub.dev/serverpod-1.2.5/lib/src/serialization/serialization_manager.dart:10:10: Context: 'SerializationManagerServer.getModuleName' is defined here.
String getModuleName();
^^^^^^^^^^^^^
../../../../../.pub-cache/hosted/pub.dev/serverpod-1.2.5/lib/src/serialization/serialization_manager.dart:16:25: Context: 'SerializationManagerServer.getTargetTableDefinitions' is defined here.
List getTargetTableDefinitions();
^^^^^^^^^^^^^^^^^^^^^^^^^
Serverpod versions

CLI Version: Run serverpod version to determine the version of installed tooling.
Library version: Check the pubspec.yaml file for the version of Serverpod you are using.

Platform information
Arch Linux

Solved:
The project directory and the parent directory had the same name.


Add SPM Support

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.

Upvote for SPM support!

Hi, Swift package manager support is one of the main goals on the roadmap.
At the moment SPM does not support resources in packages (xibs/fonts/images).
I have to check if there is a way to bypass this limitation until SPM supports resources, which is on their roadmap. Until then we need to be patient :)

Xcode 12 now includes the latest SPM which allows us to include resources! Any timeline for SPM in this project? Thanks!

https://github.com/Yummypets/YPImagePicker/releases/tag/5.0.0


BaseVector::createConstant for custom types is not supported

Bug description
I encountered the error "Else clause of a SWITCH statement must have the same type as 'then' clauses. Expected JSON, but got VARCHAR." when I was running a switch expression. If there is a non-null constant of json type after then, and a null constant of json type after else, the types of the two will be inconsistent after compiling by ExprCompiler.  The non-null constant of json type will be converted to Varchar type by BaseVector::createConstant(). And the null constant of json type will be converted to json type by BaseVector::createNullConstant.
I have seen that Velox has fixed BaseVector::createNullConstant for custom types in 3849. I think BaseVector::createConstant has the same problems.
System information
Velox System Info v0.0.2
Commit: 731831c72d4932c7ae8e8c8e69a17248738b72d7
CMake Version: 3.25.1
System: Darwin-21.4.0
Arch: arm64
C++ Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
C++ Compiler Version: <IP_ADDRESS>60021
C Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
C Compiler Version: <IP_ADDRESS>60021
CMake Prefix Path: /Library/Developer/CommandLineTools/SDKs/MacOSX12.3.sdk/usr;/opt/homebrew;/usr/local;/usr;/;/opt/homebrew/Cellar/cmake/3.25.1;/usr/local;/usr/X11R6;/usr/pkg;/opt;/sw;/opt/local
Relevant logs
No response

@xiaodouchen Thank you for reporting this issue. The version of BaseVector::createConstant that takes a 'variant' should be avoided as it may result in the wrong vector type (as you discovered). Can you track down the callsite and replace it with something else?
static std::shared_ptr<BaseVector> createConstant(
      variant value,
      vector_size_t size,
      velox::memory::MemoryPool* pool);

I wonder if this is a bug in ExprCompiler:
ExprPtr compileExpression(

      if (constant->value().isNull()) {
        result = std::make_shared<ConstantExpr>(
            BaseVector::createNullConstant(constant->type(), 1, pool));
      } else {
        result = std::make_shared<ConstantExpr>(
            BaseVector::createConstant(constant->value(), 1, pool));
      }

Yes, this is the place. Can you help fix it? Thanks.

I have a fix in #4020
Would you check if it fixes the problem you are seeing?

@mbasmanova Yes, I think it can fix my problem from the changes. Thank you!


Dead link in information popup for Swarm node

Before you start please confirm the following.

[X] Yes, I've searched similar issues on GitHub.
[X] Yes, I've checked whether this issue is covered in the Portainer documentation or knowledge base.

Problem Description
When connecting to a node that is a part of a Docker Swarm and navigating to the dashboard (https://portainer.home.lan/#!/2/docker/dashboard), this information bubble is displayed:

https://github.com/portainer/portainer/blob/3630aab8206061056f866d23bf3a86352db8528d/app/docker/views/dashboard/dashboard.html#L20
However this is no longer a valid link.
Expected Behavior
The documentation link should now point at https://docs.portainer.io/admin/environments/add/swarm/agent
I didn't find any other broken links under a similar URL path that should also be updated.
Actual Behavior
Navigating to that page is a dead link, without a redirect to the new page:

Steps to Reproduce

Connect to a Docker Swarm node as a Portainer environment.
Navigate to the dashboard tab.
Try to follow the reference link

Portainer logs or screenshots
No response
Portainer version
2.19.1
Portainer Edition
Community Edition (CE)
Platform and Version
Docker Swarm 24.0.7
OS and Architecture
Debian 10 AMD64
Browser
No response
What command did you use to deploy Portainer?
N/A

Additional Information
N/A

We had redirects in place for this for the 2.18 documentation, but it looks like those redirects fell off with the 2.19 release. I've re-established the redirects now so you should no longer get a dead link from that URL, but I'll also leave your PR open so that we can correct the URL in the future.


Show y ticks on both sides of the graphs

Show the y ticks on both side of the graphs
Update the image

Done.


ENH: Speed up build+test

Why do we build installers for two versions of each OS (plus M1)? It seems like we should build just on the oldest one for each OS (plus M1), then test on the oldest and the newest version of each OS (plus M1). In other words, it seems like we should have two stages: the first "build" stage on 4 OSes (old ubuntu/mac/win + M1), and a second "test" stage on 7 OSes (old/new x ubuntu/mac/win, plus M1).

I like this idea! Let's do this!
… who'll do it? ;)

Please do go ahead if you have the time, my todo bucket is overflowing already…

Looks like a combo of these two docs should suffice:

https://docs.github.com/en/actions/using-jobs/using-jobs-in-a-workflow#defining-prerequisite-jobs
https://levelup.gitconnected.com/github-actions-how-to-share-data-between-jobs-fc1547defc3e

After #133 is in I'll give it a shot. One disadvantage is that these are ~1GB so it'll actually add some time to download them. But given that most of our failures are in the build stage and that stage takes ~20 minutes, it'll probably still be a net win time-wise. Plus then we can download the artifacts as part of the PR if we want.
I'm not sure at what point these sizes will create problems, though, since for every successful build/commit we'll have ~4GB of artifacts created...


Vue.js overrides adminlte

Hello, I'm trying to add an Vue component, but when I add the links adminlte logout usermenu (and sometimes left sidebar too, but only sometimes) stops working.
My component itself is working fine and if I remove links to the app.css/app.js files adminlte is working fine again.
This is how I add the files
@section('css')
    <link rel="stylesheet" href="{{ asset('css/app.css') }}"/>
@stop

@section('js')
    <script defer src="{{ asset('js/app.js') }}"></script>
@stop

Did I miss something in the docs, or is there something I should add so that it does not override the main script/stylesheet?

Hi @LinardsLiepenieks , I never experimented with Vue. However, what app.css and app.js is supossed to contain? For what you have described, appears to be some conflict with the adminlte template (You should review the browser's developer console or use any tool to inspect for problems/warnings).  Now, and particularly, I will include Vue.js and your components as plugins in the configuration file (See Plugins Config), that is how plugins or extra tools are managed whitin this package. You may add something like this on the plugins configuration section:
'Vue' => [
    'active' => false,
    'files' => [
        [
            'type' => 'js',
            'asset' => false,
            'location' =><EMAIL_ADDRESS>        ],
    ],
],
'MyVueComponents' =>
    'active' => false,
    'files' => [
        [
            'type' => 'js',
            'asset' => true,
            'location' => 'path/to/components.js',
        ],
        [
            'type' => 'css',
            'asset' => true,
            'location' => 'path/to/components.css',
        ],
    ],
],

And then include the Vue.js and your Vue.js components in your blade views using:
@section('plugins.Vue', true)
@section('plugins.MyVueComponents', true)
...

All this procedure is explained on the documentation...


Designing an Authentication API using Service Classes in Flutter

Proposed title of article
Designing an Authentication API using Service Classes in Flutter
Introduction paragraph (2-3 paragraphs):
Service classes are a great way to keep the implementation details of third-party code out of your program. They come in handy when you need to invoke an API function from numerous locations in your code.
We'll look at how to use service classes to encapsulate and separate 3rd-party libraries and APIs from the rest of the application in this post. We'll look at authentication as a specific example.
Key takeaways:
-What is a service class?
-How can we use FirebaseAuth to build a generic authentication service?
-How can we update our top-level widget to use the new service class?
References:
N/A

Good afternoon and thank you for submitting your topic suggestion. @vincentkims49
Your topic form has been entered into our queue and should be reviewed (for approval) as soon as a content moderator is finished reviewing the ones in the queue before it.


Add sidebar slim state preference

The slim sidebar will now remember if it is collapsed ('slim') or not when the page is loaded.
Preferences are saved in the session.
Note: I've added window.wagtailConfig.CSRF_TOKEN as an easy way to get the CSRF token. Another way would be to read the csrftoken cookie set by Django but that could be set to httponly, making it impossible to read from JS.

@kaedroho and I have decided to take a different approach that uses cookies instead of a REST endpoint.


[Bug Report] 403 Response from YouTube

Bug Description
Everytime the track fails to play & will get skipped without any prompt. The following exception will be thrown, indicating JMusicBot received a 403 response from YouTube, every other platform was not affected.
I have restarted the bot, restarted the server and did a fresh install but it keeps happening.
Steps to Reproduce
use -play https://www.youtube.com/watch?v=dsuJZx24V_A (-play since the prefix was changed from original, and this track used to play without an issue)
Expected Result
YouTube tracks to load & play without issue
Debug Output
[22:40:36] [ERROR] [LocalAudioTrackExecutor]: Error in playback of dsuJZx24V_A
com.sedmelluq.discord.lavaplayer.tools.FriendlyException: Something broke when playing the track.
at com.sedmelluq.discord.lavaplayer.tools.ExceptionTools.wrapUnfriendlyExceptions(ExceptionTools.java:44)
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:116)
at com.sedmelluq.discord.lavaplayer.player.DefaultAudioPlayerManager.lambda$executeTrack$1(DefaultAudioPlayerManager.java:348)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Suppressed: com.sedmelluq.discord.lavaplayer.tools.exception.EnvironmentInformation:
lavaplayer.version: 1.3.78
os.arch: amd64
os.name: Linux
os.version: 5.15.0-72-generic
java.vendor: Eclipse Adoptium
java.version: 20.0.1
java.runtime.version: 20.0.1+9
java.vm.version: 20.0.1+9
Caused by: java.lang.RuntimeException: Not success status code: 403
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.validateStatusCode(PersistentHttpStream.java:87)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.attemptConnect(PersistentHttpStream.java:116)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.connect(PersistentHttpStream.java:105)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.internalRead(PersistentHttpStream.java:150)
at com.sedmelluq.discord.lavaplayer.tools.io.PersistentHttpStream.read(PersistentHttpStream.java:166)
at java.base/java.io.DataInputStream.readUnsignedByte(Unknown Source)
at java.base/java.io.DataInputStream.readByte(Unknown Source)
at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaEbmlReader.readEbmlInteger(MatroskaEbmlReader.java:39)
at com.sedmelluq.discord.lavaplayer.container.matroska.format.MatroskaFileReader.readNextElement(MatroskaFileReader.java:45)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaStreamingFile.readFile(MatroskaStreamingFile.java:78)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.loadMatroskaFile(MatroskaAudioTrack.java:51)
at com.sedmelluq.discord.lavaplayer.container.matroska.MatroskaAudioTrack.process(MatroskaAudioTrack.java:34)
at com.sedmelluq.discord.lavaplayer.track.DelegatedAudioTrack.processDelegate(DelegatedAudioTrack.java:25)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.processStatic(YoutubeAudioTrack.java:57)
at com.sedmelluq.discord.lavaplayer.source.youtube.YoutubeAudioTrack.process(YoutubeAudioTrack.java:49)
at com.sedmelluq.discord.lavaplayer.track.playback.LocalAudioTrackExecutor.execute(LocalAudioTrackExecutor.java:104)
... 4 common frames omitted
Additional Info
#885 was marked as resolved but it seems that the issue still persists, please don't merge with that issue.
Checklist

[X] I have looked for information about this within the documentation
[X] I have searched for similar issues on the issues page
[X] I am running the latest version of the bot:

I have the same problem

same here

same

this problem has also recently appeared and yet everything was fine yesterday

facing the same issue...I need to restart the server everytime when ever this happened. can anyone help me to solve this?

Same issue, been like this for a while now.

+1. Only happens with one specific video so far for me but definitely a problem.

Can you try another LavaPlayer Library?
Maven:
        <dependency>
            <groupId>dev.arbjerg</groupId>
            <artifactId>lavaplayer</artifactId>
            <version>2.0.2</version>
        </dependency>

It works (at least for now)!
Linux Guide

Just delete or comment out the following block from pom.xml

<dependency>
  <groupId>com.github.jagrosh</groupId>
  <artifactId>lavaplayer</artifactId>
  <version>jmusicbot-SNAPSHOT</version>
</dependency>

Replace it with @MasqueOu part

<dependency>
  <groupId>dev.arbjerg</groupId>
  <artifactId>lavaplayer</artifactId>
  <version>2.0.2</version>
</dependency>

Install Maven according to this guide by Digital Ocean! (Windows and mac have to search their own solution :D But at least WSL should work)
Download this MusicBot sourcecode and open its folder
Run "mvn package"
The bot is located under target/JMusicBot-X.X.X-All.jar!

Duplicate of #885

damn he really did that despite OP lol


Fix string->number conversion in 3D Tiles inspector

Values were being sent as strings rather than numbers, causing the sliders not to work.
@hpinkos could you look at this? I'm not sure if this is the correct thing to do.

Thanks @lilleyse!  This looks like the right thing to do

Shouldn't this use Number(value) instead of parsefloat?  Number makes sure the number is really a number, parseFloat ignores invalid data (for example "123qwe" will return 123 with parseFloat).

@mramato Yeah, you're right.  I didn't think it would make a difference because it will always be a number value coming from the slider.  I forgot that you can add invalid characters into the input textbox though.
@lilleyse make sure to add an isNaN check after casting the value to a number.  I'm sure we only want to apply it to the tileset if it's a valid number.

Updated.
Is there a way to tell the slider to always return a number? That would also fix this.

There is not, but even if there was you need to handle the case where a user enters a value manually in the text box above the slider.

Thanks @lilleyse.


Adding compats for all packages suggested by compathelper

Closes #13 #11 #10 #9 #8 #7 #6

I would have thought that this MR would deal with this CI issue.


Processes list shows not all processes [luci-mod-status]

After upgrading from OpenWrt 19.07.3 to OpenWrt 19.07.4 I've noticed a bug in the "status -> processes" list.
It does not show me all processes, because e.g. I could not find dnscrypt-proxy2.
Running ps on the command line I could see
I did not notice this bug in OpenWrt 19.07.3.
Here is an example inconsistency:
CLI:
  540 root      1064 S    /sbin/logd -S 64
  571 root      1964 S    /sbin/rpcd -s /var/run/ubus.sock -t 30
  594 root      787m S    /usr/sbin/dnscrypt-proxy -config /etc/dnscrypt-proxy2/dnscrypt-proxy.toml
  733 root      1556 S    /sbin/netifd
  772 root      1248 S    /usr/sbin/odhcpd

GUI:

Note: Actually dnscrypt-proxy may be the only process not listed for some reason. :thinking:

It is because it consumes so huge amount on memory (787 MB) that busybox shows it differently "787m":
  571 root      1964 S    /sbin/rpcd -s /var/run/ubus.sock -t 30
  594 root      787m S    /usr/sbin/dnscrypt-proxy -config /etc/dnscrypt-proxy2/dnscrypt-proxy.toml

That fails to match the regex used for parsing.
This has already been reported for in master by #4425 and fixed with 4f2ecd8
That has also been backported to 19.07 with commit 8aceafe456 done 19 days ago, a week after 19.07.4 was released :-(
If you want to apply that simple 2-characted fix manually, just edit /usr/lib/lua/luci/sys.lua in the live router. Look at the commits above for reference.


xmlreader refactor cleanup

Description
cim xml refactor to stream read.
cleanup.
References

#0000

Codecov Report

Merging #91 (15aa20b) into main (d9443c9) will decrease coverage by 4.67%.
The diff coverage is 90.21%.

@@            Coverage Diff             @@
##             main      #91      +/-   ##
==========================================
- Coverage   83.65%   78.97%   -4.68%
==========================================
  Files          48       48
  Lines        1291     1508     +217
  Branches      147       92      -55
==========================================
+ Hits         1080     1191     +111
- Misses        162      273     +111
+ Partials       49       44       -5

Impacted Files
Coverage Δ

...e.Common/SimpleInjector/SimpleInjectorActivator.cs
0.00% <0.00%> (ø)

...mmon/SimpleInjector/SimpleInjectorScopedRequest.cs
0.00% <0.00%> (ø)

...leInjector/SimpleInjectorServiceProviderAdapter.cs
0.00% <0.00%> (ø)

...WebApi/Controllers/DownloadLogContentController.cs
34.09% <0.00%> (-19.49%)
:arrow_down:

...EntryPoint/Extensions/HttpRequestDataExtensions.cs
0.00% <0.00%> (ø)

...sageArchive.Persistence/ArchiveWriterRepository.cs
54.16% <0.00%> (-27.09%)
:arrow_down:

...MessageArchive.Persistence/Services/BlobArchive.cs
62.06% <0.00%> (-27.94%)
:arrow_down:

...ve.Persistence/Services/BlobStorageStreamReader.cs
60.60% <0.00%> (-30.31%)
:arrow_down:

...e.Reader/Mappers/CosmosRequestResponseLogMapper.cs
87.50% <0.00%> (-12.50%)
:arrow_down:

....MessageArchive.Persistence/Services/BlobReader.cs
62.96% <50.00%> (-25.72%)
:arrow_down:

... and 35 more

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


Update sql-database-create-and-configure-database-powershell.md

@CarlRabeler,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


CDK Deploy fails due to Cloud9 deprecation.

Bug Description
Cloud9 is now deprecated, therefore anyone deploying on new aws accounts can not use the cdk stack provided.
Reproduction

Create new AWS account.
Attempt to deploy the provided stack.

Expected behavior
The cdk stack should deploy with no errors.
Who can help?
No response
Operating System
N/A
Langflow Version
1.0.18
Python Version
None
Screenshot
No response
Flow File
No response

Trying to bypass cloud9 and deploying locally using aws cli and cdk cli I've run into the following issues:
Needed to move Dockerfiles, dockerignore, and .sh cdk helper script from docker to root directory due to inability to reference pyproject.toml in the parent directory during docker build.
Added cdk* to dockerignore to fix infinite recursion directory naming error (maximum length exceeded).
I then hit issues with alembic during cdk deploy once the tasks try to execute in the backend ecs cluster. Stuck trying to resolve this.
2024-09-23 22:36:35 - ERROR    -     service.py:196
service - Error initializing
alembic:
(pymysql.err.OperationalError)
(1072, "Key column
'description' doesn't exist in
table")
[SQL: CREATE INDEX
ix_flow_description ON flow
(description)]
(Background on this error at:
https://sqlalche.me/e/20/e3q8)

Hi there, same issue here. Can someone get back back pls

I ran into the same issue, but I believe this issue has nothing to do with Cloud9 @dfridkin

I ran into the same issue, but I believe this issue has nothing to do with Cloud9 @dfridkin

That is true. There are multiple reasons cdk deploy is failing. Listed them above

Do you need any assistance with this case? If not, please let us know if this issue can be closed.


KeyFiles

As noted in #38 KeyPassJava2 did not support KeyFile XML Version 2.
That's now been fixed, however it seems there is more to this than I had realised. See MasterKey for further details of what can be used as Key Files.
Changes suggested by this information as follows:

KeyFile version 2 support to check hash
Files of exactly 32 and 64 bytes to be processed as binary or Hex encoded keys (respectively).
Random other files to be hashed and used.

Hi Jo,
Can you push your commits related to the KeyFile (if you have somethings) in a separate branch?
Before to create my PR I'd like to merge your changes in my code.
Sorry about that, but I don't remember where were we.
Giuseppe

Hi Giuseppe
Branch is KeyFile and file is this one


Add option to skip onChange handler when calling goToStep

Thank you for this library!
Would it possible to add an option to skip onChange handler when calling goToStep?
In my case, I push a new state to the browser's session history stack (see history) thank to the onChange handler. I don't use hash routing so I can't use the built-in routing.
I have also a listener to popstate event that updates current step (by calling goToStep) when the user clicks on back button for example. In this case, I would like to skip the onChange handler. Otherwise it pushes a new state and breaks the navigation.
Example:
  const { activeStepIndex, getStep, goToStep, nextStep, previousStep } = useWizard({
      onChange: ({ newStepIndex }) => {
        history.push("/step" + newStepIndex);
      }
  });

  useEffect(() => {
    const handlePopState = event => {
      // retrieve step index from path
      const newStepIndex = ...;
      if (newStepIndex !== -1) {
        // actually
        goToStep(newStepIndex);
        // expected
        goToStep(newStepIndex, { skipOnChange: true });
      }
    };

    window.addEventListener("popstate", handlePopState);

    return () => {
      window.removeEventListener("popstate", handlePopState);
    };
  });

:tada: This issue has been resolved in version 2.3.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


streamlit.errors.DuplicateWidgetID

Looks like the Running Calculator has an error that's preventing it from functioning. Error code should be visible on your end. Otherwise, here is the traceback messaging.
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 562, in _run_script
exec(code, module.dict)
File "/app/running-performance-calculator/streamlit_app.py", line 23, in
utils.show()
File "/app/running-performance-calculator/utils.py", line 190, in show
alt_t = column2.number_input("Write the altitude here (m)", 0, 10000, 0, key='target')
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/runtime/metrics_util.py", line 231, in wrap
result = callable(*args, **kwargs)
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/elements/number_input.py", line 170, in number_input
ctx=ctx,
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/elements/number_input.py", line 337, in _number_input
ctx=ctx,
File "/home/appuser/venv/lib/python3.7/site-packages/streamlit/runtime/state/widgets.py", line 202, in register_widget
user_key,

Thank you very much for notifying me about this issue and sorry for the delay, I've already fixed it in the code and next, I'm going to reload the online app.


Transactions

Got some rudimentary support for transactions, but would also like to initiate the repository with an optional flag to start it as a transaction.
It's good support workflows where you are beginning to create a handful of objects in a row that you know are somehow related and in transaction and can fire up a repository instance just for that little batch.
Might also consider a method at the repository level that shows all active transactions?

Yes, reworking.  Some current work with transactions, but could be improved.
New approach:

new Transaction class that extends Repository
when created, appends to repo.txns, a dictionary of open transactions

Then, could use thusly
# returns transaction
ebook_txn = repo.start_txn('ebook')

# also available here
ebook_txn = repo.txns['ebook']

[In] ebook_txn.name
[Out] 'ebook'

[In] ebook_txn.elapsed # in seconds
[Out] 89

# work with transaction
foo = BasicContainer(ebook_txn, 'foo')
foo.create(specify_uri=True)

# looks good, commit
ebook_txn.commit()

# transaction now False, and removed from repo.txns
[In] ebook_txn
[Out] False

Implemented.


Greedy(Medium) - C++

Solved issue #363
In Language- C++

[x] Updated README Link
[x] Added code with comments

Thanks for contributing!

@adityabisoi feel free to merge the pr


无法在表单中输入字符

Version
2.3.3
Reproduction link
https://codepen.io/shusiwei/pen/mwyOYw
Steps to reproduce
当某些数据更新很快
What is expected?
正常的输入字符
What is actually happening?
表单无法输入字符

Use @input and it works as intended. It seems keyup fires too late so the timer may get fired in between the input's value change and the event firing.


Do not reply that a package has an unfixed vulnerability when in fact it is malicious

Summary
Malicious packages that have a vulnerability entry MAL- are in fact
malicious. Our OSV evaluator handled the MAL- vulnerabilities the same
as all the others which meant that it would just reply with "A
vulnerability was found, but no fixed version exists yet".
A malicious package is unlikely to not be malicious again, so let's put
a sterner warning including a link to the vulnerability into the reply.
Fixes: #4528
Change Type

[x] Bug fix (resolves an issue without affecting existing features)
[ ] Feature (adds new functionality without breaking changes)
[ ] Breaking change (may impact existing functionalities or require documentation updates)
[ ] Documentation (updates or additions to documentation)
[ ] Refactoring or test improvements (no bug fixes or new functionality)

Testing
manually, see e.g. https://github.com/jakubtestorg/bad-python/pull/266
Review Checklist:

[x] Reviewed my own code for quality and clarity.
[ ] Added comments to complex or tricky code sections.
[ ] Updated any affected documentation.
[ ] Included tests that validate the fix or feature.
[ ] Checked that related changes are merged.

coverage: 52.83% (-0.009%) from 52.839%
when pulling c1362c935c779fe575674c21f24b0a2fb170db69 on jhrozek:mal_is_not_cve
into fabeea9b44e6df1460c20fd577c10fe9b88827c1 on stacklok:main.


formatting PBjam output to different stellar model pipelines

It would be nice to have a small pbjam.output module which handles the formatting of the outputs so they are easy to use in different modeling pipelines.
The module can contain a method or each type of output, e.g., pbjam.output.to_mesa() which would format things to make it easier to copy mode frequencies etc. into a mesa input file.
This will hopefully make it easier for modelers to use PBjam.
We can of course just make a pbjam.output.standard() that is the default setting.

Here's an example of what the relevant lines for MESA's astero model-fitting module look like.
      nu_max = 1010 ! in uHz
      nu_max_sigma = 10

      delta_nu = 56.28 ! in uHz
      delta_nu_sigma = 1.0

      ! observed l=0 modes to match to model
         nl0 = 5
         l0_obs(1) = 799.70d0
         l0_obs(2) = 855.30d0
         l0_obs(3) = 909.92d0
         l0_obs(4) = 965.16d0
         l0_obs(5) = 1021.81d0
         l0_obs_sigma(1) = 0.27d0
         l0_obs_sigma(2) = 0.73d0
         l0_obs_sigma(3) = 0.26d0
         l0_obs_sigma(4) = 0.36d0
         l0_obs_sigma(5) = 0.28d0

      ! observed l=1 modes to match to model
         nl1 = 4
         l1_obs(1) = 748.60d0
         l1_obs(2) = 777.91d0
         l1_obs(3) = 828.21d0
         l1_obs(4) = 881.29d0
         l1_obs_sigma(1) = 0.23d0
         l1_obs_sigma(2) = 0.24d0
         l1_obs_sigma(3) = 0.42d0
         l1_obs_sigma(4) = 0.29d0

      ! observed l=2 modes to match to model
         nl2 = 2
         l2_obs(1) = 794.55d0
         l2_obs(2) = 905.31d0
         l2_obs_sigma(1) = 0.52d0
         l2_obs_sigma(2) = 0.35d0

      ! observed l=3 modes for matching to model
         nl3 = 0
         l3_obs(:) = 0
         l3_obs_sigma(:) = 0

If someone sets up an example of what the output functions should look like, I can probably add this myself.

This sounds like a nice feature - do lots of people use astero?
While this is a great idea we should keep out focus on things like robust estimates of numax/dnu and treatment of the l=1.  Although I suspect @warrickball could probably do this while sleeping it should probably be a v2.0 ambition. :)

This sounds like a nice feature - do lots of people use astero?

Basically, no. AIMS and AMP spring to mind as formats that others might use. I expect there's one format per stellar modeller/modelling pipeline so it's probably easier to just let the user provide a format function that we (you?) might ingest later.

While this is a great idea we should keep out focus on things like robust estimates of numax/dnu and treatment of the l=1. Although I suspect @warrickball could probably do this while sleeping it should probably be a v2.0 ambition. :)

I fully agree that this should be a low priority. It's easy to work with the peakbag_summary CSV as it is so, while convenient, I doubt this feature would add much value.

My idea with this was that modelers who have not tried using seismic
constraints with, e.g., Mesa, would find it easier to integrate results
from PBjam. Anything that makes peoples' lives easier increases the odds
they will use the code. For seasoned seismologists it'll probably not be
that important though. Also it'll be a easier for us to sneak in
line-of-sigh velocity corrections, which will be important, even for
seasoned seismologists...
From the coding side of things it would also be nice to compartmentalize
and standardize the output functions/formats in some way.
On Mon, 10 Feb 2020 at 11:43, Warrick Ball<EMAIL_ADDRESS>wrote:

This sounds like a nice feature - do lots of people use astero?
Basically, no. AIMS and AMP https://amp.phys.au.dk/ spring to mind as
formats that others might use. I expect there's one format per stellar
modeller/modelling pipeline so it's probably easier to just let the user
provide a format function that we (you?) might ingest later.
While this is a great idea we should keep out focus on things like robust
estimates of numax/dnu and treatment of the l=1. Although I suspect
@warrickball https://github.com/warrickball could probably do this
while sleeping it should probably be a v2.0 ambition. :)
I fully agree that this should be a low priority. It's easy to work with
the peakbag_summary CSV as it is so, while convenient, I doubt this
feature would add much value.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/grd349/PBjam/issues/215?email_source=notifications&email_token=AEJWO36MA72ZK6DJXYBGL5DRCE4XDA5CNFSM4KRNKS22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELIGTXQ#issuecomment-584083934,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEJWO3YD5QPJKMOGCLQ6URLRCE4XDANCNFSM4KRNKS2Q
.

This is a problem description for the PBjam Hackday:
Problem: Eliminating barriers for usage is makes people more likely to use code. Some users may never have tried use seismic constraints in their modeling efforts, and it would simplify the process greatly if PBjam automatically outputs the mode frequencies in a way that modeling codes can easily digest.
Possible Solution: Write a small class that takes inputs from PBjam and given some output options creates a file that is formatted to conform with, e.g., MESA or BASTA input files. Start with open source modeling codes, and if you have knowledge of commonly used but private codes, feel free to add output formats for these too.

This is a problem description for the PBjam Hackday:
Problem: Eliminating barriers for usage is makes people more likely to use code. Some users may never have tried use seismic constraints in their modeling efforts, and it would simplify the process greatly if PBjam automatically outputs the mode frequencies in a way that modeling codes can easily digest.
Possible Solution: Write a small class that takes inputs from PBjam and given some output options creates a file that is formatted to conform with, e.g., MESA or BASTA input files. Start with open source modeling codes, and if you have knowledge of commonly used but private codes, feel free to add output formats for these too.

Probably best to just output in a easily parseable fashion so that other codes can adapt easily.


Support dependencies among jobs

What is the best way to do job dependencies with saq, like in rq? In rq, users can specify a depends_on argument when creating a job, and only enqueue the job if the dependencies are finished. I had thought I can hack the before_enqueue and/or before_process hook for this, but it looks like the job will be enqueued/processed no matter what happens in the hook. If anyone can help point me to a good way to support it with saq, I can write the code and do a PR.
BTW, thanks for a fast, light-weighted, yet powerful package!

depends_on / DAG is something i've explicitly not added due to the complexity involved. i'd be open to a very light weight solution for it though. you probably need to do modify def enqueue to check for dependent jobs,
if dependent jobs are active, or queued, they cannot be enqueued, otherwise they can. you'll also need to make sure they don't start processing.

happy to chat about it on slack https://tobikodata.com/slack


Email warning

This solves #5

@robertkowalski
A few thoughts:

Exiting with an error message outputted on standard error seems fine, as users usually pipe standard output to git am -, not standard error.

Providing --force and -f command line options allows for users to making forward progress in an email address can't be found, and exiting by default makes sure that a script would not continue by e.g committing and pushing if a reviewer's email address is missing.

We could implement additional ways of retrieving email addresses. A couple of suggestions: using .mailmap files that are also used by Git, and/or allowing to specify an out of band file that contains reviewers email addresses.

related: #20


Remove GitHub Workflows on main branch

Description

The main, 3.x and 4.x branches are built on Apache Software Foundation Jenkins CI.
The build for main branch was broken for 2 months already on GitHub

see discussion here https://camel.zulipchat.com/#narrow/stream/364655-camel-core-dev/topic/Reformat.20and.20build.20job.20on.20main.20branch.20on.20GitHub.20CI.20is.20KO/near/442541978
Target

[ ] I checked that the commit is targeting the correct branch (note that Camel 3 uses camel-3.x, whereas Camel 4 uses the main branch)

Tracking

[ ] If this is a large change, bug fix, or code improvement, I checked there is a JIRA issue filed for the change (usually before you start working on it).

Apache Camel coding standards and style

[ ] I checked that each commit in the pull request has a meaningful subject line and body.

[ ] I have run mvn clean install -DskipTests locally and I have committed all auto-generated changes

the workflows were also responsible to reformat.
TODO: check that it is done on Apache CI (or in another way)


Create tkbutton01.py

This part is to wowrk with buttons to create a new message box on the button click event. This is mostly to work as a Hello World Program.

Merging the newly created button mashing module with the main branch. More programs that are added related to buttons will be placed here before merging them to the main branch.


Lint JSON-LD

Add a script to parse the example JSON-LD and verify that it produces the correct graph.

This was closed by #17.


Add support for optional file with --dart-defines

This PR:

fixes #578

Ignore failing tests, it's because we're using using an overridden version of flutter_driver by Fiołek. What matters is that it passes on stable.

Got --dart-define<EMAIL_ADDRESS>Got --dart-define: PASSWORD=doge=kool
Got --dart-define: EXAMPLE_KEY='Al8=//\\'

This will be printed out, but I don't think we want this in CI? Various CIs replace secrets/envs with asterisks, but here they won't know it's secret.
Maybe simply announce that EMAIL was provided without disclosing its value? Or only when a flag is present?

@Albert221 Yeah, but I can imagine it might be useful for the user to see what values were picked up. @testers
An easy solution would be to announce that a KEY was passed, and if --print-secrets flag was passed, we'd also print keys. But maybe there's even simpler solution?

If there is any other option to view this file?