dotnet tools update fails if tool is not in csproj file

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
nuget
Package manager version
dotnet8
Language version
C# dotnet 8
Manifest location and content before the Dependabot update
{
  "version": 1,
  "isRoot": true,
  "tools": {
    "csharpier": {
      "version": "0.30.1",
      "commands": [
        "dotnet-csharpier"
      ],
      "rollForward": false
    }
  }
}

dependabot.yml content
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
  - package-ecosystem: "nuget" # See documentation for possible values
    directory: "/src" # Location of package manifests
    schedule:
      interval: "daily"
      time: "09:07"
      timezone: "Europe/Amsterdam"
    commit-message:
      # Prefix all commit messages with "npm"
      prefix: "chore:"
    labels:
      - "dependencies"

Updated dependency
csharpier from 0.30.1 to 0.30.2 but it happens with any tool in the .config/dotnet-tools.json file
What you expected to see, versus what you actually saw
The tool 'csharpier' is only defined in the dotnet-tools.json, but not in the .csproj file (it does not have to be)
When dependabot tries to upgrade the tool, it complains about this, and fails.
Native package manager behavior
dotnet tool update csharpier
Tool 'csharpier' was successfully updated from version '0.30.1' to version '0.30.2' (manifest file /home/ramona/LocalProjects/DotNet/myproject/.config/dotnet-tools.json).

