add toml support

Not sure whether its possible to add comments into a config.json but adding toml support to allow adding comments easily.

Great, thanks for the PR! For the sake of consistency can you rename config.toml to config.toml.sample? It serves several purposes:

it explicitly says it's not some sort of a default file the user can use without any changes, just an example;
by default there will be no config at all so the behavior is fully configured from command line;
the sample file won't contain your real sensitive data that you might accidentally commit during development;
this file will only change when new options are added/modified and not when you might commit it with some changes during development.

I'll check the code later today though I'm pretty sure it should work fine and will not conflict with the JSON config.

Ok changed the config name, thanks for your response.
Toml parses the keys corrently when they are name the same way as the variable (params) thats why I did only add the toml tag for the ones it was necessary


Add RestClient for Java, Kotlin Coroutine and Scala

Motivation:
WebClient and WebClientPreparation has powerful and fluent features.
RESTful API is classic but it is still the dominant protocol for sharing
web resources.
The WebClient is able to handle not only REST responses but also
a stream response and a file response.
The API design of WebClient, in turn, is not optimized for REST API.
See #4250
Modifications:

Add RestClient for exchange RESTful APIs.

It assume that the response has a JSON body.

Add RestClientBuilder so as to fluently build a RestClient.
Refactor the intefaces for request preparations to accommodate
RestClientPreparation.

Method and path setters are extracted to RequestMethodSetters.
Query and path param setters are moved to PathAndQueryParamSetters
Added HttpMessageSetters for setting HttpMessage properties.

Add execute() extension methods for Kotlin Coroutine.
Add ScalaRestClient for Scala.

Tried to add extension methods using an implicit class but Scala
compiler failed to find the overloaded method which has a generic
parameter.

Provide a extension method to convert a WebClient to
ScalaRestClient.
Add restClient() to ServerExtension and ServerRule.

Result:
You can now easily send and receive RESTful APIs using RestClient

JavaRestClient restClient = RestClient.of("...");
CompletableFuture<ResponseEntity<Customer>> response =
    restClient.get("/api/v1/customers/{customerId}")
              .pathParam("customerId", "0000001")
              .execute(Customer.class);

Kotlinval restClient: RestClient = RestClient.of("...");
val response: ResponseEntity<Customer> =
   restClient
     .get("/api/v1/customers/{customerId}")
     .pathParam("customerId", "0000001")
     .execute<Customer>()  // a suspend function

Scalaval restClient: ScalaRestClient = ScalaRestClient("...")
val response: Future[ResponseEntity[Result]] =
  restClient.post("/api/v1/customers")
            .contentJson(new Customer(...))
            .execute[Result]()

Thanks for adding this nice feature, @ikhoon!


Refactor and create tests for LegacyBursarMigrationUtil

Purpose

Approach

TODOS and Open Questions

Learning

Pre-Merge Checklist:
Before merging this PR, please go through the following list and take appropriate actions.

Does this PR meet or exceed the expected quality standards?

[ ] Code coverage on new code is 80% or greater
[ ] Duplications on new code is 3% or less
[ ] Check logging
[ ] There are no major code smells or security issues

Does this introduce breaking changes?

[ ] Were any API paths or methods changed, added or removed?
[ ] Were there any schema changes?
[ ] Did any of the interface versions change?
[ ] Were permissions changed, added, or removed?
[ ] Are there new interface dependencies?
[ ] There are no breaking changes in this PR.

If there are breaking changes, please STOP and consider the following:

What other modules will these changes impact?
Do JIRAs exist to update the impacted modules?

[ ] If not, please create them
[ ] Do they contain the appropriate level of detail?  Which endpoints/schemas changed, etc.
[ ] Do they have all they appropriate links to blocked/related issues?

Are the JIRAs under active development?

[ ] If not, contact the project's PO and make sure they're aware of the urgency.

Do PRs exist for these changes?

[ ] If so, have they been approved?

Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment.  Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.

Hmm that's weird. Everything ran fine with Jacoco.

Hmm that's weird. Everything ran fine with Jacoco.

With or without -Dtest=? try without


DDIM sampler produces weird/non-coherent images

Might be due to default args we're using when creating the sampler

Link to example: https://github.com/NickLucche/stable-diffusion-nvidia-docker/issues/8#issuecomment-1242704221

fixed with https://github.com/NickLucche/stable-diffusion-nvidia-docker/commit/78b2c50b427efb67d2b04f44e73118acaa0a45c5#diff-8b284a9000a48c1f05058b897e9be2511ba66dea116da0dcc6d0764e418bf7ee

Thank you! :)


Adds link to configuring deployments in custom domains page

Closes https://github.com/wedeploy/wedeploy.com/issues/498

Hey Albert! Thanks for the PR. I'm thinking it might be better if we actually include a snippet in this section about setting custom domains in the wedeploy.json (maybe Setting in wedeploy.json). Then we could link to the configuring deployments page in that section. WDYT?


Add Github Actions to create Signadot Workspace

Just invoking curl for now. The output will be piped to a status next.

Argh, forgot to squash them.


Removed logging from pthread conditional variable

Removed logging from pthread conditional variable which completely drowned out any other logging and also had negative effects on the RMT due to sharing the same log system. Related to #1345 / TW#16842"
[bug/phtread_condititon_variable e02cfbe] Removed logging from pthread conditional variable which completely drowned out any other logging and also had negative effects on the RMT due to sharing the same log system. Related to #1345 / TW#16842

Closing as this commit was (maybe accidentally) added to #1443 and we can merge it there this time.


Overflow menu should have a max and min width and adjust to the text accordingly

Detailed description
Describe in detail the issue you're having. Is this a feature request (new component, new icon), a bug, or a general issue?
When text is is in different language then the component doesn't handle it well and wraps the text to next line.

Is this issue related to a specific component?

Overflow menu

What did you expect to happen? What happened instead? What would you like to see changed?

When text is is in different language then the component doesn't handle it well and wraps the text to next line. Instead of setting a fixed width there should be a max-width and a min-width and the overflow menu should expand to fit the text. If it doesn't fit in the max-width then wrap it.

What browser are you working in?

All browsers

What version of the Carbon Design System are you using?

"carbon-components": "8.9.2",
"carbon-components-react": "5.13.1"

Steps to reproduce the issue

Use Overflow menu with a text what is long

Additional information

Screenshots or code

Add labels
Please choose the appropriate label(s) from our existing label list to ensure that your issue is properly categorized. This will help us to better understand and address your issue.
bug

Agreed, the Overflow menu drawer should respond accordingly to the text instead of wrapping. We should set a max-width however, and then truncation occurs if the word is too long.

if this is a CSS issue should this be handled in the carbon-components repo since it contains the stylesheets?

Yes you are correct @emyarod, I'll move it over there

Issue moved to carbon-design-system/carbon-components #917 via ZenHub


Mystery com.mailgun.MyClass

There's an odd class in the root com.mailgun package called 'MyClass' in v1.1.2.
I think this ought not to be packaged in the distribution jar.

Thanks @jamesreprise for your finding, going to remove it

cleaned up a jar in the 1.1.3 version


Inconsistent Documentation!!

Hi @deepanshu414 I looked at your SecureCrypt and is really amazed by its simplicity and ease of use. However I came to know that the Documentation of the repository is not really convenient for other DEVs.
If it is okay with you I'd like to Contribute to your repo and make it look more professional.
Changes I'm planning to do:-

[ ] Add Proper detailed guides with points.
[ ] Explaining Each functions with an example code.
[ ] Add Images & Video guides for better understanding.
[ ] Writing better markdown to aid in visual steps.

I want to be assigned with this issue. Thank you for you time.
Your Friendly DEV
@yashksaini-coder

Hi @deepanshu414 I saw the good first issue label and although it is not initialized by you. Your documentation and code can use some modifications. Here's a short introduction of me:-
Full name : Samar Aanand
GitHub Profile Link : https://github.com/SamarAanand
Approach for this Project : 1) Create README Documentation 2) Display Badges 3) Refactor the code 4) Bug fixes 5) Error resolving
Also for your information I am also a GSSoC Contributor with 3 PRs merged.

Hi @deepanshu414 I saw the good first issue label and although it is not initialized by you. Your documentation and code can use some modifications. Here's a short introduction of me:-
Full name : Samar Aanand
GitHub Profile Link : https://github.com/SamarAanand
Approach for this Project : 1) Create README Documentation 2) Display Badges 3) Refactor the code 4) Bug fixes 5) Error resolving
Also for your information I am also a GSSoC Contributor with 3 PRs merged.
Since no one is currently assigned to this issue, I would like to contribute.
Do let me know.

@yashksaini-coder This is assigned to you


Add Hinge, Huber and LogCosh losses

Proposed changes
Add new loss functions: hinge_loss, huber_loss, and log_cosh_loss
Checklist
Put an x in the boxes that apply.

[x] I have read the CONTRIBUTING document
[x] I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have updated the necessary documentation (if needed)

You may want to see Awni's comments on my PR Triplet Loss:

Replacing mx.array with array
Maybe adding .. math:: section to each function for reports
Testing loss functions with other reduction styles

@emircanerol @awni Done :)

Thanks a ton for adding this! I will review soon!

This looks perfect. Could you please also add the losses to the docs ?

Done, also changed mx.log(2) to math.log(2) as @awni suggested :)

Perfect! I thnk this can be merged as soon as @angeloskath approves !


Remove markupsafe from dependencies

Description
What is the current behavior?
We might not need markupsafe package.
closes: #622
What is the new behavior?
remove it from pyprojects.py and try if our test cases pass without it.
Does this introduce a breaking change?
Nope
Checklist

[ ] All checks and tests in the CI should pass

The reason it was pinned on Airflow was: https://github.com/apache/airflow/commit/366c66b8f6eddc0d22028ef494c62bb757bd8b8b
Action items for you:

Identify how does this impact Airflow users -- which was the Airflow version when the upper bound on Airflow as lifted. how does that impact users with old Airflow version

@kaxil
Impact for users of Airflow - 2.2.3
This will impact the users of 2.2.3 but users can install airflow by using the following method
https://airflow.apache.org/docs/apache-airflow/stable/installation/installing-from-pypi.html#installation-tools
Impact for users of Airflow - 2.2.4
No impact
Affected Airflow version - 2.2.3
Fix Airflow version - 2.2.4rc1 / 2.2.4
History
Added in codebase
https://github.com/apache/airflow/pull/12417
Issue caused
version - 2.2.3
Lift off upper bound for MarkupSafe
https://github.com/apache/airflow/pull/20113
Issue Fixed
version - 2.2.4
Pin Markupsafe until we are able to upgrade Flask/Jinja
https://github.com/apache/airflow/pull/21664

Sounds good, feel free to merge it @utkarsharma2


support for persimmon / relu2 activation

