Do not support disused/abandoned/demolished=yes in rendering

Hello,
usually, areas like buildings or landuses are rendered with a solid border in iD. But if you add tags like "disused=yes", "abandoned=yes" or "demolished=yes", the border's style changes to a dashed line. I think it would be a good idea to remove these style-changes to show that tags like "disused=yes" are not supported anymore, because they are deprecated. The new scheme is to use "disused:" etc. as lifecycle prefixes. Even though I know that "disused=yes" and others are still widely used, the wiki says all uses should be transferred into the actual scheme. Same problem exists where "disused" or similar things are in the value and not in the key, e. g. the deprecated "highway=abandoned" etc.

Data consumers should not be expected to check for "proposed=yes", "demolished=yes", "construction=yes", "completely_fictional=yes" or "end_date=1990".
This like tagging prison as amenity=hotel  involuntary=yes.

These tags you want to deprecate are used hundreds of thousands of times. Please feel free to retag these features and rewrite the wiki if you think that the tag should no longer be used.
Sorry but I'm getting kind of tired dealing with requests like this. Changing the editor presets is not going to change the data already existing in OSM.

Data consumers should not be expected to check for "proposed=yes", "demolished=yes", "construction=yes", "completely_fictional=yes" or "end_date=1990".

iD is a data consumer too.  Believe me, if it were up to me, the tagging would look very different than it currently does.  😠

These tags you want to deprecate are used hundreds of thousands of times.

demolished=yes is currently below 1000 ( https://taginfo.openstreetmap.org/tags/demolished=yes ).
Is it enough to remove support for this tag?

Is it enough to remove support for this tag?

iD doesn't have a field encouraging people to use the tag.  We just render ephemeral features with a dashed line.  This isn't "support".

So, is it enough to remove this special rendering for demolished=yes? Or is it necessary to reduce its usage further before doing that?

This isn't "support".

I would consider using tag for rendering as support (as it suggests to user that using it makes sense), but it is not really important.

So, is it enough to remove this special rendering for demolished=yes? Or is it necessary to reduce its usage further before doing that?

iD can't currently do special rendering (or any kind of support, however you want to define it) for the prefix-style lifecycle tags, so I don't think it matters right now.
In case you're curious, these are the status tags iD will recognize and render with an ephemeral style:
https://github.com/openstreetmap/iD/blob/d6eb1b3f3759c2690fdac220f9592226dd8b5527/modules/svg/tag_classes.js#L11-L14
You can look through the rest of the file to see how this array is used, but basically iD tries to understand all the various creative combinations of the legacy tagging:

railway=abandoned
railway=rail + abandoned=yes
railway=rail + abandoned=railway
abandoned=railway
highway=path + abandoned=railway   (the abandoned railway tag is ignored here)

So it's not like we have special handling for demolished=yes - more like a bunch of clever code that just tries to handle all the legacy lifecycle tags and it does a pretty good job.  Removing demolished from that array is not going to make iD better.

Removing demolished from that array is not going to make iD better.

By rendering demolished=yes with ephemeral style it suggests that this tag is something that makes sense. I think that it is misleading to user.
It would make sense if demolished=yes was popular, but currently it is both horrible tag idea and with low popularity.
But I understand that iD may have different priorities/philosophy about how important is to discourage usage of poor tagging schemes (that is why I asked here rather than start from writing PR).

But I understand that iD may have different priorities/philosophy about how important is to discourage usage of poor tagging schemes (that is why I asked here rather than start from writing PR).

Yes, please don't send a PR.   I'm not sure that you even read what I wrote above.


Add option to parse also plain-text emails without “markup=markdown"

Since almost no email client supports appending markup=markdown to Content-Type, I think it should be possible to let users choose if they want to pass to this extensions also basic text/plain emails.

That's a good idea. I'll look at adding that option.
This extension works well for my narrow use case (reading newsgroup posts from the DLang newsgroup which are sent with markup=markdown) so I hadn't considered turning it on for all text/plain messages. It makes good sense to have that option, though.

Published version 1.1.0 with the new option. It also now defaults to applying to all text/plain messages.


Homebrew formula: tools/clang/scripts/update.py is missing

I'm seeing the following error:
build/gyp_pdfium

Updating projects from gyp files...
/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file '../tools/clang/scripts/update.py': [Errno 2] No such file or directory
gyp: Call to 'python ../tools/clang/scripts/update.py --print-revision' returned exit status 2 while in /private/tmp/pdfium20151228-46857-htvxjl/build/all.gyp.

I'm not sure how to get tools/clang/scripts/update.py. Googling didn't turn up any clear fix.

It's missing because a simple git clone of https://pdfium.googlesource.com/pdfium (as in the formula) won't download any files to tools/clang. If you get the depot_tools and run:
mkdir repo
cd repo
gclient config --unmanaged https://pdfium.googlesource.com/pdfium.git
gclient sync
cd pdfium

Then tools/clang/scripts/update.py is written.

See https://github.com/knowtheory/homebrew/pull/1

Thanks @jpmckinney!  I've got an automated test build in mind for this, but haven't had time to get anything implemented yet :\
PDFium very much follows the chromium model of development, so they seem to happily rearrange all manner of things in the repo (dependencies, build output layout, internal organization, etc).
It's kind of a bummer because installing the depot tools requires changes to one's env, which is why i've decomposed the deps at a particular point.


chore: compatibility matrix in README

As in title

Let's not add unnecessary work for ourselves in maintaining it.


feat(store/configure-store): Use transit to serialize immutable session

Description
ImmutableJS's Iterable.prototype.toJS and Immutable.fromJS aren't reliable for serializing and deserializing data structures. For example:
const shouldBeASet = Immutable.fromJS(Immutable.Set.of(1,2,3,4).toJS());
Immutable.Set.isSet(shouldBeASet); // false

transit-immutable-js supports serializing objects that are a mix of Immutable and vanilla objects.

@SethDavenport, please review. :) I'll be happy to submit a similar PR to the typescript react redux starter if there aren't too many problems with this PR.

I'm not sure why this is needed - we shouldn't be from-js-ing immutable stuff anyway?

My understanding is the following:
All the data relevant to the currently logged in user is stored in state.get('session'). The session is then synchronized to localStorage via redux-localstorage. To accomplish this, we need to specify the session serialization and deserialization algorithm. This is the code responsible for the task:
function _getStorageConfig() {
  return {
    key: 'react-redux-seed',
    serialize: (store) => {
      return store && store.session ?
        JSON.stringify(store.session.toJS()) : store;
    },
    deserialize: (state) => ({
      session: state ? fromJS(JSON.parse(state)) : fromJS({}),
    }),
  };
}

To serialize, we transform the Immutable session into a vanilla javascript object, then JSON.stringify it. This transformation isn't really reversible.
Reasons behind this PR:
The application's session could maintain a Set or other immutable data-structure that doesn't cleanly translate to JS and then back. In those cases, it would be super weird if I close the browser, open it up again, only to find that the page doesn't look exactly the same because of some weird serialization and deserialization error. That's the only reason why I suggested this change.
My reservations about this PR:

This shouldn't really matter if the session is simply a map of primitive to primitive key value pairs. I don't know if it's good to assume that'll always be the case. If so, then there's no need for the changes in this PR.
We're adding two other dependencies to an already long list in this project.

Sorry, I hope I cleared things up.


Allow setting a message_format when sending a private message to a user.

Any comments guys?

Looks good, merged


Access To Call Arguments When Using response_model

Description

Originally inspired by https://github.com/Mirascope/mirascope/issues/493

Sometimes you'll need access to call arguments in order to properly validate the output. For example, consider outputting a list of classified labels and wanting to ensure that the output has the exact number of labels as the number of inputs:
class Emotions(BaseModel):
    emotions: list[str]

@openai.call(... same as before ..., response_model=Emotions)
@prompt_template(... same as before ...)
def classify_emotions(sentences: list[str]): ...

def get_emotions(sentences: list[str]) -> Emotions:
    emotions = classify_emotions(sentences)
    if len(sentences) != len(emotions):
        # handle mismatch
    return emotions

It would be far more convenience if the BaseModel instance itself could access the original call arguments needed for validation. For example, something like:
class Emotions(BaseModel):
    sentences: Annotated[list[str], FromCallArgs()]
    emotions: list[str]

    @model_validator(mode="after")
    def validate_output_length(self) -> Self:
        if len(self.sentences) != len(self.emotions):
            raise ValueError("length mismatch...")
        return self

@openai.call(... same as before ..., response_model=Emotions)
@prompt_template(... same as before ...)
def classify_emotions(sentences: list[str]): ...

Released in v1.4!


Add support for IPv6 transparent mode on Windows

This fixes #3080.
@spozdnyakov @Jazzelhawk: You both seem to be on Windows as well - could you please verify that this fixes all your issues? 😃

Thanks!
How do you determine that you're actually using IPv6? That's definitely an IPv4 request going through the proxy. Those previously also failed due to the IPv6 refactorings.

After leaving the proxy on for a short while I start getting errors like this:

Some other app on your computer talking something else than HTTP to some other machine. We need some more consistency with the Linux/macOS transparent modes here, I'll restrict it to ports 80/443 by default.

Huh, interesting. What's the IPv6 address? Are you sure you're seeing GET http://<IP_ADDRESS>:8081/ for IPv6 requests to that machine?

