Add style element dynamically works with shadow, but not with shady DOM

I have an element (sorry for the Dart code, I'm not used to work with JS)
<dom-module id='my-theme'>
  <template>

my-theme

  </template>
</dom-module>

<dom-module id='some-element'>
  <template>

style-me some text

theme:[[theme]]

  </template>
</dom-module>

@PolymerRegister('some-element')
class SomeElement extends PolymerElement {
  SomeElement.created() : super.created();

  @Property(observer: 'themeChangeHandler') String theme;

  @reflectable
  void themeChangeHandler([newValue, oldValue]) {
    final root = new PolymerDom(this.root);
    root
        .querySelectorAll('[theme]')
        .forEach((dom.Element e) => root.removeChild(e));
    root.insertBefore(
        new dom.Element.tag('style', 'custom-style')
          ..attributes['theme'] = theme
          ..attributes['include'] = theme == null ? 'default-theme' : theme,
        $['placeholder']);
    // PolymerDom.flush(); // tried, but works without in shadow DOM
    // updateStyles(); // tried, but works without in shadow DOM
  }
}

I updated the code. It works better with local shady DOM but the styles are still not applied.

My use case
My use case is https://github.com/bwu-dart/bwu_datagrid (a grid/spreadsheet component), currently a Polymer Dart (Polymer JS 0.5) project.
The cells are created dynamically and the user can pass all kind of configuration data like CSS class name for a column. This only makes sense if the user also is able to set specific styles for the CSS classes passed with the column configuration.
Also plugins can be added which add to and modify the grid HTML and the user should be able to style all this to his liking.
Simplified example
https://github.com/bwu-dart-playground/polymer1/tree/master/dynamic_style_module/web

grid_element.dart contains most code to build the grid HTML
grid_element.html some required style rules (not intended to be changed by users)
default_theme.html example styles (supposed to be provided by users)
app_element.dart the configuration data
column_config.dart

Most style rules in default_theme.html could be added statically and using mixins to allow customization but the last two rules show examples where user-provided CSS classes are used in combination with static CSS classes.
In bwu_datagrid there is an unlimited number of possible combination of component-provided and user-provided class names, especially when features like grouping and aggregation are used (like in http://bwu-dart.github.io/bwu_datagrid/example/grouping.html).
As far as I understand style mixins, there is no way to support such an unlimited number of combinations of CSS classes in selectors.
Related problem
Another related requirement is that the colums horizontal position and width is set by dynamically created style rules (see https://github.com/bwu-dart-playground/polymer1/blob/604191c6b1583347d3f79fb4366cd50fa0030154/dynamic_style_module/web/grid_element.dart#L86-L86). I wasn't able to make this work yet using the Polymer.dom API. It doesn't allow to add a style element to the component. This is used to support reordering and resizing columns using drag-n-drop where only the style rules (for left and right position of the cells) are updated (this still works in Polymer 1.0 with the code from the Polymer 0.5 project with shady DOM but not in shadow DOM).
Alternative approach
One alternative approach, as mentioned by @arthurevans in the Slack #polymer channel, is to render the cells in the light DOM. I have yet to investigate how and if this would work out.

Actually it seems with full shadow DOM polyfill it's working in Chrome and Firefox (not tested elsewhere). That would be sufficient for me.
If you don't plan to fix this for shady DOM you can close this issue.

Just to recap, you want to be able to inject new stylesheets into an element because you want to allow user defined styles to apply to entirely arbitrary elements.
And you can't rely on @apply because the user can define arbitrary specificity for those styles.
I'm not sure that the ShadyDOM styling mechanisms have enough hooks for what you want, and we may not want to support it.
@sorvell WDYT?

In Firefox, even with shadow DOM, dynamically added styles work only with dynamically added elements. Styles are not applied to elements statically added to the dom-module's template.
In Chrome everything works fine (not tested other browsers)

It works fine in Firefox with shadow DOM. #2701 was causing the troubles mentioned in my previous comment.

Per https://github.com/Polymer/polymer/issues/2681#issuecomment-154102827 I am closing this issue. This is a known limitation of ShadyCSS (https://github.com/webcomponents/shadycss#limitations) and it seems that there are other approaches that fit your usecase :smile:


Fix the ranking rule by temporarily disabling an assert in the bucket sort algorithm

This PR temporarily disables an assertion, making the search crash. I created a tracking issue to find a better way to fix this.
It no longer reverts a20e4d447ce3022443d25223d34d1a7a8e98e31f, which seemed to generate unreachable graphs and make the bucket sort ranking algorithm panic because of entering an unreachable state. We discussed that below in the comments.
Temporary fixes #4002, fixes #4006, and fixes #3995.

It took me approximately 2 days to find the first bad commit just because I'm bad in git bisect x bash, i.e. I misused %1 with $! to kill the most recently backgrounded job...

Here is the script I used to find the invalid commit
#!/usr/bin/env bash

set -x

# remove the data
rm -rf data.ms

# build meilisearch
cargo build --release
# ignore this commit if it doesn't compile
if [[ $? != 0 ]]; then
    exit 125
fi

# index the dump and start from it
./target/release/meilisearch \
--http-addr 'localhost:7705' \
--import-dump $HOME/Downloads/modified-20230822-083016113.dump &

# wait 10 sec while it indexes the docs
sleep 5

# check if the server crashes on requests
echo '{
    "q": "rtx 305",
    "attributesToHighlight": [
        "*"
    ],
    "highlightPreTag": "<ais-highlight-0000000000>",
    "highlightPostTag": "</ais-highlight-0000000000>",
    "limit": 21,
    "offset": 0
}' | xh 'localhost:7705/indexes/arvutitark_local_orderables/search'

last_exit_code=$?

# Clean the potential Cargo.lock
git checkout .

exit $last_exit_code

Thank you @dureuill 😊
I changed the PR content to disable the panicking assert temporarily and am waiting for you to come back or anyone on the team to see what we can do about this. But more importantly, we ensure we test it correctly to avoid releasing such issues in the wild.

Thanks kero,
I discussed this with lo back in the day but unfortunately we couldn't come up with a surefire way to lift this runtime panic to a compile error.
We didn't explore covering with tests, but I'm suspecting the input space is to large for this to be practically feasible.
I'll give it more thought when I'm back.
Do the search results still make sense after removing the panic?

I'll give it more thought when I'm back and I'll definitely investigate the behavior unless y'all already found the cause by then.

Thank you very much, Louis 😊

Do the search results still make sense after removing the panic?

The results seem correct, but I only have one dataset and two or three queries for now. It is much better than crashing for now.


Is it possible to test middleware

Examples are stubbing out the entire mongoose model and seem to be preventing middleware from being called.  Is it possible to test mongoose middleware while mocking?
SomeSchema.pre('save', function(next) {
// doing some pre save stuff here that I would like to test
});

Do you mean that mocking the save method will prevent the SomeSchema.pre('save', ...) hook to be called?

@gaguirre yes as far as I can tell.   That being said I could be mocking the save wrong. ;) Is this something that should work if I am mocking save correctly?

Probably you are doing it well.
The thing is: if you're mocking the save method then it will not be called, so probably the pre-save hook is not called neither.
I'm wondering if it's something we should solve in sinon-mongoose or just provide a recipe for this case.
@jniemin did you face this issue?

@gaguirre I think solving in sinon-mongoose or a recipe are both valid options IMHO.
I use the mongoose middleware a lot and think its a great way to separate concerns.  That being said I have found it very hard to test that middleware.  I have tried to just mock the mongoose collection object directly, which in turn really just mocks the mongodb driver.  It works in a sense that all mongoose middleware is run when I do this.  However I am at the mercy of figuring out what type of object the mongodb driver returns back to mongoose so things still 'work'.
That being said, I am also looking at seeing if I can access the middleware 'hooks' in my tests directly.  That way I can test the middleware function directly rather than indirectly through a save/update/remove call.

I didn't run in to it. But if you think about it, you should not need to test if middleware is called in your test. That is basically testing the mongoose logic, not your code. What I would do instead is test the function passed to middleware
var saveFunction = function(next){
  next();
}

SomeSchema.pre('save', saveFunction);

unit test
var nextSpy = sinon.spy();
saveFunction(nextSpy);
assertTrue(nextSpy.called);

As @jniemin said, I think you can unit test the pre-save hook separately.
A test mocking the save method,  returning the mongoose instance as you expect to be modified by the pre-save hook.
Another test just for the hook function.
@newmanw tell me if that's clear enough

@gaguirre yes, thanks.  Only thing that I have trouble with is testing a non exported function.
IE in @jniemin example for that to work I believe you would need to do something like this:
In model.js file
var saveFunction = function(next){
  next();
}

SomeSchema.pre('save', saveFunction);

exports.saveFunction = saveFunction;

Then in test file
var saveFunction = require('./model').saveFunction;
var nextSpy = sinon.spy();
saveFunction(nextSpy);
assertTrue(nextSpy.called);

Not really optimal.  I could possibly get around this using rewire.  But no good way IMHO to ask a mongoose model for its 'installed' hooks.

@newmanw I think it has to be available somewhere in the schema. If you can find where it is then you can test it, and avoid exporting the method in your model.
If you find a better solution post it here! :)

What I sometime do is assign them to object that is clearly marked private. There is not really optimal way of exposing "private" function out of modules. So exposing private object at least makes it explicit that it is a private object. Not perfect anyway.

var aFunction = function(){}

var privateAPI = {
 aFunction : aFunction
}

module.exports.privateAPI = privateAPI

Then you can call it on tests like
var myModule = require('mymodule');
myModule.privateAPI.aFunction();

@newmanw I stumbled upon the same issue recently and "solved" it by exposing the schema middleware function and using lodash.bind() during testing in order to rewrite the this context.
I made a tiny example repo with source/tests using this approach.


[Feature Request] Support cairo-lang-formatter crate

Implementing cairo-lang-formatter crate support would enable client-side formatting of Cairo programs, enhancing usability within web environments.

can I take this?

@barabanovro can I take this?

@cryptonerdcn friendly ping on behalf of @codeWhizperer

Please wait for my new version because it changed a lot. After that, I can assign this work to @codeWhizperer .

Hi @codeWhizperer @codeWhizperer @barabanovro , I finished v0.8.3.


Blasankas works

Checkout financial management works in my branch and merge them with master if it is ok

Update validation

update


--get-channel similar to --get-id and --get-duration

Checklist

[x] I'm reporting a site feature request
[x] I've verified that I'm running youtube-dl version 2<IP_ADDRESS>
[x] I've searched the bugtracker for similar site feature requests including closed ones

Description

I'm wondering if it's possible to add this feature:
There already exists --get-id and --get-duration command, but would it be possible to add --get-channel to get the channel name? And even after, maybe --get-channel-id for the (you guessed it) channel ID.

Parse --dump-json.


