Run mediapipe/examples/desktop/hello_world:hello_world  Failed in Centos

I prepared the environment according to the documentation, but something went wrong when running hello_world.
OS:  CentOS Linux release 7.7.1908 (Core)
Bazel: 2.2.0

mediapipe/examples/desktop/hello_world:hello_world

Extracting Bazel installation...
Starting local Bazel server and connecting to it...
WARNING: Download from https://mirror.bazel.build/github.com/tensorflow/tensorflow/archive/805e47cea96c7e8c6fccf494d40a2392dc99fdd8.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
WARNING: Download from http://mirror.tensorflow.org/github.com/bazelbuild/rules_closure/archive/cf1e44edb908e9616030cc83d085989b8e6cd6df.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
INFO: SHA256 (https://github.com/bazelbuild/rules_cc/archive/master.zip) = a421e762fcced29d2a0128a0353fc105876e6942b86ea11a2a48375b14c8a628
DEBUG: Rule 'rules_cc' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "a421e762fcced29d2a0128a0353fc105876e6942b86ea11a2a48375b14c8a628"
DEBUG: Call stack for the definition of repository 'rules_cc' which is a http_archive (rule definition at /root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/bazel_tools/tools/build_defs/repo/http.bzl:296:16):

/home/ec2-user/build_dir/mediapipe/WORKSPACE:33:1
INFO: Call stack for the definition of repository 'com_google_protobuf' which is a tf_http_archive (rule definition at /root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl:134:19):

/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/tensorflow/workspace.bzl:474:5
/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/tensorflow/workspace.bzl:78:5
/home/ec2-user/build_dir/mediapipe/WORKSPACE:142:1
WARNING: Download from https://storage.googleapis.com/mirror.tensorflow.org/github.com/protocolbuffers/protobuf/archive/v3.11.4.tar.gz failed: class com.google.devtools.build.lib.bazel.repository.downloader.UnrecoverableHttpException GET returned 404 Not Found
ERROR: An error occurred during the fetch of repository 'com_google_protobuf':
Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 110
_apply_patch(ctx, <1 more arguments>)
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 68, in _apply_patch
_execute_and_check_ret_code(ctx, <1 more arguments>)
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 52, in _execute_and_check_ret_code
fail(<1 more arguments>)
Non-zero return code(1) when executing 'patch -p1 -d /root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/com_google_protobuf -i /root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/protobuf/protobuf.patch':
Stdout:
Stderr: src/main/tools/process-wrapper-legacy.cc:58: "execvp(patch, ...)": No such file or directory
ERROR: /home/ec2-user/build_dir/mediapipe/mediapipe/examples/desktop/hello_world/BUILD:19:1: //mediapipe/examples/desktop/hello_world:hello_world depends on //mediapipe/calculators/core:pass_through_calculator in repository @ which failed to fetch. no such package '@com_google_protobuf//': Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 110
_apply_patch(ctx, <1 more arguments>)
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 68, in _apply_patch
_execute_and_check_ret_code(ctx, <1 more arguments>)
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 52, in _execute_and_check_ret_code
fail(<1 more arguments>)
Non-zero return code(1) when executing 'patch -p1 -d /root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/com_google_protobuf -i /root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/protobuf/protobuf.patch':
Stdout:
Stderr: src/main/tools/process-wrapper-legacy.cc:58: "execvp(patch, ...)": No such file or directory
ERROR: Analysis of target '//mediapipe/examples/desktop/hello_world:hello_world' failed; build aborted: no such package '@com_google_protobuf//': Traceback (most recent call last):
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 110
_apply_patch(ctx, <1 more arguments>)
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 68, in _apply_patch
_execute_and_check_ret_code(ctx, <1 more arguments>)
File "/root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/repo.bzl", line 52, in _execute_and_check_ret_code
fail(<1 more arguments>)
Non-zero return code(1) when executing 'patch -p1 -d /root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/com_google_protobuf -i /root/.cache/bazel/_bazel_root/7f5b6af62d5dd14ae195b2cb8739e703/external/org_tensorflow/third_party/protobuf/protobuf.patch':
Stdout:
Stderr: src/main/tools/process-wrapper-legacy.cc:58: "execvp(patch, ...)": No such file or directory
INFO: Elapsed time: 20.903s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (13 packages loaded, 18 targets configured)
FAILED: Build did NOT complete successfully (13 packages loaded, 18 targets configured)
currently loading: mediapipe/calculators/core ... (2 packages)

The root cause seems to be UnrecoverableHttpException GET returned 404 Not Found.
Can you verify your network setting? You probably can find some useful solutions at https://github.com/google/mediapipe/issues/3 and https://github.com/google/mediapipe/issues/581.

Thanks, I have solved this problem. I upgraded gcc to 8.4, cmake to 3.17.1, python to 3.7.7, downgraded from opencv4 to 3.4.10.  The program can run normally, but the 404 warning still exists.


feat(data_structures): add methods to SparseStack

Add methods to SparseStack to get the filled entries as a slice, and get their length.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#7011
#7122
#7305  👈 (View in Graphite)
#7304
#7301
main

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

Merge activity

Nov 16, 12:33 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.


produce esm build for bundlers

would it be possible to create an es module build for use in bundlers like rollup?

We did this in an older major version and it got messy to maintain. There are currently no plans to do this as the main benefit tends to be tree shaking, which doesn't seem to have any effect because of how this library's API works.

ah I see. I'm using this in node and don't really care much about tree shaking.
My main concern is about having to use @rollup/plugin-commonjs, which takes a commonjs module and converts it to esm so it can be used in rollup. I feel like it would emit a lot of unnecessary code because the code was transpiled from typescript esm, down to commonjs, then back up to esm.
As an alternative, I could try installing the Github repo and then importing the source files, and have rollup typescript plugin handle transpilation from typescript

hmm.. I am not actively needing or pursuing this at the moment, and if it is too difficult to maintain I understand that it is not worth the maintenance cost. I will close this, but thank you for considering!


Support for PixArt-Sigma

Pixart team uploaded the Pixart Sigma models:
https://huggingface.co/PixArt-alpha/PixArt-Sigma

It should work now? Can you test it?

Looks like sampler is broken, i tested different dtype, cfg, samplers etc.

Looks like the 1024 one is out as well. No changes required other than the resolution by the looks of it.
Updated the readme/res select. Enjoy!


PS4 wrong media content type

Home Assistant release with the issue:
0.89.0
Last working Home Assistant release (if known):
Never
Operating environment (Hass.io/Docker/Windows/etc.):
Docker
Component/platform:
https://www.home-assistant.io/components/ps4/
Description of problem:
When I play red dead redemption 2
HA thinks that media_content_type is music
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
None
Additional information:
here how attributes look like
{
  "media_content_id": "CUSA08519",
  "media_content_type": "music",
  "media_title": "Red Dead Redemption 2",
  "source": "Red Dead Redemption 2",
  "source_list": [
    "Red Dead Redemption 2"
  ],
  "friendly_name": "PS4",
  "icon": "mdi:playstation",
  "entity_picture": "/api/media_player_proxy/media_player.ps4?token=token&cache=d79df436fd216182",
  "supported_features": 6528
}

I think this might be more of a limitation in the core media_player component. From /components/media_player/ docs:
media_content_type: A media type. Must be one of music, tvshow, video, episode, channel or playlist.
It would be useful to have "game" and "app" added to media_content_type for things like this.

Yep correct^^  There isnt a more accurate option in the core as of now.

I don't know how reliable this is as a whole; I've noticed that Movies via Plex via Apple TV component also default to 'Music'.


JFXHamburger button question

Hi, I implemented this button in a my project, but I couldn't find a way to be pressing the button programmatically "button.fire ()"
Could someone tell me if he has this feature?
Thanks very much

Hello @JhonnySalles
JFXHamburger is not a button so there is no fire method. But you can do a workaround as the following:

add action listener to the burger

burger.addEventHandler(ActionEvent.ACTION, action->{
    // action to be executed
});

fire the action by calling
burger.fireEvent(new ActionEvent());

Regards,

Thanks for the answer, in tests I could not reproduce the execution, I believe I'm doing something wrong.
In initialize I created the event to open the panel and also change the shape of the button:
public void initialize(URL arg0, ResourceBundle arg1) {
TranslateTransition openSlidePane = new TranslateTransition(new Duration(350), pane);
TranslateTransition closeSlidePane = new TranslateTransition(new Duration(350), pane);
HamburgerBackArrowBasicTransition btnBurgerTask = new HamburgerBackArrowBasicTransition(btnBurger);
btnBurgerTask.setRate(-1);
btnBurger.addEventHandler(MouseEvent.MOUSE_PRESSED, e -> {
btnBurgerTask.setRate(burgerBtnTask.getRate() * -1);
btnBurgerTask.play();
if (pane.getTranslateX() != 0) {
openSlidePane.setToX(0);
openSlidePane.play();
} else {
closeSlidePane.setToX(-(pane.getWidth()));
closeSlidePane.play();
}
});
}
In the event of another button will serve to load the content of the panel, where after loading I will be calling the event burgerbutton.
@FXML
private void openPane() {
// ***** loadcontent
if(pane.getTranslateX() != 0) {
btnBurger.fireEvent(new ActionEvent());
}
}
In my test nothing happens, where the event is not executed.
I think it's a silly thing, but my knowledge is not that advanced.
Thank very much..

I found the problem, I've been using a different event.
burger.addEventHandler(MouseEvent.MOUSE_PRESSED, e -> { });
Thank you very much for the explanation, thanks to that I was able to adjust and make it work by code opening the panel.


Shows night vision camera on google pixel 4🐛

What's happening?
Whenever i switch to the front camera it for some reason show the black and white night vision camera. My react native version is 0.70.5
Reproduceable Code
This is my code snipped
const devices = useCameraDevices();

 setDevice(devices.front); // this is called on onPress function of TouchableOpacity

  <Camera
              ref={cameraRef}
              style={styles.container}
              video={true}
              audio={true}
              device={device}
              isActive={showCamera}
            />

Relevant log output
Nothing special in the logs to be shared

Camera Device
{

  "maxZoom": 1,
  "minZoom": 1,
  "supportsLowLightBoost": false,
  "supportsDepthCapture": false,
  "neutralZoom": 1,
  "supportsFocus": true,
  "supportsRawCapture": false,
  "hasFlash": false,
  "name": "front (2)",
  "supportsParallelVideoProcessing": false,
  "isMultiCam": true,
  "hasTorch": false,
  "devices": [
    "wide-angle-camera"
  ],
  "position": "front",
  "id": "2"
}

Device
Google pixel 4
VisionCamera Version
2.16.5
Can you reproduce this issue in the VisionCamera Example app?
I didn't try (⚠ your issue might get ignored & closed if you don't try this)
Additional information

