pset.export() crash in python3.8

I have just installed the current master branch of Parcels in a python3.8 venv on a new machine and am seeing the following error when running the NEMO curvilinear co-ordinates example:
Exception ignored in: <function ParticleFile.__del__ at 0x7f0393249ee0>

Traceback (most recent call last):
  File "/home/alexander/venvs/parcelsdrake/lib/python3.8/site-packages/parcels-2.2.3.dev10+g266410ca-py3.8.egg/parcels/particlefile.py", line 189, in __del__

  File "/home/alexander/venvs/parcelsdrake/lib/python3.8/site-packages/parcels-2.2.3.dev10+g266410ca-py3.8.egg/parcels/particlefile.py", line 194, in close

  File "/home/alexander/venvs/parcelsdrake/lib/python3.8/site-packages/parcels-2.2.3.dev10+g266410ca-py3.8.egg/parcels/particlefile.py", line 305, in export

  File "/home/alexander/venvs/parcelsdrake/lib/python3.8/site-packages/numpy/lib/npyio.py", line 416, in load
NameError: name 'open' is not defined

If I have correctly read the stack trace, the error occurs after the pset.execute() loop, perhaps during the conversion of the .npy temp files to a netcdf output? If this is not a known issue I can try installing on a venv with an earlier Python version to see if the likely culprit is some change within python3.8 itself.

Hi @christensen5
We are aware of this annoying bug. However, it's not a fatal bug, fortunately. It often happens if the ParticleFile object is closed twice, for example if you first close it explicitly pfile.close() and then again when the python script is ended
The best way to avoid the bug is to create the ParticleFile object inside the pset.execute(), so that it is closed at the end of the execute. An alternative is to issue pfile.export() after you're done with all executions; that should create the netcdf output file and you will have it regardless of this error message above. In that case, you can therefore ignore it
So in summary: the error message above is a low-impact bug that turns out to be very difficult to fix. If someone has an idea though how to 'properly' fix it; let us know!


major internal changes

Can you provide some commentary on what this is.
A single commit is a bit hard to review.

Notable Changes

Create vendor folder, which contains wrappers and types for 3rd party dependencies
Create new runtime-bundler package which generates the runtime based on a config file (see runtime/v1/runtime.config.jsbased on ESBuild (several milliseconds) and TypeScript compiler API (still very slow, but at least works)
Removed reliance onrollup-plugin-dts which is not capable of handing the size of the runtime
Move out packages crypto and json-utils into libcrypto and libjs respectively
Resolve circular dependencies
Create new runtime-core package which is relied upon by many things
Use vendor package for zod


An Invitation Request to join Chryz-hub

hi, I'm Elida, an open-source contributor, What compels me to join Chryz-hub is the advantage to learn, contribute, and be part of a team and community.

Follow the instruction given by the github actions bot


Incorrect License info

Overview
License seems to be missing copyright information.
https://github.com/amaranthine-network/persistenceCore/blob/master/LICENSE#L189
Note
Seems to be present in multiple repositories

Any update on this @deepanshutr ?

Hi Anmol, that appendix gives instructions as to how to add the copyright to the work(project files). We have added that in project files. This licence is not to be mutated as it is a recognized licence by github, all project details are captured by github at the top, for forked work also based on the licence type.

@Anmol1696  can add 2019 PERSISTENCE TECHNOLOGIES PTE. LTD.


es6 / jsx / babel / jest - how do I get this working?

Been trying to get jest set up for 2 days now - no luck so far. Here's my current setup and the error messages I'm seeing on this gist.

v2 seems like it should work, however you also seem to be hitting the error we see when using node v0.12, which jest doesn't support well / at all. See #243 for more.

@anyong I think both your v1 and v2 are broken because you return ''; for non-transformed files. You should be returning the raw source in those cases instead.

I recently deleted node_modules and redid npm install in my working folder because some other packages were messed up, and now I'm literally just getting the following error:
Waiting on 1 test...npm ERR! Test failed.  See above for more details.
There is no other information about why the test failed, and it's the same error whether I return ''; or return src. In both cases now, the files are being processed in this order:
app\scripts\components\__tests__\TestComponent-test.jsx
node_modules\react\react.js
node_modules\react\lib\React.js
node_modules\react\lib\EventPluginUtils.js
node_modules\react\lib\EventConstants.js
node_modules\react\lib\keyMirror.js
node_modules\react\lib\invariant.js
npm ERR! Test failed.

So there's something that jest doesn't like about invariant.js.

Check out this pull request: https://github.com/facebook/jest/pull/417


[SPARK-41539][SQL] Remap stats and constraints against output in logical plan for LogicalRDD

What changes were proposed in this pull request?
This PR proposes to remap stats and constraints against the output in logical for LogicalRDD, like we remap stats and constraints against the "new" output when we call newInstance.
Why are the changes needed?
The output in logical plan and optimized plan can be "slightly" different (we observed the difference of exprId), and then the query can fail due to the invalid attribute reference(s) in stats and constraints for LogicalRDD.
Does this PR introduce any user-facing change?
No.
How was this patch tested?
Modified test cases.

cc. @cloud-fan @viirya @juliuszsompolski Please take a look. Thanks!

cc. @cloud-fan @viirya Friendly reminder.

Thanks all for reviewing! Merging to master.


implement vectorstores by tencent vectordb

Hi there！
I'm excited to open this PR to add support for using 'Tencent Cloud VectorDB' as a vector store.
Tencent Cloud VectorDB is a fully-managed, self-developed, enterprise-level distributed database service designed for storing, retrieving, and analyzing multi-dimensional vector data. The database supports multiple index types and similarity calculation methods, with a single index supporting vector scales up to 1 billion and capable of handling millions of QPS with millisecond-level query latency. Tencent Cloud VectorDB not only provides external knowledge bases for large models to improve their accuracy, but also has wide applications in AI fields such as recommendation systems, NLP services, computer vision, and intelligent customer service.
The PR includes:
Implementation of Vectorstore.
I have read your contributing guidelines. And I have passed the tests below
make format
make lint
make coverage
make test

thank you @wlleiiwang!!


suggestions for the 'callback' was not declared in this scope error please?

Hello, Thank you for sharing your work
When compiling the attached file, " 'callback' was not declared in this scope " error shows up. I also get a note as " note: suggested alternative: 'calloc' ". I have version 2.8 of the library installed.
I would appreciate if you explain to me what's the problem and how to solve it. Btw when I replace "callback" with "calloc", the code compiles fine but I am just not sure if "calloc" does the same job.
Gateway_Ethernet.zip

Sorry, I cannot unzip that file to see what it contains. It actually looks like a rar file - I don't have anything locally installed to handle rar files. Rather than spend my time doing that, can you share a normal zip file or better yet, just share the relevant piece of code rather than your full project.

sure thing, thank you for fast response.
/*
Author:  Eric Tsai
License:  CC-BY-SA, https://creativecommons.org/licenses/by-sa/2.0/
Date:  7-21-2014
File: Ethernet_Gateway.ino
This sketch takes data struct from I2C and publishes it to
mosquitto broker.
Modifications Needed:

Update mac address "mac[]"
Update MQTT broker IP address "server[]"
*/

#include <SPI.h>
#include <Ethernet.h>
#include <Wire.h>
#include <PubSubClient.h>
//I2C receive device address
const byte MY_ADDRESS = 42;    //I2C comms w/ other Arduino
//Ethernet
byte mac[]    = {  0x90, 0xA2, 0xDA, 0x0D, 0x11, 0x11 };
byte server[] = { 192, 168, 1, 51 };  //your MQTT broker IP address
//IPAddress ip(192,168,2,61);
EthernetClient ethClient;
PubSubClient client(server, 1883, callback, ethClient);
unsigned long keepalivetime=0;
unsigned long MQTT_reconnect=0;
//use LED for indicating MQTT connection status.
int led = 13;
bool conn_ok;
void callback(char* topic, byte* payload, unsigned int length) {
// handle message arrived
}
void setup()
{
//ethernet
//Ethernet.begin(mac, ip);
Wire.begin (MY_ADDRESS);
Serial.begin (9600);
Serial.println("starting");
pinMode(led, OUTPUT);
//wait for IP address
while (Ethernet.begin(mac) != 1)
{
Serial.println("Error getting IP address via DHCP, trying again...");
delay(3000);
}
//Ethernet.begin(mac, ip);
Serial.println("ethernet OK");
keepalivetime=millis();
Wire.onReceive (receiveEvent);
while (client.connect("arduinoClient") != 1)
{
Serial.println("Error connecting to MQTT");
delay(3000);
}
MQTT_reconnect = millis();
Serial.println("setup complete");
}  // end of setup
volatile struct
{
int                   nodeID;
int			sensorID;
unsigned long         var1_usl;
float                 var2_float;
float			var3_float;		//
int                   var4_int;
} SensorNode;
int sendMQTT = 0;
volatile boolean haveData = false;
void loop()
{
//if new data on I2C from RFM gateway received, flag for MQTT publish
if (haveData)
{
Serial.print ("Received Device ID = ");
Serial.println (SensorNode.sensorID);
Serial.print ("    Time = ");
Serial.println (SensorNode.var1_usl);
Serial.print ("    var2_float ");
Serial.println (SensorNode.var2_float);
sendMQTT = 1;

/*
if (client.connect("arduinoClient"))
{
  int varnum = 1;
  char buff_topic[6];
  char buff_message[6];
  sprintf(buff_topic, "%02d%01d%01d", SensorNode.nodeID, SensorNode.sensorID, varnum);
  Serial.println(buff_topic);
  dtostrf (SensorNode.var2_float, 4, 1, buff_message);
  client.publish(buff_topic, buff_message);
}
*/

haveData = false;

}  // end if haveData
if (sendMQTT == 1)
{
  Serial.println("starting MQTT send");

  //check to make sure connected to MQTT before trying to publish data
  conn_ok = client.connected();
  if (conn_ok==1)
  {
    digitalWrite(led, HIGH);
    Serial.println("MQTT connected OK from MQTT Send");
  }
  else
  {
    digitalWrite(led, LOW);
    Serial.println("MQTT NOT connected OK from MQTT Send");
  }

  //no connection, reconnect
  if (conn_ok == 0)
  {
    client.disconnect();
    delay(5000);
    while (client.connect("arduinoClient") != 1)
    {
      digitalWrite(led, LOW);
      Serial.println("Error connecting to MQTT");
      delay(4000);
      digitalWrite(led, HIGH);
    }
    digitalWrite(led, HIGH);
    Serial.println("reconnected to MQTT");
    MQTT_reconnect = millis();
  }

  int varnum;
  char buff_topic[6];
  char buff_message[12];

  /*
  //send var1_usl
  varnum = 2;
  buff_topic[6];
  buff_message[12];
  sprintf(buff_topic, "%02d%01d%01d", SensorNode.nodeID, SensorNode.sensorID, varnum);
  Serial.println(buff_topic);
  dtostrf (SensorNode.var1_usl, 10, 1, buff_message);
  client.publish(buff_topic, buff_message);
  */

  //send var2_float
  varnum = 2;
  buff_topic[6];
  buff_message[7];
  sprintf(buff_topic, "%02d%01d%01d", SensorNode.nodeID, SensorNode.sensorID, varnum);
  Serial.println(buff_topic);
  dtostrf (SensorNode.var2_float, 2, 1, buff_message);
  client.publish(buff_topic, buff_message);

  delay(200);

  //send var3_float
  varnum = 3;
  sprintf(buff_topic, "%02d%01d%01d", SensorNode.nodeID, SensorNode.sensorID, varnum);
  Serial.println(buff_topic);
  dtostrf (SensorNode.var3_float, 2, 1, buff_message);
  client.publish(buff_topic, buff_message);

  delay(200);

  //send var4_int, RSSI
  varnum = 4;
  sprintf(buff_topic, "%02d%01d%01d", SensorNode.nodeID, SensorNode.sensorID, varnum);
  Serial.println(buff_topic);
  sprintf(buff_message, "%04d%", SensorNode.var4_int);
  client.publish(buff_topic, buff_message);

  sendMQTT = 0;
  Serial.println("finished MQTT send");

}//end if sendMQTT
//client.loop needs to run every iteration.  Previous version did not.  Big opps.
client.loop();
//regularly check MQTT connection (ever x seconds)
if ((millis() - MQTT_reconnect) > 60000)
{
conn_ok = client.connected();
if (conn_ok==1)
{
digitalWrite(led, HIGH);
Serial.println("MQTT connected OK");
}
else
{
digitalWrite(led, LOW);
Serial.println("MQTT NOT connected OK");
}
//no connection, reconnect
if (conn_ok == 0)
{
  client.disconnect();
  delay(5000);
  while (client.connect("arduinoClient") != 1)
  {
    digitalWrite(led, LOW);
    Serial.println("Error connecting to MQTT");
    delay(4000);
    digitalWrite(led, HIGH);
  }
  digitalWrite(led, HIGH);
}

Serial.println("reconnected to MQTT");
MQTT_reconnect = millis();

}
}  // end of loop
// called by interrupt service routine when incoming data arrives
void receiveEvent (int howMany)
{
if (howMany < sizeof SensorNode)
return;
// read into structure
byte * p = (byte *) &SensorNode;
for (byte i = 0; i < sizeof SensorNode; i++)
*p++ = Wire.read ();
haveData = true;
}

I cannot see anything obviously wrong with how you have defined callback.
Does the error message tell you what line it is complaining about?
Given you are not subscribing to any topics, you don't actually need a callback function. You could change the line to remove it:
PubSubClient client(server, 1883, ethClient);

If you need the callback function at a later time, you should move its definition before the instantiation of client:
...
void callback(char* topic, byte* payload, unsigned int length) {
  // handle message arrived
}
...
PubSubClient client(server, 1883, callback, ethClient);
...

Or add a declaration of the callback function to some header file. Otherwise, the callback function is not known to the compiler when it reaches the instantiation of client, hence the error message.
Do not replace the callback function with calloc. That's a completely different function from the C standard library. I guess the compiler suggested it because it sounds similar, nothing else.

If you need the callback function at a later time, you should move its definition before the instantiation of client:

Oh yes, of course. I spend too much time in JavaScript land these days where functions are automatically hoisted.

Hello, I also have an error with callback in my basic project, can you help me??
`#include <Arduino.h>
#include <PubSubClient.h>
#include <ESP8266WiFi.h>
int  i;
WiFiClient espClient;
PubSubClient client(espClient);
void reconnectmqttserver() {
while (!client.connected()) {
Serial.print("Attempting MQTT connection...");
String clientId = "ESP8266Client-";
clientId += String(random(0xffff), HEX);
if (client.connect(clientId.c_str())) {
Serial.println("connected");
}
else {
Serial.print("failed, rc=");
Serial.print(client.state());
Serial.println(" try again in 5 seconds");
delay(5000);
}
}
}
char msgmqtt[50];
void setup()
{
i = 0;
Serial.begin(9600);
WiFi.disconnect();
delay(3000);
Serial.println("Connecting...");
WiFi.begin("The Sun","88888888");
while ((!(WiFi.status() == WL_CONNECTED))){
delay(300);
Serial.println(". ");
}
Serial.println("Connected.");
Serial.println("local IP:");
client.setServer("<IP_ADDRESS>", 1883);
client.setCallback(callback);
}
void loop()
{
if (!client.connected()) {
reconnectmqttserver();
}
client.loop();
snprintf (msgmqtt, 50, "%d ",i);
client.publish("TOPIC", msgmqtt);
i = i + 1;
delay(3000);

}`

You'd rather use
client.setCallback(callback);
instead of
client.setServer(callback);
if you were using a callback function for receiving. However, since you haven't defined one in your sketch, you can just remove that line.

thank you marcel7234 , but it have the same error
'callback' was not declared in this scope
identifier "callback" is undefined

@hoatenhu, I suggest you modify your sketch like this:
...
  Serial.println("local IP:");
  client.setServer("<IP_ADDRESS>", 1883);
}
void loop()
...

