calling aclose() on a subscription doesn't cancel task

I put together a new version of graphql-ws specifically designed for graphql-core-next, and one problem I've run into is that calling aclose() on an async generator doesn't cancel whatever is waiting on its __anext__() (https://bugs.python.org/issue28721)
The result is that subscriptions in graphql-core-ws aren't really cancellable, and instead emit the following error:
Task was destroyed but it is pending!
task: <Task pending coro=<<async_generator_asend without __name__>()> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x10ed07d68>()]> cb=[_wait.<locals>._on_completion() at /Users/dfee/.pyenv/versions/3.7.0/lib/python3.7/asyncio/tasks.py:436]>
^

BTW, you can check out that repo (pre-publish) at https://github.com/dfee/graphql-next-ws

That's interesting. I have been also working on a new version of graphql-ws recently (not published yet). It includes the functionality from graphql-subscriptions and I want to add all the tests and the client code from graphql-ws as well. Maybe we can join our efforts.

Is this the graphql-subscriptions you're referencing?
I'm totally open to joining efforts. I'd like to sprinkle into that repository some brief documentation regarding usage, and then migrate the project to this team and I'd be happy to grant you write-access (@syrusakbary, thoughts?).
Thanks for your work with graphql-core-next!

Yes, that's the graphql-subscriptions I have included in my version of graphql-ws.  In my implementation of with_filter I'm using a similar mechanismus as you recently suggested to allow closing a filtered async iterable while it's running.

Cool. Yeah, I'd love to get that merged in with this team and make it a shared project (I've reached out to @syrusakbary via email...).

There were some worthwhile additions to https://bugs.python.org/issue34730 that might be worth reading as we implement async gens (but I don't think that's a problem with async iters).

Closing this since I see no more actionable items for graphql-core-next. graphql-next-ws is a separate issue (still on my todo list).


R package flaky test on downloading

http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/PR-12639/2/pipeline/1013
Could you please provide a retry scheme while trying to download the model?
@anirudhacharya @hetong007

@mxnet-label-bot [R]

@mxnet-label-bot ["Flaky", "Test"]

@mxnet-label-bot [Flaky, Test]

Issue is still there:
http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/PR-13260/1/pipeline/1110

@mxnet-label-bot add [Flaky, Test]


i'm not sure how to handle server side data fetching..

right now i use redux and pull a list of users into props and drop it into ReactTable like so.. i use Immutablejs and store them in a users.results store hence users.get('results')
<ReactTable
    tableClassName='table table-striped'
    data={users.get('results')}
    columns={_columns}
/>

the backend returns data like so in a paged format (using sailsjs)
{
  "code": "OK",
  "message": "Operation is successfully executed",
  "data": [
    {
      "groups": [
        {
          "name": "Users",
          "accessLevel": 1,
          "id": 2,
          "createdAt": "2016-10-24T20:37:50.889Z",
          "updatedAt": "2016-10-24T20:37:50.889Z"
        }
      ],
      "username": "GarretKertzmann57",
      "email"<EMAIL_ADDRESS>      "firstName": "Dangelo",
      "lastName": "Muller",
      "photo": "",
      "accountType": "local",
      "id": 1,
      "createdAt": "2016-10-24T20:37:51.592Z",
      "updatedAt": "2016-10-24T20:37:52.201Z"
    }
  ],
  "criteria": {},
  "limit": 20,
  "start": 0,
  "end": 20,
  "page": 0
}

and the api code in react looks like this to handle the fetching of data, yet im not sure how to go about handling this so ReactTable can fetch the data for me. Would you be able to provide a working example of getting the code to work? Api.get() is a middleware I wrote which wraps axios.
export const find = (params = {}, payload = {}) => {
  return (dispatch, getState) => {
    return new Promise((resolve, reject) => {
      dispatch(getUsers({ ...params, payload }))
      log.debug('Users::find::initial', params, payload)
      Api.get('/users', { auth: true, populate: ['groups'] }, payload)
      .then((response) => {
        log.debug('Users::find::success', params, payload, response)
        return response
      })
      .then(({ data }) => {
        dispatch(gotUsers(data))
        resolve(data)
      })
      .catch((err) => {
        log.error(err)
        if (err.status === 401) {
          dispatch(Notification.emit({
            msg: err.data.message,
            visible: true,
            dismissable: true,
            type: 'error'
          }))
          dispatch(errorReceivingData(err))
        }
      })
    })
  }
}

If you are using redux, then there a few ways you can go about it:

Just get your data to your render function like you normally would with redux.  Request it using any asynchronous means, and as long as it ends up in your state, you can connect it to your component props through the redux connect function and then just synchronously feed the data into <ReactTable data={myData} />. No need to overcomplicate things.

If you want to use React-Table to fetch your data (especially server-side paginated and sorted data), then use a function instead of an array like so:

<ReactTable
  columns={...}
  data={(params, callback) => {

    Users.get('id')
    .then((res) => {
      callback({
        rows: [...]
      })
    })

  }}
/>

All this function does is tell React-Table to show a loading message until you either:

Return a promise that resolves an object with the rows, or
Pass the callback an object with rows (which is what I do in the example above)

I myself use both methods to get different things done in my apps.
The first method of using data out of redux is very easy for showing crud objects I already have in my redux store.  If they need to be fetched, then I fetch them, and update the store, eventually just rendering the data into ReactTable synchronously. Also with all of the data in ReactTable, it can handle all of the sorting and pagination for you client-side.
The second method honestly is mainly for using server-side pagnination and sorting. I use it in some components where I don't necessarily need the data I'm requesting to live in redux state, so I simply request it asynchronously in the ReactTable data method, and let the server return what it wants.
My last piece of advice would be, If you aren't using server-side pagination or sorting, then just pipe your data directly into ReactTable as opposed to using the callback. I hope this clears things up.  If not, you should join the slack channel and we can talk more about your specific implementation.
https://react-table-slack.herokuapp.com/

Yeah it's for crud stuff I use mapdispatchtoprops so findUsers() is a map to Users.find() just named differently. I'll try your implementation shortly thanks!

You bet. I'm on slack right now if you need more help.  Closing for now.


GPII-3355: Ignore failures in after_scripts.

Also added a Tag to Stepan's new linting job, as mentioned in https://github.com/gpii-ops/gpii-infra/pull/164#issuecomment-427950427

LGTM

LGTM


Map not responding to mouse gestures after resizing control - WPF

Mapsui Version
Mapsui.Wpf 4.1.8
Mapsui Platform
WPF
Device
Windows
Describe the bug
The mouse down and dragging does not seem to be recognized on the map after a resize of the window is performed.
To Reproduce
Steps to reproduce the behavior:

Load the map with some basemap (OpenStreetMap)
Resize the window, or maximize the window.
Try clicking and dragging the map starting at the bottom of the map screen. The map will not respond to mouse gestures anywhere in the space added after the window resize.

Expected behavior
The map should respond to the mouse in all areas after a resize.
Additional context
This problem appears to be worse when dealing with dpi scaling.

Thanks for the report. I could not reproduce it with the WPF sample in the develop/4.1. Can you? If not there must be something specific about your setup. Do you have any idea what that could be?

Thank you for the quick reply. You are correct, I tried it in a fresh project and it worked fine. It turned out to be a hidden grid row that was preventing it from receiving the mouse events. Sorry for the hassle.
Somewhat related - I would like to switch to the beta version 5 to make sure I am working with the most recent version, but I noticed the WPF version does not appear to handle mouse panning correctly. Is this a known issue? I could not find it in the current list of bugs. Thanks!

I test regularly with Mapsui.Samples.Wpf and have noticed nothing like that. Under what circumstances do you run into this?

I made a fresh project and added the WPF version 5.0.0 beta.4 in Visual Studio 2022 and added it as outlined in the quick guide:

When I run the sample, it seems as though it is not recognizing the mouse move events since the map only appears to update at the end of the mouse movement. Zooming with the mouse wheel appears to work fine. I tried to capture this in the video below.
https://github.com/user-attachments/assets/f7490bdb-dd7f-45f2-a760-3fcfc9dfabb5

I can not reproduce that on the main branch. I hope to have time for this Friday.

Please let me know if I can provide anything to assist. It seems to be specific to version 5 because when I downgrade to 4.1.8 in the same project it works fine. Thank you

I could reproduce it easily with the getting started as you describe. Since it is not on main it could be a problem with the pre-release of SkiaSharp. So before I investigate this further I will release a new beta and try it again.

Thanks for everything Paul, please feel free to delete this Issue Report since the error was obviously my own.

It is not fixed in 5.0.0-beta.5. I do don't know cause yet. I created a new issue https://github.com/Mapsui/Mapsui/issues/2810.
I will close this one.


Have to refresh to see upgrade version finish

Rancher Version: Master 8/25
Steps to Reproduce:

Upgrade a machine driver

Results: Will sit in spinning upgrading state until you refresh browser
Expected: Should recognized when completed

Version - v1.2.0-pre4-rc2
Verified fixed


Support for Cronjob

Description of changes:
It adds a new extension to activate a cronjob according to https://www.drupal.org/docs/7/setting-up-cron/overview
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

^^ @mwunderl


src: Format all code with rustfmt

looks great, thank you
i will add your name too the contributors

Merged to upstream repository, this draft was only for testing. Closing this and syncing with upstream.


Improve code formatting - ruff and mypy

