[get_service_class_or_none()] TypeError: argument of type 'NoneType' is not iterable

Seeing this on prod:
  | [2019-10-29 08:25:38,794: INFO/MainProcess] Received task: task.steve_jobs.process_message[9b4d1ddc-72e3-4bd8-8ff9-fb2cf96d8efb]
  | [2019-10-29 08:25:38,810: INFO/ForkPoolWorker-1] Copr build event, topic: org.fedoraproject.prod.copr.build.start
  | [2019-10-29 08:25:38,812: WARNING/ForkPoolWorker-1] Cannot get project for this build id: 1081435
  | [2019-10-29 08:25:38,819: ERROR/ForkPoolWorker-1] Task task.steve_jobs.process_message[9b4d1ddc-72e3-4bd8-8ff9-fb2cf96d8efb] raised unexpected: TypeError("argument of type 'NoneType' is not iterable")
  | Traceback (most recent call last):
  | File "/usr/lib/python3.7/site-packages/celery/app/trace.py", line 382, in trace_task
  | R = retval = fun(*args, **kwargs)
  | File "/usr/lib/python3.7/site-packages/celery/app/trace.py", line 641, in __protected_call__
  | return self.run(*args, **kwargs)
  | File "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/celery.py", line 155, in _inner
  | reraise(*exc_info)
  | File "/usr/local/lib/python3.7/site-packages/sentry_sdk/_compat.py", line 57, in reraise
  | raise value
  | File "/usr/local/lib/python3.7/site-packages/sentry_sdk/integrations/celery.py", line 150, in _inner
  | return f(*args, **kwargs)
  | File "/usr/local/lib/python3.7/site-packages/packit_service/worker/tasks.py", line 47, in process_message
  | return SteveJobs().process_message(event=event, topic=topic)
  | File "/usr/local/lib/python3.7/site-packages/packit_service/worker/jobs.py", line 218, in process_message
  | project
  | File "/usr/local/lib/python3.7/site-packages/packit/config.py", line 212, in _get_project
  | project = get_project(url=url, custom_instances=self.services)
  | File "/usr/local/lib/python3.7/site-packages/ogr/factory.py", line 83, in get_project
  | kls = get_service_class(url=url, service_mapping_update=service_mapping_update)
  | File "/usr/local/lib/python3.7/site-packages/ogr/factory.py", line 135, in get_service_class
  | url=url, service_mapping_update=service_mapping_update
  | File "/usr/local/lib/python3.7/site-packages/ogr/factory.py", line 118, in get_service_class_or_none
  | if service in url:
  | TypeError: argument of type 'NoneType' is not iterable

The get_service_class_or_none requires non-None url argument:
https://github.com/packit-service/ogr/blob/master/ogr/factory.py#L103
(The problem is in the code before the function call.)

Can we close this or transfer to packit/packit-service?


Hover content on every image of gallery is incorrect

In the search result page, the content displayed over the image during the hover state should be as follows:
Expected design

License icons on the top-left
No external links for on the work's name.

Want to work on this

I did the image grid layout last time. You want me to take care of this? I never touch the thumbnail hover, the scss looks pretty messy. I can either clean it up and just render whatever is necessary, or I can just remove the background gradient and hack the black background box with shadow in there. Also that markup doesn't have the image provider icon, should that be remove?

This issue is marked help wanted, feel free to send a PR @dos077.

Also linking creativecommons/vocabulary#208 fixing creativecommons/vocabulary#58.

Okay, did some quick fiddling around with the css. Removed the gradients and adjusted the padding to 8px(y) and 16px(x). Added a black background to the image title detail box, added the typography setting from the vocabulary pr, Source Sans, 13px size, and 19px line height. Still unclear about what to do with the search provider logo, it looks odd.

The logo must disappear from that place

@brenoferreira PR creativecommons/vocabulary#208 is merged.


Append the file name and start/end line to the function name to distinguish closures in the same file.

Using the address of its op_array is stricter, but this is probably more useful in most cases.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
We've detected an issue with your CI configuration that might affect the accuracy of this pull request's coverage report.
To ensure accuracy in future PRs, please see these guidelines.
A quick fix for this PR: rebase it; your next report should be accurate.

27 of 31 (87.1%)  changed or added relevant lines in 5 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.02%) to 78.645%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Lib/PhpInternals/Types/Zend/ZendFunction.php
11
13
84.62%

src/Lib/PhpInternals/Types/Zend/ZendOpArray.php
5
7
71.43%

Totals

Change from base Build<PHONE_NUMBER>:
0.02%

Covered Lines:
4482

Relevant Lines:
5699

💛  - Coveralls


GMT timestamps coming back in beforeRender

Hello,
I've come across an issue when trying to implement the before render function, I'm disabling datetimes that are less than the current timestamp, but the timestamp I get back from $dates are in GMT and not AEDT (my locale), is that expected?
I've tried manually setting the local:
// in app.js
moment.local('en-AU');

$scope.beforeRender = function ($view, $dates) {
  var today = (moment().startOf($view).unix()) * 1000;

  angular.forEach($dates, function(day) {
    day.selectable = (day.dateValue < today) ? false : true;
  });
}

Looking through the DateObject array for today we have:
0: DateObject
active: false
dateValue:<PHONE_NUMBER>000
display: "12:00 AM"
selectable: true

active: false
dateValue:<PHONE_NUMBER>000
display: "1:00 AM"
selectable: true