"LookupError: No section 'kinetic-swift' " when "swift-init start main"

I installed kinetic-swift following the guideline on https://github.com/swiftstack/kinetic-swift/wiki/Deployment. When "swift-init start main", it failed and reported errors:
No section 'kinetic-swift' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found
for container server, account server and object server.
I tried to add [kinetic-swift] sections in the .conf files, but the errors still exist.
The full list is as follow:
stack@kinsim:~/ks-installation$ sudo swift-init start main
proxy-server running (57967 - /etc/swift/proxy-server.conf)
proxy-server already started...
Starting container-server...(/etc/swift/container-server.conf)
Starting account-server...(/etc/swift/account-server.conf)
Starting object-server...(/etc/swift/object-server.conf)
Traceback (most recent call last):
File "/usr/local/bin/swift-container-server", line 6, in
exec(compile(open(file).read(), file, 'exec'))
File "/home/stack/kinetic-swift/swift/bin/swift-container-server", line 23, in
sys.exit(run_wsgi(conf_file, 'container-server', **options))
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 473, in run_wsgi
loadapp(conf_path, global_conf=global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 382, in loadapp
ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 366, in loadcontext
global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 62, in get_context
object_type, name=name, global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
global_additions=global_additions)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 559, in _pipeline_app_context
APP, pipeline[-1], global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 62, in get_context
object_type, name=name, global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
object_type, name=name)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
self.filename))
LookupError: No section 'kinetic-swift' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/swift/container-server.conf
Traceback (most recent call last):
File "/usr/local/bin/swift-account-server", line 6, in
exec(compile(open(file).read(), file, 'exec'))
File "/home/stack/kinetic-swift/swift/bin/swift-account-server", line 23, in
sys.exit(run_wsgi(conf_file, 'account-server', **options))
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 473, in run_wsgi
loadapp(conf_path, global_conf=global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 382, in loadapp
ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 366, in loadcontext
global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 62, in get_context
object_type, name=name, global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
global_additions=global_additions)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 559, in _pipeline_app_context
APP, pipeline[-1], global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 62, in get_context
object_type, name=name, global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
object_type, name=name)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
self.filename))
LookupError: No section 'kinetic-swift' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/swift/account-server.conf
Traceback (most recent call last):
File "/usr/local/bin/swift-object-server", line 6, in
exec(compile(open(file).read(), file, 'exec'))
File "/home/stack/kinetic-swift/swift/bin/swift-object-server", line 27, in
**options))
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 473, in run_wsgi
loadapp(conf_path, global_conf=global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 382, in loadapp
ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 366, in loadcontext
global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 296, in loadcontext
global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 320, in _loadconfig
return loader.get_context(object_type, name, global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 62, in get_context
object_type, name=name, global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 450, in get_context
global_additions=global_additions)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 559, in _pipeline_app_context
APP, pipeline[-1], global_conf)
File "/home/stack/kinetic-swift/swift/swift/common/wsgi.py", line 62, in get_context
object_type, name=name, global_conf=global_conf)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 408, in get_context
object_type, name=name)
File "/usr/local/lib/python2.7/dist-packages/paste/deploy/loadwsgi.py", line 587, in find_config_section
self.filename))
LookupError: No section 'kinetic-swift' (prefixed by 'app' or 'application' or 'composite' or 'composit' or 'pipeline' or 'filter-app') found in config /etc/swift/object-server.conf

That's very curious - the error message seems to indicate that the pipeline option in the [pipeline:main] section of the object-server.conf has a reference to a paste filter named kinetic-swift?
But there should be no such reference in the object-server.conf and I can't see anywhere that wiki page that recommends doing that.
Could you paste the contents of /etc/swift/object-server.conf - I think I must be terribly confused.
Also I would highly recommend you make sure you can successfully bring up the provided development Vagrant VM before attempting any other deployments - starting with something that's known to work can give you point of reference to compare to as you try to adapt to another topology.

Thank you for your timely reply!
This is the [pipeline:main] section of object-server.conf:
[pipeline:main]
pipeline = healthcheck object-server #recon is removed for kinetic-swift
This is the full content of object-server.conf:
[DEFAULT]
bind_ip = <IP_ADDRESS>
bind_port = 6000
bind_timeout = 30
backlog = 4096
user = swift
user = stack
swift_dir = /etc/swift
devices = /srv/node
devices = /swift   #Microwise: in this environment, /swift is the swift_dir
mount_check = true
mount_check = false
disable_fallocate = false
expiring_objects_container_divisor = 86400
expiring_objects_account_name = expiring_objects

Use an integer to override the number of pre-forked processes that will
accept connections.
workers = auto

Maximum concurrent requests per worker
max_clients = 1024

You can specify default log routing here if you want:
log_name = swift
log_facility = LOG_LOCAL0
log_level = INFO
log_address = /dev/log
The following caps the length of log lines to the value given; no limit if
set to 0, the default.
log_max_line_length = 0

comma separated list of functions to call to setup custom log handlers.
functions get passed: conf, name, log_to_console, log_route, fmt, logger,
adapted_logger
log_custom_handlers =

If set, log_udp_host will override log_address
log_udp_host =
log_udp_port = 514

You can enable StatsD logging here:
log_statsd_host = localhost
log_statsd_port = 8125
log_statsd_default_sample_rate = 1.0
log_statsd_sample_rate_factor = 1.0
log_statsd_metric_prefix =

eventlet_debug = false

You can set fallocate_reserve to the number of bytes you'd like fallocate to
reserve, whether there is space for the given file size or not.
fallocate_reserve = 0

Time to wait while attempting to connect to another backend node.
conn_timeout = 0.5
Time to wait while sending each chunk of data to another backend node.
node_timeout = 3
Time to wait while receiving each chunk of data from a client or another
backend node.
client_timeout = 60

network_chunk_size = 65536
disk_chunk_size = 65536
disk_chunk_size = 1048576
[pipeline:main]
pipeline = healthcheck object-server #recon is removed for kinetic-swift
[app:object-server]
#use = egg:swift#object
use = egg:kinetic_swift#object
#for kinetic-swift, change egg:swift#object to egg:kinetic_swift#object
You can override the default log routing for this app here:
set log_name = object-server
set log_facility = LOG_LOCAL0
set log_level = INFO
set log_requests = true
set log_address = /dev/log

max_upload_time = 86400
slow = 0

Objects smaller than this are not evicted from the buffercache once read
keep_cache_size = 5242880

If true, objects for authenticated GET requests may be kept in buffer cache
if small enough
keep_cache_private = false

on PUTs, sync data every n MB
mb_per_sync = 512

Comma separated list of headers that can be set in metadata on an object.
This list is in addition to X-Object-Meta-* headers and cannot include
Content-Type, etag, Content-Length, or deleted
allowed_headers = Content-Disposition, Content-Encoding, X-Delete-At, X-Object-Manifest, X-Static-Large-Object

auto_create_account_prefix = .

A value of 0 means "don't use thread pools". A reasonable starting point is
4.
threads_per_disk = 0

Configure parameter for creating specific server
To handle all verbs, including replication verbs, do not specify
"replication_server" (this is the default). To only handle replication,
set to a True value (e.g. "True" or "1"). To handle only non-replication
verbs, set to "False". Unless you have a separate replication network, you
should not specify any value for "replication_server".
replication_server = false

Set to restrict the number of concurrent incoming REPLICATION requests
Set to 0 for unlimited
Note that REPLICATION is currently an ssync only item
replication_concurrency = 4

Restricts incoming REPLICATION requests to one per device,
replication_currency above allowing. This can help control I/O to each
device, but you may wish to set this to False to allow multiple REPLICATION
requests (up to the above replication_concurrency setting) per device.
replication_one_per_device = True

Number of seconds to wait for an existing replication device lock before
giving up.
replication_lock_timeout = 15

These next two settings control when the REPLICATION subrequest handler will
abort an incoming REPLICATION attempt. An abort will occur if there are at
least threshold number of failures and the value of failures / successes
exceeds the ratio. The defaults of 100 and 1.0 means that at least 100
failures have to occur and there have to be more failures than successes for
an abort to occur.
replication_failure_threshold = 100
replication_failure_ratio = 1.0

Use splice() for zero-copy object GETs. This requires Linux kernel
version 3.0 or greater. If you set "splice = yes" but the kernel
does not support it, error messages will appear in the object server
logs at startup, but your object servers should continue to function.

