add torchscript convert script

PYTHONPATH=`pwd` python3 bin/to_jit.py model.path=$(pwd)/big-lama +save_path=/path/to/save/big-lama.jit

Hi. Any updates on this PR? Being able to jit models would be ultra-useful.

Rebased and tested on latest main branch

@Sanster, can you explain how you converted the model? When running the PYTHONPATH=`pwd` python3 bin/to_jit.py model.path=$(pwd)/big-lama +save_path=/path/to/save/big-lama.jit command, a RuntimeError occurs with the message: "DefaultInpaintingTrainingModule is not attached to a 'Trainer'."

@Sanster, can you explain how you converted the model? When running the PYTHONPATH=`pwd` python3 bin/to_jit.py model.path=$(pwd)/big-lama +save_path=/path/to/save/big-lama.jit command, a RuntimeError occurs with the message: "DefaultInpaintingTrainingModule is not attached to a 'Trainer'."

Hello, have you solved this problem? I seem to have encountered the same error.


FR: Ranged attribute selection via min/max filter

For attributes having a range of value, e.g.

It can be a bit of work to select e.g. all parts with a maximum input voltage >= 40V, as you'd need to select {"2.5V~40V", "5V~40V", "16V~44V", "16V~65V", etc.}
Items might be more easily selected if ranged attributes could be filtered by a max-lower-value and a min-upper-value, which would allow selecting the matching attribute values from the multiselect box. For the example above, this would just require setting min-upper-value = 40
This change can be front-end-only, as ranges can generally be detected by their format.

Implemented in #127


FeedLabel tweaks

Some markup cleanup suggestions for the FeedLabel component.

Have added the HTML syntax improvements to #698. Having the checkbox highlight when the label is hovered is really cool!


Updating default.tensor to use disentangled networks

The scope of this PR is to do a first refactor of default.tensor. This includes the following upgrades:

[x] Plugin now starts with a disentangled representation of quantum states
[x] Defer tensor network contractions until the end of the state evolution (pre-measurement)
[x] Caches the contracted state (useful if independent expvals are being computed for the same state)
[x] Added tests of basic tensor network functionality (node creation, connecting edges, contraction, etc.)

Upgrades that are deferred to follow-up PRs:

[ ] Add in support for MPS representation (currently commented out)
[ ] Port to QubitDevice?
[ ] Add test coverage that currently seems to be missing (e.g., TestExpval)
[ ] Make changes necessary for default.tensor.tf to work

Note that currently tests in test_default_tensor_tf are failing, since I have not yet updated that child plugin to account for changes in the parent class.

Thanks everyone, I addressed your comments. Please have another look over :smiley:

Note that all failing tests are related to default.tensor.tf, which will be tackled in a future PR


Can xla compile tf.estimator.DNNLinearCombinedEstimator?

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): ubuntu 16.04
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: n/a
TensorFlow installed from (source or binary): source 1.13
TensorFlow version: 1.13
Python version: 2.7
Installed using virtualenv? pip? conda?:
Bazel version (if compiling from source): 0.19
GCC/Compiler version (if compiling from source):4.8
CUDA/cuDNN version: n/a
GPU model and memory:n/a

Describe the problem
trying to AOT compile a model trained using XLA
error :  {{node dnn/input_from_feature_columns/input_layer/xyz/axyz_embedding_weights/SparseReshape}}
.  Registered:
){{node dnn/input_from_feature_columns/input_layer/ad__ad_id_embedding/ad__ad_id_embedding_weights/SparseReshape}}
Is there any ETA on this being supported ?
How can AOT xla compile : tf.estimator.DNNLinearCombinedEstimator , is this even possible with current support ?
Provide the exact sequence of commands / steps that you executed before running into the problem
bazel-bin/tensorflow/compiler/aot/tfcompile --graph=mygrapht.pb --config=graphv.config.pbtxt --cpp_class="mynamespace::MyComputation"
Any other info / logs
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.

@patelprateek Could you provide more details about the issue.Thanks!

@gadagashwini : can you please elaborate what details you need ?
I took the DNNLinearCombinedEstimator code , trained a model and then tried xla AOT compilation.
Can't get that to compile because of the following error :
error : {{node dnn/input_from_feature_columns/input_layer/xyz/axyz_embedding_weights/SparseReshape}}
. Registered:
){{node dnn/input_from_feature_columns/input_layer/ad__ad_id_embedding/ad__ad_id_embedding_weights/SparseReshape}}
seem slike SparseReshape is not supported yet.
Please let me know what details are you looking for , because i belive the above information is enough to reproduce the problem as well ?
tf 1.12 bazel 0.19 gcc 4.8 python 2.7 ubuntu 16.04

@patelprateek Please provide the reproducible code to expedite the trouble-shooting process. Thanks!

@gadagashwini : Please read my previous update , you can take DNNLinearCombinedEstimator provided by estimators api and try compiling with xla.
There is no need for me to share any code here (plus that is all internal code and would be hard to share , i already gave you enough information), i am talking about the pre built estimators
Also the error clearly shows what kind of feature is problematic.. i.e embedding
I think this is sufficient to reproduce

Is there any ETA on this being supported ?

No, we're not investigating adding any sparse operations to XLA at this time.
I don't know enough about the TF ops to state whether they're even a good fit for XLA, but if they are a good fit for XLA I'd be fine reviewing a PR adding XLA support for these ops.

@sanjoy : can you please provide me some pointers or documentation regarding "what is a good fit for xla". I am happy to contribute and add PRs but would need some guidance , can you point me to some example PRs that adds support for few ops , that would be very helpful for me to understand the different pieces that needs to go in for supporting a new op .

Probably the easiest way to get started is to look at some example TF->XLA lowerings and try to find one that is close to SparseReshape.  All the TF->XLA lowerings are in tensorflow/compiler/tf2xla/kernels/.
For instance, this file contains the dense reshape operation: tensorflow/compiler/tf2xla/kernels/reshape_op.cc, although I suspect the implementation of SparseReshape is probably going to be very different from Reshape.

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!


Token generation for prov/consumer mode

Creation of a job that is responsible for creating the private and public keys as secret in provider/consumer mode.

Added watch on a public secret if it's deleted storage cluster will reconcile
Job is created based on public key,

/retest

/cherry-pick release-4.15


Improve Uploaded files settings panel UI

We should make the following improvements to the Uploaded files settings panel UI:

[ ] Rename the table to "Your uploads" to clarify that these are your files, not everyone's. All other strings can continue to say "uploaded files".
[ ] Change the text of the quota notice to:

Your organization is using x% of your 5 GB file storage quota. Upgrade for more space.

[ ] Instead of a link on "Upgrade", put the whole notice into a clickable banner with a rocket icon, like ones elsewhere in settings:

Current UI:

@zulipbot claim

@zulipbot claim

hey @nimishmedatwal looks like you are already working on an issue? which is currently not merged right?

hey @nimishmedatwal looks like you are already working on an issue? which is currently not merged right?

I've already made the pr.

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

Hi @alya @zulipbot  Please ignore this for now. I'm fixing a few dependencies

hey @alya  , if the issue is not resolved, i can fix this....

Heyy @Thanush19  The issue has actually been resolved. I'm just making some lint errors but I will complete today

@Kirsty21 are you done with the issue??

I've made the updates to the files but I'm having linting errors on upload for both back end and frontend 😕😕

@himanshusuryawanshi If I don't get it fixed tonight I'll unassign myself so you can work on it instead. I'll keep you posted

Successfully completed! @zulipbot

@Kirsty21 Has the PR merged or still in progress?

@zulipbot claim

Ready for review!

@zulipbot unassign, as issue solved and PR submitted

@zulipbot claim

@zulipbot abandon

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot claim

@zulipbot  claim

hello i am new in contribution i want to solve this issues but here all good first issue are already assign

@zulipbot claim

@zulipbot claim

Hey @alya ,can I work upon this issue as it seems to be inactive from long?

@zulipbot claim !

Hey @alya , no work as has been done on this issue for so long.

@shuklamaneesh23 assigning to you, thanks! Please unclaim if you are no longer interested.

@zulipbot claim


how to extract the feature that i want

hi，i have trained a resnet50 on my dataset.and i want to extract the feature that on pool5，how to  use the parameters  that on   function of   outputs = extract_cnn_feature(model, imgs,     ?? )  . what should the third parameters look like ?

@Linranran I have the same question, too.  Have you figured out that?  I am new with pytorch and will be happy that if you can give me some suggestions.

@liangbh6  you can change a little  at https://github.com/Cysu/open-reid/blob/master/reid/models/resnet.py ,just return one more variable .
def forward(self, x):
    for name, module in self.base._modules.items():
        if name == 'avgpool':
            break
        x = module(x)

you can mark the x and return it a in the end.  you will get two features when put images into the model ,and  chose the  feature you wants.
i make it by this way.and pytorch have the function hook ,but i am not clear how to use it .

@Linranran It works. Thank you for kind help! I think it's a very simple way to achieve that~

Hi, I don't really understand your method, do u mean for example i wan to extract the  features from pool 5, i do this?
def forward(self, x):
    for name, module in self.base._modules.items():
        if name == 'avgpool':
             return x

@zarakikun no ,do not do it this way.just mark the pool5 variable,and return it at the end .if you do it in your approach you will distroy the initial code and have to change a lot related code.you just marke the pool5 variable and return it in the end .and chose the returned variable that your want

@Linranran would you mind showing me a snippet example of how you would retrieve for example pool5 features? thank you!

@zarakikun
like this
def  forward(self, x):
for name, module in self.base._modules.items():
if name == 'avgpool':
break
x = module(x)
if self.cut_at_pooling:
return x
x = F.avg_pool2d(x, x.size()[2:])
x = x.view(x.size(0), -1)
pool5=x
if self.has_embedding:
x = self.feat(x)
x = self.feat_bn(x)
if self.norm:
x = F.normalize(x)
elif self.has_embedding:
x = F.relu(x)
if self.dropout > 0:
x = self.drop(x)
if self.num_classes > 0:
x = self.classifier(x)
return x ,pool5

@ahkarami No, you don't have to. Just
outs = []
x = self.feat(x)
outs.append(x)
...
return outs

Dear @Cysu,
Thank you very much for your answer.


⚠ Bofrost.at has degraded performance

In aaeac86, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1008 ms

Resolved: Bofrost.at performance has improved in df075c9 after 7 minutes.


Detailed Placement padding

The equivalent of https://github.com/The-OpenROAD-Project/OpenLane/blob/master/scripts/openroad/common/dpl_cell_pad.tcl should exist in openlane2. The reason behind is that there are multiple steps that insert cells such as resizer and heuristic antenna diode insertion. These steps need to obey padding rules set for the whole flow. Otherwise it can trigger errors such as the following https://github.com/efabless/openlane2/issues/168.