As per the discussion on https://github.com/surrealdb/surrealdb.py/issues/39, we can implement ruff for code formatting in addition to black. The proposed ruff configuration is as follows:

isort, which is compatible with black
pydocstyle, with a preference for Google style but open to suggestions
flake8
By using ruff, we won't need the .flake8 file. Additionally, ruff works well with pre-commit hooks.

We should also include mypy for type-checking in the project.
Please let me know your thoughts. Thank you 😄

This all sounds good, closing this issue as the PR for the suggested changes has been merged


indentation is wrong in template literal expression

What version of standard? 11.0.1
What operating system, Node.js, and npm version? Ubuntu 18.04 node 8.9 npm 5.5.1
What did you expect to happen?
Template literal expressions does not indent correctly.
example with styleguide.js from choo website.
If you run standard --fix styleguide.js, template literal expression indentation is totally wrong at line 16 and in every template literal expression.
I past the code to the try it out section of the standard website and it work well, so I assume the website use an old version of the standard library that don't contain the bug.

I noticed this as well. Example code that works as expected:
function example () {
  const router = reverse`
    GET /example greet
  `({
    greet () {
    }
  })
}

But once I add a parameter to the template string, like so:
function example () {
  const router = reverse`
    GET /example/${id} greet
  `({
    greet () {
    }
  })
}

<EMAIL_ADDRESS>suggests that it should instead format it without the indention in the object literal:
function example () {
  const router = reverse`
    GET /example/${id} greet
  `({
  greet () {
  }
})
}

which seems wrong. (This might be a bug in eslint!) An example of the error reported follows:
  /path/to/file:37:1: Expected indentation of 2 spaces but found 4. (indent)
  /path/to/file:38:1: Expected indentation of 2 spaces but found 4. (indent)
  /path/to/file:39:1: Expected indentation of 0 spaces but found 2. (indent)

Bug still exists with standard v12

This appears to be a bug in ESLint. Has anyone filed an issue on ESLint for this yet?

I think https://github.com/eslint/eslint/issues/10932 describes the same bug.

Okay, until ESLint fixes this, let's just disable indentation checking on children of template literals.
I'm going to add this exception to the indent rule: "ignoredNodes": ["TemplateLiteral > *"]
This will be released in standard v14.


[BUG] RuntimeError: no validator found for <class 'transformers.models.auto.modeling_auto.AutoModelForVision2Seq'>, see arbitrary_types_allowed in Config

Traceback (most recent call last):
File "/home/v/swarms/tests/models/kosmos2.py", line 4, in
from swarms.models.kosmos2 import Kosmos2, Detections
File "/home/v/.local/lib/python3.10/site-packages/swarms/models/kosmos2.py", line 34, in
class Kosmos2(BaseModel):
File "pydantic/main.py", line 197, in pydantic.main.ModelMetaclass.new
File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.init
File "pydantic/fields.py", line 557, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 831, in pydantic.fields.ModelField.populate_validators
File "pydantic/validators.py", line 765, in find_validators
RuntimeError: no validator found for <class 'transformers.models.auto.modeling_auto.AutoModelForVision2Seq'>, see arbitrary_types_allowed in Config

Upvote & Fund

We're using Polar.sh so you can upvote and help fund this issue.
We receive the funding once the issue is completed & confirmed by you.
Thank you in advance for helping prioritize & fund our backlog.

This can be closed.

This can be closed.


Can this tool read password-protected .xlsx file?

Hi, I wonder if this tool allow me to set a password in C++ source code, and then read the password-protected xlsx file?
Thanks,
Nai-Yuan

Hi,
Sorry, but no, encrypted files are not in scope of this project.
Regards
 Brecht

On 23/09/2016 2:10, Nai-Yuan Chiang wrote:

Hi, I wonder if this tool allow me to set a password in C++ source
code, and then read the password-protected xlsx file?
Thanks,
Nai-Yuan
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/brechtsanders/xlsxio/issues/10, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AQ0-eR4xe-tV6tDuGafTC3ni4XUXsUSXks5qsxkMgaJpZM4KEfPD.


Support private registry credential imagePullSecrets for argoproj/argoexec

Summary
When we deploy a argo-workflow in private internal datacenter, have no intenet access, we would like to pull argoproj/argoexec with a docker registry crendential,  but no such args in deployment yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: workflow-controller
spec:
selector:
matchLabels:
app: workflow-controller
template:
metadata:
labels:
app: workflow-controller
spec:
containers:
- args:
- --configmap
- workflow-controller-configmap   # Set configmap name here
- --executor-image
- argoproj/argoexec:latest
- --namespaced
command:
- workflow-controller
image: argoproj/workflow-controller:latest
name: workflow-controller
serviceAccountName: argo
nodeSelector:
kubernetes.io/os: linux
What change needs making?
Use Cases
When would you use this?

Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.

You can customize your container in executor field in the controller configmap: https://github.com/argoproj/argo-workflows/blob/master/docs/workflow-controller-configmap.yaml#L216

but no any registry secret can pass on workflow-controller-configmap.

Is there already a solution for this?
I'm also interested to know how to apply imagePullSecrets to the executor...

Is there any solution?
I think it is an important issue because it affects the use of workflows.

Is there already an implementation for using a private registry?

imagePullSecrets are Pod-level, not container-level. The Executor is another container that runs in your template's Pods. So whatever imagePullSecrets you have on your template will be used

Thank you, @agilgur5! I already found this info on another source.


Ability to reorder or add/remove slides dynamically?

I'm building an application with a gallery utilizing the plugin and its gallery extension, but entries can be sorted and filtered dynamically. Is there a way to destroy the plugin's established settings? I found that reinitializing the plugin after DOM changes does not help (deleting slides and reinitializing result in blank content for that deleted slide instead of skipping the entry entirely).

I found a workaround that involves using the .stop() function on the selector I've initialized the plugin with. If you have a better/more appropriate way, please let me know. Otherwise, I supposed you can close this issue.

I'm very interested in this too - I've got an infinite scrolling script adding content elements to my grid of featherlightable thumbnails, and while reinitialising featherlight gallery from the console appears to add the new items, the next/prev loop remains as it was when the gallery was first initialised - no new slides added.
@kevinberonilla - I'm curious to hear about your .stop() workaround, if you wouldn't mind sharing it...? At this point, I don't care how inappropriate it might be :)
Cheers

Are you (both) using the filter option?
If not, there's no way FL can "magically" extend the set of images; you started from a set of images, and you bound FL on it, there's no jQuery API to refresh that set. There could be an API to do a rebinding though
I believe that you don't use the filter option, but if you do, then FL's slides method will "refresh" the slides constantly.
E.g:
$('.my-gallery').featherlight({filter: '.a-slide'})
This is bound on .my-gallery (which should remain constant) and will do  $('.my-gallery').find('.a-slide') everytime it's needed.

Hi @marcandre - I tried that, and variations thereof, but all that happens is the next/prev loop is reduced to 1 (ie next/prev just repeatedly show the same slide).
This is how my dynamically duplicated grid item looks:

      [...]

      [...]

If you could provide a jsfiddle, that would be a big time saver.

Forgive me: now that I've rearranged my tangled rats' nest of a template, it's successfully adding new content to the gallery loop. Thanks for clarifying the filter option for me!

Great :-)
I'm closing this, if anyone runs into problems, let me know and I'll reopen.


Turn the resources/organization into a research portal

Here is our searchable database of organizations in Los Angeles active in helping to create Food Security for all Angelenos.


Added image as title

Added option to have an image as the title and the description as content description.

ping?


How to determine from logs why higher-priority rule isn't being applied

I'm attaching a bug report, where I'm expecting a higher-priority rule (injected via add-module) to be applied as the next step (the bug report is one step long), but instead it applies a rule from the original semantics.
step.tar.gz
In particular, I am working on a modified version of this claim: https://github.com/runtimeverification/evm-semantics/blob/33c69c5421d5ca594a994b9ad946e07eae839db9/tests/specs/mcd/vat-frob-diff-zero-dart-pass-rough-spec.k#L7, and the higher-priority rule is a modified (discharged) version of this claim of an arithmetic function: https://github.com/runtimeverification/evm-semantics/blob/33c69c5421d5ca594a994b9ad946e07eae839db9/tests/specs/mcd/vat-addui-pass-spec.k#L7.
I am trying to debug why it's not applying this rule, and can't get the logs to give me anything useful. So I'm wondering what logging options I'm missing. So far, I've tried --log-file log --log-context "rewrite*", hoping to pick up successful/unsuccessful rewrites in the booster. But it's only giving me log events that are [kore][simplification], but no log events about execution or rewrite. So I'm wondering if the log events are just not being produced?

If the request is just for a single step, then I think that full logging with --log-context "*booster*" --log-context "*kore*" should show everything, thereby revealing also the options you're looking for?

The syntax for the context filtering has changed somewhat. @PetarMax's suggestion is broadly correct, just wanted to mention (in case it catches people out) that the filtering now uses a css like syntax for specifying children/nested contexts. So if one wants a nested context foo, this will be captured by --log-context "*>foo" or just --log-context "foo" if it is a top level context.
The above --log-context "*booster*" will work because [booster] is a top level context, but --log-context "rewrite*" would only match a log message of the from [rewrite af122s3] bla, but not [booster][execute][rewrite af122s3] bla. In order to include the latter, we need  --log-context "*>rewrite*" or  --log-context "booster>rewrite*"

Where can I find documentation on this new syntax?