[ ] I am using Expo
[ ] I have enabled Frame Processors (react-native-worklets-core)
[X] I have read the Troubleshooting Guide
[X] I agree to follow this project's Code of Conduct
[X] I searched for similar issues in this repository and found none.

This is a duplicate of
https://github.com/mrousavy/react-native-vision-camera/issues/945


fix(a11y): hidden button into vertical-nav from been tabbable backpor…

Backporting from v4 #4799

Thanks

No, I thank you!


Added table partition data query feature

Is your feature request related to a problem? Please describe.

When a table has a partition, you can right-click the partition name to query and modify the data
Oracle SQL
Partition SELECT x.*,x.ROWID FROM ORA_MTK.RANGE_PART PARTITION (yr9) x where x.x=1
SubPartition SELECT x.*,x.ROWID FROM ORA_MTK.RANGE_PART SUBPARTITION (yr9) x where x.x=1
MySQL
Partition SELECT x.*,x.ROWID FROM ORA_MTK.RANGE_PART PARTITION (yr9) x where x.x=1
SubPartition SELECT x.*,x.ROWID FROM ORA_MTK.RANGE_PART PARTITION (yr9) x where x.x=1

Hello @travelliu,
Can you please provide more context regarding your feature request?
Do you want an option similar to Read data in SQL editor when clicking on a table in the navigator tree?

Thanks for the clarification and for the feature request.

DB2
https://www.ibm.com/docs/en/db2/11.5?topic=functions-datapartitionnum
select * from table WHERE DATAPARTITIONNUM(partition column )=PartNum and DATAPARTITIONNUM(partition column )=PartNum

Ok. Now, we have an Open Console button for partitions for MySQL and Oracle, but the query is incorrect. It is correct when we partition data in the data viewer shown.


Updated tranquility-storm to Apache Storm 1.0.2 and tranquility-spark to 2.0.2

The major improvement was updated Apache Storm to 1.0.2 and Apache Spark to 2.0.2

Updated Druid.io dependency  to <IP_ADDRESS>
Updated apache storm dependency to 1.0.2
Updated apache spark dependency to 2.0.2 (a little improvement was necesary in testing class)
Updated sbt to 0.13.12
Updated a lot of dependecies and build.sbt file was restructured a little bit
Updated sbt-dependency-graph plugin to 0.7.5
Updated scala version ( 2.10.6, 2.11.8 )

Notes About Apache Storm Testing!:
I was trying to put it work but it was impossible at all, The things is, I tested it in my preproduction environment with a real Storm (v1.0.2) and Druid.io (<IP_ADDRESS>) Cluster and it worked fine, so I don't understand why the unit test doesn't work fine.
I hope that somebody could fix the tranquility storm test!
My suggestion about the project:
It would be better if you will separate/split this project in many projects,

One for tranquility core (beam),
One for each of the integrated tools (spark, storm, samza, flink, etc!)

Managed dependecies in only one project is a painful, the other thing is, if you manage the main core separated , we can create diferent branches for each project version, for example:

tranquility-core-1.0.1 --> tranquility-storm-0.9.5  -> supported for Apache Storm 0.9.5
tranquility-core-1.0.7 --> tranquility-storm-1.0.2  -> supported for Apache Storm 1.0.2

and similar for the others tools.

Thanks @christiangda! We will try to review this soon


Fixes for v1.6.0 alpha (20180418)

Update languages (PL, EN and default) - typos and unification)
Move spaces in statistic tree from lang files to system
Repair tree data color in black theme

What is the difference between default and en language files? I am re-translating Italian language using en language file as a source.

There should be no difference, unfortunately in version 1.6.0 alpha new options have been added only to the default file.

I can see you're updating many languages - don't bother fixing Italian, I am using the new file and will push the update when completed.

Maybe in the next release, default.js and en.js will be merged.


Poor Mod Support

Onetech is such a great resource for modded versions, but there are a few ways to improve. We could provide instructions in the README to set some env variables:
ONETECH_MOD_NAME="My Awesome Mod"
ONETECH_MOD_URL="https://..."
ONETECH_MOD_GIT_TAG_PREFIX="MyAwesomeMod_v"

We could then show the name and link in the header and parse the version tags.
Update: Also we should rename the static directory for mods, maybe static-mod. This way their fork won't cause conflicts.

Started work in the mod-support branch. Not certain if I will handle versions and tag prefixes, but the other features mentioned here are done.

I decided to not add support for ONETECH_MOD_GIT_TAG_PREFIX, I'm just marking objects without a version as part of the mod. See the updated README for details on how modded support works.
If others request finer control here I'll consider adding it.


Jira Issue Tracker integration - create issue incompatibility

The current integration with the Jira rest API does not match an evolution implemented by Atlassian over GDPR.
The 'reporter' field currently passed by the JiraClient relies on the name field, the field is now obsolete and accountId should be used instead.
https://github.com/amundsen-io/amundsen/blob/main/frontend/amundsen_application/proxy/issue_tracker_clients/jira_client.py#L96
The changes in question are described here:
https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/
Expected Behavior
Creating an issue to a new Atlassian Cloud jira project succeeds and the issue is visible in the Amundsen UI.
Current Behavior
Attempts to create an issue over the Amundsen UI results in an error.
The logs indicate a status code 400 with an error message 'text: Reporter is required'.
Possible Solution
Using accountId with matching accountId solves the issue.
The Jira API allows to resolve emails to accountIds. Introducing an additional request to achieve that is trivial, I'm up for PR-ing if it's an acceptable solution.
Steps to Reproduce

Enable issue tracking with jira cloud instance.
Attempt to create an issue from the amundsen interface
Observe failure in logs.

Screenshots (if appropriate)
N/A
Context
N/A
Your Environment
Amundsen head of main branch ( 8d87e7cd442ab03f4382d85ee93be42506c86ac2 ) , Atlassian cloud.

Thanks for fixing this!


DELTASPIKE-1330 fix

just updated line 47 to the correct method call

Hi,
first of all, thanks for the PR!
It would be great if you can provide 1-2 unittests for it.

uhmm, where i can make this testst? CriteriaTest class?

I don't have time to check it but i think we have similar tests. Just look for a good place :)

Ok, thx!

I will close this pull because i find the problem is not the deltaspike implementation, is in the way that we created the criterias...
Sorry for unnecessary PR...


Wrap guide is too dark

It appears to be black maybe? It's too dark to be comfortably seen.

Yeah, you need magnifying glasses to see it. You can only see it, when you mark text.

Found the bug, it appears to have been an interesting interaction with Atom's built in styling. Nothing a handy-dandy !important can't fix.
I'll publish the update after I try fixing some of these other issues.


Refactoring in progress (RIP?)

My pull request will most likely fail in Travis. Purely for informational purposes.

I am working on a new pull request for the updated code. Closing this one.


add torrent not seen in load!

Hello,i use ubuntu desktop 18.4,when load rutorrent no add torrent!please add theme more and fileshare plugin.

my problem is solve,my connection is problem.
thanks


Remove the Sync bound for Body::from_reader

I think this reader does not need Sync, because it is impossible for multiple threads to read Body at the same time, what do you think?

@sunli829 thanks for opening this! One would indeed assume this is true, but we've had repeated issues in the past when Body wasn't Sync. For example: https://github.com/http-rs/surf/issues/97. We should keep this bound to prevent future cases like that.


No docstrings in Jupyter Notebooks

This issue was previously raised here, however it was closed without a resolution:
https://github.com/microsoft/vscode-jupyter/issues/2652
I am having exactly the same issue as was articulated in this previous bug report. I'm wondering if any progress has been made on this front.
Version:
Commit: 8490d3dde47c57ba65ec40dd192d014fd2113496
Date: 2021-02-03T20:36:38.611Z
Electron: 11.2.1
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19042
VS Code version: 1.53.0 (user setup)
Jupyter Extension version (available under the Extensions sidebar): v2020.12.414227025
Python Extension version (available under the Extensions sidebar): v2021.1.502429796
OS (Windows | Mac | Linux distro) and version: Windows 10 Home 20H2
Python and/or Anaconda version: Python 3, Anaconda 3.9.2
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda
Jupyter server running: Local

Thanks for the bug. It looks like this was only fixed in the insiders version of VS code. For the stable version (which you have) this bug still exists.

I repro'd this in stable using numpy:

whereas in insiders it shows this:

ok, thanks, I'll install the insiders version

@rchiodo I just installed the insiders version, doesn't seem to have fixed it. Any suggestions?

Did you install VS code insiders?
You also need:

Latest jupyter extension in insiders
Latest Python insiders channel extension
Latest Pylance with pylance as your language server

Yes, i installed VS code insiders as well as all the other suggestions. I am not even getting autocompletions unfortunately. I'm also seeing two errors in the bottom right corner:

Couldn't start client Python Tools

Cannot read property '0' of undefined

Could this be related? This is new, and is only happening with VS code insiders edition - not with the stable edition.

That means you don't have the 'insiders' version of the python extension. You need to set this:

Hmmm... I did actually set that originally and I'm still getting the errors... Any other info I can give you? Much appreciated.

You might need to reload VS code. That error comes specifically from the older python extension failing.
My version is this:

If yours is older, that would explain the problem.

Thanks for your feedback. This issue will be addressed once VS Code adds native support for editing notebooks. Please see https://github.com/microsoft/vscode/issues/91987.


Wrong case of repo_id when using upload_folder or upload_file causes unpredictable error displayed

Describe the bug
I get the following error when I run the upload_folder or upload_file function.
Reducing the size of the data made no difference.
Reproduction
# hfupload.py
import os
import argparse

from huggingface_hub import HfApi, login
login()
api = HfApi()

def upload(args: argparse.Namespace):
    src = args.src
    dest = args.dest
    repo = args.repo
    repo_type = args.repo_type
    ignore_patterns = args.ignore_patterns

    assert os.path.exists(src), "Source is not exists."

    if os.path.isfile(src):
        api.upload_file(
            path_or_fileobj=src,
            path_in_repo=dest,
            repo_id=repo,
            repo_type=repo_type
        )
    else:
        api.upload_folder(
            folder_path=src,
            path_in_repo=dest,
            repo_id=repo,
            repo_type=repo_type,
            ignore_patterns=ignore_patterns,
        )

if __name__ == "__main__":
    parser = argparse.ArgumentParser()

    parser.add_argument("src", type=str)
    parser.add_argument("dest", type=str)
    parser.add_argument("--ignore_patterns", type=str)
    parser.add_argument("--repo", type=str, default="ddpn08/mydataset")
    parser.add_argument("--repo-type", type=str, default="dataset")

    args = parser.parse_args()
    upload(args)