Not entirely sure what you mean. That script exists. Furthermore, detailed placement is never performed without this script being sourced as unlike in OpenLane 1, all detailed_placement invocations happen in dpl.tcl.


Fix margins for height and weight questions

Could you include a screen shot next time, please!
Tested and it looks good!


Allow Differently Typed Selectors

Here is the related issue https://github.com/reactjs/reselect/issues/264
Right now we have to do typings like this:
const selectorOne = (state: State) => state.something;
const selectorTwo = (state: State) => state.other;
createSelector([selectorOne, selectorTwo], () => ...);

This PR allows us to do typings like this:
const selectorOne = (state: { something: string }) => state.something;
const selectorTwo = (state: { other: number }) => state.other;
createSelector([selectorOne, selectorTwo], () => ...);

Let me know if I should change anything, thanks!

This is a breaking change since generic arguments changed. We should include both old and new signatures.

@aikoven Yep!  Added them back

I've tested these against a fairly large project with lots of selectors and it worked fine.
There's a failing test that should be fixed. Also, I guess some tests for the new signatures should be added as well.

@aikoven  Cool!  I fixed the broken tests and added both a failing-case and a passing-case test for both parametric and array selectors

Coverage remained the same at 100.0% when pulling 5cd06969771b7acdd09d334dc6d24287fef2ddd4 on relateiq:typings into c60c851ceb54c737a7296a0f533b70e5fd5048b8 on reactjs:master.

Codecov Report

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

@@          Coverage Diff          @@
##           master   #274   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines          15     15
=====================================
  Hits           15     15

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 c60c851...5cd0696. Read the comment docs.

Also, I put the Python script I threw together into a Gist - in case someone wants to refer back to this and change the types at some point https://gist.github.com/benshope/9712ed6d725a263467447ac6473502a9

Nice work @benshope! It's 👍 to me, I hope someone else would also test these in their project.

@aikoven I tacked on an additional commit to this PR to cover typescript 2.4's new strict generic checks and added a test  here: https://github.com/reactjs/reselect/pull/274/commits/5ec2b1f29bf7100420a93736cbe7996eb48a6687
You can see relevant discussion on the topic in this typescript issue: https://github.com/Microsoft/TypeScript/issues/17509

Coverage remained the same at 100.0% when pulling 5ec2b1f29bf7100420a93736cbe7996eb48a6687 on relateiq:typings into c60c851ceb54c737a7296a0f533b70e5fd5048b8 on reactjs:master.

Coverage remained the same at 100.0% when pulling 5ec2b1f29bf7100420a93736cbe7996eb48a6687 on relateiq:typings into c60c851ceb54c737a7296a0f533b70e5fd5048b8 on reactjs:master.

Coverage remained the same at 100.0% when pulling 5ec2b1f29bf7100420a93736cbe7996eb48a6687 on relateiq:typings into c60c851ceb54c737a7296a0f533b70e5fd5048b8 on reactjs:master.

Changing the generic signature of defaultMemoize is a breaking change.
It could potentially be solved via generic defaults, although it would break for users of TS 2.2 and below.

That's fair, I hadn't considered the case where some one might be calling defaultMemoize with the generic:
defualtMemoize<MyFunction>

I've reverted the commit.

Coverage remained the same at 100.0% when pulling 7dad14802be42353dc56d64ddb590ea09f4dbe71 on relateiq:typings into c60c851ceb54c737a7296a0f533b70e5fd5048b8 on reactjs:master.

@aikoven Hey!  Any updates on the status of this?

Sorry to be so slow to this. As @aikoven has approved, I'll go ahead and commit. Thanks!

@ellbee Thanks!!


Why the use of "Any" tag for source and destination in example NSG?

Given following documentation:
https://docs.microsoft.com/en-us/azure/bastion/bastion-nsg#apply
Are there any specific reasons to why you use "Any" as destination for most inbound rules, and as source for most outbound rules in this recommended NSG for Bastion? Vs. using "VirtualNetwork" tag, which I guess would be sufficient?
If there's a specific reason for it, it would be nice if the documentation could explain why. :)

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

ID: cc46ceac-e45e-6f29-dd5b-6453c614d9b2
Version Independent ID: b8b3bb83-5204-1f8b-787f-eb3da444e22e
Content: Working with VMs and NSGs in Azure Bastion
Content Source: articles/bastion/bastion-nsg.md
Service: bastion
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

@o-l-a-v , thank you for your feedback. We'll review this and get back to you shortly!

@o-l-a-v , I tested this in my lab and tried to attach a NSG to my BastionSubnet with inbound & outbound rules where "Any" was replaced with "Virtual Network" but it failed with below error:

It looks like a design limitation to me but I have reached out to the Bastion PG to get more details on same. Will get back to you once I have an update from the team.

@o-l-a-v , the PG has confirmed that this is a known issue to them. Currently the code logic check for ANY keyword and if it is not present the NSG validation fails. The PG is working to fix this. So no change is required in the doc.
We are closing this issue for now. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.


v5 tabs don't respond to dynamic click event

On v4.6.0 one can jQuery.click() a tab to make it show itself. This no longer works in v5.1.0.
Testcases:
v4.6.0: https://codepen.io/tinodidriksen/pen/eYWwvPJ
v5.1.0: https://codepen.io/tinodidriksen/pen/xxdoqoL
Tested on Windows 10 with both Chrome 92 and Firefox 78.
I am aware of the workaround with bootstrap.Tab.getOrCreateInstance(jQuery.get(0)).show() but that feels extremely clunky when it used to just work. As far as I can see, nothing regarding this was mentioned in https://getbootstrap.com/docs/5.1/migration/ - just because jQuery is no longer required, it should still work.

you can use selector like this
$(function() {
  $('button').click(function() {
        $('.nav-tabs a[href="#profile"]').tab('show');
  });
});

jQuery.tab('show') is certainly shorter than bootstrap.Tab.getOrCreateInstance(jQuery.get(0)).show(), but I depend on jQuery.click() in other ways.
I have other events also tied to the tab's click, so I need that line regardless - I would just very much prefer not having to add a separate line just to trigger the tab.

hi, I would like to know is this issue still open? And how can I contribute to it. Can you give me some context to this issue?

Hi ...how are you? Maybe are well
...V5 also me ...can u see me ...
On Sun, Aug 29, 2021, 5:03 PM neha200 @.***> wrote:

hi, I would like to know is this issue still open? And how can I
contribute to it. Can you give me some context to this issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/twbs/bootstrap/issues/34767#issuecomment-907807057,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUZ6X3TI32ZAEPOZYQPG5UDT7JD3JANCNFSM5CL4533Q
.

My phone don't have charge and what do you have for dinner ... thank you..
On Sun, Aug 29, 2021, 5:03 PM neha200 @.***> wrote:

hi, I would like to know is this issue still open? And how can I
contribute to it. Can you give me some context to this issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/twbs/bootstrap/issues/34767#issuecomment-907807057,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AUZ6X3TI32ZAEPOZYQPG5UDT7JD3JANCNFSM5CL4533Q
.

You can try
 $('#profile-tab').get(0).click();

It works.
If anyone knows the explanation of this, I would like to learn it too
also, you can use:
bootstrap.Tab.getOrCreateInstance(jQueryElement).show()
and it is not a work around as you working over a given library. It is more valid to use documented methods that "random" event triggering

sorry referenced wrong project


URL to PDF: HTTP error status from upstream server produces PDF with error response from upstream

We are passing a URL to gotenberg which returns HTML, converting to PDF, and using the webhook functionality to PUT the PDF to S3. When the upstream server encounters an error and returns a 500 response code, we end up with a PDF of the HTTP response saved to S3.
I would expect this to result in no PDF being PUT for the request whose URL produced an error.
Is this expected behavior? Or a known issue?