1424131200 and<PHONE_NUMBER> both match their display string, however its for GMT (http://www.epochconverter.com/)
1424134800
GMT: Tue, 17 Feb 2015 01:00:00 GMT
Your time zone: 2/17/2015, 12:00:00 PM GMT+11:00 DST
EDIT -
The way to get around this is to add the offset (same as you're doing in the directive), was this intended though i.e. is $data meant to be locale specific?
	$scope.filterDates = function ($view, $dates) {

		var today = (moment().startOf($view).unix()) * 1000;

		angular.forEach($dates, function(day) {
		  var tempDate = new Date(day.dateValue);
		  var newDate = new Date(tempDate.getTime() + (tempDate.getTimezoneOffset() * 60000));
		  day.selectable = (newDate.getTime() < today) ? false : true;
		});
	};

To be honest, this isn't a feature I use myself and I missed this ...um...behavior.
I'll have to think about it a bit. Has anyone else run into this?

No worries! I'm going to update the code for my own use case (cleaner for me), can always send a pull request pending community usage :+1:

Had a look into this further this morning, so when I say GMT I actually mean UTC, I think it makes sense to return the UTC value, especially for those who are storing the value inside a database.
So as an addition I've added another property to 'DateObject' called 'localeValue', which converts UTC back to you local timezone, figured I'd rather have access to this rather than implementing the function in each controller that uses the date :+1:
        var validProperties = ['dateValue', 'localeValue', 'display', 'active', 'selectable', 'past', 'future'];

          var getLocalTime = function getLocalTime(unixDate) {
            var tempDate = new Date(unixDate);
            return (tempDate.getTime() + (tempDate.getTimezoneOffset() * 60000));
          };

e.g.
                var dateValue = {
                  'dateValue': hourMoment.valueOf(),
                  'localeValue': getLocalTime(hourMoment.valueOf()),
                  'display': hourMoment.format('LT'),
                  'active': hourMoment.format('YYYY-MM-DD H') === activeFormat
                };


Add expect to injected vars in inline scripts.

This also refactors the CLIMock in the cli tests to use a builder pattern to make injecting stdin nicer.

:broken_heart: Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Start Time: 2021-08-13T15:02:50.831+0000

Duration: 8 min 1 sec

Commit: c9251e86ebcda1232b1275c5646d6b828e463882

Test stats :test_tube:

Test
Results

Failed
1

Passed
120

Skipped
0

Total
121

Trends :test_tube:

Test errors
Expand to view the tests failures
Test / network timings for chunked response – network timings for chunked response

no error details
Expand to view the stacktrace
 Error: expect(received).toBe(expected) // Object.is equality

Expected: 2
Received: 1
    at Object.<anonymous> (/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-365/src/github.com/elastic/synthetics/__tests__/plugins/network.test.ts:170:28)

Steps errors
Expand to view the steps failures

Runs the tests

Took 1 min 53 sec . View more details on here
Description: ./node_modules/.bin/jest --ci --reporters=default --reporters=jest-junit

Log output
Expand to view the last 100 lines of log output

[2021-08-13T15:09:22.185Z]
[2021-08-13T15:09:22.185Z] ><EMAIL_ADDRESS>build /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-365/src/github.com/elastic/synthetics
[2021-08-13T15:09:22.185Z] > tsc
[2021-08-13T15:09:22.185Z]
[2021-08-13T15:09:27.072Z] Timeout set to expire in 5 min 0 sec
[2021-08-13T15:09:28.251Z] Running in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-365/src/github.com/elastic/synthetics
[2021-08-13T15:09:43.912Z] + set +x
[2021-08-13T15:09:43.912Z] => nvm is already installed in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-365/.nvm, trying to update using git
[2021-08-13T15:09:44.483Z]
=> => Compressing and cleaning up git repository
[2021-08-13T15:09:44.483Z]
[2021-08-13T15:09:44.483Z] => Profile not found. Tried ~/.bashrc, ~/.bash_profile, ~/.zshrc, and ~/.profile.
[2021-08-13T15:09:44.483Z] => Create one of them and run this script again
[2021-08-13T15:09:44.483Z]    OR
[2021-08-13T15:09:44.483Z] => Append the following lines to the correct file yourself:
[2021-08-13T15:09:44.483Z]
[2021-08-13T15:09:44.483Z] export NVM_DIR="$HOME/.nvm"
[2021-08-13T15:09:44.483Z] [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[2021-08-13T15:09:44.483Z]
[2021-08-13T15:09:46.398Z] => Close and reopen your terminal to start using nvm or run the following to use it now:
[2021-08-13T15:09:46.398Z]
[2021-08-13T15:09:46.398Z] export NVM_DIR="$HOME/.nvm"
[2021-08-13T15:09:46.398Z] [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[2021-08-13T15:09:46.398Z] Found '/var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-365/src/github.com/elastic/synthetics/.nvmrc' with version <14.17.5>
[2021-08-13T15:09:46.660Z] v14.17.5 is already installed.
[2021-08-13T15:09:46.921Z] Now using node v14.17.5 (npm v6.14.14)
[2021-08-13T15:09:46.921Z] /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-365
[2021-08-13T15:09:47.017Z] Running in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-365/src/github.com/elastic/synthetics
[2021-08-13T15:09:47.339Z] + npm add --dev jest-junit
[2021-08-13T15:09:47.599Z] npm WARN install Usage of the `--dev` option is deprecated. Use `--also=dev` instead.
[2021-08-13T15:09:55.740Z] npm WARN<EMAIL_ADDRESS>No repository field.
[2021-08-13T15:09:55.740Z] npm WARN optional SKIPPING OPTIONAL DEPENDENCY<EMAIL_ADDRESS>(node_modules/fsevents):
[2021-08-13T15:09:55.740Z] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for<EMAIL_ADDRESS>wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
[2021-08-13T15:09:55.740Z]
[2021-08-13T15:09:55.740Z] +<EMAIL_ADDRESS>[2021-08-13T15:09:55.740Z] added 4 packages from 9 contributors and audited 789 packages in 7.111s
[2021-08-13T15:09:55.740Z]
[2021-08-13T15:09:55.740Z] 68 packages are looking for funding
[2021-08-13T15:09:55.740Z]   run `npm fund` for details
[2021-08-13T15:09:55.740Z]
[2021-08-13T15:09:55.740Z] found 2 vulnerabilities (1 moderate, 1 high)
[2021-08-13T15:09:55.740Z]   run `npm audit fix` to fix them, or `npm audit` for details
[2021-08-13T15:09:56.051Z] + ./node_modules/.bin/jest --ci --reporters=default --reporters=jest-junit
[2021-08-13T15:10:00.257Z]
[2021-08-13T15:10:00.257Z] Running without BrowserService
[2021-08-13T15:10:15.206Z] PASS __tests__/reporters/json.test.ts (14.222 s)
[2021-08-13T15:10:20.528Z] FAIL __tests__/plugins/network.test.ts (6.297 s)
[2021-08-13T15:10:20.528Z]   ● network › timings for chunked response
[2021-08-13T15:10:20.528Z]
[2021-08-13T15:10:20.528Z]     expect(received).toBe(expected) // Object.is equality
[2021-08-13T15:10:20.528Z]
[2021-08-13T15:10:20.528Z]     Expected: 2
[2021-08-13T15:10:20.528Z]     Received: 1
[2021-08-13T15:10:20.528Z]
[2021-08-13T15:10:20.528Z]       168 |     await Gatherer.stop();
[2021-08-13T15:10:20.528Z]       169 |     const netinfo = await network.stop();
[2021-08-13T15:10:20.528Z]     > 170 |     expect(netinfo.length).toBe(2);
[2021-08-13T15:10:20.528Z]           |                            ^
[2021-08-13T15:10:20.528Z]       171 |     expect(netinfo[1]).toMatchObject({
[2021-08-13T15:10:20.528Z]       172 |       url: `${server.PREFIX}/chunked`,
[2021-08-13T15:10:20.528Z]       173 |       status: 200,
[2021-08-13T15:10:20.528Z]
[2021-08-13T15:10:20.528Z]       at Object.<anonymous> (__tests__/plugins/network.test.ts:170:28)
[2021-08-13T15:10:20.528Z]
[2021-08-13T15:10:22.485Z] PASS __tests__/sdk/trace-metrics.test.ts
[2021-08-13T15:10:23.444Z] PASS __tests__/helper.test.ts
[2021-08-13T15:10:24.018Z] PASS __tests__/core/runner.test.ts (24.033 s)
[2021-08-13T15:10:24.969Z] PASS __tests__/reporters/junit.test.ts
[2021-08-13T15:10:25.549Z] PASS __tests__/reporters/base.test.ts
[2021-08-13T15:10:26.128Z] PASS __tests__/core/index.test.ts
[2021-08-13T15:10:28.060Z] PASS __tests__/index.test.ts
[2021-08-13T15:10:28.321Z] PASS __tests__/plugins/browser-console.test.ts
[2021-08-13T15:10:30.252Z] PASS __tests__/plugins/tracing.test.ts
[2021-08-13T15:10:32.173Z] PASS __tests__/core/gatherer.test.ts
[2021-08-13T15:10:32.173Z] PASS __tests__/plugins/performance.test.ts
[2021-08-13T15:10:33.562Z] PASS __tests__/plugins/plugin-manager.test.ts
[2021-08-13T15:10:33.824Z] PASS __tests__/config.test.ts
[2021-08-13T15:10:35.222Z] PASS __tests__/dsl/journey.test.ts
[2021-08-13T15:10:35.796Z] PASS __tests__/core/browser-service.test.ts
[2021-08-13T15:10:36.369Z] PASS __tests__/core/logger.test.ts
[2021-08-13T15:10:36.630Z] PASS __tests__/sdk/trace-processor.test.ts
[2021-08-13T15:10:48.862Z] PASS __tests__/cli.test.ts (48.446 s)
[2021-08-13T15:10:48.863Z]
[2021-08-13T15:10:48.863Z] Test Suites: 1 failed, 19 passed, 20 total
[2021-08-13T15:10:48.863Z] Tests:       1 failed, 106 passed, 107 total
[2021-08-13T15:10:48.863Z] Snapshots:   11 passed, 11 total
[2021-08-13T15:10:48.863Z] Time:        48.887 s
[2021-08-13T15:10:48.863Z] Ran all test suites.
[2021-08-13T15:10:49.956Z] Post stage
[2021-08-13T15:10:49.981Z] Recording test results
[2021-08-13T15:10:50.071Z] [Checks API] No suitable checks publisher found.
[2021-08-13T15:10:50.204Z] Stage "E2e Test" skipped due to earlier failure(s)
[2021-08-13T15:10:50.279Z] Stage "Release" skipped due to earlier failure(s)
[2021-08-13T15:10:50.313Z] Stage "Release" skipped due to earlier failure(s)
[2021-08-13T15:10:50.391Z] Stage "Release" skipped due to earlier failure(s)
[2021-08-13T15:10:50.709Z] Running on Jenkins in /var/lib/jenkins/workspace/nt-rum_elastic-synthetics_PR-365
[2021-08-13T15:10:50.790Z] [INFO] getVaultSecret: Getting secrets
[2021-08-13T15:10:50.844Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2021-08-13T15:10:51.825Z] + chmod 755 generate-build-data.sh
[2021-08-13T15:10:51.825Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-365/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-365/runs/1 FAILURE 480721
[2021-08-13T15:10:51.825Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-rum/elastic-synthetics/PR-365/runs/1/steps/?limit=10000 -o steps-info.json

/test


Minimum month to render not working properly

This can be seen in the example http://clauderic.github.io/react-infinite-calendar/#/basic-settings/min-date.
Min month is Feb, but Jan still being rendered.

 Sorry about that, was an oversight on my part when refactoring 😅 Fixed in 2.1.0!


Cannot get a model prefixed with a namespace from /v1/models/{model} endpoint

What is the issue?
My initial goal is to check if specific model is available using Ollama API.
I use OpenAI library github.com/sashabaranov/go-openai to do that.
The problem is when I try to get models which are not present in the main catalog and have an author prefix, I'm getting 404 and non-JSON response like if the routing is failing.
To eliminate the possibility of the library bug I tried to do the same with CURL.
The first thing I did is requests full list of models to be sure that the model is really in the list:
curl http://localhost:11434/v1/models

which resulted in the following response:
{"object":"list","data":[{"id":"T-lite-instruct-0.1.Q4_K_M.gguf:latest","object":"model","created":1730118522,"owned_by":"library"},{"id":"x/llama3.2-vision:11b-instruct-q8_0","object":"model","created":1729612391,"owned_by":"x"},{"id":"mannix/llama3.1-8b-lexi:q8_0","object":"model","created":1729272492,"owned_by":"mannix"},{"id":"llama3.2:3b-instruct-q4_K_M","object":"model","created":1727650425,"owned_by":"library"},{"id":"reader-lm:1.5b-q6_K","object":"model","created":1727092629,"owned_by":"library"},{"id":"qwen2:7b-instruct-q4_K_M","object":"model","created":1727092627,"owned_by":"library"},{"id":"phi3:14b-medium-4k-instruct-q4_K_M","object":"model","created":1727092620,"owned_by":"library"},{"id":"nuextract:3.8b-q4_K_M","object":"model","created":1727092619,"owned_by":"library"},{"id":"hermes3:8b-llama3.1-q6_K","object":"model","created":1727092618,"owned_by":"library"},{"id":"nomic-embed-text:latest","object":"model","created":1727092617,"owned_by":"library"},{"id":"nemotron-mini:4b-instruct-q4_K_M","object":"model","created":1727092615,"owned_by":"library"},{"id":"mxbai-embed-large:latest","object":"model","created":1727092614,"owned_by":"library"},{"id":"mistral-nemo:12b-instruct-2407-q4_K_M","object":"model","created":1727092613,"owned_by":"library"},{"id":"llama3.1:8b-instruct-q6_K","object":"model","created":1727092609,"owned_by":"library"},{"id":"gemma2:9b-instruct-q4_K_M","object":"model","created":1727092603,"owned_by":"library"},{"id":"gemma2:27b-instruct-q4_K_M","object":"model","created":1727092601,"owned_by":"library"},{"id":"deepseek-coder-v2:16b-lite-instruct-q4_K_M","object":"model","created":1727092600,"owned_by":"library"},{"id":"codellama:13b-instruct-q4_K_M","object":"model","created":1727092599,"owned_by":"library"},"id":"codegemma:latest","object":"model","created":1727092598,"owned_by":"library"},{"id":"phi3:3.8b-mini-instruct-4k-q4_K_M","object":"model","created":1713898146,"owned_by":"library"}]}

So here's the model I wanted to request: {"id" :"mannix/llama3.1-8b-lexi:q8_0","object":"model","created":1729272492,"owned_by":"mannix"}
curl http://localhost:11434/v1/models/mannix/llama3.1-8b-lexi:q8_0

No luck:
404 page not found%

The problem is very obvious if you know how back-end works. It looks really like a routing problem.
The obvious solution for me was to encode the value to remove the / character from the URL:
curl http://localhost:11434/v1/models/mannix%2Fllama3.1-8b-lexi%3Aq8_0

I've got an error again:
404 page not found%

To ensure that I'm using correct endpoint, I've tried with another model:
curl http://localhost:11434/v1/models/qwen2:7b-instruct-q4_K_M

It worked:
{"id":"qwen2:7b-instruct-q4_K_M","object":"model","created":1727092627,"owned_by":"library"}

When I request non-encoded model ID, Ollama logs show this:
ollama             | [GIN] 2024/11/06 - 15:59:11 | 404 |      13.715µs |      <IP_ADDRESS> | GET      "/v1/models/mannix/llama3.1-8b-lexi:q8_0"

When I request encoded model ID, Ollama logs show this:
ollama             | [GIN] 2024/11/06 - 15:58:01 | 404 |      15.239µs |      <IP_ADDRESS> | GET      "/v1/models/mannix/llama3.1-8b-lexi:q8_0"

Which is basically the same result, so I guess the reason of a failure may be in the fact that URL is being decoded before matching the route for some reason.
Most likely the same should be applicable for all previous Ollama versions and not only 0.4.0-rc6
OS
Docker
GPU
AMD
CPU
AMD
Ollama version
0.4.0-rc6

I've worked around my problem by requesting all models and searching locally, but this isn't the only case for requesting a model, so it should be possible to request such models too.

Is using the OpenAI compatibility endpoint a requirement?
$ curl -s http://localhost:11434/api/show -d '{"model":"mannix/deepseek-coder-v2-lite-instruct:q5_k_m"}' | jq -S
{
  "details": {
    "families": [
      "deepseek2"
    ],
    "family": "deepseek2",
    "format": "gguf",
    "parameter_size": "15.7B",
    "parent_model": "",
...

@rick-github It is preferable since the OpenAI related tools are usually well documented.
When starting that pet project I was looking for an Ollama specific SDK for Go, but didn't find anything good at the time. My first thought was to check Ollama itself since it's probably using its own API from CLI. But I didn't find anything documented, only the sources and I didn't have much time to research how it works.
If you can recommend a good library for Go to work with Ollama, please let me know. I'll check it out.


Create test files in seperate folder & cleanup before image build

We are currently shipping our docker images with files left over from testing in the CI flow.
This PR places all testfiles in a separate folder and deletes them after the CI tests so that they are not shipped with the image.

@matmair LGTM, nice idea thanks

@SchrodingersGat currently looking into the image more so I found a few things we should not/do not need to ship


fix: add /lib to LD_LIBRARY_PATH upon activation

Checklist

[x] Used a personal fork of the feedstock to propose changes
[x] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

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

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found some lint.
Here's what I've got...
For recipe/meta.yaml:

Selectors are suggested to take a <two spaces>#<one space>[<expression>] form. See lines [47, 59]

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


ci: Migrate to bionic environment

Migration guide: https://docs.travis-ci.com/user/reference/bionic/#environment-common-to-all-ubuntu-1804-images

Why not automatically build the documentation and publish it too? :)
before_deploy:
  - cd demos
  - npm install
  - npm install -g @angular/cli
  - ng build --dist

deploy:
  provider: pages
  skip_cleanup: true
  github_token: $GITHUB_TOKEN  # Set in the settings page of your repository, as a secure variable
  keep_history: true
  local_dir: demos/dist/angular-mdc-web/
  on:
    branch: master

Great! 😄
I'm not sure if the paths are correct but it should work :)

@trimox, I believe it's not bionic's or xenial's fault.
I run tests maybe about two hours ago and it worked. Now it's failing for me too.


Add errors from provider and persister to daily stats

Task/Issue URL: https://app.asana.com/0/488551667048375/1206158813217559/f
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

develop

#4095   👈

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @cmonfortep and the rest of your teammates on  Graphite


EfficientViT: Enhanced Linear Attention for High-Resolution Low-Computation Visual Recognition

hello! Could you please release the code of EfficientViT: Enhanced Linear Attention forHigh-Resolution Low-Computation Visual Recognition? thanks

i find it. sorry


Prevent error due to onChange firing after destroy() is called

If destroy() is called on a flatpickr instance after it closes but before the 300ms onChange timeout, then triggerEvent will throw an error when it eventually looks for onChange hooks, because destroy() removes the config. This PR fixes that problem.

Great work, thanks @IceCreamYou ! :+1:


Custom decorators using class validator

Does MikroORM allow the querying of entities inside a custom decorator using class validator. For instance like this

When i execute the above code out, i get an error "Cannot read property 'findOne' of undefined"
So am wondering if MikroORM does support querying of entities inside custom decorator using class validator.
The code that executes the custom decorator is this

I will highly appreciate your assistance

Well, this is not about MikroORM support, this does not make sense in general. What is this inside that context? How would he repository instance get inside that context? That is the error you are seeing - you try to execute a method on repository that is not there.

Well, this is not about MikroORM support, this does not make sense in general. What is this inside that context? How would he repository instance get inside that context? That is the error you are seeing - you try to execute a method on repository that is not there.

Thank you so much, any idea how i would make database queries in that context?

Thank you so much, any idea how i would make database queries in that context?

Take a look to https://github.com/nestjs/nest/issues/528


Official Guide on how to structure Flask application

I've just learned that many people are learning "how to structure Flask application" with this post: https://www.digitalocean.com/community/tutorials/how-to-structure-large-flask-applications via https://github.com/lepture/authlib/issues/8#issuecomment-364630521
This guide however it really a bad example and many people new to Flask are learning from it. I'd like to create a guide on this topic in the official docs. Here is my thoughts:

Use MVC pattern
Use factory pattern
Another simple example on other folder structure

app/
   __init__.py
   templates/
   models/
   controllers/  (or other names)

Real MVC is very uncommon in webapps nowadays, even more so in Flask apps. So talking about MVC may confuse people. Especially since what's usually the controller is called a "view function" in Flask.
I'd rather point to some well-structured example applications than blessing one single way of doing it as the right way. Or maybe just point out some basics in a clearer way, e.g. how to properly use an app factory etc.

Actually I don’t call it controllers myself, that is why I left a message “or other names”.
The problem is that bad example has a better SEO. :(
For advanced developers, flexible is a good thing. But for new people, a fixed guide would be better. If you don’t give them, they will find them on Google which usually shows the bad ones.

I'm running into this while rewriting the tutorial. The users reading the tutorial are the ones most in need of seeing a well structured app with the factory and blueprints, but that adds a lot of up front explanation and boilerplate that looks confusing. It feels like I'm sacrificing the "quick and easy to get started" idea, which is one of Flask's selling points that brought in those new users.

That tutorial is definitely lacking in explanation and clarity in general. Specifically for layout, whether using a factory or "import last", most tutorials are missing the why: because it avoids circular imports and is more reusable.
For reference, I divide my app up by components, rather than grouping all models, views, etc. I find it easier to work with all realated objects in relatively small folders, especially once projects get very big.
project/
  flaskr/
    __init__.py  # contains factory and extensions
    auth/
      __init__.py  # contains blueprint
      models.py
      forms.py
      views.py
    blog/
      ...
    templates/
  setup.py

I would avoid putting lots of stuff into __init__.py in the tutorial.

I'm running into this while rewriting the tutorial. The users reading the tutorial are the ones most in need of seeing a well structured app with the factory and blueprints, but that adds a lot of up front explanation and boilerplate that looks confusing. It feels like I'm sacrificing the "quick and easy to get started" idea, which is one of Flask's selling points that brought in those new users.
@davidism

I think the quick start and a tutorial are two different things. The quick start is the minimal amount to start the app, i.e, writing a short app and running flask run. I think it makes sense for the tutorial to aim for people who want to learn how to structure their app correctly. In the tutorial case it makes sense to add more detail and isn't exactly a quick start. The 0.12 tutorial isn't really a quick start either.

@ThiefMaster Yeah, I'm keeping things out of init.
Another point of reference, the Mega Tutorial uses the "import last" pattern as well as putting stuff in init.

Regarding small/quick app and anything bigger it'd be a good idea to make it clear that single-file apps are fine for small things where you have a few routes and that's it. No need for blueprints etc. either. And that as soon as you want to do something bigger, you should start with a proper Python package, separate files, blueprints, etc.

I'm also rewriting the quickstart, but that's more of an overview of concepts and common API. You don't end up with an app at the end of it.
My current plan for the tutorial is to start minimal, a single file with no auth, validation, or templates, explain when that's useful, then move to a package.

@davidism Would you at least end up with one route displaying "Hello World"?

Also mention here. There is a very popular "A simple Flask boilerplate app with SQLAlchemy, Redis, User Authentication, and more": https://github.com/hack4impact/flask-base
This one has so many stars while actually it is a very bad practice. Those things defined in the root __init__.py will cause a cyclic dependency sooner or later. If we don't keep a suggested folder structure, the bad one would become a "best practice".

There are many low quality tutorials, I run into them constantly while answering on Stack Overflow.
The most we can realistically do is make our docs and examples as clear as possible. This will be an ongoing project, I'm only focusing on the a few docs for 1.0.

Not to say those projects and tools are bad, but the issue is that they're found by new users as a shortcut to learning, when they're really meant for experienced users who want to automate more.

I learned Flask from this book, Flask Web Development Developing Web Applications with Python and the companion code flasky. The example put db in root __init__.py.
Thanks for the tips.

When I first started to use Flask I came across a blog post on structuring the Flask app for bigger projects. This too put the db in the root __init__.py.

This one has so many stars while actually it has a very bad practice. Those things defined in the root init.py will cause a cyclic dependency sooner or later.

Actually, I got into a pretty heated discussion with someone about how that's a bad example, because they refused to restructure the application, but had an issue with exactly that cyclic dependency issue.
I think a good solution is to, somewhere where the users first open up the Flask website, put a list of curated examples. That way, users can still follow the tutorial on the website as well as having access to some good examples.

@lepture I think this will be covered in the new tutorial. Can we close this for #2513?

FYI, I wrote a post to share my folder structures: https://lepture.com/en/2018/structure-of-a-flask-project

@davidism I hate to give bad feedback but honestly I have been going through the tutorial and I find the Application factor to be incredibly confusing.  It may be a great pattern later on when building Flask apps but it seems quite complex and you don't really go into a lot of reasoning as to WHY its needed.
I am new to Flask but not Python and dealing with import errors when trying to modify the tutorial codebase to suit my own purposes had me wanting to pull my hair out.
I think tutorials are best when they start simple and add things in layers.  You could have started with the sub-optimal way to do things by statically declaring the Flask object and then added examples showing the factory pattern.
To be honest, the tutorial has kind of given be a bad taste for Flask, and I'm considering moving to Django. :(

@TimothyBramlett the thing mostly calling the factories is your WSGI server, which I agree really needs to be explained more, as a lot of people are used to frameworks being an "all-in-one" webserver and web framework, which Flask isn't.

@lepture : Flask-Full ([https://github.com/gofynd/flask-full]) is a boilerplate framework on top of flask for developing large applications using flask. It has in built support for shell commands, celery, websocket, eventlet, sqlalchemy, mongoengine, signals and rst docs. One can also have separate staging, production config.

"mongo" is where I stopped reading...

i have not run through the new tutorial yet so i can’t exactly comment in detail. but what i will say is understanding the application factory and why to use it, does carry overhead for people new to using flask. so it definitely should be explained well.
the tutorial previously did not use the application factory pattern and it did start from the ground up to introduce users to circular imports and discussed how the app factory pattern helps to avoid these.
if im not mistaken many people were using the tutorial with the idea that it was best practices. which meant that people were running into circular import errors quite frequently. and this is why the devs decided to start actually adding best practices to it; like the app factory and like the setup.py script.
also because this a closed issue, if there are outstanding issues with the tutorial lets open up new issues for that. @TimothyBramlett i’d encourage you to open up a new issue, if there’s not already one. it’s a very valid point

@neerajshukla1911 please don't initialize your extension in the root __init__.py, sooner or later you will face a cyclic dependencies problem. Check out why: https://lepture.com/en/2018/structure-of-a-flask-project

I have a request - the tutorial describes a database (sqlite) backed application. Therefore, I am assuming that most people are interested in a tutorial that demonstrates a database backed application.
However, instead of using sqlite3 directly, I believe that the tutorial should be using flask-sqlalchemy.
Using flask-sqlalchemy is not more complex than using sqlite3 directly, however it will eliminate the next step of people searching for how to use sqlalchemy to connect to a non-sqlite database. In reality, people dont built sqlite backed application.. but instead using some kind of a relational db or mongo.
In fact, this is so important that the official tutorial has dedicated a section to showing how NOT to configure sqlalchemy (http://flask.pocoo.org/docs/1.0/patterns/appfactories/#factories-extensions). Stackoverflow is full of people asking very basic questions on how to setup sqlalchemy in the right way.
My proposal results in no increase in complexity of the tutorial - the user today has to install sqlite3 anyways. It just uses the most popular library (which most people will try to use unsuccessfully anyway).

The tutorial will not be using extensions. Extensions have their own examples based off the tutorial, although they probably all need updating at this point.
Re: other sections in docs, the docs have a lot of things, and I can only get to so many. You've pointed to the patterns section, not the tutorial section. There are plenty of overlapping parts that are slightly out of sync now, if you'd like to improve those in the style of other sections I've edited, go for it.

thank you for replying. I do think that it is already using an extension - sqlite3. I would not have suggested this, if the tutorial was one without any database implication.
If you look at it, there is already upfront complexity coming from teardown_appcontext (why do you need to close the database, etc). If you think about it, using flask-sqlalchemy will actually reduce the need to understand/worry about this (since it will attach teardowns inside the library itself).
With the happy consequence that, going forward, the learner continues to use this pattern with any other database they use. This is such a big issue that sqlalchemy clarifications are kind of present all over the documentation anyway.
Please do think about it. The reality is that your tutorial is good that it reflects real world usage (database). There is no harm down in reducing library complexity by using the most popular extension .. that people will end up using anyway!

sqlite3 is not a flask extension.


Add error handling for logical device creation

Add error handling for PhysicalDevice::open using the Vulkan return codes.
Early feedback appreciated!
[WIP] Implement remaining backends

bors r+


[main-dl to main] Folder restructuring and add top status bar.

Refactored grid component folder

datasource folder storing duckGridDataStore.ts

All functions renamed to .ts script inside lib

(Announcement) header component

#31


GitHub status payload has invalid url

When a status is set on the commit, a URL is provided with it. However this URL appears to be broken:
{
  "id":<PHONE_NUMBER>,
  "sha": "11426f2c689a6a7ccb78a6c6e366ce040e5f797d",
  "name": "j2sol/demobrigade",
  "target_url": "http://<IP_ADDRESS>:32586/log/j2sol/demobrigade/id/11426f2c689a6a7ccb78a6c6e366ce040e5f797d",
  "context": "brigade",
  "description": "Brigade build passed",
  "state": "success",

That IP and port is indeed the exposed service for the Brigade gateway service, but that URL results in a 404.

Good catch. We removed that endpoint, and should fix that code.


added cvat_worker_chunk service in docker-compose.external_db.yml

Motivation and context
There was an oversight in the docker-compose.external_db.yml file where the newly added service, cvat_worker_chunks, was not configured to extend the external database environment variables. This resulted in the cvat_worker_chunks container failing to start properly, as it was stuck in an infinite wait state for a non-existent database connection.
Consequently, jobs failed to open, and attempting to access them repeatedly caused the Data API to return a 429 status code.
An existing issue related to this problem was reported here: https://github.com/cvat-ai/cvat/issues/8846. However, the author closed the issue without submitting a pull request to resolve it.
How has this been tested?
Checklist

[x] I submit my changes into the develop branch
[ ] I have created a changelog fragment
[~] I have updated the documentation accordingly
[~] I have added tests to cover my changes
[x] I have linked related issues (see GitHub docs)
[ ] I have increased versions of npm packages if it is necessary
(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

Summary by CodeRabbit

New Features

Introduced a new service for improved chunk processing in the CVAT application deployment.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.90%. Comparing base (d966c1e) to head (28cef70).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8871      +/-   ##
===========================================
+ Coverage    73.88%   73.90%   +0.02%
===========================================
  Files          408      408
  Lines        44108    44108
  Branches      3986     3986
===========================================
+ Hits         32587    32597      +10
+ Misses       11521    11511      -10

Components
Coverage Δ

cvat-ui
78.38% <ø> (+0.04%)
:arrow_up:

cvat-server
70.09% <ø> (ø)

Thank you for contributing into the project!


sudo startxfce4 showing black screen after startup

name: xenial
encrypted: no
Entering /mnt/stateful_partition/crouton/chroots/xenial...
crouton: version 1-20220111101058~master:a9eafaee
release: xenial
architecture: amd64
targets: touch,xfce
host: version 15054.98.0 (Official Build) stable-channel hatch
kernel: Linux localhost 4.19.254-13653-ga5ef616743fe #1 SMP PREEMPT Wed Oct 5 13:31:22 PDT 2022 x86_64 x86_64 x86_64 GNU/Linux
freon: yes
Unmounting /mnt/stateful_partition/crouton/chroots/xenial...
sudo startxfce4  showing black screen after pressing enter!
Log:
ibcras/cras_client.c: In function 'request_floop_ready':
libcras/cras_client.c:1827:14: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
if (req == (struct floop_request *)tag)
^
libcras/cras_client.c: In function 'request_floop':
libcras/cras_client.c:4209:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
cras_fill_request_floop(&msg, params, (uint64_t)&req);
^
libcras/cras_client.c: At top level:
cc1: warning: unrecognized command line option '-Wno-int-in-bool-context'
/usr/bin/ld: cannot find -lcras
collect2: error: ld returned 1 exit status
Failed to complete chroot setup.

Your update issues are #4804; hopefully once you're able to update, xorg will start working again (if not, please re-open)


GH-43618: [Packaging][Python] Fix vcpkg version detection in macOS wheel build jobs

Rationale for this change
.env is a shell script. We can use VCPKG=... # comment form in a shell script but our handmade VCPKG value in .env detection doesn't care about the case.
What changes are included in this PR?
Use shell instead of handmade detection.
Are these changes tested?
Yes.
Are there any user-facing changes?
No.

GitHub Issue: #43618

@github-actions crossbow submit wheel-macos-big-sur-cp310-arm64

@github-actions crossbow submit wheel-macos-*

Neat! Nice fix @kou !

@github-actions crossbow submit wheel-macos-*

Woohoo! Thanks a lot @kou !


Lighter color for matrix boxplot in overview mode

Select boxplot visualization type for matrix column
Switch to overview

Expected
Gray instead of black for bars

Move issue, because the level of detail is not part of LineUp.
See https://github.com/Caleydo/taggle/issues/131


NTR: Coffin-Siris syndrome 7

Should be a child of Coffin-Siris syndrome. See https://www.omim.org/entry/618027

MONDO_0054831


Mockup users homepages

Three users types

Regular users
Club admin
Super admin

https://www.figma.com/file/ZAUlxKGL0u21eFvtJW5N8y/Find-UH-Clubs?type=design&node-id=1669-162202&mode=design&t=nS846RpWYGIP3HMK-0


Text not responsive

The text is not responsive in mobile

which text is not responsive

which text is not responsive

hero section text ,it is large in mobiles

Someone is working on home page, if it is still not responsive you can work on it


Forwarding not working

htaccess code incorrect it seems:
www.esolia.com/about is forwarding to:
esolia.comabout

Corrected with:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]


Expose WebAdmin server port, so ephemeral port can be used and discovered

NetflixOSS » karyon » karyon-pull-requests #7 SUCCESS
This pull request looks good


(docs): Managed Lambda layers refactoring

Feature or Bugfix

Refactoring

Detail

Refactor the managed Lambda layers docs page to show all regions

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-pDO66x4b9gEu
Commit ID: 568b5c890ab82d348e5bd0834bbd772d03658004
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-pDO66x4b9gEu
Commit ID: 5a95516dd40cc8ae15daecb4e1d4d36728d1cc09
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: GitHubCodeBuild8756EF16-pDO66x4b9gEu
Commit ID: 6d7b324b2045d8c7271007bae4a88c5644f3e707
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


Whitelist Spring MVC RestController

Current SpringCollector checks only for @Controller annotation. Can you please add @RestController as part of CONTROLLER_ANNOTATION?

Created a pull request for the same.
https://github.com/calrissian/rest-doclet/pull/13

Sorry, for not getting on this sooner.  Your pull request has been merged.


Android P2P Replication not working

According to a forum post, P2P Replication (tested via 2 emulators, nexus 5 and 6) doesn't work.
One thing that I quickly found out is the Router class doesn't route _session message right based on the current master as of 01/20 (0c502e9a3abe20126596f642bf7fac6570f8e04b):
Env: A listener running on port 10000. A redirection is set as redir add tcp:5000:10000
Test URL: http://<IP_ADDRESS>:5000/db/_session
Result: {"error":"not_found","reason":"Router unable to route request to do_GET_Document_session"}

With regards to this bug, is there a quick fix-around for this?
Thanks.

@steffar  So far, we could not find time to investigate this issue. We will try to investigate this issue as soon as possible. Thank you for your patience.

Have you solve this problem? I also really interested in peer-to-peer replication on Android.

@AlexInHFUT As many community developers are interested in peer-to-peer feature, we will investigate this issue as soon as possible. Thank you very much for your patience.

Sorry I clicked a wrong button. I didn't mean to close the issue. The _session message is sent only when there is an authenticator set to the replicator. So I think if there is no authenticator, the android P2P should be working just fine. We will need to fix the _session message anyway.

Closing this issue. Please follow these 2 issues instead:
https://github.com/couchbase/couchbase-lite-java-core/issues/426
https://github.com/couchbase/couchbase-lite-java-core/issues/427

I took the advice mentioned in #497 with regards to the authentication and the replicator:
"The _session message is sent only when there is an authenticator set to the replicator. So I think if there is no authenticator, the android P2P should be working just fine. "
I tried omitting the authenticator from the replicator, but the LiteListener() requires allowedCredentials.  Following is the constructor of LiteListener():
new LiteListener(manager, suggestedListenPort, allowedCredentials)
I tried setting the allowedCredentials to null when initialising the LiteListener on the server, and not setting any authentication credentials on the peer, but I get the warning authHeader is null in the server, while the peer client gets a 404 not found error.
I also tried setting the basic authentication credentials in the URL (as mentioned in http://developer.couchbase.com/mobile/develop/guides/couchbase-lite/native-api/replication/index.html), however in this case I also get the 404 error.
Can you please advise how the authentication can be switched off?

#426 Error when sending /db/_session message to Router was fixed and merged in master yesterday.  Could you please try this with master branch?

I have tested this issue using the master branch on a Couchbase device A
(serving as the server) and using both 1.0.3 and 1.0.4 on a peer client
device B.
Using 1.0.4 on the peer I don't get the 404 not found error  but I get
a "Cannot
parse version code" error (on 1.0.3 I do get the 404 error) I don't think
the sync is working correctly because I get an error "PullerInternal
stopGraceful.run() finished".
Following is the stack trace:
02-14 08:32:57.730    1710-1710/couchbase.examples.com.couchbasemobilepeer
E/CBLite? Cannot parse version code:
02-14 08:32:57.730    1710-1710/couchbase.examples.com.couchbasemobilepeer
E/CBLite? Cannot parse version code:
02-14 08:32:57.960    1710-1710/couchbase.examples.com.couchbasemobilepeer
I/HelloWorld? PullReplication
02-14 08:32:57.960    1710-1710/couchbase.examples.com.couchbasemobilepeer
I/HelloWorld? PushReplication
02-14 08:32:58.200    1710-1710/couchbase.examples.com.couchbasemobilepeer
D/? HostConnection::get() New Host Connection established 0xb8aea6f0, tid
1710
02-14 08:32:58.440    1710-1758/couchbase.examples.com.couchbasemobilepeer
E/Sync? com.couchbase.lite.replicator.ReplicationInternal$4@b1064220
checkSessionAtPath() response: {userCtx={roles=[_admin], name=null},
ok=true}
02-14 08:32:58.460    1710-1710/couchbase.examples.com.couchbasemobilepeer
W/EGL_emulation? eglSurfaceAttrib not implemented
02-14 08:32:58.460    1710-1710/couchbase.examples.com.couchbasemobilepeer
D/OpenGLRenderer? Enabling debug mode 0
02-14 08:32:58.510    1710-1758/couchbase.examples.com.couchbasemobilepeer
W/Sync? com.couchbase.lite.replicator.PullerInternal@b1019d48: starting
ChangeTracker with since=null mode=OneShot
02-14 08:32:58.510    1710-1758/couchbase.examples.com.couchbasemobilepeer
W/Sync? com.couchbase.lite.replicator.PullerInternal@b1019d48: started
ChangeTracker com.couchbase.lite.replicator.ChangeTracker@b1064538
02-14 08:32:58.570    1710-1762/couchbase.examples.com.couchbasemobilepeer
W/ChangeTracker? com.couchbase.lite.replicator.ChangeTracker@b1064538:
Change tracker calling stop (OneShot)
02-14 08:32:58.570    1710-1762/couchbase.examples.com.couchbasemobilepeer
W/ChangeTracker? com.couchbase.lite.replicator.ChangeTracker@b1064538:
Change tracker calling changeTrackerStopped, client:
com.couchbase.lite.replicator.PullerInternal@b1019d48
02-14 08:32:58.580    1710-1764/couchbase.examples.com.couchbasemobilepeer
W/ChangeTracker? com.couchbase.lite.replicator.ChangeTracker@b1064538:
Change tracker not calling changeTrackerStopped, client == null
02-14 08:32:58.580    1710-1764/couchbase.examples.com.couchbasemobilepeer
E/Sync? PullerInternal stopGraceful.run() finished
On Fri, Feb 13, 2015 at 7:42 PM, Hideki Itakura<EMAIL_ADDRESS>wrote:

#426 https://github.com/couchbase/couchbase-lite-android/issues/426
Error when sending /db/_session message to Router was fixed and merged in
master yesterday. Could you please try this with master branch?
—
Reply to this email directly or view it on GitHub
https://github.com/couchbase/couchbase-lite-android/issues/497#issuecomment-74313848
.

Replication seems to be working fine now; I no longer get the error 404 not found.

Hii  @steffar  !  How did you fixed the issue this issue , I am still getting "Router unable to route request to do_GET_Document_all_doc" error . I am compiling latest version of couchbase lite and couchbase lite java listner  i.e.
''' compile 'com.couchbase.lite:couchbase-lite-android:1.1.0-532'
compile 'com.couchbase.lite:couchbase-lite-java-listener:1.1.0-532'  '''
Please help me to resolve this problem '
Thanks ,

Hi Sunil
To overcome this issue I used the latest version of the couchbase-lite framework, as follows:
compile 'com.couchbase.lite:couchbase-lite-android:1.0.4'
compile 'com.couchbase.lite:couchbase-lite-java-core:1.0.4'
compile 'com.couchbase.lite:couchbase-lite-java-listener:1.0.4'

However it seems that you are using newer versions of the framework, so your issue might be due other reasons.

Yah Steffar , First of all thanks for replying I think issue is somewhat in sync from client . I am able to get all docs when I open url (TCP:port//_all_docs) in browser but on android the documents are not syncing . Here is how I am doing it
Starting server on one device like :
    liteListner = new LiteListener(manager , port , new Credentials("foo" , "bar"));
    liteListner.start();

And on client side
                syncUrl = "http://<IP_ADDRESS>:59840/barrickrdc"
                pullReplication = database.createPullReplication(syncUrl);
                pullReplication.setContinuous(false);
                pushReplication = database.createPushReplication(syncUrl);
                pushReplication.setContinuous(false);
                Authenticator basicAuthenticator =AuthenticatorFactory.createBasicAuthenticator(username, password);
            pullReplication.setAuthenticator(basicAuthenticator);
            pushReplication.setAuthenticator(basicAuthenticator);
            pullReplication.start();
            pushReplication.start();

Am I doing it ryt ?
This code should replicate/merge documents in database (if no conflict )  but when I'm doing this nothing is syncing its just showing """com.couchbase.lite.replicator.Replication@41e3ed30 Transition: STOPPING -> STOPPED Total changes: 0 Completed changes: 0 """. But I have unique document in both database.

That seems to be the correct code.  Usually whenever I see the message: """com.couchbase.lite.replicator.Replication@41e3ed30 Transition: STOPPING -> STOPPED Total changes: x Completed changes: x """ it is because replication was successful.
Does continuous replication work?

It worked  :)  I just cloned latest source code(all 3 libraries) and replaced maven dependencies with modules dependencies and it works like charm .
Still Not sure what the problem was (May be some  IDE issue in invalidating cache )  Anyway thanks for your support .


Implement lowest-level "gameplay"

Need something to automate and then distill.
This issue is partially design - need to decide what a good base gameplay would be. May be easiest to create a simple Acquire Resources <--> Craft Tools/Devices to Acquire Resources cycle, a la Minecraft.
Referencing Minecraft here, rather than the myriad other games with this cycle, because the limits of redstone automation in MC is part of the impetus for this project.

Splitting design into a separate ticket.


Script execution

Running 'scripts\arbitrage.py::main'...
File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie_cli\run.py", line 49, in main
return_value, frame = run(
File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie\project\scripts.py", line 103, in run
return_value = f_locals[method_name](*args, **kwargs)
File ".\scripts\arbitrage.py", line 15, in main
account = get_account()
File ".\scripts\helper_scripts.py", line 16, in get_account
return accounts[0]
File "C:\Users\Fabian\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\brownie\network\account.py", line 113, in getitem
return self._accounts[key]
IndexError: list index out of range

You need to add the INFURA project ID in the .env file and then run the command on the mainnet-fork:
brownie run scripts/arbitrage.py --network=mainnet-fork

That should not be the problem, because I already did.

"list index out of range" means that the accounts list is not loaded properly for the mainnet-fork network

So you mean the problem has to be on the INFURA site?


Git actions reported an error during deployment

Checklist

[x] I have read the tutorials and know the correct effect of the functional design.
[x] There are no similar reports on existing issues (including closed ones).
[x] I found the bug on the latest code of the master branch.

Describe the bug
I made an error when deploying with git actions

To Reproduce
Git actions release
Expected behavior
I just want to deploy successfully
Screenshots

Environment

Additional context

@zlbcc Can you please provide more context to your problem, there is no way @cotes2020 or anyone will be able to assist you with such limited information.
Please post some output from the error, your config files that deal with the deploy/release jobs, etc. The more information you provide, the better it will be to get support.


Close button on settings page

Description
Whenever a person click on setting and update the settings there is no way the user can close it and the cancel button is also not working
Screenshots

Additional information
No response
👀 Have you checked if this issue has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

[X] I have read and understood the rules in the Contributing Guidelines

Are you willing to work on this issue ?
Yes I am willing to submit a PR!

Thanks for raising, but it doesn't make sense to close it as it's not modal but a page


[Type Refactor] Merge TType and Tensor instances as a single entity

This PR introduces some breaking changes related to Tensor and their relationship with the NdArray data structure, in an effort of simplification and standardization.
Instances of TType (e.g. TFloat32, TInt32, etc.) now implements directly Tensor, which has been converted to a non-parameterized interface. This allows direct access to the tensor n-dimensional data space from a tensor instance, without the need to dereference to a second object by calling Tensor.data().
// Before
Tensor<TFloat32> t = TFloat32.vectorOf(0, 1, 2, 3);
TFloat32 data = t.data();
data.getFloat(1); // 1.0f

// Now
TFloat32 t = TFloat32.vectorOf(0, 1, 2, 3);
t.getFloat(1); // 1.0f

An instance of TType can now be passed directly to any method accepting a Tensor in input, e.g. Session.Runner.feed. In addition, it is now possible to cast directly a tensor of an unknown type using standard Java explicit or implicit type casting, instead of the custom method expect.
// Before
Tensor<TFloat32> t = session.run().get(0).expect(TFloat32.DTYPE);

// Now
TFloat32 = (TFloat32)s.run().get(0);

In a nutshell, important and/or breaking changes are:

Convert Tensor from a parameterized class to an non-parameterized interface
Implement directly Tensor from TType implementations
Add a RawTensor implementation of Tensor that takes care, among other things, of wrapping the native handle of the tensor in a protected way
Drop now obsolete Tensor.data(), Tensor.expect() and Operand.data() methods
tf.constant(TType) has to be renamed to tf.capture(TType) to avoid conflict with other Constant endpoints (left untouched).

In a next PR, the use of tf.capture will also become obsolete by implementing directly Operand from tensors.

CC\ @deansher , @Craigacp , @wmeddie

While we're in here, is it worth moving the contents of the types.family package into the types package? It seems strange to me to have the interfaces at a lower level than the concrete implementations.

I'm not opposed to this but let's keep it for another PR, more changes in this package are planned for the refactoring in progress.


[tests] Change test coverage report from 42% to >70%

Extended support for testable cases.
Now ~45%


WinFormsAvaloniaControlHost: Renderer is not started by default

Renderer is not started by default if Avalonia app is hosted in WinFormsAvaloniaControlHost.
To reproduce see WindowsInteropTest/EmbedToWinFormsDemo.
As a workaround I can start it manually by using:
((TopLevel)content.GetVisualRoot()).Renderer.Start();

Can you clarify where you added the line of code to the demo to start the renderer?

@jasongf try this

@stepangovorko Intellisense can't find GetVisualRoot as a member of Content. Am I missing a using directive?

@jasongf check Avalonia.VisualTree.VisualExtensions class

@stepangovorko that's it thank you.
Add
using Avalonia.VisualTree;


Moving towards semantic versioning

Currently this project exclusively uses major version numbers, such as v5.0 and v6.0. This is not very descriptive; it will cause headaches, and it already has caused trouble when it comes to the creation of my pull request.
Additionally, the project uses branches for versioning rather than tags. This means one would have to port their pull request to each branch, and manually resolve endless amounts of merge conflicts.
My recommendation is that you move away from creating branches for version numbers, move to tags, and begin creating GitHub releases.

Done!


Logarithmic scale in charts

Hi,
Do you think it would be hard to implement a logarithmic scale for a given attribute?
Maybe you have some advice on how I can implement it (and make a pull request when it's done)?
Thanks,
Thomas

Hi Thomas,
Sorry I never answered this! It doesn't seem like C3.js supports this so it's likely not possible.
Nicolas


DropdownField can't take duplicate values

Because DropdownField takes an assoiative array of 'value' => 'title' it's not possible to have duplicate values.
Duplicate values are useful in circumstances where you want to put common or useful items at the top of the dropdown as well as having them in their "normal" (alphabetical) position.
For example, this is clearest when creating a list of countries to pick from. Often there is a desire to have a primary country first, followed by a list of countries in alphabetical order, however, it would be desirable to have the same country appear in it's alphabetical position also.

Would this be solved best with a top_options (or a better named) option which you can pass into dropdownfield (->setTopOptions()) and then handle it through the template changes? I can't see a way to handle it otherwise due to the PHP removing duplicates in arraya issue.

That only solves the very specific example. There could also be the instance where you want to add items in alphabetical order which are just aliases for the same value (say, Great Britain and United Kingdom).

Fair point. This will take some thinking :smile:

An array for values and an array for labels would be the simplest way to do it and could be made BC quite easily too

I think a year of being open is long enough for a feature request. :)

I wanted to keep this open for my own reminder - plus it came up recently in one of your PRs
I'll try to remember without this being open, I guess

I don't think this is a feature request @tractorcow - its a bug if you squint your eyes and look sideways just a little.

api doesn't do what I want it to do isn't a bug. :)

Squint harder: api to do what I want do it doesn't
Fair call :smile:


Uncaught AttributeError in sendchat.py line 30

Aider version: 0.57.1
Python version: 3.12.7
Platform: macOS-14.5-arm64-arm-64bit
Python implementation: CPython
Virtual environment: Yes
OS: Darwin 23.5.0 (64bit)
Git version: git version 2.36.0
An uncaught exception occurred:
Traceback (most recent call last):
  File "aider", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "main.py", line 709, in main
    if not main_model.streaming:
            ^^^^^^^^^^^
  File "base_coder.py", line 723, in run
    self.num_reflections = 0
                ^^^^^^^^^^^^^
  File "base_coder.py", line 766, in run_one
    if self.commands.is_command(inp):
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "base_coder.py", line 1193, in send_message
  File "base_coder.py", line 1874, in auto_commit
    res.append(edit)
      ^^^^^^^^^^^^^^^
  File "repo.py", line 102, in commit
  File "repo.py", line 187, in get_commit_message
    ]

  File "sendchat.py", line 38, in wrapper
    kwargs["tool_choice"] = {"type": "function", "function": {"name": function["name"]}}
        ~~^^^^^^^^^^^^^^^^
  File "sendchat.py", line 30, in retry_exceptions
    stream=stream,
AttributeError: module 'litellm.llms.anthropic.chat' has no attribute 'AnthropicError'

Thanks for trying aider and filing this issue.
This looks like a duplicate of #1414. Please see the comments there for more information, and feel free to continue the discussion within that issue.
I'm going to close this issue for now. But please let me know if you think this is actually a distinct issue and I will reopen this issue.Note: A bot script made these updates to the issue.


Some Ores not mined

I have discovered that the turtles doesn't mine some ores including vanilla Minecraft ores like iron. I think this should be a bug. Thank you.

you can add them yourself with:
edit disk/hib_files/config.lua
Scroll down a bit and you should find it

I have discovered that the turtles doesn't mine some ores including vanilla Minecraft ores like iron. I think this should be a bug. Thank you.

I hope this is a good explanaition to why it skips some ores.

I see. That's why I saw those unmined block are all above the track. Thanks for explaining.


node-fetch problem when using on the server

I tried using this library on the server, and there seems to be a problem with how node-fetch is imported, I get fetch is not a function.
Looking for a possible solution I found this: https://github.com/bitinn/node-fetch/issues/450
Tried the suggested const fetch = require('node-fetch').default; locally, and it really works.
I think it would be a great addition to the library to also support usage in non-browser environments.
Cheers!

@Pavel910 thanks, let's I try.


Fix sending messages when an attachment is not set

What?
Currently messages were not sending if an attachment was not set. This fixes that.

CC @hamchapman

          1 Warning

:warning:
Any changes to library code should be reflected in the Changelog. Please consider adding a note there. \nYou can find it at CHANGELOG.md.

SwiftLint found issues
Warnings

File
Line
Reason

PCCurrentUser.swift
20
TODOs should be avoided (This should probably be [PCUse...).

PCCurrentUser.swift
368
TODOs should be avoided (Use the soon-to-be-created new...).

PCCurrentUser.swift
456
TODOs should be avoided (Do we need to fetch users in t...).

PCCurrentUser.swift
774
TODOs should be avoided (Do I need to add a Last-Event-...).

PCCurrentUser.swift
815
TODOs should be avoided (What happens if you provide bo...).

PCCurrentUser.swift
836
TODOs should be avoided (This should probably be a room...).

PCCurrentUser.swift
846
TODOs should be avoided (Should we be handling onError ...).

PCCurrentUser.swift
872
TODOs should be avoided (Only consider the room subscri...).

PCCurrentUser.swift
881
TODOs should be avoided (Should we be handling onError ...).

PCCurrentUser.swift
871
Unused parameter "err" in a closure should be replaced with _.

PCCurrentUser.swift
1011
Unused parameter "data" in a closure should be replaced with _.

PCCurrentUser.swift
887
Function body should span 40 lines or less excluding comments and whitespace: currently spans 49 lines

PCCurrentUser.swift
698
Lines should not have trailing whitespace.

PCCurrentUser.swift
702
Lines should not have trailing whitespace.

PCCurrentUser.swift
707
Lines should not have trailing whitespace.

PCCurrentUser.swift
187
MARK comment should be in valid format. e.g. '// MARK: ...' or '// MARK: - ...'

PCCurrentUser.swift
246
MARK comment should be in valid format. e.g. '// MARK: ...' or '// MARK: - ...'

PCCurrentUser.swift
709
Arguments can be omitted when matching enums with associated types if they are not used.

PCCurrentUser.swift
709
Arguments can be omitted when matching enums with associated types if they are not used.

PCCurrentUser.swift
5
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
56
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
157
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
174
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
208
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
263
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
323
Variable name should be between 3 and 40 characters long: 'id'

PCCurrentUser.swift
1040
Enum element name should be between 3 and 40 characters long: 'messageIdKeyMissingInMessageCreationResponse'

PCCurrentUser.swift
104
Collection literals should not have trailing commas.

PCCurrentUser.swift
545
Collection literals should not have trailing commas.

PCCurrentUser.swift
821
Collection literals should not have trailing commas.

PCCurrentUser.swift
759
Opening braces should be preceded by a single space and on the same line as the declaration.

PCCurrentUser.swift
196
Line should be 120 characters or less: currently 142 characters

PCCurrentUser.swift
208
Line should be 120 characters or less: currently 135 characters

PCCurrentUser.swift
212
Line should be 120 characters or less: currently 132 characters

PCCurrentUser.swift
510
Line should be 120 characters or less: currently 127 characters

PCCurrentUser.swift
575
Line should be 120 characters or less: currently 121 characters

PCCurrentUser.swift
615
Line should be 120 characters or less: currently 121 characters

PCCurrentUser.swift
666
Line should be 120 characters or less: currently 133 characters

PCCurrentUser.swift
677
Line should be 120 characters or less: currently 132 characters

PCCurrentUser.swift
744
Line should be 120 characters or less: currently 123 characters

PCCurrentUser.swift
920
Line should be 120 characters or less: currently 123 characters

PCCurrentUser.swift
1016
Line should be 120 characters or less: currently 136 characters

Errors

File
Line
Reason

PCCurrentUser.swift
4
Type body should span 200 lines or less excluding comments and whitespace: currently spans 616 lines

PCCurrentUser.swift
1055
File should contain 400 lines or less: currently contains 1055

  Generated by :no_entry_sign: Danger

Thanks for this! Looks like quite a large oversight on my part. Sorry about that!
I'll make sure that I add some tests for this on Monday so it can't happen in future.

@hamchapman Did you manage to look into getting some tests written for this? It would be great to have it merged if possible 😊

@steve228uk I did but got caught up in trying to get stubbing of a HTTP/2 streamed request working!
I think I'll merge this for now and follow up with the tests later once I've got the stubbing working properly.


Fixes a path in touchableHandlerResponderGrant method when touchableGetPressRectOffset method is not present.

Current code is checking presence of touchableGetPressRectOffset method but fails immediately on trying to get 'left' value of null.

@facebook-github-bot shipit


Correction of the too early initCMSCKEditor

If you try to save using the django cms pop-up form and forget a required field. During the reloading of the pop-up, if your javascripts are in the body, ckeditor will init before  it is "visible" and won't load.

Coverage remained the same at 37.01% when pulling efb99ac0f2bf6b55aa3c8640d8dcc85a803b8c81 on webu:bugfix/initCMSCKEditor into 41b918cc7ecfc07cf8b3db4a5d2d5259b2b146f2 on divio:master.

Coverage remained the same at 37.01% when pulling efb99ac0f2bf6b55aa3c8640d8dcc85a803b8c81 on webu:bugfix/initCMSCKEditor into 41b918cc7ecfc07cf8b3db4a5d2d5259b2b146f2 on divio:master.

Coverage remained the same at 37.01% when pulling efb99ac0f2bf6b55aa3c8640d8dcc85a803b8c81 on webu:bugfix/initCMSCKEditor into 41b918cc7ecfc07cf8b3db4a5d2d5259b2b146f2 on divio:master.

Coverage remained the same at 37.01% when pulling efb99ac0f2bf6b55aa3c8640d8dcc85a803b8c81 on webu:bugfix/initCMSCKEditor into 41b918cc7ecfc07cf8b3db4a5d2d5259b2b146f2 on divio:master.

Coverage remained the same at 37.01% when pulling bb0b9695430775e26bff35e9cbdfc449853335cc on webu:bugfix/initCMSCKEditor into 41b918cc7ecfc07cf8b3db4a5d2d5259b2b146f2 on divio:master.

Coverage remained the same at 37.01% when pulling bb0b9695430775e26bff35e9cbdfc449853335cc on webu:bugfix/initCMSCKEditor into 41b918cc7ecfc07cf8b3db4a5d2d5259b2b146f2 on divio:master.

Coverage remained the same at 37.01% when pulling bb0b9695430775e26bff35e9cbdfc449853335cc on webu:bugfix/initCMSCKEditor into 41b918cc7ecfc07cf8b3db4a5d2d5259b2b146f2 on divio:master.

@yakky you're right, I fixed it


[POC] Decoupling state from simulator

Working toward #3686 and continuing #2178
Here's a POC of what the decoupled structure would look like for sparse simulator. It's in line with the suggestion from @Strilanc here (maybe). https://github.com/quantumlib/Cirq/issues/2178#issuecomment-535221018. To create a new state handler, you implement the AbstractState interface. Then you can pass it into SparseSimulator and it'll work. If we're lucky, this interface is enough to let us implement lots of different state management algorithms and not have to deal with tying them to circuit traversal.
Will look through some other simulators to see whether this pattern can be reused as nicely as I'm hoping, or whether the simulators are all coupled strongly to the circuit traversal.
cc @cduck @95-martin-orion

(To note, this doesn't break any existing simulators or interfaces. It just adds new possibilities for simulators that go with this approach.)

(To note, this doesn't break any existing simulators or interfaces. It just adds new possibilities for simulators that go with this approach.)

Do we have multiple simulators that step through op-by-op? I guess this could factor out some shared code between the statevector Simulator and the DensityMatrixSimulator. Would be nice to see more code removed than added in a refactoring PR like this

Do we have multiple simulators that step through op-by-op? I guess this could factor out some shared code between the statevector Simulator and the DensityMatrixSimulator. Would be nice to see more code removed than added in a refactoring PR like this

Okay, thanks for the feedback. It sounds like this abstraction doesn't add a whole lot of real world value. I'll go ahead and close it for now.

Okay, thanks for the feedback. It sounds like this abstraction doesn't add a whole lot of real world value. I'll go ahead and close it for now.

Well I was just asking if anything other than the current code can be factored out. I don't know if this abstraction would be useful

Well I was just asking if anything other than the current code can be factored out. I don't know if this abstraction would be useful


support for Phi3 Medium models

Hi, I have tried to load the Phi3 Medium model (128k), but it fails to work with the current version of VLLM here, is this a version update issue? and when I try the Phi3 Mini 128k, it at least tries to load it, but runs out of memory (even 4x 24gb cards can't fit it - I suspect some bug)
Thanks a lot for creating this patch! @sasha0552

Hi @rkyla.
I have started the process of building the v6 release, which will be based on the https://github.com/vllm-project/vllm/commit/1744cc99ba9bdefea8f3f798cf51ed650b81a98e. It'll be ready in about two hours. For now, you can try v5, which was built 3 days ago (I forgot to publish v5, so you probably used v4, which was built a week ago).
If the v6 update doesn't help, I suggest opening the issue in the vLLM repo, as it's probably not a GPU issue.

Thanks a lot @sasha0552! I have tried to check my VLLM version before the update, and it said 0.5.0.post1, to upgrade to the latest, do I just run: pip3 install --extra-index-url https://sasha0552.github.io/vllm-ci/ vllm ?

You need to use pip3 install --force-reinstall --extra-index-url https://sasha0552.github.io/vllm-ci/ --no-cache-dir --no-deps --upgrade vllm to update vLLM between releases of same version.


changed text in html fundamentals

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes #XXXXX

please if it is a fix, try change the PR title.
PR guidelines: https://contribute.freecodecamp.org/how-to-open-a-pull-request/#prepare-a-good-pr-title


ffmpeg 5.1 is released

FFmpeg 5.1 "Riemann"  was released on 2022-07-22.
It is recommended to use 5.1 instead of 5.0 .

Already https://github.com/BtbN/FFmpeg-Builds/commit/dfdfc2931193c9e21e5b410e91c69e4d1a825b23

Thanks~


[backport] Add upper restrictions to NumPy/SciPy versions

Backport of #5225 by @kmaehashi

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit 80a3309ae52d0d2ca50e126f9d8b407e71145333, target branch v9) succeeded!


Bug 1894268: Allow users to specify ovnkube join subnet

Some users need to be able to specify the v4 and v6 join subnets
to use for ovn-k. In particular, they may be already using the
ones that ovn-k uses as default, and they need a way to be able to
specify a different set of subnets as join subnets. This commit
creates the config option for  the same. Eventually this will be
consumed by the CNO using rendered bootstrap data and passed to the
ovn-k daemonsets.
Signed-off-by: Peng Liu<EMAIL_ADDRESS>

It is to continue the work of https://github.com/openshift/api/pull/824

/cc @danwinship

/bugzilla refresh

I suppose if we are going to make this user-configurable, then this PR is fine.
/lgtm

@jboxman @huiran0826  PTAL.

lgtm, @weliang1 Could you help take a look as well?

This is the story link https://issues.redhat.com/browse/SDN-2593.

/label docs-approved

lgtm, @weliang1 Could you help take a look as well?

/lgtm

/label qe-approved

/approve


[master < T338] Check tests for updating Properties API

Description
Due to change in the Properties API, changing the data structure from std::map to std::unordered_map, we are keen to see whether any tests in MAGE have been compromised
Pull request type

[X] Build related changes

Related items
https://github.com/memgraph/memgraph/pull/1131
Delete if this PR doesn't resolve any issues. Link the issue if it does.
######################################
Reviewer checklist (the reviewer checks this part)
Module/Algorithm

[ ] Core algorithm/module implementation
[ ] Query module implementation
[ ] Unit tests
[ ] End-to-end tests
[ ] Code documentation
[ ] README short description
[ ] Documentation on memgraph/docs
[ ] Update GQLALchemy signatures in query builder using query module signature generator

######################################

They’ve all passed :smile:

@Josipmrden can we close this?


Pinecone issue

Additionally could you verify the pinecone embedding storage is working ..ended up getting a bunch of errors when it tries to upload it.
Exception in thread "main" io.grpc.StatusRuntimeException: UNAVAILABLE: io exception
Channel Pipeline: [SslHandler#0, ProtocolNegotiators$ClientTlsHandler#0, WriteBufferingAndExceptionHandler#0, DefaultChannelPipeline$TailContext#0]
at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:271)
at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:252)
at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:165)
at io.pinecone.proto.VectorServiceGrpc$VectorServiceBlockingStub.upsert(VectorServiceGrpc.java:505)
at dev.langchain4j.store.embedding.PineconeEmbeddingStoreImpl.addAllInternal(PineconeEmbeddingStoreImpl.java:120)
Or
when I try with source code after clean do get this issue even after placing the right jars.
https://github.com/matsim-org/matsim-code-examples/issues/738

Hi, do you have an account with pinecone? Please double-check all the configurations. Where are you located?

Hi, do you have an account with pinecone? Please double-check all the configurations. Where are you located?

Yes the setup and configurations are correct it’s the us-west-region… but the issue still happens does it require any additional permission as running on local host

我遇到过这个问题，请参考https://github.com/pinecone-io/pinecone-java-client/blob/b516757389fe0eaf32d3a01c120e64d0c59a76b0/src/main/java/io/pinecone/PineconeConnection.java#L117

@sunvoyage did you try to connect to pinecone by other means? via their Java client or maybe python lib?
From the error message it looks like there is a network problem. Could be that your configuration is indeed wrong. I can provide my pinecone key and you can try whether it will work for you or not (my correct config is in the examples).

@sunvoyage any update on this?

@sunvoyage closing due to inactivity. Please reopen if you still face this issue.


Point Cloud IoU

Hi, what is the design idea behind IoU metric implemented for point clouds? There is a threshold but the output IoU score increases when we decrease the threshold. Should not it be the opposite, since the intersection region would decrease when threshold is decreased?
Another thing: IoU is not consistent with F score. Normally, they should be aligning within different inputs: if one is higher on sample A than sample B, the other one should also be higher.
Possible solution: Use the extended version of F-Score calculation, and calculate the IoU as in:
    pred_distances = torch.sqrt(directed_distance(gt_points, pred_points, mean=False))
    gt_distances = torch.sqrt(directed_distance(pred_points, gt_points, mean=False))

    fp = (gt_distances > radius).float().sum()
    tp = (gt_distances <= radius).float().sum()
    precision = tp / (tp + fp)
    tp = (pred_distances <= radius).float().sum()
    fn = (pred_distances > radius).float().sum()
    recall = tp / (tp + fn)

    f_score = 2 * (precision * recall) / (precision + recall + 1e-8)
    iou = tp / (tp + fp + fn + 1e-8)

Hi @evinpinar ,
Thank you for your interest in Kaolin, there is indeed a problem with our IoU for point cloud metric, we will reformat this part.

I would calculate IoU along with fscore
iou = precision*recall / (precision + recall - precision*recall)   f_score = 2  (precision  recall) / (precision + recall + 1e-8)

Closing an old issue, as it's no longer relevant to the library.
Please repost if you are running into issues with latest library versions.


Reduce calls to location on user management details page

When going to a user on the user management details page, for every location reservation, a call to the locations/{id} is made, this can't be the way to do
either

include the location information in the original 'get location reservations' response
or, cache the location information so that for the each location, the call is only done once, e.g. map with locationId as key

fixed by #160


[Feature] Add i2p Support

Feature: Add i2p support to DAT and Beaker Browser
Why?: Mainly for privacy and security but also to support decentralized web communications.
How?: BitTorrent already has wide usage of i2p thank to i2p-snarks and XD.
Related Issues: #1371

Want to support this issue? Post a bounty on it! We accept bounties via BountySource.

This is a duplicate of https://github.com/datproject/dat/issues/1120

Going to let the dat repo track this idea


Fixed dependency version of through2

Should be using stricter versioning of through2, since the convenience method through2.obj was introduced more recently. Addresses issue #29 while using NPM 3.

:+1:

@tracker1 thoughts on this PR?

Will try to get this uploaded with the suggested concat change in another issue tonight...

@tracker1 thank you!


Can i get hyperlink by cell?

doc.Workbook().Worksheet("Sheet1").CellReference().Address()
is not a hyperlink. Just return this cell's address

Impl::XLWorksheet::ParseXMLData()->
// Store all Row nodes in the m_rows vector. The XLRow constructor will initialize the cells objects
for (const auto& currentRow : SheetDataNode().children()) {
auto& row = m_rows.emplace_back(XLRowData());
row.rowIndex = stoul(currentRow.attribute("r").value());
row.rowItem = make_unique(*this, currentRow);
}
Maybe, You should parse hyperlinks node here,And set hyperlink into the XMCells?


Ability to handle multiple cookies in context

Is there an ~easy~ way to handle the scenario of multiple cookies in context and not just the default csrf_token ?
It's regarding an iframe integration scenario that the same frame will be included multiple times in the page and the way the library is now, each frame will overwrite the csrf_token meaning if the 1st form submits then it will have a different token than the latest in the context.
For setting the tokens with different names I've managed to simply append the frameId inside the HandlerFunc but the problem is in the verification step where the context is the same.

Could you elaborate on the issue? Although the masked token will be different across page (frame) loads, the unmasked token remains the same for the lifetime of the cookie, meaning any of the masked tokens should work when submitted?

How can I provide to you more information?
Here's the middleware:
v1ClientRouter.Use(func() gin.HandlerFunc {
  u, _ := url.Parse(os.Getenv("BASE_URL"))

  nextHandler, wrapper := adapter.New()
  csrfHandler := nosurf.New(nextHandler)
  csrfHandler.SetBaseCookie(http.Cookie{
    Name:       "csrf_token",
    Path:       u.Path,
    Domain:     u.Host,
    Expires:    time.Now().Add(5 * time.Minute),
    RawExpires: "",
    MaxAge:     60 * 5,
    Secure:     true,
    HttpOnly:   true,
    SameSite:   http.SameSiteNoneMode,
  })
  csrfHandler.ExemptPath(v1ClientRouter.BasePath() + "/action")
  return wrapper(csrfHandler)
}())

I set the token in the template like this:
c.HTML(http.StatusOK, "form.tmpl", gin.H{
  "CSRF":             nosurf.Token(c.Request),
  ...
})

On form submission I include the CSRF token and check like this:
nosurf.VerifyToken(nosurf.Token(c.Request), body.CSRFToken)

It works randomly, that's why I think it's overwriting the token/cookie depending on which iframe loads first on the screen
2022-10-19T10:48:30.377+0200	debug	logging/logging.go:122	NOSURF	{"verification": false, "token": "44ZWy3vzYszGx7VvZWMDRq+9dVwzTliqFwxzyZXrr50/tCtU1smMFw4xw8i8o6UAFmAFrJ0FJO9qvnMRkkXlYw==", "body.CSRFToken": "VhG8BSyab2jMh7dcBp8HNn8whRWRCuupTGIuRe+6TSyAJdx66Vxp6ZFXn7gYRiuPYWlba3AjZMbgbnuGQy0wag=="}
2022-10-19T10:48:35.781+0200	debug	logging/logging.go:122	NOSURF	{"verification": true, "token": "/9d5EIpIsRJ2enCleZS0To6ogx52q55P5uGPy2go1/Aj5QSPJ3Jfyb6MBgKgVBIIN3Xz7tjg4gqbU48Tb4adDg==", "body.CSRFToken": "9i9Eh/ONUH/HDvbE4AwCQmgg13lcZ/o58z8ubk4C9YYqHTkYXre+pA/4gGM5zKQE0f2nifIshnyOjS62Say/eA=="}

I think I understand the issue now. nosurf works correctly when the user's first-interaction-ever with the website is not concurrent with any other page load on the website. However, when doing two "initial loads" at the same time, it tries to set two cookies at the same time.
I do not yet have a good fix in mind for this. Is there a way in your case to make some initial request that would set the cookie? Then, you can load two frames and they will operate on the existing cookie, and not set a new one.

By the way, this seems like it will not work as expected:
    Expires:    time.Now().Add(5 * time.Minute),

This sets all nosurf cookies to expire at an absolute time "5 minutes after the middleware is initially constructed". I am not sure if MaxAge overrides this, if so, this Expires is not even necessary.

I'm afraid there's no possibility of an initial request as it's used by a 3rd party.