Then callback nowhere shows up, and you should get rid of that error. Good luck!

@marcel7234 thank you so much, but it can't connect:
.
.
.
Connected.
local IP:
<IP_ADDRESS>
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
Attempting MQTT connection...failed, rc=


Stop using deprecated code in CMS 4 for core

Splitting from https://github.com/silverstripe/silverstripe-framework/issues/10500
Acceptance criteria

[ ] Update all code paths in core (silverstripe/installer) so that deprecated code is no longer being called
[ ] There's a documented way of skipping test targeting deprecated methods.
[ ] Manually mark test targeting deprecated method so the developer running the test can choose to skip them. These tests will be later removed in https://github.com/silverstripe/silverstripe-framework/issues/10501

[ ] Only skip these tests when deprecation notices are enabled and the deprecation version is >= 5.0.0

[ ] Update calls to config()->update() to config()->set() if they are using non-arrays

Notes

Ensure that we have a reliable way to surface deprecation warnings from up-stream dependencies such as symfony and guzzle e.g. investigate using this https://symfony.com/doc/current/components/phpunit_bridge.html#usage
In some instances there will be no immediate migration path for code in 4 because the new API only exists in 5 e.g. swiftmailer -> symfony/mailer

Implementation notes - stand-alone CI

Highly recommend creating a stand alone CI on a non-silverstripe account with deprecation turned on to validate work
The CI will needs to use multiple creative-commoners forks (several core modules) at once
Previous attempts to use multiple forks in CI have failed due to rate limit issues. Adding a github-token via the setup-php action have NOT worked.
The work around this, recommend the special CI try using https://github.com/emteknetnz/vendor-code-patcher to dynamically generate patches within the CI.
Failing that, fall back is to manually add the patches on laptop and push to /silverstripe-installer, though this is laborious.
Also want to use Logger everything that is deprecated to a CI log file, reason being that behat can still pass even with warnings covering the screen, so we want to capture these deprecations warnings
The stand-alone CI is NOT going to be merged back into the silverstripe

Background for CI deprecation job
I tried turning on deprecation warning on a CMS 4 fork on emteknetnz/silverstripe-framework by simply changing the Deprecation::notification_version in _config.php from 4.0.0 to 5.0.0
While most deprecation warnings were harmless, a bunch of them causes the build to go red e.g. Config_ForClass:update()
Because of it causing the build to go red, it's not viable to have a permanent job with deprecation warnings turned on. This is doubly so because gha-ci is an upstream provider for non cms-squad modules that use the CI.
I also don't think have a permanent deprecation job on is even really helpful. There is no further use for it once the work is this card and the corresponding card "Stop using deprecated code in CMS 4 for sink" is completed.
silverstripe/installer run including PRs below

https://github.com/emteknetnz/silverstripe-installer/actions/runs/3424349488 (original)
https://github.com/emteknetnz/silverstripe-installer/actions/runs/3474731281 (post peer review feedback)

PRs

https://github.com/silverstripe/silverstripe-framework/pull/10565
https://github.com/silverstripe/silverstripe-admin/pull/1388
https://github.com/silverstripe/silverstripe-assets/pull/526
https://github.com/silverstripe/silverstripe-cms/pull/2794
https://github.com/silverstripe/silverstripe-config/pull/74
https://github.com/silverstripe/silverstripe-graphql/pull/505
https://github.com/silverstripe/silverstripe-testsession/pull/83
https://github.com/silverstripe/silverstripe-versioned/pull/377
https://github.com/silverstripe/silverstripe-elemental/pull/1018
https://github.com/silverstripe/silverstripe-registry/pull/73
https://github.com/symbiote/silverstripe-gridfieldextensions/pull/351
https://github.com/silverstripe/silverstripe-behat-extension/pull/233
https://github.com/silverstripe/silverstripe-campaign-admin/pull/247
https://github.com/silverstripe/silverstripe-asset-admin/pull/1304
https://github.com/silverstripe/silverstripe-versioned-admin/pull/262
https://github.com/silverstripe/silverstripe-frameworktest/pull/129

Bonus PR to update silverstripe.log

https://github.com/silverstripe/gha-ci/pull/52

NON-FRAMEWORK PR
Admin
LeftAndMain.help_link
LeftAndMain::menu_title_for_class()
ModelAdmin::getSearchContext()
ModelAdmin::SearchSummary()
ModelAdmin::SearchForm()
FRAMEWORK PR
"Use xyz instead" - Undeprecated
Session::recursivelyApply() - called by Session::start()
TreeDropdownField::getLabelField() - method supposed to migrate to uses $this->titleField instead of $this->labelField
TreeDropdownField::setLabelField() - method supposed to migrate to uses $this->titleField instead of $this->labelField
"Use xyz instead" - Migrations
Convert::array2json($val) -> json_encode($val)
Convert::json2array($val) -> json_decode($val, true)
Convert::raw2json($val) -> json_encode($val)
DataObject::doValidate() -> DataObject::validate
Module::getResourcePath($path) -> Module::getResource($path)->getPath()
SapphireTest::assertDOSEquals($matches, $dataObjectSet) -> assertListEquals($matches, $dataObjectSet)
"Use xyz instead" - Notes

I cannot remove the call in HTTPCacheControlMiddleware::process() to HTTP:augmentState() - though, which itself calls a bunch of deprecated stuff in HTTP - however this will be removed in CMS 5

Config_ForClass .. merge / set - type check is_array and throw InvalidArgumentExceptions to validate my work
"Use xyz instead"