https://github.com/runtimeverification/haskell-backend/blob/master/docs/logging.md#context-filtering

To answer the actual question:
I quickly ran the requests manually using kore-rpc-client against a server started with --log-context "booster>execute" (i.e., context starts with booster and contains execute somewhere below. I could have used booster,execute instead, meaning booster immediately followed by execute)
To prepare this run, one has to unpack the tarball and then compile the LLVM backend library from the llvm_definition/definition.kore file, linking with the blockchain crypto plugin. This is omitted here.

Starting a server with context logging, output into a file:

$  ../../.build/kore/bin/kore-rpc-booster ./definition.kore --module VERIFICATION --llvm-backend-library ./interpreter.so --log-context "booster>execute" > step-server-booster-gt-execute.log 2>&1 &
$

Running the add-module requests 001 and 002, and then request 003:

$  kore-rpc-client \
      send rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/001_request.json --expect rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/001_response.json \
      send rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/002_request.json --expect rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/002_response.json
[Info] Preparing request data
[Info] Sending request rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/001_request.json...
[Info] Response received.
[Info] Round trip time for request 'rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/001_request.json' was 637.992456 ms
[Info] Output matches rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/001_response.json
[Info] Preparing request data
[Info] Sending request rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/002_request.json...
[Info] Response received.
[Info] Round trip time for request 'rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/002_request.json' was 741.513257 ms
[Info] Output matches rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/002_response.json
$
$  kore-rpc-client send rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/003_request.json -o 003-out.json
[Info] Preparing request data
[Info] Sending request rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/003_request.json...
[Info] Response received.
[Info] Round trip time for request 'rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/003_request.json' was 986.903896 ms
[Info] Writing file 003-out.json for the first time.

Terminating the server (SIGINT via ^C)

$ fg
../../.build/kore/bin/kore-rpc-booster ./definition.kore --module VERIFICATION --llvm-backend-library ./interpreter.so --log-context "booster>execute" > step-server-booster-gt-execute.log 2>&1
^C $

Checking what happened in the log (and inspecting the added module)

$  tail step-server-booster-gt-execute.log
$  jj -p < rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/001_request.json | less
$  jj -p < rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/002_request.json | less
$  jj -p params.module < rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/002_request.json | less
$  jj -p params.module < rpc_VAT-SLIP-PASS-ROUGH-SPEC.Vat.slip.pass.rough/002_request.json > module-002.k
$  emacs module-002.k step-server-booster-gt-execute.log &