Use this code as below
python hfupload.py ./data.png data

Logs
Traceback (most recent call last):
  File "/home/ddpn08/miniconda3/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 264, in hf_raise_for_status
    response.raise_for_status()
  File "/home/ddpn08/miniconda3/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://huggingface.co/api/datasets/ddPn08/mydataset/commit/main

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/ddpn08/bin/hfupload.py", line 45, in <module>
    upload(args)
  File "/home/ddpn08/bin/hfupload.py", line 18, in upload
    api.upload_file(
  File "/home/ddpn08/miniconda3/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/ddpn08/miniconda3/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2537, in upload_file
    commit_info = self.create_commit(
  File "/home/ddpn08/miniconda3/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 124, in _inner_fn
    return fn(*args, **kwargs)
  File "/home/ddpn08/miniconda3/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 2385, in create_commit
    hf_raise_for_status(commit_resp, endpoint_name="commit")
  File "/home/ddpn08/miniconda3/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 314, in hf_raise_for_status
    raise BadRequestError(message, response=response) from e
huggingface_hub.utils._errors.BadRequestError:  (Request ID: Root=1-6400b74e-379e4675705d1bd00eb7ddde)

Bad request for commit endpoint:
Specify commit content in payload: Add a line with the key `lfsFile`, `file` or `deletedFile`

### System info

```shell
- huggingface_hub version: 0.12.1
- Platform: Linux-5.15.0-1033-azure-x86_64-with-glibc2.35
- Python version: 3.10.9
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Token path ?: /home/ddpn08/.cache/huggingface/token
- Has saved token ?: True
- Who am I ?: ddPn08
- Configured git credential helpers: store
- FastAI: N/A
- Tensorflow: N/A
- Torch: N/A
- Jinja2: N/A
- Graphviz: N/A
- Pydot: N/A
- Pillow: N/A
- hf_transfer: N/A
- ENDPOINT: https://huggingface.co
- HUGGINGFACE_HUB_CACHE: /home/ddpn08/.cache/huggingface/hub
- HUGGINGFACE_ASSETS_CACHE: /home/ddpn08/.cache/huggingface/assets
- HF_HUB_OFFLINE: False
- HF_TOKEN_PATH: /home/ddpn08/.cache/huggingface/token
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False

Hi @ddPn08 , thanks for reporting the issue.
I have not being able to reproduce it so I don't really what's happening here. I copy-pasted exactly your code (just removed the login() call as I'm already logged in).
I ran
python hf_upload.py hf_upload.py hf_upload.py --repo=Wauplin/1371-GH-issue-upload-file --repo-type=model

and the script got uploaded to the Hub: https://huggingface.co/Wauplin/1371-GH-issue-upload-file/blob/main/hf_upload.py
What command line are you using?

I tested fish and powershell on different machines, but it didn't work.
Changing from dataset to model does not change.

Hi @ddPn08, just to be sure, when you say "it didn't work", is it with the exact same error.
I don't really know why this is failing so let's try a simple script. Can you save this script in a file named test_issue_1371.py and run it with python test_issue_1371.py ?
import huggingface_hub

print(huggingface_hub.__version__)

# Create repo
api = huggingface_hub.HfApi()
repo_url = api.create_repo(repo_id="test_repo_1371", exist_ok=True)
repo_id = repo_url.repo_id
print(f"Created repo {repo_id}")

# Upload regular file from bytes
print("Upload file.txt")
api.upload_file(path_in_repo="file.txt", path_or_fileobj=b"content", repo_id=repo_id)

# Upload LFS file from bytes
print("Upload lfs.bin")
api.upload_file(path_in_repo="lfs.bin", path_or_fileobj=b"content", repo_id=repo_id)

# Upload from disk file
print("Upload test_issue_1371.py")
api.upload_file(path_in_repo="test_issue_1371.py", path_or_fileobj="test_issue_1371.py", repo_id=repo_id)

You should have an output like this. Can you confirm?
0.12.1
Created repo ddPn08/test_repo_1371
Upload file.txt
Upload lfs.bin
Upload test_issue_1371.py

Succeeded. It's strange...

Ok good, that's what it's suppose to do.
Now can you change the last line to upload the file you were trying to uploading with your initial script. I.e. run something like that:
import huggingface_hub

# Create repo
api = huggingface_hub.HfApi()
repo_url = api.create_repo(repo_id="test_repo_1371", exist_ok=True)
repo_id = repo_url.repo_id
print(f"Created repo {repo_id}")

# Upload from disk file
api.upload_file(path_in_repo="example_file.bin", path_or_fileobj="example_file.bin", repo_id=repo_id)

and change "example_file.bin" by the file you were previously trying to upload. What outcome to you get now?

import os
import argparse

from huggingface_hub import HfApi
api = HfApi()

def upload(args: argparse.Namespace):
    src = args.src
    dest = args.dest
    repo_id = args.repo_id
    repo_type = args.repo_type
    ignore_patterns = args.ignore_patterns

    assert os.path.exists(src), "Source is not exists."

    repo_url = api.create_repo(repo_id=repo_id, exist_ok=True)
    repo = repo_url.repo_id

    if os.path.isfile(src):
        api.upload_file(
            path_or_fileobj=src,
            path_in_repo=dest,
            repo_id=repo,
            repo_type=repo_type
        )
    else:
        api.upload_folder(
            folder_path=src,
            path_in_repo=dest,
            repo_id=repo,
            repo_type=repo_type,
            ignore_patterns=ignore_patterns
        )

if __name__ == "__main__":
    parser = argparse.ArgumentParser()

    parser.add_argument("src", type=str)
    parser.add_argument("dest", type=str)
    parser.add_argument("--ignore_patterns", type=str)
    parser.add_argument("--repo-id", type=str, default="mydrive")
    parser.add_argument("--repo-type", type=str, default="dataset")

    args = parser.parse_args()
    upload(args)

I don't know why, but I fixed it by rewriting the code. I get the same error when I put it back. It's strange.

Hmm... code is really the same. I don't know what else has changed but glad that at least your issue has been solved. Is it ok with you to close it now?
Small detail in your latest script, you must be careful to take the repo_type into account when creating the repo:
    repo_url = api.create_repo(repo_id=repo_id, repo_type=repo_type, exist_ok=True) # repo_type was missing here
    repo = repo_url.repo_id

It was a very stupid mistake.
My user id was ddPn08. It was not ddpn08.
Thank you for everything.

I thought this fixed it, but maybe I'm wrong? At least the problem is no longer reproducible.

If the p is lowercase you will get an error, if it is uppercase it will succeed.
I feel like this is an unexpected error.

My user id was ddPn08. It was not ddpn08.

Oooh, good to know. Thanks for spotting this.
Issue is solved for your case (at least you know a workaround) but I think we should fix it in huggingface_hub to at least return a more descriptive error. In theory repo_id is case insensitive but I'll need to investigate this more. Now that I have been able to reproduce it, I'll be able to debug/fix it.
So yes, let's keep it open and if you don't mind I'll update the issue title.

@ddPn08 For your info, I opened a PR to fix this. Will be published in next release.

@ddPn08 problem is fixed! Thanks for reporting :)


Handle middleware errors

Description
The error handling middleware allows us to separate our error logic and send responses accordingly. The next() method we discussed in middleware takes us to next middleware/route handler. For error handling, we have the next(err) function.
Use Case
During development if we will test our API's and if there happen something wrong then it will help you to identify the problem with stack trace.
Proposed Solution
No response
Additional Information
No response
Attachments
No response

@krishnaacharyaa

Hi @shivam-sharma7, this directly is related to  https://github.com/krishnaacharyaa/wanderlust/issues/1 and implements the solution which is already proposed in this, kindly pick other issue as previously clearly specified couple of times.
Thank you


Setting up 2d graphics with ImGuiCS

Trying to do something like this:

With some ImGuiCS menus 'floating' ontop of it.
Should I try do this in an ImGuiCS window of some kind or have an SDLCS window with an ImGuiCS window inside it? or some other thing?
I'm going to want to mousewheel zoom, click and drag pan, click on some things, rightclick menu etc.
The above picture is my attempt in eto.forms version of wpf/winforms canvas. the fading orbit circles are a bunch of arc segments each with slightly more alpha.  the whole thing changes, ie the planets move around their orbits, those strange box things at earth are broken ship icons which are meant to be dynamic (ie the icon should be different depending on the ship's stats, cargo size engine size etc etc.)

ImGuiCS ships with the ImGuiSDL2CSWindow class, which builds on top of the SDL2Window helper class. It allows you to handle events and set an OnLoop action.
I'd start by taking a look at the example YourGameWindow class and this tutorial on writing your own SDL2 key / mouse event handler.

I've been looking at the YourGameWindow class, been trying to draw a line, rectangle filled rectangle... anything but failing hard.
the only thing I managed to do was change the background window color using the GL.ClearColor and GL.Clear as per the YourGameWindow class.
is this what I should be trying to draw on?
This mess of commented out attempts pretty much shows what I've been throwing at it to get something
kinda not sure what I should be passing to functions when they're wanting ie the surface pointer.
 public unsafe override void ImGuiLayout()
        {

            SDL.SDL_Rect rect = new SDL.SDL_Rect();
            rect.x = 50;
            rect.y = 50;
            rect.h = 100;
            rect.w = 200;
            ImVec3 clear_color = new ImVec3(114f / 255f, 144f / 255f, 154f / 255f);
            //var surface = SDL.SDL_GetWindowSurface(this.Handle); or this.GLContext??

            //var windowFlags = ImGuiWindowFlags.NoCollapse | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoBringToFrontOnFocus | ImGuiWindowFlags.NoTitleBar;
            ImGui.SetNextWindowSize(new ImVec2(600, 800), ImGuiCond.FirstUseEver);
            //ImGui.Begin("MapWindow", windowFlags);
            var drawData = ImGui.GetDrawData();
            GL.ClearColor(clear_color.X, clear_color.Y, clear_color.Z, 1f);

            GL.Clear(GL.Enum.GL_COLOR_BUFFER_BIT);

            //SDL.SDL_RenderDrawRect(surface, ref rect);
            //uint green = ColorToUInt(Color.Green);
            //SDL.SDL_FillRect(GLContext, ref rect, green);
            //SDL.SDL_UpdateWindowSurface(GLContext);

            //SDL.SDL_RenderDrawLine(this.Handle, 50, 50, 200, 200);

            if (_state.MainMenu.IsActive)
                _state.MainMenu.Display();
            if (_state.NewGameOptions.IsActive)
                _state.NewGameOptions.Display();

            //ImGui.End();
        }```

You're drawing in the layout method, which you should avoid, but it's my fault, as I don't expose any other way to drop in your own rendering code 😅
Try the following instead:
public virtual void ImGuiRender() {
    // Selfnote for future releases: This method should just be called Render.

    // Feel free to add any GL drawing here.

    // Render ImGui on top of the rest.
    base.ImGuiRender();
}

OpenGL is out of the scope of this library and honestly, I'm not really experienced either, meaning that I won't be able to help you much with that.
What you're trying to achieve could probably be easily done with a fully fledged game framework, such as XNA / FNA / MonoGame. Many more beginner friendly resources exist for these, and with FNA and MonoGame, you're still targeting all desktop platforms. And ImGuiCS is even available when using those frameworks.
I'm going to close this issue, as I can't teach you OpenGL. If you still need any help with ImGuiCS, though, feel free to ask.
Good luck :)

Yeah fair enough. Much of the game engine stuff is done, it's displaying the info that I'm trying to polish up a bit. Reading around it looks like an immediate mode GUI would have solved a lot of the problems I ran into trying to do it with a reactive mode gui.  The graphics themselves are pretty basic. Lines circles and arcs mostly. I'm still trying to figure out where the line between what I can do in basic SDL and how much OpenGL is overkill.

I must be misunderstanding something fundamental here, because this doesn't make a whole lot of sense to me:

In the first image, I get a line but no ImGui stuff,
in the second image, I get the ImGui menu that I've made, but the line doesn't show up.
the only difference in the code is creating a reference to the surface Ptr being commented out or not:
IntPtr surfacePtr = SDL.SDL_GetWindowSurface(windowPtr);
which is not even used anywhere in the code.
stumped.

It occurred to me that I was needlessly creating that reference in a loop which was probability less than ideal, so I moved it to the constructor which fixed the problem I was having.
Still, not sure why it was occurring when I was creating the reference each frame.

Made some progress:

Just messing around with creating Arcs, Ellipses etc. havin't got them rotating on the focal point yet.
as you can see I've got an 3/4 ellipse there which has a fading line, I'm just creating a bunch of points, then changing the alpha colour as I draw them using SLD_RenderDrawLine.
Couple of quick questions with the imgui stuff though, you can see the control at the top: how do I size the slider and more importantly the combo?
also, I'm a little stumped on the ImageButton, is there some example code somewhere for this? I'm unsure where the int userTextureID comes from. and the UV, though I can probably figure that out through experimentation.


Added optional ssl_disabled property

Feature
Ability to set optional property ssl_disabled during MySql 5.x connection initialization.
Description
MySql 5.x comes by default with SSL enabled for TLS connectivity. For development purposes, it is handy to disable this property by setting ssl_disabled to True.
Checklist

[x] I have run this code in development and it appears to offer the stated
[x] This PR includes tests, or tests are not required/relevant for this PR
[ ] I have updated the CHANGELOG.md with information about my change

Thank you for this contribution, @navashiva!


Brand-new-well-written-super-cool-blazing-fast Python client implementation

Dear Axel, I would really like to implement a nice Python client, simple question:
Would you add it to the official list https://rickandmortyapi.com/documentation/#python?
It doesnt even have to have my name on it, but I ask just to make sure that it would not be left in the darkness 🙂.

Hey @lucasea777 absolutely!!
Please feel free to open a PR with your the library, we can check it and merge it to the documentation!


Windows installation steps wrong

When installing the CDK, the workshop recommends you install the CDK as Administrator on Windows.

Windows: you’ll need to run this as an Administrator

source: https://cdkworkshop.com/15-prerequisites/500-toolkit.html
This is incorrect - npm should be run as their normal user, otherwise the %PATH% does not get setup correctly, and cdk can't be run.

I just ran through the full first stage of the CDK workshop on 32 and 64 bit Windows machines, and ran npm install as admin, and cdk *** as standard user, and I had no issues with permissions or PATH.


Add tooltips

Added a couple tooltips. One for the inventory icon in ArtifactCardNano and one for the "# of threads" dropdown to explain what the option does.

Below is now removed, keeping text for history-keeping
Also added an "Exclude Artifacts" button in the Character > Artifacts page, and in ArtifactBuildDisplayItem. If you don't agree with this button, I can remove it, but it is pretty handy.

Ready for review again


$.notify in not a function

Hi .
i was trying to use bootstrap-notify in my project , but your documentation was not useful fore me .
for exmaple i was trying to show an alert message on a button click , but i got '$.notify in not a function' , and there was no explation about how to use alerts in button click events ?

Okey

:)
:)