The web server machine's address is fe80::99ce:2cc9:fde0:f2aa. My machine's address is fe80::3449:43e0:e7ff:b434%12. I am running this as a IPv6 compatible web server and see logs such this on the web server machine:
fe80::3449:43e0:e7ff:b434%enp1s0 - - [28/May/2018 19:09:03] "GET / HTTP/1.1" 200 -

This is very helpful feedback, thanks! Does 8ebcf8e solve these problems?

It fixed the address resolution but I'm now getting this error:
fe80::3449:43e0:e7ff:b434%17:53142: clientconnect
fe80::3449:43e0:e7ff:b434%17:53142: GET http://fe80::99ce:2cc9:fde0:f2aa:8081/
 << Server connection to ('fe80::99ce:2cc9:fde0:f2aa', 8081) failed: Error connecting to "fe80::99ce:2cc9:fde0:f2aa": [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
fe80::3449:43e0:e7ff:b434%17:53142: clientdisconnect

The web server does work correctly as it properly responds when not using the proxy.

Huh, that's interesting.

Can you access ipv6.cybernode.com with transparent mode turned on?
Do you see any indication why we are timing out in Wireshark?
Can you access the server if you insert an addr[0] = addr[0] + "%17" between these two lines?(assuming %17 is the correct scope) https://github.com/mhils/mitmproxy/blob/8ebcf8ec9647842bfd48e9c890109d2399621a4d/mitmproxy/platform/windows.py#L68-L69

Thanks for the help! My local IPv6 test setup works flawlessly, it's super helpful to catch errors in other configurations upfront.

Unfortunately I don't have access to IPv6 internet
Here is a zip file containing capture files for with and without the proxy and also what the server sees when the proxy is in use. I feel you are probably more capable to interpret these than I am.
Reinserting the scope ID didn't make a change.

Thanks - those PCAPs are really almost identical. Are you using real machines here, or are we talking about something virtualized (VirtualBox/...)? Any changes if you set recalculate_checksum to True in line 341?

I'm using separate real machines, but changing the recalculate_checksum to True fixed it!

This makes no sense, but I take it. Thanks a bunch! 🍰

I would also suggest a way of changing the default filter when using mitmdump if different ports are required to not be restricted. I might be wrong but I don't see a way of doing this at the moment?

You can run python3 -m mitmproxy.platform.windows --help standalone next to mitmproxy and mitmproxy should use that redirector instance. You can then specify a custom filter there. I totally agree that we need to do better here, but that needs to go in hand with changes for Linux and OSX. Ideally we'd just enable --raw-tcp by default at some point (that requires UI support) and then listen on any ports.


Type cannot be determined when using 'if a not in b' in list construction

[x] I have tried using the latest released version of Numba
[x] I have included below a minimal working reproducer

In trying to make a replacement for numpy's setxor1d I came across the following error (minimal example below):
@nb.njit()
def test():
    included = np.array([1, 2, 6, 8])
    not_included = [i for i in range(10) if i not in list(included)]
    return not_included

Which results in:
Type of variable '$18compare_op.7.7054' cannot be determined, operation: unary(fn=<built-in function not_>, value=$18compare_op.7.7054), location: <ipython-input-138-e85438f982c0> (4)
Which does not occur when the 'not' statement (in if i not in list(included)]) is not there
I could get around this by instead doing:
@nb.njit()
def test():
    included = np.array([1, 2, 6, 8])
    not_included = [i for i in range(10) if (i in list(included)) is False]
    return not_included

Which is not very pretty.

@LucIJspeert thanks for reporting this! I can reproduce it. It seems like the not doesn't work properly in the list comprehension context.


Memory error

I tried to run the executable on my Mac Book Pro with 317.46 GB available.  Managed to get a memory error.
Just speculating if this might be the result of an infinite loop.  Otherwise, there was a ton of syntax errors, as if everything were just slightly off.  See error log attached.
mysql2sqlite_err.log