BaseKernel::sessionEnvironment()
ClassInfo::baseDataClass()
ClassInfo::table_for_object_field()
ClassLoader::classExists()
CmsUiContext::iShouldSeeANotice() - @Then /^I should see a "([^"]*)" notice$/
Config_ForClass::update()
Configurable::set_stat()
Configurable::stat()
Convert::array2json()
Convert::json2array()
Convert::json2obj()
Convert::raw2json()
Convert::xml2array()
DatabaseAdmin::updateLegacyClassNames()
DataObject::doValidate()
DataObject::duplicateManyManyRelations()
DB::getConn()
DBClassName::clear_classname_cache()
DebugView::writeError()
DebugView::writeFooter()
DebugView::writeInfo()
DebugView::writeHeader()
DebugView::writeSourceFragment()
DebugView::writeTrace();
DebugView::writeVariable();
Deprecation::notification_version()
Deprecation::set_enabled()
Deprecation.enabled
Director::isManifestFlushed()
EmbedResource
EmbedShortcodeProvider::embedForTemplate()
FlushInvalidatedResource::serialize()
FlushInvalidatedResource::unserialize()
FunctionalTest::get_use_draft_site()
FunctionalTest::useDraftSite()
FunctionalTest.use_draft_site
GridFieldFilterHeader::getLegacyFilterHeader()
GridFieldVersionedState
HTTP::augmentState()
HTTP::gmt_date()
HTTP::register_etag()
HTTP::register_modification_date()
HTTP::register_modification_timestamp()
HTTP::set_cache_age()
HTTP.cache_age
HTTP.cache_ajax_requests
HTTP.disable_http_cache
HTTP.etag
HTTP.modification_date
Injector::hasService()
LoginForm.authenticator_class
ManifestFileFinder.RESOURCES_DIR
Member::checkPassword()
Member::currentUser()
Member::currentUserID()
Member::default_admin()
Member::logged_in_session_exists()
Member::logIn()
Member::logOut()
Member::set_title_columns()
Module::getRelativeResourcePath()
Module::getResourcePath()
Module::getResourceURL()
Module::hasResource()
Module::serialize()
Module::unserialize()
Module.TRIM_CHARS
MonologErrorHandler::getLogger()
MonologErrorHandler::setLogger()
PasswordValidator::characterStrength()
PasswordValidator::checkHistoricalPasswords()
PasswordValidator::minLength()
PDOConnector::connect()
RandomGenerator::generateEntropy()
RequestFilter
RequestProcessor
SapphireTest::assertDOSAllMatch()
SapphireTest::assertDOSContains()
SapphireTest::assertDOSEquals()
SapphireTest::assertNotDOSContains()
SapphireTest::getFixtureFactory()
SapphireTest::loadFixture()
SapphireTest::setFixtureFactory()
SapphireTest.fixtureFactory
Security::check_default_admin()
Security::clear_default_admin()
Security::default_admin_password()
Security::default_admin_username()
Security::findAnAdministrator()
Security::getLoginForms()
Security::has_default_admin()
Security::setDefaultAdmin()
Session::recursivelyApply()
SSViewer_BasicIteratorSuport::First()
SSViewer_BasicIteratorSuport::Last()
SSViewer::set_theme()
TextField::InternallyLabelledField()
TinyMCEConfig::getTinyMCEPath()
TreeDropdownField::getLabelField()
TreeDropdownField::setLabelField()
ValidationResult::serialize()
ValidationResult::unserialize()
ViewableData::ThemeDir()

"Will be removed without equivalent functionality"

AbstractConfirmationToken
BaseKernel::getIgnoredCIConfigs()
ConfirmationTokenChain
DataExtension::unload_extra_statics()
DBSchemaManager::showTableNameWarning()
Deprecation::dump_settings()
Deprecation::get_calling_module_from_trace()
Deprecation::get_enabled()
Deprecation::restore_settings()
Deprecation.module_version_overrides
Deprecation.notice_level
Deprecation.verison
Email::debug()
Email::findPlainPart()
Email::generatePlainPartFromBody()
Email::getFailedRecipients()
Email::getSwiftMessage()
Email::hasPlainPart()
Email::render()
Email::setFailedRecipients()
Email::setSwiftMessage()
ErrorControlChain
ErrorControlChainMiddleware
ErrorDirector
Form::formHtmlContent()
GridFieldFilterHeader.force_legacy
GridFieldFilterHeader.updateSearchContextCallback
GridFieldFilterHeader.updateSearchFormCallback
GridFieldFilterHeader.useLegacyFilterHeader
HTTPRequest::detect_method()
InstallerTest
Member::create_new_password()
Module::getCIConfig()
ParameterConfirmationToken
Permission::get_declared_permissions_list()
Permission::get_label_for_permission()
Permission::traverse_declared_permissions()
Requirements_Backend::getMinifier()
SapphireInfo
Security.word_list
SimpleResourceURLGenerator::resolveUnsecuredResource()
TestKernel::getIgnoredCIConfigs()
TestKernel::setIgnoredCIConfigs()
TinyMCEGZIPGenerator
URLConfirmationToken

There should probably be a docs PR as well - the 4.12 changelog should mention things that you've newly deprecated.

@emteknetnz could you check this failed CI, please.
https://github.com/silverstripe/silverstripe-cms/actions/runs/3467505777/jobs/5809980321


fixRightEdge and rightOffset don't work together

Lightweight Charts™ Version:
v4.1
I'm not sure if this is expected or a bug, but I wanted to keep the right edge fixed but also wanted to keep some blank space on the right of the chart (like a padding on the right inside the chart). For the space, I used rightOffset which worked as expected but if I use both fixRightEdge and rightOffset together, fixRightEdge overrides offset and the chart always sticks to the right.
If this is expected, is there any way I can solve this problem in an alternate way?

This is the expected behaviour. fixRightEdge means that the last data point can't be panned to the let such that there is a gap until the right edge.
You can achieve you desired behaviour by monitoring the visible range changes, checking the scroll position, and if it gets larger than your desired offset then scroll the chart back to that position. This allows the chart to have a gap on the right but to limit how big that gap can become.
function myVisibleLogicalRangeChangeHandler() {
    	const pos = chart.timeScale().scrollPosition();
      if (pos > 10) {
      chart.timeScale().scrollToPosition(10)
      }
    }
    chart.timeScale().subscribeVisibleLogicalRangeChange(myVisibleLogicalRangeChangeHandler);

JSFiddle example: https://jsfiddle.net/msilverwood/p7Lbqe1t/

This works on the right side, but if trying to implement anything for the left side (e.g. fixLeftEdge set to true or comparing logicalRange with data length) it seems to break on both sides? Any solutions to this as of yet?


[ZEPPELIN-2215] Progress bar for Spell execution

What is this PR for?
Add progress bar for spell execution.

Used RUNNING state to display progress bar
Decided not to display {number}% for spell, since we can't calculate in advance.

What type of PR is it?
[Improvement]
Todos
NONE
What is the Jira issue?
ZEPPELIN-2215
How should this be tested?

Install any spell what you want. However, I suggest<EMAIL_ADDRESS>because it allow you to get delayed result (default delay is 1000 millisecond.)
Execute the spell

Screenshots (if appropriate)

Questions:

Does the licenses files need update? - NO
Is there breaking changes for older versions? - NO
Does this needs documentation? - NO

Tested and It's work as described, LGTM

@soralee Thanks for review!

Looks good! Regarding %,  if the percentage means nothing, then it's okay with not showing it i think.

@1ambda could you rebase this because of conflicts?

I'v just rebased to resolve conflict.

CI passed.

Merge into master if there are no more comment on this.


W1D5 Tutorials should use np.linalg.eigh

Porting over the discussion from #121:
Context: the notebook was running fine on colab but failing the notebook check:
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-15-0edb6db6447f> in <module>
     23   X_mean = np.mean(X,0)
     24   X_reconstructed = reconstruct_data(score,evectors,X_mean,K)
---> 25   plot_MNIST_reconstruction(X ,X_reconstructed)

<ipython-input-4-148b545ffdc9> in plot_MNIST_reconstruction(X, X_reconstructed)
     51     for k2 in range(3):
     52       k = k+1
---> 53       plt.imshow(np.reshape(X_reconstructed[k,:],(28,28)),extent=[(k1+1)*28,k1*28,(k2+1)*28,k2*28],vmin=0,vmax=255)
     54   plt.xlim((3*28,0))
     55   plt.ylim((3*28,0))

~/miniconda3/envs/nma/lib/python3.7/site-packages/matplotlib/pyplot.py in imshow(X, cmap, norm, aspect, interpolation, alpha, vmin, vmax, origin, extent, shape, filternorm, filterrad, imlim, resample, url, data, **kwargs)
   2649         filternorm=filternorm, filterrad=filterrad, imlim=imlim,
   2650         resample=resample, url=url, **({"data": data} if data is not
-> 2651         None else {}), **kwargs)
   2652     sci(__ret)
   2653     return __ret

~/miniconda3/envs/nma/lib/python3.7/site-packages/matplotlib/__init__.py in inner(ax, data, *args, **kwargs)
   1563     def inner(ax, *args, data=None, **kwargs):
   1564         if data is None:
-> 1565             return func(ax, *map(sanitize_sequence, args), **kwargs)
   1566
   1567         bound = new_sig.bind(ax, *args, **kwargs)

~/miniconda3/envs/nma/lib/python3.7/site-packages/matplotlib/cbook/deprecation.py in wrapper(*args, **kwargs)
    356                 f"%(removal)s.  If any parameter follows {name!r}, they "
    357                 f"should be pass as keyword, not positionally.")
--> 358         return func(*args, **kwargs)
    359
    360     return wrapper

~/miniconda3/envs/nma/lib/python3.7/site-packages/matplotlib/cbook/deprecation.py in wrapper(*args, **kwargs)
    356                 f"%(removal)s.  If any parameter follows {name!r}, they "
    357                 f"should be pass as keyword, not positionally.")
--> 358         return func(*args, **kwargs)
    359
    360     return wrapper

~/miniconda3/envs/nma/lib/python3.7/site-packages/matplotlib/axes/_axes.py in imshow(self, X, cmap, norm, aspect, interpolation, alpha, vmin, vmax, origin, extent, shape, filternorm, filterrad, imlim, resample, url, **kwargs)
   5613                               resample=resample, **kwargs)
   5614
-> 5615         im.set_data(X)
   5616         im.set_alpha(alpha)
   5617         if im.get_clip_path() is None:

~/miniconda3/envs/nma/lib/python3.7/site-packages/matplotlib/image.py in set_data(self, A)
    692                 not np.can_cast(self._A.dtype, float, "same_kind")):
    693             raise TypeError("Image data of dtype {} cannot be converted to "
--> 694                             "float".format(self._A.dtype))
    695
    696         if not (self._A.ndim == 2

TypeError: Image data of dtype complex128 cannot be converted to float

The error is happening because np.linalg.eig is returning complex eigenvectors, and imshow fails if its passed a complex array.
But why is it not failing on colab? Not 100% sure but I was able to reproduce it locally only inconsistently as I was playing around with numpy versions. I don't think it has anything to do with numpy version per se, but that as I was changing the version I was getting numpys that were linked against different linear algebra libraries.
np.linalg.eig has a line internally that checks if the complex part of the eigenvalues are all 0, and returns data with float or complex type depending on the outcome.
The notebook is using np.linalg.eig on a covariance matrix, so the eigenvalues should be real. But I imagine what's happening is that there's a small amount of numerical error in the computation that the linear algebra libraries handle differently. That would account for the difference in return type.
Solution: The W1D5 notebooks should use np.linalg.eigh instead of np.linalg.eig. This function will always return real-valued data. Unlike np.linalg.eig, it will also order the outputs by sorting the eigenvalues. This is done by hand in the tutorials, but not necessary.

Am mixed on removing the sorting--I think that's part of the lesson.


Game Crashes on Startup

I downloaded v1.0.0 for 1.16.5 along with all of the dependencies:
Fiblib, Cardinal Components, Architectury, Rhino, KubeJS.
When I load up the game it crashes: https://paste.ee/p/05ieB

Sorry, I meant to use this crashlog...Same results with Fib and Cardinal enabled:
https://paste.ee/p/AUcoB

Fixed in 1.0.1 (available on CurseForge in a second), thanks for the report~


Installation problems and dependencies

[ ] Review the documentation: https://developers.mailersend.com/#mailersend-api
[ ] Search for existing issues
[ ] Use the latest release: https://github.com/mailersend/mailersend-php/releases

Summary
I'm trying to install the package on a PHP Laravel application (local on a Mac). I tried to run
composer require mailersend/mailersend
unfortunately I got this...
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - mailersend/mailersend[v0.1.0, ..., v0.1.1] require php ^7.4 -> your php version (8.2.4) does not satisfy that requirement.
    - mailersend/mailersend[v0.2, ..., v0.11.0] require psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires mailersend/mailersend * -> satisfiable by mailersend/mailersend[v0.1.0, ..., v0.11.0].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require mailersend/mailersend:*" to figure out if any version is installable, or "composer require mailersend/mailersend:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Then I checked for the newest version and I run
composer require mailersend/mailersend:^0.11
it gave me this:
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Root composer.json requires mailersend/mailersend ^0.11 -> satisfiable by mailersend/mailersend[v0.11.0].
    - mailersend/mailersend v0.11.0 requires psr/http-message ^1.0 -> found psr/http-message[1.0, 1.0.1, 1.1] but the package is fixed to 2.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Finally I ran
composer require mailersend/mailersend:^0.11 -W
and got
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - symfony/symfony[v5.4.16, ..., v5.4.25] require psr/container ^1.1.1 -> found psr/container[1.1.1, 1.1.2] but these were not loaded, likely because it conflicts with another require.
    - mailersend/mailersend v0.11.0 requires symfony/symfony ^5.4.16 -> satisfiable by symfony/symfony[v5.4.16, ..., v5.4.25].
    - Root composer.json requires mailersend/mailersend ^0.11 -> satisfiable by mailersend/mailersend[v0.11.0].

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

Any ideas what should I do?
Thanks

Did you find any fix for this? Running into the same issue here.

I did, but I didn't do anything special. I only did this:

deleted the composer.lock file
composer clear-cache

Just in case I succeed by installing the Laravel package, which at the beginning it did not work. Now everything works fine!


32 read hierarchy by id api endpoint

Description
A read-hierarchy-by-id API endpoint has been created along with a parents route (which is semi-left over code from previous revisions which has been left there for future use?). It returns ALL the parents (including multiple parents if ex_parents is set to true -- default is true) required to reach the root node (Thing). The structure is the same as that used by the front-end for the global view to make it a drop-in replacement. Other arguments have been added to both routes (parent and local-hierarchy) that can be toggled for different effects. Tests have also been updated to ensure full code-coverage.
Default behavior of the basic_info function has been changed to only give dep if the node has a deprecation date. This affects any routes that gets any children. This will improve performance on client-side with the reduction in information stored.
Example:

(It includes the multiple parents in the trace back to Thing as well)
To-do list completed

[x] Get 6 levels above and below a node from our database (NOTE: Change children to be expanded by user)
[x] Convert to nested json in the format the frontend wants
[x] Create endpoint and serve local hierarchy data

Misc
Closes #32

Closing as changes have been made on branch #34 and are covered by PR https://github.com/nlp-tlp/15926-4-RDL-CITS3200/pull/98


Improve man page for tesseract  and add Makefile rule for PDF

Please also check for new info in --help-extra.
You can add the new psms.
 11    Sparse text. Find as much text as possible in no particular order.
 12    Sparse text with OSD.
 13    Raw line. Treat the image as a single text line,
       bypassing hacks that are Tesseract-specific.

--dpi N is also still missing.

You can also consider whether some of the info in the following pages also needs to be added to man page.
https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage
https://github.com/tesseract-ocr/tesseract/wiki/FAQ
Examples of what could be added (IMO)...
https://github.com/tesseract-ocr/tesseract/wiki/FAQ#what-page-separators-are-used-in-txt-output-by-tesseract-4-0-0
Info about pdf with text layer only
https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage#integrate-original-image-file-and-detected-text-into-pdf
https://github.com/tesseract-ocr/tesseract/wiki/Command-Line-Usage#ocr-single-page-of-a-multi-page-tiff

2 = Tesseract + LSTM.
How about adding that this is only available in the traineddata files from tessdata repo - though not all of them.

I added two commits for the missing --psm and --dpi options. See old and new man pages.

@Shreeshrii, thank you for your suggestions. I am currently a little bit short of time, as I am just preparing a Tesseract workshop for next Monday.

See old and new man pages.

The new format looks better. Thank you.
You could move the following lower on the page:
--user-words FILE
Specify the location of user words file.

--user-patterns FILE
Specify the location of user patterns file.

Those options are now sorted alphabetically.

I am just preparing a Tesseract workshop for next Monday.

@stweil 👍


Update homepage with scoop installation option

It is now possible to install Audio Switcher using scoop installer. lukesampson/scoop-extras#1697 adds option to do it using scoop-extras bucket. It would be nice to have this mentioned on the https://audioswit.ch homepage. The snippet do perform the installation is
scoop bucket add extras
scoop install audioswitcher

Thanks for creating the manifest in scoop.
I'll take a closer look at scoop and scoop-extras, I might have a few questions around it. Then I'll update the website with extra installation instructions.

@goostleek Looks pretty good to me.
What's the process for updating the version in the manifest? Is that a manual PR for each version? Or is there a way to always link it to the latest github version?

Scoop does all the thing automatically for you. If you release a new version of the application, scoop will update the manifest for you automatically. The only thing is to have checkver key defined (see audioswitcher.json manifest). Scoop uses checkver definition to check if a new version of the application was released. It does it every night and if a new version is detected it updates the manifest automatically. There's no need to update the manifest manually unless versioning scheme or some other breaking change in the application release process prevents scoop to properly detect a new version. You can read more about automatic manifest updating in the official scoop documentation.

Very cool.
I'll post some content updates on the homepage, and close this when done.
Thanks!


"InstallSolution" verb is not getting triggered after the site creation

Category

[ ] Question
[#] Bug
[ ] Enhancement

Expected or Desired Behavior
Added site script with "InstallSolution"  as shown below
$site_script=@'
{
"$schema": "schema.json",
"actions": [
{
"verb": "applyTheme",
"themeName": "Default Theme"
},
{
"verb": "installSolution",
"id": "b893e31d-de81-4fbd-8bb6-125e89522456"
}
],
"bindata": { },
"version": 1
}
'@

Once the site got created the theme should get apply and the app should be installed.

Observed Behavior
The theme is getting applied and the app is getting installed after the site creation, but if we make a delay of 5 mins or more than that on clicking the Finish Button, then the app installation is not happening but the theme is getting applied.
Steps to Reproduce

Create a site script with installSolution verb and add it to the site design

Use that site design to create a site

Click the Finish button after 5 mins or more than that. You will be redirected to the site and the app will not be installed

Actually, the same happens when SiteDesign is assigned to HubSite. When joining the site collection to HubSite, logo and theme is applied, but none of the solutions. I have tried several SPFX Web Parts with verb "installSolution" & Application Customizer with "installSolution" and "associateExtension". Any help?

I'm having the same issues, unfortunately, when the Site is provisioned automatically. A possible workaround could be using different Site Scripts for the same Site Design, I haven't tried it tough, yet.

I'm not able to install it at all. Is there something wrong with my syntax?
"$schema": "schema.json",
"actions": [

    {
        "verb": "createSPList",
        "listName": "Site Pages",
        "templateType": 119,
        "subactions":
        [
          {
            "verb": "addSPField",
            "fieldType": "text",
            "displayName": "skoleurl",
            "isRequired": false,
            "addToDefaultView": true
          }
        ]
      },
      {
        "verb": "installSolution",
        "id": "d94019dd-7767-42e8-bba8-fb3cd76568f2",
        "name": "Nyhets Add-in"
        }
],
"bindata": {},
"version": 1

The "createSPList" verb doesn't fail, only the "installSolution" verb. When I look at the latest schema it is required with id, verb and name. I can't really see what I'm doing wrong(?). I get the id from Get-PnPApp.
https://developer.microsoft.com/json-schemas/sp/site-design-script-actions.schema.json
"installSolution": {

  "type": "object",

  "allOf": [

    { "$ref": "#/definitions/baseAction" },

    {

      "properties": {

        "verb": {

          "type": "string",

          "pattern": "^installSolution$"

        },

        "id": {

          "type": "string",

          "description": "The ID of the Solution."

        },

        "name": {

          "type": "string",

          "description": "The name of the Solution."

        }

      },

      "required": [ "id", "verb", "name" ]

    }

  ],

  "additionalProperties": false

},

@dogemaster1337: What exactly does not work? Is there an error message or are the solutions simply not being installed?

@mschaefer85 There is an error message after the Site Design is applied.
(I'm sorry but I haven't been able to update the correct language settings to English yet so the error message is in Norwegian)
But it says something like: The action wasn't completed.
I can install the SharePoint Add-in / App manually to a site without any errors.

I am seeing the same behavior with the installSolution verb. It is one of the Site Scripts associated with our Site Design and we have it triggering when a Site is associated with a Hub Site. Looking into the run status it shows that the installSolution actions failed. However, if I invoke the Site Design through PowerShell the installSolution will succeed.

Hi,
Same issue here; I can add a site script, add it to the site design and also select it when applying the site design. However, when i click "Apply to site" it does run but throws an error "https://github.com/SharePoint/sp-dev-site-scripts/issues/18" (after 1-2 minutes).
The SPfX solution itself is a standard client web part (generated with Yo, spfx v 1.7.1), nothing customized there. Tried to contact Ms support, but not succeeded in getting the right person. Anyone has an idea how to solve this, and/or getting some proper exception messages?

B.t.w. it does throws the error always, via UI and in PowerShell.


sinkv2(cdc): add busy ratio metric for conflict detector

What problem does this PR solve?
Issue Number: ref #5928
What is changed and how it works?

Add a metrics for conflict detector background goroutine busy ratio
Use slice instead of BTree for depender list, because all events are already sorted

Check List
Tests

Unit test
Manual bench
With the patch     : BenchmarkHighConflictsWithManyKeys-16               1230            855992 ns/op
Without the patch: BenchmarkHighConflictsWithManyKeys-16               1501            961344 ns/op

Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
None

The PR seems not necessary. Test result shows the conflict detector background thread is always free enough.


Log health slider more options needs too much sliding on large screens

Prerequisites

[x] Put an X between the brackets on this line if you have done all of the following:

Reproduced the problem in QA
Followed all applicable steps in the TROUBLESHOOTING guide: TODO
Checked for relevant discussions on Discord: https://discord.gg/pPERUuv
Checked that your issue isn't already filed: https://github.com/COVID-19-electronic-health-system/Corona-tracker/issues

Description

The log health slider needs to be moved too much to show more options on large screens.
Steps to Reproduce

Use a screen size >= 839px
Go to Calendar page
Drag slider just past the vertical bar
See that the slider doesn't stay past the vertical bar

Expected behavior:

Slider stays past the vertical bar when dragging it just past the vertical bar.
Actual behavior:

Slider returns back to its original position when dragging it just past the vertical bar.
Reproduces how often:
100%

Versions
0.3.24

Additional Information

Could I work on this issue, it will be my first contribution?

Yup, all you!


How to pass str to a batch?

🐛 Bug
I try to pass str values to a batch (list of str). But there is a problem when transferring the batch to the targeted gpu device.
Expected behavior
Traceback (most recent call last):
  File "bert_main.py", line 574, in <module>
    train(args)
  File "bert_main.py", line 360, in train
    trainer.fit(model, train_dataloader, dev_dataloader)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 741, in fit
    self._fit_impl, model, train_dataloaders, val_dataloaders, datamodule, ckpt_path
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 685, in _call_and_handle_interrupt
    return trainer_fn(*args, **kwargs)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 777, in _fit_impl
    self._run(model, ckpt_path=ckpt_path)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1199, in _run
    self._dispatch()
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1279, in _dispatch
    self.training_type_plugin.start_training(self)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/plugins/training_type/training_type_plugin.py", line 202, in start_training
    self._results = trainer.run_stage()
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1289, in run_stage
    return self._run_train()
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1311, in _run_train
    self._run_sanity_check(self.lightning_module)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/trainer/trainer.py", line 1375, in _run_sanity_check
    self._evaluation_loop.run()
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 145, in run
    self.advance(*args, **kwargs)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/loops/dataloader/evaluation_loop.py", line 110, in advance
    dl_outputs = self.epoch_loop.run(dataloader, dataloader_idx, dl_max_batches, self.num_dataloaders)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/loops/base.py", line 145, in run
    self.advance(*args, **kwargs)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/loops/epoch/evaluation_epoch_loop.py", line 111, in advance
    batch = self.trainer.accelerator.batch_to_device(batch, dataloader_idx=dataloader_idx)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/accelerators/accelerator.py", line 209, in batch_to_device
    return model._apply_batch_transfer_handler(batch, device=device, dataloader_idx=dataloader_idx)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/core/lightning.py", line 291, in _apply_batch_transfer_handler
    batch = self.transfer_batch_to_device(batch, device, dataloader_idx)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/core/hooks.py", line 707, in transfer_batch_to_device
    return move_data_to_device(batch, device)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/utilities/apply_func.py", line 291, in move_data_to_device
    return apply_to_collection(batch, dtype=dtype, function=batch_to)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/utilities/apply_func.py", line 96, in apply_to_collection
    return function(data, *args, **kwargs)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/pytorch_lightning/utilities/apply_func.py", line 284, in batch_to
    data_output = data.to(device, **kwargs)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/transformers/file_utils.py", line 2477, in wrapper
    return func(*args, **kwargs)
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 747, in to
    self.data = {k: v.to(device=device) for k, v in self.data.items()}
  File "/home/zhangzhexin/anaconda3/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 747, in <dictcomp>
    self.data = {k: v.to(device=device) for k, v in self.data.items()}
AttributeError: 'list' object has no attribute 'to'

Environment

PyTorch Lightning Version 1.5.10
PyTorch Version 1.11.0
Python version 3.7
transformers version 4.17.0
OS Linux

The batch is expected to consists of Tensors, which do have the .to method to transfer the data to the device of choice. You need to tokenize your strings first, check e.g. here.

in PyTorch, strings are are accumulated in form of a list.
if you want to avoid this error, you can override transfer_batch_to_device hook to disable moving the list of strings to the device.


feat(cli): add indent-width and deprecate indent-size

Summary
Closes #89
Test Plan
just test-crate biome_cli

The pr was closed because I clicked on resolve the conflict in the fork

The pr was closed because I clicked on resolve the conflict in the fork


Can we change the name Ponderation used in some DPF operators

Description of the feature
The name Ponderation seems very confusing for many people.
Could we use a better naming for this
Steps for implementing the feature
Since this Ponderation is referring to scaling factor . could we just rename it to scale factor instead which makes it self explanatory .
Useful links and references
https://dpf.docs.pyansys.com/version/0.11/api/ansys.dpf.core.operators.math.scale_fc.html#scale-fc
https://dpf.docs.pyansys.com/version/0.11/api/ansys.dpf.core.operators.math.add_constant_fc.html#add-constant-fc

Not critical, but an easier English name would be less confusing indeed. Example: "scale_factor" or just "factor"


smi/client: un-export internal pkg type

Description:
Un-exports the SMI client type that implements
the MeshCataloger interface.
Signed-off-by: Shashank Ram<EMAIL_ADDRESS>
Affected area:

New Functionality      [ ]
Documentation          [ ]
Install                [ ]
Control Plane          [ ]
CLI Tool               [ ]
Certificate Management [ ]
Networking             [ ]
Metrics                [ ]
SMI Policy             [ ]
Security               [ ]
Tests                  [ ]
CI System              [ ]
Demo                   [ ]
Performance            [ ]
Other                  [X]

Please answer the following questions with yes/no.

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?
No

Codecov Report

Merging #3175 (ae80d60) into main (9103d97) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #3175      +/-   ##
==========================================
+ Coverage   66.20%   66.22%   +0.01%
==========================================
  Files         161      161
  Lines        7401     7401
==========================================
+ Hits         4900     4901       +1
+ Misses       2474     2473       -1
  Partials       27       27

Flag
Coverage Δ

unittests
66.22% <100.00%> (+0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/smi/client.go
80.00% <100.00%> (ø)

pkg/endpoint/providers/kube/client.go
79.00% <0.00%> (+1.00%)
:arrow_up:

Continue to review full report at Codecov.

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


build(java): remove codecov action

This PR was generated using Autosynth. :rainbow:
Synth log will be available here:
https://source.cloud.google.com/results/invocations/8045a22e-f7af-476b-85c2-367c155a77b7/targets

[ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: https://github.com/googleapis/synthtool/commit/4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1

Since this PR, the "Kokoro - Test: Integration" started failing. But the changed files seem irrelevant.

Created b/188424291
More logging in https://github.com/googleapis/java-dns/pull/408


Adding the link to GitHub repo on the web

I think it could be an improvement if the link to the web client repo is included somewhere in the web client (perhaps in the about section), so that if anyone is interested in collaborating or reporting an issue, they can easily access it.

Done here 8c5a4d0d119ca4a88dcc986b636d030e11593dd0


Hood car not visible in Home Assistant

If the hood (in dutch is this "motorkap") is open, you can see it in the cupra app, but you won't see it in home assistant. Is this something that cupra born's api doesn't forward or doesn't have?
See photo below

Fixed in 0.6 #15
Note, the Cupra API always reports it as "unlocked" which sucks as it means the overall car status would be "insecure". I've fudged this by making it "unlocked" when open and "locked" when closed so it won't mess anything else up.


Radio button support?

Radio buttons don't seem to work with this, is this a bug or have you chosen not to implement them?

Nope @FrankEBailey I think it is a bug!


Relay entry test loop: Actual logic

Closes: #3036
Here we add the relay entry test loop that leverages groups created by the DKG test loop. Here are the implementation details:
The mockRandomBeacon structure and the relay entry test loop
Regarding the DKG and relay entry features, we are not yet integrated with the real RandomBeacon contract. To overcome that, we need a way to simulate the contract behavior and make the test loops work as desired. To solve that, we introduce the mockRandomBeacon contract that lives in pkg/chain/ethereum/beacon.go and acts like a real contract. We moved the DKG-related behavior there and implemented the relay entry loop behavior which is the main part of this pull request. The relay entry loop generates the RelayEntryRequested event every 100th block and targets the latest group created by the DKG test loop. Group members perform the signing of the G1 point constructed from the starting block number hash and try to submit the result according to eligibility rules.
The multi-client setup works without other synchronization. Each client has its own signers set so, eventually, the result submission will be done on each client. A low client count ensures the submission will be done a long time before the next relay entry request is fired.
Change of the eligibility rules
In v1, always the first group member was supposed to start the submission queue. This was not fair since, in most cases, that member handled most of the submissions and incurred the majority of transaction costs. In v2, the first submitter is designated using the entry % groupSize equation. That gives a fair distribution of the first submitter seat for all members. This behavior is implemented in this pull request.
Storage of the group members
The v1 contract was holding group members for each group and there was a possibility to fetch them on-demand. Unfortunately, the v2 contract holds just the hash of operating group members in order to be more gas-effective.
To handle that, each client now stores the operating group members using their disk storage and fetches that information from there when needed. For now, this is used to instantiate the relay entry network channel's validator.
Goodbye chain promises
This pull request finally gets rid of the chain promises from pkg/gen/async package in favor of the fire-and-forget model. Removing promises greatly simplifies the functions of the Ethereum chain implementation. As a consequence of that change, we were forced to make some adjustments in the relay entry submitter.

That's something I was not sure about - do we want to return or just log? It's possible the member that errored out is not the only one on this node. Shouldn't we rather log and wait for the timeout? That's the reasoning from the comment at line 100.

What's the point of waiting if the "fire" action failed immediately?

What's the point of waiting if the "fire" action failed immediately? Each member on the same node has its own submitter instance.

Yeah, you are right. Every member instance has its own submitter. Let's leave it as-is.

Unfortunately, something is wrong. I started 4 clients locally on a fresh chain. They were able to create a group successfully having 15+19+16+14=64 active members. All clients completed computation of public key shares and stored the group successfully on disk. Couple of minutes later, when a new relay request arrived, this problem occurred on all nodes and they were not able to produce the result:
2022-07-15T20:36:19.255+0200	WARN	keep-entry	go-log@v1.0.5/log.go:180	[member:64] rejecting signature share from member [21]: [invalid signature share]
2022-07-15T20:36:19.256+0200	WARN	keep-entry	go-log@v1.0.5/log.go:180	[member:64] rejecting signature share from member [41]: [invalid signature share]
(...)

Unfortunately, something is wrong. I started 4 clients locally on a fresh chain. They were able to create a group successfully having 15+19+16+14=64 active members. All clients completed computation of public key shares and stored the group successfully on disk. Couple of minutes later, when a new relay request arrived, this problem occurred on all nodes and they were not able to produce the result:
2022-07-15T20:36:19.255+0200	WARN	keep-entry	go-log@v1.0.5/log.go:180	[member:64] rejecting signature share from member [21]: [invalid signature share]
2022-07-15T20:36:19.256+0200	WARN	keep-entry	go-log@v1.0.5/log.go:180	[member:64] rejecting signature share from member [41]: [invalid signature share]
(...)

I'm not able to reproduce that issue. Are you sure DKG went well and all clients were connected with themselves?

Unfortunately, something is wrong. I started 4 clients locally on a fresh chain. They were able to create a group successfully having 15+19+16+14=64 active members. All clients completed computation of public key shares and stored the group successfully on disk. Couple of minutes later, when a new relay request arrived, this problem occurred on all nodes and they were not able to produce the result:
2022-07-15T20:36:19.255+0200	WARN	keep-entry	go-log@v1.0.5/log.go:180	[member:64] rejecting signature share from member [21]: [invalid signature share]
2022-07-15T20:36:19.256+0200	WARN	keep-entry	go-log@v1.0.5/log.go:180	[member:64] rejecting signature share from member [41]: [invalid signature share]
(...)

https://github.com/keep-network/keep-core/pull/3088/commits/f225c1e59982b5382757260c3cfd509aeea0fb71 should help


Tables in DB missing from metadata

The following tables are in the database (can be retrieved using nhanes(name)) but do not appear in the metadata table Metadata.QuestionnaireDescriptions.
The commonality seems to be that their nhanesCodebook() is also broken.

RXQ_DRUG - drug table (no SEQN)
DRXFMT_B - TOC has no codebook
DRXFMT - TOC has no codebook
DRXFCD_J - TOC has no codebook
DRXFCD_I - TOC has no codebook
SSNH4THY - wrong auto-generated URL, should have had suffix _B
SSHCV_E - looks OK (except variable SSASCR3?)
SSDFS_A - looks OK
POOLTF_E - TOC has no codebook
POOLTF_D - TOC has no codebook
SSCMVG_A - looks OK
SSCARD_A - looks OK
SSBNP_A - looks OK
SSANA2_A - looks OK
SSANA_A - looks OK
SSAGP_J - looks OK
SSAGP_I - looks OK
PFC_POOL - page missing
DSPI - looks OK, but no SEQN
FOODLK_D - TOC has no codebook
DSII - looks OK
FOODLK_C - ?? (lookup table)
DSBI - looks OK, but no SEQN
VARLK_D - ?? (lookup table)
VARLK_C - ?? (lookup table)
SSUCSH_A - looks OK
SSTROP_A - looks OK

What seems to be happening with these is that nhanesA::nhanesTables() isn't returning them—a bug in nhanesA likely.
For example, the table SSANA_A isn't among the 1999-2000 survey tables obtained via:
tables_99 <- nhanesTables(data_group="LAB", year=1999, details=TRUE, includerdc=TRUE)

Thanks, I'll take a closer look. Interestingly,
nhanesTables(data_group="LAB", year=1999, details=TRUE, includerdc=TRUE)

run without the DB finds a few more tables, but none of the ones listed above:
"LAB05"    "L11_2_R"  "L09RDC_A" "L05RDC_A" "L06_2_00" "VID_2_00" "L10_2_00" "L18_2_00" "L13_2_R"  "L19_2_R" "L16_2_R"  "L25_2_R"  "VIT_2_R"

So, it looks like
nhanesTables(data_group="LAB", year=1999, details=TRUE, includerdc=TRUE)

doesn't include SSANA_A because it and its variables are not included in
https://wwwn.cdc.gov/Nchs/Nhanes/search/variablelist.aspx?Component=Laboratory&CycleBeginYear=1999
which is where nhanesTables() looks. This looks like a bug in the NHANES website.
I am not sure how we can work around this. Changing nhanesTables() doesn't really make sense. We probably need to work off a different source of tables (like the nhanesA::nhanesManifest() recently added by @rgentlem).

Thank you @deepayan. Using nhaneManifest() we now have all the listed tables in the metadata (to be released shortly).


Allows to test NginX Helm Chart on shared cluster.

Adds also testing all versions for NginX containers. Not only single one.
Values.yaml and values.schema.json was updated
accordingly

[test]

[test]

[test]

[test]

[test]


New source when cloned and save is not added to the project sources

Worse than that, clone was returning original.


Custom Tool password format throws [Unauthorized] error

Hi guys,
I've been trying to find the issue for about 2hours....and I think I've found out!
I had setup my VS(2015) solution, Umbraco libs (7.6.6) and ModelsBuilder (3.0.6 and 3.0.7) like I did before but when I tried to run the ModelsBuilder custom tool it always return [Unauthorized]. I've checked URL, Username and Password so many times and they were all Ok.
After back and forth with nuget versions and always the same error, I decided to create a new user with name/password "modelsbuilder/modelsbuilder" and it worked!
Then I changed the modelsbuilder user password to the same I was trying before...and the [Unauthorized] error began! My password is like ":H------P-------2017!" with the '-' being smallcase letters.
I don't know if it's related with the length but please (at least) put it in the wiki section ^^
Regards

W.T.F. ? ;-) so you're saying that using this very specific password breaks the auth? Well that is amazing and... aaaaaaarhhh. Bug indeed. Will fix.
Details: so far, MB uses basic auth (sends user and password) because you're supposed to use it locally. Meaning we send, exactly, ":". And then in ApiBasicAuthFilter we split at ':' - but... because your password contains ':', and my code has flaws, it fails. Easy to fix, will.

Good to hear :D
At least it can be easily fixed.
Thank you very much ;)
Good work

Fixed in source, will need a new release.


Look into XState

https://github.com/statelyai/xstate looks really cool. I wonder if we can reuse their state machine.

FWIW I had the same thought recently 🤔


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-yml-archive-non-versioning-archive/pull/197 is merged into live branch.
Auto archive content to https://github.com/opstest2/docs-yml-archive-non-versioning-archive.git

Docs Build status updates of commit 4fe4105:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

.openpublishing.redirection.json
:white_check_mark:Succeeded

docs/TOC.yml
:white_check_mark:Succeeded
View

docs/index.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/article3-1-3.yml
:white_check_mark:Succeeded
View

docs/to-be-archive/level1/sql-database-engine.png
:white_check_mark:Succeeded

docs/to-be-archive/level2/article3-2-1.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-2.md
:white_check_mark:Succeeded
View

docs/to-be-archive/level2/article3-2-3.yml
:white_check_mark:Succeeded
View

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


feat(sortable): add support for custom item template

I have a list of cups (complex model) and want a different image for each cup but the API for  doesn't seem to support such a concept.
` <bs-sortable
[(ngModel)]="itemObjectsLeft"
fieldName="name"
itemClass="sortable-item"
itemActiveClass="sortable-item-active"
placeholderItem="Drag here"
placeholderClass="sortable-item"
wrapperClass="sortable-wrapper"

class Cup {
type:string
name:string
}
`
Is there a way to do that based on the value of the type property?
Maybe there could be a "template" or "templateRef" Input that would have access to the list item.
Something like:
<bs-sortable [(ngModel)]="myCups" templateRef="cupRenderingTemplate"...> </bs-sortable>

yep, need to mark sortable as experimental, some how
adding custom item template would be good

I just made a prototype of this idea, but I need to clarify one thing
please check https://github.com/valor-software/ng2-bootstrap/commit/5ed3ba4a6e7811693f0323151ed82189571cbb0f#diff-456830bd92e54b2e7c01693e0f6654af
is it enough? or item template should include .sortable-item' div`?

This looks like enough for my purposes.  I would expect the component to still own the .sortable-item 'div' not the template.

From: Dmitriy Shekhovtsov<EMAIL_ADDRESS>Sent: Wednesday, January 25, 2017 4:56 AM
To: valor-software/ng2-bootstrap
Cc: dlcooper; Author
Subject: Re: [valor-software/ng2-bootstrap] feat(sortable): add support for custom item template (#1554)
I just made a prototype of this idea, but I need to clarify one thing
please check 5ed3ba4#diff-456830bd92e54b2e7c01693e0f6654afhttps://github.com/valor-software/ng2-bootstrap/commit/5ed3ba4a6e7811693f0323151ed82189571cbb0f#diff-456830bd92e54b2e7c01693e0f6654af
is it enough? or item template should include .sortable-item'div`?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/valor-software/ng2-bootstrap/issues/1554#issuecomment-275065514, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEreuu3ZEjHIXxMZM886-tq1ASgkxX6Hks5rVxw7gaJpZM4Ls49P.

Any more thoughts on the viability of this?  Or a timeline for incorporating it in the product?

From: Dmitriy Shekhovtsov<EMAIL_ADDRESS>Sent: Wednesday, January 25, 2017 4:56 AM
To: valor-software/ng2-bootstrap
Cc: dlcooper; Author
Subject: Re: [valor-software/ng2-bootstrap] feat(sortable): add support for custom item template (#1554)
I just made a prototype of this idea, but I need to clarify one thing
please check 5ed3ba4#diff-456830bd92e54b2e7c01693e0f6654afhttps://github.com/valor-software/ng2-bootstrap/commit/5ed3ba4a6e7811693f0323151ed82189571cbb0f#diff-456830bd92e54b2e7c01693e0f6654af
is it enough? or item template should include .sortable-item'div`?

You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/valor-software/ng2-bootstrap/issues/1554#issuecomment-275065514, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEreuu3ZEjHIXxMZM886-tq1ASgkxX6Hks5rVxw7gaJpZM4Ls49P.

I have some urgent things to fix, but tomorrow I hope to get in this

This is great!
It would node to have a template parameter to compute whether the item is draggable.  i.e.
let-draggable="{{isDraggable(item)}}"

@dlcooper not sure if I understand you correctly, do you want to make some items in sortable container undraggable i.e. they should always keep their positions? If so when

item template should include .sortable-item'div`?

won't help because you still will be able to drag other items and it can affect positions of disabled items as well (according to current implementation for sure). Or probably you just want to disable whole container?

For my application it's ok if an item's position changes in a list as long as it can't leave the list, for example:
"List A"
Joe
Bill   (draggable=false)
Bob
"List B"
Don
Jim
George
as long as Bill can't leave "List A" it doesn't matter for me whether he's first, second or third in the list.
So, if Bill is in a Bill I think that does what I am looking for.

From: Leo<EMAIL_ADDRESS>Sent: Thursday, February 2, 2017 4:23 PM
To: valor-software/ng2-bootstrap
Cc: dlcooper; Mention
Subject: Re: [valor-software/ng2-bootstrap] feat(sortable): add support for custom item template (#1554)
@dlcooperhttps://github.com/dlcooper not sure if I understand you correctly, do you want to make some items in sortable container undraggable i.e. they should always keep their positions? If so when
item template should include .sortable-item'div`?
won't help because you still will be able to drag other items and it can affect positions of disabled items as well (according to current implementation for sure). Or probably you just want to disable whole container?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/valor-software/ng2-bootstrap/issues/1554#issuecomment-277088378, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AEreukcSe9BYUp3Ag5xuXihuJEiFOLYdks5rYklegaJpZM4Ls49P.

@dlcooper OK, I see. It is added to next PR but not sure how long it will take to approve it, it is quite big.

Custom template support was added in #1580


ts => estree, estree => ts

Happy to work on the estree => ts side, but is there a simple example of ts => estree?

This is exactly ts => estree (test runner does that), estree => ts is not interesting as there is almost no tools that accept TS AST while ESTree has a lot of such.

Yeah, escodegen is awesome, would be great to extend it with TypeScript syntax support (but first its input needs to be TypeScript AST!)

Nah, I'm talking about Babel plugins, ESLint and so on. Emitting TypeScript is rarely needed as usually you want to transpile and check the code at the same time without loosy intermediate string representation.

Oh right, my use-case is different, I am code-generating TypeScript, then reparsing the TypeScript and modifying certain subsets then emitting the replacement TypeScript.

With ESTree you don't need to generate, reparse and so on as you can simply use ESTree transformations (estraverse, esrecurse, Babel - whatever works best) and treat TypeScript nodes as Flow nodes (unfortunately, I didn't have time to add those but should be trivial enough if you want to contribute).

Hmm, well if you get the chance a trivial example would be much appreciated :)

@SamuelMarks @RReverser Did this project get migrated somewhere else. I'm interested in having ESTREE support for TS, so that I can directly integrate it into webpacks Parser which uses acorn parser behind the scenes.

@TheLarkInn I think https://github.com/eslint/typescript-eslint-parser might be a more up-to-date project with similar goals.

@Rreverser While exploring, did you find the ts-tree specification documented somewhere (similar to es-tree)?
Working on something and just having that will be really useful


fix: append shadow root content in a separate sibling element

expandShadowRoots now does not replace the original content but creates a separate (non-shadow) subtree as a sibling of the original one.
Note that this doesn't duplicate content $^{[1]}$ , as the original shadow roots are inaccessible from JS by design. document.documentElement.outerHTML returns only the contents of (new) regular DOM elements. The page also still looks the same, as a shadow DOM tree masks any "light" DOM sibling.
Closes #2583

$^{[1]}$ With the notable exception of accessgroup.my.site.com pages, where the use of custom DOM elements somehow creates elements with shadowRoot property, the content of which is still accessible from JS(???). This is likely coming from the ancient web framework they are using.
Either way, double the content is probably better than none (so far we have only noticed this issue on this page).

I would still go with the getHTML method if it's available (which it should be with the latest playwright already), I guess that would solve the duplicity for that one weird site, right?

Well, the getHTML methods require the serializable property, which is apparently false by default. Combined with the fact that it only works in the latest browser versions, I cannot help but be a bit sceptical here.
I'll play with the problematic page a tiny bit more and try to replicate the issue locally, so we can debug and test better.

Well, the getHTML methods require the serializable property, which is apparently false by default.

And this solution will work regardless of that?

Combined with the fact that it only works in the latest browser versions, I cannot help but be a bit sceptical here.

I don't see this as a problem really (outside of the fact that latest playwright breaks that one test with firefox, that's a different story).
Anyway, I don't want to block this at all, once the CI is green we can merge and release, its just that it feels more future proof to use the new method, which does exactly what we need, instead of baking in our own implementation.

And this solution will work regardless of that?

Yep, e.g. the new tests from this PR are not passing with getHTML(), as it doesn't find the [GOOD] parts - it would if the template elements had shadowrootserializable argument.
I guess we can have a bunch of fallbacks, both for the existence of the method (getHTML?.()) and the non-emptiness of the content (getHTML?.().trim().length > 0 ? getHTML() : getShadowDomHtml()).
I still feel like W3C could have handled this somehow better, but well, here we are. 🤷🏽♂

What about this option, the description sounds like you can use that to disregard the serializable property. Or did I misunderstand what it's about?
https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot/getHTML#shadowroots
Btw are we sure this is not "a good thing"? I mean in the cases we know about, were there some that disabled the serialization on the actual content we care about?

Now I am just curious, the implementation is fine by me, feel free to merge and go ahead with the release if it works correctly in WCC.

I think both of the options are about child shadow roots of the shadow root instance you are calling the method on. Looking into Firefox source code (9694-9695 here), it indeed seems that the shadowRoots array option does disregard the serializable option, but we first need to collect the references to all the children.

You're right that we haven't noticed any issues with the shadow DOMs whatsoever (except for the current issue in WCC). I say we merge and release this (the WCC website works and it's not breaking). As a bonus, we still have a better understanding of what's happening in case some other issue pops up.


Add metrics to track SSLv3 and TLS versions

@zwoop @shinrich can you pls review

PR updated with the suggested changes. Can you guys re-review pls?

Once you get this build issues fixed, this looks like a good addition.  We've been rolling up logging stats to track this split so far.  Some metrics would make it much easier to do one-off checks.

Once you get this build issues fixed, this looks like a good addition. We've been rolling up logging stats to track this split so far. Some metrics would make it much easier to do one-off checks.

Weird - build still seems to fail with the same error even with TLS1_3_VERSION enclosed in a #ifdef - It passes locally for me :-/

It seems like the latest autest job used an old commit somehow. Running it again.
autest:

Commit message: "Merge 8ccfc1a02fb8a158364457b132e3daf0ab79e359 into 75e7fc340a5de90c9453ebc8b5302a41a3f73ce8"

CentSO:

Commit message: "Merge 41875168af88e38bbd604115eb57d64f1570286e into 75e7fc340a5de90c9453ebc8b5302a41a3f73ce8"

[approve ci autest]

It seems the new job picked the latest commit. Running Clang-Analyzer job too.
[approve ci Clang-Analyzer]


HDXDSYS-911 fix 3W failure

Also contains some org matching refactoring by Mike

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
Details

116 of 134 (86.57%)  changed or added relevant lines in 7 files are covered.
3 unchanged lines in 2 files lost coverage.
Overall coverage increased (+0.09%) to 93.15%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/hapi/pipelines/app/main.py
0
3
0.0%

src/hapi/pipelines/database/org.py
74
79
93.67%

src/hapi/pipelines/database/operational_presence.py
27
37
72.97%

Files with Coverage Reduction
New Missed Lines
%

src/hapi/pipelines/database/org.py
1
94.17%

src/hapi/pipelines/app/main.py
2
39.71%

Totals

Change from base Build<PHONE_NUMBER>:
0.09%

Covered Lines:
1387

Relevant Lines:
1489

💛  - Coveralls


utilis

Dear Roman,
I am trying to run quanfima, but I got the error:
... visualization.py", line 17, in
from utils import geo2rgb
ModuleNotFoundError: No module named 'utils'
Any help is much appreciated. Thank you!
Regards,

Probably too late, but you can change line 17 in the visualization.py script to:
from quanfima.utils import geo2rgb


document general shim pattern

r? @oli-obk

:umbrella: The latest upstream changes (presumably #2493) made this pull request unmergeable. Please resolve the merge conflicts.

r=me, needs a rebase

@bors r=oli-obk

:pushpin: Commit daaa81fc5e5290e6a9c191e185206c2fe616a105 has been approved by oli-obk
It is now in the queue for this repository.

:hourglass: Testing commit daaa81fc5e5290e6a9c191e185206c2fe616a105 with merge a109994f2271736388bba619c08f794189ebb328...

:sunny: Test successful - checks-actions
Approved by: oli-obk
Pushing a109994f2271736388bba619c08f794189ebb328 to master...


Overlay: rearrange and add News

Fixes #29
Replicates the default behavior of the overlay, where the news panel gets displayed if there are no achievements.
Swaps the places of achievements and screenshots to allow for this change.

Would also be possible to just use the news panel to display a greyed out achievements button (and not actually placing a button).

A disabled Achievements button is probably better for consistency, and it also gives information about the lack of achievements. The News button is not really needed here imo.

Changed it to the disabled achievements button.


Change alert tracelog

Relates #47
Description
Reference issue
Fixes #...

@backkem @Sean-Der Could you give a sec for review？


Feature/flag quiet

Description
Sometimes developers choose to not see all logs/output of your command and just see success or failure as the outcome. Hence adding --quiet or -q flag to 1build command execution will result in just executing the command but not showing the entire output of it.
Fixes/Implements: #140
New dependencies introduced

Viper
Reason: Viper has the ability to bind to flags. To bind flag --quiet flag throughout project(particularly  exec.go)

Checklist

[N] I have added tests that prove my fix is effective or that my feature works
[Y] I have update README (If needed)

 Here is an overview of what got changed by this pull request:

Issues
======
- Added 1

See the complete overview on Codacy

Let me know if you need any help from my side.

@gopinath-langote Please Review.

@ashupatil96 LGTM.
Thanks for the PR. This was a long waiting feature for me.


Regular expression improving

Suggestions on improving regular expression from hubot-happy-birthder:
Username /(?:@?([\w\d .\-_]+)\?*)/

decide should question mark be an optional ending of username or better include it in list of valid simbols
if hyphen is in the beggining of symbol class it is possible to avoid slash before
keep in mind that \w is equvalent to [A-Za-z0-9] so digits already included
so in result we can use (?:@?([-\w ._?]+)) instead

It looks like RocketChat accepts any symbols in username, so it is possible to cut regular expression to (?:@?(.+)). But in that case we should add trim function to name extraction name = msg.match[2].trim()

How have you concluded that RocketChat accepts any symbols in username? I have not succeed in using ?, !, # in username:

@ukhryab, you are right. I haven't found clear restrictions in the official documentation, but found the original regex which is used for checking whether a username is valid or not: ^[0-9a-zA-Z-_.]+$.
Actually, this is my fault -- I confused @polina-popova, having told her about some of my observations which I hadn't checked carefully.


Add optional argument to allow bypassing of assertion on improper force term comparison

Uses https://github.com/choderalab/openmoltools/pull/234

@jchodera - to get this to pass, I need a minor change in openmoltools to propagate to the omnia build. What's the latest to make sure this happens -- I cut a new release of openmoltools, and then it happens automatically? Or is there another step to take after that?
Thanks.

Did you already make a PR for the openmoltools change?
If so, we need to cut a new minor or bugfix release of openmoltools and bump the conda recipe version. We should document that...

It's already merged, yes.
I agree that documenting this -- and the process of getting things onto Omnia and into this general pipeline -- would be extremely helpful. Sooner or later I'll have to have get other people to do it and there are some parts of it that I'm still fuzzy on. I've set up Travis on repos now, so I'm comfortable with the testing and release part, but I'm still a bit unclear on how to get things onto Omnia (along with new dependencies they might need) and how to trigger getting new builds onto Omnia.

My lab is working on documenting our software development and deployment practices:
https://github.com/choderalab/software-development
Right now, it's just a bunch of issues with writing assignments to tackle this week. If you see anything missing, feel free to mention what you would like to see in an issue.
I'll be working on the omnia build documentation. We can link to that from some standard developer docs how-to we include in each repository so it is clear how to contribute, cut a release, etc.

For now, let me type up some notes about the release process.

Hmm, another miniconda MD5 mismatch; did they update again?

Sorry, I have a fix for this. Will update.

When you do the fix in one place, @jchodera (i.e. even another repo) do you want to tag me and then I can propagate across open-forcefield-group repos with testing enabled?

@jchodera - this is currently failing on py27 and py34 (but passing on py35) because of an issue with openmoltools that I don't understand at all. Specifically, the 0.73 changes to openmoltools -- which added a skipImpropers argument to syscheck.check_force_parameters seem not to be showing up for py27 and py34, which result in this error in those cases:

syscheck.check_force_parameters(skipImpropers = skip_improper)

TypeError: check_force_parameters() got an unexpected keyword argument 'skipImpropers'
However, things seem just fine for py35. (And tests past locally in py27 on my machine). I don't understand how this can be. Any insights?

That's odd. The packages all went up 18 hours ago for all versions of python.

It's because you're actually having openmoltools 0.6.8 installed for testing:
    openmoltools-0.6.8         |           py27_1         4.3 MB  omnia

I suggest you change this line from
    - openmoltools

to
    - openmoltools >=0.7.3

if you really require versions 0.7.3 or later.

Thanks, @jchodera ! I'd searched the travis logs and found it was pulling openmoltools 0.7.3 but apparently I didn't review carefully enough. Odd that it would pull 0.7.3 for py35 and 0.6.8 for the other python versions. I just pushed that change.


Install 2.2.9 using pip?

Sorry for being newb, but how do I get 2.2.9 using pip?
I've set up a virtualenv, and then typed pip install pandas-plink>=2.2.9, but when I look at .venv/lib/python3.6/site-packages/pandas_plink/__init__.py, I see __version__ = "2.2.4".
I'm asking because I'm seeing this error:
Traceback (most recent call last):
  File "convert_to_plink.py", line 5, in <module>
    import pandas_plink
  File ".venv/lib/python3.6/site-packages/pandas_plink/__init__.py", line 1, in <module>
    from ._chunk import Chunk
  File ".venv/lib/python3.6/site-packages/pandas_plink/_chunk.py", line 1, in <module>
    from dataclasses import dataclass
ModuleNotFoundError: No module named 'dataclasses'

You can try which pip to make sure pip is coming from that venv.
You can always do pip install pandas-plink --upgrade as well.

Not working for me:
https://asciinema.org/a/HbiGc32mhjJIo2Pm29wV9X4f1

We dropped suuport for python 3.6, sorry... Please, update to python 3.7 at least and that will work again..

Ah, no problem. Can this not be set in the pip deps?
On Wed, 7 Jul 2021 at 13:57, Danilo Horta @.***> wrote:

We dropped suuport for python 3.6, sorry... Please, update to python 3.7
at least and that will work again..
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/limix/pandas-plink/issues/26#issuecomment-875579945,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANKSZTVQ4ULPXDHTXJITPWTTWRFKBANCNFSM473IXHLA
.

Not on pip but on setuptools: https://github.com/limix/pandas-plink/blob/b580df7f8d3c566f6cdf8da512c608fd76ff1f0c/setup.cfg#L29


[REQUEST] SIPREC (SIP Recording)

Many enterprises SBC support SIPREC to utilize external call recording.
It would be great if LibreSBC could have these feature.
More details about SIPREC: https://datatracker.ietf.org/doc/id/draft-portman-siprec-protocol-01.html

@hungtr97 as I understand, you wish LibreSBC act as an SIPREC client, to fork an audio to remote SIPREC server. Are you able to provide a SIPREC server for testing and developing function?
anyway, PR for this function is welcome.

closed as no response


Packaging updates

pass mypy tests
update python version classifiers: remove 3.5, add 3.10 and 3.11
add python 3.10 and 3.11 environments to tox
update dev requirements

This PR should close #105

Just realised I didn't update the circleci config file. I'll do another PR once this PR is closed.


Validate only fields that are rendered

Feature request.
Validation currently runs on every field whether or not the field is rendered. (Version 5.2.3)
Is it possible to run validation only for the fields that are rendered?

@Juliograham We validate the registered fields. So, if you want to no run validation into some field, make sure that is not registered. You could do that, using forceUnregisterOnUnmount or stopping using global validation to use Field single validation: https://redux-form.com/8.2.2/docs/api/field.md/#-code-validate-array-lt-function-gt-value-allvalues-props-name-gt-error-code-optional- .. I don't know if all these features is supported in v5, if not, I suggest you take a few time to update your version, since you're 3 majors versions behind.


Bug Report: max_batch_size set to 32 in llama_adapter.load lead to OutOfMemoryError in Inference Baseline

Related to #69.
Line 316 in llama_adapter.py, set the default value to 32 lead to OutOfMemoryError in Inference Baseline.

With RTX 4090 24GB, the max_batch_size can be set to 16 or 8

You can reduce the batch size until it fits within your available memory capacity.

With RTX 4090 24GB, the max_batch_size can be set to 16 or 8

I'm using the same setup and I'm having the GPU out of memory problem when inferring. May I ask if you have solved it.

@tenderzada
Yes, just turn down the max_batch_size in llama_adapter.load, you can try to set it as 1 first.

@tenderzada Yes, just turn down the max_batch_size in llama_adapter.load, you can try to set it as 1 first.

I did it, thank you very mach.

@tenderzada Yes, just turn down the max_batch_size in llama_adapter.load, you can try to set it as 1 first.

I did it, thank you very much.

是的，只需调低 llama_adapter.load 中的 max_batch_size，您可以先尝试将其设置为 1。

我做到了，非常感谢。

I would like to know how long it took for you to run inference with max_batch_size=1.

是的，只需调低 llama_adapter.load 中的 max_batch_size，您可以先尝试将其设置为 1。

我做到了，非常感谢。

I would like to know how long it took for you to run inference with max_batch_size=1.

I'm not quite sure, but I remember that it takes less than half an hour to complete one epoch.

Thank you very mush ！I would like to know which one I should choose for inference.
[cid:bb41f4bf-d616-49f8-b8d1-4158b3fbbfd3]

From: @.*** @.> on behalf of tenderzada @.>
Sent: Wednesday, December 4, 2024 5:14 PM
To: OpenDriveLab/DriveLM @.>
Cc: yuxr-smile @.>; Comment @.***>
Subject: Re: [OpenDriveLab/DriveLM] Bug Report: max_batch_size set to 32 in llama_adapter.load lead to OutOfMemoryError in Inference Baseline (Issue #73)
是的，只需调低 llama_adapter.load 中的 max_batch_size，您可以先尝试将其设置为 1。
我做到了，非常感谢。
I would like to know how long it took for you to run inference with max_batch_size=1.
I'm not quite sure, but I remember that it takes less than half an hour to complete one epoch.
―
Reply to this email directly, view it on GitHubhttps://github.com/OpenDriveLab/DriveLM/issues/73#issuecomment-2516644818, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BMRARCSQR6FWZI6VMAT4WDL2D3BYTAVCNFSM6AAAAABS7SMNGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJWGY2DIOBRHA.
You are receiving this because you commented.Message ID: @.***>

The results I obtained are significantly different from the ones provided by the author.I did not use GPT for scoring.
[cid:eecc4be2-8f92-4a43-9fc9-37b72891e5c1]

From: @.*** @.> on behalf of tenderzada @.>
Sent: Wednesday, December 4, 2024 5:14 PM
To: OpenDriveLab/DriveLM @.>
Cc: yuxr-smile @.>; Comment @.***>
Subject: Re: [OpenDriveLab/DriveLM] Bug Report: max_batch_size set to 32 in llama_adapter.load lead to OutOfMemoryError in Inference Baseline (Issue #73)
是的，只需调低 llama_adapter.load 中的 max_batch_size，您可以先尝试将其设置为 1。
我做到了，非常感谢。
I would like to know how long it took for you to run inference with max_batch_size=1.
I'm not quite sure, but I remember that it takes less than half an hour to complete one epoch.
―
Reply to this email directly, view it on GitHubhttps://github.com/OpenDriveLab/DriveLM/issues/73#issuecomment-2516644818, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BMRARCSQR6FWZI6VMAT4WDL2D3BYTAVCNFSM6AAAAABS7SMNGKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMJWGY2DIOBRHA.
You are receiving this because you commented.Message ID: @.***>

是的，只需调低 llama_adapter.load 中的 max_batch_size，您可以先尝试将其设置为 1。

我做到了，非常感谢。

我想知道您使用 max_batch_size=1 运行推理需要多长时间。

我不太确定，但我记得完成一个 epoch 只需要不到半小时。

Thank you very mush ！I would like to know which one I should choose for inference.

The results I obtained are significantly different from the ones provided by the author.I did not use GPT for scoring.
 python evaluation.py --root_path1 ./output_caption.json --root_path2 ./test_eval.json


Nvidia required as a channel on Anaconda Install

I needed to include -c nvidia to properly install cudetoolkit. May be good to update. Full command:

conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c nvidia -c conda-forge

This depends on a lot of things like OS, pytorch version, cudatoolkit version. Will keep the instructions that got it to work on windows (and Linux users likely know how to troubleshoot lol).