The module contains a single axiom with label BASIC-BLOCK-1-TO-2 but no UNIQUE-ID, so the context log will have UNKNOWN for this rule.
In the log, we first find the hash of the term that is being rewritten (kore-term line):
[Info] Process request 3 execute
[Info#proxy] Starting execute request
[booster][execute][smt] Starting new SMT solver
[booster][execute][smt] Solver ready to use
[booster][execute][smt] Checking definition prelude
[booster][execute][term 88d06b3][kore-term] <generatedTop>(<kevm>(<k>(#execute_...(one very long line, omitted here)

Then the rule BASIC-BLOCK-1-TO-2 is tried first (its UNIQUE-ID is UNKNOWN).
[booster][execute][term 88d06b3][rewrite UNKNOWN][detail] BASIC-BLOCK-1-TO-2
[booster][execute][term 88d06b3][rewrite UNKNOWN][match][failure] Symbols differ: .WordStack_EVM-TYPES_WordStack() _:__EVM-TYPES_WordStack_Int_WordStack(chop(_)_WORD_Int_Int(VarABI_wad:SortInt{}), _:__EVM-TYPES_WordStack_Int_WordStack(#lookup(_,_)_EVM-TYPES_Int_Map_Int(VarACCT_ID_STORAGE:SortMap{}, keccak(_)_SERIALIZATION_Int_Bytes(_+Bytes__BYTES-HOOKED_Bytes_Bytes_Bytes(#buf(_,_)_BUF-SYNTAX_Bytes_Int_Int("32", VarABI_usr:SortInt{}), #buf(_,_)_BUF-SYNTAX_Bytes_Int_Int("32", keccak(_)_SERIALIZATION_Int_Bytes(_+Bytes__BYTES-HOOKED_Bytes_Bytes_Bytes(#buf(_,_)_BUF-SYNTAX_Bytes_Int_Int("32", VarABI_ilk:SortInt{}), "\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL\NUL...truncated")))))), _:__EVM-TYPES_WordStack_Int_WordStack("8766", _:__EVM-TYPES_WordStack_Int_WordStack(chop(_)_WORD_Int_Int(VarABI_wad:SortInt{}), _:__EVM-TYPES_WordStack_Int_WordStack(VarABI_usr:SortInt{}, _:__EVM-TYPES_WordStack_Int_WordStack(VarABI_ilk:SortInt{}, _:__EVM-TYPES_WordStack_Int_WordStack("1704", _:__EVM-TYPES_WordStack_Int_WordStack("2094874590", .WordStack_EVM-TYPES_WordStack()))))))))

The rule failed because of a mismatch in the word-stack field, which was expected empty .WordStack... but contained a cons _:_....
By inspection of the module (a bit cumbersome because it is unformatted and all names are quote-escaped), we find that the generated rule _reqires an empty <word-stack>:
..., Lbl'-LT-'wordStack'-GT-'{}(Lbl'Stop'WordStack'Unds'EVM-TYPES'Unds'WordStack{}()), Lbl'-LT-'localMem'-GT-'{}(...
The next group of rules by priority is tried.
[booster][execute][term 88d06b3][rewrite 1eb6b53][detail] EVM.step
[booster][execute][term 88d06b3][rewrite 1eb6b53][match][success] rewrite 1eb6b53
[booster][execute][term 88d06b3][rewrite 1eb6b53][match][success][substitution] Substitution: Rule#Var_Gen21:SortBlockCell{} -> <block>(<previousHash>(VarPREVIOUSHASH_CELL_2b4a2c...(one very long line, omitted here)
[booster][execute][term 88d06b3][rewrite 1eb6b53][success][term 16fdcb6][kore-term] <generatedTop>(<kevm>(<k>(#next[_]_...(resulting term in one line, omitted)

Rule EVM.step (unique ID 1eb6v53...) succeeds. The substitution is printed after the match; no requires clauses are present so the resulting term immediately follows.
More rules (at the same priority level) are tried:
[booster][execute][term 88d06b3][rewrite 0752843][detail] EVM.Ccall2-cool
[booster][execute][term 88d06b3][rewrite 0752843][match][failure] Cannot match variable in subject:
VarCONTINUATION:SortK{}
kseq(#freezerCcall(_,_,_,_,_,_)_EVM_Exp_Schedule_BExp_Gas_Gas_Int_Bool1_(kseq(Rule#VarK0:SortSchedule{}, dotk()), kseq(Rule#VarK2:SortGas{}, dotk()), kseq(Rule#VarK3:SortGas{}, dotk()), kseq(Rule#VarK4:SortInt{}, dotk()), kseq(Rule#VarK5:SortBool{}, dotk())), Rule#Var_DotVar2:SortK{})
[booster][execute][term 88d06b3][rewrite 2d5c3f2][detail] EVM.Ccallgas2-cool
[booster][execute][term 88d06b3][rewrite 2d5c3f2][match][failure] Cannot match variable in subject:
VarCONTINUATION:SortK{}
kseq(#freezerCcallgas(_,_,_,_,_,_)_EVM_Exp_Schedule_BExp_Gas_Gas_Int_Bool1_(kseq(Rule#VarK0:SortSchedule{}, dotk()), kseq(Rule#VarK2:SortGas{}, dotk()), kseq(Rule#VarK3:SortGas{}, dotk()), kseq(Rule#VarK4:SortInt{}, dotk()), kseq(Rule#VarK5:SortBool{}, dotk())), Rule#Var_DotVar2:SortK{})

These two rules fail because VarCONTINUATION occurs in the subject's k cell but the rules expect more kseq nodes there.[1]
More log lines with failed rule applications follow, each with context [booster][execute][term 88d06b3][rewrite SOME-UNIQUE-ID].... Then, since the request had max-depth: 1, the execute is finished and the term is simplified (many lines with context [booster][execute][simplify]...).
[1] The logging here should actually emit single lines but does not,
this has to be fixed.

Thanks @jberthold ! I was able to determine that our mechanism for injecting sub-proofs for KClaim style proofs was not working in pyk because of this. Once the rules are appropriately injected, we are indeed getting the needed rules being applied. I think this can be closed!


grpc: merge the inspector with the decoder

Signed-off-by: Kuat Yessenov<EMAIL_ADDRESS>Description: apply visitor pattern to reduce code duplication in gRPC parsing
Risk Level: medium (protocol parsing)
Testing: existing unit testst
Docs Changes: none
Release Notes: none

/azp run envoy-linux


Setting mob gives UnhandledPromiseRejectionWarning

Steps to reproduce:

Remove the .git/.gitmessage file from the repo if it's present
Set the mob with a co-author that exists in ~/.git-authors

Expected:
↪ git mob rk
Dennis Ideler<EMAIL_ADDRESS>Richard Kotze<EMAIL_ADDRESS>
Actual:
↪ git mob rk
Dennis Ideler<EMAIL_ADDRESS>Richard Kotze<EMAIL_ADDRESS>(node:16471) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '.git/.gitmessage'
(node:16471) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:16471) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code

Environment info:
↪ git rev-parse HEAD
ce80f51116290a3a61ad3e0c6390b228125ca085
↪ node -v
v8.9.1
↪ npm -v
5.6.0
↪ distro
NAME="Ubuntu"
VERSION="17.10 (Artful Aardvark)"

I've fixed this bug with this commit 6cbe73c31fb8cc3208be321c23694cba7a141d4c


Should sidestep::Opcode flag fields be unsigned?

Cross-compiling 2.5 for Windows on x86-64 with gcc 6.2.0 gives me these errors:
src/windows/ia32_opcode_map.cc:343:1: error: narrowing conversion of ‘2148073472u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
 };
 ^
src/windows/ia32_opcode_map.cc:947:1: error: narrowing conversion of ‘2148073472u’ from ‘unsigned int’ to ‘int’ inside { } [-Wnarrowing]
 };
 ^

The reason is that OT_ADDRESS_MODE_M is defined as 0x80000000 — too wide to fit into a 32-bit signed int — yet used to compute values for sidestep::Opcode::flag_dest_.  Something similar happens for one of the other flag fields.  The compiler is probably allowed to do surprising and horrible things in optimising this.
This diff makes it compile cleanly for me (inline, since github won't let me attach it):
diff -rc gperftools-2.5/src/windows/mini_disassembler_types.h gperftools-2.5-patched/src/windows/mini_disassembler_types.h
*** gperftools-2.5/src/windows/mini_disassembler_types.h	2015-10-01 17:02:57.000000000 +0200
--- gperftools-2.5-patched/src/windows/mini_disassembler_types.h	2016-11-25 16:08:24.512717045 +0100
***************
*** 188,196 ****
    // Description of the type of the dest, src and aux operands,
    // put together from an enOperandType flag and an enAddressingMethod
    // flag.
!   int flag_dest_;
!   int flag_source_;
!   int flag_aux_;

    // We indicate the mnemonic for debugging purposes
    const char* mnemonic_;
--- 188,196 ----
    // Description of the type of the dest, src and aux operands,
    // put together from an enOperandType flag and an enAddressingMethod
    // flag.
!   unsigned int flag_dest_;
!   unsigned int flag_source_;
!   unsigned int flag_aux_;

    // We indicate the mnemonic for debugging purposes
    const char* mnemonic_;

Thanks, but then few other places that process those fields need to be converted to unsigned. Can you also please do it?

To be honest, I'm not confident that I understand these flags and their usage well enough!  I was hoping that somebody else might know.

ah, this is actually fixed in 22f7ceb97a63bcbc9d824a80916bb7a809fad1f2


include-cleaner doesn't understand std::hash extensions for custom types

I have a header (HashUtils.h) with multiple extensions to std::hash, which lets me put Qt-specific types as keys in to std::unordered_* containers. I simply include HashUtils.h where I want to have implicit hashing of those custom types, but clangd gives the "Included header HashUtils.h is not used directly (fix available)" warning on all occasions.
Example hash extension from the header:
namespace std {
template <>
struct hash<QPointF> {
  size_t operator()(const QPointF& p) const noexcept { /* content removed for brevity */ }
};

System information
Output of clangd --version:
clangd version 15.0.0 (git://code.qt.io/clang/llvm-project.git 218224bce00c69b6f8a396e681c51256fc6f1b99)
Features: linux
Platform: x86_64-unknown-linux-gnu
Editor/LSP plugin:
Qt Creator 9.0.2
Operating system:
Ubuntu 22.04.2 LTS

Yeah, this is a known issue of using the extension point code pattern, this pattern is hard for the IWYS/IWYU tool to handle.
We're working on a better solution for this (we plan to propose a new IWYU always_keep pragma). For now, to suppress the false unused-include diagnostics, you can

add a trailing // IWYU pragma: keep on #include "HashUtils.h"
or add this header to the clangd's IgnoreHeaders config, something like below

Diagnostics:
    Includes:
     IgnoreHeader: [
        HashUtils\.h
     ]

Hi,
Thanks for confirming the issue. I already set up "pragma keep" for all false reports to silence them in code.

duplicate of https://github.com/clangd/clangd/issues/2050


replication issue: null value in column "id" violates not-null constraint

Jul 18 08:13:44: [ERROR] - global_lib.py (413): An error occurred during the replica. (<class 'psycopg2.IntegrityError'>, IntegrityError('null value in column "id" violates not-null constraint
DETAIL:  Failing row contains (null, null, null, null, null, 2, null, null, b:1:144,b:2:144, null, null, null, null, null, null, null, 0, 0, 0, null).
CONTEXT:  SQL statement "
UPDATE  switchv2.rate
  SET
   day=NULL,
   data=NULL,
   tier0='b:1:144,b:2:144',
   tier1=NULL,
   tier2=NULL,
   tier3=NULL,
   tier4=NULL,
   tier5=NULL,
   tier6=NULL,
   tier7=NULL,
   max_los=NULL,
   min_los='2',
   id=NULL,
   tier_active='0',
   max_los_thru=NULL,
   min_los_thru=NULL,
   rateplan_code=NULL,
   number_of_units=NULL,
   close_to_arrival='0',
   close_to_departure='0'
  WHERE ("id","rateplan_code","day")=('S000186','ST_BAR4','2017-08-25');
"
PL/pgSQL function sch_chameleon.fn_process_batch(integer,integer) line 216 at EXECUTE
',), <traceback object at 0x7f99ac2c5148>)

Mysql does do this correctly in the replication (I am replicating of a slave), but I do not know the exact sql statement right now that would trigger this.
I guess it is a rowlevel entry that fails.

Can you please paste the table definitions on both databases?

mysql:
 CREATE TABLE `rate` (
  `id` varchar(16) NOT NULL,
  `day` date NOT NULL,
  `rateplan_code` varchar(64) NOT NULL,
  `data` varchar(1024) DEFAULT NULL,
  `number_of_units` int(11) DEFAULT NULL,
  `min_los` int(11) DEFAULT NULL,
  `max_los_thru` int(11) DEFAULT NULL,
  `max_los` int(11) DEFAULT NULL,
  `tier0` varchar(1024) DEFAULT NULL,
  `tier1` varchar(1024) DEFAULT NULL,
  `tier2` varchar(1024) DEFAULT NULL,
  `tier3` varchar(1024) DEFAULT NULL,
  `tier4` varchar(1024) DEFAULT NULL,
  `tier5` varchar(1024) DEFAULT NULL,
  `tier6` varchar(1024) DEFAULT NULL,
  `tier7` varchar(1024) DEFAULT NULL,
  `tier_active` int(4) NOT NULL DEFAULT '0',
  `close_to_arrival` tinyint(1) NOT NULL DEFAULT '0',
  `close_to_departure` tinyint(1) NOT NULL DEFAULT '0',
  `min_los_thru` int(11) DEFAULT NULL,
  PRIMARY KEY (`id`,`rateplan_code`,`day`) USING BTREE,
  KEY `hotel_id` (`id`),
  KEY `rateplan_code` (`rateplan_code`),
  KEY `dayrateindex` (`day`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8

postgresql:
--
-- Name: rate; Type: TABLE; Schema: switchv2; Owner: pgreplica
--

CREATE TABLE rate (
    id character varying(16) NOT NULL,
    day date NOT NULL,
    rateplan_code character varying(64) NOT NULL,
    data character varying(1024),
    number_of_units integer,
    min_los integer,
    max_los_thru integer,
    max_los integer,
    tier0 character varying(1024),
    tier1 character varying(1024),
    tier2 character varying(1024),
    tier3 character varying(1024),
    tier4 character varying(1024),
    tier5 character varying(1024),
    tier6 character varying(1024),
    tier7 character varying(1024),
    tier_active integer NOT NULL,
    close_to_arrival integer NOT NULL,
    close_to_departure integer NOT NULL,
    min_los_thru integer
);

ALTER TABLE rate OWNER TO pgreplica;

--
-- Name: rate pk_rate_35; Type: CONSTRAINT; Schema: switchv2; Owner: pgreplica
--

ALTER TABLE ONLY rate
    ADD CONSTRAINT pk_rate_35 PRIMARY KEY (id, rateplan_code, day);

--
-- Name: idx_dayrateindexrate_36; Type: INDEX; Schema: switchv2; Owner: pgreplica
--

CREATE INDEX idx_dayrateindexrate_36 ON rate USING btree (day);

--
-- Name: idx_hotel_idrate_37; Type: INDEX; Schema: switchv2; Owner: pgreplica
--

CREATE INDEX idx_hotel_idrate_37 ON rate USING btree (id);

--
-- Name: idx_rateplan_coderate_38; Type: INDEX; Schema: switchv2; Owner: pgreplica
--

CREATE INDEX idx_rateplan_coderate_38 ON rate USING btree (rateplan_code);

it's weird the id gets null as the field is primary key and marked not null on mysql.
did you enabled the binlog_row_image=FULL in my.cnf?

no - it was set to minimal.
I will check if changing it on the "intermediate" slave used as source for this migration is sufficient.

the mysql replica library requires the FULL image.
https://python-mysql-replication.readthedocs.io/en/latest/limitations.html
I'll add a check to the replica process to prevent the replica start without FULL row image.

setting the correct values on the intermediate slave is absolutely fine 👍

please let me know if the issue is fixed so I can close it

as soon as the issue is confirmed fix I shall close it

with binlog_row_image=FULL on the mysql slave acting as master now everything seems to work fine.


Jm/pr63 merge

resolve merge conflicts for #63 and reinstate some of the formatting

@mynameistechno I resolved the merge conflicts and did some formatting tweaks.
Thanks for the changes. Some great stuff!


Support odbc connections for relational databases

Currently, it's possible to connect with oledb, ado.net native connections. It should also be possible to use ODBC connections

Preview available at https://ci.appveyor.com/project/CdricLCharlier/nbi/build/1.14.0-ci.7


bug(generator): cannot generate when go 1.18+ generics are used.

Generator blows up really hard on generics, would be nice to handle.

Currently, decodeASTStruct does not consider TypeParams of ast.TypeSpec. That's why structs with generics cannot be generated. To support generics, I think fastssz also needs to decode TypeParams.

Do you have an elaborated set of examples on how do you want to use generics? I am trying to understand the full scope. The example in #160 should be fairly easy to handle in itself.

This is a fix to encode the struct in #160.


dashboard storybook improvements

Problem solved
Short description of the bug fixed or feature added

PR-Codex overview
This PR introduces mobile viewport settings to various story files and updates button sizes in the Button component story.
Detailed summary

Added @storybook/addon-viewport to enable mobile viewport settings in stories
Updated button sizes in the Button component story to include default, sm, icon, and lg
Refactored various story files to include mobileViewport function for consistent mobile view testing

The following files were skipped due to too many changes: pnpm-lock.yaml, apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/general/Sidebar.stories.tsx

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#4369  👈
main

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

Join @MananTank and the rest of your teammates on  Graphite


How many minimum images required for training

Hello @SamSamhuns,  @gwkrsrch, @VictorAtPL
I have around 60 Images and custom 8 tokens, each image consist of 3-4 same key but different values and annotation format is like SROIE I have followed this link
Converted my data to this structure and followed the converter script as mention in the blog
{
[{
    "Name": "Tom",
    "Buyer": "Conda",
    "contact_number": "989898989898",
    "alt_number": "55555555",
    "Buyer_id": "9856321023"
},

{
    "Name": "Hanks",
    "Buyer": "Conda",
    "contact_number": "99999999999",
    "alt_number": "25823102",
    "Buyer_id": "9856321024"
},

{
    "Name": "Lita",
    "Buyer": "Conda",
    "contact_number": "4545858402",
    "alt_number": "12121212121",
    "Buyer_id": "9856321022"
}]
}

My metadata.jsonl
{"file_name": "1.png", "ground_truth": "{\"gt_parse\": [{\"Name\": \"Tom\", \"Buyer\": \"Conda\", \"contact_number\": \"989898989898\", \"alt_number\": \"55555555\", \"Buyer_id\": \"9856321023\"}, {\"Name\": \"Hanks\", \"Buyer\": \"Conda\", \"contact_number\": \"99999999999\", \"alt_number\": \"25823102\", \"Buyer_id\": \"9856321024\"}, {\"Name\": \"Lita\", \"Buyer\": \"Conda\", \"contact_number\": \"4545858402\", \"alt_number\": \"12121212121\", \"Buyer_id\": \"9856321022\"}]}"}

this is my config my images size is variable max (2205 X 1693) min (1755 X 779)
resume_from_checkpoint_path: null # only used for resume_from_checkpoint option in PL
result_path: "/content/drive/MyDrive/results"
pretrained_model_name_or_path: "naver-clova-ix/donut-base" # loading a pre-trained model (from moldehub or path)
dataset_name_or_paths: ["/content/drive/MyDrive/my_VDU"] # loading datasets (from moldehub or path)
sort_json_key: False # cord dataset is preprocessed, and publicly available at
train_batch_sizes: [1]
val_batch_sizes: [1]
input_size: [1280, 960] # when the input resolution differs from the pre-training setting, some weights will be newly initialized (but the model training would be okay)
max_length: 768
align_long_axis: False
num_nodes: 1
seed: 2022
lr: 3e-5
warmup_steps: 300 # 800/8*30/10, 10%
num_training_samples_per_epoch: 800
max_epochs: 80
max_steps: -1
num_workers: 8
val_check_interval: 1.0
check_val_every_n_epoch: 10
gradient_clip_val: 1.0
verbose: True

I have trained using this configuration to epoch's 300 ,200, 120,80 ,40, 20, but all the results were miss spell, number were wrong.
don't know if i am doing something wrong or should I do some tweaks,or increase my training data
I even tried to combine the synthdog 200 images data but no luck still results were miss spell

60 might be too small of a sample. I trained with around ~1200 images and it was better. If you have fewer images, train with fewer epochs and use a smaller learning rate than 3e-5. Your warmup_steps should be higher around 800 since they recommend 10% of the total steps.

This part would be helpful to you: https://github.com/clovaai/donut#data
If you have more than one ground truth per an image, please use gt_parses not gt_parse.
Hope this helps :)

@SamSamhuns is there any explanation for warmup_steps formulat? I have 4790 data to be trained

@ariefwijaya
It is num_training_samples_per_epoch / num_workers * max_epochs / 10.


Add music recognition tutorial author

Signed-off-by: tumao<EMAIL_ADDRESS>

/lgtm

Codecov Report

Merging #444 (ccec974) into main (c10001e) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #444   +/-   ##
=======================================
  Coverage   59.08%   59.08%
=======================================
  Files         145      145
  Lines        5687     5687
  Branches      833      833
=======================================
  Hits         3360     3360
  Misses       2105     2105
  Partials      222      222

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 c10001e...ccec974. Read the comment docs.

/approve


[Bug] Stakeholders not being added to Informational and Rest Review events

This is true for Prod, PPE and Dev.
The SDK Review scheduler is working as expected regarding the Stakeholders.

Fixed, this was caused by not having the latest version as the published version.
I'm not closing this issue right now, since we need to get the published versions from dev in PPE and PROD too.


Add unused variable task

Hi
I was playing around with recode and sourceror and I created this new task.
I hope it could be useful.

Hi @lucacervello
thank you for contributing to recode. Your code looks great.
I have a little concern whether we should change the code in this way. The other tasks in Recode are just changing the formatting of the code and not the logic. The compiler also provides warnings for unused variables and you should take a look at them.
What do your think?

I'm working on a project with the flag --warnings-as-errors enabled and wanted an automatic way to fix them.
Sometimes you are working and --warnings-as-errors can be annoying.

Ok.
Does your implementation work for unused arguments?
Example:
def foo(a, b) do
  a
end

I have another PR with that task ready.
I divided unused variable and unused parameters.

Ok. I will add your PR in one of the next versions. For now I am working on some changes.

Pull Request Test Coverage Report for Build 7c8c6ca871632b7eb674dc52ae23f04b2f3260b6-PR-27

15 of 17 (88.24%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.1%) to 94.566%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/recode/task/unused_variable.ex
15
17
88.24%

Totals

Change from base Build 2aa844a96c52a5cd6eddf790f77755e0973d50e9:
-0.1%

Covered Lines:
905

Relevant Lines:
957

💛  - Coveralls


[docs] add definition of StatusBar

Description
The page for StatusBar  does not define what the status bar is.  A screenshot  would be helpful as well.

Hi @gregfenton, we usually do not use the screenshot for the APIs or Components, in most cases Snacks are the way to go, which besides the preview also enable users to play and experiment with the API or Component code directly on the page.
Screenshots also are hard to maintain and tends to get outdated quickly. Do you have a problems with opening the example in build-in simulator or running it's code on your own device?

How about just a description of what a StatusBar is in the preamble of the doc?  Having to open a sample just to figure out what a "StatusBar" is makes the information less accessible.  And...there's a chance the reader still wouldn't know "what to look for".
Also, are there differences between different platforms when it comes to the StatusBar.  I'm not talking  about the differences you get by tweaking configuration, but differences that are native to the platform?

Agree, that is a good idea to expand the initial sentences with the general description what exactly StatusBar is.
Would you like to try expand that preamble and push a PR?


[DUOS-806][risk=low] Ignore unfixed vulnerability

Addresses
https://broadinstitute.atlassian.net/browse/DUOS-806
See also https://github.com/DataBiosphere/consent/pull/785 for a more comprehensive fix
Temporary workaround for addressing a known, unfixed vulnerability.

Have you read CONTRIBUTING.md lately? If not, do that first.
I, the developer opening this PR, do solemnly pinky swear that:

[ ] I've followed the instructions if I've made any changes to the API, especially if they're breaking changes
[ ] I've updated the RC_XXX release ticket with any manual steps required to release this change
[ ] I've updated the FISMA documentation if I've made any security-related changes, including auth, encryption, or auditing
[ ] I've updated Swagger to reflect any API changes

In all cases:

[ ] Get two thumbsworth of review and PO signoff if necessary
[ ] Verify all tests go green
[ ] Squash and merge; you can delete your branch after this unless it's for a hotfix. In that case, don't delete it!
[ ] Test this change deployed correctly and works on dev environment after deployment

LGTM, thanks!


Difference between h5 file asc file and pneumatk

I was using pneumatk in the past, and now I am trying to transition to NeuroM, but it seems that there is a small difference between the results of pneumatk and NeuroM. Also there is a very big difference between NeuroM h5 file and asc file, I think those files should be identical:

from neurom import ezy
from neurom.features import NEURITEFEATURES, NEURONFEATURES
from neurom.core.types import TreeType

H5pop = [ezy.load_neuron(cell) for cell in ['C050600B1.h5']]
H5neurom = []
H5neurom.append([round(sum(NEURITEFEATURES['section_lengths'](i, neurite_type=TreeType.basal_dendrite)),2) for i in H5pop])
H5neurom.append([round(sum(NEURITEFEATURES['section_volumes'](i, neurite_type=TreeType.basal_dendrite)),2) for i in H5pop])
H5neurom.append([round(sum(NEURITEFEATURES['section_areas'](i, neurite_type=TreeType.basal_dendrite)),2) for i in H5pop])

import pneumatk as pn
popPne = [ pn.io.load(cell) for cell in ['C050600B1.h5']]
H5pnue =[]
H5pnue.append([sum(i.get_section_lengths(neurite_type='basal')) for i in popPne])
H5pnue.append([sum(i.get_section_volumes(neurite_type='basal')) for i in popPne])
H5pnue.append([sum(i.get_section_surface_areas(neurite_type='basal')) for i in popPne])

ASCpop = [ezy.load_neuron(cell) for cell in ['C050600B1.asc']]
ASCneurom =[]
ASCneurom.append([sum(NEURITEFEATURES['section_lengths'](i, neurite_type=TreeType.basal_dendrite)) for i in ASCpop])
ASCneurom.append([sum(NEURITEFEATURES['section_volumes'](i, neurite_type=TreeType.basal_dendrite)) for i in ASCpop])
ASCneurom.append([sum(NEURITEFEATURES['section_areas'](i, neurite_type=TreeType.basal_dendrite)) for i in ASCpop])

import pandas as pnd
pnd.DataFrame([H5pnue, H5neurom, ASCneurom],index = ['h5 pneumatk', 'h5 neurom', 'asc neurom'], columns = ['Basal length' , 'Basal volume', 'Basal area'] )

The code result in this output
                Basal length     Basal volume       Basal area
h5 pneumatk  [3155.24807618]  [1336.19777075]  [6218.93758029]
h5 neurom          [3109.97]        [1345.05]        [6703.85]
asc neurom   [3109.96568975]  [5380.19536895]  [13624.3941565]

The mrphologies are in this file
Morphs.zip
The morphologies were taken from
l2/2012.07.23/morphologies/ascii
and
l2/2012.07.23/morphologies/h5
What do you think?
Thanks.

Hi Oren,
First of all, thank you for the analysis! It is very useful for debugging indeed :)
There are some errors in the pneumatk calculations, so I expect the differences between pneumatk and NeuroM. However the differences between asc and h5 format should not be present. I also noticed a problem recently (I assume this has to do with the ascii loader) with the diameters of ascii files. I have to check this further to make sure that I know what is going wrong there.
Another issue is that we are not 100% sure that the initial converter is OK. As a result, the two files might not be identical.
Lida

Hi Oren,
I can't speak for pneumatk, but I know that NeuroM is quite well tested for h5 and swc. The NL ascii reader is experimental because we have no data we can fully trust, because the format has no specification. However, why do you expect the .asc file to be equivalent to the h5 one? Do you have a tool that you fully trust to make the conversion between one and the other?

@lidakanari @orena1 It would also be interesting to see the .asc numbers with pneumatk, for completeness! Also, do either of you know if NL stores radii or diameters?

@juanchopanza From the data Oren just shared it should be the same as h5 (so diameter). If you check the two files, they contain exactly the same values.
Could we at least check that the diameters are loaded correctly, because I suspect that the factor of 2x in the area (between asc and h5) is caused from the inconsistency of radii - diameters.

@lidakanari It is quite likely that there is a radius/diameter problem. The relevant reader code is here, and it seems to assume the 4th component is a radius.

@juanchopanza I did not managed to open the asc files with pneumatk

With #323, the neurite volume and area numbers are compatible. Some small differences remain, which might require some detailed investigation of the data itself, or the production of h5 and neurolucida samples that we can be completely sure are equivalent.  That looks much better :+1:

I will re-open until we understand the remaining differences.

FYI I opened #324, specifically about the h5/NL issue in neurom.

FYI I opened #324, specifically about the h5/NL issue in neurom.

Note that both the h5 and .asc files used in this comparison break some valid assumptions that can be made of the data and are used in NeuroM:

The h5 does not have real duplicate points on neurite section-section boundaries. It duplicates (x, y, z), but not necessarily d. The assumption is that duplicate points have equal (x, y, z, d). This is now formally specified in the hbp h5 spec
The .asc file adds similar "duplicate" points at neurite section-section boundaries. These do not appear on "standard" .asc files, and seem to be an artifact of some kind of "repair" process or otherwise performed by a "MUK". This breaks the assumption that there are no duplicated points in section-section boundaries. Note that this mangling process is also BBP-specific and ill-defined.

For these reasons, I am reverting the duplicate removal recently introduced for NL .asc files. See PR #360. If and when the "duplicate" insertion process is formalized, we may consider making NeuroM aware of it.


plugins/utils/indent-blankline: fix enable option

The enable option of the indent-blankline plugin was wrongly implemented which was causing a bug when building any nixvim configuration:
error: ‘mkIf’ called with a non-Boolean condition

The bug was introduced in https://github.com/pta2002/nixvim/commit/89bf2d660b6696b7548214e22f74d343397c9d4e.

Oops sorry


Thermos server time out.

This issue is about thermos and I know that this plugin is meant for Spigot but if you don't want to add thermos support that is understandable. In that case just close this issue and just say that thermos won't be supported.
Quest version: v3.5.1
Thermos version: v1.7.10-1614
LOTR mod version: v34.3
The problem is that once a player joins the player times out. This is the server log: https://pastebin.com/3Vct7VEg (Only the bottom part is interesting the rest is normal stuff)
It seems that this line causes the problem:
[17:17:52] [Spigot Watchdog Thread/ERROR]:      me.blackvein.quests.PlayerListener.onPlayerMove(PlayerListener.java:722)
So that is this in the code.
@EventHandler
public void onPlayerMove(PlayerMoveEvent evt) {
    if (evt.getFrom().getBlock().equals(evt.getTo().getBlock())) {
        return;
    }

The only thing which I haven't tried is not using the LOTR mod so I will report back if that changes anything.

I'm not opposed to supporting Thermos, but I have no interest in testing it myself.
Looking at the log, your server is running at a snail's pace. This line:

The server is going slow. Last server tick was 34659ms ago

Says that your last tick was greater than 30 seconds ago. There should be 20 ticks every second. So, it wouldn't surprise me that your server crashed:

The server has stopped responding!

I'd certainly look at your LOTR mod as the culprit first, as the reference Quests line would only cause issues if a player's movement has been improperly modified. If removing LOTR and Quests doesn't resolve the issue, and you're running on sufficient hardware, contact Thermos support.

If you want I can do some more research but I can tell you that it isn't a hardware problem nor a LOTR mod problem. It's definitely between thermos and quests.
I tested with just thermos and quests and I wasn't able to log it. It didn't time out or anything but nothing happened it said logging in for like 15 mins but I will do some more tests later.
If you are willing to fix it if I find the cause you are a hero, well for me then.


[Azure AD] Added docs for authorization policy cmdlets

Docs Build status updates of commit 41f23ea:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azureadps-2.0/AzureAD/Get-AzureADMSAuthorizationPolicy.md
:white_check_mark:Succeeded
View (azureadps-2.0)

azureadps-2.0/AzureAD/Set-AzureADMSAuthorizationPolicy.md
:white_check_mark:Succeeded
View (azureadps-2.0)

mapping/groupMapping-2.0.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

Fixes #713

Docs Build status updates of commit 23ab688:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

azureadps-2.0/AzureAD/Get-AzureADMSAuthorizationPolicy.md
:white_check_mark:Succeeded
View (azureadps-2.0)

azureadps-2.0/AzureAD/Set-AzureADMSAuthorizationPolicy.md
:white_check_mark:Succeeded
View (azureadps-2.0)

mapping/groupMapping-2.0.json
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel

@CelesteDG , please review this.

Hi @CelesteDG, I have update the descriptions for both cmdlets. Please review.


 Currently, we have none.

https://github.com/Clemson-Esports/Clemson-Esports-Website/pull/25 created here


Fix: typos

Fix: typos

Atlantis commands can't be run on fork pull requests. To enable, set --allow-fork-prs  or, to disable this message, set --silence-fork-pr-errors

thanks so much for your contribution!


Improvement/use spring context

Change the way how the library is working.
In general there is no need for having the CircuitBreakerRegistry and we could rather rely on Springs ApplicationContext.
In order to keep the lib backwards compatible and give others the chance to migrate I only marked the CircuitBreakerRegistry as @Deprecated.
Open tasks:

[x] Add Unit Tests
[x] Update Readme
[x] Update Example project

I really like the idea :)

:+1:

@mmodabber @coders-kitchen pls review and +1

:+1:

:+1:

I would love to have this. If you guys plan on releasing it in the next couple of days I would wait with updating our projects to the newest version. Then I could do all changes in one go :)

:+1:

Early adopters around here ;) :D

:+1:

just released it @JonasJurczok
<dependency>
  <groupId>org.zalando</groupId>
  <artifactId>failsafe-actuator</artifactId>
  <version>0.6.0</version>
</dependency>

I meant entries -.-
Am 15.12.2017 13:31 schrieb "Malte"<EMAIL_ADDRESS>
@MALPI commented on this pull request.
In src/main/java/org/zalando/failsafeactuator/endpoint/
FailsafeEndpoint.java
https://github.com/zalando-incubator/failsafe-actuator/pull/62#discussion_r157190453
:

} else {

 return handleWithApplicationContext();

}

}

private Map<String, CircuitBreakerState> handleWithApplicationContext() {
final Map<String, CircuitBreakerState> breakerStates = new HashMap<>();

final Map<String, CircuitBreaker> beanNamesForType = context.getBeansOfType(CircuitBreaker.class);

if(beanNamesForType == null) {

 return breakerStates;

}

for(String key : beanNamesForType.keySet()) {

I need the key as well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/zalando-incubator/failsafe-actuator/pull/62#discussion_r157190453,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFsdFEgQoHxsQ5VUk8QKJKbN-op2JOVks5tAmalgaJpZM4Qz23b
.

W00p w00p :) thanks
Am 15.12.2017 13:54 schrieb "Malte"<EMAIL_ADDRESS>
just released it @JonasJurczok https://github.com/jonasjurczok

org.zalando
failsafe-actuator
0.6.0

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zalando-incubator/failsafe-actuator/pull/62#issuecomment-351998887,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFsdGVUT47yeRXmHPlku0IHokSM4MkFks5tAmvrgaJpZM4Qz23b
.


Different Typofixes / Suggestions

Typofix for german translation file
Just a few suggestions for better german translation
Typofix on variablename in translation files and use of ("label.appearEnce" ... E >> a)

Many Thanks!


feat: add onUserAction to be notified whenever state could be updated

What: add onUserAction to be notified whenever state could be updated

Why: This allows us to gate onStateChange to only be called when state actually changed. Closes #148

How:

Pass a type 100% of the time (default to unknown)
gate calling onStateChange
always call onUserAction.

Not sure I love the name onUserAction because this will be called even if things happen programmatically. Hence this is not documented yet...

Checklist:

[x] Documentation
[x] Tests
[x] Ready to be merged
[ ] Added myself to contributors table N/A

Codecov Report

Merging #149 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #149   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           4      4
  Lines         260    263    +3
  Branches       62     63    +1
=====================================
+ Hits          260    263    +3

Impacted Files
Coverage Δ

src/downshift.js
100% <100%> (ø)
: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 cba6c69...520ec4e. Read the comment docs.

~/Developer/downshift (master)
🏎  $ npm publish --tag rc
+<EMAIL_ADDRESS>


Add autocompletion for :XSelectScheme

With #23, we're letting users explicitly set the scheme to test or build. That's fantastic, but it would be really great to add some autocompletion to improve the user experience.
This would probably entail changing the scheme finding script to return a list of schemes instead of a single scheme, and then caching that list.

There's a problem with this right now since the find_scheme.sh script only searches through the project. Not any possible workspace.

Is that an issue? Do we want to search the workspace? I was basically following Carthage's lead here, and it seemed reasonable. The workspace will most likely be littered with dependency schemes, but we can focus on the current project's schemes in the top level project file.
Maybe this is naive of me? I've never needed more than this.

I occasionally use workspace schemes for development dependencies via CocoaPods. I would also imagine you would use these if you were manually maintaining a workspace with multiple projects and trying to rebuild subprojects individually.

I guess it makes sense in hindsight, but I'm kind of surprised that the output for xcodebuild -list for a workspace is actually only schemes:
❯ xcodebuild -list -workspace Argo.xcworkspace
Information about workspace "Argo":
    Schemes:
        Argo-iOS
        Argo-Mac
        Argo-watchOS
        Curry-iOS
        Curry-Mac

Obviously we'll have to support both, though. I don't think that's a huge deal since schemes are always the last thing listed, though.


feat: add support for custom commit message

I forgot to include this in https://github.com/c2corg/browserslist-update-action/pull/55. 😅
This feature will help squash-merge workflows where the commit message is used instead of the PR title if there's only one commit.

Now released in v1.2.0. Thanks again!

Thanks! 🚀


Make adding to additional_words.csv quicker

My most common reason for opening user directory is adding to additional_words.csv.
Should we:

Option 1: add a command to add the selection additional_words
Option 2: add a shortcut to open additional_words or other settings file

@wolfmanstout did (1) in his fork :)

Yeah, I made a fancy version that optionally lets you supply a spoken form, which it will test to ensure that the new vocabulary works (and if not, it adds the spoken form). It depends on some private APIs so it's not something I can push upstream yet, but I plan to factor it out into a separate repository at some point:
https://github.com/wolfmanstout/wolfmanstout_talon/blob/4cb0578bf3f2059f3f647d2ce7b41ac3da143243/code/vocabulary.py#L185

If we wanted to do (2), is there an action that opens a particular file in the user's preferred editor? Is there even a good way to do this cross-platform? We could definitely have the action even if not, so that users can override it to their preference, but it would be neat if we could just Do The Right Thing.

Addressed in #846 and #847.


Works with LG5k (Thunderbolt 3 / TitanRidge) NOT on Pro Display XDR

Has anyone got any success using this with Pro Display XDR over either thunderbolt 3 / Single 1.4 or Dual DP 1.2?

Hi, the Pro Display XDR probably requires DisplayServices control which is implemented but only for internal displays. We'll be working on that in this issue:
https://github.com/MonitorControl/MonitorControl/issues/364

Also since not many users has this display, please let us help testing once we have something in this reagrd! Please follow issue #364! Thank you

For those with Apple displays, there is a link to a test build with proper support here: https://github.com/MonitorControl/MonitorControl/issues/539


Add ability to inject a simulated transit into a SimulatedRainbow.

It'd be great to be able to inject a fake transit signal into a simulated rainbow object. One structure I might imagine for this is a SimulatedRainbow.inject_transit() function that could take as inputs some transit parameters and inject a transit. (It'd be super snazzy if it could take arrays of  planet radii and limb-darkening coefficients, so we inject realistic transmission spectra!)

I'm looking into this!  I currently have a decent amount done but need to clean up the interface.

Awesome! I put this one up here for you! I'll assign you, and call it in-progress on the Project board!


ButtonBarView's cell - selected color problem

iOS: 10.3
Device: iPhone 5c
Please see the video below:
https://www.youtube.com/watch?v=t44Jk0wCM5Y&feature=youtu.be
Notice how the selected text color in ButtonBarView for the last cell (Subname 7) remain unchanged when I select other cell.
I guess it's a problem with reuse mechanism.

hey @hoangelec !
This issue is fixed on the master branch but we haven't released a version including it yet. Please point your pod to the master branch until we do that !
Cheers


Adding this repo as custom repo is not possible (repo info file is missing)

It is not possible to add this repo as a custom repository in - I guess - the new HACS.
If I understand the dev guidelines correctly, a repository.(json/yaml/yml) file has to be added to the repo root, please see
https://developers.home-assistant.io/docs/add-ons/repository/
for details.
I will try to install it manually, thank you so much for your work!
Regards,
HerrB92

It is not possible to add this repo as a custom repository in - I guess - the new HACS.
If I understand the dev guidelines correctly, a repository.(json/yaml/yml) file has to be added to the repo root, please see
https://developers.home-assistant.io/docs/add-ons/repository/
for details.
I will try to install it manually, thank you so much for your work!
Regards,
HerrB92

Thanks for your report, but add-ons are different from HACS custom integration. To install this integration follow this steps:

Install HACS store
Go to HACS > Integration > Press the 3 dots on top corner > Add repository > Paste this repository as URL and select Integration as Category
After that, still in Hacs Store and press the floating button "explore & add repository" now search for tapo and install it.
Restart Home Assistant
Go to Home Assistant Integration and try to search tapo :) will be ;)

If by following these steps you can solve the problem, close this issue, thanks

Hi petretiandrea,
yes, I  am sorry, I needed some additional time to recognize that HACS is an additional integration and not the same as the Custom Repos in the default system.
Thank you!


Updated ReadME

Updated ReadME with a simple and "beginner friendly" how to setup.

Hey @xconstarx,
Thank you for your contribution. This is a very good idea to add more detailed instructions.
What about putting them in a dedicated README in the nextcloud directory instead of the repo's one ?

Sorry im not so familar with github and the structure here. Just wanted to save some time typing that stuff.

That's fine. I'll do it. Thanks anyway for the instructions !


Fix: getToken not returning userID

Fixes

Error 429 too many requests when using getUserIDFromUsername passing the authorization header to the request, the issue was coming from the getProfilePage which was using Authorization header that was causing to return 404 Not Found and also breaking the other functions that calls getProfilePage so this fixes both 429 and 404 erros.

Edit: removed the change on getProfilePage headers method because uncertainty on how this is meant to be used aside from being used by other functions

#217 this was fixed on PR #216

getTokenID not returning userID

#188
#209
#220

The regex was not properly working now it should return the token with the userID
-  #148 Not related

Thanks! I'm outside rn, will test & publish soon!

Quick question the getProfilePage, should be used on its own and return some data? like this:
    const userProfile = await threadsAPI.getProfilePage('https://www.threads.net/@', username);
    console.log(userProfile);

getTokenID not returning userID

Oh hey, I just ran getToken with the fixed test code in #225 and confirmed the userID work correctly! Thanks.

Quick question the getProfilePage, should be used on its own and return some data? like this:

I don't think everyone got this right, but this was actually an internal method added at https://github.com/junhoyeo/threads-api/pull/106/files#diff-a0ae255b36f5cb107ebf68b94c00973a564b5dd5450e3c041cf8b44ecd0233b0R181 (to fetch raw doc as HTML, but cleaned)

I don't think everyone got this right, but this was actually an internal method added at https://github.com/junhoyeo/threads-api/pull/106/files#diff-a0ae255b36f5cb107ebf68b94c00973a564b5dd5450e3c041cf8b44ecd0233b0R181 (to fetch raw doc as HTML, but cleaned)

Think it'll be better to rename getProfilePage to _getProfileHTML or something more direct

I'll merge this. Gonna close the issues after releasing next version.


Crash with "ValueError: could not convert string to float:"

Running kicost from the command line on stock 64-bit Ubuntu 16.04.4.  If I run the attached BOM xml file with '--include digikey', the run completes without errors.  However, if I let kicost check all distributors it can, it crashes per the output below.  Although I am running kicost in the anaconda, I get the same error if I run it in the native Python environment.
(base) gus@X230t:~/development/kicad/projects/Pi-Hat-double$ kicost   --overwrite --throttling_delay 1 -i pihat_template-error_demo.xml
Progress:   0%|                                        | 0/10 [00:00<?, ?part/s]Part ['J2', 'J4'] not found at farnell
Part ['TP2', 'TP3', 'TP5', 'TP6', 'TP13', 'TP14', 'TP4', 'TP1', 'TP9', 'TP10', 'TP11', 'TP12', 'TP7', 'TP8', 'TP15'] not found at farnell
Part ['C13', 'C3', 'C6', 'C8', 'C11'] not found at farnell
Part ['TP2', 'TP3', 'TP5', 'TP6', 'TP13', 'TP14', 'TP4', 'TP1', 'TP9', 'TP10', 'TP11', 'TP12', 'TP7', 'TP8', 'TP15'] not found at rs
Part ['J3'] not found at farnell
Part ['C13', 'C3', 'C6', 'C8', 'C11'] not found at tme
Part ['J2', 'J4'] not found at tme
Part ['J1'] not found at tme
Part ['TP2', 'TP3', 'TP5', 'TP6', 'TP13', 'TP14', 'TP4', 'TP1', 'TP9', 'TP10', 'TP11', 'TP12', 'TP7', 'TP8', 'TP15'] not found at tme
Part ['J1'] not found at farnell
Part ['U2'] not found at farnell
Part ['C5', 'C4', 'C2', 'C12', 'C1', 'C10', 'C7', 'C9'] not found at tme
Progress:  10%|███▏                            | 1/10 [00:16<02:31, 16.80s/part]Part ['R5', 'R6', 'R7', 'R3', 'R4', 'R8', 'R10', 'R11'] not found at tme
Part ['R5', 'R6', 'R7', 'R3', 'R4', 'R8', 'R10', 'R11'] not found at farnell
Progress:  20%|██████▍                         | 2/10 [00:19<01:41, 12.72s/part]Part ['R5', 'R6', 'R7', 'R3', 'R4', 'R8', 'R10', 'R11'] not found at rs
Progress:  30%|█████████▌                      | 3/10 [00:21<01:05,  9.32s/part]Part ['C13', 'C3', 'C6', 'C8', 'C11'] not found at newark
Progress:  40%|████████████▊                   | 4/10 [00:21<00:40,  6.69s/part]Part ['U1', 'U5', 'U4', 'U3'] not found at tme
Part ['R1', 'R2'] not found at farnell
Part ['J1'] not found at newark
Part ['C5', 'C4', 'C2', 'C12', 'C1', 'C10', 'C7', 'C9'] not found at farnell
Part ['U1', 'U5', 'U4', 'U3'] not found at rs
Part ['U1', 'U5', 'U4', 'U3'] not found at farnell
Progress:  60%|███████████████████▏            | 6/10 [00:28<00:19,  4.83s/part]Part ['J3'] not found at tme
Progress:  70%|██████████████████████▍         | 7/10 [00:28<00:10,  3.56s/part]Part ['R1', 'R2'] not found at tme
Part ['U2'] not found at tme
Part ['U2'] not found at rs
Progress:  80%|█████████████████████████▌      | 8/10 [00:33<00:08,  4.04s/part]Part ['R1', 'R2'] not found at rs
Progress:  90%|████████████████████████████▊   | 9/10 [00:36<00:03,  3.58s/part]multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/gus/development/anaconda3/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/home/gus/development/anaconda3/lib/python3.6/site-packages/kicost/distributors/web_routines.py", line 159, in scrape_part
price_tiers[d] = dist_module.get_price_tiers(html_tree)
File "/home/gus/development/anaconda3/lib/python3.6/site-packages/kicost/distributors/mouser/mouser.py", line 60, in get_price_tiers
unit_price = float(re.sub('[^0-9.]', '', unit_price_tree.text))
ValueError: could not convert string to float:
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/gus/development/anaconda3/bin/kicost", line 11, in
sys.exit(main())
File "/home/gus/development/anaconda3/lib/python3.6/site-packages/kicost/main.py", line 260, in main
scrape_retries=args.retries, throttling_delay=args.throttling_delay)
File "/home/gus/development/anaconda3/lib/python3.6/site-packages/kicost/kicost.py", line 250, in kicost
id, url, part_num, price_tiers, qty_avail = result.get()
File "/home/gus/development/anaconda3/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
ValueError: could not convert string to float:
github-kicost.zip

Hi @linuxcf, I tried now no error. But could be something related with anaconada and/or some specific part (the format of Mouser HTML of this part).
pihat_template-error_demo.xlsx
Could you run KiCost as kicost -i YOURFILE -np 1 --debug 8 > logfile.txt.
This will expend more time to execute than usual (will not can multiple web scrapes, just one by time) but will give me a full report log.

I installed kicost 0.1.43 with pip.  Anaconda tracks dependencies quite tightly.  I ran kicost per your recommendation and got the same error.  Looking at the log file, it may be the Keystone 5017 part that is throwing the kicost off.  I have attached the log file.
logfile.txt

The last part scraped appear to be '649-66953-020LF' at Mouser, it web page have "quotes" as last price row (https://www.mouser.com/ProductDetail/Amphenol-FCI/66953-020LF?qs=%2Fha2pyFadug2XGUHDLtReyzRpusVX%252bd4vQgOvrv5nvo%3D).
If is this, this issues is already fix #234, but the fixed version is not on pypi.
So, I recommend you to install KiCost from the GitHub repository to check (use pip was you are habituated):
pip install -U git+https://github.com/xesscorp/KiCost.git

Or just replace the files on the folder by the files here in GitHub.

Contact here if having some problem to do that.

Yup, the pip update from git did it.  Thank you!  Will the git version make it to pypi/pip?

Yes, sure. @devbisme is owner, as soon as possible he run some checks and update the pypi with last version.
This version includes this list of fix and new features https://github.com/xesscorp/KiCost/blob/master/HISTORY.rst


[Enhancement] Add oneOf and anyOf support

Description
Introduces support for oneOf and anyOf polymorphism.
Motivation and Context
A few of our product APIs will leverage this feature and there are certainly community APIs that use it.
How Has This Been Tested?
Tested using the Digital Ocean 2.0 OpenAPI specification (included in this PR for testing).
Screenshots (if appropriate)
See live preview.

Thanks @blindaa121, that last CSS change seemed to do the trick!


Render output expression between $$ $$ as TeX

Dear developers,
The output delivered by the standard Jupyter interface and VS code is different when the output expression is between $$ $$. Please see image attached. I think the behaviour should be the same. BTW, the kernel is Wolfram.

I don't have Wolfram, but when I try do something similar with a python kernel in Jupyter, it just prints out the $ symbols:

If you view that notebook as a text file, what does the output text contain for that cell? Does it have a different output_type?

@amunger thanks for your reply. I attach a veeeeery minimal notebook example renamed as .txt (to skip upload restrictions)
wolfram kernel minimal example.ipynb.txt. It just should render "1/2" as \frac{1}{2}. Again, the rendering works fine in the default Jupyter notebook web environment, but not in VS Code (v1.66.0-insider + Jupyter extension v2022.3.1000652335).

Thanks, I can see the behavior now. It looks like every character is encoded as its html number, and Jupyter knows to treat that differently:
<div>$$\frac{1}{2}$$</div>
which plain html renders as
$$\frac{1}{2}$$


Hide checks for Shift left in the API Readiness app (data plane and management plane)

Shift left === API Spec Pipeline

[ ] Data Plane
[ ] Management Plane


Documentation: Strange example for Rails/ReversibleMigration cop

I think I've found a documentation problem, hopefully this is the right place to write about it.

Documentation problem
One of the examples for the Rails/ReversibleMigration cop is quite strange:
# good
def change
  reversible do |dir|
    change_table :users do |t|
      dir.up do
        t.column :name, :string
      end

      dir.down do
        t.remove :name
      end
    end
  end
end

I don't see any need to define up and down separately, because Rails is smart enough to figure out how to revert a migration that adds a column.
I think the intention was to write this (which also happens to be a "good" version of the first "bad" example for the cop):
# good
def change
  reversible do |dir|
    change_table :users do |t|
      dir.up do
        t.remove :name
      end

      dir.down do
        t.column :name, :string
      end
    end
  end
end

RuboCop version
2.15.0

@sue445 Can you investigate this one? Because you are the author of this cop.

@TanguyP @koic Umm... I don't remember why I wrote it :sweat_smile:
Perhaps I quoted https://guides.rubyonrails.org/, but I can't be sure.