splice = no
[filter:healthcheck]
use = egg:swift#healthcheck
An optional filesystem path, which if present, will cause the healthcheck
URL to return "503 Service Unavailable" with a body of "DISABLED BY FILE"
disable_path =
[filter:recon]
use = egg:swift#recon
#recon_cache_path = /var/cache/swift
#recon_lock_path = /var/lock
[object-replicator]
You can override the default log routing for this app here (don't use set!):
log_name = object-replicator
log_facility = LOG_LOCAL0
log_level = INFO
log_address = /dev/log

vm_test_mode = no
daemonize = on
run_pause = 30
concurrency = 1
stats_interval = 300

The sync method to use; default is rsync but you can use ssync to try the
EXPERIMENTAL all-swift-code-no-rsync-callouts method. Once ssync is verified
as having performance comparable to, or better than, rsync, we plan to
deprecate rsync so we can move on with more features for replication.
sync_method = rsync

max duration of a partition rsync
rsync_timeout = 900

bandwidth limit for rsync in kB/s. 0 means unlimited
rsync_bwlimit = 0

passed to rsync for io op timeout
rsync_io_timeout = 30

node_timeout = <whatever's in the DEFAULT section or 10>
max duration of an http request; this is for REPLICATE finalization calls and
so should be longer than node_timeout
http_timeout = 60

attempts to kill all workers if nothing replicates for lockup_timeout seconds
lockup_timeout = 1800

The replicator also performs reclamation
reclaim_age = 604800

ring_check_interval = 15
recon_cache_path = /var/cache/swift

limits how long rsync error log lines are
0 means to log the entire line
rsync_error_log_line_length = 0

handoffs_first and handoff_delete are options for a special case
such as disk full in the cluster. These two options SHOULD NOT BE
CHANGED, except for such an extreme situations. (e.g. disks filled up
or are about to fill up. Anyway, DO NOT let your drives fill up)
handoffs_first is the flag to replicate handoffs prior to canonical
partitions. It allows to force syncing and deleting handoffs quickly.
If set to a True value(e.g. "True" or "1"), partitions
that are not supposed to be on the node will be replicated first.
handoffs_first = False

handoff_delete is the number of replicas which are ensured in swift.
If the number less than the number of replicas is set, object-replicator
could delete local handoffs even if all replicas are not ensured in the
cluster. Object-replicator would remove local handoff partition directories
after syncing partition when the number of successful responses is greater
than or equal to this number. By default(auto), handoff partitions will be
removed  when it has successfully replicated to all the canonical nodes.
handoff_delete = auto
[object-reconstructor]
You can override the default log routing for this app here (don't use set!):
Unless otherwise noted, each setting below has the same meaning as described
in the [object-replicator] section, however these settings apply to the EC
reconstructor

log_name = object-reconstructor
log_facility = LOG_LOCAL0
log_level = INFO
log_address = /dev/log

daemonize = on
run_pause = 30
concurrency = 1
stats_interval = 300
node_timeout = 10
http_timeout = 60
lockup_timeout = 1800
reclaim_age = 604800
ring_check_interval = 15
recon_cache_path = /var/cache/swift
handoffs_first = False
[object-updater]
You can override the default log routing for this app here (don't use set!):
log_name = object-updater
log_facility = LOG_LOCAL0
log_level = INFO
log_address = /dev/log

interval = 300
concurrency = 1
node_timeout = <whatever's in the DEFAULT section or 10>
slowdown will sleep that amount between objects
slowdown = 0.01

recon_cache_path = /var/cache/swift
[object-auditor]
You can override the default log routing for this app here (don't use set!):
log_name = object-auditor
log_facility = LOG_LOCAL0
log_level = INFO
log_address = /dev/log

You can set the disk chunk size that the auditor uses making it larger if
you like for more efficient local auditing of larger objects
disk_chunk_size = 65536
files_per_second = 20
concurrency = 1
bytes_per_second = 10000000
log_time = 3600
zero_byte_files_per_second = 50
recon_cache_path = /var/cache/swift
Takes a comma separated list of ints. If set, the object auditor will
increment a counter for every object whose size is <= to the given break
points and report the result after a full scan.
object_size_stats =
Note: Put it at the beginning of the pipleline to profile all middleware. But
it is safer to put this after healthcheck.
[filter:xprofile]
use = egg:swift#xprofile
This option enable you to switch profilers which should inherit from python
standard profiler. Currently the supported value can be 'cProfile',
'eventlet.green.profile' etc.
profile_module = eventlet.green.profile

This prefix will be used to combine process ID and timestamp to name the
profile data file.  Make sure the executing user has permission to write
into this path (missing path segments will be created, if necessary).
If you enable profiling in more than one type of daemon, you must override
it with an unique value like: /var/log/swift/profile/object.profile
log_filename_prefix = /tmp/log/swift/profile/default.profile

the profile data will be dumped to local disk based on above naming rule
in this interval.
dump_interval = 5.0

Be careful, this option will enable profiler to dump data into the file with
time stamp which means there will be lots of files piled up in the directory.
dump_timestamp = false

This is the path of the URL to access the mini web UI.
path = /profile

Clear the data when the wsgi server shutdown.
flush_at_shutdown = false

unwind the iterator of applications
unwind = false

change
[pipeline:main]
pipeline = healthcheck object-server #recon is removed for kinetic-swift

to
[pipeline:main]
pipeline = healthcheck object-server

Yes, it works!!
I tried
[pipeline:main]
pipeline = healthcheck object-server
#recon is removed for kinetic-swift
but it also failed.
Why?

I'm not sure.
That config with the comment broken onto a separate line works ok for me.

Thanks a lot, Clayg! :+1:


ng build --profile generates empty speed-measure-plugin.json

ng build --profile generates empty speed-measure-plugin.json
- [x] bug report -> please search issues before submitting

Command (mark with an x)
- [x] build

Versions
ng --version
Angular CLI: 7.0.3
Node: 11.0.0
OS: win32 x64
Angular: 7.0.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.10.3
@angular-devkit/build-angular     0.10.3
@angular-devkit/build-optimizer   0.10.3
@angular-devkit/build-webpack     0.10.3
@angular-devkit/core              7.0.3
@angular-devkit/schematics        7.0.3
@angular/cli                      7.0.3
@ngtools/webpack                  7.0.3
@schematics/angular               7.0.3
@schematics/update                0.10.3
rxjs                              6.3.3
typescript                        3.1.3
webpack                           4.19.1

Repro steps
Create new project and run ng build --profile

ng new tester-measure
cd tester-measure
ng build --profile

failure
Generated empty speed-measure-plugin.json
Desired functionality
Not empty speed-measure-plugin.json
additional
chrome-profiler-events.json way to big to open in chrome. (Chrome crashes)

I can confirm this on a fresh project in 7.0.3 too.

Yeah the speed-measure-plugin seems broken... I'm not sure why, probably incompatible with the webpack version we're using atm.
Big chrome-profiler-events.json are hard to open in chrome sometimes. I don't have a good answer to that. In the past when I had trouble with those I had to manually profile only on rebuilds or something. Using https://github.com/GoogleChromeLabs/ndb might also help but not sure.

I took a look at the files quickly and the implementation looks ok so yes it might be a problem with the webpack version, I'll try to test that this week-end if I can find some time to do it!

Hi, any progress on that issue? It still happens in 7.1.0. Thanks.

Issue is still reproducible on my side. Is there any workaround ?

This seems to be a bug in speed-measure-webpack-plugin. I have created a PR to address this issue https://github.com/stephencookdev/speed-measure-webpack-plugin/pull/76


(Suggestion) Categories/Queries

Do I even need to explain these

If you’re adding queries, can you add a query command that adds all elements you can find by only combining the elements in a specific query together, because with normal EoDE queries this is impossible

very computationally expensive

Duplicate of #6 and #5


Fix: figure 1 script

This PR fixes the script for creating figure 1 so that it runs with the current inference data structure.
Also, I noted that it was possible for the colours used to be inconsistent; I've refactored the figure generating function to be fully Makie based rather than using the AlgebraOfGraphics frontend package to Makie. The downside (if in fact it is a downside) is that the figureone function is imperative rather than declarative.

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

Project coverage is 90.96%. Comparing base (ab73d9e) to head (e7c981f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #555   +/-   ##
=======================================
  Coverage   90.96%   90.96%
=======================================
  Files          60       60
  Lines         863      863
=======================================
  Hits          785      785
  Misses         78       78

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


Updating to bch-js v4.5.0 and fixing breaking changes.

:tada: This PR is included in version 1.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Build Independent of this Repo

Hi, fyears!
Sorry to bug you again, but I was hoping for some insight.
When I try to recreate this example outside of this specific repository, it doesn't work. There are no error messages anywhere - it just seems that the zerorpc connection doesn't work. I literally copied and pasted all of your code and ran through the build as I would if I had cloned this repo, but the connection between Python and JavaScript never happens.
Do you have any direction for me to go in? I'm running on Ubuntu 16.04.
Thank you so, so much for your time.

I should also mention that I went through closed issues and went through recommendations in there, such as making sure that my git connection can connect to the internet, which it can.

Sigh, my apologies.
I do get this error message in the console:

Lost remote after 10000ms
at Object.createErrorResponse (/home/chiarad/Programs/butterfly/node_modules/zerorpc/lib/util.js:53)
at ClientChannel. (/home/chiarad/Programs/butterfly/node_modules/zerorpc/lib/client.js:163)
at emitOne (events.js:96)
at ClientChannel.emit (events.js:191)
at /home/chiarad/Programs/butterfly/node_modules/zerorpc/lib/channel.js:198

Annndddd...it was white space in the Python code. Thank you so much for your work on this repo. It's amazing!


support linux-aarch64

Comment:
How can perl-bdi software be triggered to generate a Linux_aarch64 software package in arch_rebuild.txt of conda forge

https://github.com/conda-forge/perl-dbi-feedstock/pull/5

Done with #5


x/pkgsite: Broken links on pkg.go.dev to codeberg.org repositories.

What is the URL of the page with the issue?
Any page on pkg.go.dev that has links resolving to repositories on codeberg.org. That issue may affect all gitea hosted repositories.
What is your user agent?
Issue is not user-agent related.

Screenshot

What did you do?

Click on a link that resolves to a file at a codeberg.org repo.
Go to https://pkg.go.dev/codeberg.org/ac/ecdh25519#section-sourcefiles and take a look at the link for the file ecdh25519.go.
It refers to https://codeberg.org/ac/ecdh25519/src/commit/8a2cf2a5c93c/ecdh25519.go
If you call that link, you'll receive a 404:
$ curl -I https://codeberg.org/ac/ecdh25519/src/commit/8a2cf2a5c93c/ecdh25519.go
HTTP/2 404
...

At first it looks like an server issue, but it is not necessarily.
The correct permalink is however https://codeberg.org/ac/ecdh25519/src/commit/8a2cf2a5c93c3fb69f0e6161f4bb82dccc3584b0/ecdh25519.go
Please spot the difference in the given commit hash value. One (defined in the link on pkg.go.dev) is abbreviated, the other is in long notation (correct destination on codeberg.org).
What did you expect to see?
I expected to reach the linked target file.
What did you see instead?
404

Related: https://github.com/golang/go/issues/40477

I just got notified by a gitea developer that the problem is known. They fixed it in the development branch and the fix will be available in the next release (1.14).
So this issue may be closed in the meantime.
https://codeberg.org/Codeberg/Community/issues/413

Thanks for letting us know, @catinello!


Need to rename Darwin AttestationInfo and CSRInfo interfaces

They should be called MTRAttestationInfo and MTRCSRInfo.  That was asked for during review, but apparently the PR author chose to ignore the review comments...

In fact, the code around src/darwin/Framework/CHIP/MTRNOCChainIssuer.h and its callers needs revamping in general: right now it can pretty trivially lead to deadlock.

Current plan is:

Rename MTRNOCChainIssuer to MTROperationalCertificateIssuer, including renaming the file.
Rename onNOCChainGenerationNeeded to issueOperationalCertificateForRequest:attestionInfo:completion
Remove the NSError outparam argument from MTRNOCChainGenerationCompleteHandler (and probably rename the type to avoid "NOC").
Fix the broken nullability bits (e.g. not allowing a nil intermediate).
Use a separate dispatch queue for the call out.
Make all the queuing async.

Alternately, s/CertificateIssuer/CA/ (e.g. MTROperationalCA).


Attempted fix at issue with sigma inside a shadow-DOM

Pull request type
Bugfix
Current behavior
When sigma is placed inside a Shadow-DOM, you cannot hover or click nodes.
Here is a CodeSandbox to demonstrate.
New behavior
Now you can!
Details
The reason this was happening (I believe) was that the mousemove event was bound to the document. This meant that if sigma was inside a Shadow-DOM, the event would be re-targeted to the shadow host instead, and thus the equality on this line would fail even when hovering over the container.
My solution was to add the handleMove event to the container as well. This fixes the problem because the event listener remains within the scope of the Shadow-DOM so the event doesn't get re-targeted.
I kept the original listener bound to the document because it looks like that allows you to handle stage drag events even when the mouse is outside the container. However, this does mean that there are now some redundant events being triggered. When moving over the container, both the container-bound event and the document-bound event trigger, each emitting their own mousemove and mousemovebody events (though only the new container-bound events have the correct target when inside a shadow-dom). To solve this, we could potentially separate mousemove and mousemovebody into two different handlers, mousemove bound to the container and mousemovebody bound to the document. I attempted to do this myself, but it ended up being a more significant change than I anticipated and I don't think I am familiar enough with the codebase to avoid unintentionally messing up other things, so I ended up not submitting those changes.

Alright so after using this patch locally for awhile, I've noticed that it introduces a different bug, somehow messing with the the ability to preventSigmaDefault on wheel events... no idea how. This may need some more examination.


Add sk console gpt

Motivation and Context
Adding a console version of ChatGPT at the request of @markwallace-microsoft.
Description
This adds a new C# starter sample that provides a basic implementation of a chat GPT clone, leverage chat completion, and chat history for memory.
Contribution Checklist

[X] The code builds clean without any errors or warnings
[X] The PR follows SK Contribution Guidelines (https://github.com/microsoft/semantic-kernel-starters/blob/main/CONTRIBUTING.md)
[X] The code follows the .NET coding conventions (https://learn.microsoft.com/dotnet/csharp/fundamentals/coding-style/coding-conventions) verified with dotnet format
[X] All unit tests pass, and I have added new tests where possible
[X] I didn't break anyone :smile:

Closing as the PRs are not picking up more code changes to my branch to fix the formatting. Will open a new PR.


Web client react

convert webapp to react and add new features.

This is totally broken in the way of building. Don't merge just yet :/.


php artisan api:generate ignores the updated blade files in resources/views/vendor/apidoc

I have a hard time updating the info.blade.php file. It ignores the updated blade files in resources/views/vendor/apidoc completely
How to reproduce the problem:

Edit the files in resources/views/vendor/apidoc/partials/info.blade.php, add some texts
Clear the cache

php artisan cache:clear

Clear the compiled blade views

php artisan view:clear

Regenerate the api documentation

php artisan api:generate --routePrefix="api/v1/*" --force

The changes in the info.blade.php will not reflect on http://localhost/docs/

Workaround:
I created a shell script to tackle the problem
#!/bin/bash
THEPATH="resources/views/vendor/apidoc"
mv ${THEPATH}/documentarian.blade.php ${THEPATH}/documentarian.blade.php.bak

echo "" >> ${THEPATH}/documentarian.blade.php

php artisan view:clear --quiet
php artisan api:generate --routePrefix="api/v1/*" --force --quiet

mv ${THEPATH}/documentarian.blade.php.bak ${THEPATH}/documentarian.blade.php

php artisan view:clear
php artisan api:generate --routePrefix="api/v1/*" --actAsUserId=4 --noResponseCalls

PRs to fix this are welcome!

Wasn't the api:update command introduced to fix this?

This doesn't seem to fix the problem unfortunately. Still not updating it with the recent blade files.


Pull request to fix issue 229

This change adds the ability to define a specific collection to import work items to. Without this, work items cannot be imported to collection specific projects on AzureDevOps instances hosted on premise.

We handle this by including the collection name in the url for the account/server.


adding privatekey auth param

Related Issues
fixes
https://github.com/deepset-ai/haystack-core-integrations/issues/1179
Proposed Changes:
Added PrivateKey and PrivateKeyPwd parameters to allow more secure connection methodologies.
How did you test it?
Tested locally with dev branch using live Snowflake instance and hatch.

@iireland-ii thanks for your contribution! I've left a few comments
Can you also please test if an "old" serialized SnowflakeTableRetriever object can be deserialized with the code in this new version you are proposing?

@iireland-ii do you still have time to work on this PR?

hi david going to try make some time for it this week!


Blocks that commit to state hash

I haven't fully worked this out, but the blocks should commit to the state hash, which will allow nodes to operate in a much more lightweight fashion.

Further consideration leads me to believe that this should be postponed until it's necessary by soft fork.
Reason: there's a lot of infrastructure and things to consider when committing to state with blocks. The first problem is that it's a lot of work to have a specific order for the state stuff (outputs, contracts, etc.), and in the worst case you're going to be sorting and hashing the whole thing every block, which at a 300mb+ set could take too long. There are a lot of optimizations you could make, but  that adds complexity and tradeoffs, and we don't really know what sorts of tradeoffs we should be making.
The point of committing to a state hash is so that lightweight clients who don't have the whole state can do lightweight verifications. But the person doing the verifying needs a proof, and the proof is going to have to come from someone who has a more complete version of the state, and might take a lot of computational power to build. If we're worried about POS style stuff, we can pretty much assume that the client is going to have a lot less power than the merchant. So we're going to need to outsource where the proofs are coming from.
But we're a storage protocol, which means POS isn't so important to us, and I just don't feel like we have a good enough sense of the requirements we have to know what sort of tradeoffs we're making when we're having miners commit to the state.
So this is being postponed. It's something we can implement via a soft-fork later. (It will break IsStandard, but that's okay early in the life of the network. There are also other ways to incentivize committing to the state without breaking IsStandard).


Blinds. What i am doing wrong?

I added 3 accessories to my homebridge.
Light and switch works well, but blind always report me error
[11/25/2016, 11:49:50 PM] [Room Blinds] up=undefined down=undefined method=undefined
/usr/lib/node_modules/homebridge-httpmulti/index.js:501
this.log("Error getting state (status code %s): %s", response.StatusCode, err);
Here is my config file
,{
"accessory": "HttpMulti",
"name": "Room Blinds",
"on_url": "http://myIP/send?deviceMac=MAC&codeId=95",
"off_url": "http://myIP/send?deviceMac=MAC4&codeId=96",
"deviceType": "blinds",
},{
"accessory": "HttpMulti",
"name": "relay",
"on_url": "http://myIP/send?deviceMac=MAC&codeId=95",
"off_url": "http://myIP/send?deviceMac=MAC&codeId=96",
"deviceType": "switch"
},{
"accessory": "HttpMulti",
"name": "a light",
"on_url": "http://myIP/send?deviceMac=MAC&codeId=95",
"off_url": "http://myIP/send?deviceMac=MAC&codeId=96",
"brightness_url": "http://myIP/send?deviceMac=MAC&codeId=96",
"deviceType": "light"
}

Blinds need to be up_url and down_url. Give that a try.

On Nov 25, 2016, at 4:58 PM, h3ad<EMAIL_ADDRESS>wrote:
I added 3 accessories to my homebridge.
Light and switch works well, but blind always report me error
[11/25/2016, 11:49:50 PM] [Room Blinds] up=undefined down=undefined method=undefined
/usr/lib/node_modules/homebridge-httpmulti/index.js:501
this.log("Error getting state (status code %s): %s", response.StatusCode, err);
Here is my config file
,{
"accessory": "HttpMulti",
"name": "Room Blinds",
"on_url": "http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=95 http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=95",
"off_url": "http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=96 http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=96",
"deviceType": "blinds",
},{
"accessory": "HttpMulti",
"name": "relay",
"on_url": "http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=95 http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=95",
"off_url": "http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=96 http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=96",
"deviceType": "switch"
},{
"accessory": "HttpMulti",
"name": "a light",
"on_url": "http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=95 http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=95",
"off_url": "http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=96 http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=96",
"brightness_url": "http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=96 http://<IP_ADDRESS>:9876/send?deviceMac=b4430deeedc4&codeId=96",
"deviceType": "light"
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/hplato/homebridge-httpmulti/issues/13, or mute the thread https://github.com/notifications/unsubscribe-auth/AExbSMzoVdHsJaaexZsVt9Erb39xmKBGks5rB3YUgaJpZM4K8wu3.

Thanks it's work =)


upgrade to python 3

Original report by Dan Becker (Bitbucket: danbek, GitHub: danbek).

I don't know if anyone else saw this, but numpy has announced that numpy will stop supporting python 2.7 on Jan 1, 2020:
https://github.com/numpy/numpy/blob/master/doc/neps/dropping-python2.7-proposal.rst
Apparently the plan is also for python 2.7 itself to go out of support in 2020:
http://legacy.python.org/dev/peps/pep-0373/
Thats 2 year away, but if we expect to still be using python data analysis tools in 2020, the sooner we make this change the better.
I don't have any immediate suggestion about the practicalities of migration,  but we can use this issue for discussion/planning etc.

Original comment by Young Il Joe (Bitbucket: jojo978, GitHub: jojo978).

Actually, you can use Mass with Python 3. (I'm mostly using Python 3.6 these days) Definitely, the develop branch works. I guess mass branch works too.

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

We even run tests on python3 automatically. But your comment certainly applies to the general usage and lots of our legacy code (eg I still only run python 2.7)

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Yes, we test Python 3, and Young normally uses it. But Galen and I don't.
Perhaps I can propose that the rest of us make a New Year's Resolution: switch to Python 3 in January.

Original comment by Galen O'Neil (Bitbucket: oneilg, GitHub: oneilg).

On a related note, Dan's pull request fails on python 3 https://semaphoreci.com/drjoefowler/mass/branches/beckerd/builds/12

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Link works for me. Perhaps we need to get you an account and then get permissions set for your account?
Let me know your semaphoreci.com user name, and Galen or I can add you.

Original comment by Dan Becker (Bitbucket: danbek, GitHub: danbek).

 But I'll get my stuff working on it asap.
When I click on the semaphoreci.com link I get a 404. Does that link work for everyone else?

Original comment by Dan Becker (Bitbucket: danbek, GitHub: danbek).

Just signed up, username is danbek

Original comment by Joseph Fowler (Bitbucket: joe_fowler, ).

Merged in test_python3 (pull request #82)
Fixes #140.
Approved-by: Joseph Fowler<EMAIL_ADDRESS>


Log dynamo

Write notification logs to DynamoDB (previously stored on S3)
Create notification logs for the notification's lifecycle in the system
Include dynamoLogger lambda and dynamoDB in CDK deployment
Configure notification logs table to remove logs after 30 days
Add routes to HTTP gateway to POST notification and GET all notification logs

LGTM ! just want to test the TTL at some point, although when I look through the DynamoDB table it does say its activated - I would love to see the delete actually run (aws says it could take a couple days to see those delete changes reflected).


Remove dark:... classes from token classification widget

Closes #12, closes #764
Hello!
Pull Request overview

Remove dark:text-${color}-100 and dark:bg-${color}-700 classes from token classification spans.

Details
See #12 and #764 for the bug that this PR solves. That second issue already mentions the issue at hand: this CSS rule makes the text color the same as the background color:
:is(.dark .dark\:text-indigo-100) {
 --tw-text-opacity:1;
 color:rgb(224 231 255/var(--tw-text-opacity));
}

It is hard to test whether my intuition that these dark: classes should be removed, as I'm not sure how to build one of the widgets locally. However, I can verify that it should work in another way:

Open https://huggingface.co/tomaarsen/span-marker-bert-tiny-fewnerd-coarse-super?text=Amelia+Earhart+flew+her+single+engine+Lockheed+Vega+5B+across+the+Atlantic+to+Paris.
Select one of the two invisible spans, and click on the stylesheet for .dark .dark\:text-indigo-100.

That stylesheet with nearly 3000 rules has a few dark\:text-...-... rules. The file that generates the token spans for the widget uses only certain ones, though:
https://github.com/huggingface/hub-docs/blob/52bc2b2f6735f991d8d4f337c5269dc76f73beac/js/src/lib/components/InferenceWidget/shared/WidgetOutputTokens/WidgetOutputTokens.svelte#L74-L79
With color being one of:
https://github.com/huggingface/hub-docs/blob/52bc2b2f6735f991d8d4f337c5269dc76f73beac/js/src/lib/components/InferenceWidget/shared/WidgetOutputTokens/WidgetOutputTokens.svelte#L20-L29
These are all combinations that are generated and appear in the final HTML:
['dark\:text-teal-100', 'dark\:text-indigo-100', 'dark\:text-orange-100', 'dark\:text-sky-100', 'dark\:text-violet-100', 'dark\:text-purple-100', 'dark\:text-fuchsia-100', 'dark\:text-pink-100']
['dark\:bg-teal-700', 'dark\:bg-indigo-700', 'dark\:bg-orange-700', 'dark\:bg-sky-700', 'dark\:bg-violet-700', 'dark\:bg-purple-700', 'dark\:bg-fuchsia-700', 'dark\:bg-pink-700']

Out of these, only one has a rule in the stylesheet: dark\:text-indigo-100. This is exactly the one that is causing problems - problems that are resolved when we remove this rule.
With other words, this shows that we should be able to safely remove the dark:text-${color}-100 and dark:bg-${color}-700 classes with only one effect: the indigo tokens should be visible now. All other scenarios should stay the same.
If any of you know of an approach to test out a "real" widget with this branch, then please give it a try. That'll be a more consistent method than my "verification" of this PR.

Tom Aarsen

I re-encountered this bug today - it reminded me that this wasn't merged yet. Maybe we can have another look at this PR soon?

@tomaarsen thank you very much for your investigation.
https://github.com/huggingface/hub-docs/pull/857 should solve this issue


end of life with backup

A wild idea sparked when @davidberenstein1957 shared the cool end of life plugin #7 with me:

to create a plugin that automatically serialize a particular dataset push to dvc or git at the end of life, or when the dataset is fully labeled

something like this:
import os
from argilla_plugins.datasets import end_of_life_with_backup

# get git credentials from OS environment
GIT_CREDENTIALS = os.environ["git_credential"]

# commit message when dataset reaches end of life
msg="End of life of dataset"

# set up end_of_life_with_backup plugin
end_of_life_with_backup(name="dataset", end_of_life=1, git_credentials=GIT_CREDENTIALS, commit_message=msg)

# start plugin
end_of_life_with_backup.start()

Thanks @bengsoon! It looks great, however, some additional config for DVC would also need to be done:)

Also, I'm not sure if DVC is the most practical option, but we will figure something out.

yeah i was thinking of that too -- I think DVC will add a few more lines of code :sweat_smile:


Request for Alternative Licensing of comp_id.txt Resources

I've been exploring your project and find the resources it provides to be incredibly valuable for my own software development efforts. However, I have a concern regarding the licensing terms associated with the comp.id resources.
As my software is closed source, I'm unable to comply with the requirements of the GPL license under which the resources are currently distributed. While I fully respect the principles of open source licensing, I require a licensing arrangement that aligns with the proprietary nature of my software.
Would it be possible for you to consider providing the comp.id resources under a license with weaker copyleft provisions or alternative licensing terms that would allow for their use in closed source software? I'm open to discussing any conditions or terms you may have in mind.
Thank you for considering my request. I appreciate your contributions to the open source community and look forward to your response.
Wishing you a blessed Easter!
Best regards,
PAX

No problem. Which license would you recommend?

Thank you very much for considering my request to change the license for the project. I appreciate your willingness to accommodate my needs.
After reviewing various licensing options, I believe that the BSD 2-Clause License (Simplified BSD License) would be the most suitable choice for my use case. Here's why:

Permissiveness: The BSD 2-Clause License is very permissive, allowing me to include the comp_id.txt resource in my proprietary closed-source software project without imposing significant restrictions.
Ease of Use: This license is straightforward and easy to understand, making it convenient for both me as the user and for potential contributors to the project.
Compatibility: The BSD 2-Clause License is compatible with a wide range of other licenses, giving me flexibility in how I use and distribute the comp_id.txt resource.

By choosing the BSD 2-Clause License, I can seamlessly integrate the comp_id.txt resource into my project while ensuring compliance with your licensing terms. I understand that you may have other considerations, so please let me know if you have any questions or concerns. Especially when you think, that you rather prefer something more restrictive but with weak copyleft (such as LGPL).
I would also put a link to your GitHub project into the user interface of my software as soon as I integrated it. Do you also would like to see your name there in any form? If yes, please contact me via my contact form for a private conversation (see link in my profile).
Thank you again for your cooperation, and I look forward to your response. And thank you for all your efforts.
Best regards,
PAX
https://www.mend.io/blog/top-open-source-licenses-explained/
https://opensource.org/license/bsd-2-clause

Looks good, I've changed the license to BSD 2-clause license.
I think there is no need to mention my name though.

Closing.


Copyrights should be updated

"EMC Corporation" should be changed to "Dell Inc. or its subsidiaries"

Fixed.


KeyError with instance dictKey line 237 of evalInstanceLevelSemanticLabeling.py

Hi, am running the instance seg evaluation and the code doesn't seem to pass with test image where there's no instance.
While the other images are passed and processed without an issue, it says KeyError with an absolute path to an image with no instance inside. Does anyone have any idea or similar encountering?

seems that we're not supposed to run on test set locally... -->_<--

Exactly, test set evaluation is only possible via our evaluation server: https://www.cityscapes-dataset.com/submit/


Small charts not supported?

I want to create a small chart that is 75px * 25px but apex will not render it unless i get near 100px. Is there some internal limitation for the size that apex can generate? Based on the link below, that is not true, when i measure real dimensions. So the limitation must be somewhere else and therefore I think it is possible but am not sure why this behaviour happens to begin with.
Also this is directly related to https://github.com/apexcharts/apexcharts.js/discussions/2836

If you feel you have found a bug, please provide the required information as described in the Bug Issue template. Especially the required reproduction app. Closing until those requirements have been met.

Not much to add.
The vue version is:
<apexchart width="W" height="H" type="line" :options="chartOptions" :series="series"></apexchart>
where width is not necessary but height will not render anything if it is 60 or less. 61 and upwards will work.


terrible bug

The cpp's string and struct that contains string isn't POD type.
So it can't be read or written by fstream.read or fstream.write directly.
And you didn't understand the meaning of the key len and value len.
So I add two structure in bitcask.h to show you the correct usage.
And you also need to change all read and write code for bitcask_data and
bitcask_index struct.
Signed off by<EMAIL_ADDRESS>

@chnmagnus 非常感谢,  这个项目是我大二的时候写的，当初对c++底层理解不深, 当初你提issue的时候我就专门google了这个问题，因为时间问题一直没有修改, 你现在提的pr是对的，后来工作了有一次写一个文本工具，我的序列化方式也与你现在的这个类似. 非常感谢.

ok ^_^

fix


✨ Add Icons to Footer

Is there an existing issue for this?

[X] I have searched the existing issues

Feature Description
Hello Project Admin
I would like to add icons to Footer
Can you assign me this issue under GSSOC'24 @Priyaaa1 @MastanSayyad
Use Case

Benefits
No response
Add ScreenShots
No response
Priority
High
Record

[X] I have read the Contributing Guidelines
[X] I'm a GSSOC'24 contributor
[X] I have starred the repository

@sailaja-adapa Assigned!


Unable to pattern match two consecutive newlines

Migrated from : https://logstash.jira.com/browse/LOGSTASH-631
Rails production.log has two empty lines in between each event. My multiline filter with pattern "\n\n" is not matching and I know for sure I have two newlines.
Here is the filter I tried which isn't working with a typical rails production.log:
multiline
{ type => "rails_prod_log" pattern => "\n\n" negate => "true" what => "previous" }
The following works but isn't quite what I want:
multiline
{ type => "rails_prod_log" pattern => "^$" negate => "true" what => "previous" }
The reason:
Sometimes an event/stacktrace has a broken single empty line with one newline character in it, in between the stacktrace. I wouldn't want to split that stacktrace into two separate events so I need to match on two newlines (ie "\n\n")
I'd appreciate a work-around for now until version 1.1.2 comes out.
Thanks!
Navid

example log:
Started GET "/assets/logo.png" for <IP_ADDRESS> at 2012-10-14 16:31:02 -0700
Served asset /logo.png - 304 Not Modified (0ms)

Started GET "/" for <IP_ADDRESS> at 2012-10-15 21:38:47 -0700
Processing by HomeController#index as HTML
  MOPED: <IP_ADDRESS>:27017 COMMAND      database=admin command={:ismaster=>1} (0.0004ms)
  MOPED: <IP_ADDRESS>:27017 QUERY        database=mongoid collection=users selector={"_id"=>{"$in"=>["23542722234aaa0001"]}} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.0009ms)
Filter chain halted as :authentication_prep rendered or redirected
Completed 401 Unauthorized in 3ms

Started GET "/" for <IP_ADDRESS> at 2012-10-16 13:54:40 -0700
Processing by HomeController#index as HTML
  MOPED: <IP_ADDRESS>:27017 COMMAND      database=admin command={:ismaster=>1} (0.0004ms)
  MOPED: <IP_ADDRESS>:27017 QUERY        database=mongoid collection=users selector={"_id"=>{"$in"=>["23542722234aaa0001"]}} flags=[:slave_ok] limit=0 skip=0 fields=nil (0.0005ms)
Filter chain halted as :authentication_prep rendered or redirected
Completed 401 Unauthorized in 2ms

Potentially related to https://github.com/elasticsearch/logstash/issues/2262 and https://github.com/elasticsearch/logstash/issues/2262#issuecomment-67448930


dart migrate fails with an exception

dart migrate is failing with an exception, this might be package-specific since I migrated a few other packages today and it worked fine.
The package I tried to migrate - https://github.com/Sameerkash/stacked/tree/master/packages/stacked

 dart migrate
Migrating /Volumes/FAST/Projects/stacked/packages/stacked

See https://dart.dev/go/null-safety-migration for a migration guide.

Note: more than one project found; migrating the top-level project.

Analyzing project...
[-----------------------------------------------------------------------------------------------------------------------------------------------/]No analysis issues found.

Generating migration suggestions...
[-----------------------------------/                                                                                ]Aborting migration due to an exception.  This most likely is due to a
bug in the migration tool.  Please consider filing a bug report at:

https://github.com/dart-lang/sdk/issues/new
Please include the SDK version (2.12.0) in your bug report.

To attempt to perform migration anyway, you may re-run with
--ignore-exceptions.

Exception details:

Bad state: Unrelated types: class ChangeNotifier implements Listenable and class DynamicSourceViewModel<T> extends ReactiveViewModel* at offset 5557 in /Volumes/FAST/Projects/stacked/packages/stacked/lib/src/state_management/view_model_builder.dart (model.changeSource)

#0      DecoratedClassHierarchy.getDecoratedSupertype (package:nnbd_migration/src/decorated_class_hierarchy.dart:67:10)
#1      DecoratedClassHierarchy.asInstanceOf (package:nnbd_migration/src/decorated_class_hierarchy.dart:38:18)
#2      EdgeBuilder.getOrComputeElementType (package:nnbd_migration/src/edge_builder.dart:259:16)
#3      EdgeBuilder._handlePropertyAccess (package:nnbd_migration/src/edge_builder.dart:2997:20)
#4      EdgeBuilder.visitPrefixedIdentifier (package:nnbd_migration/src/edge_builder.dart:1405:14)
#5      PrefixedIdentifierImpl.accept (package:analyzer/src/dart/ast/ast.dart:8257:49)
#6      EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#7      EdgeBuilder.visitBinaryExpression (package:nnbd_migration/src/edge_builder.dart:486:22)
#8      BinaryExpressionImpl.accept (package:analyzer/src/dart/ast/ast.dart:967:49)
#9      EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#10     EdgeBuilder._checkExpressionNotNull (package:nnbd_migration/src/edge_builder.dart:1980:20)
#11     EdgeBuilder.visitIfStatement (package:nnbd_migration/src/edge_builder.dart:1021:5)
#12     IfStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:5705:49)
#13     EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#14     EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
#15     GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:517:39)
#16     GeneralizingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:165:31)
#17     BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1083:49)
#18     EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#19     EdgeBuilder.visitIfStatement.<anonymous closure> (package:nnbd_migration/src/edge_builder.dart:1037:25)
#20     ScopedSet.doScoped (package:nnbd_migration/src/utilities/scoped_set.dart:44:13)
#21     EdgeBuilder.visitIfStatement (package:nnbd_migration/src/edge_builder.dart:1036:28)
#22     IfStatementImpl.accept (package:analyzer/src/dart/ast/ast.dart:5705:49)
#23     EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#24     EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
#25     GeneralizingAstVisitor.visitStatement (package:analyzer/dart/ast/visitor.dart:517:39)
#26     GeneralizingAstVisitor.visitBlock (package:analyzer/dart/ast/visitor.dart:165:31)
#27     BlockImpl.accept (package:analyzer/src/dart/ast/ast.dart:1083:49)
#28     EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#29     EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
#30     GeneralizingAstVisitor.visitFunctionBody (package:analyzer/dart/ast/visitor.dart:324:45)
#31     GeneralizingAstVisitor.visitBlockFunctionBody (package:analyzer/dart/ast/visitor.dart:168:55)
#32     BlockFunctionBodyImpl.accept (package:analyzer/src/dart/ast/ast.dart:1038:49)
#33     EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#34     EdgeBuilder._handleExecutableDeclaration (package:nnbd_migration/src/edge_builder.dart:2488:7)
#35     EdgeBuilder.visitMethodDeclaration (package:nnbd_migration/src/edge_builder.dart:1243:5)
#36     MethodDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:7033:49)
#37     EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#38     EdgeBuilder._dispatchList (package:nnbd_migration/src/edge_builder.dart:2229:7)
#39     EdgeBuilder.visitClassOrMixinOrExtensionDeclaration (package:nnbd_migration/src/edge_builder.dart:607:7)
#40     EdgeBuilder.visitClassDeclaration (package:nnbd_migration/src/edge_builder.dart:574:5)
#41     ClassDeclarationImpl.accept (package:analyzer/src/dart/ast/ast.dart:1536:49)
#42     EdgeBuilder._dispatch (package:nnbd_migration/src/edge_builder.dart:2207:24)
#43     EdgeBuilder.visitNode (package:nnbd_migration/src/edge_builder.dart:1340:9)
#44     GeneralizingAstVisitor.visitCompilationUnit (package:analyzer/dart/ast/visitor.dart:202:51)
#45     CompletenessTracker.visitCompilationUnit.<anonymous closure> (package:nnbd_migration/src/utilities/completeness_tracker.dart:52:24)
#46     PermissiveModeVisitor.reportExceptionsIfPermissive (package:nnbd_migration/src/utilities/permissive_mode.dart:26:24)
#47     CompletenessTracker.visitCompilationUnit (package:nnbd_migration/src/utilities/completeness_tracker.dart:43:5)
#48     CompilationUnitImpl.accept (package:analyzer/src/dart/ast/ast.dart:2134:49)
#49     NullabilityMigrationImpl.processInput (package:nnbd_migration/src/nullability_migration_impl.dart:244:12)
#50     NonNullableFix.processUnit (package:nnbd_migration/src/front_end/non_nullable_fix.dart:164:15)
#51     _FixCodeProcessor.runLaterPhases.<anonymous closure> (package:nnbd_migration/migration_cli.dart:1154:19)
#52     _FixCodeProcessor.runLaterPhases.<anonymous closure> (package:nnbd_migration/migration_cli.dart:1152:28)
#53     _FixCodeProcessor.processResources (package:nnbd_migration/migration_cli.dart:1081:30)
<asynchronous suspension>
#54     _FixCodeProcessor.runLaterPhases (package:nnbd_migration/migration_cli.dart:1152:5)
<asynchronous suspension>
#55     MigrationCliRunner.run (package:nnbd_migration/migration_cli.dart:749:24)
<asynchronous suspension>
#56     MigrateCommand.run (package:nnbd_migration/migration_cli.dart:185:7)
<asynchronous suspension>
#57     CommandRunner.runCommand (package:args/command_runner.dart:196:13)
<asynchronous suspension>
#58     DartdevRunner.runCommand (package:dartdev/dartdev.dart:199:18)
<asynchronous suspension>
#59     runDartdev (package:dartdev/dartdev.dart:53:16)
<asynchronous suspension>
#60     main (file:///opt/s/w/ir/cache/builder/src/third_party/dart/pkg/dartdev/bin/dartdev.dart:11:3)
<asynchronous suspension>

dart --version
Dart SDK version: 2.12.0 (stable) (Thu Feb 25 19:50:53 2021 +0100) on "macos_x64"

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, 2.0.0, on macOS 11.0.1 20B50 darwin-x64, locale en-US)

As of 1c7fe7196dd7a542f7f91cd6ea2ac81e1a13146c, the null safety migration tool has been removed from active development and retired. No further work on the tool is planned.
If you still need help, or you believe this issue has been closed in error, please feel free to reopen.


Fix Arc Cannon not hurting npc_gunship and npc_pilot_elite

Fixes https://github.com/R2Northstar/NorthstarMods/issues/842 . I only NOW realized i could just pr it directly lol

cc @Dinorush @GalacticMoblin @ASpoonPlaysGames @Masterliberty @Zanieon

Question: does npc_pilot_elite_assassin work? Its not derived from npc_pilot_elite or npc_soldier so theoretically the Arc Cannon wouldn't be able to hit them, but i can't get them to spawn so i can't test it

Question: does npc_pilot_elite_assassin work? Its not derived from npc_pilot_elite or npc_soldier so theoretically the Arc Cannon wouldn't be able to hit them, but i can't get them to spawn so i can't test it

It works becase what you need to care in this is the BaseClass of the aisetting definition, not the name of the setting itself, npc_pilot_elite_assassin still uses npc_pilot_elite as BaseClass, so it will be counted.

Given the simple nature of the change I'm fine with merging it without any further testing as it can easily be reverted should something turn out to not work out as intended ^^


Snake, but with a twist - there are poisonous apples that you have to avoid.
Press WASD to turn (or start moving at the beginning of the game). Avoid the poisonous (green/brown) apples while eating the healthy (red) apples. But be careful - the more apples you eat, the faster you become, requiring more control!

Code
Check off the items that are true.

[x] The game was made using the Sprig editor.
[x] The game is placed in the in the /games directory.
[x] The code is significantly different from all other games in the Sprig gallery (except for games labeled "demo").
[x] The game runs without errors.
[x] The name of the file/game contains only alphanumeric characters, -s, or _s.
[x] The game name is not the same as the others from gallery

Image (If an image is used)

[x] The image is in the /games/img directory.
[x] The name of the image matches the name of your file.

Thanks for your PR!

I'm getting an error when trying to run your code, so unfortunately I cannot review it. Feel free to make changes and request a re-review once you're ready!

Hmm, that's odd; I'm not getting that error, but I removed the border 🤷
Also, both before and after this change work on my side: https://streamable.com/lpeeue so I don't really know how to fix this issue

Okay, cool! It works now for some reason. This game is well-made and fun to play — good work! If you're a teenager, you're eligible to receive a free Sprig console - just fill out this link to request one. Also, feel free to join our online Slack community, where you can talk to other teenagers making Sprig games in the #sprig channel.


Update dependencies

Update dependencies in order to fix the problem rollup has with sourceMap : see https://github.com/rollup/rollup/issues/618
All tests are passing.

:+1:

Thanks for the contribution, I merged it and published a new release


Add support for form encoding

What kind of change does this PR introduce? (check one with "x")
[] Bugfix
[X] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[] Other... Please describe:

Fixes: # https://github.com/TIBCOSoftware/flogo/issues/285
What is the current behavior? Currently only application/json is a valid type of encoding (in case of other types, like application/x-www-form-urlencoded, it will throw an error while decoding)
What is the new behavior? There is a switch statement looking at the Content-Type (r.Header.Get("Content-Type")) and based on that it will treat the content differently

Updated as requested, it does make the code a little more complex but it will make it easier for the user to use the values. The result is a map[string]interface{} where interface is either the string value or the array
Example 1:
Key "fizz" Value "buzz"
Key "bla" Value "wow"
Example 2:
Key "bla"  Value "[wow cool]" (array)


canonical glycolysis  ancestry

canonical glycolysis
is a descendant of "GO:0046939	nucleotide phosphorylation"
which seems odd?
some  nucleotide phosphorylaton events are part_of glycolysis?

Yes. ADP is phosphorylated to form ATP in the course of glycolysis, as shown in the screenshot from the canonical glycolysis quickGO page:

@ukemi I think we decided there was no alternative to this, because ATP generation is a central feature of glycolysis?

I would expect to see ancestry aligned with the process, but "nucleotide phosphorylation" is more like a MF that is part of the process?

Actually, It looks really strage to have a reaction (ATP generation from ADP) as a  parent of the entire pathway. @ukemi Does that model in Noctua OK?

Should gluconeogenesis also have the parent
'generation of precursor metabolites and energy'.?

This is a question for @ukemi and @deustp01 , but based on the definition of gluconeogenesis, "The formation of glucose from noncarbohydrate precursors, such as pyruvate, amino acids and glycerol. " - I dont think so?
Also, from the change log in QuickGO, it looks like gluconeogenesis was never is_a 'generation of precursor metabolites and energy'.

The def of 'generation of precursor metabolites' is "The chemical reactions and pathways resulting in the formation of precursor metabolites, substances from which energy is derived, and any process involved in the liberation of energy from these substances."
@ukemi @deustp01 can we have a list (even partial) of these precursor metabolites?

@ukemi  can we have a list (even partial) of these precursor metabolites?

The list, even a partial one, will be complicated, full of taxon constraints, and, unless also provided with tissue- and physiological-state- constraints, will be wildly misleading. For example, in green plants carbon dioxide, via photosynthesis, looks like a precursor. In healthy humans long chain fatty acids are precursors but mostly in the fasting state and never in red blood cells. And so on.
I think we need two preliminary discussions here. First, what are the use cases for such lists? If we find good ones, then a second one to find a strategy that real curators can apply to construct minimal lists that are accurate, maintainable, and responsive to the use cases.
And perhaps we also need to think of alternative approaches. For example, given a good set of GO-CAMs (not out of reach for eukaryotic energy metabolism), and really robust tools to identify "provides input for" relationships between activites both within a single GO-CAM / process / pathways and between them, the precursors fall out of the pathway annotations (including ones not expected per the textbooks that turn out to be real).

GO:0006091  generation of precursor metabolites and energy
has always been a bit of a problem term. Its a bit of a fudge to groups terms related to energy generation for enrichment and slimming  (many of which would not slim elsewhere). These include glycolysis, TCA cycle, respiratory chain, photosynthesis. The current children are below:
I have always been a bit confused by the "generation of precursor metabolites"
part of the  term label (although the def does seem to restrict to "energy generation")
The chemical reactions and pathways resulting in the formation of precursor metabolites, substances from which energy is derived, and any process involved in the liberation of energy from these substances.
Although the term is clunky, it does seem to work as an "annotation bin" to collect  together energy generating processes.

GO:0015980    energy derivation by oxidation of organic compounds
is_a

GO:0009765    photosynthesis, light harvesting
is_a

GO:0006069    ethanol oxidation
is_a

GO:0006740    NADPH regeneration
is_a

GO:0019684    photosynthesis, light reaction
is_a

GO:0061719    glucose catabolic process to pyruvate utilizing ADP
is_a

GO:0015975    energy derivation by oxidation of reduced inorganic compounds
is_a

GO:0009052    pentose-phosphate shunt, non-oxidative branch
is_a

GO:1902224    ketone body metabolic process
is_a

GO:0022900    electron transport chain
is_a

GO:0043467    regulation of generation of precursor metabolites and energy
regulates

GO:0061722    sulphoglycolysis

GO:0015980    energy derivation by oxidation of organic compounds	is_a
GO:0009765    photosynthesis, light harvesting	is_a
GO:0006069    ethanol oxidation	is_a
GO:0006740    NADPH regeneration	is_a
GO:0019684    photosynthesis, light reaction	is_a
GO:0061719    glucose catabolic process to pyruvate utilizing ADP	is_a
GO:0015975    energy derivation by oxidation of reduced inorganic compounds	is_a
GO:0009052    pentose-phosphate shunt, non-oxidative branch	is_a
GO:1902224    ketone body metabolic process	is_a
GO:0022900    electron transport chain	is_a
GO:0043467    regulation of generation of precursor metabolites and energy	regulates
GO:0061722    sulphoglycolysis


Feature normalization

Decide if normalizing by lines of code is not more appropriate than by count of classes. Do this by calculating correlation between the normalizing feature and count of crypto api records on Avast dataset.

Note: do this with benign and malicious samples! Because using only one type could skew the results.


Implement Quick Insert

Quick Insert's api would be a beautiful addition to the ways a GM can populate the grid.

So I use quick insert with this module all the time. Ctrl-space, search then drag to the location on the screen.


[Suggestion] Tag releases in GitHub

I would suggest to tag releases also in GitHub (similar to DockerHub).

@thisisthekap very good suggestion. We are pushing tags now starting with v1.3.0. See also https://github.com/arafato/azurite/releases


Right justification breaks when 'number' is enabled

When%> is included in g:SimplenoteNoteFormat (which is the default behavior) it doesn't right-justify properly when the number option is enabled.
set number is in my vimrc, and when I execute :SimplenoteList the lines extend offscreen by 5 characters or so. :set nonumber fixes the formatting.

This feels vaguely familiar. Like I've come across this myself and perhaps decided to live with it and/or decided it couldn't be fixed... not sure. Will try to take a look soon.
I think I know what you mean though.

Ah yeah, I mentioned that on this commit: https://github.com/mrtazz/simplenote.vim/commit/f7debaf1cf6fc7fd1b771ee9278829b07cf4b0e9

This doesn't account for the Vim configuration setting of numberwidth,
but I'm not sure if it should.

Will take a look at this again.

I've got a fix for this. Going to push it and a new release once https://github.com/simplenote-vim/simplenote.py/pull/27 is all sorted and merged in as well.

Ok, change of plan, pushed a fix for this now since the simplenote.py changes are going to take longer than I thought.


WASM support

[ ] Setup API Client
[ ] Setup Index DB
[ ] Integrate with SDK

[ ] get bindings_wasm building in CI (empty at first)
[ ] solve web networking (grpc gateway proxy api client)
[ ] solve web storage (sqlite3 in wasm quirks + opfs vfs / worker threads)
[ ] design wrapper SDK


Rules: Static Application Security Testing

In my opinion this would be a nice feature.
The Open Web Application Security Project lists various tools with security based rules.
reference:
https://www.owasp.org/index.php/Source_Code_Analysis_Tools

Interesting, what kind of security flaws to you have in mind.

Actually, there are many security flaws. Just to mention a few

Weak hashing
Pseudo random
SQL injection
XSS

Spotbugs (formally known as Findbugs) has Find Security Bugs which "can detect 127 different vulnerability types with over 806 unique API signatures", see this overview. This is something I miss in Detekt.

Good point

Findbugs should also work with kotlin and detect these patterns? Maybe the linenumbers are off..

Findbugs should also work with kotlin and detect these patterns?

Yes, Spotbugs can now detect these patterns. Until recently the Spotbugs Gradle plugin wasn't able to analyze Kotlin code due to a breaking change in Gradle 4.0, which is fixed in release 1.6.2 (see https://github.com/spotbugs/spotbugs-gradle-plugin/pull/12).
Some short tests are promising, I didn't notice any bad source mapping. Although when using Spotbugs to analyze Kotlin code I'd recommend disabling the pattern categories BAD_PRACTICE, CORRECTNESS, I18N, MT_CORRECTNESS, NOISE, PERFORMANCE and STYLE as they mostly concern the Kotlin-generated bytecode, not the actual source code.
@schalkms do you think that it is still necessary to re-implement these rules for Detekt? FindSecBugs seems to cover your suggestions

We shouldn't reimplement those if they work with findbugs.

No. There is no need to reimplement the same functionality.
I am closing this issue.


Expose Configuration Options Via malscan -c

Configuration options should be viewable (and in the case of sudo - editable) via a malscan flag or subsystem such as -c, --config, or malscan config.

The switch options are currently in the 1.7.0-dev branch


Don't snap on input nor dismiss selection for just a modifier key

Does what it says on the label. Pure modifier keys weren't making it
this far at all prior to #6309. This PR changes these methods to make
sure that we only dismiss a selection or snap on input when the key
pressed isn't a modifier key.
References

regressed in #6309

PR Checklist

[x] Closes #6423
[x] I work here
[ ] Tests added/passed
[n/a] Requires documentation to be updated

Validation Steps Performed

Tried to repro this in the Terminal, couldn't anymore.

Mind checking the WPF control as well?

I'm waiting to automerge this PR - I want to test this in the WPF project Dustin just made a PR for

@msftbot merge this in 1 minute


Update azureGathering.service.ts

:tada: This PR is included in version 1.4.0 :tada:
The release is available on:

GitHub release
v1.4.0

Your semantic-release bot :package::rocket:


[bare metal] OKD 4.4 console fails to start with connection refused

console specific logs：
[root@cloud-com-1 rhcos-4.4]#  oc describe pod console-687456646-5648h -n openshift-console
Name:                 console-687456646-5648h
Namespace:            openshift-console
Priority:<PHONE_NUMBER>
Priority Class Name:  system-cluster-critical
Node:                 master1/<IP_ADDRESS>
Start Time:           Tue, 19 May 2020 12:34:35 +0000
Labels:               app=console
component=ui
pod-template-hash=687456646
Annotations:          console.openshift.io/console-config-version: 132198
console.openshift.io/default-ingress-cert-config-version: 131913
console.openshift.io/image:
quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:52465443a0c0f8e1d9dd8f2e3c7ec0e5d32dc438f181adf467ab883a6b283c26
console.openshift.io/oauth-secret-version: 164352
console.openshift.io/proxy-config-version: 733
console.openshift.io/service-ca-config-version: 132714
console.openshift.io/trusted-ca-config-version: 132202
k8s.v1.cni.cncf.io/networks-status:
[{
"name": "openshift-sdn",
"interface": "eth0",
"ips": [
"<IP_ADDRESS>"
],
"dns": {},
"default-route": [
"<IP_ADDRESS>"
]
}]
openshift.io/scc: restricted
operator.openshift.io/pull-spec:
quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:52465443a0c0f8e1d9dd8f2e3c7ec0e5d32dc438f181adf467ab883a6b283c26
Status:               Running
IP:                   <IP_ADDRESS>
IPs:
IP:           <IP_ADDRESS>
Controlled By:  ReplicaSet/console-687456646
Containers:
console:
Container ID:  cri-o://fe3c06ea88b82853f21fb20ef0a4d1334e254dda16412789aeee38801b422243
Image:         quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:52465443a0c0f8e1d9dd8f2e3c7ec0e5d32dc438f181adf467ab883a6b283c26
Image ID:      quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:52465443a0c0f8e1d9dd8f2e3c7ec0e5d32dc438f181adf467ab883a6b283c26
Port:          443/TCP
Host Port:     0/TCP
Command:
/opt/bridge/bin/bridge
--public-dir=/opt/bridge/static
--config=/var/console-config/console-config.yaml
--service-ca-file=/var/service-ca/service-ca.crt
State:       Running
Started:   Tue, 19 May 2020 13:42:07 +0000
Last State:  Terminated
Reason:    Error
Message:   T13:35:27Z auth: error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps.okd4-cluster.okd4.com/oauth/token failed: Head https://oauth-openshift.apps.okd4-cluster.okd4.com: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2020-05-19T13:35:42Z auth: error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps.okd4-cluster.okd4.com/oauth/token failed: Head https://oauth-openshift.apps.okd4-cluster.okd4.com: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2020-05-19T13:35:57Z auth: error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps.okd4-cluster.okd4.com/oauth/token failed: Head https://oauth-openshift.apps.okd4-cluster.okd4.com: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2020-05-19T13:36:12Z auth: error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps.okd4-cluster.okd4.com/oauth/token failed: Head https://oauth-openshift.apps.okd4-cluster.okd4.com: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2020-05-19T13:36:27Z auth: error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps.okd4-cluster.okd4.com/oauth/token failed: Head https://oauth-openshift.apps.okd4-cluster.okd4.com: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
2020-05-19T13:36:42Z auth: error contacting auth provider (retrying in 10s): request to OAuth issuer endpoint https://oauth-openshift.apps.okd4-cluster.okd4.com/oauth/token failed: Head https://oauth-openshift.apps.okd4-cluster.okd4.com: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
  Exit Code:    2
  Started:      Tue, 19 May 2020 13:33:36 +0000
  Finished:     Tue, 19 May 2020 13:36:56 +0000
Ready:          False
Restart Count:  14
Requests:
  cpu:        10m
  memory:     100Mi
Liveness:     http-get https://:8443/health delay=150s timeout=1s period=10s #success=1 #failure=3
Readiness:    http-get https://:8443/health delay=0s timeout=1s period=10s #success=1 #failure=3
Environment:  <none>
Mounts:
  /etc/pki/ca-trust/extracted/pem from trusted-ca-bundle (ro)
  /var/console-config from console-config (ro)
  /var/default-ingress-cert from default-ingress-cert (ro)
  /var/oauth-config from console-oauth-config (ro)
  /var/run/secrets/kubernetes.io/serviceaccount from console-token-2dwlb (ro)
  /var/service-ca from service-ca (ro)
  /var/serving-cert from console-serving-cert (ro)

Conditions:
Type              Status
Initialized       True
Ready             False
ContainersReady   False
PodScheduled      True
Volumes:
console-serving-cert:
Type:        Secret (a volume populated by a Secret)
SecretName:  console-serving-cert
Optional:    false
console-oauth-config:
Type:        Secret (a volume populated by a Secret)
SecretName:  console-oauth-config
Optional:    false
console-config:
Type:      ConfigMap (a volume populated by a ConfigMap)
Name:      console-config
Optional:  false
service-ca:
Type:      ConfigMap (a volume populated by a ConfigMap)
Name:      service-ca
Optional:  false
default-ingress-cert:
Type:      ConfigMap (a volume populated by a ConfigMap)
Name:      default-ingress-cert
Optional:  false
trusted-ca-bundle:
Type:      ConfigMap (a volume populated by a ConfigMap)
Name:      trusted-ca-bundle
Optional:  false
console-token-2dwlb:
Type:        Secret (a volume populated by a Secret)
SecretName:  console-token-2dwlb
Optional:    false
QoS Class:       Burstable
Node-Selectors:  node-role.kubernetes.io/master=
Tolerations:     node-role.kubernetes.io/master:NoSchedule
node.kubernetes.io/memory-pressure:NoSchedule
node.kubernetes.io/not-reachable:NoExecute for 120s
node.kubernetes.io/not-ready:NoExecute for 300s
node.kubernetes.io/unreachable:NoExecute for 120s
Events:
Type     Reason     Age                  From               Message

Normal   Scheduled              default-scheduler  Successfully assigned openshift-console/console-687456646-5648h to master1
Normal   Pulled     71m                  kubelet, master1   Container image "quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:52465443a0c0f8e1d9dd8f2e3c7ec0e5d32dc438f181adf467ab883a6b283c26" already present on machine
Normal   Created    71m                  kubelet, master1   Created container console
Normal   Started    71m                  kubelet, master1   Started container console
Warning  Unhealthy  68m (x3 over 68m)    kubelet, master1   Liveness probe failed: Get https://<IP_ADDRESS>:8443/health: dial tcp <IP_ADDRESS>:8443: connect: connection refused
Normal   Killing    68m                  kubelet, master1   Container console failed liveness probe, will be restarted
Warning  Unhealthy  11m (x267 over 71m)  kubelet, master1   Readiness probe failed: Get https://<IP_ADDRESS>:8443/health: dial tcp <IP_ADDRESS>:8443: connect: connection refused
Warning  BackOff    6m7s (x88 over 44m)  kubelet, master1   Back-off restarting failed container
[root@cloud-com-1 rhcos-4.4]#

Please add the link to must-gather

[root@cloud-com-1 rhcos-4.4]#  oc adm must-gather
[must-gather      ] OUT imagestreams.image.openshift.io "must-gather" not found
[must-gather      ] OUT
[must-gather      ] OUT Using must-gather plugin-in image: quay.io/openshift/origin-must-gather:latest
[must-gather      ] OUT namespace/openshift-must-gather-z7nrt created
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-zwknz created
[must-gather      ] OUT clusterrolebinding.rbac.authorization.k8s.io/must-gather-zwknz deleted
[must-gather      ] OUT namespace/openshift-must-gather-z7nrt deleted
Error from server (Forbidden): pods "must-gather-" is forbidden: error looking up service account openshift-must-gather-z7nrt/default: serviceaccount "default" not found
[root@cloud-com-1 rhcos-4.4]#

My error is very similar to https://github.com/openshift/okd/issues/159, but mine is bare metal, not aws upi

No must-gather provided


Added four Python examples

aside from summer making you play yoyo with the variable names, looks good to me again/still

Alright. Reverted the variable names, so all should be good to go now.

Oops I closed the request 😅

Sorry about that. I just misplaced my comment - meant to say the "behaviors" array should be renamed to "behavior_definitions" but this is fine. Forget I said anything :P

@sromack Is this good to be merged?

@sromack Any chance we can get this merged?


Negative and positive regulation term for GO:0031146

Hello,
Would it be possible to create a negative and positive regulation terms for GO:0031146?
Thank you
Best regards

The reference is PMID:28007894.


Option to make links open in new tab

When using the "simple links" option it'd be nice if there was another option that would add target="_blank" (or whatever target of your choice) to all links.

Duplicate of #249 #247 #222

Adding extra syntax to the link element is not a good idea as it diverts  from the markdown spec and breaks compatibility.
However, there are 2 easy ways to add this to links:
Using embeded html
fiddle
some text with a link google

Create an extension
fiddle
showdown.extension('targetlink', function() {
  return [{
    type: 'lang',
    regex: /\[((?:\[[^\]]*]|[^\[\]])*)]\([ \t]*<?(.*?(?:\(.*?\).*?)?)>?[ \t]*((['"])(.*?)\4[ \t]*)?\)\{\:target=(["'])(.*)\6}/g,
    replace: function(wholematch, linkText, url, a, b, title, c, target) {

      var result = '' + linkText + '';
      return result;
    }
  }];
});

Would that extension work with the auto-parsed simple-url (i.e., not blahblah etc, but just http://example.com)?

this specific extension no. But this one will make all links in the page open as target="_blank":
fiddle
Code:
showdown.extension('targetlink', function() {
  return [{
    type: 'html',
    regex: /(]+?)(>.*<\/a>)/g,
    replace: '$1 target="_blank"$2'
  }];
});

I have installed both (I hope) extensions (named one 'targetlink2' to keep them unique - is that the right thing to do?) and neither seem to be actually doing anything.
I assume I have to just call those showdown.extension(...) bits during my startup?
Here is how I use it:
        showdown.setFlavor('github');
        showdown.extension('targetlink', function() {
          return [{
            type: 'html',
            regex: /(]+?)(>.*<\/a>)/g,
            replace: '$1 target="_blank"$2'
          }];
        });
        showdown.extension('targetlink2', function() {
          return [{
            type: 'lang',
            regex: /\[((?:\[[^\]]*]|[^\[\]])*)]\([ \t]*<?(.*?(?:\(.*?\).*?)?)>?[ \t]*((['"])(.*?)\4[ \t]*)?\)\{\:target=(["'])(.*)\6}/g,
            replace: function(wholematch, linkText, url, a, b, title, c, target) {

              var result = '' + linkText + '';
              return result;
            }
          }];
        });
        this.converter = new showdown.Converter({
            simplifiedAutoLink: true,
            excludeTrailingPunctuationFromURLs: true,
            strikethrough: true,
            tables: true,
            tasklists: true,
            encodeEmails: true
        });

My test block:
Link test:

* www.google.com
* http://www.google.com
* [Google](http://www.google.com)
* [Google][1]

   [1]: http://www.google.com

You SHOULD NOT enable just one since they will colide.
You also have to activate them:
var conv = new showdown.Converter({extension: ['targetlink']});

Hmmm... I was hoping the activating was all I was missing, but it seems not. This is now all I have to initialize:
        showdown.setFlavor('github');
        showdown.extension('targetlink', function() {
          return [{
            type: 'html',
            regex: /(]+?)(>.*<\/a>)/g,
            replace: '$1 target="_blank"$2'
          }];
        });
        this.converter = new showdown.Converter({
            simplifiedAutoLink: true,
            excludeTrailingPunctuationFromURLs: true,
            strikethrough: true,
            tables: true,
            tasklists: true,
            encodeEmails: true,
            extension: ['targetlink']
        });

and it's not doing anything.
I guess it's no biggie - I can write a recursive function to traverse the DOM tree and find any A tags adding the _target attribute. I just thought it would be simpler if showdown could do it for me...

you're missing an s in extensions.

The above solution does not work for more than 1 link in the markup. Just in case anyone stumbles upon this issue, here's how I got it to work for ALL hyperlinks -
showdown.extension('targetlink', function() {
  return [{
    type: 'html',
    filter: function (text) {
        return (''+text).replace(/<a\s+href=/gi, '<a target="_blank" href=');
    }
  }];
});

I know that this issue has been resolved a long time ago, but since I found this result on google prior to the documentation, I think it's good to mention here that this feature is now implemented in showdown itself since v1.7.0 (as you can actually see in the reference from the commit implementing it above).
new showdown.Converter({
  openLinksInNewWindow: true,
});


TypeError: Descriptors cannot not be created directly.

Hi FaceSwap ! When I run this code:
python inference.py --source_paths {PATH_TO_IMAGE} --target_faces_paths {PATH_TO_IMAGE} --target_video {PATH_TO_VIDEO}
I have the following error:
TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

Hi @ihorrible!
Try to pip install protobuf==3.20.*


Fix solang language-server --importmap

Fixes #1162

We don't have a good language-server test framework yet. I should add that to the mentorship https://wiki.hyperledger.org/display/INTERN/Make+the+Solidity+Language+Server+functional