Hello @dselph,
I suppose those were generated before the 8.0.0 release? Indeed, in versions 7.x.x, Gotenberg was printing to PDF whatever the upstream server responded, e.g., error page etc.
Since 8.0.0 release, it should not be the case anymore (https://gotenberg.dev/docs/routes#invalid-http-status-codes-chromium).

Thank you for the reply.
We are actually running v8.0.2, but had overlooked that option for invalid http status codes. That does lead to a better result, as the generated PDF does not contain the original error response, but it does still generate a PDF, which is undesired behavior.
We will get the HTML in our app and only call gotenberg with it when we get a valid response so that we have more control over that behavior. Thanks again!

The default option value (e.g., all errors from 400 to 599) should be enough for most if not all scenarios.
Anyway, I try to reproduce your issue but without success 🤔

Success workflow ✅
curl --request POST \
  --url https://demo.gotenberg.dev/forms/chromium/convert/url \
  --header 'Content-Type: multipart/form-data' \
  --header 'Gotenberg-Trace: debug' \
  --header 'Gotenberg-Webhook-Error-Url: https://en2ccqa3tgqllm2.m.pipedream.net' \
  --header 'Gotenberg-Webhook-Url: https://enz2x603f0k4rr5.m.pipedream.net' \
  --form url=https://httpstat.us/200 \
  --form skipNetworkIdleEvent=true

Error workflow 🔴
curl --request POST \
  --url https://demo.gotenberg.dev/forms/chromium/convert/url \
  --header 'Content-Type: multipart/form-data' \
  --header 'Gotenberg-Trace: debug' \
  --header 'Gotenberg-Webhook-Error-Url: https://en2ccqa3tgqllm2.m.pipedream.net' \
  --header 'Gotenberg-Webhook-Url: https://enz2x603f0k4rr5.m.pipedream.net' \
  --form url=https://httpstat.us/400 \
  --form skipNetworkIdleEvent=true

Notice that:

In both scenarios, the correct URL is called (e.g., Gotenberg-Webhook-Url & Gotenberg-Webhook-Error-Url)
In case of error, the error is correctly returned and no PDF is generated.

Closing this issue, please re-open it if you find a way to reproduce your issue.


test for CodeIgniter\Config\Services::email()

Test for CodeIgniter\Config\Services::email(). Make CodeIgniter\Config\Services class 100% tested.
Checklist:

[x] Securely signed commits
[x] Unit testing, with >80% coverage

You probably thought this would be a quick PR, but I have a request for you to consider. It’s been on my list for a while to write a MockEmail class. It would essentially be an extension of the Email class but instead of sending it would store an array of the parameters that could be retrieved. Or something along those lines. Would you be interested in taking this on? Could make this part of a larger update to Email before the class gets rewritten.

Do you think the class will be CodeIgniter\Test\Mock\MockEmail ? mock 28 public methods ? or do you have list of methods that needs to be mocked?

Yes that’s the class. I haven’t looked through the methods but my guess is only the actual send would need to be mocked. I can look when I’m not on mobile and specify, but I also trust your judgement.

I created separate PR #2788 for new MockEmail cass.


Add CosmosDB as storage option

Description
This PR adds support for a CosmosDB storage option for the cache and parquet outputs of the indexing pipeline.
Related Issues
N/A
Proposed Changes

Implemented a CosmosDBPipelineStorage class that extends the PipelineStorage base class to interface with CosmosDB
Modified the storage and cache factory methods to support the new storage type
Modified all steps of the configuration loading to accommodate the new storage settings
Added support for non-default emitter types by loading extensions dynamically (for workflow loading and query)

Checklist

[x] I have tested these changes locally.
[x] I have reviewed the code changes.
[ ] I have updated the documentation (if necessary).
[ ] I have added appropriate unit tests (if applicable).

Additional Notes
[Add any additional notes or context that may be helpful for the reviewer(s).]

When testing with the CosmosDB emulator, I get the following error message.
22:17:01,648 graphrag.storage.cosmosdb_pipeline_storage ERROR Error writing item create_final_nodes.parquet
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/graphrag/storage/cosmosdb_pipeline_storage.py", line 217, in set
    container_client.upsert_item(body=cosmos_db_item)
  File "/usr/local/lib/python3.10/site-packages/azure/core/tracing/decorator.py", line 105, in wrapper_use_tracer
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/cosmos/container.py", line 824, in upsert_item
    result = self.client_connection.UpsertItem(
  File "/usr/local/lib/python3.10/site-packages/azure/cosmos/_cosmos_client_connection.py", line 1328, in UpsertItem
    return self.Upsert(document, path, "docs", collection_id, None, options, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/cosmos/_cosmos_client_connection.py", line 2663, in Upsert
    result, last_response_headers = self.__Post(path, request_params, body, headers, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/cosmos/_cosmos_client_connection.py", line 2837, in __Post
    return synchronized_request.SynchronizedRequest(
  File "/usr/local/lib/python3.10/site-packages/azure/cosmos/_synchronized_request.py", line 214, in SynchronizedRequest
    return _retry_utility.Execute(
  File "/usr/local/lib/python3.10/site-packages/azure/cosmos/_retry_utility.py", line 97, in Execute
    result = ExecuteFunction(function, global_endpoint_manager, *args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/cosmos/_retry_utility.py", line 199, in ExecuteFunction
    return function(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/azure/cosmos/_synchronized_request.py", line 154, in _Request
    raise exceptions.CosmosHttpResponseError(message=data, response=response)
azure.cosmos.exceptions.CosmosHttpResponseError: (InternalServerError) unsupported Unicode escape sequence
Code: InternalServerError
Message: unsupported Unicode escape sequence

It may be an issue with the emulator and not the code so I'll conduct more tests with a real CosmosDB deployment.


Some Parts of GUI Not Working?

I don't know if this is happening with only my server or others, but some parts of the GUI don't work (All Except CE Books don't work). This started happening after version 1.7.2, I believe. Possibly something new in the config (PS I'm bad at config)? Thanks.

Please pastebin the config and the error from console

Wow, that was fast...
Config - http://pastebin.com/jmazrByp
Console - http://pastebin.com/DJz9h397
Maybe some other plugin causing problems?
Also, might want to add StackMobs on your supported plugins part on your page.

This should fix it.
https://hastebin.com/qurobatiwi.php

So I copy and paste it into my config? And thanks for replying so quick!

Yes sir

It worked, thanks! (Again)

Np


Where should I change it for normal use

Where should I change it for normal use

Sorry, I think I have solved it. It may be because the offset used by the specific dump is wrong.

Sorry, I think I have solved it. It may be because the offset used by the specific dump is wrong.

Hey you got discord by any chance, we can probably help each other out

I think it's a good idea. How can we communicate？

Sorry, I think I have solved it. It may be because the offset used by the specific dump is wrong.

Hey you got discord by any chance, we can probably help each other out

https://github.com/jungleninja/UE4Dumper-IOS/issues/3#issuecomment-1079646633

对不起，我想我已经解决了。这可能是因为特定转储使用的偏移量是错误的。

嘿，你碰巧有不和，我们也许可以互相帮助

How can we contact and discuss？

I have discord, add my discord busmanl30#3931

我应该在哪里更改才能正常使用

Hello, can you tell me how to use it?


Shrunk favicon in uber.github.io/ludwig/examples/

Describe the bug:

Shrunk favicon in uber.github.io/ludwig/examples.

Fix:

Replace images/ludwig logo.png with the favicon1 or favicon2

Expected behavior

Responsive, fit favicon.

Screenshots

To be replaced in  uber.github.io/ludwig/examples:

Thank you for figuring this out. The problem is fixed now.


Change TI Button Text

Is your feature request related to a problem? Please describe.
TIs don't always go through the TI dashboard to apply for programs on behalf of their clients. They miss out on the benefits of the "Add a Client" flow and are stuck with one client's data hogging all future forms.
Describe the solution you'd like
Rename the Trusted Intermediary Dashboard to something more actionable such as View and add clients to make it obvious where to go.
Additional context
Screenshot attached
Done when
"Trusted Intermediary Dashboard" is updated to say "View and add clients"

Precursor to: https://github.com/civiform/civiform/issues/3696


chore: upgrade packages

Codecov Report

Merging #21 (3906218) into main (acc709a) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 3906218 differs from pull request most recent head 95ddc27. Consider uploading reports for the commit 95ddc27 to get more accurate results

@@            Coverage Diff            @@
##              main       #21   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines          133       133
  Branches        19        19
=========================================
  Hits           133       133

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 d5572cc...95ddc27. Read the comment docs.


Add TargetInfo wrapper for sgx_target_info_t

Current dependencies on/for this PR:

main

PR #91

PR #86

PR #92

PR #103

PR #110   👈

This comment was auto-generated by Graphite.

Graphite Merge Job
Current status: ⏳ Queued to merge
This pull request is currently queued to be merged as part of a stack.
This comment was auto-generated by Graphite.

Job Reference: C6ZyZ0Ggec8V0ksW3mYN


ImportError on ignoring attribute from dask.utils when importing dask_jobqueue

Description:
When trying to use dask_jobqueue version 0.8.2 in an environment with Dask version 2023.6.0 (or also with version 2023.9.0), I encountered an ImportError. The traceback indicates that dask_jobqueue is trying to import the ignoring attribute from dask.utils, but this attribute doesn't seem present in the specified Dask versions.
Expected Behavior:
The dask_jobqueue module should be imported without any errors.
Actual Behavior:
Received the following error:
ImportError: cannot import name 'ignoring' from 'dask.utils' (/path/to/site-packages/dask/utils.py)
Minimal Complete Verifiable Example:
conda create --name dask_env python=3.9
conda activate dask_env
conda install dask=2023.6.0 -c conda-forge
conda install dask-jobqueue -c conda-forge

import dask-jobqueue

Additional context:
I've checked the meta.yaml for dask-jobqueue 0.8.2 and found that it specifies a dependency on dask-core >=2022.02.0. However, even after aligning with these versions, the error persists. I'd appreciate guidance on the compatible versions or a potential fix for this issue. Thanks a lot
Environment:

Dask version:  Tried both 2023.6.0 or 2023.9.0
Dask-jobqueue version: 0.8.2
Python version: 3.9.18
Conda version: 23.9.0
Operating System: Linux
Install method (conda, pip, source): conda-forge

Hi @stfnrnn,
I've follow the provided MCVE, but I cannot reproduce the issue. Everything is working fine for me.
Could you print the entire stacktrace?

Hi @guillaumeeb, thanks a lot for your reply! I can't reproduce the issue anymore, and it seems to be solved now. Thanks a lot for your time anyway. I am closing it now.


Text: Find some way to label the component

Originally added by @dlockhart:
Both aria-labelledby and aria-describedby won't work with web components and shadow DOM, because the IDs of those elements are out of scope.
2 potential solutions:

Wrap the custom element in a label:

<d2l-label text="label for input">
    <d2l-text-input></d2l-text-input>
</d2l-label>

Not sure that'll work, but if inside  it renders an actual  element, it might.

Make the label part of this component

Like this: <d2l-text-input label="label for input">. We'd then need to handle various different kinds of labels eventually -- above, beside, etc. Probably needs more thought around how this can be shared across many different kinds of inputs.

Original comment by @dbatiste:
Option 1 may work due to the browser doing some magic for labels. I'm not sure if this sort of approach would buy us anything for description though. Option 2 could work also for description by taking a description attribute and rendering an offscreen element inside the shadow-DOM, and doing the wire-up for aria-describedby.

This work is in progress in the Lit version, closing.


Boolean expression simplifier

What feature or new tool do you think should be added to DevToys?
A Boolean expression calculator which can simplify the given logical expression.

Capability
Priority

Accept a Boolean expression in programming (&&, ||, !) or text (AND, OR, NOT) notation.
Must

Support NAND and NOR operators (as logically complete).
Should

Support operator (A AND B) and function (Excel-like) notation (AND(A, B)).

Allow longer variable names (has_access, isAdmin), so it's possible to paste the code directly (and use the same var names in the output).

Output CNF and DNF forms, as well as NAND and NOR (see above).

Generate a truth table with all the variables and the result (2^vars rows).

Support additional notations for operators (such as math: ∧, ∨, ¬/~).
Could

Support additional notations for Boolean literals (true/false, T/F, 1/0, ⊤/⊥) in the truth table.

Output AND+NOT and OR+NOT forms.

Support prefix (Polish) and postfix (reverse Polish) notation.

Draw a Venn diagram (for small numbers of variables - intersecting circles can be used only with up to 3 vars; can be slighly extended with ellipses).

Support additional logical operators (XOR, IMPLIES and so on) - both in input and output (if chosen).

Why do you think this is needed?
Often used by programmers (or actually not used - hence inefficient code and ifs spanning multiple lines).
Solution/Idea
Input:
(a && b) || (a && c) || (!b && !c) (programming notation)
(a AND b) OR (a AND c) OR (NOT b AND NOT c) (text notation)
Output:
a || (!b && !c))
a OR (NOT b AND NOT c)
Truth table

a
b
c
result

0
0
0
1

0
0
1
0

0
1
0
0

0
1
1
0

1
0
0
1

1
0
1
1

1
1
0
1

1
1
1
1

Venn diagram:

Comments
Available as an online tool: Wolfram Alpha, dCode - it'd be handy to have such a tool offline.

Closing as no upvote/traction on this issue. This tool be made as an extension using our SDK: https://devtoys.app/doc


Prevent it being possible to close streams more than once and add logging

This change makes sure a stream cannot be closed more than once as the protocol states that they should only be closed once from each end.
In fact, closing the stream more than once can crash the nodejs version of the server at the moment: ssbc/muxrpc#49
Additionally, I've added more debug logging to log outgoing requests, stream close messages and include the request numbers in the log statements.

Can one of the admins verify this patch?

ok to test this

LGTM - pending tests.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Apache Tuweni/job/CI/157/


Improve sunburst chart for Anomaly Distribution

Given only 1 detector exists, the inside Index circle will have issue in following scenarios:

if Linked Label is configured for identifying index, label of Index circle will be invisible;
if Fill Label is configured for identifying index, label of it will be overlapped with outer Detector circle

Screenshot of 1st scenario:

Screenshot of 2nd scenario:

We think currently it is fine because sunburst chart does not make big difference if there is only 1 detector + 1 index. We will keep digging into this, and may open issue for elastic-chart to see if we are using it in a correct way or it is bug of the library.

we are also seeing the same issue: https://github.com/elastic/elastic-charts/issues/633

Opened issue to owner of elastic-charts: https://github.com/elastic/elastic-charts/issues/637

Test on 7.7, one detector looks like this

Closed by this PR: https://github.com/opendistro-for-elasticsearch/anomaly-detection-kibana-plugin/pull/260


Update pipeline.yml

The tools/ci/setup.sh command was being repeated in both the Build and Lint steps. To reduce redundancy and improve readability, this command has been moved to the shared step shared_step. This ensures the setup script is only executed once, rather than in each individual step.
The Docker image used for the build<PHONE_NUMBER>40.dkr.ecr.us-east-1.amazonaws.com/containers/node:current) has been moved to a variable (${DOCKER_IMAGE}). This makes the configuration more flexible, as you can now change the Docker image globally by simply modifying the variable value instead of updating it in multiple places. Additionally, a default value is provided, ensuring that the configuration remains functional even if the variable is not explicitly set.

🟡 Heimdall Review Status

Requirement
Status
More Info

Reviews

🟡
0/1

Denominator calculation

Show calculation

1 if user is bot
0

1 if user is external
0

From .codeflow.yml

1

Additional review requirements

Show calculation

Max
0

0

From CODEOWNERS

0

Global minimum
0

Max

1

1

1 if commit is unverified
0

Sum
1


add help && fix chaincode remove bug

Codecov Report

Merging #59 into release-rc4 will increase coverage by 0.42%.
The diff coverage is 84.00%.

@@                Coverage Diff                @@
##             release-rc4      #59      +/-   ##
=================================================
+ Coverage          59.57%   60.00%   +0.42%
- Complexity           302      306       +4
=================================================
  Files                 35       35
  Lines               2761     2770       +9
  Branches             199      199
=================================================
+ Hits                1645     1662      +17
+ Misses               977      969       -8
  Partials             139      139

Impacted Files
Coverage Δ
Complexity Δ

...a/com/webank/wecross/stub/fabric/FabricDriver.java
61.80% <ø> (ø)
30.00 <0.00> (ø)

.../webank/wecross/stub/fabric/FabricStubFactory.java
11.47% <0.00%> (-0.60%)
4.00 <0.00> (ø)

.../wecross/stub/fabric/ChaincodeResourceManager.java
85.71% <95.00%> (+11.97%)
25.00 <5.00> (+4.00)

...m/webank/wecross/stub/fabric/FabricConnection.java
55.14% <100.00%> (ø)
45.00 <1.00> (ø)

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 acd514f...eca2548. Read the comment docs.


add types for service serving cert signer controller

This adds a minimal set of config types for managing the service serving cert signer controller.  I've started them at alpha
/assign @smarterclayton
/assign @liggitt

updated group name to servicecertsigner.config.openshift.io

two nits, lgtm otherwsie

package and doc fixed.


Missing the "u" in code point literals

The unicode code point is missing the "u" character between the "" and the hex digits.

Migrated from BitBucket.


Clip tubes dev

Add ClipTubes module for TubeTk.
This module reads an Input .TRE file and determine if each vessel tube from the input file is contained in a 3D Box specified by user.
The 3D box is defined from the --boxCorner parameter which corresponds to a 3D position of the top left-hand corner of the box, and the --boxSize parameter which specifies the size of the box in each direction.
An Output .TRE file that contains all the tubes going through the box is returned.
The option --ClipTubes can be used to specify that tubes should be clipped according to the box, otherwise it will return the entire tube.

Modification done, just let me know if there is something else.

The last commit should be a bit better but some mistakes might stay there, just let me know.
Thanks

A few more comments, but generally looks MUCH better.  Thanks!

Is this ready for final review and possible merge?

Ok for me!
2015-09-01 17:22 GMT-04:00 Stephen R. Aylward<EMAIL_ADDRESS>
Is this ready for final review and possible merge?
—
Reply to this email directly or view it on GitHub
https://github.com/KitwareMedical/TubeTK/pull/455#issuecomment-136864889
.


Automatically download Maven archive

So that we dont have to keep doing it manually.

Fixed by #3


Model Training and backprop

Is training possible on this model - sapiens?
I download the checkpoint and loaded it with RobertaModel.from_pretrained; however, it is a Roberta hub instance.
how would I go about tokenizing a sequence and running the forward pass on it?

Hi @apratim-mishra inference code can be found here: https://github.com/Merck/Sapiens/blob/main/sapiens/roberta.py
As for training, we used fairseq-train script described here: https://fairseq.readthedocs.io/en/latest/command_line_tools.html
Please let me know if you need more info.

Hi @prihoda I am also trying to fine-tune sapiens and wanted to know if that is possible? I am trying to load the checkpoint with RobertaModel.from_pretrained as it is done in the inference code https://github.com/Merck/Sapiens/blob/main/sapiens/roberta.py. However, I get the following error.

Could you tell me how I should go about loading the model and tokenizing the sequence?


new problem

Hi i am using the example you provided and tried to invoke ctrl+w when i press ctrl+alt+s，but it turns out to be buggy...

problem solved.


test(pkg/cmd): migrate test-infra to testify for pkg/cmd

What problem does this PR solve?

Issue Number: close #2912
What is changed and how it works?
Check List
Tests

Unit test

Questions
No
Will it cause performance regression or break compatibility?
No
Do you need to update user documentation, design documentation or monitoring documentation?
No
Release note
`None`.

/run-all-tests

Codecov Report

Merging #5547 (8b21c78) into master (1f844e7) will decrease coverage by 0.0582%.
The diff coverage is n/a.

Flag
Coverage Δ

cdc
61.5412% <ø> (-0.0455%)
:arrow_down:

dm
51.9764% <ø> (-0.0666%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #5547        +/-   ##
================================================
- Coverage   56.2521%   56.1939%   -0.0583%
================================================
  Files           530        530
  Lines         69880      69867        -13
================================================
- Hits          39309      39261        -48
- Misses        26840      26866        +26
- Partials       3731       3740         +9

/merge

/merge

/run-verify


Number of shots in Fock and Gaussian spaces

Issue description
import strawberryfields as sf
from strawberryfields.ops import *
import numpy as np
sf.__version__
>> '0.12.1'

#### create random points

x1 = 1
x2 = 0

eng = sf.Engine(
    backend="fock",
    backend_options={"cutoff_dim": 8,'shots':5000}
)
dist = sf.Program(4)

with dist.context as q:
    Fock(1) |q[0]
    Vacuum() | q[1]
    Dgate(a=x1) | q[2]
    Dgate(a=x2) | q[3]
    BSgate() | (q[0],q[1])
    BSgate() | (q[2],q[3])
    CZgate(np.pi) | (q[1],q[3])
    BSgate() | (q[0],q[1])
    BSgate() | (q[2],q[3])
    MeasureFock() | q[0]
    MeasureFock() | q[1]

results = eng.run(dist)
print(results.samples)

>> [0, 0, None, None]

The code above is an implementation of this figure:

I just want to know if I’m correct with my code and also how I can interpret the outcome as stated in the paper. I also want to know why the number of the samples is just one and I set the shots to 5000
According to this discussion I am requesting an explanation for the number of shots in both the gaussian and fock spaces.
This is the paper I'm trying to implement

Thanks @kareem1925. This is a good spot for us to discuss any potential bugs in the SF code (i.e., if you're not seeing the right number of shots that you expect). We can't guarantee any support for research questions here though. For the benefit of future viewers, can you streamline your issue to focus up-front on the potential observed bug? Thanks :smile:

Hi @kareem1925, the number of shots to run a program with are runtime options, so they are passed in eng.run(), not when creating the backend:
results = eng.run(dist, run_options={"shots": 5000})

Unfortunately, the Fock backend does not currently support multiple shots! This is something we are working to support, and hopefully should have this available soon.

Closed in favour of #678.


[jvm-packages] delete all constraints from spark layer about obj and eval metrics

this will save headaches about syncing with other bindings and native layer
it depends on https://github.com/dmlc/rabit/pull/95

Does it have anything to do with: https://github.com/dmlc/xgboost/blob/7f0f96e2f208dee8abb8f0a552268880a3702a63/jvm-packages/xgboost4j-spark/src/main/scala/ml/dmlc/xgboost4j/scala/spark/params/LearningTaskParams.scala#L107 ?

yes, in future, we don’t have such headaches anymore, whatever supported in c++ would be supported in spark

That would be great!

during the development, I found more and more problems in different layers of xgboost/rabit regarding fault handling, I will separate this into multiple PRs addressing them one by one

Codecov Report

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

@@           Coverage Diff           @@
##           master    #4560   +/-   ##
=======================================
  Coverage   79.42%   79.42%
=======================================
  Files          10       10
  Lines        1735     1735
=======================================
  Hits         1378     1378
  Misses        357      357

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 a2042b6...7c97e04. Read the comment docs.

@sperlingxx can you help to review this?

@CodingCat I'm grad to, and I'll review this tomorrow.

LGTM

thanks for the review!


relative pos embedding errs out with "IndexError: tensors used as indices must be long, byte or bool tensors"

Very big thanks for making this implementation!
I just upgraded to the relative pos embedding update from an hour ago and in trying to train get this type error.
---> 32         y_pred = model(images)
     33         #print(f" y_pred = {y_pred}")
     34         #print(f" y_pred shape = {y_pred.shape}")

~\anaconda3\envs\fastai2\lib\site-packages\torch\nn\modules\module.py in _call_impl(self, *input, **kwargs)
    725             result = self._slow_forward(*input, **kwargs)
    726         else:
--> 727             result = self.forward(*input, **kwargs)
    728         for hook in itertools.chain(
    729                 _global_forward_hooks.values(),

~\cdetr\cdetr_utils\transformer\swin_transformer.py in forward(self, img)
    229
    230     def forward(self, img):
--> 231         x = self.stage1(img)
    232         x = self.stage2(x)
    233         x = self.stage3(x)

~\anaconda3\envs\fastai2\lib\site-packages\torch\nn\modules\module.py in _call_impl(self, *input, **kwargs)
    725             result = self._slow_forward(*input, **kwargs)
    726         else:
--> 727             result = self.forward(*input, **kwargs)
    728         for hook in itertools.chain(
    729                 _global_forward_hooks.values(),

~\cdetr\cdetr_utils\transformer\swin_transformer.py in forward(self, x)
    189         x = self.patch_partition(x)
    190         for regular_block, shifted_block in self.layers:
--> 191             x = regular_block(x)
    192             x = shifted_block(x)
    193         return x.permute(0, 3, 1, 2)

~\anaconda3\envs\fastai2\lib\site-packages\torch\nn\modules\module.py in _call_impl(self, *input, **kwargs)
    725             result = self._slow_forward(*input, **kwargs)
    726         else:
--> 727             result = self.forward(*input, **kwargs)
    728         for hook in itertools.chain(
    729                 _global_forward_hooks.values(),

~\cdetr\cdetr_utils\transformer\swin_transformer.py in forward(self, x)
    148
    149     def forward(self, x):
--> 150         x = self.attention_block(x)
    151         x = self.mlp_block(x)
    152         return x

~\anaconda3\envs\fastai2\lib\site-packages\torch\nn\modules\module.py in _call_impl(self, *input, **kwargs)
    725             result = self._slow_forward(*input, **kwargs)
    726         else:
--> 727             result = self.forward(*input, **kwargs)
    728         for hook in itertools.chain(
    729                 _global_forward_hooks.values(),

~\cdetr\cdetr_utils\transformer\swin_transformer.py in forward(self, x, **kwargs)
     21
     22     def forward(self, x, **kwargs):
---> 23         return self.fn(x, **kwargs) + x
     24
     25

~\anaconda3\envs\fastai2\lib\site-packages\torch\nn\modules\module.py in _call_impl(self, *input, **kwargs)
    725             result = self._slow_forward(*input, **kwargs)
    726         else:
--> 727             result = self.forward(*input, **kwargs)
    728         for hook in itertools.chain(
    729                 _global_forward_hooks.values(),

~\cdetr\cdetr_utils\transformer\swin_transformer.py in forward(self, x, **kwargs)
     31
     32     def forward(self, x, **kwargs):
---> 33         return self.fn(self.norm(x), **kwargs)
     34
     35

~\anaconda3\envs\fastai2\lib\site-packages\torch\nn\modules\module.py in _call_impl(self, *input, **kwargs)
    725             result = self._slow_forward(*input, **kwargs)
    726         else:
--> 727             result = self.forward(*input, **kwargs)
    728         for hook in itertools.chain(
    729                 _global_forward_hooks.values(),

~\cdetr\cdetr_utils\transformer\swin_transformer.py in forward(self, x)
    116
    117         if self.relative_pos_embedding:
--> 118             dots += self.pos_embedding[self.relative_indices[:, :, 0], self.relative_indices[:, :, 1]]
    119         else:
    120             dots += self.pos_embedding

IndexError: tensors used as indices must be long, byte or bool tensors

Thank you very much for reporting the error! What torch and numpy version are you using and does running the example also not work?

Thanks for the fast reply.
1 - The example code works fine for a)regular embedding and b)with my added init code.
2 - The example code fails with same error for a)using relative pos embedding and b)with my added init code.
*I wanted to confirm my init wasnt' somehow messing up the embedding.
Here's what I ran (with a quad sample of T/F for using relative pos embedding and init:

versions:
np = 1.18.3
torch = 1.7.1
These might be older so let me upgrade as possible fix.

Alright strange for me it does also work with those numpy and torch versions. What python version do you use?

Hi - it now works for me after upgrading numpy to 1.19:

for python version I have:

Note that I am on Win10 - not sure if that would affect things but since most are on linux, it could be an issue.
Anyway, it is fixed with the upgrade to numpy 1.19 so I think if people hit this, upgrading numpy would be the quickest resolution.
Thanks again both for making the swin_impl and for the fast help on this issue.
I'll test out training with the relative pos embedding next :)

Perfect, thank you again for reporting this issue. Have fun! :)

I also got this err with torch 1.8.1 and numpy 1.19.2.
I tried to change the 119 of swim_transformer.py to
dots += self.pos_embedding[self.relative_indices[:, :, 0].type(torch.long), self.relative_indices[:, :, 1].type(torch.long)]
Finally, the test code run.
I want to know if this fix will let the result from this net decay?
Forgive my poor expression. Thank you.


chore: translation error in fr

Definition of Ready

[ ] I am happy with the code
[ ] Short description of the feature/issue is added in the pr description
[ ] PR is linked to the corresponding user story
[ ] Acceptance criteria are met
[ ] All open todos and follow ups are defined in a new ticket and justified
[ ] Deviations from the acceptance criteria and design are agreed with the PO and documented.
[ ] No debug or dead code
[ ] My code has no repetitions
[ ] Critical parts are tested automatically
[ ] Where possible E2E tests are implemented
[ ] Documentation/examples are up-to-date
[ ] All non-functional requirements are met
[ ] Functionality of the acceptance criteria is checked manually on the dev system.

@hifabienne this fixes a translation error in french reported to our support.


Errors after updateing to 4.1.4

After updating to version 4.1.4, I encountered compilation errors in my code. Here's the specific error message:
Error: The argument type 'String' can't be assigned to the parameter type 'List?'.

Hello, Yes there are breaking changes in it in favor of the new syntax of OpenAI for chat completions to support GPT 4 Vision, check this.
The API still process the old requests as normal, as text-content-based messages only, However, so you can upload images to the models as content as well to analyze it, check the new implementation docs.
I guess it was a mistake for me now set the version to 5.0.0 because this is a breaking change.

After the latest update, you have to write content as below:
content: [
      OpenAIChatCompletionChoiceMessageContentItemModel.text(" a string")
    ],

Oh OK. Thank you!


With the new install dirs, you can't bring in an existing project any more

You need to be able to clone down an existing clevis project and run
clevis init
npm i
clevis test full
npm start

and everything should work
It is failing to install both mocha and react scripts:

Removing package-lock.json before running npm install fixes it.
Were you using the linked clevis in the computer that pushed package-lock.json?

damn, getting babel issues now. Going to give up tonight and try tomorrow.
So you can clone down https://github.com/austintgriffith/social-login.git, delete the package-lock.json, clevis init, npm i, and npm start works for you?
Maybe I have something wrong on my end. Will attack it in the morning.

Okay I think I found the problem.
Dapparatus is packaged up with a version of babel that CRA warns about, but it isn't necessarily a problem.
You can just add "SKIP_PREFLIGHT_CHECK=true" to a ".env" file and it runs fine. I will add this right into the clevis init so this is avoided in the future.

Thanks! I'll add this


enable libp2p metrics for gossip data collection

Export existing metrics
Add any additional metrics

No. of messages dropped from the queue
latency of message received at the OCaml side (to understand how long libp2p takes to process messages)

IPC latency (at minimum, libp2p_helper -> daemon direction)
pipe overflows
validation delays (min, max, avg) per msg type (mempool diffs x2, blocks)
counts of validation results (ignore, accept, reject) per msg type (mempool diffs x2, blocks)
validation timeouts
count of blocks received too late
RPC counts (in and out; this is implemented in release/1.2.0 already)
RPC successes/failures rate


Running GPU

How could I know that the model is using gpu? when I bert it is too slow, I used this to make sure that tensorflow is using gpu
check your gpu is available:
for tensorflow instance:
import tensorflow as tf
device_name = tf.test.gpu_device_name()
if device_name != '/device:GPU:0':
raise SystemError('GPU device not found')
print('Found GPU at: {}'.format(device_name))
But it seems that when I build the model using GPU or CPU it is same speed.
Is there any other way to make sure of that?

You can use nvidia-smi to examine GPU usage.


can not find librbary

node:electron/js2c/renderer_init:2 Error: Failed to load shared library: libgdcmMSFF.so.3.0

Not enough information. Is this a system-wide library? Where do the so file live?
If it lives in the current working directory, it won't work unless you ask for it with koffi.load('./libgdcmMSFF.so.3.0'), at least not on POSIX systems.
In short, and to simplify, unless the library lives in a system directory, you need to specify the explicit path.

I use it on an arm64 computer(electron 28.3.1, node 16.20.1) and then I got this error
`
/home/uos/Desktop/app/dll/index.js:17 init rectification error Error: Failed to load shared library: libgdcmMSFF.so.3.0: Cannot open shared object file: There is no file or directory
at obj.load (/home/uos/Desktop/app/ffi/index.js:480:27)
at Object. (/home/uos/Desktop/app/dll/index.js:15:28)
at Object. (/home/uos/Desktop/app/dll/index.js:185:3)
at Module._compile (node:internal/modules/cjs/loader:1271:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at Module._load (node:internal/modules/cjs/loader:967:12)
at c._load (node:electron/js2c/node_init:2:13672)
at s._load (node:electron/js2c/renderer_init:2:30758)
at Module.require (node:internal/modules/cjs/loader:1150:19)
node:electron/js2c/renderer_init:2 TypeError: Cannot read properties of undefined (reading 'func')
at Object. (/home/uos/Desktop/app/dll/index.js:20:45)
at Object. (/home/uos/Desktop/app/dll/index.js:185:3)
at Module._compile (node:internal/modules/cjs/loader:1271:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at Module._load (node:internal/modules/cjs/loader:967:12)
at c._load (node:electron/js2c/node_init:2:13672)
at s._load (node:electron/js2c/renderer_init:2:30758)
at Module.require (node:internal/modules/cjs/loader:1150:19)
at require (node:internal/modules/cjs/helpers:119:18)
`

There error message says it all, it's not finding the library (libgdcmMSFF.so.3.0) you want to load: "Cannot open shared object file: There is no file or directory".
Is it installed somewhere?

I'm not sure, because it works fine on my amd64 computer. I want to make sure that koffi is relying on this so file

I don't know where libgdcmMSFF.so.3.0 comes from (was it installed by the OS? by a package manager? did you build it yourself? did you download it?).
Native shared libraries are architecture-specific. You can't load an x86_64 shared library on an ARM64 platform. You need an ARM64 build of libgdcmMSFF.so.


paper-icon-button is not working

Hello, @alchapone . I'm creating  a rails application with this gem.
I used paper-icon-button element, then, the icon(iron-icon) was not displayed.
Environments
ruby 2.2.0p0
rails 4.2.4
polymer-rails 1.1.0
polymer-elements-rails 1.0.1
sprockets 2.12.4
sprockets-rails 2.3.3

Rails error message and screenshot is below.

Started GET "/welcome/index" for <IP_ADDRESS> at 2015-09-08 21:00:59 +0000
Cannot render console from <IP_ADDRESS>! Allowed networks: <IP_ADDRESS>, ::1, <IP_ADDRESS>/<IP_ADDRESS>
Processing by WelcomeController#index as HTML
  Rendered welcome/index.html.erb within layouts/application (0.8ms)
Completed 200 OK in 734ms (Views: 732.7ms | ActiveRecord: 0.0ms)

Started GET "/assets/welcome-2be930bcbfd3c3e00190e2193dda5c7c.css?body=1" for <IP_ADDRESS> at 2015-09-08 21:01:00 +0000
Cannot render console from <IP_ADDRESS>! Allowed networks: <IP_ADDRESS>, ::1, <IP_ADDRESS>/<IP_ADDRESS>

Started GET "/assets/application-d1a275ef14480a2e8dbf7788b244d24c.css?body=1" for <IP_ADDRESS> at 2015-09-08 21:01:00 +0000
Cannot render console from <IP_ADDRESS>! Allowed networks: <IP_ADDRESS>, ::1, <IP_ADDRESS>/<IP_ADDRESS>

Started GET "/assets/welcome-0bc27e2168727cafa1252f703137df60.js?body=1" for <IP_ADDRESS> at 2015-09-08 21:01:00 +0000
Cannot render console from <IP_ADDRESS>! Allowed networks: <IP_ADDRESS>, ::1, <IP_ADDRESS>/<IP_ADDRESS>

Started GET "/assets/application-6309bddf815d3a7ea869a200dbad199c.js?body=1" for <IP_ADDRESS> at 2015-09-08 21:01:00 +0000
Cannot render console from <IP_ADDRESS>! Allowed networks: <IP_ADDRESS>, ::1, <IP_ADDRESS>/<IP_ADDRESS>

Started GET "/assets/%5B%5Bsrc%5D%5D" for <IP_ADDRESS> at 2015-09-08 21:01:00 +0000
Cannot render console from <IP_ADDRESS>! Allowed networks: <IP_ADDRESS>, ::1, <IP_ADDRESS>/<IP_ADDRESS>

ActionController::RoutingError (No route matches [GET] "/assets/%5B%5Bsrc%5D%5D"):
  actionpack (4.2.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
  web-console (2.2.1) lib/web_console/middleware.rb:31:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  railties (4.2.4) lib/rails/rack/logger.rb:38:in `call_app'
  railties (4.2.4) lib/rails/rack/logger.rb:20:in `block in call'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:26:in `tagged'
  activesupport (4.2.4) lib/active_support/tagged_logging.rb:68:in `tagged'
  railties (4.2.4) lib/rails/rack/logger.rb:20:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
  rack (1.6.4) lib/rack/methodoverride.rb:22:in `call'
  rack (1.6.4) lib/rack/runtime.rb:18:in `call'
  activesupport (4.2.4) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
  rack (1.6.4) lib/rack/lock.rb:17:in `call'
  actionpack (4.2.4) lib/action_dispatch/middleware/static.rb:116:in `call'
  rack (1.6.4) lib/rack/sendfile.rb:113:in `call'
  railties (4.2.4) lib/rails/engine.rb:518:in `call'
  railties (4.2.4) lib/rails/application.rb:165:in `call'
  rack (1.6.4) lib/rack/lock.rb:17:in `call'
  rack (1.6.4) lib/rack/content_length.rb:15:in `call'
  rack (1.6.4) lib/rack/handler/webrick.rb:88:in `service'
  /home/vagrant/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
  /home/vagrant/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
  /home/vagrant/.rbenv/versions/2.2.0/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'

  Rendered /home/vagrant/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms)
  Rendered /home/vagrant/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_route.html.erb (1.0ms)
  Rendered /home/vagrant/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/routes/_table.html.erb (21.6ms)
  Rendered /home/vagrant/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (6.0ms)
  Rendered /home/vagrant/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/templates/rescues/routing_error.html.erb within rescues/layout (65.7ms)

Hi @pinkienort same problem here when I update my repo
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.3
Installing minitest 5.8.2 (was 5.7.0)
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.1.6
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.6
Using rack 1.5.5
Using rack-test 0.6.3
Using actionpack 4.1.6
Installing mime-types 2.6.2 (was 2.6.1)
Using mail 2.6.3
Using actionmailer 4.1.6
Using activemodel 4.1.6
Using arel <IP_ADDRESS>40414130214
Using activerecord 4.1.6
Using descendants_tracker 0.0.4
Using ice_nine 0.11.1
Using axiom-types 0.1.1
Using bcrypt 3.1.10
Using bson 3.2.6
Using bundler 1.7.6
Using carrierwave 0.10.0
Using coderay 1.1.0
Using coercible 1.0.0
Using coffee-script-source <IP_ADDRESS>
Installing execjs 2.6.0 (was 2.5.2)
Using coffee-script 2.4.1
Using thor 0.19.1
Using railties 4.1.6
Using coffee-rails 4.0.1
Using orm_adapter 0.5.0
Using responders 1.1.2
Using warden 1.2.3
Installing devise 3.5.2 (was 3.5.1)
Using multi_json 1.11.2
Using elasticsearch-api 1.0.14
Using multipart-post 2.0.0
Using faraday 0.9.2
Using elasticsearch-transport 1.0.14
Using elasticsearch 1.0.14
Installing hashie 3.4.3 (was 3.4.2)
Using elasticsearch-model 0.1.8
Using equalizer 0.0.11
Using virtus 1.0.5
Using elasticsearch-persistence 0.1.8
Installing font-awesome-rails <IP_ADDRESS> (was <IP_ADDRESS>)
Using tilt 1.4.1
Installing haml 4.0.7 (was 4.0.6)
Using sass 3.2.19
Using hanna-bootstrap 0.0.5
Using hike 1.2.3
Installing jbuilder 2.3.2 (was 2.3.1)
Installing jquery-rails 3.1.4 (was 3.1.3)
Installing mini_magick 4.3.6 (was 4.2.7)
Using mini_portile 0.6.2
Using mongo 2.1.2
Using origin 2.1.1
Installing mongoid 5.0.1 (was 5.0.0)
Using mysql2 0.4.1
Using nokogiri <IP_ADDRESS>
Installing nokogumbo 1.4.5 (was 1.4.2)
Using sprockets 2.12.4
Installing sprockets-rails 2.3.3 (was 2.3.2)
Using rails 4.1.6
Installing polymer-rails 1.0.8 (was 1.0.5)
Using rdoc 4.2.0
Using sass-rails 4.0.5
Using sdoc 0.4.1
Installing spring 1.4.0 (was 1.3.6)
Installing sqlite3 1.3.11 (was 1.3.10)
Using turbolinks 2.5.3
Installing uglifier 2.7.2 (was 2.7.1)

I'm having the same issue as well. I did some digging and here's what I've found.
I am currently using paper-tabs, which has a dependency on paper-icon button. Within paper-icon-button.html is the following line:
<iron-icon id="icon" src="[[src]]" icon="[[icon]]" alt$="[[alt]]"></iron-icon>

it seems that rails is converting it from the above to this:
<iron-icon id="icon" src="%5B%5Bsrc%5D%5D" icon="[[icon]]"></iron-icon>

I'm trying to figure out how to fix it in my own project atm. But if anyone has any info on how this can be prevented, please post.

Hi @tden012 and @pinkienort ! A poor solution until the @alchapone solve the problem is inject this code in your project for exemple. Solved, however the solution is aesthetics
paper-icon-button * img{
  display:none;
}
paper-fab * img{
  display: none;
}

Thanks @glaucomunsberg, I'll give it a go :-)

Having the same problem.  Is it a rails problem or a polymer problem?

@agnewtj I believe that is a polymer-elements-rails problem 🙂

I think the problem is inside Sprockets.  I traced Sprockets code using 'rake assets:precompile'.   Nokogiri is called many times, apparently to re-code links.  Nokogiri seems to recognize "src=" as a special attribute, and it appears to escape its value.  Although I haven't located the spot where it happens.
As a workaround, I hacked paper-icon-button.html inside this gem, changing 'src' to 'isrc':
(line 110)
and hacked iron-icon.html:
(line 137)         isrc: {
(line 157)        return this.icon || !this.isrc;
(line 177)           this._img.src = this.isrc;
Any Sprockets experts out there?  I could use a pointer or a hint to track down the bug and devise a permanent fix.

@agnewtj I suppose that it's a good way, @alchapone what you think about that?

I've tracked down the bug further.  Here's a more sensible workaround.  It's a patch to polymer-rails:
In polymer-rails/lib/polymer-rails/xml_adapters/nokogiri.rb, line 44, change:
          doc.css("head,body").children.to_html(encoding: ENCODING).lstrip
to:
          doc.css("head,body").children.to_html(encoding: ENCODING).lstrip.gsub(/%5B%5B/,'[[').gsub(/%5D%5D/,']]')
This seems to be the simplest patch until an upstream fix can be made to Sprockets or Nokogiri.


Model diff with Wavtokenizer

I think wavtokenizer uses non causal encodec encoder but simvq causal

I follow the configuration of EnCodec, which utilizes causal=True to support streaming encoding. Based on empirical evidence, non-causal performs worse than causal. Consequently, if you opt to set causal=False, the model may achieve better performance.

Another difference is that the released wavtokenizer checkpoints are not trained with EMA. I sent the PR for EMA, but I don't think they used it.
Dont take me wrong just pointing out differences for help

yet another note, I think in the GAN literature EMA is only being applied to the generator but I see SimVQ uses EMA for discriminators too. It might improve your results.

In wavtokenizer, normalization is done as follows:
    #gain = np.random.uniform(-1, -6) if self.NAME == "train" else -3
    #waveform, _ = torchaudio.sox_effects.apply_effects_tensor(waveform, self.sample_rate, [["norm", f"{gain:.2f}"]])

However, in this work, it changed to:
if self.audio_normalize:
    mono = x.mean(dim=1, keepdim=True)
    volume = mono.pow(2).mean(dim=2, keepdim=True).sqrt()
    scale = 1e-8 + volume
    x = x / scale
    scale = scale.view(-1, 1)
else:
    scale = None

Could you explain the considerations behind this change? Has there been a comparison to determine which method is better?


chore: impl default for identity

Checklist

[x] I have linked to any relevant issues.
[x] I have updated the documentation.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] I have added necessary labels.
[x] I have done my best to ensure that my PR adheres to the Fuel Labs Code Review Standards.
[ ] I have requested a review from the relevant team or maintainers.

Description

I need to #[derive(Default)] for all types used by the indexer. Everything except Identity is working so far. I don't really care what it defaults to, just need a default for it.

@FuelLabs/sdk-rust I don't know about you all but I'm wary of giving default a meaning for an Identity. On the other hand, I totally understand the need for the derivability.

Also, we are already pretty much doing this for AssetId so maybe it makes sense, just have to document that default in our context means null.

Also, Address and ContractId are defaultable to 0.
I'd go ahead with the suggestion unless the rest of the team opposes it. Don't see somebody leaving the default value for the identity by mistake.


RuntimeWarning: Mean of empty slice

installed via python_3/3.5.0
Input file is the working directory same as the reads file, contigfile and refseqfa file
my command:
python3 $tooldir/ragoo.py  -t $nthrd  -R $reads -T corr -m $minimap2dir $contigfile $refseqfa
error:
on May 18 12:26:53 2020 --- Misassembly correction has been turned on. This automatically inactivates chimeric contig correction.
Mon May 18 12:26:53 2020 --- Reading alignments
Mon May 18 12:26:53 2020 --- Aligning raw reads to contigs
Mon May 18 12:26:53 2020 --- Computing contig coverage
/software/7/apps/python_3/3.5.0/lib/python3.5/site-packages/numpy/core/fromnumeric.py:2957: RuntimeWarning: Mean of empty slice.
out=out, **kwargs)
/software/7/apps/python_3/3.5.0/lib/python3.5/site-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars
ret = ret.dtype.type(ret / rcount)
Mon May 18 12:27:17 2020 --- Assigning contigs
Mon May 18 12:27:17 2020 --- Ordering and orienting contigs
Mon May 18 12:27:17 2020 --- Creating pseudomolecules
Mon May 18 12:27:26 2020 --- goodbye
Question:

the parameter "-m " should use the path or path/miniapp2. I tried both, and get the same error
What cause the  error information? The memory and threads are enough.
Thanks.

Hi there,
What do you PAF intermediate files look like? Are they empty?
Thanks

Yes.
Ths PAF file is empty.
Xuewen

From: Michael Alonge<EMAIL_ADDRESS>Sent: Tuesday, May 19, 2020 11:09 AM
To: malonge/RaGOO<EMAIL_ADDRESS>Cc: Xuewen Wang<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [malonge/RaGOO] RuntimeWarning: Mean of empty slice (#65)
[EXTERNAL SENDER - PROCEED CAUTIOUSLY]
Hi there,
What do you PAF intermediate files look like? Are they empty?
Thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/malonge/RaGOO/issues/65#issuecomment-630884259, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGHDDYMFLBHEXNKVDDTYITTRSKOKNANCNFSM4NEJGSDQ.

This might be a simple fix: RaGOO will not overwrite existing intermediate files in order to save on compute. Please try deleting those files (if not the whole output directory just to be safe) and re-run.
Thanks

Michael,
Thank a lot. I am trying after deleting previous generated files. Now it seems working.
Xuewen

From: Michael Alonge<EMAIL_ADDRESS>Sent: Tuesday, May 19, 2020 11:23 AM
To: malonge/RaGOO<EMAIL_ADDRESS>Cc: Xuewen Wang<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [malonge/RaGOO] RuntimeWarning: Mean of empty slice (#65)
[EXTERNAL SENDER - PROCEED CAUTIOUSLY]
This might be a simple fix: RaGOO will not overwrite existing intermediate files in order to save on compute. Please try deleting those files (if not the whole output directory just to be safe) and re-run.
Thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/malonge/RaGOO/issues/65#issuecomment-630894658, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGHDDYMOKUGNTPKWYPMFUEDRSKQAJANCNFSM4NEJGSDQ.

great - I will close the issue for now, but please reopen if any problems arise.
Thanks


Proper Cookie handling

Proposed design: https://tailwindflex.com/@sophia-baker/cookie-consent
Idea how to implement: https://webreaper.dev/posts/google-tag-manager-cookie-consent/
Google Analytics explained:
https://stackoverflow.com/questions/74502762/code-to-disable-google-analytics-adwords-cookie-until-user-confirms-they-accep
https://developers.google.com/tag-platform/security/guides/consent?consentmode=advanced#gtag.js_1

Use https://www.cookiepolicygenerator.com/cookie-policy-generator/ for a cookie policy

https://www.cookiepolicygenerator.com/live.php?token=3nUmBA4hG2L5Bj6kr3VSTHetz6ncf7L6

Cookie Policy for Kaylumah

This is the Cookie Policy for Kaylumah, accessible from https://kaylumah.nl

What Are Cookies

As is common practice with almost all professional websites this site uses cookies, which are tiny files that are downloaded to your computer, to improve your experience. This page describes what information they gather, how we use it and why we sometimes need to store these cookies. We will also share how you can prevent these cookies from being stored however this may downgrade or 'break' certain elements of the sites functionality.

How We Use Cookies

We use cookies for a variety of reasons detailed below. Unfortunately in most cases there are no industry standard options for disabling cookies without completely disabling the functionality and features they add to this site. It is recommended that you leave on all cookies if you are not sure whether you need them or not in case they are used to provide a service that you use.

Disabling Cookies

You can prevent the setting of cookies by adjusting the settings on your browser (see your browser Help for how to do this). Be aware that disabling cookies will affect the functionality of this and many other websites that you visit. Disabling cookies will usually result in also disabling certain functionality and features of the this site. Therefore it is recommended that you do not disable cookies. This Cookies Policy was created with the help of the Cookies Policy Generator.

The Cookies We Set

Site preferences cookies

In order to provide you with a great experience on this site we provide the functionality to set your preferences for how this site runs when you use it. In order to remember your preferences we need to set cookies so that this information can be called whenever you interact with a page is affected by your preferences.

Third Party Cookies

In some special cases we also use cookies provided by trusted third parties. The following section details which third party cookies you might encounter through this site.

This site uses Google Analytics which is one of the most widespread and trusted analytics solution on the web for helping us to understand how you use the site and ways that we can improve your experience. These cookies may track things such as how long you spend on the site and the pages that you visit so we can continue to produce engaging content.

For more information on Google Analytics cookies, see the official Google Analytics page.

Third party analytics are used to track and measure usage of this site so that we can continue to produce engaging content. These cookies may track things such as how long you spend on the site or pages you visit which helps us to understand how we can improve the site for you.

The Google AdSense service we use to serve advertising uses a DoubleClick cookie to serve more relevant ads across the web and limit the number of times that a given ad is shown to you.

For more information on Google AdSense see the official Google AdSense privacy FAQ.

More Information

Hopefully that has clarified things for you and as was previously mentioned if there is something that you aren't sure whether you need or not it's usually safer to leave cookies enabled in case it does interact with one of the features you use on our site.

For more general information on cookies, please read the Cookies Policy article.

However if you are still looking for more information then you can contact us through one of our preferred contact methods:

Email<EMAIL_ADDRESS>

Other design options https://tailwindflex.com/search?q=cookies


Update entry level bcdb docs [unstable]

usable entry level docs on the usage of bcdb

verified
https://github.com/threefoldtech/jumpscaleX_core/tree/unstable/docs/BCDB


COMPRESS-505 : bug fix for random access of 7z

There are some problems in my PR about random access of 7z [#83](COMPRESS-342 random access of 7z files) :

I was thinking that the currentFolderInputStream can be repositioned by changing the position of the channel, which turns out to be impossible. This PR fixesit by reopening the currentFolderInputStream.

There are 2 ways to access the content of a 7z archive now : by sequential access(getNextEntry) and by random access(getInputStream). They may be used one after another. So there're some conditions we need to deal with :

2.1 In a random access, if currentEntryIndex == entryIndex && the entry has not been read yet :
This means the input stream of the entry we want has already been put in the deferredBlockStreams as the last array member. We SHOULD NOT build a new input stream for the entry again, because this will make same the existed stream in deferredBlockStreams be skipped. We should just do nothing cause the input stream is already in the deferredBlockStreams.
2.2 In a random access, if currentEntryIndex == entryIndex && the entry has already been read :
This means the entry we want has been read(maybe some of entry or all of the entry has been read, it does not matter). Then we should reopen the currentFolderInputStream and skip all the entries before the entry we want.
BTW : we could determine if the file has been read or not by comparing the bytesRemaining of the input stream(as a CRC32VerifyingInputStream) and the actual size of the file.
2.3 In a random access, if currentEntryIndex < entryIndex && the last entry in deferredBlockStreams has not been read :
The input streams whose index equals or less than currentEntryIndex has already been put into the
deferredBlockStreams. We could just add the remaining entries to the deferredBlockStreams.
2.4 In a random access, if currentEntryIndex < entryIndex && the last entry in deferredBlockStreams has already been read :
Like 2.2, we have no other choices but reopen the currentFolderInputStream and skip all the entries again.
2.5 In a random access, if currentEntryIndex > entryIndex :
This means the entry we want has already been read or skipped beforehand. We could only reopen the currentFolderInputStream and skip all the entries again.
In short, we should do nothing in 2.1, skip the remaining entries in 2.3, and reopen the currentFolderInputStream in 2.2/2.4/2.5. I have to admit this is a bit complicated, but I didn't find any other better ideas building the logic. :(
I made some refactoring and added some new comments to make the code more clear. The corresponding testcases are also included in this PR.

Coverage increased (+0.02%) to 87.017% when pulling 26b93a1afc45907e8b77c4a9017f54733f6d379e on PeterAlfreadLee:COMPRESS-505 into 1e8d131ec08ae418f0140d8166d452dff6739937 on apache:master.


remove cargo dependency and add GitReference enum to git.rs

Fixes #279
Signed-off-by: Matt Wilkinson<EMAIL_ADDRESS>

Looks good. Thanks!

Nice! I can see a path forward to no rustls 😄

OOTL: Why are we trying to drop rustls?

Whoops, typo, corrected!

Whoops, typo, corrected!

Ah lol. Had me confused!


Add set window topmost function.

This adds a function to set the window topmost.

This somehow breaks child windows for me. They don't refresh anymore at all (so one frame gets painted, but it then never changes)

This somehow breaks child windows for me. They don't refresh anymore at all (so one frame gets painted, but it then never changes)

What's your code look like? I test with example sub_windows. Modify the main window text, and then the sub-windows text changed too.

What's the status here? Are we still moving this forward @zemelLeong?
If so, then please rebase on master to resolve the merge conflicts.


Prevent Layout/Header from unmounting when page changes

At the moment, whenever the user navigates to a different page the entire Layout component (including the Header inside it) re-mounts.
It would be useful to, instead, only remount the div.content part of the Layout component. For example, when a transition from an expanded to a collapsed state of the Header is required.
Can this be accomplished with a quick tweak of the configuration/code somewhere, or would a more extensive re-write be required?

Take a look at https://github.com/kriasoft/react-starter-kit/pull/959

Thanks for the tip!
I understand the issue now -- each page's component (the corresponding index.js component) holds a Layout inside it, as opposed to the Layout holding the page component inside (i.e. the render is <index.js><Layout>{...page content...}</Layout></index.js> instead of, say, <Layout><index.js>{...page content...}</index.js></Layout>), which causes the re-mount of Layout since it's mounted inside a different index.js component for each page.


Standardise 'edit' cell dialogue with 'toNumber()' when parsing String to Number

Fixes #2163
The implementation for two ways of parsing String to Number
in cells is inconsistent:

1. 'Edit' cell dialogue and switch type to 'number':
Tries to parse String as a Double.

2. Using 'toNumber()' in cell transformations:
Tries to parse String as a Long, then parse String as a Double.

This PR modifies the 'edit' cell dialogue implementation
to standardise with the latter, with the aim of eliminating
inconsistent handling.

hi @thadguidry, may I ask if the implementation for this PR alright before I open this for reviews?

Hi @jamessspanggg thanks for drafting this PR !  We'll let @wetneb (our lead developer) review this and he'll respond to you here.

By the way, are you still going to school at http://www.comp.nus.edu.sg/  ?
What are your study / interest areas?

We would love to have you work on even more areas of OpenRefine!
I reviewed some of your previous commits across Github activity and your awesome!

Are you interested as a GSOC Summer Intern 2020 for us by chance?

Hi @thadguidry, thanks for the offer!

By the way, are you still going to school at http://www.comp.nus.edu.sg/  ?

Yes I am still a student in National University of Singapore.

What are your study / interest areas?

I am a third year Computer Science undergraduate, with Software Engineering and Artificial Intelligence as my focus area.

Are you interested as a GSOC Summer Intern 2020 for us by chance?

Yes I am interested! How so I go about applying for this? (when should I apply etc)

Hi @jamessspanggg, thanks a lot for both pull requests!
By marking them as drafts, is your intention to signal that you still want to work on these before we review them? Feel free to mark them as ready for review directly if you want feedback about them. "Review" might sound a bit intimidating but it should not: if there are any issues that is totally fine, you can fix them later on :)

Hi @wetneb, my bad, this PR is ready for review.

Thanks! It looks great to me. Would you consider writing a test to demonstrate the change? I imagine we could have a simple test which creates a project, applies this command on a cell, and checks that the cell value has the appropriate type afterwards, for instance.
Our test coverage is pretty bad so we encourage contributors to write tests for the features they introduce / bugs they fix so that we gradually build a better test suite :) If you are not familiar with this sort of testing, let me know if I can help.
Conserning the Google Summer of Code, all the infos are here: https://summerofcode.withgoogle.com/
We are in the process of applying as a project. The application period for students is later.
We have started writing down a few ideas for GSoC projects: https://github.com/OpenRefine/OpenRefine/wiki/GSoC-2020 Ideas

Thanks! It looks great to me. Would you consider writing a test to demonstrate the change?

Noted. Will do so when I'm more familiar with the codebase.

Conserning the Google Summer of Code, all the infos are here: https://summerofcode.withgoogle.com/
We are in the process of applying as a project. The application period for students is later.

Thanks for the info, will keep an eye for that!

Noted. Will do so when I'm more familiar with the codebase.
OK! So let's keep this PR open until then.

@wetneb I have added the necessary test cases. Let me know if they need changes.
Also, I noted that the front-end testing framework used is WindMill, which is no longer being maintained. Since the current front-end testing code is rather small, should we migrate to a more recent framework e.g. Cypress?


Changes made to chat extract task within benchmarking for 0.1.15

select(...) fixes a bug that we were working around. Patched to work better with 0.1.15 while being backwards compatible.

Codecov Report
Attention: Patch coverage is 0% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 56.80%. Comparing base (0f15e4b) to head (f285bb5).

Files
Patch %
Lines

guidance/bench/_powerlift.py
0.00%
2 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #846      +/-   ##
==========================================
- Coverage   56.94%   56.80%   -0.14%
==========================================
  Files          63       63
  Lines        4571     4568       -3
==========================================
- Hits         2603     2595       -8
- Misses       1968     1973       +5

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

I think the build errors here are unrelated to the PR? @riedgar-ms might have thoughts. Benchmarking PR changes look fine to me.


[AIRFLOW-1325][WIP]Airflow streaming log backed by ElasticSearch

Dear Airflow maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Airflow-1325 issues and references them in the PR title.

Description

[x] Here are some details about my PR, including screenshots of any UI changes:

Please refer to Airflow-1325 for more details. Highlights of this change include:

Enable ElasticSearch as Airflow logging backend
Real-time auto-tailing streaming log
Log syntax highlighting with Highlight.js and webworker (this will be included in the subsequent PR but not this one)

This PR will solve the problem of loading big log files that freeze the browser. Instead of loading entire log files when the page renders, webserver will read and render logs by batch.
Note in the future ElasticSearch reads functionality should be incorporated to use standard log handlers like S3TaskHandler in #2464.
Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:

Unit test for helper functions
Test on local environment with docker ElasticSearch, Logstash and Filebeat pipeline (v5.4.0)
Test on production environment with ElasticSearch and Logstash cluster

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Need to modify CI to exclude license checking for two static resource files.

Folks, can you please explain the relationship with https://github.com/apache/incubator-airflow/pull/2464 ? To me this seems to create technical debt upon technical debt.
What I would expect is something like:

https://github.com/apache/incubator-airflow/pull/2464 merged
Abstraction for streaming logging (is that required at all?)
Abstraction for streaming reading
ElasticsearchHandler

This PR builds on https://issues.apache.org/jira/browse/AIRFLOW-1325, which it should. It was deemed not the right approach and only there for transition. This builds upon the technical implementation of the transitional code without a clear path to #2464 .

@bolkedebruin Thinking about this specific PR a bit more I think you are right, this amount of tech debt is not acceptable and doesn't really fix any tech debt like the other PR was (adding retries to log path). By itself the tech debt is OK, but if others use the abstraction then it will create considerable amount of work later, and it's hard to justify why Elastic Search should be a special case. We have decided to fork internally and once we finish testing/releasing the fork we will try to iterate on the changes in open source (the logging abstraction first, and this PR second). The issue is Allison only has ~2.5 weeks left and I think it will be very tight if we try to merge the logging abstraction. Let's leave/close this PR for now and hopefully Allison or myself will revisit it and the logging abstraction PR shortly.

Codecov Report

Merging #2469 into master will decrease coverage by 0.22%.
The diff coverage is 35.22%.

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

@aoen Gotcha. That makes sense. I don't mind spending time on logging especially with the work @AllisonWang has already done, but not before the summer holidays probably. I do think we are pretty close to merging, because although it might not be perfect yet, it will give us the right starting point. Then we can start pushing ppl towards using it.
FWIW: I understand what you guys want to accomplish here, but imho you are tying too much of Elasticsearch into Airflow. That includes the try_number. If we would properly track start_dates in a task_instance_log table you could use a standard EFK/ELK stack and still be able to split on try_number in the user interface. This would reduce the complexity of implementing logging (and being compatible with everything else) while still reaching the same goals.

If I understood your point about try number correctly (i.e. you don't like the idea of adding it to the task_instance table), then I really, really feel try number is critical to Airflow regardless (we were talking about it with Alex/Max internally + having a separate table that stores all task instance tries append-only).
Here is the expert from my mailing list email in case you missed it.

The concept of "attempt" is needed regardless of logging, the way retries are stored/handled right now is not very sane.
- Old TI state is permanently deleted
- In the task logs you get "Try 1/6"... 2/6... 3/6... 1/6... 2/6 in logs which doesn't make sense (if it's the Nth time the task is running it should be logged as the Nth time). I recall other strange behaviors in these log lines too (maybe something like Try 4/3).
- The "primary key" for a task instance run is not complete (which is what Allison's logging change needs), you could say that TaskInstance should only keep track of the latest TaskInstance run, but we still want to store all tries for a task instance somewhere in the database, and we still need to key this off of "attempt".

I don't like start_dates, there aren't really guarantees around them being completely unique (which try_number gives us for free), they are a poor approximation for a unique key. Feel free to reply to the open source thread and we can discuss along with Max/Alex/other committers though.

Hi @aoen my main issue is that this information should not be stored in the task_instance table but rather in a task_instance_log table. Which is your append only table. My suggestion of a primary key on 'task_id, dag_id, execution_date, start_date' is the same as having a try_number in this table which you should be storing anyway.
So attempt/try_number yes, but not how it is done now. Storing it in the task_instance table doesn't make logically sense. If you want to store the count of attempt/tries it should be named total_tries/total_attempts if you don't want to do aggregation or a max(start_date)

Ah I see, I think I agree (need to see the complete new schema to be sure), but that's a little bit more involved. We should be able to easily migrate from the current version to this new one, we have still made forward progress (most of Allison's logic will stay).


Further lock contention reduction for CHTTP2

@nicolasnoble - this is the change that's waiting for your endpoint stuff :)

Testing arbitrary Jenkins comment string.

Whoa.

I never gave up on this :)
Going to be another few hours until this gets up to date, but still easier than rebuilding from scratch I think.

@soltanmm @nathanielmanistaatgoogle - can one of you take a look at this sometime in the next week (it's not urgent, but it's not not urgent either) and let me know what's going wrong for the Python tests? It's likely some behavior changed, and I'd like to isolate what and fix it.

Fixes #3302

Only flake is known.

LGTM


Add support for Typescript files. Closes #12

Add support for .ts, .tsx parsing and reporting.
A small refactor to allow integration of new parser cleanly
A few tests demonstrating parsing and error reporting in both .ts and .tsx files

Coverage decreased (-2.4%) to 96.815% when pulling 564aede222618aaa7d3f2df6c243f3357a1efb34 on gcazaciuc:typescript-support into c8414b7e9b0cb7a7660a171027df5a47910d334c on styled-components:master.

Coverage increased (+0.1%) to 99.324% when pulling f2602ca4cf44cfe2d01a93c1ee4f4a6d13628d7a on gcazaciuc:typescript-support into c8414b7e9b0cb7a7660a171027df5a47910d334c on styled-components:master.

Coverage increased (+0.1%) to 99.324% when pulling bb20de2aaa360f768d5f4f2c2457773f6e51a9b0 on gcazaciuc:typescript-support into c8414b7e9b0cb7a7660a171027df5a47910d334c on styled-components:master.

Coverage increased (+0.1%) to 99.324% when pulling bb20de2aaa360f768d5f4f2c2457773f6e51a9b0 on gcazaciuc:typescript-support into c8414b7e9b0cb7a7660a171027df5a47910d334c on styled-components:master.

Thanks for the pr, looks interesting. I'll try to take a look at it this week 👍

Other than typescript-eslint-parser not being in the dependencies it looks good to me 👍

I've updated the review. Thanks for pointing that out

Coverage increased (+0.1%) to 99.324% when pulling ee11c81ede6b66eb91261f0f20af5de34f1ddecf on gcazaciuc:typescript-support into c8414b7e9b0cb7a7660a171027df5a47910d334c on styled-components:master.


Jira bot edits mangle autolinked GitHub references

To reproduce: create a Pull Request that references both a Jira issue, as well as an autolinked reference to another PR. For example, if I create a PR with the following body:
This PR addresses [JIRA-001]. See also my_org/my_project#123

Then I end up with a PR body in which the Jira issue is correctly linked, but the reference to PR 123 in "my_project" is dropped (i.e., shows up as plain text, not a link).
If I would have created the PR body without the Jira issue link, the autolinked reference would have been just fine.

@onnodb Thanks for reporting this. I think I know what's causing that and will work on a fix soon.

Great, thanks a lot!

@onnodb check out #161 and let me know if you think about that proposed solution.

Fixed by #165!