Images of the diff or a link to the PR, issue, or logs
code is here:
https://github.com/batje/dependabottoolsupdate
logs:
updater | 2024/11/25 10:47:49 INFO <job_922016393> Starting update job for batje/dependabottoolsupdate
2024/11/25 10:47:49 INFO <job_922016393> Checking all dependencies for version updates...
updater | 2024/11/25 10:47:49 INFO <job_922016393> Checking if csharpier 0.30.1 needs updating
updater | 2024/11/25 10:47:49 INFO <job_922016393> Writing dependency info: {"Name":"csharpier","Version":"0.30.1","IsVulnerable":false,"IgnoredVersions":[],"Vulnerabilities":[]}
updater | running NuGet analyze:
/opt/nuget/NuGetUpdater/NuGetUpdater.Cli analyze --repo-root /home/dependabot/dependabot-updater/repo --discovery-file-path /tmp/.dependabot/discovery.1.json --dependency-file-path /tmp/.dependabot/dependency/csharpier.json --analysis-folder-path /tmp/.dependabot/analysis
  proxy | 2024/11/25 10:47:50 [020] GET [https://api.nuget.org:443/v3/registration5-gz-semver2/csharpier/index.json](https://api.nuget.org/v3/registration5-gz-semver2/csharpier/index.json)
  proxy | 2024/11/25 10:47:50 [020] 200 [https://api.nuget.org:443/v3/registration5-gz-semver2/csharpier/index.json](https://api.nuget.org/v3/registration5-gz-semver2/csharpier/index.json)
  proxy | 2024/11/25 10:47:50 [022] GET [https://api.nuget.org:443/v3-flatcontainer/csharpier/index.json](https://api.nuget.org/v3-flatcontainer/csharpier/index.json)
  proxy | 2024/11/25 10:47:50 [022] 200 [https://api.nuget.org:443/v3-flatcontainer/csharpier/index.json](https://api.nuget.org/v3-flatcontainer/csharpier/index.json)
  proxy | 2024/11/25 10:47:50 [024] GET [https://api.nuget.org:443/v3-flatcontainer/csharpier/0.30.1/csharpier.0.30.1.nupkg](https://api.nuget.org/v3-flatcontainer/csharpier/0.30.1/csharpier.0.30.1.nupkg)
  proxy | 2024/11/25 10:47:50 [024] 200 [https://api.nuget.org:443/v3-flatcontainer/csharpier/0.30.1/csharpier.0.30.1.nupkg](https://api.nuget.org/v3-flatcontainer/csharpier/0.30.1/csharpier.0.30.1.nupkg)
  proxy | 2024/11/25 10:47:50 [026] GET [https://api.nuget.org:443/v3-flatcontainer/csharpier/0.30.2/csharpier.0.30.2.nupkg](https://api.nuget.org/v3-flatcontainer/csharpier/0.30.2/csharpier.0.30.2.nupkg)
  proxy | 2024/11/25 10:47:50 [026] 200 [https://api.nuget.org:443/v3-flatcontainer/csharpier/0.30.2/csharpier.0.30.2.nupkg](https://api.nuget.org/v3-flatcontainer/csharpier/0.30.2/csharpier.0.30.2.nupkg)
updater | Starting analysis of csharpier...
  Determining multi-dependency property.
  Finding updated version.
  Finding updated peer dependencies.
Analysis complete.
  Writing analysis result to [/tmp/.dependabot/analysis/csharpier.json].
updater | 2024/11/25 10:47:51 INFO <job_922016393> csharpier.json analysis content: {
  "UpdatedVersion": "0.30.2",
  "CanUpdate": true,
  "VersionComesFromMultiDependencyProperty": false,
  "UpdatedDependencies": [
    {
      "Name": "csharpier",
      "Version": "0.30.2",
      "Type": "DotNetTool",
      "EvaluationResult": null,
      "TargetFrameworks": null,
      "IsDevDependency": false,
      "IsDirect": true,
      "IsTransitive": false,
      "IsOverride": false,
      "IsUpdate": false,
      "InfoUrl": "https://github.com/belav/csharpier"
    }
  ],
  "ErrorType": null,
  "ErrorDetails": null
}
updater | 2024/11/25 10:47:51 INFO <job_922016393> Latest version is 0.30.2
updater | 2024/11/25 10:47:51 INFO <job_922016393> Requirements to unlock all
2024/11/25 10:47:51 INFO <job_922016393> Requirements update strategy
updater | 2024/11/25 10:47:51 INFO <job_922016393> Updating csharpier from 0.30.1 to 0.30.2
updater | running NuGet updater:
/opt/nuget/NuGetUpdater/NuGetUpdater.Cli update --job-path /home/dependabot/dependabot-updater/job.json --repo-root /home/dependabot/dependabot-updater/repo --solution-or-project /home/dependabot/dependabot-updater/repo/src/MyProject.csproj --dependency csharpier --new-version 0.30.2 --previous-version 0.30.1 --result-output-path /tmp/update-result.json
updater |   Updating [.config/dotnet-tools.json] file.
    Saved [.config/dotnet-tools.json].
  No global.json file found.
Running for project file [src/MyProject.csproj]
Updating project [/home/dependabot/dependabot-updater/repo/src/MyProject.csproj]
  Running 'PackageReference' project direct XML update
    Package [csharpier] Does not exist as a dependency in [/home/dependabot/dependabot-updater/repo/src/MyProject.csproj].
Update complete.
  Writing update result to [/tmp/update-result.json].
2024/11/25 10:47:52 INFO <job_922016393> update result: {
  "ErrorType": null,
  "ErrorDetails": null
}
  proxy | 2024/11/25 10:47:52 [028] POST /update_jobs/922016393/record_update_job_error
  proxy | 2024/11/25 10:47:52 [028] 204 /update_jobs/922016393/record_update_job_error
updater | 2024/11/25 10:47:52 INFO <job_922016393> Handled error whilst updating csharpier: update_not_possible {:dependencies=>["csharpier"]}
  proxy | 2024/11/25 10:47:52 [030] PATCH /update_jobs/922016393/mark_as_processed
  proxy | 2024/11/25 10:47:53 [030] 204 /update_jobs/922016393/mark_as_processed
updater | 2024/11/25 10:47:53 INFO <job_922016393> Finished job processing
updater | 2024/11/25 10:47:53 INFO Results:
Dependabot encountered '1' error(s) during execution, please check the logs for more details.
+---------------------------------+
|  Dependencies failed to update  |
+-----------+---------------------+
| csharpier | update_not_possible |
+-----------+---------------------+
Failure running container d6dee07d1f97d4ec58a238bd47629ed6c7ebf8e3868f9ed7e149651a55bc1738
Cleaned up container d6dee07d1f97d4ec58a238bd47629ed6c7ebf8e3868f9ed7e149651a55bc1738
  proxy | 2024/11/25 10:47:53 0/15 calls cached (0%)
2024/11/25 10:47:53 Posting metrics to remote API endpoint
Error: Dependabot encountered an error performing the update

Error: The updater encountered one or more errors.

For more information see: https://github.com/batje/dependabottoolsupdate/network/updates/922016393 (write access to the repository is required to view the log)
🤖 ~ finished: error reported to Dependabot ~

Smallest manifest that reproduces the issue
See codebase
https://github.com/batje/dependabottoolsupdate

Thank you for the log.  This is certainly an update that should be possible and we even report Saved [.config/dotnet-tools.json]. so we were able to make a change, but something happened when trying to include that change in the resultant PR.

No PR is ever created.
I gave you access to the test-repo.

In case I'm not the one to end up working on the issue, the relevant files from the test repo look like this:
.config/dotnet-tools.json
{
  "version": 1,
  "isRoot": true,
  "tools": {
    "csharpier": {
      "version": "0.30.1",
      "commands": [
        "dotnet-csharpier"
      ],
      "rollForward": false
    }
  }
}

src/project.csproj
<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
  </PropertyGroup>
</Project>

Start a dependabot update in the /src directory.
Expectation:
.config/dotnet-tools.json is updated to:
 {
   "version": 1,
   "isRoot": true,
   "tools": {
     "csharpier": {
-      "version": "0.30.1",
+      "version": "0.30.2",
       "commands": [
         "dotnet-csharpier"
       ],
       "rollForward": false
     }
   }
 }

@batje I was going to pick this up but as of 12/09/2024 the updater works locally and I see a PR for the dependency in question was created in the repo 10 hours ago so I'm closing this issue but feel free to re-open or create a new one if you're still having issues.
Link to created PR: https://github.com/batje/dependabottoolsupdate/pull/2


[CROSSDATA-728] Microstrategy - Count(distinct xxx alias)

Description
This PR solves the problem with queries with count distict aggregates. To do that it has been necessary to rewrite DistinctAggregationRewriter case class into Crossdata that it rewrote the query when a distinct was on the query. Now that phase is skipped if an UnresolvedAlias is on the logical plan until the analyzer resolve that alias.
The code changed:
private def aggregateExpressionContainsAlias(aggregateExpressions: Seq[NamedExpression]): Boolean = {
    aggregateExpressions.exists {
      case UnresolvedAlias(_) => true
      case _ => false
    }
  }

  def apply(plan: LogicalPlan): LogicalPlan = plan transformUp  {
    case a: Aggregate if !aggregateExpressionContainsAlias(a.aggregateExpressions) => rewrite(a)
  }

Testing

[ ] Unit, integration tests

Changes Unknown when pulling c1e3edc1c8d7db5e7c908b69cbf7090243ba8d18 on jjlopezm:FixCountDistinct into ** on Stratio:master**.

Coverage remained the same at 49.238% when pulling 883643d074771b439c593f8ba3b209b01641ec0b on jjlopezm:FixCountDistinct into 666d7ce20858655a12ead0a24af4c425112460c5 on Stratio:master.

Coverage remained the same at 49.238% when pulling 723cdaba4f74ee614f877f770e7fc32f33da4b92 on jjlopezm:FixCountDistinct into 666d7ce20858655a12ead0a24af4c425112460c5 on Stratio:master.

:+1:


improving backend code quality for updating deployment via cli

:point_right: 1. Update does not work

Create preview by uffizzi preview create
Run uffizzi preview update

Result: error Not Found
bash-5.1# bundle exec uffizzi preview create -o=json test-compose/uffizzi-compose-webhook-docker.yml
[✔] Creating containers...
[✔] Deploying preview...
  [✔] webhooks-test-app
{"id":"deployment-2","url":"https://deployment-2-default.app.qa-gke.uffizzi.com"}
bash-5.1# bundle exec uffizzi connect ghcr
Github Username:  NealArw
Access Token:
Successfully connected to GHCR
bash-5.1# bundle exec uffizzi preview update -o=json deployment-2 test-compose/uffizzi-compose-webhook-ghcr.yml
Not Found
bash-5.1#

TESTED - OK
bash-5.1# bundle exec uffizzi preview create -o=json test-compose/uffizzi-compose-volumes-docker.yml
[✔] Creating containers...
[✔] Deploying preview...
  [✔] uffizzi_test_rails_simple
{"id":"deployment-11","url":"https://deployment-11-default.app.qa-gke.uffizzi.com"}

bash-5.1# bundle exec uffizzi preview update -o=json deployment-11 test-compose/uffizzi-compose-webhook-docker.yml
[✔] Creating containers...
[✔] Deploying preview...
  [✔] webhooks-test-app
{"id":"deployment-11","url":"https://deployment-11-default.app.qa-gke.uffizzi.com"}

TESTED on prod - OK
# uffizzi preview create -o=json c.yml
[✔] Creating containers...
[✔] Deploying preview...
  [✔] redis
  [✔] postgres
  [✔] nginx
  [✔] example-voting-app-worker
  [✔] example-voting-app-vote
  [✔] example-voting-app-result
{"id":"deployment-4537","url":"https://deployment-4537-zakary-tillman-1-1e4m0u.app.uffizzi.com"}

# uffizzi preview update -o=json deployment-4537 c.yml
[✔] Creating containers...
[✔] Deploying preview...
  [✔] redis
  [✔] postgres
  [✔] nginx
  [✔] example-voting-app-worker
  [✔] example-voting-app-result
  [✔] example-voting-app-vote
{"id":"deployment-4537","url":"https://deployment-4537-zakary-tillman-1-1e4m0u.app.uffizzi.com"}

# uffizzi preview update -o=json deployment-4537 compose.yml
[✔] Creating containers...
[✔] Deploying preview...
  [✔] test_env
{"id":"deployment-4537","url":"https://deployment-4537-zakary-tillman-1-1e4m0u.app.uffizzi.com"}


trigger golang debian base image release

Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm


sysadmin, advanced, ipfs guide

There was a demand from a community member to have IPFS support for the TFGrid. Thus, here is a simple guide to set IPFS on a Full VM. This has been tested on mainnet and works as intended.

Will republish the PR


How to ensure that data updates do not affect the marquee animation

When using useState as a ticker data and updating it in real time, there will be a freeze phenomenon. How can we ensure that the animation can still run normally when the data is updated in real time?

Hi there,
Can you assign me this issue, I can solve it

Hi there, Can you assign me this issue, I can solve it

OK. Thank you.


Move to WildFly 33 Beta1 and current plugin versions

Port https://github.com/wildfly/wildfly-tck-runners/commit/25eb71669b5f44cbe808860e5cd0be935c6e81c9 from the 33.x branch

Even though this is old now, I'm going to merge it for consistency with the linked commit.


Added in Fortify and Synopsys

Added in entries for Fortify and Synopsys

Thanks @wtfacoconut ☕

Together with merging this you might want to remove Coverity Save from the list.  Apparently the link http://www.coverity.com/products/coverity-save/ redirects you to Synopsis because Coverity was bought by Synopsis.


don't set trimpath for tests

This is a port of https://github.com/NixOS/nixpkgs/commit/64e6cc1a1d5fc565f2f503b7b6347f6641ff2610.

This will be merged in #78 instead.


[MRG] Remove reference to closed issue, mention isort.

Let's keep code style documented in one place only.

Looks good. Thanks.


Occurrence cube downloads

ping @peterdesmet and @MattBlissett
I've started the work of adding a new download option
And an SQL ui for downloads
Could you please help evaluate if this is functionally what you had in mind?
Functionally there are 2 things that aren't working

downloads always fail despite being accepted by the sql validator. Perhaps: https://github.com/gbif/occurrence/issues/360
the WHERE isn't filled. Waiting for https://github.com/gbif/occurrence/issues/356

If the functions are as you expected, then we could think about usability (bearing in mind that we will have to reimplement this in the recent future)

Do we need articles help pages to refer to?
More help texts in the UI?
different labels?
Extend the general download API with a description field, which we could auto generate (from the form) for more a human readable context.
allow comments in the SQL?
What is a good name for the download type. And what title?
How to make this meaningful with the table we have for other formats to show what you can expect
does an about page for SQL editor makes sense. placeholder for now. If so someone should write it
...?

Nice!! Here's some feedback on the download page (did not test the SQL editor yet):

[ ] Download type name: Cube rather than SQL cube
[ ] Coordinates column can be ✔ (if selected)
[x] Title Download cube is fine
[ ] Link About species occurrence cubes (renamed) can refer to https://techdocs.gbif.org/en/data-use/data-cubes
[x] Labels are good, would use regular case for Randomize points within uncertainty circle
[ ] Currently unclear that occurrence count is always included as a measurement. How to best indicate this?
[ ] I would update the values and order for Spatial resolution + add sections:

Global
- Military grid reference systems (MGRS)
- Extended quarter degree grid (QDGC)
- ISEA3H grid
Europe
- EEA reference grid

[ ] The values for Spatial resolution should probably be updated slightly. For one, I think that the spatial resolution for MGRS is in meters.
[ ] I think comments in SQL are fine to me, not sure if they are retained by the query string though
[ ] On the SQL editor, I would include the link to the occurrence search in the text, rather than a button:

The easiest way to download and explore data is via the occurrence search user interface. But for complex queries and aggregations, then the SQL editor provides more freedom.

Thanks @peterdesmet

On the SQL editor, I would include the link to the occurrence search in the text, rather than a button:

I agree it is nicer, it is only because it is makes life easier for translators. Having them write markdown with variables have caused issues in the past.

The values for Spatial resolution should probably be updated slightly. For one, I think that the spatial resolution for MGRS is in meters.

Yeah I know those are wrong. I'm waiting for you or Matt to tell me what they should be please.

I've added mock help texts to all fields and added 2 mock articles (one for sql download and one for cubes).
Help texts
If someone with better english skills and understanding can correct the help texts that would be great. Alternatively I can also try my best, it is just a type of thing that takes me forever. If you believe some fields are self explanatory, then let me know and I can remove the help text.

[ ] review help texts

Articles
For the articles: then someone needs to write them if we still want them.
https://www.gbif-uat.org/occurrence-cubes
https://www.gbif-uat.org/occurrence/download/sql#about

[ ] write tool text
[ ] write cube article

Known API bugs

[ ] the field naming for order is different between environments
[ ] downloads do not work in UAT, not sure about other env

Download pages
Arriving at a download page is confusing if you come from a cube download format. You configured a cube via a UI, and then arrive at an SQL string. It is a requirement to display this better. One way about it could be to adda new feature to downloads generally:

[ ] API option to attach a human readable description of a download when doing a download.
[ ] Auto generate a human readable description for cube downloads.
[ ] Always show available descriptions on download pages.

Other

[ ] review grid resolution translation names

Thanks. I think the text helps in guiding the user.
I think adding the ability to give it a human readable type / description would be good. Alternatively, we could introduce a cube download format in the API itself, which takes the form parameters but does the SQL conversion behind the backend API. The reason to do that, would be to display to the parameters used on the download page which is shown from the DOI. A user could still "open this in the SQL builder" before submitting to do more complicated queries, but it'd hide SQL completely for anyone who didn't. I don't know what would be the more scalable option.

@MortenHofft I have reviewed the modal and the help text. See my updated https://github.com/gbif/portal16/issues/1978#issuecomment-2459644923. Two inputs from @MattBlissett needed.

Is the functionality ready for testing?

Do we need a separate (stable) help page at https://www.gbif-uat.org/occurrence-cubes describing the functionality or is it sufficient to refer to https://techdocs.gbif.org/en/data-use/data-cubes? To be assed by communication team.

@timrobertson100 having an endpoint "which takes the form parameters" would indeed be better documentation of the dimensions in the recorded metadata, which in turn would help conversion to e.g. EBV Cubes. Just having the SQL statement doesn't tell us anything about the dimensions that were selected, since the columns can be named however they want.

On 4. please see our proposed approach here. A JSON object (the context) would hold the submitted form parameters.


Broken Link on Command Line Reference Doc

Welcome! Please use this template for reporting documentation issues on https://developers.google.com/web/.
For questions about Chrome DevTools, checkout the
google-chrome-devtools tag on StackOverflow.
For questions about Chrome, check the google-chrome
tag. If you think you've found a Chrome bug, check out our
feedback page for more details on how to file it.
Page Affected: https://developers.google.com/web/tools/chrome-devtools/console/command-line-reference
What needs to be done?
A link needs to be corrected on the page (it currently doesn't lead to anything).

[ ] Appropriate type-something label has been added.
[ ] Appropriate section-something label has been added.

Labels should be type-content and section-tools, but I can't add them yet.


Not working on Windows Vista - 80072EFE

I tried Legacy Update on a Windows Vista Home Basic x86 VM, and I got the same "80072EFE" error that normal Windows update shows. I tried installing Windows Update Agent 7.6.7600.256, however got the same error.

Thanks for reporting, going to close this in favor of #8 so we can track the issue in one place.


chore(udf): attach parent pom to java udf and enable formatting

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
As titled.
Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

Documentation

[x] My PR contains user-facing changes.

Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.

Installation and deployment
Connector (sources & sinks)
SQL commands, functions, and operators
RisingWave cluster configuration changes
Other (please specify in the release note below)

Release note

The spotless-maven-plugin. You can run it by mvn spotless:apply in the java/ folder.

Just added a doc for setting up Intellij IDEA with checkstyle configuration. The setting for VSCode in the doc is following the guide in the plugin description, but it seems not working, added to the doc anyway.


undefined symbol: _ZN2at6detail20DynamicCUDAInterface10set_deviceE

Hi everyone. What happened?
python test.py CornerNet --testiter 500000
Traceback (most recent call last):
File "test.py", line 14, in
from nnet.py_factory import NetworkFactory
File "/home/jinxuany/CornerNet/nnet/py_factory.py", line 7, in
from models.py_utils.data_parallel import DataParallel
File "/home/jinxuany/CornerNet/models/py_utils/init.py", line 6, in
from ._cpools import TopPool, BottomPool, LeftPool, RightPool
File "/home/jinxuany/CornerNet/models/py_utils/_cpools/init.py", line 6, in
import top_pool, bottom_pool, left_pool, right_pool
ImportError: /home/jinxuany/.local/lib/python3.6/site-packages/cpools-0.0.0-py3.6-linux-x86_64.egg/top_pool.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZN2at6detail20DynamicCUDAInterface10set_deviceE

cuda version was inconsistent with torch.version.cuda

I have the same problem. How can I solve it?@woaiwoziji，If it's a CUDA problem, how do you solve it?

I have the same problem. How can I solve it?
cuda version was consistent with torch.version.cuda
10.0.130

This problem was solved a long time ago. It seems to be a version problem. My version torch.version.cuda is 9.0.
------------------ 原始邮件 ------------------
发件人<EMAIL_ADDRESS>发送时间: 2019年6月23日(星期天) 上午8:38
收件人<EMAIL_ADDRESS>抄送: "than."1967547790<EMAIL_ADDRESS>主题: Re: [princeton-vl/CornerNet] undefined symbol:_ZN2at6detail20DynamicCUDAInterface10set_deviceE (#50)
I have the same problem. How can I solve it?
cuda version was consistent with torch.version.cuda
10.0.130
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

@jmuyjl  my version is correct, but i still get this problem. why?

First, check your cudnn version, cudnn must not be higher than the pytorch version. check you cuda version at the same time.
Second, use the gcc == 4.9 to compile your cpool code in ./models/py_utils/_cpool/ .
use the command

python setup.py install

instead of
python setup.py install --user

I have the same problem. How can I solve it?
cuda version was consistent with torch.version.cuda
10.0.130

Have you solve this problem? I meet it the same as you


Prevented a crash upon running the program when the Wallpapers directory is nonexistent.

Previously, the program would crash on the call to copyfile() if the Wallpapers directory was not present. I added a check for such a condition so that the Wallpapers directory is created if it is nonexistent, thus avoiding the crash. I also escaped some backslashes in the pathname strings; while not strictly required in this case, it's good practice (and I wanted to please pylint).
I put the check before the function definition because it seemed logical to put the existence check close to the definition of dest_dir and away from the code relating to the actual image gathering process, but if you want the function definition before all global code, feel free to move the check as you see fit.

Wonderful! This is why I love open source: I can scratch personal itches. :)


cdk deploy fails on amazon linux

Trying to install the "auditor" component of CloudMapper, running:
cdk deploy
fails with the following error:
CloudmapperauditorStack: deploying...
[0%] start: Publishing 7d99a4f586c59ecd17b087e69f249b899a5673a27876f69da07978510d40128f:current
[33%] success: Published 7d99a4f586c59ecd17b087e69f249b899a5673a27876f69da07978510d40128f:current
[33%] start: Publishing b120b13d9d868c7622e7db1b68bae4c0f82ffd0227b8c15f2cef38e186ff3827:current
[66%] success: Published b120b13d9d868c7622e7db1b68bae4c0f82ffd0227b8c15f2cef38e186ff3827:current
[66%] start: Publishing f3f824f4fd47765523da8b5b127808a608cbde9379a25e750ccae51a56547802:current
Sending build context to Docker daemon  5.637MB
Step 1/12 : FROM python:3.7-slim as cloudmapper
---> e7de75b2cb5a
Step 2/12 : LABEL maintainer="https://github.com/0xdabbad00/"
---> Using cache
---> dd7381097d28
Step 3/12 : LABEL Project="https://github.com/duo-labs/cloudmapper"
---> Using cache
---> be0ed038a6e5
Step 4/12 : WORKDIR /opt/cloudmapper
---> Using cache
---> 977693909a82
Step 5/12 : ENV AWS_DEFAULT_REGION=us-east-1
---> Using cache
---> addae45f0ff0
Step 6/12 : RUN apt-get update -y
---> Using cache
---> 1a8bf1c5b5c2
Step 7/12 : RUN apt-get install -y build-essential autoconf automake libtool python3.7-dev python3-tk jq awscli
---> Running in d43cbfc4691c
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package python3.7-dev
E: Couldn't find any package by glob 'python3.7-dev'
E: Couldn't find any package by regex 'python3.7-dev'
The command '/bin/sh -c apt-get install -y build-essential autoconf automake libtool python3.7-dev python3-tk jq awscli' returned a non-zero code: 100
[100%] fail: docker build --tag cdkasset-f3f824f4fd47765523da8b5b127808a608cbde9379a25e750ccae51a56547802 . exited with error code 100: The command '/bin/sh -c apt-get install -y build-essential autoconf automake libtool python3.7-dev python3-tk jq awscli' returned a non-zero code: 100
❌  CloudmapperauditorStack failed: Error: Failed to publish one or more assets. See the error messages above for more information.
Failed to publish one or more assets. See the error messages above for more information.

@matt-f-tsu This PR #892 corrects this build issue. The python3.7-dev package appears to have been deprecated. Remove this package from Dockerfile and it should work:
- sed -i -e "s#python3.7-dev##g" auditor/resources/Dockerfile
- sed -i -e "s#python3.7-dev##g" auditor/resources/cloudmapper/Dockerfile


Setup Shared Tool Infrastructure for internal LibreCores nodes

Requirements:

Availability via network (shared storage on NFS)
Support of multiple tool versions with automatic version listing
Nice2Have: Integration with Custom Tools (environment setup, etc.)

Still needs Pipeline integration :(

Open questions:

Samba/NFS or Amazon-specific options?

Is this still an issue? How does this translate onto dockerized infra?
Example:
You can have different slave Docker containers with different tools. Maybe even reconfigurable ones. Master node will run different jobs and maybe even job stages on different nodes. And maybe sometimes ask nodes (excluding ones that are user-donated) to reconfigure themselves. Custom tools/FPGAs available are reported by the nodes when they first call for master.
Why will you ever need NFS?

We started from using containers with tools. Unfortunately, some containers in this case become too big, e.g. when you run FuseSoC. In this case you need to have all tools in a single container. In my test setup it's solved by a volume with tools, which are deployable via Modules. But it still needs to be documented better


Using FontAwesome icons inside Image leads to inversed visuals

Hi there,
when using the current FontAwesome Iconpack (v1.9.1 or .0) the icons are displayed like this when embedding as Image inside XAML code using an custom converter (bool to icon):

Here is the code of the converter:
https://gist.github.com/gimmebytes/0d217c2261ce7ea60f33a2ae2db93958
And here the binding inside the XAML code:
<Image Height="24" Width="24" Source="{Binding SomeObject.BoolField, Converter={StaticResource IconConverter}}" />
When using the Modern Icon Pack everything is working fine. Havn't tested other packs yet.
Any help is appreciated, thanks in advance!

@gimmebytes Hi, this is caused by the raw original data from the FontAwesome icons. You must flip/scale the icons at y-axis by -1 like I does at the style
https://github.com/MahApps/MahApps.Metro.IconPacks/blob/6c829e868a3265903a3694641fb45fe57ca488c1/src/MahApps.Metro.IconPacks/Themes/PackIconFontAwesome.xaml#L43-L45

@punker76 Thanks, that did the trick. I've updated the gist accordingly!


#10869: Distributing reviews required for ops

Ticket
Link to Github Issue
Problem description
Provide context for the problem.
What's changed
Describe the approach used to solve the problem.
Summarize the changes made and its impact.
Checklist

[ ] Post commit CI passes
[ ] Model regression CI testing passes (if applicable)
[ ] New/Existing tests provide coverage for changes

I humbly welcome @TT-BrianLiu as an honorary ccl developer


Added keyfiguresfinland

There is the python file. Data and json files are in the assets folder.

HI @tuopouk
Thanks for the new example app - looks interesting!
Can you remove the other unrelated files and just keep the ones for the new app?
When I tried to run this locally, the figure didn't render.  Are there things that need to be added to the requirements.txt?

Hi @AnnMarieW
Did you mean that the figure didn't render so that the background was blank white or did you get the map showing on the screen? I was able to reproduce the blank screen with plotly version 5.11.0. For some reason it seems to be working plotly version 5.3.1. I honestly have no idea why it won't render with the higher version of plotly. Do you think we could solve this? About the files, I thought only added the json and the csv in the assets folder. I'll double check.

Hi @tuopouk I could get it to work with Plotly < 9.0, otherwise I just get a blank white background.
I think this is a question for @Coding-with-Adam

hi @AnnMarieW hi @tuopouk
It worked for me and it was fast. I used the virtual environment tied to the dash-example-index, which has Plotly 5.7.0. But I also tried with Plotly 5.11 and it worked.
Tuomas can you please remove the other non-relevant files from the PR, as Ann suggested. I can then try to pull the PR's branch and see if it works locally again.

@Coding-with-Adam I only added the three necessary files on the latest PR.  There is the keyfiguresfinland.py in the examples folder + the key_figures_regions.csv and regions.json in the ./assets folder.

@tuopouk If you click on the files changed tab, you will see there are 6 files included in this PR

@Coding-with-Adam Thanks Adam, I see now. I deleted the two .py files. Now there are four left. For some reason I cannot delete the clock mp3 file, I can only view it.

I'll make another with only required files


Updating order status on using BSE Star APIs

Hi,
We were trying to build a MF transaction platform using BSE star MF APIs. I wanted to know how did you update the transaction status for all orders?
Did you download any batch file and update it or how did you do it?

I wrote a scraper that periodically checked order status on BSE star MF platform and updated the status. It was a hacky solution but it was the most automation I could get


Fix parenthesis in help message

welcome to the console @ronensc 😀

Thanks 😊
What should I do to make tide check pass?

Thanks blush What should I do to make tide check pass?

As soon as you have CI succeeded + LGTM label from one approver, you can type /approve to automatically merge the PR

/approve


refactor replication controller

It should use the same technique used in the scheduler, leveraging the objects in client/cache.
Specifically, it should keep a cache/FIFO of replication controllers, and a cache of pods, both to reduce load on apiserver and to improve response time & code clarity.
For bonus points, could use a FIFO of pod changes to track replica counts instantly instead of with the delay from periodic syncing.

@bprashanth

I can hack away at this as I touch related code, I'm guessing it isn't for 1.0 since it's a p3

@bprashanth did this.


0.4.0 re-introduced issue #10

See  https://github.com/derberg/global-workflows-support/issues/10

@Chris-Softrams can you provide some logs or something. Action now uses REST API, not GraphQL to get list of repos (because of easier pagination) and look at: https://github.com/derberg/global-workflows-support/blob/main/lib/api-calls.js#L63. According to docs, this is where info about default branch is stored, or root of response under default_branch

I'm closing this issue as there are no details. I tried to find issues while working on https://github.com/derberg/global-workflows-support/releases/tag/v0.6.0 and manual testing, but all was good. Please create new issue with logs


PR: Correct next/previous word shortcut callback in Spyder 4

Issue(s) Resolved

Fixes #7872 for the master branch
PR #7873 was be opened to fix the same issue in 3.x
Partial fix for #7853

Description of Changes

[x] Replace the StartOfWord and EndOfWord variable name by PreviousWord and NextWord for the Previous Word and Next Word shortcut, so that the right callback is associated with these shortcuts.
[x] Change the default key sequence for the  Next Word shortcut to Ctrl+Right from Meta+Right
[x] Change the default key sequence for the Previous Word shortcut to Ctrl+Left from Meta+Left
[x] Add a test

By submitting this Pull Request, I affirm that:

I release the content of this PR under Spyder's MIT (Expat) license.
I hold the copyright to all the content in this PR, have not copied any of it
directly or indirectly from any source other than the public domain,
and no other party owns the rights to this work.

<!--- TYPE YOUR GITHUB USERNAME OR FULL NAME AFTER THE BELOW STATEMENT ---!>
I affirm all of the above: Jean-Sébastien Gosselin

Hello @jnsebgosselin! Thanks for submitting the PR.

There are no PEP8 issues in the file spyder/config/main.py !

There are no PEP8 issues in the file spyder/plugins/editor/widgets/codeeditor.py !

There are no PEP8 issues in the file spyder/plugins/editor/widgets/tests/test_shortcuts.py !

@ccordoba12  mmmh, how is that Travis was not triggered? What should I do?

I think Travis is down or something. I'm going to push another minor codestyle change to trigger it later today.


Nougat

dxLoadingButton.animationEndAction = fun(animationType: AnimationType): Unit {
toNextPage(string,noPhone)
return Unit
}
cannot run on nougat

@jonrysimbolon it's a bug, has fixed in new version


fix: escape escape codes in the serializer

fixes #21
I've also noticed another issue which I fixed alongside this. Previously, when given a string like hello\n we would happily write this to the output stream:
key = "hello
"

which is of course very wrong.

hmmm, how should we handle non ascii chars? should we just write them as is (the current behaviour)? or maybe convert them to the appropriate toml escape code \uXXXX

could you merge #17 as well?


Fixed Switch to Default Editor From Symbol Outline [WIP]

This PR fixes #124122
Previously, clicking on symbols in the file outline when you had a different default editor would open your default. This editor override disable should fix it.

@andreamah Do you mind testing to see how your changes work if a custom editor provides outline information. For example set markdown notebooks to be your default and then test the outline. That's the only case I think might not work with this change, but if it does then I think the changes look good.

Yeah, looks like that doesn't work with the change :/ I'll take a look at how I can change it so that it can only override to the same editor for the symbol reveal.

👍 Should be good to go then


Add important console commands

The project needs some console commands for the future:

[ ] Install/ Init command
[ ] Add User command that allows to instantly promote to admin.
[x] Add Areas command
[x] Add Hospital command
[x] Clear Imports command (remove files related to Import)
[x] Re-Import command (delete corresponding Allocations and process them again)
[x] Watchdog command (process all Allocations as a batch, search for and fix errors)

Removed some commands that are not usefull at the moment. I guess adding Users and initialising of the application are most important right now.


Can arrow be used to validate if a string is ISO 8601 formed?

I'm using arrow in my validation logic, something like
try:
    return arrow.get(value)
except arrow.parser.ParseError as e:
    raise ValidationError(message=str(e))

However, arrow can be very loose on parsing things:
In [2]: arrow.get('http://<IP_ADDRESS>:5000')
Out[2]: <Arrow [5000-01-01T00:00:00+00:00]>

Is there any recommended way to validate if a string is ISO 8601 formed? Is arrow suitable for this use case?

@blurrcat I stumbled upon your question here and wanted to point out that dateutil as of a new version (2.7-something, I think) has ISO-specific support:
from dateutil.parser import isoparse

isoparse('http://<IP_ADDRESS>:5000')  # raises
isoparse(time.asctime())
isoparse('2019-03-04T00:00:00Z')  # ok

Interesting maybe we could backport isoparse into arrow since the dateutil requirement is set to 2.6.0

Looking back now I think the point I missed is that Arrow is not intended to be used as a validator. The ability to parse somewhat valid strings is just a convenience.


ABV support of some kind. Not tested too much yet...

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I've noticed a few issues since adding it; it always calculates the ABV via the current device gravity reading, which causes issues when loading prior logs. I'll have to add some updates for this soon! I also think it would be better to cache the result..I can probably add this in server side now that I'm more familiar with the code and django.


Add tensorflow io support in Docker container

Add tensorflow-io partial Dockerfile and updated the spec.yml file, to provide object storage support for tensorflow images out of the box as seen in this issue

While I appreciate the work you've done here, I prefer not to accept this change because:

These are "officially supported" TensorFlow docker containers, and it's not our goal to include community / third-party support as well
The complicated "partials" system is a nightmare to maintain, and we're discussing deprecation of these containers in favor of a different Docker recommendation (but no concrete plans yet).

@angerson tensorflow-io is officially part of tensorflow repo, how can this be considered 3rd party and with the new io repo tensorflow docker images have broken support for object storage files systems that used to work before, this PR is trying to address that.

tensorflow-io is a SIG IO project, not a Google project

@mihaimaruseac well, gcs support is also part of tensorflow-io and it got a special separate wheel which is being added as a dependency to tensorflow, in this scenario, the tensorflow-io-gcs-filesystem is also a 3rd party isn't it? it sits on the tensorflow-io repo, per https://github.com/tensorflow/tensorflow/commit/7add88f2982331be6ba65ddc66f1c88053028fff it seems the split was for modularity and not to remove functionality from TF
Support for other filesystems was part of TensorFlow all the way up to 2.4, by removing them from upstream the message we are getting is, don't use upstream for other cloud providers storage other than Google unless you really know what you are doing, which in my opinion is a very steep learning curve for anyone trying to use TF and for serious users they are not going to trust a 3rd party docker image all the time, users simply won't keep up with upstream TF since they have to built specialized docker images.
With this PR we are simply trying to return a functionality that was already present and all over the internet you can see the struggle of people trying to solve this problem over and over, the way I see the reason why there's only one tensorflow docker image for tensorflow, tensorboard and tensorflow-serve means, you prefer a one stop solution, so if the fix won't be coming to core, it should at least be in the main container image.

The difference is that there is an equivalent of GCS filesystem built internally and both internal and external GCS support is tested nightly.
We need to strike a balance between what batteries are included within TF and what we ask the OSS team to support. It is unreasonable for a team of a handful of engineers to support all possible filesystems that exist out there.

That would work, I think. but note that I'm no longer in TF, only doing drive by help (and should mostly focus on security stuff only). So I cannot do the decision here. Leaving to @angerson and the team

@angerson Any suggestions as to when this PR will be merged, we have a need to leverage this change ASAP.

Sorry, I'm still against adding this to the official tensorflow docker containers. It would be expanding the implied support range for something that's already not very maintained to a wider scope, and ultimately wouldn't be a good precedent for us.
@learning-to-play @MichaelHudgins FYI

Hi @raghav-vk, Having software that can be easily changed/updated is key to developer productivity. Additional support can make the code rigid and future upgrades/changes more difficult (due to incompatibilities, etc). A developer who would like to make a change in the software would also have to read and understand a broader scope. Taking into account the maintainability downsides, the proposed PR/change don't seem the best option to me.

Hi @MichaelHudgins Can you please resolve conflicts? Thank you!

Hi @dilverse Can you please resolve conflicts? Thank you!

These containers have been moved to https://github.com/tensorflow/build/tree/master/tensorflow_runtime_dockerfiles.


SB-29494 - Configuration param to check index file in Zip content

SB-29494  Need configuration parameter for Index file check for zip file

PR for JIRA #SB-29494

@AmiableAnil - Please review this PR.. this is replacement for PR #818

@karthik-tarento Also verify the review and publish flow when isIndexHtmlValidationRequired is false.

@karthik-tarento Also verify the review and publish flow when isIndexHtmlValidationRequired is false.

Yes, this is verified in our environment.


Add automatic offset search

Searches program memory for the API url and if found sets the offset to the found address. If not found, continues with the predefined offset address. Currently assumes the first instance of the API url found in memory is the one that needs to be overwritten.
Hopefully, this commit fixes #17

The checks should also be fixed now if you want to rebase against the latest dev branch.


Add getter token in NotFound Exception

Use case:
When using the firebase messaging service, we store the device token to send the the push notifications. sometimes we ended with unregistered token from the firebase project. the api throw an error and is catch by NotFound exception.
As backend service is no need to use that token that was unregistered. it will be good to know which token that was throw in the exception because the user it may have multiple device token stored in the backend.

Thanks for taking the time to create a PR! Could you please rename the getToken() method to token() and add tests to cover the method?
As a general remark: it's always nice to add a PR description with some additional insights, for example why you need this method and in which context. I know sometimes the title and changes already transport the use, but it adds a human touch 😅

Thanks for taking the time to create a PR! Could you please rename the getToken() method to token() and add tests to cover the method?
As a general remark: it's always nice to add a PR description with some additional insights, for example why you need this method and in which context. I know sometimes the title and changes already transport the use, but it adds a human touch 😅

Yes sure, I will add the test 👍

This feature would be useful in cleaning up invalid tokens.

@kitro Thank you!

🥳


Custom Renders through ModPE! (Feature request)

I tweeted at you (view attached file) a picture of how Custom Renders could work through ModPE. So I opened an issue here where I could share the code I wrote. So if you would like to use the code I wrote for BlockLauncher, here:
Block.defineBlock(200, "Custom Render",["stone",0], 1, false);Block.setDestroyTime(200,2);Block.setLightOpacity(200,0);Player.addItemCreativeInv(200, 0);//Use THIS instead of setShape for Custom Renders:Block.setCustomRender(200,0){ //200=id | 0=data valueBlock.setRenderBound(["planks",0], 0, 0 , 0, 16/16,  16/16, 8/16);//["planks",0]=texture | 0, 0 , 0, 16/16,  16/16, 8/16=shape of renderBlock.setRenderBound(["planks",0], 0, 0 , 0, 16/16,  8/16, 16/16);//["planks",0]=texture | 0, 0 , 0, 16/16,  8/16, 16/16=shape of render//This would create oak wood stairs/*The texture in defineBlock would be ignored due to the custom render.You could also remove the texture from define block if you have a setRenderBound.Or remove the texture from setRenderBound and use the defineBlock texture for the entire thing.Or have one renderBound with no texture to use the defineBlock texture*/
Hope you consider adding this, I worked hard on designing the code so you wouldn't have to design it yourself. :)

I wanted this so damn long, if we could get it now that'd be incredible!


Allow custom answer generation function in WWB

This functionally will help for enable different model API that has different interface for generation answers (e.g. OpenVINO GenAI)
example with GenAI:
from transformers import AutoModelForCausalLM, AutoTokenizer
import huggingface_hub as hf_hub
import whowhatbench
import openvino_genai

model_id = "databricks/dolly-v2-3b"
base_model = AutoModelForCausalLM.from_pretrained(model_id)
ov_model_dir = "./dolly-v2-3b-int4-ov"

hf_hub.snapshot_download("OpenVINO/dolly-v2-3b-int4-ov", local_dir=ov_model_dir)
optimized_model = openvino_genai.LLMPipeline(ov_model_dir, "CPU")
tokenizer = AutoTokenizer.from_pretrained(model_id)

def genai_gen_answer(model, tokenizer, question, max_new_tokens, skip_question):
    out = model.generate(question, max_new_tokens=max_new_tokens)
    return out.texts[0]

evaluator = whowhatbench.Evaluator(base_model=base_model, tokenizer=tokenizer)
metrics_per_prompt, metrics = evaluator.score(optimized_mode, gen_answer_fn=genai_gen_answer)

This functionally will help for enable different model API that has different interface for generation answers (e.g. OpenVINO GenAI)
example with GenAI:
from transformers import AutoModelForCausalLM, AutoTokenizer
import huggingface_hub as hf_hub
import whowhatbench
import openvino_genai

model_id = "databricks/dolly-v2-3b"
base_model = AutoModelForCausalLM.from_pretrained(model_id)
ov_model_dir = "./dolly-v2-3b-int4-ov"

hf_hub.snapshot_download("OpenVINO/dolly-v2-3b-int4-ov", local_dir=ov_model_dir)
optimized_model = openvino_genai.LLMPipeline(ov_model_dir, "CPU")
tokenizer = AutoTokenizer.from_pretrained(model_id)

def genai_gen_answer(model, tokenizer, question, max_new_tokens, skip_question):
    out = model.generate(question, max_new_tokens=max_new_tokens)
    return out.texts[0]

evaluator = whowhatbench.Evaluator(base_model=base_model, tokenizer=tokenizer)
metrics_per_prompt, metrics = evaluator.score(optimized_mode, gen_answer_fn=genai_gen_answer)

@eaidova
May be it is better to move gen_answer_fn to  whowhatbench.Evaluator() init? In current implementation base_model and optimized model will have different inference.

This functionally will help for enable different model API that has different interface for generation answers (e.g. OpenVINO GenAI)
example with GenAI:
from transformers import AutoModelForCausalLM, AutoTokenizer
import huggingface_hub as hf_hub
import whowhatbench
import openvino_genai

model_id = "databricks/dolly-v2-3b"
base_model = AutoModelForCausalLM.from_pretrained(model_id)
ov_model_dir = "./dolly-v2-3b-int4-ov"

hf_hub.snapshot_download("OpenVINO/dolly-v2-3b-int4-ov", local_dir=ov_model_dir)
optimized_model = openvino_genai.LLMPipeline(ov_model_dir, "CPU")
tokenizer = AutoTokenizer.from_pretrained(model_id)

def genai_gen_answer(model, tokenizer, question, max_new_tokens, skip_question):
    out = model.generate(question, max_new_tokens=max_new_tokens)
    return out.texts[0]

evaluator = whowhatbench.Evaluator(base_model=base_model, tokenizer=tokenizer)
metrics_per_prompt, metrics = evaluator.score(optimized_mode, gen_answer_fn=genai_gen_answer)

@eaidova May be it is better to move gen_answer_fn to whowhatbench.Evaluator() init? In current implementation base_model and optimized model will have different inference.

@andreyanufr  it is expected that they may have different inference. I want to compare model answers between genai and original model or optimum-intel. In this case, both base and optimized maybe used via different API.
Do you think I should implement this for base model too?


Circle fix

Summary:
Testing deploy
Is this ready to be merged into Dynamoose? (select 1):

[x] Yes
[ ] No

Other:

[x] I have searched through the GitHub pull requests to ensure this PR has not already been submitted
[x] I have updated the Dynamoose documentation (if required) given the changes I made
[x] I have added/updated the Dynamoose test cases (if required) given the changes I made
[x] I agree that all changes made in this pull request may be distributed and are made available in accordance with the Dynamoose license
[x] All of my commits and commit messages are detailed, explain what changes were made, and are easy to follow and understand
[x] I have filled out all fields above

Pull Request Test Coverage Report for Build 989

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 85.895%

Totals

Change from base Build 980:
0.3%

Covered Lines:
2180

Relevant Lines:
2467

💛  - Coveralls

Pull Request Test Coverage Report for Build 989

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.3%) to 85.895%

Totals

Change from base Build 980:
0.3%

Covered Lines:
2180

Relevant Lines:
2467

💛  - Coveralls


🤗 [REQUEST] - WaveCoder-Ultra-6.7B

Model introduction
WaveCoder 🌊 is a series of large language models (LLMs) for the coding domain, designed to solve relevant problems in the field of code through instruction-following learning. Its training dataset was generated from a subset of code-search-net data using a generator-discriminator framework based on LLMs that we proposed, covering four general code-related tasks: code generation, code summary, code translation, and code repair.
Model URL
https://huggingface.co/microsoft/wavecoder-ultra-6.7b
Data type
bfloat16
Additional instructions (Optional)
We use the code base from magicoder (https://github.com/ise-uiuc/magicoder) and evalplus (https://github.com/evalplus/evalplus), anyone can reach the score by running the following command:
MODEL_KEY=deepseek-ai/deepseek-coder-6.7b-base
MODEL=microsoft/wavecoder-ultra-6.7b

DATASET=humaneval
SAVE_PATH=evalplus-$(basename $MODEL)-$DATASET.jsonl
SANITIZED_PATH=humaneval_result/evalplus-$(basename $MODEL)-$DATASET-sanitized.jsonl

python -m experiments.text2code \
  --model_key $MODEL_KEY \
  --model_name_or_path $MODEL \
  --save_path $SAVE_PATH \
  --dataset $DATASET \
  --temperature 0.0 \
  --top_p 1.0 \
  --max_new_tokens 512 \
  --n_problems_per_batch 28 \
  --n_samples_per_problem 1 \
  --n_batches 1

echo "$MODEL"
evalplus.evaluate --dataset $DATASET --samples $SAVE_PATH

Author
Yes
Security

[X] I confirm that the model is safe to run which does not contain any malicious code or content.

Integrity

[X] I confirm that the model comes from unique and original work and does not contain any plagiarism.

Dup of #160

Hi @answers111 it seems that wavecoder as an instruction-following model does not have a chat prompt (https://huggingface.co/microsoft/wavecoder-ultra-6.7b/blob/main/tokenizer_config.json). Can you fix it? Otherwise the framework now runs direct generation/completion.

Hi, Jiawei. Actually we use the following prompt on HumanEval benchmark for code completion task.

@@ Instruction
Write a solution to the following problem:
```python
def flip_case(string: str) -> str:
    """ For a given string, flip lowercase characters to uppercase and uppercase to lowercase.
    >>> flip_case('Hello')
    'hELLO'
    """

@@ Response
def flip_case(string: str) -> str:
    """ For a given string, flip lowercase characters to uppercase and uppercase to lowercase.
    >>> flip_case('Hello')
    'hELLO'
    """

You can reach the reported score with it.
We will add the chat prompt in the next version. Thank you!
------------------ 原始邮件 ------------------
发件人: "Jiawei @.>;
发送时间: 2024年4月30日(星期二) 上午9:46
收件人: @.>;
抄送: @.>; @.>;
主题: Re: [evalplus/evalplus] 🤗 [REQUEST] - WaveCoder-Ultra-6.7B (Issue #169)
Hi @answers111 it seems that wavecoder as an instruction-following model does not have a chat prompt (https://huggingface.co/microsoft/wavecoder-ultra-6.7b/blob/main/tokenizer_config.json). Can you fix it? Otherwise the framework now runs direct generation/completion.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

Hi, @ganler, Could we possibly provide the test code? In fact, we found in other issues that we can use the test code from magicoder for testing. I look forward to receiving your reply.
https://github.com/evalplus/evalplus/issues/40

Hello, @Bonytu @answers111 : for convenience now EvalPlus directly use apply_chat_template (https://huggingface.co/docs/transformers/main/en/chat_templating) for prompt construction. That being said, if you want to apply the prompt format you can just add a chat template as I mentioned in https://github.com/evalplus/evalplus/issues/169#issuecomment-2084122098. :)
It seems that WaveCoder uses the same prompt format as Magicoder, so a very easy way you can do to enable the chat template is to use this line as the template: https://huggingface.co/ise-uiuc/Magicoder-S-DS-6.7B/blob/main/tokenizer_config.json#L183

Oh, I actually found that you updated the chat template just a few hours ago. I will rerun the eval using the latest chat template then. :) Thanks!

@ganler Thanks for your help

Let me know if my repro is consistent with yours @Bonytu @answers111

This results are still inconsistent, but it's okay. We will open source the repository and test results soon and re-communicate with you about the test. Please keep the issue open. Thank you.
cc: @Bonytu

Hi, ganler. We have released our evaluation results under evalplus (https://github.com/microsoft/WaveCoder/tree/main/src/eval/evalplus). You may get the original score by running it. Thanks a lot.
cc: @Bonytu


Add Accessible Header Example

Added example of an Accessible Header tag with the appropriate role, along with a description of why the role is needed and what it signifies.

[x] I have read freeCodeCamp's contribution guidelines.
[x] My pull request has a descriptive title (not a vague title like Update index.md)
[x] My pull request targets the master branch of freeCodeCamp.
[x] None of my changes are plagiarized from another source without proper attribution.
[x] My article does not contain shortened URLs or affiliate links.

If your pull request closes a GitHub issue, replace the XXXXX below with the issue number.
Closes #XXXXX

Thank you for your contribution to the page! 👍
We're happy to accept these changes, and look forward to future contributions. 🎉


Server Info window

I have a copy of Abaddon that I find cool, but rarely use. It has a server information button, like its name, role list, member list, emoji list, I think invites, audit log, and ban list too if you have permissions. I don't remember there being anything else but idk. I'm kinda typing this from memory. I would open it and check and send screenshots, but even if I use Abaddon once, pisscord likes to eventually force a password change and maybe force adding phone number too. I'd rather avoid that as I don't have a phone number to spare for another account nor do I want to risk getting a ban or deal with a forced password change on main.

Is this a suggestion that I should add this to Discord Messenger?  The contents don't seem like it.

Then please rephrase your request.

I'd just like to see the feature added, like right click the server and there's a server information or whatever button that opens a window with these tabs. (server information with basic info like its name, role list, member list, emoji list, I think invites, audit log, and ban list too if you have permissions)
The second part is me describing I'm typing this from memory as I don't want to get an account locked again like usually happens.

basically theyre asking for this property window from ripcord

Actually yeah, that looks better even. Thanks for that.


Cannot set mode="wait" on AnimatePresence

Current Behavior
framer-motion allows you to set mode="wait" on AnimatePresence.  This waits for the previous component to exit fully before the next one enters.  It's particularly useful, for example, in this image gallery slider.  In your example code, you have to set a fixed height for the component since you're positioning the elements with absolute positioning.  It's much better to pass mode="wait" and allow framer-motion to dynamically adjust to the height of the content. If there is some other prop for getting this same functionality, please let me know! Otherwise, I'm pretty certain you are just using framer-motion under the hood, so I think this may be a quick and easy fix.

With Tamagui AnimatePresence, element has 0 height:

With framer-motion AnimatePresence and mode="wait", AnimatePresence adjusts to height of content:
https://github.com/tamagui/tamagui/assets/36751902/e12f8b09-ce6c-4060-9ded-ff804cc218e6
https://github.com/tamagui/tamagui/assets/36751902/30817801-7005-4121-8f45-f777e87be06c
Expected Behavior
I am able to pass mode="wait" to AnimatePresence. Or AnimatePresence should have a dynamic height which expands to the current visible content.
Tamagui Version
1.95.1

Platform (Web, iOS, Android)
Web

Reproduction
https://codesandbox.io/p/devbox/adoring-sky-g6k65c?layout=%257B%2522sidebarPanel%2522%253A%2522SEARCH%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clxde4ops00063b6kuarju6ul%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clxde4opr00023b6k76wjtxxu%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clxde4ops00043b6kpome2d1z%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clxde4ops00053b6ka72taqzo%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clxde4opr00023b6k76wjtxxu%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clxde4opr00013b6k4dm2hfq8%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%252C%2522state%2522%253A%2522IDLE%2522%257D%255D%252C%2522id%2522%253A%2522clxde4opr00023b6k76wjtxxu%2522%252C%2522activeTabId%2522%253A%2522clxde4opr00013b6k4dm2hfq8%2522%257D%252C%2522clxde4ops00053b6ka72taqzo%2522%253A%257B%2522id%2522%253A%2522clxde4ops00053b6ka72taqzo%2522%252C%2522activeTabId%2522%253A%2522clxdf76wc002l3b6ig4rv6jco%2522%252C%2522tabs%2522%253A%255B%257B%2522type%2522%253A%2522UNASSIGNED_PORT%2522%252C%2522port%2522%253A3000%252C%2522id%2522%253A%2522clxdf76wc002l3b6ig4rv6jco%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522path%2522%253A%2522%252F%2522%257D%255D%257D%252C%2522clxde4ops00043b6kpome2d1z%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clxde4ops00033b6kx7i2d7sc%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522Development%2522%257D%255D%252C%2522id%2522%253A%2522clxde4ops00043b6kpome2d1z%2522%252C%2522activeTabId%2522%253A%2522clxde4ops00033b6kx7i2d7sc%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

System Info
No response

So actually we have this under exitBeforeEnter mirroring the old AnimatePresence API in framer-motion - I had tried updating to the latest version but there are some correctness bugs I found and reported to framer. In the end I didn't upgrade to the new API because of those bugs though.


Internationalization: Does not default display time correct with fractions

I have not been looking at the code to find the configuration that needs to be changed to make the internationalization not remove fractions in result sets.
UI Correction: Preference → Database → Results Sets → Data Formats
for Format Type:
Time change Pattern from HH:mm:ss to HH:mm:ss.ffffff
Timestamp change Pattern from yyyy-MM-dd HH:mm:ss to yyyy-MM-dd HH:mm:ss.ffffff

cannot reproduce an issue.
Ticket closed.
If issue is still actual for you - feel free to reopen the ticket


I am unable to access some resources.

I followed the case operation, but I have been unable to obtain resources. I have tried to turn on VPN and turn off firewall, but I am still unable to access resources. Why? I need your help.
<!-- Add references to the Azure Maps Map control JavaScript and CSS files. -->
<link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css" rel="stylesheet" />
<script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js"></script>

<!-- Add a reference to the Azure Maps Services Module JavaScript file. -->
<script src="https://atlas.microsoft.com/sdk/javascript/service/2/atlas-service.min.js"></script>

    function GetMap() {
        //Initialize a map instance.
        map = new atlas.Map('myMap', {
            center: [-118.270293, 34.039737],
            zoom: 14,
            view: 'Auto',

            //Add authentication details for connecting to Azure Maps.
            authOptions: {
                //Use Azure Active Directory authentication.
                // authType: 'anonymous',
                // clientId: 'e6b6ab59-eb5d-4d25-aa57-581135b927f0', //Your Azure Maps client id for accessing your Azure Maps account.
                // getToken: function (resolve, reject, map) {
                //     //URL to your authentication service that retrieves an Azure Active Directory Token.
                //     var tokenServiceUrl = "https://samples.azuremaps.com/api/GetAzureMapsToken";

                //     fetch(tokenServiceUrl).then(r => r.text()).then(token => resolve(token));
                // }

                //Alternatively, use an Azure Maps key. Get an Azure Maps key at https://azure.com/maps. NOTE: The primary key should be used as the key.
                authType: 'subscriptionKey',
                subscriptionKey: '[key]'
            }
        });

AzureMapDemo.html:17
    GET https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.css net::ERR_CONNECTION_CLOSED

AzureMapDemo.html:18
    GET https://atlas.microsoft.com/sdk/javascript/mapcontrol/3/atlas.min.js net::ERR_CONNECTION_CLOSED

AzureMapDemo.html:21
    GET https://atlas.microsoft.com/sdk/javascript/service/2/atlas-service.min.js net::ERR_CONNECTION_CLOSED

AzureMapDemo.html:34  Uncaught ReferenceError: atlas is not defined
at GetMap (AzureMapDemo.html:34:13)
at onload (AzureMapDemo.html:360:25)

Azure Maps services are currently available globally except in the following countries/regions:

China
South Korea

Verify that the location of your current IP address is in a supported country/region.

Azure Maps services are currently available globally except in the following countries/regions:

China
South Korea

Verify that the location of your current IP address is in a supported country/region.
Thank you very much for your reply.I can log in to the Azure platform, but my Azure account does belong to the China region; When viewing the document, I thought it was determined based on the selected area of the Creator. Therefore, when the selected area in my Creator was the Eastern United States, I thought I could successfully access it, but it turned out that I was wrong。

Unfortunately, Azure Maps currently is not be available when you are using/viewing it from China main land. If you need mapping capabilities for inside China, we have Bing Maps 必应地图平台 - Bing Maps Platform China - Microsoft Map Solutions


Support / Test Ruby 3.0

Add this to the .rubocop.yml to reduce the Chefstyle warnings:
# This cop shouldn't alert on the helper / specs itself
Chef/Ruby/LegacyPowershellOutMethods:
  Exclude:
    - 'lib/chef/mixin/powershell_out.rb'
    - 'spec/functional/mixin/powershell_out_spec.rb'

Add this to the .rubocop.yml to reduce the Chefstyle warnings:
# This cop shouldn't alert on the helper / specs itself
Chef/Ruby/LegacyPowershellOutMethods:
  Exclude:
    - 'lib/chef/mixin/powershell_out.rb'
    - 'spec/functional/mixin/powershell_out_spec.rb'

@lamont-granquist if you rebase this the chefstyle issue should go away

@lamont-granquist if you rebase this the chefstyle issue should go away


Test that planneritem is not returned when listing work item types

Make sure that every action in every controller that returns a list of work item types (app.WorkItemTypeList) returns them without the base types (e.g. planneritem included).
This is a follow up PR for #1265 and especially in order to address this comment: https://github.com/almighty/almighty-core/pull/1265#discussion_r113763532 and get rid of this hack in the UI https://github.com/fabric8io/fabric8-planner/pull/1800

Equal might fix it. But not going to merge at this point.

Codecov Report

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

@@            Coverage Diff            @@
##             master    #1272   +/-   ##
=========================================
  Coverage          ?   60.07%
=========================================
  Files             ?      119
  Lines             ?    10685
  Branches          ?        0
=========================================
  Hits              ?     6419
  Misses            ?     3608
  Partials          ?      658

Impacted Files
Coverage Δ

controller/workitemtype.go
77.22% <100%> (ø)

controller/planner_backlog.go
73.68% <100%> (ø)

Continue to review full report at Codecov.

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


Webserver Not starting

Describe the bug
I started my photobooth normaly after a couple Off weeks for an Event ans the Webserver wasnt starting Up. (The booth was in drawer in storage and Off and ITS Always Not Connect to the Internet also If its running)
Before i Put it away it worked Just fine.
When i manuly start IT via ssh IT said
Sat Oct 26 15:26:55.273900 2024] [core:warn] [pid 2956] AH00111: Config variable ${APACHE_RUN_DIR} is not defined
apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRoot

I googled the issue and someone Said to run apache2ctl start
So i did IT when i started IT now IT said :
AH00534: apache2: Configuration error: No MPM loaded.
Steps to reproduce the behavior
Start Up the pi
Expected behavior
Working Photobooth
Photobooth Version
4.99
Browser and browser version
None
Operating System
Raspi 4
Did it work before?
Yes
Latest working version
4.99
Additional context
No response

Apache configuration isn't touched by Photobooth, must be an issue with your OS.
As the log said, you should check line 80 of /etc/apache2/apache2.conf

How do I stop and restart the Apache server on Linux?
<
< Execute sudo systemctl stop apache2 to halt and sudo systemctl start apache2 to restart the Apache server on Linux.
< Confirm status with sudo service apache2 status.


Write a F# program to find the eigenvalues of a matrix

Description
Write a F# program to find the eigenvalues of a matrix
The eigenvalues and eigenvectors of a linear transformation are the values and vectors that determine the transformation. The eigenvalues of a matrix A are the values λ for which the matrix equation Av = λv has a non-trivial solution.
Input  :
1 2 3
4 5 6
7 8 9

Output :
16.116843969807043
-1.1168439698070427
0.9999999999999998

How to contribute

Save the solution in FindTheEigenvaluesOfAMatrix.fs file
Add FindTheEigenvaluesOfAMatrix.fs file in program/find-the-eigenvalues-of-a-matrix folder

Assign me.


constant as cant match

The regex for as
\b(?<!)as(?!-)\b is missing - inside (?<!) => (?<!-)
(?<!) will never match
https://github.com/toitware/ide-tools/blob/60efd96a42cd639f7c966d9ed51b1cd456e4a8e8/vscode/syntaxes/toit.tmLanguage.yaml#L47

Big thanks for filing these issues.
Pull requests are uploaded.


remove source files from npm package

Currently the npm package contains the typescript source files. This can cause a problem, if someone using ng2-iq-select2 activates some strict compiler options, that ng2-iq-select2 doesn't fulfill. Then typescript will report an error in node_modules/ng2-iq-select2/... and won't compile.
I tried to fix this issue in this branch: https://github.com/saithis/ng2-iq-select2/commits/publish_script
But my problem is, that this only works with inline styles and template. Would it be ok for you to inline them? Otherwise angular2-inline-template-style could maybe be a solution.

I think that if that is necessary to have a more robust component, it will be no problem. I would rather like to keep them separated, though. Do you think that organizing the component-wrapper folder based on this library generator for example, could help? It seems that there is a script that inlines resources when building the library. This is just to evaluate another possibility before inlining everything.

I did some research yesterday and it seems, that publishing a library that is compatible with almost everything is really hard. There is a Angular Package Format, but generating it is a pain in the ass.

angular-cli: Will only support library development when it is based on angular devkit, which seems to be with version 2. But angular devkit is still in development and it will take at least a year, till it will be released.

angular-quickstart-lib: Is the one a member of the angular-cli team recommended, but the demo app is based on system.js and this makes publishing to github pages difficult (see issue here).

angular-library-starter: Looks good to me, but didn't try it out.

I took a quick look at the one you found and I'm not sure if it properly supports demo apps for github pages.

Github pages will be a nice feature. Currently, this library is not using it properly. The demo linked in the docs is another repo and it is really outdated. It is something I had pending to do... to update the demo and integrate it properly in this repo.
Anyway, meanwhile I think we could just include some gifs or images showing the behavior of the component and remove the live demo. That way it will be easier to use anyone of the solutions discussed previously. The 3rd option you mentioned looks great, but I haven't used it neither.

Another 2 possibilities would be angular-librarian and ng-packagr. The advantage of the 2 is, that they are cli tools like angular-cli which makes updates easier. They seem to have fewer features than angular-library-starter for now, but easier updates and possibily easier integration could make up for that.

angular-librarian doesn't output the Angular Package Format
ng-packagr doesn't support unit testing yes
angular-library-starter: I tried to integrate it with ng2-iq-select2 and I think every update of angular-library-starter would be a pain in the ass, because you can't just copy and paste the files, you have to diff them and apply each change manually :/

So I just made a PR which removes the source files from the npm package for now. I think its better to wait until someone specifically asks for a umd bundle/etc. or the proccess to generate the Angular Package Format gets easier and implement it then.


Support for Java 8?

I have a little request: Can this awesome library add Java 8 as minimum version?
Unfortunately I want to use the library in a project that is using Java 8.
Can this be achieved?
Thanks in advance

Yes. I’ll get that done tonight or tomorrow night

Yes. I’ll get that done tonight or tomorrow night

Thanks!!! 🎊🎊🎊

@carlocorradini java 8 is supported in v2.1.x


Added Power Support ppc64le

Added power support for the travis.yml file with ppc64le. This is part of the Ubuntu distribution for ppc64le. This helps us simplify testing later when distributions are re-building and re-releasing. Mac and Windows jobs are not available for power support as it is not supported for ppc64le.

Team - Can someone please look into this and help with the merging. Thanks.

I've switched away from Travis to GitHub Actions, so this PR no longer merges.
I'm not sure I understand the goal of this PR. Is it to gain confidence that this package works on PowerPC? Generally I'd expect it to work for any CPU that Go and the golang.org/x/sys package support. The harder thing is adding more operating systems and testing them.
Closing for now. Happy to continue the conversation, but I'm not sure how we'd continue this on GitHub Actions as it does not seem to support different architectures for GitHub-hosted runners.


Dynamic child tag

Just recently tried out Riot and enjoying the minimalist approach.  One thing I couldn't see in the docs was rendering dynamic child tags.  For example...
 <{opts.child.tag} />  OR <child name="{opts.child.tag}" />

Is this possible? If so, what would be the best approach?

Something like http://plnkr.co/edit/n5hLpG?p=preview ?
This stopped working in v2.0.12, see #471
So I am also interested in how to do this in  2.0.12 or if this is a valid bug that will be fixed.

Thanks. That's exactly what I was looking for. I've been experiencing issues with v2.0.13.  Working on v2.0.11 for now.

This issue probably shouldn't be closed, going down in versions isn't a valid work around.

This issue is how to do it.  #471 is why you can't do in current version, it is still open and labeled as critical

Got it, it wasn't clear that this effectively duplicates 471 not merely being related.


chore: archive apisix docs to 3.8.0

Changes:
Currently, each document build includes all APISIX versions from 2.13 to latest, which handles a lot of markdown documents and makes each build 40-50 minutes long. The PR archives old documents, which are fixed on the release branch, so they are not updated and do not affect reading.
I keep nearly 3 versions of documents in the build process and the old ones are moved to the archive.
We will consider extending the boundaries of the kept version if there are still requests for older documents.

This is an improvement to the speed of CI, and older versions of the documentation are still available.

@bzp2010 Maybe better title: chore: archive apisix documentation up to 3.8.0

The results of this optimization were significant, with build times dropping from 40+ minutes to less than 5 minutes.
https://github.com/apache/apisix-website/actions/runs/11945981190/job/33299582500


Turn IO integration

Resolves #204
Demo

Things to note:

Users have to manually set the wehbook URL, which is why we show them the url they should use
Voice doesn't work at this moment.

Left for me to do:

Tests
See if I can't get voice working. The docs tells me that I should get a link to the media being sent, but I simply don't get it. I'll look a bit deeper and/or reach out to them about this
A bit of cleanup

LGTM! For incoming media messages, I remember also having issues receiving them through Turn, I don't remember if I ever found a solution.
For outgoing media messages, this wasn't ever implemented in turn-python, as it wasn't needed in CommCareHQ. You might have to do that and push a new version.

Good to know, thanks! I think I'll reach out to someone and ask them what's going on.


logging.dest does not work in Ubuntu

even if logging.dest is set to a path, kibana does not log to the file.

same issue on CentOS


moveItemsToTrash Api error TypeError: result is not iterable (cannot read property undefined)

Continuing my trashing quest ...
Source read complete
Found items: 12466
Items to process: 12466
Moving 12466 items to trash
Processing 500 items
Processing 500 items
Processing 500 items
moveItemsToTrash Api error TypeError: result is not iterable (cannot read property undefined)
Processing 500 items
Processing 500 items
Processing 500 items
moveItemsToTrash Api error TypeError: Cannot read properties of null (reading '0')
TypeError: Cannot read properties of null (reading '0')
moveItemsToTrash Api error SyntaxError: "undefined" is not valid JSON

try setting API OPERATION BATCH SIZE to a smaller number


Automatically find repository root if not repository folder is provided

If one was in a subdirectory of the repository and called git-heatgrid it would fail with "Error: The specified directory was not found or is not a git repository" as it would look for the .git directory inside the current working directory. Using git rev-parse --show-toplevel we can obtain the root folder of the git repository we are currently in. In case that fails (i.e., we are not inside a git repository) we fall back to "." again.

Thanks, it's a nice feature!


server not start after install

ready - started server on <IP_ADDRESS>:3000, url: http://localhost:3000
info  - Loaded env from D:\Codehub\taxonomy.env.local
error - Failed to load next.config.mjs, see more info here https://nextjs.org/docs/messages/next-config-error
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'esbuild' imported from D:\Codehub\taxonomy\node_modules.pnpm@contentlayer+core@0.2.9_esbuild<EMAIL_ADDRESS>at new NodeError (node:internal/errors:371:5)
at packageResolve (node:internal/modules/esm/resolve:932:9)
at moduleResolve (node:internal/modules/esm/resolve:978:18)
at defaultResolve (node:internal/modules/esm/resolve:1080:11)
at ESMLoader.resolve (node:internal/modules/esm/loader:530:30)
at ESMLoader.getModuleJob (node:internal/modules/esm/loader:251:18)
at ModuleWrap. (node:internal/modules/esm/module_job:79:40)
at link (node:internal/modules/esm/module_job:78:36) {
code: 'ERR_MODULE_NOT_FOUND'
}

This error message suggests that your application is unable to find the 'esbuild' package, which is required for building your application using the Contentlayer core module. The error message also points to the specific file and line number where the import statement for 'esbuild' fails.
You may want to try installing the 'esbuild' package:
npm install esbuild


Cleanup NetBeans license header for module o.n.swing.outline

Review and cleanup the license header in o.n.swing.outline
Oracle donated NetBeans to the Apache Software Foundation.
Your task now is to replace the old license header that has Oracle (and/or Sun Microsystems
and/or NetBeans) in it with the standard Apache Software Foundation license header.
For an empty file that supports headers you must add the Apache license header.
Note that you have to use the proper license header for Java, .properties or HTML files.
Look at the nearby files for templates and copy-paste the license header.
When done commit the changes with a commit message that starts with first line
"[NETBEANS-54] Module Review " and a message body describing your review.
See a longer explanation about what we are doing here: https://cwiki.apache.org/confluence/display/NETBEANS/List+of+Modules+to+Review
Please announce in a comment when you have started work.
Files that need to be looked at in o.n.swing.outline:
o.n.swing.outline/arch.xml

I'm working on it.

Done. PR#256


Remove period from list line in removing-sensitive-data-from-a-repository#about-sensitive-data-exposure

Code of Conduct

[X] I have read and agree to the GitHub Docs project's Code of Conduct

What article on docs.github.com is affected?
https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository#about-sensitive-data-exposure
What part(s) of the article would you like to see updated?

Through any pull requests that reference them.

Remove period from this list line, as it is not a complete sentence
Additional information
Style guide reference

Hi @nguyenalex836, created a PR above to fix this issue, please let me know if you have any feedback. :)


Optimize FilteringKeyRangeIterator initialization

We see a large amount of time spent on the
PriorityQueue initialization in the KeyRangeIterator.
Because the SortedSet is already ordered, we
don't need the PQ and can instead just use the
sorted set's iterator. I expect this to
decrease init time by skipping the creation
of a large array and an eager consumption
of the fully sorted set.

we can leave this as it is and merge it since it is already a large improvement.
Fine to me

we tend to rely on functional testing instead of adding tests for every case on an iterator like the one modified here
not great, but it makes sense to me, you have to see this working together with the rest


broken stacktraces + reproduce repo

Describe the bug
There are alot of wrong stack traces in my tests. In this reporduction, I see 2 stacktraces for an error: invalid + valid one.
In my real repo, I only see one invalid stacktrace.

Reproduction information:
Broken stacktraces:

Wrong stacktraces: (the upper stacktrces are wrong, the lower are correct)

Here is a huge hint:
When replacing the order of these two lines, the stacktraces are correct:

vitest:
/// <reference types="vitest" />

import { defineConfig } from 'vitest/config'
import tsconfigPaths from 'vite-tsconfig-paths'
import path from 'path'

// @ts-ignore
export default defineConfig({
  // @ts-ignore
  plugins: [tsconfigPaths({ root: __dirname })],
  test: {
    environment: 'node',
    watch: false,
    testTimeout: 60_000,
    env: {
      IS_TEST_MODE: 'true',
    },
    allowOnly: true,
    setupFiles: [path.join(__dirname, 'vitest.before-all.ts')],
  },
})

Reproduction
Here is a minimal repo (as far as I could. any additional change can/will possibily make different results):
https://github.com/stavalfi/vitest-wrong-stacktraces-reproduce
run: yarn test
test is located at: packages/il-backend/__tests__/sanity.spec.ts
System Info
System:
    OS: macOS 12.2.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 7.89 GB / 32.00 GB
    Shell: 3.3.1 - /opt/homebrew/bin/fish
  Binaries:
    Node: 16.13.2 - /var/folders/sn/b0rx6xbx6snfcp1r0grqp6km0000gn/T/fnm_multishells/11306_1652852702882/bin/node
    Yarn: 1.18.0 - /var/folders/sn/b0rx6xbx6snfcp1r0grqp6km0000gn/T/fnm_multishells/11306_1652852702882/bin/yarn
    npm: 8.1.2 - /var/folders/sn/b0rx6xbx6snfcp1r0grqp6km0000gn/T/fnm_multishells/11306_1652852702882/bin/npm
  Browsers:
    Chrome: 101.0.4951.64
    Safari: 15.3
  npmPackages:
    @vitejs/plugin-react-refresh: ^1.3.1 => 1.3.6
    vite: ^2.9.5 => 2.9.5
    vitest: ^0.12.6 => 0.12.6

### Used Package Manager

yarn

### Validations

- [X] Follow our [Code of Conduct](https://github.com/vitest-dev/vitest/blob/main/CODE_OF_CONDUCT.md)
- [X] Read the [Contributing Guidelines](https://github.com/vitest-dev/vitest/blob/main/CONTRIBUTING.md).
- [X] Read the [docs](https://vitest.dev/guide/).
- [X] Check that there isn't [already an issue](https://github.com/vitest-dev/vitest/issues) that reports the same bug to avoid creating a duplicate.
- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vitest-dev/vitest/discussions) or join our [Discord Chat Server](https://chat.vitest.dev).
- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.

I cannot run yarn install in your reproduction:
error Couldn't find package "<EMAIL_ADDRESS>required by "<EMAIL_ADDRESS>on the "npm" registry.

@sheremet-va  fixed. try now.
this dependency was not in use anyway. I removed it.

So, this is more of a feature than a bug. You see correct stack trace in red color because we are processing it before outputting, but we don't process errors logged by hand. I see that jest outputs correct stack trace in both situations, so I think we can try and find a solution, but until then we have a current workaround.

@sheremet-va Thanks.
This is a bug because in other tests which it's harder to reproduce, vitest prints  a single wrong stacktraces without a correct stcktraces.
I worked really hard to give you this reproduction and this is a huge clue for the more critical bug.

Single wrong stacktrace is printed by you console.logging.
Th reproduction is too verbose. All I can see is if it fails before the event loop finishes, then Vitest shows our error. If not, then Vitest can’t catch error. The issue is with your setup.


@platformatic/service should have openapi and graphql links at the root page

@ivan-tymoshenko Hii ,I can fix this issue . Please assign it to me :)

Here is an example:
https://github.com/platformatic/platformatic/blob/175d44b912206e935ce276e868c3c07344bd7b5b/packages/db/lib/root-endpoint/public/index.html#L97

@ivan-tymoshenko I think I got it , I have created a new pr . kindly review it issue-1016

I am unable to pass the dco test @ivan-tymoshenko


Azure VM with at least 4 GB of RAM (recommended size is 7 GB).

Other docs state the minimum is 7 GB, which one is true?

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

ID: 246df0be-86c4-083f-5896-d9ed79a94b88
Version Independent ID: cba0daf5-b5f3-e1ba-2d79-56ef94f927cb
Content: Appendix - Azure Disk Encryption for IaaS VMs
Content Source: articles/security/azure-security-disk-encryption-appendix.md
Service: security
GitHub Login: @mestew
Microsoft Alias: mstewart

@marioanton It depends on usage you have in your root File System, but the initial value is 7GB
if your root file system usage is bigger than 3.5GB total then you need more than 7GBs
In our images (gallery images from official vendors like RedHat, canonical, etc.). the usage of the root File System it's not higher than 3.5GBs. Sometimes when you copy things on that File System and make it bigger. the recommendation it's to encrypt the VMs as first thing after deploying, prior copying data over or installing extra apps to avoid those issues.

Thanks!

#pleaseclose

We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


Streams are stopped as soon as a single corrupted package occurs

Especially with broadcast streams, broken packets can occur, but also normal files can have a broken packet here and there (bad encoder, whatever). With the current code, if a packet cannot be decoded, a "null" value is returned as Sample. If MediaStreamSource gets a "null" Sample on a stream, this is always considered end-of-stream, so playback of that stream is stopped for good and will not recover.
I would propose to add an option "BrokenPacketThreshold". If you assign e.g. 10, then this means that up to 10 broken packets can occur in a row before the stream is stopped. Default would be 0 (current behavior), -1 would mean skip all packets until a good one is found.
I have already tested a quick hack of this with partly corrupted mpeg files, works well for me.

I have a fix for this. PR latter on.

Cool, looking forward to that.

But it is pretty much the same implementation as what you said: it tries to skip over 10 broken packages in a row. if more than 10 then aborts with null sample. So if you already have something, feel free to upload.

There are some more things to consider here: If we return a null sample (because more than X broken packets have been read), we must disable the stream internally. Otherwise, the stream's packet queue will be flooded. Packets are still enqueued by the reader but no samples are read out anymore by MSS so queue grows infinitely.
I will come up with a PR for this soon fixing both problems.

Please check my solution #182.


Pagination for the database index page

Some databases have a LOT of tables. Now that we often calculate table row counts dynamically we could really speed things up by paginating the database index page, e.g. http://fivethirtyeight-datasette.herokuapp.com/fivethirtyeight
If we're paginating, having a filter-search-for-table widget (similar to the search-for-database widget I'm planning for the homepage) would make sense.
Related: pagination for homepage #461 and Datasette Library #417

This is a duplicate of #461.


Blocked embed exceeds 6000 characters

I've realised that when I tried running the blocked command, it didn't work. So I checked logs and got error 400 bad request embed exceeds 6000 characters. A reaction menu would be perfect for this
Clean debug: https://hasteb.in/owizeban

The errors in the log seem to be originating from a python app. Are you sure you're not talking about another modmail bot, such as https://github.com/kyb3r/modmail?

My mistake


[share_plus] PNG image being exported as JPG

Hello, I didn't want to create an issue to ask for help, but I didn't get the solution for my problem anywhere. I tried an national Flutter group and Stack Overflow (where I didn't get any answer). This is my code:
    final appDir = await syspaths.getApplicationDocumentsDirectory();
    final fileName = path.basenameWithoutExtension(imageXFile.path);

    img.Image? image = img.decodeImage(File(imageXFile.path).readAsBytesSync());

    final imageFile = File('${appDir.path}/$fileName.png');
    imageFile.writeAsBytesSync(img.encodePng(image));

    setState(() {
      _items.add(new Item(fileName, imageFile));
    });

I execute the sharing with Share.shareFiles([fileInstance.path], mimeTypes: ['image/png']), but the image is exported with a name based on actual time and as JPG, like IMG_20220510_143539_398.jpg.
I don't know if I'm doing something wrong (I believe that, that's why I didn't think it's a bug), but I hope someone find out what is going on with this code.

Hello again.
TL;DR: My issue isn't related to the share_plus package. I still trying to find a solution. I will continue to update the Stack Overflow post.
I went to the Kotlin code to check if the type and filename still are equal to fileInstance.path. It is.
So it appears that Telegram (my target app) send the image as jpg ang generate the filename. When I tried to send as attach with Outlook, it appears as png.
So, sorry about the issue created.


Added text utilities for quick text alignment

This comes in handy when you have an element for which we haven't created any style rules.

Hey I created my own Version of Skeleton and called it Skeleton plus. It has more functions and also a navbar. It also Includes text-aligment. (http://github.com/oltmannsdaniel/skeleton-plus)


UserData for Clay_SetMeasureTextFunction

So this function
void Clay_SetMeasureTextFunction(Clay_Dimensions (*measureTextFunction)(Clay_String *text, Clay_TextElementConfig *config));

There is no userData being passed to compared to the callback to
void Clay_OnHover(void (*onHoverFunction)(Clay_ElementId elementId, Clay_PointerData pointerData, intptr_t userData), intptr_t userData);

I wonder if it would make sense to add that?

I will make this change along with adding an onError callback function 👍


Add support for dlrn_hash_tag in repo-setup role

https://github.com/openstack-k8s-operators/repo-setup/pull/20 adds the support of passing dlrn hash and generate the repos using that hash.
This pr adds the support for the same and it will be useful to re-run the job at particular hash and report it to dlrn.
Depends-On: https://github.com/openstack-k8s-operators/repo-setup/pull/20
As a pull request owner and reviewers, I checked that:

[ ] Appropriate testing is done and actually running
[ ] Appropriate documentation exists and/or is up-to-date:

[ ] README in the role
[ ] Content of the docs/source is reflecting the changes

/hold

/unhold

recheck

/approve

/lgtm


Issue with S3 bucket location constraint

There's an issue with setting the S3 client region in the custom-resource.py file when using older buckets in eu-west-1 region.
https://github.com/awslabs/aws-waf-security-automations/blob/master/source/custom-resource/custom-resource.py
We need to change this:
if response['LocationConstraint'] == None:
    response['LocationConstraint'] = 'us-east-1'
if response['LocationConstraint'] != region:
    raise Exception('Bucket located in a different region. S3 bucket and Log Parser Lambda (and therefore, you CloudFormation Stack) must be created in the same Region.')

To
if response['LocationConstraint'] == None:
    response['LocationConstraint'] = 'us-east-1'
if response['LocationConstraint'] == 'EU':
    response['LocationConstraint'] = 'eu-west-1'
if response['LocationConstraint'] != region:
    raise Exception('Bucket located in a different region. S3 bucket and Log Parser Lambda (and therefore, you CloudFormation Stack) must be created in the same Region.')

see the S3 region constraints located here: https://docs.aws.amazon.com/general/latest/gr/rande.html#s3_region
eu-west-1 is a special case which can return either eu-west-1 or EU as a location constraint.

@brianwthomas
New check added here.
Please note that we've moved all dependencies and pre-req check to be validated before creating other template's resources. More info here