Sorry this year has just been terrible for me life wise. I just noticed this issue. Are you able to tell me what the console was report?

Hello experts,
I am also facing the same issue in my Ruby on Rails project.
My bootstrap version: 3.3.7
Jquery version: 3.1.1
Could someone please help?

Resolved!
Looks like there were 2 jquery files being included in my page with different versions.
Removed one of them and notify is working like a charm!
Thanks experts!

I've the same problem, but i've only one version of jquery loaded.
My bootstrap version: 3.3.7
My Jquery version: (I've tried 1.12.4, 2.2.4, and 3.1.1)
$.notify in not a function is still here

Try jQuery.notify()

$.notify is not a function is happening to me,

Hi guys how are you can use this library for this problem:
__

Hi same issue.
I tried NoResource and handly add notify.js. But same error in console:
$wnd.jQuery.notify is not a function
I use latest GWT and GWTBootstrap. I have firstly inherited gwtboostrap and after gwtbootstrap.extras.notify.Notify in GWT module XML.

it's a strange problem,sometime it's fine,sometime can be wrong..but also try to include it once more before you use it,or u can try to choose another version,workd for me now

Hey guys.
If you haven't yet, in order to get this to work, you will need to add the bootstrap-notify.js path to your scripts.
Angular:
Simply locate the "scripts" array in 'angular.json' ( 'angular-cli.json' before angular v6 ) file and add the path to the module your using:
"node_modules/bootstrap4-notify/bootstrap-notify.min.js"
I hope this helps! 💯 Good luck!

in my case i put the $notify .function in a script in a $(document).ready(function() {
});

Hey guys. If you haven't yet, in order to get this to work, you will need to add the bootstrap-notify.js path to your scripts.
Angular: Simply locate the "scripts" array in 'angular.json' ( 'angular-cli.json' before angular v6 ) file and add the path to the module your using: "node_modules/bootstrap4-notify/bootstrap-notify.min.js"
I hope this helps! 💯 Good luck!

Thanks alot brother.....


Problem: Fetch job hangs indefinitely if wrong SS URL or API key is used

Expected behaviour: AIPscan returns an error message that SS is not found or that SS authentication has failed and abandons the Fetch Job. No Fetch Job record is created in the DB.
Current behaviour: The AIPscan Fetch Job monitor window reports that downloading package lists returned a "FAILURE" but then proceeds to "Downloading AIP METS files" regardless. There are no further updates on the GUI. On the server side, AIPscan sends get requests to the SS Server (with missing parameter information that should have come from a successful package info response). The server runs these unresolved requests indefinitely. The only way to resolve is an AIPscan server reboot.

Error handling scaffolding for this has been provided by Ross here: https://github.com/artefactual-labs/AIPscan/blob/main/AIPscan/Aggregator/tasks.py#L182-L192
Need to determine:

how/where to log the error (i.e. in a log file, AIPscan db, or Celery db). Right now it's defaulting (successfully) to stderror.
whether to add error handling code (i.e. output error to user, stop SS request task, delete Fetch Job row from db) inside TaskError class (line 28) or in the error catching If statement (lines 187-192)


Status Led and Buzzer compatibility

Hello everyone, I have a question about this awesome software.
I want to buy an RFID reader like this, and it has included also a led light and a buzzer.
Is it possible to implement status led light of the reader and the buzzer with the software?
It would be great.
Thank you, have a nice day! :smile:

Actually official hardware already has the pin for both buzzer and led but the code is not ready yet.

Thank you @omersiar for the quick reply.
Do you have any idea about when this feature could be released?
I'd really happy to help, if needed! :smiley:

Give it a bounty then maybe someone will code it quickly.

https://www.bountysource.com/issues/62842028-status-led-and-buzzer-compatibility

Implementing this is going to take a long time.  No need to keep this on Issue list, closing for now.


SEGI Cascaded crashing

No problems using SEGI on my camera, but when I use SEGI Cascaded, my screen goes black and after a short while Unity screen is all black. Windows notify that my video board stopped working and recovered from an issue, or something like it.
Happens instantly and all the time.
Reproduction:
On a clean project, add SEGI Cascaded to the camera.
Using SEGI:
SEGI.v0.9.0
My hardware is:
Core i7 Q740
NVIDIA GeForce GTX 460M
Windows 7
Unity 2017.1

Hi, I also had the problem on SEGI Cascaded. Screen freeze with result unity crash or graphics drivers crash.
GTX1080
SEGI.v0.9.0
unity 2017.1
I think the problem comes from the "Voxel AA" option trying to disable it.
I continue the tests but for the moment without the mode "Voxel AA" the drivers drivers did not plant for me.

Well this is not voxel mode AA

It's a known issue.
Intel HD 5500
GeForce GT 555M
GeForce GTX 980

I managed to reproduce the crash by making rotations of directional light.
the bug must be in the level of the GI update.

Thank you for the information, this issue should be fixed now. Also, please don't use the cascaded version from the release, it has memory leaks that have been fixed a while ago.


A option to skip the adaptor trimming

Broke the trimming and star into separate commands, problem fixed.


Visualization templates backend

[x] DB model for Template

title text not null
description text not null default  ''
min_supported_version text null
max_supported_version text null
required_tables [uuid]
source_visualization_id uuid not null
code string not null default ''
organization_id uuid not null

[x] ActiveRecord model
[x] Specific logic to check that list of related tables have always format schema.table_name
[ ] Rails endpoint with create, index, update, delete, show
[x] required_tables must check integrity upon change (especifically, a validation before any save/update)
[x] Related templates functionality, so when you try to delete a visualization informs if there are dependant templates
[x] Delete templates if visualization gets deleted
[x] Delete templates if organization gets deleted
[x] AR model specs
[ ] Rails endpoint tests

Use existing templated_workflows feature flag
Branch: 4805-tmplated-vis-backend
See Visualization-templates-technical-approach for internals

possible extra TODO:

[ ] check that source_visualization_id is valid also (at least existing and belonging to same org)


Continuing Before Package Installations Complete

Description
Sirji does not pause its process for the completion of long-running package installations. This leads to subsequent steps erroneously assuming the necessary packages are installed, causing failures.

This is already fixed.


Google upstream r21 with required fixes

At the time when Tensorflow 2.1 release branched out, the ROCm support was broken on the master branch.
In this PR, we cherry-pick the minimum set of PRs from what we've filed against the Tensorflow master branch onto the r2.1 release branch, to fix the ROCm CSB release builds and to unblock the further testings.
CC @deven-amd , @whchung

@alextp , I've rebased the previous commits to a single one with a force push, in order to pass the CLA check.
Can you take a look and re-approve this PR?


net: TestInterfacesWithNetsh and TestInterfaceHardwareAddrWithGetmac fail

This
c:\dev\go\src\net>go test -short net
--- FAIL: TestInterfacesWithNetsh (0.34s)
net_windows_test.go:253: unexpected interface list ["Local Area Connection" "Loopback Pseudo-Interface 1" "isatap.sge.local"], want ["Local Area Connection" "Loopback Pseudo-Interface 1"]
--- FAIL: TestInterfaceHardwareAddrWithGetmac (0.67s)
net_windows_test.go:449: unexpected MAC addresses ["Local Area Connection=00:82:34:95:45:11" "isatap.sge.local=00:00:00:00:00:00:00:e0"], want ["Local Area Connection=00:82:34:95:45:11"]
FAIL
FAIL    net     13.452s
fails on one of my computers. We would have to rearrange tests a little bit.
/cc @mikioh
Alex

Calling GetAdaptersAddresses with GAA_FLAG_INCLUDE_ALL_INTERFACES for listing all network interfaces including virtual/logical/pseudo stuff, or just checking the results contained in scraping stuff.
It's all your call. Because unlike BSD variants and Linux, Windows has not only common virtual interfaces such as ISATAP/6to4/Teredo/L2TP/PPPoE tunnel interfaces but pseudo-application helper network interfaces such as IKE blah blah.

FYI, GetAdaptersAddresses is not provided wide function. So it need to convert character-set using MultiByteToWideChar.

@mikioh I have plan for fixing TestInterfacesWithNetsh (CL 17850), but looking for suggestions on how to modify TestInterfaceHardwareAddrWithGetmac to make it PASS here. Thank you.
Alex

@mikioh TestInterfacesWithNetsh is fixed now. But TestInterfaceHardwareAddrWithGetmac is still broken. Do you have any suggestions of changing the test so it PASSes? Thank you.
Alex

@alexbrainman,
Sorry, I'm not a windows user and have no windows box. I'd recommend you to drop or disable TestInterfaceHardwareAddrWithGetmac unless you are sure getmac command uses information from where and how. It's fine because they are auxiliary test cases and we already have other test cases in interface_test.go and interface_windows_test.go.

... It's fine because they are auxiliary test cases and we already have other test cases in interface_test.go and interface_windows_test.go.

I have created CL 17993 to test your theory - just to see what tests will fail if I leave Interface.HardwareAddr blank. It appears (https://storage.googleapis.com/go-build-log/74b9c8ae/windows-amd64-gce_e2dcba01.log) only TestInterfaceHardwareAddrWithGetmac fails:
--- FAIL: TestInterfaceHardwareAddrWithGetmac (1.13s)
	net_windows_test.go:515: unexpected MAC addresses ["Local Area Connection=00:00:00:00:00:00"], want ["Local Area Connection=42:01:0a:f0:00:13"]
FAIL
FAIL	net	25.539s

so if we disable this test, then we can easily regress just like I did in CL 17993.
I think we need to keep as much of TestInterfaceHardwareAddrWithGetmac as we can.
Alex

I have created CL 17993 to test your theory

Sorry, I don't understand why it's related to. If you want to have a unit test which verifies payload for some reason, please do it. I don't think TestInterfaceHardwareAddrWithGetmac is a unit or integration test case. It looks an end-to-end test case. For standard library, there's no reason to prefer end-to-end test to unit/integration test.


Updating Jackson Core

We are using Google-API, Google Drive, DFP etc libs but we also use AWS Java API which is currently using Jackson Core 2.8. Is there any plans to update your libraries with the latest Jackson? We are going to just manually compile your source with the latest dependencies and see how that goes...

Fixed in #1070


Error working with large files - Gemini

So I'm trying to de-obfuscate a file that has 3781204 characters. I know its quite a bit...
I decided to go with Gemini due to the disclaimer of speed with OpenAI. Firstly the progress is incredibly slow (probably due to the file size). Anyways, after running this command and two hours (getting to 3% completion)
humanify gemini --apiKey="someKey" original.js

I get this error:
Processing file 1/1
Processing: 2%file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/node_modules/@google/generative-ai/dist/index.mjs:401
    throw new GoogleGenerativeAIFetchError( Error fetching from ${url.toString()}: [${response.status} ${response.statusText}] ${message} , response.status, response.statusText, errorDetails);
          ^

GoogleGenerativeAIFetchError: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent: [503 Service Unavailable] The model is overloaded. Please try again later.
    at handleResponseNotOk (file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/node_modules/@google/generative-ai/dist/index.mjs:401:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async makeRequest (file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/node_modules/@google/generative-ai/dist/index.mjs:374:9)
    at async generateContent (file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/node_modules/@google/generative-ai/dist/index.mjs:817:22)
    at async file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/dist/index.mjs:56818:24
    at async visitAllIdentifiers (file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/dist/index.mjs:56604:21)
    at async file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/dist/index.mjs:56810:12
    at async unminify (file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/dist/index.mjs:202:27)
    at async Command.<anonymous> (file:///C:/Users/user/AppData/Roaming/npm/node_modules/humanifyjs/dist/index.mjs:56859:3) {
  status: 503,
  statusText: 'Service Unavailable',
  errorDetails: undefined
}

Node.js v18.20.4

Now from what I understand this is completely google's issue as stated in this thread. The top answer does suggest implementing a "back-off" feature, similar to rate-limit prevention techniques. Is it possible to do this? or is there another cause to the issue to do with my machine?
tysm

Related issues:

https://github.com/jehna/humanify/issues/2

Alright, for my current situation, I decided to use OpenAI. It is true, the speed it noticeably slower, though i still had one question:
Does the following seem like an accurate ratio between input and output tokens?

Does the following seem like an accurate ratio between input and output tokens?

@Bruno-Alumn I don't really know what the ratios should look like specifically.. but I would definitely expect input to be MUCH higher, as that's going to be providing all of the code being referenced; whereas output should just be essentially giving the variable renames back.

I'm trying to process a pretty huge file and just ran into this:
RateLimitError: 429 Rate limit reached for gpt-4o-mini in organization org-abcdefghijklmnopqrstuvwx on requests per day (RPD): Limit 10000, Used 10000

I'm going to see about improving the rate limiting here:
// /src/plugins/openai/openai-rename.ts
+import Bottleneck from "bottleneck/light";

+// Math.floor(10_000 / 24) requests/hour
+const limiter = new Bottleneck({
+	"reservoir": Math.floor(10_000 / 24),
+	"reservoirRefreshAmount": Math.floor(10_000 / 24),
+	"reservoirRefreshInterval": 3_600_000
+});

export function openaiRename({
  apiKey,
  baseURL,
  model,
  contextWindowSize
}: {
  apiKey: string;
  baseURL: string;
  model: string;
  contextWindowSize: number;
}) {
  const client = new OpenAI({ apiKey, baseURL });

+  const wrapped = limiter.wrap(async (code: string): Promise<string> => {
    return await visitAllIdentifiers(
      code,
      async (name, surroundingCode) => {
        verbose.log(`Renaming ${name}`);
        verbose.log("Context: ", surroundingCode);

        const response = await client.chat.completions.create(
          toRenamePrompt(name, surroundingCode, model)
        );
        const result = response.choices[0].message?.content;
        if (!result) {
          throw new Error("Failed to rename", { cause: response });
        }
        const renamed = JSON.parse(result).newName;

        verbose.log(`Renamed to ${renamed}`);

        return renamed;
      },
      contextWindowSize,
      showPercentage
    );
+  });

+  return wrapped();
}

Originally posted by @brianjenkins94 in https://github.com/jehna/humanify/issues/167#issuecomment-2430584145


Update ble_ll_conn_hci.c

on LE connection complete event spec (5.3 V4 Part E <IP_ADDRESS>.1) say mca
parameter is only valid for Peripheral.On a Central,it shall be set to 0.

first time to commit

on LE connection complete event spec (5.3 V4 Part E <IP_ADDRESS>.1) say mca parameter is only valid for Peripheral.On a Central,it shall be set to 0.

on LE connection complete event spec (5.3 V4 Part E <IP_ADDRESS>.1) say mca parameter is only valid for Peripheral.On a Central,it shall be set to 0.

thanks @sjanc

could you squash all fixup commits into one?
and make a bit more descriptive commit title line eg: "nimble/ll: Fix master SCA in LE Connection Complete Event"

could you squash all fixup commits into one? and make a bit more descriptive commit title line eg: "nimble/ll: Fix master SCA in LE Connection Complete Event"


Fix the CMake

There's an issue when trying to build H2Core without Aluminum, MPI, etc. This cleans up some of that.

Replaces #48.


Loot Control - Loot Table drops on Death

This is a bit of an odd request and somewhat related to #26 and #17 .
Currently the ability to specify mob drops on death is somewhat limited. If you would like to have chances for a mob to drop multiple items you have to create multiple rules. While this does work it ends up increasing the overall amount of loot dropped instead of dropping one thing or another it's a chance for both. The more items you add the more stuff you'll eventually get. I think a good way to handle this would be to attach a loot table to the mobs death drops rather than an item, using Minecraft's native item generator to handle random chance and the like.
Failing that, if you have an alternative solution to adding exclusive random item drops, I would love to hear it.  I'm currently trying to create a system where monsters in Lost Cities have a chance to drop salvage that the player can turn into resources to encourage a bit of exploration over strip mining.  https://github.com/Vaygrim/grimco-rd1/issues/1

Will consider this but later


[KeyVault] Document that "csr", "x5c", and "cer" are base64-encoded

These properties use base64-encoded. We should be clear about that.

This is not needed and actually misleading. The problem reported by Heath is about being in control of the input format for mergeCertificate. That is a separate problem than the one described in this issue, and we haven't arrived to a definitive action item, so I'll close this for now.


Include examples in the module

I'd like to have the Examples included in the published module.

The purpose is to make it easy for the user who installed the module to play the examples easily, correct?
Let me move the Examples directly under the module directly and tweak the the Import-Module code in the examples.

Nice idea. I will add Start-DTExample and Get-DTExampleLocation.

v0.3.0 has been released to the gallery. It includes Examples directory and the new functions for the examples:
https://github.com/mdgrs-mei/DynamicTitle#examples


Issues 1775 / 1780 : Fix the java.lang.NoClassDefFoundError: sun/reflect/Reflection in the strongbox-ldap-authentication-provider when building under JDK 11

Test our build with JDK 11 and fix any issues with it ( strongbox/strongbox#1111 )
Fix the java.lang.NoClassDefFoundError: sun/reflect/Reflection in the strongbox-ldap-authentication-provider when building under JDK 11 ( fixes strongbox/strongbox#1780 )
Based on branch issues-1775 ( strongbox/strongbox#1775 ).

@sbespalov ,
Can we close this one as well?


Fix for properly decoding form param keys

Keys in x-www-form-urlencoded form params should also be %-decoded, according to specs

Out as part of 3.9.1 now! https://javalin.io/news/2020/06/21/javalin-3.9.1-released.html


support config common aes secret

What's changed?

support config common aes secret
Checklist

[x]  I hereby agree to the terms of the HertzBeat CLA
[ ]  I have read the Contributing Guide
[ ]  I have written the necessary doc or comment.
[ ]  I have added the necessary unit tests and all cases have passed.

Add or update API

[ ] I have added the necessary e2e tests and all cases have passed.

todo, consider not init cipher in AesUtil every time and test performance

todo, consider not init cipher in AesUtil every time and test performance

Does this mean using singleton (not every initialization)?

Does this mean using singleton (not every initialization)?

here we init cipher every time, want to try just initialize the cipher once and then support its use by multiple threads safely.

Does this mean using singleton (not every initialization)?

here we init `cipher` every time, want to try just initialize the `cipher` once and then support its use by multiple threads safely.

I found a place to set the SecretKey, and we can try initializing Cipher by putting it into the setDefultSecretKey method.

I found a place to set the SecretKey, and we can try initializing Cipher by putting it into the setDefultSecretKey method.

yes, and we should consider the situation that not setDefultSecretKey when startup.

Is this method okay? A single instance of double check lock


Bug: Fix substat ordering on relic filters

<< Reserved for first task >>
Motivation: Currently on the relics tab page, the substat order doesnt really match the main stat order. For example Break Effect comes before HP% for some reason.

Goal: Re-order the stats for consistency, make sure the subs match the main stat order. Some substats dont appear as main so lets go with RES last.
The code where this filter is generated is here: https://github.com/fribbels/hsr-optimizer/blob/main/src/components/RelicFilterBar.jsx#L103

In progress @Kodie

Double check on the main stat ordering as well for consistency

Requested fix, PR #196

Would be closed by PR #196

Released in https://github.com/fribbels/hsr-optimizer/pull/204


add matches_type for array in arg mapper and tests

Checklist

[ ] Linked to Github Issue
[ ] Unit tests added
[ ] Integration tests added.
[ ] This change requires new documentation.

[ ] Documentation has been added/updated.

Codecov Report
Attention: Patch coverage is 99.80620% with 1 line in your changes missing coverage. Please review.

Project coverage is 91.65%. Comparing base (fd93b34) to head (19daa46).

Files
Patch %
Lines

src/values.rs
99.76%
1 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #705      +/-   ##
==========================================
+ Coverage   91.52%   91.65%   +0.12%
==========================================
  Files         118      118
  Lines       32790    33306     +516
==========================================
+ Hits        30012    30527     +515
- Misses       2778     2779       +1

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

@igaray is there anything missing here?

@azteca1998 Just fixed the conflicts, let me know if we can merge

The code for jit values changed quite a bit and it has got some tests, closing as this is outdated.


Setting cookie secure flag

Hi Andy!
Session cookie are being set without the Secure flag, but transmission over HTTP prevented by HSTS.
Would it be possible to add the secure flag to the cookie, please.

Hi Tony - yes, seems like this should be on by default, so I've applied that now which you'll find from version 3.4 now on NuGet.
Seems that should likely be simply on, but if it causes any issues for others I can look to make it a configuration option so you can set to non-secure if you want to.

Amazing! Thank you, Andy! :)


Explain the features

I understand that the difference between this and Farsight is that this one does not keep chunks in cache indefinitely. What is the normal time for the cache cleanup then? 1 hour? 2 hours?
Edit: saw the config, 10 minutes. I know it's configurable, but isn't that too small as a default?
The main unloading only happens when the chunk is not within render distance, right?
Are chunks also cleared in other states, including:

Dimension/world change (e.g. vanilla portals or multiworld plugins)
Server leave
Game close

I understand that the difference between this and Farsight is that this one does not keep chunks in cache indefinitely. ~What is the normal time for the cache cleanup then? 1 hour? 2 hours?~
Edit: saw the config, 10 minutes. I know it's configurable, but isn't that too small as a default?

My intention in making this mod was primarily to remedy the chunk loading struggles encountered when holding ice boat races and elytra course races with my friends. The typical lap times for the shortest ice boat course on our server are around 40 seconds, and the lap times for the longest course are around 6 minutes. So this default serves my own needs well. I am open to changing the default, however, I think I will also add a hotkey-based method of immediately handling the queued chunk unloads before that.

The main unloading only happens when the chunk is not within render distance, right?

Yes, the real chunk unloads only happen when the chunk has not been within render distance for the duration of the delay config. Whenever a player moves back to within render distance, the client will get a chunk load packet. You can see in ChunkUnloader::onChunkLoad that the delayed chunk unload which was previously queued will be canceled. Then the delayed chunk unload can be queued again when the player moves away and the client gets a new chunk unload packet for that chunk.

Are chunks also cleared in other states, including:

Dimension/world change (e.g. vanilla portals or multiworld plugins)

Actually, I did not investigate that scenario enough yet to fully understand it.

Server leave

Yes, the world gets cleaned up whenever the client disconnects from a server.

Game close

Yes, everything gets cleaned up when the JVM stops.


UnicodeEncodeError issue while open the role tab

I met the UnicodeEncodeError while open the role tab, can anyone give the solution? thanks!
UnicodeEncodeError
UnicodeEncodeError: 'ascii' codec can't encode characters in position 11-16: ordinal not in range(128)

Traceback (most recent call last)
This is the Copy/Paste friendly version of the traceback. You can also paste this traceback into a gist:  create paste
Traceback (most recent call last):
  File "/root/anaconda2/lib/python2.7/site-packages/flask/app.py", line 2000, in __call__
    return self.wsgi_app(environ, start_response)
  File "/root/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1991, in wsgi_app
    response = self.make_response(self.handle_exception(e))
  File "/root/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1567, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/root/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1988, in wsgi_app
    response = self.full_dispatch_request()
  File "/root/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1641, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/root/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1544, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/root/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1639, in full_dispatch_request
    rv = self.dispatch_request()
  File "/root/anaconda2/lib/python2.7/site-packages/flask/app.py", line 1625, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps
    return f(self, *args, **kwargs)
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/views.py", line 453, in list
    widgets=widgets)
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/baseviews.py", line 158, in render_template
    return render_template(template, **dict(list(kwargs.items()) + list(self.extra_args.items())))
  File "/root/anaconda2/lib/python2.7/site-packages/flask/templating.py", line 134, in render_template
    context, ctx.app)
  File "/root/anaconda2/lib/python2.7/site-packages/flask/templating.py", line 116, in _render
    rv = template.render(context)
  File "/root/anaconda2/lib/python2.7/site-packages/jinja2/environment.py", line 989, in render
    return self.environment.handle_exception(exc_info, True)
  File "/root/anaconda2/lib/python2.7/site-packages/jinja2/environment.py", line 754, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/templates/appbuilder/general/model/list.html", line 2, in top-level template code
    {% import 'appbuilder/general/lib.html' as lib %}
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/templates/appbuilder/base.html", line 1, in top-level template code
    {% extends base_template %}
  File "/root/anaconda2/lib/python2.7/site-packages/caravel/templates/caravel/base.html", line 1, in top-level template code
    {% extends "appbuilder/baselayout.html" %}
  File "/root/anaconda2/lib/python2.7/site-packages/caravel/templates/appbuilder/baselayout.html", line 2, in top-level template code
    {% import 'appbuilder/baselib.html' as baselib %}
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/templates/appbuilder/init.html", line 46, in top-level template code
    {% block body %}
  File "/root/anaconda2/lib/python2.7/site-packages/caravel/templates/appbuilder/baselayout.html", line 21, in block "body"
    {% block content %}
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/templates/appbuilder/general/model/list.html", line 7, in block "content"
    {% block list_search scoped %}
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/templates/appbuilder/general/model/list.html", line 8, in block "list_search"
    {% call lib.accordion_tag("accordion1",_("Search"), False) %}
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/templates/appbuilder/general/lib.html", line 254, in template
    {{ caller() }}
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/templates/appbuilder/general/model/list.html", line 9, in template
    {{ widgets.get('search')()|safe }}
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/widgets.py", line 108, in __call__
    form_fields[col] = self.template_args['form'][col]()
  File "/root/anaconda2/lib/python2.7/site-packages/wtforms/fields/core.py", line 153, in __call__
    return self.meta.render_field(self, kwargs)
  File "/root/anaconda2/lib/python2.7/site-packages/wtforms/meta.py", line 56, in render_field
    return field.widget(field, **render_kw)
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/fieldwidgets.py", line 174, in __call__
    return super(Select2ManyWidget, self).__call__(field, **kwargs)
  File "/root/anaconda2/lib/python2.7/site-packages/wtforms/widgets/core.py", line 288, in __call__
    html.append(self.render_option(val, label, selected))
  File "/root/anaconda2/lib/python2.7/site-packages/wtforms/widgets/core.py", line 301, in render_option
    return HTMLString('<option %s>%s</option>' % (html_params(**options), escape(text_type(label), quote=False)))
  File "/root/anaconda2/lib/python2.7/site-packages/flask_appbuilder/security/sqla/models.py", line 45, in __repr__
    return str(self.permission).replace('_', ' ') + ' on ' + str(self.view_menu)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 11-16: ordinal not in range(128)

Notice: this issue has been closed because it has been inactive for 622 days. Feel free to comment and request for this issue to be reopened.


Relocate the operators sections of buttoncfg.py

Move the operator_map / operators in buttoncfg inside of either _eval or somewhere in the same package as a constant to limit the potential for function injection.

All unit tests run, math operators in calculator tested, code commit reviewed.


cptable var should not be exposed on the global scope

While running tests using hapijs/lab, the variable leak finder reported The following leaks were detected:cptable. It would be greatly appreciated if this could be scoped so that it was not global by defining var cptable at the top of the file, the same way you define var XLS. Thanks!

@tjsail33 This is intentional since cptable is an "optional dependency".  XLS format uses the codepage functionality but it is not needed for XLSX format.  As the codepage source is 378kb, it seemed inappropriate to make it required if you are only using XLSX, so it is optional and the code checks if the variable is available in a browser context.
https://github.com/SheetJS/js-xlsx/blob/master/index.html#L46-L49 if you are including the source with standard HTML script tags, putting var cptable; up at the top of xlsx.js would mask the cptable variable inherited from execution of the cpexcel script.
If there are magic comments that we can include to appease your test runner, that might be the better approach.  We already have some comments for jshint.

putting var cptable; up at the top of xlsx.js would mask the cptable variable inherited from execution of the cpexcel script.

Can't you read it off window/global?


452 pydev warning

Description
Pydev doesn't like other packages to use sys.settrace and warns about it due to the danger that it may interfere with the pydev debugger. This is explained here: https://pydev.blogspot.com/2007/06/why-cant-pydev-debugger-work-with.html.
I've checked if debugging is affected - it is not - and replaced sys.settrace by pydevd_trace.SetTrace if available as suggested in one of the above page's comments. This supresses the warning.
Fixes #452

Codecov Report

Merging #455 (e3078f9) into main (3694028) will increase coverage by 0.01%.
The diff coverage is 66.66%.

@@            Coverage Diff             @@
##             main     #455      +/-   ##
==========================================
+ Coverage   89.04%   89.06%   +0.01%
==========================================
  Files          15       15
  Lines        3004     3008       +4
==========================================
+ Hits         2675     2679       +4
  Misses        329      329

Impacted Files
Coverage Δ

padl/dumptools/inspector.py
92.89% <66.66%> (+0.15%)
:arrow_up:

Continue to review full report at Codecov.

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


idf.py failed in windows7

Build without modifing anything results in the following:
../components/lvgl_esp32_drivers/lvgl_touch/ft6x36.c:23:10: fatal error: lvgl/lv gl.h: No such file or directory  #include <lvgl/lvgl.h>           ^~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. ninja failed with exit code 1
I  copy lvgl.h from littlgvgl/lvgl repository to lvgl/lvgl directory and rebuilt, but resulting other "no such file" errors.

Hi @ghosttk,
What display and touch controller are being used in your configuration? I need more information to try replicate the issue.

I did not change the dufault configuratonns, it was still 9341.

How did you cloned the repo? Are the submodules initialized? You can take a look at components/lvgl/lvgl, if there is no files in that directory then you need to initialize the submodules.
I have no Windows 7 machines available but I just cloned the repo and was able to build the project with default configuration.

Problem solved ,  thank you!!
It was because I used to directly download repositories from browser, hence not including submodules.

Don't worry, have fun :)


compare page layout issue for logged in user

Bug report
Title
compare page layout issue for logged in user
Issue Description
compare page layout issue for logged in user
Preconditions
1. framework Version- master

Steps to reproduce
1. step1- login with customer & add products to compare having attribute image type
2. step2- open the compare product page

Expected result
the design should be fixed
Actual result

Fixed in master


Using custom inference script and models from Hub

Hello,
Can we use custom inference script without downloading the model to the S3 ? From the link, it says that we need to download the model artifacts and push them to S3 before using the custom inference script.
This will add considerable overhead depending on the model size.

+1 if I have to download the weights and repackage them, it kind of defeats the purpose of this library. The embeddings models "feature-extraction" return the last hidden state which is missing a step. The only thing I can do is repackage everything. I can't even add a file "code/inference.py" to the huggingface repository as the FILE_LIST_NAMES prevents it from being downloaded.


Implement GlobalSettings along with a secure JWT secret

This implements a new GlobalSettings config and model for handling configuration that should apply to the whole system, such as JWT secret (which was previously just a todo string) This also paves the way for other global features, such as disabling registration.
Not sure what sort of naming you'd prefer, so let me know or feel free to change from GlobalSettings if you wish 😄

no longer required, took some of this and made a new "System" object.


fixed typo

:)

Thanks!

External link http://www.slideshare.net/roidelapluie failed: 999 No error

Good error message is good! Not related to this PR, so I'm going to merge it.


exception in spyder internal console when typing 'exit(' in editor

From<EMAIL_ADDRESS>on 2014-09-30T04:00:06Z
Spyder Version:  2.3.1
Python Version:  2.7.6
Qt Version    :  4.8.6, PyQt4 (API v2) 4.10.4 on Linux
pyflakes >=0.5.0:  0.8.1 (OK)
pep8 >=0.6      :  None (NOK)
IPython >=0.13  :  1.2.1 (OK)
pygments >=1.6  :  1.6 (OK)
pandas >=0.13.1 :  0.14.1 (OK)
sphinx >=0.6.6  :  1.2.3 (OK)
psutil >=0.3    :  None (NOK)
rope >=0.9.2    :  0.10.2 (OK)
matplotlib >=1.0:  1.4.0 (OK)
sympy >=0.7.0   :  None (NOK)
pylint >=0.25   :  None (NOK)
What steps will reproduce the problem?

type 'exit(' in the editor 2. 3.

What is the expected output? What do you see instead?
output of internal console:
Spyder Internal Console
This console is used to report application
internal errors and to inspect Spyder
internals with the following commands:
spy.app, spy.window, dir(spy)
Please don't use it to run your code
>>> Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/spyderlib/widgets/editor.py", line 433, in show_object_info
signature = getsignaturefromtext(doc_text, obj_name)
File "/usr/local/lib/python2.7/dist-packages/spyderlib/utils/dochelpers.py", line 178, in getsignaturefromtext
sigs_1 = re.findall(oneline_re + '|' + multiline_re, text)
File "/usr/lib/python2.7/re.py", line 177, in findall
return _compile(pattern, flags).findall(string)
TypeError: expected string or buffer
Please provide any additional information below
.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1990

From ccordoba12 on 2014-11-18T15:31:05Z
Labels: MS-v2.3.3 Cat-Editor

From ccordoba12 on 2014-12-18T13:33:51Z
This was fixed in revision b31892ba739e
Status: Fixed


Support multiple environments

Currently, the only way to deploy to multiple environments (i.e. dev, test and prod) is through system properties, like this:
herokuAppName in Compile := (if (sys.props("appName") == null) "myapp" else sys.props("appName"))

and then running
sbt -DappName=myapp-test stage deployHeroku

However, it would nice to have a more natural approach that easily allows for multiple environments to be configured. I would love suggestions on how this might look.

Using sbt-git you can get something pretty nice based on which branch is currently checked out. I use something like this:
plugins.sbt
resolvers ++= Seq(
  Resolver.typesafeRepo("releases"),
  "jgit-repo" at "http://download.eclipse.org/jgit/maven",
  Resolver.url("heroku-sbt-plugin-releases", url("https://dl.bintray.com/heroku/sbt-plugins/"))
    (Resolver.ivyStylePatterns),
)

addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.6.4")

addSbtPlugin("com.heroku" % "sbt-heroku" % "0.3.0")

build.sbt
import com.typesafe.sbt.SbtGit._

// ...

herokuAppName in Compile := Map(
  "testing"    -> "myapp-testing",
  "staging"    -> "myapp-staging",
  "production" -> "myapp"
).getOrElse(git.gitCurrentBranch.value, "")

herokuJdkVersion in Compile := "1.8"

showCurrentGitBranch

@danielkza nice! i really like that solution. I'm going to add it to the docs, and close this ticket. Thanks!


Improvements for working with optionals

Fixes #242
This PR addresses two problems:

You can't create a JSON from an optional Double, Int, String or Bool. I think a reasonable approach is to turn an optional that is nil into the .null JSON type. This is done via an initializer for example:

let myString: String? = nil
let json = JSON(myString)   // becomes .null

When you are serializing a JSON dictionary with values that are .null, it would be nice to include an option that skips the key this null is associated with. Some systems prefer the key is not present in the JSON rather than key = null. Both are valid approaches, hence adding in an options parameter to request the skip key behavior.

Awesome ! 👍


services/ticker: add docs about which asset in a pair is the base

PR Checklist
PR Structure

[x] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[x] This PR avoids mixing refactoring changes with feature changes (split into two PRs
otherwise).
[x] This PR's title starts with name of package that is most changed in the PR, ex.
services/friendbot, or all or doc if the changes are broad or impact many
packages.

Thoroughness

[x] ~This PR adds tests for the most critical parts of the new functionality or fixes.~
[x] ~I've updated any docs (developer docs, .md
files, etc... affected by this change). Take a look in the docs folder for a given service,
like this one.~

Release planning

[x] ~I've updated the relevant CHANGELOG (here for Horizon) if
needed with deprecations, added features, breaking changes, and DB schema changes.~
[x] I've decided if this PR requires a new major/minor version according to
semver, or if it's mainly a patch change. The PR is targeted at the next
release branch if it's not a patch change.

Summary
Add docs about which asset in a trade pair is the base, and which is the counter.
Goal and scope
To make it less confusing for new comers looking at the API to determine what the values returned by the API mean in the context of a trade pair.
It was confusing to me that the base is on the right-hand-side because the base is usually the currency on the left-hand-side, at least in traditional markets. Some examples of this:

https://en.wikipedia.org/wiki/Currency_pair
https://www.investopedia.com/terms/b/basecurrency.asp

We probably can't change the order at this point, and there are probably a good reason we went with this order that I'm not aware of (@tomquisel?), so documenting it at the top of the API docs should alleviate confusion.
Summary of changes

Add docs to services/ticker/docs/API.md

Known limitations & issues
N/A
What shouldn't be reviewed
N/A

I've also created an issue to decide if we should swap the counter and base currencies in the trade pairs: #1782.


custom training on speaker identification

Hi! I am trying to do training on my custom dataset of about 500 speakers for speaker identification. I am following the code available inside templated/speaker_id. but when I am trying to train the the model I am getting the following error :
data = self._dataset_fetcher.fetch(index)  # may raise StopIteration

File "C:\Users\Rohan Tahir\Anaconda3\envs\py38\lib\site-packages\torch\utils\data_utils\fetch.py", line 47, in fetch
return self.collate_fn(data)
File "C:\Users\Rohan Tahir\Anaconda3\envs\py38\lib\site-packages\speechbrain\dataio\batch.py", line 125, in init
padded = PaddedData(*padding_func(values, **padding_kwargs))
File "C:\Users\Rohan Tahir\Anaconda3\envs\py38\lib\site-packages\speechbrain\utils\data_utils.py", line 405, in batch_pad_right
raise EnvironmentError(
OSError: Tensors should have same dimensions except for last one
Kindly see it and guide me from where I can change the tensor or should I make smaller clips of sound files as in LibriSpeech ?

Hi,
it looks like this is just a dimensionality mismatch. Make sure, for instance, the batches (that I guess contain the input waveforms) respect the batch formalism:  [batch, time].
If you are able to run the example in the template, you can do some prints of the shapes there to figure out what is the expected dimensionality.

Thanks for the reply. Yes, it was the mismatch of the number of channels. the LibriSpeech has one channel while my dataset was of having 2 channels. I split the wav files and it solved my problem.


MAINT: removed use of deprecated method from_csv

Pandas has deprecated the from_csv method in favor of read_csv as of v0.21.0. This change is needed to make plugins pass unit tests utilizing the newest version of pandas v0.25.1. Fixes issue #176

@thermokarst if you are concerned about this PR we can just revert and drop it — the only functional change here (in test_classifier.py) will be buried by the major refactor needing to happen asap with #167

No need to revert, but perhaps we need a follow-up PR for dropping parse_dates, depending on what @David-Rod has to say.


Put completed telemetry audits in respective git repos

Put completed telemetry audits in respective git repos

Spinnaker
Jenkins
Tekton

These have been published on the LF site


[LIBCLOUD-774] Add preemptible instance creation for GCENodeDriver

Added another argument to GCENodeDriver.create_node method to allow for creation of preemptible instances on Google Compute Engine.  Modeled after other arguments passed to 'scheduling' dictionary.  Small change, no tests provided.
https://issues.apache.org/jira/browse/LIBCLOUD-774

LGTM :+1: do you have the google API doc for this?

found it, looks good. will merge


Add TLS Support For MQTT Client

Fix #41
Update MQTT client, client options, and constructors to allow for
configuration of TLS communication.
Update tests to cover newly added functionality.
Signed-off-by: Anthony M. Bonafide<EMAIL_ADDRESS>

Codecov Report

Merging #47 into master will increase coverage by 1.24%.
The diff coverage is 96.42%.

@@            Coverage Diff            @@
##           master     #47      +/-   ##
=========================================
+ Coverage   87.45%   88.7%   +1.24%
=========================================
  Files           8       8
  Lines         303     354      +51
=========================================
+ Hits          265     314      +49
- Misses         25      26       +1
- Partials       13      14       +1

Impacted Files
Coverage Δ

internal/pkg/mqtt/client_options.go
96.22% <100%> (+0.39%)
:arrow_up:

internal/pkg/mqtt/client.go
98.51% <96%> (-1.49%)
:arrow_down:

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 46ec339...edbe82f. Read the comment docs.

I am going to close this PR for now. After having a second look at this and the work which follows in issue https://github.com/edgexfoundry/app-functions-sdk-go/issues/279, I want to add a little more functionality so that the integration between the two are more seamless. I will create or re-open this PR once I am done finalizing the work here. I apologize for the inconvenience.


Pytest discovery in python code

(related to #3911)

[ ] add Python script to with basic CLI to handle pytest discovery
[ ] call pytest API to do discovery
[ ] serialize (JSON) results into minimal data structure
[ ] write to stdout
[ ] plug into extension code (ts) (see #4035)

Proposed Minimal Output Format
[
    testRoot: string;
    folders: [
        {
            name: string; // folderName relative to `testRoot`.
            package?: [
                {
                    fileName: // test file name
                    testSuite?: [
                        {
                            name: string; // name of test suite
                            lineNumber: number; // line number suite definition exists on (1-based)
                            parentTestSuite?: string[] // if this is a suite within another suite, the immedate parent
                            functions: [
                                {
                                    name: string; // name of test function
                                    lineNumber: number; // line number function exists on (1-based)
                                }
                            ];
                        }
                    ]
                    functions?: [
                        {
                            // see definition of `testSuite:functions` above
                        }
                    ]
                    errors: string[]; // any errors found when discovering this specific package
                }
            ]
        }
    ]
]

current pytest output:
# python -m pytest --collect-only -q

test_foo.py::test_a
test_foo.py::test_b
sub_a/sub_b/test_sub_b.py::TestFooSub2::test_value_below_one_hundred
sub_a/sub_b/test_sub_b.py::TestFooSub2::test_value_above_zero
sub_a/sub_b/sub_c/test_sub_c.py::test_something_odd
sub_a/sub_b/sub_c/test_sub_c.py::TestSomethingSomething::test_something_even
testsub/test_foo_sub1.py::TestFooSub1::test_foo_sub1_method1
testsub/test_foo_sub1.py::TestFooSub1::test_foo_sub1_method2
testsub/test_foo_sub1.py::TestFooSub1::TstFooSub1_A::test_foo_sub1_method2

serialized:
{
   testRoot: "/home/user/dev/workspace",
   folders: [
       {
           name: ".",
           testFiles: [
               {
                   fileName: "test_foo.py",
                   functions: [
                       {
                           name: "test_a",
                           id: "test_foo.py::test_a"
                       },
                       {
                           name: "test_b",
                           id: "test_foo.py::test_b"
                       }
                   ]
               }
           ]
       },
       {
           name: "testsub",
           testFiles: [
               {
                   fileName: "test_foo_sub1.py",

               }
           ]
       }
   ]
}

@ericsnowcurrently
Please note, the arguments to pytest will be passed into the python code by node.js (i.e. the extension),
I.e. if using code as follows pytest.main(["-v", "tests", "--collect-only"], ....) please note, the args will be passed in sys.argv in some form, and the python code is not to construct these arguments.

I've opened https://github.com/pytest-dev/pytest/issues/4850 to find out the recommended way to do just discovery using the API.

@ericsnowcurrently 	They provide the API for this, here's the sample code https://github.com/Microsoft/vscode-python/issues/3911#issuecomment-452364856

There was already example code:  https://github.com/Microsoft/vscode-python/issues/3911#issuecomment-452364856

I'm still having an issue getting pytest discovered from my Miniconda installation.

Any progress on this? This #3936 is still not working.


Preparing for next release.

lgtm! I didn't know that there were already RELEASE.md

I don't maintain CHANGELOG right now as we haven't committed to it yet.


FastZonalUpdate property addition

@tomvcassidy
Can you review the proposed changes?
When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

I fixed the validation issues re: links.
@tomvcassidy - review / approve / sign-off when ready

#sign-off


dbm should run before quartz/schwartz plugins

I recently dropped my database (hadn't since Grails 3.1.x) and re-started from scratch. Quartz would not start up due to no tables being created. This was due to dbm not running before to create the tables. I disabled quarts and let it dbm run, then re-enabled quartz and all was fine.
Should this constraint go in dbm or the respective plugins? eg: https://github.com/grails-plugins/grails-quartz/blob/0e2a909936afeab9322035e1a5da84ef3700ebfd/src/main/groovy/quartz/QuartzGrailsPlugin.groovy#L49

I'm not sure making a change for loadAfter/loadBefore would have any effect, however you could give it a try locally and report back. I would think the change should go in the quartz plugin since it is the one with the issue.

You're correct - the load* list didn't change the behavior. Is there a way to ensure dbm is run early to create tables for plugins that depend on them?

I know this ticket is old, but in case anyone needs a work-around:

Disable quartz auto-startup in application.yml/application.groovy by setting quartz.autoStartup to false
Inject the quartzScheduler bean into BootStrap.groovy and inside the init closure run quartzScheduler.start() or quartzScheduler.startDelayed().

We delay the quartz scheduler for other reasons but as far as I know both methods should work. This is how we worked around this issue.


File added to close the issue automatically

Related Issue
Should automatically close the issue if the PR merged.
Closes: #57
Describe the changes you've made
Added a new file in workflows folder
Type of change
New file is added.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Enhancement in the existing features
[ ] Other

Mention any unusual behaviour of your code (Write NA if not)
NA
Checklist:

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly whereever it was hard to understand.
[x] My changes generate no new warnings.
[x] I have verified/tested my code by running it locally.

Files Added/Modified
New file close-issue.yml is added.
Screenshots / Videos / Gif
[Insert screenshots or videos demonstrating the changes you made.]
Additional Info (optional)
Kindly do check it and let me know if any changes are required :)

@Soumya1219 , could you add screenshots of the work done or any testing that you performed?? that will be great

Sorry for the late reply madam,
Actually last week was packed with my semester exams and pre placement
exams so I was not able to upload the testing screen shots. I will be done
by tomorrow morning.
Thanks and Regards
Soumya Ch
On Mon, 5 Jun, 2023, 8:15 pm Apeksha Hegde, @.***>
wrote:

Hey @Soumya1219 https://github.com/Soumya1219 what's the update?
—
Reply to this email directly, view it on GitHub
https://github.com/jain-rishabh-21/DoctorVerse/pull/66#issuecomment-1576940732,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATAB4JZULFYMBORV64A7TU3XJXWKBANCNFSM6AAAAAAYYVEJXI
.
You are receiving this because you were mentioned.Message ID:
@.***>

okay @Soumya1219


Rewrite intra-book links in gdocify to REX URLs

This change uses a combination of pipeline metadata files and a CMS
endpoint to retrieve book slugs to construct REX URLs for intra-book
links found during gdocify-book.

Converting this PR to draft for the time being based upon discussions around looking into options of either avoiding CMS lookups or moving to a different point in the pipeline.

Closing this PR in deference to the alternate implementation approach in PR 190.


os x gui client: e.startsWith is not a function

when clicking on the "jump to new conversation" link in the "name reset their profile their encryption keys were replaced with new ones" message

when he messages me

when I message him

Cc: @mmaxim
I believe all of these issues are fixed in our next release. Thank you for your feedback

@chrisnojima have these reset UI bugs been addressed?

we have some we're looking at this sprint


[Question] How to parse a YAML locales file?

First, I want to say thanks for this helpful tool! Unfortunately, I can't figure out how to parse a YAML locales file (which is directly supported by i18next). I set localesExtensions to use yml extension and then want to provide a custom parser. First I thought that I can use localeFileParser for that, but from looking at the source code it doesn't do what I first thought it does. Is this even possible somehow?

I took a second look at the source, and it doesn't seem to be currently possible. Would you accept a PR to allow to set a custom loader? How about an option named localeFileLoader with type definition (filePath: string) => RecursiveStruct?

Hi, thx for interest. It sounds good. I'll be glad for pr with custom loader =)


Add metadata needed for tooling of service reference features

#10789

@BillHiebert I made a couple of space changes to the OpenApiItemsSchema.xaml file you provided and added the words "file" or "project" in a couple of spots. Also removed the conditions and the indirections. Is there anything I should test locally before we check this in?

Also kicked off a trial official build: https://dnceng.visualstudio.com/internal/_build/results?buildId=221516

@anurse we have a lot of ServerTests issues in aspnet/AspNetCore-Internal. But, Server_MultipleOutstandingSyncRequests_Success isn't specifically mentioned. Is it likely that Helix failure on Windows 10 AMD64 is just another example of flakiness in the test class?

Sorry to the many people now subscribed to this PR. GitHub added loads of code owners when I changed the target branch ☹ I've pared things back again.

@dougbu Yes, there are a few of these TaskCancelledException failures already tracked in RaaS. I think this is just the same.

Ping reviewers. All checks have passed.