Hi! thanks for the great work with the harness. I'm running into an issue evaluating models using the persimmon architecture using the harness. I also tried training a smaller model from random init, and the same thing happens with evaluating that. I believe this might be because of the sparse activations/ relu2 it uses?
Below is the error I get, you should be able to replicate using this colab notebook which uses a slightly slimmed down version https://huggingface.co/pszemraj/perSLIMmon-8b-base that is sharded for easier colab loading
2024-01-16:18:32:23,307 INFO     [utils.py:160] NumExpr defaulting to 2 threads.
2024-01-16:18:32:23,616 INFO     [config.py:58] PyTorch version 2.1.0+cu121 available.
2024-01-16:18:32:23,618 INFO     [config.py:108] JAX version 0.4.23 available.
2024-01-16:18:32:25,882 INFO     [__main__.py:156] Verbosity set to INFO
2024-01-16:18:32:30,344 WARNING  [__init__.py:194] Some tasks could not be loaded due to missing dependencies. Run with `--verbosity DEBUG` for full details.
/usr/local/lib/python3.10/dist-packages/datasets/load.py:1429: FutureWarning: The repository for hails/mmlu_no_train contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/hails/mmlu_no_train
You can avoid this message in future by passing the argument `trust_remote_code=True`.
Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.
  warnings.warn(
2024-01-16:18:33:00,798 WARNING  [__init__.py:194] Some tasks could not be loaded due to missing dependencies. Run with `--verbosity DEBUG` for full details.
2024-01-16:18:33:00,799 INFO     [__main__.py:229] Selected Tasks: ['hellaswag', 'lambada_openai']
2024-01-16:18:33:00,841 INFO     [huggingface.py:148] Using device 'cuda:0'
Loading checkpoint shards: 100% 6/6 [01:13<00:00, 12.27s/it]
2024-01-16:18:34:17,496 WARNING  [big_modeling.py:425] You shouldn't move a model when it is dispatched on multiple devices.
/usr/local/lib/python3.10/dist-packages/datasets/load.py:1429: FutureWarning: The repository for hellaswag contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/hellaswag
You can avoid this message in future by passing the argument `trust_remote_code=True`.
Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.
  warnings.warn(
2024-01-16:18:34:28,029 WARNING  [task.py:284] has_training_docs and has_validation_docs are False, using test_docs as fewshot_docs but this is not recommended.
2024-01-16:18:34:28,029 WARNING  [task.py:284] has_training_docs and has_validation_docs are False, using test_docs as fewshot_docs but this is not recommended.
2024-01-16:18:34:28,132 INFO     [task.py:337] Building contexts for task on rank 0...
2024-01-16:18:34:35,635 INFO     [task.py:337] Building contexts for task on rank 0...
2024-01-16:18:34:46,635 INFO     [evaluator.py:314] Running loglikelihood requests
  1% 393/45321 [05:48<10:26:47,  1.19it/s]Traceback (most recent call last):
  File "/usr/local/bin/lm_eval", line 8, in <module>
    sys.exit(cli_evaluate())
  File "/content/lm-evaluation-harness/lm_eval/__main__.py", line 231, in cli_evaluate
    results = evaluator.simple_evaluate(
  File "/content/lm-evaluation-harness/lm_eval/utils.py", line 415, in _wrapper
    return fn(*args, **kwargs)
  File "/content/lm-evaluation-harness/lm_eval/evaluator.py", line 150, in simple_evaluate
    results = evaluate(
  File "/content/lm-evaluation-harness/lm_eval/utils.py", line 415, in _wrapper
    return fn(*args, **kwargs)
  File "/content/lm-evaluation-harness/lm_eval/evaluator.py", line 325, in evaluate
    resps = getattr(lm, reqtype)(cloned_reqs)
  File "/content/lm-evaluation-harness/lm_eval/models/huggingface.py", line 774, in loglikelihood
    return self._loglikelihood_tokens(new_reqs)
  File "/content/lm-evaluation-harness/lm_eval/models/huggingface.py", line 909, in _loglikelihood_tokens
    assert len(continuation_enc) > 0
AssertionError
  1% 396/45321 [05:48<10:59:27,  1.14it/s]

let me know if any more info is required or what would need to be done to get this integrated!

Hi, thanks for opening this issue!
This is not related to relu^2 or the sparse activations, but rather seems to be something to do with tokenization (it looks like something is going wrong and actually, because there's an anomalously large token that might encompass both part of the context and the whole target/continuation, there are no tokens allocated to be the target.)
Would you be willing to print, when this error gets thrown, the following: context_enc, len(context_enc), continuation_enc, len(continuation_enc), self.tok_decode(context_enc), self.tok_decode(continuation_enc) ? You can quickly get back to it if you first run with --use_cache ./cachedb to save the preceding results.

Interesting! Thanks for clarifying that. So yeah I just forked it and added some print statements, and loaded the cachedb like you said. Here's what I get:
cachedb_rank0.zip
Does that help?
oading checkpoint shards: 100% 6/6 [01:37<00:00, 16.19s/it]
generation_config.json: 100% 124/124 [00:00<00:00, 477kB/s]
2024-01-16:22:33:59,769 WARNING  [big_modeling.py:425] You shouldn't move a model when it is dispatched on multiple devices.
tokenizer_config.json: 100% 789/789 [00:00<00:00, 3.07MB/s]
tokenizer.json: 100% 12.9M/12.9M [00:00<00:00, 45.0MB/s]
special_tokens_map.json: 100% 497/497 [00:00<00:00, 1.87MB/s]
Using cache at ./cachedb_rank0.db
/usr/local/lib/python3.10/dist-packages/datasets/load.py:1429: FutureWarning: The repository for hellaswag contains custom code which must be executed to correctly load the dataset. You can inspect the repository content at https://hf.co/datasets/hellaswag
You can avoid this message in future by passing the argument `trust_remote_code=True`.
Passing `trust_remote_code=True` will be mandatory to load this dataset from the next major release of `datasets`.
  warnings.warn(
Downloading builder script: 100% 4.36k/4.36k [00:00<00:00, 16.0MB/s]
Downloading metadata: 100% 2.53k/2.53k [00:00<00:00, 12.5MB/s]
Downloading readme: 100% 6.84k/6.84k [00:00<00:00, 21.9MB/s]
Downloading data: 47.5MB [00:00, 60.1MB/s]
Downloading data: 11.8MB [00:00, 44.4MB/s]
Downloading data: 12.2MB [00:00, 44.4MB/s]
Generating train split: 100% 39905/39905 [00:06<00:00, 6384.28 examples/s]
Generating test split: 100% 10003/10003 [00:02<00:00, 4620.00 examples/s]
Generating validation split: 100% 10042/10042 [00:01<00:00, 7387.91 examples/s]
Map: 100% 39905/39905 [00:07<00:00, 5254.35 examples/s]
Map: 100% 10042/10042 [00:02<00:00, 4970.72 examples/s]
Downloading data: 100% 1.16M/1.16M [00:00<00:00, 2.82MB/s]
Generating test split: 100% 5153/5153 [00:00<00:00, 351532.11 examples/s]
2024-01-16:22:34:34,945 WARNING  [task.py:284] has_training_docs and has_validation_docs are False, using test_docs as fewshot_docs but this is not recommended.
2024-01-16:22:34:34,945 WARNING  [task.py:284] has_training_docs and has_validation_docs are False, using test_docs as fewshot_docs but this is not recommended.
2024-01-16:22:34:35,044 INFO     [task.py:337] Building contexts for task on rank 0...
2024-01-16:22:34:43,565 INFO     [task.py:337] Building contexts for task on rank 0...
2024-01-16:22:34:56,484 INFO     [evaluator.py:314] Running loglikelihood requests
2024-01-16:22:34:56,502 INFO     [model.py:203] Loading 'loglikelihood' responses from cache './cachedb_rank0.db' where possible...
100% 45321/45321 [00:10<00:00, 4439.42it/s]
  0% 0/44925 [00:00<?, ?it/s]Context Encoded: [65067, 118745, 1469, 1385, 10234, 10159, 38355, 5797, 1375, 12874, 1374, 1312, 1306, 9419, 1392, 62, 1375, 5, 1374, 2365, 1386, 1428, 38355, 5797, 1496, 19565, 1429, 1374, 18, 5391, 1375, 12874, 1420, 38355, 5797, 1721, 19565, 4301, 1374, 2189, 1375, 1410, 38355, 5797, 2168, 8019, 156105, 16715, 5528, 19565, 1375]
Length of Context Encoded: 51
Continuation Encoded: [1003, 1437, 21468, 1413, 1374, 4, 9419, 1392, 118, 1374, 2365, 1386, 1428, 38355, 5797, 1388, 19565, 1429, 6860, 1374, 18, 5391, 1375, 55762, 3646, 1377, 10060, 5310, 1374, 2189, 1445, 25335, 32129, 12598, 1653, 1374, 1312, 1308, 9163, 38355, 5797, 1450, 28512, 1413, 1374, 4, 9419, 1392, 118, 1374, 2365, 1386, 1428, 38355, 5797, 1375]
Length of Continuation Encoded: 56
Decoded Context: Food and Entertaining: How to flavor soy milk. Heat ¼ cup (59.2 ml) of soy milk in the microwave for 15 seconds. Heat the soy milk in a microwave safe container. The soy milk should be steaming when you take it out of the microwave.
Decoded Continuation:  Stir in 1 cup (115 ml) of soy milk and microwave for an additional 15 seconds.
Context Encoded: [65067, 118745, 1469, 1385, 10234, 11757, 44667, 1374, 4432, 1453, 1375, 5883, 5592, 1376, 4659, 1374, 2008, 1489, 11408, 1376, 1374, 1740, 1374, 5, 1374, 1400, 50615, 38654, 1376, 10360, 1474, 1376, 1374, 4432, 1453, 7234, 1376, 1445, 17665, 1480, 1376, 1388, 1374, 34728, 12956, 1375, 1375, 29190, 9610, 1665, 3936, 3646, 15579, 1374, 4, 8068, 1376, 26465, 1450, 31630, 1420, 1374, 40673, 1375, 1375, 42573, 1602, 2867, 1374, 1422, 41544, 1376, 1450, 5448, 1445, 1374, 3193, 1403, 1376, 1388, 28512, 83952, 13398, 1375]
Length of Context Encoded: 84
Continuation Encoded: [1003, 1488, 101333, 1439, 24632, 1644, 12705, 15590, 3573, 1375, 1375, 12874, 27628, 3271, 48606, 11408, 1665, 3936, 2266, 1450, 3936, 3646, 1375]
Length of Continuation Encoded: 23
Decoded Context: Food and Entertaining: How to cook vegetarian chili. Take a large, heavy bottomed pot, add 2 tbsp olive oil, cumin, chili powder, oregano, and cayenne pepper.. Sauté over medium heat for about 1 minute, stirring to toast the spices.. Add the soya crumble, tofu or tvp, and stir well to coat.
Decoded Continuation:  There you go! Remove from the pan and let cool.. Heat vegetable oil in a large pot over medium low to medium heat.
Context Encoded: [65067, 118745, 1469, 1385, 10234, 19871, 33532, 25208, 3436, 6718, 1375, 1374, 8046, 1573, 3212, 1374, 3447, 1388, 1374, 1810, 38220, 1375, 1375, 1374, 3274, 65569, 1509, 2424, 1374, 1512, 1647, 8992, 7162, 1392, 3, 1374, 1376, 1374, 3, 1452, 1375, 1374, 3274, 1374, 3, 8124, 1509, 2424, 1374, 1447, 1647, 8992, 7162, 1392, 4, 1374, 1376, 1374, 3, 1452]
Length of Context Encoded: 60
Continuation Encoded: [1003, 1705, 33532, 25208, 4705, 70830, 49117, 50602, 1376, 59690, 1869, 2161, 15624, 1374, 1541, 6907, 5867, 4521, 104523, 1375, 1375, 1374, 2261, 33532, 25208, 4705, 1413, 1374, 363, 1374, 1312, 1294, 1374, 1422, 1378, 183, 1374, 1312, 1294, 1374, 1416, 1392, 1401, 1374, 1490, 423, 1452]
Length of Continuation Encoded: 47
Decoded Context: Food and Entertaining: How to derive the cosine difference formula. Draw your unit circle and label as needed.. Label the origin as point z with the ordered pair (0 , 0).. Label 0 degrees as point y with the ordered pair (1 , 0).
Decoded Continuation:  Name the cosine equation scientifically integrated into the formula, and use the other cells along with the line to determine how much distance is divided.. Color the cosine equation in 360 ° c/180 ° f (= k420).
Context Encoded: [1374, 1384, 3064, 1687, 1634, 1381, 137428, 1388, 6844, 23824, 1376, 1470, 1381, 1380, 11916, 1381, 62513, 26865, 11503, 3446, 69467, 3949, 1665, 163605, 80451, 1381, 107787, 36637, 89146, 1733, 54470, 1376, 2539, 1381, 124155, 31516, 1375, 1384, 1128, 1128, 1384, 1473, 7964, 11916, 4232, 56978, 1381, 1380, 3261, 12018, 46231, 7739, 1503, 16908, 25179, 4212, 1376, 1388, 22367, 1708, 1687, 1634, 1381, 60867, 3671, 1503, 24907, 2823, 1375, 3279, 1656, 11830, 8722, 28880, 1667, 1687, 1634, 1381, 1380, 1376, 1448, 10408, 2601, 3006, 1375, 1384, 1128, 1128, 1384, 1430, 27719, 4358, 1376, 1384, 24907, 2438, 15637, 1376, 13762, 60787, 17679, 84590, 1688, 1374, 122398, 1420]
Length of Context Encoded: 106
Continuation Encoded: []
Length of Continuation Encoded: 0
Decoded Context: "As Noel's uncle and godfather, it's Stephen's prerogative to have his country house overrun with parents who'll stay for a week and expect to be entertained, children's party or no."

"I suggested Stephen give your mother's sixtieth birthday ball at Montclair instead, and let us have Noel's birthday party at Claymore. Since her birthday is only three days after Noel's, that seemed the best plan."

"Clever girl," Clayton replied, instantly reversing his opinion of who ought to have the
Decoded Continuation:
Traceback (most recent call last):
  File "/usr/local/bin/lm_eval", line 8, in <module>
    sys.exit(cli_evaluate())
  File "/content/lm-evaluation-harness/lm_eval/__main__.py", line 231, in cli_evaluate
    results = evaluator.simple_evaluate(
  File "/content/lm-evaluation-harness/lm_eval/utils.py", line 415, in _wrapper
    return fn(*args, **kwargs)
  File "/content/lm-evaluation-harness/lm_eval/evaluator.py", line 150, in simple_evaluate
    results = evaluate(
  File "/content/lm-evaluation-harness/lm_eval/utils.py", line 415, in _wrapper
    return fn(*args, **kwargs)
  File "/content/lm-evaluation-harness/lm_eval/evaluator.py", line 325, in evaluate
    resps = getattr(lm, reqtype)(cloned_reqs)
  File "/content/lm-evaluation-harness/lm_eval/api/model.py", line 229, in fn
    rem_res = getattr(self.lm, attr)(remaining_reqs)
  File "/content/lm-evaluation-harness/lm_eval/models/huggingface.py", line 773, in loglikelihood
    return self._loglikelihood_tokens(new_reqs)
  File "/content/lm-evaluation-harness/lm_eval/models/huggingface.py", line 916, in _loglikelihood_tokens
    assert len(continuation_enc) > 0
AssertionError
  0% 0/44925 [00:00<?, ?it/s]

I'm guessing that the below is the culprit but dont know much beyond that:
Continuation Encoded: []
Length of Continuation Encoded: 0

Thank you for testing this, this is enough to replicate and debug! I'll follow up and look into it.

@pszemraj for your purposes, a sufficient fix should be to add the following check here:
https://github.com/EleutherAI/lm-evaluation-harness/blob/b93c3bcbf30109c40cd19ee862161702920b9c27/lm_eval/models/huggingface.py#L753
if len(whole_enc) == len(context_enc):
    cont_enc = self.tok_encode(continuation, add_special_tokens=add_special_tokens)
    return context_enc, cont_enc

but for a more generalized fix we can merge it'll be quite the headache (and gets back to why we have _encode_pair() in the first place...)

I've been running into the same issue, with a custom architecture and tokenizer (both of which use the HF API).
2024-11-28:08:00:20,436 INFO     [huggingface.py:129] Using device 'cuda:0'
2024-11-28:08:00:20,438 INFO     [huggingface.py:463] Overrode HF model backend type, and using type 'causal'
2024-11-28:08:00:20,441 INFO     [huggingface.py:365] Model parallel was set to False, max memory was not set, and device map was set to {'': 'cuda:0'}
2024-11-28:08:00:27,678 INFO     [evaluator.py:164] Setting random seed to 0 | Setting numpy seed to 1234 | Setting torch manual seed to 1234 | Setting fewshot manual seed to 1234
2024-11-28:08:00:27,679 INFO     [evaluator.py:217] Using pre-initialized model
2024-11-28:08:00:29,382 WARN     [evaluator.py:270] Overwriting default num_fewshot of arc_easy from None to 0
2024-11-28:08:00:29,383 INFO     [task.py:415] Building contexts for arc_easy on rank 0...
100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 2376/2376 [00:02<00:00, 1082.38it/s]
2024-11-28:08:00:31,798 INFO     [evaluator.py:489] Running loglikelihood requests
Running loglikelihood requests:   0%|                                                                                | 0/9501 [00:00<?, ?it/s]
Running loglikelihood requests:   0%|                                                                                | 1/9501 [00:00<1:26:17,  1.83it/s]
Running loglikelihood requests:   0%|                                                                                | 6/9501 [00:00<13:35, 11.64it/s]
Traceback (most recent call last):
  File "/home/crow/repos/praxis/eval.py", line 34, in <module>
    results = lm_eval.simple_evaluate(
              ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/crow/repos/praxis/.venv/lib/python3.12/site-packages/lm_eval/utils.py", line 397, in _wrapper
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/crow/repos/praxis/.venv/lib/python3.12/site-packages/lm_eval/evaluator.py", line 301, in simple_evaluate
    results = evaluate(
              ^^^^^^^^^
  File "/home/crow/repos/praxis/.venv/lib/python3.12/site-packages/lm_eval/utils.py", line 397, in _wrapper
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/crow/repos/praxis/.venv/lib/python3.12/site-packages/lm_eval/evaluator.py", line 500, in evaluate
    resps = getattr(lm, reqtype)(cloned_reqs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/crow/repos/praxis/.venv/lib/python3.12/site-packages/lm_eval/api/model.py", line 378, in loglikelihood
    return self._loglikelihood_tokens(new_reqs, disable_tqdm=disable_tqdm)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/crow/repos/praxis/.venv/lib/python3.12/site-packages/lm_eval/models/huggingface.py", line 1040, in _loglikelihood_tokens
    assert len(continuation_enc) > 0
           ^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Running loglikelihood requests:   0%|                                                                                | 8/9501 [00:00<18:20,  8.63it/s]

Sadly, the patch from above is no longer applicable, because _encode_pair() no longer exists.

Same situation as @Vectorrent here. Would be interested in a solution that works for the current main branch.

Me too!


added hybrid worker group commands for automation service

IMPORTANT : This PR has been generated using the aaz dev tools for the first time, I will have to test the changes out. I am waiting on the testing docs to be provided before I could finish the testing.
This checklist is used to make sure that common guidelines for a pull request are followed.

For new extensions:

[ ] My extension description/summary conforms to the Extension Summary Guidelines.

About Extension Publish
There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update src/index.json automatically.
The precondition is to put your code inside this repository and upgrade the version in the pull request but do not modify src/index.json.

automation


[api-docs] Add placeholder for Slash Commands page

A new commit was made into the api-docs repo. This issue was created automatically. Need to review if we made any change to the library for this commit.
https://github.com/discord/discord-api-docs/commit/f8dc696002619c61171b421ace90617a3326afcd

ncn


Need a way to prevent being able to tab to content behind a dialog

Bug, feature request, or proposal:
When a dialog is open, we don't want to be able to tab to the form items behind the modal. Can't seem to find a way to prevent this.
What is the expected behavior?
To be able to prevent tabbing out of the modal.
What is the current behavior?
Am able to tab out of the modal.
What are the steps to reproduce?
https://dialog-example-khap4o.stackblitz.io
What is the use-case or motivation for changing an existing behavior?
Bad user experience. The items behind the modal are out of context and not relevant to what the user is currently doing.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
All browsers. Material 2, Angular 5.
Is there anything else we should know?
Nope

Can you change your link so we can access the source ?

Hi, you can see the code from the following link:
https://stackblitz.com/edit/dialog-example?file=app%2Fapp.component.ts

What's the purpose of your tabindex ??

A tabindex="-1" value removes the element from the default navigation flow (i.e., a user cannot tab to it), but it allows it to receive programmatic focus, meaning focus can be set to it from a link or with scripting.** This can be very useful for elements that should not be tabbed to, but that may need to have focus set to them.

You have changed the native focus behavior with tabindex. Juste remove it and it's works as expected.

This seems to be handled by the focus trap in the latest version. Closing.


latest is legacy

The latest tag is actually the legacy version. I opted to remove docker pull ehazlett/interlock:latest rather than do docker pull ehazlett/interlock:1.0.0 so this file won't have to always be updated every time a new version is pushed.

The problem with changing that right now is that it will break anyone's deployment with Interlock where they are using latest.  I know I was using the latest tag for a number of servers that automatically update when new versions are available.

Yep. I understand why latest would be left tracking the legacy version of interlock.
Maybe something like this would be more clear.
Consult the tags to discover the newest version of interlock and run docker pull ehazlett/interlock:x.x.x to get it. The latest tag is the legacy version. That is kept for legacy purposes. It is strongly recommended to use the newest version as legacy is no longer maintained.

As @mbentley mentioned it was chosen to keep latest pointing at the previous "legacy" version to allow for a transition period (there is a deprecation notice in this as well https://github.com/ehazlett/interlock/blob/v0.3.3/interlock/commands.go#L86).  After a few releases the latest will be updated to point to the current.  Of course you can still use any version by specifying the tag but I don't want to break everyone's current deployments in one fell swoop since this is a large refactor.

Yes I like your second wording better :+1:   I'll carry this commit.  Thanks!

This is fixed in 28bfd4cbe918be604e82658a280dba317075ac63.  Thanks!


Move to the v1beta1 API

Move to the v1beta1 API.

I got following error when setup the plugin
INFO[0000] Fetching devices.
DEBU[0000] RDMA device list: [{{mlx4_1 uverbs1 /sys/class/infiniband_verbs/uverbs1 /sys/class/infiniband/mlx4_1} ib1} {{mlx4_3 uverbs3 /sys/class/infiniband_verbs/uverbs3 /sys/class/infiniband/mlx4_3} ib3} {{mlx4_5 uverbs5 /sys/class/infiniband_verbs/uverbs5 /sys/class/infiniband/mlx4_5} ib5} {{mlx4_7 uverbs7 /sys/class/infiniband_verbs/uverbs7 /sys/class/infiniband/mlx4_7} ib7} {{mlx4_2 uverbs2 /sys/class/infiniband_verbs/uverbs2 /sys/class/infiniband/mlx4_2} ib2} {{mlx4_4 uverbs4 /sys/class/infiniband_verbs/uverbs4 /sys/class/infiniband/mlx4_4} ib4} {{mlx4_6 uverbs6 /sys/class/infiniband_verbs/uverbs6 /sys/class/infiniband/mlx4_6} ib6} {{mlx4_8 uverbs8 /sys/class/infiniband_verbs/uverbs8 /sys/class/infiniband/mlx4_8} ib8}]
INFO[0000] Starting FS watcher.
INFO[0000] Starting OS watcher.
INFO[0000] Starting to serve on /var/lib/kubelet/device-plugins/rdma.sock
2018/03/15 13:46:30 grpc: Server.Serve failed to create ServerTransport:  connection error: desc = "transport: write unix /var/lib/kubelet/device-plugins/rdma.sock->@: write: broken pipe"
ERRO[0000] Could not register device plugin: rpc error: code = Unknown desc = requested API version "0.1" is not supported by kubelet. Supported version is "v1alpha2"
INFO[0000] Could not contact Kubelet, retrying. Did you enable the device plugin feature gate?

My k8s version is 1.9 and I am quite sure I enable device plugin feature gate.  Is it API version issue?
Thanks


Android: tapping notification re-opens app

my app reopens the app only when the notification is tapped when the app is in background. i've followed solutions from #81, it didn't work

@WilliamAnputra Please add a bit more detail to your bug report.
Could you show me a JSON example of the push notification you are sending?
What version of the OneSignal RN SDK are you using, how did you add it to your project, and what environment are you using (standard React Native, expo, etc).
I am closing this issue until more information is provided. I would be happy to reopen the issue once this happens so we can investigate further.

I am experiencing the same thing, launchMode="singleTop" too. My project is a detached Expo (ExpoKit) app.
"react-native-onesignal": "^3.1.1",
"react": "16.0.0",
"expo": "^24.0.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-24.0.0.tar.gz",


bfasst can't run without rapidwright

Since the physical netlist script imports from rapidwright, it's not currently possible to use run_design.py without having rapidwright installed.  It would be nice to have a workaround to remove this dependency.

We could do something like this: https://stackoverflow.com/a/3496790

Also, this is something that would be appropriate for the init.py file.

We could also refactor the flows file and load the relevant one when asked.  Then it would automatically report an error if we needed rapidwright, but if not, it would run just fine...

I really like Dallin's idea. The way I understand it, is we would move the imports so that they are inside the relevant function calls. So the import happens when the function is called, not when the run_design is loaded. That is what you are suggesting correct?

That sounds like the best approach to me.

From: Reilly McKendrick @.>
Sent: Tuesday, February 21, 2023 4:20:52 PM
To: byuccl/bfasst @.>
Cc: Jeff Goeders @.>; Author @.>
Subject: Re: [byuccl/bfasst] bfasst can't run without rapidwright (Issue #113)
I really like Dallin's idea. The way I understand it, is we would move the imports so that they are inside the relevant function calls. So the import happens when the function is called, not when the run_design is loaded. That is what you are suggesting correct?
—
Reply to this email directly, view it on GitHubhttps://github.com/byuccl/bfasst/issues/113#issuecomment-1439219731, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOD6BT2R4PAMICZXWFPPATWYVEVJANCNFSM6AAAAAAVDFSHPI.
You are receiving this because you authored the thread.Message ID: @.***>

That's basically the gist :)


Bring back localResponseNormalization#D tests once we fix the flaky test.

See: https://github.com/PAIR-code/deeplearnjs/pull/633
Example: https://api.travis-ci.org/v3/job/336158839/log.txt

This issue was moved to tensorflow/tfjs#116


Ben nikolai

@zencephalon @stevecass @nikocal
We had some issues with getting the pipes to disappear when the last file of a directory had already been printed. We ended up with a method that just always printed out the pipes when we were in deeper stack levels.

@bkmorimoto @nikocal ILUVU, nice work on this!


Phase Update Task Status 500

When updating the tasks for our competition, I get

Please assist this issue as we are working to restore our live competition.
cc:
@spencrr
@nick11roberts

Additional details:

Tried Chrome, Safari
Tried different task names
Tried adding one task at a time

Hi Spencer,
What are you updating exactly? You add a new task in the phase and remove the old one?

@spencrr
Can you reproduce the error again? I tried but cannot reproduce.
Can you verify if it gives error in all of these

Remove single task and save
Remove multiple tasks and save
Add signle task and save
Add multiple tasks and save
Remove single task and add single task and save
Remove multiple tasks and add multiple tasks and save

Hello IIhsan,
All of the following are resulting with HTTP 500s.

2. I do not believe I can remove all tasks (there are only 2 for https://www.codabench.org/competitions/984/)
3.

4. Same result as (3)
5.

6. This was the first thing I tried as well:

I can reproduce the error.
In the platform logs, I can see that some submissions can't be retrieved.
Also, when clicking on the "edit" button of the competition, there is an error message that appears and disappears very quickling stating something like "Error in retrieving submissions".
Logs:
site_worker_1     | Traceback (most recent call last):
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 382, in trace_task
site_worker_1     |     R = retval = fun(*args, **kwargs)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 641, in __protected_call__
site_worker_1     |     return self.run(*args, **kwargs)
site_worker_1     |   File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission
site_worker_1     |     submission = qs.get(pk=submission_pk)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
site_worker_1     |     raise self.model.DoesNotExist(
site_worker_1     | competitions.models.Submission.DoesNotExist: Submission matching query does not exist.
django_1          | Internal Server Error: /api/competitions/984/
django_1          | Traceback (most recent call last):
django_1          |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
django_1          |     response = get_response(request)
django_1          |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
django_1          |     response = self.process_exception_by_middleware(e, request)
django_1          |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
django_1          |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
django_1          |   File "/usr/local/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
django_1          |     return view_func(*args, **kwargs)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/viewsets.py", line 116, in view
django_1          |     return self.dispatch(request, *args, **kwargs)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 495, in dispatch
django_1          |     response = self.handle_exception(exc)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 455, in handle_exception
django_1          |     self.raise_uncaught_exception(exc)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 492, in dispatch
django_1          |     response = handler(request, *args, **kwargs)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/mixins.py", line 84, in partial_update
django_1          |     return self.update(request, *args, **kwargs)
django_1          |   File "/app/src/apps/api/views/competitions.py", line 233, in update
django_1          |     self.perform_update(serializer)
caddy_1           | <IP_ADDRESS> - - [06/Jul/2023:10:49:59 +0000] "PATCH /api/competitions/984/ HTTP/2.0" 500 51
django_1          |   File "/app/src/apps/api/views/competitions.py", line 492, in perform_update
django_1          |     self.run_new_task_submissions(instance.phases.get(pk=phase_id), new_tasks)
django_1          |   File "/app/src/apps/api/views/competitions.py", line 466, in run_new_task_submissions
django_1          |     leaderboard=submission.children.first().leaderboard,
django_1          | AttributeError: 'NoneType' object has no attribute 'leaderboard'
django_1          | Internal Server Error: /api/competitions/984/
django_1          | Traceback (most recent call last):
django_1          |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/exception.py", line 34, in inner
django_1          |     response = get_response(request)
django_1          |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 115, in _get_response
django_1          |     response = self.process_exception_by_middleware(e, request)
django_1          |   File "/usr/local/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
django_1          |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
django_1          |   File "/usr/local/lib/python3.8/site-packages/django/views/decorators/csrf.py", line 54, in wrapped_view
django_1          |     return view_func(*args, **kwargs)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/viewsets.py", line 116, in view
django_1          |     return self.dispatch(request, *args, **kwargs)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 495, in dispatch
django_1          |     response = self.handle_exception(exc)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 455, in handle_exception
django_1          |     self.raise_uncaught_exception(exc)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/views.py", line 492, in dispatch
django_1          |     response = handler(request, *args, **kwargs)
django_1          |   File "/usr/local/lib/python3.8/site-packages/rest_framework/mixins.py", line 84, in partial_update
django_1          |     return self.update(request, *args, **kwargs)
django_1          |   File "/app/src/apps/api/views/competitions.py", line 233, in update
django_1          |     self.perform_update(serializer)
django_1          |   File "/app/src/apps/api/views/competitions.py", line 492, in perform_update
django_1          |     self.run_new_task_submissions(instance.phases.get(pk=phase_id), new_tasks)
django_1          |   File "/app/src/apps/api/views/competitions.py", line 466, in run_new_task_submissions
django_1          |     leaderboard=submission.children.first().leaderboard,
django_1          | AttributeError: 'NoneType' object has no attribute 'leaderboard'
site_worker_1     | [2023-07-06 10:49:59,512: INFO/MainProcess] Received task: competitions.tasks._run_submission[af7310ba-4334-42f7-a47f-6da017d0c373]
site_worker_1     | [2023-07-06 10:49:59,516: INFO/MainProcess] Received task: competitions.tasks._run_submission[4b083c13-8609-4859-b593-599d1a5644c6]
site_worker_1     | [2023-07-06 10:49:59,528: ERROR/ForkPoolWorker-3] Task competitions.tasks._run_submission[09e1c465-cb2f-4c09-aa1a-ed5645f47a5a] raised unexpected: DoesNotExist('Submission matching query does not exist.')
site_worker_1     | Traceback (most recent call last):
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 382, in trace_task
site_worker_1     |     R = retval = fun(*args, **kwargs)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 641, in __protected_call__
site_worker_1     |     return self.run(*args, **kwargs)
site_worker_1     |   File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission
site_worker_1     |     submission = qs.get(pk=submission_pk)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
site_worker_1     |     raise self.model.DoesNotExist(
site_worker_1     | competitions.models.Submission.DoesNotExist: Submission matching query does not exist.
site_worker_1     | [2023-07-06 10:49:59,530: ERROR/ForkPoolWorker-2] Task competitions.tasks._run_submission[82674dc3-75a1-4db0-b1b7-ec84466897d6] raised unexpected: DoesNotExist('Submission matching query does not exist.')
site_worker_1     | Traceback (most recent call last):
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 382, in trace_task
site_worker_1     |     R = retval = fun(*args, **kwargs)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 641, in __protected_call__
site_worker_1     |     return self.run(*args, **kwargs)
site_worker_1     |   File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission
site_worker_1     |     submission = qs.get(pk=submission_pk)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
site_worker_1     |     raise self.model.DoesNotExist(
site_worker_1     | competitions.models.Submission.DoesNotExist: Submission matching query does not exist.
site_worker_1     | [2023-07-06 10:49:59,533: INFO/MainProcess] Received task: competitions.tasks._run_submission[53522b68-75ef-4dfd-9ef5-94b3105f2eef]
site_worker_1     | [2023-07-06 10:49:59,535: INFO/MainProcess] Received task: competitions.tasks._run_submission[fd7fda6c-7535-4f86-9a2e-12b114e798aa]
site_worker_1     | [2023-07-06 10:49:59,544: ERROR/ForkPoolWorker-3] Task competitions.tasks._run_submission[af7310ba-4334-42f7-a47f-6da017d0c373] raised unexpected: DoesNotExist('Submission matching query does not exist.')
site_worker_1     | Traceback (most recent call last):
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 382, in trace_task
site_worker_1     |     R = retval = fun(*args, **kwargs)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 641, in __protected_call__
site_worker_1     |     return self.run(*args, **kwargs)
site_worker_1     |   File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission
site_worker_1     |     submission = qs.get(pk=submission_pk)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
site_worker_1     |     raise self.model.DoesNotExist(
site_worker_1     | competitions.models.Submission.DoesNotExist: Submission matching query does not exist.
site_worker_1     | [2023-07-06 10:49:59,548: ERROR/ForkPoolWorker-2] Task competitions.tasks._run_submission[4b083c13-8609-4859-b593-599d1a5644c6] raised unexpected: DoesNotExist('Submission matching query does not exist.')
site_worker_1     | Traceback (most recent call last):
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 382, in trace_task
site_worker_1     |     R = retval = fun(*args, **kwargs)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 641, in __protected_call__
site_worker_1     |     return self.run(*args, **kwargs)
site_worker_1     |   File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission
site_worker_1     |     submission = qs.get(pk=submission_pk)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
site_worker_1     |     raise self.model.DoesNotExist(
site_worker_1     | competitions.models.Submission.DoesNotExist: Submission matching query does not exist.
site_worker_1     | [2023-07-06 10:49:59,560: ERROR/ForkPoolWorker-3] Task competitions.tasks._run_submission[53522b68-75ef-4dfd-9ef5-94b3105f2eef] raised unexpected: DoesNotExist('Submission matching query does not exist.')
site_worker_1     | Traceback (most recent call last):
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 382, in trace_task
site_worker_1     |     R = retval = fun(*args, **kwargs)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 641, in __protected_call__
site_worker_1     |     return self.run(*args, **kwargs)
site_worker_1     |   File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission
site_worker_1     |     submission = qs.get(pk=submission_pk)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
site_worker_1     |     raise self.model.DoesNotExist(
site_worker_1     | competitions.models.Submission.DoesNotExist: Submission matching query does not exist.
site_worker_1     | [2023-07-06 10:49:59,562: ERROR/ForkPoolWorker-2] Task competitions.tasks._run_submission[fd7fda6c-7535-4f86-9a2e-12b114e798aa] raised unexpected: DoesNotExist('Submission matching query does not exist.')
site_worker_1     | Traceback (most recent call last):
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 382, in trace_task
site_worker_1     |     R = retval = fun(*args, **kwargs)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/celery/app/trace.py", line 641, in __protected_call__
site_worker_1     |     return self.run(*args, **kwargs)
site_worker_1     |   File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission
site_worker_1     |     submission = qs.get(pk=submission_pk)
site_worker_1     |   File "/usr/local/lib/python3.8/site-packages/django/db/models/query.py", line 406, in get
site_worker_1     |     raise self.model.DoesNotExist(
site_worker_1     | competitions.models.Submission.DoesNotExist: Submission matching query does not exist.

I tried the edit button, but even looking at the network activity, I don't see any error message.
I have changed the tasks previously and there are most likely submissions made on tasks no longer part of the competition.

@dtuantran @ihsaan-ullah Any insights after reading the logs?

I am not sure why this is happening. It looks like when a task is updated, the following code is run
File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission

Is this suppose to happen? I am unable to reproduce this problem on my side. Is there a specific action done which lead to this problem?
If I can get a competition bundle which does this, then maybe I can check the logs locally and identify the real problem.
In short, to me the problem seems to be not of changing tasks but of rerunning submissions which cannot be found or the submission leaderboard cannot be found. Still cannot figure out what triggers the rerunning of submissions

The error handling is also poor that's why we are not seeing error but just 500 status. I think this can be imporved later

I am unable to reproduce this problem on my side. Is there a specific action done which lead to this problem?

The problem only happens in the following competition:
https://www.codabench.org/competitions/984/
When you change the tasks and try to save, nothing happens. I guess you can't reproduce it because you can't access the editor of this competition as you are not part of the organizers, and you are not part of the administrators of the platform. I forgot about this; maybe we should grant you the admin priviledges.

If I can get a competition bundle which does this, then maybe I can check the logs locally and identify the real problem.

@spencrr If you re-upload your bundle, does the problem still happens?

I am not sure why this is happening. It looks like when a task is updated, the following code is run
File "/app/src/apps/competitions/tasks.py", line 278, in _run_submission

Is this suppose to happen? I am unable to reproduce this problem on my side. Is there a specific action done which lead to this problem?
If I can get a competition bundle which does this, then maybe I can check the logs locally and identify the real problem.
In short, to me the problem seems to be not of changing tasks but of rerunning submissions which cannot be found or the submission leaderboard cannot be found. Still cannot figure out what triggers the rerunning of submissions

I have tried re-uploading, but am not able to reproduce the issue. The current bundle I have does not represent the current state of the competition (different version of the tasks/ingestion program/etc.). My theory is that this competition (984) has an error due to having submissions from different old versions of the tasks.

My theory is that this competition (984) has an error due to having submissions from different old versions of the tasks.

But the new ingestion programs etc. are in used by different tasks, right? You can't edit a task right now, so the past submissions were done on different tasks than the one used right now, I guess. I need to think about it, the problem is quite misleading. Even if at some point you use a fresh competition, please do not delete this one as we need it to investigate the problem.

The problem starts from here:
https://github.com/codalab/codabench/blob/c49838331ed5f6500a8e768220d36e3d481ea08f/src/apps/api/views/competitions.py#L536
When you update a competition, this is called when you update the tasks
def run_new_task_submissions(self, phase, tasks):
        tasks_ids = set([task.id for task in tasks])
        submissions = phase.submissions.filter(has_children=True).prefetch_related("children").all()

        for submission in submissions:
            child_tasks_ids = set(submission.children.values_list('task__id', flat=True))
            missing_tasks = tasks_ids - child_tasks_ids
            for task in filter(lambda t: t.id in missing_tasks, tasks):
                sub = Submission(
                    owner=submission.owner,
                    phase=submission.phase,
                    parent=submission,
                    task=task,
                    appear_on_leaderboards=submission.appear_on_leaderboards,
                    leaderboard=submission.children.first().leaderboard,
                    data=submission.data,
                )
                sub.save(ignore_submission_limit=True)
                sub.start(tasks=[task])

@Didayolo do we want to investigate this or close it for now?

Let's close it as it only happened once, on an old bundle.


Scripts seems to not be working

The twitch player has changed in the last couple of months, migrating the controls to HTML5.
It might have stopped the script from working.
I however do not see any errors in the console coming from the script.

Please try this version.


#976: always prepend prefix to existing key

When adding a PactDslJsonBody to a parent through the use of PactDslJsonBody.object
we can experience an issue where if the parent body is called
blue (for example)
and the new part being added is called blueberry then the key is not updated to be blue.blueberry
and we see:
    "$.fruitByColour.blueberry": {
         "matchers": [
              {
                  "match": "type",
                }
              ],
              "combine": "AND"
            },
"fruitByColour": {
            "blue": {
              "blueberry": {
               <-- some random blueberry properties here -->
              },

this happens because of:
PactDslJsonBody().object(String name, DslPart value)
|
|_new PactDslJsonBody(base, "", this, (PactDslJsonBody) value)
   |
   |_ Category.copyWithUpdatedMatcherRootPrefix
      |
      |_  e.key.startsWith(prefix) -> e.key

https://github.com/DiUS/pact-jvm/issues/976

Thanks for the PR


uncaught referenceerror botchat is not defined

after v4.1.0 relaeased, my code return
"uncaught referenceerror botchat is not defined".
I'm sure I've not made any change on my code.
Could you confirm which version is released on latest cdn?
previously, I use
<script src="https://cdn.botframework.com/botframework-webchat/latest/botchat-es5.js"></script>
About 3 hours ago, it went wrong; cant initialize chat window with the error below.
"uncaught referenceerror botchat is not defined"
When I change the code to below, it got well.
<script src="https://cdn.botframework.com/botframework-webchat/0.14.1/botchat-es5.js"></script>

#1281, #1282, and #1283 are the same issue. We are aware of the issue and is fixed.
Please read the explanation at #1281 for details. Closing this due to dupe.


[BUG] Fix join op names

This simplifies our logic for joins by making the right side renaming an explicit project before the join during logical planning. This allows code further in the pipeline to simply assume that the column names are preserved during the join. This PR also moves the revised infer_join_schema function into daft-dsl so that it can be used both in planning and execution.
This does not fix the filter pushdown bug with joins, which will be tackled in a later PR.
todo before merge: add tests

@samster25 I did not check whether your code in src/daft-local-execution/src/sinks/hash_join.rs assumes anything about the field names that may be broken by this change, so could you please look over it? I simply removed all of the mapping behavior and used the original tables.


Modal Welcome and Special Banner Breakout

@a6wu @c3bryant @jpknoll  I really like this one, I broke out the welcome modal and "welcome banner" into their own components.  The 'WelcomeModal' now talks to realm directly and makes all the decisions about when it should show and writes to realm when it is dismissed.  It then shows a reusable 'InfoModal', which you could then use anywhere else in your app. Nice little self-contained widget.
The welcome banner I abstracted into a generic 'BannerView' which is just a nice touchable image which links to a website.  Then the new 'TopBannerView' is used to decide if the top banner should be show at all.  Currently it is using the same date/time logic to decide if it should show the welcome banner, but this would be a great place to have the top banner get its content from an API or static page so it could change based on the most important campus thing at the moment.
Note: Everything was running well but I couldn't test the last of the changes because it looks like the new mapping library is causing build error -- i get these even on your latest dev branch so it isn't related to this PR (error is in compiling /AIRMapPolygon.o).

@srkirkland Glad to see the realm pulled into it's own file :-D
:+1:


Update Haskell package set

This PR is test-built by Hydra at https://hydra.nixos.org/jobset/nixpkgs/haskell-updates. I'll fix up the remaining errors and merge it on Friday, 2020-12-25 20:00 +01:00. You can watch this live on Twitch at https://www.twitch.tv/peti343. In addition to the chat features offered by Twitch, there is also a voice conference at https://discord.gg/YTEa3XR that viewers can use to chat with me and with each other.

Would be nice to get apecs-physics 0.4.5 in with this update. I don't know whether stackage nightly will update to it, but the update unbreaks apecs-physics, apecs-gloss and apecs-physics-gloss. See https://github.com/NixOS/nixpkgs/pull/107395#issuecomment-750223947.

We'll merge https://github.com/NixOS/nixpkgs/pull/107593 next week.


update pin for sx128x

for https://github.com/LoRaMesher/LoRaMesher/issues/63

Due to a gpio configuration error for the sx1280 module, the interrupt is continuously triggered.

Thanks for the contribution!


Add Crafty.viewport.absoluteScale()

Resolution independence: The problem
I need my games to scale to fit the browser window, or at least select something close from a list of known good resolutions. Unfortunately, Crafty's viewport system is working against me. Looking at other open issues, it seems like a common pain point.
Crafty today
I can't figure out the use case for Crafty.viewport.scale. It doesn't work at all for my purposes. Where it applies a cumulative scale factor, I need to apply an absolute scale factor calculated from the window size. Additionally, Crafty resets the canvas transform all by itself when the scene changes or the browser is resized. I need to apply a scale factor that overrides everything else for the lifetime of the game.
One solution
The existing Crafty.viewport.scale method applies the new scale as a multiplier against the old scale. This pull request adds a Crafty.viewport.absoluteScale method that sets the scale absolutely, regardless of the old scale. Calling scale(0.5) twice results in a scale of 0.25. Calling absoluteScale(0.5) twice results in a scale of 0.5. This is useful when scaling the stage in response to browser window resize events.
Unfortunately, this doesn't fix Crafty's incompatibility between viewport scaling and panning in a mixed Canvas/DOM setting (see fiddle). It looks like setting Crafty.viewport.x = 5 (or panning) moves DOM elements by 5 screen pixels and canvas elements by 5 scaled pixels, causing alignment problems. The viewport system may be due for rethinking.
Sample resizing code
Here's some sample code for a Crafty app that can scale the viewport in response to the browser window size (fiddle here):
var Screen = { w: 800, h: 480 };

Crafty.init();
Crafty.canvas.init();

var scaler = function() {
  var current = { w: Crafty.viewport.width,
                  h: Crafty.viewport.height };

  // This will reset the scale when it adjusts the canvas element
  // dimensions, so do it right before setting the scale we want.
  Crafty.viewport.reload();

  if ( current.w > current.h ) {
    // Landscape, scale to fit height
    Crafty.viewport.absoluteScale( current.h / Screen.h );
  } else {
    // Portrait, scale to fit width
    Crafty.viewport.absoluteScale( current.w / Screen.w )
  }
};

// Avoid drawing entities before we're ready to scale.
Crafty.removeEvent( Crafty, window, 'resize', Crafty.viewport.reload );

// Adjust scale to fit inside resized window.
Crafty.addEvent( Crafty, window, 'resize', scaler );

// Run the scaler after scene changes, since they reset the scale.
Crafty.bind( 'SceneChange', scaler );

Discussion
Thoughts? Is there a better way to go about this? :dancer:

This PR is pretty out-of-date, and the viewport system has undergone some (if not all) of the changes/enhancements discussed in thread, so closing.


ui/ParamControl: do not create ConfirmationDialog on every click

Fixed the ConfirmationDialog is always created on click, even if it won't be executed.

Is there some overhead to this? What exactly does this improve or fix?


Reduce Travis CI times

Right now, every build in Travis takes ~15 min to complete

After #211 , can we close this issue?

I think so
El vie., 21 feb. 2020 13:34, Daniel Ochoa Rodríguez <
<EMAIL_ADDRESS>escribió:

After #211 https://github.com/higherkindness/compendium/pull/211 , can
we close this issue?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/higherkindness/compendium/issues/75?email_source=notifications&email_token=ACB5FS7HXRE2IL34ZPIWHHLRD7C53A5CNFSM4HP2NLUKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEMSR5QA#issuecomment-589635264,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACB5FS4EYMDBW2RAYQ3UD7LRD7C53ANCNFSM4HP2NLUA
.


Login Credential is made

New Feature

Login Credential Feature is added

Changes I've made
I have added an authentication process when the username and password are given, It will remember it.
Describe if there is any unusual behavior of your code(Write NA if there isn't)
NA
Checklist:

[ ] My code follows the style guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] I have made corresponding changes to the documentation.
[ ] New and existing unit tests pass locally with my changes.

Screenshots

Please add this feature


Top part of the extension popup is cut off and inaccessible. Cannot access (+) button.

[x] I have searched through existing Issues and confirmed that this particular issue has not already been reported.
[x] I have read and performed all the steps listed under the Troubleshooting section.

What steps will reproduce the problem?

Restart Chrome by going to chrome://restart
Click the extension icon to open the popup.
Close the popup.
Click the extension again.

What is the expected result?

I should see the blue "Google Calendar" title bar and the red (+) button, every time.

What happens instead?

First click after "chrome://restart" works as expected.
Any subsequent clicks open a popup with the top part (approx. 200px of height, including the blue "Google Calendar" title bar and the red (+) button) cut off and inaccessible.
I cannot scroll up to see them.

Screenshot: (I intentionally deleted the contents from the screenshot)

System Information:

Version: 2.8
Language: English
Timezone Offset: (GMT-07:00) Pacific Time
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

I think it's related to this Chrome issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=307912

Thanks, Simone, that’s the underlying issue. We will de-dupe it against the existing closed issue because there appears to be nothing we can do about it in this extension alone.
Also, http://crbug.com/705148
Duplicate of #224

Thanks! I'll look at the other issue.


Creating region (and demographic) tables from the response doesn't work

In reference to already closed issue #47
Dear @colin-fraser, thank you very much for the extensive work with this package.
However, since at least 18 August, the bug from #47 seems to have returned. The as_tibble function returns the same error when constructing either demographic and/or region tables.
reg_query <- adlib_build_query(
ad_reached_countries = "US",
search_terms = "medicare",
# impression_condition = "HAS_IMPRESSIONS_YESTERDAY",
fields = "region_data"
)
reg_response <- adlib_get(reg_query, token)

as_tibble(reg_response, type = 'region')

I am commenting out the "impression_condition" because it is no longer valid in v0.3.0.
The issue occurs whether the response is paginated or not.
I have been also able to reproduce this within a Docker container rocker/tidyverse:4.1.1 (and I also tested 4.0.5 and 4.1.0)
Nevertheless, I am sharing my local session info.
Again, thank you very much and I hope it helps.
R version 4.1.1 (2021-08-10)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.3 LTS

Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.9.0
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.9.0

locale:
[1] LC_CTYPE=C.UTF-8 LC_NUMERIC=C LC_TIME=C.UTF-8 LC_COLLATE=C.UTF-8 LC_MONETARY=C.UTF-8
[6] LC_MESSAGES=C.UTF-8 LC_PAPER=C.UTF-8 LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] Radlibrary_0.3.0 arrow_5.0.0 data.table_1.14.0 remotes_2.4.0 tidyr_1.1.3 dplyr_1.0.7

loaded via a namespace (and not attached):
[1] Rcpp_1.0.7 pillar_1.6.2 compiler_4.1.1 tools_4.1.1 digest_0.6.27 bit_4.0.4
[7] lubridate_1.7.10 jsonlite_1.7.2 evaluate_0.14 lifecycle_1.0.0 tibble_3.1.3 pkgconfig_2.0.3
[13] rlang_0.4.11 rstudioapi_0.13 DBI_1.1.1 cli_3.0.1 filelock_1.0.2 curl_4.3.2
[19] yaml_2.2.1 xfun_0.25 stringr_1.4.0 httr_1.4.2 knitr_1.33 askpass_1.1
[25] rappdirs_0.3.3 generics_0.1.0 vctrs_0.3.8 bit64_4.0.5 tidyselect_1.1.1 glue_1.4.2
[31] R6_2.5.1 fansi_0.5.0 rmarkdown_2.10 purrr_0.3.4 magrittr_2.0.1 ellipsis_0.3.2
[37] htmltools_<IP_ADDRESS> assertthat_0.2.1 keyring_1.2.0 utf8_1.2.2 stringi_1.7.3 crayon_1.4.1

I'm experiencing the exact same problem with the as_tibble function for both demographic and location queries. Any fixes or workarounds would be greatly appreciated!


[API Proposal] Property Validations

Many web-components expose an external API. Configuring your element's attributes incorrectly typically results in your web component not working (usually a white screen of death). This can be relatively hard to debug if documentation is lacking. This PR proposes an API enhancement for supporting data validations in polymer. The goal is to be able to catch errors sooner and make for easier to debug applications  (Can provide strong static analysis of when using attributes improperly in HTML). This is done by adding your data validations directly in the properties info, which gives you one centralized place to look (other then docs) to figure out the required structure for a property.
This solution adds only about 50-75 lines to polymer and maintains backwards compatibility given that it is just progressive enhancement for your properties.
Data validations are added via rules and applied directly inside of the property's definition.
Polymer({
      is:'x-foo',
      rules: {
        maxLength: function(val, arg) {
          return (val.length <= arg);
        },
        minLength: function(val, arg) {
          return (val.length >= arg);
        }
      },
      properties: {
        name: {
          type: String,
          maxLength: 5,
          minLength: 3,
          notify: true
        }
      }
});

I'm no @robdodson but I attempted to create some videos explaining basic use cases.
Basic string rules

Using behaviors and external libraries

Enum use case

property-name-invalid Notification

I signed it!

I signed it!

:+1:

:+1: on this. Much needed enhancement!

Great work, love it!

In your proposal, the rules object is a collection of functions. Wouldn't it be easier to instead of searching for rules in a seperate object, to directly calls on this? That way your validation can also be reused for pre-emptively checking for example.
I can imagine a form element where validation is required. You then add a validation rule onto a property which sends a request. But instead of waiting it to fail, you can pre-emptively link the validation to the input on-insert (for example)

I personally think validation rules should be kept separate from this. You can still access them all through this.rules. Rules are typically highly reusable and therefore, I feel like most people would be implementing them using behaviors. Because of this, I think it's best to put rules in their own namespace to avoid naming collisions.
 (Chlorine behaviors?). That way people have a common toolchain to use for data validations instead of pulling code from a million different sources.
I've been using sails on the backend and I find that about 80-85% of my use cases have been handled by this list.
http://sailsjs.org/documentation/concepts/models-and-orm/validations
Doing this will allow us to do some pretty elaborate static analysis on our HTML.

Ping! :+1:

:+1:

We think this is a really cool idea however we're also very concerned about adding additional file size to our elements and even more API to maintain. We don't currently plan to include this PR at this time because it doesn't align with the current priorities of making components as small and fast as possible.
Having said that, this is obviously a popular idea with some folks so it may be worth exploring if it can be turned in to an optional behavior that you house under your own GitHub repo. An ecosystem of behaviors and add-ons would be awesome.
I'd suggest in the future, to save yourself time, please open an issue discussing your ideas before putting together a PR. We really don't want to disappoint folks and I know it's frustrating to spend hours on something which the team doesn't merge.

This would be fine. Just ensure Polymer provides the necessary hooks to make it easy to implement this in behaviors.

@robdodson This was actually a direct result of your data binding video. This was just my project to understand data binding better. I thought it was kind of cool and thought I would share. Not frustrated at all. In fact, I would actually prefer if google focused on things such as the carbon elements, designer and tooling for the current api (to name a few).
As far as keeping my own branch goes I don't know If I have time to maintain a branch of something as fast moving as polymer and provide enough behaviors/add-ons to make it a practical progressively enhanced alternative. So unless someone here feels like taking on the challenge.

@zoechi I think he's suggesting that someone maintain their own branch of polymer which supports this. Sort of like the 'typescript of polymer'.
I don't think google is planning on changing any hooks.

@blamy I don't see how to interpret it this way. He mentioned behavior and I assume he means something like iron-behaviors

No not suggesting you maintain your own branch of Polymer. I'm curious if
we could make this something that a behavior could hook into
On Nov 25, 2015 1:11 PM, "BLamy"<EMAIL_ADDRESS>wrote:

@zoechi https://github.com/zoechi I think he's suggesting that someone
maintain their own branch of polymer which supports this. Sort of like the
'typescript of polymer'.
I don't think google is planning on changing any hooks.
—
Reply to this email directly or view it on GitHub
https://github.com/Polymer/polymer/pull/2677#issuecomment-159703967.

Maybe a new issue can be created to discuss a proposal for hooks for properties, based on this one? I have some other ideas that might could benefit from such extension points.
Something along the lines of pre, transform, post hooking of the setters? My 2 cents.

Might also be useful to delay propagation of values until animations are done when value changes are supposed to invoke animations.

@zoechi , I guess i'm just a little confused because I don't know how that differs from what I have here. All this is doing is proposing an API for that hook. I don't package any validations or anything. You need to mixin your own validations using behaviors.

@BLamy I didn't look to close at what you implemented. I guess you should rather address this comment at @robdodson

It looked to me like the changes were specifically looking for the existence of a validateRules subproperty. I think any sort of hooking would have to be more generic than that (kind of like what @JeremybellEU was getting at, general pre/post hooks). Apologies if I've misread the PR, that was just my take on it.


Music Player

Design a Music player for Android such that user is able to play, pause, and stop a song.
Your application should fetch all the songs from phone storage and will display it in the form of a list. It will take input from the user and search accordingly.

I would like to work on this issue
Sayli Borole
Sy comp

I would like to work on this issue Sayli Borole Sy comp

You have been assigned the issue. You have 2 days from now to work on it.

Can u pls assign me this issue. I have finished my previous issue.
Aditi singhal

@sayli2003 you were assigned this issue 3days ago. As no progress has been seen you will be unassigned for this issue.

@vaishh29 I have opened a PR please check it out

You were a late for the deadline so I cannot merge your pull request. But you can work on other issues .

Hey,I was assigned this as well as #84 3 days ago,so I have completed #84 now,I can work on this now.

Hey,I was assigned this as well as #84 3 days ago,so I have completed #84 now,I can work on this now.

You are assigned to this issue

Hey,I was assigned this as well as #84 3 days ago,so I have completed #84 now,I can work on this now.

Also, #84 issue was your 3rd issue you worked on right?

@aditisinghal1210 it is noticed that you are working on issue #104 as the moment so I'll unassign you from this issue. Once that issue is done please let me know I'll assign you to this issue.

Hey,I was assigned this as well as #84 3 days ago,so I have completed #84 now,I can work on this now.

Also, #84 issue was your 3rd issue you worked on right?

It was my second.


[kubectl-plugin] Add kubectl ray create cluster

Why are these changes needed?
Adds kubectl ray create cluster command.

Related issue number

Checks

[ ] I've made sure the tests are passing.
Testing Strategy

[x] Unit tests
[ ] Manual tests
[ ] This PR is not tested :(

Going to post Screenshot of manual test soon.

Screenshot of run:

BTW, we can try using RayClusterApplyConfiguration if importing that package doesn't result in a dependency conflict. It might be simpler than the current implementation of generating YAML files.

@MortalHappiness @andrewsykim I was able to use RayClusterApplyConfiguration instead of manually creating the RayCluster object, converting to a map, and then removing unnecessary fields. But I had do a workaround for rayStartParams since the applyconfigurations  wouldn't accept an empty string map by using default values for dashboard-host and metrics-export-port for headGroupSpec and workerGroupSpecs respectively.

@MortalHappiness can you do another review?


data structure.md

made a new pr with all changes asked for

Please add hacktoberfest accept label

why there is no hacktoberfest accepted tag
On Sat, 8 Oct 2022 at 12:01, Neeraj Kumar Mishra @.***>
wrote:

Merged #48 https://github.com/Nexengineer/DSA-PREP/pull/48 into master.
—
Reply to this email directly, view it on GitHub
https://github.com/Nexengineer/DSA-PREP/pull/48#event-7547556321, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/A3CFYSZ73JFX6UNSUGQYDWTWCEIMLANCNFSM6AAAAAAQ6HKUBY
.
You are receiving this because you authored the thread.Message ID:
@.***>


How do you specify an absolute path in Git where the file name contains spaces?

The section Supported links for Welcome pages details a link for an absolute path in Git as:
[text to display](/folder/target.md)
How do you specify an absolute path in Git where the file name contains spaces?
[With a space](/folder/target two.md) doesn't get converted to a link.
[Wrapped in angle brackets](</folder/target two.md>) also doesn't get converted to a link.
[URL escaped](/folder/target%20two.md) ends up with a link like https://instance.visualstudio.com/team-project/_git/repo?path=%2Ffolder%2Ftarget%2520two.md&version=GBmaster
I thought the URL encoded version worked at one point so this may be a regression.

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

ID: fa622358-f5bb-1f5c-177a-081a37b6acef
Version Independent ID: 72f7fd16-a822-66c8-3a34-8905645ce5f2
Content: Markdown syntax for files, widgets, and wikis - Azure DevOps
Content Source: docs/project/wiki/markdown-guidance.md
Product: devops
Technology: devops-collab
GitHub Login: @chcomley
Microsoft Alias: chcomley

Interestingly, URL escaping a relative link seems to work.
URL escaped relative link ends up with a link like https://instance.visualstudio.com/team-project/_git/repo?path=%2Ffolder%2Ftarget%20two.md&version=GBmaster

@johnbooze -- thank you for your detailed feedback.  Please try escaping the space with a backslash and let me know if that works for you:
[With a space](/folder/target\ two.md)

[Escaping the space](/folder/target\ two.md) doesn't work for me.  Ends up with a link like https://instance.visualstudio.com/team-project/_git/repo?path=%2Ffolder%2Ftarget%255C%2520two.md&version=GBmaster

@johnbooze -- thank you for the followup.  Please consider these resources:

Azure DevOps Services
Azure DevOps Support Bot
Azure DevOps on Stack Overflow

@chcomley -- please look into this issue.

Hi @johnbooze, Per the file naming conventions guidance, each file requires using dashes instead of spaces in the page title.
If you feel this isn't the case, I welcome you to ask the Developer Community. Select Report a problem, and then Azure DevOps. Complete the form and Submit. If you do so, please include a link to this issue, so I can follow up if there happens to be a required update. Thanks so much! You can also @mention me after this issue is closed. Thanks again.


Remove remaining feature flags

A very hacky solution yet tests pass. Fixes #242.

Left a few minor comments; looks great though! Thank you:)

I have addressed the comments. Please take a look again.


Fix button label meaning the opposite

label meant opposite, fixed.

Hi, thank you for the PR! Unfortunately, I will not be merging this because I feel the description you are changing it from is more accurate than the description you are proposing to change it to.


Adjust log processor to scrape correct log

The original cf-metrics was scraping for a crash log that is not available for rolling deployments, which makes up the majority of IDVA deployments. The log that is being used now does not contain meta information like the previous log so it is not possible to associate crashes with individual instances.
Example original log that was scraped:
OUT App instance exited with guid 64830a44-f116-1234-1234-9b3ca79dcc95 payload: {"instance"=>"e08ef3e1-3214-3214-4772-af66", "index"=>0, "cell_id"=>"cadc0ec5-8765-4e5f-4567-fa6a9a8e4fd7", "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 134", "crash_count"=>2, "crash_timestamp"=>1638477297383879944, "version"=>"b1cbca53-4532-44a8-6778-018fb3a9f58f"}

Example new log that is scraped:
OUT Process has crashed with type: "web"

This log has been generating on all crashes but most likely wasn't used for the lack of meta information. For the purpose of seeing crash metrics, it is more valuable since the previously used log is only available for default deployments.

Is there a way to keep the logic for apps that do produce the correct logs and app the new logic as a fallback.

Is there a way to keep the logic for apps that do produce the correct logs and add the new logic as a fallback?

I'm not sure since these this function is ran for all logs. It might be possible but seems like it would involve tampering with the way the main loop recognizes logs, which it doesn't at the moment. It just consumes a stream of logs.

Our goal with cf-metrics has always been to just "alert on the things". So if this implementation allows us to do that for crashes more reliably I'm all about it. To address @dzaslavskiy's concerns, I agree that it'd be nice to preserve the existing functionality and fallback to this more generic one, but from a functional standpoint, we never used cf-metrics as a source of truth anyways. When we get a crash alert -- my first instinct is to look directly at the app logs, not the cf-metrics logs. So it doesn't concern me too terribly much that we may "lose" some detail here. Thoughts @dzaslavskiy ?

Could we augment the data by querying the event api when a crash is found in the log?

This is possible but would require reworking the cf-metrics engine. Moving forward that would be the ideal solution, since the events log contains much more useful information for crashes.

For now, cf-metric only scrapes crashes based on the new changes with no preservation of existing functionality. Since the new change associates all crashes with the first instance, a mix between existing and new crash metric scrapes would result in an uninterpretable mess of instance crash metrics.


Weights are circularly shifted by 1

When we ran this darknet2caffe script, we saw that the weights of every convolutional layer were circularly shifted by 1, compared with what they should be. (We are comparing with a converter that was written in C).

use this newer version : https://github.com/ysh329/darknet2caffe 😄


bug: attempt to subtract with overflow in deterministic e2e fuzz test

Failed run: https://buildkite.com/risingwavelabs/pull-request/builds/16495#0186067b-b01f-4141-a000-b774deb3d275
2021-12-21T21:48:42.046294Z  INFO node{id=13 name="client"}:task{id=1406}: risingwave_sqlsmith::runner: Executing: CREATE MATERIALIZED VIEW stream_query AS WITH with_0 AS (SELECT true AS col_0 FROM (WITH with_1 AS (SELECT (INT '840877106') AS col_0, DATE '2021-12-14' - (INT '773712623') AS col_1, (FLOAT '50370876') AS col_2, (INTERVAL '1') AS col_3 FROM person AS t_2 GROUP BY t_2.city) SELECT DATE '2021-12-14' AS col_0 FROM with_1) AS sq_3 WHERE true GROUP BY sq_3.col_0 HAVING 'pw5VsWZW5I' NOT IN (OVERLAY('rMpgeO7L1N' PLACING 'mACEkaJBko' FROM (INT '1')), CASE WHEN true THEN 'yJwgVUEpv8' WHEN true THEN 'GY37otSjmH' WHEN false THEN substr('mfyDG9Gec1', (INT '0'), (INT '2147483647')) WHEN false THEN 'GIV3uiuXWE' WHEN max(true) FILTER(WHERE true) THEN '8kWsdBWxIs' ELSE '9s3e1k7YXH' END, 'kx4rhC2iQ5', 'mGG3XHLYCD', 'Tz3H0sGi4B', 'IzPBlkhRqw', substr('W7Jc3Vyufj', (INT '-2147483648')), 'wXe5WmXaWW')) SELECT TIMESTAMP '2021-12-14 21:48:42' AS col_0, TIMESTAMP '2021-12-20 09:57:47' AS col_1, (REAL '-2147483648') AS col_2 FROM with_0
thread '<unnamed>' panicked at 'attempt to subtract with overflow', src/expr/src/vector_op/substr.rs:22:25

I think I've also encountered addition overflow at some point. Can you keep an eye out for that as well? @kwannoel


Support pytorch 1.2.0

🚀 Feature

python
Python 3.6.4 (default, Jul 22 2019, 18:37:14)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import torch_geometric
Traceback (most recent call last):
File "", line 1, in
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_geometric/init.py", line 2, in
import torch_geometric.nn
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_geometric/nn/init.py", line 2, in
from .data_parallel import DataParallel
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_geometric/nn/data_parallel.py", line 5, in
from torch_geometric.data import Batch
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_geometric/data/init.py", line 1, in
from .data import Data
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_geometric/data/data.py", line 7, in
from torch_sparse import coalesce
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_sparse/init.py", line 2, in
from .coalesce import coalesce
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_sparse/coalesce.py", line 2, in
import torch_scatter
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_scatter/init.py", line 3, in
from .mul import scatter_mul
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_scatter/mul.py", line 3, in
from torch_scatter.utils.ext import get_func
File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_scatter/utils/ext.py", line 2, in
import torch_scatter.scatter_cpu
ImportError: /home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_scatter/scatter_cpu.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at7getTypeEN3c1013TensorOptionsE

It seems that torch_scatter doesn't work with torch 1.2.0
Motivation

Additional context

The package and the extensions run fine for PyTorch 1.2, but you need to rebuild them if your PyTorch version has changed.

Ok I will give it a try :) Thanks you very much for always answering that fast.

CONFIG:
Ubuntu 18.04
CUDA installed from: cuda_10.1.168_418.67_linux.run
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85
Python 3.6.4 (default, Jul 22 2019, 18:37:14)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
torch '1.2.0'
error: command '/usr/bin/nvcc' failed with exit status 1

error
Cleaning up...
Removing source in /tmp/pip-build-k3s1blyl/torch-scatter
Command "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-build-k3s1blyl/torch-scatter/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-bz55o6rl-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/thomas/.pyenv/versions/3.6.4/envs/pyg/include/site/python3.6/torch-scatter" failed with error code 1 in /tmp/pip-build-k3s1blyl/torch-scatter/
Exception information:
Traceback (most recent call last):
File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/req/req_install.py", line 878, in install
spinner=spinner,
File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/utils/init.py", line 707, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-build-k3s1blyl/torch-scatter/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-bz55o6rl-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/thomas/.pyenv/versions/3.6.4/envs/pyg/include/site/python3.6/torch-scatter" failed with error code 1 in /tmp/pip-build-k3s1blyl/torch-scatter/
You are using pip version 9.0.1, however version 19.2.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Do you have any idea how to solve that ?

CONFIG:
ubuntu 18.04
python 3.6.4
torch=1.2.0
cuda installed from cuda_10.1.168_418.67_linux.run
nvcc -V = release 9.1, V9.1.85
CMD:
pip install --verbose --no-cache-dir torch-scatter

RESULTS:
    error: command '/usr/bin/nvcc' failed with exit status 1
  Running setup.py install for torch-scatter ... error
Cleaning up...
  Removing source in /tmp/pip-install-m7y35awf/torch-scatter
Removed build tracker '/tmp/pip-req-tracker-ox2qhn54'
ERROR: Command errored out with exit status 1: /home/thomas/.pyenv/versions/3.6.4/envs/pyg/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m7y35awf/torch-scatter/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m7y35awf/torch-scatter/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-sqpbex0f/install-record.txt --single-version-externally-managed --compile --install-headers /home/thomas/.pyenv/versions/3.6.4/envs/pyg/include/site/python3.6/torch-scatter Check the logs for full command output.
Exception information:
Traceback (most recent call last):
  File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 188, in main
    status = self.run(options, args)
  File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 407, in run
    use_user_site=options.use_user_site,
  File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/_internal/req/__init__.py", line 58, in install_given_reqs
    **kwargs
  File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/_internal/req/req_install.py", line 959, in install
    spinner=spinner,
  File "/home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 931, in call_subprocess
    raise InstallationError(exc_msg)
pip._internal.exceptions.InstallationError: Command errored out with exit status 1: /home/thomas/.pyenv/versions/3.6.4/envs/pyg/bin/python3.6 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-m7y35awf/torch-scatter/setup.py'"'"'; __file__='"'"'/tmp/pip-install-m7y35awf/torch-scatter/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-sqpbex0f/install-record.txt --single-version-externally-managed --compile --install-headers /home/thomas/.pyenv/versions/3.6.4/envs/pyg/include/site/python3.6/torch-scatter

Do you have any idea how to solve this ?
Best tchaton

But it works perfectly fine with torch==1.1.0.
(pyg) ➜  Downloads pip install torch==1.1.0
Collecting torch==1.1.0
  Using cached https://files.pythonhosted.org/packages/69/60/f685fb2cfb3088736bafbc9bdbb455327bdc8906b606da9c9a81bae1c81e/torch-1.1.0-cp36-cp36m-manylinux1_x86_64.whl
Requirement already satisfied: numpy in /home/thomas/.pyenv/versions/3.6.4/envs/pyg/lib/python3.6/site-packages (from torch==1.1.0) (1.17.0)
ERROR: pytorch-lightning 0.4.6 has requirement torch==1.2.0, but you'll have torch 1.1.0 which is incompatible.
Installing collected packages: torch
  Found existing installation: torch 1.2.0
    Uninstalling torch-1.2.0:
      Successfully uninstalled torch-1.2.0
Successfully installed torch-1.1.0
(pyg) ➜  Downloads pip install torch-scatter
Collecting torch-scatter
  Using cached https://files.pythonhosted.org/packages/35/d4/750403a8aa32cdb3d2d05849c6a10e4e0604de5e0cc94b81a0d0d69a75f3/torch_scatter-1.3.1.tar.gz
Building wheels for collected packages: torch-scatter
  Building wheel for torch-scatter (setup.py) ... done
  Created wheel for torch-scatter: filename=torch_scatter-1.3.1-cp36-cp36m-linux_x86_64.whl size=2869936 sha256=544207e924b473c646be8e2330438281d616344d0374f217b80842a8313b1a7f
  Stored in directory: /home/thomas/.cache/pip/wheels/7f/21/0b/c42fa9353ceec5e87464599e470a03e4250ec667b4a392fa7d
Successfully built torch-scatter
Installing collected packages: torch-scatter
Successfully installed torch-scatter-1.3.1

It seems it has to do with scatter_cpu. Can't be too sure there.
>>> import torch
>>> from torch_scatter import scatter_max
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_scatter/__init__.py", line 3, in <module>
    from .mul import scatter_mul
  File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_scatter/mul.py", line 3, in <module>
    from torch_scatter.utils.ext import get_func
  File "/home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_scatter/utils/ext.py", line 2, in <module>
    import torch_scatter.scatter_cpu
ImportError: /home/thomas/.pyenv/versions/pyg/lib/python3.6/site-packages/torch_scatter/scatter_cpu.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at7getTypeEN3c1013TensorOptionsE

Our CI builds run just fine for PyTorch 1.2, but I believe this may be indeed a PyTorch issue. You should try to compile the official extension example and see if this works for you. If not, the PyTorch authors might be of better help than me.

What do you mean by "You should try to compile the official extension example and see if this works for you" ?
And the installation doesn't work also with other pytorch-* libraries needed for pytorch geometric.
Therefore, I am going to stick to torch 1.1.0 for now, and remove some features from pytorch-light as Experiement (from test_tube doesn't work properly).
Best,
T.C

I mean this repository which is the official example on how to extend PyTorch. We just use this API to build our subpackages. If the installation fails for the official example, this might be more of a PyTorch 1.2 issue than a PyG issue. I would very much appreciate it if you could have a try.

Hey, I met with the same problem when I upgraded my PyTorch from 1.0 to 1.2 and upgraded the PyG from 1.2 to 1.3 using pip install --upgrade torch-geometric.
So I just stayed with PyTorch==1.2 and PyG==1.2 (this works fine).
Any idea?

You sadly need to recompile all external extension packages.

Ooops yeah.
Following this issue, reinstall all the torch-scatter, torch-sparse and torch-cluster and then upgrade the PyG. It works. Thanks.