There might be multiple reasons. Could you please ensure the dump you're converting was made either with mysqldump --skip-extended-insert --compact or mysqldump --no-data?
If so, could you please post output of head -n 200 dump.sql; ./mysql2sqlite dump.sql | head -n 200?
If there is some sensitive information in plain text (i.e. non-encoded & non-encrypted), just add something like | sed -E 's|[0-9a-zA-Z]|x|g' (this one doesn't account for non-ASCII characters).

Btw. this script works in a fully streaming fashion so it's independent from the DB size - it should use at most few MBytes (maybe few tenths of MBytes if used at POSIX limits on a modern 64bit machine). Terabytes of data should be piece of cake even on embedded devices with just few MBytes of RAM and no computational power.


Enhancment idea: Add Widgets

I have been looking for an android widget that displays cadence that I can float over another app (using the Overlays app). If I had the skill/talent and time I'd try to figure this out myself and create my own fork. But unfortunately I have zero coding experience.

Thanks. I'll add it to enhancement list so maybe in the setup users can select whether to display connected ANT+ sensor readouts as a floating view.


Support Nuxt

Describe your changes

Fixes Issue

Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[ ] I have updated the documentation accordingly.
[x] All new and existing tests passed.

@melloware don't you think so we should upgrade java 11 to 17 for this project if this is , would you like to share process?

Let me ask on the mailing list whether any other extensions are moving to 17.

"Except if you have a very strong reason to use 17, we recommend using 11 as long as Quarkus itself supports 11. "

@melloware You know migration is like migrain which we have to do according to time and we also want our project use letest tech stack right I don't think JDK 11 going to support for long time.
@ia3andy WDYT?


HTO returning no zero-count cells?

Hello,
I dont think this is a CITE-seq-count bug per se, but I thought I'd post this in case you have any relevant experience or debugging thoughts.  I have a cell hashing library in with 4 HTOs.  When I run CITE_seq count, 3/4 have a 'normal' distribution of counts.  One of these has at least 1 count in every single cell, with the max counts much higher than the others.  We had to do a lot of PCR to get this HTO library to work, and there are technical reasons why this is probably just bad input.  However, I'd like to see if there are technical solutions (for example, barcode swapping tools), or other QC that I might be able to use to see if reads are being miscalled.  Have you ever experienced problem libraries like this and do you have suggestions?
Note: I'm going to try iterations modifying editDistance and potentially the UMI collapsing params.  I do not see options to make cite-seq-count export any kind of summary or debugging information, but this might be useful if possible.
Thanks,
Ben

Hello @bbimber,
CSC does not have such a feature for now but you are the second person to request something similar so maybe this will see the light of day. Although, development is slow, so I can't promise you something in a timely manner. If you have some free bandwidth and want to take a crack at it, any help is welcome.

I'm currently working on the swith_mod branch to help our another user. I'm swapping the tag and the UMI string in the results dict. Maybe this could help debug your problem.


Packer Azure  Security Principal Certificate is in a different format that Terraform

I am working on the automation of images and Packer does not allow fo rthe security principle in the same pfx format the terraform does.  This should be consistent between products to reduce complexity.
The Terraform certificate is a pasword protected PKCS#12 (PFX) format, where Packer wants an unpassword protected public and private key.  Packer should adopt the terraform certificate format for consistency.

created in wrong repo, recreated as https://github.com/hashicorp/packer/issues/9886


Feature/sar 268 folder organization

Related Tickets

SAR-268

How Things Worked (or Didn't) Before This PR
This is a "works better, but still room for improvement" refactor.
Before, we were processing all the measurements at once in a somewhat static way, and we were manually building value sets codes. After discussion with Mike, we'd rather each instance of saraswati-cql-execution execute just one measure, in a dynamic way.
Before you ask, yes, I attempted the cql-exec-vsac library. It didn't seem to allow accessing any file other than the valueset-db.json it caches from contact with VSAC. And even when I tried that, the value sets NCQA gave us seem to want to reference their own URIs, which doesn't seem to work. If anyone sees that I did it wrong, feel free to weigh in and I'll fix it. For now, you simply point an environmental variable at value sets and it will compile the codes for you, just as code-generator.js does.
To Test

Choose a measure you want to cover. Put it in /private. For example, drop the contents of the CISE_HEDIS_MY2022-1.0.0 folder from ncqa-cql into /private. You no longer have to run code-generator.js.
Update the four new environmental variables as follows:

MEASUREMENT_FILE: The actual measurement file you want to run. For example, MEASUREMENT_FILE=private\CISE_HEDIS_MY2022-1.0.0\elm\CISE_HEDIS_MY2022-1.0.0.json
LIBRARIES_DIRECTORY: The directory of the required libraries for the MEASUREMENT_FILE. For example, LIBRARIES_DIRECTORY=private\CISE_HEDIS_MY2022-1.0.0\libraryElm\
VALUESETS_DIRECTORY: The directory of the required value sets for the MEASUREMENT_FILE. For example, VALUESETS_DIRECTORY=private\CISE_HEDIS_MY2022-1.0.0\valuesets\
MEASUREMENT_DEV_DATA: Only for development purposes. This is the folder you want to watch with processor.js. For example data\patients\immunization.

Start the receiver with node receiver.js.
Run the process with yarn localread. Ensure you get back logging statements confirming you found the measurement file, and counts of the libraries and value sets, like so.

Change something in the MEASUREMENT_DEV_DATA folder and confirm you see processing.
Do all this again, integrated in Kafka with yarn start to confirm that kafka-processor.js works.

Readiness

[ ] This PR passes all automated tests.
[ ] This PR has no linting errors.
[ ] This PR's changes to configuration files have been documented in all appropriate places (such as but not limited to README.md), if applicable.

Unit tests are coming next sprint to improve our code coverage. Stay tuned...

@anthem123 @eawest2 updated instructions for testing to start node receiver.js too.


Templates

Section in the Docs that explains the template structure and how to adapt an existing bootstrap or html template to work with almost.

[ ] Introduction

[ ] template structure


Mock Library not working

Bug report
Summary
Using the provided mock results in a crash
How I'm Mocking
import mock from "react-native-permissions/mock"
jest.mock("react-native-permissions", () => {
  return mock
})

Environment info
react-native info output:
System:
    OS: macOS 11.4
    CPU: (12) x64 Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
    Memory: 439.87 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 15.8.0 - /usr/local/bin/node
    Yarn: Not Found
    npm: 7.5.4 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.10.1 - /Users/anthonydreessen/.rbenv/shims/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.1 AI-201.87<IP_ADDRESS>53283
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: javac 14 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: ^17.0.1 => 17.0.1
    react-native: ^0.64.0 => 0.64.1
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version: ^3.0.4
Steps to reproduce

Try to run the tests after downloading the project and running npm i

Describe what you expected to happen:

I am able to run the tests using the provided mock

Reproducible sample code
https://github.com/Pinwheeler/PermissionsError

@Pinwheeler Hello. I tried the reproducible code, it does not crash, but output a very clear and detailled Jest error:

If you follow the instructions and search a bit, you find this page in the Jest documentation, about how testing TN apps: https://jestjs.io/docs/tutorial-react-native#transformignorepatterns-customization
const transformIgnoreModules = [
  '@react-native/polyfills',
  'react-native',
  'react-native-permissions',
];

module.exports = {
  projects: [
    {
      name: 'react',
      preset: 'react-native',
      setupFilesAfterEnv: ['<rootDir>/mockPermissions.js'],
      transformIgnorePatterns: [
        `node_modules/(?!(${transformIgnoreModules.join('|')})/)`,
      ],
    },
  ],
};

mock react-native-permissions in jest.setup.js file as shown below
jest.mock('react-native-permissions', () =>
  require('react-native-permissions/mock'),
);

  SyntaxError: Unexpected token 'export'

      44 |
      45 | jest.mock('react-native-permissions', () =>
    > 46 |   require('react-native-permissions/mock'),
         |   ^
      47 | );
      48 |
      ```

With require this is what I'm getting


Lunar isnt launching

i deleted lunar client, downloaded this one, installed it thought this launcher, clicked launch and nothing happens

Was a mistake ,sorry

https://user-images.githubusercontent.com/77575770/145672350-72de6ce2-1cfb-4d68-9284-517c45eb4526.mp4
Video please watch i think its the newest lunar updates . https://github.com/Aetopia/LCLPy also stopped working after the latest updates which added snaplook , hypixel quickplay and others

LC Portable uses it own Lunar Client Installation, ever tried to click on Install/Update?

LC Portable uses it own Lunar Client Installation, ever tried to click on Install/Update?

I did , i downloaded it, clicked the install/update button, opened cmd and did a bunch of stuff, then powershell opened, and it closed and i got a message box saying successfully installed or something and i clicked launch and nothing happens

why the heck is your memory at 72 percent?

why the heck is your memory at 72 percent?

I have a trash pc lmao
can you help me fix my issue lol

Please help

lunar jar files aren't even downloaded my friend.....

lunar jar files aren't even downloaded my friend.....

i told you, i deleted the default lunar launcher and every file of lunar using (clean uninstall) and then i downloaded this one, clicked install / update, did a lot of stuff and i clicked launch and nothing happens whyy


Dead snake still has animated tongue

Description
Dead snake still has animated tongue. Duh!

The death state results in the death animation looping infinitely which, yeah, doesn't look good.
Someone could create a death sprite that is static as a quck fix. I could possibly work something cruddy up that would be serviceable. I'm thinking just giving the snake "X"s for eyes. But the commenting talking about differentiating between dying and dead seems like it would be the ideal outcome. Then we could have death animations. (I'm assuming that hasn't been implemented yet as I'm just starting to familiarize myself with the codebase.)


TODO

Some items to get the full fruition from this monorepo:

[x] Install gitea as primary scm with issues/project management - https://docs.gitea.com/installation/install-on-kubernetes

[x] Authelia and traefik config

[ ] Push mirror with github - https://docs.gitea.com/usage/repo-mirror
[ ] Setup docs site + update deploy docs
[ ] Test out some gitea actions

Now, the primary monorepo should be setup and we have a project management process to follow. Next steps:

[ ] Setup libvirtd terraform
[ ] Install opnsense (with backup)
[ ] Setup opnsense (with ansible)

Copied into gitea


Key Binding for Activating the Help Menu

On macOS, it's fairly standard  for '⌘ + ⇧ + /'   (cmd + shift + backslash) to activate the menu bar help search menu, where the user can quickly search the available menu item actions for a given application.
This does not appear to be the default key binding in VSCode and I was having trouble finding an equivalent action in the Keyboard Shortcuts panel to map this shortcut to.
Does this functionality exist already and if not, would it be possible to support it?
Thanks,
- Charlton

I am able to use the "view help menu" shortcut successfully within VSCode, though mine is rebound to "Opt+Space."
Also, as far as I know, the Command Palette (Cmd+Shift+P) fully duplicates the functionality of the Mac help menu, and more.  You open it, type, and see a list of all matching commands, which you can then execute by pressing Return.
If the Help menu can do something not available in the Command Palette, maybe that could be a feature request, so that all commands are accessible from one place.

Thanks for your response @ultraGentle

I search for 'view help menu' in the keyboard shortcuts menu and I'm not seeing it.
Im on 1.40.2

I am able to focus the help menu within macOS using Cmd+Shift+/. It is not a keybinding within VS Code but an OS level shortcut I believe.

@sbatten interesting, even with that key shortcut disabled for all commands in VSCode, in never invokes the help menu for me.  It works fine with most other applications.
Does Electron expose NSMenu or NSMenuItem at all? It should be trivial to wire up if so...

@cprovatas hmm tried on catalina and am seeing the same issue.
@deepak1556 i tried with electron fiddle and can reproduce this issue on multiple versions of electron.

⌘ + ⇧ + / works fine for the Brave-Browser

Seems related to #68604

Merging to https://github.com/microsoft/vscode/issues/68604


Support SSL client certificate authentication

Hi,
I would love to see the possibility of having an option to enable SSL client verification.
In nginx this would be:
    ssl_client_certificate /etc/secrets/client.crt;
    ssl_verify_client on;

I volunteer to write a pull-request for this, if needed and wanted.

@bluecmd For the time being, you might be able to "enhance" the config, using my proposed PR #7 enabling additonal config to be passed to nginx.

Christian's suggestion (which was just merged) seems like it would be a good solution here. Would it work for you, @bluecmd?

Yea, I think t hat would work. Thanks!


Very Slow when running code

Running Judge0/ide on local and webhost and it's very slow to run the code, am I missing something?

Hey @malcolmjr96,
I have restarted Judge0 API. Can you please try again?
Can you also describe your local setup?

Yes, I will when I get home!
But for my local setups I’m using xampp and created a directory where I uploaded IDE files. Site works great but won’t run any code.

Can you give me screenshot of your web console after you click "Run" in IDE?

Yes of course, I’ll send it to you when I get homeb!

This seems to be fixed sorry for the delay!


Text display error, character encoding Latin-1?

Looks like the static site is being interpreted as Latin-1 instead of UTF-8? Can't figure out why, since both input and output have <meta charset="UTF-8">
Input/Expected Output: ä  ö  ü
WP2Static Output : Ã¤ Ã¶ Ã¼
2020-08-08 09:36:32 PHP VERSION 7.3.20 OS VERSION SunOS localhost 5.10 Generic_150401-49 i86pc WP VERSION 5.4.2 WP URL http://admin.mypasswordprotectedsite.de WP SITEURL http://admin.mypasswordprotectedsite.de WP HOME http://admin.mypasswordprotectedsite.de WP ADDRESS http://admin.mypasswordprotectedsite.de PLUGIN VERSION 6.6.7 VIA WP-CLI?  STATIC EXPORT URL http://neu.mypasswordprotectedsite.de/ PERMALINK STRUCTURE /%postname%/ SERVER SOFTWARE Apache/2.4.43 (Unix) Active plugins: astra-sites/astra-sites.php elementor/elementor.php header-footer-elementor/header-footer-elementor.php static-html-output-plugin/wp2static.php Plugin options: additionalUrls:  allowOfflineUsage:  baseHREF:  baseUrl: http://neu.mypasswordprotectedsite.de baseUrl-bitbucket:  baseUrl-bunnycdn:  baseUrl-folder: http://neu.mypasswordprotectedsite.de baseUrl-ftp:  baseUrl-github:  baseUrl-gitlab:  baseUrl-netlify:  baseUrl-s3:  baseUrl-zip:  baseUrl-zip:  basicAuthPassword: ******************* basicAuthUser: obberg-admin bbBranch:  bbPath:  bbRepo:  bbToken: ******************* bunnycdnStorageZoneAccessKey: ******************* bunnycdnPullZoneAccessKey: ******************* bunnycdnPullZoneID:  bunnycdnStorageZoneName:  bunnycdnRemotePath:  cfDistributionId:  completionEmail:  crawl_delay: 0 crawl_increment: 1 crawlPort:  debug_mode: 1 detection_level: posts_and_pages delayBetweenAPICalls: 0 deployBatchSize: 1 excludeURLs:  ftpPassword: ******************* ftpRemotePath:  ftpServer:  ftpPort:  ftpTLS:  ftpUsername:  ghBranch:  ghCommitMessage:  ghPath:  ghRepo:  ghToken: ******************* glBranch:  glPath:  glProject:  glToken: ******************* netlifyHeaders:  netlifyPersonalAccessToken: ******************* netlifyRedirects:  netlifySiteID:  removeConditionalHeadComments:  removeHTMLComments: 1 removeWPLinks:  removeWPMeta:

You can try this updated build (note plugin name has changed): https://github.com/WP2Static/static-html-output-plugin/files/4822705/static-html-output-plugin-6.6.21.zip
But likely will suffer same issue. It has to do with how the plugin generates a modified HTML DOM. If you're input site's code isn't UTF-8 and with right collation in database, can get this kind of issue. Sometimes, your DB and site settings are fine, but someone may have copy pasted some code from another source and it came in as wrong encoding.
The new WP2Static project doesn't write its own DOM, so you could try that if no luck here:
https://github.com/WP2Static/wp2static

PS. Cool that you're running Solaris?


Robot relocation bug

Hi, I've been testing the simulator a lot lately and I've noticed a problem with the relocation of robots. A lot of times when the supervisor relocates a robot, it ends up flipped upside down (or to the side, in the worst case).
To show what I'm talking about I recorded a short video. These are all instances of robots being flipped (and a few close calls) during just one match:
https://youtu.be/4vt4nLYVCsI

Webots version: r2022a
OS: macOs Mojave version 10.14.6
Simulator: Latest (2278b6d48b612231d27884aa013389be6c5a84c9)

I'll see if I can test in a windows computer and I'll let you know if the problem occurs there as well.

Hello @RichoM, thanks for reporting the problem.
The code responsible for moving the object is located here
tr_field = self.robot_translation_fields[robot_name]
tr_field.setSFVec3f(position)
self.robot_nodes[robot_name].resetPhysics()

It might be possible that the robot is running at high speed while being relocated. Since I'm not able to reproduce the problem so often, could you please change the order of these two lines in supervisor's code and test it? Thanks!
tr_field.setSFVec3f(position)
self.robot_nodes[robot_name].resetPhysics()

Thanks for the quick response. I tested your proposed fix but it didn’t seem to have any effect.
I think you’re right in that it could be related to the robot speeds so I tried to change the team code to detect lack of progress and stop the motors a few moments before being relocated. That seemed to help a little but not as much as I hoped.
To help reproduce the problem more easily I made the following team controller:
from controller import Robot

TIME_STEP = 32

robot = Robot()

left_motor = robot.getDevice("left wheel motor")
right_motor = robot.getDevice("right wheel motor")

left_motor.setPosition(float('+inf'))
right_motor.setPosition(float('+inf'))

while robot.step(TIME_STEP) != -1:
    left_motor.setVelocity(10.0)
    right_motor.setVelocity(10.0)

With the code above running for both teams I can reproduce the bug in almost 100% of relocations (at least on my computer).

I've been doing some more testing and I think the problem is related to this issue: https://github.com/cyberbotics/webots/issues/2899
So I added a similar workaround for the robots and it seems to help a lot (see https://github.com/GIRA/rcj-soccer-sim/commit/5904d008e20035dc7e92f63cd1c35353e235a970). It still happens ocassionally but it's much less frequently than before.
If you want I can make a pull request with this commit.

Thanks, I tested your example controller and robots indeed flip over quite often. When I decreased the velocity to just 5, it does not happen, but I can see robots being "shaked" (almost flipped over). I'll ask cyberbotics guys whether this could be related to the issue you linked.

@RichoM Could you please try to set OBJECT_DEPTH to 0.0375 according to this comment https://github.com/cyberbotics/webots/issues/2899#issuecomment-1106612329 ?

I tried setting OBJECT_DEPTH to 0.0375 and it didn't work, the robots keep falling.
I also tested with a bunch of different values just to be sure, none of them worked either.
OBJECT_DEPTH = 0.042
#OBJECT_DEPTH = 0.0375
#OBJECT_DEPTH = 0.0373044
#OBJECT_DEPTH = 0.0375232
#OBJECT_DEPTH = 0.0
#OBJECT_DEPTH = 0.021
#OBJECT_DEPTH = 0.0315
#OBJECT_DEPTH = 0.03675
#OBJECT_DEPTH = 0.05
#OBJECT_DEPTH = 0.1
#OBJECT_DEPTH = 0.027
#OBJECT_DEPTH = 0.03817
#OBJECT_DEPTH = 0.075

@RichoM Thanks. There's one more comment https://github.com/cyberbotics/webots/issues/2899#issuecomment-1108128674 to  test the object depth with nightly build / source build. Could you please give it a try?

I've just tested the nightly build with OBJECT_DEPTH = 0.0375 and it definitely works better. However, something else seems to be broken.
I've recorded a new short video. Look at the two blue robots pushing each other inside the yellow goal. The one that gets flipped over is not the one that is relocated.
https://user-images.githubusercontent.com/1226503/165183378-6c45bda1-4f4b-4737-9643-424588da2656.mov

@RichoM Thanks. I watched it and I think the problem is that when the robot B3 is being relocated (the one deeper inside the yellow goal), the collision detection might not be completely turned off for this robot and it pushes the other robot resulting in flipover.

Yes, I just confirmed that the same happens using the latest webots release after I applied the resetPhysics() workaround to the supervisor. I think I never noticed it before because having two robots pushing against the wall at max speed like that is not a very realistic test.
What do you think we should do with the relocation bug? Wait for the next webots version or should we apply the workaround and have it fixed now?
I've been testing extensively with more realistic controllers and since I added the workaround I never saw a robot being flipped over because of a relocation.

@RichoM Let's apply the workaround. Could you please create a pull request?

@Najmehsarfi It's in consts.py in referee's code.


doc: fix v2 admonitions syntax being replaced in migration guide

First, congrats on the release of Docusaurus 3 :partying_face:

Pre-flight checklist

[x] I have read the Contributing Guidelines on pull requests.
[ ] If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
[ ] If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation
Because docusaurus.io itself uses mdx1Compat.admonitions equal to true, :::note Your Title is replaced by :::note[Your Title], which renders the migration guide difficult to understand (both syntax looks identical):

Replacing the regular space that is between :::note and Your Title by a non-breaking space prevents this replacement:

Test Plan

N/A
Test links

Compare the original page: https://docusaurus.io/docs/migration/v3#admonitions-option
with the page fixed: https://deploy-preview-9574--docusaurus-2.netlify.app/docs/migration/v3/#admonitions-option
Related issues/PRs

N/A

Hmmm. This somehow feels like a bug. We should not be replacing anything inside code blocks or inline code.

Thanks 👍

Hmmm. This somehow feels like a bug. We should not be replacing anything inside code blocks or inline code.

Kind of agree but considering it's a temporary compat option, enabled by default, I didn't want to solve those unlikely use-cases considering the possible perf impact it could have for all the existing sites. Over time I'd like to get rid of all the content.split("\n") logic we have already.


Web throw PlatformException after connected.

Same issue for me also,  Havent found a fix yet.

Same issue for me too.

The "Connection not authorized within timeout" is because you enabled "enable authorized connections" in your Pusher dashboard, but your app isn't subscribing to a private channel. If you subscribe to a private channel, does this error still appear?

I believe you can prevent this error by removing the onError callback in the Pusher Init function. It appears this also unintentionally invokes native Dart error handling - removing the callback prevents this from occurring.


Make a clear distinction between biographical and bibliographical catalogues

... in the frontend? With a little pill/tag or something?


Round coordinates and calculated floating-point values to sensible precisions

Coverage decreased (-0.5%) to 93.318% when pulling 4d72ddd6e3908258fabc3a797208017bf2ca1cf8 on round into 5c267dcd0dc294232d6b526bd14b2d5e034ae9ee on master.

Coverage decreased (-0.5%) to 93.318% when pulling 4d72ddd6e3908258fabc3a797208017bf2ca1cf8 on round into 5c267dcd0dc294232d6b526bd14b2d5e034ae9ee on master.

Coverage decreased (-0.5%) to 93.318% when pulling 4d72ddd6e3908258fabc3a797208017bf2ca1cf8 on round into 5c267dcd0dc294232d6b526bd14b2d5e034ae9ee on master.


not sure if the code is using 4 nodes each having 4 GPUs?

so I requested for 4 nodes and 4 GPUs each, and also made that cluster myself in compute. When my cluster is being used, it shows there is only 1 active run but 4 busy node. I am using DistributedDataParallel in PyTorch for a computer vision-based deep learning code.
Could you explain why I don't have 4 active runs and instead I have 4 busy node? What is wrong and how it could be fixed?
jobs:
  train:
    type: command
    component: file:train.yaml
    # compute: azureml:gpu-cluster
    compute: azureml:mona-gpu-cluster
    # compute: azureml:single-node-cluster
    resources:
      instance_count: 4    # number of nodes
      # instance_count: 1  # set to 1 for testing purposes
    distribution:
      type: pytorch
      process_count_per_instance: 4 # number of gpus
      # process_count_per_instance: 1 # set to 1 for testing purposes

this is from pipeline.yaml that I am using based off mlops-templates

on that end, if I have 4 GPUs per node should I set process_count_per_instance: 4 # number of gpus or should I set it to 16?

could you please help with this?
4 busy nodes and 1 active run does it mean that it is using all the 4 nodes?


Release 1.3.0 version

Summary:

Add callbacks for registered/unregistered, bring back update hub
Add wrappers for PUT/POST/Notification callbacks
Bring back memory_tests.cpp so it compiles with HEAP_STATS enabled
Use m2m::String instead of std::string
Allow overwriting default firmware path
Remove app shield references from update_ui
Update to Mbed Cloud Client public release 1.3.0

@janjongboom can you have a look?
https://github.com/ARMmbed/simple-mbed-cloud-client/blob/2896e7fa8a29518b121e5a7580f8327f2699c2c7/simple-mbed-cloud-client.cpp#L271
https://github.com/ARMmbed/simple-mbed-cloud-client/blob/2896e7fa8a29518b121e5a7580f8327f2699c2c7/simple-mbed-cloud-client.cpp#L274

I've added basic intro and how to use it.
Pending to clean up TODO before releasing.

@MarceloSalazar I've added a guard against calling register_and_connect multiple times. Not really sure how to clean up the rest, @bridadan wrote it and it seems to work.


Add function for creating errors

Hi! Thanks for the PR.
I like the idea of having an enum of error codes and an easy way to create errors in the BrightFutures error domain.
I have been thinking about the error reporting/creation too and I'm thinking that we should make the dependency on NSError less explicit, since it is very obj-c'y and might not be used at all in pure Swift code. A solution would be to parametrize Result with the error type, like LLamaKit also has done: https://github.com/LlamaKit/LlamaKit/releases/tag/v0.5.0.
What do you think about that and do you think it affects the current PR?

Hi, Thomvis.
Sorry for such a delay.
I think If you want to remove NSError as dependency, you'll have to remove BrightFuture's errors as well. (Because it will be generic, and you cannot use concrete type)
Or constrain Result's Error type parameter to some protocol. For example:
protocol ErrorProtocol {
    var code: Int
    var description: String
}

enum Result<A, E: ErrorProtocol> {
    case Success(A);

I'm not going to remove the dependency on NSError for now and this PR is a good improvement anyway. I'll merge it in. Thanks!


Create MLJ compliant doc strings

[x] Some items flagged "TODO", waiting on clarification at #136.

@tlienart
Note to self: We should probably add MLJTestInterface tests before tagging next release.

Codecov Report

Merging #138 (1b31342) into dev (30f7a30) will increase coverage by 0.65%.
The diff coverage is 0.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@            Coverage Diff             @@
##              dev     #138      +/-   ##
==========================================
+ Coverage   94.62%   95.28%   +0.65%
==========================================
  Files          20       21       +1
  Lines         875      869       -6
==========================================
  Hits          828      828
+ Misses         47       41       -6

Impacted Files
Coverage Δ

src/mlj/classifiers.jl
100.00% <ø> (+50.00%)
:arrow_up:

src/mlj/doc_tools.jl
0.00% <0.00%> (ø)

src/mlj/interface.jl
85.45% <0.00%> (+4.42%)
:arrow_up:

src/mlj/regressors.jl
12.50% <ø> (+5.83%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Thanks for all the help, @tlienart. This PR is now ready for review. Please pay particular attention to the solver field documentation.
One remaining point of confusion for me is this: I'm interpreting the existing docs and what your have helped with as "ISTA and FISTA are disallowed if gamma = 0" but I think you only mean to say these are the only options when gamma > 0 (because we need a non-smooth solver in that case) - and not that it can't still be used when gamma = 0 as well (although better options exist in that case). So, in this PR, I've said (F)ISTA solvers are allowed for any model.

Just going to check #140 to be sure.

Before the patch we should address #141


neo-quertz Layout not working in X11 applications in wslg

Windows build number:
10.0.19042.2728
Your Distribution version:
20.04
Your WSL versions:
WSL-Version: <IP_ADDRESS>
Kernelversion: <IP_ADDRESS>
WSLg-Version: 1.0.49
MSRDC-Version: 1.2.3770
Direct3D-Version: 1.608.2-61064218
DXCore-Version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows Version: 10.0.19042.2728
Steps to reproduce:

Install reneo in windows and activate the neo_quertz Keyboard Layout
Start a wslg Application e.g. gedit
Try to create e.g. a Square Bracket bei pressing CAPS-LOCK + e

Result is that NO character is displayed at all.
WSL logs:
No response
WSL dumps:
No response
Expected behavior:
Square Brackets should be working with neo-quertz keyboard layout.
Actual behavior:
Square Brackets and curly braces can't be created at all.

This could be somehow related to

https://github.com/microsoft/wslg/issues/749
https://github.com/microsoft/wslg/issues/517

Workarounds mentioned there doesn't seem to work in my case.

It's working here now, with the following setup:

kbdneo installed
ReNeo config:

{
...
    "standaloneMode": false,
    "blacklist": [
        {
            "windowTitle": "Ubuntu"
        }
    ],
}

This is neccessary so ReNeo doesn't enable the Numpad in WSLg, which locks Layer 4 (#749)
If you use a different distro, check what your window title contains when running any GUI application within WSL and use that instead
Save the following as a .cmd file:

wsl.exe --system --user root bash -c "echo '[keyboard]' >> /home/wslg/.config/weston.ini"
wsl.exe --system --user root bash -c "echo 'keymap_layout=de' >> /home/wslg/.config/weston.ini"
wsl.exe --system --user root bash -c "echo 'keymap_variant=neo_qwertz' >> /home/wslg/.config/weston.ini"
wsl.exe --system --user root bash -c "pkill -HUP weston"

Now, whenever you run wsl, before launching a GUI application, you run the above .cmd file.
If you want your wsl sessions to persist, so you have to run this command a little less often, try starting your normal wsl session with a shortcut to wsl.exe --exec dbus-launch true.

Thanks for your workaround. Works for me, too. But only, if using kbdneo. Maybe this helps for someone else...


MINOR: Unnecessary Access-specifiers

interface does not need an access specifier
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

lgtm


KubeService: Enable .NET server GC by default?

It looks like .NET Core 3.0 defaults console apps to use the workstation GC.  We need to investegate whether we should enable server GC mode by default:
https://devblogs.microsoft.com/dotnet/using-net-and-docker-together-dockercon-2019-update/

Might want to check out this thread: https://twitter.com/Nick_Craver/status/1148725141452578817
And the response from Maoni Stephens. Sometimes workstation is better.
On a previous project using .NET Framework/Windows Server we used workstation GC when there was only 1 core, but for more cores we used server GC.

Yep.  It looks like .NET Core 3.0 will switch automatically to server GC when there's only one CPU.  Here's the detail from the link above:

Server GC is enabled by default for ASP.NET Core apps (it isn’t for console apps), because it enables high throughput and reduces contention across cores. When a process is limited to a single processor, the runtime automatically switches to workstation GC. Even if you explicitly specify the use of server GC, the workstation GC will always be used in single core environments.

So, it looks like this will do the right thing if we enable server GC.

...although we'll need to ensure that it's not ASP.NET making that decision.  It's probably best to have KubeService handle this.  We'll need to poke around the ASP.NET code to align implementations (making sure we handle CPU rounding-up the same way).

This cannot be enabled in code.  This needs to be specified in the service csproj file like:
<PropertyGroup>
  <ServerGarbageCollection>true</ServerGarbageCollection>
  <ConcurrentGarbageCollection>true</ConcurrentGarbageCollection>
</PropertyGroup>

This link also recommends doing concurrent collection.  Note that both modes will be disabled when there is only one CPU.

@marcusbooyah: Add this to the neonKUBE operator service's *.csproj file when you implement it.

@marcusbooyah: I went ahead and added this for you.  It's pushed to master.


Tilde is treated as binary operator

Following code cause W503 to be reported, because ~ is treated as a binary operator, where in reality it is unary.
var = (1 &
       ~2)

Similarly, unary - is falsely being reported as a W503 violation.
[~/scratch]$ cat false_pep8.py
y = 75.0
z = 100.0
x = (y /
     -z)
[~/scratch]$ pep8 false_pep8.py
false_pep8.py:4:6: W503 line break before binary operator
[~/scratch]$ pep8 --version
1.7.0

I haven't tried #383 on the unary - case yet, but it looks like it would not fix this instance of the problem.

+1 I also have this issue.


Hide from the menu the cocktails I can't make (feat)

Hello!
It can be interesting to be able to filter out from the public menu the cocktails I can not make due to missing ingredients.
This option can be useful when building a menu with all the cocktail I usually/want to make. The menu will then automatically update when I'm running out of an ingredient and can not make some cocktails.
A checkbox can be added on the menu configuration view to enable or not this feature.
Thank you for considering!

An other approach could be to show an "Out of stock" indicator next to the cocktail on the menu to highlight that the cocktail is usually available but not in the event of a missing ingredient.


New version: Redisant.MQTTAssistant version <IP_ADDRESS>

This pull request is automatically generated by 🥟 Dumplings
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Exception during executable launch operation System.AggregateException: One or more errors occurred. (An error occurred trying to start process 'C:\Program Files\MQTT Assistant\MQTTAssistant.exe' with working directory 'D:\TOOLS'. The specified executable is not a valid application for this OS platform.)  ---> System.ComponentModel.Win32Exception (216): An error occurred trying to start process 'C:\Program Files\MQTT Assistant\MQTTAssistant.exe' with working directory 'D:\TOOLS'. The specified executable is not a valid application for this OS platform.    --- End of inner exception stack trace ---    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) Exception during executable launch operation System.AggregateException: One or more errors occurred. (An error occurred trying to start process 'C:\Users\Validator\AppData\Local\Programs\MQTT Assistant\MQTTAssistant.exe' with working directory 'D:\TOOLS'. The specified executable is not a valid application for this OS platform.)  ---> System.ComponentModel.Win32Exception (216): An error occurred trying to start process 'C:\Users\Validator\AppData\Local\Programs\MQTT Assistant\MQTTAssistant.exe' with working directory 'D:\TOOLS'. The specified executable is not a valid application for this OS platform.

(Automated response - build 669.)

@wingetbot waivers Add Validation-Executable-Error


Add bookmarks list menu

Also adds a label property to them. Think it…'s worth exposing it on hover as a pseudo-title?
Label property

Bookmark context menu items

Settings

Discussion

I like this. I want to simplify it a just a bit. Left some comments in the PR!

Okay, I think I got everything.


Use SBCK PyPI package

SBCK now has a stable Python package. We should update our recipes to use it.

Update: The package is not exactly stable.


remove the platform flag from FROM instruction in Dockerfiles

We should not use the platform flag in the FROM instruction as Docker discourages the usage of it

closing as #518 is merged


nd.softmax() doesn't support grad_req='add'

Description
nd.softmax() does not support adding gradients specified by setting grad_req to 'add'. This is obvious in this line of code.
However, nd.SoftmaxActivation which is deprecated does support grad_req equal to 'add'. This issue came up in this discuss questions.
Package used: Python
Error Message:
mxnet.base.MXNetError: [18:24:22] src/operator/nn/./softmax-inl.h:267: Check failed: req[0] != kAddTo (3 vs. 3)

Minimum reproducible example
import mxnet as mx
from mxnet import gluon, nd, autograd

print(mx.__version__)

grad_req = 'add'

x = (nd.random.uniform(shape=(2, 10)) - 0.5) * 10
x_g = nd.zeros_like(x)

autograd.mark_variables(x, x_g, grad_req)

with autograd.record():
    # Change nd.softmax to nd.SoftmaxActivation and the code doesn't throw an error
    y = nd.softmax(x)
y.backward()
print(x_g.asnumpy())

@safrooze Thank you for submitting the issue! We are labeling it so MXNet community members can help resolve it.

@safrooze Taking a look at this now.

@safrooze #11836 should fix this issue, I've tried your reproduction script and here's the output from it:
1.3.0
[[  0.00000000e+00   0.00000000e+00   0.00000000e+00   0.00000000e+00
    0.00000000e+00   0.00000000e+00   0.00000000e+00   0.00000000e+00
    0.00000000e+00   0.00000000e+00]
 [ -3.20495186e-09  -2.34470221e-10  -3.99168448e-10  -9.83819623e-11
   -3.74679523e-08  -8.85198338e-12  -7.68905792e-08  -7.67132469e-11
   -2.32276004e-10  -5.95953564e-10]]

That's great, thanks @haojin2!

Resolving as  #11836 is merged.


[Bug]:- UI for the Explore More Page is Distorted

Describe the bug
The UI for the explore more page is distorted for smaller screens which creates a very bad impact on users as a lot of users prefer to work on small screen laptops today
To Reproduce
Steps to reproduce the behavior:

Go to 'Website'
Click on 'explore more'
See error

Expected behavior
The UI should be neat and clean and Interactive
Screenshots
https://github.com/Priyaaa1/StartConnect-Hub/assets/124867297/6bdcfa26-888e-4393-8b47-f0460cfb5b99
I can Improve it under Gssoc
Kindly assign me this issue under gssoc and add labels of level 3

@Priyanshu2743 this task is not of level3, I'm assigning this with level2.
Will change it if needed.


Instalation on macOS Ventura 13.1 M1 fails

pip install chdb

ERROR: Could not find a version that satisfies the requirement chdb (from versions: none)
ERROR: No matching distribution found for chdb

uname -a
Darwin xxxx 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103 arm64

python -V
Python 3.10.9

Currently, I haven't compiled chdb into the ARM64(M1) arch.
Maybe, you can try the following command:
arch -x86_64 pip install chdb
arch -x86_64 python3 -c \
    "import chdb; res = chdb.query('select version()', 'CSV'); print(str(res.get_memview().tobytes()))"

macOS arm64 for python 3.10 is published @dchimeno


Documentation: API path parameter naming

Gitea version (or commit ref): 1.5

Description
All the path parameters in swagger (POST & GET are counted as one occurence)
45 {repo}
44 {owner}
22 {id}
20 {username}
12 {org}
8 {index}
2 {filepath}
1 {user}
1 {token}
1 {sha}
1 {ref}
1 {follower}
1 {followee}
1 {collaborator}
1 {branch}
1 {attachment_id}
1 {archive}
(jq -r '.paths | keys' swagger.v1.json | grep -o '\{[^\}]*\}' | sort | uniq -c | sort -rn)
As you can see there are 22 id and 8 index path parameter occurences in the swagger file. Most other parameters are distinctive and understandable form the first look. I'd recommend to rename these parameters to something easily understandable.
Just one example:

/repos/{owner}/{repo}/milestones/{id}
Get a milestone

rename the parameter:
{id} -> {milestone_id} (see attachment_id)
changing the description:
"id of the milestone" -> "id as obtainable from /repos/{owner}/{repo}/milestones"

@HoffmannP I find {id} more elegant and smalrer than {milestone_id}  and the URL path determine its meaning so if path is .../milestone/{id} its very likely that the id is a milestone_id ?

The trouble is the swagger API is presented in multiple different formats, but most often without the URL to accompany it. In which case, the only context you have is the method name and parameter names. I can easily imagine that using id might be confusing in that situation.

@HoffmannP I find {id} more elegant and smalrer than {milestone_id} and the URL path determine its meaning so if path is .../milestone/{id} its very likely that the id is a milestone_id ?
I personaly would go the other way and would rename {attachment_id} to {id} so it follows pattern ...

I agree with this point and I think this can be closed. At least, when visiting Swagger API documents, it will not confuse me.


Qdrant Scroll Method Timeout

I am encountering significant performance issues with the Qdrant scroll method. When setting a large limit, the method frequently results in a timeout error, making it impractical for large-scale data retrieval.
In contrast, other vector databases like Chroma and Pinecone offer more efficient methods for retrieving user data based on metadata, such as username. These methods are capable of fetching all relevant data without timing out.
Does Qdrant offer a similar function that can retrieve large datasets based on metadata without encountering timeout issues? While the scroll method seems to be designed for this purpose, it currently falls short due to its performance limitations.
This issue is critical for our project. Any suggestions or alternative approaches would be greatly appreciated.

@timvisee Please look at it and give me solution for it.

Hey @Faiee50, the solution for you would be to refer to the documentation https://qdrant.tech/documentation/concepts/points/#scroll-points
You are using very high value for the limit parameter, and it is absolutely no surprise that the endpoint gives you a timeout once you ask it to retrieve the whole dataset in one request.
You are welcome to use Pinecone if you find appropriate API there.

I'm also facing the same issue. But I didn't find any solutions. Is there any easier solutions to search based on metadata over large dataset? In that case the limit should be very large. I also use offset but the process was very slow.

@pseudo-usama scroll method is not what we call search, it is just iterating over the records in Qdrant with some optional restrictions like payload filters.
In order scroll to be fast, payload fields which are used in payload filters should have payload indices.
Limit does not depend on the size of your dataset, it's about the amount of results you want to have in return.
If you want to scroll over a huge amount of records, consider using pagination, which allows you to fetch the next records on demand instead of fetching all of them in one call.

Hi @joein ,
Thank you for the clarification regarding the scroll method in Qdrant. I understand that it is used for iterating over records with optional restrictions, such as payload filters, and that for efficient scrolling, the payload fields should have payload indices.
I am interested in learning how to implement pagination using the scroll method in Qdrant. Could you provide an example code snippet demonstrating this?

Hi @Faiee50 ,
scroll method returns a tuple of points and the next offset
you need to make calls to scroll with offset retrieved from the previous call (in the first call offset=None)
once returned offset value equals to None, it means that you've reached the end of the collection

@joein , thanks for your quick help.This is what i am searching for a long
:)

you are welcome
p.s. it can be found here in the docs


Improved error message suggestion: "Hangfire.Mongo version: X, uses a schema prior to the current database version Y""

When we get an exception thrown like this:
Hangfire.Mongo version: <IP_ADDRESS>, uses a schema prior to the current database.
It would be more useful to see something more like this:
Hangfire.Mongo version: <IP_ADDRESS>, uses a schema prior to the current database version version: <IP_ADDRESS>
etc
If you google "How to find my current Hangfire.Mongo version" there is little helpful information. Indeed searching for "Hangfire.Mongo" "uses a schema prior to the current database." the only hit is the actual source code here on GitHub.
Apologies if this is the wrong process to raise an issue; this is my first dabble into open source issues/resolution.

@garethbirduk,
Thanks for posting.
We dont associate the Hangfire.Mongo version with the schema version, so we dont have that information available.
The version is the same as the nuget version, could you use that?
Thanks

closing due to inactivity


Commit transition - Product Dashboard

Hey guys,
I've been setting up Hygieia for a while, and I've got a weird behavior on Product Dashboard. I've four widgets working properly. They're:
Code Repo: Bitbucket Collector
Build: Jenkins-Build Collector
Code Analysis: SonarQube and Jenkins-Cucumber Collectors
Deploy: Hygieia Publisher Plugin
My problem is on Product Dashboard. The dashboard is showing up the commit blocks, and I can see the commits moving from one environment to the other. However, I'm stuck in a problem.
Let's say that I've one commit sitting in DEV stage and one commit sitting in QA stage. Each commit represents a different version of my app (I've double checked on database, and they're different). If I run the deployPublisher to deploy into STG, both commits move to STG rather than only the commit sitting on QA (again, same application but different versions).
Btw, my flow is COMMIT -> BUILD -> DEV -> QA -> STG -> PRD
Am I missing something here?

This is a known issue to which we are stilling working out the best solution. The ideal setup is that that a user has enough automated testing commit progresses through all stages in process. But simply won't be the case for the majority of apps. I will respond here when we have a solution.

Thanks for the quick reply @Sbrenthughes
Are you guys currently working on this issue or it's in your backlog? When are you planning to release it?

@caiohcl We currently do not have an ETA for this fix, if you have bandwidth please contribute back to the project by implementing the fix.

Hi Caiohcl,
Need your help on Hygieia for Jenkins collector. We are trying to integrate  Jenkins collector in Hygieia dashoard and facing some issues. can you please check the below url for the issue
https://github.com/Hygieia/Hygieia/issues/3311
and kindly help.
Thank you.

Hi @Sbrenthughes
Do you have any update due the problem reported by @caiohcl ?
Thank you!


267 improve first time cli installation

Summary & Motivation
A brief description of the changes in this pull request explaining why these changes are necessary. Please delete this paragraph.
Checklist

[x] I have added a Label to the pull-request
[x] I have added tests, and done manual regression tests
[ ] I have updated the documentation, if necessary

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


Moves test for the groovy compiler toolchains into the language-groovy project

This breaks the prod + test dependency cycle between toolchains-jvm and language-groovy.

@bot-gradle test this

I've triggered the following builds for you. Click here to see all build failures.

PullRequestFeedback build

@bot-gradle test and merge

Your PR is queued. See the queue page for details.

I've triggered a build for you. Click here to see all failures if there's any.


Default Migration Path is not Found

Hi, I started using your library in this setup:

Custom company wide library which encapsulates your library and ads Spring Boot auto configuration to it (similar to your Spring Boot integration)
Application running in Kubernetes which uses the company library to make use of the Cassandra migration

During startup it logs this:
2020-10-19 08:53:19.234 DEBUG 1 --- [           main] o.c.c.migration.MigrationRepository      : Scanning for cql migration scripts in cassandra/migration/ 2020-10-19 08:53:19.234 DEBUG 1 --- [           main] o.c.c.migration.MigrationRepository      : Potential script folder: jar:file:/app/application.jar!/BOOT-INF/classes!/cassandra/migration/ 2020-10-19 08:53:19.235 DEBUG 1 --- [           main] o.c.c.m.scanner.JarLocationScanner       : Scanning in jar jar:file:/app/application.jar!/BOOT-INF/classes!/cassandra/migration/ in location cassandra/migration/ 2020-10-19 08:53:19.235 DEBUG 1 --- [           main] o.c.c.m.scanner.JarLocationScanner       : Trying to get existing filesystem for jar:file:/app/application.jar!/BOOT-INF/classes!/cassandra/migration/ 2020-10-19 08:53:19.244 DEBUG 1 --- [           main] o.c.c.m.scanner.JarLocationScanner       : Creating new filesystem for jar:file:/app/application.jar!/BOOT-INF/classes!/cassandra/migration/
Eventually it fails with:
Caused by: java.nio.file.NoSuchFileException: cassandra/migration 	at jdk.zipfs/jdk.nio.zipfs.ZipPath.getAttributes(ZipPath.java:742) 	at jdk.zipfs/jdk.nio.zipfs.ZipFileSystemProvider.readAttributes(ZipFileSystemProvider.java:292) 	at java.base/java.nio.file.Files.readAttributes(Files.java:1763) 	at java.base/java.nio.file.FileTreeWalker.getAttributes(FileTreeWalker.java:219) 	at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:276) 	at java.base/java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:322) 	at java.base/java.nio.file.FileTreeIterator.<init>(FileTreeIterator.java:71) 	at java.base/java.nio.file.Files.walk(Files.java:3822) 	at java.base/java.nio.file.Files.walk(Files.java:3876) 	at org.cognitor.cassandra.migration.scanner.JarLocationScanner.findResourceNames(JarLocationScanner.java:34) 	at org.cognitor.cassandra.migration.MigrationRepository.scanForScripts(MigrationRepository.java:189) 	at org.cognitor.cassandra.migration.MigrationRepository.<init>(MigrationRepository.java:135) 	... 72 common frames omitted
I checked the docker container and can see the folder there:
root@mycontainer-7cbd86969d-lkwd9:/app# jar -tf application.jar ... BOOT-INF/classes/cassandra/ BOOT-INF/classes/cassandra/migration/ BOOT-INF/classes/cassandra/migration/01_create-ad-table.cql
The permissions of the file are set to read by everyone, also I would expect another error if the permissions were there problem.
I'm really looking forward to get some help here.
Thanks
Dennis

What makes me wonder is the file path containing 2 exclamation marks: jar:file:/app/application.jar!/BOOT-INF/classes!/cassandra/migration/
The application uses the spring-boot-maven-plugin with repackage. Maybe that's the reason. Is there an example of this library being working in a Spring Boot app using this pluign?

Hi Dennis,
yes, there was an issue addressing the spring boot jar: https://github.com/patka/cassandra-migration/issues/18
Can you check if you are able to run the application by just running the jar file outside of docker and kubernetes? Did you try stepping through the code while it executes to see what is executed and try to get a glimpse on how the JVM sees the filesystem?
I unfortunately have no experience in using Kubernetes clusters with Docker, nor do I currently have the capacity to set this up in my spare time, so any details you can provide would be of great help.
Cheers
Patrick

Hi @patka ,
thanks for the quick response. Since the issue you mentioned is exactly my problem, I'll check out if I can get it running with what was recommended there.
Thanks!
Dennis


Fix for an Anko build error.

A fresh checkout of Anko from master does not currently build.
Anko makes (gratuitous?) use of a sun.plugin.dom InvalidStateException.
The required java-plugin.jar is not fetched from update_dependencies.xml,
nor is it downloaded when doing a gradle build.
It does not seem like the jar is used anywhere else, so I figured removing the
dependency makes more sense than trying to get the dependency working.

Fixed manually in cd2b30d0dc54ff8998a1c3a2159967515ac45498 due to the merge conflicts.
Anyway, thank you!


How to sovle the error:KeyError: 'socketio'`

When I run the 5th command 'flask run' for example/flaskr. It shows error
* Serving Flask-SocketIO app "flaskr"
Traceback (most recent call last):
  File "/usr/local/bin/flask", line 9, in <module>
    load_entry_point('Flask==0.13.dev0', 'console_scripts', 'flask')()
  File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 507, in main
    cli.main(args=args, prog_name=name)
  File "/usr/local/lib/python2.7/dist-packages/flask/cli.py", line 374, in main
    return AppGroup.main(self, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/flask_socketio/cli.py", line 58, in run
    run_server()
  File "/usr/local/lib/python2.7/dist-packages/flask_socketio/cli.py", line 50, in run_server
    socketio = app.extensions['socketio']
KeyError: 'socketio'

How to solve this problem? Thankyou very much!

Flask's examples do not include Flask-SocketIO. Perhaps you meant to report this there?

Flask's examples do not include Flask-SocketIO. Perhaps you meant to report this there?

Might also be an issue with environment, maybe not using virtualenv.
On Sunday, January 1, 2017, David Lord<EMAIL_ADDRESS>wrote:

Flask's examples do not include Flask-SocketIO. Perhaps you meant to
report this there?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.<
https://ci6.googleusercontent.com/proxy/7Qv-glLM-trbd90DZeZoVK4TTCBULmkNcBojFrSIAcy7DWjQCqa66w0FPuEQHRI-olAgbASKvVPb80HNKEBkgK9XKdm3h4HUkfnslIa30vkrLp_6U7_gF5Qj-4oogphAZJRhmYRTY_jI9JrPRDPd4-f7n-NZHQ=s0-d-e1-ft#https://github.com/notifications/beacon/AJpsctyMe6yWn-53XVNaQl8zqMIyYO2nks5rN8XQgaJpZM4LYrxN.gif>

Might also be an issue with environment, maybe not using virtualenv.
On Sunday, January 1, 2017, David Lord<EMAIL_ADDRESS>wrote:

Flask's examples do not include Flask-SocketIO. Perhaps you meant to
report this there?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.<
https://ci6.googleusercontent.com/proxy/7Qv-glLM-trbd90DZeZoVK4TTCBULmkNcBojFrSIAcy7DWjQCqa66w0FPuEQHRI-olAgbASKvVPb80HNKEBkgK9XKdm3h4HUkfnslIa30vkrLp_6U7_gF5Qj-4oogphAZJRhmYRTY_jI9JrPRDPd4-f7n-NZHQ=s0-d-e1-ft#https://github.com/notifications/beacon/AJpsctyMe6yWn-53XVNaQl8zqMIyYO2nks5rN8XQgaJpZM4LYrxN.gif>

Is virtualenv nessesary?

It's highly recommended. Installing all those packages globally in your system not only requires you to install them as root but also adds lots of clutter to your system. With a virtualenv you have them "bundled" with your application and can easily have different versions for different applications, or reinstall them if needed, etc.

@wgwz  @ThiefMaster  It can run rightly as you said in a virtualenv. But Flaskr does not have user register function. Is there a example include user  register function in this 'pallets/flask'?

@JulyUp Many people follow the (not official) tutorials by @miguelgrinberg for advanced examples.


.nvm/nvm.sh: line 587: syntax error near unexpected token `}'

Running terminal in Mac OS X Sierra.
bogon:~ jerry$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.2/install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11699  100 11699    0     0  14366      0 --:--:-- --:--:-- --:--:-- 14354
=> Downloading nvm from git to '/Users/jerry/.nvm'
=> Cloning into '/Users/jerry/.nvm'...
remote: Counting objects: 6480, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 6480 (delta 1), reused 3 (delta 1), pack-reused 6475
Receiving objects: 100% (6480/6480), 1.92 MiB | 7.00 KiB/s, done.
Resolving deltas: 100% (4017/4017), done.
* (HEAD detached at v0.33.2)
  master
=> Compressing and cleaning up git repository
Counting objects: 6480, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (6436/6436), done.
Writing objects: 100% (6480/6480), done.
Total 6480 (delta 4275), reused 1995 (delta 0)

=> nvm source string already in /Users/jerry/.bash_profile
=> bash_completion source string already in /Users/jerry/.bash_profile
/Users/jerry/.nvm/nvm.sh: line 587: syntax error near unexpected token `}'
/Users/jerry/.nvm/nvm.sh: line 587: `}'
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

hm, this suggests the download was somehow corrupted, but it's using git, so it should be working.
Do you get the same syntax error if you . ~/.nvm/nvm.sh?

I use "Terminal" ,  it's not working.
but I use  "iTerm" ,its's woring good.

Do you perhaps have a custom language or encoding set on your system, that's not set in iTerm?

#1553 in particular seems similar.

I change to utf-8 is OK.
Thank you help!


Doesnt work with node v13.11.0

I am trying this with my project that uses create-react-app and node v13.11.0. This is what I get after installing this flag library and running my project -
Failed to compile.

./node_modules/react-native-round-flags/index.js
SyntaxError: ....../falcon-ui/node_modules/react-native-round-flags/index.js: Unexpected token, expected ";" (7:5)

   5 | import * as flags from './flags';
   6 |
>  7 | type Props = {
     |      ^
   8 |   code: string,
   9 |   style?: any,
  10 | };

Nevermind, it was my local issue thats unrelated to this npm package


added "Address of a variable" and "Convert seconds to compound duration"

http://rosettacode.org/wiki/Address_of_a_variable
http://rosettacode.org/wiki/Convert_seconds_to_compound_duration

Closing as these both currently exist in master. Thanks for the contribution!


go-mode vs. go-ts-mode (included with Emacs)

Hey @dominikh and community, also cc @aclonegeek (author of go-ts-mode)
I recently learnt that Emacs 29 includes tree-sitter: https://www.masteringemacs.org/article/how-to-get-started-tree-sitter
Notably, aside from tree-sitter itself, Emacs 29 also includes a go-ts-mode package which provides tree-sitter based syntax highlighting for Go code.
In fact, I found blog posts that outline how to set up Emacs for Go development (e.g. https://magnus.therning.org/2023-11-16-using-the-golang-mode-shipped-with-emacs.html) that don’t use go-mode.el at all anymore.
This got me wondering: Is some sort of transition underway from go-mode to go-ts-mode? Or are both supposed to coexist indefinitely? What reasons might one have to prefer go-mode over go-ts-mode on Emacs 29+? It would probably be good to eventually explain this in the README, but I figured I’d ask here first.
Thanks in advance

Thanks for your explanation! It would probably be good to add a comparison table to the README so that users know when to reach for go-mode.el and when the builtin go-ts-mode is sufficient.
For example, I wasn’t aware of any of the advanced features you mentioned :)

I'm not sure how many people would see that, considering the README already lists all of those features: https://github.com/dominikh/go-mode.el?tab=readme-ov-file#features

Sorry for not checking the README more closely before writing my message.
I’m sure I must have seen it before, though, so I thought a little bit about why nothing seems to have stuck. To hopefully contribute something positive, here are a few suggestions for improvements to the feature list:

Turn it from a list into a table, with columns [function, key binding, description]. That will make it much easier to scan visually.
I might reorder items such that the tablestakes features are at the very top (gofmt-before-save, organize-imports, godef), then the various integrations (godoc, playground, coverage), then maybe the jump commands as its own group.

IIUC, gofmt, organize-imports and godef are also possible with eglot in go-ts-mode, but go-mode offers more functionality (changing the binary, adding imports with tab completion). This would be worthwhile to point out.


Molecules InChI overlaps with the SMILES field

https://tailwindcss.com/docs/installation

The issue is still there

https://tailwindcss.com/docs/word-break#break-all

It is fixed on chrome but not firefox


Implement ability to have route parameters only match numbers or only letters

Midnight idea for this: have parameters that support regex themselves, perhaps /hello/:number[\d]


how to use inference.sh

I have made a text file which has a the following sentence in it
Send me the files
Now I want this text file to be taken as input and make inference using the pretrained tagger and generator model. But I am not sure what the arguments of the following command means
bash scripts/inference.sh {input_file} {jobname}\
                          tagged generated\
                          {handle}\
                          {style_0_label} {style_1_label}\
                          {base_folder} {device}

So how exactly do I use this command to make inference of my text file ?
Thanks in advance ! : )

The file containing the sentence you mentioned must be given the name {input_file}.
{jobname} is simply an identifier to track the inference run.
{handle} is the model identifier -- when the scripts  scripts/train_tagger.sh and scripts/train_generator.sh were triggered the models would be dumped in the folder models/{handle}.
{style_0_label} same argument as what was used in the data creation step (tagger model uses this to tag data) e.g: POS
{style_1_label} same argument as what was used in the data creation step (tagger model uses this to tag data) e.g: NEG
{base_folder} is the path to your data folder ({OUTPATH} used in data creation step). This is basically the location from where the BPE models would be loaded.
{device} is the gpu id.

Hey @ars22!
Thanks a lot. This helps : )

@ars22 did you train the tagger and the generator from scratch ? I am asking this because the pre-trained models haven't been released.

Yes, the tagger and generator were trained using the training data which is itself created using steps outlined in data_prep.

That's a great news :D Looking forward to the release!
Thanks again.


CachePlugin don't work with MockPlugin

I want to test implementation of cache in my library, based on guzzle.
public function testReadFromCache()
    {
        $client = new \Guzzle\Http\Client('http://example.com/');

        /**
         * Mock response
         */
        $client->addSubscriber(new \Guzzle\Plugin\Mock\MockPlugin(array(
            new \Guzzle\Http\Message\Response(200, array(
                'Content-type'  => 'application/json',
                'Cache-Control' => 'max-age=3600',
                'Date'          => gmdate('D, d M Y H:i:s', time()) . ' GMT',
                'Expires'       => gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT',
                'Last-Modified' => gmdate('D, d M Y H:i:s', time() - 1000) . ' GMT',
            ), json_encode(array(
                'param' => 'abcdef',
            ))),
            new \Guzzle\Http\Message\Response(200, array(
                'Content-type'  => 'application/json',
                'Cache-Control' => 'max-age=3600',
                'Date'          => gmdate('D, d M Y H:i:s', time()) . ' GMT',
                'Expires'       => gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT',
                'Last-Modified' => gmdate('D, d M Y H:i:s', time() - 1000) . ' GMT',
            ), json_encode(array(
                'param' => 'fedcba',
            ))),
        )));

        $client->addSubscriber(new \Guzzle\Plugin\Cache\CachePlugin(array(
            'storage' => new \Guzzle\Plugin\Cache\DefaultCacheStorage(
                new \Some\Cache\Adapter
            ),
        )));

        /**
         * Execute request
         */
        $response = $client->get('/')->send()->json();
        $this->assertEquals('abcdef', $response['param']);

        /**
         * Execute cached request
         */
        $response = $client->get('/')->send()->json();
        $this->assertEquals('abcdef', $response['param']);
    }

In second request response read from cache, but returned second response mock. i have lost a day to find why second request occured but found nothing.
What's wrong with my test?

Thanks for getting in touch, but I'm going to close this since this repo has been EOL for a while now. Please upgrade to Guzzle 7 ASAP.